ui-kit-ck-consultant 0.5.151 → 0.5.152

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.
@@ -3880,11 +3880,13 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
3880
3880
  var currentTargetRect = e.currentTarget.getBoundingClientRect();
3881
3881
  var width = currentTargetRect.width;
3882
3882
  var positionX = e.pageX - currentTargetRect.left;
3883
+ var step = _this2.props.step ? _this2.props.step : 1;
3884
+ var position = positionX * 100 / width - positionX * 100 / width % step;
3883
3885
 
3884
3886
  _this2.setState({
3885
- position: positionX * 100 / width
3887
+ position: position
3886
3888
  }, function () {
3887
- return _this2.props.onChange ? _this2.props.onChange(_this2.state.position) : null;
3889
+ return _this2.props.onChange ? _this2.props.onChange(position) : null;
3888
3890
  });
3889
3891
  }
3890
3892
  }, this.props.min ? /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("span", {
@@ -3927,7 +3929,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
3927
3929
  left: this.props.max + '%',
3928
3930
  transform: 'translateX(-50%)'
3929
3931
  }
3930
- })) : null, /*#__PURE__*/React.createElement("span", {
3932
+ })) : null, this.props.noText ? null : /*#__PURE__*/React.createElement("span", {
3931
3933
  style: {
3932
3934
  position: 'absolute',
3933
3935
  left: this.state.position + '%',
@@ -3936,7 +3938,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
3936
3938
  top: '-16px',
3937
3939
  fontSize: '10px',
3938
3940
  fontWeight: 'bold',
3939
- transition: "0.3s"
3941
+ transition: '0.3s'
3940
3942
  }
3941
3943
  }, parseInt(this.state.position), "%"), /*#__PURE__*/React.createElement("div", {
3942
3944
  className: "cursor-pointer",