@elliemae/ds-modal 2.0.0-alpha.10 → 2.0.0-alpha.11
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/cjs/v1/DSModal.js +4 -4
- package/cjs/v1/DSModalWrapper.js +1 -0
- package/cjs/v2/DSModal.js +2 -2
- package/esm/v1/DSModal.js +4 -4
- package/esm/v1/DSModalWrapper.js +1 -0
- package/esm/v2/DSModal.js +2 -2
- package/package.json +3 -3
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
package/cjs/v1/DSModal.js
CHANGED
|
@@ -91,7 +91,7 @@ const DSModal = ({
|
|
|
91
91
|
isOpen: isOpen,
|
|
92
92
|
onAfterOpen: onAfterOpen,
|
|
93
93
|
onRequestClose: onClose,
|
|
94
|
-
overlayClassName:
|
|
94
|
+
overlayClassName: "".concat(classNameBlock('overlay'), " ").concat(classNameModifier(centered && 'center')),
|
|
95
95
|
shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
|
|
96
96
|
style: {
|
|
97
97
|
content: _objectSpread({}, style),
|
|
@@ -121,18 +121,18 @@ const DSModal = ({
|
|
|
121
121
|
hasWarning: hasWarning,
|
|
122
122
|
modalType: modalType
|
|
123
123
|
}), children), showFooter && !isAFeedbackType && /*#__PURE__*/_jsx__default["default"]("div", {
|
|
124
|
-
className:
|
|
124
|
+
className: "".concat(classNameBlock('modal-footer'), " ").concat(additionalFooterCssClass ? classNameBlockModifier(additionalFooterCssClass, 'modal-footer') : '')
|
|
125
125
|
}, void 0, /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
126
126
|
ref: actionsRef,
|
|
127
127
|
className: classNameBlock('modal-footer-actions'),
|
|
128
128
|
children: [modalType === constants.MODAL_TYPE.CONFIRM && /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread({
|
|
129
129
|
buttonType: "secondary",
|
|
130
|
-
className:
|
|
130
|
+
className: "".concat(classNameElement('button-action'), " ").concat(classNameModifier('reject', 'button-action'), " "),
|
|
131
131
|
labelText: rejectLabel,
|
|
132
132
|
onClick: onReject
|
|
133
133
|
}, overridePropsRejectButton)), /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread({
|
|
134
134
|
buttonType: "primary",
|
|
135
|
-
className:
|
|
135
|
+
className: "".concat(classNameElement('button-action'), " ").concat(classNameModifier('confirm', 'button-action'), " "),
|
|
136
136
|
labelText: confirmLabel,
|
|
137
137
|
onClick: onConfirm
|
|
138
138
|
}, overridePropsConfirmButton))]
|
package/cjs/v1/DSModalWrapper.js
CHANGED
package/cjs/v2/DSModal.js
CHANGED
|
@@ -67,12 +67,12 @@ const DSModal = ({
|
|
|
67
67
|
});
|
|
68
68
|
return /*#__PURE__*/_jsx__default["default"](ReactModal__default["default"], {
|
|
69
69
|
testId: dataTestId,
|
|
70
|
-
className:
|
|
70
|
+
className: "".concat(cssClassName, " ").concat(classNameBlock("type-".concat(modalType))),
|
|
71
71
|
contentLabel: modalTitle,
|
|
72
72
|
isOpen: isOpen,
|
|
73
73
|
onAfterOpen: onAfterOpen,
|
|
74
74
|
onRequestClose: onClose,
|
|
75
|
-
overlayClassName:
|
|
75
|
+
overlayClassName: "".concat(classNameBlock('overlay'), " ").concat(classNameModifier(centered ? 'center' : 'top')),
|
|
76
76
|
shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
|
|
77
77
|
style: {
|
|
78
78
|
content: _objectSpread({}, style),
|
package/esm/v1/DSModal.js
CHANGED
|
@@ -81,7 +81,7 @@ const DSModal = ({
|
|
|
81
81
|
isOpen: isOpen,
|
|
82
82
|
onAfterOpen: onAfterOpen,
|
|
83
83
|
onRequestClose: onClose,
|
|
84
|
-
overlayClassName:
|
|
84
|
+
overlayClassName: "".concat(classNameBlock('overlay'), " ").concat(classNameModifier(centered && 'center')),
|
|
85
85
|
shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
|
|
86
86
|
style: {
|
|
87
87
|
content: _objectSpread({}, style),
|
|
@@ -111,18 +111,18 @@ const DSModal = ({
|
|
|
111
111
|
hasWarning: hasWarning,
|
|
112
112
|
modalType: modalType
|
|
113
113
|
}), children), showFooter && !isAFeedbackType && /*#__PURE__*/_jsx("div", {
|
|
114
|
-
className:
|
|
114
|
+
className: "".concat(classNameBlock('modal-footer'), " ").concat(additionalFooterCssClass ? classNameBlockModifier(additionalFooterCssClass, 'modal-footer') : '')
|
|
115
115
|
}, void 0, /*#__PURE__*/jsxs("div", {
|
|
116
116
|
ref: actionsRef,
|
|
117
117
|
className: classNameBlock('modal-footer-actions'),
|
|
118
118
|
children: [modalType === MODAL_TYPE.CONFIRM && /*#__PURE__*/jsx(DSButton, _objectSpread({
|
|
119
119
|
buttonType: "secondary",
|
|
120
|
-
className:
|
|
120
|
+
className: "".concat(classNameElement('button-action'), " ").concat(classNameModifier('reject', 'button-action'), " "),
|
|
121
121
|
labelText: rejectLabel,
|
|
122
122
|
onClick: onReject
|
|
123
123
|
}, overridePropsRejectButton)), /*#__PURE__*/jsx(DSButton, _objectSpread({
|
|
124
124
|
buttonType: "primary",
|
|
125
|
-
className:
|
|
125
|
+
className: "".concat(classNameElement('button-action'), " ").concat(classNameModifier('confirm', 'button-action'), " "),
|
|
126
126
|
labelText: confirmLabel,
|
|
127
127
|
onClick: onConfirm
|
|
128
128
|
}, overridePropsConfirmButton))]
|
package/esm/v1/DSModalWrapper.js
CHANGED
package/esm/v2/DSModal.js
CHANGED
|
@@ -58,12 +58,12 @@ const DSModal = ({
|
|
|
58
58
|
});
|
|
59
59
|
return /*#__PURE__*/_jsx(ReactModal, {
|
|
60
60
|
testId: dataTestId,
|
|
61
|
-
className:
|
|
61
|
+
className: "".concat(cssClassName, " ").concat(classNameBlock("type-".concat(modalType))),
|
|
62
62
|
contentLabel: modalTitle,
|
|
63
63
|
isOpen: isOpen,
|
|
64
64
|
onAfterOpen: onAfterOpen,
|
|
65
65
|
onRequestClose: onClose,
|
|
66
|
-
overlayClassName:
|
|
66
|
+
overlayClassName: "".concat(classNameBlock('overlay'), " ").concat(classNameModifier(centered ? 'center' : 'top')),
|
|
67
67
|
shouldCloseOnOverlayClick: shouldCloseOnOverlayClick,
|
|
68
68
|
style: {
|
|
69
69
|
content: _objectSpread({}, style),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"build": "node ../../scripts/build/build.js"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@elliemae/ds-basic": "2.0.0-alpha.
|
|
100
|
-
"@elliemae/ds-classnames": "2.0.0-alpha.
|
|
99
|
+
"@elliemae/ds-basic": "2.0.0-alpha.11",
|
|
100
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.11",
|
|
101
101
|
"prop-types": "~15.7.2",
|
|
102
102
|
"react-measure": "~2.5.2",
|
|
103
103
|
"react-modal": "~3.12.1"
|
package/cjs/package.json
DELETED