@vellira-ui/react 2.110.1 → 2.112.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
@@ -4,8 +4,8 @@ import { Check as v, ChevronDown as y, ChevronRight as b, Close as x, Search as
4
4
  import { createAutoFocusEvent as C, createConsoleOverlayDiagnostics as w, createOutsideEvent as T, createOverlayManagerStore as E, createOverlayZIndexPolicy as D, createRetainedResourceRegistry as O, deferOverlayFocusRestore as k, focusFirstElement as A, getCompoundSlot as j, getFocusableElements as M, markCompoundSlot as N, resolveOverlayPresentation as P, resolveSelectGroupSelection as F, runOverlayCloseAutoFocus as I } from "@vellira-ui/core";
5
5
  import L from "clsx";
6
6
  import { createPortal as R } from "react-dom";
7
- import { FloatingArrow as z, arrow as B, autoUpdate as V, flip as H, offset as U, shift as W, size as ee, useFloating as te, useFocus as ne, useHover as re, useInteractions as G } from "@floating-ui/react";
8
- import { controlSizes as ie, lightTheme as K } from "@vellira-ui/tokens";
7
+ import { FloatingArrow as z, arrow as B, autoUpdate as V, flip as H, offset as U, shift as W, size as G, useFloating as ee, useFocus as te, useHover as ne, useInteractions as K } from "@floating-ui/react";
8
+ import { controlSizes as re, lightTheme as ie } from "@vellira-ui/tokens";
9
9
  var ae = {
10
10
  root: "_root_n1iaz_1",
11
11
  item: "_item_n1iaz_11",
@@ -730,7 +730,7 @@ var Je = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
730
730
  let f = Xe(l), p = d(() => [
731
731
  U(i),
732
732
  ...s ? [H({ padding: a })] : [],
733
- ee({ apply({ rects: e, elements: t }) {
733
+ G({ apply({ rects: e, elements: t }) {
734
734
  !o || f || Object.assign(t.floating.style, { width: `${e.reference.width}px` });
735
735
  } }),
736
736
  ...s ? [W({ padding: a })] : [],
@@ -742,7 +742,7 @@ var Je = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
742
742
  f,
743
743
  o,
744
744
  i
745
- ]), { refs: m, floatingStyles: h, isPositioned: g, update: _, context: v, middlewareData: y, placement: b } = te({
745
+ ]), { refs: m, floatingStyles: h, isPositioned: g, update: _, context: v, middlewareData: y, placement: b } = ee({
746
746
  open: e,
747
747
  onOpenChange: t,
748
748
  placement: n,
@@ -769,7 +769,7 @@ var Je = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
769
769
  };
770
770
  }, Qe = D({
771
771
  defaultLevel: "popover",
772
- levels: K.tokens.zIndex
772
+ levels: ie.tokens.zIndex
773
773
  }), $e = w("WebOverlayManager");
774
774
  function et() {
775
775
  let e = E({
@@ -1373,19 +1373,19 @@ function It(e) {
1373
1373
  return typeof e == "number" ? `${e}px` : e;
1374
1374
  }
1375
1375
  var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, size: i = "md", color: a = "primary", placement: s = "bottom-start", strategy: u, offset: m = 2, collisionPadding: h = 8, matchTriggerWidth: v = !1, minWidth: y, maxWidth: b, portal: x = !0, avoidCollisions: S = !0, modal: C = !1, closeOnSelect: w = !0, loop: T = !0, disabled: E = !1, loading: D = !1, loadingText: O = "Loading actions...", searchable: k = !1, command: A = !1, searchValue: j, defaultSearchValue: M = "", searchPlaceholder: N, onSearch: P, empty: F, className: I }) => {
1376
- let L = l(), R = `${L}-trigger`, z = `${L}-menu`, B = f(null), V = f(null), [H, U] = p(), [W, ee] = p({}), [te, ne] = p(M), re = j ?? te, G = d(() => he(e), [e]), ie = G.content?.props.command ?? !1, K = k || A || ie || !!G.search, ae = d(() => Bt(G.items), [G.items]), oe = d(() => G.items.map((e) => ({
1376
+ let L = l(), R = `${L}-trigger`, z = `${L}-menu`, B = f(null), V = f(null), [H, U] = p(), [W, G] = p({}), [ee, te] = p(M), ne = j ?? ee, K = d(() => he(e), [e]), re = K.content?.props.command ?? !1, ie = k || A || re || !!K.search, ae = d(() => Bt(K.items), [K.items]), oe = d(() => K.items.map((e) => ({
1377
1377
  disabled: e.disabled,
1378
1378
  label: e.label
1379
- })), [G.items]), se = d(() => !K || !re.trim() ? G : Vt(G, re), [
1379
+ })), [K.items]), se = d(() => !ie || !ne.trim() ? K : Vt(K, ne), [
1380
+ ie,
1380
1381
  K,
1381
- G,
1382
- re
1382
+ ne
1383
1383
  ]), ce = d(() => se.items.map((e) => ({
1384
1384
  disabled: e.disabled,
1385
1385
  label: e.label
1386
1386
  })), [se.items]);
1387
1387
  c(() => {
1388
- ee((e) => {
1388
+ G((e) => {
1389
1389
  let t = { ...e };
1390
1390
  return ae.forEach((e) => {
1391
1391
  e.type === "radio" && t[e.groupId] === void 0 && (t[e.groupId] = e.groupProps?.value ?? e.groupProps?.defaultValue);
@@ -1393,12 +1393,12 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1393
1393
  });
1394
1394
  }, [ae]);
1395
1395
  let { activeIndex: le, setActiveIndex: ue, isOpen: de, closeDropdown: q, toggleDropdown: fe, onKeyDown: pe } = bt({
1396
- items: K ? ce : oe,
1396
+ items: ie ? ce : oe,
1397
1397
  open: t,
1398
1398
  defaultOpen: n,
1399
1399
  disabled: E,
1400
1400
  onOpenChange: r,
1401
- getItemValue: (e, t) => (K ? se.items : G.items)[t]?.id ?? "",
1401
+ getItemValue: (e, t) => (ie ? se.items : K.items)[t]?.id ?? "",
1402
1402
  getItemText: (e) => e.label,
1403
1403
  loop: T
1404
1404
  }), { floatingStyles: me, isMobileSheet: Y, isPositioned: ge, setRef: _e, setFloatingRef: ve } = ut({
@@ -1412,7 +1412,7 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1412
1412
  collisionPadding: h,
1413
1413
  mobileSheetBreakpoint: 640
1414
1414
  }), ye = o((e) => {
1415
- j === void 0 && ne(e), P?.(e), ue(0);
1415
+ j === void 0 && te(e), P?.(e), ue(0);
1416
1416
  }, [
1417
1417
  P,
1418
1418
  j,
@@ -1430,7 +1430,7 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1430
1430
  U(e.id);
1431
1431
  return;
1432
1432
  }
1433
- e.type === "item" && e.props.onSelect?.(t), e.type === "radio" && (ee((t) => ({
1433
+ e.type === "item" && e.props.onSelect?.(t), e.type === "radio" && (G((t) => ({
1434
1434
  ...t,
1435
1435
  [e.groupId]: e.props.value
1436
1436
  })), e.groupProps?.onValueChange?.(e.props.value));
@@ -1497,7 +1497,7 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1497
1497
  color: a,
1498
1498
  contentReadyToFocus: Y || ge,
1499
1499
  contentId: z,
1500
- contentProps: G.content?.props,
1500
+ contentProps: K.content?.props,
1501
1501
  disabled: E,
1502
1502
  entries: se.entries,
1503
1503
  getItemId: (e) => `${z}-item-${e}`,
@@ -1510,18 +1510,18 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1510
1510
  minWidth: y,
1511
1511
  openSubId: H,
1512
1512
  onKeyDown: Se,
1513
- portal: !G.portal && x,
1513
+ portal: !K.portal && x,
1514
1514
  radioValues: W,
1515
- searchPlaceholder: G.search?.props.placeholder ?? N ?? (A || ie ? "Type a command..." : "Search actions..."),
1516
- searchProps: G.search?.props,
1517
- searchValue: re,
1518
- searchable: K,
1515
+ searchPlaceholder: K.search?.props.placeholder ?? N ?? (A || re ? "Type a command..." : "Search actions..."),
1516
+ searchProps: K.search?.props,
1517
+ searchValue: ne,
1518
+ searchable: ie,
1519
1519
  selectItem: xe,
1520
1520
  setActiveIndex: ue,
1521
1521
  setContentRef: Te,
1522
1522
  setOpenSubId: U,
1523
1523
  setRadioValue: (e, t) => {
1524
- ee((n) => ({
1524
+ G((n) => ({
1525
1525
  ...n,
1526
1526
  [e]: t
1527
1527
  }));
@@ -1538,7 +1538,7 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1538
1538
  children: /* @__PURE__ */ _("div", {
1539
1539
  className: J(Lt.wrapper, I),
1540
1540
  "data-disabled": E || void 0,
1541
- children: [G.trigger ?? null, G.portal ?? G.content ?? /* @__PURE__ */ g(Dt, {})]
1541
+ children: [K.trigger ?? null, K.portal ?? K.content ?? /* @__PURE__ */ g(Dt, {})]
1542
1542
  })
1543
1543
  })
1544
1544
  });
@@ -1710,7 +1710,7 @@ var sn = {
1710
1710
  active: h,
1711
1711
  contentRef: f.contentRef,
1712
1712
  enabled: f.trapFocus,
1713
- finalFocus: f.finalFocus,
1713
+ finalFocus: f.finalFocus ?? f.triggerRef,
1714
1714
  initialFocus: f.initialFocus,
1715
1715
  onCloseAutoFocus: f.onCloseAutoFocus,
1716
1716
  onOpenAutoFocus: f.onOpenAutoFocus,
@@ -1810,7 +1810,7 @@ var gn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1810
1810
  onPointerDownOutside: s ? (e) => s(e) : void 0,
1811
1811
  requestClose: l
1812
1812
  }), _n = {
1813
- standard: K.components.modal.motion.easing,
1813
+ standard: ie.components.modal.motion.easing,
1814
1814
  linear: "linear",
1815
1815
  ease: "ease",
1816
1816
  "ease-in": "ease-in",
@@ -1820,84 +1820,84 @@ var gn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1820
1820
  close: e,
1821
1821
  open: e
1822
1822
  } : {
1823
- close: e?.close ?? vn(K.components.modal.motion.closeDuration),
1824
- open: e?.open ?? vn(K.components.modal.motion.openDuration)
1823
+ close: e?.close ?? vn(ie.components.modal.motion.closeDuration),
1824
+ open: e?.open ?? vn(ie.components.modal.motion.openDuration)
1825
1825
  }, bn = ({ open: e, defaultOpen: t = !1, onOpenChange: n, animation: r = "scale", duration: i, easing: a = "standard", modal: s = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, preventScroll: m = !0, restoreFocus: h = !0, trapFocus: g = !0, initialFocus: _, finalFocus: v, onOpenAutoFocus: y, onCloseAutoFocus: b, onEscapeKeyDown: x, onPointerDownOutside: S, onInteractOutside: C, role: w = "dialog" }) => {
1826
- let T = f(null), { contentId: E, descriptionId: D, open: O, requestClose: k, setOpen: A, titleId: j } = xt({
1826
+ let T = f(null), E = f(null), { contentId: D, descriptionId: O, open: k, requestClose: A, setOpen: j, titleId: M } = xt({
1827
1827
  open: e,
1828
1828
  defaultOpen: t,
1829
1829
  onOpenChange: n,
1830
1830
  closeOnEscape: l,
1831
1831
  closeOnOutsidePress: u
1832
- }), [M, N] = p(!1), [P, F] = p(!1), [I, L] = p(0), R = yn(i), z = r === "none" ? 0 : R.close, [B, V] = p(O);
1832
+ }), [N, P] = p(!1), [F, I] = p(!1), [L, R] = p(0), z = yn(i), B = r === "none" ? 0 : z.close, [V, H] = p(k);
1833
1833
  c(() => {
1834
- if (O) {
1835
- V(!0);
1834
+ if (k) {
1835
+ H(!0);
1836
1836
  return;
1837
1837
  }
1838
- if (z === 0) {
1839
- V(!1);
1838
+ if (B === 0) {
1839
+ H(!1);
1840
1840
  return;
1841
1841
  }
1842
1842
  let e = window.setTimeout(() => {
1843
- V(!1);
1844
- }, z);
1843
+ H(!1);
1844
+ }, B);
1845
1845
  return () => {
1846
1846
  window.clearTimeout(e);
1847
1847
  };
1848
- }, [z, O]);
1849
- let H = o(() => {
1850
- k();
1851
- }, [k]), U = o((e) => {
1852
- T.current !== e && (T.current = e, L((e) => e + 1));
1848
+ }, [B, k]);
1849
+ let U = o(() => {
1850
+ A();
1851
+ }, [A]), W = o((e) => {
1852
+ T.current !== e && (T.current = e, R((e) => e + 1));
1853
1853
  }, []);
1854
1854
  mt({
1855
- active: O,
1855
+ active: k,
1856
1856
  enabled: m
1857
1857
  });
1858
- let W = gn({
1859
- active: O,
1860
- registrationActive: B,
1861
- id: E,
1858
+ let G = gn({
1859
+ active: k,
1860
+ registrationActive: V,
1861
+ id: D,
1862
1862
  contentRef: T,
1863
1863
  closeOnEscape: l,
1864
1864
  closeOnOutsidePress: u,
1865
1865
  onEscapeKeyDown: x,
1866
1866
  onInteractOutside: C,
1867
1867
  onPointerDownOutside: S,
1868
- requestClose: H
1868
+ requestClose: U
1869
1869
  }), ee = d(() => ({
1870
- "--modal-animation-close-duration": `${R.close}ms`,
1870
+ "--modal-animation-close-duration": `${z.close}ms`,
1871
1871
  "--modal-animation-easing": _n[a],
1872
- "--modal-animation-open-duration": `${R.open}ms`,
1873
- "--z-index-modal": W.zIndex === void 0 ? void 0 : `${W.zIndex}`
1872
+ "--modal-animation-open-duration": `${z.open}ms`,
1873
+ "--z-index-modal": G.zIndex === void 0 ? void 0 : `${G.zIndex}`
1874
1874
  }), [
1875
- R.close,
1876
- R.open,
1875
+ z.close,
1876
+ z.open,
1877
1877
  a,
1878
- W.zIndex
1878
+ G.zIndex
1879
1879
  ]), te = ut({
1880
1880
  presentation: "modal",
1881
1881
  animationStyle: ee
1882
1882
  }).animationStyle ?? ee;
1883
1883
  return c(() => {
1884
- if (process.env.NODE_ENV === "production" || !O || M || !T.current) return;
1884
+ if (process.env.NODE_ENV === "production" || !k || N || !T.current) return;
1885
1885
  let e = window.setTimeout(() => {
1886
1886
  let e = T.current, t = e?.getAttribute("aria-labelledby"), n = t ? !!document.getElementById(t) : !1;
1887
- !O || M || !e || e.hasAttribute("aria-label") || n || console.warn("Modal.Content requires Modal.Title or ariaLabel.");
1887
+ !k || N || !e || e.hasAttribute("aria-label") || n || console.warn("Modal.Content requires Modal.Title or ariaLabel.");
1888
1888
  }, 0);
1889
1889
  return () => {
1890
1890
  window.clearTimeout(e);
1891
1891
  };
1892
1892
  }, [
1893
- I,
1894
- O,
1895
- M
1893
+ L,
1894
+ k,
1895
+ N
1896
1896
  ]), c(() => {
1897
- process.env.NODE_ENV === "production" || !O || w !== "alertdialog" || P || console.warn("Modal with role=\"alertdialog\" requires Modal.Description.");
1897
+ process.env.NODE_ENV === "production" || !k || w !== "alertdialog" || F || console.warn("Modal with role=\"alertdialog\" requires Modal.Description.");
1898
1898
  }, [
1899
- P,
1900
- O,
1899
+ F,
1900
+ k,
1901
1901
  w
1902
1902
  ]), {
1903
1903
  context: d(() => ({
@@ -1905,41 +1905,42 @@ var gn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1905
1905
  animationStyle: te,
1906
1906
  closeOnEscape: l,
1907
1907
  closeOnOutsidePress: u,
1908
- contentId: E,
1908
+ contentId: D,
1909
1909
  contentRef: T,
1910
- descriptionId: D,
1910
+ descriptionId: O,
1911
1911
  finalFocus: v,
1912
1912
  initialFocus: _,
1913
- zIndex: W.zIndex,
1913
+ zIndex: G.zIndex,
1914
1914
  modal: s,
1915
1915
  onCloseAutoFocus: b,
1916
1916
  onEscapeKeyDown: x,
1917
1917
  onInteractOutside: C,
1918
1918
  onOpenAutoFocus: y,
1919
1919
  onPointerDownOutside: S,
1920
- open: O,
1920
+ open: k,
1921
1921
  preventScroll: m,
1922
- requestClose: H,
1922
+ requestClose: U,
1923
1923
  restoreFocus: h,
1924
1924
  role: w,
1925
- setContentRef: U,
1926
- setDescriptionPresent: F,
1927
- setOpen: A,
1928
- setTitlePresent: N,
1929
- shouldRender: B,
1930
- titleId: j,
1931
- trapFocus: g
1925
+ setContentRef: W,
1926
+ setDescriptionPresent: I,
1927
+ setOpen: j,
1928
+ setTitlePresent: P,
1929
+ shouldRender: V,
1930
+ titleId: M,
1931
+ trapFocus: g,
1932
+ triggerRef: E
1932
1933
  }), [
1933
1934
  r,
1934
1935
  te,
1935
1936
  l,
1936
1937
  u,
1937
- E,
1938
1938
  D,
1939
+ O,
1939
1940
  v,
1940
1941
  _,
1941
- W.zIndex,
1942
- O,
1942
+ G.zIndex,
1943
+ k,
1943
1944
  s,
1944
1945
  b,
1945
1946
  x,
@@ -1947,16 +1948,16 @@ var gn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1947
1948
  y,
1948
1949
  S,
1949
1950
  m,
1950
- H,
1951
+ U,
1951
1952
  h,
1952
1953
  w,
1953
- U,
1954
- A,
1955
- B,
1954
+ W,
1956
1955
  j,
1956
+ V,
1957
+ M,
1957
1958
  g
1958
1959
  ]),
1959
- open: O
1960
+ open: k
1960
1961
  };
1961
1962
  }, xn = ({ children: e, className: t, ...n }) => {
1962
1963
  let { context: r, open: i } = bn(n);
@@ -1987,9 +1988,12 @@ var Sn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1987
1988
  };
1988
1989
  return s ? n(s, {
1989
1990
  ...l,
1990
- ref: Ft(s.props.ref),
1991
+ ref: Ft(s.props.ref, o.triggerRef),
1991
1992
  className: J(s.props.className, i)
1992
1993
  }) : /* @__PURE__ */ g("button", {
1994
+ ref: (e) => {
1995
+ o.triggerRef.current = e;
1996
+ },
1993
1997
  type: "button",
1994
1998
  ...l,
1995
1999
  children: e
@@ -2707,27 +2711,27 @@ var pr = {
2707
2711
  };
2708
2712
  cr(mr, "content"), mr.displayName = "Select.Content";
2709
2713
  var hr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style: i, options: a, entries: s, multiple: l, selectedValues: u, color: m = "primary", variant: v = "outline", searchable: y, command: b, virtual: S, portal: C = !0, searchValue: w = "", searchPlaceholder: T = "Search...", loading: E, loadingText: D = "Loading...", emptyText: O, searchSlot: k, headerSlot: A, emptySlot: j, loadingSlot: M, renderOption: N, selectedValue: P, activeIndex: F, visualActiveIndex: I = F, className: L, onSelect: R, onSelectGroup: z, onMouseEnter: B, onSearchChange: V }) => {
2710
- let H = f(null), U = f(!1), [W, ee] = p(null), [te, ne] = p(0), [re, G] = p(), { bottomSpacerHeight: ie, isVirtual: K, itemHeight: ae, maxHeight: oe, startIndex: se, topSpacerHeight: ce, viewportHeight: le, visibleOptions: ue } = d(() => sr({
2714
+ let H = f(null), U = f(!1), [W, G] = p(null), [ee, te] = p(0), [ne, K] = p(), { bottomSpacerHeight: re, isVirtual: ie, itemHeight: ae, maxHeight: oe, startIndex: se, topSpacerHeight: ce, viewportHeight: le, visibleOptions: ue } = d(() => sr({
2711
2715
  loading: E,
2712
2716
  options: a,
2713
- scrollTop: te,
2717
+ scrollTop: ee,
2714
2718
  virtual: S,
2715
- viewportHeight: re
2719
+ viewportHeight: ne
2716
2720
  }), [
2717
2721
  E,
2718
2722
  a,
2719
- te,
2720
- re,
2723
+ ee,
2724
+ ne,
2721
2725
  S
2722
2726
  ]), de = o((e) => {
2723
- ee(e), r(e), e && G(e.clientHeight || void 0);
2727
+ G(e), r(e), e && K(e.clientHeight || void 0);
2724
2728
  }, [r]);
2725
2729
  c(() => {
2726
- e || (U.current = !1, ne(0), G(void 0));
2730
+ e || (U.current = !1, te(0), K(void 0));
2727
2731
  }, [e, w]), c(() => {
2728
- if (!e || !W || (G(W.clientHeight || void 0), !("ResizeObserver" in window))) return;
2732
+ if (!e || !W || (K(W.clientHeight || void 0), !("ResizeObserver" in window))) return;
2729
2733
  let t = new ResizeObserver(([e]) => {
2730
- G(e?.contentRect.height || void 0);
2734
+ K(e?.contentRect.height || void 0);
2731
2735
  });
2732
2736
  return t.observe(W), () => t.disconnect();
2733
2737
  }, [W, e]), c(() => {
@@ -2743,9 +2747,9 @@ var hr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2743
2747
  U.current = !0;
2744
2748
  return;
2745
2749
  }
2746
- if (U.current = !0, K) {
2750
+ if (U.current = !0, ie) {
2747
2751
  let e = Math.max(0, r * ae - (le - ae) / 2);
2748
- ne(e), W.scrollTop = e;
2752
+ te(e), W.scrollTop = e;
2749
2753
  return;
2750
2754
  }
2751
2755
  document.getElementById(`${t}-option-${r}`)?.scrollIntoView?.({ block: "nearest" });
@@ -2753,7 +2757,7 @@ var hr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2753
2757
  F,
2754
2758
  W,
2755
2759
  e,
2756
- K,
2760
+ ie,
2757
2761
  ae,
2758
2762
  t,
2759
2763
  E,
@@ -2767,7 +2771,7 @@ var hr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2767
2771
  "--select-dropdown-max-height": typeof oe == "number" ? `${oe}px` : oe
2768
2772
  }), [oe, i]);
2769
2773
  if (!e) return null;
2770
- let fe = s && !K ? s : ue.map((e, t) => ({
2774
+ let fe = s && !ie ? s : ue.map((e, t) => ({
2771
2775
  type: "option",
2772
2776
  option: e,
2773
2777
  optionIndex: se + t
@@ -2783,7 +2787,7 @@ var hr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2783
2787
  ].filter(Boolean).join(" "),
2784
2788
  style: q,
2785
2789
  onScroll: (e) => {
2786
- K && ne(e.currentTarget.scrollTop);
2790
+ ie && te(e.currentTarget.scrollTop);
2787
2791
  },
2788
2792
  children: [
2789
2793
  A,
@@ -2819,7 +2823,7 @@ var hr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2819
2823
  className: pr.empty,
2820
2824
  children: M ?? D
2821
2825
  }) : a.length ? /* @__PURE__ */ _(h, { children: [
2822
- K && /* @__PURE__ */ g("li", {
2826
+ ie && /* @__PURE__ */ g("li", {
2823
2827
  "aria-hidden": "true",
2824
2828
  className: pr.virtualSpacer,
2825
2829
  style: { height: ce }
@@ -2877,10 +2881,10 @@ var hr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2877
2881
  onMouseEnter: () => B(r)
2878
2882
  }, n.value);
2879
2883
  }),
2880
- K && /* @__PURE__ */ g("li", {
2884
+ ie && /* @__PURE__ */ g("li", {
2881
2885
  "aria-hidden": "true",
2882
2886
  className: pr.virtualSpacer,
2883
- style: { height: ie }
2887
+ style: { height: re }
2884
2888
  })
2885
2889
  ] }) : /* @__PURE__ */ g("li", {
2886
2890
  role: "option",
@@ -3244,20 +3248,20 @@ function Br(t) {
3244
3248
  }), n.length > 0 && (r.fallbackChildren = n.length === 1 ? n[0] : n), r;
3245
3249
  }
3246
3250
  var Vr = ({ id: e, label: r, description: i, error: o, message: s, messageTone: c, messageLive: u, required: d = !1, disabled: f = !1, invalid: p = !1, orientation: m = "vertical", labelPosition: h = "top", size: v = "md", labelInfo: y, labelAction: b, optionalText: x, children: S, bindControl: C = !0, className: w, controlClassName: T, labelClassName: E, descriptionClassName: D, errorClassName: O, messageClassName: k, ...A }) => {
3247
- let j = Br(S), M = r ?? j.label?.children, N = i ?? j.description?.children, P = s ?? j.message?.children, F = c ?? j.message?.tone ?? "neutral", I = u ?? j.message?.live ?? "off", L = y ?? j.label?.info, R = b ?? j.label?.action, z = x ?? j.label?.optionalText, B = j.hasSlots ? j.control?.children ?? j.fallbackChildren : S, V = j.control?.bindControl ?? C, H = l(), U = e ?? H, W = M ? `${U}-label` : void 0, ee = N && U ? `${U}-description` : void 0, te = o && U ? `${U}-error` : void 0, ne = !o && P && U ? `${U}-message` : void 0, re = p || !!o, G = o ?? P, ie = o ? "danger" : F, K = {
3251
+ let j = Br(S), M = r ?? j.label?.children, N = i ?? j.description?.children, P = s ?? j.message?.children, F = c ?? j.message?.tone ?? "neutral", I = u ?? j.message?.live ?? "off", L = y ?? j.label?.info, R = b ?? j.label?.action, z = x ?? j.label?.optionalText, B = j.hasSlots ? j.control?.children ?? j.fallbackChildren : S, V = j.control?.bindControl ?? C, H = l(), U = e ?? H, W = M ? `${U}-label` : void 0, G = N && U ? `${U}-description` : void 0, ee = o && U ? `${U}-error` : void 0, te = !o && P && U ? `${U}-message` : void 0, ne = p || !!o, K = o ?? P, re = o ? "danger" : F, ie = {
3248
3252
  neutral: Lr.messageToneNeutral,
3249
3253
  success: Lr.messageToneSuccess,
3250
3254
  warning: Lr.messageToneWarning,
3251
3255
  danger: Lr.messageToneDanger
3252
- }[ie], ae = Rr(W), oe = Rr(ee, te, ne), se = {
3256
+ }[re], ae = Rr(W), oe = Rr(G, ee, te), se = {
3253
3257
  controlId: U,
3254
3258
  labelId: W,
3255
- descriptionId: ee,
3256
- errorId: te,
3257
- messageId: ne,
3259
+ descriptionId: G,
3260
+ errorId: ee,
3261
+ messageId: te,
3258
3262
  required: d,
3259
3263
  disabled: f,
3260
- invalid: re,
3264
+ invalid: ne,
3261
3265
  size: v,
3262
3266
  ariaLabelledBy: ae,
3263
3267
  ariaDescribedBy: oe
@@ -3265,7 +3269,7 @@ var Vr = ({ id: e, label: r, description: i, error: o, message: s, messageTone:
3265
3269
  id: ce.props.id ?? U,
3266
3270
  required: ce.props.required ?? d,
3267
3271
  disabled: ce.props.disabled ?? f,
3268
- "aria-invalid": ce.props["aria-invalid"] ?? (re || void 0),
3272
+ "aria-invalid": ce.props["aria-invalid"] ?? (ne || void 0),
3269
3273
  "aria-labelledby": Rr(ce.props["aria-labelledby"], ae),
3270
3274
  "aria-describedby": Rr(ce.props["aria-describedby"], oe)
3271
3275
  }) : B;
@@ -3274,7 +3278,7 @@ var Vr = ({ id: e, label: r, description: i, error: o, message: s, messageTone:
3274
3278
  "aria-disabled": f || void 0,
3275
3279
  className: J(Lr.wrapper, Lr[m], Lr[h], Lr[v], f && Lr.disabled, w),
3276
3280
  "data-disabled": f || void 0,
3277
- "data-invalid": re || void 0,
3281
+ "data-invalid": ne || void 0,
3278
3282
  "data-orientation": m,
3279
3283
  "data-size": v,
3280
3284
  children: [
@@ -3309,7 +3313,7 @@ var Vr = ({ id: e, label: r, description: i, error: o, message: s, messageTone:
3309
3313
  })]
3310
3314
  }),
3311
3315
  N && /* @__PURE__ */ g("div", {
3312
- id: ee,
3316
+ id: G,
3313
3317
  className: J(Lr.description, j.description?.className, D),
3314
3318
  children: N
3315
3319
  }),
@@ -3320,12 +3324,12 @@ var Vr = ({ id: e, label: r, description: i, error: o, message: s, messageTone:
3320
3324
  children: le
3321
3325
  })
3322
3326
  }),
3323
- G && /* @__PURE__ */ g("div", {
3324
- id: o ? te : ne,
3325
- className: J(Lr.message, K, !o && j.message?.className, o ? O : k),
3327
+ K && /* @__PURE__ */ g("div", {
3328
+ id: o ? ee : te,
3329
+ className: J(Lr.message, ie, !o && j.message?.className, o ? O : k),
3326
3330
  role: o ? "alert" : void 0,
3327
3331
  "aria-live": !o && I === "polite" ? "polite" : void 0,
3328
- children: G
3332
+ children: K
3329
3333
  })
3330
3334
  ]
3331
3335
  });
@@ -3339,7 +3343,7 @@ var Vr = ({ id: e, label: r, description: i, error: o, message: s, messageTone:
3339
3343
  //#endregion
3340
3344
  //#region src/components/Select/Root/useSelectRootState.tsx
3341
3345
  function qr(e) {
3342
- let { children: t, label: n, description: r, id: i, name: a, "aria-label": s, "aria-describedby": u, "aria-labelledby": m, multiple: v = !1, maxSelected: y, closeOnSelect: b, placeholder: x = "Select...", empty: S, loadingText: C = "Loading...", size: w, color: T = "primary", variant: E = "outline", required: D = !1, disabled: O = !1, invalid: k = !1, loading: A = !1, clearable: j = !1, searchable: M = !1, virtual: N, modal: P = !1, command: I = !1, error: L, placement: R = "bottom", matchTriggerWidth: z = !0, avoidCollisions: B = !0, portal: V = !0, open: H, defaultOpen: U = !1, onOpenChange: W, onSearch: ee, onClear: te, startIcon: ne, endIcon: re, prefix: G, suffix: ie, renderValue: K, renderOption: ae, onBlur: oe, onFocus: se, className: ce, triggerClassName: le, dropdownClassName: ue } = e, de = l(), q = Ir(), fe = !!(n || r || L), J = i ?? (fe ? void 0 : q?.controlId) ?? de, pe = `${J}-listbox`, [me, Y] = p(""), he = !!L, ge = he ? `${J}-error` : void 0, _e = r ? `${J}-description` : void 0, ve = w ?? q?.size ?? "md", ye = k || he || !fe && !!q?.invalid, be = O || !fe && !!q?.disabled, xe = D || !fe && !!q?.required, Se = [
3346
+ let { children: t, label: n, description: r, id: i, name: a, "aria-label": s, "aria-describedby": u, "aria-labelledby": m, multiple: v = !1, maxSelected: y, closeOnSelect: b, placeholder: x = "Select...", empty: S, loadingText: C = "Loading...", size: w, color: T = "primary", variant: E = "outline", required: D = !1, disabled: O = !1, invalid: k = !1, loading: A = !1, clearable: j = !1, searchable: M = !1, virtual: N, modal: P = !1, command: I = !1, error: L, placement: R = "bottom", matchTriggerWidth: z = !0, avoidCollisions: B = !0, portal: V = !0, open: H, defaultOpen: U = !1, onOpenChange: W, onSearch: G, onClear: ee, startIcon: te, endIcon: ne, prefix: K, suffix: re, renderValue: ie, renderOption: ae, onBlur: oe, onFocus: se, className: ce, triggerClassName: le, dropdownClassName: ue } = e, de = l(), q = Ir(), fe = !!(n || r || L), J = i ?? (fe ? void 0 : q?.controlId) ?? de, pe = `${J}-listbox`, [me, Y] = p(""), he = !!L, ge = he ? `${J}-error` : void 0, _e = r ? `${J}-description` : void 0, ve = w ?? q?.size ?? "md", ye = k || he || !fe && !!q?.invalid, be = O || !fe && !!q?.disabled, xe = D || !fe && !!q?.required, Se = [
3343
3347
  u,
3344
3348
  !fe && !u ? q?.ariaDescribedBy : void 0,
3345
3349
  _e,
@@ -3404,16 +3408,16 @@ function qr(e) {
3404
3408
  Fe,
3405
3409
  Re
3406
3410
  ]), et = o(() => {
3407
- Ue(""), te?.(), Ce.current?.focus();
3408
- }, [te, Ue]), tt = o(() => {
3411
+ Ue(""), ee?.(), Ce.current?.focus();
3412
+ }, [ee, Ue]), tt = o(() => {
3409
3413
  Ie || Ee(!1), He();
3410
3414
  }, [Ie, He]), nt = o((e) => {
3411
3415
  Jr(e, Ie) && Ee(!0), We(e);
3412
3416
  }, [Ie, We]), rt = o((e) => {
3413
3417
  Ee(!0), Be(e);
3414
3418
  }, [Be]), it = o((e) => {
3415
- Y(e), ee?.(e);
3416
- }, [ee]), at = lt({
3419
+ Y(e), G?.(e);
3420
+ }, [G]), at = lt({
3417
3421
  active: Ie,
3418
3422
  id: pe,
3419
3423
  zIndexLevel: "dropdown",
@@ -3435,7 +3439,7 @@ function qr(e) {
3435
3439
  Ce.current = e, Xe(e);
3436
3440
  }, [Xe]), st = o((e) => {
3437
3441
  we.current = e, Ze(e);
3438
- }, [Ze]), ct = d(() => K ? K({
3442
+ }, [Ze]), ct = d(() => ie ? ie({
3439
3443
  multiple: v,
3440
3444
  option: Ge,
3441
3445
  options: Ke,
@@ -3444,7 +3448,7 @@ function qr(e) {
3444
3448
  }) : v && Ke.length ? Ke.map((e) => e.label).join(", ") : Ge?.label ?? x, [
3445
3449
  v,
3446
3450
  x,
3447
- K,
3451
+ ie,
3448
3452
  Ge,
3449
3453
  Ke,
3450
3454
  Fe,
@@ -3469,10 +3473,10 @@ function qr(e) {
3469
3473
  size: ve,
3470
3474
  color: T,
3471
3475
  variant: E,
3472
- startIcon: ne,
3473
- endIcon: re,
3474
- prefix: G,
3475
- suffix: ie,
3476
+ startIcon: te,
3477
+ endIcon: ne,
3478
+ prefix: K,
3479
+ suffix: re,
3476
3480
  clearable: dt,
3477
3481
  className: le,
3478
3482
  buttonRef: ot,
@@ -3487,7 +3491,7 @@ function qr(e) {
3487
3491
  m,
3488
3492
  T,
3489
3493
  Se,
3490
- re,
3494
+ ne,
3491
3495
  q?.labelId,
3492
3496
  et,
3493
3497
  tt,
@@ -3503,14 +3507,14 @@ function qr(e) {
3503
3507
  oe,
3504
3508
  se,
3505
3509
  x,
3506
- G,
3510
+ K,
3507
3511
  ve,
3508
3512
  ct,
3509
3513
  Ge?.label,
3510
3514
  ot,
3511
3515
  dt,
3512
- ne,
3513
- ie,
3516
+ te,
3517
+ re,
3514
3518
  le,
3515
3519
  J,
3516
3520
  E
@@ -4131,13 +4135,13 @@ var vi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
4131
4135
  v,
4132
4136
  O,
4133
4137
  t
4134
- ]), H = z && !R || u || d, U = L.every((e) => typeof e == "string" || typeof e == "number"), W = J(hi.trigger, hi[T], hi[E], w === "vertical" && hi.vertical, z && hi.withIcon, B && hi.iconOnly, i), ee = (e) => {
4138
+ ]), H = z && !R || u || d, U = L.every((e) => typeof e == "string" || typeof e == "number"), W = J(hi.trigger, hi[T], hi[E], w === "vertical" && hi.vertical, z && hi.withIcon, B && hi.iconOnly, i), G = (e) => {
4135
4139
  if (M) {
4136
4140
  e.preventDefault();
4137
4141
  return;
4138
4142
  }
4139
4143
  S(t), x(t);
4140
- }, te = (e) => {
4144
+ }, ee = (e) => {
4141
4145
  e.defaultPrevented || k(e);
4142
4146
  };
4143
4147
  return C === "navigation" && F ? n(F, {
@@ -4154,10 +4158,10 @@ var vi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
4154
4158
  e.preventDefault();
4155
4159
  return;
4156
4160
  }
4157
- ee(e);
4161
+ G(e);
4158
4162
  },
4159
4163
  onKeyDown: (e) => {
4160
- F.props.onKeyDown?.(e), !e.defaultPrevented && te(e);
4164
+ F.props.onKeyDown?.(e), !e.defaultPrevented && ee(e);
4161
4165
  },
4162
4166
  children: /* @__PURE__ */ _(h, { children: [
4163
4167
  z && !R && /* @__PURE__ */ g("span", {
@@ -4198,10 +4202,10 @@ var vi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
4198
4202
  "data-disabled": M ? "" : void 0,
4199
4203
  className: W,
4200
4204
  onClick: (e) => {
4201
- f?.(e), !e.defaultPrevented && ee(e);
4205
+ f?.(e), !e.defaultPrevented && G(e);
4202
4206
  },
4203
4207
  onKeyDown: (e) => {
4204
- p?.(e), !e.defaultPrevented && te(e);
4208
+ p?.(e), !e.defaultPrevented && ee(e);
4205
4209
  },
4206
4210
  children: [
4207
4211
  z && !R && /* @__PURE__ */ g("span", {
@@ -4348,13 +4352,13 @@ function ji(e, t) {
4348
4352
  //#endregion
4349
4353
  //#region src/components/Tooltip/internal/useTooltipInteractions.ts
4350
4354
  function Mi({ context: e, delay: t, disabled: n, interactive: r }) {
4351
- let i = re(e, {
4355
+ let i = ne(e, {
4352
4356
  delay: t,
4353
4357
  enabled: !n,
4354
4358
  move: !1,
4355
4359
  handleClose: r ? void 0 : null
4356
- }), a = ne(e, { enabled: !n });
4357
- return G([i, a]);
4360
+ }), a = te(e, { enabled: !n });
4361
+ return K([i, a]);
4358
4362
  }
4359
4363
  //#endregion
4360
4364
  //#region src/components/Tooltip/internal/useTooltipPosition.ts
@@ -4496,23 +4500,23 @@ var Li = {
4496
4500
  badge: "_badge_1jj4q_815",
4497
4501
  shortcut: "_shortcut_1jj4q_829"
4498
4502
  }, Ri = i(({ children: e, color: t = "primary", appearance: r = "solid", size: i = "md", shape: o = "pill", type: s = "button", disabled: c = !1, loading: l = !1, loadingText: u, iconStart: d, iconEnd: f, spinner: p, badge: m, shortcut: v, tooltip: y, fullWidth: b = !1, iconOnly: x = !1, asChild: S = !1, className: C, style: w, onClick: T, "aria-label": E, "aria-labelledby": D, href: O, target: k, rel: A, download: j, id: M, role: N, tabIndex: P, ...F }, I) => {
4499
- let L = S && a(e) ? e : void 0, R = L ? L.props.children : e, z = x || !R && !!(d || f), B = !!(E || D || L?.props["aria-label"] || L?.props["aria-labelledby"]), V = c || l, H = r === "bare", U = ie[i], W = {
4503
+ let L = S && a(e) ? e : void 0, R = L ? L.props.children : e, z = x || !R && !!(d || f), B = !!(E || D || L?.props["aria-label"] || L?.props["aria-labelledby"]), V = c || l, H = r === "bare", U = re[i], W = {
4500
4504
  "--button-height": `${U.height}px`,
4501
4505
  "--button-font-size": `${U.fontSize}px`,
4502
4506
  "--button-line-height": `${U.lineHeight}px`,
4503
4507
  "--icon-size": `${U.iconSize}px`
4504
- }, ee = l && u ? u : R, te = u && R && !z && (typeof R == "string" || typeof R == "number") && (typeof u == "string" || typeof u == "number") ? String(l ? R : u) : void 0, ne = k === "_blank" && !A ? "noreferrer noopener" : A, re = J(H ? Li.bare : Li.button, H ? null : Li[t], H ? null : Li[r], H ? null : Li[i], H ? null : Li[o], C, {
4508
+ }, G = l && u ? u : R, ee = u && R && !z && (typeof R == "string" || typeof R == "number") && (typeof u == "string" || typeof u == "number") ? String(l ? R : u) : void 0, te = k === "_blank" && !A ? "noreferrer noopener" : A, ne = J(H ? Li.bare : Li.button, H ? null : Li[t], H ? null : Li[r], H ? null : Li[i], H ? null : Li[o], C, {
4505
4509
  [Li.disabled]: V,
4506
4510
  [Li.loading]: l,
4507
4511
  [Li.fullWidth]: b,
4508
4512
  [Li.iconOnly]: z
4509
4513
  });
4510
4514
  Me(!S || !O, "Button: pass href to the child element when using asChild."), Me(!S || !!L, "Button: asChild requires a single valid React element child."), Me(!z || B, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
4511
- let G = (e) => {
4515
+ let K = (e) => {
4512
4516
  e.preventDefault(), e.stopPropagation();
4513
- }, K = (e) => {
4517
+ }, ie = (e) => {
4514
4518
  if (V) {
4515
- G(e);
4519
+ K(e);
4516
4520
  return;
4517
4521
  }
4518
4522
  L?.props.onClick?.(e), e.defaultPrevented || T?.(e);
@@ -4529,12 +4533,12 @@ var Li = {
4529
4533
  className: Li.icon,
4530
4534
  children: d
4531
4535
  }),
4532
- ee && !z && (H ? ee : /* @__PURE__ */ g("span", {
4536
+ G && !z && (H ? G : /* @__PURE__ */ g("span", {
4533
4537
  className: Li.label,
4534
- "data-measure": te,
4538
+ "data-measure": ee,
4535
4539
  children: /* @__PURE__ */ g("span", {
4536
4540
  className: Li.labelText,
4537
- children: ee
4541
+ children: G
4538
4542
  })
4539
4543
  })),
4540
4544
  m && !z && (H ? m : /* @__PURE__ */ g("span", {
@@ -4562,9 +4566,9 @@ var Li = {
4562
4566
  "aria-disabled": V || void 0,
4563
4567
  "aria-label": E || L.props["aria-label"] || void 0,
4564
4568
  "aria-labelledby": D || L.props["aria-labelledby"] || void 0,
4565
- className: J(L.props.className, re),
4569
+ className: J(L.props.className, ne),
4566
4570
  href: V ? void 0 : L.props.href,
4567
- onClick: K,
4571
+ onClick: ie,
4568
4572
  tabIndex: V ? -1 : L.props.tabIndex,
4569
4573
  title: y || L.props.title,
4570
4574
  children: ae
@@ -4575,14 +4579,14 @@ var Li = {
4575
4579
  role: N,
4576
4580
  tabIndex: V ? -1 : P,
4577
4581
  target: k,
4578
- rel: ne,
4582
+ rel: te,
4579
4583
  download: j,
4580
- onClick: V ? G : T,
4584
+ onClick: V ? K : T,
4581
4585
  "aria-disabled": V || void 0,
4582
4586
  "aria-label": E || void 0,
4583
4587
  "aria-labelledby": D || void 0,
4584
4588
  "aria-busy": l || void 0,
4585
- className: re,
4589
+ className: ne,
4586
4590
  title: y,
4587
4591
  style: {
4588
4592
  ...W,
@@ -4601,7 +4605,7 @@ var Li = {
4601
4605
  "aria-label": E || void 0,
4602
4606
  "aria-labelledby": D || void 0,
4603
4607
  "aria-busy": l || void 0,
4604
- className: re,
4608
+ className: ne,
4605
4609
  title: y,
4606
4610
  style: {
4607
4611
  ...W,
@@ -4816,13 +4820,13 @@ var $ = {
4816
4820
  r < n.length && (i += e);
4817
4821
  }
4818
4822
  return i;
4819
- }, qi = (e, t) => t ? typeof t == "function" ? t(e) : Ki(e, t) : e, Ji = i(({ id: e, label: t, name: n, description: r, placeholder: i, value: a, defaultValue: s, type: c = "text", size: u, color: d = "primary", variant: m = "outline", error: v, invalid: y = !1, disabled: b = !1, required: C = !1, loading: w = !1, className: T, style: E, wrapperClassName: D, autoComplete: O, readOnly: k = !1, clearable: A = !1, onClear: j, onValueChange: M, revealPassword: N = !1, showCounter: P = !1, startIcon: F, endIcon: I, startAddon: L, endAddon: R, prefix: z, suffix: B, clearIcon: V, mask: H, format: U, parse: W, startIconTone: ee = "default", endIconTone: te = "default", clearIconTone: ne = "danger", autoFocus: re, maxLength: G, onMouseEnter: K, onMouseLeave: ae, "aria-describedby": oe, "aria-invalid": se, "aria-labelledby": ce, ...le }, ue) => {
4820
- let de = l(), q = Ir(), fe = !!(t || r || v), pe = e ?? (fe ? void 0 : q?.controlId) ?? de, me = f(null), [Y, he] = p(!1), [ge, _e] = p(s ?? ""), ve = a !== void 0, ye = String((ve ? a : ge) ?? ""), be = U ? U(ye) : ye, xe = ye.length > 0, Se = u ?? q?.size ?? "md", Ce = ie[Se], we = {
4823
+ }, qi = (e, t) => t ? typeof t == "function" ? t(e) : Ki(e, t) : e, Ji = i(({ id: e, label: t, name: n, description: r, placeholder: i, value: a, defaultValue: s, type: c = "text", size: u, color: d = "primary", variant: m = "outline", error: v, invalid: y = !1, disabled: b = !1, required: C = !1, loading: w = !1, className: T, style: E, wrapperClassName: D, autoComplete: O, readOnly: k = !1, clearable: A = !1, onClear: j, onValueChange: M, revealPassword: N = !1, showCounter: P = !1, startIcon: F, endIcon: I, startAddon: L, endAddon: R, prefix: z, suffix: B, clearIcon: V, mask: H, format: U, parse: W, startIconTone: G = "default", endIconTone: ee = "default", clearIconTone: te = "danger", autoFocus: ne, maxLength: K, onMouseEnter: ie, onMouseLeave: ae, "aria-describedby": oe, "aria-invalid": se, "aria-labelledby": ce, ...le }, ue) => {
4824
+ let de = l(), q = Ir(), fe = !!(t || r || v), pe = e ?? (fe ? void 0 : q?.controlId) ?? de, me = f(null), [Y, he] = p(!1), [ge, _e] = p(s ?? ""), ve = a !== void 0, ye = String((ve ? a : ge) ?? ""), be = U ? U(ye) : ye, xe = ye.length > 0, Se = u ?? q?.size ?? "md", Ce = re[Se], we = {
4821
4825
  "--input-height": `${Ce.height}px`,
4822
4826
  "--input-font-size": `${Ce.fontSize}px`,
4823
4827
  "--input-line-height": `${Ce.lineHeight}px`,
4824
4828
  "--input-icon-size": `${Ce.iconSize}px`
4825
- }, Te = y || !!v || !fe && !!q?.invalid, Ee = b || !fe && !!q?.disabled, De = C || !fe && !!q?.required, Oe = k || w, ke = c === "password", Ae = ke && N && Y ? "text" : c, je = F ?? (c === "search" ? /* @__PURE__ */ g(S, {}) : null), X = I, Me = Gi(c, O), Ne = w && !Ee, Pe = A && xe && !Ee && !Oe && !Ne, Fe = N && ke && !Ee && !Ne && !Pe, Ie = !Ne && !Pe && !Fe && !!X, Le = !!(P && G), Re = r ? `${pe}-description` : void 0, ze = v ? `${pe}-error` : void 0, Be = Le ? `${pe}-counter` : void 0, Ve = [
4829
+ }, Te = y || !!v || !fe && !!q?.invalid, Ee = b || !fe && !!q?.disabled, De = C || !fe && !!q?.required, Oe = k || w, ke = c === "password", Ae = ke && N && Y ? "text" : c, je = F ?? (c === "search" ? /* @__PURE__ */ g(S, {}) : null), X = I, Me = Gi(c, O), Ne = w && !Ee, Pe = A && xe && !Ee && !Oe && !Ne, Fe = N && ke && !Ee && !Ne && !Pe, Ie = !Ne && !Pe && !Fe && !!X, Le = !!(P && K), Re = r ? `${pe}-description` : void 0, ze = v ? `${pe}-error` : void 0, Be = Le ? `${pe}-counter` : void 0, Ve = [
4826
4830
  oe,
4827
4831
  !fe && !oe ? q?.ariaDescribedBy : void 0,
4828
4832
  Re,
@@ -4870,7 +4874,7 @@ var $ = {
4870
4874
  children: [
4871
4875
  je && /* @__PURE__ */ g("span", {
4872
4876
  "aria-hidden": "true",
4873
- className: J($.startAdornment, Wi[ee]),
4877
+ className: J($.startAdornment, Wi[G]),
4874
4878
  children: je
4875
4879
  }),
4876
4880
  z && /* @__PURE__ */ g("span", {
@@ -4895,13 +4899,13 @@ var $ = {
4895
4899
  disabled: Ee,
4896
4900
  readOnly: Oe,
4897
4901
  required: De,
4898
- autoFocus: re,
4899
- maxLength: G,
4902
+ autoFocus: ne,
4903
+ maxLength: K,
4900
4904
  "aria-invalid": Te ? !0 : se,
4901
4905
  "aria-labelledby": ce ?? (fe ? void 0 : q?.ariaLabelledBy),
4902
4906
  "aria-describedby": Ve || void 0,
4903
4907
  "aria-busy": w || void 0,
4904
- onMouseEnter: K,
4908
+ onMouseEnter: ie,
4905
4909
  onMouseLeave: ae
4906
4910
  }),
4907
4911
  B && /* @__PURE__ */ g("span", {
@@ -4925,14 +4929,14 @@ var $ = {
4925
4929
  }),
4926
4930
  Pe && /* @__PURE__ */ g("button", {
4927
4931
  type: "button",
4928
- className: J($.clearButton, Wi[ne]),
4932
+ className: J($.clearButton, Wi[te]),
4929
4933
  onClick: Xe,
4930
4934
  "aria-label": "Clear input",
4931
4935
  children: He
4932
4936
  }),
4933
4937
  Ie && X && /* @__PURE__ */ g("span", {
4934
4938
  "aria-hidden": "true",
4935
- className: J($.endAdornment, Wi[te]),
4939
+ className: J($.endAdornment, Wi[ee]),
4936
4940
  children: X
4937
4941
  })
4938
4942
  ]
@@ -4950,7 +4954,7 @@ var $ = {
4950
4954
  children: [
4951
4955
  ye.length,
4952
4956
  " / ",
4953
- G
4957
+ K
4954
4958
  ]
4955
4959
  })] });
4956
4960
  return !fe && q ? Ze : /* @__PURE__ */ g(Kr, {