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.css
CHANGED
package/dist/index.js
CHANGED
@@ -166,7 +166,35 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
166
166
|
_inheritsLoose(FullModal, _React$Component);
|
167
167
|
|
168
168
|
function FullModal() {
|
169
|
-
|
169
|
+
var _this;
|
170
|
+
|
171
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
172
|
+
args[_key] = arguments[_key];
|
173
|
+
}
|
174
|
+
|
175
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
176
|
+
|
177
|
+
_this.getRightItems = function () {
|
178
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
179
|
+
className: style.modal_valid,
|
180
|
+
onClick: _this.props.onValid
|
181
|
+
}, _this.props.onValid ? /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
182
|
+
icon: freeSolidSvgIcons.faCheck
|
183
|
+
}) : ''), /*#__PURE__*/React__default.createElement("div", {
|
184
|
+
className: style.modal_close,
|
185
|
+
style: _this.props.closeStyle,
|
186
|
+
onClick: _this.props.onClose
|
187
|
+
}, _this.props.iconClose ? _this.props.iconClose : /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
188
|
+
icon: freeSolidSvgIcons.faTimes
|
189
|
+
})), _this.props.onCustom ? /*#__PURE__*/React__default.createElement("div", {
|
190
|
+
className: style.modal_custom,
|
191
|
+
onClick: _this.props.onCustom
|
192
|
+
}, /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
193
|
+
icon: _this.props.customIcon
|
194
|
+
})) : null);
|
195
|
+
};
|
196
|
+
|
197
|
+
return _this;
|
170
198
|
}
|
171
199
|
|
172
200
|
var _proto = FullModal.prototype;
|
@@ -186,23 +214,9 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
186
214
|
className: "mr-auto"
|
187
215
|
}, this.props.title), /*#__PURE__*/React__default.createElement("div", {
|
188
216
|
className: "d-flex m-auto mr-0"
|
189
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
190
|
-
className: style.
|
191
|
-
|
192
|
-
}, this.props.onValid ? /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
193
|
-
icon: freeSolidSvgIcons.faCheck
|
194
|
-
}) : ''), /*#__PURE__*/React__default.createElement("div", {
|
195
|
-
className: style.modal_close,
|
196
|
-
style: this.props.closeStyle,
|
197
|
-
onClick: this.props.onClose
|
198
|
-
}, this.props.iconClose ? this.props.iconClose : /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
199
|
-
icon: freeSolidSvgIcons.faTimes
|
200
|
-
})), this.props.onCustom ? /*#__PURE__*/React__default.createElement("div", {
|
201
|
-
className: style.modal_custom,
|
202
|
-
onClick: this.props.onCustom
|
203
|
-
}, /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
204
|
-
icon: this.props.customIcon
|
205
|
-
})) : null)) : null, /*#__PURE__*/React__default.createElement("div", {
|
217
|
+
}, this.getRightItems())) : /*#__PURE__*/React__default.createElement("div", {
|
218
|
+
className: style.modal_right
|
219
|
+
}, this.getRightItems()), /*#__PURE__*/React__default.createElement("div", {
|
206
220
|
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 : {})
|
207
221
|
}, this.props.children))));
|
208
222
|
};
|