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: "modal__footer"
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;
@@ -78,6 +78,10 @@
78
78
  border-bottom-left-radius: 4px;
79
79
  border-bottom-right-radius: 4px;
80
80
 
81
+ &_with-left-content {
82
+ justify-content: space-between;
83
+ }
84
+
81
85
  &--inbody {
82
86
  position: absolute;
83
87
  bottom: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.2.47",
3
+ "version": "0.2.48",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [