@scbt-ecom/ui 0.59.0 → 0.59.1

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/hooks.js CHANGED
@@ -1,7 +1,7 @@
1
- import { d as I, a as R, b as A, c as L, e as O, u as V } from "./useDebounce-CK7Ghu8F.js";
1
+ import { d as I, b as R, c as A, e as L, f as O, a as V } from "./useDebounce-QgEEiWs9.js";
2
2
  import * as p from "react";
3
3
  import { useState as m, useEffect as b } from "react";
4
- import { u as F } from "./useFieldsProgress-BeFcsVuB.js";
4
+ import { u as F } from "./useFieldsProgress-BXzIWmGP.js";
5
5
  const f = (o = !1) => {
6
6
  const [s, e] = p.useState(o);
7
7
  return [s, (a) => e((t) => a ?? !t)];
@@ -6,7 +6,7 @@ var ge = (t, e, n) => (_u(t, e, "read from private field"), n ? n.call(t) : e.ge
6
6
  import { c as te, a as DT, T as af } from "./typeGuards-Bhdr9KYW.js";
7
7
  import * as R from "react";
8
8
  import ie, { forwardRef as ut, createContext as vt, useContext as We, useCallback as Ce, useRef as Se, useLayoutEffect as di, useState as je, useEffect as _e, useMemo as Ie, useId as ln, useInsertionEffect as J0, Children as Lo, isValidElement as Yo, Fragment as An, createElement as Jp, Component as RT, cloneElement as Xp, useReducer as Qp, useSyncExternalStore as NT, createRef as IT, memo as X0, useImperativeHandle as jT, useDebugValue as Q0 } from "react";
9
- import { u as LT, a as Uc, g as hn, e as _T, b as FT } from "./useDebounce-CK7Ghu8F.js";
9
+ import { a as LT, b as Uc, g as hn, f as _T, c as FT } from "./useDebounce-QgEEiWs9.js";
10
10
  import { g as BT } from "./_commonjsHelpers-C6fGbg64.js";
11
11
  import * as sa from "react-dom";
12
12
  import Z0, { createPortal as Kc, flushSync as Ii } from "react-dom";
@@ -17783,35 +17783,38 @@ function rB(t, e) {
17783
17783
  let iB = zn(rB), oB = Object.assign(iB, {});
17784
17784
  function So(t, e, n) {
17785
17785
  let r = n.initialDeps ?? [], i;
17786
- return () => {
17787
- var o, s, a, l;
17788
- let c;
17789
- n.key && ((o = n.debug) != null && o.call(n)) && (c = Date.now());
17790
- const u = t();
17791
- if (!(u.length !== r.length || u.some((p, h) => r[h] !== p)))
17786
+ function o() {
17787
+ var s, a, l, c;
17788
+ let u;
17789
+ n.key && ((s = n.debug) != null && s.call(n)) && (u = Date.now());
17790
+ const d = t();
17791
+ if (!(d.length !== r.length || d.some((h, m) => r[m] !== h)))
17792
17792
  return i;
17793
- r = u;
17794
- let f;
17795
- if (n.key && ((s = n.debug) != null && s.call(n)) && (f = Date.now()), i = e(...u), n.key && ((a = n.debug) != null && a.call(n))) {
17796
- const p = Math.round((Date.now() - c) * 100) / 100, h = Math.round((Date.now() - f) * 100) / 100, m = h / 16, g = (v, y) => {
17797
- for (v = String(v); v.length < y; )
17798
- v = " " + v;
17799
- return v;
17793
+ r = d;
17794
+ let p;
17795
+ if (n.key && ((a = n.debug) != null && a.call(n)) && (p = Date.now()), i = e(...d), n.key && ((l = n.debug) != null && l.call(n))) {
17796
+ const h = Math.round((Date.now() - u) * 100) / 100, m = Math.round((Date.now() - p) * 100) / 100, g = m / 16, v = (y, S) => {
17797
+ for (y = String(y); y.length < S; )
17798
+ y = " " + y;
17799
+ return y;
17800
17800
  };
17801
17801
  console.info(
17802
- `%c⏱ ${g(h, 5)} /${g(p, 5)} ms`,
17802
+ `%c⏱ ${v(m, 5)} /${v(h, 5)} ms`,
17803
17803
  `
17804
17804
  font-size: .6rem;
17805
17805
  font-weight: bold;
17806
17806
  color: hsl(${Math.max(
17807
17807
  0,
17808
- Math.min(120 - 120 * m, 120)
17808
+ Math.min(120 - 120 * g, 120)
17809
17809
  )}deg 100% 31%);`,
17810
17810
  n == null ? void 0 : n.key
17811
17811
  );
17812
17812
  }
17813
- return (l = n == null ? void 0 : n.onChange) == null || l.call(n, i), i;
17814
- };
17813
+ return (c = n == null ? void 0 : n.onChange) == null || c.call(n, i), i;
17814
+ }
17815
+ return o.updateDeps = (s) => {
17816
+ r = s;
17817
+ }, o;
17815
17818
  }
17816
17819
  function md(t, e) {
17817
17820
  if (t === void 0)
@@ -17959,7 +17962,7 @@ class hB {
17959
17962
  isScrollingResetDelay: 150,
17960
17963
  enabled: !0,
17961
17964
  isRtl: !1,
17962
- useScrollendEvent: !0,
17965
+ useScrollendEvent: !1,
17963
17966
  useAnimationFrameWithResizeObserver: !1,
17964
17967
  ...n
17965
17968
  };
@@ -18091,7 +18094,7 @@ class hB {
18091
18094
  () => {
18092
18095
  let n = null, r = null;
18093
18096
  const i = this.calculateRange();
18094
- return i && (n = i.startIndex, r = i.endIndex), [
18097
+ return i && (n = i.startIndex, r = i.endIndex), this.maybeNotify.updateDeps([this.isScrolling, n, r]), [
18095
18098
  this.options.rangeExtractor,
18096
18099
  this.options.overscan,
18097
18100
  this.options.count,
@@ -42230,40 +42233,40 @@ const wT = xT(!1, !0), kT = xT(!0, !0), M9 = Xt.create({
42230
42233
  export {
42231
42234
  PI as A,
42232
42235
  AO as B,
42233
- LG as C,
42236
+ Fh as C,
42234
42237
  q_ as D,
42235
42238
  IG as H,
42236
- $e as I,
42239
+ L_ as I,
42237
42240
  DF as K,
42238
42241
  dx as L,
42239
42242
  dd as N,
42240
42243
  NG as O,
42241
- OG as P,
42244
+ dt as P,
42242
42245
  TG as R,
42243
42246
  w1 as S,
42244
42247
  Bt as U,
42245
42248
  Ff as V,
42246
- fu as a,
42247
- jG as b,
42249
+ po as a,
42250
+ cr as b,
42248
42251
  fi as c,
42249
- DO as d,
42250
- lo as e,
42251
- RG as f,
42252
- po as g,
42253
- cr as h,
42254
- $h as i,
42252
+ $h as d,
42253
+ f1 as e,
42254
+ j_ as f,
42255
+ Xe as g,
42256
+ ys as h,
42257
+ $e as i,
42255
42258
  P as j,
42256
- dt as k,
42257
- f1 as l,
42258
- j_ as m,
42259
- L_ as n,
42260
- Xe as o,
42261
- ys as p,
42262
- Ox as q,
42263
- pa as r,
42264
- Fh as s,
42265
- $k as t,
42259
+ Ox as k,
42260
+ OG as l,
42261
+ pa as m,
42262
+ DO as n,
42263
+ $k as o,
42264
+ fu as p,
42265
+ RG as q,
42266
+ jG as r,
42267
+ LG as s,
42268
+ lo as t,
42266
42269
  tm as u,
42267
42270
  pV as v
42268
42271
  };
42269
- //# sourceMappingURL=index-Bnb3sS3q.js.map
42272
+ //# sourceMappingURL=index-mSNqlGXI.js.map