@kubex/zinc 1.1.31 → 1.1.32

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.
@@ -1,4 +1,3 @@
1
- import {clamp} from "lodash";
2
1
  import {classMap} from "lit/directives/class-map.js";
3
2
  import {type CSSResultGroup, html, unsafeCSS} from 'lit';
4
3
  import {FormControlController, validValidityState} from "../../internal/form";
@@ -98,7 +97,7 @@ export default class ZnRating extends ZincElement implements ZincFormControl {
98
97
  const {left, width} = this.rating.getBoundingClientRect();
99
98
  const value = this._roundToPrecision(((coordinate - left) / width) * this.max, this.precision);
100
99
 
101
- return clamp(value, 0, this.max);
100
+ return Math.min(Math.max(value, 0), this.max);
102
101
  }
103
102
 
104
103
  private _getValueFromMousePosition(event: MouseEvent): number {