ui-kit-ck-consultant 0.5.268 → 0.5.270
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 +5 -2
- package/dist/index.js +9 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -1508,14 +1508,17 @@
|
|
1508
1508
|
margin: auto 10px;
|
1509
1509
|
margin-left: auto;
|
1510
1510
|
font-size: 20px;
|
1511
|
+
}
|
1512
|
+
|
1513
|
+
._2hmw7{
|
1511
1514
|
cursor: pointer;
|
1512
1515
|
}
|
1513
1516
|
|
1514
|
-
.
|
1517
|
+
._2hmw7:hover {
|
1515
1518
|
opacity: 0.7;
|
1516
1519
|
}
|
1517
1520
|
|
1518
|
-
.
|
1521
|
+
._2hmw7:active {
|
1519
1522
|
opacity: 0.5;
|
1520
1523
|
}
|
1521
1524
|
|
package/dist/index.js
CHANGED
@@ -1211,7 +1211,7 @@ var Header = /*#__PURE__*/function (_React$Component) {
|
|
1211
1211
|
return Header;
|
1212
1212
|
}(React__default.Component);
|
1213
1213
|
|
1214
|
-
var style$c = {"card":"_4T5PO","card_tabs":"_3qz0v","card_loader_container":"_1zFpZ","loader_element":"_2rKrR","loader":"_8eH6Y","grow":"_19crY","card_disabled":"_3BnES","card_top_border":"_1ItWX","card_header":"_HBqZI","card_tabs_header":"_3iUeb","card_header_left":"_2KSuY","card_tabs_header_left":"_3euMf","card_tabs_header_active":"_3UmBd","card_header_right":"_2KPnI","card_header_action":"_dmCgN","card_header_action_disable":"_1XS9q","card_body":"_8DE3p","card_tabs_body":"_3UyXH","card_color":"_2D119","card_color_left":"_1OCk3","card_color_image_left":"_199hf","card_color_center":"_11M7t","card_color_right":"_ZiFPm","card_statistics":"_29tu3","card_statistics_body":"_1b4T4","card_statistics_icon":"_1dkwV"};
|
1214
|
+
var style$c = {"card":"_4T5PO","card_tabs":"_3qz0v","card_loader_container":"_1zFpZ","loader_element":"_2rKrR","loader":"_8eH6Y","grow":"_19crY","card_disabled":"_3BnES","card_top_border":"_1ItWX","card_header":"_HBqZI","card_tabs_header":"_3iUeb","card_header_left":"_2KSuY","card_tabs_header_left":"_3euMf","card_tabs_header_active":"_3UmBd","card_header_right":"_2KPnI","card_header_action":"_dmCgN","card_header_action_disable":"_1XS9q","card_body":"_8DE3p","card_tabs_body":"_3UyXH","card_color":"_2D119","card_color_left":"_1OCk3","card_color_image_left":"_199hf","card_color_center":"_11M7t","card_color_right":"_ZiFPm","card_color_action":"_2hmw7","card_statistics":"_29tu3","card_statistics_body":"_1b4T4","card_statistics_icon":"_1dkwV"};
|
1215
1215
|
|
1216
1216
|
var Card = /*#__PURE__*/function (_React$Component) {
|
1217
1217
|
_inheritsLoose(Card, _React$Component);
|
@@ -1342,7 +1342,8 @@ var CardColor = /*#__PURE__*/function (_React$Component) {
|
|
1342
1342
|
|
1343
1343
|
_proto.render = function render() {
|
1344
1344
|
return /*#__PURE__*/React__default.createElement("div", {
|
1345
|
-
className: classNames$1(style$c.card_color, this.props.className)
|
1345
|
+
className: classNames$1(style$c.card_color, this.props.onClick ? style$c.card_color_action : {}, this.props.className),
|
1346
|
+
onClick: this.props.onClick
|
1346
1347
|
}, this.props.count === 0 || this.props.count ? /*#__PURE__*/React__default.createElement("div", {
|
1347
1348
|
className: style$c.card_color_left
|
1348
1349
|
}, /*#__PURE__*/React__default.createElement("span", null, this.props.count)) : /*#__PURE__*/React__default.createElement("div", {
|
@@ -1350,8 +1351,7 @@ var CardColor = /*#__PURE__*/function (_React$Component) {
|
|
1350
1351
|
}, /*#__PURE__*/React__default.createElement("span", null, this.props.image)), /*#__PURE__*/React__default.createElement("div", {
|
1351
1352
|
className: style$c.card_color_center
|
1352
1353
|
}, /*#__PURE__*/React__default.createElement("span", null, this.props.title), /*#__PURE__*/React__default.createElement("span", null, this.props.subtitle)), /*#__PURE__*/React__default.createElement("div", {
|
1353
|
-
className: style$c.card_color_right
|
1354
|
-
onClick: this.props.onClick
|
1354
|
+
className: style$c.card_color_right
|
1355
1355
|
}, this.props.icon ? this.props.icon : /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
1356
1356
|
icon: freeSolidSvgIcons.faArrowRight
|
1357
1357
|
})));
|
@@ -4431,7 +4431,6 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4431
4431
|
};
|
4432
4432
|
|
4433
4433
|
_this.state = {
|
4434
|
-
isDisplay: true,
|
4435
4434
|
isActive: false,
|
4436
4435
|
position: 0
|
4437
4436
|
};
|
@@ -4441,10 +4440,6 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4441
4440
|
var _proto = Gauge.prototype;
|
4442
4441
|
|
4443
4442
|
_proto.componentDidMount = function componentDidMount() {
|
4444
|
-
this.setState({
|
4445
|
-
isDisplay: true
|
4446
|
-
});
|
4447
|
-
|
4448
4443
|
if (this.props.position) {
|
4449
4444
|
this.setState({
|
4450
4445
|
position: this.props.position
|
@@ -4455,13 +4450,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4455
4450
|
};
|
4456
4451
|
|
4457
4452
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
4458
|
-
|
4459
|
-
|
4460
|
-
this.setState({
|
4461
|
-
isDisplay: false
|
4462
|
-
}, function () {
|
4463
|
-
window.removeEventListener('mouseup', _this2.eventMouseUp);
|
4464
|
-
});
|
4453
|
+
window.removeEventListener('mouseup', this.eventMouseUp, true);
|
4465
4454
|
};
|
4466
4455
|
|
4467
4456
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
@@ -4473,7 +4462,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4473
4462
|
};
|
4474
4463
|
|
4475
4464
|
_proto.render = function render() {
|
4476
|
-
var
|
4465
|
+
var _this2 = this;
|
4477
4466
|
|
4478
4467
|
return /*#__PURE__*/React__default.createElement("div", {
|
4479
4468
|
className: this.props.className
|
@@ -4505,15 +4494,15 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4505
4494
|
borderRadius: '8px'
|
4506
4495
|
},
|
4507
4496
|
onMouseMove: function onMouseMove(e) {
|
4508
|
-
return
|
4497
|
+
return _this2.onMouse(e);
|
4509
4498
|
},
|
4510
4499
|
onClick: function onClick(e) {
|
4511
|
-
return
|
4500
|
+
return _this2.onMouse(e, true);
|
4512
4501
|
},
|
4513
4502
|
onMouseDown: function onMouseDown(e) {
|
4514
4503
|
e.preventDefault();
|
4515
4504
|
|
4516
|
-
|
4505
|
+
_this2.setState({
|
4517
4506
|
isActive: true
|
4518
4507
|
});
|
4519
4508
|
}
|