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.
@@ -1208,7 +1208,7 @@ var Header = /*#__PURE__*/function (_React$Component) {
1208
1208
  return Header;
1209
1209
  }(React.Component);
1210
1210
 
1211
- 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"};
1211
+ 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"};
1212
1212
 
1213
1213
  var Card = /*#__PURE__*/function (_React$Component) {
1214
1214
  _inheritsLoose(Card, _React$Component);
@@ -1339,7 +1339,8 @@ var CardColor = /*#__PURE__*/function (_React$Component) {
1339
1339
 
1340
1340
  _proto.render = function render() {
1341
1341
  return /*#__PURE__*/React.createElement("div", {
1342
- className: classNames$1(style$c.card_color, this.props.className)
1342
+ className: classNames$1(style$c.card_color, this.props.onClick ? style$c.card_color_action : {}, this.props.className),
1343
+ onClick: this.props.onClick
1343
1344
  }, this.props.count === 0 || this.props.count ? /*#__PURE__*/React.createElement("div", {
1344
1345
  className: style$c.card_color_left
1345
1346
  }, /*#__PURE__*/React.createElement("span", null, this.props.count)) : /*#__PURE__*/React.createElement("div", {
@@ -1347,8 +1348,7 @@ var CardColor = /*#__PURE__*/function (_React$Component) {
1347
1348
  }, /*#__PURE__*/React.createElement("span", null, this.props.image)), /*#__PURE__*/React.createElement("div", {
1348
1349
  className: style$c.card_color_center
1349
1350
  }, /*#__PURE__*/React.createElement("span", null, this.props.title), /*#__PURE__*/React.createElement("span", null, this.props.subtitle)), /*#__PURE__*/React.createElement("div", {
1350
- className: style$c.card_color_right,
1351
- onClick: this.props.onClick
1351
+ className: style$c.card_color_right
1352
1352
  }, this.props.icon ? this.props.icon : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
1353
1353
  icon: faArrowRight
1354
1354
  })));
@@ -4428,7 +4428,6 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4428
4428
  };
4429
4429
 
4430
4430
  _this.state = {
4431
- isDisplay: true,
4432
4431
  isActive: false,
4433
4432
  position: 0
4434
4433
  };
@@ -4438,10 +4437,6 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4438
4437
  var _proto = Gauge.prototype;
4439
4438
 
4440
4439
  _proto.componentDidMount = function componentDidMount() {
4441
- this.setState({
4442
- isDisplay: true
4443
- });
4444
-
4445
4440
  if (this.props.position) {
4446
4441
  this.setState({
4447
4442
  position: this.props.position
@@ -4452,13 +4447,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4452
4447
  };
4453
4448
 
4454
4449
  _proto.componentWillUnmount = function componentWillUnmount() {
4455
- var _this2 = this;
4456
-
4457
- this.setState({
4458
- isDisplay: false
4459
- }, function () {
4460
- window.removeEventListener('mouseup', _this2.eventMouseUp);
4461
- });
4450
+ window.removeEventListener('mouseup', this.eventMouseUp, true);
4462
4451
  };
4463
4452
 
4464
4453
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
@@ -4470,7 +4459,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4470
4459
  };
4471
4460
 
4472
4461
  _proto.render = function render() {
4473
- var _this3 = this;
4462
+ var _this2 = this;
4474
4463
 
4475
4464
  return /*#__PURE__*/React.createElement("div", {
4476
4465
  className: this.props.className
@@ -4502,15 +4491,15 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4502
4491
  borderRadius: '8px'
4503
4492
  },
4504
4493
  onMouseMove: function onMouseMove(e) {
4505
- return _this3.onMouse(e);
4494
+ return _this2.onMouse(e);
4506
4495
  },
4507
4496
  onClick: function onClick(e) {
4508
- return _this3.onMouse(e, true);
4497
+ return _this2.onMouse(e, true);
4509
4498
  },
4510
4499
  onMouseDown: function onMouseDown(e) {
4511
4500
  e.preventDefault();
4512
4501
 
4513
- _this3.setState({
4502
+ _this2.setState({
4514
4503
  isActive: true
4515
4504
  });
4516
4505
  }