@kystverket/styrbord 1.3.5 → 1.3.7

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/main.js CHANGED
@@ -10923,9 +10923,9 @@ const Ac = async () => new Promise((r) => {
10923
10923
  align: t = "left",
10924
10924
  ...A
10925
10925
  }) => {
10926
- var l;
10926
+ var l, c;
10927
10927
  const [i, a] = y2((l = A.value) == null ? void 0 : l.toString());
10928
- return /* @__PURE__ */ E.jsx(
10928
+ return String(A.value) !== String(i) && a((c = A.value) == null ? void 0 : c.toString()), /* @__PURE__ */ E.jsx(
10929
10929
  y7,
10930
10930
  {
10931
10931
  className: [e, o4(r), zc["align-" + t]].join(" "),
@@ -10936,10 +10936,10 @@ const Ac = async () => new Promise((r) => {
10936
10936
  disabled: A.disabled,
10937
10937
  value: i ?? "",
10938
10938
  onBlur: A.onBlur,
10939
- onChange: (c) => {
10940
- var I;
10941
- const o = c.target.value.replace(",", ".").replace(/[^0-9.,-]/g, "");
10942
- [",", "."].includes(o[o.length - 1]) ? a(o) : o.length > 0 ? a(parseFloat(o).toString()) : a(""), (I = A.onChange) == null || I.call(A, o ? parseFloat(o) : void 0);
10939
+ onChange: (o) => {
10940
+ var f;
10941
+ const I = o.target.value.replace(",", ".").replace(/[^0-9.,-]/g, "");
10942
+ [",", "."].includes(I[I.length - 1]) ? a(I) : I.length > 0 ? a(parseFloat(I).toString()) : a(""), (f = A.onChange) == null || f.call(A, I ? parseFloat(I) : void 0);
10943
10943
  },
10944
10944
  inputMode: n,
10945
10945
  error: A.error,