ui-kit-ck-consultant 0.5.276 → 0.5.278

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.
@@ -357,6 +357,7 @@ var FormInput = /*#__PURE__*/function (_React$Component) {
357
357
  }, "*") : '') : '', /*#__PURE__*/React.createElement("div", {
358
358
  className: style$2.form_input_container_icon
359
359
  }, /*#__PURE__*/React.createElement("div", null, this.props.children), /*#__PURE__*/React.createElement("input", {
360
+ autoFocus: this.props.autoFocus,
360
361
  style: this.props.styleInput,
361
362
  className: style$2.form_input_icon,
362
363
  type: this.props.type,
@@ -381,6 +382,7 @@ var FormInput = /*#__PURE__*/function (_React$Component) {
381
382
  }, this.props.title, ' ', this.props.required ? /*#__PURE__*/React.createElement("span", {
382
383
  className: "red"
383
384
  }, "*") : '') : '', /*#__PURE__*/React.createElement("input", {
385
+ autoFocus: this.props.autoFocus,
384
386
  style: this.props.styleInput,
385
387
  className: style$2.form_input,
386
388
  type: this.props.type,
@@ -4283,7 +4285,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4283
4285
  _this = _React$Component.call(this, props) || this;
4284
4286
 
4285
4287
  _this.eventMouseUp = function () {
4286
- if (_this.state.isDisplay) {
4288
+ if (_this.state.isActive) {
4287
4289
  _this.setState({
4288
4290
  isActive: false
4289
4291
  });
@@ -4300,7 +4302,13 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
4300
4302
  var width = currentTargetRect.width;
4301
4303
  var positionX = e.pageX - currentTargetRect.left;
4302
4304
  var step = _this.props.step ? _this.props.step : 1;
4303
- var position = positionX * 100 / width - positionX * 100 / width % step;
4305
+ var position = Math.round(positionX * 100 / width) - Math.round(positionX * 100 / width) % step;
4306
+
4307
+ if (position > 100) {
4308
+ position = 100;
4309
+ } else if (position < 0) {
4310
+ position = 0;
4311
+ }
4304
4312
 
4305
4313
  _this.setState({
4306
4314
  position: position