ui-kit-ck-consultant 0.5.287 → 0.5.289
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/dist/index.css +1 -0
- package/dist/index.js +32 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -18
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -163,7 +163,35 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
163
163
|
_inheritsLoose(FullModal, _React$Component);
|
164
164
|
|
165
165
|
function FullModal() {
|
166
|
-
|
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;
|
@@ -183,23 +211,9 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
183
211
|
className: "mr-auto"
|
184
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.
|
188
|
-
|
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)) : 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
|
};
|