ui-kit-ck-consultant 0.5.288 → 0.5.290

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.
@@ -163,7 +163,35 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
163
163
  _inheritsLoose(FullModal, _React$Component);
164
164
 
165
165
  function FullModal() {
166
- return _React$Component.apply(this, arguments) || this;
166
+ var _this;
167
+
168
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
169
+ args[_key] = arguments[_key];
170
+ }
171
+
172
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
173
+
174
+ _this.getRightItems = function () {
175
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
176
+ className: style.modal_valid,
177
+ onClick: _this.props.onValid
178
+ }, _this.props.onValid ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
179
+ icon: faCheck
180
+ }) : ''), /*#__PURE__*/React.createElement("div", {
181
+ className: style.modal_close,
182
+ style: _this.props.closeStyle,
183
+ onClick: _this.props.onClose
184
+ }, _this.props.iconClose ? _this.props.iconClose : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
185
+ icon: faTimes
186
+ })), _this.props.onCustom ? /*#__PURE__*/React.createElement("div", {
187
+ className: style.modal_custom,
188
+ onClick: _this.props.onCustom
189
+ }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
190
+ icon: _this.props.customIcon
191
+ })) : null);
192
+ };
193
+
194
+ return _this;
167
195
  }
168
196
 
169
197
  var _proto = FullModal.prototype;
@@ -177,29 +205,15 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
177
205
  className: classNames$1(style.modal, this.props.className)
178
206
  }, /*#__PURE__*/React.createElement("div", {
179
207
  className: style.full_modal_container
180
- }, /*#__PURE__*/React.createElement("div", {
208
+ }, this.props.title ? /*#__PURE__*/React.createElement("div", {
181
209
  className: style.full_modal_header
182
- }, this.props.title ? /*#__PURE__*/React.createElement("h2", {
210
+ }, /*#__PURE__*/React.createElement("h2", {
183
211
  className: "mr-auto"
184
- }, this.props.title) : null, /*#__PURE__*/React.createElement("div", {
212
+ }, this.props.title), /*#__PURE__*/React.createElement("div", {
185
213
  className: "d-flex m-auto mr-0"
186
- }, /*#__PURE__*/React.createElement("div", {
187
- className: style.modal_valid,
188
- onClick: this.props.onValid
189
- }, this.props.onValid ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
190
- icon: faCheck
191
- }) : ''), /*#__PURE__*/React.createElement("div", {
192
- className: style.modal_close,
193
- style: this.props.closeStyle,
194
- onClick: this.props.onClose
195
- }, this.props.iconClose ? this.props.iconClose : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
196
- icon: faTimes
197
- })), this.props.onCustom ? /*#__PURE__*/React.createElement("div", {
198
- className: style.modal_custom,
199
- onClick: this.props.onCustom
200
- }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
201
- icon: this.props.customIcon
202
- })) : null)), /*#__PURE__*/React.createElement("div", {
214
+ }, this.getRightItems())) : /*#__PURE__*/React.createElement("div", {
215
+ className: style.modal_right
216
+ }, this.getRightItems()), /*#__PURE__*/React.createElement("div", {
203
217
  className: classNames$1(this.props.noPadding ? style.full_modal_body_no_padding : style.full_modal_body, this.props.noOverflow ? style.full_modal_body_no_overflow : {})
204
218
  }, this.props.children))));
205
219
  };
@@ -1153,9 +1167,9 @@ var Card = /*#__PURE__*/function (_React$Component) {
1153
1167
 
1154
1168
  _proto.render = function render() {
1155
1169
  return /*#__PURE__*/React.createElement("div", {
1156
- style: this.props.border ? {
1170
+ style: _extends({}, this.props.border ? {
1157
1171
  borderLeft: "solid " + this.props.border + " 16px"
1158
- } : {},
1172
+ } : {}, this.props.style || {}),
1159
1173
  className: classNames$1(style$c.card, this.props.className)
1160
1174
  }, this.props.disabled ? /*#__PURE__*/React.createElement("div", {
1161
1175
  className: classNames$1(style$c.card_disabled)