@dinofront/design_system 1.19.0 → 1.19.2

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();
@@ -1789,7 +1907,7 @@ var Bn = {
1789
1907
  let t = document.activeElement;
1790
1908
  return v.current?.focus(), () => t?.focus?.();
1791
1909
  }, [e]), !y) return null;
1792
- let S = n === "left" || n === "right", C = S ? Bn[r] : Vn[r];
1910
+ let S = n === "left" || n === "right", C = S ? nr[r] : rr[r];
1793
1911
  return _e(/* @__PURE__ */ J("dialog", {
1794
1912
  ref: _,
1795
1913
  onCancel: (e) => {
@@ -1807,7 +1925,7 @@ var Bn = {
1807
1925
  }), /* @__PURE__ */ J("div", {
1808
1926
  ref: Gt(g, v),
1809
1927
  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),
1928
+ 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
1929
  children: [
1812
1930
  (i || u || f) && /* @__PURE__ */ J("div", {
1813
1931
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4 border-b border-border-default",
@@ -1845,8 +1963,8 @@ var Bn = {
1845
1963
  ]
1846
1964
  })]
1847
1965
  }), 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 }) {
1966
+ }), sr = 8;
1967
+ 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
1968
  let [l, u] = m({
1851
1969
  style: {
1852
1970
  position: "fixed",
@@ -1867,7 +1985,7 @@ function Kn({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "star
1867
1985
  r === "bottom" && e < d.height + a && t > e ? m = "top" : r === "top" && t < d.height + a && e > t && (m = "bottom");
1868
1986
  }
1869
1987
  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({
1988
+ s && (g = Math.min(Math.max(g, sr), p - d.width - sr)), u({
1871
1989
  style: {
1872
1990
  position: "fixed",
1873
1991
  top: h,
@@ -1897,16 +2015,16 @@ function Kn({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "star
1897
2015
  }
1898
2016
  //#endregion
1899
2017
  //#region src/components/DropdownMenu/DropdownMenu.tsx
1900
- function qn(e) {
2018
+ function lr(e) {
1901
2019
  return e == null ? null : e instanceof HTMLElement ? e : e.current;
1902
2020
  }
1903
- var Jn = r(null);
1904
- function Yn() {
1905
- let e = c(Jn);
2021
+ var ur = r(null);
2022
+ function dr() {
2023
+ let e = c(ur);
1906
2024
  if (!e) throw Error("Dropdown parts must be used inside <DropdownMenu>");
1907
2025
  return e;
1908
2026
  }
1909
- var Xn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r, anchorRef: i, className: a, dataTestId: o, ...s }, c) {
2027
+ var fr = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r, anchorRef: i, className: a, dataTestId: o, ...s }, c) {
1910
2028
  let [u, d] = m(t), f = n !== void 0, h = f ? n : u, g = p(null), _ = (e) => {
1911
2029
  f || d(e), r?.(e);
1912
2030
  };
@@ -1916,7 +2034,7 @@ var Xn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r
1916
2034
  e.key === "Escape" && _(!1);
1917
2035
  };
1918
2036
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1919
- }, [h]), /* @__PURE__ */ q(Jn.Provider, {
2037
+ }, [h]), /* @__PURE__ */ q(ur.Provider, {
1920
2038
  value: {
1921
2039
  open: h,
1922
2040
  setOpen: _,
@@ -1932,8 +2050,8 @@ var Xn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r
1932
2050
  })
1933
2051
  });
1934
2052
  });
1935
- function Zn({ children: e }) {
1936
- let { open: t, setOpen: r, triggerRef: i } = Yn();
2053
+ function pr({ children: e }) {
2054
+ let { open: t, setOpen: r, triggerRef: i } = dr();
1937
2055
  if (!o(e)) return e;
1938
2056
  let a = e.props ?? {};
1939
2057
  return n(e, {
@@ -1946,10 +2064,10 @@ function Zn({ children: e }) {
1946
2064
  "aria-expanded": t
1947
2065
  });
1948
2066
  }
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({
2067
+ 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) {
2068
+ let { open: y, setOpen: b, triggerRef: x, anchorRef: S } = dr(), C = p(null), [w, T] = m(null), { style: E, resolvedSide: D } = cr({
1951
2069
  anchor: f(() => ({ get current() {
1952
- return qn(S) ?? x.current;
2070
+ return lr(S) ?? x.current;
1953
2071
  } }), [S, x]),
1954
2072
  panel: w,
1955
2073
  open: y && n === "fixed",
@@ -1964,7 +2082,7 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1964
2082
  if (!y) return;
1965
2083
  let e = (e) => {
1966
2084
  let t = e.target;
1967
- C.current?.contains(t) || x.current?.contains(t) || qn(S)?.contains(t) || b(!1);
2085
+ C.current?.contains(t) || x.current?.contains(t) || lr(S)?.contains(t) || b(!1);
1968
2086
  };
1969
2087
  return document.addEventListener("mousedown", e, !0), () => document.removeEventListener("mousedown", e, !0);
1970
2088
  }, [
@@ -2006,13 +2124,13 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2006
2124
  g?.(e), e.stopPropagation();
2007
2125
  },
2008
2126
  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),
2127
+ className: Q(mr, n === "absolute" && Q("absolute top-full mt-1", t === "end" ? "right-0" : "left-0"), d),
2010
2128
  ..._,
2011
2129
  children: e
2012
2130
  });
2013
2131
  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();
2132
+ }), 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) {
2133
+ let { setOpen: p } = dr();
2016
2134
  return /* @__PURE__ */ J("button", {
2017
2135
  ref: f,
2018
2136
  type: "button",
@@ -2049,7 +2167,7 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2049
2167
  })
2050
2168
  ]
2051
2169
  });
2052
- }), tr = a(function({ className: e, dataTestId: t, ...n }, r) {
2170
+ }), _r = a(function({ className: e, dataTestId: t, ...n }, r) {
2053
2171
  return /* @__PURE__ */ q("div", {
2054
2172
  ref: r,
2055
2173
  role: "separator",
@@ -2057,7 +2175,7 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2057
2175
  className: Q("my-1 h-px bg-border-default", e),
2058
2176
  ...n
2059
2177
  });
2060
- }), nr = a(function({ children: e, className: t, dataTestId: n, ...r }, i) {
2178
+ }), vr = a(function({ children: e, className: t, dataTestId: n, ...r }, i) {
2061
2179
  return /* @__PURE__ */ q("div", {
2062
2180
  ref: i,
2063
2181
  "data-test-id": n,
@@ -2065,24 +2183,24 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2065
2183
  ...r,
2066
2184
  children: e
2067
2185
  });
2068
- }), rr = {
2186
+ }), yr = {
2069
2187
  lg: "py-20 px-6 gap-2",
2070
2188
  sm: "py-10 px-4 gap-1"
2071
- }, ir = {
2189
+ }, br = {
2072
2190
  lg: "xl",
2073
2191
  sm: "lg"
2074
- }, ar = a(function({ size: e = "lg", title: t, description: n, illustration: r, action: i, className: a, dataTestId: o, ...s }, c) {
2192
+ }, xr = a(function({ size: e = "lg", title: t, description: n, illustration: r, action: i, className: a, dataTestId: o, ...s }, c) {
2075
2193
  return /* @__PURE__ */ J("div", {
2076
2194
  ref: c,
2077
2195
  "data-test-id": o,
2078
- className: Q("flex flex-col items-center justify-center text-center", rr[e], a),
2196
+ className: Q("flex flex-col items-center justify-center text-center", yr[e], a),
2079
2197
  ...s,
2080
2198
  children: [
2081
2199
  r ?? /* @__PURE__ */ q(wn, {
2082
2200
  icon: ue,
2083
2201
  tone: "gray",
2084
2202
  shape: "circle",
2085
- size: ir[e]
2203
+ size: br[e]
2086
2204
  }),
2087
2205
  t && /* @__PURE__ */ q(kn, {
2088
2206
  as: "h3",
@@ -2103,17 +2221,17 @@ var Qn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2103
2221
  })
2104
2222
  ]
2105
2223
  });
2106
- }), or = {
2224
+ }), Sr = {
2107
2225
  lg: "h-10 px-3 text-p-std gap-2",
2108
2226
  md: "h-9 px-2.5 text-p-std gap-1.5",
2109
2227
  sm: "h-8 px-2 text-p-sm gap-1.5"
2110
2228
  };
2111
- function sr(...e) {
2229
+ function Cr(...e) {
2112
2230
  return (t) => {
2113
2231
  for (let n of e) n && (typeof n == "function" ? n(t) : n.current = t);
2114
2232
  };
2115
2233
  }
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) {
2234
+ 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
2235
  let [f, h] = m(!1), g = p(null);
2118
2236
  l(() => {
2119
2237
  if (!f) return;
@@ -2124,7 +2242,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2124
2242
  }, [f]);
2125
2243
  let _ = n || t !== void 0;
2126
2244
  return /* @__PURE__ */ J("div", {
2127
- ref: sr(d, g),
2245
+ ref: Cr(d, g),
2128
2246
  "data-test-id": c,
2129
2247
  className: Q("relative inline-flex", s),
2130
2248
  ...u,
@@ -2134,7 +2252,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2134
2252
  onClick: () => h((e) => !e),
2135
2253
  "aria-haspopup": "dialog",
2136
2254
  "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"),
2255
+ 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
2256
  children: [
2139
2257
  /* @__PURE__ */ q("span", {
2140
2258
  className: "font-medium",
@@ -2170,7 +2288,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2170
2288
  children: o
2171
2289
  })]
2172
2290
  });
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) {
2291
+ }), 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
2292
  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
2293
  mode: a,
2176
2294
  resolver: xe(n),
@@ -2211,7 +2329,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2211
2329
  "data-test-id": f,
2212
2330
  className: Q("flex flex-col gap-4", t),
2213
2331
  ...p,
2214
- children: /* @__PURE__ */ J(lr.Provider, {
2332
+ children: /* @__PURE__ */ J(Zn.Provider, {
2215
2333
  value: N,
2216
2334
  children: [e, i && i.length > 0 && /* @__PURE__ */ q("div", {
2217
2335
  className: "flex items-center gap-3",
@@ -2220,8 +2338,8 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2220
2338
  })]
2221
2339
  })
2222
2340
  });
2223
- }), dr = a(function({ name: e, defaultValue: t, render: n, className: r, dataTestId: i, ...a }, o) {
2224
- let s = c(lr);
2341
+ }), Er = a(function({ name: e, defaultValue: t, render: n, className: r, dataTestId: i, ...a }, o) {
2342
+ let s = c(Zn);
2225
2343
  if (!s) throw Error("FormField must be rendered inside a FormContainer.");
2226
2344
  return /* @__PURE__ */ q("div", {
2227
2345
  ref: o,
@@ -2247,7 +2365,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2247
2365
  })
2248
2366
  })
2249
2367
  });
2250
- }), fr = a(function({ icon: e, iconTone: t = "brand", label: n, value: r, action: i, className: a, dataTestId: o, ...s }, c) {
2368
+ }), Dr = a(function({ icon: e, iconTone: t = "brand", label: n, value: r, action: i, className: a, dataTestId: o, ...s }, c) {
2251
2369
  return /* @__PURE__ */ J("div", {
2252
2370
  ref: c,
2253
2371
  "data-test-id": o,
@@ -2275,7 +2393,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2275
2393
  })
2276
2394
  ]
2277
2395
  });
2278
- }), pr = {
2396
+ }), Or = {
2279
2397
  success: {
2280
2398
  container: "bg-green-50 border-green-200",
2281
2399
  iconColor: "text-green-600",
@@ -2301,8 +2419,8 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2301
2419
  iconColor: "text-purple-700",
2302
2420
  DefaultIcon: de
2303
2421
  }
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];
2422
+ }, kr = a(function({ variant: e = "info", title: t, description: n, onDismiss: r, actions: i, icon: a, className: o, dataTestId: s, ...c }, l) {
2423
+ let { container: u, iconColor: d, DefaultIcon: f } = Or[e];
2306
2424
  return /* @__PURE__ */ J("div", {
2307
2425
  ref: l,
2308
2426
  role: "alert",
@@ -2343,7 +2461,7 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2343
2461
  })
2344
2462
  ]
2345
2463
  });
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) {
2464
+ }), 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
2465
  let m = {
2348
2466
  ...f,
2349
2467
  target: u,
@@ -2371,43 +2489,40 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2371
2489
  })
2372
2490
  ]
2373
2491
  });
2374
- }), gr = {
2492
+ }), jr = {
2375
2493
  sm: "max-w-sm",
2376
2494
  md: "max-w-md",
2377
2495
  lg: "max-w-lg",
2378
2496
  xl: "max-w-2xl",
2379
2497
  "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;
2498
+ }, 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) {
2499
+ let m = p(null), h = p(null);
2500
+ return Jn(e), l(() => {
2501
+ let t = m.current;
2502
+ if (!(!e || !t || t.open)) return t.showModal(), h.current?.focus(), () => {
2503
+ t.open && t.close();
2391
2504
  };
2392
- }, [e, t]), l(() => {
2505
+ }, [e]), l(() => {
2393
2506
  if (!e) return;
2394
2507
  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",
2508
+ return h.current?.focus(), () => t?.focus?.();
2509
+ }, [e]), e ? _e(/* @__PURE__ */ J("dialog", {
2510
+ ref: m,
2511
+ onCancel: (e) => {
2512
+ e.preventDefault(), t();
2513
+ },
2399
2514
  "aria-labelledby": n ? "modal-title" : void 0,
2400
2515
  "aria-describedby": r ? "modal-desc" : void 0,
2401
- className: "fixed inset-0 z-50 flex items-center justify-center p-4",
2516
+ 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
2517
  children: [/* @__PURE__ */ q("div", {
2403
2518
  className: "absolute inset-0 bg-black/50",
2404
2519
  onClick: () => s && t(),
2405
2520
  "aria-hidden": !0
2406
2521
  }), /* @__PURE__ */ J("div", {
2407
- ref: Gt(m, f),
2522
+ ref: Gt(h, f),
2408
2523
  tabIndex: -1,
2409
2524
  "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),
2525
+ className: Q("relative w-full bg-bg-default rounded-xl shadow-z5 outline-none flex flex-col max-h-[90vh]", jr[o], u),
2411
2526
  children: [
2412
2527
  (n || c) && /* @__PURE__ */ J("div", {
2413
2528
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4",
@@ -2442,29 +2557,29 @@ var cr = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2442
2557
  ]
2443
2558
  })]
2444
2559
  }), document.body) : null;
2445
- }), vr = {
2560
+ }), Nr = {
2446
2561
  brand: "bg-brand-500 text-white",
2447
2562
  danger: "bg-red-600 text-white",
2448
2563
  success: "bg-green-600 text-white",
2449
2564
  warning: "bg-yellow-600 text-gray-900 dark:text-gray-900",
2450
2565
  info: "bg-blue-600 text-white"
2451
- }, yr = {
2566
+ }, Pr = {
2452
2567
  lg: "min-w-[18px] h-[18px] px-1 text-[11px]",
2453
2568
  sm: "min-w-[14px] h-[14px] px-0.5 text-[10px]"
2454
- }, br = {
2569
+ }, Fr = {
2455
2570
  lg: "h-2.5 w-2.5",
2456
2571
  sm: "h-1.5 w-1.5"
2457
2572
  };
2458
- function xr(e, t) {
2573
+ function Ir(e, t) {
2459
2574
  return e > t ? `${t}+` : e >= 1e3 ? `${(e / 1e3).toFixed(0)}K` : String(e);
2460
2575
  }
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) {
2576
+ 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
2577
  let d = n === "dot" || e > 0 || o, f = a != null && a !== !1, p = d ? /* @__PURE__ */ q("span", {
2463
2578
  ref: u,
2464
2579
  "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),
2580
+ 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
2581
  ...l,
2467
- children: n === "count" && xr(e, t)
2582
+ children: n === "count" && Ir(e, t)
2468
2583
  }) : null;
2469
2584
  return f ? /* @__PURE__ */ J("span", {
2470
2585
  className: "relative inline-flex",
@@ -2473,7 +2588,7 @@ var Sr = a(function({ count: e = 0, max: t = 99, kind: n = "count", size: r = "l
2473
2588
  });
2474
2589
  //#endregion
2475
2590
  //#region src/components/Pagination/Pagination.tsx
2476
- function Cr(e, t, n, r) {
2591
+ function Rr(e, t, n, r) {
2477
2592
  if (t <= n * 2 + 3 + r * 2) return Array.from({ length: t }, (e, t) => t + 1);
2478
2593
  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
2594
  if (o) {
@@ -2488,8 +2603,8 @@ function Cr(e, t, n, r) {
2488
2603
  ...l
2489
2604
  ];
2490
2605
  }
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);
2606
+ 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) {
2607
+ let u = Rr(e, t, r, i), d = e <= 1, f = e >= t, p = We(o);
2493
2608
  return /* @__PURE__ */ J("nav", {
2494
2609
  ref: l,
2495
2610
  "aria-label": s ?? "Pagination",
@@ -2503,7 +2618,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2503
2618
  disabled: d,
2504
2619
  "data-test-id": p("pagination-prev-page"),
2505
2620
  "aria-label": "Previous page",
2506
- className: Q(wr, Tr),
2621
+ className: Q(zr, Br),
2507
2622
  children: /* @__PURE__ */ q(C, { className: "h-4 w-4" })
2508
2623
  }),
2509
2624
  u.map((t, r) => {
@@ -2519,7 +2634,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2519
2634
  "aria-current": i ? "page" : void 0,
2520
2635
  "data-test-id": p("pagination-page-link"),
2521
2636
  "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"),
2637
+ className: Q(zr, i ? "bg-brand-500 text-white font-semibold hover:bg-brand-600" : "text-fg-default hover:bg-bg-subtle"),
2523
2638
  children: t
2524
2639
  }, t);
2525
2640
  }),
@@ -2529,12 +2644,12 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2529
2644
  disabled: f,
2530
2645
  "aria-label": "Next page",
2531
2646
  "data-test-id": p("pagination-next-page"),
2532
- className: Q(wr, Tr),
2647
+ className: Q(zr, Br),
2533
2648
  children: /* @__PURE__ */ q(w, { className: "h-4 w-4" })
2534
2649
  })
2535
2650
  ]
2536
2651
  });
2537
- }), Dr = {
2652
+ }), Hr = {
2538
2653
  sm: {
2539
2654
  padding: "px-3 py-2",
2540
2655
  avatar: "sm",
@@ -2545,12 +2660,12 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2545
2660
  avatar: "md",
2546
2661
  gap: "gap-3"
2547
2662
  }
2548
- }, Or = {
2663
+ }, Ur = {
2549
2664
  default: "border-border-default bg-bg-default hover:border-fg-tertiary/40",
2550
2665
  highlight: "border-brand-500 bg-brand-200/15 dark:bg-brand-500/10 ring-1 ring-brand-500/40",
2551
2666
  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: [
2667
+ }, 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) {
2668
+ let d = Hr[i], f = Ur[r], p = /* @__PURE__ */ J(K, { children: [
2554
2669
  /* @__PURE__ */ q(xt, {
2555
2670
  src: n,
2556
2671
  name: e,
@@ -2586,22 +2701,22 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2586
2701
  ...l,
2587
2702
  children: p
2588
2703
  });
2589
- }), Ar = {
2704
+ }), Gr = {
2590
2705
  sm: 29,
2591
2706
  lg: 45
2592
- }, jr = {
2707
+ }, Kr = {
2593
2708
  sm: 2,
2594
2709
  lg: 4
2595
- }, Mr = {
2710
+ }, qr = {
2596
2711
  sm: "h-1",
2597
2712
  lg: "h-2"
2598
- }, Nr = {
2713
+ }, Jr = {
2599
2714
  sm: "text-p-xs",
2600
2715
  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) {
2716
+ }, 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
2717
  let f = r && i ? i / r * 100 : n, p = Math.min(100, Math.max(0, f)), m = r ? `${i}/${r}` : `${Math.round(p)}%`;
2603
2718
  if (e === "circular") {
2604
- let e = o ?? Ar[t], n = e - 5, r = 2 * n * Math.PI, i = jr[t];
2719
+ let e = o ?? Gr[t], n = e - 5, r = 2 * n * Math.PI, i = Kr[t];
2605
2720
  return /* @__PURE__ */ J("div", {
2606
2721
  ref: d,
2607
2722
  role: "progressbar",
@@ -2640,7 +2755,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2640
2755
  }
2641
2756
  })]
2642
2757
  }), !a && !s && /* @__PURE__ */ q("span", {
2643
- className: Q("absolute text-fg-secondary", Nr[t]),
2758
+ className: Q("absolute text-fg-secondary", Jr[t]),
2644
2759
  "data-test-id": l ? `${l}-text` : void 0,
2645
2760
  children: m
2646
2761
  })]
@@ -2657,18 +2772,18 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2657
2772
  className: Q("flex w-full items-center gap-2", c),
2658
2773
  ...u,
2659
2774
  children: [/* @__PURE__ */ q("div", {
2660
- className: Q("w-full overflow-hidden rounded-full bg-bg-subtle", Mr[t]),
2775
+ className: Q("w-full overflow-hidden rounded-full bg-bg-subtle", qr[t]),
2661
2776
  children: /* @__PURE__ */ q("div", {
2662
2777
  className: "h-full rounded-full bg-brand-500 transition-all duration-300 ease-linear",
2663
2778
  style: { width: `${p}%` }
2664
2779
  })
2665
2780
  }), !a && /* @__PURE__ */ q("span", {
2666
- className: Q("shrink-0 text-fg-secondary", Nr[t]),
2781
+ className: Q("shrink-0 text-fg-secondary", Jr[t]),
2667
2782
  "data-test-id": l ? `${l}-text` : void 0,
2668
2783
  children: m
2669
2784
  })]
2670
2785
  });
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 }, _) {
2786
+ }), 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
2787
  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
2788
  ref: _,
2674
2789
  role: "radiogroup",
@@ -2680,7 +2795,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2680
2795
  className: Q("flex gap-3", f === "vertical" ? "flex-col" : "flex-row flex-wrap items-center gap-4", m),
2681
2796
  children: p
2682
2797
  });
2683
- return /* @__PURE__ */ q(Fr.Provider, {
2798
+ return /* @__PURE__ */ q(Xr.Provider, {
2684
2799
  value: {
2685
2800
  name: y,
2686
2801
  value: n,
@@ -2715,14 +2830,14 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2715
2830
  ]
2716
2831
  }) : C
2717
2832
  });
2718
- }), Lr = {
2833
+ }), Qr = {
2719
2834
  md: "h-5 w-5",
2720
2835
  sm: "h-4 w-4"
2721
- }, Rr = {
2836
+ }, $r = {
2722
2837
  md: "h-2 w-2",
2723
2838
  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;
2839
+ }, 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) {
2840
+ 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
2841
  return /* @__PURE__ */ J("label", {
2727
2842
  htmlFor: v,
2728
2843
  "data-test-id": p,
@@ -2745,8 +2860,8 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2745
2860
  "aria-invalid": x || void 0,
2746
2861
  ...m
2747
2862
  }), /* @__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") })
2863
+ 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"),
2864
+ children: /* @__PURE__ */ q("span", { className: Q("rounded-full bg-brand-500 transition-opacity", $r[y], b && "!bg-fg-disabled") })
2750
2865
  })]
2751
2866
  }), (n || r) && /* @__PURE__ */ J("span", {
2752
2867
  className: "flex flex-col gap-0.5",
@@ -2759,7 +2874,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2759
2874
  })]
2760
2875
  })]
2761
2876
  });
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) {
2877
+ }), 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
2878
  let [h, g] = m(a), _ = o !== void 0, v = _ ? o : h, y = u(), b = () => {
2764
2879
  let e = !v;
2765
2880
  _ || g(e), s?.(e);
@@ -2788,7 +2903,7 @@ var wr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2788
2903
  });
2789
2904
  //#endregion
2790
2905
  //#region src/components/SelectV2/useVisibleTagCount.ts
2791
- function Vr({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }) {
2906
+ function ni({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }) {
2792
2907
  let [a, o] = m(n);
2793
2908
  return d(() => {
2794
2909
  if (!i) return;
@@ -2832,7 +2947,7 @@ function Vr({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }
2832
2947
  }
2833
2948
  //#endregion
2834
2949
  //#region src/components/SelectV2/SelectV2.i18n.ts
2835
- var Hr = {
2950
+ var ri = {
2836
2951
  "en-US": {
2837
2952
  placeholder: "Select…",
2838
2953
  noResults: "No results",
@@ -2860,23 +2975,23 @@ var Hr = {
2860
2975
  createLabel: (e) => `Ստեղծել «${e}»`,
2861
2976
  saveSelectionLabel: "Պահպանել ձևանմուշը"
2862
2977
  }
2863
- }, Ur = {
2978
+ }, ii = {
2864
2979
  lg: "min-h-12 text-p-md",
2865
2980
  md: "min-h-10 text-p-std",
2866
2981
  sm: "min-h-8 text-p-sm"
2867
- }, Wr = {
2982
+ }, ai = {
2868
2983
  lg: "px-3.5 py-1.5",
2869
2984
  md: "px-3 py-1",
2870
2985
  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) {
2986
+ }, 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";
2987
+ function ui(e) {
2873
2988
  return e.searchText ?? (typeof e.label == "string" ? e.label : String(e.value));
2874
2989
  }
2875
- function Xr(e, t) {
2990
+ function di(e, t) {
2876
2991
  let n = t.trim().toLowerCase();
2877
- return !n || `${Yr(e)} ${String(e.value)}`.toLowerCase().includes(n);
2992
+ return !n || `${ui(e)} ${String(e.value)}`.toLowerCase().includes(n);
2878
2993
  }
2879
- function Zr(e) {
2994
+ function fi(e) {
2880
2995
  try {
2881
2996
  let t = window.localStorage.getItem(e);
2882
2997
  return t === null ? void 0 : JSON.parse(t);
@@ -2884,34 +2999,34 @@ function Zr(e) {
2884
2999
  return;
2885
3000
  }
2886
3001
  }
2887
- function Qr(e) {
3002
+ function pi(e) {
2888
3003
  try {
2889
3004
  return window.localStorage.getItem(e) !== null;
2890
3005
  } catch {
2891
3006
  return !1;
2892
3007
  }
2893
3008
  }
2894
- function $r(e, t) {
3009
+ function mi(e, t) {
2895
3010
  try {
2896
3011
  window.localStorage.setItem(e, JSON.stringify(t));
2897
3012
  } catch {}
2898
3013
  }
2899
- function ei(e) {
3014
+ function hi(e) {
2900
3015
  try {
2901
3016
  window.localStorage.removeItem(e);
2902
3017
  } catch {}
2903
3018
  }
2904
- function ti(e, t, n) {
3019
+ function gi(e, t, n) {
2905
3020
  return {
2906
3021
  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]),
3022
+ 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"),
3023
+ 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
3024
  placeholder: () => "text-fg-tertiary truncate",
2910
3025
  singleValue: () => "text-fg-default truncate min-w-0",
2911
3026
  input: () => "text-fg-default",
2912
- multiValue: () => Gr,
2913
- multiValueLabel: () => Kr,
2914
- multiValueRemove: () => qr,
3027
+ multiValue: () => oi,
3028
+ multiValueLabel: () => si,
3029
+ multiValueRemove: () => ci,
2915
3030
  indicatorsContainer: () => "flex items-center gap-1 pr-2 shrink-0",
2916
3031
  clearIndicator: () => "text-fg-secondary hover:text-fg-default cursor-pointer p-0.5",
2917
3032
  dropdownIndicator: () => "text-fg-secondary p-0.5",
@@ -2928,31 +3043,31 @@ function ti(e, t, n) {
2928
3043
  }
2929
3044
  //#endregion
2930
3045
  //#region src/components/SelectV2/SelectV2.tsx
2931
- var ni = 36;
2932
- function ri(e, t) {
3046
+ var _i = 36;
3047
+ function vi(e, t) {
2933
3048
  let { dataTestId: n } = e;
2934
3049
  return We(n)(t);
2935
3050
  }
2936
- function ii(e, t) {
3051
+ function yi(e, t) {
2937
3052
  return {
2938
3053
  ...e,
2939
3054
  "data-test-id": t
2940
3055
  };
2941
3056
  }
2942
- function ai(e) {
3057
+ function bi(e) {
2943
3058
  return /* @__PURE__ */ q(Ce.Control, {
2944
3059
  ...e,
2945
- innerProps: ii(e.innerProps, ri(e.selectProps, "trigger"))
3060
+ innerProps: yi(e.innerProps, vi(e.selectProps, "trigger"))
2946
3061
  });
2947
3062
  }
2948
- function oi(e) {
2949
- let t = { "data-test-id": ri(e.selectProps, "search") };
3063
+ function xi(e) {
3064
+ let t = { "data-test-id": vi(e.selectProps, "search") };
2950
3065
  return /* @__PURE__ */ q(Ce.Input, {
2951
3066
  ...e,
2952
3067
  ...t
2953
3068
  });
2954
3069
  }
2955
- function si(e) {
3070
+ function Si(e) {
2956
3071
  return /* @__PURE__ */ q(Ce.DropdownIndicator, {
2957
3072
  ...e,
2958
3073
  children: /* @__PURE__ */ q(S, {
@@ -2961,22 +3076,22 @@ function si(e) {
2961
3076
  })
2962
3077
  });
2963
3078
  }
2964
- function ci(e) {
3079
+ function Ci(e) {
2965
3080
  return /* @__PURE__ */ q(Ce.ClearIndicator, {
2966
3081
  ...e,
2967
- innerProps: ii(e.innerProps, ri(e.selectProps, "clear")),
3082
+ innerProps: yi(e.innerProps, vi(e.selectProps, "clear")),
2968
3083
  children: /* @__PURE__ */ q(U, {
2969
3084
  className: "h-3.5 w-3.5",
2970
3085
  "aria-hidden": !0
2971
3086
  })
2972
3087
  });
2973
3088
  }
2974
- function li(e) {
3089
+ function wi(e) {
2975
3090
  return /* @__PURE__ */ q(Ce.MultiValueRemove, {
2976
3091
  ...e,
2977
3092
  innerProps: {
2978
3093
  ...e.innerProps,
2979
- "aria-label": `Remove ${Yr(e.data)}`
3094
+ "aria-label": `Remove ${ui(e.data)}`
2980
3095
  },
2981
3096
  children: /* @__PURE__ */ q(U, {
2982
3097
  className: "h-3 w-3",
@@ -2984,37 +3099,37 @@ function li(e) {
2984
3099
  })
2985
3100
  });
2986
3101
  }
2987
- function ui(e) {
3102
+ function Ti(e) {
2988
3103
  let { visibleTagCount: t } = e.selectProps;
2989
3104
  return t === void 0 || e.index < t ? /* @__PURE__ */ q(Ce.MultiValue, { ...e }) : e.index === t ? /* @__PURE__ */ J("span", {
2990
- className: Jr,
3105
+ className: li,
2991
3106
  children: ["+", (Array.isArray(e.selectProps.value) ? e.selectProps.value.length : 0) - t]
2992
3107
  }) : null;
2993
3108
  }
2994
- function di(e) {
3109
+ function Ei(e) {
2995
3110
  return /* @__PURE__ */ J(Ce.Option, {
2996
3111
  ...e,
2997
- innerProps: ii(e.innerProps, ri(e.selectProps, `option-${String(e.data.value)}`)),
3112
+ innerProps: yi(e.innerProps, vi(e.selectProps, `option-${String(e.data.value)}`)),
2998
3113
  children: [e.children, e.isSelected && /* @__PURE__ */ q(b, {
2999
3114
  className: "h-4 w-4 text-fg-brand shrink-0",
3000
3115
  "aria-hidden": !0
3001
3116
  })]
3002
3117
  });
3003
3118
  }
3004
- function fi() {
3119
+ function Di() {
3005
3120
  return /* @__PURE__ */ q(ne, {
3006
3121
  className: "h-4 w-4 animate-spin text-fg-secondary",
3007
3122
  "aria-hidden": !0
3008
3123
  });
3009
3124
  }
3010
- function pi(e) {
3125
+ function Oi(e) {
3011
3126
  let { selectAllState: t, onSelectAllToggle: n, saveSelectionState: r, onSaveSelectionToggle: i } = e.selectProps;
3012
3127
  return /* @__PURE__ */ J(Ce.Menu, {
3013
3128
  ...e,
3014
- innerProps: ii(e.innerProps, ri(e.selectProps, "content")),
3129
+ innerProps: yi(e.innerProps, vi(e.selectProps, "content")),
3015
3130
  children: [
3016
3131
  t && /* @__PURE__ */ q("div", {
3017
- "data-test-id": ri(e.selectProps, "select-all"),
3132
+ "data-test-id": vi(e.selectProps, "select-all"),
3018
3133
  className: "border-b border-border-default px-3 py-2",
3019
3134
  onMouseDown: (e) => e.preventDefault(),
3020
3135
  onClick: (e) => {
@@ -3030,7 +3145,7 @@ function pi(e) {
3030
3145
  }),
3031
3146
  e.children,
3032
3147
  r && /* @__PURE__ */ q("div", {
3033
- "data-test-id": ri(e.selectProps, "save_template"),
3148
+ "data-test-id": vi(e.selectProps, "save_template"),
3034
3149
  role: "button",
3035
3150
  tabIndex: 0,
3036
3151
  "aria-pressed": r.checked,
@@ -3052,11 +3167,11 @@ function pi(e) {
3052
3167
  ]
3053
3168
  });
3054
3169
  }
3055
- function mi(t) {
3170
+ function ki(t) {
3056
3171
  let { children: n, innerRef: r, innerProps: i, maxHeight: a } = t, o = e.toArray(n), s = p(null), c = De({
3057
3172
  count: o.length,
3058
3173
  getScrollElement: () => s.current,
3059
- estimateSize: () => ni,
3174
+ estimateSize: () => _i,
3060
3175
  overscan: 8
3061
3176
  });
3062
3177
  return /* @__PURE__ */ q("div", {
@@ -3083,11 +3198,11 @@ function mi(t) {
3083
3198
  })
3084
3199
  });
3085
3200
  }
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(() => {
3201
+ var Ai = a(function(e, t) {
3202
+ 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
3203
  if (!d) {
3089
3204
  if (j && !z) {
3090
- let e = Zr(j);
3205
+ let e = fi(j);
3091
3206
  if (e !== void 0) return e;
3092
3207
  }
3093
3208
  return g;
@@ -3095,11 +3210,11 @@ var hi = a(function(e, t) {
3095
3210
  }), [B, de] = m(() => {
3096
3211
  if (!d) return [];
3097
3212
  if (j && !z) {
3098
- let e = Zr(j);
3213
+ let e = fi(j);
3099
3214
  if (Array.isArray(e)) return e;
3100
3215
  }
3101
3216
  return g ?? [];
3102
- }), [fe, pe] = m(() => !!j && Qr(j)), [me, he] = m(() => {
3217
+ }), [fe, pe] = m(() => !!j && pi(j)), [me, he] = m(() => {
3103
3218
  let e = /* @__PURE__ */ new Map();
3104
3219
  for (let t of n) e.set(String(t.value), t);
3105
3220
  if (Array.isArray(i)) for (let t of i) e.set(String(t.value), t);
@@ -3155,15 +3270,15 @@ var hi = a(function(e, t) {
3155
3270
  V,
3156
3271
  _,
3157
3272
  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), [
3273
+ ]), 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
3274
  ee,
3160
3275
  ce,
3161
3276
  L
3162
- ]), Oe = p(null), ke = p(null), Ae = p(null), je = !!d && L, Me = Vr({
3277
+ ]), Oe = p(null), ke = p(null), Ae = p(null), je = !!d && L, Me = ni({
3163
3278
  wrapperRef: Oe,
3164
3279
  measureRef: ke,
3165
3280
  total: K.length,
3166
- labelsKey: K.map(Yr).join("\0"),
3281
+ labelsKey: K.map(ui).join("\0"),
3167
3282
  enabled: je
3168
3283
  }), Ne = f(() => n.some((e) => !!e.description), [n]), Pe = f(() => {
3169
3284
  if (!n.some((e) => e.group)) return n;
@@ -3182,7 +3297,7 @@ var hi = a(function(e, t) {
3182
3297
  return t;
3183
3298
  }, [n]), Fe = !!d && !be, Ie = d ? G : W;
3184
3299
  l(() => {
3185
- !j || !fe || $r(j, Ie);
3300
+ !j || !fe || mi(j, Ie);
3186
3301
  }, [
3187
3302
  j,
3188
3303
  fe,
@@ -3191,7 +3306,7 @@ var hi = a(function(e, t) {
3191
3306
  let Le = s(() => {
3192
3307
  j && pe((e) => {
3193
3308
  let t = !e;
3194
- return t ? $r(j, Ie) : ei(j), t;
3309
+ return t ? mi(j, Ie) : hi(j), t;
3195
3310
  });
3196
3311
  }, [j, Ie]), Re = f(() => j ? {
3197
3312
  checked: fe,
@@ -3203,7 +3318,7 @@ var hi = a(function(e, t) {
3203
3318
  R
3204
3319
  ]), [ze, Be] = m(""), Ve = s((e) => {
3205
3320
  Be(e);
3206
- }, []), Y = f(() => Fe ? n.filter((e) => !e.disabled && Xr(e, ze)) : [], [
3321
+ }, []), Y = f(() => Fe ? n.filter((e) => !e.disabled && di(e, ze)) : [], [
3207
3322
  Fe,
3208
3323
  n,
3209
3324
  ze
@@ -3253,7 +3368,7 @@ var hi = a(function(e, t) {
3253
3368
  onCreateOption: a ? ye : void 0,
3254
3369
  formatCreateLabel: a ? ae : void 0,
3255
3370
  getOptionValue: (e) => String(e.value),
3256
- getOptionLabel: Yr,
3371
+ getOptionLabel: ui,
3257
3372
  formatOptionLabel: (e, t) => {
3258
3373
  if (t.context === "value") return e.label;
3259
3374
  let n = Ne && e.description ? /* @__PURE__ */ J("span", {
@@ -3272,7 +3387,7 @@ var hi = a(function(e, t) {
3272
3387
  className: "min-w-0 flex-1 truncate",
3273
3388
  children: n
3274
3389
  }), /* @__PURE__ */ q("span", {
3275
- "data-test-id": ri({ dataTestId: F }, `option-${String(e.value)}-actions`),
3390
+ "data-test-id": vi({ dataTestId: F }, `option-${String(e.value)}-actions`),
3276
3391
  className: "ml-auto inline-flex shrink-0 items-center",
3277
3392
  onMouseDown: (e) => {
3278
3393
  e.preventDefault(), e.stopPropagation();
@@ -3308,18 +3423,20 @@ var hi = a(function(e, t) {
3308
3423
  hideSelectedOptions: I.hideSelectedOptions ?? !1
3309
3424
  } : {},
3310
3425
  menuPlacement: I.menuPlacement ?? "auto",
3426
+ menuPortalTarget: I.menuPortalTarget ?? (typeof document < "u" ? document.body : void 0),
3427
+ menuPosition: I.menuPosition ?? "fixed",
3311
3428
  components: {
3312
- Control: ai,
3313
- Menu: pi,
3314
- ...xe ? { Input: oi } : {},
3315
- DropdownIndicator: si,
3316
- ClearIndicator: ci,
3317
- MultiValueRemove: li,
3318
- LoadingIndicator: fi,
3429
+ Control: bi,
3430
+ Menu: Oi,
3431
+ ...xe ? { Input: xi } : {},
3432
+ DropdownIndicator: Si,
3433
+ ClearIndicator: Ci,
3434
+ MultiValueRemove: wi,
3435
+ LoadingIndicator: Di,
3319
3436
  IndicatorSeparator: () => null,
3320
- ...O ? { MenuList: mi } : {},
3321
- ...je ? { MultiValue: ui } : {},
3322
- Option: di
3437
+ ...O ? { MenuList: ki } : {},
3438
+ ...je ? { MultiValue: Ti } : {},
3439
+ Option: Ei
3323
3440
  }
3324
3441
  };
3325
3442
  return /* @__PURE__ */ J("div", {
@@ -3361,7 +3478,7 @@ var hi = a(function(e, t) {
3361
3478
  className: "flex items-center gap-1 rounded-md bg-bg-subtle pl-2 pr-1 py-0.5 max-w-full",
3362
3479
  children: [/* @__PURE__ */ q("span", {
3363
3480
  className: "truncate text-p-sm text-fg-default",
3364
- children: Yr(e)
3481
+ children: ui(e)
3365
3482
  }), /* @__PURE__ */ q("span", {
3366
3483
  className: "rounded-sm text-fg-secondary hover:bg-bg-container hover:text-fg-default cursor-pointer",
3367
3484
  children: /* @__PURE__ */ q(U, {
@@ -3385,19 +3502,19 @@ var hi = a(function(e, t) {
3385
3502
  }) : null
3386
3503
  ]
3387
3504
  });
3388
- }), gi = r(null);
3389
- function _i() {
3390
- return c(gi) ?? {
3505
+ }), ji = r(null);
3506
+ function Mi() {
3507
+ return c(ji) ?? {
3391
3508
  collapsed: !1,
3392
3509
  toggle: () => {}
3393
3510
  };
3394
3511
  }
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) {
3512
+ 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
3513
  let [d, f] = m(e), p = t !== void 0, h = p ? t : d, g = () => {
3397
3514
  let e = !h;
3398
3515
  p || f(e), n?.(e);
3399
3516
  };
3400
- return /* @__PURE__ */ q(gi.Provider, {
3517
+ return /* @__PURE__ */ q(ji.Provider, {
3401
3518
  value: {
3402
3519
  collapsed: h,
3403
3520
  toggle: g
@@ -3438,8 +3555,8 @@ var vi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3438
3555
  })]
3439
3556
  })
3440
3557
  });
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", {
3558
+ }), Pi = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3559
+ let { collapsed: d } = Mi(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ J(K, { children: [e && /* @__PURE__ */ q("span", {
3443
3560
  className: "inline-flex shrink-0",
3444
3561
  children: e
3445
3562
  }), !d && /* @__PURE__ */ J(K, { children: [
@@ -3478,12 +3595,12 @@ var vi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3478
3595
  className: "flex flex-col gap-0.5 pl-8",
3479
3596
  children: i
3480
3597
  })] });
3481
- }), bi = {
3598
+ }), Fi = {
3482
3599
  text: "h-[1em] mb-[0.4em] origin-[0%_55%] scale-y-[0.6] rounded-sm",
3483
3600
  circular: "size-10 rounded-full",
3484
3601
  rectangular: "h-4 w-full",
3485
3602
  rounded: "h-4 w-full rounded-md"
3486
- }, xi = {
3603
+ }, Ii = {
3487
3604
  pulse: "animate-pulse",
3488
3605
  wave: [
3489
3606
  "relative overflow-hidden",
@@ -3493,15 +3610,15 @@ var vi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3493
3610
  ].join(" "),
3494
3611
  none: ""
3495
3612
  };
3496
- function Si(e) {
3613
+ function Li(e) {
3497
3614
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
3498
3615
  }
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) {
3616
+ 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
3617
  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) },
3618
+ ...n === void 0 ? null : { width: Li(n) },
3619
+ ...r === void 0 ? null : { height: Li(r) },
3503
3620
  ...o
3504
- }, m = Q("block bg-bg-subtle leading-none", bi[e], xi[t]);
3621
+ }, m = Q("block bg-bg-subtle leading-none", Fi[e], Ii[t]);
3505
3622
  return d ? /* @__PURE__ */ q("span", {
3506
3623
  ref: u,
3507
3624
  "data-test-id": c,
@@ -3534,7 +3651,7 @@ var Ci = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3534
3651
  "aria-label": t === 0 ? "Loading" : void 0
3535
3652
  }, t))
3536
3653
  });
3537
- }), wi = {
3654
+ }), zi = {
3538
3655
  success: {
3539
3656
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3540
3657
  icon: x
@@ -3555,26 +3672,26 @@ var Ci = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3555
3672
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3556
3673
  icon: N
3557
3674
  }
3558
- }, Ti = {
3675
+ }, Bi = {
3559
3676
  success: "text-green-400",
3560
3677
  warning: "text-yellow-300",
3561
3678
  danger: "text-red-400",
3562
3679
  info: "text-blue-400",
3563
3680
  neutral: "text-white/70"
3564
- }, Ei = {
3681
+ }, Vi = {
3565
3682
  "top-left": "top-6 left-4",
3566
3683
  "top-center": "top-6 left-1/2 -translate-x-1/2",
3567
3684
  "top-right": "top-6 right-4",
3568
3685
  "bottom-left": "bottom-6 left-4",
3569
3686
  "bottom-center": "bottom-6 left-1/2 -translate-x-1/2",
3570
3687
  "bottom-right": "bottom-6 right-4"
3571
- }, Di = r(null);
3572
- function Oi() {
3573
- let e = c(Di);
3688
+ }, Hi = r(null);
3689
+ function Ui() {
3690
+ let e = c(Hi);
3574
3691
  if (!e) throw Error("useSnackbar must be used inside <SnackbarProvider>");
3575
3692
  return e;
3576
3693
  }
3577
- function ki({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3694
+ function Wi({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3578
3695
  let [r, i] = m([]), a = p(/* @__PURE__ */ new Map()), o = s((e) => {
3579
3696
  i((t) => t.filter((t) => t.id !== e));
3580
3697
  let t = a.current.get(e);
@@ -3597,25 +3714,25 @@ function ki({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3597
3714
  return () => {
3598
3715
  e.forEach(clearTimeout), e.clear();
3599
3716
  };
3600
- }, []), /* @__PURE__ */ J(Di.Provider, {
3717
+ }, []), /* @__PURE__ */ J(Hi.Provider, {
3601
3718
  value: {
3602
3719
  show: c,
3603
3720
  dismiss: o
3604
3721
  },
3605
- children: [e, _e(/* @__PURE__ */ q(K, { children: Object.keys(Ei).map((e) => {
3722
+ children: [e, _e(/* @__PURE__ */ q(K, { children: Object.keys(Vi).map((e) => {
3606
3723
  let i = r.filter((t) => (t.position ?? n) === e);
3607
3724
  return i.length === 0 ? null : /* @__PURE__ */ q("div", {
3608
3725
  "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]),
3726
+ className: Q("fixed z-100 flex flex-col gap-2 w-[min(400px,calc(100vw-2rem))] pointer-events-none", Vi[e]),
3610
3727
  children: i.map((e) => {
3611
- let { container: t, icon: n } = wi[e.variant ?? "neutral"];
3728
+ let { container: t, icon: n } = zi[e.variant ?? "neutral"];
3612
3729
  return /* @__PURE__ */ J("div", {
3613
3730
  role: "status",
3614
3731
  "data-test-id": e.dataTestId,
3615
3732
  className: Q("pointer-events-auto flex items-center gap-3 px-4 py-3 rounded-lg shadow-z4", t),
3616
3733
  children: [
3617
3734
  /* @__PURE__ */ q(n, {
3618
- className: Q("h-5 w-5 shrink-0", Ti[e.variant ?? "neutral"]),
3735
+ className: Q("h-5 w-5 shrink-0", Bi[e.variant ?? "neutral"]),
3619
3736
  "aria-hidden": !0
3620
3737
  }),
3621
3738
  /* @__PURE__ */ q("p", {
@@ -3646,15 +3763,15 @@ function ki({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3646
3763
  }
3647
3764
  //#endregion
3648
3765
  //#region src/components/Status/Status.tsx
3649
- var Ai = {
3766
+ var Gi = {
3650
3767
  lg: "h-7 px-2.5 text-p-std gap-1.5",
3651
3768
  md: "h-6 px-2 text-p-sm gap-1.5",
3652
3769
  sm: "h-5 px-1.5 text-p-sm gap-1"
3653
- }, ji = {
3770
+ }, Ki = {
3654
3771
  lg: "h-2 w-2",
3655
3772
  md: "h-1.5 w-1.5",
3656
3773
  sm: "h-1.5 w-1.5"
3657
- }, Mi = {
3774
+ }, qi = {
3658
3775
  general: {
3659
3776
  container: "bg-bg-subtle text-fg-default dark:text-fg-default",
3660
3777
  dot: "bg-gray-600 dark:bg-gray-400"
@@ -3687,19 +3804,19 @@ var Ai = {
3687
3804
  container: "bg-bg-subtle text-fg-disabled",
3688
3805
  dot: "bg-border-strong"
3689
3806
  }
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];
3807
+ }, Ji = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3808
+ let { container: u, dot: d } = qi[e];
3692
3809
  return /* @__PURE__ */ J("span", {
3693
3810
  ref: l,
3694
3811
  "data-test-id": s,
3695
- className: Q("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", Ai[t], u, a),
3812
+ className: Q("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", Gi[t], u, a),
3696
3813
  ...c,
3697
3814
  children: [
3698
3815
  n ? /* @__PURE__ */ q("span", {
3699
3816
  className: "inline-flex shrink-0",
3700
3817
  children: n
3701
3818
  }) : i ? /* @__PURE__ */ q("span", {
3702
- className: Q("inline-block shrink-0 rounded-full", ji[t], d),
3819
+ className: Q("inline-block shrink-0 rounded-full", Ki[t], d),
3703
3820
  "aria-hidden": !0
3704
3821
  }) : null,
3705
3822
  o,
@@ -3709,45 +3826,45 @@ var Ai = {
3709
3826
  })
3710
3827
  ]
3711
3828
  });
3712
- }), Pi = {
3829
+ }), Yi = {
3713
3830
  lg: "size-9",
3714
3831
  sm: "size-6"
3715
- }, Fi = {
3832
+ }, Xi = {
3716
3833
  lg: "h-9",
3717
3834
  sm: "h-6"
3718
- }, Ii = {
3835
+ }, Zi = {
3719
3836
  lg: "border-2",
3720
3837
  sm: "border"
3721
- }, Li = {
3838
+ }, Qi = {
3722
3839
  lg: "text-p-std",
3723
3840
  sm: "text-p-xs"
3724
- }, Ri = {
3841
+ }, $i = {
3725
3842
  lg: "size-5",
3726
3843
  sm: "size-3.5"
3727
- }, zi = {
3844
+ }, ea = {
3728
3845
  lg: "size-3",
3729
3846
  sm: "size-2"
3730
- }, Bi = {
3847
+ }, ta = {
3731
3848
  lg: "text-p-std",
3732
3849
  sm: "text-p-sm"
3733
- }, Vi = {
3850
+ }, na = {
3734
3851
  lg: "text-p-sm",
3735
3852
  sm: "text-p-xs"
3736
- }, Hi = {
3853
+ }, ra = {
3737
3854
  upcoming: "bg-bg-default border-border-strong text-fg-tertiary",
3738
3855
  active: "bg-bg-default border-brand-500 text-brand-700",
3739
3856
  completed: "bg-brand-500 border-brand-500 text-fg-inverse",
3740
3857
  rejected: "bg-red-700 border-red-800 text-fg-inverse"
3741
- }, Ui = {
3858
+ }, ia = {
3742
3859
  upcoming: "ring-4 ring-gray-100/80",
3743
3860
  active: "ring-4 ring-brand-40/80",
3744
3861
  completed: "ring-4 ring-brand-40/80",
3745
3862
  rejected: "ring-4 ring-red-100/80"
3746
3863
  };
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;
3864
+ function aa(e, t, n, r) {
3865
+ 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
3866
  }
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) {
3867
+ 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
3868
  let u = i === "vertical", d = (e) => (e?.status ?? "upcoming") === "completed";
3752
3869
  return /* @__PURE__ */ q("ol", {
3753
3870
  ref: l,
@@ -3756,15 +3873,15 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3756
3873
  ...c,
3757
3874
  children: e.map((i, o) => {
3758
3875
  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)
3876
+ 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]),
3877
+ children: aa(r, s, o, a)
3761
3878
  }), h = /* @__PURE__ */ J("div", {
3762
3879
  className: Q("flex flex-col", u ? "gap-0.5 pb-6" : "mt-2 items-center gap-0.5 text-center"),
3763
3880
  children: [/* @__PURE__ */ q("span", {
3764
- className: Q("font-medium text-fg-default", Bi[a]),
3881
+ className: Q("font-medium text-fg-default", ta[a]),
3765
3882
  children: i.label
3766
3883
  }), i.description && /* @__PURE__ */ q("span", {
3767
- className: Q("text-fg-secondary", Vi[a]),
3884
+ className: Q("text-fg-secondary", na[a]),
3768
3885
  children: i.description
3769
3886
  })]
3770
3887
  });
@@ -3772,7 +3889,7 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3772
3889
  "aria-current": Ye(i.value, t) ? "step" : void 0,
3773
3890
  className: Q("relative flex", u ? "flex-row gap-3" : "flex-1 basis-0 min-w-0 flex-col"),
3774
3891
  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])),
3892
+ 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
3893
  children: [
3777
3894
  !c && /* @__PURE__ */ q("span", {
3778
3895
  "aria-hidden": !0,
@@ -3794,13 +3911,13 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3794
3911
  }, String(i.value));
3795
3912
  })
3796
3913
  });
3797
- }), Ki = {
3914
+ }), sa = {
3798
3915
  md: "h-6 w-11",
3799
3916
  sm: "h-5 w-9"
3800
- }, qi = {
3917
+ }, ca = {
3801
3918
  md: "h-5 w-5 peer-checked:translate-x-5",
3802
3919
  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) {
3920
+ }, 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
3921
  let p = u(), m = i ?? p, h = /* @__PURE__ */ J("span", {
3805
3922
  className: "relative inline-flex shrink-0",
3806
3923
  children: [
@@ -3815,8 +3932,8 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3815
3932
  className: "peer sr-only",
3816
3933
  ...d
3817
3934
  }),
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]) })
3935
+ /* @__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") }),
3936
+ /* @__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
3937
  ]
3821
3938
  });
3822
3939
  return !t && !n ? /* @__PURE__ */ q("label", {
@@ -3842,11 +3959,11 @@ var Gi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3842
3959
  });
3843
3960
  //#endregion
3844
3961
  //#region src/components/TableV2/TableV2Filter.tsx
3845
- function Yi({ column: e }) {
3962
+ function ua({ column: e }) {
3846
3963
  let t = e.columnDef.meta?.filterVariant;
3847
3964
  if (!t) return null;
3848
3965
  let n = e.getFilterValue();
3849
- return t === "custom" ? /* @__PURE__ */ q(K, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ q(hi, {
3966
+ return t === "custom" ? /* @__PURE__ */ q(K, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ q(Ai, {
3850
3967
  size: "sm",
3851
3968
  searchable: !1,
3852
3969
  required: !1,
@@ -3865,7 +3982,7 @@ function Yi({ column: e }) {
3865
3982
  }
3866
3983
  //#endregion
3867
3984
  //#region src/components/TableV2/TableV2Pagination.i18n.ts
3868
- var Xi = {
3985
+ var da = {
3869
3986
  "en-US": {
3870
3987
  rowsPerPage: "Rows per page",
3871
3988
  noResults: "No results",
@@ -3884,12 +4001,12 @@ var Xi = {
3884
4001
  };
3885
4002
  //#endregion
3886
4003
  //#region src/components/TableV2/TableV2Pagination.tsx
3887
- function Zi({ table: e, pageSizeOptions: t = [
4004
+ function fa({ table: e, pageSizeOptions: t = [
3888
4005
  10,
3889
4006
  20,
3890
4007
  30
3891
4008
  ], 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);
4009
+ 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
4010
  return /* @__PURE__ */ J("div", {
3894
4011
  className: "flex flex-wrap items-center justify-between gap-3 p-3 border-t border-border-default",
3895
4012
  children: [
@@ -3898,7 +4015,7 @@ function Zi({ table: e, pageSizeOptions: t = [
3898
4015
  children: [/* @__PURE__ */ q("span", {
3899
4016
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3900
4017
  children: u.rowsPerPage
3901
- }), /* @__PURE__ */ q(hi, {
4018
+ }), /* @__PURE__ */ q(Ai, {
3902
4019
  size: "sm",
3903
4020
  menuPlacement: "top",
3904
4021
  searchable: !1,
@@ -3919,7 +4036,7 @@ function Zi({ table: e, pageSizeOptions: t = [
3919
4036
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3920
4037
  children: o === 0 ? u.noResults : u.rangeSummary(c, l, o)
3921
4038
  }),
3922
- /* @__PURE__ */ q(Er, {
4039
+ /* @__PURE__ */ q(Vr, {
3923
4040
  page: i + 1,
3924
4041
  pageCount: s,
3925
4042
  onPageChange: (t) => e.setPageIndex(t - 1),
@@ -3930,14 +4047,14 @@ function Zi({ table: e, pageSizeOptions: t = [
3930
4047
  }
3931
4048
  //#endregion
3932
4049
  //#region src/components/TableV2/TableV2Skeleton.tsx
3933
- function Qi({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
4050
+ function pa({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
3934
4051
  let r = We(n);
3935
4052
  return /* @__PURE__ */ q(K, { children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ q("tr", {
3936
4053
  "data-test-id": r(`skeleton-row-${n}`),
3937
4054
  "aria-hidden": n > 0 || void 0,
3938
4055
  children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ q("td", {
3939
4056
  className: "px-4 py-3",
3940
- children: /* @__PURE__ */ q(Ci, {
4057
+ children: /* @__PURE__ */ q(Ri, {
3941
4058
  variant: "text",
3942
4059
  width: t === 0 ? "70%" : "90%"
3943
4060
  })
@@ -3946,24 +4063,24 @@ function Qi({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
3946
4063
  }
3947
4064
  //#endregion
3948
4065
  //#region src/components/TableV2/TableV2ColumnVisibility.tsx
3949
- function $i(e) {
4066
+ function ma(e) {
3950
4067
  let { header: t } = e.columnDef;
3951
4068
  return typeof t == "string" ? t : e.id;
3952
4069
  }
3953
- function ea({ table: e }) {
4070
+ function ha({ table: e }) {
3954
4071
  let t = e.getAllLeafColumns().filter((e) => e.getCanHide());
3955
- return /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q(ot, {
4072
+ return /* @__PURE__ */ J(fr, { children: [/* @__PURE__ */ q(pr, { children: /* @__PURE__ */ q(ot, {
3956
4073
  variant: "secondary",
3957
4074
  size: "sm",
3958
4075
  leftIcon: /* @__PURE__ */ q(O, { className: "h-4 w-4" }),
3959
4076
  children: "Columns"
3960
- }) }), /* @__PURE__ */ q($n, {
4077
+ }) }), /* @__PURE__ */ q(hr, {
3961
4078
  align: "end",
3962
4079
  children: t.map((e) => /* @__PURE__ */ q("div", {
3963
4080
  className: "px-3 py-1.5 hover:bg-bg-subtle",
3964
4081
  children: /* @__PURE__ */ q(Wt, {
3965
4082
  size: "sm",
3966
- label: $i(e),
4083
+ label: ma(e),
3967
4084
  checked: e.getIsVisible(),
3968
4085
  onChange: () => e.toggleVisibility()
3969
4086
  })
@@ -3972,7 +4089,7 @@ function ea({ table: e }) {
3972
4089
  }
3973
4090
  //#endregion
3974
4091
  //#region src/components/TableV2/TableV2Toolbar.tsx
3975
- function ta({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
4092
+ function ga({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
3976
4093
  return /* @__PURE__ */ J("div", {
3977
4094
  className: "flex flex-wrap items-center gap-2 p-3 border-b border-border-default",
3978
4095
  children: [t && /* @__PURE__ */ q(nn, {
@@ -4001,7 +4118,7 @@ function ta({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
4001
4118
  onClick: a,
4002
4119
  children: "Export"
4003
4120
  }),
4004
- n && /* @__PURE__ */ q(ea, { table: e }),
4121
+ n && /* @__PURE__ */ q(ha, { table: e }),
4005
4122
  o
4006
4123
  ]
4007
4124
  })]
@@ -4009,15 +4126,15 @@ function ta({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
4009
4126
  }
4010
4127
  //#endregion
4011
4128
  //#region src/components/TableV2/useTableV2ColumnDnd.ts
4012
- var na = ({ transform: e }) => ({
4129
+ var _a = ({ transform: e }) => ({
4013
4130
  ...e,
4014
4131
  y: 0
4015
4132
  });
4016
- function ra({ columnOrder: e, onColumnOrderChange: t }) {
4133
+ function va({ columnOrder: e, onColumnOrderChange: t }) {
4017
4134
  return {
4018
4135
  sensors: ze(Re(Ie, { activationConstraint: { distance: 4 } }), Re(Fe, { coordinateGetter: X })),
4019
4136
  collisionDetection: Le,
4020
- modifiers: [na],
4137
+ modifiers: [_a],
4021
4138
  handleDragEnd: (n) => {
4022
4139
  let { active: r, over: i } = n;
4023
4140
  if (!i || r.id === i.id) return;
@@ -4026,7 +4143,7 @@ function ra({ columnOrder: e, onColumnOrderChange: t }) {
4026
4143
  }
4027
4144
  };
4028
4145
  }
4029
- function ia(e) {
4146
+ function ya(e) {
4030
4147
  let { attributes: t, listeners: n, setNodeRef: r, transform: i, transition: a, isDragging: o } = Z({ id: e });
4031
4148
  return {
4032
4149
  setNodeRef: r,
@@ -4044,16 +4161,16 @@ function ia(e) {
4044
4161
  }
4045
4162
  //#endregion
4046
4163
  //#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, {
4164
+ function ba({ row: e, actions: t }) {
4165
+ return t.length === 0 ? null : /* @__PURE__ */ J(fr, { children: [/* @__PURE__ */ q(pr, { children: /* @__PURE__ */ q(ot, {
4049
4166
  variant: "tertiary",
4050
4167
  size: "sm",
4051
4168
  iconOnly: !0,
4052
4169
  "aria-label": "Row actions",
4053
4170
  leftIcon: /* @__PURE__ */ q(re, { className: "h-4 w-4" })
4054
- }) }), /* @__PURE__ */ q($n, {
4171
+ }) }), /* @__PURE__ */ q(hr, {
4055
4172
  align: "end",
4056
- children: t.map((t, n) => /* @__PURE__ */ q(er, {
4173
+ children: t.map((t, n) => /* @__PURE__ */ q(gr, {
4057
4174
  icon: t.icon,
4058
4175
  destructive: t.destructive,
4059
4176
  disabled: t.disabled?.(e),
@@ -4064,15 +4181,15 @@ function aa({ row: e, actions: t }) {
4064
4181
  }
4065
4182
  //#endregion
4066
4183
  //#region src/components/TableV2/TableV2.utils.tsx
4067
- var oa = {
4184
+ var xa = {
4068
4185
  comfortable: "py-3",
4069
4186
  compact: "py-2"
4070
- }, sa = {
4187
+ }, Sa = {
4071
4188
  left: "text-left",
4072
4189
  center: "text-center",
4073
4190
  right: "text-right"
4074
4191
  };
4075
- function ca() {
4192
+ function Ca() {
4076
4193
  return {
4077
4194
  id: "select",
4078
4195
  size: 40,
@@ -4097,7 +4214,7 @@ function ca() {
4097
4214
  })
4098
4215
  };
4099
4216
  }
4100
- function la(e, t) {
4217
+ function wa(e, t) {
4101
4218
  return {
4102
4219
  id: "actions",
4103
4220
  header: t?.header ?? "",
@@ -4105,13 +4222,13 @@ function la(e, t) {
4105
4222
  enableSorting: !1,
4106
4223
  enableColumnFilter: !1,
4107
4224
  enableResizing: !1,
4108
- cell: ({ row: t }) => /* @__PURE__ */ q(aa, {
4225
+ cell: ({ row: t }) => /* @__PURE__ */ q(ba, {
4109
4226
  row: t.original,
4110
4227
  actions: e(t.original)
4111
4228
  })
4112
4229
  };
4113
4230
  }
4114
- function ua(e) {
4231
+ function Ta(e) {
4115
4232
  let t = e.getIsPinned();
4116
4233
  return t ? {
4117
4234
  position: "sticky",
@@ -4122,26 +4239,26 @@ function ua(e) {
4122
4239
  }
4123
4240
  //#endregion
4124
4241
  //#region src/components/TableV2/TableV2.tsx
4125
- function da(e, t, n) {
4242
+ function Ea(e, t, n) {
4126
4243
  let [r, i] = m(n);
4127
4244
  return [e === void 0 ? r : e, (e) => {
4128
4245
  i((t) => typeof e == "function" ? e(t) : e), t?.(e);
4129
4246
  }];
4130
4247
  }
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());
4248
+ var Da = /* @__PURE__ */ new Set(["select", "actions"]);
4249
+ function Oa({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
4250
+ 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
4251
  return /* @__PURE__ */ J("th", {
4135
4252
  ref: u ? d.setNodeRef : void 0,
4136
4253
  colSpan: e.colSpan,
4137
4254
  scope: "col",
4138
4255
  style: {
4139
4256
  width: a ? e.getSize() : void 0,
4140
- ...ua(c),
4257
+ ...Ta(c),
4141
4258
  ...u ? d.style : null
4142
4259
  },
4143
4260
  "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]),
4261
+ className: Q("relative px-4 whitespace-nowrap bg-bg-container", xa[t], Sa[f]),
4145
4262
  children: [
4146
4263
  /* @__PURE__ */ J("div", {
4147
4264
  className: "flex items-center gap-1",
@@ -4169,33 +4286,33 @@ function pa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4169
4286
  className: "truncate",
4170
4287
  children: h
4171
4288
  }),
4172
- m && /* @__PURE__ */ J(Xn, { children: [/* @__PURE__ */ q(Zn, { children: /* @__PURE__ */ q("button", {
4289
+ m && /* @__PURE__ */ J(fr, { children: [/* @__PURE__ */ q(pr, { children: /* @__PURE__ */ q("button", {
4173
4290
  type: "button",
4174
4291
  "aria-label": `${typeof h == "string" ? h : c.id} column options`,
4175
4292
  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
4293
  children: /* @__PURE__ */ q(R, { className: "h-3.5 w-3.5" })
4177
- }) }), /* @__PURE__ */ J($n, {
4294
+ }) }), /* @__PURE__ */ J(hr, {
4178
4295
  align: "start",
4179
4296
  children: [
4180
4297
  o && c.getCanPin() && /* @__PURE__ */ J(K, { children: [
4181
- c.getIsPinned() !== "left" && /* @__PURE__ */ q(er, {
4298
+ c.getIsPinned() !== "left" && /* @__PURE__ */ q(gr, {
4182
4299
  icon: /* @__PURE__ */ q(oe, { className: "h-4 w-4" }),
4183
4300
  onSelect: () => c.pin("left"),
4184
4301
  children: "Pin left"
4185
4302
  }),
4186
- c.getIsPinned() !== "right" && /* @__PURE__ */ q(er, {
4303
+ c.getIsPinned() !== "right" && /* @__PURE__ */ q(gr, {
4187
4304
  icon: /* @__PURE__ */ q(oe, { className: "h-4 w-4" }),
4188
4305
  onSelect: () => c.pin("right"),
4189
4306
  children: "Pin right"
4190
4307
  }),
4191
- c.getIsPinned() && /* @__PURE__ */ q(er, {
4308
+ c.getIsPinned() && /* @__PURE__ */ q(gr, {
4192
4309
  icon: /* @__PURE__ */ q(se, { className: "h-4 w-4" }),
4193
4310
  onSelect: () => c.pin(!1),
4194
4311
  children: "Unpin"
4195
4312
  })
4196
4313
  ] }),
4197
- o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ q(tr, {}),
4198
- s && c.getCanHide() && /* @__PURE__ */ q(er, {
4314
+ o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ q(_r, {}),
4315
+ s && c.getCanHide() && /* @__PURE__ */ q(gr, {
4199
4316
  icon: /* @__PURE__ */ q(M, { className: "h-4 w-4" }),
4200
4317
  onSelect: () => c.toggleVisibility(!1),
4201
4318
  children: "Hide column"
@@ -4207,7 +4324,7 @@ function pa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4207
4324
  r && c.getCanFilter() && /* @__PURE__ */ q("div", {
4208
4325
  className: "mt-2 normal-case",
4209
4326
  onClick: (e) => e.stopPropagation(),
4210
- children: /* @__PURE__ */ q(Yi, { column: c })
4327
+ children: /* @__PURE__ */ q(ua, { column: c })
4211
4328
  }),
4212
4329
  a && c.getCanResize() && /* @__PURE__ */ q("div", {
4213
4330
  onMouseDown: e.getResizeHandler(),
@@ -4218,8 +4335,8 @@ function pa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4218
4335
  ]
4219
4336
  });
4220
4337
  }
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));
4338
+ function ka({ row: e, onRowClick: t }) {
4339
+ 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
4340
  return /* @__PURE__ */ J("div", {
4224
4341
  "data-selected": e.getIsSelected() || void 0,
4225
4342
  onClick: t ? () => t(e.original) : void 0,
@@ -4254,26 +4371,26 @@ function ma({ row: e, onRowClick: t }) {
4254
4371
  })]
4255
4372
  });
4256
4373
  }
4257
- function ha({ rowCount: e }) {
4374
+ function Aa({ rowCount: e }) {
4258
4375
  return /* @__PURE__ */ q("div", { children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ J("div", {
4259
4376
  "aria-hidden": t > 0 || void 0,
4260
4377
  className: "flex flex-col gap-2 border-b border-border-default p-4",
4261
- children: [/* @__PURE__ */ q(Ci, {
4378
+ children: [/* @__PURE__ */ q(Ri, {
4262
4379
  variant: "text",
4263
4380
  width: "60%"
4264
- }), /* @__PURE__ */ q(Ci, {
4381
+ }), /* @__PURE__ */ q(Ri, {
4265
4382
  variant: "text",
4266
4383
  width: "90%"
4267
4384
  })]
4268
4385
  }, t)) });
4269
4386
  }
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, {
4387
+ function ja(e, t) {
4388
+ 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
4389
  pageIndex: 0,
4273
4390
  pageSize: L
4274
4391
  }), X = Ne({
4275
4392
  data: n,
4276
- columns: f(() => !w || r.some((e) => e.id === "select") ? r : [ca(), ...r], [r, w]),
4393
+ columns: f(() => !w || r.some((e) => e.id === "select") ? r : [Ca(), ...r], [r, w]),
4277
4394
  getRowId: s,
4278
4395
  state: {
4279
4396
  sorting: _e,
@@ -4322,7 +4439,7 @@ function ga(e, t) {
4322
4439
  Z,
4323
4440
  Ge
4324
4441
  ]);
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({
4442
+ 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
4443
  columnOrder: Ye,
4327
4444
  onColumnOrderChange: Ie
4328
4445
  }), Ze = (e) => Xe.handleDragEnd(e), Qe = p(null), $e = De({
@@ -4343,13 +4460,13 @@ function ga(e, t) {
4343
4460
  className: Q("group border-t border-border-default", B && "cursor-pointer"),
4344
4461
  children: e.getVisibleCells().map((e) => /* @__PURE__ */ q("td", {
4345
4462
  "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"]),
4463
+ style: Ta(e.column),
4464
+ 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
4465
  children: Oe(e.column.columnDef.cell, e.getContext())
4349
4466
  }, e.id))
4350
4467
  }, e.id), ot = (e, t) => /* @__PURE__ */ q("tr", {
4351
4468
  "data-test-id": rt(`header-row-${e}`),
4352
- children: t.map((e) => /* @__PURE__ */ q(pa, {
4469
+ children: t.map((e) => /* @__PURE__ */ q(Oa, {
4353
4470
  header: e,
4354
4471
  density: V,
4355
4472
  enableSorting: c,
@@ -4365,7 +4482,7 @@ function ga(e, t) {
4365
4482
  children: [/* @__PURE__ */ q("thead", {
4366
4483
  className: Q("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", (H || U) && "sticky top-0 z-10"),
4367
4484
  children: X.getHeaderGroups().map((e) => ot(e.id, e.headers))
4368
- }), /* @__PURE__ */ q("tbody", { children: i ? /* @__PURE__ */ q(Qi, {
4485
+ }), /* @__PURE__ */ q("tbody", { children: i ? /* @__PURE__ */ q(pa, {
4369
4486
  columnCount: He,
4370
4487
  rowCount: ze.pageSize,
4371
4488
  testIdPrefix: ge
@@ -4374,7 +4491,7 @@ function ga(e, t) {
4374
4491
  children: /* @__PURE__ */ q("td", {
4375
4492
  colSpan: He,
4376
4493
  className: "p-0",
4377
- children: /* @__PURE__ */ q(ar, {
4494
+ children: /* @__PURE__ */ q(xr, {
4378
4495
  size: "sm",
4379
4496
  title: o
4380
4497
  })
@@ -4415,7 +4532,7 @@ function ga(e, t) {
4415
4532
  "data-test-id": ge,
4416
4533
  className: Q("w-full rounded-lg border border-border-default bg-bg-default", U && "h-full flex flex-col", W, G),
4417
4534
  children: [
4418
- de === !1 ? null : de ?? /* @__PURE__ */ q(ta, {
4535
+ de === !1 ? null : de ?? /* @__PURE__ */ q(ga, {
4419
4536
  table: X,
4420
4537
  enableGlobalFilter: x,
4421
4538
  enableColumnVisibility: O,
@@ -4426,7 +4543,7 @@ function ga(e, t) {
4426
4543
  }),
4427
4544
  a ? /* @__PURE__ */ q("div", {
4428
4545
  className: "p-4",
4429
- children: /* @__PURE__ */ q(mr, {
4546
+ children: /* @__PURE__ */ q(kr, {
4430
4547
  variant: "danger",
4431
4548
  title: "Couldn't load data",
4432
4549
  description: a
@@ -4451,15 +4568,15 @@ function ga(e, t) {
4451
4568
  })
4452
4569
  }), /* @__PURE__ */ q("div", {
4453
4570
  className: "md:hidden",
4454
- children: i ? /* @__PURE__ */ q(ha, { rowCount: ze.pageSize }) : Z.length === 0 ? /* @__PURE__ */ q(ar, {
4571
+ children: i ? /* @__PURE__ */ q(Aa, { rowCount: ze.pageSize }) : Z.length === 0 ? /* @__PURE__ */ q(xr, {
4455
4572
  size: "sm",
4456
4573
  title: o
4457
- }) : Z.map((e) => /* @__PURE__ */ q(ma, {
4574
+ }) : Z.map((e) => /* @__PURE__ */ q(ka, {
4458
4575
  row: e,
4459
4576
  onRowClick: B
4460
4577
  }, e.id))
4461
4578
  })] }),
4462
- I && !a && /* @__PURE__ */ q(Zi, {
4579
+ I && !a && /* @__PURE__ */ q(fa, {
4463
4580
  table: X,
4464
4581
  pageSizeOptions: R,
4465
4582
  locale: ae,
@@ -4468,17 +4585,17 @@ function ga(e, t) {
4468
4585
  ]
4469
4586
  });
4470
4587
  }
4471
- var _a = a(ga);
4472
- _a.displayName = "TableV2";
4588
+ var Ma = a(ja);
4589
+ Ma.displayName = "TableV2";
4473
4590
  //#endregion
4474
4591
  //#region src/components/Tabs/Tabs.tsx
4475
- var va = r(null);
4476
- function ya() {
4477
- let e = c(va);
4592
+ var Na = r(null);
4593
+ function Pa() {
4594
+ let e = c(Na);
4478
4595
  if (!e) throw Error("Tab components must be used inside <Tabs>");
4479
4596
  return e;
4480
4597
  }
4481
- function ba(t) {
4598
+ function Fa(t) {
4482
4599
  let n = [];
4483
4600
  e.forEach(t, (e) => {
4484
4601
  o(e) && n.push(e);
@@ -4492,9 +4609,9 @@ function ba(t) {
4492
4609
  }
4493
4610
  return "";
4494
4611
  }
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, {
4612
+ 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) {
4613
+ let [f, p] = m(() => e ?? Fa(s)), h = t !== void 0, g = h ? t : f, _ = u();
4614
+ return /* @__PURE__ */ q(Na.Provider, {
4498
4615
  value: {
4499
4616
  value: g,
4500
4617
  setValue: (e) => {
@@ -4513,8 +4630,8 @@ var xa = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4513
4630
  children: s
4514
4631
  })
4515
4632
  });
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);
4633
+ }), La = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4634
+ let { variant: s } = Pa(), c = p(null);
4518
4635
  return /* @__PURE__ */ q("div", {
4519
4636
  ref: Gt(o, c),
4520
4637
  role: "tablist",
@@ -4536,12 +4653,12 @@ var xa = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4536
4653
  children: e
4537
4654
  });
4538
4655
  });
4539
- Sa.displayName = "TabList";
4540
- var Ca = {
4656
+ La.displayName = "TabList";
4657
+ var Ra = {
4541
4658
  lg: "h-11 px-4 text-p-md",
4542
4659
  md: "h-10 px-3 text-p-std",
4543
4660
  sm: "h-8 px-2.5 text-p-sm"
4544
- }, wa = {
4661
+ }, za = {
4545
4662
  underline: {
4546
4663
  on: "bg-brand-500 text-white",
4547
4664
  off: "bg-bg-subtle text-fg-secondary"
@@ -4554,8 +4671,8 @@ var Ca = {
4554
4671
  on: "bg-brand-500 text-white",
4555
4672
  off: "bg-bg-subtle text-fg-secondary"
4556
4673
  }
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", {
4674
+ }, 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) {
4675
+ 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
4676
  ref: m,
4560
4677
  id: w,
4561
4678
  type: "button",
@@ -4584,7 +4701,7 @@ var Ca = {
4584
4701
  ...a,
4585
4702
  children: i
4586
4703
  }) : /* @__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),
4704
+ 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
4705
  children: i
4589
4706
  })),
4590
4707
  _ === "underline" && /* @__PURE__ */ q("span", {
@@ -4606,8 +4723,8 @@ var Ca = {
4606
4723
  children: o
4607
4724
  })]
4608
4725
  }) : 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);
4726
+ }), Va = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4727
+ let { value: c, tabsId: l } = Pa(), u = Ye(c, e);
4611
4728
  return !u && !a ? null : /* @__PURE__ */ q("div", {
4612
4729
  ref: s,
4613
4730
  id: i ?? `${l}-panel-${e}`,
@@ -4619,7 +4736,7 @@ var Ca = {
4619
4736
  ...o,
4620
4737
  children: t
4621
4738
  });
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) {
4739
+ }), 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
4740
  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
4741
  return /* @__PURE__ */ J("div", {
4625
4742
  className: Q("flex flex-col gap-1.5 w-full", f),
@@ -4681,7 +4798,7 @@ var Ca = {
4681
4798
  })
4682
4799
  ]
4683
4800
  });
4684
- }), Oa = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4801
+ }), Ua = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4685
4802
  let c = u(), l = n ?? c;
4686
4803
  return /* @__PURE__ */ J("label", {
4687
4804
  htmlFor: l,
@@ -4721,20 +4838,20 @@ var Ca = {
4721
4838
  children: t
4722
4839
  })]
4723
4840
  });
4724
- }), ka = {
4841
+ }), Wa = {
4725
4842
  lg: "px-3 py-2 text-p-std",
4726
4843
  sm: "px-2 py-1 text-p-sm"
4727
- }, Aa = {
4844
+ }, Ga = {
4728
4845
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
4729
4846
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
4730
4847
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
4731
4848
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
4732
- }, ja = {
4849
+ }, Ka = {
4733
4850
  top: "top-full left-1/2 -translate-x-1/2 border-t-fg-default border-x-transparent border-b-transparent",
4734
4851
  bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-fg-default border-x-transparent border-t-transparent",
4735
4852
  left: "left-full top-1/2 -translate-y-1/2 border-l-fg-default border-y-transparent border-r-transparent",
4736
4853
  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) {
4854
+ }, qa = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4738
4855
  let [d, f] = m(!1), h = p(null), g = u(), _ = () => {
4739
4856
  h.current && clearTimeout(h.current), h.current = setTimeout(() => f(!0), a);
4740
4857
  }, v = () => {
@@ -4755,155 +4872,31 @@ var Ca = {
4755
4872
  }), d && /* @__PURE__ */ J("span", {
4756
4873
  role: "tooltip",
4757
4874
  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),
4875
+ 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
4876
  children: [e, /* @__PURE__ */ q("span", {
4760
4877
  "aria-hidden": !0,
4761
- className: Q("absolute h-0 w-0 border-4", ja[r])
4878
+ className: Q("absolute h-0 w-0 border-4", Ka[r])
4762
4879
  })]
4763
4880
  })]
4764
4881
  });
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 = {
4882
+ }), 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
4883
  lg: "xl",
4767
4884
  sm: "lg"
4768
- }, Ia = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4769
- return /* @__PURE__ */ q(ar, {
4885
+ }, Za = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4886
+ return /* @__PURE__ */ q(xr, {
4770
4887
  ref: a,
4771
4888
  size: e,
4772
- title: t ?? Na,
4773
- description: n ?? Pa,
4889
+ title: t ?? Ja,
4890
+ description: n ?? Ya,
4774
4891
  illustration: r ?? /* @__PURE__ */ q(wn, {
4775
4892
  icon: k,
4776
4893
  tone: "brand",
4777
4894
  shape: "circle",
4778
- size: Fa[e]
4895
+ size: Xa[e]
4779
4896
  }),
4780
4897
  ...i
4781
4898
  });
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 = {
4899
+ }), Qa = {
4907
4900
  900: "#31531C",
4908
4901
  800: "#416E26",
4909
4902
  700: "#518A2F",
@@ -5170,6 +5163,6 @@ var Qa = {
5170
5163
  z5: "0 8px 16px 0 rgba(0, 0, 0, 0.12), 0 24px 32px 0 rgba(0, 0, 0, 0.12)"
5171
5164
  };
5172
5165
  //#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 };
5166
+ 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
5167
 
5175
5168
  //# sourceMappingURL=index.js.map