@aveonline/ui-react 1.6.7 → 1.6.9

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.
@@ -12,7 +12,7 @@ export interface IField {
12
12
  /**
13
13
  * Value for default
14
14
  */
15
- value?: string | number;
15
+ value?: string;
16
16
  /**
17
17
  * For disabled input with attribute disabled
18
18
  */
@@ -1,7 +1,7 @@
1
1
  import type { ChangeEvent } from 'react';
2
2
  import { IField } from './IField';
3
3
  export declare function useField({ isDisabled, type, iconRight, error, iconLeft, onChange, value, isError }: IField): {
4
- inputValue: string | number;
4
+ inputValue: string;
5
5
  inputRef: import("react").RefObject<HTMLInputElement>;
6
6
  handleChange: ({ target: { value } }: ChangeEvent<HTMLInputElement>) => void;
7
7
  subtractValue: () => void;
package/dist/ui-react.mjs CHANGED
@@ -214,14 +214,14 @@ function L3() {
214
214
  }
215
215
  return null;
216
216
  }
217
- var x = Object.assign, D = 0, L, W, Z, U, d1, H1, u1;
217
+ var x = Object.assign, D = 0, L, W, Z, J, d1, H1, u1;
218
218
  function I1() {
219
219
  }
220
220
  I1.__reactDisabledLog = !0;
221
221
  function F1() {
222
222
  {
223
223
  if (D === 0) {
224
- L = console.log, W = console.info, Z = console.warn, U = console.error, d1 = console.group, H1 = console.groupCollapsed, u1 = console.groupEnd;
224
+ L = console.log, W = console.info, Z = console.warn, J = console.error, d1 = console.group, H1 = console.groupCollapsed, u1 = console.groupEnd;
225
225
  var p = {
226
226
  configurable: !0,
227
227
  enumerable: !0,
@@ -260,7 +260,7 @@ function L3() {
260
260
  value: Z
261
261
  }),
262
262
  error: x({}, p, {
263
- value: U
263
+ value: J
264
264
  }),
265
265
  group: x({}, p, {
266
266
  value: d1
@@ -343,17 +343,17 @@ function L3() {
343
343
  }
344
344
  } catch (ne) {
345
345
  if (ne && j && typeof ne.stack == "string") {
346
- for (var J = ne.stack.split(`
346
+ for (var U = ne.stack.split(`
347
347
  `), L1 = j.stack.split(`
348
- `), E1 = J.length - 1, b1 = L1.length - 1; E1 >= 1 && b1 >= 0 && J[E1] !== L1[b1]; )
348
+ `), E1 = U.length - 1, b1 = L1.length - 1; E1 >= 1 && b1 >= 0 && U[E1] !== L1[b1]; )
349
349
  b1--;
350
350
  for (; E1 >= 1 && b1 >= 0; E1--, b1--)
351
- if (J[E1] !== L1[b1]) {
351
+ if (U[E1] !== L1[b1]) {
352
352
  if (E1 !== 1 || b1 !== 1)
353
353
  do
354
- if (E1--, b1--, b1 < 0 || J[E1] !== L1[b1]) {
354
+ if (E1--, b1--, b1 < 0 || U[E1] !== L1[b1]) {
355
355
  var W1 = `
356
- ` + J[E1].replace(" at new ", " at ");
356
+ ` + U[E1].replace(" at new ", " at ");
357
357
  return p.displayName && W1.includes("<anonymous>") && (W1 = W1.replace("<anonymous>", p.displayName)), typeof p == "function" && _1.set(p, W1), W1;
358
358
  }
359
359
  while (E1 >= 1 && b1 >= 0);
@@ -415,17 +415,17 @@ function L3() {
415
415
  var s1 = Function.call.bind(xe);
416
416
  for (var K in p)
417
417
  if (s1(p, K)) {
418
- var J = void 0;
418
+ var U = void 0;
419
419
  try {
420
420
  if (typeof p[K] != "function") {
421
421
  var L1 = Error((j || "React class") + ": " + F + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
422
422
  throw L1.name = "Invariant Violation", L1;
423
423
  }
424
- J = p[K](w, K, j, F, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
424
+ U = p[K](w, K, j, F, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
425
425
  } catch (E1) {
426
- J = E1;
426
+ U = E1;
427
427
  }
428
- J && !(J instanceof Error) && (J1($), B("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", F, K, typeof J), J1(null)), J instanceof Error && !(J.message in g2) && (g2[J.message] = !0, J1($), B("Failed %s type: %s", F, J.message), J1(null));
428
+ U && !(U instanceof Error) && (J1($), B("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", F, K, typeof U), J1(null)), U instanceof Error && !(U.message in g2) && (g2[U.message] = !0, J1($), B("Failed %s type: %s", F, U.message), J1(null));
429
429
  }
430
430
  }
431
431
  }
@@ -505,7 +505,7 @@ function L3() {
505
505
  }
506
506
  }
507
507
  var b3 = function(p, w, F, j, $, s1, K) {
508
- var J = {
508
+ var U = {
509
509
  $$typeof: t,
510
510
  type: p,
511
511
  key: w,
@@ -513,27 +513,27 @@ function L3() {
513
513
  props: K,
514
514
  _owner: s1
515
515
  };
516
- return J._store = {}, Object.defineProperty(J._store, "validated", {
516
+ return U._store = {}, Object.defineProperty(U._store, "validated", {
517
517
  configurable: !1,
518
518
  enumerable: !1,
519
519
  writable: !0,
520
520
  value: !1
521
- }), Object.defineProperty(J, "_self", {
521
+ }), Object.defineProperty(U, "_self", {
522
522
  configurable: !1,
523
523
  enumerable: !1,
524
524
  writable: !1,
525
525
  value: j
526
- }), Object.defineProperty(J, "_source", {
526
+ }), Object.defineProperty(U, "_source", {
527
527
  configurable: !1,
528
528
  enumerable: !1,
529
529
  writable: !1,
530
530
  value: $
531
- }), Object.freeze && (Object.freeze(J.props), Object.freeze(J)), J;
531
+ }), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
532
532
  };
533
533
  function h3(p, w, F, j, $) {
534
534
  {
535
- var s1, K = {}, J = null, L1 = null;
536
- F !== void 0 && (Bn(F), J = "" + F), I3(w) && (Bn(w.key), J = "" + w.key), f3(w) && (L1 = w.ref, E3(w, $));
535
+ var s1, K = {}, U = null, L1 = null;
536
+ F !== void 0 && (Bn(F), U = "" + F), I3(w) && (Bn(w.key), U = "" + w.key), f3(w) && (L1 = w.ref, E3(w, $));
537
537
  for (s1 in w)
538
538
  xe.call(w, s1) && !g3.hasOwnProperty(s1) && (K[s1] = w[s1]);
539
539
  if (p && p.defaultProps) {
@@ -541,11 +541,11 @@ function L3() {
541
541
  for (s1 in E1)
542
542
  K[s1] === void 0 && (K[s1] = E1[s1]);
543
543
  }
544
- if (J || L1) {
544
+ if (U || L1) {
545
545
  var b1 = typeof p == "function" ? p.displayName || p.name || "Unknown" : p;
546
- J && p3(K, b1), L1 && m3(K, b1);
546
+ U && p3(K, b1), L1 && m3(K, b1);
547
547
  }
548
- return b3(p, J, L1, $, j, Te.current, K);
548
+ return b3(p, U, L1, $, j, Te.current, K);
549
549
  }
550
550
  }
551
551
  var rt = h.ReactCurrentOwner, Rn = h.ReactDebugCurrentFrame;
@@ -668,12 +668,12 @@ Check the top-level render call using <` + F + ">.");
668
668
  {
669
669
  var K = P(p);
670
670
  if (!K) {
671
- var J = "";
672
- (p === void 0 || typeof p == "object" && p !== null && Object.keys(p).length === 0) && (J += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
671
+ var U = "";
672
+ (p === void 0 || typeof p == "object" && p !== null && Object.keys(p).length === 0) && (U += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
673
673
  var L1 = v3($);
674
- L1 ? J += L1 : J += xn();
674
+ L1 ? U += L1 : U += xn();
675
675
  var E1;
676
- p === null ? E1 = "null" : me(p) ? E1 = "array" : p !== void 0 && p.$$typeof === t ? (E1 = "<" + (G(p.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : E1 = typeof p, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E1, J);
676
+ p === null ? E1 = "null" : me(p) ? E1 = "array" : p !== void 0 && p.$$typeof === t ? (E1 = "<" + (G(p.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : E1 = typeof p, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E1, U);
677
677
  }
678
678
  var b1 = h3(p, w, F, $, s1);
679
679
  if (b1 == null)
@@ -1876,10 +1876,10 @@ let R0 = "div", x0 = ve.RenderStrategy | ve.Static, w0 = f1(function(e, t) {
1876
1876
  onUpdate: n1((L, W, Z) => {
1877
1877
  W === "Dialog" && O1(L, {
1878
1878
  [Rt.Add]() {
1879
- c.current.add(Z), s((U) => U + 1);
1879
+ c.current.add(Z), s((J) => J + 1);
1880
1880
  },
1881
1881
  [Rt.Remove]() {
1882
- c.current.add(Z), s((U) => U - 1);
1882
+ c.current.add(Z), s((J) => J - 1);
1883
1883
  }
1884
1884
  });
1885
1885
  })
@@ -2353,21 +2353,21 @@ let e5 = "div", t5 = f1(function(e, t) {
2353
2353
  case c1.ArrowLeft:
2354
2354
  case c1.ArrowUp:
2355
2355
  if (x.preventDefault(), x.stopPropagation(), K1(W, x1.Previous | x1.WrapAround) === ge.Success) {
2356
- let Z = C.find((U) => U.element.current === (L == null ? void 0 : L.activeElement));
2356
+ let Z = C.find((J) => J.element.current === (L == null ? void 0 : L.activeElement));
2357
2357
  Z && S(Z.propsRef.current.value);
2358
2358
  }
2359
2359
  break;
2360
2360
  case c1.ArrowRight:
2361
2361
  case c1.ArrowDown:
2362
2362
  if (x.preventDefault(), x.stopPropagation(), K1(W, x1.Next | x1.WrapAround) === ge.Success) {
2363
- let Z = C.find((U) => U.element.current === (L == null ? void 0 : L.activeElement));
2363
+ let Z = C.find((J) => J.element.current === (L == null ? void 0 : L.activeElement));
2364
2364
  Z && S(Z.propsRef.current.value);
2365
2365
  }
2366
2366
  break;
2367
2367
  case c1.Space:
2368
2368
  {
2369
2369
  x.preventDefault(), x.stopPropagation();
2370
- let Z = C.find((U) => U.element.current === (L == null ? void 0 : L.activeElement));
2370
+ let Z = C.find((J) => J.element.current === (L == null ? void 0 : L.activeElement));
2371
2371
  Z && S(Z.propsRef.current.value);
2372
2372
  }
2373
2373
  break;
@@ -4535,16 +4535,16 @@ const g4 = function(e, t) {
4535
4535
  function G() {
4536
4536
  return c.current.openEvent ? ["click", "mousedown"].includes(c.current.openEvent.type) : !1;
4537
4537
  }
4538
- function x(U) {
4538
+ function x(J) {
4539
4539
  if (clearTimeout(b.current), R.current = !1, o && Q.current !== "mouse" || a > 0 && Ct(h.current, "open") === 0)
4540
4540
  return;
4541
- c.current.openEvent = U;
4541
+ c.current.openEvent = J;
4542
4542
  const d1 = Ct(h.current, "open", Q.current);
4543
4543
  d1 ? b.current = setTimeout(() => {
4544
4544
  u(!0);
4545
4545
  }, d1) : u(!0);
4546
4546
  }
4547
- function D(U) {
4547
+ function D(J) {
4548
4548
  if (G())
4549
4549
  return;
4550
4550
  const d1 = Ce(C.floating.current);
@@ -4552,8 +4552,8 @@ const g4 = function(e, t) {
4552
4552
  clearTimeout(b.current), v.current && d1.removeEventListener("pointermove", v.current), v.current = m.current({
4553
4553
  ...e,
4554
4554
  tree: I,
4555
- x: U.clientX,
4556
- y: U.clientY,
4555
+ x: J.clientX,
4556
+ y: J.clientY,
4557
4557
  onClose() {
4558
4558
  H(), T(), P();
4559
4559
  }
@@ -4562,17 +4562,17 @@ const g4 = function(e, t) {
4562
4562
  }
4563
4563
  P();
4564
4564
  }
4565
- function L(U) {
4565
+ function L(J) {
4566
4566
  G() || m.current == null || m.current({
4567
4567
  ...e,
4568
4568
  tree: I,
4569
- x: U.clientX,
4570
- y: U.clientY,
4569
+ x: J.clientX,
4570
+ y: J.clientY,
4571
4571
  leave: !0,
4572
4572
  onClose() {
4573
4573
  H(), T(), P();
4574
4574
  }
4575
- })(U);
4575
+ })(J);
4576
4576
  }
4577
4577
  const W = C.floating.current, Z = C.domReference.current;
4578
4578
  if (be(Z))
@@ -5743,11 +5743,11 @@ function pe(e, t) {
5743
5743
  }
5744
5744
  var H4 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
5745
5745
  function on(e) {
5746
- var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, a = o === void 0 ? null : o, l = e.inputValue, s = e.menuIsOpen, u = e.onChange, c = e.onInputChange, d = e.onMenuClose, C = e.onMenuOpen, f = e.value, I = pe(e, H4), g = _(l !== void 0 ? l : n), m = w1(g, 2), h = m[0], B = m[1], Q = _(s !== void 0 ? s : r), b = w1(Q, 2), v = b[0], y = b[1], R = _(f !== void 0 ? f : a), S = w1(R, 2), V = S[0], P = S[1], T = g1(function(Z, U) {
5747
- typeof u == "function" && u(Z, U), P(Z);
5748
- }, [u]), H = g1(function(Z, U) {
5746
+ var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, a = o === void 0 ? null : o, l = e.inputValue, s = e.menuIsOpen, u = e.onChange, c = e.onInputChange, d = e.onMenuClose, C = e.onMenuOpen, f = e.value, I = pe(e, H4), g = _(l !== void 0 ? l : n), m = w1(g, 2), h = m[0], B = m[1], Q = _(s !== void 0 ? s : r), b = w1(Q, 2), v = b[0], y = b[1], R = _(f !== void 0 ? f : a), S = w1(R, 2), V = S[0], P = S[1], T = g1(function(Z, J) {
5747
+ typeof u == "function" && u(Z, J), P(Z);
5748
+ }, [u]), H = g1(function(Z, J) {
5749
5749
  var d1;
5750
- typeof c == "function" && (d1 = c(Z, U)), B(d1 !== void 0 ? d1 : Z);
5750
+ typeof c == "function" && (d1 = c(Z, J)), B(d1 !== void 0 ? d1 : Z);
5751
5751
  }, [c]), G = g1(function() {
5752
5752
  typeof C == "function" && C(), y(!0);
5753
5753
  }, [C]), x = g1(function() {
@@ -6604,7 +6604,7 @@ function So() {
6604
6604
  }
6605
6605
  }
6606
6606
  var v = s, y = u, R = l, S = a, V = t, P = c, T = i, H = I, G = f, x = n, D = o, L = r, W = d, Z = !1;
6607
- function U(O) {
6607
+ function J(O) {
6608
6608
  return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), d1(O) || b(O) === s;
6609
6609
  }
6610
6610
  function d1(O) {
@@ -6643,7 +6643,7 @@ function So() {
6643
6643
  function ce(O) {
6644
6644
  return b(O) === d;
6645
6645
  }
6646
- i1.AsyncMode = v, i1.ConcurrentMode = y, i1.ContextConsumer = R, i1.ContextProvider = S, i1.Element = V, i1.ForwardRef = P, i1.Fragment = T, i1.Lazy = H, i1.Memo = G, i1.Portal = x, i1.Profiler = D, i1.StrictMode = L, i1.Suspense = W, i1.isAsyncMode = U, i1.isConcurrentMode = d1, i1.isContextConsumer = H1, i1.isContextProvider = u1, i1.isElement = I1, i1.isForwardRef = F1, i1.isFragment = Q1, i1.isLazy = y1, i1.isMemo = R1, i1.isPortal = N1, i1.isProfiler = j1, i1.isStrictMode = _1, i1.isSuspense = ce, i1.isValidElementType = Q, i1.typeOf = b;
6646
+ i1.AsyncMode = v, i1.ConcurrentMode = y, i1.ContextConsumer = R, i1.ContextProvider = S, i1.Element = V, i1.ForwardRef = P, i1.Fragment = T, i1.Lazy = H, i1.Memo = G, i1.Portal = x, i1.Profiler = D, i1.StrictMode = L, i1.Suspense = W, i1.isAsyncMode = J, i1.isConcurrentMode = d1, i1.isContextConsumer = H1, i1.isContextProvider = u1, i1.isElement = I1, i1.isForwardRef = F1, i1.isFragment = Q1, i1.isLazy = y1, i1.isMemo = R1, i1.isPortal = N1, i1.isProfiler = j1, i1.isStrictMode = _1, i1.isSuspense = ce, i1.isValidElementType = Q, i1.typeOf = b;
6647
6647
  }()), i1;
6648
6648
  }
6649
6649
  (function(e) {
@@ -8168,9 +8168,9 @@ var ya = process.env.NODE_ENV === "production" ? {
8168
8168
  }, [c]), R = z(function() {
8169
8169
  var x = "";
8170
8170
  if (n && y.onChange) {
8171
- var D = n.option, L = n.options, W = n.removedValue, Z = n.removedValues, U = n.value, d1 = function(R1) {
8171
+ var D = n.option, L = n.options, W = n.removedValue, Z = n.removedValues, J = n.value, d1 = function(R1) {
8172
8172
  return Array.isArray(R1) ? null : R1;
8173
- }, H1 = W || D || d1(U), u1 = H1 ? d(H1) : "", I1 = L || Z || void 0, F1 = I1 ? I1.map(d) : [], Q1 = t1({
8173
+ }, H1 = W || D || d1(J), u1 = H1 ? d(H1) : "", I1 = L || Z || void 0, F1 = I1 ? I1.map(d) : [], Q1 = t1({
8174
8174
  isDisabled: H1 && I(H1, l),
8175
8175
  label: u1,
8176
8176
  labels: F1
@@ -9592,14 +9592,14 @@ var l3 = function(t) {
9592
9592
  children: Z
9593
9593
  });
9594
9594
  } else {
9595
- var U = G({
9595
+ var J = G({
9596
9596
  inputValue: B
9597
9597
  });
9598
- if (U === null)
9598
+ if (J === null)
9599
9599
  return null;
9600
9600
  W = /* @__PURE__ */ A(C, {
9601
9601
  ...I,
9602
- children: U
9602
+ children: J
9603
9603
  });
9604
9604
  }
9605
9605
  var d1 = {
@@ -10046,7 +10046,7 @@ var r7 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
10046
10046
  function s3(e) {
10047
10047
  var t = e.defaultOptions, n = t === void 0 ? !1 : t, i = e.cacheOptions, r = i === void 0 ? !1 : i, o = e.loadOptions;
10048
10048
  e.options;
10049
- var a = e.isLoading, l = a === void 0 ? !1 : a, s = e.onInputChange, u = e.filterOption, c = u === void 0 ? null : u, d = pe(e, r7), C = d.inputValue, f = X(void 0), I = X(!1), g = _(Array.isArray(n) ? n : void 0), m = w1(g, 2), h = m[0], B = m[1], Q = _(typeof C < "u" ? C : ""), b = w1(Q, 2), v = b[0], y = b[1], R = _(n === !0), S = w1(R, 2), V = S[0], P = S[1], T = _(void 0), H = w1(T, 2), G = H[0], x = H[1], D = _([]), L = w1(D, 2), W = L[0], Z = L[1], U = _(!1), d1 = w1(U, 2), H1 = d1[0], u1 = d1[1], I1 = _({}), F1 = w1(I1, 2), Q1 = F1[0], y1 = F1[1], R1 = _(void 0), N1 = w1(R1, 2), j1 = N1[0], _1 = N1[1], ce = _(void 0), O = w1(ce, 2), te = O[0], z1 = O[1];
10049
+ var a = e.isLoading, l = a === void 0 ? !1 : a, s = e.onInputChange, u = e.filterOption, c = u === void 0 ? null : u, d = pe(e, r7), C = d.inputValue, f = X(void 0), I = X(!1), g = _(Array.isArray(n) ? n : void 0), m = w1(g, 2), h = m[0], B = m[1], Q = _(typeof C < "u" ? C : ""), b = w1(Q, 2), v = b[0], y = b[1], R = _(n === !0), S = w1(R, 2), V = S[0], P = S[1], T = _(void 0), H = w1(T, 2), G = H[0], x = H[1], D = _([]), L = w1(D, 2), W = L[0], Z = L[1], J = _(!1), d1 = w1(J, 2), H1 = d1[0], u1 = d1[1], I1 = _({}), F1 = w1(I1, 2), Q1 = F1[0], y1 = F1[1], R1 = _(void 0), N1 = w1(R1, 2), j1 = N1[0], _1 = N1[1], ce = _(void 0), O = w1(ce, 2), te = O[0], z1 = O[1];
10050
10050
  r !== te && (y1({}), z1(r)), n !== j1 && (B(Array.isArray(n) ? n : void 0), _1(n)), A1(function() {
10051
10051
  return I.current = !0, function() {
10052
10052
  I.current = !1;
@@ -11101,7 +11101,13 @@ function E7({
11101
11101
  }) {
11102
11102
  const s = X(null), [u, c] = _(a != null ? a : ""), [d, C] = _(!1), f = ({
11103
11103
  target: { value: b }
11104
- }) => (c(b), o == null ? void 0 : o(b)), I = () => (c((b) => b ? b = Number(b) + 1 : b = 1), o == null ? void 0 : o(String(u))), g = () => (c((b) => b ? b = Number(b) - 1 : b = 0), o == null ? void 0 : o(String(u))), m = () => {
11104
+ }) => (c(b), o == null ? void 0 : o(b)), I = () => {
11105
+ const b = Number(u) + 1;
11106
+ return c(String(b)), o == null ? void 0 : o(String(b));
11107
+ }, g = () => {
11108
+ const b = Number(u) - 1;
11109
+ return c(String(b)), o == null ? void 0 : o(String(b));
11110
+ }, m = () => {
11105
11111
  var b;
11106
11112
  return c(""), o == null || o(""), s && ((b = s.current) == null ? void 0 : b.focus());
11107
11113
  }, h = () => e ? "disabled" : "subdued", B = () => e ? "disabled" : d && t === "password" ? "default" : "subdued", Q = M(
@@ -11240,21 +11246,26 @@ const D7 = le((e, t) => {
11240
11246
  }) : /* @__PURE__ */ A(h1, {
11241
11247
  kind: c,
11242
11248
  color: P()
11243
- }), W = z(() => j2([y, t]), [y, t]);
11249
+ }), W = z(() => j2([y, t]), [y, t]), Z = {
11250
+ id: n,
11251
+ name: i,
11252
+ ref: W,
11253
+ placeholder: a,
11254
+ value: v,
11255
+ onChange: R,
11256
+ readOnly: o,
11257
+ disabled: r,
11258
+ autoComplete: l,
11259
+ type: H ? "text" : s,
11260
+ className: D,
11261
+ ...s === "number" && {
11262
+ onWheel: (J) => J.currentTarget.blur()
11263
+ }
11264
+ };
11244
11265
  return /* @__PURE__ */ N(B1, {
11245
11266
  children: [/* @__PURE__ */ N(Me, {
11246
11267
  renderInput: /* @__PURE__ */ A("input", {
11247
- id: n,
11248
- name: i,
11249
- ref: W,
11250
- value: v,
11251
- placeholder: a,
11252
- onChange: R,
11253
- readOnly: o,
11254
- disabled: r,
11255
- autoComplete: l,
11256
- type: H ? "text" : s,
11257
- className: D
11268
+ ...Z
11258
11269
  }),
11259
11270
  renderIconLeft: u && /* @__PURE__ */ A(h1, {
11260
11271
  kind: u,