ui-kit-ck-consultant 0.5.277 → 0.5.279

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 CHANGED
@@ -994,20 +994,20 @@
994
994
  background-color: var(--thirty-color);
995
995
  } */
996
996
  ._2Xd8K {
997
- height: 50px;
997
+ height: 36px;
998
998
  }
999
999
  ._2Qv_L {
1000
- font-size: 14px;
1000
+ font-size: 13px;
1001
1001
  font-weight: bold;
1002
1002
  text-align: left;
1003
- padding: 0 20px;
1003
+ padding: 0 8px;
1004
1004
  background-color: var(--secondary-color);
1005
1005
  border: 0;
1006
1006
  }
1007
1007
  ._2PYe5 {
1008
- font-size: 14px;
1008
+ font-size: 13px;
1009
1009
  text-align: left;
1010
- padding: 0 20px;
1010
+ padding: 0 8px;
1011
1011
  }
1012
1012
 
1013
1013
  ._233g5 > tr > td {
package/dist/index.js CHANGED
@@ -4288,7 +4288,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4288
4288
  _this = _React$Component.call(this, props) || this;
4289
4289
 
4290
4290
  _this.eventMouseUp = function () {
4291
- if (_this.state.isDisplay) {
4291
+ if (_this.state.isActive) {
4292
4292
  _this.setState({
4293
4293
  isActive: false
4294
4294
  });
@@ -4305,7 +4305,13 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4305
4305
  var width = currentTargetRect.width;
4306
4306
  var positionX = e.pageX - currentTargetRect.left;
4307
4307
  var step = _this.props.step ? _this.props.step : 1;
4308
- var position = positionX * 100 / width - positionX * 100 / width % step;
4308
+ var position = Math.round(positionX * 100 / width) - Math.round(positionX * 100 / width) % step;
4309
+
4310
+ if (position > 100) {
4311
+ position = 100;
4312
+ } else if (position < 0) {
4313
+ position = 0;
4314
+ }
4309
4315
 
4310
4316
  _this.setState({
4311
4317
  position: position