@dinofront/design_system 1.19.1 → 1.19.3-alpha.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.js CHANGED
@@ -1750,36 +1750,154 @@ function zn(e, t) {
1750
1750
  };
1751
1751
  }
1752
1752
  //#endregion
1753
+ //#region src/hooks/useStepper.ts
1754
+ function Bn(e, t) {
1755
+ return t <= 0 ? 0 : Math.min(Math.max(e, 0), t - 1);
1756
+ }
1757
+ function Vn({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i = !1 }) {
1758
+ let [a, o] = m(() => Bn(t, e)), s = n !== void 0, c = s ? Bn(n, e) : a, l = (t) => {
1759
+ let n = Bn(t, e);
1760
+ s || o(n), r?.(n);
1761
+ };
1762
+ return {
1763
+ step: c,
1764
+ count: e,
1765
+ isFirst: c === 0,
1766
+ isLast: c === e - 1,
1767
+ next: () => {
1768
+ if (c >= e - 1) {
1769
+ i && l(0);
1770
+ return;
1771
+ }
1772
+ l(c + 1);
1773
+ },
1774
+ prev: () => {
1775
+ if (c <= 0) {
1776
+ i && l(e - 1);
1777
+ return;
1778
+ }
1779
+ l(c - 1);
1780
+ },
1781
+ goTo: l,
1782
+ reset: () => l(t)
1783
+ };
1784
+ }
1785
+ //#endregion
1786
+ //#region src/hooks/useOnOutsideClick.ts
1787
+ var Hn = [];
1788
+ function Un(e) {
1789
+ let t = Hn[Hn.length - 1];
1790
+ if (!t) return;
1791
+ let { ref: n, callback: r, shouldRemoveCallback: i } = t;
1792
+ n && !n.contains(e.target) && (i && Hn.splice(Hn.length - 1, 1), r(e));
1793
+ }
1794
+ var Wn = (e, t, n, r, i = !0) => {
1795
+ l(() => {
1796
+ if (e && n && r) return Hn.push({
1797
+ ref: e,
1798
+ callback: t,
1799
+ uid: r,
1800
+ shouldRemoveCallback: i
1801
+ }), Hn.length === 1 && document.addEventListener("mousedown", Un), () => {
1802
+ Hn.length === 0 && document.removeEventListener("mousedown", Un);
1803
+ };
1804
+ }, [
1805
+ e,
1806
+ n,
1807
+ r
1808
+ ]), l(() => {
1809
+ if (!n && Hn.length > 0) {
1810
+ let e = Hn.findIndex((e) => e.uid === r);
1811
+ e >= 0 && Hn.splice(e, 1);
1812
+ }
1813
+ }, [n]);
1814
+ };
1815
+ //#endregion
1816
+ //#region src/hooks/useEscapeKey.ts
1817
+ function Gn(e, t = !0) {
1818
+ l(() => {
1819
+ if (!t) return;
1820
+ let n = (t) => {
1821
+ t.key === "Escape" && e();
1822
+ };
1823
+ return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
1824
+ }, [e, t]);
1825
+ }
1826
+ //#endregion
1827
+ //#region src/hooks/useHideBodyScroll.ts
1828
+ var Kn = 0, qn = "";
1829
+ function Jn(e) {
1830
+ l(() => {
1831
+ if (e) return Kn === 0 && (qn = document.body.style.overflow, document.body.style.overflow = "hidden"), Kn += 1, () => {
1832
+ --Kn, Kn === 0 && (document.body.style.overflow = qn);
1833
+ };
1834
+ }, [e]);
1835
+ }
1836
+ //#endregion
1837
+ //#region src/hooks/useIsMobile.ts
1838
+ var Yn = 768;
1839
+ function Xn(e = Yn) {
1840
+ let [t, n] = m(!1);
1841
+ return l(() => {
1842
+ if (typeof window > "u" || typeof window.matchMedia != "function") return;
1843
+ let t = window.matchMedia(`(max-width: ${e}px)`), r = () => n(t.matches);
1844
+ return r(), t.addEventListener("change", r), () => t.removeEventListener("change", r);
1845
+ }, [e]), t;
1846
+ }
1847
+ //#endregion
1848
+ //#region src/lib/FormContext.ts
1849
+ var Zn = r(null);
1850
+ //#endregion
1851
+ //#region src/hooks/useFormContext.ts
1852
+ function Qn() {
1853
+ let e = c(Zn);
1854
+ if (!e) throw Error("useFormContext must be used inside a FormContainer.");
1855
+ return e;
1856
+ }
1857
+ //#endregion
1858
+ //#region src/hooks/useFormProps.ts
1859
+ var $n = () => void 0, er = {
1860
+ errors: {},
1861
+ setValue: $n,
1862
+ reset: $n,
1863
+ clearErrors: $n,
1864
+ setError: $n,
1865
+ unregister: $n,
1866
+ isDirty: !1,
1867
+ isSubmitted: !1,
1868
+ isSubmitting: !1,
1869
+ isValid: !1,
1870
+ dirtyFields: {},
1871
+ submit: $n
1872
+ };
1873
+ function tr() {
1874
+ return c(Zn) ?? er;
1875
+ }
1876
+ //#endregion
1753
1877
  //#region src/components/Drawer/Drawer.tsx
1754
- var Bn = {
1878
+ var nr = {
1755
1879
  sm: "w-[320px]",
1756
1880
  md: "w-[420px]",
1757
1881
  lg: "w-[560px]",
1758
1882
  xl: "w-[720px]"
1759
- }, Vn = {
1883
+ }, rr = {
1760
1884
  sm: "h-[240px]",
1761
1885
  md: "h-[360px]",
1762
1886
  lg: "h-[480px]",
1763
1887
  xl: "h-[600px]"
1764
- }, Hn = {
1888
+ }, ir = {
1765
1889
  right: "inset-y-0 right-0 border-l",
1766
1890
  left: "inset-y-0 left-0 border-r",
1767
1891
  top: "inset-x-0 top-0 border-b",
1768
1892
  bottom: "inset-x-0 bottom-0 border-t"
1769
- }, Un = {
1893
+ }, ar = {
1770
1894
  right: "translate-x-full",
1771
1895
  left: "-translate-x-full",
1772
1896
  top: "-translate-y-full",
1773
1897
  bottom: "translate-y-full"
1774
- }, Wn = a(function({ open: e, onClose: t, side: n = "right", size: r = "md", title: i, description: a, children: o, footer: s, closeOnOverlayClick: c = !0, showClose: u = !0, animated: d = !0, headerActions: f, className: m, dataTestId: h }, g) {
1898
+ }, or = a(function({ open: e, onClose: t, side: n = "right", size: r = "md", title: i, description: a, children: o, footer: s, closeOnOverlayClick: c = !0, showClose: u = !0, animated: d = !0, headerActions: f, className: m, dataTestId: h }, g) {
1775
1899
  let _ = p(null), v = p(null), { mounted: y, state: b } = zn(e, d ? Ln.slow : 0), x = b === "entered";
1776
- if (l(() => {
1777
- if (!y) return;
1778
- let e = document.body.style.overflow;
1779
- return document.body.style.overflow = "hidden", () => {
1780
- document.body.style.overflow = e;
1781
- };
1782
- }, [y]), l(() => {
1900
+ if (Jn(y), l(() => {
1783
1901
  let e = _.current;
1784
1902
  if (!(!y || !e || e.open)) return e.showModal(), v.current?.focus(), () => {
1785
1903
  e.open && e.close();
@@ -1787,15 +1905,18 @@ var Bn = {
1787
1905
  }, [y]), l(() => {
1788
1906
  if (!e) return;
1789
1907
  let t = document.activeElement;
1790
- return v.current?.focus(), () => t?.focus?.();
1908
+ return v.current?.focus(), () => {
1909
+ let e = document.activeElement;
1910
+ e instanceof HTMLElement && _.current?.contains(e) && e.blur(), t?.focus?.();
1911
+ };
1791
1912
  }, [e]), !y) return null;
1792
- let S = n === "left" || n === "right", C = S ? Bn[r] : Vn[r];
1913
+ let S = n === "left" || n === "right", C = S ? nr[r] : rr[r];
1793
1914
  return _e(/* @__PURE__ */ J("dialog", {
1794
1915
  ref: _,
1795
1916
  onCancel: (e) => {
1796
1917
  e.preventDefault(), t();
1797
1918
  },
1798
- "aria-hidden": b === "exiting" || void 0,
1919
+ inert: b === "exiting",
1799
1920
  "aria-labelledby": i ? "drawer-title" : void 0,
1800
1921
  "aria-describedby": a ? "drawer-desc" : void 0,
1801
1922
  className: "fixed inset-0 z-50 m-0 h-full max-h-none w-full max-w-none overflow-hidden border-0 bg-transparent p-0 text-inherit backdrop:bg-transparent",
@@ -1807,7 +1928,7 @@ var Bn = {
1807
1928
  }), /* @__PURE__ */ J("div", {
1808
1929
  ref: Gt(g, v),
1809
1930
  tabIndex: -1,
1810
- className: Q("absolute bg-bg-default shadow-z5 outline-none flex flex-col", Hn[n], S ? `${C} h-full max-w-full` : `${C} w-full max-h-full`, "border-border-default", d && "transition-transform duration-300 ease-out motion-reduce:transition-none will-change-transform", x ? "translate-x-0 translate-y-0" : Un[n], m),
1931
+ className: Q("absolute bg-bg-default shadow-z5 outline-none flex flex-col", ir[n], S ? `${C} h-full max-w-full` : `${C} w-full max-h-full`, "border-border-default", d && "transition-transform duration-300 ease-out motion-reduce:transition-none will-change-transform", x ? "translate-x-0 translate-y-0" : ar[n], m),
1811
1932
  children: [
1812
1933
  (i || u || f) && /* @__PURE__ */ J("div", {
1813
1934
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4 border-b border-border-default",
@@ -1845,8 +1966,8 @@ var Bn = {
1845
1966
  ]
1846
1967
  })]
1847
1968
  }), document.body);
1848
- }), Gn = 8;
1849
- function Kn({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "start", offset: a = 4, flip: o = !0, shift: s = !0, matchAnchorWidth: c = !1 }) {
1969
+ }), sr = 8;
1970
+ function cr({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "start", offset: a = 4, flip: o = !0, shift: s = !0, matchAnchorWidth: c = !1 }) {
1850
1971
  let [l, u] = m({
1851
1972
  style: {
1852
1973
  position: "fixed",
@@ -1867,7 +1988,7 @@ function Kn({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "star
1867
1988
  r === "bottom" && e < d.height + a && t > e ? m = "top" : r === "top" && t < d.height + a && e > t && (m = "bottom");
1868
1989
  }
1869
1990
  let h = m === "bottom" ? l.bottom + a : l.top - d.height - a, g = i === "end" ? l.right - d.width : l.left;
1870
- s && (g = Math.min(Math.max(g, Gn), p - d.width - Gn)), u({
1991
+ s && (g = Math.min(Math.max(g, sr), p - d.width - sr)), u({
1871
1992
  style: {
1872
1993
  position: "fixed",
1873
1994
  top: h,
@@ -1897,16 +2018,16 @@ function Kn({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "star
1897
2018
  }
1898
2019
  //#endregion
1899
2020
  //#region src/components/DropdownMenu/DropdownMenu.tsx
1900
- function qn(e) {
2021
+ function lr(e) {
1901
2022
  return e == null ? null : e instanceof HTMLElement ? e : e.current;
1902
2023
  }
1903
- var Jn = r(null);
1904
- function Yn() {
1905
- let e = c(Jn);
2024
+ var ur = r(null);
2025
+ function dr() {
2026
+ let e = c(ur);
1906
2027
  if (!e) throw Error("Dropdown parts must be used inside <DropdownMenu>");
1907
2028
  return e;
1908
2029
  }
1909
- var Xn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r, anchorRef: i, className: a, dataTestId: o, ...s }, c) {
2030
+ var fr = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r, anchorRef: i, className: a, dataTestId: o, ...s }, c) {
1910
2031
  let [u, d] = m(t), f = n !== void 0, h = f ? n : u, g = p(null), _ = (e) => {
1911
2032
  f || d(e), r?.(e);
1912
2033
  };
@@ -1916,7 +2037,7 @@ var Xn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r
1916
2037
  e.key === "Escape" && _(!1);
1917
2038
  };
1918
2039
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1919
- }, [h]), /* @__PURE__ */ q(Jn.Provider, {
2040
+ }, [h]), /* @__PURE__ */ q(ur.Provider, {
1920
2041
  value: {
1921
2042
  open: h,
1922
2043
  setOpen: _,
@@ -1932,8 +2053,8 @@ var Xn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r
1932
2053
  })
1933
2054
  });
1934
2055
  });
1935
- function Zn({ children: e }) {
1936
- let { open: t, setOpen: r, triggerRef: i } = Yn();
2056
+ function pr({ children: e }) {
2057
+ let { open: t, setOpen: r, triggerRef: i } = dr();
1937
2058
  if (!o(e)) return e;
1938
2059
  let a = e.props ?? {};
1939
2060
  return n(e, {
@@ -1946,10 +2067,10 @@ function Zn({ children: e }) {
1946
2067
  "aria-expanded": t
1947
2068
  });
1948
2069
  }
1949
- var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default shadow-z4 z-50 py-1", $n = a(function({ children: e, align: t = "start", strategy: n = "fixed", side: r = "bottom", sideOffset: i = 4, flip: a = !0, shift: o = !0, matchTriggerWidth: s = !1, closeOnScroll: c = !1, autoFocusFirstItem: u = !0, className: d, dataTestId: h, onClick: g, ..._ }, v) {
1950
- let { open: y, setOpen: b, triggerRef: x, anchorRef: S } = Yn(), C = p(null), [w, T] = m(null), { style: E, resolvedSide: D } = Kn({
2070
+ var mr = "min-w-[200px] rounded-lg border border-border-default bg-bg-default shadow-z4 z-50 py-1", hr = a(function({ children: e, align: t = "start", strategy: n = "fixed", side: r = "bottom", sideOffset: i = 4, flip: a = !0, shift: o = !0, matchTriggerWidth: s = !1, closeOnScroll: c = !1, autoFocusFirstItem: u = !0, className: d, dataTestId: h, onClick: g, ..._ }, v) {
2071
+ let { open: y, setOpen: b, triggerRef: x, anchorRef: S } = dr(), C = p(null), [w, T] = m(null), { style: E, resolvedSide: D } = cr({
1951
2072
  anchor: f(() => ({ get current() {
1952
- return qn(S) ?? x.current;
2073
+ return lr(S) ?? x.current;
1953
2074
  } }), [S, x]),
1954
2075
  panel: w,
1955
2076
  open: y && n === "fixed",
@@ -1964,7 +2085,7 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1964
2085
  if (!y) return;
1965
2086
  let e = (e) => {
1966
2087
  let t = e.target;
1967
- C.current?.contains(t) || x.current?.contains(t) || qn(S)?.contains(t) || b(!1);
2088
+ C.current?.contains(t) || x.current?.contains(t) || lr(S)?.contains(t) || b(!1);
1968
2089
  };
1969
2090
  return document.addEventListener("mousedown", e, !0), () => document.removeEventListener("mousedown", e, !0);
1970
2091
  }, [
@@ -2006,13 +2127,13 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2006
2127
  g?.(e), e.stopPropagation();
2007
2128
  },
2008
2129
  style: n === "fixed" ? E : void 0,
2009
- className: Q(Qn, n === "absolute" && Q("absolute top-full mt-1", t === "end" ? "right-0" : "left-0"), d),
2130
+ className: Q(mr, n === "absolute" && Q("absolute top-full mt-1", t === "end" ? "right-0" : "left-0"), d),
2010
2131
  ..._,
2011
2132
  children: e
2012
2133
  });
2013
2134
  return n === "fixed" ? _e(O, document.body) : O;
2014
- }), er = a(function({ children: e, onSelect: t, disabled: n, icon: r, shortcut: i, destructive: a, checked: o, meta: s, className: c, dataTestId: l, onClick: u, ...d }, f) {
2015
- let { setOpen: p } = Yn();
2135
+ }), gr = a(function({ children: e, onSelect: t, disabled: n, icon: r, shortcut: i, destructive: a, checked: o, meta: s, className: c, dataTestId: l, onClick: u, ...d }, f) {
2136
+ let { setOpen: p } = dr();
2016
2137
  return /* @__PURE__ */ J("button", {
2017
2138
  ref: f,
2018
2139
  type: "button",
@@ -2049,7 +2170,7 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2049
2170
  })
2050
2171
  ]
2051
2172
  });
2052
- }), tr = a(function({ className: e, dataTestId: t, ...n }, r) {
2173
+ }), _r = a(function({ className: e, dataTestId: t, ...n }, r) {
2053
2174
  return /* @__PURE__ */ q("div", {
2054
2175
  ref: r,
2055
2176
  role: "separator",
@@ -2057,7 +2178,7 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2057
2178
  className: Q("my-1 h-px bg-border-default", e),
2058
2179
  ...n
2059
2180
  });
2060
- }), nr = a(function({ children: e, className: t, dataTestId: n, ...r }, i) {
2181
+ }), vr = a(function({ children: e, className: t, dataTestId: n, ...r }, i) {
2061
2182
  return /* @__PURE__ */ q("div", {
2062
2183
  ref: i,
2063
2184
  "data-test-id": n,
@@ -2065,24 +2186,24 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2065
2186
  ...r,
2066
2187
  children: e
2067
2188
  });
2068
- }), rr = {
2189
+ }), yr = {
2069
2190
  lg: "py-20 px-6 gap-2",
2070
2191
  sm: "py-10 px-4 gap-1"
2071
- }, ir = {
2192
+ }, br = {
2072
2193
  lg: "xl",
2073
2194
  sm: "lg"
2074
- }, ar = a(function({ size: e = "lg", title: t, description: n, illustration: r, action: i, className: a, dataTestId: o, ...s }, c) {
2195
+ }, xr = a(function({ size: e = "lg", title: t, description: n, illustration: r, action: i, className: a, dataTestId: o, ...s }, c) {
2075
2196
  return /* @__PURE__ */ J("div", {
2076
2197
  ref: c,
2077
2198
  "data-test-id": o,
2078
- className: Q("flex flex-col items-center justify-center text-center", rr[e], a),
2199
+ className: Q("flex flex-col items-center justify-center text-center", yr[e], a),
2079
2200
  ...s,
2080
2201
  children: [
2081
2202
  r ?? /* @__PURE__ */ q(wn, {
2082
2203
  icon: ue,
2083
2204
  tone: "gray",
2084
2205
  shape: "circle",
2085
- size: ir[e]
2206
+ size: br[e]
2086
2207
  }),
2087
2208
  t && /* @__PURE__ */ q(kn, {
2088
2209
  as: "h3",
@@ -2103,17 +2224,17 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2103
2224
  })
2104
2225
  ]
2105
2226
  });
2106
- }), or = {
2227
+ }), Sr = {
2107
2228
  lg: "h-10 px-3 text-p-std gap-2",
2108
2229
  md: "h-9 px-2.5 text-p-std gap-1.5",
2109
2230
  sm: "h-8 px-2 text-p-sm gap-1.5"
2110
2231
  };
2111
- function sr(...e) {
2232
+ function Cr(...e) {
2112
2233
  return (t) => {
2113
2234
  for (let n of e) n && (typeof n == "function" ? n(t) : n.current = t);
2114
2235
  };
2115
2236
  }
2116
- var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabled: i, onClear: a, children: o, className: s, dataTestId: c, ...u }, d) {
2237
+ var wr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabled: i, onClear: a, children: o, className: s, dataTestId: c, ...u }, d) {
2117
2238
  let [f, h] = m(!1), g = p(null);
2118
2239
  l(() => {
2119
2240
  if (!f) return;
@@ -2124,7 +2245,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2124
2245
  }, [f]);
2125
2246
  let _ = n || t !== void 0;
2126
2247
  return /* @__PURE__ */ J("div", {
2127
- ref: sr(d, g),
2248
+ ref: Cr(d, g),
2128
2249
  "data-test-id": c,
2129
2250
  className: Q("relative inline-flex", s),
2130
2251
  ...u,
@@ -2134,7 +2255,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2134
2255
  onClick: () => h((e) => !e),
2135
2256
  "aria-haspopup": "dialog",
2136
2257
  "aria-expanded": f,
2137
- className: Q("inline-flex items-center rounded-full border transition-colors outline-none", or[r], _ ? "bg-brand-20 text-brand-800 border-brand-500" : "bg-bg-default text-fg-default border-border-default", !i && "hover:border-border-strong", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", i && "bg-bg-container text-fg-disabled cursor-not-allowed"),
2258
+ className: Q("inline-flex items-center rounded-full border transition-colors outline-none", Sr[r], _ ? "bg-brand-20 text-brand-800 border-brand-500" : "bg-bg-default text-fg-default border-border-default", !i && "hover:border-border-strong", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", i && "bg-bg-container text-fg-disabled cursor-not-allowed"),
2138
2259
  children: [
2139
2260
  /* @__PURE__ */ q("span", {
2140
2261
  className: "font-medium",
@@ -2170,7 +2291,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2170
2291
  children: o
2171
2292
  })]
2172
2293
  });
2173
- }), lr = r(null), ur = a(function({ children: e, className: t, validationSchema: n, defaultValues: r, buttons: i, mode: a = "onBlur", shouldUnregister: o, shouldFocusError: s = !0, formId: c, onSubmit: u, revalidateKey: d, dataTestId: f, ...p }, m) {
2294
+ }), Tr = a(function({ children: e, className: t, validationSchema: n, defaultValues: r, buttons: i, mode: a = "onBlur", shouldUnregister: o, shouldFocusError: s = !0, formId: c, onSubmit: u, revalidateKey: d, dataTestId: f, ...p }, m) {
2174
2295
  let { handleSubmit: h, register: g, setValue: _, control: v, formState: y, getValues: b, watch: x, reset: S, clearErrors: C, setError: w, trigger: T, getFieldState: E, unregister: D } = be({
2175
2296
  mode: a,
2176
2297
  resolver: xe(n),
@@ -2211,7 +2332,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2211
2332
  "data-test-id": f,
2212
2333
  className: Q("flex flex-col gap-4", t),
2213
2334
  ...p,
2214
- children: /* @__PURE__ */ J(lr.Provider, {
2335
+ children: /* @__PURE__ */ J(Zn.Provider, {
2215
2336
  value: N,
2216
2337
  children: [e, i && i.length > 0 && /* @__PURE__ */ q("div", {
2217
2338
  className: "flex items-center gap-3",
@@ -2220,8 +2341,8 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2220
2341
  })]
2221
2342
  })
2222
2343
  });
2223
- }), dr = a(function({ name: e, defaultValue: t, render: n, className: r, dataTestId: i, ...a }, o) {
2224
- let s = c(lr);
2344
+ }), Er = a(function({ name: e, defaultValue: t, render: n, className: r, dataTestId: i, ...a }, o) {
2345
+ let s = c(Zn);
2225
2346
  if (!s) throw Error("FormField must be rendered inside a FormContainer.");
2226
2347
  return /* @__PURE__ */ q("div", {
2227
2348
  ref: o,
@@ -2247,7 +2368,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2247
2368
  })
2248
2369
  })
2249
2370
  });
2250
- }), fr = a(function({ icon: e, iconTone: t = "brand", label: n, value: r, action: i, className: a, dataTestId: o, ...s }, c) {
2371
+ }), Dr = a(function({ icon: e, iconTone: t = "brand", label: n, value: r, action: i, className: a, dataTestId: o, ...s }, c) {
2251
2372
  return /* @__PURE__ */ J("div", {
2252
2373
  ref: c,
2253
2374
  "data-test-id": o,
@@ -2275,7 +2396,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2275
2396
  })
2276
2397
  ]
2277
2398
  });
2278
- }), pr = {
2399
+ }), Or = {
2279
2400
  success: {
2280
2401
  container: "bg-green-50 border-green-200",
2281
2402
  iconColor: "text-green-600",
@@ -2301,8 +2422,8 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2301
2422
  iconColor: "text-purple-700",
2302
2423
  DefaultIcon: de
2303
2424
  }
2304
- }, mr = a(function({ variant: e = "info", title: t, description: n, onDismiss: r, actions: i, icon: a, className: o, dataTestId: s, ...c }, l) {
2305
- let { container: u, iconColor: d, DefaultIcon: f } = pr[e];
2425
+ }, kr = a(function({ variant: e = "info", title: t, description: n, onDismiss: r, actions: i, icon: a, className: o, dataTestId: s, ...c }, l) {
2426
+ let { container: u, iconColor: d, DefaultIcon: f } = Or[e];
2306
2427
  return /* @__PURE__ */ J("div", {
2307
2428
  ref: l,
2308
2429
  role: "alert",
@@ -2343,7 +2464,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2343
2464
  })
2344
2465
  ]
2345
2466
  });
2346
- }), hr = a(function({ variant: e = "p-std", weight: t, color: n = "brand", underline: r = "hover", leftIcon: i, rightIcon: a, truncate: o, className: s, children: c, dataTestId: l, target: u, rel: d, ...f }, p) {
2467
+ }), Ar = a(function({ variant: e = "p-std", weight: t, color: n = "brand", underline: r = "hover", leftIcon: i, rightIcon: a, truncate: o, className: s, children: c, dataTestId: l, target: u, rel: d, ...f }, p) {
2347
2468
  let m = {
2348
2469
  ...f,
2349
2470
  target: u,
@@ -2371,43 +2492,40 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2371
2492
  })
2372
2493
  ]
2373
2494
  });
2374
- }), gr = {
2495
+ }), jr = {
2375
2496
  sm: "max-w-sm",
2376
2497
  md: "max-w-md",
2377
2498
  lg: "max-w-lg",
2378
2499
  xl: "max-w-2xl",
2379
2500
  "2xl": "max-w-4xl"
2380
- }, _r = a(function({ open: e, onClose: t, title: n, description: r, children: i, footer: a, size: o = "md", closeOnOverlayClick: s = !0, showClose: c = !0, className: u, dataTestId: d }, f) {
2381
- let m = p(null);
2382
- return l(() => {
2383
- if (!e) return;
2384
- let n = (e) => {
2385
- e.key === "Escape" && t();
2386
- };
2387
- document.addEventListener("keydown", n);
2388
- let r = document.body.style.overflow;
2389
- return document.body.style.overflow = "hidden", () => {
2390
- document.removeEventListener("keydown", n), document.body.style.overflow = r;
2501
+ }, Mr = a(function({ open: e, onClose: t, title: n, description: r, children: i, footer: a, size: o = "md", closeOnOverlayClick: s = !0, showClose: c = !0, className: u, dataTestId: d }, f) {
2502
+ let m = p(null), h = p(null);
2503
+ return Jn(e), l(() => {
2504
+ let t = m.current;
2505
+ if (!(!e || !t || t.open)) return t.showModal(), h.current?.focus(), () => {
2506
+ t.open && t.close();
2391
2507
  };
2392
- }, [e, t]), l(() => {
2508
+ }, [e]), l(() => {
2393
2509
  if (!e) return;
2394
2510
  let t = document.activeElement;
2395
- return m.current?.focus(), () => t?.focus?.();
2396
- }, [e]), e ? _e(/* @__PURE__ */ J("div", {
2397
- role: "dialog",
2398
- "aria-modal": "true",
2511
+ return h.current?.focus(), () => t?.focus?.();
2512
+ }, [e]), e ? _e(/* @__PURE__ */ J("dialog", {
2513
+ ref: m,
2514
+ onCancel: (e) => {
2515
+ e.preventDefault(), t();
2516
+ },
2399
2517
  "aria-labelledby": n ? "modal-title" : void 0,
2400
2518
  "aria-describedby": r ? "modal-desc" : void 0,
2401
- className: "fixed inset-0 z-50 flex items-center justify-center p-4",
2519
+ className: "fixed inset-0 z-50 m-0 flex h-full max-h-none w-full max-w-none items-center justify-center border-0 bg-transparent p-4 text-inherit backdrop:bg-transparent",
2402
2520
  children: [/* @__PURE__ */ q("div", {
2403
2521
  className: "absolute inset-0 bg-black/50",
2404
2522
  onClick: () => s && t(),
2405
2523
  "aria-hidden": !0
2406
2524
  }), /* @__PURE__ */ J("div", {
2407
- ref: Gt(m, f),
2525
+ ref: Gt(h, f),
2408
2526
  tabIndex: -1,
2409
2527
  "data-test-id": d,
2410
- className: Q("relative w-full bg-bg-default rounded-xl shadow-z5 outline-none flex flex-col max-h-[90vh]", gr[o], u),
2528
+ className: Q("relative w-full bg-bg-default rounded-xl shadow-z5 outline-none flex flex-col max-h-[90vh]", jr[o], u),
2411
2529
  children: [
2412
2530
  (n || c) && /* @__PURE__ */ J("div", {
2413
2531
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4",
@@ -2442,29 +2560,29 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2442
2560
  ]
2443
2561
  })]
2444
2562
  }), document.body) : null;
2445
- }), vr = {
2563
+ }), Nr = {
2446
2564
  brand: "bg-brand-500 text-white",
2447
2565
  danger: "bg-red-600 text-white",
2448
2566
  success: "bg-green-600 text-white",
2449
2567
  warning: "bg-yellow-600 text-gray-900 dark:text-gray-900",
2450
2568
  info: "bg-blue-600 text-white"
2451
- }, yr = {
2569
+ }, Pr = {
2452
2570
  lg: "min-w-[18px] h-[18px] px-1 text-[11px]",
2453
2571
  sm: "min-w-[14px] h-[14px] px-0.5 text-[10px]"
2454
- }, br = {
2572
+ }, Fr = {
2455
2573
  lg: "h-2.5 w-2.5",
2456
2574
  sm: "h-1.5 w-1.5"
2457
2575
  };
2458
- function xr(e, t) {
2576
+ function Ir(e, t) {
2459
2577
  return e > t ? `${t}+` : e >= 1e3 ? `${(e / 1e3).toFixed(0)}K` : String(e);
2460
2578
  }
2461
- var Sr = a(function({ count: e = 0, max: t = 99, kind: n = "count", size: r = "lg", variant: i = "danger", children: a, showZero: o = !1, className: s, dataTestId: c, ...l }, u) {
2579
+ var Lr = a(function({ count: e = 0, max: t = 99, kind: n = "count", size: r = "lg", variant: i = "danger", children: a, showZero: o = !1, className: s, dataTestId: c, ...l }, u) {
2462
2580
  let d = n === "dot" || e > 0 || o, f = a != null && a !== !1, p = d ? /* @__PURE__ */ q("span", {
2463
2581
  ref: u,
2464
2582
  "data-test-id": c,
2465
- className: Q("inline-flex items-center justify-center rounded-full font-semibold ring-2 ring-white", vr[i], n === "count" ? yr[r] : br[r], f ? "absolute -top-1 -right-1" : "static", s),
2583
+ className: Q("inline-flex items-center justify-center rounded-full font-semibold ring-2 ring-white", Nr[i], n === "count" ? Pr[r] : Fr[r], f ? "absolute -top-1 -right-1" : "static", s),
2466
2584
  ...l,
2467
- children: n === "count" && xr(e, t)
2585
+ children: n === "count" && Ir(e, t)
2468
2586
  }) : null;
2469
2587
  return f ? /* @__PURE__ */ J("span", {
2470
2588
  className: "relative inline-flex",
@@ -2473,7 +2591,7 @@ var Sr = a(function({ count: e = 0, max: t = 99, kind: n = "count", size: r = "l
2473
2591
  });
2474
2592
  //#endregion
2475
2593
  //#region src/components/Pagination/Pagination.tsx
2476
- function Cr(e, t, n, r) {
2594
+ function Rr(e, t, n, r) {
2477
2595
  if (t <= n * 2 + 3 + r * 2) return Array.from({ length: t }, (e, t) => t + 1);
2478
2596
  let i = Math.max(e - n, r + 2), a = Math.min(e + n, t - r - 1), o = i > r + 2, s = a < t - r - 1, c = Array.from({ length: r }, (e, t) => t + 1), l = Array.from({ length: r }, (e, n) => t - r + 1 + n), u = [];
2479
2597
  if (o) {
@@ -2488,8 +2606,8 @@ function Cr(e, t, n, r) {
2488
2606
  ...l
2489
2607
  ];
2490
2608
  }
2491
- var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", Tr = "text-fg-default hover:bg-bg-subtle disabled:text-fg-disabled disabled:hover:bg-transparent disabled:cursor-not-allowed", Er = a(function({ page: e, pageCount: t, onPageChange: n, siblingCount: r = 1, boundaryCount: i = 1, className: a, dataTestId: o, "aria-label": s, ...c }, l) {
2492
- let u = Cr(e, t, r, i), d = e <= 1, f = e >= t, p = We(o);
2609
+ var zr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", Br = "text-fg-default hover:bg-bg-subtle disabled:text-fg-disabled disabled:hover:bg-transparent disabled:cursor-not-allowed", Vr = a(function({ page: e, pageCount: t, onPageChange: n, siblingCount: r = 1, boundaryCount: i = 1, className: a, dataTestId: o, "aria-label": s, ...c }, l) {
2610
+ let u = Rr(e, t, r, i), d = e <= 1, f = e >= t, p = We(o);
2493
2611
  return /* @__PURE__ */ J("nav", {
2494
2612
  ref: l,
2495
2613
  "aria-label": s ?? "Pagination",
@@ -2503,7 +2621,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2503
2621
  disabled: d,
2504
2622
  "data-test-id": p("pagination-prev-page"),
2505
2623
  "aria-label": "Previous page",
2506
- className: Q(wr, Tr),
2624
+ className: Q(zr, Br),
2507
2625
  children: /* @__PURE__ */ q(C, { className: "h-4 w-4" })
2508
2626
  }),
2509
2627
  u.map((t, r) => {
@@ -2519,7 +2637,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2519
2637
  "aria-current": i ? "page" : void 0,
2520
2638
  "data-test-id": p("pagination-page-link"),
2521
2639
  "data-page": t,
2522
- className: Q(wr, i ? "bg-brand-500 text-white font-semibold hover:bg-brand-600" : "text-fg-default hover:bg-bg-subtle"),
2640
+ className: Q(zr, i ? "bg-brand-500 text-white font-semibold hover:bg-brand-600" : "text-fg-default hover:bg-bg-subtle"),
2523
2641
  children: t
2524
2642
  }, t);
2525
2643
  }),
@@ -2529,12 +2647,12 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2529
2647
  disabled: f,
2530
2648
  "aria-label": "Next page",
2531
2649
  "data-test-id": p("pagination-next-page"),
2532
- className: Q(wr, Tr),
2650
+ className: Q(zr, Br),
2533
2651
  children: /* @__PURE__ */ q(w, { className: "h-4 w-4" })
2534
2652
  })
2535
2653
  ]
2536
2654
  });
2537
- }), Dr = {
2655
+ }), Hr = {
2538
2656
  sm: {
2539
2657
  padding: "px-3 py-2",
2540
2658
  avatar: "sm",
@@ -2545,12 +2663,12 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2545
2663
  avatar: "md",
2546
2664
  gap: "gap-3"
2547
2665
  }
2548
- }, Or = {
2666
+ }, Ur = {
2549
2667
  default: "border-border-default bg-bg-default hover:border-fg-tertiary/40",
2550
2668
  highlight: "border-brand-500 bg-brand-200/15 dark:bg-brand-500/10 ring-1 ring-brand-500/40",
2551
2669
  warning: "border-yellow-500 bg-yellow-50 dark:bg-yellow-900/20"
2552
- }, kr = a(function({ name: e, role: t, avatar: n, variant: r = "default", size: i = "md", badge: a, onClick: o, className: s, dataTestId: c, ...l }, u) {
2553
- let d = Dr[i], f = Or[r], p = /* @__PURE__ */ J(K, { children: [
2670
+ }, Wr = a(function({ name: e, role: t, avatar: n, variant: r = "default", size: i = "md", badge: a, onClick: o, className: s, dataTestId: c, ...l }, u) {
2671
+ let d = Hr[i], f = Ur[r], p = /* @__PURE__ */ J(K, { children: [
2554
2672
  /* @__PURE__ */ q(xt, {
2555
2673
  src: n,
2556
2674
  name: e,
@@ -2586,22 +2704,22 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2586
2704
  ...l,
2587
2705
  children: p
2588
2706
  });
2589
- }), Ar = {
2707
+ }), Gr = {
2590
2708
  sm: 29,
2591
2709
  lg: 45
2592
- }, jr = {
2710
+ }, Kr = {
2593
2711
  sm: 2,
2594
2712
  lg: 4
2595
- }, Mr = {
2713
+ }, qr = {
2596
2714
  sm: "h-1",
2597
2715
  lg: "h-2"
2598
- }, Nr = {
2716
+ }, Jr = {
2599
2717
  sm: "text-p-xs",
2600
2718
  lg: "text-p-sm"
2601
- }, Pr = a(function({ variant: e = "linear", size: t = "lg", percent: n = 0, stepCount: r, currentStep: i, hideLabel: a = !1, dimension: o, loop: s = !1, className: c, dataTestId: l, ...u }, d) {
2719
+ }, Yr = a(function({ variant: e = "linear", size: t = "lg", percent: n = 0, stepCount: r, currentStep: i, hideLabel: a = !1, dimension: o, loop: s = !1, className: c, dataTestId: l, ...u }, d) {
2602
2720
  let f = r && i ? i / r * 100 : n, p = Math.min(100, Math.max(0, f)), m = r ? `${i}/${r}` : `${Math.round(p)}%`;
2603
2721
  if (e === "circular") {
2604
- let e = o ?? Ar[t], n = e - 5, r = 2 * n * Math.PI, i = jr[t];
2722
+ let e = o ?? Gr[t], n = e - 5, r = 2 * n * Math.PI, i = Kr[t];
2605
2723
  return /* @__PURE__ */ J("div", {
2606
2724
  ref: d,
2607
2725
  role: "progressbar",
@@ -2640,7 +2758,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2640
2758
  }
2641
2759
  })]
2642
2760
  }), !a && !s && /* @__PURE__ */ q("span", {
2643
- className: Q("absolute text-fg-secondary", Nr[t]),
2761
+ className: Q("absolute text-fg-secondary", Jr[t]),
2644
2762
  "data-test-id": l ? `${l}-text` : void 0,
2645
2763
  children: m
2646
2764
  })]
@@ -2657,18 +2775,18 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2657
2775
  className: Q("flex w-full items-center gap-2", c),
2658
2776
  ...u,
2659
2777
  children: [/* @__PURE__ */ q("div", {
2660
- className: Q("w-full overflow-hidden rounded-full bg-bg-subtle", Mr[t]),
2778
+ className: Q("w-full overflow-hidden rounded-full bg-bg-subtle", qr[t]),
2661
2779
  children: /* @__PURE__ */ q("div", {
2662
2780
  className: "h-full rounded-full bg-brand-500 transition-all duration-300 ease-linear",
2663
2781
  style: { width: `${p}%` }
2664
2782
  })
2665
2783
  }), !a && /* @__PURE__ */ q("span", {
2666
- className: Q("shrink-0 text-fg-secondary", Nr[t]),
2784
+ className: Q("shrink-0 text-fg-secondary", Jr[t]),
2667
2785
  "data-test-id": l ? `${l}-text` : void 0,
2668
2786
  children: m
2669
2787
  })]
2670
2788
  });
2671
- }), Fr = r(null), Ir = a(function({ name: e, label: t, value: n, defaultValue: r, onChange: i, disabled: a, required: o, error: s, errorText: c, helperText: l, size: d = "md", orientation: f = "vertical", children: p, className: m, wrapperClassName: h, dataTestId: g }, _) {
2789
+ }), Xr = r(null), Zr = a(function({ name: e, label: t, value: n, defaultValue: r, onChange: i, disabled: a, required: o, error: s, errorText: c, helperText: l, size: d = "md", orientation: f = "vertical", children: p, className: m, wrapperClassName: h, dataTestId: g }, _) {
2672
2790
  let v = u(), y = e ?? v, b = `${v}-label`, x = s || !!c, S = c ? `${v}-error` : l ? `${v}-help` : void 0, C = /* @__PURE__ */ q("div", {
2673
2791
  ref: _,
2674
2792
  role: "radiogroup",
@@ -2680,7 +2798,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2680
2798
  className: Q("flex gap-3", f === "vertical" ? "flex-col" : "flex-row flex-wrap items-center gap-4", m),
2681
2799
  children: p
2682
2800
  });
2683
- return /* @__PURE__ */ q(Fr.Provider, {
2801
+ return /* @__PURE__ */ q(Xr.Provider, {
2684
2802
  value: {
2685
2803
  name: y,
2686
2804
  value: n,
@@ -2715,14 +2833,14 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2715
2833
  ]
2716
2834
  }) : C
2717
2835
  });
2718
- }), Lr = {
2836
+ }), Qr = {
2719
2837
  md: "h-5 w-5",
2720
2838
  sm: "h-4 w-4"
2721
- }, Rr = {
2839
+ }, $r = {
2722
2840
  md: "h-2 w-2",
2723
2841
  sm: "h-1.5 w-1.5"
2724
- }, zr = a(function({ value: e, size: t, label: n, description: r, error: i = !1, id: a, disabled: o, checked: s, defaultChecked: l, onChange: d, className: f, dataTestId: p, ...m }, h) {
2725
- let g = c(Fr), _ = u(), v = a ?? _, y = t ?? g?.size ?? "md", b = o ?? g?.disabled, x = i || !!g?.error, S = g !== null, C = S && g.value !== void 0 ? Ye(g.value, e) : void 0, w = S && g.defaultValue !== void 0 ? Ye(g.defaultValue, e) : void 0, T = S ? C : s, E = S ? w : l;
2842
+ }, ei = a(function({ value: e, size: t, label: n, description: r, error: i = !1, id: a, disabled: o, checked: s, defaultChecked: l, onChange: d, className: f, dataTestId: p, ...m }, h) {
2843
+ let g = c(Xr), _ = u(), v = a ?? _, y = t ?? g?.size ?? "md", b = o ?? g?.disabled, x = i || !!g?.error, S = g !== null, C = S && g.value !== void 0 ? Ye(g.value, e) : void 0, w = S && g.defaultValue !== void 0 ? Ye(g.defaultValue, e) : void 0, T = S ? C : s, E = S ? w : l;
2726
2844
  return /* @__PURE__ */ J("label", {
2727
2845
  htmlFor: v,
2728
2846
  "data-test-id": p,
@@ -2745,8 +2863,8 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2745
2863
  "aria-invalid": x || void 0,
2746
2864
  ...m
2747
2865
  }), /* @__PURE__ */ q("span", {
2748
- className: Q("flex items-center justify-center rounded-full border bg-bg-default transition-colors", Lr[y], x ? "border-red-600" : "border-border-strong", !b && !x && "peer-hover:border-fg-tertiary", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-1", "peer-checked:border-brand-500", b && "!bg-bg-subtle !border-border-default", "[&>span]:opacity-0 peer-checked:[&>span]:opacity-100"),
2749
- children: /* @__PURE__ */ q("span", { className: Q("rounded-full bg-brand-500 transition-opacity", Rr[y], b && "!bg-fg-disabled") })
2866
+ className: Q("flex items-center justify-center rounded-full border bg-bg-default transition-colors", Qr[y], x ? "border-red-600" : "border-border-strong", !b && !x && "peer-hover:border-fg-tertiary", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-1", "peer-checked:border-brand-500", b && "!bg-bg-subtle !border-border-default", "[&>span]:opacity-0 peer-checked:[&>span]:opacity-100"),
2867
+ children: /* @__PURE__ */ q("span", { className: Q("rounded-full bg-brand-500 transition-opacity", $r[y], b && "!bg-fg-disabled") })
2750
2868
  })]
2751
2869
  }), (n || r) && /* @__PURE__ */ J("span", {
2752
2870
  className: "flex flex-col gap-0.5",
@@ -2759,7 +2877,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2759
2877
  })]
2760
2878
  })]
2761
2879
  });
2762
- }), Br = a(function({ children: e, clamp: t = 3, collapsedContent: n, expandLabel: r = "Show more", collapseLabel: i = "Show less", defaultExpanded: a = !1, expanded: o, onExpandedChange: s, textProps: c, className: l, dataTestId: d, ...f }, p) {
2880
+ }), ti = a(function({ children: e, clamp: t = 3, collapsedContent: n, expandLabel: r = "Show more", collapseLabel: i = "Show less", defaultExpanded: a = !1, expanded: o, onExpandedChange: s, textProps: c, className: l, dataTestId: d, ...f }, p) {
2763
2881
  let [h, g] = m(a), _ = o !== void 0, v = _ ? o : h, y = u(), b = () => {
2764
2882
  let e = !v;
2765
2883
  _ || g(e), s?.(e);
@@ -2788,7 +2906,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2788
2906
  });
2789
2907
  //#endregion
2790
2908
  //#region src/components/SelectV2/useVisibleTagCount.ts
2791
- function Vr({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }) {
2909
+ function ni({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }) {
2792
2910
  let [a, o] = m(n);
2793
2911
  return d(() => {
2794
2912
  if (!i) return;
@@ -2832,7 +2950,7 @@ function Vr({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }
2832
2950
  }
2833
2951
  //#endregion
2834
2952
  //#region src/components/SelectV2/SelectV2.i18n.ts
2835
- var Hr = {
2953
+ var ri = {
2836
2954
  "en-US": {
2837
2955
  placeholder: "Select…",
2838
2956
  noResults: "No results",
@@ -2860,23 +2978,23 @@ var Hr = {
2860
2978
  createLabel: (e) => `Ստեղծել «${e}»`,
2861
2979
  saveSelectionLabel: "Պահպանել ձևանմուշը"
2862
2980
  }
2863
- }, Ur = {
2981
+ }, ii = {
2864
2982
  lg: "min-h-12 text-p-md",
2865
2983
  md: "min-h-10 text-p-std",
2866
2984
  sm: "min-h-8 text-p-sm"
2867
- }, Wr = {
2985
+ }, ai = {
2868
2986
  lg: "px-3.5 py-1.5",
2869
2987
  md: "px-3 py-1",
2870
2988
  sm: "px-2.5 py-0.5"
2871
- }, Gr = "flex items-center gap-1 rounded-md bg-bg-subtle pl-2 pr-1 py-0.5 max-w-full", Kr = "truncate text-p-sm text-fg-default", qr = "rounded-sm text-fg-secondary hover:bg-bg-container hover:text-fg-default cursor-pointer", Jr = "flex items-center rounded-md bg-bg-info-lighter px-2 py-0.5 text-p-sm text-blue-800 dark:text-blue-300 shrink-0";
2872
- function Yr(e) {
2989
+ }, oi = "flex items-center gap-1 rounded-md bg-bg-subtle pl-2 pr-1 py-0.5 max-w-full", si = "truncate text-p-sm text-fg-default", ci = "rounded-sm text-fg-secondary hover:bg-bg-container hover:text-fg-default cursor-pointer", li = "flex items-center rounded-md bg-bg-info-lighter px-2 py-0.5 text-p-sm text-blue-800 dark:text-blue-300 shrink-0";
2990
+ function ui(e) {
2873
2991
  return e.searchText ?? (typeof e.label == "string" ? e.label : String(e.value));
2874
2992
  }
2875
- function Xr(e, t) {
2993
+ function di(e, t) {
2876
2994
  let n = t.trim().toLowerCase();
2877
- return !n || `${Yr(e)} ${String(e.value)}`.toLowerCase().includes(n);
2995
+ return !n || `${ui(e)} ${String(e.value)}`.toLowerCase().includes(n);
2878
2996
  }
2879
- function Zr(e) {
2997
+ function fi(e) {
2880
2998
  try {
2881
2999
  let t = window.localStorage.getItem(e);
2882
3000
  return t === null ? void 0 : JSON.parse(t);
@@ -2884,34 +3002,34 @@ function Zr(e) {
2884
3002
  return;
2885
3003
  }
2886
3004
  }
2887
- function Qr(e) {
3005
+ function pi(e) {
2888
3006
  try {
2889
3007
  return window.localStorage.getItem(e) !== null;
2890
3008
  } catch {
2891
3009
  return !1;
2892
3010
  }
2893
3011
  }
2894
- function $r(e, t) {
3012
+ function mi(e, t) {
2895
3013
  try {
2896
3014
  window.localStorage.setItem(e, JSON.stringify(t));
2897
3015
  } catch {}
2898
3016
  }
2899
- function ei(e) {
3017
+ function hi(e) {
2900
3018
  try {
2901
3019
  window.localStorage.removeItem(e);
2902
3020
  } catch {}
2903
3021
  }
2904
- function ti(e, t, n) {
3022
+ function gi(e, t, n) {
2905
3023
  return {
2906
3024
  container: () => "w-full",
2907
- control: ({ isFocused: n, isDisabled: r }) => Q("flex items-center rounded-lg border bg-bg-default transition-colors", r ? "cursor-not-allowed" : "cursor-text", Ur[e], t ? "border-red-600" : "border-border-default", !r && !t && "hover:border-border-strong", n && !t && "ring-2 ring-brand-300 border-brand-500", n && t && "ring-2 ring-red-300 border-red-600", r && "bg-bg-container border-border-default"),
2908
- valueContainer: () => Q("flex flex-1 items-center gap-1 min-w-0 sv2-value-container", n ? "flex-nowrap! overflow-hidden" : "flex-wrap", Wr[e]),
3025
+ control: ({ isFocused: n, isDisabled: r }) => Q("flex items-center rounded-lg border bg-bg-default transition-colors", r ? "cursor-not-allowed" : "cursor-text", ii[e], t ? "border-red-600" : "border-border-default", !r && !t && "hover:border-border-strong", n && !t && "ring-2 ring-brand-300 border-brand-500", n && t && "ring-2 ring-red-300 border-red-600", r && "bg-bg-container border-border-default"),
3026
+ valueContainer: () => Q("flex flex-1 items-center gap-1 min-w-0 sv2-value-container", n ? "flex-nowrap! overflow-hidden" : "flex-wrap", ai[e]),
2909
3027
  placeholder: () => "text-fg-tertiary truncate",
2910
3028
  singleValue: () => "text-fg-default truncate min-w-0",
2911
3029
  input: () => "text-fg-default",
2912
- multiValue: () => Gr,
2913
- multiValueLabel: () => Kr,
2914
- multiValueRemove: () => qr,
3030
+ multiValue: () => oi,
3031
+ multiValueLabel: () => si,
3032
+ multiValueRemove: () => ci,
2915
3033
  indicatorsContainer: () => "flex items-center gap-1 pr-2 shrink-0",
2916
3034
  clearIndicator: () => "text-fg-secondary hover:text-fg-default cursor-pointer p-0.5",
2917
3035
  dropdownIndicator: () => "text-fg-secondary p-0.5",
@@ -2928,31 +3046,31 @@ function ti(e, t, n) {
2928
3046
  }
2929
3047
  //#endregion
2930
3048
  //#region src/components/SelectV2/SelectV2.tsx
2931
- var ni = 36;
2932
- function ri(e, t) {
3049
+ var _i = 36;
3050
+ function vi(e, t) {
2933
3051
  let { dataTestId: n } = e;
2934
3052
  return We(n)(t);
2935
3053
  }
2936
- function ii(e, t) {
3054
+ function yi(e, t) {
2937
3055
  return {
2938
3056
  ...e,
2939
3057
  "data-test-id": t
2940
3058
  };
2941
3059
  }
2942
- function ai(e) {
3060
+ function bi(e) {
2943
3061
  return /* @__PURE__ */ q(Ce.Control, {
2944
3062
  ...e,
2945
- innerProps: ii(e.innerProps, ri(e.selectProps, "trigger"))
3063
+ innerProps: yi(e.innerProps, vi(e.selectProps, "trigger"))
2946
3064
  });
2947
3065
  }
2948
- function oi(e) {
2949
- let t = { "data-test-id": ri(e.selectProps, "search") };
3066
+ function xi(e) {
3067
+ let t = { "data-test-id": vi(e.selectProps, "search") };
2950
3068
  return /* @__PURE__ */ q(Ce.Input, {
2951
3069
  ...e,
2952
3070
  ...t
2953
3071
  });
2954
3072
  }
2955
- function si(e) {
3073
+ function Si(e) {
2956
3074
  return /* @__PURE__ */ q(Ce.DropdownIndicator, {
2957
3075
  ...e,
2958
3076
  children: /* @__PURE__ */ q(S, {
@@ -2961,22 +3079,22 @@ function si(e) {
2961
3079
  })
2962
3080
  });
2963
3081
  }
2964
- function ci(e) {
3082
+ function Ci(e) {
2965
3083
  return /* @__PURE__ */ q(Ce.ClearIndicator, {
2966
3084
  ...e,
2967
- innerProps: ii(e.innerProps, ri(e.selectProps, "clear")),
3085
+ innerProps: yi(e.innerProps, vi(e.selectProps, "clear")),
2968
3086
  children: /* @__PURE__ */ q(U, {
2969
3087
  className: "h-3.5 w-3.5",
2970
3088
  "aria-hidden": !0
2971
3089
  })
2972
3090
  });
2973
3091
  }
2974
- function li(e) {
3092
+ function wi(e) {
2975
3093
  return /* @__PURE__ */ q(Ce.MultiValueRemove, {
2976
3094
  ...e,
2977
3095
  innerProps: {
2978
3096
  ...e.innerProps,
2979
- "aria-label": `Remove ${Yr(e.data)}`
3097
+ "aria-label": `Remove ${ui(e.data)}`
2980
3098
  },
2981
3099
  children: /* @__PURE__ */ q(U, {
2982
3100
  className: "h-3 w-3",
@@ -2984,37 +3102,37 @@ function li(e) {
2984
3102
  })
2985
3103
  });
2986
3104
  }
2987
- function ui(e) {
3105
+ function Ti(e) {
2988
3106
  let { visibleTagCount: t } = e.selectProps;
2989
3107
  return t === void 0 || e.index < t ? /* @__PURE__ */ q(Ce.MultiValue, { ...e }) : e.index === t ? /* @__PURE__ */ J("span", {
2990
- className: Jr,
3108
+ className: li,
2991
3109
  children: ["+", (Array.isArray(e.selectProps.value) ? e.selectProps.value.length : 0) - t]
2992
3110
  }) : null;
2993
3111
  }
2994
- function di(e) {
3112
+ function Ei(e) {
2995
3113
  return /* @__PURE__ */ J(Ce.Option, {
2996
3114
  ...e,
2997
- innerProps: ii(e.innerProps, ri(e.selectProps, `option-${String(e.data.value)}`)),
3115
+ innerProps: yi(e.innerProps, vi(e.selectProps, `option-${String(e.data.value)}`)),
2998
3116
  children: [e.children, e.isSelected && /* @__PURE__ */ q(b, {
2999
3117
  className: "h-4 w-4 text-fg-brand shrink-0",
3000
3118
  "aria-hidden": !0
3001
3119
  })]
3002
3120
  });
3003
3121
  }
3004
- function fi() {
3122
+ function Di() {
3005
3123
  return /* @__PURE__ */ q(ne, {
3006
3124
  className: "h-4 w-4 animate-spin text-fg-secondary",
3007
3125
  "aria-hidden": !0
3008
3126
  });
3009
3127
  }
3010
- function pi(e) {
3128
+ function Oi(e) {
3011
3129
  let { selectAllState: t, onSelectAllToggle: n, saveSelectionState: r, onSaveSelectionToggle: i } = e.selectProps;
3012
3130
  return /* @__PURE__ */ J(Ce.Menu, {
3013
3131
  ...e,
3014
- innerProps: ii(e.innerProps, ri(e.selectProps, "content")),
3132
+ innerProps: yi(e.innerProps, vi(e.selectProps, "content")),
3015
3133
  children: [
3016
3134
  t && /* @__PURE__ */ q("div", {
3017
- "data-test-id": ri(e.selectProps, "select-all"),
3135
+ "data-test-id": vi(e.selectProps, "select-all"),
3018
3136
  className: "border-b border-border-default px-3 py-2",
3019
3137
  onMouseDown: (e) => e.preventDefault(),
3020
3138
  onClick: (e) => {
@@ -3030,7 +3148,7 @@ function pi(e) {
3030
3148
  }),
3031
3149
  e.children,
3032
3150
  r && /* @__PURE__ */ q("div", {
3033
- "data-test-id": ri(e.selectProps, "save_template"),
3151
+ "data-test-id": vi(e.selectProps, "save_template"),
3034
3152
  role: "button",
3035
3153
  tabIndex: 0,
3036
3154
  "aria-pressed": r.checked,
@@ -3052,11 +3170,11 @@ function pi(e) {
3052
3170
  ]
3053
3171
  });
3054
3172
  }
3055
- function mi(t) {
3173
+ function ki(t) {
3056
3174
  let { children: n, innerRef: r, innerProps: i, maxHeight: a } = t, o = e.toArray(n), s = p(null), c = De({
3057
3175
  count: o.length,
3058
3176
  getScrollElement: () => s.current,
3059
- estimateSize: () => ni,
3177
+ estimateSize: () => _i,
3060
3178
  overscan: 8
3061
3179
  });
3062
3180
  return /* @__PURE__ */ q("div", {
@@ -3083,11 +3201,11 @@ function mi(t) {
3083
3201
  })
3084
3202
  });
3085
3203
  }
3086
- var hi = a(function(e, t) {
3087
- let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: d, value: h, defaultValue: g, onChange: _, placeholder: v, label: y, labelAddons: b, helperText: x, errorText: S, error: C = !1, required: w = !0, loading: T = !1, clearable: E = !1, searchable: D, virtualized: O = !1, emptyText: k, locale: A = "en-US", storageKey: j, saveSelectionLabel: M, size: ee = "md", disabled: te = !1, id: N, className: ne, wrapperClassName: P, dataTestId: F, ...I } = e, L = e.isMulti ? !!e.singleLine : !1, R = Hr[A], re = v ?? R.placeholder, ie = k ?? R.noResults, ae = c ?? ((e) => R.createLabel(e)), oe = u(), se = N ?? oe, ce = C || !!S, z = h !== void 0, [le, ue] = m(() => {
3204
+ var Ai = a(function(e, t) {
3205
+ let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: d, value: h, defaultValue: g, onChange: _, placeholder: v, label: y, labelAddons: b, helperText: x, errorText: S, error: C = !1, required: w = !0, loading: T = !1, clearable: E = !1, searchable: D, virtualized: O = !1, emptyText: k, locale: A = "en-US", storageKey: j, saveSelectionLabel: M, size: ee = "md", disabled: te = !1, id: N, className: ne, wrapperClassName: P, dataTestId: F, ...I } = e, L = e.isMulti ? !!e.singleLine : !1, R = ri[A], re = v ?? R.placeholder, ie = k ?? R.noResults, ae = c ?? ((e) => R.createLabel(e)), oe = u(), se = N ?? oe, ce = C || !!S, z = h !== void 0, [le, ue] = m(() => {
3088
3206
  if (!d) {
3089
3207
  if (j && !z) {
3090
- let e = Zr(j);
3208
+ let e = fi(j);
3091
3209
  if (e !== void 0) return e;
3092
3210
  }
3093
3211
  return g;
@@ -3095,11 +3213,11 @@ var hi = a(function(e, t) {
3095
3213
  }), [B, de] = m(() => {
3096
3214
  if (!d) return [];
3097
3215
  if (j && !z) {
3098
- let e = Zr(j);
3216
+ let e = fi(j);
3099
3217
  if (Array.isArray(e)) return e;
3100
3218
  }
3101
3219
  return g ?? [];
3102
- }), [fe, pe] = m(() => !!j && Qr(j)), [me, he] = m(() => {
3220
+ }), [fe, pe] = m(() => !!j && pi(j)), [me, he] = m(() => {
3103
3221
  let e = /* @__PURE__ */ new Map();
3104
3222
  for (let t of n) e.set(String(t.value), t);
3105
3223
  if (Array.isArray(i)) for (let t of i) e.set(String(t.value), t);
@@ -3155,15 +3273,15 @@ var hi = a(function(e, t) {
3155
3273
  V,
3156
3274
  _,
3157
3275
  o
3158
- ]), be = !!r, xe = D ?? (be || a ? !0 : n.length >= 10), Ce = be ? a ? Ee : we : a ? Te : Se, De = f(() => ti(ee, ce, L), [
3276
+ ]), be = !!r, xe = D ?? (be || a ? !0 : n.length >= 10), Ce = be ? a ? Ee : we : a ? Te : Se, De = f(() => gi(ee, ce, L), [
3159
3277
  ee,
3160
3278
  ce,
3161
3279
  L
3162
- ]), Oe = p(null), ke = p(null), Ae = p(null), je = !!d && L, Me = Vr({
3280
+ ]), Oe = p(null), ke = p(null), Ae = p(null), je = !!d && L, Me = ni({
3163
3281
  wrapperRef: Oe,
3164
3282
  measureRef: ke,
3165
3283
  total: K.length,
3166
- labelsKey: K.map(Yr).join("\0"),
3284
+ labelsKey: K.map(ui).join("\0"),
3167
3285
  enabled: je
3168
3286
  }), Ne = f(() => n.some((e) => !!e.description), [n]), Pe = f(() => {
3169
3287
  if (!n.some((e) => e.group)) return n;
@@ -3182,7 +3300,7 @@ var hi = a(function(e, t) {
3182
3300
  return t;
3183
3301
  }, [n]), Fe = !!d && !be, Ie = d ? G : W;
3184
3302
  l(() => {
3185
- !j || !fe || $r(j, Ie);
3303
+ !j || !fe || mi(j, Ie);
3186
3304
  }, [
3187
3305
  j,
3188
3306
  fe,
@@ -3191,7 +3309,7 @@ var hi = a(function(e, t) {
3191
3309
  let Le = s(() => {
3192
3310
  j && pe((e) => {
3193
3311
  let t = !e;
3194
- return t ? $r(j, Ie) : ei(j), t;
3312
+ return t ? mi(j, Ie) : hi(j), t;
3195
3313
  });
3196
3314
  }, [j, Ie]), Re = f(() => j ? {
3197
3315
  checked: fe,
@@ -3203,7 +3321,7 @@ var hi = a(function(e, t) {
3203
3321
  R
3204
3322
  ]), [ze, Be] = m(""), Ve = s((e) => {
3205
3323
  Be(e);
3206
- }, []), Y = f(() => Fe ? n.filter((e) => !e.disabled && Xr(e, ze)) : [], [
3324
+ }, []), Y = f(() => Fe ? n.filter((e) => !e.disabled && di(e, ze)) : [], [
3207
3325
  Fe,
3208
3326
  n,
3209
3327
  ze
@@ -3253,7 +3371,7 @@ var hi = a(function(e, t) {
3253
3371
  onCreateOption: a ? ye : void 0,
3254
3372
  formatCreateLabel: a ? ae : void 0,
3255
3373
  getOptionValue: (e) => String(e.value),
3256
- getOptionLabel: Yr,
3374
+ getOptionLabel: ui,
3257
3375
  formatOptionLabel: (e, t) => {
3258
3376
  if (t.context === "value") return e.label;
3259
3377
  let n = Ne && e.description ? /* @__PURE__ */ J("span", {
@@ -3272,7 +3390,7 @@ var hi = a(function(e, t) {
3272
3390
  className: "min-w-0 flex-1 truncate",
3273
3391
  children: n
3274
3392
  }), /* @__PURE__ */ q("span", {
3275
- "data-test-id": ri({ dataTestId: F }, `option-${String(e.value)}-actions`),
3393
+ "data-test-id": vi({ dataTestId: F }, `option-${String(e.value)}-actions`),
3276
3394
  className: "ml-auto inline-flex shrink-0 items-center",
3277
3395
  onMouseDown: (e) => {
3278
3396
  e.preventDefault(), e.stopPropagation();
@@ -3308,18 +3426,20 @@ var hi = a(function(e, t) {
3308
3426
  hideSelectedOptions: I.hideSelectedOptions ?? !1
3309
3427
  } : {},
3310
3428
  menuPlacement: I.menuPlacement ?? "auto",
3429
+ menuPortalTarget: I.menuPortalTarget ?? (typeof document < "u" ? document.body : void 0),
3430
+ menuPosition: I.menuPosition ?? "fixed",
3311
3431
  components: {
3312
- Control: ai,
3313
- Menu: pi,
3314
- ...xe ? { Input: oi } : {},
3315
- DropdownIndicator: si,
3316
- ClearIndicator: ci,
3317
- MultiValueRemove: li,
3318
- LoadingIndicator: fi,
3432
+ Control: bi,
3433
+ Menu: Oi,
3434
+ ...xe ? { Input: xi } : {},
3435
+ DropdownIndicator: Si,
3436
+ ClearIndicator: Ci,
3437
+ MultiValueRemove: wi,
3438
+ LoadingIndicator: Di,
3319
3439
  IndicatorSeparator: () => null,
3320
- ...O ? { MenuList: mi } : {},
3321
- ...je ? { MultiValue: ui } : {},
3322
- Option: di
3440
+ ...O ? { MenuList: ki } : {},
3441
+ ...je ? { MultiValue: Ti } : {},
3442
+ Option: Ei
3323
3443
  }
3324
3444
  };
3325
3445
  return /* @__PURE__ */ J("div", {
@@ -3361,7 +3481,7 @@ var hi = a(function(e, t) {
3361
3481
  className: "flex items-center gap-1 rounded-md bg-bg-subtle pl-2 pr-1 py-0.5 max-w-full",
3362
3482
  children: [/* @__PURE__ */ q("span", {
3363
3483
  className: "truncate text-p-sm text-fg-default",
3364
- children: Yr(e)
3484
+ children: ui(e)
3365
3485
  }), /* @__PURE__ */ q("span", {
3366
3486
  className: "rounded-sm text-fg-secondary hover:bg-bg-container hover:text-fg-default cursor-pointer",
3367
3487
  children: /* @__PURE__ */ q(U, {
@@ -3385,19 +3505,19 @@ var hi = a(function(e, t) {
3385
3505
  }) : null
3386
3506
  ]
3387
3507
  });
3388
- }), gi = r(null);
3389
- function _i() {
3390
- return c(gi) ?? {
3508
+ }), ji = r(null);
3509
+ function Mi() {
3510
+ return c(ji) ?? {
3391
3511
  collapsed: !1,
3392
3512
  toggle: () => {}
3393
3513
  };
3394
3514
  }
3395
- var vi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, children: r, className: i, logo: a, title: o, subtitle: s, dataTestId: c, ...l }, u) {
3515
+ var Ni = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, children: r, className: i, logo: a, title: o, subtitle: s, dataTestId: c, ...l }, u) {
3396
3516
  let [d, f] = m(e), p = t !== void 0, h = p ? t : d, g = () => {
3397
3517
  let e = !h;
3398
3518
  p || f(e), n?.(e);
3399
3519
  };
3400
- return /* @__PURE__ */ q(gi.Provider, {
3520
+ return /* @__PURE__ */ q(ji.Provider, {
3401
3521
  value: {
3402
3522
  collapsed: h,
3403
3523
  toggle: g
@@ -3438,8 +3558,8 @@ var vi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3438
3558
  })]
3439
3559
  })
3440
3560
  });
3441
- }), yi = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3442
- let { collapsed: d } = _i(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ J(K, { children: [e && /* @__PURE__ */ q("span", {
3561
+ }), Pi = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3562
+ let { collapsed: d } = Mi(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ J(K, { children: [e && /* @__PURE__ */ q("span", {
3443
3563
  className: "inline-flex shrink-0",
3444
3564
  children: e
3445
3565
  }), !d && /* @__PURE__ */ J(K, { children: [
@@ -3478,12 +3598,12 @@ var vi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3478
3598
  className: "flex flex-col gap-0.5 pl-8",
3479
3599
  children: i
3480
3600
  })] });
3481
- }), bi = {
3601
+ }), Fi = {
3482
3602
  text: "h-[1em] mb-[0.4em] origin-[0%_55%] scale-y-[0.6] rounded-sm",
3483
3603
  circular: "size-10 rounded-full",
3484
3604
  rectangular: "h-4 w-full",
3485
3605
  rounded: "h-4 w-full rounded-md"
3486
- }, xi = {
3606
+ }, Ii = {
3487
3607
  pulse: "animate-pulse",
3488
3608
  wave: [
3489
3609
  "relative overflow-hidden",
@@ -3493,15 +3613,15 @@ var vi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3493
3613
  ].join(" "),
3494
3614
  none: ""
3495
3615
  };
3496
- function Si(e) {
3616
+ function Li(e) {
3497
3617
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
3498
3618
  }
3499
- var Ci = a(function({ variant: e = "text", animation: t = "pulse", width: n, height: r, count: i = 1, children: a, style: o, className: s, dataTestId: c, ...l }, u) {
3619
+ var Ri = a(function({ variant: e = "text", animation: t = "pulse", width: n, height: r, count: i = 1, children: a, style: o, className: s, dataTestId: c, ...l }, u) {
3500
3620
  let d = a != null, f = Math.max(1, i), p = {
3501
- ...n === void 0 ? null : { width: Si(n) },
3502
- ...r === void 0 ? null : { height: Si(r) },
3621
+ ...n === void 0 ? null : { width: Li(n) },
3622
+ ...r === void 0 ? null : { height: Li(r) },
3503
3623
  ...o
3504
- }, m = Q("block bg-bg-subtle leading-none", bi[e], xi[t]);
3624
+ }, m = Q("block bg-bg-subtle leading-none", Fi[e], Ii[t]);
3505
3625
  return d ? /* @__PURE__ */ q("span", {
3506
3626
  ref: u,
3507
3627
  "data-test-id": c,
@@ -3534,7 +3654,7 @@ var Ci = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3534
3654
  "aria-label": t === 0 ? "Loading" : void 0
3535
3655
  }, t))
3536
3656
  });
3537
- }), wi = {
3657
+ }), zi = {
3538
3658
  success: {
3539
3659
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3540
3660
  icon: x
@@ -3555,26 +3675,26 @@ var Ci = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3555
3675
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3556
3676
  icon: N
3557
3677
  }
3558
- }, Ti = {
3678
+ }, Bi = {
3559
3679
  success: "text-green-400",
3560
3680
  warning: "text-yellow-300",
3561
3681
  danger: "text-red-400",
3562
3682
  info: "text-blue-400",
3563
3683
  neutral: "text-white/70"
3564
- }, Ei = {
3684
+ }, Vi = {
3565
3685
  "top-left": "top-6 left-4",
3566
3686
  "top-center": "top-6 left-1/2 -translate-x-1/2",
3567
3687
  "top-right": "top-6 right-4",
3568
3688
  "bottom-left": "bottom-6 left-4",
3569
3689
  "bottom-center": "bottom-6 left-1/2 -translate-x-1/2",
3570
3690
  "bottom-right": "bottom-6 right-4"
3571
- }, Di = r(null);
3572
- function Oi() {
3573
- let e = c(Di);
3691
+ }, Hi = r(null);
3692
+ function Ui() {
3693
+ let e = c(Hi);
3574
3694
  if (!e) throw Error("useSnackbar must be used inside <SnackbarProvider>");
3575
3695
  return e;
3576
3696
  }
3577
- function ki({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3697
+ function Wi({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3578
3698
  let [r, i] = m([]), a = p(/* @__PURE__ */ new Map()), o = s((e) => {
3579
3699
  i((t) => t.filter((t) => t.id !== e));
3580
3700
  let t = a.current.get(e);
@@ -3597,25 +3717,25 @@ function ki({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3597
3717
  return () => {
3598
3718
  e.forEach(clearTimeout), e.clear();
3599
3719
  };
3600
- }, []), /* @__PURE__ */ J(Di.Provider, {
3720
+ }, []), /* @__PURE__ */ J(Hi.Provider, {
3601
3721
  value: {
3602
3722
  show: c,
3603
3723
  dismiss: o
3604
3724
  },
3605
- children: [e, _e(/* @__PURE__ */ q(K, { children: Object.keys(Ei).map((e) => {
3725
+ children: [e, _e(/* @__PURE__ */ q(K, { children: Object.keys(Vi).map((e) => {
3606
3726
  let i = r.filter((t) => (t.position ?? n) === e);
3607
3727
  return i.length === 0 ? null : /* @__PURE__ */ q("div", {
3608
3728
  "data-test-id": t,
3609
- className: Q("fixed z-100 flex flex-col gap-2 w-[min(400px,calc(100vw-2rem))] pointer-events-none", Ei[e]),
3729
+ className: Q("fixed z-100 flex flex-col gap-2 w-[min(400px,calc(100vw-2rem))] pointer-events-none", Vi[e]),
3610
3730
  children: i.map((e) => {
3611
- let { container: t, icon: n } = wi[e.variant ?? "neutral"];
3731
+ let { container: t, icon: n } = zi[e.variant ?? "neutral"];
3612
3732
  return /* @__PURE__ */ J("div", {
3613
3733
  role: "status",
3614
3734
  "data-test-id": e.dataTestId,
3615
3735
  className: Q("pointer-events-auto flex items-center gap-3 px-4 py-3 rounded-lg shadow-z4", t),
3616
3736
  children: [
3617
3737
  /* @__PURE__ */ q(n, {
3618
- className: Q("h-5 w-5 shrink-0", Ti[e.variant ?? "neutral"]),
3738
+ className: Q("h-5 w-5 shrink-0", Bi[e.variant ?? "neutral"]),
3619
3739
  "aria-hidden": !0
3620
3740
  }),
3621
3741
  /* @__PURE__ */ q("p", {
@@ -3646,15 +3766,15 @@ function ki({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3646
3766
  }
3647
3767
  //#endregion
3648
3768
  //#region src/components/Status/Status.tsx
3649
- var Ai = {
3769
+ var Gi = {
3650
3770
  lg: "h-7 px-2.5 text-p-std gap-1.5",
3651
3771
  md: "h-6 px-2 text-p-sm gap-1.5",
3652
3772
  sm: "h-5 px-1.5 text-p-sm gap-1"
3653
- }, ji = {
3773
+ }, Ki = {
3654
3774
  lg: "h-2 w-2",
3655
3775
  md: "h-1.5 w-1.5",
3656
3776
  sm: "h-1.5 w-1.5"
3657
- }, Mi = {
3777
+ }, qi = {
3658
3778
  general: {
3659
3779
  container: "bg-bg-subtle text-fg-default dark:text-fg-default",
3660
3780
  dot: "bg-gray-600 dark:bg-gray-400"
@@ -3687,19 +3807,19 @@ var Ai = {
3687
3807
  container: "bg-bg-subtle text-fg-disabled",
3688
3808
  dot: "bg-border-strong"
3689
3809
  }
3690
- }, Ni = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3691
- let { container: u, dot: d } = Mi[e];
3810
+ }, Ji = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3811
+ let { container: u, dot: d } = qi[e];
3692
3812
  return /* @__PURE__ */ J("span", {
3693
3813
  ref: l,
3694
3814
  "data-test-id": s,
3695
- className: Q("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", Ai[t], u, a),
3815
+ className: Q("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", Gi[t], u, a),
3696
3816
  ...c,
3697
3817
  children: [
3698
3818
  n ? /* @__PURE__ */ q("span", {
3699
3819
  className: "inline-flex shrink-0",
3700
3820
  children: n
3701
3821
  }) : i ? /* @__PURE__ */ q("span", {
3702
- className: Q("inline-block shrink-0 rounded-full", ji[t], d),
3822
+ className: Q("inline-block shrink-0 rounded-full", Ki[t], d),
3703
3823
  "aria-hidden": !0
3704
3824
  }) : null,
3705
3825
  o,
@@ -3709,45 +3829,45 @@ var Ai = {
3709
3829
  })
3710
3830
  ]
3711
3831
  });
3712
- }), Pi = {
3832
+ }), Yi = {
3713
3833
  lg: "size-9",
3714
3834
  sm: "size-6"
3715
- }, Fi = {
3835
+ }, Xi = {
3716
3836
  lg: "h-9",
3717
3837
  sm: "h-6"
3718
- }, Ii = {
3838
+ }, Zi = {
3719
3839
  lg: "border-2",
3720
3840
  sm: "border"
3721
- }, Li = {
3841
+ }, Qi = {
3722
3842
  lg: "text-p-std",
3723
3843
  sm: "text-p-xs"
3724
- }, Ri = {
3844
+ }, $i = {
3725
3845
  lg: "size-5",
3726
3846
  sm: "size-3.5"
3727
- }, zi = {
3847
+ }, ea = {
3728
3848
  lg: "size-3",
3729
3849
  sm: "size-2"
3730
- }, Bi = {
3850
+ }, ta = {
3731
3851
  lg: "text-p-std",
3732
3852
  sm: "text-p-sm"
3733
- }, Vi = {
3853
+ }, na = {
3734
3854
  lg: "text-p-sm",
3735
3855
  sm: "text-p-xs"
3736
- }, Hi = {
3856
+ }, ra = {
3737
3857
  upcoming: "bg-bg-default border-border-strong text-fg-tertiary",
3738
3858
  active: "bg-bg-default border-brand-500 text-brand-700",
3739
3859
  completed: "bg-brand-500 border-brand-500 text-fg-inverse",
3740
3860
  rejected: "bg-red-700 border-red-800 text-fg-inverse"
3741
- }, Ui = {
3861
+ }, ia = {
3742
3862
  upcoming: "ring-4 ring-gray-100/80",
3743
3863
  active: "ring-4 ring-brand-40/80",
3744
3864
  completed: "ring-4 ring-brand-40/80",
3745
3865
  rejected: "ring-4 ring-red-100/80"
3746
3866
  };
3747
- function Wi(e, t, n, r) {
3748
- return t === "completed" ? /* @__PURE__ */ q(E, { className: Ri[r] }) : t === "rejected" ? /* @__PURE__ */ q(D, { className: Ri[r] }) : e === "number" ? n + 1 : e === "dot" ? /* @__PURE__ */ q("span", { className: Q("rounded-full", zi[r], t === "active" ? "bg-brand-500" : "bg-transparent") }) : null;
3867
+ function aa(e, t, n, r) {
3868
+ return t === "completed" ? /* @__PURE__ */ q(E, { className: $i[r] }) : t === "rejected" ? /* @__PURE__ */ q(D, { className: $i[r] }) : e === "number" ? n + 1 : e === "dot" ? /* @__PURE__ */ q("span", { className: Q("rounded-full", ea[r], t === "active" ? "bg-brand-500" : "bg-transparent") }) : null;
3749
3869
  }
3750
- var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "number", orientation: i = "horizontal", size: a = "lg", className: o, dataTestId: s, ...c }, l) {
3870
+ var oa = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "number", orientation: i = "horizontal", size: a = "lg", className: o, dataTestId: s, ...c }, l) {
3751
3871
  let u = i === "vertical", d = (e) => (e?.status ?? "upcoming") === "completed";
3752
3872
  return /* @__PURE__ */ q("ol", {
3753
3873
  ref: l,
@@ -3756,15 +3876,15 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3756
3876
  ...c,
3757
3877
  children: e.map((i, o) => {
3758
3878
  let s = i.status ?? "upcoming", c = o === 0, l = o === e.length - 1, f = !c && d(e[o - 1]), p = !l && d(i), m = /* @__PURE__ */ q("span", {
3759
- className: Q("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full font-semibold transition-colors", Pi[a], Ii[a], Li[a], Hi[s], i.highlighted && Ui[s]),
3760
- children: Wi(r, s, o, a)
3879
+ className: Q("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full font-semibold transition-colors", Yi[a], Zi[a], Qi[a], ra[s], i.highlighted && ia[s]),
3880
+ children: aa(r, s, o, a)
3761
3881
  }), h = /* @__PURE__ */ J("div", {
3762
3882
  className: Q("flex flex-col", u ? "gap-0.5 pb-6" : "mt-2 items-center gap-0.5 text-center"),
3763
3883
  children: [/* @__PURE__ */ q("span", {
3764
- className: Q("font-medium text-fg-default", Bi[a]),
3884
+ className: Q("font-medium text-fg-default", ta[a]),
3765
3885
  children: i.label
3766
3886
  }), i.description && /* @__PURE__ */ q("span", {
3767
- className: Q("text-fg-secondary", Vi[a]),
3887
+ className: Q("text-fg-secondary", na[a]),
3768
3888
  children: i.description
3769
3889
  })]
3770
3890
  });
@@ -3772,7 +3892,7 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3772
3892
  "aria-current": Ye(i.value, t) ? "step" : void 0,
3773
3893
  className: Q("relative flex", u ? "flex-row gap-3" : "flex-1 basis-0 min-w-0 flex-col"),
3774
3894
  children: [/* @__PURE__ */ J("div", {
3775
- className: Q("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Q("w-full items-center justify-center", Fi[a])),
3895
+ className: Q("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Q("w-full items-center justify-center", Xi[a])),
3776
3896
  children: [
3777
3897
  !c && /* @__PURE__ */ q("span", {
3778
3898
  "aria-hidden": !0,
@@ -3794,13 +3914,13 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3794
3914
  }, String(i.value));
3795
3915
  })
3796
3916
  });
3797
- }), Ki = {
3917
+ }), sa = {
3798
3918
  md: "h-6 w-11",
3799
3919
  sm: "h-5 w-9"
3800
- }, qi = {
3920
+ }, ca = {
3801
3921
  md: "h-5 w-5 peer-checked:translate-x-5",
3802
3922
  sm: "h-4 w-4 peer-checked:translate-x-4"
3803
- }, Ji = a(function({ size: e = "md", label: t, description: n, labelPosition: r = "right", id: i, disabled: a, checked: o, defaultChecked: s, className: c, dataTestId: l, ...d }, f) {
3923
+ }, la = a(function({ size: e = "md", label: t, description: n, labelPosition: r = "right", id: i, disabled: a, checked: o, defaultChecked: s, className: c, dataTestId: l, ...d }, f) {
3804
3924
  let p = u(), m = i ?? p, h = /* @__PURE__ */ J("span", {
3805
3925
  className: "relative inline-flex shrink-0",
3806
3926
  children: [
@@ -3815,8 +3935,8 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3815
3935
  className: "peer sr-only",
3816
3936
  ...d
3817
3937
  }),
3818
- /* @__PURE__ */ q("span", { className: Q("rounded-full bg-gray-300 dark:bg-gray-700 transition-colors", Ki[e], "peer-checked:bg-brand-500 dark:peer-checked:bg-brand-500", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-2", a && "!bg-bg-subtle") }),
3819
- /* @__PURE__ */ q("span", { className: Q("absolute top-0.5 left-0.5 rounded-full bg-white dark:bg-white shadow-z1 transition-transform", qi[e]) })
3938
+ /* @__PURE__ */ q("span", { className: Q("rounded-full bg-gray-300 dark:bg-gray-700 transition-colors", sa[e], "peer-checked:bg-brand-500 dark:peer-checked:bg-brand-500", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-2", a && "!bg-bg-subtle") }),
3939
+ /* @__PURE__ */ q("span", { className: Q("absolute top-0.5 left-0.5 rounded-full bg-white dark:bg-white shadow-z1 transition-transform", ca[e]) })
3820
3940
  ]
3821
3941
  });
3822
3942
  return !t && !n ? /* @__PURE__ */ q("label", {
@@ -3842,11 +3962,11 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3842
3962
  });
3843
3963
  //#endregion
3844
3964
  //#region src/components/TableV2/TableV2Filter.tsx
3845
- function Yi({ column: e }) {
3965
+ function ua({ column: e }) {
3846
3966
  let t = e.columnDef.meta?.filterVariant;
3847
3967
  if (!t) return null;
3848
3968
  let n = e.getFilterValue();
3849
- return t === "custom" ? /* @__PURE__ */ q(K, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ q(hi, {
3969
+ return t === "custom" ? /* @__PURE__ */ q(K, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ q(Ai, {
3850
3970
  size: "sm",
3851
3971
  searchable: !1,
3852
3972
  required: !1,
@@ -3865,7 +3985,7 @@ function Yi({ column: e }) {
3865
3985
  }
3866
3986
  //#endregion
3867
3987
  //#region src/components/TableV2/TableV2Pagination.i18n.ts
3868
- var Xi = {
3988
+ var da = {
3869
3989
  "en-US": {
3870
3990
  rowsPerPage: "Rows per page",
3871
3991
  noResults: "No results",
@@ -3884,12 +4004,12 @@ var Xi = {
3884
4004
  };
3885
4005
  //#endregion
3886
4006
  //#region src/components/TableV2/TableV2Pagination.tsx
3887
- function Zi({ table: e, pageSizeOptions: t = [
4007
+ function fa({ table: e, pageSizeOptions: t = [
3888
4008
  10,
3889
4009
  20,
3890
4010
  30
3891
4011
  ], locale: n = "en-US", dataTestId: r }) {
3892
- let { pageIndex: i, pageSize: a } = e.getState().pagination, o = e.options.rowCount ?? e.getPrePaginationRowModel().rows.length, s = Math.max(1, e.getPageCount()), c = o === 0 ? 0 : i * a + 1, l = Math.min(o, (i + 1) * a), u = Xi[n], d = We(r);
4012
+ let { pageIndex: i, pageSize: a } = e.getState().pagination, o = e.options.rowCount ?? e.getPrePaginationRowModel().rows.length, s = Math.max(1, e.getPageCount()), c = o === 0 ? 0 : i * a + 1, l = Math.min(o, (i + 1) * a), u = da[n], d = We(r);
3893
4013
  return /* @__PURE__ */ J("div", {
3894
4014
  className: "flex flex-wrap items-center justify-between gap-3 p-3 border-t border-border-default",
3895
4015
  children: [
@@ -3898,7 +4018,7 @@ function Zi({ table: e, pageSizeOptions: t = [
3898
4018
  children: [/* @__PURE__ */ q("span", {
3899
4019
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3900
4020
  children: u.rowsPerPage
3901
- }), /* @__PURE__ */ q(hi, {
4021
+ }), /* @__PURE__ */ q(Ai, {
3902
4022
  size: "sm",
3903
4023
  menuPlacement: "top",
3904
4024
  searchable: !1,
@@ -3919,7 +4039,7 @@ function Zi({ table: e, pageSizeOptions: t = [
3919
4039
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3920
4040
  children: o === 0 ? u.noResults : u.rangeSummary(c, l, o)
3921
4041
  }),
3922
- /* @__PURE__ */ q(Er, {
4042
+ /* @__PURE__ */ q(Vr, {
3923
4043
  page: i + 1,
3924
4044
  pageCount: s,
3925
4045
  onPageChange: (t) => e.setPageIndex(t - 1),
@@ -3930,14 +4050,14 @@ function Zi({ table: e, pageSizeOptions: t = [
3930
4050
  }
3931
4051
  //#endregion
3932
4052
  //#region src/components/TableV2/TableV2Skeleton.tsx
3933
- function Qi({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
4053
+ function pa({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
3934
4054
  let r = We(n);
3935
4055
  return /* @__PURE__ */ q(K, { children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ q("tr", {
3936
4056
  "data-test-id": r(`skeleton-row-${n}`),
3937
4057
  "aria-hidden": n > 0 || void 0,
3938
4058
  children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ q("td", {
3939
4059
  className: "px-4 py-3",
3940
- children: /* @__PURE__ */ q(Ci, {
4060
+ children: /* @__PURE__ */ q(Ri, {
3941
4061
  variant: "text",
3942
4062
  width: t === 0 ? "70%" : "90%"
3943
4063
  })
@@ -3946,24 +4066,24 @@ function Qi({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
3946
4066
  }
3947
4067
  //#endregion
3948
4068
  //#region src/components/TableV2/TableV2ColumnVisibility.tsx
3949
- function $i(e) {
4069
+ function ma(e) {
3950
4070
  let { header: t } = e.columnDef;
3951
4071
  return typeof t == "string" ? t : e.id;
3952
4072
  }
3953
- function ea({ table: e }) {
4073
+ function ha({ table: e }) {
3954
4074
  let t = e.getAllLeafColumns().filter((e) => e.getCanHide());
3955
- return /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q(ot, {
4075
+ return /* @__PURE__ */ J(fr, { children: [/* @__PURE__ */ q(pr, { children: /* @__PURE__ */ q(ot, {
3956
4076
  variant: "secondary",
3957
4077
  size: "sm",
3958
4078
  leftIcon: /* @__PURE__ */ q(O, { className: "h-4 w-4" }),
3959
4079
  children: "Columns"
3960
- }) }), /* @__PURE__ */ q($n, {
4080
+ }) }), /* @__PURE__ */ q(hr, {
3961
4081
  align: "end",
3962
4082
  children: t.map((e) => /* @__PURE__ */ q("div", {
3963
4083
  className: "px-3 py-1.5 hover:bg-bg-subtle",
3964
4084
  children: /* @__PURE__ */ q(Wt, {
3965
4085
  size: "sm",
3966
- label: $i(e),
4086
+ label: ma(e),
3967
4087
  checked: e.getIsVisible(),
3968
4088
  onChange: () => e.toggleVisibility()
3969
4089
  })
@@ -3972,7 +4092,7 @@ function ea({ table: e }) {
3972
4092
  }
3973
4093
  //#endregion
3974
4094
  //#region src/components/TableV2/TableV2Toolbar.tsx
3975
- function ta({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
4095
+ function ga({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
3976
4096
  return /* @__PURE__ */ J("div", {
3977
4097
  className: "flex flex-wrap items-center gap-2 p-3 border-b border-border-default",
3978
4098
  children: [t && /* @__PURE__ */ q(nn, {
@@ -4001,7 +4121,7 @@ function ta({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
4001
4121
  onClick: a,
4002
4122
  children: "Export"
4003
4123
  }),
4004
- n && /* @__PURE__ */ q(ea, { table: e }),
4124
+ n && /* @__PURE__ */ q(ha, { table: e }),
4005
4125
  o
4006
4126
  ]
4007
4127
  })]
@@ -4009,15 +4129,15 @@ function ta({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
4009
4129
  }
4010
4130
  //#endregion
4011
4131
  //#region src/components/TableV2/useTableV2ColumnDnd.ts
4012
- var na = ({ transform: e }) => ({
4132
+ var _a = ({ transform: e }) => ({
4013
4133
  ...e,
4014
4134
  y: 0
4015
4135
  });
4016
- function ra({ columnOrder: e, onColumnOrderChange: t }) {
4136
+ function va({ columnOrder: e, onColumnOrderChange: t }) {
4017
4137
  return {
4018
4138
  sensors: ze(Re(Ie, { activationConstraint: { distance: 4 } }), Re(Fe, { coordinateGetter: X })),
4019
4139
  collisionDetection: Le,
4020
- modifiers: [na],
4140
+ modifiers: [_a],
4021
4141
  handleDragEnd: (n) => {
4022
4142
  let { active: r, over: i } = n;
4023
4143
  if (!i || r.id === i.id) return;
@@ -4026,7 +4146,7 @@ function ra({ columnOrder: e, onColumnOrderChange: t }) {
4026
4146
  }
4027
4147
  };
4028
4148
  }
4029
- function ia(e) {
4149
+ function ya(e) {
4030
4150
  let { attributes: t, listeners: n, setNodeRef: r, transform: i, transition: a, isDragging: o } = Z({ id: e });
4031
4151
  return {
4032
4152
  setNodeRef: r,
@@ -4044,16 +4164,16 @@ function ia(e) {
4044
4164
  }
4045
4165
  //#endregion
4046
4166
  //#region src/components/TableV2/TableV2RowActions.tsx
4047
- function aa({ row: e, actions: t }) {
4048
- return t.length === 0 ? null : /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q(ot, {
4167
+ function ba({ row: e, actions: t }) {
4168
+ return t.length === 0 ? null : /* @__PURE__ */ J(fr, { children: [/* @__PURE__ */ q(pr, { children: /* @__PURE__ */ q(ot, {
4049
4169
  variant: "tertiary",
4050
4170
  size: "sm",
4051
4171
  iconOnly: !0,
4052
4172
  "aria-label": "Row actions",
4053
4173
  leftIcon: /* @__PURE__ */ q(re, { className: "h-4 w-4" })
4054
- }) }), /* @__PURE__ */ q($n, {
4174
+ }) }), /* @__PURE__ */ q(hr, {
4055
4175
  align: "end",
4056
- children: t.map((t, n) => /* @__PURE__ */ q(er, {
4176
+ children: t.map((t, n) => /* @__PURE__ */ q(gr, {
4057
4177
  icon: t.icon,
4058
4178
  destructive: t.destructive,
4059
4179
  disabled: t.disabled?.(e),
@@ -4064,15 +4184,15 @@ function aa({ row: e, actions: t }) {
4064
4184
  }
4065
4185
  //#endregion
4066
4186
  //#region src/components/TableV2/TableV2.utils.tsx
4067
- var oa = {
4187
+ var xa = {
4068
4188
  comfortable: "py-3",
4069
4189
  compact: "py-2"
4070
- }, sa = {
4190
+ }, Sa = {
4071
4191
  left: "text-left",
4072
4192
  center: "text-center",
4073
4193
  right: "text-right"
4074
4194
  };
4075
- function ca() {
4195
+ function Ca() {
4076
4196
  return {
4077
4197
  id: "select",
4078
4198
  size: 40,
@@ -4097,7 +4217,7 @@ function ca() {
4097
4217
  })
4098
4218
  };
4099
4219
  }
4100
- function la(e, t) {
4220
+ function wa(e, t) {
4101
4221
  return {
4102
4222
  id: "actions",
4103
4223
  header: t?.header ?? "",
@@ -4105,13 +4225,13 @@ function la(e, t) {
4105
4225
  enableSorting: !1,
4106
4226
  enableColumnFilter: !1,
4107
4227
  enableResizing: !1,
4108
- cell: ({ row: t }) => /* @__PURE__ */ q(aa, {
4228
+ cell: ({ row: t }) => /* @__PURE__ */ q(ba, {
4109
4229
  row: t.original,
4110
4230
  actions: e(t.original)
4111
4231
  })
4112
4232
  };
4113
4233
  }
4114
- function ua(e) {
4234
+ function Ta(e) {
4115
4235
  let t = e.getIsPinned();
4116
4236
  return t ? {
4117
4237
  position: "sticky",
@@ -4122,26 +4242,26 @@ function ua(e) {
4122
4242
  }
4123
4243
  //#endregion
4124
4244
  //#region src/components/TableV2/TableV2.tsx
4125
- function da(e, t, n) {
4245
+ function Ea(e, t, n) {
4126
4246
  let [r, i] = m(n);
4127
4247
  return [e === void 0 ? r : e, (e) => {
4128
4248
  i((t) => typeof e == "function" ? e(t) : e), t?.(e);
4129
4249
  }];
4130
4250
  }
4131
- var fa = /* @__PURE__ */ new Set(["select", "actions"]);
4132
- function pa({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
4133
- let c = e.column, l = fa.has(c.id), u = i && !l, d = ia(c.id), f = c.columnDef.meta?.align ?? "left", p = c.getIsSorted(), m = !l && (o && c.getCanPin() || s && c.getCanHide()), h = Oe(c.columnDef.header, e.getContext());
4251
+ var Da = /* @__PURE__ */ new Set(["select", "actions"]);
4252
+ function Oa({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
4253
+ let c = e.column, l = Da.has(c.id), u = i && !l, d = ya(c.id), f = c.columnDef.meta?.align ?? "left", p = c.getIsSorted(), m = !l && (o && c.getCanPin() || s && c.getCanHide()), h = Oe(c.columnDef.header, e.getContext());
4134
4254
  return /* @__PURE__ */ J("th", {
4135
4255
  ref: u ? d.setNodeRef : void 0,
4136
4256
  colSpan: e.colSpan,
4137
4257
  scope: "col",
4138
4258
  style: {
4139
4259
  width: a ? e.getSize() : void 0,
4140
- ...ua(c),
4260
+ ...Ta(c),
4141
4261
  ...u ? d.style : null
4142
4262
  },
4143
4263
  "aria-sort": p === "asc" ? "ascending" : p === "desc" ? "descending" : void 0,
4144
- className: Q("relative px-4 whitespace-nowrap bg-bg-container", oa[t], sa[f]),
4264
+ className: Q("relative px-4 whitespace-nowrap bg-bg-container", xa[t], Sa[f]),
4145
4265
  children: [
4146
4266
  /* @__PURE__ */ J("div", {
4147
4267
  className: "flex items-center gap-1",
@@ -4169,33 +4289,33 @@ function pa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4169
4289
  className: "truncate",
4170
4290
  children: h
4171
4291
  }),
4172
- m && /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q("button", {
4292
+ m && /* @__PURE__ */ J(fr, { children: [/* @__PURE__ */ q(pr, { children: /* @__PURE__ */ q("button", {
4173
4293
  type: "button",
4174
4294
  "aria-label": `${typeof h == "string" ? h : c.id} column options`,
4175
4295
  className: "ml-auto shrink-0 text-fg-tertiary hover:text-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 rounded-sm",
4176
4296
  children: /* @__PURE__ */ q(R, { className: "h-3.5 w-3.5" })
4177
- }) }), /* @__PURE__ */ J($n, {
4297
+ }) }), /* @__PURE__ */ J(hr, {
4178
4298
  align: "start",
4179
4299
  children: [
4180
4300
  o && c.getCanPin() && /* @__PURE__ */ J(K, { children: [
4181
- c.getIsPinned() !== "left" && /* @__PURE__ */ q(er, {
4301
+ c.getIsPinned() !== "left" && /* @__PURE__ */ q(gr, {
4182
4302
  icon: /* @__PURE__ */ q(oe, { className: "h-4 w-4" }),
4183
4303
  onSelect: () => c.pin("left"),
4184
4304
  children: "Pin left"
4185
4305
  }),
4186
- c.getIsPinned() !== "right" && /* @__PURE__ */ q(er, {
4306
+ c.getIsPinned() !== "right" && /* @__PURE__ */ q(gr, {
4187
4307
  icon: /* @__PURE__ */ q(oe, { className: "h-4 w-4" }),
4188
4308
  onSelect: () => c.pin("right"),
4189
4309
  children: "Pin right"
4190
4310
  }),
4191
- c.getIsPinned() && /* @__PURE__ */ q(er, {
4311
+ c.getIsPinned() && /* @__PURE__ */ q(gr, {
4192
4312
  icon: /* @__PURE__ */ q(se, { className: "h-4 w-4" }),
4193
4313
  onSelect: () => c.pin(!1),
4194
4314
  children: "Unpin"
4195
4315
  })
4196
4316
  ] }),
4197
- o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ q(tr, {}),
4198
- s && c.getCanHide() && /* @__PURE__ */ q(er, {
4317
+ o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ q(_r, {}),
4318
+ s && c.getCanHide() && /* @__PURE__ */ q(gr, {
4199
4319
  icon: /* @__PURE__ */ q(M, { className: "h-4 w-4" }),
4200
4320
  onSelect: () => c.toggleVisibility(!1),
4201
4321
  children: "Hide column"
@@ -4207,7 +4327,7 @@ function pa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4207
4327
  r && c.getCanFilter() && /* @__PURE__ */ q("div", {
4208
4328
  className: "mt-2 normal-case",
4209
4329
  onClick: (e) => e.stopPropagation(),
4210
- children: /* @__PURE__ */ q(Yi, { column: c })
4330
+ children: /* @__PURE__ */ q(ua, { column: c })
4211
4331
  }),
4212
4332
  a && c.getCanResize() && /* @__PURE__ */ q("div", {
4213
4333
  onMouseDown: e.getResizeHandler(),
@@ -4218,8 +4338,8 @@ function pa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4218
4338
  ]
4219
4339
  });
4220
4340
  }
4221
- function ma({ row: e, onRowClick: t }) {
4222
- let n = e.getVisibleCells(), r = n.find((e) => !fa.has(e.column.id)), i = n.find((e) => e.column.id === "select"), a = n.find((e) => e.column.id === "actions"), o = n.filter((e) => e !== r && !fa.has(e.column.id));
4341
+ function ka({ row: e, onRowClick: t }) {
4342
+ let n = e.getVisibleCells(), r = n.find((e) => !Da.has(e.column.id)), i = n.find((e) => e.column.id === "select"), a = n.find((e) => e.column.id === "actions"), o = n.filter((e) => e !== r && !Da.has(e.column.id));
4223
4343
  return /* @__PURE__ */ J("div", {
4224
4344
  "data-selected": e.getIsSelected() || void 0,
4225
4345
  onClick: t ? () => t(e.original) : void 0,
@@ -4254,26 +4374,26 @@ function ma({ row: e, onRowClick: t }) {
4254
4374
  })]
4255
4375
  });
4256
4376
  }
4257
- function ha({ rowCount: e }) {
4377
+ function Aa({ rowCount: e }) {
4258
4378
  return /* @__PURE__ */ q("div", { children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ J("div", {
4259
4379
  "aria-hidden": t > 0 || void 0,
4260
4380
  className: "flex flex-col gap-2 border-b border-border-default p-4",
4261
- children: [/* @__PURE__ */ q(Ci, {
4381
+ children: [/* @__PURE__ */ q(Ri, {
4262
4382
  variant: "text",
4263
4383
  width: "60%"
4264
- }), /* @__PURE__ */ q(Ci, {
4384
+ }), /* @__PURE__ */ q(Ri, {
4265
4385
  variant: "text",
4266
4386
  width: "90%"
4267
4387
  })]
4268
4388
  }, t)) });
4269
4389
  }
4270
- function ga(e, t) {
4271
- let { data: n, columns: r, loading: i = !1, error: a, emptyMessage: o = "No results", getRowId: s, enableSorting: c = !1, enableMultiSort: l = !1, sorting: u, onSortingChange: h, manualSorting: g = !1, enableFiltering: _ = !1, columnFilters: v, onColumnFiltersChange: y, manualFiltering: b = !1, enableGlobalFilter: x = !1, globalFilter: S, onGlobalFilterChange: C, enableRowSelection: w = !1, enableMultiRowSelection: T = !0, rowSelection: E, onRowSelectionChange: D, enableColumnVisibility: O = !1, columnVisibility: k, onColumnVisibilityChange: A, enableColumnOrdering: j = !1, columnOrder: M, onColumnOrderChange: ee, enablePinning: te = !1, columnPinning: N, onColumnPinningChange: ne, enableColumnResizing: P = !1, columnResizeMode: F = "onChange", enablePagination: I = !1, pageSize: L = 10, pageSizeOptions: R, pagination: re, onPaginationChange: ie, locale: ae = "en-US", manualPagination: oe = !1, pageCount: se, rowCount: ce, enableVirtualization: z = !1, estimatedRowHeight: le = 44, maxBodyHeight: ue = 480, onRowClick: B, toolbar: de = !1, toolbarActions: fe, searchPlaceholder: pe, onRefresh: me, onExport: he, density: V = "comfortable", stickyHeader: H = !1, fillHeight: U = !1, wrapperClassName: W, className: G, dataTestId: ge } = e, [_e, ve] = da(u, h, []), [ye, be] = da(v, y, []), [xe, Se] = da(S, C, ""), [Ce, we] = da(E, D, {}), [Te, Ee] = da(k, A, {}), [Fe, Ie] = da(M, ee, []), [Le, Re] = da(N, ne, {}), [ze, Ve] = da(re, ie, {
4390
+ function ja(e, t) {
4391
+ let { data: n, columns: r, loading: i = !1, error: a, emptyMessage: o = "No results", getRowId: s, enableSorting: c = !1, enableMultiSort: l = !1, sorting: u, onSortingChange: h, manualSorting: g = !1, enableFiltering: _ = !1, columnFilters: v, onColumnFiltersChange: y, manualFiltering: b = !1, enableGlobalFilter: x = !1, globalFilter: S, onGlobalFilterChange: C, enableRowSelection: w = !1, enableMultiRowSelection: T = !0, rowSelection: E, onRowSelectionChange: D, enableColumnVisibility: O = !1, columnVisibility: k, onColumnVisibilityChange: A, enableColumnOrdering: j = !1, columnOrder: M, onColumnOrderChange: ee, enablePinning: te = !1, columnPinning: N, onColumnPinningChange: ne, enableColumnResizing: P = !1, columnResizeMode: F = "onChange", enablePagination: I = !1, pageSize: L = 10, pageSizeOptions: R, pagination: re, onPaginationChange: ie, locale: ae = "en-US", manualPagination: oe = !1, pageCount: se, rowCount: ce, enableVirtualization: z = !1, estimatedRowHeight: le = 44, maxBodyHeight: ue = 480, onRowClick: B, toolbar: de = !1, toolbarActions: fe, searchPlaceholder: pe, onRefresh: me, onExport: he, density: V = "comfortable", stickyHeader: H = !1, fillHeight: U = !1, wrapperClassName: W, className: G, dataTestId: ge } = e, [_e, ve] = Ea(u, h, []), [ye, be] = Ea(v, y, []), [xe, Se] = Ea(S, C, ""), [Ce, we] = Ea(E, D, {}), [Te, Ee] = Ea(k, A, {}), [Fe, Ie] = Ea(M, ee, []), [Le, Re] = Ea(N, ne, {}), [ze, Ve] = Ea(re, ie, {
4272
4392
  pageIndex: 0,
4273
4393
  pageSize: L
4274
4394
  }), X = Ne({
4275
4395
  data: n,
4276
- columns: f(() => !w || r.some((e) => e.id === "select") ? r : [ca(), ...r], [r, w]),
4396
+ columns: f(() => !w || r.some((e) => e.id === "select") ? r : [Ca(), ...r], [r, w]),
4277
4397
  getRowId: s,
4278
4398
  state: {
4279
4399
  sorting: _e,
@@ -4322,7 +4442,7 @@ function ga(e, t) {
4322
4442
  Z,
4323
4443
  Ge
4324
4444
  ]);
4325
- let qe = Ge ?? le, Je = I && !z ? Math.max(0, ze.pageSize - Z.length) * qe : 0, Ye = f(() => Fe.length > 0 ? Fe : X.getAllLeafColumns().map((e) => e.id), [Fe, X]), Xe = ra({
4445
+ let qe = Ge ?? le, Je = I && !z ? Math.max(0, ze.pageSize - Z.length) * qe : 0, Ye = f(() => Fe.length > 0 ? Fe : X.getAllLeafColumns().map((e) => e.id), [Fe, X]), Xe = va({
4326
4446
  columnOrder: Ye,
4327
4447
  onColumnOrderChange: Ie
4328
4448
  }), Ze = (e) => Xe.handleDragEnd(e), Qe = p(null), $e = De({
@@ -4343,13 +4463,13 @@ function ga(e, t) {
4343
4463
  className: Q("group border-t border-border-default", B && "cursor-pointer"),
4344
4464
  children: e.getVisibleCells().map((e) => /* @__PURE__ */ q("td", {
4345
4465
  "data-test-id": rt(`cell-${e.column.id}`),
4346
- style: ua(e.column),
4347
- className: Q("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", oa[V], sa[e.column.columnDef.meta?.align ?? "left"]),
4466
+ style: Ta(e.column),
4467
+ className: Q("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", xa[V], Sa[e.column.columnDef.meta?.align ?? "left"]),
4348
4468
  children: Oe(e.column.columnDef.cell, e.getContext())
4349
4469
  }, e.id))
4350
4470
  }, e.id), ot = (e, t) => /* @__PURE__ */ q("tr", {
4351
4471
  "data-test-id": rt(`header-row-${e}`),
4352
- children: t.map((e) => /* @__PURE__ */ q(pa, {
4472
+ children: t.map((e) => /* @__PURE__ */ q(Oa, {
4353
4473
  header: e,
4354
4474
  density: V,
4355
4475
  enableSorting: c,
@@ -4365,7 +4485,7 @@ function ga(e, t) {
4365
4485
  children: [/* @__PURE__ */ q("thead", {
4366
4486
  className: Q("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", (H || U) && "sticky top-0 z-10"),
4367
4487
  children: X.getHeaderGroups().map((e) => ot(e.id, e.headers))
4368
- }), /* @__PURE__ */ q("tbody", { children: i ? /* @__PURE__ */ q(Qi, {
4488
+ }), /* @__PURE__ */ q("tbody", { children: i ? /* @__PURE__ */ q(pa, {
4369
4489
  columnCount: He,
4370
4490
  rowCount: ze.pageSize,
4371
4491
  testIdPrefix: ge
@@ -4374,7 +4494,7 @@ function ga(e, t) {
4374
4494
  children: /* @__PURE__ */ q("td", {
4375
4495
  colSpan: He,
4376
4496
  className: "p-0",
4377
- children: /* @__PURE__ */ q(ar, {
4497
+ children: /* @__PURE__ */ q(xr, {
4378
4498
  size: "sm",
4379
4499
  title: o
4380
4500
  })
@@ -4415,7 +4535,7 @@ function ga(e, t) {
4415
4535
  "data-test-id": ge,
4416
4536
  className: Q("w-full rounded-lg border border-border-default bg-bg-default", U && "h-full flex flex-col", W, G),
4417
4537
  children: [
4418
- de === !1 ? null : de ?? /* @__PURE__ */ q(ta, {
4538
+ de === !1 ? null : de ?? /* @__PURE__ */ q(ga, {
4419
4539
  table: X,
4420
4540
  enableGlobalFilter: x,
4421
4541
  enableColumnVisibility: O,
@@ -4426,7 +4546,7 @@ function ga(e, t) {
4426
4546
  }),
4427
4547
  a ? /* @__PURE__ */ q("div", {
4428
4548
  className: "p-4",
4429
- children: /* @__PURE__ */ q(mr, {
4549
+ children: /* @__PURE__ */ q(kr, {
4430
4550
  variant: "danger",
4431
4551
  title: "Couldn't load data",
4432
4552
  description: a
@@ -4451,15 +4571,15 @@ function ga(e, t) {
4451
4571
  })
4452
4572
  }), /* @__PURE__ */ q("div", {
4453
4573
  className: "md:hidden",
4454
- children: i ? /* @__PURE__ */ q(ha, { rowCount: ze.pageSize }) : Z.length === 0 ? /* @__PURE__ */ q(ar, {
4574
+ children: i ? /* @__PURE__ */ q(Aa, { rowCount: ze.pageSize }) : Z.length === 0 ? /* @__PURE__ */ q(xr, {
4455
4575
  size: "sm",
4456
4576
  title: o
4457
- }) : Z.map((e) => /* @__PURE__ */ q(ma, {
4577
+ }) : Z.map((e) => /* @__PURE__ */ q(ka, {
4458
4578
  row: e,
4459
4579
  onRowClick: B
4460
4580
  }, e.id))
4461
4581
  })] }),
4462
- I && !a && /* @__PURE__ */ q(Zi, {
4582
+ I && !a && /* @__PURE__ */ q(fa, {
4463
4583
  table: X,
4464
4584
  pageSizeOptions: R,
4465
4585
  locale: ae,
@@ -4468,17 +4588,17 @@ function ga(e, t) {
4468
4588
  ]
4469
4589
  });
4470
4590
  }
4471
- var _a = a(ga);
4472
- _a.displayName = "TableV2";
4591
+ var Ma = a(ja);
4592
+ Ma.displayName = "TableV2";
4473
4593
  //#endregion
4474
4594
  //#region src/components/Tabs/Tabs.tsx
4475
- var va = r(null);
4476
- function ya() {
4477
- let e = c(va);
4595
+ var Na = r(null);
4596
+ function Pa() {
4597
+ let e = c(Na);
4478
4598
  if (!e) throw Error("Tab components must be used inside <Tabs>");
4479
4599
  return e;
4480
4600
  }
4481
- function ba(t) {
4601
+ function Fa(t) {
4482
4602
  let n = [];
4483
4603
  e.forEach(t, (e) => {
4484
4604
  o(e) && n.push(e);
@@ -4492,9 +4612,9 @@ function ba(t) {
4492
4612
  }
4493
4613
  return "";
4494
4614
  }
4495
- var xa = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r = "underline", size: i = "md", disabled: a = !1, className: o, children: s, dataTestId: c, ...l }, d) {
4496
- let [f, p] = m(() => e ?? ba(s)), h = t !== void 0, g = h ? t : f, _ = u();
4497
- return /* @__PURE__ */ q(va.Provider, {
4615
+ var Ia = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r = "underline", size: i = "md", disabled: a = !1, className: o, children: s, dataTestId: c, ...l }, d) {
4616
+ let [f, p] = m(() => e ?? Fa(s)), h = t !== void 0, g = h ? t : f, _ = u();
4617
+ return /* @__PURE__ */ q(Na.Provider, {
4498
4618
  value: {
4499
4619
  value: g,
4500
4620
  setValue: (e) => {
@@ -4513,8 +4633,8 @@ var xa = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4513
4633
  children: s
4514
4634
  })
4515
4635
  });
4516
- }), Sa = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4517
- let { variant: s } = ya(), c = p(null);
4636
+ }), La = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4637
+ let { variant: s } = Pa(), c = p(null);
4518
4638
  return /* @__PURE__ */ q("div", {
4519
4639
  ref: Gt(o, c),
4520
4640
  role: "tablist",
@@ -4536,12 +4656,12 @@ var xa = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4536
4656
  children: e
4537
4657
  });
4538
4658
  });
4539
- Sa.displayName = "TabList";
4540
- var Ca = {
4659
+ La.displayName = "TabList";
4660
+ var Ra = {
4541
4661
  lg: "h-11 px-4 text-p-md",
4542
4662
  md: "h-10 px-3 text-p-std",
4543
4663
  sm: "h-8 px-2.5 text-p-sm"
4544
- }, wa = {
4664
+ }, za = {
4545
4665
  underline: {
4546
4666
  on: "bg-brand-500 text-white",
4547
4667
  off: "bg-bg-subtle text-fg-secondary"
@@ -4554,8 +4674,8 @@ var Ca = {
4554
4674
  on: "bg-brand-500 text-white",
4555
4675
  off: "bg-bg-subtle text-fg-secondary"
4556
4676
  }
4557
- }, Ta = a(function({ value: e, children: t, disabled: n, icon: r, badge: i, badgeProps: a, rightIcon: o, onRightIconClick: s, rightIconLabel: c, className: l, dataTestId: u, onClick: d, id: f, ...p }, m) {
4558
- let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = ya(), x = Ye(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Q("group relative inline-flex items-center justify-center gap-2 font-medium outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1 focus-visible:rounded-md", Ca[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Q("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Q("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Q("border-r border-border-default last:border-r-0", x ? "bg-bg-default text-fg-default" : "bg-transparent text-fg-secondary hover:bg-bg-subtle"), O = /* @__PURE__ */ J("button", {
4677
+ }, Ba = a(function({ value: e, children: t, disabled: n, icon: r, badge: i, badgeProps: a, rightIcon: o, onRightIconClick: s, rightIconLabel: c, className: l, dataTestId: u, onClick: d, id: f, ...p }, m) {
4678
+ let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = Pa(), x = Ye(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Q("group relative inline-flex items-center justify-center gap-2 font-medium outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1 focus-visible:rounded-md", Ra[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Q("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Q("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Q("border-r border-border-default last:border-r-0", x ? "bg-bg-default text-fg-default" : "bg-transparent text-fg-secondary hover:bg-bg-subtle"), O = /* @__PURE__ */ J("button", {
4559
4679
  ref: m,
4560
4680
  id: w,
4561
4681
  type: "button",
@@ -4584,7 +4704,7 @@ var Ca = {
4584
4704
  ...a,
4585
4705
  children: i
4586
4706
  }) : /* @__PURE__ */ q("span", {
4587
- className: Q("inline-flex items-center justify-center shrink-0 rounded-full px-1.5 h-5 min-w-[1.25rem]", "text-label-xs font-semibold tabular-nums leading-none transition-colors", x ? wa[_].on : wa[_].off),
4707
+ className: Q("inline-flex items-center justify-center shrink-0 rounded-full px-1.5 h-5 min-w-[1.25rem]", "text-label-xs font-semibold tabular-nums leading-none transition-colors", x ? za[_].on : za[_].off),
4588
4708
  children: i
4589
4709
  })),
4590
4710
  _ === "underline" && /* @__PURE__ */ q("span", {
@@ -4606,8 +4726,8 @@ var Ca = {
4606
4726
  children: o
4607
4727
  })]
4608
4728
  }) : O;
4609
- }), Ea = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4610
- let { value: c, tabsId: l } = ya(), u = Ye(c, e);
4729
+ }), Va = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4730
+ let { value: c, tabsId: l } = Pa(), u = Ye(c, e);
4611
4731
  return !u && !a ? null : /* @__PURE__ */ q("div", {
4612
4732
  ref: s,
4613
4733
  id: i ?? `${l}-panel-${e}`,
@@ -4619,7 +4739,7 @@ var Ca = {
4619
4739
  ...o,
4620
4740
  children: t
4621
4741
  });
4622
- }), Da = a(function({ label: e, labelAddons: t, helperText: n, errorText: r, error: i = !1, id: a, disabled: o, required: s, maxLength: c, showCount: l = !1, className: d, wrapperClassName: f, value: p, defaultValue: h, rows: g = 4, dataTestId: _, onChange: v, ...y }, b) {
4742
+ }), Ha = a(function({ label: e, labelAddons: t, helperText: n, errorText: r, error: i = !1, id: a, disabled: o, required: s, maxLength: c, showCount: l = !1, className: d, wrapperClassName: f, value: p, defaultValue: h, rows: g = 4, dataTestId: _, onChange: v, ...y }, b) {
4623
4743
  let x = u(), S = a ?? x, C = i || !!r, w = r ? `${S}-error` : n ? `${S}-help` : void 0, T = p !== void 0, E = l && !!c, [D, O] = m(() => String(h ?? "").length), k = T ? String(p).length : D;
4624
4744
  return /* @__PURE__ */ J("div", {
4625
4745
  className: Q("flex flex-col gap-1.5 w-full", f),
@@ -4681,7 +4801,7 @@ var Ca = {
4681
4801
  })
4682
4802
  ]
4683
4803
  });
4684
- }), Oa = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4804
+ }), Ua = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4685
4805
  let c = u(), l = n ?? c;
4686
4806
  return /* @__PURE__ */ J("label", {
4687
4807
  htmlFor: l,
@@ -4721,20 +4841,20 @@ var Ca = {
4721
4841
  children: t
4722
4842
  })]
4723
4843
  });
4724
- }), ka = {
4844
+ }), Wa = {
4725
4845
  lg: "px-3 py-2 text-p-std",
4726
4846
  sm: "px-2 py-1 text-p-sm"
4727
- }, Aa = {
4847
+ }, Ga = {
4728
4848
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
4729
4849
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
4730
4850
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
4731
4851
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
4732
- }, ja = {
4852
+ }, Ka = {
4733
4853
  top: "top-full left-1/2 -translate-x-1/2 border-t-fg-default border-x-transparent border-b-transparent",
4734
4854
  bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-fg-default border-x-transparent border-t-transparent",
4735
4855
  left: "left-full top-1/2 -translate-y-1/2 border-l-fg-default border-y-transparent border-r-transparent",
4736
4856
  right: "right-full top-1/2 -translate-y-1/2 border-r-fg-default border-y-transparent border-l-transparent"
4737
- }, Ma = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4857
+ }, qa = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4738
4858
  let [d, f] = m(!1), h = p(null), g = u(), _ = () => {
4739
4859
  h.current && clearTimeout(h.current), h.current = setTimeout(() => f(!0), a);
4740
4860
  }, v = () => {
@@ -4755,155 +4875,31 @@ var Ca = {
4755
4875
  }), d && /* @__PURE__ */ J("span", {
4756
4876
  role: "tooltip",
4757
4877
  id: g,
4758
- className: Q("absolute z-50 whitespace-pre-wrap w-max rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", ka[i], Aa[r], s),
4878
+ className: Q("absolute z-50 whitespace-pre-wrap w-max rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", Wa[i], Ga[r], s),
4759
4879
  children: [e, /* @__PURE__ */ q("span", {
4760
4880
  "aria-hidden": !0,
4761
- className: Q("absolute h-0 w-0 border-4", ja[r])
4881
+ className: Q("absolute h-0 w-0 border-4", Ka[r])
4762
4882
  })]
4763
4883
  })]
4764
4884
  });
4765
- }), Na = "We'll be back soon", Pa = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", Fa = {
4885
+ }), Ja = "We'll be back soon", Ya = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", Xa = {
4766
4886
  lg: "xl",
4767
4887
  sm: "lg"
4768
- }, Ia = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4769
- return /* @__PURE__ */ q(ar, {
4888
+ }, Za = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4889
+ return /* @__PURE__ */ q(xr, {
4770
4890
  ref: a,
4771
4891
  size: e,
4772
- title: t ?? Na,
4773
- description: n ?? Pa,
4892
+ title: t ?? Ja,
4893
+ description: n ?? Ya,
4774
4894
  illustration: r ?? /* @__PURE__ */ q(wn, {
4775
4895
  icon: k,
4776
4896
  tone: "brand",
4777
4897
  shape: "circle",
4778
- size: Fa[e]
4898
+ size: Xa[e]
4779
4899
  }),
4780
4900
  ...i
4781
4901
  });
4782
- });
4783
- //#endregion
4784
- //#region src/hooks/useStepper.ts
4785
- function La(e, t) {
4786
- return t <= 0 ? 0 : Math.min(Math.max(e, 0), t - 1);
4787
- }
4788
- function Ra({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i = !1 }) {
4789
- let [a, o] = m(() => La(t, e)), s = n !== void 0, c = s ? La(n, e) : a, l = (t) => {
4790
- let n = La(t, e);
4791
- s || o(n), r?.(n);
4792
- };
4793
- return {
4794
- step: c,
4795
- count: e,
4796
- isFirst: c === 0,
4797
- isLast: c === e - 1,
4798
- next: () => {
4799
- if (c >= e - 1) {
4800
- i && l(0);
4801
- return;
4802
- }
4803
- l(c + 1);
4804
- },
4805
- prev: () => {
4806
- if (c <= 0) {
4807
- i && l(e - 1);
4808
- return;
4809
- }
4810
- l(c - 1);
4811
- },
4812
- goTo: l,
4813
- reset: () => l(t)
4814
- };
4815
- }
4816
- //#endregion
4817
- //#region src/hooks/useOnOutsideClick.ts
4818
- var za = [];
4819
- function Ba(e) {
4820
- let t = za[za.length - 1];
4821
- if (!t) return;
4822
- let { ref: n, callback: r, shouldRemoveCallback: i } = t;
4823
- n && !n.contains(e.target) && (i && za.splice(za.length - 1, 1), r(e));
4824
- }
4825
- var Va = (e, t, n, r, i = !0) => {
4826
- l(() => {
4827
- if (e && n && r) return za.push({
4828
- ref: e,
4829
- callback: t,
4830
- uid: r,
4831
- shouldRemoveCallback: i
4832
- }), za.length === 1 && document.addEventListener("mousedown", Ba), () => {
4833
- za.length === 0 && document.removeEventListener("mousedown", Ba);
4834
- };
4835
- }, [
4836
- e,
4837
- n,
4838
- r
4839
- ]), l(() => {
4840
- if (!n && za.length > 0) {
4841
- let e = za.findIndex((e) => e.uid === r);
4842
- e >= 0 && za.splice(e, 1);
4843
- }
4844
- }, [n]);
4845
- };
4846
- //#endregion
4847
- //#region src/hooks/useEscapeKey.ts
4848
- function Ha(e, t = !0) {
4849
- l(() => {
4850
- if (!t) return;
4851
- let n = (t) => {
4852
- t.key === "Escape" && e();
4853
- };
4854
- return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
4855
- }, [e, t]);
4856
- }
4857
- //#endregion
4858
- //#region src/hooks/useHideBodyScroll.ts
4859
- var Ua = 0, Wa = "";
4860
- function Ga(e) {
4861
- l(() => {
4862
- if (e) return Ua === 0 && (Wa = document.body.style.overflow, document.body.style.overflow = "hidden"), Ua += 1, () => {
4863
- --Ua, Ua === 0 && (document.body.style.overflow = Wa);
4864
- };
4865
- }, [e]);
4866
- }
4867
- //#endregion
4868
- //#region src/hooks/useIsMobile.ts
4869
- var Ka = 768;
4870
- function qa(e = Ka) {
4871
- let [t, n] = m(!1);
4872
- return l(() => {
4873
- if (typeof window > "u" || typeof window.matchMedia != "function") return;
4874
- let t = window.matchMedia(`(max-width: ${e}px)`), r = () => n(t.matches);
4875
- return r(), t.addEventListener("change", r), () => t.removeEventListener("change", r);
4876
- }, [e]), t;
4877
- }
4878
- //#endregion
4879
- //#region src/hooks/useFormContext.ts
4880
- function Ja() {
4881
- let e = c(lr);
4882
- if (!e) throw Error("useFormContext must be used inside a FormContainer.");
4883
- return e;
4884
- }
4885
- //#endregion
4886
- //#region src/hooks/useFormProps.ts
4887
- var Ya = () => void 0, Xa = {
4888
- errors: {},
4889
- setValue: Ya,
4890
- reset: Ya,
4891
- clearErrors: Ya,
4892
- setError: Ya,
4893
- unregister: Ya,
4894
- isDirty: !1,
4895
- isSubmitted: !1,
4896
- isSubmitting: !1,
4897
- isValid: !1,
4898
- dirtyFields: {},
4899
- submit: Ya
4900
- };
4901
- function Za() {
4902
- return c(lr) ?? Xa;
4903
- }
4904
- //#endregion
4905
- //#region src/tokens/colors.ts
4906
- var Qa = {
4902
+ }), Qa = {
4907
4903
  900: "#31531C",
4908
4904
  800: "#416E26",
4909
4905
  700: "#518A2F",
@@ -5170,6 +5166,6 @@ var Qa = {
5170
5166
  z5: "0 8px 16px 0 rgba(0, 0, 0, 0.12), 0 24px 32px 0 rgba(0, 0, 0, 0.12)"
5171
5167
  };
5172
5168
  //#endregion
5173
- export { et as Accordion, tt as AccordionItem, xt as Avatar, St as AvatarGroup, jt as Badge, Pt as Breadcrumb, ot as Button, It as ButtonGroup, zt as Card, Vt as CardGroup, Wt as Checkbox, Zt as Copy, an as Counter, xn as DatePicker, Mn as DeviceRestriction, In as DistributionBar, Je as Divider, Wn as Drawer, $n as DropdownContent, er as DropdownItem, nr as DropdownLabel, Xn as DropdownMenu, tr as DropdownSeparator, Zn as DropdownTrigger, ar as Empty, cr as Filter, ur as FormContainer, dr as FormField, wn as IconTile, fr as InfoField, mr as InlineAlert, nn as Input, hr as Link, _r as Modal, Sr as NotificationBadge, Er as Pagination, kr as PersonCard, Xt as Popover, Pr as Progress, zr as Radio, Ir as RadioGroup, Br as ReadMore, hi as SelectV2, vi as Sidebar, yi as SidebarItem, Ci as Skeleton, ki as SnackbarProvider, Ni as Status, Gi as StepIndicator, Ji as Switch, Ta as Tab, Sa as TabList, Ea as TabPanel, _a as TableV2, Yi as TableV2ColumnFilter, ea as TableV2ColumnVisibilityMenu, Zi as TableV2Pagination, aa as TableV2RowActionsMenu, Qi as TableV2Skeleton, ta as TableV2Toolbar, xa as Tabs, kn as Text, Da as TextArea, Oa as ThemeSwitch, Ma as Tooltip, Ia as UnderConstruction, dt as Upload, pt as UploadItem, to as blue, Qa as brand, Q as cn, oo as colorPrimitives, ho as controlHeight, la as createRowActionsColumn, ca as createSelectionColumn, co as darkTheme, lo as fontFamily, ua as getPinnedStyles, $ as gray, eo as green, uo as headline, go as iconSize, po as label, so as lightTheme, fo as paragraph, ro as pink, no as purple, _o as radius, io as red, vo as shadows, mo as typography, Ha as useEscapeKey, ye as useFieldArray, Ja as useFormContext, Za as useFormProps, Ga as useHideBodyScroll, qa as useIsMobile, Va as useOnOutsideClick, Oi as useSnackbar, Ra as useStepper, ut as validateSingleFile, $a as white, ao as yellow };
5169
+ export { et as Accordion, tt as AccordionItem, xt as Avatar, St as AvatarGroup, jt as Badge, Pt as Breadcrumb, ot as Button, It as ButtonGroup, zt as Card, Vt as CardGroup, Wt as Checkbox, Zt as Copy, an as Counter, xn as DatePicker, Mn as DeviceRestriction, In as DistributionBar, Je as Divider, or as Drawer, hr as DropdownContent, gr as DropdownItem, vr as DropdownLabel, fr as DropdownMenu, _r as DropdownSeparator, pr as DropdownTrigger, xr as Empty, wr as Filter, Tr as FormContainer, Er as FormField, wn as IconTile, Dr as InfoField, kr as InlineAlert, nn as Input, Ar as Link, Mr as Modal, Lr as NotificationBadge, Vr as Pagination, Wr as PersonCard, Xt as Popover, Yr as Progress, ei as Radio, Zr as RadioGroup, ti as ReadMore, Ai as SelectV2, Ni as Sidebar, Pi as SidebarItem, Ri as Skeleton, Wi as SnackbarProvider, Ji as Status, oa as StepIndicator, la as Switch, Ba as Tab, La as TabList, Va as TabPanel, Ma as TableV2, ua as TableV2ColumnFilter, ha as TableV2ColumnVisibilityMenu, fa as TableV2Pagination, ba as TableV2RowActionsMenu, pa as TableV2Skeleton, ga as TableV2Toolbar, Ia as Tabs, kn as Text, Ha as TextArea, Ua as ThemeSwitch, qa as Tooltip, Za as UnderConstruction, dt as Upload, pt as UploadItem, to as blue, Qa as brand, Q as cn, oo as colorPrimitives, ho as controlHeight, wa as createRowActionsColumn, Ca as createSelectionColumn, co as darkTheme, lo as fontFamily, Ta as getPinnedStyles, $ as gray, eo as green, uo as headline, go as iconSize, po as label, so as lightTheme, fo as paragraph, ro as pink, no as purple, _o as radius, io as red, vo as shadows, mo as typography, Gn as useEscapeKey, ye as useFieldArray, Qn as useFormContext, tr as useFormProps, Jn as useHideBodyScroll, Xn as useIsMobile, Wn as useOnOutsideClick, Ui as useSnackbar, Vn as useStepper, ut as validateSingleFile, $a as white, ao as yellow };
5174
5170
 
5175
5171
  //# sourceMappingURL=index.js.map