@vellira-ui/react 2.37.0 → 2.39.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
@@ -398,12 +398,12 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
398
398
  return f(() => {
399
399
  n(!0);
400
400
  }, []), t ? e ?? document.getElementById("overlay-root") ?? me() : null;
401
- }, ge = ({ value: e, defaultValue: t, onChange: n }) => {
401
+ }, U = ({ value: e, defaultValue: t, onChange: n }) => {
402
402
  let [r, i] = g(t), a = e !== void 0;
403
403
  return [a ? e : r, u((e) => {
404
404
  a || i(e), n?.(e);
405
405
  }, [a, n])];
406
- }, _e = ({ activeIndex: e, setActiveIndex: t, items: n, isOpen: r, onOpen: i, onSelect: a, onClose: o, getItemText: s, loop: c = !0 }) => {
406
+ }, ge = ({ activeIndex: e, setActiveIndex: t, items: n, isOpen: r, onOpen: i, onSelect: a, onClose: o, getItemText: s, loop: c = !0 }) => {
407
407
  let l = h({
408
408
  value: "",
409
409
  timeoutId: void 0
@@ -486,7 +486,7 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
486
486
  m,
487
487
  g
488
488
  ]) };
489
- }, ve = ({ items: e, open: t, defaultOpen: n = !1, disabled: r = !1, onOpenChange: i, onSelect: a, getItemValue: o, getItemText: s, loop: c = !0 }) => {
489
+ }, _e = ({ items: e, open: t, defaultOpen: n = !1, disabled: r = !1, onOpenChange: i, onSelect: a, getItemValue: o, getItemText: s, loop: c = !0 }) => {
490
490
  let [l, d] = g(n), [p, m] = g(-1), h = t !== void 0, _ = t ?? l, v = u(() => e.findIndex((e) => !e.disabled), [e]), y = u(() => {
491
491
  for (let t = e.length - 1; t >= 0; t--) if (!e[t]?.disabled) return t;
492
492
  return -1;
@@ -541,7 +541,7 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
541
541
  p,
542
542
  e,
543
543
  T
544
- ]), { onKeyDown: D } = _e({
544
+ ]), { onKeyDown: D } = ge({
545
545
  activeIndex: p,
546
546
  setActiveIndex: m,
547
547
  items: e,
@@ -570,8 +570,8 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
570
570
  getFirstEnabledIndex: v,
571
571
  getLastEnabledIndex: y
572
572
  };
573
- }, ye = ({ open: e, defaultOpen: t = !1, onOpenChange: n, closeOnEscape: r, closeOnOutsidePress: i }) => {
574
- let a = p(), o = p(), s = p(), [c, l] = ge({
573
+ }, ve = ({ open: e, defaultOpen: t = !1, onOpenChange: n, closeOnEscape: r, closeOnOutsidePress: i }) => {
574
+ let a = p(), o = p(), s = p(), [c, l] = U({
575
575
  value: e,
576
576
  defaultValue: t,
577
577
  onChange: n
@@ -589,12 +589,12 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
589
589
  titleId: o,
590
590
  descriptionId: s
591
591
  };
592
- }, be = ({ value: e, defaultValue: t, onValueChange: n, onChange: r, options: i, multiple: a = !1, maxSelected: o, closeOnSelect: s = !a, disabled: c = !1, open: l, defaultOpen: d = !1, onOpenChange: p }) => {
593
- let [h, _] = ge({
592
+ }, ye = ({ value: e, defaultValue: t, onValueChange: n, onChange: r, options: i, multiple: a = !1, maxSelected: o, closeOnSelect: s = !a, disabled: c = !1, open: l, defaultOpen: d = !1, onOpenChange: p }) => {
593
+ let [h, _] = U({
594
594
  value: e,
595
595
  defaultValue: t ?? (a ? [] : ""),
596
596
  onChange: n ?? r
597
- }), [v, y] = ge({
597
+ }), [v, y] = U({
598
598
  value: l,
599
599
  defaultValue: d,
600
600
  onChange: p
@@ -663,7 +663,7 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
663
663
  b,
664
664
  i,
665
665
  k
666
- ]), { onKeyDown: j } = _e({
666
+ ]), { onKeyDown: j } = ge({
667
667
  activeIndex: b,
668
668
  setActiveIndex: x,
669
669
  items: i,
@@ -693,8 +693,8 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
693
693
  selectActiveOption: A,
694
694
  onKeyDown: j
695
695
  };
696
- }, xe = ({ activeIndex: e, defaultActiveIndex: t = 0, onChange: n }) => {
697
- let [r, i] = ge({
696
+ }, be = ({ activeIndex: e, defaultActiveIndex: t = 0, onChange: n }) => {
697
+ let [r, i] = U({
698
698
  value: e,
699
699
  defaultValue: t,
700
700
  onChange: n
@@ -703,7 +703,7 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
703
703
  activeIndex: r,
704
704
  setActiveIndex: i
705
705
  };
706
- }, U = ({ activeIndex: e, setActiveIndex: t, tabRefs: n, orientation: r = "horizontal", onNavigate: i }) => ({ onKeyDown: u((a) => {
706
+ }, W = ({ activeIndex: e, setActiveIndex: t, tabRefs: n, orientation: r = "horizontal", onNavigate: i }) => ({ onKeyDown: u((a) => {
707
707
  let o = (e) => !!(e?.disabled || e?.props?.disabled), s = (e, t) => {
708
708
  let r = n.current.length;
709
709
  if (!r) return e;
@@ -752,15 +752,15 @@ var B = I("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled:
752
752
  r,
753
753
  t,
754
754
  n
755
- ]) }), Se = s(null), Ce = ({ children: e, container: t = null }) => /* @__PURE__ */ n(Se.Provider, {
755
+ ]) }), xe = s(null), Se = ({ children: e, container: t = null }) => /* @__PURE__ */ n(xe.Provider, {
756
756
  value: t,
757
757
  children: e
758
- }), we = ({ children: e, container: t }) => {
759
- let n = d(Se), r = he({ container: t ?? n });
758
+ }), Ce = ({ children: e, container: t }) => {
759
+ let n = d(xe), r = he({ container: t ?? n });
760
760
  return r ? _(e, r) : null;
761
761
  };
762
- we.__velliraPortal = !0, we.displayName = "Portal", Ce.displayName = "PortalProvider";
763
- var Te = {
762
+ Ce.__velliraPortal = !0, Ce.displayName = "Portal", Se.displayName = "PortalProvider";
763
+ var we = {
764
764
  dropdown: "_dropdown_m7rnq_1",
765
765
  "dropdown-in": "_dropdown-in_m7rnq_1",
766
766
  primary: "_primary_m7rnq_42",
@@ -772,31 +772,31 @@ var Te = {
772
772
  searchWrap: "_searchWrap_m7rnq_165",
773
773
  search: "_search_m7rnq_165",
774
774
  "dropdown-sheet-in": "_dropdown-sheet-in_m7rnq_1"
775
- }, Ee = I("empty", "Dropdown.Empty"), De = ({ children: e }) => /* @__PURE__ */ n("li", {
775
+ }, Te = I("empty", "Dropdown.Empty"), Ee = ({ children: e }) => /* @__PURE__ */ n("li", {
776
776
  role: "presentation",
777
- className: Te.empty,
777
+ className: we.empty,
778
778
  children: e ?? "No actions available"
779
779
  });
780
- De.displayName = "DropdownEmptySurface";
780
+ Ee.displayName = "DropdownEmptySurface";
781
781
  //#endregion
782
782
  //#region src/components/Dropdown/Group/DropdownGroup.tsx
783
- var Oe = I("group", "Dropdown.Group"), ke = () => null;
784
- ke.displayName = "DropdownGroupSurface";
783
+ var De = I("group", "Dropdown.Group"), Oe = () => null;
784
+ Oe.displayName = "DropdownGroupSurface";
785
785
  //#endregion
786
786
  //#region src/components/Dropdown/internal/DropdownContext.tsx
787
- var Ae = s(null), je = s(null), Me = s(null), Ne = Ae.Provider, Pe = je.Provider;
788
- Me.Provider;
789
- function W() {
790
- let e = d(Ae);
787
+ var ke = s(null), Ae = s(null), je = s(null), Me = ke.Provider, Ne = Ae.Provider;
788
+ je.Provider;
789
+ function G() {
790
+ let e = d(ke);
791
791
  if (!e) throw Error("Dropdown compound components must be used inside Dropdown.");
792
792
  return e;
793
793
  }
794
- function Fe() {
795
- let e = d(je);
794
+ function Pe() {
795
+ let e = d(Ae);
796
796
  if (!e) throw Error("Dropdown.Trigger must be used inside Dropdown.");
797
797
  return e;
798
798
  }
799
- var G = {
799
+ var K = {
800
800
  item: "_item_1vj4n_1",
801
801
  disabled: "_disabled_1vj4n_22",
802
802
  active: "_active_1vj4n_37",
@@ -821,8 +821,8 @@ var G = {
821
821
  "dropdown-sub-in": "_dropdown-sub-in_1vj4n_1",
822
822
  subLabel: "_subLabel_1vj4n_276",
823
823
  subSeparator: "_subSeparator_1vj4n_284"
824
- }, Ie = I("item", "Dropdown.Item"), Le = ({ item: e, itemIndex: i }) => {
825
- let a = W(), o = h(void 0), [s, c] = g(e.type === "checkbox" ? e.props.defaultChecked ?? !1 : !1), l = a.activeIndex === i, u = a.openSubId === e.id, d = e.type === "checkbox", f = e.type === "radio", p = e.type === "subTrigger", m = d ? e.props.checked ?? s : f ? (e.groupProps?.value ?? a.radioValues[e.groupId]) === e.props.value : !1, _ = a.loading || e.disabled, y = e.props, x = R(y.children), S = x.icon ?? y.icon, C = x.description ?? ("description" in y ? y.description : void 0), w = x.badge ?? ("badge" in y ? y.badge : void 0), T = x.shortcut ?? y.shortcut, E = x.content.length ? x.content : y.children, D = "color" in y ? y.color : void 0, O = e.type === "item" ? e.props.href : void 0, k = e.type === "item" ? e.props.target : void 0, A = e.type === "item" ? e.props.download : void 0, j = a.getItemId(i), M = d ? "menuitemcheckbox" : f ? "menuitemradio" : "menuitem", P = e.type === "item" && k === "_blank" && !e.props.rel ? "noreferrer noopener" : e.type === "item" ? e.props.rel : void 0, F = O ? "a" : "li", I = d || f, L = (t) => {
824
+ }, Fe = I("item", "Dropdown.Item"), Ie = ({ item: e, itemIndex: i }) => {
825
+ let a = G(), o = h(void 0), [s, c] = g(e.type === "checkbox" ? e.props.defaultChecked ?? !1 : !1), l = a.activeIndex === i, u = a.openSubId === e.id, d = e.type === "checkbox", f = e.type === "radio", p = e.type === "subTrigger", m = d ? e.props.checked ?? s : f ? (e.groupProps?.value ?? a.radioValues[e.groupId]) === e.props.value : !1, _ = a.loading || e.disabled, y = e.props, x = R(y.children), S = x.icon ?? y.icon, C = x.description ?? ("description" in y ? y.description : void 0), w = x.badge ?? ("badge" in y ? y.badge : void 0), T = x.shortcut ?? y.shortcut, E = x.content.length ? x.content : y.children, D = "color" in y ? y.color : void 0, O = e.type === "item" ? e.props.href : void 0, k = e.type === "item" ? e.props.target : void 0, A = e.type === "item" ? e.props.download : void 0, j = a.getItemId(i), M = d ? "menuitemcheckbox" : f ? "menuitemradio" : "menuitem", P = e.type === "item" && k === "_blank" && !e.props.rel ? "noreferrer noopener" : e.type === "item" ? e.props.rel : void 0, F = O ? "a" : "li", I = d || f, L = (t) => {
826
826
  if (_) {
827
827
  t.preventDefault();
828
828
  return;
@@ -831,7 +831,7 @@ var G = {
831
831
  let t = !m;
832
832
  c(t), e.props.onCheckedChange?.(t);
833
833
  }
834
- a.selectItem(e, Re(t));
834
+ a.selectItem(e, Le(t));
835
835
  };
836
836
  return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ r(F, {
837
837
  id: j,
@@ -847,11 +847,11 @@ var G = {
847
847
  "aria-expanded": p ? u : void 0,
848
848
  "data-active": l || void 0,
849
849
  "data-state": u ? "open" : void 0,
850
- className: N(G.item, G[a.size], {
851
- [G.active]: l,
852
- [G.disabled]: _,
853
- [G.checked]: m
854
- }, D && D !== "default" ? G[D] : void 0, y.className),
850
+ className: N(K.item, K[a.size], {
851
+ [K.active]: l,
852
+ [K.disabled]: _,
853
+ [K.checked]: m
854
+ }, D && D !== "default" ? K[D] : void 0, y.className),
855
855
  onClick: L,
856
856
  onMouseEnter: () => {
857
857
  _ || (a.setActiveIndex(i), p ? (window.clearTimeout(o.current), o.current = window.setTimeout(() => a.setOpenSubId(e.id), 120)) : (window.clearTimeout(o.current), a.setOpenSubId(void 0)));
@@ -861,58 +861,58 @@ var G = {
861
861
  },
862
862
  children: [
863
863
  I && /* @__PURE__ */ n("span", {
864
- className: G.indicator,
864
+ className: K.indicator,
865
865
  "aria-hidden": "true",
866
866
  children: m ? /* @__PURE__ */ n(v, {}) : null
867
867
  }),
868
868
  S && /* @__PURE__ */ n("span", {
869
- className: G.itemIcon,
869
+ className: K.itemIcon,
870
870
  children: S
871
871
  }),
872
872
  /* @__PURE__ */ r("span", {
873
- className: G.itemText,
873
+ className: K.itemText,
874
874
  children: [/* @__PURE__ */ n("span", {
875
- className: G.itemLabel,
875
+ className: K.itemLabel,
876
876
  children: E
877
877
  }), C && /* @__PURE__ */ n("span", {
878
- className: G.itemDescription,
878
+ className: K.itemDescription,
879
879
  children: C
880
880
  })]
881
881
  }),
882
882
  w && /* @__PURE__ */ n("span", {
883
- className: G.itemBadge,
883
+ className: K.itemBadge,
884
884
  children: w
885
885
  }),
886
886
  T && /* @__PURE__ */ n("span", {
887
- className: G.itemShortcut,
887
+ className: K.itemShortcut,
888
888
  children: T
889
889
  }),
890
890
  p && /* @__PURE__ */ n("span", {
891
- className: G.itemShortcut,
891
+ className: K.itemShortcut,
892
892
  "aria-hidden": "true",
893
893
  children: /* @__PURE__ */ n(b, {})
894
894
  })
895
895
  ]
896
896
  }), p && u && e.subEntries.length > 0 && /* @__PURE__ */ n("ul", {
897
897
  role: "menu",
898
- className: G.subContent,
898
+ className: K.subContent,
899
899
  onMouseEnter: () => a.setOpenSubId(e.id),
900
900
  children: e.subEntries.map((e) => e.type === "label" ? /* @__PURE__ */ n("li", {
901
901
  role: "presentation",
902
- className: G.subLabel,
902
+ className: K.subLabel,
903
903
  children: e.props.children
904
904
  }, e.id) : e.type === "separator" ? /* @__PURE__ */ n("li", {
905
905
  role: "separator",
906
- className: G.subSeparator,
906
+ className: K.subSeparator,
907
907
  "aria-hidden": "true"
908
- }, e.id) : e.type === "item" ? /* @__PURE__ */ n(ze, {
908
+ }, e.id) : e.type === "item" ? /* @__PURE__ */ n(Re, {
909
909
  item: e.item,
910
910
  id: `${j}-${e.itemIndex}`
911
911
  }, e.item.id) : null)
912
912
  })] });
913
913
  };
914
- Le.displayName = "DropdownItemRow";
915
- function Re(e) {
914
+ Ie.displayName = "DropdownItemRow";
915
+ function Le(e) {
916
916
  let t = !1;
917
917
  return {
918
918
  originalEvent: e,
@@ -924,8 +924,8 @@ function Re(e) {
924
924
  }
925
925
  };
926
926
  }
927
- function ze({ id: e, item: t }) {
928
- let i = W(), [a, o] = g(t.type === "checkbox" ? t.props.defaultChecked ?? !1 : !1), s = t.type === "checkbox", c = t.type === "radio", l = s ? t.props.checked ?? a : c ? (t.groupProps?.value ?? i.radioValues[t.groupId]) === t.props.value : !1, u = t.props, d = R(u.children), f = d.icon ?? u.icon, p = d.description ?? ("description" in u ? u.description : void 0), m = d.badge ?? ("badge" in u ? u.badge : void 0), h = d.shortcut ?? u.shortcut, _ = d.content.length ? d.content : u.children, y = "color" in u ? u.color : void 0, b = i.loading || t.disabled, x = t.type === "item" ? t.props.href : void 0, S = t.type === "item" ? t.props.target : void 0, C = t.type === "item" ? t.props.download : void 0, w = s ? "menuitemcheckbox" : c ? "menuitemradio" : "menuitem", T = t.type === "item" && S === "_blank" && !t.props.rel ? "noreferrer noopener" : t.type === "item" ? t.props.rel : void 0, E = x ? "a" : "li", D = s || c, O = (e) => {
927
+ function Re({ id: e, item: t }) {
928
+ let i = G(), [a, o] = g(t.type === "checkbox" ? t.props.defaultChecked ?? !1 : !1), s = t.type === "checkbox", c = t.type === "radio", l = s ? t.props.checked ?? a : c ? (t.groupProps?.value ?? i.radioValues[t.groupId]) === t.props.value : !1, u = t.props, d = R(u.children), f = d.icon ?? u.icon, p = d.description ?? ("description" in u ? u.description : void 0), m = d.badge ?? ("badge" in u ? u.badge : void 0), h = d.shortcut ?? u.shortcut, _ = d.content.length ? d.content : u.children, y = "color" in u ? u.color : void 0, b = i.loading || t.disabled, x = t.type === "item" ? t.props.href : void 0, S = t.type === "item" ? t.props.target : void 0, C = t.type === "item" ? t.props.download : void 0, w = s ? "menuitemcheckbox" : c ? "menuitemradio" : "menuitem", T = t.type === "item" && S === "_blank" && !t.props.rel ? "noreferrer noopener" : t.type === "item" ? t.props.rel : void 0, E = x ? "a" : "li", D = s || c, O = (e) => {
929
929
  if (b) {
930
930
  e.preventDefault();
931
931
  return;
@@ -934,7 +934,7 @@ function ze({ id: e, item: t }) {
934
934
  let e = !l;
935
935
  o(e), t.props.onCheckedChange?.(e);
936
936
  }
937
- i.selectItem(t, Re(e));
937
+ i.selectItem(t, Le(e));
938
938
  };
939
939
  return /* @__PURE__ */ r(E, {
940
940
  id: e,
@@ -946,54 +946,54 @@ function ze({ id: e, item: t }) {
946
946
  tabIndex: b ? -1 : 0,
947
947
  "aria-disabled": b || void 0,
948
948
  "aria-checked": s || c ? l : void 0,
949
- className: N(G.item, G[i.size], {
950
- [G.disabled]: b,
951
- [G.checked]: l
952
- }, y && y !== "default" ? G[y] : void 0),
949
+ className: N(K.item, K[i.size], {
950
+ [K.disabled]: b,
951
+ [K.checked]: l
952
+ }, y && y !== "default" ? K[y] : void 0),
953
953
  onClick: O,
954
954
  children: [
955
955
  D && /* @__PURE__ */ n("span", {
956
- className: G.indicator,
956
+ className: K.indicator,
957
957
  "aria-hidden": "true",
958
958
  children: l ? /* @__PURE__ */ n(v, {}) : null
959
959
  }),
960
960
  f && /* @__PURE__ */ n("span", {
961
- className: G.itemIcon,
961
+ className: K.itemIcon,
962
962
  children: f
963
963
  }),
964
964
  /* @__PURE__ */ r("span", {
965
- className: G.itemText,
965
+ className: K.itemText,
966
966
  children: [/* @__PURE__ */ n("span", {
967
- className: G.itemLabel,
967
+ className: K.itemLabel,
968
968
  children: _
969
969
  }), p && /* @__PURE__ */ n("span", {
970
- className: G.itemDescription,
970
+ className: K.itemDescription,
971
971
  children: p
972
972
  })]
973
973
  }),
974
974
  m && /* @__PURE__ */ n("span", {
975
- className: G.itemBadge,
975
+ className: K.itemBadge,
976
976
  children: m
977
977
  }),
978
978
  h && /* @__PURE__ */ n("span", {
979
- className: G.itemShortcut,
979
+ className: K.itemShortcut,
980
980
  children: h
981
981
  })
982
982
  ]
983
983
  });
984
984
  }
985
- var Be = { group: "_group_aviwv_1" }, Ve = I("label", "Dropdown.Label"), K = ({ children: e, className: t }) => /* @__PURE__ */ n("li", {
985
+ var ze = { group: "_group_aviwv_1" }, Be = I("label", "Dropdown.Label"), q = ({ children: e, className: t }) => /* @__PURE__ */ n("li", {
986
986
  role: "presentation",
987
- className: N(Be.group, t),
987
+ className: N(ze.group, t),
988
988
  children: e
989
989
  });
990
- K.displayName = "DropdownLabelSurface";
990
+ q.displayName = "DropdownLabelSurface";
991
991
  //#endregion
992
992
  //#region src/components/Dropdown/Loading/DropdownLoading.tsx
993
- var q = I("loading", "Dropdown.Loading"), He = ({ children: e }) => /* @__PURE__ */ n("li", {
993
+ var Ve = I("loading", "Dropdown.Loading"), He = ({ children: e }) => /* @__PURE__ */ n("li", {
994
994
  role: "presentation",
995
995
  "aria-live": "polite",
996
- className: Te.empty,
996
+ className: we.empty,
997
997
  children: e ?? "Loading actions..."
998
998
  });
999
999
  He.displayName = "DropdownLoadingSurface";
@@ -1006,9 +1006,9 @@ Ge.displayName = "DropdownSeparatorSurface";
1006
1006
  //#endregion
1007
1007
  //#region src/components/Dropdown/Content/DropdownContent.tsx
1008
1008
  var Ke = ({ className: e }) => {
1009
- let t = W();
1009
+ let t = G();
1010
1010
  if (!t.isOpen) return null;
1011
- let i = N(Te.dropdown, Te[t.color], t.contentProps?.className, t.dropdownClassName, e), o = /* @__PURE__ */ r("ul", {
1011
+ let i = N(we.dropdown, we[t.color], t.contentProps?.className, t.dropdownClassName, e), o = /* @__PURE__ */ r("ul", {
1012
1012
  ref: t.setContentRef,
1013
1013
  id: t.contentId,
1014
1014
  role: "menu",
@@ -1024,9 +1024,9 @@ var Ke = ({ className: e }) => {
1024
1024
  "data-color": t.color,
1025
1025
  children: [t.searchable && /* @__PURE__ */ r("li", {
1026
1026
  role: "presentation",
1027
- className: N(Te.searchWrap, t.searchProps?.className),
1027
+ className: N(we.searchWrap, t.searchProps?.className),
1028
1028
  children: [/* @__PURE__ */ n(S, { "aria-hidden": "true" }), /* @__PURE__ */ n("input", {
1029
- className: Te.search,
1029
+ className: we.search,
1030
1030
  value: t.searchValue,
1031
1031
  placeholder: t.searchPlaceholder,
1032
1032
  "aria-label": t.searchProps?.["aria-label"] ?? t.searchPlaceholder,
@@ -1036,12 +1036,12 @@ var Ke = ({ className: e }) => {
1036
1036
  e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Enter" || e.key === "Escape" || e.stopPropagation();
1037
1037
  }
1038
1038
  })]
1039
- }), t.loading ? /* @__PURE__ */ n(He, { children: t.loadingText }) : t.searchable && t.items.length === 0 ? /* @__PURE__ */ n(De, { children: t.noOptionsText }) : t.entries.length ? t.entries.map((e) => e.type === "groupStart" ? /* @__PURE__ */ n(ke, {}, e.id) : e.type === "groupEnd" ? null : e.type === "label" ? /* @__PURE__ */ n(K, { ...e.props }, e.id) : e.type === "separator" ? /* @__PURE__ */ n(Ge, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ n(De, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ n(He, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ n(F, { ...e.props }, e.id) : /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(Le, {
1039
+ }), t.loading ? /* @__PURE__ */ n(He, { children: t.loadingText }) : t.searchable && t.items.length === 0 ? /* @__PURE__ */ n(Ee, { children: t.noOptionsText }) : t.entries.length ? t.entries.map((e) => e.type === "groupStart" ? /* @__PURE__ */ n(Oe, {}, e.id) : e.type === "groupEnd" ? null : e.type === "label" ? /* @__PURE__ */ n(q, { ...e.props }, e.id) : e.type === "separator" ? /* @__PURE__ */ n(Ge, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ n(Ee, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ n(He, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ n(F, { ...e.props }, e.id) : /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(Ie, {
1040
1040
  item: e.item,
1041
1041
  itemIndex: e.itemIndex
1042
- }) }, e.item.id)) : /* @__PURE__ */ n(De, {})]
1042
+ }) }, e.item.id)) : /* @__PURE__ */ n(Ee, {})]
1043
1043
  });
1044
- return t.portal ? /* @__PURE__ */ n(we, { children: o }) : o;
1044
+ return t.portal ? /* @__PURE__ */ n(Ce, { children: o }) : o;
1045
1045
  };
1046
1046
  Ke.__velliraDropdownPart = "content", Ke.displayName = "Dropdown.Content";
1047
1047
  //#endregion
@@ -1116,17 +1116,17 @@ function rt(e) {
1116
1116
  return typeof e == "number" ? `${e}px` : e;
1117
1117
  }
1118
1118
  var it = { wrapper: "_wrapper_14ue8_1" }, at = ({ children: e, open: t, defaultOpen: i = !1, onOpenChange: a, size: o = "md", color: s = "primary", placement: c = "bottom-start", offset: l = 2, matchTriggerWidth: d = !1, minWidth: _, maxWidth: v, portal: y = !0, avoidCollisions: b = !0, modal: x = !1, closeOnSelect: S = !0, loop: C = !0, disabled: w = !1, loading: T = !1, loadingText: E = "Loading actions...", searchable: D = !1, command: O = !1, searchValue: k, defaultSearchValue: A = "", searchPlaceholder: j, onSearch: M, empty: P, noOptionsText: F, triggerClassName: I, dropdownClassName: R, className: z }) => {
1119
- let ee = p(), B = `${ee}-trigger`, te = `${ee}-menu`, ne = h(null), re = h(null), [ie, ae] = g(), [oe, V] = g({}), [ce, le] = g(A), de = k ?? ce, H = m(() => L(e), [e]), fe = H.content?.props.command ?? !1, me = D || O || fe || !!H.search, he = m(() => st(H.items), [H.items]), ge = m(() => H.items.map((e) => ({
1119
+ let ee = p(), B = `${ee}-trigger`, te = `${ee}-menu`, ne = h(null), re = h(null), [ie, ae] = g(), [oe, V] = g({}), [ce, le] = g(A), de = k ?? ce, H = m(() => L(e), [e]), fe = H.content?.props.command ?? !1, me = D || O || fe || !!H.search, he = m(() => st(H.items), [H.items]), U = m(() => H.items.map((e) => ({
1120
1120
  disabled: e.disabled,
1121
1121
  label: e.label
1122
- })), [H.items]), _e = m(() => !me || !de.trim() ? H : ct(H, de), [
1122
+ })), [H.items]), ge = m(() => !me || !de.trim() ? H : ct(H, de), [
1123
1123
  me,
1124
1124
  H,
1125
1125
  de
1126
- ]), ye = m(() => _e.items.map((e) => ({
1126
+ ]), ve = m(() => ge.items.map((e) => ({
1127
1127
  disabled: e.disabled,
1128
1128
  label: e.label
1129
- })), [_e.items]);
1129
+ })), [ge.items]);
1130
1130
  f(() => {
1131
1131
  V((e) => {
1132
1132
  let t = { ...e };
@@ -1135,39 +1135,39 @@ var it = { wrapper: "_wrapper_14ue8_1" }, at = ({ children: e, open: t, defaultO
1135
1135
  }), t;
1136
1136
  });
1137
1137
  }, [he]);
1138
- let { activeIndex: be, setActiveIndex: xe, isOpen: U, closeDropdown: Se, toggleDropdown: Ce, onKeyDown: we } = ve({
1139
- items: me ? ye : ge,
1138
+ let { activeIndex: ye, setActiveIndex: be, isOpen: W, closeDropdown: xe, toggleDropdown: Se, onKeyDown: Ce } = _e({
1139
+ items: me ? ve : U,
1140
1140
  open: t,
1141
1141
  defaultOpen: i,
1142
1142
  disabled: w,
1143
1143
  onOpenChange: a,
1144
- getItemValue: (e, t) => (me ? _e.items : H.items)[t]?.id ?? "",
1144
+ getItemValue: (e, t) => (me ? ge.items : H.items)[t]?.id ?? "",
1145
1145
  getItemText: (e) => e.label,
1146
1146
  loop: C
1147
- }), { floatingStyles: Te, setRef: Ee, setFloatingRef: De } = et({
1148
- open: U,
1147
+ }), { floatingStyles: we, setRef: Te, setFloatingRef: Ee } = et({
1148
+ open: W,
1149
1149
  placement: c,
1150
1150
  matchTriggerWidth: d,
1151
1151
  avoidCollisions: b,
1152
1152
  offset: l,
1153
1153
  mobileSheetBreakpoint: 640
1154
- }), Oe = u((e) => {
1155
- k === void 0 && le(e), M?.(e), xe(0);
1154
+ }), De = u((e) => {
1155
+ k === void 0 && le(e), M?.(e), be(0);
1156
1156
  }, [
1157
1157
  M,
1158
1158
  k,
1159
- xe
1160
- ]), { isTopOverlay: ke } = ue({
1161
- active: U,
1159
+ be
1160
+ ]), { isTopOverlay: Oe } = ue({
1161
+ active: W,
1162
1162
  id: te
1163
1163
  });
1164
1164
  pe({
1165
- active: U,
1165
+ active: W,
1166
1166
  enabled: x
1167
1167
  });
1168
- let Ae = u(() => {
1169
- Se(), ne.current?.focus();
1170
- }, [Se]), je = u((e, t) => {
1168
+ let ke = u(() => {
1169
+ xe(), ne.current?.focus();
1170
+ }, [xe]), Ae = u((e, t) => {
1171
1171
  if (e.disabled || T) return;
1172
1172
  if (e.type === "subTrigger") {
1173
1173
  ae(e.id);
@@ -1178,13 +1178,13 @@ var it = { wrapper: "_wrapper_14ue8_1" }, at = ({ children: e, open: t, defaultO
1178
1178
  [e.groupId]: e.props.value
1179
1179
  })), e.groupProps?.onValueChange?.(e.props.value));
1180
1180
  let n = e.props.closeOnSelect ?? (e.type !== "checkbox" && S);
1181
- !t.defaultPrevented && n && Ae();
1181
+ !t.defaultPrevented && n && ke();
1182
1182
  }, [
1183
- Ae,
1183
+ ke,
1184
1184
  S,
1185
1185
  T
1186
- ]), Me = u((e) => {
1187
- let t = _e.items[be];
1186
+ ]), je = u((e) => {
1187
+ let t = ge.items[ye];
1188
1188
  if (e.key === "ArrowRight" && t?.type === "subTrigger") {
1189
1189
  e.preventDefault(), ae(t.id);
1190
1190
  return;
@@ -1196,77 +1196,77 @@ var it = { wrapper: "_wrapper_14ue8_1" }, at = ({ children: e, open: t, defaultO
1196
1196
  if ((e.key === "Enter" || e.key === " ") && t) {
1197
1197
  e.preventDefault();
1198
1198
  let n = ot(e);
1199
- je(t, n);
1199
+ Ae(t, n);
1200
1200
  return;
1201
1201
  }
1202
- we(e), e.key === "Escape" && ne.current?.focus();
1202
+ Ce(e), e.key === "Escape" && ne.current?.focus();
1203
1203
  }, [
1204
- be,
1205
- _e.items,
1206
- we,
1204
+ ye,
1205
+ ge.items,
1206
+ Ce,
1207
1207
  ie,
1208
- je
1209
- ]), W = u((e) => {
1210
- e.preventDefault(), Ce();
1211
- }, [Ce]), Fe = u((e) => {
1212
- ne.current = e, Ee(e);
1213
- }, [Ee]), G = u((e) => {
1214
- re.current = e, De(e), e?.focus();
1215
- }, [De]);
1208
+ Ae
1209
+ ]), G = u((e) => {
1210
+ e.preventDefault(), Se();
1211
+ }, [Se]), Pe = u((e) => {
1212
+ ne.current = e, Te(e);
1213
+ }, [Te]), K = u((e) => {
1214
+ re.current = e, Ee(e), e?.focus();
1215
+ }, [Ee]);
1216
1216
  se({
1217
- active: U,
1217
+ active: W,
1218
1218
  closeOnEscape: !0,
1219
1219
  closeOnOutsidePress: !0,
1220
1220
  contentRef: re,
1221
1221
  ignoreRefs: [ne],
1222
- isTopOverlay: ke,
1223
- requestClose: Se
1222
+ isTopOverlay: Oe,
1223
+ requestClose: xe
1224
1224
  });
1225
- let Ie = {
1226
- ...Te,
1225
+ let Fe = {
1226
+ ...we,
1227
1227
  minWidth: rt(_),
1228
1228
  maxWidth: rt(v)
1229
1229
  };
1230
- return /* @__PURE__ */ n(Pe, {
1230
+ return /* @__PURE__ */ n(Ne, {
1231
1231
  value: {
1232
1232
  disabled: w,
1233
- isOpen: U,
1233
+ isOpen: W,
1234
1234
  contentId: te,
1235
1235
  triggerId: B,
1236
1236
  triggerClassName: I,
1237
- setTriggerRef: Fe,
1238
- onClick: W,
1239
- onKeyDown: Me
1237
+ setTriggerRef: Pe,
1238
+ onClick: G,
1239
+ onKeyDown: je
1240
1240
  },
1241
- children: /* @__PURE__ */ n(Ne, {
1241
+ children: /* @__PURE__ */ n(Me, {
1242
1242
  value: {
1243
- activeIndex: be,
1243
+ activeIndex: ye,
1244
1244
  closeOnSelect: S,
1245
1245
  color: s,
1246
1246
  contentId: te,
1247
1247
  contentProps: H.content?.props,
1248
1248
  disabled: w,
1249
1249
  dropdownClassName: R,
1250
- entries: _e.entries,
1250
+ entries: ge.entries,
1251
1251
  getItemId: (e) => `${te}-item-${e}`,
1252
- isOpen: U,
1253
- items: _e.items,
1252
+ isOpen: W,
1253
+ items: ge.items,
1254
1254
  loading: T,
1255
1255
  loadingText: E,
1256
1256
  noOptionsText: P ?? F,
1257
1257
  maxWidth: v,
1258
1258
  minWidth: _,
1259
1259
  openSubId: ie,
1260
- onKeyDown: Me,
1260
+ onKeyDown: je,
1261
1261
  portal: !H.portal && y,
1262
1262
  radioValues: oe,
1263
1263
  searchPlaceholder: H.search?.props.placeholder ?? j ?? (O || fe ? "Type a command..." : "Search actions..."),
1264
1264
  searchProps: H.search?.props,
1265
1265
  searchValue: de,
1266
1266
  searchable: me,
1267
- selectItem: je,
1268
- setActiveIndex: xe,
1269
- setContentRef: G,
1267
+ selectItem: Ae,
1268
+ setActiveIndex: be,
1269
+ setContentRef: K,
1270
1270
  setOpenSubId: ae,
1271
1271
  setRadioValue: (e, t) => {
1272
1272
  V((n) => ({
@@ -1274,9 +1274,9 @@ var it = { wrapper: "_wrapper_14ue8_1" }, at = ({ children: e, open: t, defaultO
1274
1274
  [e]: t
1275
1275
  }));
1276
1276
  },
1277
- setSearchValue: Oe,
1277
+ setSearchValue: De,
1278
1278
  size: o,
1279
- surfaceStyle: Ie,
1279
+ surfaceStyle: Fe,
1280
1280
  triggerId: B
1281
1281
  },
1282
1282
  children: /* @__PURE__ */ r("div", {
@@ -1335,7 +1335,7 @@ var lt = I("search", "Dropdown.Search"), ut = I("subContent", "Dropdown.SubConte
1335
1335
  }, mt = (e) => /* @__PURE__ */ n(ht, { ...e });
1336
1336
  mt.__velliraDropdownPart = "trigger", mt.displayName = "Dropdown.Trigger";
1337
1337
  var ht = ({ children: e, asChild: t = !1, disabled: i, className: a }) => {
1338
- let s = W(), c = Fe(), u = t && l(e) ? e : void 0, d = s.disabled || i, f = {
1338
+ let s = G(), c = Pe(), u = t && l(e) ? e : void 0, d = s.disabled || i, f = {
1339
1339
  id: c.triggerId,
1340
1340
  ref: u ? nt(u.props.ref, c.setTriggerRef) : c.setTriggerRef,
1341
1341
  "aria-controls": c.isOpen ? c.contentId : void 0,
@@ -1371,12 +1371,12 @@ var gt = Object.assign(at, {
1371
1371
  Trigger: mt,
1372
1372
  Content: Ke,
1373
1373
  Search: lt,
1374
- Item: Ie,
1374
+ Item: Fe,
1375
1375
  CheckboxItem: B,
1376
1376
  RadioGroup: Ze,
1377
1377
  RadioItem: Qe,
1378
- Group: Oe,
1379
- Label: Ve,
1378
+ Group: De,
1379
+ Label: Be,
1380
1380
  Separator: We,
1381
1381
  Sub: ft,
1382
1382
  SubTrigger: dt,
@@ -1390,8 +1390,8 @@ var gt = Object.assign(at, {
1390
1390
  Badge: qe,
1391
1391
  Shortcut: Xe,
1392
1392
  Arrow: F,
1393
- Empty: Ee,
1394
- Loading: q
1393
+ Empty: Te,
1394
+ Loading: Ve
1395
1395
  });
1396
1396
  gt.displayName = "Dropdown";
1397
1397
  //#endregion
@@ -1586,7 +1586,7 @@ Rt.displayName = "ModalOverlay";
1586
1586
  //#endregion
1587
1587
  //#region src/components/Modal/Root/ModalRoot.tsx
1588
1588
  var zt = ({ children: e, open: t, defaultOpen: r = !1, onOpenChange: i, modal: a = !0, closeOnEscape: o = !0, closeOnOutsidePress: s = !0, preventScroll: c = !0, restoreFocus: l = !0, trapFocus: d = !0, initialFocus: p, finalFocus: _, onOpenAutoFocus: v, onCloseAutoFocus: y, onEscapeKeyDown: b, onPointerDownOutside: x, onInteractOutside: S, role: C = "dialog", className: w }) => {
1589
- let T = h(null), { contentId: E, descriptionId: D, open: O, requestClose: k, setOpen: A, titleId: j } = ye({
1589
+ let T = h(null), { contentId: E, descriptionId: D, open: O, requestClose: k, setOpen: A, titleId: j } = ve({
1590
1590
  open: t,
1591
1591
  defaultOpen: r,
1592
1592
  onOpenChange: i,
@@ -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] = U({
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] = U({
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,23 +2219,23 @@ 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
  })
2091
2233
  ]
2092
2234
  });
2093
- return S ? /* @__PURE__ */ n(we, { children: pe }) : pe;
2235
+ return S ? /* @__PURE__ */ n(Ce, { 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,144 +2623,144 @@ 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: U, className: ge, triggerClassName: _e, dropdownClassName: ve }) => {
2665
+ let be = p(), W = wn(), xe = !!(i || a || z), Se = o ?? (xe ? void 0 : W?.controlId) ?? be, Ce = `${Se}-listbox`, [we, Te] = g(""), Ee = !!z, De = Ee ? `${Se}-error` : void 0, Oe = a ? `${Se}-description` : void 0, ke = D ?? W?.size ?? "md", Ae = M || Ee || !xe && !!W?.invalid, je = j || !xe && !!W?.disabled, Me = A || !xe && !!W?.required, Ne = [
2524
2666
  l,
2525
- !Se && !l ? U?.ariaDescribedBy : void 0,
2526
- ke,
2527
- 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({
2529
- options: ze,
2530
- searchable: Le,
2531
- searchValue: Te
2532
- }), { selectedValue: Ve, selectedValues: K, isOpen: q, setIsOpen: He, setSelectedValue: Ue, activeIndex: We, setActiveIndex: Ge, closeDropdown: Ke, toggleDropdown: qe, selectValue: Je, onKeyDown: Ye } = be({
2667
+ !xe && !l ? W?.ariaDescribedBy : void 0,
2668
+ Oe,
2669
+ De
2670
+ ].filter(Boolean).join(" "), G = h(null), Pe = h(null), [K, Fe] = g(!1), Ie = F || R, { entries: Le, options: Re } = Mn(e), ze = Pn({
2671
+ options: Re,
2672
+ searchable: Ie,
2673
+ searchValue: we
2674
+ }), { selectedValue: Be, selectedValues: q, isOpen: Ve, setIsOpen: He, setSelectedValue: Ue, activeIndex: We, setActiveIndex: Ge, closeDropdown: Ke, toggleDropdown: qe, selectValue: Je, onKeyDown: Ye } = ye({
2533
2675
  value: _,
2534
2676
  defaultValue: v,
2535
2677
  onValueChange: y,
2536
- options: Be,
2678
+ options: ze,
2537
2679
  multiple: b,
2538
2680
  maxSelected: x,
2539
2681
  closeOnSelect: S,
2540
- disabled: Me,
2682
+ disabled: je,
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({
2545
- isOpen: q,
2686
+ }), Xe = m(() => Re.find((e) => q.includes(e.value)), [Re, q]), Ze = m(() => Re.filter((e) => q.includes(e.value)), [Re, q]), Qe = !!Xe, $e = Array.isArray(Be) ? Be[0] ?? "" : Be, { floatingStyles: et, setRef: tt, setFloatingRef: nt } = Nn({
2687
+ isOpen: Ve,
2546
2688
  onOpenChange: He,
2547
2689
  placement: ee,
2548
2690
  matchTriggerWidth: B,
2549
2691
  avoidCollisions: te
2550
2692
  }), rt = u((e) => {
2551
- Je(e), W.current?.focus();
2693
+ Je(e), G.current?.focus();
2552
2694
  }, [Je]), it = u((e) => {
2553
2695
  if (!b || e.length === 0) return;
2554
- let t = e.filter((e) => ze.some((t) => t.value === e && !t.disabled)), n = t.filter((e) => K.includes(e)), r = K.filter((e) => !t.includes(e)).length, i = typeof x == "number" ? Math.max(0, Math.min(t.length, x - r)) : t.length;
2696
+ let t = e.filter((e) => Re.some((t) => t.value === e && !t.disabled)), n = t.filter((e) => q.includes(e)), r = q.filter((e) => !t.includes(e)).length, i = typeof x == "number" ? Math.max(0, Math.min(t.length, x - r)) : t.length;
2555
2697
  if (n.length > 0 && n.length >= i) {
2556
- Ue(K.filter((e) => !t.includes(e)));
2698
+ Ue(q.filter((e) => !t.includes(e)));
2557
2699
  return;
2558
2700
  }
2559
- let a = [...K];
2701
+ let a = [...q];
2560
2702
  for (let e of t) if (!a.includes(e)) {
2561
2703
  if (typeof x == "number" && a.length >= x) break;
2562
2704
  a.push(e);
2563
2705
  }
2564
- Ue(a), S && (Ke(), W.current?.focus());
2706
+ Ue(a), S && (Ke(), G.current?.focus());
2565
2707
  }, [
2566
2708
  Ke,
2567
2709
  S,
2568
2710
  x,
2569
2711
  b,
2570
- ze,
2571
- K,
2712
+ Re,
2713
+ q,
2572
2714
  Ue
2573
2715
  ]), at = u(() => {
2574
- Je(""), V?.(), W.current?.focus();
2716
+ Je(""), V?.(), G.current?.focus();
2575
2717
  }, [V, Je]), ot = u(() => {
2576
- q || Ie(!1), qe();
2577
- }, [q, qe]), st = u((e) => {
2578
- An(e, q) && Ie(!0), Ye(e);
2579
- }, [q, Ye]), ct = u((e) => {
2580
- Ie(!0), Ge(e);
2718
+ Ve || Fe(!1), qe();
2719
+ }, [Ve, qe]), st = u((e) => {
2720
+ zn(e, Ve) && Fe(!0), Ye(e);
2721
+ }, [Ve, Ye]), ct = u((e) => {
2722
+ Fe(!0), Ge(e);
2581
2723
  }, [Ge]), lt = u((e) => {
2582
- Ee(e), oe?.(e);
2724
+ Te(e), oe?.(e);
2583
2725
  }, [oe]), { isTopOverlay: ut } = ue({
2584
- active: q,
2585
- id: we
2726
+ active: Ve,
2727
+ id: Ce
2586
2728
  });
2587
2729
  se({
2588
- active: q,
2730
+ active: Ve,
2589
2731
  closeOnEscape: !0,
2590
2732
  closeOnOutsidePress: !0,
2591
- contentRef: Fe,
2592
- ignoreRefs: [W],
2733
+ contentRef: Pe,
2734
+ ignoreRefs: [G],
2593
2735
  isTopOverlay: ut,
2594
2736
  requestClose: Ke
2595
2737
  }), f(() => {
2596
- q || Ie(!1);
2597
- }, [q]), f(() => {
2598
- !q && Te && Ee("");
2599
- }, [q, Te]), pe({
2600
- active: q,
2738
+ Ve || Fe(!1);
2739
+ }, [Ve]), f(() => {
2740
+ !Ve && we && Te("");
2741
+ }, [Ve, we]), pe({
2742
+ active: Ve,
2601
2743
  enabled: L
2602
2744
  });
2603
2745
  let dt = u((e) => {
2604
- W.current = e, tt(e);
2746
+ G.current = e, tt(e);
2605
2747
  }, [tt]), ft = u((e) => {
2606
- Fe.current = e, nt(e);
2607
- }, [nt]), pt = fe ? fe(Xe) : b && Ze.length ? Ze.map((e) => e.label).join(", ") : Xe?.label ?? C, mt = w ?? E ?? "No options available", ht = P && K.length > 0 && !Me && !N, gt = {
2608
- id: Ce,
2609
- describedBy: Pe || void 0,
2748
+ Pe.current = e, nt(e);
2749
+ }, [nt]), pt = fe ? fe(Xe) : b && Ze.length ? Ze.map((e) => e.label).join(", ") : Xe?.label ?? C, mt = w ?? E ?? "No options available", ht = P && q.length > 0 && !je && !N, gt = {
2750
+ id: Se,
2751
+ describedBy: Ne || void 0,
2610
2752
  labelledBy: c ? void 0 : d,
2611
- isOpen: q,
2612
- disabled: Me,
2613
- required: Ne,
2614
- listboxId: we,
2753
+ isOpen: Ve,
2754
+ disabled: je,
2755
+ required: Me,
2756
+ listboxId: Ce,
2615
2757
  activeIndex: We,
2616
- ariaLabel: c ?? (!i && !U?.labelId ? Xe?.label || C : void 0),
2617
- error: je,
2758
+ ariaLabel: c ?? (!i && !W?.labelId ? Xe?.label || C : void 0),
2759
+ error: Ae,
2618
2760
  loading: N,
2619
2761
  displayText: pt,
2620
2762
  isPlaceholder: !Qe,
2621
- size: Ae,
2763
+ size: ke,
2622
2764
  color: O,
2623
2765
  variant: k,
2624
2766
  startIcon: ce,
@@ -2626,154 +2768,154 @@ var kn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label":
2626
2768
  prefix: de,
2627
2769
  suffix: H,
2628
2770
  clearable: ht,
2629
- className: ve,
2771
+ className: _e,
2630
2772
  buttonRef: dt,
2631
2773
  onClear: at,
2632
2774
  onClick: ot,
2633
2775
  onKeyDown: st,
2634
2776
  onBlur: he,
2635
- onFocus: ge
2777
+ onFocus: U
2636
2778
  }, _t = {
2637
- isOpen: q,
2638
- listboxId: we,
2639
- labelledById: Ce,
2779
+ isOpen: Ve,
2780
+ listboxId: Ce,
2781
+ labelledById: Se,
2640
2782
  style: et,
2641
- options: Be,
2642
- entries: Le || Te ? void 0 : Re,
2783
+ options: ze,
2784
+ entries: Ie || we ? void 0 : Le,
2643
2785
  multiple: b,
2644
2786
  color: O,
2645
2787
  variant: k,
2646
- searchable: Le,
2788
+ searchable: Ie,
2647
2789
  command: R,
2648
2790
  virtual: I,
2649
2791
  portal: ne,
2650
- searchValue: Te,
2792
+ searchValue: we,
2651
2793
  loading: N,
2652
2794
  loadingText: T,
2653
2795
  noOptionsText: mt,
2654
2796
  renderOption: me,
2655
2797
  selectedValue: $e,
2656
- selectedValues: K,
2798
+ selectedValues: q,
2657
2799
  activeIndex: We,
2658
- visualActiveIndex: G ? We : -1,
2659
- className: ye,
2800
+ visualActiveIndex: K ? We : -1,
2801
+ className: ve,
2660
2802
  setDropdownRef: ft,
2661
2803
  onSelect: rt,
2662
2804
  onSelectGroup: it,
2663
2805
  onMouseEnter: ct,
2664
2806
  onSearchChange: lt
2665
- }, vt = /* @__PURE__ */ r(t, { children: [s && b && K.length > 0 && /* @__PURE__ */ n(t, { children: K.map((e) => /* @__PURE__ */ n("input", {
2807
+ }, vt = /* @__PURE__ */ r(t, { children: [s && b && q.length > 0 && /* @__PURE__ */ n(t, { children: q.map((e) => /* @__PURE__ */ n("input", {
2666
2808
  type: "hidden",
2667
2809
  name: s,
2668
2810
  value: e,
2669
- disabled: Me
2811
+ disabled: je
2670
2812
  }, e)) }), s && !b && /* @__PURE__ */ n("input", {
2671
2813
  type: "hidden",
2672
2814
  name: s,
2673
2815
  value: $e,
2674
- disabled: Me
2675
- })] }), yt = bn(e), bt = /* @__PURE__ */ r(Jt, {
2816
+ disabled: je
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, {
2693
- id: Ce,
2834
+ return !xe && W ? e ? bt : xt : /* @__PURE__ */ n(Dn, {
2835
+ id: Se,
2694
2836
  label: i,
2695
2837
  description: a,
2696
2838
  error: z,
2697
- required: Ne,
2698
- disabled: Me,
2839
+ required: Me,
2840
+ disabled: je,
2699
2841
  bindControl: !1,
2700
- className: _e,
2842
+ className: ge,
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,27 +2969,27 @@ 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 }) => {
2844
- let { activeIndex: c, setActiveIndex: l } = xe({
2985
+ }, Qn = ({ children: e, activeIndex: t, defaultActiveIndex: r = 0, onChange: i, orientation: a = "horizontal", appearance: o = "default", className: s }) => {
2986
+ let { activeIndex: c, setActiveIndex: l } = be({
2845
2987
  activeIndex: t,
2846
2988
  defaultActiveIndex: r,
2847
2989
  onChange: i
2848
2990
  }), d = h([]), f = u((e, t) => {
2849
2991
  d.current[e] = t;
2850
- }, []), { onKeyDown: p } = U({
2992
+ }, []), { onKeyDown: p } = W({
2851
2993
  activeIndex: c,
2852
2994
  setActiveIndex: l,
2853
2995
  tabRefs: d,
@@ -2863,98 +3005,252 @@ 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 = {
2882
- tooltip: "_tooltip_10opu_1",
2883
- arrow: "_arrow_10opu_25"
2884
- }, Kn = c(({ content: e, placement: t = "top", arrowRef: i, arrowX: a, arrowY: o, className: s, style: c, ...l }, u) => {
2885
- let d = {
3019
+ var $n = Object.assign(Qn, {
3020
+ List: Kn,
3021
+ Tab: Xn,
3022
+ Panel: Jn
3023
+ }), er = s(null), tr = s({
3024
+ delay: {
3025
+ open: 300,
3026
+ close: 100
3027
+ },
3028
+ skipDelay: 300
3029
+ }), nr = er.Provider, rr = ({ children: e, delay: t = 700, skipDelay: r = 300 }) => {
3030
+ let i = typeof t == "number" ? {
3031
+ open: t,
3032
+ close: 100
3033
+ } : t;
3034
+ return /* @__PURE__ */ n(tr.Provider, {
3035
+ value: {
3036
+ delay: i,
3037
+ skipDelay: r
3038
+ },
3039
+ children: e
3040
+ });
3041
+ };
3042
+ function ir() {
3043
+ let e = d(er);
3044
+ if (!e) throw Error("Tooltip compound components must be rendered inside Tooltip");
3045
+ return e;
3046
+ }
3047
+ function ar() {
3048
+ return d(tr);
3049
+ }
3050
+ var or = {
3051
+ tooltip: "_tooltip_v99mt_1",
3052
+ neutral: "_neutral_v99mt_22",
3053
+ sm: "_sm_v99mt_28",
3054
+ arrow: "_arrow_v99mt_34"
3055
+ }, sr = ({ className: e, style: t, ...r }) => {
3056
+ let i = ir(), a = {
2886
3057
  top: "bottom",
2887
3058
  right: "left",
2888
3059
  bottom: "top",
2889
3060
  left: "right"
2890
- }[t.split("-")[0]], f = {
2891
- position: "absolute",
2892
- pointerEvents: "none",
2893
- left: a == null ? "" : `${a}px`,
2894
- top: o == null ? "" : `${o}px`,
2895
- [d]: "-5px"
3061
+ }[i.placement.split("-")[0]];
3062
+ return /* @__PURE__ */ n("div", {
3063
+ ...r,
3064
+ ref: i.arrowRef,
3065
+ className: N(or.arrow, e),
3066
+ style: {
3067
+ left: i.arrowX == null ? void 0 : `${i.arrowX}px`,
3068
+ top: i.arrowY == null ? void 0 : `${i.arrowY}px`,
3069
+ [a]: "-5px",
3070
+ ...t
3071
+ }
3072
+ });
3073
+ };
3074
+ sr.displayName = "Tooltip.Arrow";
3075
+ //#endregion
3076
+ //#region src/components/Tooltip/internal/composeEventHandlers.ts
3077
+ function cr(e, t) {
3078
+ return (n) => {
3079
+ e?.(n), n.defaultPrevented || t?.(n);
2896
3080
  };
2897
- return /* @__PURE__ */ r("div", {
2898
- ref: u,
2899
- className: N(Gn.tooltip, s),
2900
- "data-placement": t,
2901
- "data-state": "open",
2902
- style: c,
2903
- ...l,
2904
- children: [e, /* @__PURE__ */ n("div", {
2905
- ref: i,
2906
- className: Gn.arrow,
2907
- style: f
2908
- })]
3081
+ }
3082
+ function lr(...e) {
3083
+ return (t) => {
3084
+ e.forEach((e) => {
3085
+ if (e) {
3086
+ if (typeof e == "function") {
3087
+ e(t);
3088
+ return;
3089
+ }
3090
+ e.current = t;
3091
+ }
3092
+ });
3093
+ };
3094
+ }
3095
+ //#endregion
3096
+ //#region src/components/Tooltip/Content/TooltipContent.tsx
3097
+ var ur = c(({ children: e, color: t = "neutral", size: r = "sm", forceMount: i = !1, className: a, style: o, ...s }, c) => {
3098
+ let l = ir();
3099
+ return !i && !l.open ? null : /* @__PURE__ */ n("div", {
3100
+ ...l.getContentProps({
3101
+ id: l.contentId,
3102
+ role: "tooltip",
3103
+ ...s
3104
+ }),
3105
+ ref: lr(c, l.setContentRef),
3106
+ className: N(or.tooltip, or[t], or[r], a),
3107
+ "data-placement": l.placement,
3108
+ "data-state": l.open ? "open" : "closed",
3109
+ style: {
3110
+ ...l.floatingStyles,
3111
+ ...o
3112
+ },
3113
+ children: e
2909
3114
  });
2910
3115
  });
2911
- Kn.displayName = "TooltipContent";
3116
+ ur.displayName = "Tooltip.Content";
2912
3117
  //#endregion
2913
- //#region src/components/Tooltip/Tooltip.tsx
2914
- var qn = ({ children: e, placement: i = "top", content: a, disabled: o = !1, delay: s = {
2915
- open: 300,
2916
- close: 100
2917
- }, maxWidth: c = 250, className: l, onOpenChange: u }) => {
2918
- let [d, f] = g(!1), m = h(null), _ = p(), { context: v, floatingStyles: y, middlewareData: b, setRef: x, setFloatingRef: S, placement: w } = et({
2919
- open: d,
2920
- onOpenChange: (e) => {
2921
- o || (f(e), u?.(e));
3118
+ //#region src/components/Tooltip/internal/useTooltipDelay.ts
3119
+ function dr(e, t) {
3120
+ let n = ar();
3121
+ return e == null ? n.delay : typeof e == "number" ? {
3122
+ open: e,
3123
+ close: n.delay.close
3124
+ } : {
3125
+ open: e.open ?? n.delay.open,
3126
+ close: e.close ?? n.delay.close
3127
+ };
3128
+ }
3129
+ //#endregion
3130
+ //#region src/components/Tooltip/internal/useTooltipInteractions.ts
3131
+ function fr({ context: e, delay: t, disabled: n, interactive: r }) {
3132
+ return M([j(e, {
3133
+ delay: t,
3134
+ enabled: !n,
3135
+ move: !1,
3136
+ handleClose: r ? void 0 : null
3137
+ }), A(e, { enabled: !n })]);
3138
+ }
3139
+ //#endregion
3140
+ //#region src/components/Tooltip/internal/useTooltipPosition.ts
3141
+ function pr({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
3142
+ let o = h(null), s = et({
3143
+ open: e,
3144
+ onOpenChange: t,
3145
+ placement: n,
3146
+ offset: r,
3147
+ avoidCollisions: i,
3148
+ matchTriggerWidth: a,
3149
+ middleware: [C({ element: o })]
3150
+ });
3151
+ return {
3152
+ ...s,
3153
+ arrowRef: o,
3154
+ arrowX: s.middlewareData.arrow?.x,
3155
+ arrowY: s.middlewareData.arrow?.y
3156
+ };
3157
+ }
3158
+ //#endregion
3159
+ //#region src/components/Tooltip/Root/TooltipRoot.tsx
3160
+ var mr = ({ children: e, open: t, defaultOpen: r = !1, onOpenChange: i, placement: a = "top", offset: o = 8, delay: s, skipDelay: c, disabled: l = !1, interactive: u = !1, avoidCollisions: d = !0, matchTriggerWidth: f = !1, modal: m = !1 }) => {
3161
+ let g = `${p()}-content`, _ = h(null), v = h(null), [y, b] = U({
3162
+ value: t,
3163
+ defaultValue: r,
3164
+ onChange: i
3165
+ }), x = (e) => {
3166
+ l || b(e);
3167
+ }, S = pr({
3168
+ open: y,
3169
+ onOpenChange: x,
3170
+ placement: a,
3171
+ offset: o,
3172
+ avoidCollisions: d,
3173
+ matchTriggerWidth: f
3174
+ }), C = dr(s, c), w = fr({
3175
+ context: S.context,
3176
+ delay: C,
3177
+ disabled: l,
3178
+ interactive: u
3179
+ }), { isTopOverlay: T } = ue({
3180
+ active: y,
3181
+ id: g
3182
+ });
3183
+ return se({
3184
+ active: y,
3185
+ contentRef: _,
3186
+ ignoreRefs: [v],
3187
+ closeOnEscape: !0,
3188
+ closeOnOutsidePress: !u,
3189
+ isTopOverlay: T,
3190
+ requestClose: () => x(!1)
3191
+ }), /* @__PURE__ */ n(nr, {
3192
+ value: {
3193
+ contentId: g,
3194
+ open: y,
3195
+ disabled: l,
3196
+ interactive: u,
3197
+ contentRef: _,
3198
+ arrowRef: S.arrowRef,
3199
+ arrowX: S.arrowX,
3200
+ arrowY: S.arrowY,
3201
+ placement: S.placement,
3202
+ floatingStyles: S.floatingStyles,
3203
+ setOpen: x,
3204
+ setTriggerRef: lr(v, S.setRef),
3205
+ setContentRef: lr(_, S.setFloatingRef),
3206
+ getTriggerProps: w.getReferenceProps,
3207
+ getContentProps: w.getFloatingProps
2922
3208
  },
2923
- placement: i,
2924
- middleware: [C({ element: m })]
2925
- }), T = b.arrow?.x, E = b.arrow?.y, { getReferenceProps: D, getFloatingProps: O } = M([j(v, { delay: {
2926
- open: s.open,
2927
- close: s.close
2928
- } }), A(v)]);
2929
- return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("div", {
2930
- ref: x,
2931
- style: { display: "inline-flex" },
2932
- "aria-describedby": d ? _ : void 0,
2933
- ...D(),
2934
3209
  children: e
2935
- }), /* @__PURE__ */ n(we, { children: d && a && /* @__PURE__ */ n(Kn, {
2936
- id: _,
2937
- ref: S,
2938
- content: a,
2939
- arrowRef: m,
2940
- arrowX: T,
2941
- arrowY: E,
2942
- role: "tooltip",
2943
- style: {
2944
- ...y,
2945
- maxWidth: typeof c == "number" ? `${c}px` : c
2946
- },
2947
- placement: w,
2948
- className: l,
2949
- ...O()
2950
- }) })] });
3210
+ });
3211
+ };
3212
+ mr.displayName = "Tooltip.Root";
3213
+ //#endregion
3214
+ //#region src/components/Tooltip/Trigger/TooltipTrigger.tsx
3215
+ var hr = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...a }) => {
3216
+ let s = ir(), c = e && l(t) ? t : void 0, u = s.disabled || r || c?.props.disabled, d = s.getTriggerProps({
3217
+ ...a,
3218
+ "aria-describedby": s.open ? s.contentId : void 0,
3219
+ "aria-disabled": u || void 0,
3220
+ "data-state": s.open ? "open" : "closed"
3221
+ }), f = {
3222
+ ...d,
3223
+ ref: c ? lr(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
3224
+ className: N(c?.props.className, i),
3225
+ disabled: u || void 0,
3226
+ onMouseEnter: cr(c?.props.onMouseEnter, d.onMouseEnter),
3227
+ onMouseLeave: cr(c?.props.onMouseLeave, d.onMouseLeave),
3228
+ onPointerEnter: cr(c?.props.onPointerEnter, d.onPointerEnter),
3229
+ onPointerLeave: cr(c?.props.onPointerLeave, d.onPointerLeave),
3230
+ onFocus: cr(c?.props.onFocus, d.onFocus),
3231
+ onBlur: cr(c?.props.onBlur, d.onBlur)
3232
+ };
3233
+ return c ? o(c, f) : /* @__PURE__ */ n("button", {
3234
+ type: "button",
3235
+ ...f,
3236
+ children: t
3237
+ });
2951
3238
  };
2952
- qn.displayName = "Tooltip";
3239
+ hr.displayName = "Tooltip.Trigger";
3240
+ //#endregion
3241
+ //#region src/components/Tooltip/Tooltip.tsx
3242
+ var gr = Object.assign(mr, {
3243
+ Trigger: hr,
3244
+ Content: ur,
3245
+ Arrow: sr,
3246
+ Provider: rr
3247
+ });
3248
+ gr.displayName = "Tooltip";
2953
3249
  //#endregion
2954
3250
  //#region src/utils/devWarning.ts
2955
- var Jn = (e, t) => {
3251
+ var _r = (e, t) => {
2956
3252
  process.env.NODE_ENV !== "production" && !e && console.warn(t);
2957
- }, X = {
3253
+ }, Z = {
2958
3254
  button: "_button_1b73n_1",
2959
3255
  solid: "_solid_1b73n_23",
2960
3256
  primary: "_primary_1b73n_23",
@@ -2982,14 +3278,14 @@ var Jn = (e, t) => {
2982
3278
  "button-spin": "_button-spin_1b73n_1",
2983
3279
  badge: "_badge_1b73n_812",
2984
3280
  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
3281
+ }, vr = 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) => {
3282
+ 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, {
3283
+ [Z.disabled]: B,
3284
+ [Z.loading]: f,
3285
+ [Z.fullWidth]: b,
3286
+ [Z.iconOnly]: z
2991
3287
  });
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.");
3288
+ _r(!S || !D, "Button: pass href to the child element when using asChild."), _r(!S || !!L, "Button: asChild requires a single valid React element child."), _r(!z || ee, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
2993
3289
  let ae = (e) => {
2994
3290
  e.preventDefault(), e.stopPropagation();
2995
3291
  }, oe = (e) => {
@@ -3000,35 +3296,35 @@ var Jn = (e, t) => {
3000
3296
  L?.props.onClick?.(e), e.defaultPrevented || w?.(e);
3001
3297
  }, V = /* @__PURE__ */ r(t, { children: [
3002
3298
  f && (g ? /* @__PURE__ */ n("span", {
3003
- className: X.icon,
3299
+ className: Z.icon,
3004
3300
  "aria-hidden": "true",
3005
3301
  children: g
3006
3302
  }) : /* @__PURE__ */ n("span", {
3007
- className: X.spinner,
3303
+ className: Z.spinner,
3008
3304
  "aria-hidden": "true"
3009
3305
  })),
3010
3306
  !f && m && /* @__PURE__ */ n("span", {
3011
- className: X.icon,
3307
+ className: Z.icon,
3012
3308
  children: m
3013
3309
  }),
3014
3310
  te && !z && /* @__PURE__ */ n("span", {
3015
- className: X.label,
3311
+ className: Z.label,
3016
3312
  "data-measure": ne,
3017
3313
  children: /* @__PURE__ */ n("span", {
3018
- className: X.labelText,
3314
+ className: Z.labelText,
3019
3315
  children: te
3020
3316
  })
3021
3317
  }),
3022
3318
  _ && !z && /* @__PURE__ */ n("span", {
3023
- className: X.badge,
3319
+ className: Z.badge,
3024
3320
  children: _
3025
3321
  }),
3026
3322
  v && !z && /* @__PURE__ */ n("span", {
3027
- className: X.shortcut,
3323
+ className: Z.shortcut,
3028
3324
  children: v
3029
3325
  }),
3030
3326
  !f && h && /* @__PURE__ */ n("span", {
3031
- className: X.icon,
3327
+ className: Z.icon,
3032
3328
  children: h
3033
3329
  })
3034
3330
  ] });
@@ -3079,8 +3375,8 @@ var Jn = (e, t) => {
3079
3375
  children: V
3080
3376
  });
3081
3377
  });
3082
- Yn.displayName = "Button";
3083
- var Z = {
3378
+ vr.displayName = "Button";
3379
+ var Q = {
3084
3380
  wrapper: "_wrapper_1kk5v_1",
3085
3381
  colorPrimary: "_colorPrimary_1kk5v_27",
3086
3382
  colorNeutral: "_colorNeutral_1kk5v_45",
@@ -3115,30 +3411,30 @@ var Z = {
3115
3411
  "checkbox-checkmark-in": "_checkbox-checkmark-in_1kk5v_1",
3116
3412
  "checkbox-indeterminate-in": "_checkbox-indeterminate-in_1kk5v_1",
3117
3413
  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) => {
3414
+ }, yr = {
3415
+ sm: Q.labelSm,
3416
+ md: Q.labelMd,
3417
+ lg: Q.labelLg
3418
+ }, br = {
3419
+ sm: Q.wrapperSm,
3420
+ md: Q.wrapperMd,
3421
+ lg: Q.wrapperLg
3422
+ }, xr = {
3423
+ sm: Q.containerSm,
3424
+ md: Q.containerMd,
3425
+ lg: Q.containerLg
3426
+ }, Sr = {
3427
+ primary: Q.colorPrimary,
3428
+ neutral: Q.colorNeutral,
3429
+ success: Q.colorSuccess,
3430
+ warning: Q.colorWarning,
3431
+ danger: Q.colorDanger
3432
+ }, Cr = 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
3433
  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
3434
  E,
3139
3435
  P,
3140
3436
  F
3141
- ].filter(Boolean).join(" "), [L, R] = ge({
3437
+ ].filter(Boolean).join(" "), [L, R] = U({
3142
3438
  value: s,
3143
3439
  defaultValue: m,
3144
3440
  onChange: S
@@ -3155,12 +3451,12 @@ var Z = {
3155
3451
  let ee = (e) => {
3156
3452
  R(e.target.checked);
3157
3453
  };
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),
3454
+ return _r(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ r("div", {
3455
+ className: N(Q.container, xr[c], d === "start" && Q.containerLabelStart, b),
3160
3456
  children: [
3161
3457
  /* @__PURE__ */ r("label", {
3162
3458
  htmlFor: A,
3163
- className: N(Z.wrapper, Zn[c], $n[l], d === "start" && Z.labelStart, !t && Z.iconOnly, g && Z.disabled, x),
3459
+ className: N(Q.wrapper, br[c], Sr[l], d === "start" && Q.labelStart, !t && Q.iconOnly, g && Q.disabled, x),
3164
3460
  children: [
3165
3461
  /* @__PURE__ */ n("input", {
3166
3462
  ...D,
@@ -3171,7 +3467,7 @@ var Z = {
3171
3467
  disabled: g,
3172
3468
  required: _,
3173
3469
  onChange: ee,
3174
- className: Z.input,
3470
+ className: Q.input,
3175
3471
  "aria-label": w,
3176
3472
  "aria-labelledby": T,
3177
3473
  "aria-checked": y ? "mixed" : D["aria-checked"],
@@ -3179,20 +3475,20 @@ var Z = {
3179
3475
  "aria-describedby": I || void 0
3180
3476
  }),
3181
3477
  /* @__PURE__ */ n("span", {
3182
- className: N(Z.customCheckbox, M && Z.error, y && Z.indeterminate),
3478
+ className: N(Q.customCheckbox, M && Q.error, y && Q.indeterminate),
3183
3479
  "aria-hidden": "true",
3184
3480
  children: y ? /* @__PURE__ */ n("span", {
3185
- className: N(Z.indeterminateMark, o && Z.customMark),
3481
+ className: N(Q.indeterminateMark, o && Q.customMark),
3186
3482
  children: o
3187
3483
  }) : L && /* @__PURE__ */ n("span", {
3188
- className: Z.checkmark,
3484
+ className: Q.checkmark,
3189
3485
  children: a ?? /* @__PURE__ */ n(v, {})
3190
3486
  })
3191
3487
  }),
3192
3488
  t && /* @__PURE__ */ r("span", {
3193
- className: N(Z.label, Xn[c]),
3489
+ className: N(Q.label, yr[c]),
3194
3490
  children: [t, _ && /* @__PURE__ */ n("span", {
3195
- className: Z.requiredMark,
3491
+ className: Q.requiredMark,
3196
3492
  "aria-hidden": "true",
3197
3493
  children: "*"
3198
3494
  })]
@@ -3201,19 +3497,19 @@ var Z = {
3201
3497
  }),
3202
3498
  i && /* @__PURE__ */ n("span", {
3203
3499
  id: P,
3204
- className: Z.descriptionText,
3500
+ className: Q.descriptionText,
3205
3501
  children: i
3206
3502
  }),
3207
3503
  M && /* @__PURE__ */ n("span", {
3208
3504
  id: F,
3209
- className: Z.errorText,
3505
+ className: Q.errorText,
3210
3506
  children: C
3211
3507
  })
3212
3508
  ]
3213
3509
  });
3214
3510
  });
3215
- er.displayName = "Checkbox";
3216
- var Q = {
3511
+ Cr.displayName = "Checkbox";
3512
+ var $ = {
3217
3513
  inputGroup: "_inputGroup_1fjhk_1",
3218
3514
  primary: "_primary_1fjhk_29",
3219
3515
  outline: "_outline_1fjhk_29",
@@ -3254,15 +3550,15 @@ var Q = {
3254
3550
  toneDanger: "_toneDanger_1fjhk_876",
3255
3551
  toneMuted: "_toneMuted_1fjhk_880",
3256
3552
  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) => {
3553
+ }, wr = {
3554
+ default: $.toneDefault,
3555
+ primary: $.tonePrimary,
3556
+ secondary: $.toneSecondary,
3557
+ success: $.toneSuccess,
3558
+ danger: $.toneDanger,
3559
+ muted: $.toneMuted,
3560
+ inverse: $.toneInverse
3561
+ }, Tr = (e = "text", t) => {
3266
3562
  if (t) return t;
3267
3563
  switch (e) {
3268
3564
  case "email": return "email";
@@ -3272,7 +3568,7 @@ var Q = {
3272
3568
  case "search": return "off";
3273
3569
  default: return;
3274
3570
  }
3275
- }, rr = (e, t) => {
3571
+ }, Er = (e, t) => {
3276
3572
  let n = e.replace(/\D/g, ""), r = 0, i = "";
3277
3573
  for (let e of t) {
3278
3574
  if (e === "#") {
@@ -3284,254 +3580,157 @@ var Q = {
3284
3580
  r < n.length && (i += e);
3285
3581
  }
3286
3582
  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 = [
3583
+ }, Dr = (e, t) => t ? typeof t == "function" ? t(e) : Er(e, t) : e, Or = 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) => {
3584
+ let pe = p(), me = wn(), he = !!(i || o || v), U = e ?? (he ? void 0 : me?.controlId) ?? pe, ge = h(null), [_e, ve] = g(!1), [ye, be] = g(l ?? ""), W = c !== void 0, xe = String((W ? c : ye) ?? ""), Se = te ? te(xe) : xe, Ce = xe.length > 0, we = f ?? me?.size ?? "md", Te = y || !!v || !he && !!me?.invalid, Ee = b || !he && !!me?.disabled, De = x || !he && !!me?.required, Oe = D || C, ke = d === "password", Ae = ke && j && _e ? "text" : d, je = P ?? (d === "search" ? /* @__PURE__ */ n(S, {}) : null), Me = F, Ne = Tr(d, E), G = C && !Ee, Pe = O && Ce && !Ee && !Oe && !G, K = j && ke && !Ee && !G && !Pe, Fe = !G && !Pe && !K && !!Me, Ie = !!(M && V), Le = o ? `${U}-description` : void 0, Re = v ? `${U}-error` : void 0, ze = Ie ? `${U}-counter` : void 0, Be = [
3289
3585
  le,
3290
3586
  !he && !le ? me?.ariaDescribedBy : void 0,
3587
+ Le,
3291
3588
  Re,
3292
- ze,
3293
- Be
3294
- ].filter(Boolean).join(" "), K = ee ?? "×", q = !!(Me || R), He = !!(Ne || z || Fe || G || W), Ue = !!(Me && R), We = !!(Ne && z), Ge = !!(I || L), Ke = u((e) => {
3295
- if (_e.current = e, typeof fe == "function") {
3589
+ ze
3590
+ ].filter(Boolean).join(" "), q = ee ?? "×", Ve = !!(je || R), He = !!(Me || z || Pe || K || G), Ue = !!(je && R), We = !!(Me && z), Ge = !!(I || L), Ke = u((e) => {
3591
+ if (ge.current = e, typeof fe == "function") {
3296
3592
  fe(e);
3297
3593
  return;
3298
3594
  }
3299
3595
  fe && (fe.current = e);
3300
3596
  }, [fe]), qe = u((e) => {
3301
- let t = ir(ne ? ne(e.target.value) : e.target.value, B);
3302
- U || xe(t), A?.(t);
3597
+ let t = Dr(ne ? ne(e.target.value) : e.target.value, B);
3598
+ W || be(t), A?.(t);
3303
3599
  }, [
3304
- U,
3600
+ W,
3305
3601
  B,
3306
3602
  A,
3307
3603
  ne
3308
3604
  ]), Je = u(() => {
3309
- U || xe(""), A?.(""), k?.(), _e.current?.focus();
3605
+ W || be(""), A?.(""), k?.(), ge.current?.focus();
3310
3606
  }, [
3311
- U,
3607
+ W,
3312
3608
  k,
3313
3609
  A
3314
3610
  ]), 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
3611
+ className: N($.inputGroup, $[_], $[m], {
3612
+ [$.hasAddons]: Ge,
3613
+ [$.isDisabled]: Ee,
3614
+ [$.isInvalid]: Te,
3615
+ [$.isLoading]: G
3320
3616
  }),
3321
3617
  children: [
3322
3618
  I && /* @__PURE__ */ n("span", {
3323
- className: Q.addon,
3619
+ className: $.addon,
3324
3620
  children: I
3325
3621
  }),
3326
3622
  /* @__PURE__ */ r("div", {
3327
- className: N(Q.inputWrapper, {
3328
- [Q.hasLeftAdornment]: q,
3329
- [Q.hasRightAdornment]: He,
3330
- [Q.hasStartIconAndPrefix]: Ue,
3331
- [Q.hasEndIconAndSuffix]: We
3623
+ className: N($.inputWrapper, {
3624
+ [$.hasLeftAdornment]: Ve,
3625
+ [$.hasRightAdornment]: He,
3626
+ [$.hasStartIconAndPrefix]: Ue,
3627
+ [$.hasEndIconAndSuffix]: We
3332
3628
  }),
3333
3629
  children: [
3334
- Me && /* @__PURE__ */ n("span", {
3630
+ je && /* @__PURE__ */ n("span", {
3335
3631
  "aria-hidden": "true",
3336
- className: N(Q.startAdornment, tr[re]),
3337
- children: Me
3632
+ className: N($.startAdornment, wr[re]),
3633
+ children: je
3338
3634
  }),
3339
3635
  R && /* @__PURE__ */ n("span", {
3340
- className: Q.prefix,
3636
+ className: $.prefix,
3341
3637
  children: R
3342
3638
  }),
3343
3639
  /* @__PURE__ */ n("input", {
3344
3640
  ...H,
3345
3641
  ref: Ke,
3346
- id: ge,
3642
+ id: U,
3347
3643
  name: a,
3348
- type: je,
3349
- autoComplete: Pe,
3350
- className: N(Q.input, Q[Te], { [Q.error]: Ee }, w),
3351
- value: Ce,
3644
+ type: Ae,
3645
+ autoComplete: Ne,
3646
+ className: N($.input, $[we], { [$.error]: Te }, w),
3647
+ value: Se,
3352
3648
  onChange: qe,
3353
3649
  placeholder: s,
3354
- disabled: De,
3355
- readOnly: ke,
3356
- required: Oe,
3650
+ disabled: Ee,
3651
+ readOnly: Oe,
3652
+ required: De,
3357
3653
  autoFocus: oe,
3358
3654
  maxLength: V,
3359
- "aria-invalid": Ee ? !0 : ue,
3655
+ "aria-invalid": Te ? !0 : ue,
3360
3656
  "aria-labelledby": de ?? (he ? void 0 : me?.ariaLabelledBy),
3361
- "aria-describedby": Ve || void 0,
3657
+ "aria-describedby": Be || void 0,
3362
3658
  "aria-busy": C || void 0,
3363
3659
  onMouseEnter: se,
3364
3660
  onMouseLeave: ce
3365
3661
  }),
3366
3662
  z && /* @__PURE__ */ n("span", {
3367
- className: Q.suffix,
3663
+ className: $.suffix,
3368
3664
  children: z
3369
3665
  }),
3370
3666
  /* @__PURE__ */ r("div", {
3371
- className: Q.endSlot,
3667
+ className: $.endSlot,
3372
3668
  children: [
3373
- W && /* @__PURE__ */ n("span", {
3374
- className: Q.spinner,
3669
+ G && /* @__PURE__ */ n("span", {
3670
+ className: $.spinner,
3375
3671
  "aria-hidden": "true",
3376
3672
  "data-testid": "input-spinner"
3377
3673
  }),
3378
- G && /* @__PURE__ */ n("button", {
3674
+ K && /* @__PURE__ */ n("button", {
3379
3675
  type: "button",
3380
- className: Q.iconButton,
3381
- onClick: () => ye((e) => !e),
3382
- "aria-label": ve ? "Hide password" : "Show password",
3383
- children: ve ? "Hide" : "Show"
3676
+ className: $.iconButton,
3677
+ onClick: () => ve((e) => !e),
3678
+ "aria-label": _e ? "Hide password" : "Show password",
3679
+ children: _e ? "Hide" : "Show"
3384
3680
  }),
3385
- Fe && /* @__PURE__ */ n("button", {
3681
+ Pe && /* @__PURE__ */ n("button", {
3386
3682
  type: "button",
3387
- className: N(Q.clearButton, tr[ae]),
3683
+ className: N($.clearButton, wr[ae]),
3388
3684
  onClick: Je,
3389
3685
  "aria-label": "Clear input",
3390
- children: K
3686
+ children: q
3391
3687
  }),
3392
- Ie && Ne && /* @__PURE__ */ n("span", {
3688
+ Fe && Me && /* @__PURE__ */ n("span", {
3393
3689
  "aria-hidden": "true",
3394
- className: N(Q.endAdornment, tr[ie]),
3395
- children: Ne
3690
+ className: N($.endAdornment, wr[ie]),
3691
+ children: Me
3396
3692
  })
3397
3693
  ]
3398
3694
  })
3399
3695
  ]
3400
3696
  }),
3401
3697
  L && /* @__PURE__ */ n("span", {
3402
- className: Q.addon,
3698
+ className: $.addon,
3403
3699
  children: L
3404
3700
  })
3405
3701
  ]
3406
- }), Le && /* @__PURE__ */ r("div", {
3407
- id: Be,
3408
- className: Q.counter,
3702
+ }), Ie && /* @__PURE__ */ r("div", {
3703
+ id: ze,
3704
+ className: $.counter,
3409
3705
  children: [
3410
- Se.length,
3706
+ xe.length,
3411
3707
  " / ",
3412
3708
  V
3413
3709
  ]
3414
3710
  })] });
3415
- return !he && me ? Ye : /* @__PURE__ */ n(vn, {
3416
- id: ge,
3711
+ return !he && me ? Ye : /* @__PURE__ */ n(Dn, {
3712
+ id: U,
3417
3713
  label: i,
3418
3714
  description: o,
3419
3715
  error: v,
3420
- required: Oe,
3421
- disabled: De,
3422
- invalid: Ee,
3423
- size: Te,
3716
+ required: De,
3717
+ disabled: Ee,
3718
+ invalid: Te,
3719
+ size: we,
3424
3720
  className: T,
3425
3721
  bindControl: !1,
3426
3722
  children: Ye
3427
3723
  });
3428
3724
  });
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";
3725
+ Or.displayName = "Input";
3527
3726
  //#endregion
3528
3727
  //#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 }) => {
3530
- let [a, o] = ge({
3728
+ var kr = s(null), Ar = (e) => e === "highContrast" ? "high-contrast" : e, jr = ({ theme: e, defaultTheme: t = "light", onThemeChange: r, children: i }) => {
3729
+ let [a, o] = U({
3531
3730
  value: e,
3532
3731
  defaultValue: t,
3533
3732
  onChange: r
3534
- }), s = lr(a);
3733
+ }), s = Ar(a);
3535
3734
  f(() => {
3536
3735
  if (typeof document > "u") return;
3537
3736
  let { documentElement: e } = document, t = e.dataset.velliraTheme;
@@ -3547,7 +3746,7 @@ var cr = s(null), lr = (e) => e === "highContrast" ? "high-contrast" : e, ur = (
3547
3746
  theme: a,
3548
3747
  setTheme: o
3549
3748
  }), [a, o]);
3550
- return /* @__PURE__ */ n(cr.Provider, {
3749
+ return /* @__PURE__ */ n(kr.Provider, {
3551
3750
  value: c,
3552
3751
  children: /* @__PURE__ */ n("div", {
3553
3752
  "data-vellira-theme": s,
@@ -3555,13 +3754,13 @@ var cr = s(null), lr = (e) => e === "highContrast" ? "high-contrast" : e, ur = (
3555
3754
  })
3556
3755
  });
3557
3756
  };
3558
- ur.displayName = "ThemeProvider";
3757
+ jr.displayName = "ThemeProvider";
3559
3758
  //#endregion
3560
3759
  //#region src/theme/useTheme.ts
3561
- function dr() {
3562
- let e = d(cr);
3760
+ function Mr() {
3761
+ let e = d(kr);
3563
3762
  if (!e) throw Error("useTheme must be used within ThemeProvider.");
3564
3763
  return e;
3565
3764
  }
3566
3765
  //#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 };
3766
+ export { vr as Button, Cr as Checkbox, gt as Dropdown, Dn as FormField, Or as Input, Vt as Modal, Ce as Portal, Se as PortalProvider, Kt as Radio, tn as RadioGroup, Hn as Select, $n as Tabs, jr as ThemeProvider, gr as Tooltip, Mr as useTheme };