@iota/apps-ui-kit 0.10.0 → 0.11.0

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.es.js CHANGED
@@ -108,7 +108,7 @@ var te = {
108
108
  90: "#FFE3AB",
109
109
  100: "#FFFFFF"
110
110
  }
111
- }, ne = {
111
+ }, A = {
112
112
  "names-primary": {
113
113
  0: "#000000",
114
114
  10: "#061244",
@@ -199,7 +199,7 @@ var te = {
199
199
  90: "#FFE3AB",
200
200
  100: "#FFFFFF"
201
201
  }
202
- }, re = {
202
+ }, ne = {
203
203
  "shader-primary-dark": {
204
204
  0: "#bed8ff00",
205
205
  8: "#bed8ff14",
@@ -254,7 +254,7 @@ var te = {
254
254
  72: "#002f6db7",
255
255
  100: "#002f6d"
256
256
  }
257
- }, ie = {
257
+ }, re = {
258
258
  none: O(0),
259
259
  sm: O(2),
260
260
  DEFAULT: O(4),
@@ -264,7 +264,7 @@ var te = {
264
264
  "2xl": O(16),
265
265
  "3xl": O(24),
266
266
  full: O(120)
267
- }, ae = {
267
+ }, ie = {
268
268
  none: O(0),
269
269
  xxxs: O(2),
270
270
  xxs: O(4),
@@ -274,7 +274,7 @@ var te = {
274
274
  lg: O(24),
275
275
  xl: O(32),
276
276
  "2xl": O(48)
277
- }, oe = {
277
+ }, ae = {
278
278
  0: "0",
279
279
  8: "0.08",
280
280
  12: "0.12",
@@ -283,7 +283,7 @@ var te = {
283
283
  60: "0.6",
284
284
  80: "0.8",
285
285
  100: "1"
286
- }, se = {
286
+ }, oe = {
287
287
  "text-label-sm": ["11px", {
288
288
  lineHeight: "16px",
289
289
  letterSpacing: "0.2px",
@@ -299,7 +299,7 @@ var te = {
299
299
  letterSpacing: "-0.1px",
300
300
  fontWeight: 500
301
301
  }]
302
- }, ce = {
302
+ }, se = {
303
303
  "text-body-sm": ["12px", {
304
304
  lineHeight: "16px",
305
305
  letterSpacing: "0.1px",
@@ -315,7 +315,7 @@ var te = {
315
315
  letterSpacing: "0.1px",
316
316
  fontWeight: 400
317
317
  }]
318
- }, A = {
318
+ }, j = {
319
319
  "text-body-ds-sm": ["12px", {
320
320
  lineHeight: "16px",
321
321
  letterSpacing: "0.1px",
@@ -331,7 +331,7 @@ var te = {
331
331
  letterSpacing: "0.2px",
332
332
  fontWeight: 400
333
333
  }]
334
- }, le = {
334
+ }, ce = {
335
335
  "text-title-sm": ["14px", {
336
336
  lineHeight: "120%",
337
337
  letterSpacing: "-0.1px",
@@ -347,7 +347,7 @@ var te = {
347
347
  letterSpacing: "-0.4px",
348
348
  fontWeight: 500
349
349
  }]
350
- }, ue = {
350
+ }, le = {
351
351
  "text-headline-sm": ["24px", {
352
352
  lineHeight: "120%",
353
353
  fontWeight: "var(--headline-sm-font-weight)",
@@ -363,7 +363,7 @@ var te = {
363
363
  fontWeight: "var(--headline-lg-font-weight)",
364
364
  letterSpacing: "-0.4px"
365
365
  }]
366
- }, j = {
366
+ }, M = {
367
367
  "text-display-sm": ["36px", {
368
368
  lineHeight: "var(--display-sm-line-height)",
369
369
  fontWeight: "var(--display-sm-font-weight)"
@@ -376,14 +376,14 @@ var te = {
376
376
  lineHeight: "var(--display-lg-line-height)",
377
377
  fontWeight: "var(--display-lg-font-weight)"
378
378
  }]
379
- }, M = {
379
+ }, ue = {
380
+ ...oe,
380
381
  ...se,
382
+ ...j,
381
383
  ...ce,
382
- ...A,
383
384
  ...le,
384
- ...ue,
385
- ...j
386
- }, de = Object.entries(M).reduce((e, [t, n]) => {
385
+ ...M
386
+ }, de = Object.entries(ue).reduce((e, [t, n]) => {
387
387
  let r = t.startsWith("text-") ? t.replace("text-", "") : t;
388
388
  return {
389
389
  ...e,
@@ -482,22 +482,22 @@ var ge = {
482
482
  plugins: [xe, Se],
483
483
  theme: { extend: {
484
484
  fontSize: { ...de },
485
- borderRadius: { ...ie },
485
+ borderRadius: { ...re },
486
486
  spacing: (e) => {
487
487
  let t = he(e.theme("screens"));
488
488
  return {
489
- ...ae,
489
+ ...ie,
490
490
  ...t
491
491
  };
492
492
  },
493
493
  opacity: {
494
- ...oe,
494
+ ...ae,
495
495
  30: "0.3"
496
496
  },
497
497
  colors: {
498
498
  ...te,
499
+ ...A,
499
500
  ...ne,
500
- ...re,
501
501
  ..._e
502
502
  },
503
503
  fontFamily: ge,
@@ -546,9 +546,9 @@ var ge = {
546
546
  }
547
547
  } }
548
548
  }, Te = /* @__PURE__ */ E((/* @__PURE__ */ w(((e, t) => {
549
- var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, s = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", g = "[object Number]", _ = "[object Null]", v = "[object Object]", y = "[object Proxy]", b = "[object RegExp]", x = "[object Set]", S = "[object String]", C = "[object Undefined]", w = "[object WeakMap]", T = "[object ArrayBuffer]", E = "[object DataView]", D = "[object Float32Array]", ee = "[object Float64Array]", O = "[object Int8Array]", k = "[object Int16Array]", te = "[object Int32Array]", ne = "[object Uint8Array]", re = "[object Uint8ClampedArray]", ie = "[object Uint16Array]", ae = "[object Uint32Array]", oe = /[\\^$.*+?()[\]{}|]/g, se = /^\[object .+?Constructor\]$/, ce = /^(?:0|[1-9]\d*)$/, A = {};
550
- A[D] = A[ee] = A[O] = A[k] = A[te] = A[ne] = A[re] = A[ie] = A[ae] = !0, A[s] = A[c] = A[T] = A[u] = A[E] = A[d] = A[f] = A[p] = A[h] = A[g] = A[v] = A[b] = A[x] = A[S] = A[w] = !1;
551
- var le = typeof global == "object" && global && global.Object === Object && global, ue = typeof self == "object" && self && self.Object === Object && self, j = le || ue || Function("return this")(), M = typeof e == "object" && e && !e.nodeType && e, de = M && typeof t == "object" && t && !t.nodeType && t, fe = de && de.exports === M, pe = fe && le.process, me = function() {
549
+ var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, s = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", g = "[object Number]", _ = "[object Null]", v = "[object Object]", y = "[object Proxy]", b = "[object RegExp]", x = "[object Set]", S = "[object String]", C = "[object Undefined]", w = "[object WeakMap]", T = "[object ArrayBuffer]", E = "[object DataView]", D = "[object Float32Array]", ee = "[object Float64Array]", O = "[object Int8Array]", k = "[object Int16Array]", te = "[object Int32Array]", A = "[object Uint8Array]", ne = "[object Uint8ClampedArray]", re = "[object Uint16Array]", ie = "[object Uint32Array]", ae = /[\\^$.*+?()[\]{}|]/g, oe = /^\[object .+?Constructor\]$/, se = /^(?:0|[1-9]\d*)$/, j = {};
550
+ j[D] = j[ee] = j[O] = j[k] = j[te] = j[A] = j[ne] = j[re] = j[ie] = !0, j[s] = j[c] = j[T] = j[u] = j[E] = j[d] = j[f] = j[p] = j[h] = j[g] = j[v] = j[b] = j[x] = j[S] = j[w] = !1;
551
+ var ce = typeof global == "object" && global && global.Object === Object && global, le = typeof self == "object" && self && self.Object === Object && self, M = ce || le || Function("return this")(), ue = typeof e == "object" && e && !e.nodeType && e, de = ue && typeof t == "object" && t && !t.nodeType && t, fe = de && de.exports === ue, pe = fe && ce.process, me = function() {
552
552
  try {
553
553
  return de && de.require && de.require("util").types || pe && pe.binding && pe.binding("util");
554
554
  } catch {}
@@ -579,15 +579,15 @@ var ge = {
579
579
  return e(t(n));
580
580
  };
581
581
  }
582
- var xe = Array.prototype, Se = Function.prototype, Ce = Object.prototype, we = j["__core-js_shared__"], Te = Se.toString, N = Ce.hasOwnProperty, Ee = function() {
582
+ var xe = Array.prototype, Se = Function.prototype, Ce = Object.prototype, we = M["__core-js_shared__"], Te = Se.toString, N = Ce.hasOwnProperty, Ee = function() {
583
583
  var e = /[^.]+$/.exec(we && we.keys && we.keys.IE_PROTO || "");
584
584
  return e ? "Symbol(src)_1." + e : "";
585
- }(), De = Ce.toString, Oe = Te.call(Object), P = RegExp("^" + Te.call(N).replace(oe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), ke = fe ? j.Buffer : void 0, Ae = j.Symbol, je = j.Uint8Array, Me = ke ? ke.allocUnsafe : void 0, F = be(Object.getPrototypeOf, Object), Ne = Object.create, I = Ce.propertyIsEnumerable, L = xe.splice, R = Ae ? Ae.toStringTag : void 0, Pe = function() {
585
+ }(), De = Ce.toString, Oe = Te.call(Object), P = RegExp("^" + Te.call(N).replace(ae, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), ke = fe ? M.Buffer : void 0, Ae = M.Symbol, je = M.Uint8Array, Me = ke ? ke.allocUnsafe : void 0, F = be(Object.getPrototypeOf, Object), Ne = Object.create, I = Ce.propertyIsEnumerable, L = xe.splice, R = Ae ? Ae.toStringTag : void 0, Pe = function() {
586
586
  try {
587
587
  var e = At(Object, "defineProperty");
588
588
  return e({}, "", {}), e;
589
589
  } catch {}
590
- }(), Fe = ke ? ke.isBuffer : void 0, Ie = Math.max, Le = Date.now, Re = At(j, "Map"), ze = At(Object, "create"), Be = function() {
590
+ }(), Fe = ke ? ke.isBuffer : void 0, Ie = Math.max, Le = Date.now, Re = At(M, "Map"), ze = At(Object, "create"), Be = function() {
591
591
  function e() {}
592
592
  return function(t) {
593
593
  if (!Xt(t)) return {};
@@ -741,10 +741,10 @@ var ge = {
741
741
  return Zt(e) && pt(e) == s;
742
742
  }
743
743
  function ht(e) {
744
- return !Xt(e) || Ft(e) ? !1 : (Jt(e) ? P : se).test(Ut(e));
744
+ return !Xt(e) || Ft(e) ? !1 : (Jt(e) ? P : oe).test(Ut(e));
745
745
  }
746
746
  function gt(e) {
747
- return Zt(e) && Yt(e.length) && !!A[pt(e)];
747
+ return Zt(e) && Yt(e.length) && !!j[pt(e)];
748
748
  }
749
749
  function _t(e) {
750
750
  if (!Xt(e)) return Lt(e);
@@ -853,7 +853,7 @@ var ge = {
853
853
  }
854
854
  function Nt(e, t) {
855
855
  var n = typeof e;
856
- return t ??= o, !!t && (n == "number" || n != "symbol" && ce.test(e)) && e > -1 && e % 1 == 0 && e < t;
856
+ return t ??= o, !!t && (n == "number" || n != "symbol" && se.test(e)) && e > -1 && e % 1 == 0 && e < t;
857
857
  }
858
858
  function U(e, t, n) {
859
859
  if (!Xt(n)) return !1;
@@ -1788,46 +1788,51 @@ function Mt({ text: r, position: i = jt.Top, maxWidth: a = "max-w-[200px]", offs
1788
1788
  }
1789
1789
  //#endregion
1790
1790
  //#region src/lib/components/atoms/key-value-info/KeyValueInfo.tsx
1791
- function Nt({ keyText: e, value: r, tooltipPosition: i, tooltipText: a, supportingLabel: o, size: s = At.Small, isTruncated: c = !1, copyText: l, onCopySuccess: u, onCopyError: d, fullwidth: f, isReverse: p = !1, valueHoverTitle: m }) {
1792
- let h = p ? "flex-row-reverse" : "flex-row";
1793
- async function g(e) {
1794
- if (navigator.clipboard && l) try {
1795
- await navigator.clipboard.writeText(l), u?.(e, l);
1791
+ function Nt({ keyText: e, keyIcon: r, value: i, tooltipPosition: a, tooltipText: o, supportingLabel: s, size: c = At.Small, isTruncated: l = !1, copyText: u, onCopySuccess: d, onCopyError: f, fullwidth: p, isReverse: m = !1, valueHoverTitle: h }) {
1792
+ let g = m ? "flex-row-reverse" : "flex-row";
1793
+ async function _(e) {
1794
+ if (navigator.clipboard && u) try {
1795
+ await navigator.clipboard.writeText(u), d?.(e, u);
1796
1796
  } catch (e) {
1797
- console.error("Failed to copy:", e), d?.(e, l);
1797
+ console.error("Failed to copy:", e), f?.(e, u);
1798
1798
  }
1799
1799
  }
1800
1800
  return /* @__PURE__ */ n("div", {
1801
- className: (0, F.default)("flex w-full items-baseline gap-xs py-xxs font-inter", h, { "justify-between": f }),
1801
+ className: (0, F.default)("flex w-full items-baseline gap-xs py-xxs font-inter", g, { "flex-wrap justify-between": p }),
1802
1802
  children: [/* @__PURE__ */ n("div", {
1803
- className: (0, F.default)("flex shrink-0 flex-row items-center gap-x-0.5", { "w-1/4": !f }),
1804
- children: [/* @__PURE__ */ t("span", {
1805
- className: "key-value-key-text-color text-body-md",
1806
- children: e
1807
- }), a && /* @__PURE__ */ t(Mt, {
1808
- text: a,
1809
- position: i,
1810
- children: /* @__PURE__ */ t(et, { className: "key-supporting-text-color" })
1811
- })]
1803
+ className: (0, F.default)("flex shrink-0 flex-row items-center gap-x-0.5", { "w-1/4": !p }),
1804
+ children: [
1805
+ r,
1806
+ /* @__PURE__ */ t("span", {
1807
+ className: "key-value-key-text-color break-normal text-body-md",
1808
+ children: e
1809
+ }),
1810
+ o && /* @__PURE__ */ t(Mt, {
1811
+ text: o,
1812
+ position: a,
1813
+ children: /* @__PURE__ */ t(et, { className: "key-supporting-text-color" })
1814
+ })
1815
+ ]
1812
1816
  }), /* @__PURE__ */ n("div", {
1813
- className: (0, F.default)("flex flex-row items-baseline gap-1 break-all", {
1814
- "w-3/4": !f,
1815
- truncate: c
1817
+ className: (0, F.default)("flex min-w-0 flex-row items-baseline gap-1 break-all", {
1818
+ "w-3/4": !p,
1819
+ "flex-wrap": p,
1820
+ truncate: l
1816
1821
  }),
1817
1822
  children: [
1818
1823
  /* @__PURE__ */ t("span", {
1819
- title: m,
1820
- className: (0, F.default)("key-value-hover-text-color", s === At.Medium ? "text-body-lg" : "text-body-md", { truncate: c }),
1821
- children: r
1824
+ title: h,
1825
+ className: (0, F.default)("key-value-hover-text-color min-w-0", c === At.Medium ? "text-body-lg" : "text-body-md", { truncate: l }),
1826
+ children: i
1822
1827
  }),
1823
- o && /* @__PURE__ */ t("span", {
1824
- className: (0, F.default)("key-supporting-text-color", s === At.Medium ? "text-body-md" : "text-body-sm"),
1825
- children: o
1828
+ s && /* @__PURE__ */ t("span", {
1829
+ className: (0, F.default)("key-supporting-text-color", c === At.Medium ? "text-body-md" : "text-body-sm"),
1830
+ children: s
1826
1831
  }),
1827
1832
  /* @__PURE__ */ t("div", {
1828
1833
  className: "self-center",
1829
- children: l && /* @__PURE__ */ t(B, {
1830
- onClick: g,
1834
+ children: u && /* @__PURE__ */ t(B, {
1835
+ onClick: _,
1831
1836
  "aria-label": "Copy to clipboard",
1832
1837
  children: /* @__PURE__ */ t(Xe, { className: "key-supporting-text-color" })
1833
1838
  })
@@ -1999,7 +2004,11 @@ var Ht = c(({ onError: e, renderFallback: n, ...r }, i) => {
1999
2004
  function qt({ icon: e, title: r, supportingText: i, type: a, style: o }) {
2000
2005
  let s = Gt[a];
2001
2006
  return /* @__PURE__ */ n("div", {
2002
- className: (0, F.default)("flex flex-row items-start gap-4 py-xs pr-lg", o === Wt.Elevated ? Kt[a] : "", { "rounded-lg pl-xs": o === Wt.Elevated }),
2007
+ className: (0, F.default)("flex flex-row items-start gap-4 py-xs pr-lg", o === Wt.Elevated ? Kt[a] : "", {
2008
+ "rounded-lg": o === Wt.Elevated,
2009
+ "pl-xs": o === Wt.Elevated && !!e,
2010
+ "pl-lg": o === Wt.Elevated && !e
2011
+ }),
2003
2012
  children: [e && /* @__PURE__ */ t("span", {
2004
2013
  className: (0, F.default)("flex items-center justify-center rounded-lg [&_svg]:h-4 [&_svg]:w-4", s, { "p-xs": o === Wt.Default }),
2005
2014
  children: e
@@ -2680,35 +2689,35 @@ function Dr(e) {
2680
2689
  "getCaretBoundary",
2681
2690
  "isValidInputCharacter",
2682
2691
  "isCharacterSame"
2683
- ]), D = wr(S, l, !!f, s, c, h), ee = D[0], O = ee.formattedValue, k = ee.numAsString, te = D[1], ne = p(), re = p({
2692
+ ]), D = wr(S, l, !!f, s, c, h), ee = D[0], O = ee.formattedValue, k = ee.numAsString, te = D[1], A = p(), ne = p({
2684
2693
  formattedValue: O,
2685
2694
  numAsString: k
2686
- }), ie = function(e, t) {
2687
- re.current = {
2695
+ }), re = function(e, t) {
2696
+ ne.current = {
2688
2697
  formattedValue: e.formattedValue,
2689
2698
  numAsString: e.value
2690
2699
  }, te(e, t);
2691
- }, ae = m(!1), oe = ae[0], se = ae[1], ce = p(null), A = p({
2700
+ }, ie = m(!1), ae = ie[0], oe = ie[1], se = p(null), j = p({
2692
2701
  setCaretTimeout: null,
2693
2702
  focusTimeout: null
2694
2703
  });
2695
2704
  u(function() {
2696
- return se(!0), function() {
2697
- clearTimeout(A.current.setCaretTimeout), clearTimeout(A.current.focusTimeout);
2705
+ return oe(!0), function() {
2706
+ clearTimeout(j.current.setCaretTimeout), clearTimeout(j.current.focusTimeout);
2698
2707
  };
2699
2708
  }, []);
2700
- var le = s, ue = function(e, t) {
2709
+ var ce = s, le = function(e, t) {
2701
2710
  var n = parseFloat(t);
2702
2711
  return {
2703
2712
  formattedValue: e,
2704
2713
  value: t,
2705
2714
  floatValue: isNaN(n) ? void 0 : n
2706
2715
  };
2707
- }, j = function(e, t, n) {
2708
- e.selectionStart === 0 && e.selectionEnd === e.value.length || (pr(e, t), A.current.setCaretTimeout = setTimeout(function() {
2716
+ }, M = function(e, t, n) {
2717
+ e.selectionStart === 0 && e.selectionEnd === e.value.length || (pr(e, t), j.current.setCaretTimeout = setTimeout(function() {
2709
2718
  e.value === n && e.selectionStart !== t && pr(e, t);
2710
2719
  }, 0));
2711
- }, M = function(e, t, n) {
2720
+ }, ue = function(e, t, n) {
2712
2721
  return Sr(e, t, C(e), n);
2713
2722
  }, de = function(e, t, n) {
2714
2723
  var r = C(t), i = xr(t, O, e, n, r, w, T);
@@ -2719,33 +2728,33 @@ function Dr(e) {
2719
2728
  var n = e.input, r = e.source, i = e.event, a = e.numAsString, o;
2720
2729
  if (n) {
2721
2730
  var s = e.inputValue || n.value, c = _r(n);
2722
- n.value = t, o = de(s, t, c), o !== void 0 && j(n, o, t);
2731
+ n.value = t, o = de(s, t, c), o !== void 0 && M(n, o, t);
2723
2732
  }
2724
- t !== O && ie(ue(t, a), {
2733
+ t !== O && re(le(t, a), {
2725
2734
  event: i,
2726
2735
  source: r
2727
2736
  });
2728
2737
  };
2729
2738
  u(function() {
2730
- var e = re.current, t = e.formattedValue, n = e.numAsString;
2731
- (O !== t || k !== n) && ie(ue(O, k), {
2739
+ var e = ne.current, t = e.formattedValue, n = e.numAsString;
2740
+ (O !== t || k !== n) && re(le(O, k), {
2732
2741
  event: void 0,
2733
2742
  source: Xn.props
2734
2743
  });
2735
2744
  }, [O, k]);
2736
- var pe = ce.current ? _r(ce.current) : void 0;
2745
+ var pe = se.current ? _r(se.current) : void 0;
2737
2746
  (typeof window < "u" ? d : u)(function() {
2738
- var e = ce.current;
2739
- if (O !== re.current.formattedValue && e) {
2740
- var t = de(re.current.formattedValue, O, pe);
2741
- e.value = O, j(e, t, O);
2747
+ var e = se.current;
2748
+ if (O !== ne.current.formattedValue && e) {
2749
+ var t = de(ne.current.formattedValue, O, pe);
2750
+ e.value = O, M(e, t, O);
2742
2751
  }
2743
2752
  }, [O]);
2744
2753
  var me = function(e, t, n) {
2745
- var r = t.target, i = ne.current ? hr(ne.current, r.selectionEnd) : mr(O, e), a = Object.assign(Object.assign({}, i), { lastValue: O }), o = c(e, a), s = le(o);
2746
- if (o = c(s, void 0), g && !g(ue(s, o))) {
2754
+ var r = t.target, i = A.current ? hr(A.current, r.selectionEnd) : mr(O, e), a = Object.assign(Object.assign({}, i), { lastValue: O }), o = c(e, a), s = ce(o);
2755
+ if (o = c(s, void 0), g && !g(le(s, o))) {
2747
2756
  var l = t.target, u = de(e, O, _r(l));
2748
- return l.value = O, j(l, u, O), !1;
2757
+ return l.value = O, M(l, u, O), !1;
2749
2758
  }
2750
2759
  return fe({
2751
2760
  formattedValue: s,
@@ -2756,13 +2765,13 @@ function Dr(e) {
2756
2765
  input: t.target
2757
2766
  }), !0;
2758
2767
  }, he = function(e, t) {
2759
- t === void 0 && (t = 0), ne.current = {
2768
+ t === void 0 && (t = 0), A.current = {
2760
2769
  selectionStart: e.selectionStart,
2761
2770
  selectionEnd: e.selectionEnd + t
2762
2771
  };
2763
2772
  }, ge = function(e) {
2764
2773
  var t = e.target.value;
2765
- me(t, e, Xn.event) && _(e), ne.current = void 0;
2774
+ me(t, e, Xn.event) && _(e), A.current = void 0;
2766
2775
  }, _e = function(e) {
2767
2776
  var t = e.target, n = e.key, r = t.selectionStart, i = t.selectionEnd, a = t.value;
2768
2777
  a === void 0 && (a = "");
@@ -2776,13 +2785,13 @@ function Dr(e) {
2776
2785
  return;
2777
2786
  }
2778
2787
  var l = o;
2779
- c ? (l = M(a, o, n === "ArrowLeft" ? "left" : "right"), l !== o && e.preventDefault()) : n === "Delete" && !w(a[o]) ? l = M(a, o, "right") : n === "Backspace" && !w(a[o]) && (l = M(a, o, "left")), l !== o && j(t, l, a), v(e), he(t, s);
2788
+ c ? (l = ue(a, o, n === "ArrowLeft" ? "left" : "right"), l !== o && e.preventDefault()) : n === "Delete" && !w(a[o]) ? l = ue(a, o, "right") : n === "Backspace" && !w(a[o]) && (l = ue(a, o, "left")), l !== o && M(t, l, a), v(e), he(t, s);
2780
2789
  }, ve = function(e) {
2781
2790
  var t = e.target, n = function() {
2782
2791
  var e = t.selectionStart, n = t.selectionEnd, r = t.value;
2783
2792
  if (r === void 0 && (r = ""), e === n) {
2784
- var i = M(r, e);
2785
- i !== e && j(t, i, r);
2793
+ var i = ue(r, e);
2794
+ i !== e && M(t, i, r);
2786
2795
  }
2787
2796
  };
2788
2797
  n(), requestAnimationFrame(function() {
@@ -2791,15 +2800,15 @@ function Dr(e) {
2791
2800
  }, ye = function(e) {
2792
2801
  e.persist && e.persist();
2793
2802
  var t = e.target, n = e.currentTarget;
2794
- ce.current = t, A.current.focusTimeout = setTimeout(function() {
2803
+ se.current = t, j.current.focusTimeout = setTimeout(function() {
2795
2804
  var r = t.selectionStart, i = t.selectionEnd, a = t.value;
2796
2805
  a === void 0 && (a = "");
2797
- var o = M(a, r);
2798
- o !== r && !(r === 0 && i === a.length) && j(t, o, a), b(Object.assign(Object.assign({}, e), { currentTarget: n }));
2806
+ var o = ue(a, r);
2807
+ o !== r && !(r === 0 && i === a.length) && M(t, o, a), b(Object.assign(Object.assign({}, e), { currentTarget: n }));
2799
2808
  }, 0);
2800
2809
  }, be = function(e) {
2801
- ce.current = null, clearTimeout(A.current.focusTimeout), clearTimeout(A.current.setCaretTimeout), x(e);
2802
- }, xe = oe && vr() ? "numeric" : void 0, Se = Object.assign({ inputMode: xe }, E, {
2810
+ se.current = null, clearTimeout(j.current.focusTimeout), clearTimeout(j.current.setCaretTimeout), x(e);
2811
+ }, xe = ae && vr() ? "numeric" : void 0, Se = Object.assign({ inputMode: xe }, E, {
2803
2812
  type: t,
2804
2813
  value: O,
2805
2814
  onChange: ge,
@@ -2881,8 +2890,8 @@ function Nr(e, t, n) {
2881
2890
  e = e.replace(new RegExp(rr(m), "g"), function(e, t) {
2882
2891
  return t === ee ? "." : "";
2883
2892
  });
2884
- var O = sr(e, i), k = O.beforeDecimal, te = O.afterDecimal, ne = O.addNegation;
2885
- return l.end - l.start < c.end - c.start && k === "" && h && !parseFloat(te) && (e = ne ? "-" : ""), e;
2893
+ var O = sr(e, i), k = O.beforeDecimal, te = O.afterDecimal, A = O.addNegation;
2894
+ return l.end - l.start < c.end - c.start && k === "" && h && !parseFloat(te) && (e = A ? "-" : ""), e;
2886
2895
  }
2887
2896
  function Pr(e, t) {
2888
2897
  var n = t.prefix;
@@ -3395,26 +3404,30 @@ var di = /* @__PURE__ */ function(e) {
3395
3404
  }({});
3396
3405
  //#endregion
3397
3406
  //#region src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx
3398
- function fi({ label: e, columnKey: r, hasSort: i, hasCheckbox: a, isChecked: o, isIndeterminate: s, isContentCentered: c, onSortClick: l, onCheckboxChange: u, sortOrder: d, ...f }) {
3399
- let p = () => {
3400
- let e = d === di.Asc ? di.Desc : di.Asc;
3401
- l && l(r, e);
3402
- }, m = i ? d === di.Asc ? /* @__PURE__ */ t(ut, { className: "shrink-0" }) : d === di.Desc ? /* @__PURE__ */ t(lt, { className: "shrink-0" }) : /* @__PURE__ */ t(ut, { className: "invisible shrink-0 group-hover:visible" }) : null;
3407
+ function fi({ label: r, columnKey: i, actionLeft: a, actionRight: o, hasSort: s, hasCheckbox: c, isChecked: l, isIndeterminate: u, isContentCentered: d, onSortClick: f, onCheckboxChange: p, sortOrder: m, ...h }) {
3408
+ let g = () => {
3409
+ let e = m === di.Asc ? di.Desc : di.Asc;
3410
+ f && f(i, e);
3411
+ }, _ = s ? m === di.Asc ? /* @__PURE__ */ t(ut, { className: "shrink-0" }) : m === di.Desc ? /* @__PURE__ */ t(lt, { className: "shrink-0" }) : /* @__PURE__ */ t(ut, { className: "invisible shrink-0 group-hover:visible" }) : null;
3403
3412
  return /* @__PURE__ */ t("th", {
3404
- onClick: i ? p : void 0,
3405
- className: (0, F.default)("state-layer table-cell-border-color group relative h-14 border-b px-md after:pointer-events-none", { "cursor-pointer": i }),
3406
- "aria-sort": i ? d === di.Asc ? "ascending" : d === di.Desc ? "descending" : "none" : void 0,
3407
- ...f,
3413
+ onClick: s ? g : void 0,
3414
+ className: (0, F.default)("state-layer table-cell-border-color group relative h-14 border-b px-md after:pointer-events-none", { "cursor-pointer": s }),
3415
+ "aria-sort": s ? m === di.Asc ? "ascending" : m === di.Desc ? "descending" : "none" : void 0,
3416
+ ...h,
3408
3417
  children: /* @__PURE__ */ n("div", {
3409
- className: (0, F.default)("flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4", "table-header-text-color", "text-label-lg", { "justify-center": c }),
3410
- children: [a ? /* @__PURE__ */ t(Ct, {
3411
- isChecked: o,
3412
- isIndeterminate: s,
3413
- onCheckedChange: u
3414
- }) : /* @__PURE__ */ t("span", {
3415
- className: (0, F.default)({ "text-left": !c }),
3416
- children: e
3417
- }), m]
3418
+ className: (0, F.default)("flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4", "table-header-text-color", "text-label-lg", { "justify-center": d }),
3419
+ children: [
3420
+ c ? /* @__PURE__ */ t(Ct, {
3421
+ isChecked: l,
3422
+ isIndeterminate: u,
3423
+ onCheckedChange: p
3424
+ }) : /* @__PURE__ */ n(e, { children: [a, /* @__PURE__ */ t("span", {
3425
+ className: (0, F.default)({ "text-left": !d }),
3426
+ children: r
3427
+ })] }),
3428
+ _,
3429
+ o
3430
+ ]
3418
3431
  })
3419
3432
  });
3420
3433
  }
@@ -3734,7 +3747,7 @@ function Mi({ title: e, subtitle: r, clickableAction: i, icon: a, isTextTruncate
3734
3747
  className: (0, F.default)("flex flex-row items-center gap-x-xxs", { "grow-1": o }),
3735
3748
  children: [
3736
3749
  /* @__PURE__ */ t("div", {
3737
- className: (0, F.default)("card-body-title-color font-inter text-title-md", { truncate: o }),
3750
+ className: (0, F.default)("card-body-title-color text-start font-inter text-title-md", { truncate: o }),
3738
3751
  children: e
3739
3752
  }),
3740
3753
  s ? /* @__PURE__ */ t(Mt, {
@@ -3754,7 +3767,7 @@ function Mi({ title: e, subtitle: r, clickableAction: i, icon: a, isTextTruncate
3754
3767
  })
3755
3768
  ]
3756
3769
  }), r && /* @__PURE__ */ t("div", {
3757
- className: (0, F.default)("card-body-subtitle-color font-inter text-body-md", { truncate: o }),
3770
+ className: (0, F.default)("card-body-subtitle-color text-start font-inter text-body-md", { truncate: o }),
3758
3771
  children: r
3759
3772
  })]
3760
3773
  });
@@ -3964,16 +3977,16 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
3964
3977
  function te() {
3965
3978
  S((e) => Zi(e) - 10);
3966
3979
  }
3967
- function ne() {
3980
+ function A() {
3968
3981
  S((e) => Zi(e) + 10);
3969
3982
  }
3970
- function re(e) {
3983
+ function ne(e) {
3971
3984
  S(e), b("days");
3972
3985
  }
3973
- function ie(e) {
3986
+ function re(e) {
3974
3987
  qi(e, a, o) || (i?.(e), v(!1));
3975
3988
  }
3976
- let ae = Xi(x, C), oe = Zi(x), se = Array.from({ length: 12 }, (e, t) => oe + t), ce = !a || new Date(x - 10, C + 1, 0) >= X(a), A = !a || new Date(x, C, 0) >= X(a), le = !o || new Date(x, C + 1, 1) <= X(o), ue = !o || new Date(x + 10, C, 1) <= X(o), j = !a || new Date(oe - 1, 11, 31) >= X(a), M = !o || new Date(oe + 12, 0, 1) <= X(o);
3989
+ let ie = Xi(x, C), ae = Zi(x), oe = Array.from({ length: 12 }, (e, t) => ae + t), se = !a || new Date(x - 10, C + 1, 0) >= X(a), j = !a || new Date(x, C, 0) >= X(a), ce = !o || new Date(x, C + 1, 1) <= X(o), le = !o || new Date(x + 10, C, 1) <= X(o), M = !a || new Date(ae - 1, 11, 31) >= X(a), ue = !o || new Date(ae + 12, 0, 1) <= X(o);
3977
3990
  return /* @__PURE__ */ t(Kn, {
3978
3991
  label: c,
3979
3992
  caption: l,
@@ -4010,7 +4023,7 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
4010
4023
  children: [
4011
4024
  /* @__PURE__ */ t(B, {
4012
4025
  onClick: O,
4013
- disabled: !ce,
4026
+ disabled: !se,
4014
4027
  "aria-label": "Previous 10 years",
4015
4028
  className: "date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4",
4016
4029
  children: /* @__PURE__ */ t(Qe, {})
@@ -4020,7 +4033,7 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
4020
4033
  children: [
4021
4034
  /* @__PURE__ */ t(B, {
4022
4035
  onClick: D,
4023
- disabled: !A,
4036
+ disabled: !j,
4024
4037
  "aria-label": "Previous month",
4025
4038
  className: "date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4",
4026
4039
  children: /* @__PURE__ */ t(V, {})
@@ -4037,7 +4050,7 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
4037
4050
  }),
4038
4051
  /* @__PURE__ */ t(B, {
4039
4052
  onClick: ee,
4040
- disabled: !le,
4053
+ disabled: !ce,
4041
4054
  "aria-label": "Next month",
4042
4055
  className: "date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4",
4043
4056
  children: /* @__PURE__ */ t(Ge, {})
@@ -4046,7 +4059,7 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
4046
4059
  }),
4047
4060
  /* @__PURE__ */ t(B, {
4048
4061
  onClick: k,
4049
- disabled: !ue,
4062
+ disabled: !le,
4050
4063
  "aria-label": "Next 10 years",
4051
4064
  className: "date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4",
4052
4065
  children: /* @__PURE__ */ t($e, {})
@@ -4062,12 +4075,12 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
4062
4075
  }),
4063
4076
  /* @__PURE__ */ t("div", {
4064
4077
  className: "grid grid-cols-7",
4065
- children: ae.map((e, n) => {
4078
+ children: ie.map((e, n) => {
4066
4079
  let i = e.getMonth() === C, s = !!r && Ki(e, r), c = Ki(e, g), l = qi(e, a, o), u = !i;
4067
4080
  return /* @__PURE__ */ t("div", {
4068
4081
  className: "flex items-center justify-center p-0.5",
4069
4082
  children: /* @__PURE__ */ t(B, {
4070
- onClick: () => ie(e),
4083
+ onClick: () => re(e),
4071
4084
  disabled: l || u,
4072
4085
  "aria-label": Yi(e, Ui.DayMonthYear),
4073
4086
  "aria-selected": s,
@@ -4089,7 +4102,7 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
4089
4102
  children: [
4090
4103
  /* @__PURE__ */ t(B, {
4091
4104
  onClick: te,
4092
- disabled: !j,
4105
+ disabled: !M,
4093
4106
  "aria-label": "Previous decade",
4094
4107
  className: "date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4",
4095
4108
  children: /* @__PURE__ */ t(Qe, {})
@@ -4097,14 +4110,14 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
4097
4110
  /* @__PURE__ */ n("span", {
4098
4111
  className: "date-picker-header-text-color text-label-lg font-semibold",
4099
4112
  children: [
4100
- oe,
4113
+ ae,
4101
4114
  " – ",
4102
- oe + 12 - 1
4115
+ ae + 12 - 1
4103
4116
  ]
4104
4117
  }),
4105
4118
  /* @__PURE__ */ t(B, {
4106
- onClick: ne,
4107
- disabled: !M,
4119
+ onClick: A,
4120
+ disabled: !ue,
4108
4121
  "aria-label": "Next decade",
4109
4122
  className: "date-picker-nav-icon-color enabled:hover:date-picker-nav-bg-hover flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:delay-75 disabled:cursor-not-allowed disabled:opacity-40 [&_svg]:h-4 [&_svg]:w-4",
4110
4123
  children: /* @__PURE__ */ t($e, {})
@@ -4112,10 +4125,10 @@ function Qi({ value: r, onChange: i, minDate: a, maxDate: o, dateFormat: s = Ui.
4112
4125
  ]
4113
4126
  }), /* @__PURE__ */ t("div", {
4114
4127
  className: "grid grid-cols-3 gap-1",
4115
- children: se.map((e) => {
4128
+ children: oe.map((e) => {
4116
4129
  let n = r?.getFullYear() === e, i = g.getFullYear() === e, s = Ji(e, a, o);
4117
4130
  return /* @__PURE__ */ t(B, {
4118
- onClick: () => re(e),
4131
+ onClick: () => ne(e),
4119
4132
  disabled: s,
4120
4133
  "aria-label": String(e),
4121
4134
  "aria-selected": n,
@@ -5746,6 +5759,6 @@ function Rc({ children: e, hideBorder: n }) {
5746
5759
  });
5747
5760
  }
5748
5761
  //#endregion
5749
- export { Rc as Accordion, Lc as AccordionContent, Ic as AccordionHeader, ni as Account, _n as Address, yn as AssetMediaRenderer, Ne as Badge, ke as BadgeSize, P as BadgeType, z as Button, R as ButtonHtmlType, He as ButtonPill, St as ButtonSegment, xt as ButtonSegmentType, I as ButtonSize, L as ButtonType, B as ButtonUnstyled, Ei as Card, Di as CardAction, bi as CardActionType, Mi as CardBody, ji as CardImage, _i as CardType, Ct as Checkbox, An as Chip, bn as ChipSize, K as ChipType, Qi as DatePicker, Ui as DatePickerFormat, mc as Dialog, xc as DialogBody, gc as DialogClose, yc as DialogContent, pc as DialogPosition, bc as DialogTitle, hc as DialogTrigger, Bi as DisplayStats, Y as DisplayStatsSize, Ni as DisplayStatsType, kt as Divider, Tt as DividerType, ri as Dropdown, ii as DropdownPosition, zt as Header, ne as IOTA_NAMES_COLOR_PALETTE, te as IOTA_PRIMITIVES_COLOR_PALETTE, Ut as Image, yi as ImageShape, vi as ImageType, Ht as ImageWithFallback, qt as InfoBox, Wt as InfoBoxStyle, W as InfoBoxType, Rr as Input, q as InputType, Nt as KeyValueInfo, Lt as LabelText, U as LabelTextSize, Rt as ListItem, Zt as LoadingIndicator, Vt as MediaFallback, Pc as Navbar, ti as NavbarItem, Wr as NavbarItemType, Fc as NavbarSlideout, Bt as Panel, Qt as Placeholder, mt as RadioButton, Jn as Resize, re as SHADER_COLOR_PALETTE, D as ScreenSize, gi as Search, J as SearchBarType, gn as SecondaryText, Pn as SegmentedButton, jn as SegmentedButtonType, li as Select, ci as SelectSize, $t as Skeleton, Xt as Snackbar, G as SnackbarType, Tc as Table, Ec as TableActionButton, jc as TableBody, ai as TableCellBase, si as TableCellPlaceholder, oi as TableCellText, Dc as TableHeader, fi as TableHeaderCell, di as TableHeaderCellSortOrder, Nc as TableHeaderCheckbox, Oc as TableRow, Mc as TableRowCheckbox, Hr as TextArea, Rn as Title, Fn as TitleSize, hn as Toggle, an as ToggleLabelPosition, rn as ToggleSize, Mt as Tooltip, jt as TooltipPosition, ee as UIKitTheme, At as ValueSize, nn as Video, Vi as VisualAssetCard, vn as VisualAssetType, Ee as uiKitResponsivePreset, De as uiKitStaticPreset };
5762
+ export { Rc as Accordion, Lc as AccordionContent, Ic as AccordionHeader, ni as Account, _n as Address, yn as AssetMediaRenderer, Ne as Badge, ke as BadgeSize, P as BadgeType, z as Button, R as ButtonHtmlType, He as ButtonPill, St as ButtonSegment, xt as ButtonSegmentType, I as ButtonSize, L as ButtonType, B as ButtonUnstyled, Ei as Card, Di as CardAction, bi as CardActionType, Mi as CardBody, ji as CardImage, _i as CardType, Ct as Checkbox, An as Chip, bn as ChipSize, K as ChipType, Qi as DatePicker, Ui as DatePickerFormat, mc as Dialog, xc as DialogBody, gc as DialogClose, yc as DialogContent, pc as DialogPosition, bc as DialogTitle, hc as DialogTrigger, Bi as DisplayStats, Y as DisplayStatsSize, Ni as DisplayStatsType, kt as Divider, Tt as DividerType, ri as Dropdown, ii as DropdownPosition, zt as Header, A as IOTA_NAMES_COLOR_PALETTE, te as IOTA_PRIMITIVES_COLOR_PALETTE, Ut as Image, yi as ImageShape, vi as ImageType, Ht as ImageWithFallback, qt as InfoBox, Wt as InfoBoxStyle, W as InfoBoxType, Rr as Input, q as InputType, Nt as KeyValueInfo, Lt as LabelText, U as LabelTextSize, Rt as ListItem, Zt as LoadingIndicator, Vt as MediaFallback, Pc as Navbar, ti as NavbarItem, Wr as NavbarItemType, Fc as NavbarSlideout, Bt as Panel, Qt as Placeholder, mt as RadioButton, Jn as Resize, ne as SHADER_COLOR_PALETTE, D as ScreenSize, gi as Search, J as SearchBarType, gn as SecondaryText, Pn as SegmentedButton, jn as SegmentedButtonType, li as Select, ci as SelectSize, $t as Skeleton, Xt as Snackbar, G as SnackbarType, Tc as Table, Ec as TableActionButton, jc as TableBody, ai as TableCellBase, si as TableCellPlaceholder, oi as TableCellText, Dc as TableHeader, fi as TableHeaderCell, di as TableHeaderCellSortOrder, Nc as TableHeaderCheckbox, Oc as TableRow, Mc as TableRowCheckbox, Hr as TextArea, Rn as Title, Fn as TitleSize, hn as Toggle, an as ToggleLabelPosition, rn as ToggleSize, Mt as Tooltip, jt as TooltipPosition, ee as UIKitTheme, At as ValueSize, nn as Video, Vi as VisualAssetCard, vn as VisualAssetType, Ee as uiKitResponsivePreset, De as uiKitStaticPreset };
5750
5763
 
5751
5764
  //# sourceMappingURL=index.es.js.map