ui-kit-ck-consultant 0.5.206 → 0.5.209

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
@@ -2611,11 +2611,11 @@
2611
2611
  z-index: 5;
2612
2612
  }
2613
2613
 
2614
- ._2RiQY span:first-child{
2614
+ ._2RiQY span:first-child {
2615
2615
  text-align: center;
2616
2616
  }
2617
2617
 
2618
- ._2RiQY span:last-child{
2618
+ ._2RiQY span:last-child {
2619
2619
  font-weight: bold;
2620
2620
  }
2621
2621
 
@@ -2680,6 +2680,7 @@
2680
2680
  }
2681
2681
 
2682
2682
  ._uTVeE {
2683
+ flex-shrink: 0;
2683
2684
  margin: auto 0;
2684
2685
  display: flex;
2685
2686
  width: 30px;
package/dist/index.js CHANGED
@@ -358,7 +358,8 @@ var FormTextarea = /*#__PURE__*/function (_React$Component) {
358
358
  value: this.props.value,
359
359
  name: this.props.name,
360
360
  required: this.props.required,
361
- disabled: this.props.disabled
361
+ disabled: this.props.disabled,
362
+ style: this.props.style
362
363
  }), this.props.error ? /*#__PURE__*/React__default.createElement("span", {
363
364
  className: style$3.form_textarea_error
364
365
  }, this.props.error) : '');
@@ -3961,6 +3962,27 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
3961
3962
  var _this;
3962
3963
 
3963
3964
  _this = _React$Component.call(this, props) || this;
3965
+
3966
+ _this.onMouse = function (e, isForce) {
3967
+ if (isForce === void 0) {
3968
+ isForce = false;
3969
+ }
3970
+
3971
+ if (_this.state.isActive || isForce) {
3972
+ var currentTargetRect = e.currentTarget.getBoundingClientRect();
3973
+ var width = currentTargetRect.width;
3974
+ var positionX = e.pageX - currentTargetRect.left;
3975
+ var step = _this.props.step ? _this.props.step : 1;
3976
+ var position = positionX * 100 / width - positionX * 100 / width % step;
3977
+
3978
+ _this.setState({
3979
+ position: position
3980
+ }, function () {
3981
+ return _this.props.onChange ? _this.props.onChange(position) : null;
3982
+ });
3983
+ }
3984
+ };
3985
+
3964
3986
  _this.state = {
3965
3987
  isActive: false,
3966
3988
  position: 0
@@ -4016,21 +4038,14 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4016
4038
  borderRadius: '8px'
4017
4039
  },
4018
4040
  onMouseMove: function onMouseMove(e) {
4019
- if (_this3.state.isActive) {
4020
- var currentTargetRect = e.currentTarget.getBoundingClientRect();
4021
- var width = currentTargetRect.width;
4022
- var positionX = e.pageX - currentTargetRect.left;
4023
- var step = _this3.props.step ? _this3.props.step : 1;
4024
- var position = positionX * 100 / width - positionX * 100 / width % step;
4025
-
4026
- _this3.setState({
4027
- position: position
4028
- }, function () {
4029
- return _this3.props.onChange ? _this3.props.onChange(position) : null;
4030
- });
4031
- }
4041
+ return _this3.onMouse(e);
4042
+ },
4043
+ onClick: function onClick(e) {
4044
+ return _this3.onMouse(e, true);
4032
4045
  },
4033
- onMouseDown: function onMouseDown() {
4046
+ onMouseDown: function onMouseDown(e) {
4047
+ e.preventDefault();
4048
+
4034
4049
  _this3.setState({
4035
4050
  isActive: true
4036
4051
  });