1mpacto-react-ui 1.0.7 → 1.0.8

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/index.mjs CHANGED
@@ -2879,7 +2879,7 @@ const YD = {
2879
2879
  let _0 = !1;
2880
2880
  const KD = (e = YD) => {
2881
2881
  _0 || (Qg.config(e), _0 = !0);
2882
- }, zt = (e, t) => (_0 || KD(), new Qg(e, t));
2882
+ }, Vt = (e, t) => (_0 || KD(), new Qg(e, t));
2883
2883
  var qD = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2884
2884
  function JD(e) {
2885
2885
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -14413,7 +14413,7 @@ function Gu() {
14413
14413
  var WB = Ye;
14414
14414
  const Wa = /* @__PURE__ */ JD(WB), Xi = (e) => {
14415
14415
  try {
14416
- return zt(e).isFinite();
14416
+ return Vt(e).isFinite();
14417
14417
  } catch {
14418
14418
  return !1;
14419
14419
  }
@@ -14427,16 +14427,16 @@ const Wa = /* @__PURE__ */ JD(WB), Xi = (e) => {
14427
14427
  return !1;
14428
14428
  };
14429
14429
  function yp(e, t) {
14430
- const { minimumFractionDigits: n, instance: r = !1 } = t || {};
14431
- let { maximumFractionDigits: i = 2 } = t || {};
14432
- Xi(e) || (e = "0"), n !== void 0 && n > i && (i = n);
14433
- let a = zt(e).toFixed(i);
14434
- if (a.includes(".")) {
14435
- const [o, s] = a.split(".");
14436
- let l = s.replace(/0+$/, "");
14437
- n !== void 0 && n >= 0 && (l = l.padEnd(n, "0")), a = l ? `${o}.${l}` : o;
14430
+ const { minimumFractionDigits: n, instance: r = !1, ignoreFractionLimit: i = !1 } = t || {};
14431
+ let { maximumFractionDigits: a = 2 } = t || {};
14432
+ Xi(e) || (e = "0"), !i && n !== void 0 && n > a && (a = n);
14433
+ let o = "";
14434
+ if (i ? o = Vt(e).toString() : o = Vt(e).toFixed(a), o.includes(".") && !i) {
14435
+ const [s, l] = o.split(".");
14436
+ let u = l.replace(/0+$/, "");
14437
+ n !== void 0 && n >= 0 && (u = u.padEnd(n, "0")), o = u ? `${s}.${u}` : s;
14438
14438
  }
14439
- return r ? zt(a) : a;
14439
+ return r ? Vt(o) : o;
14440
14440
  }
14441
14441
  const t4 = (e, t = 2) => {
14442
14442
  let n = parseFloat(zB(e) ? e : 0);
@@ -14639,32 +14639,33 @@ function fZ(e, t) {
14639
14639
  return Wa.util.encode64(s);
14640
14640
  }
14641
14641
  function hZ(e, t = {}) {
14642
- const { locale: n, currency: r, minimumFractionDigits: i, withSpace: a, currencyDisplay: o } = t;
14643
- let { maximumFractionDigits: s = 2 } = t;
14644
- i !== void 0 && i > s && (s = i);
14645
- const l = yp(e, {
14646
- maximumFractionDigits: s
14647
- }), [u, c = ""] = l.split("."), d = u.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
14648
- let h = c.slice(0, s);
14649
- i === void 0 ? h = h.replace(/0+$/, "") : h && i > 0 && (h = h.padEnd(i, "0"));
14650
- let f = h ? `${d},${h}` : d;
14642
+ const { locale: n, currency: r, minimumFractionDigits: i, withSpace: a, currencyDisplay: o, ignoreFractionLimit: s = !1 } = t;
14643
+ let { maximumFractionDigits: l = 2 } = t;
14644
+ !s && i !== void 0 && i > l && (l = i);
14645
+ const u = yp(e, {
14646
+ maximumFractionDigits: l,
14647
+ ignoreFractionLimit: s
14648
+ }), [c, d = ""] = u.split("."), h = c.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
14649
+ let f = "";
14650
+ s ? f = d : f = d.slice(0, l), s || (i === void 0 ? f = f.replace(/0+$/, "") : f && i > 0 && (f = f.padEnd(i, "0")));
14651
+ let g = f ? `${h},${f}` : h;
14651
14652
  if (!n || !r)
14652
- return f;
14653
- const p = {
14653
+ return g;
14654
+ const m = {
14654
14655
  "id-ID": { symbol: "Rp", code: "IDR", name: "Rupiah", negativePosition: "start" },
14655
14656
  "en-US": { symbol: "$", code: "USD", name: "US Dollar", negativePosition: "middle" },
14656
14657
  "ja-JP": { symbol: "¥", code: "JPY", name: "Yen", negativePosition: "middle" }
14657
14658
  // Add more locales as needed
14658
- }[n] || { symbol: "", code: r, name: r }, m = {
14659
- symbol: p.symbol,
14660
- code: p.code,
14661
- name: p.name
14662
- }[o || "symbol"], b = f.includes("-");
14663
- return f = p.negativePosition === "start" ? f.replace("-", "") : f, a ? `${p.negativePosition === "start" && b ? "-" : ""}${m} ${f}` : `${p.negativePosition === "start" && b ? "-" : ""}${m}${f}`;
14659
+ }[n] || { symbol: "", code: r, name: r }, b = {
14660
+ symbol: m.symbol,
14661
+ code: m.code,
14662
+ name: m.name
14663
+ }[o || "symbol"], v = g.includes("-");
14664
+ return g = m.negativePosition === "start" ? g.replace("-", "") : g, a ? `${m.negativePosition === "start" && v ? "-" : ""}${b} ${g}` : `${m.negativePosition === "start" && v ? "-" : ""}${b}${g}`;
14664
14665
  }
14665
14666
  function gZ(e) {
14666
14667
  if (!Xi(e)) return "0";
14667
- const t = typeof e == "number" ? zt(e).toString() : e;
14668
+ const t = typeof e == "number" ? Vt(e).toString() : e;
14668
14669
  if (!t.includes("."))
14669
14670
  return t;
14670
14671
  const [n, r] = t.split("."), i = r.replace(/0+$/, "");
@@ -15335,7 +15336,7 @@ function vZ(e, t) {
15335
15336
  name: "minBig",
15336
15337
  message: t || `Value must be greater than or equal to ${e}`,
15337
15338
  test(n) {
15338
- return n = wu(n), Xi(n) ? zt(n).gte(zt(e)) ? !0 : this.createError({
15339
+ return n = wu(n), Xi(n) ? Vt(n).gte(Vt(e)) ? !0 : this.createError({
15339
15340
  message: t || `Value must be greater than or equal to ${e}`
15340
15341
  }) : this.createError({
15341
15342
  message: t || "Invalid BigNumber value"
@@ -15348,7 +15349,7 @@ function yZ(e, t) {
15348
15349
  name: "maxBig",
15349
15350
  message: t || `Value must be less than or equal to ${e}`,
15350
15351
  test(n) {
15351
- return n = wu(n), Xi(n) ? zt(n).lte(zt(e)) ? !0 : this.createError({
15352
+ return n = wu(n), Xi(n) ? Vt(n).lte(Vt(e)) ? !0 : this.createError({
15352
15353
  message: t || `Value must be less than or equal to ${e}`
15353
15354
  }) : this.createError({
15354
15355
  message: t || "Invalid BigNumber value"
@@ -15361,7 +15362,7 @@ function xZ(e, t) {
15361
15362
  name: "moreThanBig",
15362
15363
  message: t || `Value must be greater than ${e}`,
15363
15364
  test(n) {
15364
- return n = wu(n), Xi(n) ? zt(n).gt(zt(e)) ? !0 : this.createError({
15365
+ return n = wu(n), Xi(n) ? Vt(n).gt(Vt(e)) ? !0 : this.createError({
15365
15366
  message: t || `Value must be greater than ${e}`
15366
15367
  }) : this.createError({
15367
15368
  message: t || "Invalid BigNumber value"
@@ -15374,7 +15375,7 @@ function CZ(e, t) {
15374
15375
  name: "lessThanBig",
15375
15376
  message: t || `Value must be less than ${e}`,
15376
15377
  test(n) {
15377
- return n = wu(n), Xi(n) ? zt(n).lt(zt(e)) ? !0 : this.createError({
15378
+ return n = wu(n), Xi(n) ? Vt(n).lt(Vt(e)) ? !0 : this.createError({
15378
15379
  message: t || `Value must be less than ${e}`
15379
15380
  }) : this.createError({
15380
15381
  message: t || "Invalid BigNumber value"
@@ -15391,7 +15392,7 @@ function EZ(e, t, n) {
15391
15392
  return this.createError({
15392
15393
  message: n || "Invalid BigNumber value"
15393
15394
  });
15394
- const i = zt(r), a = zt(e), o = zt(t);
15395
+ const i = Vt(r), a = Vt(e), o = Vt(t);
15395
15396
  return i.lt(a) || i.gt(o) ? this.createError({
15396
15397
  message: n || `Value must be between ${e} and ${t}`
15397
15398
  }) : !0;
@@ -15682,7 +15683,7 @@ function q1(e) {
15682
15683
  return e.map(q1);
15683
15684
  const t = {};
15684
15685
  for (const [n, r] of Object.entries(e))
15685
- typeof r == "number" || typeof r == "string" ? typeof r == "number" && !Number.isSafeInteger(r) || typeof r == "string" && /^-?\d+(?:\.\d+)?$/.test(r) ? t[n] = zt(r).toString() : t[n] = r : typeof r == "object" ? t[n] = q1(r) : t[n] = r;
15686
+ typeof r == "number" || typeof r == "string" ? typeof r == "number" && !Number.isSafeInteger(r) || typeof r == "string" && /^-?\d+(?:\.\d+)?$/.test(r) ? t[n] = Vt(r).toString() : t[n] = r : typeof r == "object" ? t[n] = q1(r) : t[n] = r;
15686
15687
  return t;
15687
15688
  }
15688
15689
  return e;
@@ -15691,7 +15692,7 @@ function J1(e) {
15691
15692
  if (typeof e == "object" && e !== null) {
15692
15693
  if (Array.isArray(e))
15693
15694
  return e.map(J1);
15694
- if (e instanceof zt)
15695
+ if (e instanceof Vt)
15695
15696
  return e.toString();
15696
15697
  const t = {};
15697
15698
  for (const [n, r] of Object.entries(e))
@@ -15700,7 +15701,7 @@ function J1(e) {
15700
15701
  }
15701
15702
  return e;
15702
15703
  }
15703
- const SZ = (e) => _R(e, null, (n) => typeof n == "number" && !Number.isSafeInteger(n) || typeof n == "string" && /^-?\d+(?:\.\d+)?$/.test(n) ? c4(n) ? parseFloat(n) : zt(n).toString() : n), YR = {
15704
+ const SZ = (e) => _R(e, null, (n) => typeof n == "number" && !Number.isSafeInteger(n) || typeof n == "string" && /^-?\d+(?:\.\d+)?$/.test(n) ? c4(n) ? parseFloat(n) : Vt(n).toString() : n), YR = {
15704
15705
  transparent: "transparent",
15705
15706
  black: "#212121",
15706
15707
  white: "#FFFFFF",
@@ -16357,7 +16358,7 @@ function qi(e) {
16357
16358
  function d4(e) {
16358
16359
  return e instanceof Node || e instanceof lr(e).Node;
16359
16360
  }
16360
- function Ht(e) {
16361
+ function Wt(e) {
16361
16362
  return e instanceof Element || e instanceof lr(e).Element;
16362
16363
  }
16363
16364
  function gn(e) {
@@ -16412,7 +16413,7 @@ function hr(e) {
16412
16413
  return lr(e).getComputedStyle(e);
16413
16414
  }
16414
16415
  function wf(e) {
16415
- return Ht(e) ? {
16416
+ return Wt(e) ? {
16416
16417
  scrollLeft: e.scrollLeft,
16417
16418
  scrollTop: e.scrollTop
16418
16419
  } : {
@@ -17275,7 +17276,7 @@ function E4(e) {
17275
17276
  };
17276
17277
  }
17277
17278
  function Bp(e) {
17278
- return Ht(e) ? e : e.contextElement;
17279
+ return Wt(e) ? e : e.contextElement;
17279
17280
  }
17280
17281
  function us(e) {
17281
17282
  const t = Bp(e);
@@ -17307,11 +17308,11 @@ function Io(e, t, n, r) {
17307
17308
  t === void 0 && (t = !1), n === void 0 && (n = !1);
17308
17309
  const i = e.getBoundingClientRect(), a = Bp(e);
17309
17310
  let o = Ra(1);
17310
- t && (r ? Ht(r) && (o = us(r)) : o = us(e));
17311
+ t && (r ? Wt(r) && (o = us(r)) : o = us(e));
17311
17312
  const s = X9(a, n, r) ? S4(a) : Ra(0);
17312
17313
  let l = (i.left + s.x) / o.x, u = (i.top + s.y) / o.y, c = i.width / o.x, d = i.height / o.y;
17313
17314
  if (a) {
17314
- const h = lr(a), f = r && Ht(r) ? lr(r) : r;
17315
+ const h = lr(a), f = r && Wt(r) ? lr(r) : r;
17315
17316
  let g = h, p = g.frameElement;
17316
17317
  for (; p && r && f !== g; ) {
17317
17318
  const m = us(p), b = p.getBoundingClientRect(), v = hr(p), x = b.left + (p.clientLeft + parseFloat(v.paddingLeft)) * m.x, C = b.top + (p.clientTop + parseFloat(v.paddingTop)) * m.y;
@@ -17398,7 +17399,7 @@ function ab(e, t, n) {
17398
17399
  r = q9(e, n);
17399
17400
  else if (t === "document")
17400
17401
  r = K9(qi(e));
17401
- else if (Ht(t))
17402
+ else if (Wt(t))
17402
17403
  r = J9(t, n);
17403
17404
  else {
17404
17405
  const i = S4(e);
@@ -17412,16 +17413,16 @@ function ab(e, t, n) {
17412
17413
  }
17413
17414
  function I4(e, t) {
17414
17415
  const n = Zi(e);
17415
- return n === t || !Ht(n) || Ba(n) ? !1 : hr(n).position === "fixed" || I4(n, t);
17416
+ return n === t || !Wt(n) || Ba(n) ? !1 : hr(n).position === "fixed" || I4(n, t);
17416
17417
  }
17417
17418
  function Q9(e, t) {
17418
17419
  const n = t.get(e);
17419
17420
  if (n)
17420
17421
  return n;
17421
- let r = Ia(e, [], !1).filter((s) => Ht(s) && Na(s) !== "body"), i = null;
17422
+ let r = Ia(e, [], !1).filter((s) => Wt(s) && Na(s) !== "body"), i = null;
17422
17423
  const a = hr(e).position === "fixed";
17423
17424
  let o = a ? Zi(e) : e;
17424
- for (; Ht(o) && !Ba(o); ) {
17425
+ for (; Wt(o) && !Ba(o); ) {
17425
17426
  const s = hr(o), l = Ip(o);
17426
17427
  !l && s.position === "fixed" && (i = null), (a ? !l && !i : !l && s.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Iu(o) && !l && I4(e, o)) ? r = r.filter((c) => c !== o) : i = s, o = Zi(o);
17427
17428
  }
@@ -17488,7 +17489,7 @@ function _4(e, t) {
17488
17489
  if (!gn(e)) {
17489
17490
  let i = Zi(e);
17490
17491
  for (; i && !Ba(i); ) {
17491
- if (Ht(i) && !dh(i))
17492
+ if (Wt(i) && !dh(i))
17492
17493
  return i;
17493
17494
  i = Zi(i);
17494
17495
  }
@@ -17523,7 +17524,7 @@ const a$ = {
17523
17524
  getClientRects: Y9,
17524
17525
  getDimensions: t$,
17525
17526
  getScale: us,
17526
- isElement: Ht,
17527
+ isElement: Wt,
17527
17528
  isRTL: i$
17528
17529
  };
17529
17530
  function o$(e, t) {
@@ -18127,7 +18128,7 @@ function M$(e) {
18127
18128
  }, [t, r]), Ln(() => {
18128
18129
  if (!r || s.current) return;
18129
18130
  let l = n || (i == null ? void 0 : i.portalNode);
18130
- l && !Ht(l) && (l = l.current), l = l || document.body;
18131
+ l && !Wt(l) && (l = l.current), l = l || document.body;
18131
18132
  let u = null;
18132
18133
  t && (u = document.createElement("div"), u.id = t, l.appendChild(u));
18133
18134
  const c = document.createElement("div");
@@ -18545,14 +18546,14 @@ function U$(e, t) {
18545
18546
  if (x.current = !1, u === "click" && A || B || typeof b == "function" && !b(R))
18546
18547
  return;
18547
18548
  const O = ro(R), W = "[" + zl("inert") + "]", V = Mr(i.floating).querySelectorAll(W);
18548
- let z = Ht(O) ? O : null;
18549
+ let z = Wt(O) ? O : null;
18549
18550
  for (; z && !Ba(z); ) {
18550
18551
  const G = Zi(z);
18551
- if (Ba(G) || !Ht(G))
18552
+ if (Ba(G) || !Wt(G))
18552
18553
  break;
18553
18554
  z = G;
18554
18555
  }
18555
- if (V.length && Ht(O) && !u9(O) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
18556
+ if (V.length && Wt(O) && !u9(O) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
18556
18557
  !nr(O, i.floating) && // If the target root element contains none of the markers, then the
18557
18558
  // element was injected after the floating element rendered.
18558
18559
  Array.from(V).every((G) => !nr(z, G)))
@@ -18600,7 +18601,7 @@ function U$(e, t) {
18600
18601
  const $ = Mr(i.floating);
18601
18602
  s && $.addEventListener("keydown", w ? S : y, w), b && $.addEventListener(u, T ? _ : I, T);
18602
18603
  let B = [];
18603
- return h && (Ht(i.domReference) && (B = Ia(i.domReference)), Ht(i.floating) && (B = B.concat(Ia(i.floating))), !Ht(i.reference) && i.reference && i.reference.contextElement && (B = B.concat(Ia(i.reference.contextElement)))), B = B.filter((A) => {
18604
+ return h && (Wt(i.domReference) && (B = Ia(i.domReference)), Wt(i.floating) && (B = B.concat(Ia(i.floating))), !Wt(i.reference) && i.reference && i.reference.contextElement && (B = B.concat(Ia(i.reference.contextElement)))), B = B.filter((A) => {
18604
18605
  var O;
18605
18606
  return A !== ((O = $.defaultView) == null ? void 0 : O.visualViewport);
18606
18607
  }), B.forEach((A) => {
@@ -18645,7 +18646,7 @@ function j$(e) {
18645
18646
  } = e, i = _f(), a = J.useRef({}), [o] = J.useState(() => D$()), s = B4() != null;
18646
18647
  if (process.env.NODE_ENV !== "production") {
18647
18648
  const f = r.reference;
18648
- f && !Ht(f) && I$("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
18649
+ f && !Wt(f) && I$("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
18649
18650
  }
18650
18651
  const [l, u] = J.useState(r.reference), c = ca((f, g, p) => {
18651
18652
  a.current.openEvent = f ? g : void 0, o.emit("openchange", {
@@ -18695,16 +18696,16 @@ function X$(e) {
18695
18696
  }
18696
18697
  }
18697
18698
  }), g = J.useCallback((x) => {
18698
- const C = Ht(x) ? {
18699
+ const C = Wt(x) ? {
18699
18700
  getBoundingClientRect: () => x.getBoundingClientRect(),
18700
18701
  contextElement: x
18701
18702
  } : x;
18702
18703
  l(C), f.refs.setReference(C);
18703
18704
  }, [f.refs]), p = J.useCallback((x) => {
18704
- (Ht(x) || x === null) && (d.current = x, o(x)), (Ht(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
18705
+ (Wt(x) || x === null) && (d.current = x, o(x)), (Wt(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
18705
18706
  // `null` to support `positionReference` + an unstable `reference`
18706
18707
  // callback ref.
18707
- x !== null && !Ht(x)) && f.refs.setReference(x);
18708
+ x !== null && !Wt(x)) && f.refs.setReference(x);
18708
18709
  }, [f.refs]), m = J.useMemo(() => ({
18709
18710
  ...f.refs,
18710
18711
  setReference: p,
@@ -23529,10 +23530,10 @@ const L7 = /* @__PURE__ */ mt(() => {
23529
23530
  marginTop: b !== 0 ? b : _ ? "auto" : 0,
23530
23531
  ...D ? {} : { visibility: "hidden" }
23531
23532
  };
23532
- return !t && n.totalCount === 0 && x ? L.createElement(x, Wt(x, c)) : L.createElement(
23533
+ return !t && n.totalCount === 0 && x ? L.createElement(x, zt(x, c)) : L.createElement(
23533
23534
  E,
23534
23535
  {
23535
- ...Wt(E, c),
23536
+ ...zt(E, c),
23536
23537
  ref: m,
23537
23538
  style: k,
23538
23539
  "data-testid": t ? "virtuoso-top-item-list" : "virtuoso-item-list"
@@ -23540,7 +23541,7 @@ const L7 = /* @__PURE__ */ mt(() => {
23540
23541
  (t ? n.topItems : n.items).map((R) => {
23541
23542
  const $ = R.originalIndex, B = y($ + n.firstItemIndex, R.data, c);
23542
23543
  return S ? L.createElement(C, {
23543
- ...Wt(C, c),
23544
+ ...zt(C, c),
23544
23545
  key: B,
23545
23546
  index: R.index,
23546
23547
  height: R.size,
@@ -23549,7 +23550,7 @@ const L7 = /* @__PURE__ */ mt(() => {
23549
23550
  }) : R.type === "group" ? L.createElement(
23550
23551
  T,
23551
23552
  {
23552
- ...Wt(T, c),
23553
+ ...zt(T, c),
23553
23554
  key: B,
23554
23555
  "data-index": $,
23555
23556
  "data-known-size": R.size,
@@ -23560,7 +23561,7 @@ const L7 = /* @__PURE__ */ mt(() => {
23560
23561
  ) : L.createElement(
23561
23562
  w,
23562
23563
  {
23563
- ...Wt(w, c),
23564
+ ...zt(w, c),
23564
23565
  ...O2(w, R.data),
23565
23566
  key: B,
23566
23567
  "data-index": $,
@@ -23591,7 +23592,7 @@ const L7 = /* @__PURE__ */ mt(() => {
23591
23592
  top: 0,
23592
23593
  zIndex: 1
23593
23594
  };
23594
- function Wt(e, t) {
23595
+ function zt(e, t) {
23595
23596
  if (typeof e != "string")
23596
23597
  return { context: t };
23597
23598
  }
@@ -23600,10 +23601,10 @@ function O2(e, t) {
23600
23601
  }
23601
23602
  const U7 = /* @__PURE__ */ L.memo(function() {
23602
23603
  const t = nt("HeaderComponent"), n = Tr("headerHeight"), r = nt("headerFooterTag"), i = Ci((o) => n(Gr(o, "height"))), a = nt("context");
23603
- return t ? L.createElement(r, { ref: i }, L.createElement(t, Wt(t, a))) : null;
23604
+ return t ? L.createElement(r, { ref: i }, L.createElement(t, zt(t, a))) : null;
23604
23605
  }), j7 = /* @__PURE__ */ L.memo(function() {
23605
23606
  const t = nt("FooterComponent"), n = Tr("footerHeight"), r = nt("headerFooterTag"), i = Ci((o) => n(Gr(o, "height"))), a = nt("context");
23606
- return t ? L.createElement(r, { ref: i }, L.createElement(t, Wt(t, a))) : null;
23607
+ return t ? L.createElement(r, { ref: i }, L.createElement(t, zt(t, a))) : null;
23607
23608
  });
23608
23609
  function Yp({ usePublisher: e, useEmitter: t, useEmitterValue: n }) {
23609
23610
  return L.memo(function({ style: a, children: o, ...s }) {
@@ -23622,7 +23623,7 @@ function Yp({ usePublisher: e, useEmitter: t, useEmitterValue: n }) {
23622
23623
  "data-virtuoso-scroller": !0,
23623
23624
  tabIndex: 0,
23624
23625
  ...s,
23625
- ...Wt(u, h)
23626
+ ...zt(u, h)
23626
23627
  },
23627
23628
  o
23628
23629
  );
@@ -23645,7 +23646,7 @@ function Kp({ usePublisher: e, useEmitter: t, useEmitterValue: n }) {
23645
23646
  style: { position: "relative", ...a, ...d !== 0 ? { height: d + h } : {} },
23646
23647
  "data-virtuoso-scroller": !0,
23647
23648
  ...s,
23648
- ...Wt(u, g)
23649
+ ...zt(u, g)
23649
23650
  },
23650
23651
  o
23651
23652
  );
@@ -23663,7 +23664,7 @@ const X7 = ({ children: e }) => {
23663
23664
  }, [t, n, r]), /* @__PURE__ */ L.createElement("div", { ref: a, style: Ws(o), "data-viewport-type": "window" }, e);
23664
23665
  }, Y7 = ({ children: e }) => {
23665
23666
  const t = nt("TopItemListComponent") || "div", n = nt("headerHeight"), r = { ...G7, marginTop: `${n}px` }, i = nt("context");
23666
- return L.createElement(t, { style: r, ...Wt(t, i) }, e);
23667
+ return L.createElement(t, { style: r, ...zt(t, i) }, e);
23667
23668
  }, K7 = /* @__PURE__ */ L.memo(function(t) {
23668
23669
  const n = nt("useWindowScroll"), r = nt("topItemsIndexes").length > 0, i = nt("customScrollParent"), a = i || n ? Q7 : J7, o = i || n ? Z7 : X7;
23669
23670
  return /* @__PURE__ */ L.createElement(a, { ...t }, r && /* @__PURE__ */ L.createElement(Y7, null, /* @__PURE__ */ L.createElement(Nb, { showTopList: !0 })), /* @__PURE__ */ L.createElement(o, null, /* @__PURE__ */ L.createElement(U7, null), /* @__PURE__ */ L.createElement(Nb, null), /* @__PURE__ */ L.createElement(j7, null)));
@@ -24064,7 +24065,7 @@ const ak = /* @__PURE__ */ mt(() => {
24064
24065
  {
24065
24066
  ref: m,
24066
24067
  className: n,
24067
- ...Wt(u, d),
24068
+ ...zt(u, d),
24068
24069
  style: { paddingTop: t.offsetTop, paddingBottom: t.offsetBottom },
24069
24070
  "data-testid": "virtuoso-item-list"
24070
24071
  },
@@ -24072,23 +24073,23 @@ const ak = /* @__PURE__ */ mt(() => {
24072
24073
  const v = a(b.index, b.data, d);
24073
24074
  return o ? L.createElement(c, {
24074
24075
  key: v,
24075
- ...Wt(c, d),
24076
+ ...zt(c, d),
24076
24077
  index: b.index,
24077
24078
  height: t.itemHeight,
24078
24079
  width: t.itemWidth
24079
24080
  }) : L.createElement(
24080
24081
  l,
24081
- { ...Wt(l, d), className: r, "data-index": b.index, key: v },
24082
+ { ...zt(l, d), className: r, "data-index": b.index, key: v },
24082
24083
  i(b.index, b.data, d)
24083
24084
  );
24084
24085
  })
24085
24086
  );
24086
24087
  }), lk = L.memo(function() {
24087
24088
  const t = Ot("HeaderComponent"), n = Wr("headerHeight"), r = Ot("headerFooterTag"), i = Ci((o) => n(Gr(o, "height"))), a = Ot("context");
24088
- return t ? L.createElement(r, { ref: i }, L.createElement(t, Wt(t, a))) : null;
24089
+ return t ? L.createElement(r, { ref: i }, L.createElement(t, zt(t, a))) : null;
24089
24090
  }), uk = L.memo(function() {
24090
24091
  const t = Ot("FooterComponent"), n = Wr("footerHeight"), r = Ot("headerFooterTag"), i = Ci((o) => n(Gr(o, "height"))), a = Ot("context");
24091
- return t ? L.createElement(r, { ref: i }, L.createElement(t, Wt(t, a))) : null;
24092
+ return t ? L.createElement(r, { ref: i }, L.createElement(t, zt(t, a))) : null;
24092
24093
  }), ck = ({ children: e }) => {
24093
24094
  const t = L.useContext(L2), n = Wr("itemDimensions"), r = Wr("viewportDimensions"), i = Ci((a) => {
24094
24095
  r(a.getBoundingClientRect());
@@ -24193,11 +24194,11 @@ const pk = /* @__PURE__ */ mt(() => {
24193
24194
  });
24194
24195
  const m = Ct("EmptyPlaceholder"), b = Ct("ScrollSeekPlaceholder") || bk, v = Ct("FillerRow") || vk, x = Ct("TableBodyComponent"), C = Ct("TableRowComponent"), E = Ct("computeItemKey"), w = Ct("isSeeking"), T = Ct("paddingTopAddition"), y = Ct("firstItemIndex"), S = Ct("statefulTotalCount"), I = Ct("context");
24195
24196
  if (S === 0 && m)
24196
- return L.createElement(m, Wt(m, I));
24197
+ return L.createElement(m, zt(m, I));
24197
24198
  const _ = t.offsetTop + T + g, D = t.offsetBottom, k = _ > 0 ? /* @__PURE__ */ L.createElement(v, { height: _, key: "padding-top", context: I }) : null, R = D > 0 ? /* @__PURE__ */ L.createElement(v, { height: D, key: "padding-bottom", context: I }) : null, $ = t.items.map((B) => {
24198
24199
  const A = B.originalIndex, O = E(A + y, B.data, I);
24199
24200
  return w ? L.createElement(b, {
24200
- ...Wt(b, I),
24201
+ ...zt(b, I),
24201
24202
  key: O,
24202
24203
  index: B.index,
24203
24204
  height: B.size,
@@ -24205,7 +24206,7 @@ const pk = /* @__PURE__ */ mt(() => {
24205
24206
  }) : L.createElement(
24206
24207
  C,
24207
24208
  {
24208
- ...Wt(C, I),
24209
+ ...zt(C, I),
24209
24210
  ...O2(C, B.data),
24210
24211
  key: O,
24211
24212
  "data-index": A,
@@ -24218,7 +24219,7 @@ const pk = /* @__PURE__ */ mt(() => {
24218
24219
  });
24219
24220
  return L.createElement(
24220
24221
  x,
24221
- { ref: h, "data-testid": "virtuoso-item-list", ...Wt(x, I) },
24222
+ { ref: h, "data-testid": "virtuoso-item-list", ...zt(x, I) },
24222
24223
  [k, ...$, R]
24223
24224
  );
24224
24225
  }), Ck = ({ children: e }) => {
@@ -24238,7 +24239,7 @@ const pk = /* @__PURE__ */ mt(() => {
24238
24239
  key: "TableHead",
24239
24240
  style: { zIndex: 2, position: "sticky", top: 0 },
24240
24241
  ref: u,
24241
- ...Wt(g, l)
24242
+ ...zt(g, l)
24242
24243
  },
24243
24244
  o()
24244
24245
  ) : null, b = s ? L.createElement(
@@ -24247,13 +24248,13 @@ const pk = /* @__PURE__ */ mt(() => {
24247
24248
  key: "TableFoot",
24248
24249
  style: { zIndex: 1, position: "sticky", bottom: 0 },
24249
24250
  ref: c,
24250
- ...Wt(p, l)
24251
+ ...zt(p, l)
24251
24252
  },
24252
24253
  s()
24253
24254
  ) : null;
24254
24255
  return /* @__PURE__ */ L.createElement(d, { ...t }, /* @__PURE__ */ L.createElement(h, null, L.createElement(
24255
24256
  f,
24256
- { style: { borderSpacing: 0, overflowAnchor: "none" }, ...Wt(f, l) },
24257
+ { style: { borderSpacing: 0, overflowAnchor: "none" }, ...zt(f, l) },
24257
24258
  [m, /* @__PURE__ */ L.createElement(xk, { key: "TableBody" }), b]
24258
24259
  )));
24259
24260
  }), {
@@ -39144,7 +39145,7 @@ const YZ = ({
39144
39145
  }) => /* @__PURE__ */ P(
39145
39146
  $H,
39146
39147
  {
39147
- isAllowed: (o) => e !== void 0 && Xi(e) && zt(o.value).isGreaterThan(e) ? (typeof r == "function" && r({ target: { value: zt(e).toString() } }), !1) : t !== void 0 && Xi(t) && zt(o.value).isLessThan(t) ? (typeof r == "function" && r({ target: { value: zt(t).toString() } }), !1) : !0,
39148
+ isAllowed: (o) => e !== void 0 && Xi(e) && Vt(o.value).isGreaterThan(e) ? (typeof r == "function" && r({ target: { value: Vt(e).toString() } }), !1) : t !== void 0 && Xi(t) && Vt(o.value).isLessThan(t) ? (typeof r == "function" && r({ target: { value: Vt(t).toString() } }), !1) : !0,
39148
39149
  onValueChange: (o, { source: s }) => {
39149
39150
  typeof r == "function" && s.includes("event") && r({ target: { value: o.value } });
39150
39151
  },
@@ -40197,7 +40198,7 @@ const gu = (e) => typeof e < "u", Fa = (e) => typeof e == "function", vy = (e, t
40197
40198
  function DW(e) {
40198
40199
  return e.type === "mouseup" || e.type === "click" || e.type === "contextmenu";
40199
40200
  }
40200
- const jt = Math.PI, Vt = 2 * jt, AW = Vt + jt, nf = Number.POSITIVE_INFINITY, TW = jt / 180, sn = jt / 2, ja = jt / 4, yy = jt * 2 / 3, s5 = Math.log10, yi = Math.sign;
40201
+ const jt = Math.PI, Ht = 2 * jt, AW = Ht + jt, nf = Number.POSITIVE_INFINITY, TW = jt / 180, sn = jt / 2, ja = jt / 4, yy = jt * 2 / 3, s5 = Math.log10, yi = Math.sign;
40201
40202
  function $l(e, t, n) {
40202
40203
  return Math.abs(e - t) < n;
40203
40204
  }
@@ -40243,7 +40244,7 @@ function Cy(e) {
40243
40244
  function l5(e, t) {
40244
40245
  const n = t.x - e.x, r = t.y - e.y, i = Math.sqrt(n * n + r * r);
40245
40246
  let a = Math.atan2(r, n);
40246
- return a < -0.5 * jt && (a += Vt), {
40247
+ return a < -0.5 * jt && (a += Ht), {
40247
40248
  angle: a,
40248
40249
  distance: i
40249
40250
  };
@@ -40252,10 +40253,10 @@ function Hg(e, t) {
40252
40253
  return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
40253
40254
  }
40254
40255
  function PW(e, t) {
40255
- return (e - t + AW) % Vt - jt;
40256
+ return (e - t + AW) % Ht - jt;
40256
40257
  }
40257
40258
  function ri(e) {
40258
- return (e % Vt + Vt) % Vt;
40259
+ return (e % Ht + Ht) % Ht;
40259
40260
  }
40260
40261
  function mu(e, t, n, r) {
40261
40262
  const i = ri(e), a = ri(t), o = ri(n), s = ri(a - i), l = ri(o - i), u = ri(i - a), c = ri(i - o);
@@ -40393,7 +40394,7 @@ function WW(e) {
40393
40394
  const a = r.xmin !== t.min || r.xmax !== t.max || r.ymin !== n.min || r.ymax !== n.max;
40394
40395
  return Object.assign(r, i), a;
40395
40396
  }
40396
- const Ec = (e) => e === 0 || e === 1, Sy = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * Vt / n)), wy = (e, t, n) => Math.pow(2, -10 * e) * Math.sin((e - t) * Vt / n) + 1, kl = {
40397
+ const Ec = (e) => e === 0 || e === 1, Sy = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * Ht / n)), wy = (e, t, n) => Math.pow(2, -10 * e) * Math.sin((e - t) * Ht / n) + 1, kl = {
40397
40398
  linear: (e) => e,
40398
40399
  easeInQuad: (e) => e * e,
40399
40400
  easeOutQuad: (e) => -e * (e - 2),
@@ -40747,7 +40748,7 @@ function g5(e, t, n, r, i) {
40747
40748
  if (!(isNaN(p) || p <= 0)) {
40748
40749
  switch (e.beginPath(), f) {
40749
40750
  default:
40750
- i ? e.ellipse(n, r, i / 2, p, 0, 0, Vt) : e.arc(n, r, p, 0, Vt), e.closePath();
40751
+ i ? e.ellipse(n, r, i / 2, p, 0, 0, Ht) : e.arc(n, r, p, 0, Ht), e.closePath();
40751
40752
  break;
40752
40753
  case "triangle":
40753
40754
  c = i ? i / 2 : p, e.moveTo(n + Math.sin(m) * c, r - Math.cos(m) * p), m += yy, e.lineTo(n + Math.sin(m) * c, r - Math.cos(m) * p), m += yy, e.lineTo(n + Math.sin(m) * c, r - Math.cos(m) * p), e.closePath();
@@ -42597,7 +42598,7 @@ Ee(Qc, "id", "bar"), Ee(Qc, "defaults", {
42597
42598
  });
42598
42599
  function fG(e, t, n) {
42599
42600
  let r = 1, i = 1, a = 0, o = 0;
42600
- if (t < Vt) {
42601
+ if (t < Ht) {
42601
42602
  const s = e, l = s + t, u = Math.cos(s), c = Math.sin(s), d = Math.cos(l), h = Math.sin(l), f = (x, C, E) => mu(x, s, l, !0) ? 1 : Math.max(C, C * n, E, E * n), g = (x, C, E) => mu(x, s, l, !0) ? -1 : Math.min(C, C * n, E, E * n), p = f(0, u, d), m = f(sn, c, h), b = g(jt, u, d), v = g(jt + sn, c, h);
42602
42603
  r = (p - b) / 2, i = (m - v) / 2, a = -(p + b) / 2, o = -(m + v) / 2;
42603
42604
  }
@@ -42636,7 +42637,7 @@ class ml extends Co {
42636
42637
  return zi(this.options.circumference);
42637
42638
  }
42638
42639
  _getRotationExtents() {
42639
- let t = Vt, n = -Vt;
42640
+ let t = Ht, n = -Ht;
42640
42641
  for (let r = 0; r < this.chart.data.datasets.length; ++r)
42641
42642
  if (this.chart.isDatasetVisible(r) && this.chart.getDatasetMeta(r).type === this._type) {
42642
42643
  const i = this.chart.getDatasetMeta(r).controller, a = i._getRotation(), o = i._getCircumference();
@@ -42653,7 +42654,7 @@ class ml extends Co {
42653
42654
  }
42654
42655
  _circumference(t, n) {
42655
42656
  const r = this.options, i = this._cachedMeta, a = this._getCircumference();
42656
- return n && r.animation.animateRotate || !this.chart.getDataVisibility(t) || i._parsed[t] === null || i.data[t].hidden ? 0 : this.calculateCircumference(i._parsed[t] * a / Vt);
42657
+ return n && r.animation.animateRotate || !this.chart.getDataVisibility(t) || i._parsed[t] === null || i.data[t].hidden ? 0 : this.calculateCircumference(i._parsed[t] * a / Ht);
42657
42658
  }
42658
42659
  updateElements(t, n, r, i) {
42659
42660
  const a = i === "reset", o = this.chart, s = o.chartArea, u = o.options.animation, c = (s.left + s.right) / 2, d = (s.top + s.bottom) / 2, h = a && u.animateScale, f = h ? 0 : this.innerRadius, g = h ? 0 : this.outerRadius, { sharedOptions: p, includeOptions: m } = this._getSharedOptions(n, i);
@@ -42684,7 +42685,7 @@ class ml extends Co {
42684
42685
  }
42685
42686
  calculateCircumference(t) {
42686
42687
  const n = this._cachedMeta.total;
42687
- return n > 0 && !isNaN(t) ? Vt * (Math.abs(t) / n) : 0;
42688
+ return n > 0 && !isNaN(t) ? Ht * (Math.abs(t) / n) : 0;
42688
42689
  }
42689
42690
  getLabelAndValue(t) {
42690
42691
  const n = this._cachedMeta, r = this.chart, i = r.data.labels || [], a = Ym(n._parsed[t], r.options.locale);
@@ -45332,7 +45333,7 @@ function _U(e, t, n, r, i) {
45332
45333
  sf(e, t, n, r, l, i);
45333
45334
  for (let u = 0; u < a; ++u)
45334
45335
  e.fill();
45335
- isNaN(s) || (l = o + (s % Vt || Vt));
45336
+ isNaN(s) || (l = o + (s % Ht || Ht));
45336
45337
  }
45337
45338
  return sf(e, t, n, r, l, i), e.fill(), l;
45338
45339
  }
@@ -45346,7 +45347,7 @@ function DU(e, t, n, r, i) {
45346
45347
  sf(e, t, n, r, g, i);
45347
45348
  for (let p = 0; p < a; ++p)
45348
45349
  e.stroke();
45349
- isNaN(s) || (g = o + (s % Vt || Vt));
45350
+ isNaN(s) || (g = o + (s % Ht || Ht));
45350
45351
  }
45351
45352
  f && SU(e, t, g), a || (sf(e, t, n, r, g, i), e.stroke());
45352
45353
  }
@@ -45375,7 +45376,7 @@ class vl extends ea {
45375
45376
  "innerRadius",
45376
45377
  "outerRadius",
45377
45378
  "circumference"
45378
- ], i), f = (this.options.spacing + this.options.borderWidth) / 2, p = Je(h, u - l) >= Vt || mu(o, l, u), m = Gi(s, c + f, d + f);
45379
+ ], i), f = (this.options.spacing + this.options.borderWidth) / 2, p = Je(h, u - l) >= Ht || mu(o, l, u), m = Gi(s, c + f, d + f);
45379
45380
  return p && m;
45380
45381
  }
45381
45382
  getCenterPoint(n) {
@@ -45397,7 +45398,7 @@ class vl extends ea {
45397
45398
  }
45398
45399
  draw(n) {
45399
45400
  const { options: r, circumference: i } = this, a = (r.offset || 0) / 4, o = (r.spacing || 0) / 2, s = r.circular;
45400
- if (this.pixelMargin = r.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = i > Vt ? Math.floor(i / Vt) : 0, i === 0 || this.innerRadius < 0 || this.outerRadius < 0)
45401
+ if (this.pixelMargin = r.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = i > Ht ? Math.floor(i / Ht) : 0, i === 0 || this.innerRadius < 0 || this.outerRadius < 0)
45401
45402
  return;
45402
45403
  n.save();
45403
45404
  const l = (this.startAngle + this.endAngle) / 2;
@@ -45972,7 +45973,7 @@ class W5 {
45972
45973
  const { x: i, y: a, radius: o } = this;
45973
45974
  return n = n || {
45974
45975
  start: 0,
45975
- end: Vt
45976
+ end: Ht
45976
45977
  }, t.arc(i, a, o, n.end, n.start, !0), !r.bounds;
45977
45978
  }
45978
45979
  interpolate(t) {
@@ -48944,7 +48945,7 @@ const dY = ({
48944
48945
  ] })
48945
48946
  ]
48946
48947
  }
48947
- ), dX = "1.0.7", Ox = {
48948
+ ), dX = "1.0.8", Ox = {
48948
48949
  version: dX
48949
48950
  }, fX = ({ label: e }) => ({
48950
48951
  tinymceScriptSrc: `https://unpkg.com/1mpacto-react-ui@${Ox.version}/dist/tinymce/js/tinymce/tinymce.min.js`,
@@ -50339,7 +50340,7 @@ XX.displayName = "InputInnerLabel";
50339
50340
  export {
50340
50341
  mZ as AlertContainer,
50341
50342
  OV as Badges,
50342
- zt as BigNumber,
50343
+ Vt as BigNumber,
50343
50344
  GZ as Breadcrumbs,
50344
50345
  fr as Button,
50345
50346
  LV as ButtonIcon,
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",