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