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.
- package/dist/index.js +37 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +37 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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;
|
@@ -180,29 +208,15 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
180
208
|
className: classNames$1(style.modal, this.props.className)
|
181
209
|
}, /*#__PURE__*/React__default.createElement("div", {
|
182
210
|
className: style.full_modal_container
|
183
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
211
|
+
}, this.props.title ? /*#__PURE__*/React__default.createElement("div", {
|
184
212
|
className: style.full_modal_header
|
185
|
-
},
|
213
|
+
}, /*#__PURE__*/React__default.createElement("h2", {
|
186
214
|
className: "mr-auto"
|
187
|
-
}, this.props.title)
|
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)), /*#__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
|
};
|
@@ -1156,9 +1170,9 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
1156
1170
|
|
1157
1171
|
_proto.render = function render() {
|
1158
1172
|
return /*#__PURE__*/React__default.createElement("div", {
|
1159
|
-
style: this.props.border ? {
|
1173
|
+
style: _extends({}, this.props.border ? {
|
1160
1174
|
borderLeft: "solid " + this.props.border + " 16px"
|
1161
|
-
} : {},
|
1175
|
+
} : {}, this.props.style || {}),
|
1162
1176
|
className: classNames$1(style$c.card, this.props.className)
|
1163
1177
|
}, this.props.disabled ? /*#__PURE__*/React__default.createElement("div", {
|
1164
1178
|
className: classNames$1(style$c.card_disabled)
|