@youversion/design-system-components 3.10.11 → 3.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
@@ -1315,7 +1315,7 @@ function f1() {
1315
1315
  return o(Fr.apply(null, arguments));
1316
1316
  };
1317
1317
  }
1318
- function W(r) {
1318
+ function D(r) {
1319
1319
  var i = function(t) {
1320
1320
  return t[r] || [];
1321
1321
  };
@@ -1381,15 +1381,15 @@ function ca(r) {
1381
1381
  return Jr.test(r);
1382
1382
  }
1383
1383
  function p1() {
1384
- var r = W("colors"), i = W("spacing"), l = W("blur"), t = W("brightness"), a = W("borderColor"), e = W("borderRadius"), o = W("borderSpacing"), Z = W("borderWidth"), v = W("contrast"), f = W("grayscale"), w = W("hueRotate"), g = W("invert"), b = W("gap"), C = W("gradientColorStops"), x = W("gradientColorStopPositions"), M = W("inset"), k = W("margin"), z = W("opacity"), I = W("padding"), N = W("saturate"), B = W("scale"), $ = W("sepia"), A = W("skew"), E = W("space"), R = W("translate"), p = function() {
1384
+ var r = D("colors"), i = D("spacing"), l = D("blur"), t = D("brightness"), a = D("borderColor"), e = D("borderRadius"), o = D("borderSpacing"), Z = D("borderWidth"), v = D("contrast"), f = D("grayscale"), w = D("hueRotate"), g = D("invert"), b = D("gap"), C = D("gradientColorStops"), x = D("gradientColorStopPositions"), M = D("inset"), k = D("margin"), z = D("opacity"), R = D("padding"), B = D("saturate"), N = D("scale"), E = D("sepia"), H = D("skew"), T = D("space"), I = D("translate"), p = function() {
1385
1385
  return ["auto", "contain", "none"];
1386
- }, S = function() {
1386
+ }, $ = function() {
1387
1387
  return ["auto", "hidden", "clip", "visible", "scroll"];
1388
- }, L = function() {
1388
+ }, S = function() {
1389
1389
  return ["auto", i];
1390
- }, D = function() {
1390
+ }, P = function() {
1391
1391
  return ["", s0];
1392
- }, F = function() {
1392
+ }, V = function() {
1393
1393
  return ["auto", M0, Y];
1394
1394
  }, U = function() {
1395
1395
  return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
@@ -1418,7 +1418,7 @@ function p1() {
1418
1418
  borderColor: [r],
1419
1419
  borderRadius: ["none", "", "full", b0, x0],
1420
1420
  borderSpacing: [i],
1421
- borderWidth: D(),
1421
+ borderWidth: P(),
1422
1422
  contrast: d0(),
1423
1423
  grayscale: a0(),
1424
1424
  hueRotate: u0(),
@@ -1426,8 +1426,8 @@ function p1() {
1426
1426
  gap: [i],
1427
1427
  gradientColorStops: [r],
1428
1428
  gradientColorStopPositions: [ta, x0],
1429
- inset: L(),
1430
- margin: L(),
1429
+ inset: S(),
1430
+ margin: S(),
1431
1431
  opacity: d0(),
1432
1432
  padding: [i],
1433
1433
  saturate: d0(),
@@ -1536,21 +1536,21 @@ function p1() {
1536
1536
  * @see https://tailwindcss.com/docs/overflow
1537
1537
  */
1538
1538
  overflow: [{
1539
- overflow: S()
1539
+ overflow: $()
1540
1540
  }],
1541
1541
  /**
1542
1542
  * Overflow X
1543
1543
  * @see https://tailwindcss.com/docs/overflow
1544
1544
  */
1545
1545
  "overflow-x": [{
1546
- "overflow-x": S()
1546
+ "overflow-x": $()
1547
1547
  }],
1548
1548
  /**
1549
1549
  * Overflow Y
1550
1550
  * @see https://tailwindcss.com/docs/overflow
1551
1551
  */
1552
1552
  "overflow-y": [{
1553
- "overflow-y": S()
1553
+ "overflow-y": $()
1554
1554
  }],
1555
1555
  /**
1556
1556
  * Overscroll Behavior
@@ -1659,7 +1659,7 @@ function p1() {
1659
1659
  * @see https://tailwindcss.com/docs/flex-basis
1660
1660
  */
1661
1661
  basis: [{
1662
- basis: L()
1662
+ basis: S()
1663
1663
  }],
1664
1664
  /**
1665
1665
  * Flex Direction
@@ -1724,14 +1724,14 @@ function p1() {
1724
1724
  * @see https://tailwindcss.com/docs/grid-column
1725
1725
  */
1726
1726
  "col-start": [{
1727
- "col-start": F()
1727
+ "col-start": V()
1728
1728
  }],
1729
1729
  /**
1730
1730
  * Grid Column End
1731
1731
  * @see https://tailwindcss.com/docs/grid-column
1732
1732
  */
1733
1733
  "col-end": [{
1734
- "col-end": F()
1734
+ "col-end": V()
1735
1735
  }],
1736
1736
  /**
1737
1737
  * Grid Template Rows
@@ -1754,14 +1754,14 @@ function p1() {
1754
1754
  * @see https://tailwindcss.com/docs/grid-row
1755
1755
  */
1756
1756
  "row-start": [{
1757
- "row-start": F()
1757
+ "row-start": V()
1758
1758
  }],
1759
1759
  /**
1760
1760
  * Grid Row End
1761
1761
  * @see https://tailwindcss.com/docs/grid-row
1762
1762
  */
1763
1763
  "row-end": [{
1764
- "row-end": F()
1764
+ "row-end": V()
1765
1765
  }],
1766
1766
  /**
1767
1767
  * Grid Auto Flow
@@ -1874,63 +1874,63 @@ function p1() {
1874
1874
  * @see https://tailwindcss.com/docs/padding
1875
1875
  */
1876
1876
  p: [{
1877
- p: [I]
1877
+ p: [R]
1878
1878
  }],
1879
1879
  /**
1880
1880
  * Padding X
1881
1881
  * @see https://tailwindcss.com/docs/padding
1882
1882
  */
1883
1883
  px: [{
1884
- px: [I]
1884
+ px: [R]
1885
1885
  }],
1886
1886
  /**
1887
1887
  * Padding Y
1888
1888
  * @see https://tailwindcss.com/docs/padding
1889
1889
  */
1890
1890
  py: [{
1891
- py: [I]
1891
+ py: [R]
1892
1892
  }],
1893
1893
  /**
1894
1894
  * Padding Start
1895
1895
  * @see https://tailwindcss.com/docs/padding
1896
1896
  */
1897
1897
  ps: [{
1898
- ps: [I]
1898
+ ps: [R]
1899
1899
  }],
1900
1900
  /**
1901
1901
  * Padding End
1902
1902
  * @see https://tailwindcss.com/docs/padding
1903
1903
  */
1904
1904
  pe: [{
1905
- pe: [I]
1905
+ pe: [R]
1906
1906
  }],
1907
1907
  /**
1908
1908
  * Padding Top
1909
1909
  * @see https://tailwindcss.com/docs/padding
1910
1910
  */
1911
1911
  pt: [{
1912
- pt: [I]
1912
+ pt: [R]
1913
1913
  }],
1914
1914
  /**
1915
1915
  * Padding Right
1916
1916
  * @see https://tailwindcss.com/docs/padding
1917
1917
  */
1918
1918
  pr: [{
1919
- pr: [I]
1919
+ pr: [R]
1920
1920
  }],
1921
1921
  /**
1922
1922
  * Padding Bottom
1923
1923
  * @see https://tailwindcss.com/docs/padding
1924
1924
  */
1925
1925
  pb: [{
1926
- pb: [I]
1926
+ pb: [R]
1927
1927
  }],
1928
1928
  /**
1929
1929
  * Padding Left
1930
1930
  * @see https://tailwindcss.com/docs/padding
1931
1931
  */
1932
1932
  pl: [{
1933
- pl: [I]
1933
+ pl: [R]
1934
1934
  }],
1935
1935
  /**
1936
1936
  * Margin
@@ -2000,7 +2000,7 @@ function p1() {
2000
2000
  * @see https://tailwindcss.com/docs/space
2001
2001
  */
2002
2002
  "space-x": [{
2003
- "space-x": [E]
2003
+ "space-x": [T]
2004
2004
  }],
2005
2005
  /**
2006
2006
  * Space Between X Reverse
@@ -2012,7 +2012,7 @@ function p1() {
2012
2012
  * @see https://tailwindcss.com/docs/space
2013
2013
  */
2014
2014
  "space-y": [{
2015
- "space-y": [E]
2015
+ "space-y": [T]
2016
2016
  }],
2017
2017
  /**
2018
2018
  * Space Between Y Reverse
@@ -2710,7 +2710,7 @@ function p1() {
2710
2710
  * @see https://tailwindcss.com/docs/ring-width
2711
2711
  */
2712
2712
  "ring-w": [{
2713
- ring: D()
2713
+ ring: P()
2714
2714
  }],
2715
2715
  /**
2716
2716
  * Ring Width Inset
@@ -2844,14 +2844,14 @@ function p1() {
2844
2844
  * @see https://tailwindcss.com/docs/saturate
2845
2845
  */
2846
2846
  saturate: [{
2847
- saturate: [N]
2847
+ saturate: [B]
2848
2848
  }],
2849
2849
  /**
2850
2850
  * Sepia
2851
2851
  * @see https://tailwindcss.com/docs/sepia
2852
2852
  */
2853
2853
  sepia: [{
2854
- sepia: [$]
2854
+ sepia: [E]
2855
2855
  }],
2856
2856
  /**
2857
2857
  * Backdrop Filter
@@ -2915,14 +2915,14 @@ function p1() {
2915
2915
  * @see https://tailwindcss.com/docs/backdrop-saturate
2916
2916
  */
2917
2917
  "backdrop-saturate": [{
2918
- "backdrop-saturate": [N]
2918
+ "backdrop-saturate": [B]
2919
2919
  }],
2920
2920
  /**
2921
2921
  * Backdrop Sepia
2922
2922
  * @see https://tailwindcss.com/docs/backdrop-sepia
2923
2923
  */
2924
2924
  "backdrop-sepia": [{
2925
- "backdrop-sepia": [$]
2925
+ "backdrop-sepia": [E]
2926
2926
  }],
2927
2927
  // Tables
2928
2928
  /**
@@ -3016,21 +3016,21 @@ function p1() {
3016
3016
  * @see https://tailwindcss.com/docs/scale
3017
3017
  */
3018
3018
  scale: [{
3019
- scale: [B]
3019
+ scale: [N]
3020
3020
  }],
3021
3021
  /**
3022
3022
  * Scale X
3023
3023
  * @see https://tailwindcss.com/docs/scale
3024
3024
  */
3025
3025
  "scale-x": [{
3026
- "scale-x": [B]
3026
+ "scale-x": [N]
3027
3027
  }],
3028
3028
  /**
3029
3029
  * Scale Y
3030
3030
  * @see https://tailwindcss.com/docs/scale
3031
3031
  */
3032
3032
  "scale-y": [{
3033
- "scale-y": [B]
3033
+ "scale-y": [N]
3034
3034
  }],
3035
3035
  /**
3036
3036
  * Rotate
@@ -3044,28 +3044,28 @@ function p1() {
3044
3044
  * @see https://tailwindcss.com/docs/translate
3045
3045
  */
3046
3046
  "translate-x": [{
3047
- "translate-x": [R]
3047
+ "translate-x": [I]
3048
3048
  }],
3049
3049
  /**
3050
3050
  * Translate Y
3051
3051
  * @see https://tailwindcss.com/docs/translate
3052
3052
  */
3053
3053
  "translate-y": [{
3054
- "translate-y": [R]
3054
+ "translate-y": [I]
3055
3055
  }],
3056
3056
  /**
3057
3057
  * Skew X
3058
3058
  * @see https://tailwindcss.com/docs/skew
3059
3059
  */
3060
3060
  "skew-x": [{
3061
- "skew-x": [A]
3061
+ "skew-x": [H]
3062
3062
  }],
3063
3063
  /**
3064
3064
  * Skew Y
3065
3065
  * @see https://tailwindcss.com/docs/skew
3066
3066
  */
3067
3067
  "skew-y": [{
3068
- "skew-y": [A]
3068
+ "skew-y": [H]
3069
3069
  }],
3070
3070
  /**
3071
3071
  * Transform Origin
@@ -3480,12 +3480,12 @@ const W0 = (r) => {
3480
3480
  4: "shadow-light-4 dark:shadow-dark-4",
3481
3481
  8: "shadow-light-8 dark:shadow-dark-8",
3482
3482
  12: "shadow-light-12 dark:shadow-dark-12"
3483
- }, M = W0(o), k = W0(r), z = W0(i), I = w1(w), N = w1(f), B = u(
3483
+ }, M = W0(o), k = W0(r), z = W0(i), R = w1(w), B = w1(f), N = u(
3484
3484
  l,
3485
3485
  t,
3486
3486
  x[Z],
3487
- N,
3488
- I,
3487
+ B,
3488
+ R,
3489
3489
  M,
3490
3490
  k,
3491
3491
  z,
@@ -3494,7 +3494,7 @@ const W0 = (r) => {
3494
3494
  a
3495
3495
  );
3496
3496
  return m0(e, {
3497
- className: B,
3497
+ className: N,
3498
3498
  ...b,
3499
3499
  ref: C
3500
3500
  });
@@ -3646,8 +3646,8 @@ const xa = ({ className: r, component: i = "p", children: l, font: t = "primary"
3646
3646
  children: l
3647
3647
  }
3648
3648
  );
3649
- }, V = d(xa);
3650
- V.displayName = "Text";
3649
+ }, L = d(xa);
3650
+ L.displayName = "Text";
3651
3651
  const Ma = ({
3652
3652
  className: r,
3653
3653
  disabled: i,
@@ -3667,12 +3667,12 @@ const Ma = ({
3667
3667
  value: M,
3668
3668
  ...k
3669
3669
  }, z) => {
3670
- const I = Q(null), N = V0({ forwardedRef: z, innerRef: I }), [B, $] = J1(N, M, k.defaultValue), A = M !== void 0 ? !!(M || g) : !!(B || g), [E, R] = K(!1), p = (D) => {
3671
- M === void 0 && $(!!D.target.value), w && w(D);
3670
+ const R = Q(null), B = V0({ forwardedRef: z, innerRef: R }), [N, E] = J1(B, M, k.defaultValue), H = M !== void 0 ? !!(M || g) : !!(N || g), [T, I] = K(!1), p = (P) => {
3671
+ M === void 0 && E(!!P.target.value), w && w(P);
3672
+ }, $ = () => {
3673
+ i || !B.current || (B.current.focus(), I(!0));
3672
3674
  }, S = () => {
3673
- i || !N.current || (N.current.focus(), R(!0));
3674
- }, L = () => {
3675
- R(!1);
3675
+ I(!1);
3676
3676
  };
3677
3677
  return /* @__PURE__ */ n("div", { className: u(["flex items-start flex-col gap-0.5", r]), children: [
3678
3678
  /* @__PURE__ */ n(
@@ -3688,13 +3688,13 @@ const Ma = ({
3688
3688
  "focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark": l
3689
3689
  }
3690
3690
  ]),
3691
- onClick: S,
3692
- onFocus: S,
3691
+ onClick: $,
3692
+ onFocus: $,
3693
3693
  children: [
3694
3694
  C ? /* @__PURE__ */ c("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: C }) : null,
3695
3695
  /* @__PURE__ */ n("span", { className: "relative flex flex-1 overflow-hidden", children: [
3696
- b && (E || A) ? /* @__PURE__ */ c(
3697
- V,
3696
+ b && (T || H) ? /* @__PURE__ */ c(
3697
+ L,
3698
3698
  {
3699
3699
  className: u(
3700
3700
  "text-text-muted-light dark:text-text-muted-dark select-none pointer-events-none",
@@ -3718,16 +3718,16 @@ const Ma = ({
3718
3718
  disabled: i,
3719
3719
  id: f,
3720
3720
  name: f,
3721
- onBlur: L,
3721
+ onBlur: S,
3722
3722
  onChange: p,
3723
3723
  placeholder: g,
3724
- ref: N,
3724
+ ref: B,
3725
3725
  value: M,
3726
3726
  ...k
3727
3727
  }
3728
3728
  ),
3729
- x && (E || A) ? /* @__PURE__ */ c(
3730
- V,
3729
+ x && (T || H) ? /* @__PURE__ */ c(
3730
+ L,
3731
3731
  {
3732
3732
  className: u(
3733
3733
  "text-text-muted-light dark:text-text-muted-dark select-none pointer-events-none",
@@ -3743,7 +3743,7 @@ const Ma = ({
3743
3743
  className: u(
3744
3744
  "items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",
3745
3745
  C ? "inline-start-1" : "inline-start-2",
3746
- E || A ? "text-13 -translate-y-1.5" : "text-16"
3746
+ T || H ? "text-13 -translate-y-1.5" : "text-16"
3747
3747
  ),
3748
3748
  htmlFor: f,
3749
3749
  children: v
@@ -3832,7 +3832,7 @@ const Ca = ({
3832
3832
  ignoreClickOutside: g = !1,
3833
3833
  ...b
3834
3834
  }, C) => {
3835
- const x = Q(null), M = Q(null), [k, z] = K(w), [I, N] = K(!1);
3835
+ const x = Q(null), M = Q(null), [k, z] = K(w), [R, B] = K(!1);
3836
3836
  e1(
3837
3837
  C,
3838
3838
  () => ({
@@ -3843,58 +3843,58 @@ const Ca = ({
3843
3843
  }),
3844
3844
  [v]
3845
3845
  );
3846
- const B = (R) => {
3847
- I || N(!0), !R.length && k && z(null), v(R);
3848
- }, $ = (R) => {
3849
- f(R), v(R.label), z(R.label), N(!1);
3850
- }, A = g0(
3851
- (R) => {
3852
- M.current && !M.current.contains(R.target) && (!g && w && v(k || ""), N(!1));
3846
+ const N = (I) => {
3847
+ R || B(!0), !I.length && k && z(null), v(I);
3848
+ }, E = (I) => {
3849
+ f(I), v(I.label), z(I.label), B(!1);
3850
+ }, H = g0(
3851
+ (I) => {
3852
+ M.current && !M.current.contains(I.target) && (!g && w && v(k || ""), B(!1));
3853
3853
  },
3854
3854
  [g, v, k, w]
3855
- ), E = t0(() => t.filter((R) => R.label.toLowerCase().includes(w.toLowerCase())) ?? [], [t, w]);
3856
- return v0(() => (document.addEventListener("click", A, !0), () => {
3857
- document.removeEventListener("click", A, !0);
3858
- }), [A]), /* @__PURE__ */ n(j, { className: "relative", ref: M, children: [
3855
+ ), T = t0(() => t.filter((I) => I.label.toLowerCase().includes(w.toLowerCase())) ?? [], [t, w]);
3856
+ return v0(() => (document.addEventListener("click", H, !0), () => {
3857
+ document.removeEventListener("click", H, !0);
3858
+ }), [H]), /* @__PURE__ */ n(j, { className: "relative", ref: M, children: [
3859
3859
  r ? /* @__PURE__ */ c(L0, { className: "absolute z-1" }) : null,
3860
3860
  /* @__PURE__ */ c(
3861
3861
  c1,
3862
3862
  {
3863
3863
  "aria-controls": `${l ?? i}-options`,
3864
- "aria-expanded": I,
3864
+ "aria-expanded": R,
3865
3865
  disabled: a || r,
3866
3866
  endIcon: /* @__PURE__ */ c(H0, { size: "24" }),
3867
3867
  error: e,
3868
3868
  hint: o,
3869
3869
  label: i,
3870
3870
  name: l ?? i,
3871
- onChange: (R) => {
3872
- B(R.target.value);
3871
+ onChange: (I) => {
3872
+ N(I.target.value);
3873
3873
  },
3874
- onFocus: () => N(!0),
3874
+ onFocus: () => B(!0),
3875
3875
  ref: x,
3876
3876
  role: "combobox",
3877
3877
  value: w ?? "",
3878
3878
  ...b
3879
3879
  }
3880
3880
  ),
3881
- I ? /* @__PURE__ */ c(j, { className: "absolute top-[calc(100%+1px)] w-full z-50", children: /* @__PURE__ */ c(
3881
+ R ? /* @__PURE__ */ c(j, { className: "absolute top-[calc(100%+1px)] w-full z-50", children: /* @__PURE__ */ c(
3882
3882
  j,
3883
3883
  {
3884
3884
  className: "max-h-[300px] overflow-y-auto bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",
3885
3885
  id: `${l ?? i}-options`,
3886
3886
  role: "listbox",
3887
- children: E.length ? E.map((R, p) => /* @__PURE__ */ c(
3887
+ children: T.length ? T.map((I, p) => /* @__PURE__ */ c(
3888
3888
  "div",
3889
3889
  {
3890
- "aria-selected": k !== R.value,
3890
+ "aria-selected": k !== I.value,
3891
3891
  className: "p-2 cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50",
3892
- id: `${R.value}-${p}`,
3893
- onClick: () => $(R),
3892
+ id: `${I.value}-${p}`,
3893
+ onClick: () => E(I),
3894
3894
  role: "option",
3895
- children: R.label
3895
+ children: I.label
3896
3896
  },
3897
- `${R.value}-${p}`
3897
+ `${I.value}-${p}`
3898
3898
  )) : /* @__PURE__ */ c(R0, { children: Z }, "no-options")
3899
3899
  }
3900
3900
  ) }) : null
@@ -3934,7 +3934,7 @@ function Dc({ className: r, children: i, variant: l = "default" }) {
3934
3934
  }, [l]);
3935
3935
  return /* @__PURE__ */ n("div", { className: u(Ia[l], r), children: [
3936
3936
  /* @__PURE__ */ c("div", { className: za[l], children: t }),
3937
- typeof i == "string" ? /* @__PURE__ */ c(V, { className: Ra[l], children: i }) : i
3937
+ typeof i == "string" ? /* @__PURE__ */ c(L, { className: Ra[l], children: i }) : i
3938
3938
  ] });
3939
3939
  }
3940
3940
  const Na = ({
@@ -3945,7 +3945,7 @@ const Na = ({
3945
3945
  active: a,
3946
3946
  ...e
3947
3947
  }) => /* @__PURE__ */ c(
3948
- V,
3948
+ L,
3949
3949
  {
3950
3950
  className: u([
3951
3951
  "font-bold text-gray-50 leading-default whitespace-nowrap",
@@ -4171,22 +4171,22 @@ const La = ({
4171
4171
  ...b
4172
4172
  }, C) => {
4173
4173
  "use client";
4174
- const x = /^#[0-9A-F]{0,6}$/i, M = /^#([0-9A-F]{3}){1,2}$/i, k = Q(null), z = Q(null), [I, N] = K(!1), B = C ?? k, $ = (p) => {
4174
+ const x = /^#[0-9A-F]{0,6}$/i, M = /^#([0-9A-F]{3}){1,2}$/i, k = Q(null), z = Q(null), [R, B] = K(!1), N = C ?? k, E = (p) => {
4175
4175
  if (!p.target.value.length)
4176
4176
  return Z(p);
4177
- const S = p.target.value.startsWith("#") ? p.target.value : `#${p.target.value}`;
4178
- x.test(S) && (p.target.value = S, Z(p));
4177
+ const $ = p.target.value.startsWith("#") ? p.target.value : `#${p.target.value}`;
4178
+ x.test($) && (p.target.value = $, Z(p));
4179
4179
  };
4180
- function A(p) {
4181
- const S = M.test(w) ? w : "";
4182
- p.target.value = S, p.target.name = o, Z(p);
4180
+ function H(p) {
4181
+ const $ = M.test(w) ? w : "";
4182
+ p.target.value = $, p.target.name = o, Z(p);
4183
4183
  }
4184
- function E() {
4184
+ function T() {
4185
4185
  var p;
4186
- i || (N(!0), (p = B == null ? void 0 : B.current) == null || p.focus());
4186
+ i || (B(!0), (p = N == null ? void 0 : N.current) == null || p.focus());
4187
4187
  }
4188
- function R() {
4189
- N(!1);
4188
+ function I() {
4189
+ B(!1);
4190
4190
  }
4191
4191
  return /* @__PURE__ */ n("div", { className: r, children: [
4192
4192
  /* @__PURE__ */ n(
@@ -4197,12 +4197,12 @@ const La = ({
4197
4197
  a,
4198
4198
  i ? "bg-gray-10 dark:bg-overlay-body-dark cursor-default" : "",
4199
4199
  t ? "border-alert dark:border-alert-dark" : "",
4200
- I ? "border-blue-30 border-standard" : ""
4200
+ R ? "border-blue-30 border-standard" : ""
4201
4201
  ),
4202
- onClick: E,
4202
+ onClick: T,
4203
4203
  children: [
4204
4204
  /* @__PURE__ */ n("div", { className: "flex flex-col justify-center items-start", id: "labelAndInput", children: [
4205
- g || !g && I ? /* @__PURE__ */ c("label", { className: "text-13 font-medium text-gray-25", htmlFor: `${o}-input`, children: e }) : null,
4205
+ g || !g && R ? /* @__PURE__ */ c("label", { className: "text-13 font-medium text-gray-25", htmlFor: `${o}-input`, children: e }) : null,
4206
4206
  /* @__PURE__ */ c("div", { id: "inputWrapper", children: /* @__PURE__ */ c(
4207
4207
  "input",
4208
4208
  {
@@ -4211,10 +4211,10 @@ const La = ({
4211
4211
  id: `${o}-input`,
4212
4212
  maxLength: 7,
4213
4213
  name: o,
4214
- onBlur: R,
4215
- onChange: $,
4214
+ onBlur: I,
4215
+ onChange: E,
4216
4216
  placeholder: v ?? e,
4217
- ref: B,
4217
+ ref: N,
4218
4218
  type: "text",
4219
4219
  value: g
4220
4220
  }
@@ -4229,7 +4229,7 @@ const La = ({
4229
4229
  disabled: i,
4230
4230
  id: `${o}-picker`,
4231
4231
  name: o,
4232
- onChange: $,
4232
+ onChange: E,
4233
4233
  placeholder: `${o}-picker`,
4234
4234
  ref: z,
4235
4235
  type: "color",
@@ -4262,7 +4262,7 @@ const La = ({
4262
4262
  className: "mis-1",
4263
4263
  disabled: i,
4264
4264
  id: `${o}-reset`,
4265
- onClick: A,
4265
+ onClick: H,
4266
4266
  type: "button",
4267
4267
  children: /* @__PURE__ */ c(O1, { className: "text-gray-25 dark:text-gray-20" })
4268
4268
  }
@@ -4388,7 +4388,7 @@ const Ea = ({ page: r, pages: i, maxPages: l = 5 }) => {
4388
4388
  component: a,
4389
4389
  onClick: () => t(k),
4390
4390
  children: /* @__PURE__ */ c(
4391
- V,
4391
+ L,
4392
4392
  {
4393
4393
  className: u(k === l ? x : b, "hidden md:flex mli-0"),
4394
4394
  size: "sm",
@@ -4400,7 +4400,7 @@ const Ea = ({ page: r, pages: i, maxPages: l = 5 }) => {
4400
4400
  k
4401
4401
  )),
4402
4402
  /* @__PURE__ */ c(
4403
- V,
4403
+ L,
4404
4404
  {
4405
4405
  className: "text-text-muted-light dark:text-text-muted-dark flex items-center md:hidden",
4406
4406
  size: "sm",
@@ -4471,7 +4471,7 @@ function I1({ column: r, dataItem: i }) {
4471
4471
  var v;
4472
4472
  return (v = r == null ? void 0 : r.onItemClick) == null ? void 0 : v.call(r, i);
4473
4473
  }, children: /* @__PURE__ */ c(
4474
- V,
4474
+ L,
4475
4475
  {
4476
4476
  className: u("underline truncate sm:max-w-[110px] md:max-w-[170px]", (l = r == null ? void 0 : r.props) == null ? void 0 : l.textClassName),
4477
4477
  size: "sm",
@@ -4483,7 +4483,7 @@ function I1({ column: r, dataItem: i }) {
4483
4483
  return r != null && r.customRender ? r.customRender(String(i[r.dataIndex]), i) : null;
4484
4484
  case "link":
4485
4485
  return i.linkUrl ? /* @__PURE__ */ c("a", { href: String(i.linkUrl), rel: "noreferrer noopener", target: "_blank", children: /* @__PURE__ */ c(
4486
- V,
4486
+ L,
4487
4487
  {
4488
4488
  className: u("underline truncate sm:max-w-[110px] md:max-w-[170px]", (t = r == null ? void 0 : r.props) == null ? void 0 : t.textClassName),
4489
4489
  size: "sm",
@@ -4491,7 +4491,7 @@ function I1({ column: r, dataItem: i }) {
4491
4491
  children: i[r.dataIndex]
4492
4492
  }
4493
4493
  ) }) : /* @__PURE__ */ c(
4494
- V,
4494
+ L,
4495
4495
  {
4496
4496
  className: u("truncate sm:max-w-[110px] md:max-w-[170px]", (a = r == null ? void 0 : r.props) == null ? void 0 : a.textClassName),
4497
4497
  size: "sm",
@@ -4501,7 +4501,7 @@ function I1({ column: r, dataItem: i }) {
4501
4501
  );
4502
4502
  case "percentage":
4503
4503
  return /* @__PURE__ */ n(
4504
- V,
4504
+ L,
4505
4505
  {
4506
4506
  className: u("truncate text-success sm:max-w-[110px] md:max-w-[170px]", (e = r == null ? void 0 : r.props) == null ? void 0 : e.textClassName),
4507
4507
  size: "sm",
@@ -4514,7 +4514,7 @@ function I1({ column: r, dataItem: i }) {
4514
4514
  );
4515
4515
  case "text":
4516
4516
  return /* @__PURE__ */ c(
4517
- V,
4517
+ L,
4518
4518
  {
4519
4519
  className: u("truncate sm:max-w-[110px] md:max-w-[170px]", (o = r == null ? void 0 : r.props) == null ? void 0 : o.textClassName),
4520
4520
  size: "sm",
@@ -4524,7 +4524,7 @@ function I1({ column: r, dataItem: i }) {
4524
4524
  );
4525
4525
  default:
4526
4526
  return /* @__PURE__ */ c(
4527
- V,
4527
+ L,
4528
4528
  {
4529
4529
  className: u("truncate sm:max-w-[110px] md:max-w-[170px]", (Z = r == null ? void 0 : r.props) == null ? void 0 : Z.textClassName),
4530
4530
  size: "sm",
@@ -4576,18 +4576,18 @@ const Wa = 10, Da = d(
4576
4576
  outerClassNames: M,
4577
4577
  paginationClassNames: k,
4578
4578
  paginationData: z,
4579
- rowEndIcon: I,
4580
- rowImageClassNames: N,
4581
- rowItems: B,
4582
- rowHoverStyles: $,
4583
- rowsPerPage: A = Wa,
4584
- selectedPaginationClassNames: E,
4585
- sortSettings: R,
4579
+ rowEndIcon: R,
4580
+ rowImageClassNames: B,
4581
+ rowItems: N,
4582
+ rowHoverStyles: E,
4583
+ rowsPerPage: H = Wa,
4584
+ selectedPaginationClassNames: T,
4585
+ sortSettings: I,
4586
4586
  stripedRowsStyles: p,
4587
- tableClassNames: S,
4588
- tbodyClassNames: L,
4589
- tdClassNames: D,
4590
- thClassNames: F,
4587
+ tableClassNames: $,
4588
+ tbodyClassNames: S,
4589
+ tdClassNames: P,
4590
+ thClassNames: V,
4591
4591
  thTextClassNames: U,
4592
4592
  theadClassNames: r0,
4593
4593
  theme: i0,
@@ -4598,32 +4598,32 @@ const Wa = 10, Da = d(
4598
4598
  }, u0) => {
4599
4599
  switch (a0) {
4600
4600
  case "default": {
4601
- Z = Z !== !1, D = u("plb-0.5 pli-1.5", D), F = u("first:rounded-s-0.5 last:rounded-e-0.5", F);
4601
+ Z = Z !== !1, P = u("plb-0.5 pli-1.5", P), V = u("first:rounded-s-0.5 last:rounded-e-0.5", V);
4602
4602
  break;
4603
4603
  }
4604
4604
  case "stats": {
4605
- S = u("border-spacing-y-0.25", S), D = u("first:rounded-s-0.5 last:rounded-e-0.5 plb-0.5 pli-1.5", D), F = u("first:rounded-s-0.5 last:rounded-e-0.5", F);
4605
+ $ = u("border-spacing-y-0.25", $), P = u("first:rounded-s-0.5 last:rounded-e-0.5 plb-0.5 pli-1.5", P), V = u("first:rounded-s-0.5 last:rounded-e-0.5", V);
4606
4606
  break;
4607
4607
  }
4608
4608
  case "classic": {
4609
- a = a !== !1, v = v !== !1, w = w !== !1, S = u("border-spacing-y-0", S), D = u("first:rounded-s-0.5 last:rounded-e-0.5 pli-1.5 plb-3", D), F = u("first:rounded-ss-1.5 last:rounded-se-1.5", F), U = u("font-semibold", U);
4609
+ a = a !== !1, v = v !== !1, w = w !== !1, $ = u("border-spacing-y-0", $), P = u("first:rounded-s-0.5 last:rounded-e-0.5 pli-1.5 plb-3", P), V = u("first:rounded-ss-1.5 last:rounded-se-1.5", V), U = u("font-semibold", U);
4610
4610
  break;
4611
4611
  }
4612
4612
  }
4613
- const H = $ == null ? void 0 : $.split(" ").map((y) => `hover:${y}`).join(" "), P = z != null && z.currentPage ? (Number(z.currentPage) - 1) * A : 0, e0 = "text-gray-30 dark:text-white text-base", w0 = u("bg-warm-neutral dark:bg-gray-40", R == null ? void 0 : R.columnClassName), C0 = {
4613
+ const A = E == null ? void 0 : E.split(" ").map((y) => `hover:${y}`).join(" "), O = z != null && z.currentPage ? (Number(z.currentPage) - 1) * H : 0, e0 = "text-gray-30 dark:text-white text-base", w0 = u("bg-warm-neutral dark:bg-gray-40", I == null ? void 0 : I.columnClassName), C0 = {
4614
4614
  asc: /* @__PURE__ */ c(T1, { className: e0, size: "16" }),
4615
4615
  desc: /* @__PURE__ */ c(L1, { className: e0, size: "16" }),
4616
4616
  inactive: /* @__PURE__ */ c(F1, { className: e0, size: "16" })
4617
4617
  }, k0 = Z1["blue-10"], _ = Z1["blue-50"], q = g0(
4618
4618
  (y) => {
4619
- const T = i0 === "dark" ? _ : k0;
4620
- return `linear-gradient(to right, ${T} 0%, ${T} ${y}, transparent ${y}, transparent 100%)`;
4619
+ const F = i0 === "dark" ? _ : k0;
4620
+ return `linear-gradient(to right, ${F} 0%, ${F} ${y}, transparent ${y}, transparent 100%)`;
4621
4621
  },
4622
4622
  [k0, _, i0]
4623
4623
  );
4624
4624
  function J(y) {
4625
- const { totalRowsCount: T } = y, G = Math.ceil(T / A);
4626
- return Array.from({ length: G ?? 1 }, (O, f0) => (f0 + 1).toString());
4625
+ const { totalRowsCount: F } = y, W = Math.ceil(F / H);
4626
+ return Array.from({ length: W ?? 1 }, (G, f0) => (f0 + 1).toString());
4627
4627
  }
4628
4628
  return e ? /* @__PURE__ */ c("div", { className: u("w-full p-0 shadow-none relative"), style: { height: g ?? "400px" }, children: /* @__PURE__ */ c(L0, {}) }) : /* @__PURE__ */ c(h0, { children: /* @__PURE__ */ n("div", { className: u("w-full p-0 flex flex-col justify-center relative", M), children: [
4629
4629
  /* @__PURE__ */ c("div", { className: "overflow-x-auto", children: /* @__PURE__ */ n(
@@ -4633,28 +4633,28 @@ const Wa = 10, Da = d(
4633
4633
  "w-full p-0 shadow-none border-spacing-y-0.5 relative",
4634
4634
  t ? "border-[1px] border-gray-10 dark:border-surface-quaternary-dark" : "border-separate",
4635
4635
  f ? "border-collapse" : "",
4636
- S
4636
+ $
4637
4637
  ),
4638
4638
  ref: u0,
4639
4639
  ...d0,
4640
4640
  children: [
4641
4641
  o ? /* @__PURE__ */ c(Ga, { className: r0, children: /* @__PURE__ */ c(R1, { className: Z0, children: i == null ? void 0 : i.map((y) => {
4642
- var G, o0, O;
4643
- const T = (R == null ? void 0 : R.sortBy) === y.dataIndex;
4642
+ var W, o0, G;
4643
+ const F = (I == null ? void 0 : I.sortBy) === y.dataIndex;
4644
4644
  return /* @__PURE__ */ c(
4645
4645
  Oa,
4646
4646
  {
4647
4647
  className: u(
4648
- F,
4648
+ V,
4649
4649
  l ? "bg-surface-tertiary-light last:rounded-e-0 first:rounded-s-0 border-b-small border-t-small border-solid border-surface-quaternary-light dark:border-surface-quaternary-dark" : "",
4650
- T && y.isSortable ? w0 : void 0
4650
+ F && y.isSortable ? w0 : void 0
4651
4651
  ),
4652
4652
  isSortable: y == null ? void 0 : y.isSortable,
4653
- onClick: y != null && y.isSortable && l ? () => l(y.dataIndex, (R == null ? void 0 : R.order) === "desc" ? "asc" : "desc") : () => {
4653
+ onClick: y != null && y.isSortable && l ? () => l(y.dataIndex, (I == null ? void 0 : I.order) === "desc" ? "asc" : "desc") : () => {
4654
4654
  },
4655
4655
  style: {
4656
- backgroundColor: T && (y != null && y.isSortable) ? R.columnBgColor : void 0,
4657
- width: (G = y == null ? void 0 : y.props) == null ? void 0 : G.width
4656
+ backgroundColor: F && (y != null && y.isSortable) ? I.columnBgColor : void 0,
4657
+ width: (W = y == null ? void 0 : y.props) == null ? void 0 : W.width
4658
4658
  },
4659
4659
  children: /* @__PURE__ */ n(
4660
4660
  "div",
@@ -4663,17 +4663,17 @@ const Wa = 10, Da = d(
4663
4663
  style: { justifyContent: ((o0 = y.props) == null ? void 0 : o0.align) ?? "start" },
4664
4664
  children: [
4665
4665
  /* @__PURE__ */ c(
4666
- V,
4666
+ L,
4667
4667
  {
4668
4668
  className: U,
4669
4669
  size: "sm",
4670
- style: { textAlign: ((O = y.props) == null ? void 0 : O.align) ?? "start" },
4670
+ style: { textAlign: ((G = y.props) == null ? void 0 : G.align) ?? "start" },
4671
4671
  variant: "paragraph",
4672
4672
  children: y.title
4673
4673
  }
4674
4674
  ),
4675
- y != null && y.isSortable && !T ? C0.inactive : null,
4676
- y != null && y.isSortable && T ? C0[R.order] : null
4675
+ y != null && y.isSortable && !F ? C0.inactive : null,
4676
+ y != null && y.isSortable && F ? C0[I.order] : null
4677
4677
  ]
4678
4678
  }
4679
4679
  )
@@ -4681,29 +4681,29 @@ const Wa = 10, Da = d(
4681
4681
  y.dataIndex
4682
4682
  );
4683
4683
  }) }) }) : null,
4684
- /* @__PURE__ */ c(ja, { className: L, children: B == null ? void 0 : B.map((y, T) => {
4685
- const G = !!(I || y != null && y.endIcon), o0 = !!x;
4684
+ /* @__PURE__ */ c(ja, { className: S, children: N == null ? void 0 : N.map((y, F) => {
4685
+ const W = !!(R || y != null && y.endIcon), o0 = !!x;
4686
4686
  return /* @__PURE__ */ c(
4687
4687
  R1,
4688
4688
  {
4689
4689
  className: u(
4690
4690
  "relative z-0",
4691
- w && T % 2 !== 0 ? (p == null ? void 0 : p[0]) ?? "bg-canvas-secondary-light dark:bg-surface-quaternary-dark" : "",
4692
- w && T % 2 === 0 ? p == null ? void 0 : p[1] : "",
4693
- Z || y != null && y.rowLink || o0 ? u("hover:bg-warm-neutral hover:dark:bg-warm-neutral-dark", H) : "",
4691
+ w && F % 2 !== 0 ? (p == null ? void 0 : p[0]) ?? "bg-canvas-secondary-light dark:bg-surface-quaternary-dark" : "",
4692
+ w && F % 2 === 0 ? p == null ? void 0 : p[1] : "",
4693
+ Z || y != null && y.rowLink || o0 ? u("hover:bg-warm-neutral hover:dark:bg-warm-neutral-dark", A) : "",
4694
4694
  y != null && y.rowLink || o0 ? "cursor-pointer" : "",
4695
4695
  Z0
4696
4696
  ),
4697
- onClick: () => x == null ? void 0 : x(T),
4697
+ onClick: () => x == null ? void 0 : x(F),
4698
4698
  style: y.width ? {
4699
4699
  background: q(y.width)
4700
4700
  } : {},
4701
- children: i == null ? void 0 : i.map((O, f0) => {
4701
+ children: i == null ? void 0 : i.map((G, f0) => {
4702
4702
  var d1, o1, s1, m1;
4703
4703
  return /* @__PURE__ */ c(
4704
4704
  Pa,
4705
4705
  {
4706
- className: D,
4706
+ className: P,
4707
4707
  isColumnsBordered: a,
4708
4708
  isRowsBordered: f,
4709
4709
  rowLink: y == null ? void 0 : y.rowLink,
@@ -4713,25 +4713,25 @@ const Wa = 10, Da = d(
4713
4713
  className: u(
4714
4714
  "flex w-full relative z-1 items-center",
4715
4715
  f0 === 0 ? "gap-1" : "",
4716
- G && f0 === i.length - 1 ? "!pie-3" : ""
4716
+ W && f0 === i.length - 1 ? "!pie-3" : ""
4717
4717
  ),
4718
- style: { justifyContent: ((d1 = O.props) == null ? void 0 : d1.align) ?? "start" },
4718
+ style: { justifyContent: ((d1 = G.props) == null ? void 0 : d1.align) ?? "start" },
4719
4719
  children: [
4720
- v && f0 === 0 ? /* @__PURE__ */ c(V, { className: "min-w-[16px] text-end", size: "sm", variant: "paragraph", children: `${P + T + 1}` }) : null,
4721
- O != null && O.displayImages && (y != null && y.imageUrl) && f0 === 0 ? /* @__PURE__ */ c(
4720
+ v && f0 === 0 ? /* @__PURE__ */ c(L, { className: "min-w-[16px] text-end", size: "sm", variant: "paragraph", children: `${O + F + 1}` }) : null,
4721
+ G != null && G.displayImages && (y != null && y.imageUrl) && f0 === 0 ? /* @__PURE__ */ c(
4722
4722
  "img",
4723
4723
  {
4724
4724
  alt: "row-image",
4725
- className: u("object-cover h-[32px] w-[32px] rounded-0.25", N),
4725
+ className: u("object-cover h-[32px] w-[32px] rounded-0.25", B),
4726
4726
  src: y == null ? void 0 : y.imageUrl
4727
4727
  }
4728
4728
  ) : null,
4729
- O != null && O.displayImages && !(y != null && y.imageUrl) && f0 === 0 ? /* @__PURE__ */ c(
4729
+ G != null && G.displayImages && !(y != null && y.imageUrl) && f0 === 0 ? /* @__PURE__ */ c(
4730
4730
  "div",
4731
4731
  {
4732
4732
  className: u(
4733
4733
  "h-[32px] w-[32px] rounded-0.25 bg-gray-20 dark:bg-warm-neutral flex justify-center items-center",
4734
- N
4734
+ B
4735
4735
  ),
4736
4736
  children: /* @__PURE__ */ c(t1, { className: "text-warm-neutral dark:text-gray-40", size: "16" })
4737
4737
  }
@@ -4742,33 +4742,33 @@ const Wa = 10, Da = d(
4742
4742
  className: u(
4743
4743
  "flex-1 flex flex-row",
4744
4744
  r,
4745
- (o1 = O == null ? void 0 : O.props) == null ? void 0 : o1.cellContainerClassNames
4745
+ (o1 = G == null ? void 0 : G.props) == null ? void 0 : o1.cellContainerClassNames
4746
4746
  ),
4747
- style: { justifyContent: ((s1 = O.props) == null ? void 0 : s1.align) ?? "start" },
4748
- children: y[O.dataIndex] ? /* @__PURE__ */ c(I1, { column: O, dataItem: y }) : b ?? /* @__PURE__ */ c(
4747
+ style: { justifyContent: ((s1 = G.props) == null ? void 0 : s1.align) ?? "start" },
4748
+ children: y[G.dataIndex] ? /* @__PURE__ */ c(I1, { column: G, dataItem: y }) : b ?? /* @__PURE__ */ c(
4749
4749
  I1,
4750
4750
  {
4751
- column: O,
4752
- dataItem: { [O.dataIndex]: C }
4751
+ column: G,
4752
+ dataItem: { [G.dataIndex]: C }
4753
4753
  }
4754
4754
  )
4755
4755
  }
4756
4756
  ),
4757
- G && f0 === i.length - 1 ? /* @__PURE__ */ c("div", { className: "absolute block-end-0 inline-end-0 h-full", children: /* @__PURE__ */ c(
4757
+ W && f0 === i.length - 1 ? /* @__PURE__ */ c("div", { className: "absolute block-end-0 inline-end-0 h-full", children: /* @__PURE__ */ c(
4758
4758
  T0,
4759
4759
  {
4760
4760
  className: u(
4761
4761
  "text-gray-30 dark:text-white text-base p-0 mlb-auto h-full",
4762
- I == null ? void 0 : I.wrapperClassNames
4762
+ R == null ? void 0 : R.wrapperClassNames
4763
4763
  ),
4764
4764
  onClick: (d2) => {
4765
- I != null && I.onClick && (d2.stopPropagation(), I.onClick(T));
4765
+ R != null && R.onClick && (d2.stopPropagation(), R.onClick(F));
4766
4766
  },
4767
- children: (y == null ? void 0 : y.endIcon) ?? (I == null ? void 0 : I.component) ?? /* @__PURE__ */ c(
4767
+ children: (y == null ? void 0 : y.endIcon) ?? (R == null ? void 0 : R.component) ?? /* @__PURE__ */ c(
4768
4768
  A0,
4769
4769
  {
4770
4770
  className: "rtl:rotate-180",
4771
- size: ((m1 = I == null ? void 0 : I.size) == null ? void 0 : m1.toString()) ?? "16"
4771
+ size: ((m1 = R == null ? void 0 : R.size) == null ? void 0 : m1.toString()) ?? "16"
4772
4772
  }
4773
4773
  )
4774
4774
  }
@@ -4777,11 +4777,11 @@ const Wa = 10, Da = d(
4777
4777
  }
4778
4778
  )
4779
4779
  },
4780
- `${O.title}-${O.dataIndex}-${f0}`
4780
+ `${G.title}-${G.dataIndex}-${f0}`
4781
4781
  );
4782
4782
  })
4783
4783
  },
4784
- T
4784
+ F
4785
4785
  );
4786
4786
  }) })
4787
4787
  ]
@@ -4794,7 +4794,7 @@ const Wa = 10, Da = d(
4794
4794
  label: "",
4795
4795
  onClick: z.handlePaginationChange,
4796
4796
  pages: J(z),
4797
- selectedPageClassNames: u("bg-blue-30", E)
4797
+ selectedPageClassNames: u("bg-blue-30", T)
4798
4798
  }
4799
4799
  ) : null) })
4800
4800
  ] }) });
@@ -4821,7 +4821,7 @@ const Ua = d(
4821
4821
  children: [
4822
4822
  o ?? t ? /* @__PURE__ */ c("div", { className: u("flex flex-row justify-start items-center", e), children: t ?? /* @__PURE__ */ n("div", { className: "w-full flex flex-col justify-center items-start gap-2", children: [
4823
4823
  /* @__PURE__ */ n("div", { className: u("w-full self-between flex flex-row gap-1 justify-between items-center"), children: [
4824
- o != null && o.title ? /* @__PURE__ */ c(V, { className: "mie-0.5", size: "xs", variant: "headline", children: o.title }) : null,
4824
+ o != null && o.title ? /* @__PURE__ */ c(L, { className: "mie-0.5", size: "xs", variant: "headline", children: o.title }) : null,
4825
4825
  o != null && o.icon && !(o != null && o.customSelector) ? o.icon : null
4826
4826
  ] }),
4827
4827
  o != null && o.customSelector ? /* @__PURE__ */ n(
@@ -4942,9 +4942,9 @@ const r2 = ({ autoFocus: r = !0, children: i, className: l }) => {
4942
4942
  ) : null,
4943
4943
  /* @__PURE__ */ c("div", { children: f ? /* @__PURE__ */ c(I0, { className: u("pbe-1", w), size: "md", variant: "headline", children: f }) : null }),
4944
4944
  /* @__PURE__ */ c("div", { children: i }),
4945
- /* @__PURE__ */ c("div", { className: u("w-full flex justify-end items-center gap-0.5 pbs-2", o), children: e == null ? void 0 : e.map(({ label: k, ...z }, I) => (
4945
+ /* @__PURE__ */ c("div", { className: u("w-full flex justify-end items-center gap-0.5 pbs-2", o), children: e == null ? void 0 : e.map(({ label: k, ...z }, R) => (
4946
4946
  // eslint-disable-next-line react/jsx-props-no-spreading
4947
- /* @__PURE__ */ c(F0, { "aria-label": k, size: "sm", variant: "borderless", ...z, children: k }, `${k}${I}`)
4947
+ /* @__PURE__ */ c(F0, { "aria-label": k, size: "sm", variant: "borderless", ...z, children: k }, `${k}${R}`)
4948
4948
  )) })
4949
4949
  ]
4950
4950
  }
@@ -4991,7 +4991,7 @@ const Qa = ({
4991
4991
  role: "option",
4992
4992
  children: [
4993
4993
  /* @__PURE__ */ c(Ja, { children: t != null && t.labelComponent ? /* @__PURE__ */ c(h0, { children: t.labelComponent }) : /* @__PURE__ */ c(
4994
- V,
4994
+ L,
4995
4995
  {
4996
4996
  className: "group-hover:text-canvas-light dark:group-hover:text-canvas-light",
4997
4997
  size: "md",
@@ -5014,86 +5014,87 @@ const Qa = ({
5014
5014
  t != null && t.hasLineSeparatorBelow ? /* @__PURE__ */ c("hr", { className: u("mli-2 text-gray-15", l) }) : null
5015
5015
  ] }), ei = ({
5016
5016
  checkmarkClassNames: r,
5017
- isLoading: i = !1,
5018
- label: l,
5019
- name: t,
5020
- hint: a,
5021
- lineSeparatorClassNames: e,
5022
- options: o,
5023
- disabled: Z = !1,
5024
- error: v,
5025
- noOptionsText: f,
5026
- onSelect: w,
5027
- optionHoverClassNames: g,
5028
- optionsContainerClassNames: b,
5029
- selectedOptionClassNames: C,
5030
- defaultValue: x,
5031
- wrapperClassName: M,
5032
- ...k
5033
- }, z) => {
5034
- const I = Q(null), [N, B] = K(x ?? null), [$, A] = K(!1), E = (S) => {
5035
- w(S), B(S), A(!1);
5036
- }, R = g0((S) => {
5037
- I.current && !I.current.contains(S.target) && A(!1);
5038
- }, []), p = (S) => {
5039
- const L = o.find((D) => D.value === S.target.value);
5040
- L && E(L);
5017
+ inputClassName: i,
5018
+ isLoading: l = !1,
5019
+ label: t,
5020
+ name: a,
5021
+ hint: e,
5022
+ lineSeparatorClassNames: o,
5023
+ options: Z,
5024
+ disabled: v = !1,
5025
+ error: f,
5026
+ noOptionsText: w,
5027
+ onSelect: g,
5028
+ optionHoverClassNames: b,
5029
+ optionsContainerClassNames: C,
5030
+ selectedOptionClassNames: x,
5031
+ defaultValue: M,
5032
+ wrapperClassName: k,
5033
+ ...z
5034
+ }, R) => {
5035
+ const B = Q(null), [N, E] = K(M ?? null), [H, T] = K(!1), I = (S) => {
5036
+ g(S), E(S), T(!1);
5037
+ }, p = g0((S) => {
5038
+ B.current && !B.current.contains(S.target) && T(!1);
5039
+ }, []), $ = (S) => {
5040
+ const P = Z.find((V) => V.value === S.target.value);
5041
+ P && I(P);
5041
5042
  };
5042
- return v0(() => (document.addEventListener("click", R, !0), () => {
5043
- document.removeEventListener("click", R, !0);
5044
- }), [R]), /* @__PURE__ */ c(j, { children: /* @__PURE__ */ n(j, { className: "relative", ref: I, children: [
5045
- i ? /* @__PURE__ */ c(L0, { className: "absolute z-1" }) : null,
5043
+ return v0(() => (document.addEventListener("click", p, !0), () => {
5044
+ document.removeEventListener("click", p, !0);
5045
+ }), [p]), /* @__PURE__ */ c(j, { children: /* @__PURE__ */ n(j, { className: "relative", ref: B, children: [
5046
+ l ? /* @__PURE__ */ c(L0, { className: "absolute z-1" }) : null,
5046
5047
  /* @__PURE__ */ c(
5047
5048
  c1,
5048
5049
  {
5049
- "aria-controls": `${t ?? l}-options`,
5050
- "aria-expanded": $,
5050
+ "aria-controls": `${a ?? t}-options`,
5051
+ "aria-expanded": H,
5051
5052
  autoCapitalize: "off",
5052
5053
  autoComplete: "off",
5053
5054
  autoCorrect: "off",
5054
- disabled: Z || i,
5055
+ disabled: v || l,
5055
5056
  editable: !1,
5056
5057
  endIcon: /* @__PURE__ */ c(H0, { size: "24" }),
5057
- error: v,
5058
- hint: a,
5059
- inputClassName: "disabled:text-text-muted-light disabled:dark:text-text-muted-dark",
5060
- inputContainerClassName: M,
5061
- label: l,
5062
- name: t ?? l ?? "",
5063
- onFocus: () => A((S) => !S),
5064
- ref: z,
5058
+ error: f,
5059
+ hint: e,
5060
+ inputClassName: u("disabled:text-text-muted-light disabled:dark:text-text-muted-dark", i),
5061
+ inputContainerClassName: u("font-aktiv-grotesk", k),
5062
+ label: t,
5063
+ name: a ?? t ?? "",
5064
+ onFocus: () => T((S) => !S),
5065
+ ref: R,
5065
5066
  role: "combobox",
5066
5067
  spellCheck: "false",
5067
5068
  value: (N == null ? void 0 : N.label) ?? "",
5068
- ...k
5069
+ ...z
5069
5070
  }
5070
5071
  ),
5071
- $ ? /* @__PURE__ */ c(j, { className: u("absolute top-0 right-0 left-0 z-50", b), children: /* @__PURE__ */ c(j, { className: "rounded-1 shadow-light-2 dark:shadow-dark-2", children: /* @__PURE__ */ c(n1, { className: u("p-1 rounded-1", "max-h-[288px] overflow-y-auto"), role: "listbox", children: o.length ? o.map((S, L) => /* @__PURE__ */ c(
5072
+ H ? /* @__PURE__ */ c(j, { className: u("absolute top-0 right-0 left-0 z-50", C), children: /* @__PURE__ */ c(j, { className: "rounded-1 shadow-light-2 dark:shadow-dark-2", children: /* @__PURE__ */ c(n1, { className: u("p-1 rounded-1", "max-h-[288px] overflow-y-auto"), role: "listbox", children: Z.length ? Z.map((S, P) => /* @__PURE__ */ c(
5072
5073
  Qa,
5073
5074
  {
5074
5075
  checkmarkClassNames: r,
5075
- id: `${S.value}-${L}`,
5076
+ id: `${S.value}-${P}`,
5076
5077
  isSelectedItem: (N == null ? void 0 : N.value) === S.value,
5077
- lineSeparatorClassNames: e,
5078
- onSelect: E,
5078
+ lineSeparatorClassNames: o,
5079
+ onSelect: I,
5079
5080
  option: S,
5080
- optionHoverClassNames: g,
5081
- selectedOptionClassNames: C
5081
+ optionHoverClassNames: b,
5082
+ selectedOptionClassNames: x
5082
5083
  },
5083
- `${S.value}-${L}`
5084
- )) : /* @__PURE__ */ c(R0, { children: f ?? "No options" }, "no-options") }) }) }) : null,
5084
+ `${S.value}-${P}`
5085
+ )) : /* @__PURE__ */ c(R0, { children: w ?? "No options" }, "no-options") }) }) }) : null,
5085
5086
  /* @__PURE__ */ c(
5086
5087
  "select",
5087
5088
  {
5088
5089
  "aria-hidden": !0,
5089
5090
  autoComplete: "off",
5090
5091
  className: "sr-only",
5091
- disabled: Z,
5092
- name: t,
5093
- onChange: p,
5092
+ disabled: v,
5093
+ name: a,
5094
+ onChange: $,
5094
5095
  tabIndex: -1,
5095
5096
  value: N == null ? void 0 : N.value,
5096
- children: o.map((S, L) => /* @__PURE__ */ c("option", { value: S.value, children: S.label }, `${S.value}${L}`))
5097
+ children: Z.map((S, P) => /* @__PURE__ */ c("option", { value: S.value, children: S.label }, `${S.value}${P}`))
5097
5098
  }
5098
5099
  )
5099
5100
  ] }) });
@@ -5135,7 +5136,7 @@ const ri = ({
5135
5136
  ...v,
5136
5137
  children: [
5137
5138
  /* @__PURE__ */ n("div", { className: "flex flex-col flex-1 gap-2", children: [
5138
- e ? /* @__PURE__ */ c(V, { component: "h1", size: l, variant: "headline", children: e }) : null,
5139
+ e ? /* @__PURE__ */ c(L, { component: "h1", size: l, variant: "headline", children: e }) : null,
5139
5140
  r
5140
5141
  ] }),
5141
5142
  /* @__PURE__ */ n("div", { className: "self-start", children: [
@@ -5177,7 +5178,7 @@ const _c = ({ children: r, className: i, ...l }) => /* @__PURE__ */ c(
5177
5178
  ),
5178
5179
  children: r
5179
5180
  }
5180
- ), qc = ({ children: r, className: i, size: l = "md" }) => /* @__PURE__ */ c("div", { className: i, children: /* @__PURE__ */ c(F0, { className: "bg-white text-gray-40 hover:text-white", size: l, children: r }) }), Xc = ({ children: r, className: i, ...l }) => /* @__PURE__ */ c("div", { ...l, className: u("flex flex-col items-center justify-between", i), children: r }), Yc = ({ alt: r, className: i, src: l }) => /* @__PURE__ */ c("div", { className: u(["flex items-center justify-between sm:mbe-5 md:mbe-0 md:mis-6", i]), children: /* @__PURE__ */ c("img", { alt: r ?? "Image", src: l }) }), Kc = ({ children: r, className: i, size: l = "md" }) => /* @__PURE__ */ c("div", { className: u(["flex items-center justify-between break-words", i]), children: /* @__PURE__ */ c(V, { className: "text-white font-regular mbe-2 text-center", size: l, variant: "label", children: r }) });
5181
+ ), qc = ({ children: r, className: i, size: l = "md" }) => /* @__PURE__ */ c("div", { className: i, children: /* @__PURE__ */ c(F0, { className: "bg-white text-gray-40 hover:text-white", size: l, children: r }) }), Xc = ({ children: r, className: i, ...l }) => /* @__PURE__ */ c("div", { ...l, className: u("flex flex-col items-center justify-between", i), children: r }), Yc = ({ alt: r, className: i, src: l }) => /* @__PURE__ */ c("div", { className: u(["flex items-center justify-between sm:mbe-5 md:mbe-0 md:mis-6", i]), children: /* @__PURE__ */ c("img", { alt: r ?? "Image", src: l }) }), Kc = ({ children: r, className: i, size: l = "md" }) => /* @__PURE__ */ c("div", { className: u(["flex items-center justify-between break-words", i]), children: /* @__PURE__ */ c(L, { className: "text-white font-regular mbe-2 text-center", size: l, variant: "label", children: r }) });
5181
5182
  function ni({ className: r, height: i, progress: l, progressClassName: t }) {
5182
5183
  return /* @__PURE__ */ c("div", { className: u([`w-full bg-gray-15 h-${i} rounded-3 overflow-hidden`, r]), children: /* @__PURE__ */ c(
5183
5184
  "div",
@@ -5194,9 +5195,9 @@ function di({
5194
5195
  chooseFileLabel: r = "Choose File",
5195
5196
  className: i,
5196
5197
  disabled: l,
5197
- dismissLabel: t = (N) => `Dismiss ${N} File`,
5198
+ dismissLabel: t = (B) => `Dismiss ${B} File`,
5198
5199
  dragAndDropLabel: a = "Drag file here",
5199
- fileByteSizeError: e = ({ fileName: N, fileKbSize: B }) => `${N} is too big to upload. Max size is ${B}kb`,
5200
+ fileByteSizeError: e = ({ fileName: B, fileKbSize: N }) => `${B} is too big to upload. Max size is ${N}kb`,
5200
5201
  fileChangeCallback: o = () => {
5201
5202
  },
5202
5203
  fileUploadProgress: Z,
@@ -5210,62 +5211,62 @@ function di({
5210
5211
  name: M,
5211
5212
  error: k,
5212
5213
  ...z
5213
- }, I) {
5214
- const N = Q(null);
5215
- e1(I, () => N.current, []);
5216
- const [B, $] = K([]), [A, E] = K(!1), [R, p] = K(void 0), S = k ?? R;
5217
- v0(() => o(B.map((H) => H.file)), [o, B]);
5218
- const L = t0(
5219
- () => B.map((H) => {
5220
- var P;
5214
+ }, R) {
5215
+ const B = Q(null);
5216
+ e1(R, () => B.current, []);
5217
+ const [N, E] = K([]), [H, T] = K(!1), [I, p] = K(void 0), $ = k ?? I;
5218
+ v0(() => o(N.map((A) => A.file)), [o, N]);
5219
+ const S = t0(
5220
+ () => N.map((A) => {
5221
+ var O;
5221
5222
  return {
5222
- ...H,
5223
- upload: (P = Z == null ? void 0 : Z.find((e0) => e0.fileName === H.id)) == null ? void 0 : P.uploadPercent
5223
+ ...A,
5224
+ upload: (O = Z == null ? void 0 : Z.find((e0) => e0.fileName === A.id)) == null ? void 0 : O.uploadPercent
5224
5225
  };
5225
5226
  }),
5226
- [B, Z]
5227
+ [N, Z]
5227
5228
  );
5228
- function D() {
5229
- return N != null && N.current ? N.current.click() : void 0;
5229
+ function P() {
5230
+ return B != null && B.current ? B.current.click() : void 0;
5230
5231
  }
5231
- function F(H) {
5232
- $(B.filter((P) => P.id !== H));
5232
+ function V(A) {
5233
+ E(N.filter((O) => O.id !== A));
5233
5234
  }
5234
5235
  const U = g0(
5235
- (H) => H.filter((P) => !x || P.size <= x ? !0 : (p(e({ fileKbSize: Math.round(x / 1e3), fileName: P.name })), !1)),
5236
+ (A) => A.filter((O) => !x || O.size <= x ? !0 : (p(e({ fileKbSize: Math.round(x / 1e3), fileName: O.name })), !1)),
5236
5237
  [e, x, p]
5237
5238
  ), r0 = g0(
5238
- (H) => H.map((P) => {
5239
- if (P.type.includes("image/")) {
5240
- const e0 = URL.createObjectURL(P);
5241
- return { file: P, id: P.name, image: e0 };
5239
+ (A) => A.map((O) => {
5240
+ if (O.type.includes("image/")) {
5241
+ const e0 = URL.createObjectURL(O);
5242
+ return { file: O, id: O.name, image: e0 };
5242
5243
  }
5243
- return { file: P, id: P.name, image: void 0 };
5244
+ return { file: O, id: O.name, image: void 0 };
5244
5245
  }),
5245
5246
  []
5246
5247
  ), i0 = g0(
5247
- (H) => H.filter((P) => B.every((e0) => e0.id !== P.name)),
5248
- [B]
5248
+ (A) => A.filter((O) => N.every((e0) => e0.id !== O.name)),
5249
+ [N]
5249
5250
  ), Z0 = g0(
5250
- (H) => {
5251
- const P = Object.values(H), e0 = U(P), w0 = i0(e0), C0 = r0(w0);
5252
- $([...B, ...C0]);
5251
+ (A) => {
5252
+ const O = Object.values(A), e0 = U(O), w0 = i0(e0), C0 = r0(w0);
5253
+ E([...N, ...C0]);
5253
5254
  },
5254
- [r0, B, U, i0]
5255
+ [r0, N, U, i0]
5255
5256
  );
5256
- function a0(H) {
5257
- v && v(H);
5258
- const { files: P } = H.nativeEvent.target;
5259
- P && Z0(P);
5257
+ function a0(A) {
5258
+ v && v(A);
5259
+ const { files: O } = A.nativeEvent.target;
5260
+ O && Z0(O);
5260
5261
  }
5261
- function p0(H) {
5262
- f && f(H), E(!0);
5262
+ function p0(A) {
5263
+ f && f(A), T(!0);
5263
5264
  }
5264
- function d0(H) {
5265
- w && w(H), E(!1);
5265
+ function d0(A) {
5266
+ w && w(A), T(!1);
5266
5267
  }
5267
- function u0(H) {
5268
- g && g(H), E(!1);
5268
+ function u0(A) {
5269
+ g && g(A), T(!1);
5269
5270
  }
5270
5271
  return /* @__PURE__ */ n("div", { className: i, children: [
5271
5272
  /* @__PURE__ */ n(
@@ -5273,26 +5274,26 @@ function di({
5273
5274
  {
5274
5275
  className: u(
5275
5276
  "relative pbs-1 pbe-2 pli-2 rounded-1 border-tertiary-light border-small dark:text-white text-gray-50 bg-transparent flex flex-col items-start mbe-0.5 bg-white dark:bg-gray-50",
5276
- S ? "border-alert dark:border-alert-dark" : "dark:border-gray-30",
5277
+ $ ? "border-alert dark:border-alert-dark" : "dark:border-gray-30",
5277
5278
  l ? "bg-gray-10 dark:bg-gray-40" : ""
5278
5279
  ),
5279
5280
  children: [
5280
5281
  /* @__PURE__ */ c("label", { className: "text-text-muted-light text-13 font-medium mbe-2", htmlFor: M, children: C }),
5281
- /* @__PURE__ */ c("div", { className: "w-full z-3", children: L.map(({ file: H, image: P, id: e0, upload: w0 }) => /* @__PURE__ */ n("div", { className: "flex w-full items-center flex-row mbe-2", children: [
5282
+ /* @__PURE__ */ c("div", { className: "w-full z-3", children: S.map(({ file: A, image: O, id: e0, upload: w0 }) => /* @__PURE__ */ n("div", { className: "flex w-full items-center flex-row mbe-2", children: [
5282
5283
  /* @__PURE__ */ n("div", { className: "flex flex-row items-center justify-start bg-gray-10 dark:bg-gray-40 rounded-1 w-full plb-1.5 pli-2", children: [
5283
- P ? /* @__PURE__ */ c(
5284
+ O ? /* @__PURE__ */ c(
5284
5285
  "img",
5285
5286
  {
5286
5287
  alt: "",
5287
5288
  className: "object-cover max-w-[40px] max-h-[50px] mie-1.5 rounded-0.5 border-gray-15 border-small",
5288
- onLoad: () => URL.revokeObjectURL(P),
5289
- src: P
5289
+ onLoad: () => URL.revokeObjectURL(O),
5290
+ src: O
5290
5291
  }
5291
5292
  ) : null,
5292
5293
  /* @__PURE__ */ n("div", { className: "flex-1", children: [
5293
- /* @__PURE__ */ c(V, { className: "font-regular text-16 text-gray-50", children: H.name }),
5294
+ /* @__PURE__ */ c(L, { className: "font-regular text-16 text-gray-50", children: A.name }),
5294
5295
  w0 ? /* @__PURE__ */ n("div", { className: "flex items-center", children: [
5295
- /* @__PURE__ */ c(V, { className: "font-regular text-13 text-gray-25 mie-1", children: "Uploading" }),
5296
+ /* @__PURE__ */ c(L, { className: "font-regular text-13 text-gray-25 mie-1", children: "Uploading" }),
5296
5297
  /* @__PURE__ */ c(
5297
5298
  ni,
5298
5299
  {
@@ -5308,9 +5309,9 @@ function di({
5308
5309
  /* @__PURE__ */ c(
5309
5310
  "button",
5310
5311
  {
5311
- "aria-label": t(H.name),
5312
+ "aria-label": t(A.name),
5312
5313
  className: "hover:cursor-pointer mis-1",
5313
- onClick: () => F(e0),
5314
+ onClick: () => V(e0),
5314
5315
  children: /* @__PURE__ */ c(O0, { className: "text-text-muted-light dark:text-gray-20", name: "Delete" })
5315
5316
  }
5316
5317
  )
@@ -5320,16 +5321,16 @@ function di({
5320
5321
  {
5321
5322
  className: u(
5322
5323
  "flex justify-between items-center relative plb-2 pli-2 border-standard border-dashed rounded-0.5 border-tertiary-light dark:border-tertiary-dark self-stretch",
5323
- A ? "bg-gray-10 border-blue-30" : ""
5324
+ H ? "bg-gray-10 border-blue-30" : ""
5324
5325
  ),
5325
5326
  children: [
5326
- /* @__PURE__ */ c(V, { className: "text-text-muted-light dark:text-gray-20 font-regular text-13", children: a }),
5327
+ /* @__PURE__ */ c(L, { className: "text-text-muted-light dark:text-gray-20 font-regular text-13", children: a }),
5327
5328
  /* @__PURE__ */ c(
5328
5329
  F0,
5329
5330
  {
5330
5331
  className: u("z-10", l ? "bg-[#D0D2D2] dark:bg-red dark:border-transparent opacity-40" : ""),
5331
5332
  disabled: l,
5332
- onClick: D,
5333
+ onClick: P,
5333
5334
  variant: "stroked",
5334
5335
  children: r
5335
5336
  }
@@ -5345,7 +5346,7 @@ function di({
5345
5346
  onDragEnter: p0,
5346
5347
  onDragLeave: d0,
5347
5348
  onDrop: u0,
5348
- ref: N,
5349
+ ref: B,
5349
5350
  title: "",
5350
5351
  type: "file",
5351
5352
  value: "",
@@ -5358,7 +5359,7 @@ function di({
5358
5359
  ]
5359
5360
  }
5360
5361
  ),
5361
- S ? /* @__PURE__ */ c("p", { className: "font-regular text-13 text-alert-light dark:text-alert-dark", children: S }) : null,
5362
+ $ ? /* @__PURE__ */ c("p", { className: "font-regular text-13 text-alert-light dark:text-alert-dark", children: $ }) : null,
5362
5363
  b ? /* @__PURE__ */ c("p", { className: "font-regular text-13 text-text-muted-light", children: b }) : null
5363
5364
  ] });
5364
5365
  }
@@ -5409,27 +5410,27 @@ const fi = ({
5409
5410
  dismissCallback: o,
5410
5411
  dismissImageAriaLabel: Z = "Remove Image",
5411
5412
  error: v = "",
5412
- fileMaxKbSizeError: f = (L, D) => `${L} is too big to upload, the maximum size is ${D}kb. Please try again.`,
5413
- fileMaxSizeError: w = (L) => `${L} is too large to upload. The maximum dimensions are ${p == null ? void 0 : p.maxWidth}x${p == null ? void 0 : p.maxHeight}. Please try again.`,
5414
- fileMinSizeError: g = (L) => `${L} is too small to upload. The minimum dimensions are ${p == null ? void 0 : p.minWidth}x${p == null ? void 0 : p.minHeight}. Please try again.`,
5415
- fileRatioError: b = (L) => `${L} must have a ratio of, ${p == null ? void 0 : p.imageRatio}. Please try again.`,
5413
+ fileMaxKbSizeError: f = (S, P) => `${S} is too big to upload, the maximum size is ${P}kb. Please try again.`,
5414
+ fileMaxSizeError: w = (S) => `${S} is too large to upload. The maximum dimensions are ${p == null ? void 0 : p.maxWidth}x${p == null ? void 0 : p.maxHeight}. Please try again.`,
5415
+ fileMinSizeError: g = (S) => `${S} is too small to upload. The minimum dimensions are ${p == null ? void 0 : p.minWidth}x${p == null ? void 0 : p.minHeight}. Please try again.`,
5416
+ fileRatioError: b = (S) => `${S} must have a ratio of, ${p == null ? void 0 : p.imageRatio}. Please try again.`,
5416
5417
  fileCallback: C,
5417
5418
  hero: x = !1,
5418
5419
  hideDismissIcon: M = !1,
5419
5420
  hint: k,
5420
5421
  imageWidth: z = 160,
5421
- imageSrc: I,
5422
- inputContainerClassName: N,
5423
- label: B = "Upload Image",
5424
- name: $ = "imageUpload",
5425
- onBlur: A,
5426
- preProcessing: E,
5427
- shape: R = "circle",
5422
+ imageSrc: R,
5423
+ inputContainerClassName: B,
5424
+ label: N = "Upload Image",
5425
+ name: E = "imageUpload",
5426
+ onBlur: H,
5427
+ preProcessing: T,
5428
+ shape: I = "circle",
5428
5429
  validation: p
5429
- }, S) => {
5430
- const L = Q(null), D = V0({ forwardedRef: S, innerRef: L }), [F, U] = K({ error: v, status: I ? "resolved" : "idle" }), [r0, i0] = K(null), Z0 = () => L != null && L.current ? L.current.click() : void 0;
5430
+ }, $) => {
5431
+ const S = Q(null), P = V0({ forwardedRef: $, innerRef: S }), [V, U] = K({ error: v, status: R ? "resolved" : "idle" }), [r0, i0] = K(null), Z0 = () => S != null && S.current ? S.current.click() : void 0;
5431
5432
  v0(() => {
5432
- if (I) {
5433
+ if (R) {
5433
5434
  let _ = !0;
5434
5435
  U((J) => ({ ...J, status: "pending" }));
5435
5436
  const q = new Image();
@@ -5441,33 +5442,33 @@ const fi = ({
5441
5442
  }), U((J) => ({ ...J, status: "resolved" })));
5442
5443
  }, q.onerror = () => {
5443
5444
  _ && U((J) => ({ ...J, status: "rejected", error: "Failed to load image" }));
5444
- }, q.src = I, () => {
5445
+ }, q.src = R, () => {
5445
5446
  _ = !1, q.onload = null, q.onerror = null, q.src = "";
5446
5447
  };
5447
5448
  } else
5448
5449
  U((_) => ({ ..._, status: "idle" })), i0(null);
5449
- }, [I]);
5450
- const a0 = t0(() => F.file && F.status !== "rejected" ? (U((_) => ({ ..._, status: "resolved" })), F.file.imageSrc) : I && F.status === "resolved" ? (U((_) => ({ ..._, status: "resolved" })), I) : null, [F.file, F.status, I]), p0 = t0(() => {
5450
+ }, [R]);
5451
+ const a0 = t0(() => V.file && V.status !== "rejected" ? (U((_) => ({ ..._, status: "resolved" })), V.file.imageSrc) : R && V.status === "resolved" ? (U((_) => ({ ..._, status: "resolved" })), R) : null, [V.file, V.status, R]), p0 = t0(() => {
5451
5452
  var q, J, y;
5452
5453
  const _ = () => {
5453
- o && o(I), U((T) => ({ ...T, file: void 0, status: "idle" }));
5454
+ o && o(R), U((F) => ({ ...F, file: void 0, status: "idle" }));
5454
5455
  };
5455
- switch (F.status) {
5456
+ switch (V.status) {
5456
5457
  case "pending":
5457
5458
  return /* @__PURE__ */ c(j, { className: "animate-spin", children: /* @__PURE__ */ c(r1, { className: "text-info-light dark:text-info-dark", "data-testid": "loading spinner", size: "32" }) });
5458
5459
  case "resolved":
5459
- const T = i && r0 && (() => {
5460
- const G = r0.width / r0.height, o0 = 0.2;
5461
- return Math.abs(G - i) / i > o0;
5460
+ const F = i && r0 && (() => {
5461
+ const W = r0.width / r0.height, o0 = 0.2;
5462
+ return Math.abs(W - i) / i > o0;
5462
5463
  })();
5463
5464
  return /* @__PURE__ */ n(h0, { children: [
5464
- T ? (
5465
+ F ? (
5465
5466
  // Image with blurred background when aspect ratios don't match
5466
5467
  /* @__PURE__ */ n("div", { className: "relative w-full h-full overflow-hidden rounded-2 flex items-center justify-center", children: [
5467
5468
  /* @__PURE__ */ c(
5468
5469
  "img",
5469
5470
  {
5470
- alt: `${((q = F.file) == null ? void 0 : q.id) || "image"} background`,
5471
+ alt: `${((q = V.file) == null ? void 0 : q.id) || "image"} background`,
5471
5472
  className: "absolute w-full h-full object-cover",
5472
5473
  src: a0 || void 0,
5473
5474
  style: {
@@ -5480,11 +5481,11 @@ const fi = ({
5480
5481
  /* @__PURE__ */ c(
5481
5482
  "img",
5482
5483
  {
5483
- alt: `${((J = F.file) == null ? void 0 : J.id) || "image"} preview`,
5484
+ alt: `${((J = V.file) == null ? void 0 : J.id) || "image"} preview`,
5484
5485
  className: "relative h-full object-contain",
5485
5486
  onLoad: () => {
5486
- var G;
5487
- return (G = F == null ? void 0 : F.file) != null && G.imageSrc ? URL.revokeObjectURL(F.file.imageSrc) : void 0;
5487
+ var W;
5488
+ return (W = V == null ? void 0 : V.file) != null && W.imageSrc ? URL.revokeObjectURL(V.file.imageSrc) : void 0;
5488
5489
  },
5489
5490
  src: a0 || void 0,
5490
5491
  style: { zIndex: 2 }
@@ -5496,18 +5497,18 @@ const fi = ({
5496
5497
  /* @__PURE__ */ c(
5497
5498
  "img",
5498
5499
  {
5499
- alt: `${((y = F.file) == null ? void 0 : y.id) || "image"} preview`,
5500
+ alt: `${((y = V.file) == null ? void 0 : y.id) || "image"} preview`,
5500
5501
  className: u([
5501
5502
  "object-fit w-full h-full",
5502
- R === "circle" ? "rounded-full" : "rounded-0.5",
5503
+ I === "circle" ? "rounded-full" : "rounded-0.5",
5503
5504
  i ? "rounded-2 object-cover" : "",
5504
- R !== "unset" && !i || !x ? "aspect-square" : "",
5505
- R === "unset" && x ? "aspect-video" : "",
5506
- R === "unset" && !x ? "!aspect-auto" : ""
5505
+ I !== "unset" && !i || !x ? "aspect-square" : "",
5506
+ I === "unset" && x ? "aspect-video" : "",
5507
+ I === "unset" && !x ? "!aspect-auto" : ""
5507
5508
  ]),
5508
5509
  onLoad: () => {
5509
- var G;
5510
- return (G = F == null ? void 0 : F.file) != null && G.imageSrc ? URL.revokeObjectURL(F.file.imageSrc) : void 0;
5510
+ var W;
5511
+ return (W = V == null ? void 0 : V.file) != null && W.imageSrc ? URL.revokeObjectURL(V.file.imageSrc) : void 0;
5511
5512
  },
5512
5513
  src: a0 || void 0,
5513
5514
  width: z
@@ -5529,10 +5530,10 @@ const fi = ({
5529
5530
  return /* @__PURE__ */ c(j, { className: "gray-10 dark:gray-30", children: /* @__PURE__ */ c(t1, { "data-testid": "placeholder image", size: "32" }) });
5530
5531
  }
5531
5532
  }, [
5532
- F,
5533
+ V,
5533
5534
  o,
5534
- I,
5535
5535
  R,
5536
+ I,
5536
5537
  x,
5537
5538
  a0,
5538
5539
  z,
@@ -5543,37 +5544,37 @@ const fi = ({
5543
5544
  i
5544
5545
  ]), d0 = ({ file: _, imageUrl: q }) => new Promise((J, y) => {
5545
5546
  var o0;
5546
- const T = new Image(), G = (o0 = p == null ? void 0 : p.imageRatio) == null ? void 0 : o0.split("/");
5547
- T.onload = async () => {
5547
+ const F = new Image(), W = (o0 = p == null ? void 0 : p.imageRatio) == null ? void 0 : o0.split("/");
5548
+ F.onload = async () => {
5548
5549
  if (i0({
5549
- height: T.height,
5550
- isLandscape: T.width >= T.height,
5551
- width: T.width
5550
+ height: F.height,
5551
+ isLandscape: F.width >= F.height,
5552
+ width: F.width
5552
5553
  }), p)
5553
5554
  if (p != null && p.maxByteSize && _.size > p.maxByteSize) {
5554
- const O = f(_.name, Math.round(p.maxByteSize / 1e3));
5555
- return U({ error: O, file: void 0, status: "rejected" }), y(!1);
5555
+ const G = f(_.name, Math.round(p.maxByteSize / 1e3));
5556
+ return U({ error: G, file: void 0, status: "rejected" }), y(!1);
5556
5557
  } else {
5557
- if (p != null && p.minWidth && T.width < (p == null ? void 0 : p.minWidth) || p != null && p.minHeight && T.height < (p == null ? void 0 : p.minHeight))
5558
+ if (p != null && p.minWidth && F.width < (p == null ? void 0 : p.minWidth) || p != null && p.minHeight && F.height < (p == null ? void 0 : p.minHeight))
5558
5559
  return U({ error: g(_.name), file: void 0, status: "rejected" }), y(!1);
5559
- if (p != null && p.maxHeight && T.height > (p == null ? void 0 : p.maxHeight) || p != null && p.maxWidth && T.width > (p == null ? void 0 : p.maxWidth))
5560
+ if (p != null && p.maxHeight && F.height > (p == null ? void 0 : p.maxHeight) || p != null && p.maxWidth && F.width > (p == null ? void 0 : p.maxWidth))
5560
5561
  return U({ error: w(_.name), file: void 0, status: "rejected" }), y(!1);
5561
- if (p != null && p.imageRatio && (G == null ? void 0 : G.length) === 2 && parseInt(G[0]) / parseInt(G[1]) !== T.width / T.height)
5562
+ if (p != null && p.imageRatio && (W == null ? void 0 : W.length) === 2 && parseInt(W[0]) / parseInt(W[1]) !== F.width / F.height)
5562
5563
  return U({ error: b(_.name), file: void 0, status: "rejected" }), y(!1);
5563
5564
  }
5564
- return z = T.width, typeof C == "function" && await C(_, T), U((O) => ({ ...O, error: "" })), J(!0);
5565
- }, T.src = q;
5565
+ return z = F.width, typeof C == "function" && await C(_, F), U((G) => ({ ...G, error: "" })), J(!0);
5566
+ }, F.src = q;
5566
5567
  }), u0 = async (_) => {
5567
5568
  try {
5568
5569
  const { files: q } = _.target;
5569
5570
  if (q) {
5570
5571
  const J = q[0], y = URL.createObjectURL(J);
5571
- let T = !0;
5572
- U((G) => ({ ...G, status: "pending" })), E && await E(J), T = await d0({
5572
+ let F = !0;
5573
+ U((W) => ({ ...W, status: "pending" })), T && await T(J), F = await d0({
5573
5574
  file: J,
5574
5575
  imageUrl: y
5575
- }), T && U((G) => ({
5576
- ...G,
5576
+ }), F && U((W) => ({
5577
+ ...W,
5577
5578
  file: { file: J, id: J.name, imageSrc: y },
5578
5579
  status: "resolved"
5579
5580
  }));
@@ -5582,23 +5583,23 @@ const fi = ({
5582
5583
  if (q instanceof Error)
5583
5584
  throw q;
5584
5585
  }
5585
- }, H = u([R === "circle" && !x ? "rounded-full aspect-square" : ""]), P = u([R === "square" && !x ? "aspect-square rounded-1" : ""]), e0 = u([i && !x ? "rounded-2" : ""]), w0 = u([
5586
- R === "unset" && !x ? "rounded-1" : "",
5587
- R === "unset" && F.status !== "idle" && !x ? "aspect-auto" : "",
5588
- R === "unset" && F.status !== "resolved" && !x ? "aspect-square" : ""
5589
- ]), C0 = u([x ? "rounded-1 aspect-video" : ""]), k0 = v || F.error;
5586
+ }, A = u([I === "circle" && !x ? "rounded-full aspect-square" : ""]), O = u([I === "square" && !x ? "aspect-square rounded-1" : ""]), e0 = u([i && !x ? "rounded-2" : ""]), w0 = u([
5587
+ I === "unset" && !x ? "rounded-1" : "",
5588
+ I === "unset" && V.status !== "idle" && !x ? "aspect-auto" : "",
5589
+ I === "unset" && V.status !== "resolved" && !x ? "aspect-square" : ""
5590
+ ]), C0 = u([x ? "rounded-1 aspect-video" : ""]), k0 = v || V.error;
5590
5591
  return /* @__PURE__ */ n(j, { className: u([a]), children: [
5591
5592
  /* @__PURE__ */ n(
5592
5593
  j,
5593
5594
  {
5594
5595
  className: u([
5595
5596
  "relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",
5596
- N,
5597
+ B,
5597
5598
  k0 ? "border-alert-light dark:border-alert-dark" : "border-gray-10 dark:border-gray-40",
5598
5599
  e ? "select-none bg-gray-10 dark:bg-gray-40 pointer-events-none" : ""
5599
5600
  ]),
5600
5601
  children: [
5601
- /* @__PURE__ */ c(V, { className: "pbe-1.5 text-text-muted-light dark:text-text-muted-dark", children: /* @__PURE__ */ c("label", { htmlFor: $, children: B }) }),
5602
+ /* @__PURE__ */ c(L, { className: "pbe-1.5 text-text-muted-light dark:text-text-muted-dark", children: /* @__PURE__ */ c("label", { htmlFor: E, children: N }) }),
5602
5603
  /* @__PURE__ */ n(j, { className: "flex relative flex-wrap justify-center md:justify-start", children: [
5603
5604
  /* @__PURE__ */ c(
5604
5605
  j,
@@ -5608,9 +5609,9 @@ const fi = ({
5608
5609
  !x && !i ? "md:w-1/2 w-4/5" : "",
5609
5610
  x && !i ? "w-full" : "",
5610
5611
  e ? "border-small border-solid border-tertiary-light" : "",
5611
- F.status !== "resolved" ? "bg-gray-10 dark:bg-gray-40" : "",
5612
- H,
5613
- P,
5612
+ V.status !== "resolved" ? "bg-gray-10 dark:bg-gray-40" : "",
5613
+ A,
5614
+ O,
5614
5615
  e0,
5615
5616
  w0,
5616
5617
  C0
@@ -5630,7 +5631,7 @@ const fi = ({
5630
5631
  onClick: Z0,
5631
5632
  size: "sm",
5632
5633
  variant: "stroked",
5633
- children: F.status === "resolved" ? l : t
5634
+ children: V.status === "resolved" ? l : t
5634
5635
  }
5635
5636
  ),
5636
5637
  /* @__PURE__ */ c(
@@ -5639,11 +5640,11 @@ const fi = ({
5639
5640
  accept: r.toString(),
5640
5641
  className: "hidden",
5641
5642
  disabled: e,
5642
- id: $,
5643
- name: $,
5644
- onBlur: A,
5643
+ id: E,
5644
+ name: E,
5645
+ onBlur: H,
5645
5646
  onChange: u0,
5646
- ref: D,
5647
+ ref: P,
5647
5648
  title: "",
5648
5649
  type: "file",
5649
5650
  value: ""
@@ -5653,8 +5654,8 @@ const fi = ({
5653
5654
  ]
5654
5655
  }
5655
5656
  ),
5656
- k0 ? /* @__PURE__ */ c(V, { className: "dark:!text-alert-dark !text-alert-light text-13", children: k0 }) : null,
5657
- k ? /* @__PURE__ */ c(V, { className: "text-text-muted-light dark:text-text-muted-dark text-13", children: k }) : null
5657
+ k0 ? /* @__PURE__ */ c(L, { className: "dark:!text-alert-dark !text-alert-light text-13", children: k0 }) : null,
5658
+ k ? /* @__PURE__ */ c(L, { className: "text-text-muted-light dark:text-text-muted-dark text-13", children: k }) : null
5658
5659
  ] });
5659
5660
  }, gi = d(fi);
5660
5661
  gi.displayName = "ImageUpload";
@@ -5697,7 +5698,7 @@ const pi = ({
5697
5698
  }, wi = d(pi);
5698
5699
  wi.displayName = "LinkButton";
5699
5700
  function Jc({ order: r, className: i, size: l = "sm" }) {
5700
- return /* @__PURE__ */ c("div", { className: i, children: /* @__PURE__ */ c(V, { className: typeof r == "number" ? "lining-nums" : "", size: l, variant: "label", children: r }) });
5701
+ return /* @__PURE__ */ c("div", { className: i, children: /* @__PURE__ */ c(L, { className: typeof r == "number" ? "lining-nums" : "", size: l, variant: "label", children: r }) });
5701
5702
  }
5702
5703
  const Qc = ({
5703
5704
  children: r,
@@ -5709,17 +5710,17 @@ const Qc = ({
5709
5710
  subHeadlineProps: o
5710
5711
  }) => /* @__PURE__ */ n("div", { className: u(["flex items-center justify-between break-words", i]), children: [
5711
5712
  /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
5712
- /* @__PURE__ */ c(V, { size: a, variant: "label", children: r }),
5713
+ /* @__PURE__ */ c(L, { size: a, variant: "label", children: r }),
5713
5714
  e ? (
5714
5715
  // eslint-disable-next-line react/jsx-props-no-spreading
5715
- /* @__PURE__ */ c(V, { ...o, children: e })
5716
+ /* @__PURE__ */ c(L, { ...o, children: e })
5716
5717
  ) : null
5717
5718
  ] }),
5718
- l ? /* @__PURE__ */ c(V, { ...t, children: l }) : null
5719
+ l ? /* @__PURE__ */ c(L, { ...t, children: l }) : null
5719
5720
  ] });
5720
5721
  function bi({ active: r, children: i, component: l = "a", className: t, href: a, onTabChange: e, tabKey: o }, Z) {
5721
5722
  return /* @__PURE__ */ c(
5722
- V,
5723
+ L,
5723
5724
  {
5724
5725
  className: u(
5725
5726
  "text-gray-50 whitespace-nowrap text-16 leading-loose mie-2 cursor-pointer",
@@ -5746,7 +5747,7 @@ function en({ breadcrumb: r, children: i, className: l }) {
5746
5747
  return /* @__PURE__ */ n(j, { "aria-describedby": "pageTitleText", className: l, children: [
5747
5748
  r ? /* @__PURE__ */ n(yi, { breadcrumb: r, children: [
5748
5749
  /* @__PURE__ */ c(E1, {}),
5749
- /* @__PURE__ */ c(V, { className: "mbs-px mis-0.25", children: r.title })
5750
+ /* @__PURE__ */ c(L, { className: "mbs-px mis-0.25", children: r.title })
5750
5751
  ] }) : null,
5751
5752
  typeof i == "string" ? /* @__PURE__ */ c(I0, { id: "pageTitleText", size: "xl", variant: "headline", children: i }) : i
5752
5753
  ] });
@@ -5991,18 +5992,18 @@ const Bi = ({
5991
5992
  }),
5992
5993
  [Z]
5993
5994
  );
5994
- const I = (A) => {
5995
- k || z(!0), !A.length && x && M(null), Z(A);
5996
- }, N = (A) => {
5997
- v(A), Z(A.label), M(A.label), z(!1);
5998
- }, B = g0(() => {
5995
+ const R = (H) => {
5996
+ k || z(!0), !H.length && x && M(null), Z(H);
5997
+ }, B = (H) => {
5998
+ v(H), Z(H.label), M(H.label), z(!1);
5999
+ }, N = g0(() => {
5999
6000
  !x && f && Z(""), x && f && Z(x), z(!1);
6000
- }, [Z, x, f]), $ = t0(() => {
6001
- const A = f.toLowerCase();
6002
- return l.filter((E) => E.label.toLowerCase().includes(A));
6001
+ }, [Z, x, f]), E = t0(() => {
6002
+ const H = f.toLowerCase();
6003
+ return l.filter((T) => T.label.toLowerCase().includes(H));
6003
6004
  }, [l, f]);
6004
6005
  return K1({
6005
- handler: B,
6006
+ handler: N,
6006
6007
  ref: C
6007
6008
  }), /* @__PURE__ */ n(
6008
6009
  j,
@@ -6020,8 +6021,8 @@ const Bi = ({
6020
6021
  hint: e,
6021
6022
  label: r,
6022
6023
  name: i ?? r,
6023
- onChange: (A) => {
6024
- I(A);
6024
+ onChange: (H) => {
6025
+ R(H);
6025
6026
  },
6026
6027
  onFocus: () => z(!0),
6027
6028
  ref: b,
@@ -6029,7 +6030,7 @@ const Bi = ({
6029
6030
  ...w
6030
6031
  }
6031
6032
  ),
6032
- k ? /* @__PURE__ */ c(j, { className: "absolute top-full inset-x-0 z-50", children: /* @__PURE__ */ c(n1, { className: "max-h-[300px] rounded-t-0 px-0.5 overflow-y-auto", children: $.length ? $.map((A, E) => /* @__PURE__ */ c(R0, { onClick: () => N(A), children: A.label }, `${A.value}-${E}`)) : /* @__PURE__ */ c(R0, { children: o }, "no-options") }) }) : null
6033
+ k ? /* @__PURE__ */ c(j, { className: "absolute top-full inset-x-0 z-50", children: /* @__PURE__ */ c(n1, { className: "max-h-[300px] rounded-t-0 px-0.5 overflow-y-auto", children: E.length ? E.map((H, T) => /* @__PURE__ */ c(R0, { onClick: () => B(H), children: H.label }, `${H.value}-${T}`)) : /* @__PURE__ */ c(R0, { children: o }, "no-options") }) }) : null
6033
6034
  ]
6034
6035
  }
6035
6036
  );
@@ -6134,18 +6135,18 @@ const Ti = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6134
6135
  value: b,
6135
6136
  ...C
6136
6137
  }, x) => {
6137
- const M = u(Fi, Ti), k = Q(null), z = V0({ forwardedRef: x, innerRef: k }), [I, N] = K(() => !!C.defaultValue), B = b !== void 0 ? !!b : I, $ = g !== "sm" && (!!Z || !!o), A = t0(() => {
6138
+ const M = u(Fi, Ti), k = Q(null), z = V0({ forwardedRef: x, innerRef: k }), [R, B] = K(() => !!C.defaultValue), N = b !== void 0 ? !!b : R, E = g !== "sm" && (!!Z || !!o), H = t0(() => {
6138
6139
  const p = u(
6139
6140
  M,
6140
6141
  Pi,
6141
- $ ? Oi : null
6142
- ), S = u(M, J0);
6143
- return B ? p : S;
6144
- }, [M, B, $]), E = t0(() => {
6145
- const p = u(N1, ji), S = u(N1);
6146
- return B ? p : S;
6147
- }, [B]), R = (p) => {
6148
- b === void 0 && N(!!p.target.value), f && f(p);
6142
+ E ? Oi : null
6143
+ ), $ = u(M, J0);
6144
+ return N ? p : $;
6145
+ }, [M, N, E]), T = t0(() => {
6146
+ const p = u(N1, ji), $ = u(N1);
6147
+ return N ? p : $;
6148
+ }, [N]), I = (p) => {
6149
+ b === void 0 && B(!!p.target.value), f && f(p);
6149
6150
  };
6150
6151
  return /* @__PURE__ */ n("div", { className: u("flex flex-col", l, r && "min-w-max"), children: [
6151
6152
  /* @__PURE__ */ n("div", { className: "relative border-none", children: [
@@ -6154,9 +6155,9 @@ const Ti = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6154
6155
  {
6155
6156
  ...C,
6156
6157
  className: u(
6157
- [A, a ? Ei : $i],
6158
+ [H, a ? Ei : $i],
6158
6159
  {
6159
- "!pbs-[40px]": g === "lg" && $,
6160
+ "!pbs-[40px]": g === "lg" && E,
6160
6161
  "pis-2 plb-2 pie-5": g === "md",
6161
6162
  "plb-3 pis-3 pie-6 text-19": g === "lg",
6162
6163
  "plb-0.5 pis-1 pie-4 text-11": g === "sm"
@@ -6166,7 +6167,7 @@ const Ti = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6166
6167
  disabled: t,
6167
6168
  id: v,
6168
6169
  name: v,
6169
- onChange: R,
6170
+ onChange: I,
6170
6171
  ref: z,
6171
6172
  value: b,
6172
6173
  children: i
@@ -6176,7 +6177,7 @@ const Ti = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6176
6177
  "label",
6177
6178
  {
6178
6179
  className: u([
6179
- E,
6180
+ T,
6180
6181
  "flex items-center",
6181
6182
  {
6182
6183
  "inline-start-3 block-start-[30px]": g === "lg"
@@ -6274,7 +6275,7 @@ qi.displayName = "SideNavGroup";
6274
6275
  const Xi = () => /* @__PURE__ */ c(Xa, { className: "w-auto border-gray-10 dark:border-gray-40 border-small border-b-none" });
6275
6276
  Xi.displayName = "SideNavGroupDivider";
6276
6277
  const Yi = d(({ className: r, ...i }, l) => /* @__PURE__ */ c(
6277
- V,
6278
+ L,
6278
6279
  {
6279
6280
  className: u("uppercase m-1 text-11 text-text-muted-light dark:text-text-muted-dark tracking-wider", r),
6280
6281
  ref: l,
@@ -6404,7 +6405,7 @@ function mc({
6404
6405
  }) {
6405
6406
  const f = Array.from({ length: l }, (g, b) => b + 1), w = a == null ? void 0 : a[Math.ceil(i) - 1];
6406
6407
  return /* @__PURE__ */ n("figure", { className: u("flex flex-col gap-1", e), children: [
6407
- w ? /* @__PURE__ */ c("figcaption", { children: /* @__PURE__ */ c(V, { className: u("text-text-light dark:text-text-dark", o), size: Z, variant: "label", children: w }) }) : null,
6408
+ w ? /* @__PURE__ */ c("figcaption", { children: /* @__PURE__ */ c(L, { className: u("text-text-light dark:text-text-dark", o), size: Z, variant: "label", children: w }) }) : null,
6408
6409
  /* @__PURE__ */ c("ul", { "aria-label": r, className: "flex gap-1", role: "img", children: f.map((g) => /* @__PURE__ */ c("li", { className: "flex items-center justify-center", "data-testid": "star-rating-item", children: /* @__PURE__ */ c(
6409
6410
  P1,
6410
6411
  {
@@ -6478,7 +6479,7 @@ function uc({
6478
6479
  }) {
6479
6480
  const Z = Lr[e];
6480
6481
  return /* @__PURE__ */ n(
6481
- V,
6482
+ L,
6482
6483
  {
6483
6484
  className: u(
6484
6485
  "text-gray-50 text-xs flex flex-col justify-center items-center px-3",
@@ -6583,7 +6584,7 @@ const Cc = {
6583
6584
  sm: "text-11 w-fit h-fit rounded-0.5 plb-0.25 pli-0.5"
6584
6585
  }, dn = ({ message: r, variant: i = "default", size: l = "sm", className: t }) => {
6585
6586
  const a = Cc[i], e = kc[l];
6586
- return /* @__PURE__ */ c("div", { className: u(a, e, t), children: /* @__PURE__ */ c(V, { className: "text-inherit dark:text-inherit", children: r }) });
6587
+ return /* @__PURE__ */ c("div", { className: u(a, e, t), children: /* @__PURE__ */ c(L, { className: "text-inherit dark:text-inherit", children: r }) });
6587
6588
  }, zc = "_scrollBar_1veyj_2", Ic = {
6588
6589
  scrollBar: zc
6589
6590
  }, Rc = ({
@@ -6603,23 +6604,23 @@ const Cc = {
6603
6604
  value: C,
6604
6605
  ...x
6605
6606
  }, M) => {
6606
- const k = Q(null), z = V0({ forwardedRef: M, innerRef: k }), [I, N] = J1(z, C, x.defaultValue), B = !!((C !== void 0 ? C : I) || b), [$, A] = K(!1), E = g0(() => {
6607
- const L = z.current;
6608
- if (!L || !r)
6607
+ const k = Q(null), z = V0({ forwardedRef: M, innerRef: k }), [R, B] = J1(z, C, x.defaultValue), N = !!((C !== void 0 ? C : R) || b), [E, H] = K(!1), T = g0(() => {
6608
+ const S = z.current;
6609
+ if (!S || !r)
6609
6610
  return;
6610
- L.style.height = "auto";
6611
- const D = L.scrollHeight;
6612
- i && D >= i ? L.style.height = `${i}px` : L.style.height = `${D}px`;
6611
+ S.style.height = "auto";
6612
+ const P = S.scrollHeight;
6613
+ i && P >= i ? S.style.height = `${i}px` : S.style.height = `${P}px`;
6613
6614
  }, [r, i, z]);
6614
6615
  B1(() => {
6615
- E();
6616
- }, [E, C]);
6617
- const R = (L) => {
6618
- C === void 0 && N(!!L.target.value), r && E(), g && g(L);
6616
+ T();
6617
+ }, [T, C]);
6618
+ const I = (S) => {
6619
+ C === void 0 && B(!!S.target.value), r && T(), g && g(S);
6619
6620
  }, p = () => {
6620
- t || !z.current || (z.current.focus(), A(!0));
6621
- }, S = () => {
6622
- A(!1);
6621
+ t || !z.current || (z.current.focus(), H(!0));
6622
+ }, $ = () => {
6623
+ H(!1);
6623
6624
  };
6624
6625
  return /* @__PURE__ */ n("div", { className: u(["flex items-start flex-col gap-0.5", l]), children: [
6625
6626
  /* @__PURE__ */ c(
@@ -6646,8 +6647,8 @@ const Cc = {
6646
6647
  disabled: t,
6647
6648
  id: w,
6648
6649
  name: w,
6649
- onBlur: S,
6650
- onChange: R,
6650
+ onBlur: $,
6651
+ onChange: I,
6651
6652
  placeholder: b,
6652
6653
  ref: z,
6653
6654
  value: C,
@@ -6659,7 +6660,7 @@ const Cc = {
6659
6660
  {
6660
6661
  className: u(
6661
6662
  "inline-start-2 items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",
6662
- $ || B ? "text-13 -translate-y-1.5" : "text-16"
6663
+ E || N ? "text-13 -translate-y-1.5" : "text-16"
6663
6664
  ),
6664
6665
  htmlFor: w,
6665
6666
  children: f
@@ -6669,8 +6670,8 @@ const Cc = {
6669
6670
  }
6670
6671
  ),
6671
6672
  e || o ? /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
6672
- e ? /* @__PURE__ */ c(V, { className: "text-alert dark:text-alert-dark", children: e }) : null,
6673
- o ? /* @__PURE__ */ c(V, { className: "text-text-muted-light dark:text-text-muted-dark text-13 leading-default", children: o }) : null
6673
+ e ? /* @__PURE__ */ c(L, { className: "text-alert dark:text-alert-dark", children: e }) : null,
6674
+ o ? /* @__PURE__ */ c(L, { className: "text-text-muted-light dark:text-text-muted-dark text-13 leading-default", children: o }) : null
6674
6675
  ] }) : null
6675
6676
  ] });
6676
6677
  }, Nc = d(Rc);
@@ -6755,9 +6756,9 @@ const Vc = {
6755
6756
  };
6756
6757
  function Lc({ children: r, content: i, structuredContent: l, textClassName: t }) {
6757
6758
  return r || (l ? /* @__PURE__ */ n(h0, { children: [
6758
- /* @__PURE__ */ c(V, { className: u("text-center font-medium", l == null ? void 0 : l.titleClassName), children: l.title }),
6759
- /* @__PURE__ */ c(V, { className: t, children: l.content })
6760
- ] }) : /* @__PURE__ */ c(V, { className: t, children: i }));
6759
+ /* @__PURE__ */ c(L, { className: u("text-center font-medium", l == null ? void 0 : l.titleClassName), children: l.title }),
6760
+ /* @__PURE__ */ c(L, { className: t, children: l.content })
6761
+ ] }) : /* @__PURE__ */ c(L, { className: t, children: i }));
6761
6762
  }
6762
6763
  const sn = ({ content: r, className: i, children: l, structuredContent: t, textClassName: a, ...e }) => /* @__PURE__ */ c(
6763
6764
  "div",
@@ -6795,7 +6796,7 @@ function Fc({ className: r, label: i, theme: l, userAvatar: t, userName: a, vari
6795
6796
  ...o,
6796
6797
  children: [
6797
6798
  /* @__PURE__ */ c("div", { className: "w-4 h-4", children: t }),
6798
- /* @__PURE__ */ c(V, { className: u("font-bold", v.text, { "hidden md:block": e === "header" }), children: a }),
6799
+ /* @__PURE__ */ c(L, { className: u("font-bold", v.text, { "hidden md:block": e === "header" }), children: a }),
6799
6800
  /* @__PURE__ */ c(H0, { className: v.icon })
6800
6801
  ]
6801
6802
  }
@@ -6921,7 +6922,7 @@ export {
6921
6922
  bc as TableRow,
6922
6923
  yc as Tabs,
6923
6924
  dn as Tag,
6924
- V as Text,
6925
+ L as Text,
6925
6926
  Nc as TextArea,
6926
6927
  Hc as TimePicker,
6927
6928
  on as Toast,