intelicoreact 0.2.47 → 0.2.48
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.
|
@@ -62,7 +62,8 @@ var Modal = function Modal(_ref) {
|
|
|
62
62
|
btnClassNames = _ref.btnClassNames,
|
|
63
63
|
isCloseBtnIconPositionRight = _ref.isCloseBtnIconPositionRight,
|
|
64
64
|
_ref$submitOnEnter = _ref.submitOnEnter,
|
|
65
|
-
submitOnEnter = _ref$submitOnEnter === void 0 ? true : _ref$submitOnEnter
|
|
65
|
+
submitOnEnter = _ref$submitOnEnter === void 0 ? true : _ref$submitOnEnter,
|
|
66
|
+
leftContentOfFooter = _ref.leftContentOfFooter;
|
|
66
67
|
if (!isOpen) return null;
|
|
67
68
|
|
|
68
69
|
var renderModalTitle = function renderModalTitle() {
|
|
@@ -114,7 +115,11 @@ var Modal = function Modal(_ref) {
|
|
|
114
115
|
'modal__body--no-footer': noFooter
|
|
115
116
|
})
|
|
116
117
|
}, children), !noFooter && /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
className:
|
|
118
|
+
className: (0, _classnames.default)('modal__footer', {
|
|
119
|
+
'modal__footer_with-left-content': leftContentOfFooter
|
|
120
|
+
})
|
|
121
|
+
}, leftContentOfFooter, /*#__PURE__*/_react.default.createElement("div", {
|
|
122
|
+
className: "modal__buttons-block"
|
|
118
123
|
}, !noCloseBtn && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
119
124
|
testId: 'test-modal-closeBtn',
|
|
120
125
|
className: (0, _classnames.default)(closeBtnClassName, btnClassNames),
|
|
@@ -135,7 +140,7 @@ var Modal = function Modal(_ref) {
|
|
|
135
140
|
disabled: confirmBtnDisable,
|
|
136
141
|
icon: confirmBtnIcon,
|
|
137
142
|
isIconRight: isConfirmBtnIconPositionRight
|
|
138
|
-
}))));
|
|
143
|
+
})))));
|
|
139
144
|
};
|
|
140
145
|
|
|
141
146
|
var _default = Modal;
|