@vellira-ui/react 2.36.0 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1713,92 +1713,234 @@ var Vt = Object.assign(zt, {
1713
1713
  });
1714
1714
  Vt.displayName = "Modal";
1715
1715
  //#endregion
1716
- //#region src/components/RadioGroup/RadioGroupContext.ts
1716
+ //#region src/components/RadioGroup/internal/RadioGroupContext.tsx
1717
1717
  var Ht = s(null), Ut = Ht.Provider;
1718
1718
  function Wt() {
1719
1719
  return d(Ht);
1720
1720
  }
1721
- var Gt = {
1722
- root: "_root_1n02e_1",
1723
- label: "_label_1n02e_9",
1724
- required: "_required_1n02e_21",
1725
- description: "_description_1n02e_26",
1726
- items: "_items_1n02e_34",
1727
- vertical: "_vertical_1n02e_39",
1728
- horizontal: "_horizontal_1n02e_45",
1729
- error: "_error_1n02e_51",
1730
- disabled: "_disabled_1n02e_59",
1731
- invalid: "_invalid_1n02e_75"
1732
- }, Kt = c(({ value: e, defaultValue: t = "", onValueChange: i, disabled: a = !1, required: o = !1, size: s = "md", color: c = "primary", name: l, label: u, description: d, error: f, orientation: m = "vertical", children: h, className: g, id: _, ...v }, y) => {
1733
- let b = p(), x = _ ?? b, S = u ? `${x}-label` : void 0, C = d ? `${x}-description` : void 0, w = f ? `${x}-error` : void 0, T = [C, w].filter(Boolean).join(" ") || void 0, E = l ?? `${x}-radio`, [D, O] = ge({
1721
+ var J = {
1722
+ root: "_root_1avxs_1",
1723
+ invalid: "_invalid_1avxs_27",
1724
+ control: "_control_1avxs_27",
1725
+ label: "_label_1avxs_30",
1726
+ wrapper: "_wrapper_1avxs_33",
1727
+ input: "_input_1avxs_34",
1728
+ disabled: "_disabled_1avxs_37",
1729
+ description: "_description_1avxs_45",
1730
+ colorPrimary: "_colorPrimary_1avxs_49",
1731
+ colorNeutral: "_colorNeutral_1avxs_65",
1732
+ colorSuccess: "_colorSuccess_1avxs_81",
1733
+ colorWarning: "_colorWarning_1avxs_97",
1734
+ colorDanger: "_colorDanger_1avxs_113",
1735
+ sm: "_sm_1avxs_129",
1736
+ md: "_md_1avxs_138",
1737
+ lg: "_lg_1avxs_147",
1738
+ indicator: "_indicator_1avxs_202",
1739
+ customIcon: "_customIcon_1avxs_216",
1740
+ "radio-pop": "_radio-pop_1avxs_1",
1741
+ "radio-indicator-in": "_radio-indicator-in_1avxs_1",
1742
+ content: "_content_1avxs_339",
1743
+ error: "_error_1avxs_356"
1744
+ }, Gt = {
1745
+ primary: J.colorPrimary,
1746
+ neutral: J.colorNeutral,
1747
+ success: J.colorSuccess,
1748
+ warning: J.colorWarning,
1749
+ danger: J.colorDanger
1750
+ }, Kt = c(({ value: e, checked: t, defaultChecked: i = !1, disabled: a = !1, required: o = !1, size: s, color: c, error: l, onCheckedChange: u, label: d, description: f, icon: m, wrapperClassName: h, className: g, id: _, name: v, "aria-describedby": y, ...b }, x) => {
1751
+ let S = Wt(), C = p(), w = _ ?? C, T = f ? `${w}-description` : void 0, E = l ? `${w}-error` : void 0, D = [
1752
+ T,
1753
+ E,
1754
+ S?.describedBy,
1755
+ y
1756
+ ].filter(Boolean).join(" ") || void 0, O = S !== null, [k, A] = ge({
1757
+ value: t,
1758
+ defaultValue: i,
1759
+ onChange: u
1760
+ }), j = O ? S.value === e : k, M = !!S?.disabled || a, P = !!S?.required || o, F = S?.name ?? v, I = !!(l || S?.invalid), L = s ?? S?.size ?? "md", R = c ?? S?.color ?? "primary", z = (t) => {
1761
+ if (!M) {
1762
+ if (O) {
1763
+ S.onValueChange(e);
1764
+ return;
1765
+ }
1766
+ A(t.currentTarget.checked);
1767
+ }
1768
+ };
1769
+ return /* @__PURE__ */ r("div", {
1770
+ className: N(J.root, J[L], I && J.invalid, M && J.disabled, Gt[R], g),
1771
+ children: [/* @__PURE__ */ r("label", {
1772
+ htmlFor: w,
1773
+ className: N(J.wrapper, h),
1774
+ children: [
1775
+ /* @__PURE__ */ n("input", {
1776
+ ...b,
1777
+ ref: x,
1778
+ id: w,
1779
+ type: "radio",
1780
+ name: F,
1781
+ value: e,
1782
+ checked: j,
1783
+ disabled: M,
1784
+ required: P,
1785
+ "aria-invalid": I || void 0,
1786
+ "aria-describedby": D,
1787
+ className: J.input,
1788
+ onChange: z
1789
+ }),
1790
+ /* @__PURE__ */ n("span", {
1791
+ className: J.control,
1792
+ "aria-hidden": "true",
1793
+ children: /* @__PURE__ */ n("span", {
1794
+ className: N(J.indicator, m && J.customIcon),
1795
+ children: m
1796
+ })
1797
+ }),
1798
+ (d || f) && /* @__PURE__ */ r("span", {
1799
+ className: J.content,
1800
+ children: [d && /* @__PURE__ */ n("span", {
1801
+ className: J.label,
1802
+ children: d
1803
+ }), f && /* @__PURE__ */ n("span", {
1804
+ id: T,
1805
+ className: J.description,
1806
+ children: f
1807
+ })]
1808
+ })
1809
+ ]
1810
+ }), l && /* @__PURE__ */ n("div", {
1811
+ id: E,
1812
+ className: J.error,
1813
+ children: l
1814
+ })]
1815
+ });
1816
+ });
1817
+ Kt.displayName = "Radio";
1818
+ //#endregion
1819
+ //#region src/components/RadioGroup/Item/RadioGroupItem.tsx
1820
+ var qt = c((e, t) => /* @__PURE__ */ n(Kt, {
1821
+ ...e,
1822
+ ref: t
1823
+ }));
1824
+ qt.displayName = "RadioGroup.Item";
1825
+ //#endregion
1826
+ //#region src/components/RadioGroup/internal/useRadioGroupCollection.ts
1827
+ var Jt = (e) => {
1828
+ let t = e.current;
1829
+ return t ? Array.from(t.querySelectorAll("input[type=\"radio\"]")) : [];
1830
+ }, Yt = (e) => Jt(e).filter((e) => !e.disabled), Xt = ["ArrowLeft", "ArrowRight"], Zt = ["ArrowUp", "ArrowDown"];
1831
+ function Qt({ rootRef: e, orientation: t }) {
1832
+ return u((n) => {
1833
+ let r = Xt.includes(n.key), i = Zt.includes(n.key), a = n.key === "Home" || n.key === "End";
1834
+ if (!r && !i && !a || t === "horizontal" && i || t === "vertical" && r) return;
1835
+ let o = Yt(e);
1836
+ if (o.length === 0) return;
1837
+ n.preventDefault();
1838
+ let s = document.activeElement, c = o.findIndex((e) => e === s), l = o.findIndex((e) => e.checked), u = c >= 0 ? c : Math.max(l, 0), d = u;
1839
+ n.key === "Home" ? d = 0 : n.key === "End" ? d = o.length - 1 : n.key === "ArrowRight" || n.key === "ArrowDown" ? d = (u + 1) % o.length : (n.key === "ArrowLeft" || n.key === "ArrowUp") && (d = (u - 1 + o.length) % o.length);
1840
+ let f = o[d];
1841
+ f?.focus(), f?.click();
1842
+ }, [t, e]);
1843
+ }
1844
+ var $t = {
1845
+ root: "_root_1s3vp_1",
1846
+ sm: "_sm_1s3vp_32",
1847
+ md: "_md_1s3vp_58",
1848
+ lg: "_lg_1s3vp_84",
1849
+ label: "_label_1s3vp_110",
1850
+ required: "_required_1s3vp_122",
1851
+ description: "_description_1s3vp_127",
1852
+ items: "_items_1s3vp_135",
1853
+ vertical: "_vertical_1s3vp_140",
1854
+ horizontal: "_horizontal_1s3vp_146",
1855
+ error: "_error_1s3vp_152",
1856
+ disabled: "_disabled_1s3vp_160",
1857
+ invalid: "_invalid_1s3vp_176"
1858
+ }, en = c(({ value: e, defaultValue: t = "", onValueChange: i, disabled: a = !1, required: o = !1, size: s = "md", color: c = "primary", name: l, label: u, description: d, error: f, orientation: m = "vertical", children: g, className: _, id: v, onKeyDown: y, ...b }, x) => {
1859
+ let S = h(null), C = p(), w = v ?? C, T = u ? `${w}-label` : void 0, E = d ? `${w}-description` : void 0, D = f ? `${w}-error` : void 0, O = [E, D].filter(Boolean).join(" ") || void 0, k = l ?? `${w}-radio`, [A, j] = ge({
1734
1860
  value: e,
1735
1861
  defaultValue: t,
1736
1862
  onChange: i
1737
- }), k = !!f;
1863
+ }), M = !!f, P = Qt({
1864
+ rootRef: S,
1865
+ orientation: m
1866
+ }), F = (e) => {
1867
+ if (S.current = e, typeof x == "function") {
1868
+ x(e);
1869
+ return;
1870
+ }
1871
+ x && (x.current = e);
1872
+ };
1738
1873
  return /* @__PURE__ */ r("div", {
1739
- ...v,
1740
- ref: y,
1741
- id: x,
1874
+ ...b,
1875
+ ref: F,
1876
+ id: w,
1742
1877
  role: "radiogroup",
1743
- "aria-labelledby": S,
1744
- "aria-describedby": T,
1878
+ "aria-labelledby": T,
1879
+ "aria-describedby": O,
1745
1880
  "aria-disabled": a || void 0,
1746
1881
  "aria-required": o || void 0,
1747
- "aria-invalid": k || void 0,
1748
- className: N(Gt.root, k && Gt.invalid, a && Gt.disabled, g),
1882
+ "aria-invalid": M || void 0,
1883
+ onKeyDown: (e) => {
1884
+ y?.(e), e.defaultPrevented || P(e);
1885
+ },
1886
+ className: N($t.root, $t[s], M && $t.invalid, a && $t.disabled, _),
1749
1887
  children: [
1750
1888
  u && /* @__PURE__ */ r("div", {
1751
- id: S,
1752
- className: Gt.label,
1889
+ id: T,
1890
+ className: $t.label,
1753
1891
  children: [u, o && /* @__PURE__ */ n("span", {
1754
- className: Gt.required,
1892
+ className: $t.required,
1755
1893
  "aria-hidden": "true",
1756
1894
  children: "*"
1757
1895
  })]
1758
1896
  }),
1759
1897
  d && /* @__PURE__ */ n("div", {
1760
- id: C,
1761
- className: Gt.description,
1898
+ id: E,
1899
+ className: $t.description,
1762
1900
  children: d
1763
1901
  }),
1764
1902
  /* @__PURE__ */ n(Ut, {
1765
1903
  value: {
1766
- name: E,
1767
- value: D,
1904
+ name: k,
1905
+ value: A,
1768
1906
  disabled: a,
1769
1907
  required: o,
1770
- invalid: k,
1908
+ invalid: M,
1771
1909
  size: s,
1772
1910
  color: c,
1773
- describedBy: T,
1774
- onValueChange: O
1911
+ describedBy: O,
1912
+ onValueChange: j
1775
1913
  },
1776
1914
  children: /* @__PURE__ */ n("div", {
1777
- className: N(Gt.items, Gt[m]),
1778
- children: h
1915
+ className: N($t.items, $t[m]),
1916
+ children: g
1779
1917
  })
1780
1918
  }),
1781
1919
  f && /* @__PURE__ */ n("div", {
1782
- id: w,
1783
- className: Gt.error,
1920
+ id: D,
1921
+ className: $t.error,
1784
1922
  children: f
1785
1923
  })
1786
1924
  ]
1787
1925
  });
1788
1926
  });
1789
- Kt.displayName = "RadioGroup";
1927
+ en.displayName = "RadioGroup.Root";
1928
+ //#endregion
1929
+ //#region src/components/RadioGroup/RadioGroup.tsx
1930
+ var tn = Object.assign(en, { Item: qt });
1931
+ tn.displayName = "RadioGroup";
1790
1932
  //#endregion
1791
1933
  //#region src/components/Select/internal/SelectContext.tsx
1792
- var qt = s(null), Jt = qt.Provider;
1793
- function Yt() {
1794
- let e = d(qt);
1934
+ var nn = s(null), rn = nn.Provider;
1935
+ function an() {
1936
+ let e = d(nn);
1795
1937
  if (!e) throw Error("Select compound components must be used inside <Select>");
1796
1938
  return e;
1797
1939
  }
1798
- qt.displayName = "SelectContext";
1940
+ nn.displayName = "SelectContext";
1799
1941
  //#endregion
1800
1942
  //#region src/components/Select/internal/useSelectVirtualization.ts
1801
- function Xt({ loading: e, options: t, scrollTop: n, virtual: r }) {
1943
+ function on({ loading: e, options: t, scrollTop: n, virtual: r }) {
1802
1944
  return m(() => {
1803
1945
  let i = typeof r == "object" ? r : r ? {} : void 0, a = i?.itemHeight ?? 40, o = !!(i && t.length > 0 && !e), s = o ? Math.max(0, Math.floor(n / a) - 2) : 0, c = o ? Math.ceil(300 / a) + 4 : t.length, l = o ? t.slice(s, s + c) : t, u = o ? s * a : 0;
1804
1946
  return {
@@ -1817,7 +1959,7 @@ function Xt({ loading: e, options: t, scrollTop: n, virtual: r }) {
1817
1959
  r
1818
1960
  ]);
1819
1961
  }
1820
- var Zt = {
1962
+ var sn = {
1821
1963
  option: "_option_1l7x7_1",
1822
1964
  selected: "_selected_1l7x7_19",
1823
1965
  disabled: "_disabled_1l7x7_19",
@@ -1835,22 +1977,22 @@ var Zt = {
1835
1977
  danger: "_danger_1l7x7_283",
1836
1978
  check: "_check_1l7x7_347",
1837
1979
  checkPop: "_checkPop_1l7x7_1"
1838
- }, Qt = () => null;
1839
- Qt.__velliraSelectPart = "item", Qt.displayName = "Select.Item";
1840
- var $t = ({ option: e, isSelected: i, isActive: a, optionId: o, renderOption: s, onSelect: c, onMouseEnter: l }) => {
1980
+ }, cn = () => null;
1981
+ cn.__velliraSelectPart = "item", cn.displayName = "Select.Item";
1982
+ var ln = ({ option: e, isSelected: i, isActive: a, optionId: o, renderOption: s, onSelect: c, onMouseEnter: l }) => {
1841
1983
  let u = !!e.disabled;
1842
1984
  return /* @__PURE__ */ r("li", {
1843
1985
  id: o,
1844
1986
  role: "option",
1845
1987
  "aria-selected": i,
1846
1988
  "aria-disabled": u || void 0,
1847
- className: N(Zt.option, {
1848
- [Zt.selected]: i,
1849
- [Zt.active]: a,
1850
- [Zt.disabled]: u,
1851
- [Zt.success]: e.color === "success",
1852
- [Zt.warning]: e.color === "warning",
1853
- [Zt.danger]: e.color === "danger"
1989
+ className: N(sn.option, {
1990
+ [sn.selected]: i,
1991
+ [sn.active]: a,
1992
+ [sn.disabled]: u,
1993
+ [sn.success]: e.color === "success",
1994
+ [sn.warning]: e.color === "warning",
1995
+ [sn.danger]: e.color === "danger"
1854
1996
  }),
1855
1997
  onClick: () => {
1856
1998
  u || c(e.value);
@@ -1859,40 +2001,40 @@ var $t = ({ option: e, isSelected: i, isActive: a, optionId: o, renderOption: s,
1859
2001
  u || l();
1860
2002
  },
1861
2003
  children: [s ? /* @__PURE__ */ n("span", {
1862
- className: Zt.custom,
2004
+ className: sn.custom,
1863
2005
  children: s(e)
1864
2006
  }) : /* @__PURE__ */ r(t, { children: [
1865
2007
  e.icon && /* @__PURE__ */ n("span", {
1866
- className: Zt.icon,
2008
+ className: sn.icon,
1867
2009
  children: e.icon
1868
2010
  }),
1869
2011
  /* @__PURE__ */ r("span", {
1870
- className: Zt.content,
2012
+ className: sn.content,
1871
2013
  children: [/* @__PURE__ */ n("span", {
1872
- className: Zt.label,
2014
+ className: sn.label,
1873
2015
  children: e.label
1874
2016
  }), e.description && /* @__PURE__ */ n("span", {
1875
- className: Zt.description,
2017
+ className: sn.description,
1876
2018
  children: e.description
1877
2019
  })]
1878
2020
  }),
1879
2021
  e.badge && /* @__PURE__ */ n("span", {
1880
- className: Zt.badge,
2022
+ className: sn.badge,
1881
2023
  children: e.badge
1882
2024
  }),
1883
2025
  e.shortcut && /* @__PURE__ */ n("kbd", {
1884
- className: Zt.shortcut,
2026
+ className: sn.shortcut,
1885
2027
  children: e.shortcut
1886
2028
  })
1887
2029
  ] }), /* @__PURE__ */ n("span", {
1888
- className: Zt.check,
2030
+ className: sn.check,
1889
2031
  "aria-hidden": "true",
1890
2032
  children: i && /* @__PURE__ */ n(v, {})
1891
2033
  })]
1892
2034
  });
1893
2035
  };
1894
- $t.displayName = "SelectItemRow";
1895
- var J = {
2036
+ ln.displayName = "SelectItemRow";
2037
+ var Y = {
1896
2038
  dropdown: "_dropdown_k5nye_1",
1897
2039
  dropdownIn: "_dropdownIn_k5nye_1",
1898
2040
  primary: "_primary_k5nye_103",
@@ -1917,17 +2059,17 @@ var J = {
1917
2059
  separator: "_separator_k5nye_1556",
1918
2060
  virtualSpacer: "_virtualSpacer_k5nye_1562",
1919
2061
  mobileDropdownIn: "_mobileDropdownIn_k5nye_1"
1920
- }, en = ({ children: e, className: t }) => {
1921
- let { contentProps: r } = Yt(), i = nn(e);
1922
- return /* @__PURE__ */ n(tn, {
2062
+ }, un = ({ children: e, className: t }) => {
2063
+ let { contentProps: r } = an(), i = fn(e);
2064
+ return /* @__PURE__ */ n(dn, {
1923
2065
  ...r,
1924
2066
  ...i,
1925
2067
  className: [r.className, t].filter(Boolean).join(" ")
1926
2068
  });
1927
2069
  };
1928
- en.__velliraSelectPart = "content", en.displayName = "Select.Content";
1929
- var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style: s, options: c, entries: l, multiple: d, selectedValues: p, color: m = "primary", variant: _ = "outline", searchable: v, command: y, virtual: b, portal: S = !0, searchValue: C = "", searchPlaceholder: w = "Search...", loading: T, loadingText: E = "Loading...", noOptionsText: D, searchSlot: O, headerSlot: k, emptySlot: A, loadingSlot: j, renderOption: M, selectedValue: N, activeIndex: P, visualActiveIndex: F = P, className: I, onSelect: L, onSelectGroup: R, onMouseEnter: z, onSearchChange: ee }) => {
1930
- let B = h(null), te = h(!1), [ne, re] = g(null), [ie, ae] = g(0), { bottomSpacerHeight: oe, isVirtual: V, itemHeight: se, startIndex: ce, topSpacerHeight: le, viewportHeight: ue, visibleOptions: de } = Xt({
2070
+ un.__velliraSelectPart = "content", un.displayName = "Select.Content";
2071
+ var dn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style: s, options: c, entries: l, multiple: d, selectedValues: p, color: m = "primary", variant: _ = "outline", searchable: v, command: y, virtual: b, portal: S = !0, searchValue: C = "", searchPlaceholder: w = "Search...", loading: T, loadingText: E = "Loading...", noOptionsText: D, searchSlot: O, headerSlot: k, emptySlot: A, loadingSlot: j, renderOption: M, selectedValue: N, activeIndex: P, visualActiveIndex: F = P, className: I, onSelect: L, onSelectGroup: R, onMouseEnter: z, onSearchChange: ee }) => {
2072
+ let B = h(null), te = h(!1), [ne, re] = g(null), [ie, ae] = g(0), { bottomSpacerHeight: oe, isVirtual: V, itemHeight: se, startIndex: ce, topSpacerHeight: le, viewportHeight: ue, visibleOptions: de } = on({
1931
2073
  loading: T,
1932
2074
  options: c,
1933
2075
  scrollTop: ie,
@@ -1976,10 +2118,10 @@ var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
1976
2118
  ref: H,
1977
2119
  tabIndex: 0,
1978
2120
  className: [
1979
- J.dropdown,
1980
- J[m],
1981
- J[_],
1982
- y ? J.command : void 0,
2121
+ Y.dropdown,
2122
+ Y[m],
2123
+ Y[_],
2124
+ y ? Y.command : void 0,
1983
2125
  I
1984
2126
  ].filter(Boolean).join(" "),
1985
2127
  style: s,
@@ -1989,10 +2131,10 @@ var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
1989
2131
  children: [
1990
2132
  k,
1991
2133
  O ?? (v && /* @__PURE__ */ r("div", {
1992
- className: J.searchWrap,
2134
+ className: Y.searchWrap,
1993
2135
  children: [/* @__PURE__ */ n("input", {
1994
2136
  ref: B,
1995
- className: J.search,
2137
+ className: Y.search,
1996
2138
  value: C,
1997
2139
  placeholder: y ? "Type a command..." : w,
1998
2140
  "aria-label": "Search options",
@@ -2000,7 +2142,7 @@ var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2000
2142
  onChange: (e) => ee?.(e.target.value)
2001
2143
  }), C && /* @__PURE__ */ n("button", {
2002
2144
  type: "button",
2003
- className: J.searchClear,
2145
+ className: Y.searchClear,
2004
2146
  "aria-label": "Clear search",
2005
2147
  onClick: () => {
2006
2148
  ee?.(""), B.current?.focus();
@@ -2017,12 +2159,12 @@ var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2017
2159
  role: "option",
2018
2160
  "aria-disabled": "true",
2019
2161
  "aria-selected": "false",
2020
- className: J.empty,
2162
+ className: Y.empty,
2021
2163
  children: j ?? E
2022
2164
  }) : c.length ? /* @__PURE__ */ r(t, { children: [
2023
2165
  V && /* @__PURE__ */ n("li", {
2024
2166
  "aria-hidden": "true",
2025
- className: J.virtualSpacer,
2167
+ className: Y.virtualSpacer,
2026
2168
  style: { height: le }
2027
2169
  }),
2028
2170
  fe.map((e) => {
@@ -2033,16 +2175,16 @@ var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2033
2175
  role: "presentation",
2034
2176
  children: /* @__PURE__ */ r("button", {
2035
2177
  type: "button",
2036
- className: J.groupAction,
2037
- "aria-label": rn(e.selectLabel ?? e.label),
2178
+ className: Y.groupAction,
2179
+ "aria-label": pn(e.selectLabel ?? e.label),
2038
2180
  "aria-pressed": o ? "mixed" : a ? "true" : "false",
2039
2181
  disabled: t.length === 0,
2040
2182
  onClick: () => R(t),
2041
2183
  children: [/* @__PURE__ */ n("span", {
2042
- className: J.groupActionText,
2184
+ className: Y.groupActionText,
2043
2185
  children: e.selectLabel ?? e.label
2044
2186
  }), /* @__PURE__ */ r("span", {
2045
- className: J.groupActionMeta,
2187
+ className: Y.groupActionMeta,
2046
2188
  children: [
2047
2189
  i,
2048
2190
  "/",
@@ -2054,18 +2196,18 @@ var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2054
2196
  }
2055
2197
  return /* @__PURE__ */ n("li", {
2056
2198
  role: "presentation",
2057
- className: J.groupLabel,
2199
+ className: Y.groupLabel,
2058
2200
  children: e.label
2059
2201
  }, e.id);
2060
2202
  }
2061
2203
  if (e.type === "separator") return /* @__PURE__ */ n("li", {
2062
2204
  role: "presentation",
2063
2205
  "aria-hidden": "true",
2064
- className: J.separator,
2206
+ className: Y.separator,
2065
2207
  "data-vellira-select-separator": "true"
2066
2208
  }, e.id);
2067
2209
  let { option: t, optionIndex: a } = e;
2068
- return /* @__PURE__ */ n($t, {
2210
+ return /* @__PURE__ */ n(ln, {
2069
2211
  option: t,
2070
2212
  isSelected: p ? p.includes(t.value) : t.value === N,
2071
2213
  isActive: a === F,
@@ -2077,14 +2219,14 @@ var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2077
2219
  }),
2078
2220
  V && /* @__PURE__ */ n("li", {
2079
2221
  "aria-hidden": "true",
2080
- className: J.virtualSpacer,
2222
+ className: Y.virtualSpacer,
2081
2223
  style: { height: oe }
2082
2224
  })
2083
2225
  ] }) : /* @__PURE__ */ n("li", {
2084
2226
  role: "option",
2085
2227
  "aria-disabled": "true",
2086
2228
  "aria-selected": "false",
2087
- className: J.empty,
2229
+ className: Y.empty,
2088
2230
  children: A ?? D
2089
2231
  })
2090
2232
  })
@@ -2092,8 +2234,8 @@ var tn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2092
2234
  });
2093
2235
  return S ? /* @__PURE__ */ n(we, { children: pe }) : pe;
2094
2236
  };
2095
- tn.displayName = "SelectContentSurface";
2096
- function nn(e) {
2237
+ dn.displayName = "SelectContentSurface";
2238
+ function fn(e) {
2097
2239
  let t, n, r, a;
2098
2240
  return i.forEach(e, (e) => {
2099
2241
  if (!l(e)) return;
@@ -2106,21 +2248,21 @@ function nn(e) {
2106
2248
  searchSlot: n
2107
2249
  };
2108
2250
  }
2109
- function rn(e) {
2251
+ function pn(e) {
2110
2252
  return typeof e == "string" || typeof e == "number" ? String(e) : "Select group";
2111
2253
  }
2112
2254
  //#endregion
2113
2255
  //#region src/components/Select/Content/SelectEmpty.tsx
2114
- var an = ({ children: e }) => /* @__PURE__ */ n(t, { children: e });
2115
- an.__velliraSelectPart = "empty", an.displayName = "Select.Empty";
2256
+ var mn = ({ children: e }) => /* @__PURE__ */ n(t, { children: e });
2257
+ mn.__velliraSelectPart = "empty", mn.displayName = "Select.Empty";
2116
2258
  //#endregion
2117
2259
  //#region src/components/Select/Content/SelectLoading.tsx
2118
- var on = ({ children: e }) => /* @__PURE__ */ n(t, { children: e });
2119
- on.__velliraSelectPart = "loading", on.displayName = "Select.Loading";
2260
+ var hn = ({ children: e }) => /* @__PURE__ */ n(t, { children: e });
2261
+ hn.__velliraSelectPart = "loading", hn.displayName = "Select.Loading";
2120
2262
  //#endregion
2121
2263
  //#region src/components/Select/Content/SelectSearch.tsx
2122
- var sn = ({ placeholder: e, className: t }) => {
2123
- let { contentProps: i } = Yt(), a = h(null), o = i.searchValue ?? "";
2264
+ var gn = ({ placeholder: e, className: t }) => {
2265
+ let { contentProps: i } = an(), a = h(null), o = i.searchValue ?? "";
2124
2266
  return f(() => {
2125
2267
  if (!i.isOpen) return;
2126
2268
  let e = window.setTimeout(() => {
@@ -2128,10 +2270,10 @@ var sn = ({ placeholder: e, className: t }) => {
2128
2270
  }, 0);
2129
2271
  return () => window.clearTimeout(e);
2130
2272
  }, [i.isOpen]), /* @__PURE__ */ r("div", {
2131
- className: J.searchWrap,
2273
+ className: Y.searchWrap,
2132
2274
  children: [/* @__PURE__ */ n("input", {
2133
2275
  ref: a,
2134
- className: N(J.search, t),
2276
+ className: N(Y.search, t),
2135
2277
  value: o,
2136
2278
  placeholder: e ?? (i.command ? "Type a command..." : "Search..."),
2137
2279
  "aria-label": "Search options",
@@ -2139,7 +2281,7 @@ var sn = ({ placeholder: e, className: t }) => {
2139
2281
  onChange: (e) => i.onSearchChange?.(e.target.value)
2140
2282
  }), o && /* @__PURE__ */ n("button", {
2141
2283
  type: "button",
2142
- className: J.searchClear,
2284
+ className: Y.searchClear,
2143
2285
  "aria-label": "Clear search",
2144
2286
  onClick: () => {
2145
2287
  i.onSearchChange?.(""), a.current?.focus();
@@ -2148,38 +2290,38 @@ var sn = ({ placeholder: e, className: t }) => {
2148
2290
  })]
2149
2291
  });
2150
2292
  };
2151
- sn.__velliraSelectPart = "search", sn.displayName = "Select.Search";
2293
+ gn.__velliraSelectPart = "search", gn.displayName = "Select.Search";
2152
2294
  //#endregion
2153
2295
  //#region src/components/Select/Group/SelectGroup.tsx
2154
- var cn = () => null;
2155
- cn.__velliraSelectPart = "group", cn.displayName = "Select.Group";
2296
+ var _n = () => null;
2297
+ _n.__velliraSelectPart = "group", _n.displayName = "Select.Group";
2156
2298
  //#endregion
2157
2299
  //#region src/components/Select/Group/SelectLabel.tsx
2158
- var ln = ({ children: e }) => /* @__PURE__ */ n("div", {
2300
+ var vn = ({ children: e }) => /* @__PURE__ */ n("div", {
2159
2301
  role: "presentation",
2160
- className: J.groupLabel,
2302
+ className: Y.groupLabel,
2161
2303
  children: e
2162
2304
  });
2163
- ln.__velliraSelectPart = "label", ln.displayName = "Select.Label";
2305
+ vn.__velliraSelectPart = "label", vn.displayName = "Select.Label";
2164
2306
  //#endregion
2165
2307
  //#region src/components/Select/Group/SelectSeparator.tsx
2166
- var un = () => null;
2167
- un.__velliraSelectPart = "separator", un.displayName = "Select.Separator";
2308
+ var yn = () => null;
2309
+ yn.__velliraSelectPart = "separator", yn.displayName = "Select.Separator";
2168
2310
  //#endregion
2169
2311
  //#region src/components/Select/Item/SelectItemBadge.tsx
2170
- var dn = () => null;
2171
- dn.__velliraSelectPart = "itemBadge", dn.displayName = "Select.ItemBadge";
2312
+ var bn = () => null;
2313
+ bn.__velliraSelectPart = "itemBadge", bn.displayName = "Select.ItemBadge";
2172
2314
  //#endregion
2173
2315
  //#region src/components/Select/Item/SelectItemDescription.tsx
2174
- var fn = () => null;
2175
- fn.__velliraSelectPart = "itemDescription", fn.displayName = "Select.ItemDescription";
2316
+ var xn = () => null;
2317
+ xn.__velliraSelectPart = "itemDescription", xn.displayName = "Select.ItemDescription";
2176
2318
  //#endregion
2177
2319
  //#region src/components/Select/Item/SelectItemIcon.tsx
2178
- var pn = () => null;
2179
- pn.__velliraSelectPart = "itemIcon", pn.displayName = "Select.ItemIcon";
2320
+ var Sn = () => null;
2321
+ Sn.__velliraSelectPart = "itemIcon", Sn.displayName = "Select.ItemIcon";
2180
2322
  //#endregion
2181
2323
  //#region src/patterns/FormField/FormFieldContext.ts
2182
- var mn = s(null), hn = () => d(mn), gn = {
2324
+ var Cn = s(null), wn = () => d(Cn), Tn = {
2183
2325
  wrapper: "_wrapper_143kr_1",
2184
2326
  sm: "_sm_143kr_41",
2185
2327
  md: "_md_143kr_78",
@@ -2195,8 +2337,8 @@ var mn = s(null), hn = () => d(mn), gn = {
2195
2337
  optional: "_optional_143kr_194",
2196
2338
  labelInfo: "_labelInfo_143kr_201",
2197
2339
  disabled: "_disabled_143kr_243"
2198
- }, _n = (...e) => e.filter(Boolean).join(" ") || void 0, vn = ({ id: e, label: t, description: i, error: a, required: s = !1, disabled: c = !1, invalid: u = !1, orientation: d = "vertical", labelPosition: f = "top", size: m = "md", labelInfo: h, optionalText: g, children: _, bindControl: v = !0, className: y, controlClassName: b, labelClassName: x, descriptionClassName: S, errorClassName: C, ...w }) => {
2199
- let T = p(), E = e ?? T, D = t ? `${E}-label` : void 0, O = i && E ? `${E}-description` : void 0, k = a && E ? `${E}-error` : void 0, A = u || !!a, j = _n(D), M = _n(O, k), P = {
2340
+ }, En = (...e) => e.filter(Boolean).join(" ") || void 0, Dn = ({ id: e, label: t, description: i, error: a, required: s = !1, disabled: c = !1, invalid: u = !1, orientation: d = "vertical", labelPosition: f = "top", size: m = "md", labelInfo: h, optionalText: g, children: _, bindControl: v = !0, className: y, controlClassName: b, labelClassName: x, descriptionClassName: S, errorClassName: C, ...w }) => {
2341
+ let T = p(), E = e ?? T, D = t ? `${E}-label` : void 0, O = i && E ? `${E}-description` : void 0, k = a && E ? `${E}-error` : void 0, A = u || !!a, j = En(D), M = En(O, k), P = {
2200
2342
  controlId: E,
2201
2343
  labelId: D,
2202
2344
  descriptionId: O,
@@ -2212,13 +2354,13 @@ var mn = s(null), hn = () => d(mn), gn = {
2212
2354
  required: F.props.required ?? s,
2213
2355
  disabled: F.props.disabled ?? c,
2214
2356
  "aria-invalid": F.props["aria-invalid"] ?? (A || void 0),
2215
- "aria-labelledby": _n(F.props["aria-labelledby"], j),
2216
- "aria-describedby": _n(F.props["aria-describedby"], M)
2357
+ "aria-labelledby": En(F.props["aria-labelledby"], j),
2358
+ "aria-describedby": En(F.props["aria-describedby"], M)
2217
2359
  }) : _;
2218
2360
  return /* @__PURE__ */ r("div", {
2219
2361
  ...w,
2220
2362
  "aria-disabled": c || void 0,
2221
- className: N(gn.wrapper, gn[d], gn[f], gn[m], c && gn.disabled, y),
2363
+ className: N(Tn.wrapper, Tn[d], Tn[f], Tn[m], c && Tn.disabled, y),
2222
2364
  "data-disabled": c || void 0,
2223
2365
  "data-invalid": A || void 0,
2224
2366
  "data-orientation": d,
@@ -2227,42 +2369,42 @@ var mn = s(null), hn = () => d(mn), gn = {
2227
2369
  t && /* @__PURE__ */ r("label", {
2228
2370
  id: D,
2229
2371
  htmlFor: E,
2230
- className: N(gn.label, x),
2372
+ className: N(Tn.label, x),
2231
2373
  children: [
2232
2374
  /* @__PURE__ */ n("span", {
2233
- className: gn.labelText,
2375
+ className: Tn.labelText,
2234
2376
  children: t
2235
2377
  }),
2236
2378
  s && /* @__PURE__ */ n("span", {
2237
- className: gn.required,
2379
+ className: Tn.required,
2238
2380
  "aria-hidden": "true",
2239
2381
  children: "*"
2240
2382
  }),
2241
2383
  !s && g && /* @__PURE__ */ n("span", {
2242
- className: gn.optional,
2384
+ className: Tn.optional,
2243
2385
  children: g
2244
2386
  }),
2245
2387
  h && /* @__PURE__ */ n("span", {
2246
- className: gn.labelInfo,
2388
+ className: Tn.labelInfo,
2247
2389
  children: h
2248
2390
  })
2249
2391
  ]
2250
2392
  }),
2251
2393
  i && /* @__PURE__ */ n("div", {
2252
2394
  id: O,
2253
- className: N(gn.description, S),
2395
+ className: N(Tn.description, S),
2254
2396
  children: i
2255
2397
  }),
2256
- /* @__PURE__ */ n(mn.Provider, {
2398
+ /* @__PURE__ */ n(Cn.Provider, {
2257
2399
  value: P,
2258
2400
  children: /* @__PURE__ */ n("div", {
2259
- className: N(gn.control, b),
2401
+ className: N(Tn.control, b),
2260
2402
  children: I
2261
2403
  })
2262
2404
  }),
2263
2405
  a && /* @__PURE__ */ n("div", {
2264
2406
  id: k,
2265
- className: N(gn.errorText, C),
2407
+ className: N(Tn.errorText, C),
2266
2408
  role: "alert",
2267
2409
  children: a
2268
2410
  })
@@ -2271,14 +2413,14 @@ var mn = s(null), hn = () => d(mn), gn = {
2271
2413
  };
2272
2414
  //#endregion
2273
2415
  //#region src/components/Select/internal/SelectCollection.ts
2274
- function yn(e) {
2416
+ function On(e) {
2275
2417
  let t = [], n = [], r = 0;
2276
2418
  function a(e) {
2277
2419
  i.forEach(e, (e) => {
2278
2420
  if (!l(e)) return;
2279
2421
  let i = e.type;
2280
2422
  if (i.__velliraSelectPart === "group") {
2281
- let n = e.props, i = xn(n.children);
2423
+ let n = e.props, i = An(n.children);
2282
2424
  t.push({
2283
2425
  type: "group",
2284
2426
  id: `group-${r++}`,
@@ -2290,7 +2432,7 @@ function yn(e) {
2290
2432
  return;
2291
2433
  }
2292
2434
  if (i.__velliraSelectPart === "item") {
2293
- let r = e.props, i = Sn(r.children, r.value), a = r.label ?? i.label, o = n.length, s = {
2435
+ let r = e.props, i = jn(r.children, r.value), a = r.label ?? i.label, o = n.length, s = {
2294
2436
  label: a,
2295
2437
  value: r.value,
2296
2438
  disabled: r.disabled,
@@ -2322,7 +2464,7 @@ function yn(e) {
2322
2464
  options: n
2323
2465
  };
2324
2466
  }
2325
- function bn(e) {
2467
+ function kn(e) {
2326
2468
  let t = !1;
2327
2469
  function n(e) {
2328
2470
  i.forEach(e, (e) => {
@@ -2337,7 +2479,7 @@ function bn(e) {
2337
2479
  }
2338
2480
  return n(e), t;
2339
2481
  }
2340
- function xn(e) {
2482
+ function An(e) {
2341
2483
  let t = [];
2342
2484
  function n(e) {
2343
2485
  i.forEach(e, (e) => {
@@ -2352,7 +2494,7 @@ function xn(e) {
2352
2494
  }
2353
2495
  return n(e), t;
2354
2496
  }
2355
- function Sn(e, t) {
2497
+ function jn(e, t) {
2356
2498
  let n, r, a, o = [];
2357
2499
  function s(e) {
2358
2500
  i.forEach(e, (e) => {
@@ -2388,12 +2530,12 @@ function Sn(e, t) {
2388
2530
  }
2389
2531
  //#endregion
2390
2532
  //#region src/components/Select/internal/useSelectCollection.ts
2391
- function Cn(e) {
2392
- return m(() => yn(e), [e]);
2533
+ function Mn(e) {
2534
+ return m(() => On(e), [e]);
2393
2535
  }
2394
2536
  //#endregion
2395
2537
  //#region src/components/Select/internal/useSelectPosition.ts
2396
- function wn({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
2538
+ function Nn({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
2397
2539
  return et({
2398
2540
  open: t,
2399
2541
  onOpenChange: r,
@@ -2405,21 +2547,21 @@ function wn({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange:
2405
2547
  }
2406
2548
  //#endregion
2407
2549
  //#region src/components/Select/internal/useSelectSearch.ts
2408
- function Tn({ options: e, searchable: t, searchValue: n }) {
2550
+ function Pn({ options: e, searchable: t, searchValue: n }) {
2409
2551
  return m(() => {
2410
2552
  if (!t || !n) return e;
2411
2553
  let r = n.toLocaleLowerCase();
2412
- return e.filter((e) => `${e.label} ${En(e.description)}`.toLocaleLowerCase().includes(r));
2554
+ return e.filter((e) => `${e.label} ${Fn(e.description)}`.toLocaleLowerCase().includes(r));
2413
2555
  }, [
2414
2556
  e,
2415
2557
  n,
2416
2558
  t
2417
2559
  ]);
2418
2560
  }
2419
- function En(e) {
2561
+ function Fn(e) {
2420
2562
  return typeof e == "string" || typeof e == "number" ? String(e) : "";
2421
2563
  }
2422
- var Y = {
2564
+ var X = {
2423
2565
  control: "_control_x5w2h_1",
2424
2566
  disabled: "_disabled_x5w2h_54",
2425
2567
  arrow: "_arrow_x5w2h_64",
@@ -2445,16 +2587,16 @@ var Y = {
2445
2587
  spin: "_spin_x5w2h_818",
2446
2588
  loading: "_loading_x5w2h_827",
2447
2589
  open: "_open_x5w2h_846"
2448
- }, Dn = ({ children: e, className: t }) => {
2449
- let { triggerProps: r } = Yt();
2450
- return /* @__PURE__ */ n(On, {
2590
+ }, In = ({ children: e, className: t }) => {
2591
+ let { triggerProps: r } = an();
2592
+ return /* @__PURE__ */ n(Ln, {
2451
2593
  ...r,
2452
2594
  className: [r.className, t].filter(Boolean).join(" "),
2453
2595
  children: e
2454
2596
  });
2455
2597
  };
2456
- Dn.__velliraSelectPart = "trigger", Dn.displayName = "Select.Trigger";
2457
- var On = ({ children: e, id: i, describedBy: a, labelledBy: o, isOpen: s, disabled: c, required: l, listboxId: u, activeIndex: d, ariaLabel: f, error: p, displayText: m, isPlaceholder: h, size: g = "md", color: _, variant: v, loading: b, startIcon: S, endIcon: C, prefix: w, suffix: T, clearable: E, onClear: D, className: O, buttonRef: k, onClick: A, onKeyDown: j, onBlur: M, onFocus: P }) => /* @__PURE__ */ n("button", {
2598
+ In.__velliraSelectPart = "trigger", In.displayName = "Select.Trigger";
2599
+ var Ln = ({ children: e, id: i, describedBy: a, labelledBy: o, isOpen: s, disabled: c, required: l, listboxId: u, activeIndex: d, ariaLabel: f, error: p, displayText: m, isPlaceholder: h, size: g = "md", color: _, variant: v, loading: b, startIcon: S, endIcon: C, prefix: w, suffix: T, clearable: E, onClear: D, className: O, buttonRef: k, onClick: A, onKeyDown: j, onBlur: M, onFocus: P }) => /* @__PURE__ */ n("button", {
2458
2600
  id: i,
2459
2601
  ref: k,
2460
2602
  type: "button",
@@ -2470,10 +2612,10 @@ var On = ({ children: e, id: i, describedBy: a, labelledBy: o, isOpen: s, disabl
2470
2612
  "aria-controls": s ? u : void 0,
2471
2613
  "aria-describedby": a,
2472
2614
  "aria-activedescendant": s && d >= 0 ? `${u}-option-${d}` : void 0,
2473
- className: N(Y.control, Y[g], Y[v], Y[_], {
2474
- [Y.error]: !!p,
2475
- [Y.disabled]: c,
2476
- [Y.loading]: b
2615
+ className: N(X.control, X[g], X[v], X[_], {
2616
+ [X.error]: !!p,
2617
+ [X.disabled]: c,
2618
+ [X.loading]: b
2477
2619
  }, O),
2478
2620
  onClick: A,
2479
2621
  onKeyDown: j,
@@ -2481,51 +2623,51 @@ var On = ({ children: e, id: i, describedBy: a, labelledBy: o, isOpen: s, disabl
2481
2623
  onFocus: P,
2482
2624
  children: e ?? /* @__PURE__ */ r(t, { children: [
2483
2625
  S && /* @__PURE__ */ n("span", {
2484
- className: Y.adornment,
2626
+ className: X.adornment,
2485
2627
  children: S
2486
2628
  }),
2487
2629
  w && /* @__PURE__ */ n("span", {
2488
- className: Y.affix,
2630
+ className: X.affix,
2489
2631
  children: w
2490
2632
  }),
2491
2633
  /* @__PURE__ */ n("span", {
2492
- className: Y.valueWrap,
2634
+ className: X.valueWrap,
2493
2635
  children: /* @__PURE__ */ n("span", {
2494
- className: N(Y.value, { [Y.placeholder]: h }),
2636
+ className: N(X.value, { [X.placeholder]: h }),
2495
2637
  children: m
2496
2638
  })
2497
2639
  }),
2498
2640
  T && /* @__PURE__ */ n("span", {
2499
- className: Y.affix,
2641
+ className: X.affix,
2500
2642
  children: T
2501
2643
  }),
2502
2644
  E && /* @__PURE__ */ n("span", {
2503
2645
  role: "button",
2504
2646
  "aria-label": "Clear selection",
2505
2647
  tabIndex: -1,
2506
- className: Y.clear,
2648
+ className: X.clear,
2507
2649
  onClick: (e) => {
2508
2650
  e.stopPropagation(), D?.();
2509
2651
  },
2510
2652
  children: /* @__PURE__ */ n(x, {})
2511
2653
  }),
2512
2654
  /* @__PURE__ */ n("span", {
2513
- className: N(Y.arrow, { [Y.open]: s }),
2655
+ className: N(X.arrow, { [X.open]: s }),
2514
2656
  "aria-hidden": "true",
2515
- children: b ? /* @__PURE__ */ n("span", { className: Y.spinner }) : C ?? /* @__PURE__ */ n(y, {})
2657
+ children: b ? /* @__PURE__ */ n("span", { className: X.spinner }) : C ?? /* @__PURE__ */ n(y, {})
2516
2658
  })
2517
2659
  ] })
2518
2660
  });
2519
- On.displayName = "SelectTriggerSurface";
2661
+ Ln.displayName = "SelectTriggerSurface";
2520
2662
  //#endregion
2521
2663
  //#region src/components/Select/Root/SelectRoot.tsx
2522
- var kn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label": c, "aria-describedby": l, "aria-labelledby": d, value: _, defaultValue: v, onValueChange: y, multiple: b = !1, maxSelected: x, closeOnSelect: S, placeholder: C = "Select...", empty: w, loadingText: T = "Loading...", noOptionsText: E, size: D, color: O = "primary", variant: k = "outline", required: A = !1, disabled: j = !1, invalid: M = !1, loading: N = !1, clearable: P = !1, searchable: F = !1, virtual: I, modal: L = !1, command: R = !1, error: z, placement: ee = "bottom", matchTriggerWidth: B = !0, avoidCollisions: te = !0, portal: ne = !0, open: re, defaultOpen: ie = !1, onOpenChange: ae, onSearch: oe, onClear: V, startIcon: ce, endIcon: le, prefix: de, suffix: H, renderValue: fe, renderOption: me, onBlur: he, onFocus: ge, className: _e, triggerClassName: ve, dropdownClassName: ye }) => {
2523
- let xe = p(), U = hn(), Se = !!(i || a || z), Ce = o ?? (Se ? void 0 : U?.controlId) ?? xe, we = `${Ce}-listbox`, [Te, Ee] = g(""), De = !!z, Oe = De ? `${Ce}-error` : void 0, ke = a ? `${Ce}-description` : void 0, Ae = D ?? U?.size ?? "md", je = M || De || !Se && !!U?.invalid, Me = j || !Se && !!U?.disabled, Ne = A || !Se && !!U?.required, Pe = [
2664
+ var Rn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label": c, "aria-describedby": l, "aria-labelledby": d, value: _, defaultValue: v, onValueChange: y, multiple: b = !1, maxSelected: x, closeOnSelect: S, placeholder: C = "Select...", empty: w, loadingText: T = "Loading...", noOptionsText: E, size: D, color: O = "primary", variant: k = "outline", required: A = !1, disabled: j = !1, invalid: M = !1, loading: N = !1, clearable: P = !1, searchable: F = !1, virtual: I, modal: L = !1, command: R = !1, error: z, placement: ee = "bottom", matchTriggerWidth: B = !0, avoidCollisions: te = !0, portal: ne = !0, open: re, defaultOpen: ie = !1, onOpenChange: ae, onSearch: oe, onClear: V, startIcon: ce, endIcon: le, prefix: de, suffix: H, renderValue: fe, renderOption: me, onBlur: he, onFocus: ge, className: _e, triggerClassName: ve, dropdownClassName: ye }) => {
2665
+ let xe = p(), U = wn(), Se = !!(i || a || z), Ce = o ?? (Se ? void 0 : U?.controlId) ?? xe, we = `${Ce}-listbox`, [Te, Ee] = g(""), De = !!z, Oe = De ? `${Ce}-error` : void 0, ke = a ? `${Ce}-description` : void 0, Ae = D ?? U?.size ?? "md", je = M || De || !Se && !!U?.invalid, Me = j || !Se && !!U?.disabled, Ne = A || !Se && !!U?.required, Pe = [
2524
2666
  l,
2525
2667
  !Se && !l ? U?.ariaDescribedBy : void 0,
2526
2668
  ke,
2527
2669
  Oe
2528
- ].filter(Boolean).join(" "), W = h(null), Fe = h(null), [G, Ie] = g(!1), Le = F || R, { entries: Re, options: ze } = Cn(e), Be = Tn({
2670
+ ].filter(Boolean).join(" "), W = h(null), Fe = h(null), [G, Ie] = g(!1), Le = F || R, { entries: Re, options: ze } = Mn(e), Be = Pn({
2529
2671
  options: ze,
2530
2672
  searchable: Le,
2531
2673
  searchValue: Te
@@ -2541,7 +2683,7 @@ var kn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label":
2541
2683
  open: re,
2542
2684
  defaultOpen: ie,
2543
2685
  onOpenChange: ae
2544
- }), Xe = m(() => ze.find((e) => K.includes(e.value)), [ze, K]), Ze = m(() => ze.filter((e) => K.includes(e.value)), [ze, K]), Qe = !!Xe, $e = Array.isArray(Ve) ? Ve[0] ?? "" : Ve, { floatingStyles: et, setRef: tt, setFloatingRef: nt } = wn({
2686
+ }), Xe = m(() => ze.find((e) => K.includes(e.value)), [ze, K]), Ze = m(() => ze.filter((e) => K.includes(e.value)), [ze, K]), Qe = !!Xe, $e = Array.isArray(Ve) ? Ve[0] ?? "" : Ve, { floatingStyles: et, setRef: tt, setFloatingRef: nt } = Nn({
2545
2687
  isOpen: q,
2546
2688
  onOpenChange: He,
2547
2689
  placement: ee,
@@ -2575,7 +2717,7 @@ var kn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label":
2575
2717
  }, [V, Je]), ot = u(() => {
2576
2718
  q || Ie(!1), qe();
2577
2719
  }, [q, qe]), st = u((e) => {
2578
- An(e, q) && Ie(!0), Ye(e);
2720
+ zn(e, q) && Ie(!0), Ye(e);
2579
2721
  }, [q, Ye]), ct = u((e) => {
2580
2722
  Ie(!0), Ge(e);
2581
2723
  }, [Ge]), lt = u((e) => {
@@ -2672,24 +2814,24 @@ var kn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label":
2672
2814
  name: s,
2673
2815
  value: $e,
2674
2816
  disabled: Me
2675
- })] }), yt = bn(e), bt = /* @__PURE__ */ r(Jt, {
2817
+ })] }), yt = kn(e), bt = /* @__PURE__ */ r(rn, {
2676
2818
  value: {
2677
2819
  triggerProps: gt,
2678
2820
  contentProps: _t
2679
2821
  },
2680
- children: [vt, yt ? e : /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(Dn, {}), /* @__PURE__ */ n(en, { children: e })] })]
2681
- }), xt = /* @__PURE__ */ r(Jt, {
2822
+ children: [vt, yt ? e : /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(In, {}), /* @__PURE__ */ n(un, { children: e })] })]
2823
+ }), xt = /* @__PURE__ */ r(rn, {
2682
2824
  value: {
2683
2825
  triggerProps: gt,
2684
2826
  contentProps: _t
2685
2827
  },
2686
2828
  children: [
2687
2829
  vt,
2688
- /* @__PURE__ */ n(On, { ...gt }),
2689
- /* @__PURE__ */ n(tn, { ..._t })
2830
+ /* @__PURE__ */ n(Ln, { ...gt }),
2831
+ /* @__PURE__ */ n(dn, { ..._t })
2690
2832
  ]
2691
2833
  });
2692
- return !Se && U ? e ? bt : xt : /* @__PURE__ */ n(vn, {
2834
+ return !Se && U ? e ? bt : xt : /* @__PURE__ */ n(Dn, {
2693
2835
  id: Ce,
2694
2836
  label: i,
2695
2837
  description: a,
@@ -2701,79 +2843,79 @@ var kn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label":
2701
2843
  children: e ? bt : xt
2702
2844
  });
2703
2845
  };
2704
- kn.displayName = "SelectRoot";
2705
- function An(e, t) {
2846
+ Rn.displayName = "SelectRoot";
2847
+ function zn(e, t) {
2706
2848
  return e.altKey || e.ctrlKey || e.metaKey ? !1 : t ? e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End" || e.key === "Enter" || e.key === " " || e.key.length === 1 : e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Enter" || e.key === " ";
2707
2849
  }
2708
2850
  //#endregion
2709
2851
  //#region src/components/Select/Trigger/SelectIcon.tsx
2710
- var jn = ({ children: e, className: t }) => {
2711
- let { triggerProps: r } = Yt();
2852
+ var Bn = ({ children: e, className: t }) => {
2853
+ let { triggerProps: r } = an();
2712
2854
  return /* @__PURE__ */ n("span", {
2713
- className: N(Y.arrow, { [Y.open]: r.isOpen }, t),
2855
+ className: N(X.arrow, { [X.open]: r.isOpen }, t),
2714
2856
  "aria-hidden": "true",
2715
- children: r.loading ? /* @__PURE__ */ n("span", { className: Y.spinner }) : e ?? r.endIcon ?? /* @__PURE__ */ n(y, {})
2857
+ children: r.loading ? /* @__PURE__ */ n("span", { className: X.spinner }) : e ?? r.endIcon ?? /* @__PURE__ */ n(y, {})
2716
2858
  });
2717
2859
  };
2718
- jn.__velliraSelectPart = "icon", jn.displayName = "Select.Icon";
2860
+ Bn.__velliraSelectPart = "icon", Bn.displayName = "Select.Icon";
2719
2861
  //#endregion
2720
2862
  //#region src/components/Select/Trigger/SelectValue.tsx
2721
- var Mn = ({ children: e, className: t }) => {
2722
- let { triggerProps: r } = Yt();
2863
+ var Vn = ({ children: e, className: t }) => {
2864
+ let { triggerProps: r } = an();
2723
2865
  return /* @__PURE__ */ n("span", {
2724
- className: N(Y.valueWrap, t),
2866
+ className: N(X.valueWrap, t),
2725
2867
  children: /* @__PURE__ */ n("span", {
2726
- className: N(Y.value, { [Y.placeholder]: r.isPlaceholder }),
2868
+ className: N(X.value, { [X.placeholder]: r.isPlaceholder }),
2727
2869
  children: e ?? r.displayText
2728
2870
  })
2729
2871
  });
2730
2872
  };
2731
- Mn.__velliraSelectPart = "value", Mn.displayName = "Select.Value";
2873
+ Vn.__velliraSelectPart = "value", Vn.displayName = "Select.Value";
2732
2874
  //#endregion
2733
2875
  //#region src/components/Select/Select.tsx
2734
- var Nn = Object.assign(kn, {
2735
- Trigger: Dn,
2736
- Value: Mn,
2737
- Icon: jn,
2738
- Content: en,
2739
- Search: sn,
2740
- Group: cn,
2741
- Label: ln,
2742
- Item: Qt,
2743
- ItemIcon: pn,
2744
- ItemDescription: fn,
2745
- ItemBadge: dn,
2746
- Separator: un,
2747
- Empty: an,
2748
- Loading: on
2876
+ var Hn = Object.assign(Rn, {
2877
+ Trigger: In,
2878
+ Value: Vn,
2879
+ Icon: Bn,
2880
+ Content: un,
2881
+ Search: gn,
2882
+ Group: _n,
2883
+ Label: vn,
2884
+ Item: cn,
2885
+ ItemIcon: Sn,
2886
+ ItemDescription: xn,
2887
+ ItemBadge: bn,
2888
+ Separator: yn,
2889
+ Empty: mn,
2890
+ Loading: hn
2749
2891
  });
2750
- Nn.displayName = "Select";
2892
+ Hn.displayName = "Select";
2751
2893
  //#endregion
2752
2894
  //#region src/components/Tabs/TabsContext.tsx
2753
- var Pn = s(null), Fn = () => {
2754
- let e = d(Pn);
2895
+ var Un = s(null), Wn = () => {
2896
+ let e = d(Un);
2755
2897
  if (!e) throw Error("Tabs components must be used inside Tabs");
2756
2898
  return e;
2757
- }, In = {
2899
+ }, Gn = {
2758
2900
  list: "_list_13hkl_1",
2759
2901
  vertical: "_vertical_13hkl_8"
2760
- }, Ln = ({ children: e, className: t, ...r }) => {
2761
- let { orientation: i, appearance: a } = Fn();
2902
+ }, Kn = ({ children: e, className: t, ...r }) => {
2903
+ let { orientation: i, appearance: a } = Wn();
2762
2904
  return /* @__PURE__ */ n("div", {
2763
2905
  ...r,
2764
2906
  role: "tablist",
2765
2907
  "aria-orientation": i,
2766
- className: N(In.list, i === "vertical" && In.vertical, a === "underline" && In.underline, a === "pills" && In.pills, t),
2908
+ className: N(Gn.list, i === "vertical" && Gn.vertical, a === "underline" && Gn.underline, a === "pills" && Gn.pills, t),
2767
2909
  children: e
2768
2910
  });
2769
2911
  };
2770
- Ln.displayName = "TabsList";
2771
- var Rn = {
2912
+ Kn.displayName = "TabsList";
2913
+ var qn = {
2772
2914
  panel: "_panel_1v1a9_1",
2773
2915
  visible: "_visible_1v1a9_10",
2774
2916
  vertical: "_vertical_1v1a9_14"
2775
- }, zn = ({ index: e, children: t, className: r }) => {
2776
- let { activeIndex: i, orientation: a } = Fn(), [o, s] = g(!1), c = i === e;
2917
+ }, Jn = ({ index: e, children: t, className: r }) => {
2918
+ let { activeIndex: i, orientation: a } = Wn(), [o, s] = g(!1), c = i === e;
2777
2919
  return f(() => {
2778
2920
  if (!c) {
2779
2921
  s(!1);
@@ -2787,12 +2929,12 @@ var Rn = {
2787
2929
  "aria-labelledby": `tab-${e}`,
2788
2930
  hidden: !c,
2789
2931
  tabIndex: 0,
2790
- className: N(Rn.panel, o && Rn.visible, a === "vertical" && Rn.vertical, r),
2932
+ className: N(qn.panel, o && qn.visible, a === "vertical" && qn.vertical, r),
2791
2933
  children: t
2792
2934
  });
2793
2935
  };
2794
- zn.displayName = "TabsPanel";
2795
- var Bn = {
2936
+ Jn.displayName = "TabsPanel";
2937
+ var Yn = {
2796
2938
  tab: "_tab_qe8xc_1",
2797
2939
  iconOnly: "_iconOnly_qe8xc_27",
2798
2940
  tabIcon: "_tabIcon_qe8xc_31",
@@ -2801,8 +2943,8 @@ var Bn = {
2801
2943
  underline: "_underline_qe8xc_60",
2802
2944
  pills: "_pills_qe8xc_92",
2803
2945
  vertical: "_vertical_qe8xc_106"
2804
- }, Vn = c(({ index: e, children: t, className: i, disabled: a = !1, icon: o, onClick: s, onKeyDown: c, ...l }, d) => {
2805
- let { activeIndex: f, setActiveIndex: p, orientation: m, appearance: h = "default", registerTab: g, onTabKeyDown: _ } = Fn(), v = f === e, y = !!o, b = y && t == null;
2946
+ }, Xn = c(({ index: e, children: t, className: i, disabled: a = !1, icon: o, onClick: s, onKeyDown: c, ...l }, d) => {
2947
+ let { activeIndex: f, setActiveIndex: p, orientation: m, appearance: h = "default", registerTab: g, onTabKeyDown: _ } = Wn(), v = f === e, y = !!o, b = y && t == null;
2806
2948
  return /* @__PURE__ */ r("button", {
2807
2949
  type: "button",
2808
2950
  ref: u((t) => {
@@ -2818,7 +2960,7 @@ var Bn = {
2818
2960
  id: `tab-${e}`,
2819
2961
  disabled: a,
2820
2962
  tabIndex: v ? 0 : -1,
2821
- className: N(Bn.tab, Bn[h], m === "vertical" && Bn.vertical, y && Bn.withIcon, b && Bn.iconOnly, i),
2963
+ className: N(Yn.tab, Yn[h], m === "vertical" && Yn.vertical, y && Yn.withIcon, b && Yn.iconOnly, i),
2822
2964
  onClick: (t) => {
2823
2965
  a || (p(e), s?.(t));
2824
2966
  },
@@ -2827,20 +2969,20 @@ var Bn = {
2827
2969
  },
2828
2970
  ...l,
2829
2971
  children: [y && /* @__PURE__ */ n("span", {
2830
- className: Bn.tabIcon,
2972
+ className: Yn.tabIcon,
2831
2973
  "aria-hidden": "true",
2832
2974
  children: o
2833
2975
  }), t != null && /* @__PURE__ */ n("span", {
2834
- className: Bn.label,
2976
+ className: Yn.label,
2835
2977
  children: t
2836
2978
  })]
2837
2979
  });
2838
2980
  });
2839
- Vn.displayName = "Tab";
2840
- var Hn = {
2981
+ Xn.displayName = "Tab";
2982
+ var Zn = {
2841
2983
  tabs: "_tabs_uqy7q_1",
2842
2984
  vertical: "_vertical_uqy7q_5"
2843
- }, Un = ({ children: e, activeIndex: t, defaultActiveIndex: r = 0, onChange: i, orientation: a = "horizontal", appearance: o = "default", className: s }) => {
2985
+ }, Qn = ({ children: e, activeIndex: t, defaultActiveIndex: r = 0, onChange: i, orientation: a = "horizontal", appearance: o = "default", className: s }) => {
2844
2986
  let { activeIndex: c, setActiveIndex: l } = xe({
2845
2987
  activeIndex: t,
2846
2988
  defaultActiveIndex: r,
@@ -2863,25 +3005,25 @@ var Hn = {
2863
3005
  registerTab: f,
2864
3006
  onTabKeyDown: p
2865
3007
  };
2866
- return /* @__PURE__ */ n(Pn.Provider, {
3008
+ return /* @__PURE__ */ n(Un.Provider, {
2867
3009
  value: m,
2868
3010
  children: /* @__PURE__ */ n("div", {
2869
- className: N(Hn.tabs, a === "vertical" && Hn.vertical, s),
3011
+ className: N(Zn.tabs, a === "vertical" && Zn.vertical, s),
2870
3012
  children: e
2871
3013
  })
2872
3014
  });
2873
3015
  };
2874
- Un.displayName = "Tabs";
3016
+ Qn.displayName = "Tabs";
2875
3017
  //#endregion
2876
3018
  //#region src/components/Tabs/index.ts
2877
- var Wn = Object.assign(Un, {
2878
- List: Ln,
2879
- Tab: Vn,
2880
- Panel: zn
2881
- }), Gn = {
3019
+ var $n = Object.assign(Qn, {
3020
+ List: Kn,
3021
+ Tab: Xn,
3022
+ Panel: Jn
3023
+ }), er = {
2882
3024
  tooltip: "_tooltip_10opu_1",
2883
3025
  arrow: "_arrow_10opu_25"
2884
- }, Kn = c(({ content: e, placement: t = "top", arrowRef: i, arrowX: a, arrowY: o, className: s, style: c, ...l }, u) => {
3026
+ }, tr = c(({ content: e, placement: t = "top", arrowRef: i, arrowX: a, arrowY: o, className: s, style: c, ...l }, u) => {
2885
3027
  let d = {
2886
3028
  top: "bottom",
2887
3029
  right: "left",
@@ -2896,22 +3038,22 @@ var Wn = Object.assign(Un, {
2896
3038
  };
2897
3039
  return /* @__PURE__ */ r("div", {
2898
3040
  ref: u,
2899
- className: N(Gn.tooltip, s),
3041
+ className: N(er.tooltip, s),
2900
3042
  "data-placement": t,
2901
3043
  "data-state": "open",
2902
3044
  style: c,
2903
3045
  ...l,
2904
3046
  children: [e, /* @__PURE__ */ n("div", {
2905
3047
  ref: i,
2906
- className: Gn.arrow,
3048
+ className: er.arrow,
2907
3049
  style: f
2908
3050
  })]
2909
3051
  });
2910
3052
  });
2911
- Kn.displayName = "TooltipContent";
3053
+ tr.displayName = "TooltipContent";
2912
3054
  //#endregion
2913
3055
  //#region src/components/Tooltip/Tooltip.tsx
2914
- var qn = ({ children: e, placement: i = "top", content: a, disabled: o = !1, delay: s = {
3056
+ var nr = ({ children: e, placement: i = "top", content: a, disabled: o = !1, delay: s = {
2915
3057
  open: 300,
2916
3058
  close: 100
2917
3059
  }, maxWidth: c = 250, className: l, onOpenChange: u }) => {
@@ -2932,7 +3074,7 @@ var qn = ({ children: e, placement: i = "top", content: a, disabled: o = !1, del
2932
3074
  "aria-describedby": d ? _ : void 0,
2933
3075
  ...D(),
2934
3076
  children: e
2935
- }), /* @__PURE__ */ n(we, { children: d && a && /* @__PURE__ */ n(Kn, {
3077
+ }), /* @__PURE__ */ n(we, { children: d && a && /* @__PURE__ */ n(tr, {
2936
3078
  id: _,
2937
3079
  ref: S,
2938
3080
  content: a,
@@ -2949,12 +3091,12 @@ var qn = ({ children: e, placement: i = "top", content: a, disabled: o = !1, del
2949
3091
  ...O()
2950
3092
  }) })] });
2951
3093
  };
2952
- qn.displayName = "Tooltip";
3094
+ nr.displayName = "Tooltip";
2953
3095
  //#endregion
2954
3096
  //#region src/utils/devWarning.ts
2955
- var Jn = (e, t) => {
3097
+ var rr = (e, t) => {
2956
3098
  process.env.NODE_ENV !== "production" && !e && console.warn(t);
2957
- }, X = {
3099
+ }, Z = {
2958
3100
  button: "_button_1b73n_1",
2959
3101
  solid: "_solid_1b73n_23",
2960
3102
  primary: "_primary_1b73n_23",
@@ -2982,14 +3124,14 @@ var Jn = (e, t) => {
2982
3124
  "button-spin": "_button-spin_1b73n_1",
2983
3125
  badge: "_badge_1b73n_812",
2984
3126
  shortcut: "_shortcut_1b73n_826"
2985
- }, Yn = c(({ children: e, color: i = "primary", appearance: a = "solid", size: s = "md", shape: c = "pill", type: u = "button", disabled: d = !1, loading: f = !1, loadingText: p, iconStart: m, iconEnd: h, spinner: g, badge: _, shortcut: v, tooltip: y, fullWidth: b = !1, iconOnly: x = !1, asChild: S = !1, className: C, onClick: w, "aria-label": T, "aria-labelledby": E, href: D, target: O, rel: k, download: A, id: j, role: M, tabIndex: P, ...F }, I) => {
2986
- let L = S && l(e) ? e : void 0, R = L ? L.props.children : e, z = x || !R && !!(m || h), ee = !!(T || E || L?.props["aria-label"] || L?.props["aria-labelledby"]), B = d || f, te = f && p ? p : R, ne = p && R && !z && (typeof R == "string" || typeof R == "number") && (typeof p == "string" || typeof p == "number") ? String(f ? R : p) : void 0, re = O === "_blank" && !k ? "noreferrer noopener" : k, ie = N(X.button, X[i], X[a], X[s], X[c], C, {
2987
- [X.disabled]: B,
2988
- [X.loading]: f,
2989
- [X.fullWidth]: b,
2990
- [X.iconOnly]: z
3127
+ }, ir = c(({ children: e, color: i = "primary", appearance: a = "solid", size: s = "md", shape: c = "pill", type: u = "button", disabled: d = !1, loading: f = !1, loadingText: p, iconStart: m, iconEnd: h, spinner: g, badge: _, shortcut: v, tooltip: y, fullWidth: b = !1, iconOnly: x = !1, asChild: S = !1, className: C, onClick: w, "aria-label": T, "aria-labelledby": E, href: D, target: O, rel: k, download: A, id: j, role: M, tabIndex: P, ...F }, I) => {
3128
+ let L = S && l(e) ? e : void 0, R = L ? L.props.children : e, z = x || !R && !!(m || h), ee = !!(T || E || L?.props["aria-label"] || L?.props["aria-labelledby"]), B = d || f, te = f && p ? p : R, ne = p && R && !z && (typeof R == "string" || typeof R == "number") && (typeof p == "string" || typeof p == "number") ? String(f ? R : p) : void 0, re = O === "_blank" && !k ? "noreferrer noopener" : k, ie = N(Z.button, Z[i], Z[a], Z[s], Z[c], C, {
3129
+ [Z.disabled]: B,
3130
+ [Z.loading]: f,
3131
+ [Z.fullWidth]: b,
3132
+ [Z.iconOnly]: z
2991
3133
  });
2992
- Jn(!S || !D, "Button: pass href to the child element when using asChild."), Jn(!S || !!L, "Button: asChild requires a single valid React element child."), Jn(!z || ee, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
3134
+ rr(!S || !D, "Button: pass href to the child element when using asChild."), rr(!S || !!L, "Button: asChild requires a single valid React element child."), rr(!z || ee, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
2993
3135
  let ae = (e) => {
2994
3136
  e.preventDefault(), e.stopPropagation();
2995
3137
  }, oe = (e) => {
@@ -3000,35 +3142,35 @@ var Jn = (e, t) => {
3000
3142
  L?.props.onClick?.(e), e.defaultPrevented || w?.(e);
3001
3143
  }, V = /* @__PURE__ */ r(t, { children: [
3002
3144
  f && (g ? /* @__PURE__ */ n("span", {
3003
- className: X.icon,
3145
+ className: Z.icon,
3004
3146
  "aria-hidden": "true",
3005
3147
  children: g
3006
3148
  }) : /* @__PURE__ */ n("span", {
3007
- className: X.spinner,
3149
+ className: Z.spinner,
3008
3150
  "aria-hidden": "true"
3009
3151
  })),
3010
3152
  !f && m && /* @__PURE__ */ n("span", {
3011
- className: X.icon,
3153
+ className: Z.icon,
3012
3154
  children: m
3013
3155
  }),
3014
3156
  te && !z && /* @__PURE__ */ n("span", {
3015
- className: X.label,
3157
+ className: Z.label,
3016
3158
  "data-measure": ne,
3017
3159
  children: /* @__PURE__ */ n("span", {
3018
- className: X.labelText,
3160
+ className: Z.labelText,
3019
3161
  children: te
3020
3162
  })
3021
3163
  }),
3022
3164
  _ && !z && /* @__PURE__ */ n("span", {
3023
- className: X.badge,
3165
+ className: Z.badge,
3024
3166
  children: _
3025
3167
  }),
3026
3168
  v && !z && /* @__PURE__ */ n("span", {
3027
- className: X.shortcut,
3169
+ className: Z.shortcut,
3028
3170
  children: v
3029
3171
  }),
3030
3172
  !f && h && /* @__PURE__ */ n("span", {
3031
- className: X.icon,
3173
+ className: Z.icon,
3032
3174
  children: h
3033
3175
  })
3034
3176
  ] });
@@ -3079,8 +3221,8 @@ var Jn = (e, t) => {
3079
3221
  children: V
3080
3222
  });
3081
3223
  });
3082
- Yn.displayName = "Button";
3083
- var Z = {
3224
+ ir.displayName = "Button";
3225
+ var Q = {
3084
3226
  wrapper: "_wrapper_1kk5v_1",
3085
3227
  colorPrimary: "_colorPrimary_1kk5v_27",
3086
3228
  colorNeutral: "_colorNeutral_1kk5v_45",
@@ -3115,25 +3257,25 @@ var Z = {
3115
3257
  "checkbox-checkmark-in": "_checkbox-checkmark-in_1kk5v_1",
3116
3258
  "checkbox-indeterminate-in": "_checkbox-indeterminate-in_1kk5v_1",
3117
3259
  disabled: "_disabled_1kk5v_361"
3118
- }, Xn = {
3119
- sm: Z.labelSm,
3120
- md: Z.labelMd,
3121
- lg: Z.labelLg
3122
- }, Zn = {
3123
- sm: Z.wrapperSm,
3124
- md: Z.wrapperMd,
3125
- lg: Z.wrapperLg
3126
- }, Qn = {
3127
- sm: Z.containerSm,
3128
- md: Z.containerMd,
3129
- lg: Z.containerLg
3130
- }, $n = {
3131
- primary: Z.colorPrimary,
3132
- neutral: Z.colorNeutral,
3133
- success: Z.colorSuccess,
3134
- warning: Z.colorWarning,
3135
- danger: Z.colorDanger
3136
- }, er = c(({ id: e, label: t, description: i, icon: a, indeterminateIcon: o, checked: s, size: c = "md", color: l = "primary", labelPosition: d = "end", defaultChecked: m = !1, disabled: g = !1, required: _ = !1, indeterminate: y = !1, className: b, wrapperClassName: x, onCheckedChange: S, error: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, ...D }, O) => {
3260
+ }, ar = {
3261
+ sm: Q.labelSm,
3262
+ md: Q.labelMd,
3263
+ lg: Q.labelLg
3264
+ }, or = {
3265
+ sm: Q.wrapperSm,
3266
+ md: Q.wrapperMd,
3267
+ lg: Q.wrapperLg
3268
+ }, sr = {
3269
+ sm: Q.containerSm,
3270
+ md: Q.containerMd,
3271
+ lg: Q.containerLg
3272
+ }, cr = {
3273
+ primary: Q.colorPrimary,
3274
+ neutral: Q.colorNeutral,
3275
+ success: Q.colorSuccess,
3276
+ warning: Q.colorWarning,
3277
+ danger: Q.colorDanger
3278
+ }, lr = c(({ id: e, label: t, description: i, icon: a, indeterminateIcon: o, checked: s, size: c = "md", color: l = "primary", labelPosition: d = "end", defaultChecked: m = !1, disabled: g = !1, required: _ = !1, indeterminate: y = !1, className: b, wrapperClassName: x, onCheckedChange: S, error: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, ...D }, O) => {
3137
3279
  let k = p(), A = e ?? k, j = h(null), M = !!C, P = i ? `${A}-description` : void 0, F = M ? `${A}-error` : void 0, I = [
3138
3280
  E,
3139
3281
  P,
@@ -3155,12 +3297,12 @@ var Z = {
3155
3297
  let ee = (e) => {
3156
3298
  R(e.target.checked);
3157
3299
  };
3158
- return Jn(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ r("div", {
3159
- className: N(Z.container, Qn[c], d === "start" && Z.containerLabelStart, b),
3300
+ return rr(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ r("div", {
3301
+ className: N(Q.container, sr[c], d === "start" && Q.containerLabelStart, b),
3160
3302
  children: [
3161
3303
  /* @__PURE__ */ r("label", {
3162
3304
  htmlFor: A,
3163
- className: N(Z.wrapper, Zn[c], $n[l], d === "start" && Z.labelStart, !t && Z.iconOnly, g && Z.disabled, x),
3305
+ className: N(Q.wrapper, or[c], cr[l], d === "start" && Q.labelStart, !t && Q.iconOnly, g && Q.disabled, x),
3164
3306
  children: [
3165
3307
  /* @__PURE__ */ n("input", {
3166
3308
  ...D,
@@ -3171,7 +3313,7 @@ var Z = {
3171
3313
  disabled: g,
3172
3314
  required: _,
3173
3315
  onChange: ee,
3174
- className: Z.input,
3316
+ className: Q.input,
3175
3317
  "aria-label": w,
3176
3318
  "aria-labelledby": T,
3177
3319
  "aria-checked": y ? "mixed" : D["aria-checked"],
@@ -3179,20 +3321,20 @@ var Z = {
3179
3321
  "aria-describedby": I || void 0
3180
3322
  }),
3181
3323
  /* @__PURE__ */ n("span", {
3182
- className: N(Z.customCheckbox, M && Z.error, y && Z.indeterminate),
3324
+ className: N(Q.customCheckbox, M && Q.error, y && Q.indeterminate),
3183
3325
  "aria-hidden": "true",
3184
3326
  children: y ? /* @__PURE__ */ n("span", {
3185
- className: N(Z.indeterminateMark, o && Z.customMark),
3327
+ className: N(Q.indeterminateMark, o && Q.customMark),
3186
3328
  children: o
3187
3329
  }) : L && /* @__PURE__ */ n("span", {
3188
- className: Z.checkmark,
3330
+ className: Q.checkmark,
3189
3331
  children: a ?? /* @__PURE__ */ n(v, {})
3190
3332
  })
3191
3333
  }),
3192
3334
  t && /* @__PURE__ */ r("span", {
3193
- className: N(Z.label, Xn[c]),
3335
+ className: N(Q.label, ar[c]),
3194
3336
  children: [t, _ && /* @__PURE__ */ n("span", {
3195
- className: Z.requiredMark,
3337
+ className: Q.requiredMark,
3196
3338
  "aria-hidden": "true",
3197
3339
  children: "*"
3198
3340
  })]
@@ -3201,19 +3343,19 @@ var Z = {
3201
3343
  }),
3202
3344
  i && /* @__PURE__ */ n("span", {
3203
3345
  id: P,
3204
- className: Z.descriptionText,
3346
+ className: Q.descriptionText,
3205
3347
  children: i
3206
3348
  }),
3207
3349
  M && /* @__PURE__ */ n("span", {
3208
3350
  id: F,
3209
- className: Z.errorText,
3351
+ className: Q.errorText,
3210
3352
  children: C
3211
3353
  })
3212
3354
  ]
3213
3355
  });
3214
3356
  });
3215
- er.displayName = "Checkbox";
3216
- var Q = {
3357
+ lr.displayName = "Checkbox";
3358
+ var $ = {
3217
3359
  inputGroup: "_inputGroup_1fjhk_1",
3218
3360
  primary: "_primary_1fjhk_29",
3219
3361
  outline: "_outline_1fjhk_29",
@@ -3254,15 +3396,15 @@ var Q = {
3254
3396
  toneDanger: "_toneDanger_1fjhk_876",
3255
3397
  toneMuted: "_toneMuted_1fjhk_880",
3256
3398
  toneInverse: "_toneInverse_1fjhk_884"
3257
- }, tr = {
3258
- default: Q.toneDefault,
3259
- primary: Q.tonePrimary,
3260
- secondary: Q.toneSecondary,
3261
- success: Q.toneSuccess,
3262
- danger: Q.toneDanger,
3263
- muted: Q.toneMuted,
3264
- inverse: Q.toneInverse
3265
- }, nr = (e = "text", t) => {
3399
+ }, ur = {
3400
+ default: $.toneDefault,
3401
+ primary: $.tonePrimary,
3402
+ secondary: $.toneSecondary,
3403
+ success: $.toneSuccess,
3404
+ danger: $.toneDanger,
3405
+ muted: $.toneMuted,
3406
+ inverse: $.toneInverse
3407
+ }, dr = (e = "text", t) => {
3266
3408
  if (t) return t;
3267
3409
  switch (e) {
3268
3410
  case "email": return "email";
@@ -3272,7 +3414,7 @@ var Q = {
3272
3414
  case "search": return "off";
3273
3415
  default: return;
3274
3416
  }
3275
- }, rr = (e, t) => {
3417
+ }, fr = (e, t) => {
3276
3418
  let n = e.replace(/\D/g, ""), r = 0, i = "";
3277
3419
  for (let e of t) {
3278
3420
  if (e === "#") {
@@ -3284,8 +3426,8 @@ var Q = {
3284
3426
  r < n.length && (i += e);
3285
3427
  }
3286
3428
  return i;
3287
- }, ir = (e, t) => t ? typeof t == "function" ? t(e) : rr(e, t) : e, ar = c(({ id: e, label: i, name: a, description: o, placeholder: s, value: c, defaultValue: l, type: d = "text", size: f, color: m = "primary", variant: _ = "outline", error: v, invalid: y = !1, disabled: b = !1, required: x = !1, loading: C = !1, className: w, wrapperClassName: T, autoComplete: E, readOnly: D = !1, clearable: O = !1, onClear: k, onValueChange: A, revealPassword: j = !1, showCounter: M = !1, startIcon: P, endIcon: F, startAddon: I, endAddon: L, prefix: R, suffix: z, clearIcon: ee, mask: B, format: te, parse: ne, startIconTone: re = "default", endIconTone: ie = "default", clearIconTone: ae = "danger", autoFocus: oe, maxLength: V, onMouseEnter: se, onMouseLeave: ce, "aria-describedby": le, "aria-invalid": ue, "aria-labelledby": de, ...H }, fe) => {
3288
- let pe = p(), me = hn(), he = !!(i || o || v), ge = e ?? (he ? void 0 : me?.controlId) ?? pe, _e = h(null), [ve, ye] = g(!1), [be, xe] = g(l ?? ""), U = c !== void 0, Se = String((U ? c : be) ?? ""), Ce = te ? te(Se) : Se, we = Se.length > 0, Te = f ?? me?.size ?? "md", Ee = y || !!v || !he && !!me?.invalid, De = b || !he && !!me?.disabled, Oe = x || !he && !!me?.required, ke = D || C, Ae = d === "password", je = Ae && j && ve ? "text" : d, Me = P ?? (d === "search" ? /* @__PURE__ */ n(S, {}) : null), Ne = F, Pe = nr(d, E), W = C && !De, Fe = O && we && !De && !ke && !W, G = j && Ae && !De && !W && !Fe, Ie = !W && !Fe && !G && !!Ne, Le = !!(M && V), Re = o ? `${ge}-description` : void 0, ze = v ? `${ge}-error` : void 0, Be = Le ? `${ge}-counter` : void 0, Ve = [
3429
+ }, pr = (e, t) => t ? typeof t == "function" ? t(e) : fr(e, t) : e, mr = c(({ id: e, label: i, name: a, description: o, placeholder: s, value: c, defaultValue: l, type: d = "text", size: f, color: m = "primary", variant: _ = "outline", error: v, invalid: y = !1, disabled: b = !1, required: x = !1, loading: C = !1, className: w, wrapperClassName: T, autoComplete: E, readOnly: D = !1, clearable: O = !1, onClear: k, onValueChange: A, revealPassword: j = !1, showCounter: M = !1, startIcon: P, endIcon: F, startAddon: I, endAddon: L, prefix: R, suffix: z, clearIcon: ee, mask: B, format: te, parse: ne, startIconTone: re = "default", endIconTone: ie = "default", clearIconTone: ae = "danger", autoFocus: oe, maxLength: V, onMouseEnter: se, onMouseLeave: ce, "aria-describedby": le, "aria-invalid": ue, "aria-labelledby": de, ...H }, fe) => {
3430
+ let pe = p(), me = wn(), he = !!(i || o || v), ge = e ?? (he ? void 0 : me?.controlId) ?? pe, _e = h(null), [ve, ye] = g(!1), [be, xe] = g(l ?? ""), U = c !== void 0, Se = String((U ? c : be) ?? ""), Ce = te ? te(Se) : Se, we = Se.length > 0, Te = f ?? me?.size ?? "md", Ee = y || !!v || !he && !!me?.invalid, De = b || !he && !!me?.disabled, Oe = x || !he && !!me?.required, ke = D || C, Ae = d === "password", je = Ae && j && ve ? "text" : d, Me = P ?? (d === "search" ? /* @__PURE__ */ n(S, {}) : null), Ne = F, Pe = dr(d, E), W = C && !De, Fe = O && we && !De && !ke && !W, G = j && Ae && !De && !W && !Fe, Ie = !W && !Fe && !G && !!Ne, Le = !!(M && V), Re = o ? `${ge}-description` : void 0, ze = v ? `${ge}-error` : void 0, Be = Le ? `${ge}-counter` : void 0, Ve = [
3289
3431
  le,
3290
3432
  !he && !le ? me?.ariaDescribedBy : void 0,
3291
3433
  Re,
@@ -3298,7 +3440,7 @@ var Q = {
3298
3440
  }
3299
3441
  fe && (fe.current = e);
3300
3442
  }, [fe]), qe = u((e) => {
3301
- let t = ir(ne ? ne(e.target.value) : e.target.value, B);
3443
+ let t = pr(ne ? ne(e.target.value) : e.target.value, B);
3302
3444
  U || xe(t), A?.(t);
3303
3445
  }, [
3304
3446
  U,
@@ -3312,32 +3454,32 @@ var Q = {
3312
3454
  k,
3313
3455
  A
3314
3456
  ]), Ye = /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ r("div", {
3315
- className: N(Q.inputGroup, Q[_], Q[m], {
3316
- [Q.hasAddons]: Ge,
3317
- [Q.isDisabled]: De,
3318
- [Q.isInvalid]: Ee,
3319
- [Q.isLoading]: W
3457
+ className: N($.inputGroup, $[_], $[m], {
3458
+ [$.hasAddons]: Ge,
3459
+ [$.isDisabled]: De,
3460
+ [$.isInvalid]: Ee,
3461
+ [$.isLoading]: W
3320
3462
  }),
3321
3463
  children: [
3322
3464
  I && /* @__PURE__ */ n("span", {
3323
- className: Q.addon,
3465
+ className: $.addon,
3324
3466
  children: I
3325
3467
  }),
3326
3468
  /* @__PURE__ */ r("div", {
3327
- className: N(Q.inputWrapper, {
3328
- [Q.hasLeftAdornment]: q,
3329
- [Q.hasRightAdornment]: He,
3330
- [Q.hasStartIconAndPrefix]: Ue,
3331
- [Q.hasEndIconAndSuffix]: We
3469
+ className: N($.inputWrapper, {
3470
+ [$.hasLeftAdornment]: q,
3471
+ [$.hasRightAdornment]: He,
3472
+ [$.hasStartIconAndPrefix]: Ue,
3473
+ [$.hasEndIconAndSuffix]: We
3332
3474
  }),
3333
3475
  children: [
3334
3476
  Me && /* @__PURE__ */ n("span", {
3335
3477
  "aria-hidden": "true",
3336
- className: N(Q.startAdornment, tr[re]),
3478
+ className: N($.startAdornment, ur[re]),
3337
3479
  children: Me
3338
3480
  }),
3339
3481
  R && /* @__PURE__ */ n("span", {
3340
- className: Q.prefix,
3482
+ className: $.prefix,
3341
3483
  children: R
3342
3484
  }),
3343
3485
  /* @__PURE__ */ n("input", {
@@ -3347,7 +3489,7 @@ var Q = {
3347
3489
  name: a,
3348
3490
  type: je,
3349
3491
  autoComplete: Pe,
3350
- className: N(Q.input, Q[Te], { [Q.error]: Ee }, w),
3492
+ className: N($.input, $[Te], { [$.error]: Ee }, w),
3351
3493
  value: Ce,
3352
3494
  onChange: qe,
3353
3495
  placeholder: s,
@@ -3364,34 +3506,34 @@ var Q = {
3364
3506
  onMouseLeave: ce
3365
3507
  }),
3366
3508
  z && /* @__PURE__ */ n("span", {
3367
- className: Q.suffix,
3509
+ className: $.suffix,
3368
3510
  children: z
3369
3511
  }),
3370
3512
  /* @__PURE__ */ r("div", {
3371
- className: Q.endSlot,
3513
+ className: $.endSlot,
3372
3514
  children: [
3373
3515
  W && /* @__PURE__ */ n("span", {
3374
- className: Q.spinner,
3516
+ className: $.spinner,
3375
3517
  "aria-hidden": "true",
3376
3518
  "data-testid": "input-spinner"
3377
3519
  }),
3378
3520
  G && /* @__PURE__ */ n("button", {
3379
3521
  type: "button",
3380
- className: Q.iconButton,
3522
+ className: $.iconButton,
3381
3523
  onClick: () => ye((e) => !e),
3382
3524
  "aria-label": ve ? "Hide password" : "Show password",
3383
3525
  children: ve ? "Hide" : "Show"
3384
3526
  }),
3385
3527
  Fe && /* @__PURE__ */ n("button", {
3386
3528
  type: "button",
3387
- className: N(Q.clearButton, tr[ae]),
3529
+ className: N($.clearButton, ur[ae]),
3388
3530
  onClick: Je,
3389
3531
  "aria-label": "Clear input",
3390
3532
  children: K
3391
3533
  }),
3392
3534
  Ie && Ne && /* @__PURE__ */ n("span", {
3393
3535
  "aria-hidden": "true",
3394
- className: N(Q.endAdornment, tr[ie]),
3536
+ className: N($.endAdornment, ur[ie]),
3395
3537
  children: Ne
3396
3538
  })
3397
3539
  ]
@@ -3399,20 +3541,20 @@ var Q = {
3399
3541
  ]
3400
3542
  }),
3401
3543
  L && /* @__PURE__ */ n("span", {
3402
- className: Q.addon,
3544
+ className: $.addon,
3403
3545
  children: L
3404
3546
  })
3405
3547
  ]
3406
3548
  }), Le && /* @__PURE__ */ r("div", {
3407
3549
  id: Be,
3408
- className: Q.counter,
3550
+ className: $.counter,
3409
3551
  children: [
3410
3552
  Se.length,
3411
3553
  " / ",
3412
3554
  V
3413
3555
  ]
3414
3556
  })] });
3415
- return !he && me ? Ye : /* @__PURE__ */ n(vn, {
3557
+ return !he && me ? Ye : /* @__PURE__ */ n(Dn, {
3416
3558
  id: ge,
3417
3559
  label: i,
3418
3560
  description: o,
@@ -3426,112 +3568,15 @@ var Q = {
3426
3568
  children: Ye
3427
3569
  });
3428
3570
  });
3429
- ar.displayName = "Input";
3430
- var $ = {
3431
- root: "_root_1avxs_1",
3432
- invalid: "_invalid_1avxs_27",
3433
- control: "_control_1avxs_27",
3434
- label: "_label_1avxs_30",
3435
- wrapper: "_wrapper_1avxs_33",
3436
- input: "_input_1avxs_34",
3437
- disabled: "_disabled_1avxs_37",
3438
- description: "_description_1avxs_45",
3439
- colorPrimary: "_colorPrimary_1avxs_49",
3440
- colorNeutral: "_colorNeutral_1avxs_65",
3441
- colorSuccess: "_colorSuccess_1avxs_81",
3442
- colorWarning: "_colorWarning_1avxs_97",
3443
- colorDanger: "_colorDanger_1avxs_113",
3444
- sm: "_sm_1avxs_129",
3445
- md: "_md_1avxs_138",
3446
- lg: "_lg_1avxs_147",
3447
- indicator: "_indicator_1avxs_202",
3448
- customIcon: "_customIcon_1avxs_216",
3449
- "radio-pop": "_radio-pop_1avxs_1",
3450
- "radio-indicator-in": "_radio-indicator-in_1avxs_1",
3451
- content: "_content_1avxs_339",
3452
- error: "_error_1avxs_356"
3453
- }, or = {
3454
- primary: $.colorPrimary,
3455
- neutral: $.colorNeutral,
3456
- success: $.colorSuccess,
3457
- warning: $.colorWarning,
3458
- danger: $.colorDanger
3459
- }, sr = c(({ value: e, checked: t, defaultChecked: i = !1, disabled: a = !1, required: o = !1, size: s, color: c, error: l, onCheckedChange: u, label: d, description: f, icon: m, wrapperClassName: h, className: g, id: _, name: v, "aria-describedby": y, ...b }, x) => {
3460
- let S = Wt(), C = p(), w = _ ?? C, T = f ? `${w}-description` : void 0, E = l ? `${w}-error` : void 0, D = [
3461
- T,
3462
- E,
3463
- S?.describedBy,
3464
- y
3465
- ].filter(Boolean).join(" ") || void 0, O = S !== null, [k, A] = ge({
3466
- value: t,
3467
- defaultValue: i,
3468
- onChange: u
3469
- }), j = O ? S.value === e : k, M = !!S?.disabled || a, P = !!S?.required || o, F = S?.name ?? v, I = !!(l || S?.invalid), L = s ?? S?.size ?? "md", R = c ?? S?.color ?? "primary", z = (t) => {
3470
- if (!M) {
3471
- if (O) {
3472
- S.onValueChange(e);
3473
- return;
3474
- }
3475
- A(t.currentTarget.checked);
3476
- }
3477
- };
3478
- return /* @__PURE__ */ r("div", {
3479
- className: N($.root, $[L], I && $.invalid, M && $.disabled, or[R], g),
3480
- children: [/* @__PURE__ */ r("label", {
3481
- htmlFor: w,
3482
- className: N($.wrapper, h),
3483
- children: [
3484
- /* @__PURE__ */ n("input", {
3485
- ...b,
3486
- ref: x,
3487
- id: w,
3488
- type: "radio",
3489
- name: F,
3490
- value: e,
3491
- checked: j,
3492
- disabled: M,
3493
- required: P,
3494
- "aria-invalid": I || void 0,
3495
- "aria-describedby": D,
3496
- className: $.input,
3497
- onChange: z
3498
- }),
3499
- /* @__PURE__ */ n("span", {
3500
- className: $.control,
3501
- "aria-hidden": "true",
3502
- children: /* @__PURE__ */ n("span", {
3503
- className: N($.indicator, m && $.customIcon),
3504
- children: m
3505
- })
3506
- }),
3507
- (d || f) && /* @__PURE__ */ r("span", {
3508
- className: $.content,
3509
- children: [d && /* @__PURE__ */ n("span", {
3510
- className: $.label,
3511
- children: d
3512
- }), f && /* @__PURE__ */ n("span", {
3513
- id: T,
3514
- className: $.description,
3515
- children: f
3516
- })]
3517
- })
3518
- ]
3519
- }), l && /* @__PURE__ */ n("div", {
3520
- id: E,
3521
- className: $.error,
3522
- children: l
3523
- })]
3524
- });
3525
- });
3526
- sr.displayName = "Radio";
3571
+ mr.displayName = "Input";
3527
3572
  //#endregion
3528
3573
  //#region src/theme/ThemeContext.ts
3529
- var cr = s(null), lr = (e) => e === "highContrast" ? "high-contrast" : e, ur = ({ theme: e, defaultTheme: t = "light", onThemeChange: r, children: i }) => {
3574
+ var hr = s(null), gr = (e) => e === "highContrast" ? "high-contrast" : e, _r = ({ theme: e, defaultTheme: t = "light", onThemeChange: r, children: i }) => {
3530
3575
  let [a, o] = ge({
3531
3576
  value: e,
3532
3577
  defaultValue: t,
3533
3578
  onChange: r
3534
- }), s = lr(a);
3579
+ }), s = gr(a);
3535
3580
  f(() => {
3536
3581
  if (typeof document > "u") return;
3537
3582
  let { documentElement: e } = document, t = e.dataset.velliraTheme;
@@ -3547,7 +3592,7 @@ var cr = s(null), lr = (e) => e === "highContrast" ? "high-contrast" : e, ur = (
3547
3592
  theme: a,
3548
3593
  setTheme: o
3549
3594
  }), [a, o]);
3550
- return /* @__PURE__ */ n(cr.Provider, {
3595
+ return /* @__PURE__ */ n(hr.Provider, {
3551
3596
  value: c,
3552
3597
  children: /* @__PURE__ */ n("div", {
3553
3598
  "data-vellira-theme": s,
@@ -3555,13 +3600,13 @@ var cr = s(null), lr = (e) => e === "highContrast" ? "high-contrast" : e, ur = (
3555
3600
  })
3556
3601
  });
3557
3602
  };
3558
- ur.displayName = "ThemeProvider";
3603
+ _r.displayName = "ThemeProvider";
3559
3604
  //#endregion
3560
3605
  //#region src/theme/useTheme.ts
3561
- function dr() {
3562
- let e = d(cr);
3606
+ function vr() {
3607
+ let e = d(hr);
3563
3608
  if (!e) throw Error("useTheme must be used within ThemeProvider.");
3564
3609
  return e;
3565
3610
  }
3566
3611
  //#endregion
3567
- export { Yn as Button, er as Checkbox, gt as Dropdown, vn as FormField, ar as Input, Vt as Modal, we as Portal, Ce as PortalProvider, sr as Radio, Kt as RadioGroup, Nn as Select, Wn as Tabs, ur as ThemeProvider, qn as Tooltip, dr as useTheme };
3612
+ export { ir as Button, lr as Checkbox, gt as Dropdown, Dn as FormField, mr as Input, Vt as Modal, we as Portal, Ce as PortalProvider, Kt as Radio, tn as RadioGroup, Hn as Select, $n as Tabs, _r as ThemeProvider, nr as Tooltip, vr as useTheme };