@vellira-ui/react 2.44.3 → 2.44.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,19 +4,20 @@ import { Children as i, Fragment as a, cloneElement as o, createContext as s, fo
4
4
  import { createPortal as v } from "react-dom";
5
5
  import { Check as y, ChevronDown as b, ChevronRight as x, Close as S, Search as C } from "@vellira-ui/icons";
6
6
  import { arrow as w, autoUpdate as T, flip as E, offset as D, shift as O, size as k, useFloating as A, useFocus as j, useHover as M, useInteractions as N } from "@floating-ui/react";
7
+ import { lightTheme as P } from "@vellira-ui/tokens";
7
8
  //#region src/utils/cn.ts
8
- var P = (...t) => e(t), F = { arrow: "_arrow_8b0vb_1" }, I = ({ className: e }) => /* @__PURE__ */ n("span", {
9
+ var F = (...t) => e(t), I = { arrow: "_arrow_8b0vb_1" }, L = ({ className: e }) => /* @__PURE__ */ n("span", {
9
10
  "aria-hidden": "true",
10
- className: P(F.arrow, e)
11
+ className: F(I.arrow, e)
11
12
  });
12
- I.__velliraDropdownPart = "arrow", I.displayName = "Dropdown.Arrow";
13
+ L.__velliraDropdownPart = "arrow", L.displayName = "Dropdown.Arrow";
13
14
  //#endregion
14
15
  //#region src/components/Dropdown/internal/DropdownCollection.ts
15
- function L(e, t) {
16
+ function R(e, t) {
16
17
  let n = () => null;
17
18
  return n.__velliraDropdownPart = e, n.displayName = t, n;
18
19
  }
19
- function R(e) {
20
+ function z(e) {
20
21
  let t = 0, n, r, a, o, s = [], c = [], u = (e) => `${e}-${t++}`;
21
22
  function d(e) {
22
23
  c.push(e), s.push({
@@ -96,7 +97,7 @@ function R(e) {
96
97
  type: "item",
97
98
  id: u("item"),
98
99
  props: t,
99
- label: B(t.children),
100
+ label: H(t.children),
100
101
  disabled: t.disabled
101
102
  });
102
103
  return;
@@ -107,7 +108,7 @@ function R(e) {
107
108
  type: "checkbox",
108
109
  id: u("checkbox"),
109
110
  props: t,
110
- label: B(t.children),
111
+ label: H(t.children),
111
112
  disabled: t.disabled
112
113
  });
113
114
  return;
@@ -129,20 +130,20 @@ function R(e) {
129
130
  props: n,
130
131
  groupId: t.radioGroupId ?? u("radio-group"),
131
132
  groupProps: t.radioGroupProps,
132
- label: B(n.children),
133
+ label: H(n.children),
133
134
  disabled: n.disabled
134
135
  });
135
136
  return;
136
137
  }
137
138
  case "sub": {
138
- let t = e.props, n = ee(t.children);
139
+ let t = e.props, n = V(t.children);
139
140
  if (!n.trigger) return;
140
- let r = n.trigger.props, i = R(n.content?.props.children);
141
+ let r = n.trigger.props, i = z(n.content?.props.children);
141
142
  d({
142
143
  type: "subTrigger",
143
144
  id: u("sub"),
144
145
  props: r,
145
- label: B(r.children),
146
+ label: H(r.children),
146
147
  disabled: r.disabled,
147
148
  content: n.content?.props.children,
148
149
  subEntries: i.entries,
@@ -169,7 +170,7 @@ function R(e) {
169
170
  trigger: n
170
171
  };
171
172
  }
172
- function z(e) {
173
+ function B(e) {
173
174
  let t, n, r, a, o = [];
174
175
  return i.forEach(e, (e) => {
175
176
  if (!l(e)) {
@@ -202,7 +203,7 @@ function z(e) {
202
203
  shortcut: a
203
204
  };
204
205
  }
205
- function ee(e) {
206
+ function V(e) {
206
207
  let t, n;
207
208
  return i.forEach(e, (e) => {
208
209
  if (!l(e)) return;
@@ -213,7 +214,7 @@ function ee(e) {
213
214
  trigger: t
214
215
  };
215
216
  }
216
- function B(e) {
217
+ function H(e) {
217
218
  let t = [];
218
219
  function n(e) {
219
220
  i.forEach(e, (e) => {
@@ -230,7 +231,7 @@ function B(e) {
230
231
  }
231
232
  //#endregion
232
233
  //#region src/components/Dropdown/CheckboxItem/DropdownCheckboxItem.tsx
233
- var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled: t, content: n }) => {
234
+ var ee = R("checkboxItem", "Dropdown.CheckboxItem"), te = ({ active: e, enabled: t, content: n }) => {
234
235
  f(() => {
235
236
  if (!e || !t || !n) return;
236
237
  let r = [], i = n.parentElement;
@@ -253,7 +254,7 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
253
254
  n,
254
255
  t
255
256
  ]);
256
- }, re = () => {
257
+ }, ne = () => {
257
258
  let e = !1;
258
259
  return {
259
260
  preventDefault: () => {
@@ -263,7 +264,7 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
263
264
  return e;
264
265
  }
265
266
  };
266
- }, ie = (e) => {
267
+ }, re = (e) => {
267
268
  let t = !1;
268
269
  return {
269
270
  originalEvent: e,
@@ -274,23 +275,23 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
274
275
  return t;
275
276
  }
276
277
  };
277
- }, ae = [
278
+ }, ie = [
278
279
  "a[href]",
279
280
  "button:not([disabled])",
280
281
  "textarea:not([disabled])",
281
282
  "input:not([disabled])",
282
283
  "select:not([disabled])",
283
284
  "[tabindex]:not([tabindex=\"-1\"])"
284
- ].join(","), oe = (e) => Array.from(e.querySelectorAll(ae)).filter((e) => !e.hasAttribute("disabled")), V = (e) => {
285
- (oe(e)[0] ?? e).focus();
286
- }, se = ({ active: e, contentRef: t, enabled: n, initialFocus: r, finalFocus: i, restoreFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s }) => {
285
+ ].join(","), U = (e) => Array.from(e.querySelectorAll(ie)).filter((e) => !e.hasAttribute("disabled")), ae = (e) => {
286
+ (U(e)[0] ?? e).focus();
287
+ }, oe = ({ active: e, contentRef: t, enabled: n, initialFocus: r, finalFocus: i, restoreFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s }) => {
287
288
  f(() => {
288
289
  if (!e) return;
289
- let n = document.activeElement, c = i?.current, l = re();
290
+ let n = document.activeElement, c = i?.current, l = ne();
290
291
  return o?.(l), l.defaultPrevented || queueMicrotask(() => {
291
- r?.current?.focus(), !r?.current && t.current && V(t.current);
292
+ r?.current?.focus(), !r?.current && t.current && ae(t.current);
292
293
  }), () => {
293
- let e = re();
294
+ let e = ne();
294
295
  s?.(e), !(e.defaultPrevented || !a) && queueMicrotask(() => {
295
296
  if (c) {
296
297
  c.focus();
@@ -311,7 +312,7 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
311
312
  if (!e || !n) return;
312
313
  let r = (e) => {
313
314
  if (e.key !== "Tab" || !t.current) return;
314
- let n = oe(t.current);
315
+ let n = U(t.current);
315
316
  if (n.length === 0) {
316
317
  e.preventDefault(), t.current.focus();
317
318
  return;
@@ -331,7 +332,7 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
331
332
  t,
332
333
  n
333
334
  ]);
334
- }, ce = ({ active: e, contentRef: t, ignoreRefs: n = [], closeOnEscape: r, closeOnOutsidePress: i, isTopOverlay: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => {
335
+ }, se = ({ active: e, contentRef: t, ignoreRefs: n = [], closeOnEscape: r, closeOnOutsidePress: i, isTopOverlay: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => {
335
336
  let u = g(n);
336
337
  u.current = n, f(() => {
337
338
  if (!e) return;
@@ -351,7 +352,7 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
351
352
  if (!e) return;
352
353
  let n = (e) => {
353
354
  if (!a() || e.target instanceof Node && [t, ...u.current].some((t) => t.current?.contains(e.target))) return;
354
- let n = ie(e);
355
+ let n = re(e);
355
356
  s?.(n), c?.(n), !(n.defaultPrevented || !i) && l();
356
357
  };
357
358
  return document.addEventListener("pointerdown", n), () => {
@@ -366,44 +367,44 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
366
367
  s,
367
368
  l
368
369
  ]);
369
- }, le = [], H = {
370
+ }, W = [], ce = {
370
371
  add(e) {
371
- le = le.filter((t) => t !== e), le.push(e);
372
+ W = W.filter((t) => t !== e), W.push(e);
372
373
  },
373
374
  remove(e) {
374
- le = le.filter((t) => t !== e);
375
+ W = W.filter((t) => t !== e);
375
376
  },
376
377
  isTop(e) {
377
- return le[le.length - 1] === e;
378
+ return W[W.length - 1] === e;
378
379
  }
379
- }, ue = ({ active: e, id: t }) => (f(() => {
380
- if (e) return H.add(t), () => {
381
- H.remove(t);
380
+ }, le = ({ active: e, id: t }) => (f(() => {
381
+ if (e) return ce.add(t), () => {
382
+ ce.remove(t);
382
383
  };
383
- }, [e, t]), { isTopOverlay: u(() => H.isTop(t), [t]) }), de = 0, fe = "", pe = {
384
+ }, [e, t]), { isTopOverlay: u(() => ce.isTop(t), [t]) }), G = 0, ue = "", de = {
384
385
  lock() {
385
- typeof document > "u" || (de === 0 && (fe = document.body.style.overflow, document.body.style.overflow = "hidden"), de += 1);
386
+ typeof document > "u" || (G === 0 && (ue = document.body.style.overflow, document.body.style.overflow = "hidden"), G += 1);
386
387
  },
387
388
  unlock() {
388
- typeof document > "u" || (de = Math.max(0, de - 1), de === 0 && (document.body.style.overflow = fe));
389
+ typeof document > "u" || (G = Math.max(0, G - 1), G === 0 && (document.body.style.overflow = ue));
389
390
  }
390
- }, me = ({ active: e, enabled: t = !0 }) => {
391
+ }, fe = ({ active: e, enabled: t = !0 }) => {
391
392
  f(() => {
392
- if (!(!e || !t)) return pe.lock(), () => {
393
- pe.unlock();
393
+ if (!(!e || !t)) return de.lock(), () => {
394
+ de.unlock();
394
395
  };
395
396
  }, [e, t]);
396
- }, he = () => typeof document > "u" ? null : document.body, ge = ({ container: e } = {}) => {
397
+ }, pe = () => typeof document > "u" ? null : document.body, me = ({ container: e } = {}) => {
397
398
  let [t, n] = _(!1);
398
399
  return f(() => {
399
400
  n(!0);
400
- }, []), t ? e ?? document.getElementById("overlay-root") ?? he() : null;
401
- }, _e = ({ value: e, defaultValue: t, onChange: n }) => {
401
+ }, []), t ? e ?? document.getElementById("overlay-root") ?? pe() : null;
402
+ }, K = ({ value: e, defaultValue: t, onChange: n }) => {
402
403
  let [r, i] = _(t), a = e !== void 0;
403
404
  return [a ? e : r, u((e) => {
404
405
  a || i(e), n?.(e);
405
406
  }, [a, n])];
406
- }, ve = ({ activeIndex: e, setActiveIndex: t, items: n, isOpen: r, onOpen: i, onSelect: a, onClose: o, getItemText: s, loop: c = !0 }) => {
407
+ }, he = ({ activeIndex: e, setActiveIndex: t, items: n, isOpen: r, onOpen: i, onSelect: a, onClose: o, getItemText: s, loop: c = !0 }) => {
407
408
  let l = g({
408
409
  value: "",
409
410
  timeoutId: void 0
@@ -486,7 +487,7 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
486
487
  m,
487
488
  h
488
489
  ]) };
489
- }, ye = ({ items: e, open: t, defaultOpen: n = !1, disabled: r = !1, onOpenChange: i, onSelect: a, getItemValue: o, getItemText: s, loop: c = !0 }) => {
490
+ }, ge = ({ items: e, open: t, defaultOpen: n = !1, disabled: r = !1, onOpenChange: i, onSelect: a, getItemValue: o, getItemText: s, loop: c = !0 }) => {
490
491
  let [l, d] = _(n), [p, m] = _(-1), h = t !== void 0, g = t ?? l, v = u(() => e.findIndex((e) => !e.disabled), [e]), y = u(() => {
491
492
  for (let t = e.length - 1; t >= 0; t--) if (!e[t]?.disabled) return t;
492
493
  return -1;
@@ -541,7 +542,7 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
541
542
  p,
542
543
  e,
543
544
  T
544
- ]), { onKeyDown: D } = ve({
545
+ ]), { onKeyDown: D } = he({
545
546
  activeIndex: p,
546
547
  setActiveIndex: m,
547
548
  items: e,
@@ -570,8 +571,8 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
570
571
  getFirstEnabledIndex: v,
571
572
  getLastEnabledIndex: y
572
573
  };
573
- }, be = ({ open: e, defaultOpen: t = !1, onOpenChange: n, closeOnEscape: r, closeOnOutsidePress: i }) => {
574
- let a = p(), o = p(), s = p(), [c, l] = _e({
574
+ }, _e = ({ open: e, defaultOpen: t = !1, onOpenChange: n, closeOnEscape: r, closeOnOutsidePress: i }) => {
575
+ let a = p(), o = p(), s = p(), [c, l] = K({
575
576
  value: e,
576
577
  defaultValue: t,
577
578
  onChange: n
@@ -589,12 +590,12 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
589
590
  titleId: o,
590
591
  descriptionId: s
591
592
  };
592
- }, xe = ({ 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 [m, g] = _e({
593
+ }, ve = ({ 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 }) => {
594
+ let [m, g] = K({
594
595
  value: e,
595
596
  defaultValue: t ?? (a ? [] : ""),
596
597
  onChange: n ?? r
597
- }), [v, y] = _e({
598
+ }), [v, y] = K({
598
599
  value: l,
599
600
  defaultValue: d,
600
601
  onChange: p
@@ -663,7 +664,7 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
663
664
  b,
664
665
  i,
665
666
  k
666
- ]), { onKeyDown: j } = ve({
667
+ ]), { onKeyDown: j } = he({
667
668
  activeIndex: b,
668
669
  setActiveIndex: x,
669
670
  items: i,
@@ -693,8 +694,8 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
693
694
  selectActiveOption: A,
694
695
  onKeyDown: j
695
696
  };
696
- }, U = ({ value: e, defaultValue: t = "", onValueChange: n }) => {
697
- let [r, i] = _e({
697
+ }, ye = ({ value: e, defaultValue: t = "", onValueChange: n }) => {
698
+ let [r, i] = K({
698
699
  value: e,
699
700
  defaultValue: t,
700
701
  onChange: n
@@ -703,15 +704,15 @@ var te = L("checkboxItem", "Dropdown.CheckboxItem"), ne = ({ active: e, enabled:
703
704
  value: r,
704
705
  setValue: i
705
706
  };
706
- }, Se = s(null), Ce = ({ children: e, container: t = null }) => /* @__PURE__ */ n(Se.Provider, {
707
+ }, be = s(null), xe = ({ children: e, container: t = null }) => /* @__PURE__ */ n(be.Provider, {
707
708
  value: t,
708
709
  children: e
709
- }), we = ({ children: e, container: t }) => {
710
- let n = d(Se), r = ge({ container: t ?? n });
710
+ }), Se = ({ children: e, container: t }) => {
711
+ let n = d(be), r = me({ container: t ?? n });
711
712
  return r ? v(e, r) : null;
712
713
  };
713
- we.__velliraPortal = !0, we.displayName = "Portal", Ce.displayName = "PortalProvider";
714
- var Te = {
714
+ Se.__velliraPortal = !0, Se.displayName = "Portal", xe.displayName = "PortalProvider";
715
+ var Ce = {
715
716
  dropdown: "_dropdown_m7rnq_1",
716
717
  "dropdown-in": "_dropdown-in_m7rnq_1",
717
718
  primary: "_primary_m7rnq_42",
@@ -723,31 +724,31 @@ var Te = {
723
724
  searchWrap: "_searchWrap_m7rnq_165",
724
725
  search: "_search_m7rnq_165",
725
726
  "dropdown-sheet-in": "_dropdown-sheet-in_m7rnq_1"
726
- }, Ee = L("empty", "Dropdown.Empty"), De = ({ children: e }) => /* @__PURE__ */ n("li", {
727
+ }, we = R("empty", "Dropdown.Empty"), Te = ({ children: e }) => /* @__PURE__ */ n("li", {
727
728
  role: "presentation",
728
- className: Te.empty,
729
+ className: Ce.empty,
729
730
  children: e ?? "No actions available"
730
731
  });
731
- De.displayName = "DropdownEmptySurface";
732
+ Te.displayName = "DropdownEmptySurface";
732
733
  //#endregion
733
734
  //#region src/components/Dropdown/Group/DropdownGroup.tsx
734
- var Oe = L("group", "Dropdown.Group"), ke = () => null;
735
- ke.displayName = "DropdownGroupSurface";
735
+ var Ee = R("group", "Dropdown.Group"), De = () => null;
736
+ De.displayName = "DropdownGroupSurface";
736
737
  //#endregion
737
738
  //#region src/components/Dropdown/internal/DropdownContext.tsx
738
- var Ae = s(null), je = s(null), Me = s(null), Ne = Ae.Provider, Pe = je.Provider;
739
- Me.Provider;
740
- function Fe() {
741
- let e = d(Ae);
739
+ var Oe = s(null), ke = s(null), Ae = s(null), je = Oe.Provider, Me = ke.Provider;
740
+ Ae.Provider;
741
+ function Ne() {
742
+ let e = d(Oe);
742
743
  if (!e) throw Error("Dropdown compound components must be used inside Dropdown.");
743
744
  return e;
744
745
  }
745
- function Ie() {
746
- let e = d(je);
746
+ function Pe() {
747
+ let e = d(ke);
747
748
  if (!e) throw Error("Dropdown.Trigger must be used inside Dropdown.");
748
749
  return e;
749
750
  }
750
- var W = {
751
+ var q = {
751
752
  item: "_item_xmygj_1",
752
753
  disabled: "_disabled_xmygj_35",
753
754
  active: "_active_xmygj_53",
@@ -772,8 +773,8 @@ var W = {
772
773
  "dropdown-sub-in": "_dropdown-sub-in_xmygj_1",
773
774
  subLabel: "_subLabel_xmygj_300",
774
775
  subSeparator: "_subSeparator_xmygj_308"
775
- }, Le = L("item", "Dropdown.Item"), Re = ({ item: e, itemIndex: i }) => {
776
- let a = Fe(), o = g(void 0), [s, c] = _(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, h = a.loading || e.disabled, v = e.props, b = z(v.children), S = b.icon ?? v.icon, C = b.description ?? ("description" in v ? v.description : void 0), w = b.badge ?? ("badge" in v ? v.badge : void 0), T = b.shortcut ?? v.shortcut, E = b.content.length ? b.content : v.children, D = "color" in v ? v.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", N = 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) => {
776
+ }, Fe = R("item", "Dropdown.Item"), Ie = ({ item: e, itemIndex: i }) => {
777
+ let a = Ne(), o = g(void 0), [s, c] = _(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, h = a.loading || e.disabled, v = e.props, b = B(v.children), S = b.icon ?? v.icon, C = b.description ?? ("description" in v ? v.description : void 0), w = b.badge ?? ("badge" in v ? v.badge : void 0), T = b.shortcut ?? v.shortcut, E = b.content.length ? b.content : v.children, D = "color" in v ? v.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", N = e.type === "item" && k === "_blank" && !e.props.rel ? "noreferrer noopener" : e.type === "item" ? e.props.rel : void 0, P = O ? "a" : "li", I = d || f, L = (t) => {
777
778
  if (h) {
778
779
  t.preventDefault();
779
780
  return;
@@ -782,15 +783,15 @@ var W = {
782
783
  let t = !m;
783
784
  c(t), e.props.onCheckedChange?.(t);
784
785
  }
785
- a.selectItem(e, ze(t));
786
+ a.selectItem(e, Le(t));
786
787
  };
787
- return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ r(F, {
788
+ return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ r(P, {
788
789
  id: j,
789
790
  role: M,
790
- href: F === "a" && !h ? O : void 0,
791
- target: F === "a" && !h ? k : void 0,
792
- rel: F === "a" ? N : void 0,
793
- download: F === "a" && !h ? A : void 0,
791
+ href: P === "a" && !h ? O : void 0,
792
+ target: P === "a" && !h ? k : void 0,
793
+ rel: P === "a" ? N : void 0,
794
+ download: P === "a" && !h ? A : void 0,
794
795
  tabIndex: h ? -1 : 0,
795
796
  "aria-disabled": h || void 0,
796
797
  "aria-checked": d || f ? m : void 0,
@@ -798,11 +799,11 @@ var W = {
798
799
  "aria-expanded": p ? u : void 0,
799
800
  "data-active": l || void 0,
800
801
  "data-state": u ? "open" : void 0,
801
- className: P(W.item, W[a.size], {
802
- [W.active]: l,
803
- [W.disabled]: h,
804
- [W.checked]: m
805
- }, D && D !== "default" ? W[D] : void 0, v.className),
802
+ className: F(q.item, q[a.size], {
803
+ [q.active]: l,
804
+ [q.disabled]: h,
805
+ [q.checked]: m
806
+ }, D && D !== "default" ? q[D] : void 0, v.className),
806
807
  onClick: L,
807
808
  onMouseEnter: () => {
808
809
  h || (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)));
@@ -812,58 +813,58 @@ var W = {
812
813
  },
813
814
  children: [
814
815
  S && /* @__PURE__ */ n("span", {
815
- className: W.itemIcon,
816
+ className: q.itemIcon,
816
817
  children: S
817
818
  }),
818
819
  /* @__PURE__ */ r("span", {
819
- className: W.itemText,
820
+ className: q.itemText,
820
821
  children: [/* @__PURE__ */ n("span", {
821
- className: W.itemLabel,
822
+ className: q.itemLabel,
822
823
  children: E
823
824
  }), C && /* @__PURE__ */ n("span", {
824
- className: W.itemDescription,
825
+ className: q.itemDescription,
825
826
  children: C
826
827
  })]
827
828
  }),
828
829
  w && /* @__PURE__ */ n("span", {
829
- className: W.itemBadge,
830
+ className: q.itemBadge,
830
831
  children: w
831
832
  }),
832
833
  T && /* @__PURE__ */ n("span", {
833
- className: W.itemShortcut,
834
+ className: q.itemShortcut,
834
835
  children: T
835
836
  }),
836
837
  I && /* @__PURE__ */ n("span", {
837
- className: W.indicator,
838
+ className: q.indicator,
838
839
  "aria-hidden": "true",
839
840
  children: m ? /* @__PURE__ */ n(y, {}) : null
840
841
  }),
841
842
  p && /* @__PURE__ */ n("span", {
842
- className: W.itemShortcut,
843
+ className: q.itemShortcut,
843
844
  "aria-hidden": "true",
844
845
  children: /* @__PURE__ */ n(x, {})
845
846
  })
846
847
  ]
847
848
  }), p && u && e.subEntries.length > 0 && /* @__PURE__ */ n("ul", {
848
849
  role: "menu",
849
- className: W.subContent,
850
+ className: q.subContent,
850
851
  onMouseEnter: () => a.setOpenSubId(e.id),
851
852
  children: e.subEntries.map((e) => e.type === "label" ? /* @__PURE__ */ n("li", {
852
853
  role: "presentation",
853
- className: W.subLabel,
854
+ className: q.subLabel,
854
855
  children: e.props.children
855
856
  }, e.id) : e.type === "separator" ? /* @__PURE__ */ n("li", {
856
857
  role: "separator",
857
- className: W.subSeparator,
858
+ className: q.subSeparator,
858
859
  "aria-hidden": "true"
859
- }, e.id) : e.type === "item" ? /* @__PURE__ */ n(Be, {
860
+ }, e.id) : e.type === "item" ? /* @__PURE__ */ n(Re, {
860
861
  item: e.item,
861
862
  id: `${j}-${e.itemIndex}`
862
863
  }, e.item.id) : null)
863
864
  })] });
864
865
  };
865
- Re.displayName = "DropdownItemRow";
866
- function ze(e) {
866
+ Ie.displayName = "DropdownItemRow";
867
+ function Le(e) {
867
868
  let t = !1;
868
869
  return {
869
870
  originalEvent: e,
@@ -875,8 +876,8 @@ function ze(e) {
875
876
  }
876
877
  };
877
878
  }
878
- function Be({ id: e, item: t }) {
879
- let i = Fe(), [a, o] = _(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 = z(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, g = d.content.length ? d.content : u.children, v = "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) => {
879
+ function Re({ id: e, item: t }) {
880
+ let i = Ne(), [a, o] = _(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 = B(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, g = d.content.length ? d.content : u.children, v = "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) => {
880
881
  if (b) {
881
882
  e.preventDefault();
882
883
  return;
@@ -885,7 +886,7 @@ function Be({ id: e, item: t }) {
885
886
  let e = !l;
886
887
  o(e), t.props.onCheckedChange?.(e);
887
888
  }
888
- i.selectItem(t, ze(e));
889
+ i.selectItem(t, Le(e));
889
890
  };
890
891
  return /* @__PURE__ */ r(E, {
891
892
  id: e,
@@ -897,74 +898,74 @@ function Be({ id: e, item: t }) {
897
898
  tabIndex: b ? -1 : 0,
898
899
  "aria-disabled": b || void 0,
899
900
  "aria-checked": s || c ? l : void 0,
900
- className: P(W.item, W[i.size], {
901
- [W.disabled]: b,
902
- [W.checked]: l
903
- }, v && v !== "default" ? W[v] : void 0),
901
+ className: F(q.item, q[i.size], {
902
+ [q.disabled]: b,
903
+ [q.checked]: l
904
+ }, v && v !== "default" ? q[v] : void 0),
904
905
  onClick: O,
905
906
  children: [
906
907
  D && /* @__PURE__ */ n("span", {
907
- className: W.indicator,
908
+ className: q.indicator,
908
909
  "aria-hidden": "true",
909
910
  children: l ? /* @__PURE__ */ n(y, {}) : null
910
911
  }),
911
912
  f && /* @__PURE__ */ n("span", {
912
- className: W.itemIcon,
913
+ className: q.itemIcon,
913
914
  children: f
914
915
  }),
915
916
  /* @__PURE__ */ r("span", {
916
- className: W.itemText,
917
+ className: q.itemText,
917
918
  children: [/* @__PURE__ */ n("span", {
918
- className: W.itemLabel,
919
+ className: q.itemLabel,
919
920
  children: g
920
921
  }), p && /* @__PURE__ */ n("span", {
921
- className: W.itemDescription,
922
+ className: q.itemDescription,
922
923
  children: p
923
924
  })]
924
925
  }),
925
926
  m && /* @__PURE__ */ n("span", {
926
- className: W.itemBadge,
927
+ className: q.itemBadge,
927
928
  children: m
928
929
  }),
929
930
  h && /* @__PURE__ */ n("span", {
930
- className: W.itemShortcut,
931
+ className: q.itemShortcut,
931
932
  children: h
932
933
  })
933
934
  ]
934
935
  });
935
936
  }
936
- var Ve = { group: "_group_aviwv_1" }, G = L("label", "Dropdown.Label"), K = ({ children: e, className: t }) => /* @__PURE__ */ n("li", {
937
+ var ze = { group: "_group_aviwv_1" }, Be = R("label", "Dropdown.Label"), Ve = ({ children: e, className: t }) => /* @__PURE__ */ n("li", {
937
938
  role: "presentation",
938
- className: P(Ve.group, t),
939
+ className: F(ze.group, t),
939
940
  children: e
940
941
  });
941
- K.displayName = "DropdownLabelSurface";
942
+ Ve.displayName = "DropdownLabelSurface";
942
943
  //#endregion
943
944
  //#region src/components/Dropdown/Loading/DropdownLoading.tsx
944
- var He = L("loading", "Dropdown.Loading"), Ue = ({ children: e }) => /* @__PURE__ */ n("li", {
945
+ var He = R("loading", "Dropdown.Loading"), Ue = ({ children: e }) => /* @__PURE__ */ n("li", {
945
946
  role: "presentation",
946
947
  "aria-live": "polite",
947
- className: Te.empty,
948
+ className: Ce.empty,
948
949
  children: e ?? "Loading actions..."
949
950
  });
950
951
  Ue.displayName = "DropdownLoadingSurface";
951
- var We = { separator: "_separator_1v11r_1" }, Ge = L("separator", "Dropdown.Separator"), Ke = ({ className: e }) => /* @__PURE__ */ n("li", {
952
+ var We = { separator: "_separator_1v11r_1" }, Ge = R("separator", "Dropdown.Separator"), Ke = ({ className: e }) => /* @__PURE__ */ n("li", {
952
953
  role: "separator",
953
- className: P(We.separator, e),
954
+ className: F(We.separator, e),
954
955
  "aria-hidden": "true"
955
956
  });
956
957
  Ke.displayName = "DropdownSeparatorSurface";
957
958
  //#endregion
958
959
  //#region src/components/Dropdown/Content/DropdownContent.tsx
959
960
  var qe = ({ className: e }) => {
960
- let t = Fe(), { contentReadyToFocus: i, isOpen: o, setContentRef: s } = t, c = g(null), l = u((e) => {
961
+ let t = Ne(), { contentReadyToFocus: i, isOpen: o, setContentRef: s } = t, c = g(null), l = u((e) => {
961
962
  c.current = e, s(e);
962
963
  }, [s]);
963
964
  if (f(() => {
964
965
  let e = c.current;
965
966
  !o || !i || !e || e.contains(document.activeElement) || e.focus({ preventScroll: !0 });
966
967
  }, [i, o]), !o) return null;
967
- let d = P(Te.dropdown, Te[t.color], t.contentProps?.className, e), p = /* @__PURE__ */ r("ul", {
968
+ let d = F(Ce.dropdown, Ce[t.color], t.contentProps?.className, e), p = /* @__PURE__ */ r("ul", {
968
969
  ref: l,
969
970
  id: t.contentId,
970
971
  role: "menu",
@@ -981,9 +982,9 @@ var qe = ({ className: e }) => {
981
982
  "data-color": t.color,
982
983
  children: [t.searchable && /* @__PURE__ */ r("li", {
983
984
  role: "presentation",
984
- className: P(Te.searchWrap, t.searchProps?.className),
985
+ className: F(Ce.searchWrap, t.searchProps?.className),
985
986
  children: [/* @__PURE__ */ n(C, { "aria-hidden": "true" }), /* @__PURE__ */ n("input", {
986
- className: Te.search,
987
+ className: Ce.search,
987
988
  value: t.searchValue,
988
989
  placeholder: t.searchPlaceholder,
989
990
  "aria-label": t.searchProps?.["aria-label"] ?? t.searchPlaceholder,
@@ -993,17 +994,17 @@ var qe = ({ className: e }) => {
993
994
  e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Enter" || e.key === "Escape" || e.stopPropagation();
994
995
  }
995
996
  })]
996
- }), t.loading ? /* @__PURE__ */ n(Ue, { children: t.loadingText }) : t.searchable && t.items.length === 0 ? /* @__PURE__ */ n(De, { children: t.empty }) : 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(Ke, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ n(De, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ n(Ue, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ n(I, { ...e.props }, e.id) : /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(Re, {
997
+ }), t.loading ? /* @__PURE__ */ n(Ue, { children: t.loadingText }) : t.searchable && t.items.length === 0 ? /* @__PURE__ */ n(Te, { children: t.empty }) : t.entries.length ? t.entries.map((e) => e.type === "groupStart" ? /* @__PURE__ */ n(De, {}, e.id) : e.type === "groupEnd" ? null : e.type === "label" ? /* @__PURE__ */ n(Ve, { ...e.props }, e.id) : e.type === "separator" ? /* @__PURE__ */ n(Ke, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ n(Te, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ n(Ue, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ n(L, { ...e.props }, e.id) : /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(Ie, {
997
998
  item: e.item,
998
999
  itemIndex: e.itemIndex
999
- }) }, e.item.id)) : /* @__PURE__ */ n(De, {})]
1000
+ }) }, e.item.id)) : /* @__PURE__ */ n(Te, {})]
1000
1001
  });
1001
- return t.portal ? /* @__PURE__ */ n(we, { children: p }) : p;
1002
+ return t.portal ? /* @__PURE__ */ n(Se, { children: p }) : p;
1002
1003
  };
1003
1004
  qe.__velliraDropdownPart = "content", qe.displayName = "Dropdown.Content";
1004
1005
  //#endregion
1005
1006
  //#region src/components/Dropdown/ItemBadge/DropdownItemBadge.tsx
1006
- var Je = L("itemBadge", "Dropdown.ItemBadge"), Ye = L("itemDescription", "Dropdown.ItemDescription"), Xe = L("itemIcon", "Dropdown.ItemIcon"), Ze = L("itemShortcut", "Dropdown.ItemShortcut"), Qe = L("radioGroup", "Dropdown.RadioGroup"), $e = L("radioItem", "Dropdown.RadioItem"), et = (e) => {
1007
+ var Je = R("itemBadge", "Dropdown.ItemBadge"), Ye = R("itemDescription", "Dropdown.ItemDescription"), Xe = R("itemIcon", "Dropdown.ItemIcon"), Ze = R("itemShortcut", "Dropdown.ItemShortcut"), Qe = R("radioGroup", "Dropdown.RadioGroup"), $e = R("radioItem", "Dropdown.RadioItem"), et = (e) => {
1007
1008
  let [t, n] = _(() => typeof window > "u" || typeof window.matchMedia != "function" || !e ? !1 : window.matchMedia(`(max-width: ${e}px)`).matches);
1008
1009
  return f(() => {
1009
1010
  if (typeof window > "u" || typeof window.matchMedia != "function" || !e) return;
@@ -1077,37 +1078,37 @@ function rt(...e) {
1077
1078
  function it(e) {
1078
1079
  return typeof e == "number" ? `${e}px` : e;
1079
1080
  }
1080
- var at = { wrapper: "_wrapper_14ue8_1" }, ot = ({ children: e, open: t, defaultOpen: i = !1, onOpenChange: a, size: o = "md", color: s = "primary", placement: c = "bottom-start", strategy: l, offset: d = 2, collisionPadding: m = 8, matchTriggerWidth: v = !1, minWidth: y, maxWidth: b, portal: x = !0, avoidCollisions: S = !0, modal: C = !1, closeOnSelect: w = !0, loop: T = !0, disabled: E = !1, loading: D = !1, loadingText: O = "Loading actions...", searchable: k = !1, command: A = !1, searchValue: j, defaultSearchValue: M = "", searchPlaceholder: N, onSearch: F, empty: I, className: L }) => {
1081
- let z = p(), ee = `${z}-trigger`, B = `${z}-menu`, te = g(null), ne = g(null), [re, ie] = _(), [ae, oe] = _({}), [V, se] = _(M), le = j ?? V, H = h(() => R(e), [e]), de = H.content?.props.command ?? !1, fe = k || A || de || !!H.search, pe = h(() => ct(H.items), [H.items]), he = h(() => H.items.map((e) => ({
1081
+ var at = { wrapper: "_wrapper_14ue8_1" }, ot = ({ children: e, open: t, defaultOpen: i = !1, onOpenChange: a, size: o = "md", color: s = "primary", placement: c = "bottom-start", strategy: l, offset: d = 2, collisionPadding: m = 8, matchTriggerWidth: v = !1, minWidth: y, maxWidth: b, portal: x = !0, avoidCollisions: S = !0, modal: C = !1, closeOnSelect: w = !0, loop: T = !0, disabled: E = !1, loading: D = !1, loadingText: O = "Loading actions...", searchable: k = !1, command: A = !1, searchValue: j, defaultSearchValue: M = "", searchPlaceholder: N, onSearch: P, empty: I, className: L }) => {
1082
+ let R = p(), B = `${R}-trigger`, V = `${R}-menu`, H = g(null), ee = g(null), [te, ne] = _(), [re, ie] = _({}), [U, ae] = _(M), oe = j ?? U, W = h(() => z(e), [e]), ce = W.content?.props.command ?? !1, G = k || A || ce || !!W.search, ue = h(() => ct(W.items), [W.items]), de = h(() => W.items.map((e) => ({
1082
1083
  disabled: e.disabled,
1083
1084
  label: e.label
1084
- })), [H.items]), ge = h(() => !fe || !le.trim() ? H : lt(H, le), [
1085
- fe,
1086
- H,
1087
- le
1088
- ]), _e = h(() => ge.items.map((e) => ({
1085
+ })), [W.items]), pe = h(() => !G || !oe.trim() ? W : lt(W, oe), [
1086
+ G,
1087
+ W,
1088
+ oe
1089
+ ]), me = h(() => pe.items.map((e) => ({
1089
1090
  disabled: e.disabled,
1090
1091
  label: e.label
1091
- })), [ge.items]);
1092
+ })), [pe.items]);
1092
1093
  f(() => {
1093
- oe((e) => {
1094
+ ie((e) => {
1094
1095
  let t = { ...e };
1095
- return pe.forEach((e) => {
1096
+ return ue.forEach((e) => {
1096
1097
  e.type === "radio" && t[e.groupId] === void 0 && (t[e.groupId] = e.groupProps?.value ?? e.groupProps?.defaultValue);
1097
1098
  }), t;
1098
1099
  });
1099
- }, [pe]);
1100
- let { activeIndex: ve, setActiveIndex: be, isOpen: xe, closeDropdown: U, toggleDropdown: Se, onKeyDown: Ce } = ye({
1101
- items: fe ? _e : he,
1100
+ }, [ue]);
1101
+ let { activeIndex: K, setActiveIndex: he, isOpen: _e, closeDropdown: ve, toggleDropdown: ye, onKeyDown: be } = ge({
1102
+ items: G ? me : de,
1102
1103
  open: t,
1103
1104
  defaultOpen: i,
1104
1105
  disabled: E,
1105
1106
  onOpenChange: a,
1106
- getItemValue: (e, t) => (fe ? ge.items : H.items)[t]?.id ?? "",
1107
+ getItemValue: (e, t) => (G ? pe.items : W.items)[t]?.id ?? "",
1107
1108
  getItemText: (e) => e.label,
1108
1109
  loop: T
1109
- }), { floatingStyles: we, isMobileSheet: Te, isPositioned: Ee, setRef: De, setFloatingRef: Oe } = tt({
1110
- open: xe,
1110
+ }), { floatingStyles: xe, isMobileSheet: Se, isPositioned: Ce, setRef: we, setFloatingRef: Te } = tt({
1111
+ open: _e,
1111
1112
  placement: c,
1112
1113
  strategy: l ?? (x ? "fixed" : "absolute"),
1113
1114
  matchTriggerWidth: v,
@@ -1115,137 +1116,137 @@ var at = { wrapper: "_wrapper_14ue8_1" }, ot = ({ children: e, open: t, defaultO
1115
1116
  offset: d,
1116
1117
  collisionPadding: m,
1117
1118
  mobileSheetBreakpoint: 640
1118
- }), ke = u((e) => {
1119
- j === void 0 && se(e), F?.(e), be(0);
1119
+ }), Ee = u((e) => {
1120
+ j === void 0 && ae(e), P?.(e), he(0);
1120
1121
  }, [
1121
- F,
1122
+ P,
1122
1123
  j,
1123
- be
1124
- ]), { isTopOverlay: Ae } = ue({
1125
- active: xe,
1126
- id: B
1124
+ he
1125
+ ]), { isTopOverlay: De } = le({
1126
+ active: _e,
1127
+ id: V
1127
1128
  });
1128
- me({
1129
- active: xe,
1129
+ fe({
1130
+ active: _e,
1130
1131
  enabled: C
1131
1132
  });
1132
- let je = u(() => {
1133
- U(), te.current?.focus();
1134
- }, [U]), Me = u((e, t) => {
1133
+ let Oe = u(() => {
1134
+ ve(), H.current?.focus();
1135
+ }, [ve]), ke = u((e, t) => {
1135
1136
  if (e.disabled || D) return;
1136
1137
  if (e.type === "subTrigger") {
1137
- ie(e.id);
1138
+ ne(e.id);
1138
1139
  return;
1139
1140
  }
1140
- e.type === "item" && e.props.onSelect?.(t), e.type === "radio" && (oe((t) => ({
1141
+ e.type === "item" && e.props.onSelect?.(t), e.type === "radio" && (ie((t) => ({
1141
1142
  ...t,
1142
1143
  [e.groupId]: e.props.value
1143
1144
  })), e.groupProps?.onValueChange?.(e.props.value));
1144
1145
  let n = e.props.closeOnSelect ?? (e.type !== "checkbox" && w);
1145
- !t.defaultPrevented && n && je();
1146
+ !t.defaultPrevented && n && Oe();
1146
1147
  }, [
1147
- je,
1148
+ Oe,
1148
1149
  w,
1149
1150
  D
1150
- ]), Fe = u((e) => {
1151
- let t = ge.items[ve];
1151
+ ]), Ae = u((e) => {
1152
+ let t = pe.items[K];
1152
1153
  if (e.key === "ArrowRight" && t?.type === "subTrigger") {
1153
- e.preventDefault(), ie(t.id);
1154
+ e.preventDefault(), ne(t.id);
1154
1155
  return;
1155
1156
  }
1156
- if (e.key === "ArrowLeft" && re) {
1157
- e.preventDefault(), ie(void 0);
1157
+ if (e.key === "ArrowLeft" && te) {
1158
+ e.preventDefault(), ne(void 0);
1158
1159
  return;
1159
1160
  }
1160
1161
  if ((e.key === "Enter" || e.key === " ") && t) {
1161
1162
  e.preventDefault();
1162
1163
  let n = st(e);
1163
- Me(t, n);
1164
+ ke(t, n);
1164
1165
  return;
1165
1166
  }
1166
- Ce(e), e.key === "Escape" && te.current?.focus();
1167
+ be(e), e.key === "Escape" && H.current?.focus();
1167
1168
  }, [
1168
- ve,
1169
- ge.items,
1170
- Ce,
1171
- re,
1172
- Me
1173
- ]), Ie = u((e) => {
1174
- e.preventDefault(), Se();
1175
- }, [Se]), W = u((e) => {
1176
- te.current = e, De(e);
1177
- }, [De]), Le = u((e) => {
1178
- ne.current = e, Oe(e), Te && e?.focus({ preventScroll: !0 });
1179
- }, [Te, Oe]);
1180
- ce({
1181
- active: xe,
1169
+ K,
1170
+ pe.items,
1171
+ be,
1172
+ te,
1173
+ ke
1174
+ ]), Ne = u((e) => {
1175
+ e.preventDefault(), ye();
1176
+ }, [ye]), Pe = u((e) => {
1177
+ H.current = e, we(e);
1178
+ }, [we]), q = u((e) => {
1179
+ ee.current = e, Te(e), Se && e?.focus({ preventScroll: !0 });
1180
+ }, [Se, Te]);
1181
+ se({
1182
+ active: _e,
1182
1183
  closeOnEscape: !0,
1183
1184
  closeOnOutsidePress: !0,
1184
- contentRef: ne,
1185
- ignoreRefs: [te],
1186
- isTopOverlay: Ae,
1187
- requestClose: U
1185
+ contentRef: ee,
1186
+ ignoreRefs: [H],
1187
+ isTopOverlay: De,
1188
+ requestClose: ve
1188
1189
  });
1189
- let Re = {
1190
- ...we,
1190
+ let Fe = {
1191
+ ...xe,
1191
1192
  minWidth: it(y),
1192
1193
  maxWidth: it(b)
1193
1194
  };
1194
- return /* @__PURE__ */ n(Pe, {
1195
+ return /* @__PURE__ */ n(Me, {
1195
1196
  value: {
1196
1197
  disabled: E,
1197
- isOpen: xe,
1198
- contentId: B,
1199
- triggerId: ee,
1200
- setTriggerRef: W,
1201
- onClick: Ie,
1202
- onKeyDown: Fe
1198
+ isOpen: _e,
1199
+ contentId: V,
1200
+ triggerId: B,
1201
+ setTriggerRef: Pe,
1202
+ onClick: Ne,
1203
+ onKeyDown: Ae
1203
1204
  },
1204
- children: /* @__PURE__ */ n(Ne, {
1205
+ children: /* @__PURE__ */ n(je, {
1205
1206
  value: {
1206
- activeIndex: ve,
1207
+ activeIndex: K,
1207
1208
  closeOnSelect: w,
1208
1209
  color: s,
1209
- contentReadyToFocus: Te || Ee,
1210
- contentId: B,
1211
- contentProps: H.content?.props,
1210
+ contentReadyToFocus: Se || Ce,
1211
+ contentId: V,
1212
+ contentProps: W.content?.props,
1212
1213
  disabled: E,
1213
- entries: ge.entries,
1214
- getItemId: (e) => `${B}-item-${e}`,
1215
- isOpen: xe,
1216
- items: ge.items,
1214
+ entries: pe.entries,
1215
+ getItemId: (e) => `${V}-item-${e}`,
1216
+ isOpen: _e,
1217
+ items: pe.items,
1217
1218
  loading: D,
1218
1219
  loadingText: O,
1219
1220
  empty: I,
1220
1221
  maxWidth: b,
1221
1222
  minWidth: y,
1222
- openSubId: re,
1223
- onKeyDown: Fe,
1224
- portal: !H.portal && x,
1225
- radioValues: ae,
1226
- searchPlaceholder: H.search?.props.placeholder ?? N ?? (A || de ? "Type a command..." : "Search actions..."),
1227
- searchProps: H.search?.props,
1228
- searchValue: le,
1229
- searchable: fe,
1230
- selectItem: Me,
1231
- setActiveIndex: be,
1232
- setContentRef: Le,
1233
- setOpenSubId: ie,
1223
+ openSubId: te,
1224
+ onKeyDown: Ae,
1225
+ portal: !W.portal && x,
1226
+ radioValues: re,
1227
+ searchPlaceholder: W.search?.props.placeholder ?? N ?? (A || ce ? "Type a command..." : "Search actions..."),
1228
+ searchProps: W.search?.props,
1229
+ searchValue: oe,
1230
+ searchable: G,
1231
+ selectItem: ke,
1232
+ setActiveIndex: he,
1233
+ setContentRef: q,
1234
+ setOpenSubId: ne,
1234
1235
  setRadioValue: (e, t) => {
1235
- oe((n) => ({
1236
+ ie((n) => ({
1236
1237
  ...n,
1237
1238
  [e]: t
1238
1239
  }));
1239
1240
  },
1240
- setSearchValue: ke,
1241
+ setSearchValue: Ee,
1241
1242
  size: o,
1242
- surfaceStyle: Re,
1243
- triggerId: ee
1243
+ surfaceStyle: Fe,
1244
+ triggerId: B
1244
1245
  },
1245
1246
  children: /* @__PURE__ */ r("div", {
1246
- className: P(at.wrapper, L),
1247
+ className: F(at.wrapper, L),
1247
1248
  "data-disabled": E || void 0,
1248
- children: [H.trigger ?? null, H.portal ?? H.content ?? /* @__PURE__ */ n(qe, {})]
1249
+ children: [W.trigger ?? null, W.portal ?? W.content ?? /* @__PURE__ */ n(qe, {})]
1249
1250
  })
1250
1251
  })
1251
1252
  });
@@ -1279,7 +1280,7 @@ function lt(e, t) {
1279
1280
  }
1280
1281
  //#endregion
1281
1282
  //#region src/components/Dropdown/Search/DropdownSearch.tsx
1282
- var ut = L("search", "Dropdown.Search"), dt = L("subContent", "Dropdown.SubContent"), ft = L("subTrigger", "Dropdown.SubTrigger"), pt = L("sub", "Dropdown.Sub"), mt = {
1283
+ var ut = R("search", "Dropdown.Search"), dt = R("subContent", "Dropdown.SubContent"), ft = R("subTrigger", "Dropdown.SubTrigger"), pt = R("sub", "Dropdown.Sub"), mt = {
1283
1284
  button: "_button_bb3ib_1",
1284
1285
  disabled: "_disabled_bb3ib_63",
1285
1286
  arrow: "_arrow_bb3ib_71",
@@ -1298,14 +1299,14 @@ var ut = L("search", "Dropdown.Search"), dt = L("subContent", "Dropdown.SubConte
1298
1299
  }, ht = (e) => /* @__PURE__ */ n(gt, { ...e });
1299
1300
  ht.__velliraDropdownPart = "trigger", ht.displayName = "Dropdown.Trigger";
1300
1301
  var gt = ({ children: e, asChild: t = !1, disabled: i, className: a }) => {
1301
- let s = Fe(), c = Ie(), u = t && l(e) ? e : void 0, d = s.disabled || i, f = {
1302
+ let s = Ne(), c = Pe(), u = t && l(e) ? e : void 0, d = s.disabled || i, f = {
1302
1303
  id: c.triggerId,
1303
1304
  ref: u ? rt(u.props.ref, c.setTriggerRef) : c.setTriggerRef,
1304
1305
  "aria-controls": c.isOpen ? c.contentId : void 0,
1305
1306
  "aria-disabled": d || void 0,
1306
1307
  "aria-expanded": c.isOpen,
1307
1308
  "aria-haspopup": "menu",
1308
- className: P(!u && mt.button, !u && mt[s.size], !u && mt[s.color], a),
1309
+ className: F(!u && mt.button, !u && mt[s.size], !u && mt[s.color], a),
1309
1310
  "data-state": c.isOpen ? "open" : "closed",
1310
1311
  disabled: d || void 0,
1311
1312
  onClick: nt(u?.props.onClick, c.onClick),
@@ -1313,7 +1314,7 @@ var gt = ({ children: e, asChild: t = !1, disabled: i, className: a }) => {
1313
1314
  };
1314
1315
  return u ? o(u, {
1315
1316
  ...f,
1316
- className: P(u.props.className, a)
1317
+ className: F(u.props.className, a)
1317
1318
  }) : /* @__PURE__ */ r("button", {
1318
1319
  type: "button",
1319
1320
  ...f,
@@ -1321,7 +1322,7 @@ var gt = ({ children: e, asChild: t = !1, disabled: i, className: a }) => {
1321
1322
  className: mt.label,
1322
1323
  children: e
1323
1324
  }), /* @__PURE__ */ n("span", {
1324
- className: P(mt.arrow, { [mt.open]: c.isOpen }),
1325
+ className: F(mt.arrow, { [mt.open]: c.isOpen }),
1325
1326
  "aria-hidden": "true",
1326
1327
  children: /* @__PURE__ */ n(b, {})
1327
1328
  })]
@@ -1334,12 +1335,12 @@ var _t = Object.assign(ot, {
1334
1335
  Trigger: ht,
1335
1336
  Content: qe,
1336
1337
  Search: ut,
1337
- Item: Le,
1338
- CheckboxItem: te,
1338
+ Item: Fe,
1339
+ CheckboxItem: ee,
1339
1340
  RadioGroup: Qe,
1340
1341
  RadioItem: $e,
1341
- Group: Oe,
1342
- Label: G,
1342
+ Group: Ee,
1343
+ Label: Be,
1343
1344
  Separator: Ge,
1344
1345
  Sub: pt,
1345
1346
  SubTrigger: ft,
@@ -1348,8 +1349,8 @@ var _t = Object.assign(ot, {
1348
1349
  ItemDescription: Ye,
1349
1350
  ItemBadge: Je,
1350
1351
  ItemShortcut: Ze,
1351
- Arrow: I,
1352
- Empty: Ee,
1352
+ Arrow: L,
1353
+ Empty: we,
1353
1354
  Loading: He
1354
1355
  });
1355
1356
  _t.displayName = "Dropdown";
@@ -1367,7 +1368,7 @@ var wt = {
1367
1368
  }, Tt = ({ children: e, className: t }) => {
1368
1369
  let r = xt();
1369
1370
  return /* @__PURE__ */ n("div", {
1370
- className: P(wt.modalBody, r?.scrollBehavior === "inside" && wt.inside, t),
1371
+ className: F(wt.modalBody, r?.scrollBehavior === "inside" && wt.inside, t),
1371
1372
  children: e
1372
1373
  });
1373
1374
  };
@@ -1401,12 +1402,12 @@ var Ot = {
1401
1402
  }, kt = ({ asChild: e = !1, children: t, className: r, "aria-label": i }) => {
1402
1403
  let a = bt(), s = e && l(t) ? t : void 0, c = {
1403
1404
  "aria-label": s ? i : i ?? "Close dialog",
1404
- className: P(!s && Ot.modalHeaderCloseButton, r),
1405
+ className: F(!s && Ot.modalHeaderCloseButton, r),
1405
1406
  onClick: Et(s?.props.onClick, a.requestClose)
1406
1407
  };
1407
1408
  return s ? o(s, {
1408
1409
  ...c,
1409
- className: P(s.props.className, r),
1410
+ className: F(s.props.className, r),
1410
1411
  "aria-label": i ?? s.props["aria-label"]
1411
1412
  }) : /* @__PURE__ */ n("button", {
1412
1413
  type: "button",
@@ -1418,7 +1419,7 @@ kt.displayName = "Modal.Close";
1418
1419
  //#endregion
1419
1420
  //#region src/components/Modal/internal/useModalDismiss.ts
1420
1421
  var At = ({ active: e, contentRef: t, closeOnEscape: n, closeOnOutsidePress: r, isTopModal: i, onEscapeKeyDown: a, onPointerDownOutside: o, onInteractOutside: s, requestClose: c }) => {
1421
- ce({
1422
+ se({
1422
1423
  active: e,
1423
1424
  closeOnOutsidePress: r,
1424
1425
  closeOnEscape: n,
@@ -1430,17 +1431,19 @@ var At = ({ active: e, contentRef: t, closeOnEscape: n, closeOnOutsidePress: r,
1430
1431
  requestClose: c
1431
1432
  });
1432
1433
  }, jt = {
1433
- content: "_content_15uod_1",
1434
- animated: "_animated_15uod_23",
1435
- center: "_center_15uod_30",
1436
- top: "_top_15uod_39",
1437
- sm: "_sm_15uod_48",
1438
- md: "_md_15uod_52",
1439
- lg: "_lg_15uod_56",
1440
- xl: "_xl_15uod_60",
1441
- full: "_full_15uod_64",
1442
- inside: "_inside_15uod_70",
1443
- outside: "_outside_15uod_74"
1434
+ content: "_content_1tnw8_1",
1435
+ animated: "_animated_1tnw8_24",
1436
+ "modal-content-open": "_modal-content-open_1tnw8_1",
1437
+ "modal-content-close": "_modal-content-close_1tnw8_1",
1438
+ center: "_center_1tnw8_35",
1439
+ top: "_top_1tnw8_51",
1440
+ sm: "_sm_1tnw8_91",
1441
+ md: "_md_1tnw8_95",
1442
+ lg: "_lg_1tnw8_99",
1443
+ xl: "_xl_1tnw8_103",
1444
+ full: "_full_1tnw8_107",
1445
+ inside: "_inside_1tnw8_113",
1446
+ outside: "_outside_1tnw8_117"
1444
1447
  }, Mt = ({ children: e, size: t = "md", placement: r = "center", scrollBehavior: i = "inside", animated: a = !0, forceMount: o = !1, ariaLabel: s, ariaLabelledBy: c, ariaDescribedBy: l, className: d, style: f }) => {
1445
1448
  let p = bt(), m = p.open, [h, g] = _(null), v = u((e) => {
1446
1449
  p.setContentRef(e), g(e);
@@ -1455,7 +1458,7 @@ var At = ({ active: e, contentRef: t, closeOnEscape: n, closeOnOutsidePress: r,
1455
1458
  onInteractOutside: p.onInteractOutside,
1456
1459
  onPointerDownOutside: p.onPointerDownOutside,
1457
1460
  requestClose: p.requestClose
1458
- }), se({
1461
+ }), oe({
1459
1462
  active: m,
1460
1463
  contentRef: p.contentRef,
1461
1464
  enabled: p.trapFocus,
@@ -1464,11 +1467,11 @@ var At = ({ active: e, contentRef: t, closeOnEscape: n, closeOnOutsidePress: r,
1464
1467
  onCloseAutoFocus: p.onCloseAutoFocus,
1465
1468
  onOpenAutoFocus: p.onOpenAutoFocus,
1466
1469
  restoreFocus: p.restoreFocus
1467
- }), ne({
1470
+ }), te({
1468
1471
  active: m,
1469
1472
  content: h,
1470
1473
  enabled: p.modal
1471
- }), !m && !o) return null;
1474
+ }), !p.shouldRender && !o) return null;
1472
1475
  let y = c ?? (s ? void 0 : p.titleId), b = l ?? p.descriptionId;
1473
1476
  return /* @__PURE__ */ n(Ct, {
1474
1477
  value: { scrollBehavior: i },
@@ -1476,21 +1479,25 @@ var At = ({ active: e, contentRef: t, closeOnEscape: n, closeOnOutsidePress: r,
1476
1479
  id: p.contentId,
1477
1480
  ref: Dt(v),
1478
1481
  tabIndex: -1,
1479
- className: P(jt.content, jt[t], jt[r], jt[i], a && jt.animated, d),
1480
- style: f,
1482
+ className: F(jt.content, jt[t], jt[r], jt[i], a && jt.animated, d),
1483
+ style: {
1484
+ ...p.animationStyle,
1485
+ ...f
1486
+ },
1481
1487
  role: p.role,
1482
1488
  "aria-modal": p.modal ? "true" : void 0,
1483
1489
  "aria-label": s,
1484
1490
  "aria-labelledby": y,
1485
1491
  "aria-describedby": b,
1486
1492
  "data-state": m ? "open" : "closed",
1493
+ "data-animation": p.animation,
1487
1494
  children: e
1488
1495
  })
1489
1496
  });
1490
1497
  };
1491
1498
  Mt.displayName = "ModalContent";
1492
1499
  var Nt = { modalFooter: "_modalFooter_sb1pn_1" }, Pt = ({ children: e, className: t }) => /* @__PURE__ */ n("div", {
1493
- className: P(Nt.modalFooter, t),
1500
+ className: F(Nt.modalFooter, t),
1494
1501
  children: e
1495
1502
  });
1496
1503
  Pt.displayName = "ModalFooter";
@@ -1506,8 +1513,15 @@ var Ft = ({ children: e }) => {
1506
1513
  };
1507
1514
  Ft.displayName = "Modal.Description";
1508
1515
  //#endregion
1516
+ //#region src/components/Modal/Header/ModalHeader.tsx
1517
+ var It = ({ children: e, className: t }) => /* @__PURE__ */ n("div", {
1518
+ className: F(Ot.modalHeader, t),
1519
+ children: e
1520
+ });
1521
+ It.displayName = "ModalHeader";
1522
+ //#endregion
1509
1523
  //#region src/components/Modal/Header/ModalTitle.tsx
1510
- var It = ({ children: e }) => {
1524
+ var Lt = ({ children: e }) => {
1511
1525
  let { setTitlePresent: t, titleId: r } = bt();
1512
1526
  return f(() => (t(!0), () => t(!1)), [t]), /* @__PURE__ */ n("h2", {
1513
1527
  id: r,
@@ -1515,131 +1529,166 @@ var It = ({ children: e }) => {
1515
1529
  children: e
1516
1530
  });
1517
1531
  };
1518
- It.displayName = "Modal.Title";
1519
- //#endregion
1520
- //#region src/components/Modal/Header/ModalHeader.tsx
1521
- var Lt = ({ children: e, title: t, description: i, showClose: a = !1, className: o }) => {
1522
- let s = t !== void 0 || i !== void 0;
1523
- return /* @__PURE__ */ r("div", {
1524
- className: P(Ot.modalHeader, o),
1525
- children: [s ? /* @__PURE__ */ r("div", {
1526
- className: Ot.modalHeaderText,
1527
- children: [t !== void 0 && /* @__PURE__ */ n(It, { children: t }), i !== void 0 && /* @__PURE__ */ n(Ft, { children: i })]
1528
- }) : e, a && /* @__PURE__ */ n(kt, {})]
1529
- });
1530
- };
1531
- Lt.displayName = "ModalHeader";
1532
+ Lt.displayName = "Modal.Title";
1532
1533
  var Rt = {
1533
- overlay: "_overlay_57sfi_1",
1534
- "overlay--open": "_overlay--open_57sfi_11",
1535
- "overlay--animated": "_overlay--animated_57sfi_18"
1534
+ overlay: "_overlay_d6wdf_1",
1535
+ "overlay--open": "_overlay--open_d6wdf_10",
1536
+ "overlay--animated": "_overlay--animated_d6wdf_15",
1537
+ "modal-overlay-open": "_modal-overlay-open_d6wdf_1",
1538
+ "modal-overlay-close": "_modal-overlay-close_d6wdf_1"
1536
1539
  }, zt = ({ className: e, animated: t = !0, forceMount: r = !1 }) => {
1537
- let { open: i } = bt();
1538
- return !i && !r ? null : /* @__PURE__ */ n("div", {
1539
- className: P(Rt.overlay, i && Rt["overlay--open"], t && Rt["overlay--animated"], e),
1540
- "data-state": i ? "open" : "closed",
1540
+ let { animation: i, animationStyle: a, open: o, shouldRender: s } = bt();
1541
+ return !s && !r ? null : /* @__PURE__ */ n("div", {
1542
+ className: F(Rt.overlay, o && Rt["overlay--open"], t && Rt["overlay--animated"], e),
1543
+ style: a,
1544
+ "data-state": o ? "open" : "closed",
1545
+ "data-animation": i,
1541
1546
  "aria-hidden": "true"
1542
1547
  });
1543
1548
  };
1544
1549
  zt.displayName = "ModalOverlay";
1545
1550
  //#endregion
1546
1551
  //#region src/components/Modal/Root/ModalRoot.tsx
1547
- var Bt = ({ 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: m, onOpenAutoFocus: v, onCloseAutoFocus: y, onEscapeKeyDown: b, onPointerDownOutside: x, onInteractOutside: S, role: C = "dialog", className: w }) => {
1548
- let T = g(null), { contentId: E, descriptionId: D, open: O, requestClose: k, setOpen: A, titleId: j } = be({
1552
+ var Bt = {
1553
+ standard: P.components.modal.motion.easing,
1554
+ linear: "linear",
1555
+ ease: "ease",
1556
+ "ease-in": "ease-in",
1557
+ "ease-out": "ease-out",
1558
+ "ease-in-out": "ease-in-out"
1559
+ }, Vt = (e) => Number.parseFloat(e), Ht = (e) => typeof e == "number" ? {
1560
+ close: e,
1561
+ open: e
1562
+ } : {
1563
+ close: e?.close ?? Vt(P.components.modal.motion.closeDuration),
1564
+ open: e?.open ?? Vt(P.components.modal.motion.openDuration)
1565
+ }, Ut = ({ children: e, open: t, defaultOpen: r = !1, onOpenChange: i, animation: a = "scale", duration: o, easing: s = "standard", modal: c = !0, closeOnEscape: l = !0, closeOnOutsidePress: d = !0, preventScroll: p = !0, restoreFocus: m = !0, trapFocus: v = !0, initialFocus: y, finalFocus: b, onOpenAutoFocus: x, onCloseAutoFocus: S, onEscapeKeyDown: C, onPointerDownOutside: w, onInteractOutside: T, role: E = "dialog", className: D }) => {
1566
+ let O = g(null), { contentId: k, descriptionId: A, open: j, requestClose: M, setOpen: N, titleId: P } = _e({
1549
1567
  open: t,
1550
1568
  defaultOpen: r,
1551
1569
  onOpenChange: i,
1552
- closeOnEscape: o,
1553
- closeOnOutsidePress: s
1554
- }), [M, N] = _(!1), [F, I] = _(!1), L = O, R = u(() => {
1555
- k();
1556
- }, [k]), z = u((e) => {
1557
- T.current = e;
1558
- }, []), { isTopOverlay: ee } = ue({
1559
- active: O,
1560
- id: E
1570
+ closeOnEscape: l,
1571
+ closeOnOutsidePress: d
1572
+ }), [I, L] = _(!1), [R, z] = _(!1), B = Ht(o), V = a === "none" ? 0 : B.close, [H, ee] = _(j);
1573
+ f(() => {
1574
+ if (j) {
1575
+ ee(!0);
1576
+ return;
1577
+ }
1578
+ if (V === 0) {
1579
+ ee(!1);
1580
+ return;
1581
+ }
1582
+ let e = window.setTimeout(() => {
1583
+ ee(!1);
1584
+ }, V);
1585
+ return () => {
1586
+ window.clearTimeout(e);
1587
+ };
1588
+ }, [V, j]);
1589
+ let te = u(() => {
1590
+ M();
1591
+ }, [M]), ne = u((e) => {
1592
+ O.current = e;
1593
+ }, []), { isTopOverlay: re } = le({
1594
+ active: j,
1595
+ id: k
1561
1596
  });
1562
- return me({
1563
- active: O,
1564
- enabled: c
1565
- }), f(() => {
1566
- process.env.NODE_ENV === "production" || !O || M || T.current?.hasAttribute("aria-label") || console.warn("Modal.Content requires Modal.Title or ariaLabel.");
1567
- }, [O, M]), f(() => {
1568
- process.env.NODE_ENV === "production" || !O || C !== "alertdialog" || F || console.warn("Modal with role=\"alertdialog\" requires Modal.Description.");
1597
+ fe({
1598
+ active: j,
1599
+ enabled: p
1600
+ });
1601
+ let ie = h(() => ({
1602
+ "--modal-animation-close-duration": `${B.close}ms`,
1603
+ "--modal-animation-easing": Bt[s],
1604
+ "--modal-animation-open-duration": `${B.open}ms`
1605
+ }), [
1606
+ B.close,
1607
+ B.open,
1608
+ s
1609
+ ]);
1610
+ return f(() => {
1611
+ process.env.NODE_ENV === "production" || !j || I || O.current?.hasAttribute("aria-label") || console.warn("Modal.Content requires Modal.Title or ariaLabel.");
1612
+ }, [j, I]), f(() => {
1613
+ process.env.NODE_ENV === "production" || !j || E !== "alertdialog" || R || console.warn("Modal with role=\"alertdialog\" requires Modal.Description.");
1569
1614
  }, [
1570
- F,
1571
- O,
1572
- C
1615
+ R,
1616
+ j,
1617
+ E
1573
1618
  ]), /* @__PURE__ */ n(St, {
1574
1619
  value: h(() => ({
1575
- closeOnEscape: o,
1576
- closeOnOutsidePress: s,
1577
- contentId: E,
1578
- contentRef: T,
1579
- descriptionId: D,
1580
- finalFocus: m,
1581
- initialFocus: p,
1582
- isTopModal: ee,
1583
- modal: a,
1584
- onCloseAutoFocus: y,
1585
- onEscapeKeyDown: b,
1586
- onInteractOutside: S,
1587
- onOpenAutoFocus: v,
1588
- onPointerDownOutside: x,
1589
- open: O,
1590
- preventScroll: c,
1591
- requestClose: R,
1592
- restoreFocus: l,
1593
- role: C,
1594
- setContentRef: z,
1595
- setDescriptionPresent: I,
1596
- setOpen: A,
1597
- setTitlePresent: N,
1598
- shouldRender: L,
1599
- titleId: j,
1600
- trapFocus: d
1620
+ animation: a,
1621
+ animationStyle: ie,
1622
+ closeOnEscape: l,
1623
+ closeOnOutsidePress: d,
1624
+ contentId: k,
1625
+ contentRef: O,
1626
+ descriptionId: A,
1627
+ finalFocus: b,
1628
+ initialFocus: y,
1629
+ isTopModal: re,
1630
+ modal: c,
1631
+ onCloseAutoFocus: S,
1632
+ onEscapeKeyDown: C,
1633
+ onInteractOutside: T,
1634
+ onOpenAutoFocus: x,
1635
+ onPointerDownOutside: w,
1636
+ open: j,
1637
+ preventScroll: p,
1638
+ requestClose: te,
1639
+ restoreFocus: m,
1640
+ role: E,
1641
+ setContentRef: ne,
1642
+ setDescriptionPresent: z,
1643
+ setOpen: N,
1644
+ setTitlePresent: L,
1645
+ shouldRender: H,
1646
+ titleId: P,
1647
+ trapFocus: v
1601
1648
  }), [
1602
- o,
1603
- s,
1604
- E,
1605
- D,
1606
- m,
1607
- p,
1608
- ee,
1609
- O,
1610
1649
  a,
1611
- y,
1612
- b,
1613
- S,
1614
- v,
1615
- x,
1616
- c,
1617
- R,
1650
+ ie,
1618
1651
  l,
1619
- C,
1620
- z,
1652
+ d,
1653
+ k,
1621
1654
  A,
1622
- L,
1655
+ b,
1656
+ y,
1657
+ re,
1623
1658
  j,
1624
- d
1659
+ c,
1660
+ S,
1661
+ C,
1662
+ T,
1663
+ x,
1664
+ w,
1665
+ p,
1666
+ te,
1667
+ m,
1668
+ E,
1669
+ ne,
1670
+ N,
1671
+ H,
1672
+ P,
1673
+ v
1625
1674
  ]),
1626
1675
  children: /* @__PURE__ */ n("div", {
1627
- className: P(w),
1628
- "data-state": O ? "open" : "closed",
1676
+ className: F(D),
1677
+ "data-state": j ? "open" : "closed",
1629
1678
  children: e
1630
1679
  })
1631
1680
  });
1632
1681
  };
1633
- Bt.displayName = "ModalRoot";
1682
+ Ut.displayName = "ModalRoot";
1634
1683
  //#endregion
1635
1684
  //#region src/components/Modal/Trigger/ModalTrigger.tsx
1636
- var Vt = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1685
+ var Wt = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1637
1686
  let a = bt(), s = t && l(e) ? e : void 0, c = r, u = {
1638
1687
  "aria-controls": a.contentId,
1639
1688
  "aria-disabled": c || void 0,
1640
1689
  "aria-expanded": a.open,
1641
1690
  "aria-haspopup": "dialog",
1642
- className: P(i),
1691
+ className: F(i),
1643
1692
  "data-state": a.open ? "open" : "closed",
1644
1693
  disabled: c || void 0,
1645
1694
  onClick: Et(s?.props.onClick, () => {
@@ -1649,35 +1698,35 @@ var Vt = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1649
1698
  return s ? o(s, {
1650
1699
  ...u,
1651
1700
  ref: Dt(s.props.ref),
1652
- className: P(s.props.className, i)
1701
+ className: F(s.props.className, i)
1653
1702
  }) : /* @__PURE__ */ n("button", {
1654
1703
  type: "button",
1655
1704
  ...u,
1656
1705
  children: e
1657
1706
  });
1658
1707
  };
1659
- Vt.displayName = "Modal.Trigger";
1708
+ Wt.displayName = "Modal.Trigger";
1660
1709
  //#endregion
1661
1710
  //#region src/components/Modal/Modal.tsx
1662
- var Ht = Object.assign(Bt, {
1663
- Trigger: Vt,
1711
+ var Gt = Object.assign(Ut, {
1712
+ Trigger: Wt,
1664
1713
  Overlay: zt,
1665
1714
  Content: Mt,
1666
- Header: Lt,
1667
- Title: It,
1715
+ Header: It,
1716
+ Title: Lt,
1668
1717
  Description: Ft,
1669
1718
  Body: Tt,
1670
1719
  Footer: Pt,
1671
1720
  Close: kt
1672
1721
  });
1673
- Ht.displayName = "Modal";
1722
+ Gt.displayName = "Modal";
1674
1723
  //#endregion
1675
1724
  //#region src/components/RadioGroup/internal/RadioGroupContext.tsx
1676
- var Ut = s(null), Wt = Ut.Provider;
1677
- function Gt() {
1678
- return d(Ut);
1725
+ var Kt = s(null), qt = Kt.Provider;
1726
+ function Jt() {
1727
+ return d(Kt);
1679
1728
  }
1680
- var q = {
1729
+ var J = {
1681
1730
  root: "_root_owqkg_1",
1682
1731
  invalid: "_invalid_owqkg_34",
1683
1732
  control: "_control_owqkg_34",
@@ -1700,23 +1749,23 @@ var q = {
1700
1749
  "radio-indicator-in": "_radio-indicator-in_owqkg_1",
1701
1750
  content: "_content_owqkg_346",
1702
1751
  error: "_error_owqkg_363"
1703
- }, Kt = {
1704
- primary: q.colorPrimary,
1705
- neutral: q.colorNeutral,
1706
- success: q.colorSuccess,
1707
- warning: q.colorWarning,
1708
- danger: q.colorDanger
1709
- }, qt = 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) => {
1710
- let S = Gt(), C = p(), w = _ ?? C, T = f ? `${w}-description` : void 0, E = l ? `${w}-error` : void 0, D = [
1752
+ }, Yt = {
1753
+ primary: J.colorPrimary,
1754
+ neutral: J.colorNeutral,
1755
+ success: J.colorSuccess,
1756
+ warning: J.colorWarning,
1757
+ danger: J.colorDanger
1758
+ }, Xt = 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) => {
1759
+ let S = Jt(), C = p(), w = _ ?? C, T = f ? `${w}-description` : void 0, E = l ? `${w}-error` : void 0, D = [
1711
1760
  T,
1712
1761
  E,
1713
1762
  S?.describedBy,
1714
1763
  y
1715
- ].filter(Boolean).join(" ") || void 0, O = S !== null, [k, A] = _e({
1764
+ ].filter(Boolean).join(" ") || void 0, O = S !== null, [k, A] = K({
1716
1765
  value: t,
1717
1766
  defaultValue: i,
1718
1767
  onChange: u
1719
- }), j = O ? S.value === e : k, M = !!S?.disabled || a, N = !!S?.required || o, F = S?.name ?? v, I = !!(l || S?.invalid), L = s ?? S?.size ?? "md", R = c ?? S?.color ?? "primary", z = (t) => {
1768
+ }), j = O ? S.value === e : k, M = !!S?.disabled || a, N = !!S?.required || o, P = S?.name ?? v, I = !!(l || S?.invalid), L = s ?? S?.size ?? "md", R = c ?? S?.color ?? "primary", z = (t) => {
1720
1769
  if (!M) {
1721
1770
  if (O) {
1722
1771
  S.onValueChange(e);
@@ -1726,72 +1775,72 @@ var q = {
1726
1775
  }
1727
1776
  };
1728
1777
  return /* @__PURE__ */ r("div", {
1729
- className: P(q.root, q[L], I && q.invalid, M && q.disabled, Kt[R], g),
1778
+ className: F(J.root, J[L], I && J.invalid, M && J.disabled, Yt[R], g),
1730
1779
  children: [/* @__PURE__ */ r("label", {
1731
1780
  htmlFor: w,
1732
- className: P(q.wrapper, h),
1781
+ className: F(J.wrapper, h),
1733
1782
  children: [
1734
1783
  /* @__PURE__ */ n("input", {
1735
1784
  ...b,
1736
1785
  ref: x,
1737
1786
  id: w,
1738
1787
  type: "radio",
1739
- name: F,
1788
+ name: P,
1740
1789
  value: e,
1741
1790
  checked: j,
1742
1791
  disabled: M,
1743
1792
  required: N,
1744
1793
  "aria-invalid": I || void 0,
1745
1794
  "aria-describedby": D,
1746
- className: q.input,
1795
+ className: J.input,
1747
1796
  onChange: z
1748
1797
  }),
1749
1798
  /* @__PURE__ */ n("span", {
1750
- className: q.control,
1799
+ className: J.control,
1751
1800
  "aria-hidden": "true",
1752
1801
  children: /* @__PURE__ */ n("span", {
1753
- className: P(q.indicator, m && q.customIcon),
1802
+ className: F(J.indicator, m && J.customIcon),
1754
1803
  children: m
1755
1804
  })
1756
1805
  }),
1757
1806
  (d || f) && /* @__PURE__ */ r("span", {
1758
- className: q.content,
1807
+ className: J.content,
1759
1808
  children: [d && /* @__PURE__ */ n("span", {
1760
- className: q.label,
1809
+ className: J.label,
1761
1810
  children: d
1762
1811
  }), f && /* @__PURE__ */ n("span", {
1763
1812
  id: T,
1764
- className: q.description,
1813
+ className: J.description,
1765
1814
  children: f
1766
1815
  })]
1767
1816
  })
1768
1817
  ]
1769
1818
  }), l && /* @__PURE__ */ n("div", {
1770
1819
  id: E,
1771
- className: q.error,
1820
+ className: J.error,
1772
1821
  children: l
1773
1822
  })]
1774
1823
  });
1775
1824
  });
1776
- qt.displayName = "Radio";
1825
+ Xt.displayName = "Radio";
1777
1826
  //#endregion
1778
1827
  //#region src/components/RadioGroup/Item/RadioGroupItem.tsx
1779
- var Jt = c((e, t) => /* @__PURE__ */ n(qt, {
1828
+ var Zt = c((e, t) => /* @__PURE__ */ n(Xt, {
1780
1829
  ...e,
1781
1830
  ref: t
1782
1831
  }));
1783
- Jt.displayName = "RadioGroup.Item";
1832
+ Zt.displayName = "RadioGroup.Item";
1784
1833
  //#endregion
1785
1834
  //#region src/components/RadioGroup/internal/useRadioGroupCollection.ts
1786
- var Yt = (e) => {
1835
+ var Qt = (e) => {
1787
1836
  let t = e.current;
1788
1837
  return t ? Array.from(t.querySelectorAll("input[type=\"radio\"]")) : [];
1789
- }, Xt = (e) => Yt(e).filter((e) => !e.disabled), Zt = ["ArrowLeft", "ArrowRight"], Qt = ["ArrowUp", "ArrowDown"];
1790
- function $t({ rootRef: e, orientation: t }) {
1838
+ }, $t = (e) => Qt(e).filter((e) => !e.disabled), en = ["ArrowLeft", "ArrowRight"], tn = ["ArrowUp", "ArrowDown"];
1839
+ function nn({ rootRef: e, orientation: t }) {
1791
1840
  return u((n) => {
1792
- let r = Zt.includes(n.key), i = Qt.includes(n.key), a = n.key === "Home" || n.key === "End";
1841
+ let r = en.includes(n.key), i = tn.includes(n.key), a = n.key === "Home" || n.key === "End";
1793
1842
  if (!r && !i && !a || t === "horizontal" && i || t === "vertical" && r) return;
1794
- let o = Xt(e);
1843
+ let o = $t(e);
1795
1844
  if (o.length === 0) return;
1796
1845
  n.preventDefault();
1797
1846
  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;
@@ -1800,7 +1849,7 @@ function $t({ rootRef: e, orientation: t }) {
1800
1849
  f?.focus(), f?.click();
1801
1850
  }, [t, e]);
1802
1851
  }
1803
- var en = {
1852
+ var rn = {
1804
1853
  root: "_root_1s3vp_1",
1805
1854
  sm: "_sm_1s3vp_32",
1806
1855
  md: "_md_1s3vp_58",
@@ -1814,15 +1863,15 @@ var en = {
1814
1863
  error: "_error_1s3vp_152",
1815
1864
  disabled: "_disabled_1s3vp_160",
1816
1865
  invalid: "_invalid_1s3vp_176"
1817
- }, tn = 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: _, id: v, onKeyDown: y, ...b }, x) => {
1818
- let S = g(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] = _e({
1866
+ }, an = 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: _, id: v, onKeyDown: y, ...b }, x) => {
1867
+ let S = g(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] = K({
1819
1868
  value: e,
1820
1869
  defaultValue: t,
1821
1870
  onChange: i
1822
- }), M = !!f, N = $t({
1871
+ }), M = !!f, N = nn({
1823
1872
  rootRef: S,
1824
1873
  orientation: m
1825
- }), F = (e) => {
1874
+ }), P = (e) => {
1826
1875
  if (S.current = e, typeof x == "function") {
1827
1876
  x(e);
1828
1877
  return;
@@ -1831,7 +1880,7 @@ var en = {
1831
1880
  };
1832
1881
  return /* @__PURE__ */ r("div", {
1833
1882
  ...b,
1834
- ref: F,
1883
+ ref: P,
1835
1884
  id: w,
1836
1885
  role: "radiogroup",
1837
1886
  "aria-labelledby": T,
@@ -1842,23 +1891,23 @@ var en = {
1842
1891
  onKeyDown: (e) => {
1843
1892
  y?.(e), e.defaultPrevented || N(e);
1844
1893
  },
1845
- className: P(en.root, en[s], M && en.invalid, a && en.disabled, _),
1894
+ className: F(rn.root, rn[s], M && rn.invalid, a && rn.disabled, _),
1846
1895
  children: [
1847
1896
  u && /* @__PURE__ */ r("div", {
1848
1897
  id: T,
1849
- className: en.label,
1898
+ className: rn.label,
1850
1899
  children: [u, o && /* @__PURE__ */ n("span", {
1851
- className: en.required,
1900
+ className: rn.required,
1852
1901
  "aria-hidden": "true",
1853
1902
  children: "*"
1854
1903
  })]
1855
1904
  }),
1856
1905
  d && /* @__PURE__ */ n("div", {
1857
1906
  id: E,
1858
- className: en.description,
1907
+ className: rn.description,
1859
1908
  children: d
1860
1909
  }),
1861
- /* @__PURE__ */ n(Wt, {
1910
+ /* @__PURE__ */ n(qt, {
1862
1911
  value: {
1863
1912
  name: k,
1864
1913
  value: A,
@@ -1871,35 +1920,35 @@ var en = {
1871
1920
  onValueChange: j
1872
1921
  },
1873
1922
  children: /* @__PURE__ */ n("div", {
1874
- className: P(en.items, en[m]),
1923
+ className: F(rn.items, rn[m]),
1875
1924
  children: h
1876
1925
  })
1877
1926
  }),
1878
1927
  f && /* @__PURE__ */ n("div", {
1879
1928
  id: D,
1880
- className: en.error,
1929
+ className: rn.error,
1881
1930
  children: f
1882
1931
  })
1883
1932
  ]
1884
1933
  });
1885
1934
  });
1886
- tn.displayName = "RadioGroup.Root";
1935
+ an.displayName = "RadioGroup.Root";
1887
1936
  //#endregion
1888
1937
  //#region src/components/RadioGroup/RadioGroup.tsx
1889
- var nn = Object.assign(tn, { Item: Jt });
1890
- nn.displayName = "RadioGroup";
1938
+ var on = Object.assign(an, { Item: Zt });
1939
+ on.displayName = "RadioGroup";
1891
1940
  //#endregion
1892
1941
  //#region src/components/Select/internal/SelectContext.tsx
1893
- var rn = s(null), an = rn.Provider;
1894
- function on() {
1895
- let e = d(rn);
1942
+ var sn = s(null), cn = sn.Provider;
1943
+ function ln() {
1944
+ let e = d(sn);
1896
1945
  if (!e) throw Error("Select compound components must be used inside <Select>");
1897
1946
  return e;
1898
1947
  }
1899
- rn.displayName = "SelectContext";
1948
+ sn.displayName = "SelectContext";
1900
1949
  //#endregion
1901
1950
  //#region src/components/Select/internal/useSelectVirtualization.ts
1902
- function sn({ loading: e, options: t, scrollTop: n, virtual: r }) {
1951
+ function un({ loading: e, options: t, scrollTop: n, virtual: r }) {
1903
1952
  return h(() => {
1904
1953
  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;
1905
1954
  return {
@@ -1918,7 +1967,7 @@ function sn({ loading: e, options: t, scrollTop: n, virtual: r }) {
1918
1967
  r
1919
1968
  ]);
1920
1969
  }
1921
- var J = {
1970
+ var dn = {
1922
1971
  option: "_option_7msws_1",
1923
1972
  selected: "_selected_7msws_38",
1924
1973
  disabled: "_disabled_7msws_38",
@@ -1936,22 +1985,22 @@ var J = {
1936
1985
  danger: "_danger_7msws_313",
1937
1986
  check: "_check_7msws_377",
1938
1987
  checkPop: "_checkPop_7msws_1"
1939
- }, cn = () => null;
1940
- cn.__velliraSelectPart = "item", cn.displayName = "Select.Item";
1941
- var ln = ({ option: e, isSelected: i, isActive: a, optionId: o, renderOption: s, onSelect: c, onMouseEnter: l }) => {
1988
+ }, fn = () => null;
1989
+ fn.__velliraSelectPart = "item", fn.displayName = "Select.Item";
1990
+ var pn = ({ option: e, isSelected: i, isActive: a, optionId: o, renderOption: s, onSelect: c, onMouseEnter: l }) => {
1942
1991
  let u = !!e.disabled;
1943
1992
  return /* @__PURE__ */ r("li", {
1944
1993
  id: o,
1945
1994
  role: "option",
1946
1995
  "aria-selected": i,
1947
1996
  "aria-disabled": u || void 0,
1948
- className: P(J.option, {
1949
- [J.selected]: i,
1950
- [J.active]: a,
1951
- [J.disabled]: u,
1952
- [J.success]: e.color === "success",
1953
- [J.warning]: e.color === "warning",
1954
- [J.danger]: e.color === "danger"
1997
+ className: F(dn.option, {
1998
+ [dn.selected]: i,
1999
+ [dn.active]: a,
2000
+ [dn.disabled]: u,
2001
+ [dn.success]: e.color === "success",
2002
+ [dn.warning]: e.color === "warning",
2003
+ [dn.danger]: e.color === "danger"
1955
2004
  }),
1956
2005
  onClick: () => {
1957
2006
  u || c(e.value);
@@ -1960,39 +2009,39 @@ var ln = ({ option: e, isSelected: i, isActive: a, optionId: o, renderOption: s,
1960
2009
  u || l();
1961
2010
  },
1962
2011
  children: [s ? /* @__PURE__ */ n("span", {
1963
- className: J.custom,
2012
+ className: dn.custom,
1964
2013
  children: s(e)
1965
2014
  }) : /* @__PURE__ */ r(t, { children: [
1966
2015
  e.icon && /* @__PURE__ */ n("span", {
1967
- className: J.icon,
2016
+ className: dn.icon,
1968
2017
  children: e.icon
1969
2018
  }),
1970
2019
  /* @__PURE__ */ r("span", {
1971
- className: J.content,
2020
+ className: dn.content,
1972
2021
  children: [/* @__PURE__ */ n("span", {
1973
- className: J.label,
2022
+ className: dn.label,
1974
2023
  children: e.label
1975
2024
  }), e.description && /* @__PURE__ */ n("span", {
1976
- className: J.description,
2025
+ className: dn.description,
1977
2026
  children: e.description
1978
2027
  })]
1979
2028
  }),
1980
2029
  e.badge && /* @__PURE__ */ n("span", {
1981
- className: J.badge,
2030
+ className: dn.badge,
1982
2031
  children: e.badge
1983
2032
  }),
1984
2033
  e.shortcut && /* @__PURE__ */ n("kbd", {
1985
- className: J.shortcut,
2034
+ className: dn.shortcut,
1986
2035
  children: e.shortcut
1987
2036
  })
1988
2037
  ] }), /* @__PURE__ */ n("span", {
1989
- className: J.check,
2038
+ className: dn.check,
1990
2039
  "aria-hidden": "true",
1991
2040
  children: i && /* @__PURE__ */ n(y, {})
1992
2041
  })]
1993
2042
  });
1994
2043
  };
1995
- ln.displayName = "SelectItemRow";
2044
+ pn.displayName = "SelectItemRow";
1996
2045
  var Y = {
1997
2046
  dropdown: "_dropdown_jkvqg_1",
1998
2047
  dropdownIn: "_dropdownIn_jkvqg_1",
@@ -2018,64 +2067,64 @@ var Y = {
2018
2067
  separator: "_separator_jkvqg_1575",
2019
2068
  virtualSpacer: "_virtualSpacer_jkvqg_1581",
2020
2069
  mobileDropdownIn: "_mobileDropdownIn_jkvqg_1"
2021
- }, un = ({ children: e, className: t }) => {
2022
- let { contentProps: r } = on(), i = fn(e);
2023
- return /* @__PURE__ */ n(dn, {
2070
+ }, mn = ({ children: e, className: t }) => {
2071
+ let { contentProps: r } = ln(), i = gn(e);
2072
+ return /* @__PURE__ */ n(hn, {
2024
2073
  ...r,
2025
2074
  ...i,
2026
2075
  className: [r.className, t].filter(Boolean).join(" ")
2027
2076
  });
2028
2077
  };
2029
- un.__velliraSelectPart = "content", un.displayName = "Select.Content";
2030
- var dn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style: s, options: c, entries: l, multiple: d, selectedValues: p, color: m = "primary", variant: h = "outline", searchable: v, command: y, virtual: b, portal: x = !0, searchValue: C = "", searchPlaceholder: w = "Search...", loading: T, loadingText: E = "Loading...", emptyText: 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 }) => {
2031
- let B = g(null), te = g(!1), [ne, re] = _(null), [ie, ae] = _(0), { bottomSpacerHeight: oe, isVirtual: V, itemHeight: se, startIndex: ce, topSpacerHeight: le, viewportHeight: H, visibleOptions: ue } = sn({
2078
+ mn.__velliraSelectPart = "content", mn.displayName = "Select.Content";
2079
+ var hn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style: s, options: c, entries: l, multiple: d, selectedValues: p, color: m = "primary", variant: h = "outline", searchable: v, command: y, virtual: b, portal: x = !0, searchValue: C = "", searchPlaceholder: w = "Search...", loading: T, loadingText: E = "Loading...", emptyText: 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: B }) => {
2080
+ let V = g(null), H = g(!1), [ee, te] = _(null), [ne, re] = _(0), { bottomSpacerHeight: ie, isVirtual: U, itemHeight: ae, startIndex: oe, topSpacerHeight: se, viewportHeight: W, visibleOptions: ce } = un({
2032
2081
  loading: T,
2033
2082
  options: c,
2034
- scrollTop: ie,
2083
+ scrollTop: ne,
2035
2084
  virtual: b
2036
- }), de = u((e) => {
2037
- re(e), o(e);
2085
+ }), le = u((e) => {
2086
+ te(e), o(e);
2038
2087
  }, [o]);
2039
2088
  if (f(() => {
2040
- e || (te.current = !1, ae(0));
2089
+ e || (H.current = !1, re(0));
2041
2090
  }, [e, C]), f(() => {
2042
2091
  if (!e || !v) return;
2043
2092
  let t = window.setTimeout(() => {
2044
- B.current?.focus({ preventScroll: !0 });
2093
+ V.current?.focus({ preventScroll: !0 });
2045
2094
  }, 0);
2046
2095
  return () => window.clearTimeout(t);
2047
2096
  }, [e, v]), f(() => {
2048
- if (!e || T || !ne || te.current) return;
2097
+ if (!e || T || !ee || H.current) return;
2049
2098
  let t = c.findIndex((e) => p ? p.includes(e.value) : e.value === N), n = t >= 0 ? t : P;
2050
2099
  if (n < 0) {
2051
- te.current = !0;
2100
+ H.current = !0;
2052
2101
  return;
2053
2102
  }
2054
- if (te.current = !0, V) {
2055
- let e = Math.max(0, n * se - (H - se) / 2);
2056
- ae(e), ne.scrollTop = e;
2103
+ if (H.current = !0, U) {
2104
+ let e = Math.max(0, n * ae - (W - ae) / 2);
2105
+ re(e), ee.scrollTop = e;
2057
2106
  return;
2058
2107
  }
2059
2108
  document.getElementById(`${i}-option-${n}`)?.scrollIntoView?.({ block: "nearest" });
2060
2109
  }, [
2061
2110
  P,
2062
- ne,
2111
+ ee,
2063
2112
  e,
2064
- V,
2065
- se,
2113
+ U,
2114
+ ae,
2066
2115
  i,
2067
2116
  T,
2068
2117
  c,
2069
2118
  N,
2070
2119
  p,
2071
- H
2120
+ W
2072
2121
  ]), !e) return null;
2073
- let fe = l && !V ? l : ue.map((e, t) => ({
2122
+ let G = l && !U ? l : ce.map((e, t) => ({
2074
2123
  type: "option",
2075
2124
  option: e,
2076
- optionIndex: ce + t
2077
- })), pe = /* @__PURE__ */ r("div", {
2078
- ref: de,
2125
+ optionIndex: oe + t
2126
+ })), ue = /* @__PURE__ */ r("div", {
2127
+ ref: le,
2079
2128
  tabIndex: 0,
2080
2129
  className: [
2081
2130
  Y.dropdown,
@@ -2086,26 +2135,26 @@ var dn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2086
2135
  ].filter(Boolean).join(" "),
2087
2136
  style: s,
2088
2137
  onScroll: (e) => {
2089
- V && ae(e.currentTarget.scrollTop);
2138
+ U && re(e.currentTarget.scrollTop);
2090
2139
  },
2091
2140
  children: [
2092
2141
  k,
2093
2142
  O ?? (v && /* @__PURE__ */ r("div", {
2094
2143
  className: Y.searchWrap,
2095
2144
  children: [/* @__PURE__ */ n("input", {
2096
- ref: B,
2145
+ ref: V,
2097
2146
  className: Y.search,
2098
2147
  value: C,
2099
2148
  placeholder: y ? "Type a command..." : w,
2100
2149
  "aria-label": "Search options",
2101
- onInput: (e) => ee?.(e.currentTarget.value),
2102
- onChange: (e) => ee?.(e.target.value)
2150
+ onInput: (e) => B?.(e.currentTarget.value),
2151
+ onChange: (e) => B?.(e.target.value)
2103
2152
  }), C && /* @__PURE__ */ n("button", {
2104
2153
  type: "button",
2105
2154
  className: Y.searchClear,
2106
2155
  "aria-label": "Clear search",
2107
2156
  onClick: () => {
2108
- ee?.(""), B.current?.focus();
2157
+ B?.(""), V.current?.focus();
2109
2158
  },
2110
2159
  children: /* @__PURE__ */ n(S, {})
2111
2160
  })]
@@ -2122,12 +2171,12 @@ var dn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2122
2171
  className: Y.empty,
2123
2172
  children: j ?? E
2124
2173
  }) : c.length ? /* @__PURE__ */ r(t, { children: [
2125
- V && /* @__PURE__ */ n("li", {
2174
+ U && /* @__PURE__ */ n("li", {
2126
2175
  "aria-hidden": "true",
2127
2176
  className: Y.virtualSpacer,
2128
- style: { height: le }
2177
+ style: { height: se }
2129
2178
  }),
2130
- fe.map((e) => {
2179
+ G.map((e) => {
2131
2180
  if (e.type === "group") {
2132
2181
  if (e.selectable && d) {
2133
2182
  let t = e.itemValues.filter((e) => c.some((t) => t.value === e && !t.disabled)), i = p ? t.filter((e) => p.includes(e)).length : 0, a = t.length > 0 && i === t.length, o = i > 0 && i < t.length;
@@ -2136,7 +2185,7 @@ var dn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2136
2185
  children: /* @__PURE__ */ r("button", {
2137
2186
  type: "button",
2138
2187
  className: Y.groupAction,
2139
- "aria-label": pn(e.selectLabel ?? e.label),
2188
+ "aria-label": _n(e.selectLabel ?? e.label),
2140
2189
  "aria-pressed": o ? "mixed" : a ? "true" : "false",
2141
2190
  disabled: t.length === 0,
2142
2191
  onClick: () => R(t),
@@ -2167,7 +2216,7 @@ var dn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2167
2216
  "data-vellira-select-separator": "true"
2168
2217
  }, e.id);
2169
2218
  let { option: t, optionIndex: a } = e;
2170
- return /* @__PURE__ */ n(ln, {
2219
+ return /* @__PURE__ */ n(pn, {
2171
2220
  option: t,
2172
2221
  isSelected: p ? p.includes(t.value) : t.value === N,
2173
2222
  isActive: a === F,
@@ -2177,10 +2226,10 @@ var dn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2177
2226
  onMouseEnter: () => z(a)
2178
2227
  }, t.value);
2179
2228
  }),
2180
- V && /* @__PURE__ */ n("li", {
2229
+ U && /* @__PURE__ */ n("li", {
2181
2230
  "aria-hidden": "true",
2182
2231
  className: Y.virtualSpacer,
2183
- style: { height: oe }
2232
+ style: { height: ie }
2184
2233
  })
2185
2234
  ] }) : /* @__PURE__ */ n("li", {
2186
2235
  role: "option",
@@ -2192,10 +2241,10 @@ var dn = ({ isOpen: e, listboxId: i, labelledById: a, setDropdownRef: o, style:
2192
2241
  })
2193
2242
  ]
2194
2243
  });
2195
- return x ? /* @__PURE__ */ n(we, { children: pe }) : pe;
2244
+ return x ? /* @__PURE__ */ n(Se, { children: ue }) : ue;
2196
2245
  };
2197
- dn.displayName = "SelectContentSurface";
2198
- function fn(e) {
2246
+ hn.displayName = "SelectContentSurface";
2247
+ function gn(e) {
2199
2248
  let t, n, r, a;
2200
2249
  return i.forEach(e, (e) => {
2201
2250
  if (!l(e)) return;
@@ -2208,21 +2257,21 @@ function fn(e) {
2208
2257
  searchSlot: n
2209
2258
  };
2210
2259
  }
2211
- function pn(e) {
2260
+ function _n(e) {
2212
2261
  return typeof e == "string" || typeof e == "number" ? String(e) : "Select group";
2213
2262
  }
2214
2263
  //#endregion
2215
2264
  //#region src/components/Select/Content/SelectEmpty.tsx
2216
- var mn = ({ children: e }) => /* @__PURE__ */ n(t, { children: e });
2217
- mn.__velliraSelectPart = "empty", mn.displayName = "Select.Empty";
2265
+ var vn = ({ children: e }) => /* @__PURE__ */ n(t, { children: e });
2266
+ vn.__velliraSelectPart = "empty", vn.displayName = "Select.Empty";
2218
2267
  //#endregion
2219
2268
  //#region src/components/Select/Content/SelectLoading.tsx
2220
- var hn = ({ children: e }) => /* @__PURE__ */ n(t, { children: e });
2221
- hn.__velliraSelectPart = "loading", hn.displayName = "Select.Loading";
2269
+ var yn = ({ children: e }) => /* @__PURE__ */ n(t, { children: e });
2270
+ yn.__velliraSelectPart = "loading", yn.displayName = "Select.Loading";
2222
2271
  //#endregion
2223
2272
  //#region src/components/Select/Content/SelectSearch.tsx
2224
- var gn = ({ placeholder: e, className: t }) => {
2225
- let { contentProps: i } = on(), a = g(null), o = i.searchValue ?? "";
2273
+ var bn = ({ placeholder: e, className: t }) => {
2274
+ let { contentProps: i } = ln(), a = g(null), o = i.searchValue ?? "";
2226
2275
  return f(() => {
2227
2276
  if (!i.isOpen) return;
2228
2277
  let e = window.setTimeout(() => {
@@ -2233,7 +2282,7 @@ var gn = ({ placeholder: e, className: t }) => {
2233
2282
  className: Y.searchWrap,
2234
2283
  children: [/* @__PURE__ */ n("input", {
2235
2284
  ref: a,
2236
- className: P(Y.search, t),
2285
+ className: F(Y.search, t),
2237
2286
  value: o,
2238
2287
  placeholder: e ?? (i.command ? "Type a command..." : "Search..."),
2239
2288
  "aria-label": "Search options",
@@ -2250,38 +2299,38 @@ var gn = ({ placeholder: e, className: t }) => {
2250
2299
  })]
2251
2300
  });
2252
2301
  };
2253
- gn.__velliraSelectPart = "search", gn.displayName = "Select.Search";
2302
+ bn.__velliraSelectPart = "search", bn.displayName = "Select.Search";
2254
2303
  //#endregion
2255
2304
  //#region src/components/Select/Group/SelectGroup.tsx
2256
- var _n = () => null;
2257
- _n.__velliraSelectPart = "group", _n.displayName = "Select.Group";
2305
+ var xn = () => null;
2306
+ xn.__velliraSelectPart = "group", xn.displayName = "Select.Group";
2258
2307
  //#endregion
2259
2308
  //#region src/components/Select/Group/SelectLabel.tsx
2260
- var vn = ({ children: e }) => /* @__PURE__ */ n("div", {
2309
+ var Sn = ({ children: e }) => /* @__PURE__ */ n("div", {
2261
2310
  role: "presentation",
2262
2311
  className: Y.groupLabel,
2263
2312
  children: e
2264
2313
  });
2265
- vn.__velliraSelectPart = "label", vn.displayName = "Select.Label";
2314
+ Sn.__velliraSelectPart = "label", Sn.displayName = "Select.Label";
2266
2315
  //#endregion
2267
2316
  //#region src/components/Select/Group/SelectSeparator.tsx
2268
- var yn = () => null;
2269
- yn.__velliraSelectPart = "separator", yn.displayName = "Select.Separator";
2317
+ var Cn = () => null;
2318
+ Cn.__velliraSelectPart = "separator", Cn.displayName = "Select.Separator";
2270
2319
  //#endregion
2271
2320
  //#region src/components/Select/Item/SelectItemBadge.tsx
2272
- var bn = () => null;
2273
- bn.__velliraSelectPart = "itemBadge", bn.displayName = "Select.ItemBadge";
2321
+ var wn = () => null;
2322
+ wn.__velliraSelectPart = "itemBadge", wn.displayName = "Select.ItemBadge";
2274
2323
  //#endregion
2275
2324
  //#region src/components/Select/Item/SelectItemDescription.tsx
2276
- var xn = () => null;
2277
- xn.__velliraSelectPart = "itemDescription", xn.displayName = "Select.ItemDescription";
2325
+ var Tn = () => null;
2326
+ Tn.__velliraSelectPart = "itemDescription", Tn.displayName = "Select.ItemDescription";
2278
2327
  //#endregion
2279
2328
  //#region src/components/Select/Item/SelectItemIcon.tsx
2280
- var Sn = () => null;
2281
- Sn.__velliraSelectPart = "itemIcon", Sn.displayName = "Select.ItemIcon";
2329
+ var En = () => null;
2330
+ En.__velliraSelectPart = "itemIcon", En.displayName = "Select.ItemIcon";
2282
2331
  //#endregion
2283
2332
  //#region src/patterns/FormField/FormFieldContext.ts
2284
- var Cn = s(null), wn = () => d(Cn), Tn = {
2333
+ var Dn = s(null), On = () => d(Dn), kn = {
2285
2334
  wrapper: "_wrapper_143kr_1",
2286
2335
  sm: "_sm_143kr_41",
2287
2336
  md: "_md_143kr_78",
@@ -2297,8 +2346,8 @@ var Cn = s(null), wn = () => d(Cn), Tn = {
2297
2346
  optional: "_optional_143kr_194",
2298
2347
  labelInfo: "_labelInfo_143kr_201",
2299
2348
  disabled: "_disabled_143kr_243"
2300
- }, 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 }) => {
2301
- 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), N = {
2349
+ }, An = (...e) => e.filter(Boolean).join(" ") || void 0, jn = ({ 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 }) => {
2350
+ 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 = An(D), M = An(O, k), N = {
2302
2351
  controlId: E,
2303
2352
  labelId: D,
2304
2353
  descriptionId: O,
@@ -2309,18 +2358,18 @@ var Cn = s(null), wn = () => d(Cn), Tn = {
2309
2358
  size: m,
2310
2359
  ariaLabelledBy: j,
2311
2360
  ariaDescribedBy: M
2312
- }, F = l(_) ? _ : void 0, I = v && F ? o(F, {
2313
- id: F.props.id ?? E,
2314
- required: F.props.required ?? s,
2315
- disabled: F.props.disabled ?? c,
2316
- "aria-invalid": F.props["aria-invalid"] ?? (A || void 0),
2317
- "aria-labelledby": En(F.props["aria-labelledby"], j),
2318
- "aria-describedby": En(F.props["aria-describedby"], M)
2361
+ }, P = l(_) ? _ : void 0, I = v && P ? o(P, {
2362
+ id: P.props.id ?? E,
2363
+ required: P.props.required ?? s,
2364
+ disabled: P.props.disabled ?? c,
2365
+ "aria-invalid": P.props["aria-invalid"] ?? (A || void 0),
2366
+ "aria-labelledby": An(P.props["aria-labelledby"], j),
2367
+ "aria-describedby": An(P.props["aria-describedby"], M)
2319
2368
  }) : _;
2320
2369
  return /* @__PURE__ */ r("div", {
2321
2370
  ...w,
2322
2371
  "aria-disabled": c || void 0,
2323
- className: P(Tn.wrapper, Tn[d], Tn[f], Tn[m], c && Tn.disabled, y),
2372
+ className: F(kn.wrapper, kn[d], kn[f], kn[m], c && kn.disabled, y),
2324
2373
  "data-disabled": c || void 0,
2325
2374
  "data-invalid": A || void 0,
2326
2375
  "data-orientation": d,
@@ -2329,42 +2378,42 @@ var Cn = s(null), wn = () => d(Cn), Tn = {
2329
2378
  t && /* @__PURE__ */ r("label", {
2330
2379
  id: D,
2331
2380
  htmlFor: E,
2332
- className: P(Tn.label, x),
2381
+ className: F(kn.label, x),
2333
2382
  children: [
2334
2383
  /* @__PURE__ */ n("span", {
2335
- className: Tn.labelText,
2384
+ className: kn.labelText,
2336
2385
  children: t
2337
2386
  }),
2338
2387
  s && /* @__PURE__ */ n("span", {
2339
- className: Tn.required,
2388
+ className: kn.required,
2340
2389
  "aria-hidden": "true",
2341
2390
  children: "*"
2342
2391
  }),
2343
2392
  !s && g && /* @__PURE__ */ n("span", {
2344
- className: Tn.optional,
2393
+ className: kn.optional,
2345
2394
  children: g
2346
2395
  }),
2347
2396
  h && /* @__PURE__ */ n("span", {
2348
- className: Tn.labelInfo,
2397
+ className: kn.labelInfo,
2349
2398
  children: h
2350
2399
  })
2351
2400
  ]
2352
2401
  }),
2353
2402
  i && /* @__PURE__ */ n("div", {
2354
2403
  id: O,
2355
- className: P(Tn.description, S),
2404
+ className: F(kn.description, S),
2356
2405
  children: i
2357
2406
  }),
2358
- /* @__PURE__ */ n(Cn.Provider, {
2407
+ /* @__PURE__ */ n(Dn.Provider, {
2359
2408
  value: N,
2360
2409
  children: /* @__PURE__ */ n("div", {
2361
- className: P(Tn.control, b),
2410
+ className: F(kn.control, b),
2362
2411
  children: I
2363
2412
  })
2364
2413
  }),
2365
2414
  a && /* @__PURE__ */ n("div", {
2366
2415
  id: k,
2367
- className: P(Tn.errorText, C),
2416
+ className: F(kn.errorText, C),
2368
2417
  role: "alert",
2369
2418
  children: a
2370
2419
  })
@@ -2373,14 +2422,14 @@ var Cn = s(null), wn = () => d(Cn), Tn = {
2373
2422
  };
2374
2423
  //#endregion
2375
2424
  //#region src/components/Select/internal/SelectCollection.ts
2376
- function On(e) {
2425
+ function Mn(e) {
2377
2426
  let t = [], n = [], r = 0;
2378
2427
  function a(e) {
2379
2428
  i.forEach(e, (e) => {
2380
2429
  if (!l(e)) return;
2381
2430
  let i = e.type;
2382
2431
  if (i.__velliraSelectPart === "group") {
2383
- let n = e.props, i = An(n.children);
2432
+ let n = e.props, i = Pn(n.children);
2384
2433
  t.push({
2385
2434
  type: "group",
2386
2435
  id: `group-${r++}`,
@@ -2392,7 +2441,7 @@ function On(e) {
2392
2441
  return;
2393
2442
  }
2394
2443
  if (i.__velliraSelectPart === "item") {
2395
- let r = e.props, i = jn(r.children, r.value), a = r.label ?? i.label, o = n.length, s = {
2444
+ let r = e.props, i = Fn(r.children, r.value), a = r.label ?? i.label, o = n.length, s = {
2396
2445
  label: a,
2397
2446
  value: r.value,
2398
2447
  disabled: r.disabled,
@@ -2424,7 +2473,7 @@ function On(e) {
2424
2473
  options: n
2425
2474
  };
2426
2475
  }
2427
- function kn(e) {
2476
+ function Nn(e) {
2428
2477
  let t = !1;
2429
2478
  function n(e) {
2430
2479
  i.forEach(e, (e) => {
@@ -2439,7 +2488,7 @@ function kn(e) {
2439
2488
  }
2440
2489
  return n(e), t;
2441
2490
  }
2442
- function An(e) {
2491
+ function Pn(e) {
2443
2492
  let t = [];
2444
2493
  function n(e) {
2445
2494
  i.forEach(e, (e) => {
@@ -2454,7 +2503,7 @@ function An(e) {
2454
2503
  }
2455
2504
  return n(e), t;
2456
2505
  }
2457
- function jn(e, t) {
2506
+ function Fn(e, t) {
2458
2507
  let n, r, a, o = [];
2459
2508
  function s(e) {
2460
2509
  i.forEach(e, (e) => {
@@ -2490,12 +2539,12 @@ function jn(e, t) {
2490
2539
  }
2491
2540
  //#endregion
2492
2541
  //#region src/components/Select/internal/useSelectCollection.ts
2493
- function Mn(e) {
2494
- return h(() => On(e), [e]);
2542
+ function In(e) {
2543
+ return h(() => Mn(e), [e]);
2495
2544
  }
2496
2545
  //#endregion
2497
2546
  //#region src/components/Select/internal/useSelectPosition.ts
2498
- function Nn({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
2547
+ function Ln({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
2499
2548
  return tt({
2500
2549
  open: t,
2501
2550
  onOpenChange: r,
@@ -2507,18 +2556,18 @@ function Nn({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange:
2507
2556
  }
2508
2557
  //#endregion
2509
2558
  //#region src/components/Select/internal/useSelectSearch.ts
2510
- function Pn({ options: e, searchable: t, searchValue: n }) {
2559
+ function Rn({ options: e, searchable: t, searchValue: n }) {
2511
2560
  return h(() => {
2512
2561
  if (!t || !n) return e;
2513
2562
  let r = n.toLocaleLowerCase();
2514
- return e.filter((e) => `${e.label} ${Fn(e.description)}`.toLocaleLowerCase().includes(r));
2563
+ return e.filter((e) => `${e.label} ${zn(e.description)}`.toLocaleLowerCase().includes(r));
2515
2564
  }, [
2516
2565
  e,
2517
2566
  n,
2518
2567
  t
2519
2568
  ]);
2520
2569
  }
2521
- function Fn(e) {
2570
+ function zn(e) {
2522
2571
  return typeof e == "string" || typeof e == "number" ? String(e) : "";
2523
2572
  }
2524
2573
  var X = {
@@ -2547,16 +2596,16 @@ var X = {
2547
2596
  spin: "_spin_ao6y1_795",
2548
2597
  loading: "_loading_ao6y1_804",
2549
2598
  open: "_open_ao6y1_823"
2550
- }, In = ({ children: e, className: t }) => {
2551
- let { triggerProps: r } = on();
2552
- return /* @__PURE__ */ n(Ln, {
2599
+ }, Bn = ({ children: e, className: t }) => {
2600
+ let { triggerProps: r } = ln();
2601
+ return /* @__PURE__ */ n(Vn, {
2553
2602
  ...r,
2554
2603
  className: [r.className, t].filter(Boolean).join(" "),
2555
2604
  children: e
2556
2605
  });
2557
2606
  };
2558
- In.__velliraSelectPart = "trigger", In.displayName = "Select.Trigger";
2559
- 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: y, startIcon: x, endIcon: C, prefix: w, suffix: T, clearable: E, onClear: D, className: O, buttonRef: k, onClick: A, onKeyDown: j, onBlur: M, onFocus: N }) => /* @__PURE__ */ n("button", {
2607
+ Bn.__velliraSelectPart = "trigger", Bn.displayName = "Select.Trigger";
2608
+ var Vn = ({ 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: y, startIcon: x, endIcon: C, prefix: w, suffix: T, clearable: E, onClear: D, className: O, buttonRef: k, onClick: A, onKeyDown: j, onBlur: M, onFocus: N }) => /* @__PURE__ */ n("button", {
2560
2609
  id: i,
2561
2610
  ref: k,
2562
2611
  type: "button",
@@ -2572,7 +2621,7 @@ var Ln = ({ children: e, id: i, describedBy: a, labelledBy: o, isOpen: s, disabl
2572
2621
  "aria-controls": s ? u : void 0,
2573
2622
  "aria-describedby": a,
2574
2623
  "aria-activedescendant": s && d >= 0 ? `${u}-option-${d}` : void 0,
2575
- className: P(X.control, X[g], X[v], X[_], {
2624
+ className: F(X.control, X[g], X[v], X[_], {
2576
2625
  [X.error]: !!p,
2577
2626
  [X.disabled]: c,
2578
2627
  [X.loading]: y
@@ -2593,7 +2642,7 @@ var Ln = ({ children: e, id: i, describedBy: a, labelledBy: o, isOpen: s, disabl
2593
2642
  /* @__PURE__ */ n("span", {
2594
2643
  className: X.valueWrap,
2595
2644
  children: /* @__PURE__ */ n("span", {
2596
- className: P(X.value, { [X.placeholder]: h }),
2645
+ className: F(X.value, { [X.placeholder]: h }),
2597
2646
  children: m
2598
2647
  })
2599
2648
  }),
@@ -2612,256 +2661,256 @@ var Ln = ({ children: e, id: i, describedBy: a, labelledBy: o, isOpen: s, disabl
2612
2661
  children: /* @__PURE__ */ n(S, {})
2613
2662
  }),
2614
2663
  /* @__PURE__ */ n("span", {
2615
- className: P(X.arrow, { [X.open]: s }),
2664
+ className: F(X.arrow, { [X.open]: s }),
2616
2665
  "aria-hidden": "true",
2617
2666
  children: y ? /* @__PURE__ */ n("span", { className: X.spinner }) : C ?? /* @__PURE__ */ n(b, {})
2618
2667
  })
2619
2668
  ] })
2620
2669
  });
2621
- Ln.displayName = "SelectTriggerSurface";
2670
+ Vn.displayName = "SelectTriggerSurface";
2622
2671
  //#endregion
2623
2672
  //#region src/components/Select/Root/SelectRoot.tsx
2624
- var Rn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label": c, "aria-describedby": l, "aria-labelledby": d, value: m, defaultValue: v, onValueChange: y, multiple: b = !1, maxSelected: x, closeOnSelect: S, placeholder: C = "Select...", empty: w, loadingText: T = "Loading...", size: E, color: D = "primary", variant: O = "outline", required: k = !1, disabled: A = !1, invalid: j = !1, loading: M = !1, clearable: N = !1, searchable: P = !1, virtual: F, modal: I = !1, command: L = !1, error: R, placement: z = "bottom", matchTriggerWidth: ee = !0, avoidCollisions: B = !0, portal: te = !0, open: ne, defaultOpen: re = !1, onOpenChange: ie, onSearch: ae, onClear: oe, startIcon: V, endIcon: se, prefix: le, suffix: H, renderValue: de, renderOption: fe, onBlur: pe, onFocus: he, className: ge, triggerClassName: _e, dropdownClassName: ve }) => {
2625
- let ye = p(), be = wn(), U = !!(i || a || R), Se = o ?? (U ? void 0 : be?.controlId) ?? ye, Ce = `${Se}-listbox`, [we, Te] = _(""), Ee = !!R, De = Ee ? `${Se}-error` : void 0, Oe = a ? `${Se}-description` : void 0, ke = E ?? be?.size ?? "md", Ae = j || Ee || !U && !!be?.invalid, je = A || !U && !!be?.disabled, Me = k || !U && !!be?.required, Ne = [
2673
+ var Hn = ({ children: e, label: i, description: a, id: o, name: s, "aria-label": c, "aria-describedby": l, "aria-labelledby": d, value: m, defaultValue: v, onValueChange: y, multiple: b = !1, maxSelected: x, closeOnSelect: S, placeholder: C = "Select...", empty: w, loadingText: T = "Loading...", size: E, color: D = "primary", variant: O = "outline", required: k = !1, disabled: A = !1, invalid: j = !1, loading: M = !1, clearable: N = !1, searchable: P = !1, virtual: F, modal: I = !1, command: L = !1, error: R, placement: z = "bottom", matchTriggerWidth: B = !0, avoidCollisions: V = !0, portal: H = !0, open: ee, defaultOpen: te = !1, onOpenChange: ne, onSearch: re, onClear: ie, startIcon: U, endIcon: ae, prefix: oe, suffix: W, renderValue: ce, renderOption: G, onBlur: ue, onFocus: de, className: pe, triggerClassName: me, dropdownClassName: K }) => {
2674
+ let he = p(), ge = On(), _e = !!(i || a || R), ye = o ?? (_e ? void 0 : ge?.controlId) ?? he, be = `${ye}-listbox`, [xe, Se] = _(""), Ce = !!R, we = Ce ? `${ye}-error` : void 0, Te = a ? `${ye}-description` : void 0, Ee = E ?? ge?.size ?? "md", De = j || Ce || !_e && !!ge?.invalid, Oe = A || !_e && !!ge?.disabled, ke = k || !_e && !!ge?.required, Ae = [
2626
2675
  l,
2627
- !U && !l ? be?.ariaDescribedBy : void 0,
2628
- Oe,
2629
- De
2630
- ].filter(Boolean).join(" "), Pe = g(null), Fe = g(null), [Ie, W] = _(!1), Le = P || L, { entries: Re, options: ze } = Mn(e), Be = Pn({
2631
- options: ze,
2632
- searchable: Le,
2633
- searchValue: we
2634
- }), { selectedValue: Ve, selectedValues: G, isOpen: K, setIsOpen: He, setSelectedValue: Ue, activeIndex: We, setActiveIndex: Ge, closeDropdown: Ke, toggleDropdown: qe, selectValue: Je, onKeyDown: Ye } = xe({
2676
+ !_e && !l ? ge?.ariaDescribedBy : void 0,
2677
+ Te,
2678
+ we
2679
+ ].filter(Boolean).join(" "), je = g(null), Me = g(null), [Ne, Pe] = _(!1), q = P || L, { entries: Fe, options: Ie } = In(e), Le = Rn({
2680
+ options: Ie,
2681
+ searchable: q,
2682
+ searchValue: xe
2683
+ }), { selectedValue: Re, selectedValues: ze, isOpen: Be, setIsOpen: Ve, setSelectedValue: He, activeIndex: Ue, setActiveIndex: We, closeDropdown: Ge, toggleDropdown: Ke, selectValue: qe, onKeyDown: Je } = ve({
2635
2684
  value: m,
2636
2685
  defaultValue: v,
2637
2686
  onValueChange: y,
2638
- options: Be,
2687
+ options: Le,
2639
2688
  multiple: b,
2640
2689
  maxSelected: x,
2641
2690
  closeOnSelect: S,
2642
- disabled: je,
2643
- open: ne,
2644
- defaultOpen: re,
2645
- onOpenChange: ie
2646
- }), Xe = h(() => ze.find((e) => G.includes(e.value)), [ze, G]), Ze = h(() => ze.filter((e) => G.includes(e.value)), [ze, G]), Qe = !!Xe, $e = Array.isArray(Ve) ? Ve[0] ?? "" : Ve, { floatingStyles: et, setRef: tt, setFloatingRef: nt } = Nn({
2647
- isOpen: K,
2648
- onOpenChange: He,
2691
+ disabled: Oe,
2692
+ open: ee,
2693
+ defaultOpen: te,
2694
+ onOpenChange: ne
2695
+ }), Ye = h(() => Ie.find((e) => ze.includes(e.value)), [Ie, ze]), Xe = h(() => Ie.filter((e) => ze.includes(e.value)), [Ie, ze]), Ze = !!Ye, Qe = Array.isArray(Re) ? Re[0] ?? "" : Re, { floatingStyles: $e, setRef: et, setFloatingRef: tt } = Ln({
2696
+ isOpen: Be,
2697
+ onOpenChange: Ve,
2649
2698
  placement: z,
2650
- matchTriggerWidth: ee,
2651
- avoidCollisions: B
2652
- }), rt = u((e) => {
2653
- Je(e), Pe.current?.focus();
2654
- }, [Je]), it = u((e) => {
2699
+ matchTriggerWidth: B,
2700
+ avoidCollisions: V
2701
+ }), nt = u((e) => {
2702
+ qe(e), je.current?.focus();
2703
+ }, [qe]), rt = u((e) => {
2655
2704
  if (!b || e.length === 0) return;
2656
- let t = e.filter((e) => ze.some((t) => t.value === e && !t.disabled)), n = t.filter((e) => G.includes(e)), r = G.filter((e) => !t.includes(e)).length, i = typeof x == "number" ? Math.max(0, Math.min(t.length, x - r)) : t.length;
2705
+ let t = e.filter((e) => Ie.some((t) => t.value === e && !t.disabled)), n = t.filter((e) => ze.includes(e)), r = ze.filter((e) => !t.includes(e)).length, i = typeof x == "number" ? Math.max(0, Math.min(t.length, x - r)) : t.length;
2657
2706
  if (n.length > 0 && n.length >= i) {
2658
- Ue(G.filter((e) => !t.includes(e)));
2707
+ He(ze.filter((e) => !t.includes(e)));
2659
2708
  return;
2660
2709
  }
2661
- let a = [...G];
2710
+ let a = [...ze];
2662
2711
  for (let e of t) if (!a.includes(e)) {
2663
2712
  if (typeof x == "number" && a.length >= x) break;
2664
2713
  a.push(e);
2665
2714
  }
2666
- Ue(a), S && (Ke(), Pe.current?.focus());
2715
+ He(a), S && (Ge(), je.current?.focus());
2667
2716
  }, [
2668
- Ke,
2717
+ Ge,
2669
2718
  S,
2670
2719
  x,
2671
2720
  b,
2721
+ Ie,
2672
2722
  ze,
2673
- G,
2674
- Ue
2675
- ]), at = u(() => {
2676
- Je(""), oe?.(), Pe.current?.focus();
2677
- }, [oe, Je]), ot = u(() => {
2678
- K || W(!1), qe();
2679
- }, [K, qe]), st = u((e) => {
2680
- zn(e, K) && W(!0), Ye(e);
2681
- }, [K, Ye]), ct = u((e) => {
2682
- W(!0), Ge(e);
2683
- }, [Ge]), lt = u((e) => {
2684
- Te(e), ae?.(e);
2685
- }, [ae]), { isTopOverlay: ut } = ue({
2686
- active: K,
2687
- id: Ce
2723
+ He
2724
+ ]), it = u(() => {
2725
+ qe(""), ie?.(), je.current?.focus();
2726
+ }, [ie, qe]), at = u(() => {
2727
+ Be || Pe(!1), Ke();
2728
+ }, [Be, Ke]), ot = u((e) => {
2729
+ Un(e, Be) && Pe(!0), Je(e);
2730
+ }, [Be, Je]), st = u((e) => {
2731
+ Pe(!0), We(e);
2732
+ }, [We]), ct = u((e) => {
2733
+ Se(e), re?.(e);
2734
+ }, [re]), { isTopOverlay: lt } = le({
2735
+ active: Be,
2736
+ id: be
2688
2737
  });
2689
- ce({
2690
- active: K,
2738
+ se({
2739
+ active: Be,
2691
2740
  closeOnEscape: !0,
2692
2741
  closeOnOutsidePress: !0,
2693
- contentRef: Fe,
2694
- ignoreRefs: [Pe],
2695
- isTopOverlay: ut,
2696
- requestClose: Ke
2742
+ contentRef: Me,
2743
+ ignoreRefs: [je],
2744
+ isTopOverlay: lt,
2745
+ requestClose: Ge
2697
2746
  }), f(() => {
2698
- K || W(!1);
2699
- }, [K]), f(() => {
2700
- !K && we && Te("");
2701
- }, [K, we]), me({
2702
- active: K,
2747
+ Be || Pe(!1);
2748
+ }, [Be]), f(() => {
2749
+ !Be && xe && Se("");
2750
+ }, [Be, xe]), fe({
2751
+ active: Be,
2703
2752
  enabled: I
2704
2753
  });
2705
- let dt = u((e) => {
2706
- Pe.current = e, tt(e);
2707
- }, [tt]), ft = u((e) => {
2708
- Fe.current = e, nt(e);
2709
- }, [nt]), pt = de ? de(Xe) : b && Ze.length ? Ze.map((e) => e.label).join(", ") : Xe?.label ?? C, mt = w ?? "No options available", ht = N && G.length > 0 && !je && !M, gt = {
2710
- id: Se,
2711
- describedBy: Ne || void 0,
2754
+ let ut = u((e) => {
2755
+ je.current = e, et(e);
2756
+ }, [et]), dt = u((e) => {
2757
+ Me.current = e, tt(e);
2758
+ }, [tt]), ft = ce ? ce(Ye) : b && Xe.length ? Xe.map((e) => e.label).join(", ") : Ye?.label ?? C, pt = w ?? "No options available", mt = N && ze.length > 0 && !Oe && !M, ht = {
2759
+ id: ye,
2760
+ describedBy: Ae || void 0,
2712
2761
  labelledBy: c ? void 0 : d,
2713
- isOpen: K,
2714
- disabled: je,
2715
- required: Me,
2716
- listboxId: Ce,
2717
- activeIndex: We,
2718
- ariaLabel: c ?? (!i && !be?.labelId ? Xe?.label || C : void 0),
2719
- error: Ae,
2762
+ isOpen: Be,
2763
+ disabled: Oe,
2764
+ required: ke,
2765
+ listboxId: be,
2766
+ activeIndex: Ue,
2767
+ ariaLabel: c ?? (!i && !ge?.labelId ? Ye?.label || C : void 0),
2768
+ error: De,
2720
2769
  loading: M,
2721
- displayText: pt,
2722
- isPlaceholder: !Qe,
2723
- size: ke,
2770
+ displayText: ft,
2771
+ isPlaceholder: !Ze,
2772
+ size: Ee,
2724
2773
  color: D,
2725
2774
  variant: O,
2726
- startIcon: V,
2727
- endIcon: se,
2728
- prefix: le,
2729
- suffix: H,
2730
- clearable: ht,
2731
- className: _e,
2732
- buttonRef: dt,
2733
- onClear: at,
2734
- onClick: ot,
2735
- onKeyDown: st,
2736
- onBlur: pe,
2737
- onFocus: he
2738
- }, _t = {
2739
- isOpen: K,
2740
- listboxId: Ce,
2741
- labelledById: Se,
2742
- style: et,
2743
- options: Be,
2744
- entries: Le || we ? void 0 : Re,
2775
+ startIcon: U,
2776
+ endIcon: ae,
2777
+ prefix: oe,
2778
+ suffix: W,
2779
+ clearable: mt,
2780
+ className: me,
2781
+ buttonRef: ut,
2782
+ onClear: it,
2783
+ onClick: at,
2784
+ onKeyDown: ot,
2785
+ onBlur: ue,
2786
+ onFocus: de
2787
+ }, gt = {
2788
+ isOpen: Be,
2789
+ listboxId: be,
2790
+ labelledById: ye,
2791
+ style: $e,
2792
+ options: Le,
2793
+ entries: q || xe ? void 0 : Fe,
2745
2794
  multiple: b,
2746
2795
  color: D,
2747
2796
  variant: O,
2748
- searchable: Le,
2797
+ searchable: q,
2749
2798
  command: L,
2750
2799
  virtual: F,
2751
- portal: te,
2752
- searchValue: we,
2800
+ portal: H,
2801
+ searchValue: xe,
2753
2802
  loading: M,
2754
2803
  loadingText: T,
2755
- emptyText: mt,
2756
- renderOption: fe,
2757
- selectedValue: $e,
2758
- selectedValues: G,
2759
- activeIndex: We,
2760
- visualActiveIndex: Ie ? We : -1,
2761
- className: ve,
2762
- setDropdownRef: ft,
2763
- onSelect: rt,
2764
- onSelectGroup: it,
2765
- onMouseEnter: ct,
2766
- onSearchChange: lt
2767
- }, vt = /* @__PURE__ */ r(t, { children: [s && b && G.length > 0 && /* @__PURE__ */ n(t, { children: G.map((e) => /* @__PURE__ */ n("input", {
2804
+ emptyText: pt,
2805
+ renderOption: G,
2806
+ selectedValue: Qe,
2807
+ selectedValues: ze,
2808
+ activeIndex: Ue,
2809
+ visualActiveIndex: Ne ? Ue : -1,
2810
+ className: K,
2811
+ setDropdownRef: dt,
2812
+ onSelect: nt,
2813
+ onSelectGroup: rt,
2814
+ onMouseEnter: st,
2815
+ onSearchChange: ct
2816
+ }, _t = /* @__PURE__ */ r(t, { children: [s && b && ze.length > 0 && /* @__PURE__ */ n(t, { children: ze.map((e) => /* @__PURE__ */ n("input", {
2768
2817
  type: "hidden",
2769
2818
  name: s,
2770
2819
  value: e,
2771
- disabled: je
2820
+ disabled: Oe
2772
2821
  }, e)) }), s && !b && /* @__PURE__ */ n("input", {
2773
2822
  type: "hidden",
2774
2823
  name: s,
2775
- value: $e,
2776
- disabled: je
2777
- })] }), yt = kn(e), bt = /* @__PURE__ */ r(an, {
2824
+ value: Qe,
2825
+ disabled: Oe
2826
+ })] }), vt = Nn(e), yt = /* @__PURE__ */ r(cn, {
2778
2827
  value: {
2779
- triggerProps: gt,
2780
- contentProps: _t
2828
+ triggerProps: ht,
2829
+ contentProps: gt
2781
2830
  },
2782
- children: [vt, yt ? e : /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(In, {}), /* @__PURE__ */ n(un, { children: e })] })]
2783
- }), xt = /* @__PURE__ */ r(an, {
2831
+ children: [_t, vt ? e : /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(Bn, {}), /* @__PURE__ */ n(mn, { children: e })] })]
2832
+ }), bt = /* @__PURE__ */ r(cn, {
2784
2833
  value: {
2785
- triggerProps: gt,
2786
- contentProps: _t
2834
+ triggerProps: ht,
2835
+ contentProps: gt
2787
2836
  },
2788
2837
  children: [
2789
- vt,
2790
- /* @__PURE__ */ n(Ln, { ...gt }),
2791
- /* @__PURE__ */ n(dn, { ..._t })
2838
+ _t,
2839
+ /* @__PURE__ */ n(Vn, { ...ht }),
2840
+ /* @__PURE__ */ n(hn, { ...gt })
2792
2841
  ]
2793
2842
  });
2794
- return !U && be ? e ? bt : xt : /* @__PURE__ */ n(Dn, {
2795
- id: Se,
2843
+ return !_e && ge ? e ? yt : bt : /* @__PURE__ */ n(jn, {
2844
+ id: ye,
2796
2845
  label: i,
2797
2846
  description: a,
2798
2847
  error: R,
2799
- required: Me,
2800
- disabled: je,
2848
+ required: ke,
2849
+ disabled: Oe,
2801
2850
  bindControl: !1,
2802
- className: ge,
2803
- children: e ? bt : xt
2851
+ className: pe,
2852
+ children: e ? yt : bt
2804
2853
  });
2805
2854
  };
2806
- Rn.displayName = "SelectRoot";
2807
- function zn(e, t) {
2855
+ Hn.displayName = "SelectRoot";
2856
+ function Un(e, t) {
2808
2857
  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 === " ";
2809
2858
  }
2810
2859
  //#endregion
2811
2860
  //#region src/components/Select/Trigger/SelectIcon.tsx
2812
- var Bn = ({ children: e, className: t }) => {
2813
- let { triggerProps: r } = on();
2861
+ var Wn = ({ children: e, className: t }) => {
2862
+ let { triggerProps: r } = ln();
2814
2863
  return /* @__PURE__ */ n("span", {
2815
- className: P(X.arrow, { [X.open]: r.isOpen }, t),
2864
+ className: F(X.arrow, { [X.open]: r.isOpen }, t),
2816
2865
  "aria-hidden": "true",
2817
2866
  children: r.loading ? /* @__PURE__ */ n("span", { className: X.spinner }) : e ?? r.endIcon ?? /* @__PURE__ */ n(b, {})
2818
2867
  });
2819
2868
  };
2820
- Bn.__velliraSelectPart = "icon", Bn.displayName = "Select.Icon";
2869
+ Wn.__velliraSelectPart = "icon", Wn.displayName = "Select.Icon";
2821
2870
  //#endregion
2822
2871
  //#region src/components/Select/Trigger/SelectValue.tsx
2823
- var Vn = ({ children: e, className: t }) => {
2824
- let { triggerProps: r } = on();
2872
+ var Gn = ({ children: e, className: t }) => {
2873
+ let { triggerProps: r } = ln();
2825
2874
  return /* @__PURE__ */ n("span", {
2826
- className: P(X.valueWrap, t),
2875
+ className: F(X.valueWrap, t),
2827
2876
  children: /* @__PURE__ */ n("span", {
2828
- className: P(X.value, { [X.placeholder]: r.isPlaceholder }),
2877
+ className: F(X.value, { [X.placeholder]: r.isPlaceholder }),
2829
2878
  children: e ?? r.displayText
2830
2879
  })
2831
2880
  });
2832
2881
  };
2833
- Vn.__velliraSelectPart = "value", Vn.displayName = "Select.Value";
2882
+ Gn.__velliraSelectPart = "value", Gn.displayName = "Select.Value";
2834
2883
  //#endregion
2835
2884
  //#region src/components/Select/Select.tsx
2836
- var Hn = Object.assign(Rn, {
2837
- Trigger: In,
2838
- Value: Vn,
2839
- Icon: Bn,
2840
- Content: un,
2841
- Search: gn,
2842
- Group: _n,
2843
- Label: vn,
2844
- Item: cn,
2845
- ItemIcon: Sn,
2846
- ItemDescription: xn,
2847
- ItemBadge: bn,
2848
- Separator: yn,
2849
- Empty: mn,
2850
- Loading: hn
2885
+ var Kn = Object.assign(Hn, {
2886
+ Trigger: Bn,
2887
+ Value: Gn,
2888
+ Icon: Wn,
2889
+ Content: mn,
2890
+ Search: bn,
2891
+ Group: xn,
2892
+ Label: Sn,
2893
+ Item: fn,
2894
+ ItemIcon: En,
2895
+ ItemDescription: Tn,
2896
+ ItemBadge: wn,
2897
+ Separator: Cn,
2898
+ Empty: vn,
2899
+ Loading: yn
2851
2900
  });
2852
- Hn.displayName = "Select";
2901
+ Kn.displayName = "Select";
2853
2902
  //#endregion
2854
2903
  //#region src/components/Tabs/internal/TabsContext.tsx
2855
- var Un = s(null), Wn = () => {
2856
- let e = d(Un);
2904
+ var qn = s(null), Jn = () => {
2905
+ let e = d(qn);
2857
2906
  if (!e) throw Error("Tabs components must be used inside Tabs");
2858
2907
  return e;
2859
- }, Gn = {
2908
+ }, Yn = {
2860
2909
  panel: "_panel_1v1a9_1",
2861
2910
  visible: "_visible_1v1a9_10",
2862
2911
  vertical: "_vertical_1v1a9_14"
2863
- }, Kn = ({ value: e, children: t, className: r, forceMount: i = !1, ...a }) => {
2864
- let { value: o, orientation: s, keepMounted: c, lazyMount: l, registerContent: u, getTriggerId: d, getContentId: p } = Wn(), m = o === e, [h, g] = _(m);
2912
+ }, Xn = ({ value: e, children: t, className: r, forceMount: i = !1, ...a }) => {
2913
+ let { value: o, orientation: s, keepMounted: c, lazyMount: l, registerContent: u, getTriggerId: d, getContentId: p } = Jn(), m = o === e, [h, g] = _(m);
2865
2914
  return f(() => (u(e, !0), () => {
2866
2915
  u(e, !1);
2867
2916
  }), [u, e]), f(() => {
@@ -2875,15 +2924,15 @@ var Un = s(null), Wn = () => {
2875
2924
  tabIndex: 0,
2876
2925
  "data-state": m ? "active" : "inactive",
2877
2926
  "data-orientation": s,
2878
- className: P(Gn.panel, m && Gn.visible, s === "vertical" && Gn.vertical, r),
2927
+ className: F(Yn.panel, m && Yn.visible, s === "vertical" && Yn.vertical, r),
2879
2928
  children: t
2880
2929
  }) : null;
2881
2930
  };
2882
- Kn.displayName = "Tabs.Content";
2931
+ Xn.displayName = "Tabs.Content";
2883
2932
  //#endregion
2884
2933
  //#region src/components/Tabs/internal/useTabsIndicator.ts
2885
- var qn = 8, Jn = 360, Yn = () => {
2886
- let e = g(null), t = g(null), n = g(void 0), r = g(null), [i, a] = _({}), { value: o, orientation: s, variant: c, collectionVersion: l, getTriggerId: u } = Wn();
2934
+ var Zn = 8, Qn = 360, $n = () => {
2935
+ let e = g(null), t = g(null), n = g(void 0), r = g(null), [i, a] = _({}), { value: o, orientation: s, variant: c, collectionVersion: l, getTriggerId: u } = Jn();
2887
2936
  return f(() => () => {
2888
2937
  r.current?.cancel();
2889
2938
  }, []), m(() => {
@@ -2919,7 +2968,7 @@ var qn = 8, Jn = 360, Yn = () => {
2919
2968
  let s = t.current;
2920
2969
  if (e && c === "line" && s && n.current !== o && !(typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) && typeof i.animate == "function") {
2921
2970
  r.current?.cancel();
2922
- let e = s.y + s.height / 2, t = p.y + p.height / 2, n = e - qn / 2, a = t - qn / 2;
2971
+ let e = s.y + s.height / 2, t = p.y + p.height / 2, n = e - Zn / 2, a = t - Zn / 2;
2923
2972
  r.current = i.animate([
2924
2973
  {
2925
2974
  height: `${s.height}px`,
@@ -2927,12 +2976,12 @@ var qn = 8, Jn = 360, Yn = () => {
2927
2976
  offset: 0
2928
2977
  },
2929
2978
  {
2930
- height: `${qn}px`,
2979
+ height: `${Zn}px`,
2931
2980
  transform: `translate3d(0, ${n}px, 0)`,
2932
2981
  offset: .28
2933
2982
  },
2934
2983
  {
2935
- height: `${qn}px`,
2984
+ height: `${Zn}px`,
2936
2985
  transform: `translate3d(0, ${a}px, 0)`,
2937
2986
  offset: .64
2938
2987
  },
@@ -2942,7 +2991,7 @@ var qn = 8, Jn = 360, Yn = () => {
2942
2991
  offset: 1
2943
2992
  }
2944
2993
  ], {
2945
- duration: Jn,
2994
+ duration: Qn,
2946
2995
  easing: "cubic-bezier(0.22, 1, 0.36, 1)",
2947
2996
  fill: "none"
2948
2997
  });
@@ -2958,7 +3007,7 @@ var qn = 8, Jn = 360, Yn = () => {
2958
3007
  let h = t.current;
2959
3008
  if (e && c === "line" && h && n.current !== o && !(typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) && typeof i.animate == "function") {
2960
3009
  r.current?.cancel();
2961
- let e = h.x + h.width / 2, t = p.x + p.width / 2, n = e - qn / 2, a = t - qn / 2;
3010
+ let e = h.x + h.width / 2, t = p.x + p.width / 2, n = e - Zn / 2, a = t - Zn / 2;
2962
3011
  r.current = i.animate([
2963
3012
  {
2964
3013
  width: `${h.width}px`,
@@ -2966,12 +3015,12 @@ var qn = 8, Jn = 360, Yn = () => {
2966
3015
  offset: 0
2967
3016
  },
2968
3017
  {
2969
- width: `${qn}px`,
3018
+ width: `${Zn}px`,
2970
3019
  transform: `translate3d(${n}px, 0, 0)`,
2971
3020
  offset: .28
2972
3021
  },
2973
3022
  {
2974
- width: `${qn}px`,
3023
+ width: `${Zn}px`,
2975
3024
  transform: `translate3d(${a}px, 0, 0)`,
2976
3025
  offset: .64
2977
3026
  },
@@ -2981,7 +3030,7 @@ var qn = 8, Jn = 360, Yn = () => {
2981
3030
  offset: 1
2982
3031
  }
2983
3032
  ], {
2984
- duration: Jn,
3033
+ duration: Qn,
2985
3034
  easing: "cubic-bezier(0.22, 1, 0.36, 1)",
2986
3035
  fill: "none"
2987
3036
  });
@@ -3009,7 +3058,7 @@ var qn = 8, Jn = 360, Yn = () => {
3009
3058
  ref: e,
3010
3059
  style: i
3011
3060
  }), [i]);
3012
- }, Xn = {
3061
+ }, er = {
3013
3062
  list: "_list_j3cp3_1",
3014
3063
  vertical: "_vertical_j3cp3_10",
3015
3064
  line: "_line_j3cp3_17",
@@ -3017,24 +3066,24 @@ var qn = 8, Jn = 360, Yn = () => {
3017
3066
  segmented: "_segmented_j3cp3_29",
3018
3067
  scrollable: "_scrollable_j3cp3_37",
3019
3068
  indicator: "_indicator_j3cp3_46"
3020
- }, Zn = ({ className: e, style: t, ...r }) => {
3021
- let { ref: i, style: a } = Yn();
3069
+ }, tr = ({ className: e, style: t, ...r }) => {
3070
+ let { ref: i, style: a } = $n();
3022
3071
  return /* @__PURE__ */ n("span", {
3023
3072
  ...r,
3024
3073
  ref: i,
3025
3074
  "aria-hidden": "true",
3026
- className: P(Xn.indicator, e),
3075
+ className: F(er.indicator, e),
3027
3076
  style: {
3028
3077
  ...a,
3029
3078
  ...t
3030
3079
  }
3031
3080
  });
3032
3081
  };
3033
- Zn.displayName = "Tabs.Indicator";
3082
+ tr.displayName = "Tabs.Indicator";
3034
3083
  //#endregion
3035
3084
  //#region src/components/Tabs/List/TabsList.tsx
3036
- var Qn = ({ children: e, className: t, scrollable: r, ...i }) => {
3037
- let { orientation: a, variant: o } = Wn(), s = r ?? !1;
3085
+ var nr = ({ children: e, className: t, scrollable: r, ...i }) => {
3086
+ let { orientation: a, variant: o } = Jn(), s = r ?? !1;
3038
3087
  return /* @__PURE__ */ n("div", {
3039
3088
  ...i,
3040
3089
  role: "tablist",
@@ -3042,18 +3091,18 @@ var Qn = ({ children: e, className: t, scrollable: r, ...i }) => {
3042
3091
  "data-orientation": a,
3043
3092
  "data-variant": o,
3044
3093
  "data-scrollable": s ? "" : void 0,
3045
- className: P(Xn.list, a === "vertical" && Xn.vertical, o === "line" && Xn.line, o === "pills" && Xn.pills, o === "segmented" && Xn.segmented, s && Xn.scrollable, t),
3094
+ className: F(er.list, a === "vertical" && er.vertical, o === "line" && er.line, o === "pills" && er.pills, o === "segmented" && er.segmented, s && er.scrollable, t),
3046
3095
  children: e
3047
3096
  });
3048
3097
  };
3049
- Qn.displayName = "TabsList";
3098
+ nr.displayName = "TabsList";
3050
3099
  //#endregion
3051
3100
  //#region src/components/Tabs/internal/useTabsCollection.ts
3052
- var $n = (e) => [...e].sort((e, t) => {
3101
+ var rr = (e) => [...e].sort((e, t) => {
3053
3102
  if (e.element === t.element) return 0;
3054
3103
  let n = e.element.compareDocumentPosition(t.element);
3055
3104
  return n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
3056
- }), er = () => {
3105
+ }), ir = () => {
3057
3106
  let e = g([]), t = g([]), [n, r] = _(0), i = u(() => {
3058
3107
  r((e) => e + 1);
3059
3108
  }, []);
@@ -3072,7 +3121,7 @@ var $n = (e) => [...e].sort((e, t) => {
3072
3121
  element: n,
3073
3122
  disabled: r
3074
3123
  }, o = e.current.findIndex((e) => e.element === n);
3075
- o >= 0 ? e.current[o] = a : e.current.push(a), e.current = $n(e.current), i();
3124
+ o >= 0 ? e.current[o] = a : e.current.push(a), e.current = rr(e.current), i();
3076
3125
  }, [i]),
3077
3126
  registerContent: u((e, n) => {
3078
3127
  let r = t.current.findIndex((t) => t.value === e);
@@ -3083,7 +3132,7 @@ var $n = (e) => [...e].sort((e, t) => {
3083
3132
  r < 0 && (t.current.push({ value: e }), i());
3084
3133
  }, [i])
3085
3134
  };
3086
- }, tr = ({ focusedValue: e, setValue: t, setFocusedValue: n, getTabs: r, orientation: i, activationMode: a, dir: o, loop: s }) => ({ onKeyDown: (c) => {
3135
+ }, ar = ({ focusedValue: e, setValue: t, setFocusedValue: n, getTabs: r, orientation: i, activationMode: a, dir: o, loop: s }) => ({ onKeyDown: (c) => {
3087
3136
  let l = r().filter((e) => !e.disabled);
3088
3137
  if (l.length === 0) return;
3089
3138
  let u = l.findIndex((e) => e.element === document.activeElement), d = l.findIndex((t) => t.value === e), f = u >= 0 ? u : d >= 0 ? d : 0, p = (e) => {
@@ -3120,15 +3169,15 @@ var $n = (e) => [...e].sort((e, t) => {
3120
3169
  }
3121
3170
  break;
3122
3171
  }
3123
- } }), nr = {
3172
+ } }), or = {
3124
3173
  tabs: "_tabs_1hj56_1",
3125
3174
  vertical: "_vertical_1hj56_30"
3126
- }, rr = ({ children: e, value: t, defaultValue: r, onValueChange: i, orientation: a = "horizontal", activationMode: o = "automatic", dir: s = "ltr", loop: c = !0, variant: l = "line", color: d = "primary", size: m = "md", keepMounted: h = !1, lazyMount: v = !1, disabled: y = !1, className: b, ...x }) => {
3127
- let S = p(), C = t !== void 0, { value: w, setValue: T } = U({
3175
+ }, sr = ({ children: e, value: t, defaultValue: r, onValueChange: i, orientation: a = "horizontal", activationMode: o = "automatic", dir: s = "ltr", loop: c = !0, variant: l = "line", color: d = "primary", size: m = "md", keepMounted: h = !1, lazyMount: v = !1, disabled: y = !1, className: b, ...x }) => {
3176
+ let S = p(), C = t !== void 0, { value: w, setValue: T } = ye({
3128
3177
  value: t,
3129
3178
  defaultValue: r,
3130
3179
  onValueChange: i
3131
- }), E = g(w), D = g(void 0), O = g(void 0), [k, A] = _(w), { version: j, triggersRef: M, contentsRef: N, registerTrigger: F, registerContent: I } = er(), L = u((e, t, n = !1) => {
3180
+ }), E = g(w), D = g(void 0), O = g(void 0), [k, A] = _(w), { version: j, triggersRef: M, contentsRef: N, registerTrigger: P, registerContent: I } = ir(), L = u((e, t, n = !1) => {
3132
3181
  if (!t) {
3133
3182
  let t = E.current, n = M.current, r = n.findIndex((t) => t.value === e);
3134
3183
  if (t === e && r >= 0) {
@@ -3136,15 +3185,15 @@ var $n = (e) => [...e].sort((e, t) => {
3136
3185
  D.current = i?.value ?? a?.value, !C && D.current && (T(D.current), A(D.current), D.current = void 0);
3137
3186
  }
3138
3187
  }
3139
- F(e, t, y || n);
3188
+ P(e, t, y || n);
3140
3189
  }, [
3141
3190
  y,
3142
3191
  C,
3143
- F,
3192
+ P,
3144
3193
  A,
3145
3194
  T,
3146
3195
  M
3147
- ]), { onKeyDown: R } = tr({
3196
+ ]), { onKeyDown: R } = ar({
3148
3197
  focusedValue: k,
3149
3198
  setValue: T,
3150
3199
  setFocusedValue: A,
@@ -3205,11 +3254,11 @@ var $n = (e) => [...e].sort((e, t) => {
3205
3254
  N,
3206
3255
  M,
3207
3256
  j
3208
- ]), /* @__PURE__ */ n(Un.Provider, {
3257
+ ]), /* @__PURE__ */ n(qn.Provider, {
3209
3258
  value: z,
3210
3259
  children: /* @__PURE__ */ n("div", {
3211
3260
  ...x,
3212
- className: P(nr.tabs, a === "vertical" && nr.vertical, b),
3261
+ className: F(or.tabs, a === "vertical" && or.vertical, b),
3213
3262
  "data-orientation": a,
3214
3263
  dir: s,
3215
3264
  "data-variant": l,
@@ -3220,8 +3269,8 @@ var $n = (e) => [...e].sort((e, t) => {
3220
3269
  })
3221
3270
  });
3222
3271
  };
3223
- rr.displayName = "Tabs";
3224
- var ir = {
3272
+ sr.displayName = "Tabs";
3273
+ var cr = {
3225
3274
  trigger: "_trigger_uc2y5_1",
3226
3275
  iconOnly: "_iconOnly_uc2y5_49",
3227
3276
  icon: "_icon_uc2y5_49",
@@ -3236,23 +3285,23 @@ var ir = {
3236
3285
  line: "_line_uc2y5_194",
3237
3286
  pills: "_pills_uc2y5_209",
3238
3287
  vertical: "_vertical_uc2y5_235"
3239
- }, ar = ({ children: e, className: t }) => /* @__PURE__ */ n("span", {
3240
- className: P(ir.badge, t),
3288
+ }, lr = ({ children: e, className: t }) => /* @__PURE__ */ n("span", {
3289
+ className: F(cr.badge, t),
3241
3290
  children: e
3242
3291
  });
3243
- ar.displayName = "Tabs.Badge";
3292
+ lr.displayName = "Tabs.Badge";
3244
3293
  //#endregion
3245
3294
  //#region src/components/Tabs/Trigger/TabsIcon.tsx
3246
- var or = ({ children: e, className: t }) => /* @__PURE__ */ n("span", {
3247
- className: P(ir.icon, t),
3295
+ var ur = ({ children: e, className: t }) => /* @__PURE__ */ n("span", {
3296
+ className: F(cr.icon, t),
3248
3297
  "aria-hidden": "true",
3249
3298
  children: e
3250
3299
  });
3251
- or.displayName = "Tabs.Icon";
3300
+ ur.displayName = "Tabs.Icon";
3252
3301
  //#endregion
3253
3302
  //#region src/components/Tabs/Trigger/TabsTrigger.tsx
3254
- var sr = c(({ value: e, children: t, className: a, disabled: o = !1, icon: s, badge: c, description: d, onClick: f, onKeyDown: p, ...m }, h) => {
3255
- let { value: g, focusedValue: _, setValue: v, setFocusedValue: y, orientation: b, variant: x, size: S, disabled: C, registerTrigger: w, onTriggerKeyDown: T, getTriggerId: E, getContentId: D } = Wn(), O = C || o, k = g === e, A = _ === e || !_ && k, j = i.toArray(t), M = j.some((e) => l(e) && e.type.displayName === "Tabs.Icon"), N = !!s, F = (N || M) && t == null;
3303
+ var dr = c(({ value: e, children: t, className: a, disabled: o = !1, icon: s, badge: c, description: d, onClick: f, onKeyDown: p, ...m }, h) => {
3304
+ let { value: g, focusedValue: _, setValue: v, setFocusedValue: y, orientation: b, variant: x, size: S, disabled: C, registerTrigger: w, onTriggerKeyDown: T, getTriggerId: E, getContentId: D } = Jn(), O = C || o, k = g === e, A = _ === e || !_ && k, j = i.toArray(t), M = j.some((e) => l(e) && e.type.displayName === "Tabs.Icon"), N = !!s, P = (N || M) && t == null;
3256
3305
  process.env.NODE_ENV !== "production" && N && M && console.warn(`Tabs.Trigger value "${e}" received both icon and Tabs.Icon. Tabs.Icon takes precedence.`);
3257
3306
  let I = u((t) => {
3258
3307
  w(e, t, O), typeof h == "function" ? h(t) : h && (h.current = t);
@@ -3275,7 +3324,7 @@ var sr = c(({ value: e, children: t, className: a, disabled: o = !1, icon: s, ba
3275
3324
  "data-state": k ? "active" : "inactive",
3276
3325
  "data-orientation": b,
3277
3326
  "data-disabled": O ? "" : void 0,
3278
- className: P(ir.trigger, ir[x], ir[S], b === "vertical" && ir.vertical, N && ir.withIcon, F && ir.iconOnly, a),
3327
+ className: F(cr.trigger, cr[x], cr[S], b === "vertical" && cr.vertical, N && cr.withIcon, P && cr.iconOnly, a),
3279
3328
  onClick: (t) => {
3280
3329
  f?.(t), !(t.defaultPrevented || O) && (y(e), v(e));
3281
3330
  },
@@ -3284,50 +3333,50 @@ var sr = c(({ value: e, children: t, className: a, disabled: o = !1, icon: s, ba
3284
3333
  },
3285
3334
  children: [
3286
3335
  N && !M && /* @__PURE__ */ n("span", {
3287
- className: ir.icon,
3336
+ className: cr.icon,
3288
3337
  "aria-hidden": "true",
3289
3338
  children: s
3290
3339
  }),
3291
3340
  t != null && (L ? /* @__PURE__ */ r("span", {
3292
- className: ir.body,
3341
+ className: cr.body,
3293
3342
  children: [/* @__PURE__ */ n("span", {
3294
- className: ir.label,
3343
+ className: cr.label,
3295
3344
  children: t
3296
3345
  }), d != null && /* @__PURE__ */ n("span", {
3297
- className: ir.description,
3346
+ className: cr.description,
3298
3347
  children: d
3299
3348
  })]
3300
3349
  }) : R ? /* @__PURE__ */ n("span", {
3301
- className: ir.label,
3350
+ className: cr.label,
3302
3351
  children: t
3303
3352
  }) : t),
3304
3353
  c != null && /* @__PURE__ */ n("span", {
3305
- className: ir.badge,
3354
+ className: cr.badge,
3306
3355
  children: c
3307
3356
  })
3308
3357
  ]
3309
3358
  });
3310
3359
  });
3311
- sr.displayName = "Tabs.Trigger";
3360
+ dr.displayName = "Tabs.Trigger";
3312
3361
  //#endregion
3313
3362
  //#region src/components/Tabs/Tabs.tsx
3314
- var cr = Object.assign(rr, {
3315
- List: Qn,
3316
- Trigger: sr,
3317
- Content: Kn,
3318
- Indicator: Zn,
3319
- Icon: or,
3320
- Badge: ar
3363
+ var fr = Object.assign(sr, {
3364
+ List: nr,
3365
+ Trigger: dr,
3366
+ Content: Xn,
3367
+ Indicator: tr,
3368
+ Icon: ur,
3369
+ Badge: lr
3321
3370
  });
3322
- cr.displayName = "Tabs";
3371
+ fr.displayName = "Tabs";
3323
3372
  //#endregion
3324
3373
  //#region src/components/Tooltip/internal/composeEventHandlers.ts
3325
- function lr(e, t) {
3374
+ function pr(e, t) {
3326
3375
  return (n) => {
3327
3376
  e?.(n), n.defaultPrevented || t?.(n);
3328
3377
  };
3329
3378
  }
3330
- function ur(...e) {
3379
+ function mr(...e) {
3331
3380
  return (t) => {
3332
3381
  e.forEach((e) => {
3333
3382
  if (e) {
@@ -3342,18 +3391,18 @@ function ur(...e) {
3342
3391
  }
3343
3392
  //#endregion
3344
3393
  //#region src/components/Tooltip/internal/TooltipContext.tsx
3345
- var dr = s(null), fr = s({
3394
+ var hr = s(null), gr = s({
3346
3395
  delay: {
3347
3396
  open: 300,
3348
3397
  close: 100
3349
3398
  },
3350
3399
  skipDelay: 300
3351
- }), pr = dr.Provider, mr = ({ children: e, delay: t = 700, skipDelay: r = 300 }) => {
3400
+ }), _r = hr.Provider, vr = ({ children: e, delay: t = 700, skipDelay: r = 300 }) => {
3352
3401
  let i = typeof t == "number" ? {
3353
3402
  open: t,
3354
3403
  close: 100
3355
3404
  } : t;
3356
- return /* @__PURE__ */ n(fr.Provider, {
3405
+ return /* @__PURE__ */ n(gr.Provider, {
3357
3406
  value: {
3358
3407
  delay: i,
3359
3408
  skipDelay: r
@@ -3361,39 +3410,39 @@ var dr = s(null), fr = s({
3361
3410
  children: e
3362
3411
  });
3363
3412
  };
3364
- function hr() {
3365
- let e = d(dr);
3413
+ function yr() {
3414
+ let e = d(hr);
3366
3415
  if (!e) throw Error("Tooltip compound components must be rendered inside Tooltip");
3367
3416
  return e;
3368
3417
  }
3369
- function gr() {
3370
- return d(fr);
3418
+ function br() {
3419
+ return d(gr);
3371
3420
  }
3372
- var _r = {
3421
+ var xr = {
3373
3422
  tooltip: "_tooltip_raj0t_1",
3374
3423
  arrow: "_arrow_raj0t_25"
3375
- }, vr = c(({ children: e, forceMount: t = !1, withArrow: i = !1, className: a, style: o, ...s }, c) => {
3376
- let l = hr();
3424
+ }, Sr = c(({ children: e, forceMount: t = !1, withArrow: i = !1, className: a, style: o, ...s }, c) => {
3425
+ let l = yr();
3377
3426
  return !t && !l.open ? null : /* @__PURE__ */ r("div", {
3378
3427
  ...l.getContentProps({
3379
3428
  id: l.contentId,
3380
3429
  role: "tooltip",
3381
3430
  ...s
3382
3431
  }),
3383
- ref: ur(c, l.setContentRef),
3384
- className: P(_r.tooltip, a),
3432
+ ref: mr(c, l.setContentRef),
3433
+ className: F(xr.tooltip, a),
3385
3434
  "data-placement": l.placement,
3386
3435
  "data-state": l.open ? "open" : "closed",
3387
3436
  style: {
3388
3437
  ...l.floatingStyles,
3389
3438
  ...o
3390
3439
  },
3391
- children: [e, i && /* @__PURE__ */ n(yr, {})]
3440
+ children: [e, i && /* @__PURE__ */ n(Cr, {})]
3392
3441
  });
3393
3442
  });
3394
- vr.displayName = "Tooltip.Content";
3395
- function yr() {
3396
- let e = hr(), t = {
3443
+ Sr.displayName = "Tooltip.Content";
3444
+ function Cr() {
3445
+ let e = yr(), t = {
3397
3446
  top: "bottom",
3398
3447
  right: "left",
3399
3448
  bottom: "top",
@@ -3401,7 +3450,7 @@ function yr() {
3401
3450
  }[e.placement.split("-")[0]];
3402
3451
  return /* @__PURE__ */ n("div", {
3403
3452
  ref: e.arrowRef,
3404
- className: _r.arrow,
3453
+ className: xr.arrow,
3405
3454
  style: {
3406
3455
  left: e.arrowX == null ? void 0 : `${e.arrowX}px`,
3407
3456
  top: e.arrowY == null ? void 0 : `${e.arrowY}px`,
@@ -3411,8 +3460,8 @@ function yr() {
3411
3460
  }
3412
3461
  //#endregion
3413
3462
  //#region src/components/Tooltip/internal/useTooltipDelay.ts
3414
- function br(e, t) {
3415
- let n = gr();
3463
+ function wr(e, t) {
3464
+ let n = br();
3416
3465
  return e == null ? n.delay : typeof e == "number" ? {
3417
3466
  open: e,
3418
3467
  close: n.delay.close
@@ -3423,7 +3472,7 @@ function br(e, t) {
3423
3472
  }
3424
3473
  //#endregion
3425
3474
  //#region src/components/Tooltip/internal/useTooltipInteractions.ts
3426
- function xr({ context: e, delay: t, disabled: n, interactive: r }) {
3475
+ function Tr({ context: e, delay: t, disabled: n, interactive: r }) {
3427
3476
  return N([M(e, {
3428
3477
  delay: t,
3429
3478
  enabled: !n,
@@ -3433,7 +3482,7 @@ function xr({ context: e, delay: t, disabled: n, interactive: r }) {
3433
3482
  }
3434
3483
  //#endregion
3435
3484
  //#region src/components/Tooltip/internal/useTooltipPosition.ts
3436
- function Sr({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
3485
+ function Er({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
3437
3486
  let o = g(null), s = tt({
3438
3487
  open: e,
3439
3488
  onOpenChange: t,
@@ -3452,30 +3501,30 @@ function Sr({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions
3452
3501
  }
3453
3502
  //#endregion
3454
3503
  //#region src/components/Tooltip/Root/TooltipRoot.tsx
3455
- var Cr = ({ 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 }) => {
3456
- let h = `${p()}-content`, _ = g(null), v = g(null), [y, b] = _e({
3504
+ var Dr = ({ 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 }) => {
3505
+ let h = `${p()}-content`, _ = g(null), v = g(null), [y, b] = K({
3457
3506
  value: t,
3458
3507
  defaultValue: r,
3459
3508
  onChange: i
3460
3509
  }), x = (e) => {
3461
3510
  l || b(e);
3462
- }, S = Sr({
3511
+ }, S = Er({
3463
3512
  open: y,
3464
3513
  onOpenChange: x,
3465
3514
  placement: a,
3466
3515
  offset: o,
3467
3516
  avoidCollisions: d,
3468
3517
  matchTriggerWidth: f
3469
- }), C = br(s, c), w = xr({
3518
+ }), C = wr(s, c), w = Tr({
3470
3519
  context: S.context,
3471
3520
  delay: C,
3472
3521
  disabled: l,
3473
3522
  interactive: u
3474
- }), { isTopOverlay: T } = ue({
3523
+ }), { isTopOverlay: T } = le({
3475
3524
  active: y,
3476
3525
  id: h
3477
3526
  });
3478
- return ce({
3527
+ return se({
3479
3528
  active: y,
3480
3529
  contentRef: _,
3481
3530
  ignoreRefs: [v],
@@ -3483,7 +3532,7 @@ var Cr = ({ children: e, open: t, defaultOpen: r = !1, onOpenChange: i, placemen
3483
3532
  closeOnOutsidePress: !u,
3484
3533
  isTopOverlay: T,
3485
3534
  requestClose: () => x(!1)
3486
- }), /* @__PURE__ */ n(pr, {
3535
+ }), /* @__PURE__ */ n(_r, {
3487
3536
  value: {
3488
3537
  contentId: h,
3489
3538
  open: y,
@@ -3496,34 +3545,34 @@ var Cr = ({ children: e, open: t, defaultOpen: r = !1, onOpenChange: i, placemen
3496
3545
  placement: S.placement,
3497
3546
  floatingStyles: S.floatingStyles,
3498
3547
  setOpen: x,
3499
- setTriggerRef: ur(v, S.setRef),
3500
- setContentRef: ur(_, S.setFloatingRef),
3548
+ setTriggerRef: mr(v, S.setRef),
3549
+ setContentRef: mr(_, S.setFloatingRef),
3501
3550
  getTriggerProps: w.getReferenceProps,
3502
3551
  getContentProps: w.getFloatingProps
3503
3552
  },
3504
3553
  children: e
3505
3554
  });
3506
3555
  };
3507
- Cr.displayName = "Tooltip.Root";
3556
+ Dr.displayName = "Tooltip.Root";
3508
3557
  //#endregion
3509
3558
  //#region src/components/Tooltip/Trigger/TooltipTrigger.tsx
3510
- var wr = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...a }) => {
3511
- let s = hr(), c = e && l(t) ? t : void 0, u = s.disabled || r || c?.props.disabled, d = s.getTriggerProps({
3559
+ var Or = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...a }) => {
3560
+ let s = yr(), c = e && l(t) ? t : void 0, u = s.disabled || r || c?.props.disabled, d = s.getTriggerProps({
3512
3561
  ...a,
3513
3562
  "aria-describedby": s.open ? s.contentId : void 0,
3514
3563
  "aria-disabled": u || void 0,
3515
3564
  "data-state": s.open ? "open" : "closed"
3516
3565
  }), f = {
3517
3566
  ...d,
3518
- ref: c ? ur(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
3519
- className: P(c?.props.className, i),
3567
+ ref: c ? mr(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
3568
+ className: F(c?.props.className, i),
3520
3569
  disabled: u || void 0,
3521
- onMouseEnter: lr(c?.props.onMouseEnter, d.onMouseEnter),
3522
- onMouseLeave: lr(c?.props.onMouseLeave, d.onMouseLeave),
3523
- onPointerEnter: lr(c?.props.onPointerEnter, d.onPointerEnter),
3524
- onPointerLeave: lr(c?.props.onPointerLeave, d.onPointerLeave),
3525
- onFocus: lr(c?.props.onFocus, d.onFocus),
3526
- onBlur: lr(c?.props.onBlur, d.onBlur)
3570
+ onMouseEnter: pr(c?.props.onMouseEnter, d.onMouseEnter),
3571
+ onMouseLeave: pr(c?.props.onMouseLeave, d.onMouseLeave),
3572
+ onPointerEnter: pr(c?.props.onPointerEnter, d.onPointerEnter),
3573
+ onPointerLeave: pr(c?.props.onPointerLeave, d.onPointerLeave),
3574
+ onFocus: pr(c?.props.onFocus, d.onFocus),
3575
+ onBlur: pr(c?.props.onBlur, d.onBlur)
3527
3576
  };
3528
3577
  return c ? o(c, f) : /* @__PURE__ */ n("button", {
3529
3578
  type: "button",
@@ -3531,18 +3580,18 @@ var wr = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...a }
3531
3580
  children: t
3532
3581
  });
3533
3582
  };
3534
- wr.displayName = "Tooltip.Trigger";
3583
+ Or.displayName = "Tooltip.Trigger";
3535
3584
  //#endregion
3536
3585
  //#region src/components/Tooltip/Tooltip.tsx
3537
- var Tr = Object.assign(Cr, {
3538
- Trigger: wr,
3539
- Content: vr,
3540
- Provider: mr
3586
+ var kr = Object.assign(Dr, {
3587
+ Trigger: Or,
3588
+ Content: Sr,
3589
+ Provider: vr
3541
3590
  });
3542
- Tr.displayName = "Tooltip";
3591
+ kr.displayName = "Tooltip";
3543
3592
  //#endregion
3544
3593
  //#region src/utils/devWarning.ts
3545
- var Er = (e, t) => {
3594
+ var Ar = (e, t) => {
3546
3595
  process.env.NODE_ENV !== "production" && !e && console.warn(t);
3547
3596
  }, Z = {
3548
3597
  button: "_button_1xn9g_1",
@@ -3572,23 +3621,23 @@ var Er = (e, t) => {
3572
3621
  "button-spin": "_button-spin_1xn9g_1",
3573
3622
  badge: "_badge_1xn9g_812",
3574
3623
  shortcut: "_shortcut_1xn9g_826"
3575
- }, Dr = 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: N, ...F }, I) => {
3576
- 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 = P(Z.button, Z[i], Z[a], Z[s], Z[c], C, {
3577
- [Z.disabled]: B,
3624
+ }, jr = 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: N, ...P }, I) => {
3625
+ let L = S && l(e) ? e : void 0, R = L ? L.props.children : e, z = x || !R && !!(m || h), B = !!(T || E || L?.props["aria-label"] || L?.props["aria-labelledby"]), V = d || f, H = f && p ? p : R, ee = p && R && !z && (typeof R == "string" || typeof R == "number") && (typeof p == "string" || typeof p == "number") ? String(f ? R : p) : void 0, te = O === "_blank" && !k ? "noreferrer noopener" : k, ne = F(Z.button, Z[i], Z[a], Z[s], Z[c], C, {
3626
+ [Z.disabled]: V,
3578
3627
  [Z.loading]: f,
3579
3628
  [Z.fullWidth]: b,
3580
3629
  [Z.iconOnly]: z
3581
3630
  });
3582
- Er(!S || !D, "Button: pass href to the child element when using asChild."), Er(!S || !!L, "Button: asChild requires a single valid React element child."), Er(!z || ee, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
3583
- let ae = (e) => {
3631
+ Ar(!S || !D, "Button: pass href to the child element when using asChild."), Ar(!S || !!L, "Button: asChild requires a single valid React element child."), Ar(!z || B, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
3632
+ let re = (e) => {
3584
3633
  e.preventDefault(), e.stopPropagation();
3585
- }, oe = (e) => {
3586
- if (B) {
3587
- ae(e);
3634
+ }, ie = (e) => {
3635
+ if (V) {
3636
+ re(e);
3588
3637
  return;
3589
3638
  }
3590
3639
  L?.props.onClick?.(e), e.defaultPrevented || w?.(e);
3591
- }, V = /* @__PURE__ */ r(t, { children: [
3640
+ }, U = /* @__PURE__ */ r(t, { children: [
3592
3641
  f && (g ? /* @__PURE__ */ n("span", {
3593
3642
  className: Z.icon,
3594
3643
  "aria-hidden": "true",
@@ -3601,12 +3650,12 @@ var Er = (e, t) => {
3601
3650
  className: Z.icon,
3602
3651
  children: m
3603
3652
  }),
3604
- te && !z && /* @__PURE__ */ n("span", {
3653
+ H && !z && /* @__PURE__ */ n("span", {
3605
3654
  className: Z.label,
3606
- "data-measure": ne,
3655
+ "data-measure": ee,
3607
3656
  children: /* @__PURE__ */ n("span", {
3608
3657
  className: Z.labelText,
3609
- children: te
3658
+ children: H
3610
3659
  })
3611
3660
  }),
3612
3661
  _ && !z && /* @__PURE__ */ n("span", {
@@ -3623,53 +3672,53 @@ var Er = (e, t) => {
3623
3672
  })
3624
3673
  ] });
3625
3674
  return L ? o(L, {
3626
- ...F,
3675
+ ...P,
3627
3676
  ref: I,
3628
3677
  "aria-busy": f || void 0,
3629
- "aria-disabled": B || void 0,
3678
+ "aria-disabled": V || void 0,
3630
3679
  "aria-label": T || L.props["aria-label"] || void 0,
3631
3680
  "aria-labelledby": E || L.props["aria-labelledby"] || void 0,
3632
- className: P(L.props.className, ie),
3633
- href: B ? void 0 : L.props.href,
3634
- onClick: oe,
3635
- tabIndex: B ? -1 : L.props.tabIndex,
3681
+ className: F(L.props.className, ne),
3682
+ href: V ? void 0 : L.props.href,
3683
+ onClick: ie,
3684
+ tabIndex: V ? -1 : L.props.tabIndex,
3636
3685
  title: y || L.props.title,
3637
- children: V
3686
+ children: U
3638
3687
  }) : D ? /* @__PURE__ */ n("a", {
3639
3688
  ref: I,
3640
- href: B ? void 0 : D,
3689
+ href: V ? void 0 : D,
3641
3690
  id: j,
3642
3691
  role: M,
3643
- tabIndex: B ? -1 : N,
3692
+ tabIndex: V ? -1 : N,
3644
3693
  target: O,
3645
- rel: re,
3694
+ rel: te,
3646
3695
  download: A,
3647
- onClick: B ? ae : w,
3648
- "aria-disabled": B || void 0,
3696
+ onClick: V ? re : w,
3697
+ "aria-disabled": V || void 0,
3649
3698
  "aria-label": T || void 0,
3650
3699
  "aria-labelledby": E || void 0,
3651
3700
  "aria-busy": f || void 0,
3652
- className: ie,
3701
+ className: ne,
3653
3702
  title: y,
3654
- children: V
3703
+ children: U
3655
3704
  }) : /* @__PURE__ */ n("button", {
3656
- ...F,
3705
+ ...P,
3657
3706
  ref: I,
3658
3707
  id: j,
3659
3708
  role: M,
3660
3709
  tabIndex: N,
3661
3710
  type: u,
3662
- disabled: B,
3663
- onClick: B ? void 0 : w,
3711
+ disabled: V,
3712
+ onClick: V ? void 0 : w,
3664
3713
  "aria-label": T || void 0,
3665
3714
  "aria-labelledby": E || void 0,
3666
3715
  "aria-busy": f || void 0,
3667
- className: ie,
3716
+ className: ne,
3668
3717
  title: y,
3669
- children: V
3718
+ children: U
3670
3719
  });
3671
3720
  });
3672
- Dr.displayName = "Button";
3721
+ jr.displayName = "Button";
3673
3722
  var Q = {
3674
3723
  wrapper: "_wrapper_11rc7_1",
3675
3724
  colorPrimary: "_colorPrimary_11rc7_35",
@@ -3705,30 +3754,30 @@ var Q = {
3705
3754
  "checkbox-checkmark-in": "_checkbox-checkmark-in_11rc7_1",
3706
3755
  "checkbox-indeterminate-in": "_checkbox-indeterminate-in_11rc7_1",
3707
3756
  disabled: "_disabled_11rc7_369"
3708
- }, Or = {
3757
+ }, Mr = {
3709
3758
  sm: Q.labelSm,
3710
3759
  md: Q.labelMd,
3711
3760
  lg: Q.labelLg
3712
- }, kr = {
3761
+ }, Nr = {
3713
3762
  sm: Q.wrapperSm,
3714
3763
  md: Q.wrapperMd,
3715
3764
  lg: Q.wrapperLg
3716
- }, Ar = {
3765
+ }, Pr = {
3717
3766
  sm: Q.containerSm,
3718
3767
  md: Q.containerMd,
3719
3768
  lg: Q.containerLg
3720
- }, jr = {
3769
+ }, Fr = {
3721
3770
  primary: Q.colorPrimary,
3722
3771
  neutral: Q.colorNeutral,
3723
3772
  success: Q.colorSuccess,
3724
3773
  warning: Q.colorWarning,
3725
3774
  danger: Q.colorDanger
3726
- }, Mr = 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: h = !1, required: _ = !1, indeterminate: v = !1, className: b, wrapperClassName: x, onCheckedChange: S, error: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, ...D }, O) => {
3727
- let k = p(), A = e ?? k, j = g(null), M = !!C, N = i ? `${A}-description` : void 0, F = M ? `${A}-error` : void 0, I = [
3775
+ }, Ir = 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: h = !1, required: _ = !1, indeterminate: v = !1, className: b, wrapperClassName: x, onCheckedChange: S, error: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, ...D }, O) => {
3776
+ let k = p(), A = e ?? k, j = g(null), M = !!C, N = i ? `${A}-description` : void 0, P = M ? `${A}-error` : void 0, I = [
3728
3777
  E,
3729
3778
  N,
3730
- F
3731
- ].filter(Boolean).join(" "), [L, R] = _e({
3779
+ P
3780
+ ].filter(Boolean).join(" "), [L, R] = K({
3732
3781
  value: s,
3733
3782
  defaultValue: m,
3734
3783
  onChange: S
@@ -3742,15 +3791,15 @@ var Q = {
3742
3791
  f(() => {
3743
3792
  j.current && (j.current.indeterminate = v);
3744
3793
  }, [v]);
3745
- let ee = (e) => {
3794
+ let B = (e) => {
3746
3795
  R(e.target.checked);
3747
3796
  };
3748
- return Er(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ r("div", {
3749
- className: P(Q.container, Ar[c], d === "start" && Q.containerLabelStart, b),
3797
+ return Ar(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ r("div", {
3798
+ className: F(Q.container, Pr[c], d === "start" && Q.containerLabelStart, b),
3750
3799
  children: [
3751
3800
  /* @__PURE__ */ r("label", {
3752
3801
  htmlFor: A,
3753
- className: P(Q.wrapper, kr[c], jr[l], d === "start" && Q.labelStart, !t && Q.iconOnly, h && Q.disabled, x),
3802
+ className: F(Q.wrapper, Nr[c], Fr[l], d === "start" && Q.labelStart, !t && Q.iconOnly, h && Q.disabled, x),
3754
3803
  children: [
3755
3804
  /* @__PURE__ */ n("input", {
3756
3805
  ...D,
@@ -3760,7 +3809,7 @@ var Q = {
3760
3809
  checked: L,
3761
3810
  disabled: h,
3762
3811
  required: _,
3763
- onChange: ee,
3812
+ onChange: B,
3764
3813
  className: Q.input,
3765
3814
  "aria-label": w,
3766
3815
  "aria-labelledby": T,
@@ -3769,10 +3818,10 @@ var Q = {
3769
3818
  "aria-describedby": I || void 0
3770
3819
  }),
3771
3820
  /* @__PURE__ */ n("span", {
3772
- className: P(Q.customCheckbox, M && Q.error, v && Q.indeterminate),
3821
+ className: F(Q.customCheckbox, M && Q.error, v && Q.indeterminate),
3773
3822
  "aria-hidden": "true",
3774
3823
  children: v ? /* @__PURE__ */ n("span", {
3775
- className: P(Q.indeterminateMark, o && Q.customMark),
3824
+ className: F(Q.indeterminateMark, o && Q.customMark),
3776
3825
  children: o
3777
3826
  }) : L && /* @__PURE__ */ n("span", {
3778
3827
  className: Q.checkmark,
@@ -3780,7 +3829,7 @@ var Q = {
3780
3829
  })
3781
3830
  }),
3782
3831
  t && /* @__PURE__ */ r("span", {
3783
- className: P(Q.label, Or[c]),
3832
+ className: F(Q.label, Mr[c]),
3784
3833
  children: [t, _ && /* @__PURE__ */ n("span", {
3785
3834
  className: Q.requiredMark,
3786
3835
  "aria-hidden": "true",
@@ -3795,14 +3844,14 @@ var Q = {
3795
3844
  children: i
3796
3845
  }),
3797
3846
  M && /* @__PURE__ */ n("span", {
3798
- id: F,
3847
+ id: P,
3799
3848
  className: Q.errorText,
3800
3849
  children: C
3801
3850
  })
3802
3851
  ]
3803
3852
  });
3804
3853
  });
3805
- Mr.displayName = "Checkbox";
3854
+ Ir.displayName = "Checkbox";
3806
3855
  var $ = {
3807
3856
  inputGroup: "_inputGroup_1fjhk_1",
3808
3857
  primary: "_primary_1fjhk_29",
@@ -3844,7 +3893,7 @@ var $ = {
3844
3893
  toneDanger: "_toneDanger_1fjhk_876",
3845
3894
  toneMuted: "_toneMuted_1fjhk_880",
3846
3895
  toneInverse: "_toneInverse_1fjhk_884"
3847
- }, Nr = {
3896
+ }, Lr = {
3848
3897
  default: $.toneDefault,
3849
3898
  primary: $.tonePrimary,
3850
3899
  secondary: $.toneSecondary,
@@ -3852,7 +3901,7 @@ var $ = {
3852
3901
  danger: $.toneDanger,
3853
3902
  muted: $.toneMuted,
3854
3903
  inverse: $.toneInverse
3855
- }, Pr = (e = "text", t) => {
3904
+ }, Rr = (e = "text", t) => {
3856
3905
  if (t) return t;
3857
3906
  switch (e) {
3858
3907
  case "email": return "email";
@@ -3862,7 +3911,7 @@ var $ = {
3862
3911
  case "search": return "off";
3863
3912
  default: return;
3864
3913
  }
3865
- }, Fr = (e, t) => {
3914
+ }, zr = (e, t) => {
3866
3915
  let n = e.replace(/\D/g, ""), r = 0, i = "";
3867
3916
  for (let e of t) {
3868
3917
  if (e === "#") {
@@ -3874,39 +3923,39 @@ var $ = {
3874
3923
  r < n.length && (i += e);
3875
3924
  }
3876
3925
  return i;
3877
- }, Ir = (e, t) => t ? typeof t == "function" ? t(e) : Fr(e, t) : e, Lr = c(({ id: e, label: i, name: a, description: o, placeholder: s, value: c, defaultValue: l, type: d = "text", size: f, color: m = "primary", variant: h = "outline", error: v, invalid: y = !1, disabled: b = !1, required: x = !1, loading: S = !1, className: w, wrapperClassName: T, autoComplete: E, readOnly: D = !1, clearable: O = !1, onClear: k, onValueChange: A, revealPassword: j = !1, showCounter: M = !1, startIcon: N, 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": H, "aria-labelledby": ue, ...de }, fe) => {
3878
- let pe = p(), me = wn(), he = !!(i || o || v), ge = e ?? (he ? void 0 : me?.controlId) ?? pe, _e = g(null), [ve, ye] = _(!1), [be, xe] = _(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 || S, Ae = d === "password", je = Ae && j && ve ? "text" : d, Me = N ?? (d === "search" ? /* @__PURE__ */ n(C, {}) : null), Ne = F, Pe = Pr(d, E), Fe = S && !De, Ie = O && we && !De && !ke && !Fe, W = j && Ae && !De && !Fe && !Ie, Le = !Fe && !Ie && !W && !!Ne, Re = !!(M && V), ze = o ? `${ge}-description` : void 0, Be = v ? `${ge}-error` : void 0, Ve = Re ? `${ge}-counter` : void 0, G = [
3879
- le,
3880
- !he && !le ? me?.ariaDescribedBy : void 0,
3881
- ze,
3882
- Be,
3883
- Ve
3884
- ].filter(Boolean).join(" "), K = ee ?? "×", He = !!(Me || R), Ue = !!(Ne || z || Ie || W || Fe), We = !!(Me && R), Ge = !!(Ne && z), Ke = !!(I || L), qe = u((e) => {
3885
- if (_e.current = e, typeof fe == "function") {
3886
- fe(e);
3926
+ }, Br = (e, t) => t ? typeof t == "function" ? t(e) : zr(e, t) : e, Vr = c(({ id: e, label: i, name: a, description: o, placeholder: s, value: c, defaultValue: l, type: d = "text", size: f, color: m = "primary", variant: h = "outline", error: v, invalid: y = !1, disabled: b = !1, required: x = !1, loading: S = !1, className: w, wrapperClassName: T, autoComplete: E, readOnly: D = !1, clearable: O = !1, onClear: k, onValueChange: A, revealPassword: j = !1, showCounter: M = !1, startIcon: N, endIcon: P, startAddon: I, endAddon: L, prefix: R, suffix: z, clearIcon: B, mask: V, format: H, parse: ee, startIconTone: te = "default", endIconTone: ne = "default", clearIconTone: re = "danger", autoFocus: ie, maxLength: U, onMouseEnter: ae, onMouseLeave: oe, "aria-describedby": se, "aria-invalid": W, "aria-labelledby": ce, ...le }, G) => {
3927
+ let ue = p(), de = On(), fe = !!(i || o || v), pe = e ?? (fe ? void 0 : de?.controlId) ?? ue, me = g(null), [K, he] = _(!1), [ge, _e] = _(l ?? ""), ve = c !== void 0, ye = String((ve ? c : ge) ?? ""), be = H ? H(ye) : ye, xe = ye.length > 0, Se = f ?? de?.size ?? "md", Ce = y || !!v || !fe && !!de?.invalid, we = b || !fe && !!de?.disabled, Te = x || !fe && !!de?.required, Ee = D || S, De = d === "password", Oe = De && j && K ? "text" : d, ke = N ?? (d === "search" ? /* @__PURE__ */ n(C, {}) : null), Ae = P, je = Rr(d, E), Me = S && !we, Ne = O && xe && !we && !Ee && !Me, Pe = j && De && !we && !Me && !Ne, q = !Me && !Ne && !Pe && !!Ae, Fe = !!(M && U), Ie = o ? `${pe}-description` : void 0, Le = v ? `${pe}-error` : void 0, Re = Fe ? `${pe}-counter` : void 0, ze = [
3928
+ se,
3929
+ !fe && !se ? de?.ariaDescribedBy : void 0,
3930
+ Ie,
3931
+ Le,
3932
+ Re
3933
+ ].filter(Boolean).join(" "), Be = B ?? "×", Ve = !!(ke || R), He = !!(Ae || z || Ne || Pe || Me), Ue = !!(ke && R), We = !!(Ae && z), Ge = !!(I || L), Ke = u((e) => {
3934
+ if (me.current = e, typeof G == "function") {
3935
+ G(e);
3887
3936
  return;
3888
3937
  }
3889
- fe && (fe.current = e);
3890
- }, [fe]), Je = u((e) => {
3891
- let t = Ir(ne ? ne(e.target.value) : e.target.value, B);
3892
- U || xe(t), A?.(t);
3938
+ G && (G.current = e);
3939
+ }, [G]), qe = u((e) => {
3940
+ let t = Br(ee ? ee(e.target.value) : e.target.value, V);
3941
+ ve || _e(t), A?.(t);
3893
3942
  }, [
3894
- U,
3895
- B,
3943
+ ve,
3944
+ V,
3896
3945
  A,
3897
- ne
3898
- ]), Ye = u(() => {
3899
- U || xe(""), A?.(""), k?.(), _e.current?.focus();
3946
+ ee
3947
+ ]), Je = u(() => {
3948
+ ve || _e(""), A?.(""), k?.(), me.current?.focus();
3900
3949
  }, [
3901
- U,
3950
+ ve,
3902
3951
  k,
3903
3952
  A
3904
- ]), Xe = /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ r("div", {
3905
- className: P($.inputGroup, $[h], $[m], {
3906
- [$.hasAddons]: Ke,
3907
- [$.isDisabled]: De,
3908
- [$.isInvalid]: Ee,
3909
- [$.isLoading]: Fe
3953
+ ]), Ye = /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ r("div", {
3954
+ className: F($.inputGroup, $[h], $[m], {
3955
+ [$.hasAddons]: Ge,
3956
+ [$.isDisabled]: we,
3957
+ [$.isInvalid]: Ce,
3958
+ [$.isLoading]: Me
3910
3959
  }),
3911
3960
  children: [
3912
3961
  I && /* @__PURE__ */ n("span", {
@@ -3914,44 +3963,44 @@ var $ = {
3914
3963
  children: I
3915
3964
  }),
3916
3965
  /* @__PURE__ */ r("div", {
3917
- className: P($.inputWrapper, {
3918
- [$.hasLeftAdornment]: He,
3919
- [$.hasRightAdornment]: Ue,
3920
- [$.hasStartIconAndPrefix]: We,
3921
- [$.hasEndIconAndSuffix]: Ge
3966
+ className: F($.inputWrapper, {
3967
+ [$.hasLeftAdornment]: Ve,
3968
+ [$.hasRightAdornment]: He,
3969
+ [$.hasStartIconAndPrefix]: Ue,
3970
+ [$.hasEndIconAndSuffix]: We
3922
3971
  }),
3923
3972
  children: [
3924
- Me && /* @__PURE__ */ n("span", {
3973
+ ke && /* @__PURE__ */ n("span", {
3925
3974
  "aria-hidden": "true",
3926
- className: P($.startAdornment, Nr[re]),
3927
- children: Me
3975
+ className: F($.startAdornment, Lr[te]),
3976
+ children: ke
3928
3977
  }),
3929
3978
  R && /* @__PURE__ */ n("span", {
3930
3979
  className: $.prefix,
3931
3980
  children: R
3932
3981
  }),
3933
3982
  /* @__PURE__ */ n("input", {
3934
- ...de,
3935
- ref: qe,
3936
- id: ge,
3983
+ ...le,
3984
+ ref: Ke,
3985
+ id: pe,
3937
3986
  name: a,
3938
- type: je,
3939
- autoComplete: Pe,
3940
- className: P($.input, $[Te], { [$.error]: Ee }, w),
3941
- value: Ce,
3942
- onChange: Je,
3987
+ type: Oe,
3988
+ autoComplete: je,
3989
+ className: F($.input, $[Se], { [$.error]: Ce }, w),
3990
+ value: be,
3991
+ onChange: qe,
3943
3992
  placeholder: s,
3944
- disabled: De,
3945
- readOnly: ke,
3946
- required: Oe,
3947
- autoFocus: oe,
3948
- maxLength: V,
3949
- "aria-invalid": Ee ? !0 : H,
3950
- "aria-labelledby": ue ?? (he ? void 0 : me?.ariaLabelledBy),
3951
- "aria-describedby": G || void 0,
3993
+ disabled: we,
3994
+ readOnly: Ee,
3995
+ required: Te,
3996
+ autoFocus: ie,
3997
+ maxLength: U,
3998
+ "aria-invalid": Ce ? !0 : W,
3999
+ "aria-labelledby": ce ?? (fe ? void 0 : de?.ariaLabelledBy),
4000
+ "aria-describedby": ze || void 0,
3952
4001
  "aria-busy": S || void 0,
3953
- onMouseEnter: se,
3954
- onMouseLeave: ce
4002
+ onMouseEnter: ae,
4003
+ onMouseLeave: oe
3955
4004
  }),
3956
4005
  z && /* @__PURE__ */ n("span", {
3957
4006
  className: $.suffix,
@@ -3960,29 +4009,29 @@ var $ = {
3960
4009
  /* @__PURE__ */ r("div", {
3961
4010
  className: $.endSlot,
3962
4011
  children: [
3963
- Fe && /* @__PURE__ */ n("span", {
4012
+ Me && /* @__PURE__ */ n("span", {
3964
4013
  className: $.spinner,
3965
4014
  "aria-hidden": "true",
3966
4015
  "data-testid": "input-spinner"
3967
4016
  }),
3968
- W && /* @__PURE__ */ n("button", {
4017
+ Pe && /* @__PURE__ */ n("button", {
3969
4018
  type: "button",
3970
4019
  className: $.iconButton,
3971
- onClick: () => ye((e) => !e),
3972
- "aria-label": ve ? "Hide password" : "Show password",
3973
- children: ve ? "Hide" : "Show"
4020
+ onClick: () => he((e) => !e),
4021
+ "aria-label": K ? "Hide password" : "Show password",
4022
+ children: K ? "Hide" : "Show"
3974
4023
  }),
3975
- Ie && /* @__PURE__ */ n("button", {
4024
+ Ne && /* @__PURE__ */ n("button", {
3976
4025
  type: "button",
3977
- className: P($.clearButton, Nr[ae]),
3978
- onClick: Ye,
4026
+ className: F($.clearButton, Lr[re]),
4027
+ onClick: Je,
3979
4028
  "aria-label": "Clear input",
3980
- children: K
4029
+ children: Be
3981
4030
  }),
3982
- Le && Ne && /* @__PURE__ */ n("span", {
4031
+ q && Ae && /* @__PURE__ */ n("span", {
3983
4032
  "aria-hidden": "true",
3984
- className: P($.endAdornment, Nr[ie]),
3985
- children: Ne
4033
+ className: F($.endAdornment, Lr[ne]),
4034
+ children: Ae
3986
4035
  })
3987
4036
  ]
3988
4037
  })
@@ -3993,38 +4042,38 @@ var $ = {
3993
4042
  children: L
3994
4043
  })
3995
4044
  ]
3996
- }), Re && /* @__PURE__ */ r("div", {
3997
- id: Ve,
4045
+ }), Fe && /* @__PURE__ */ r("div", {
4046
+ id: Re,
3998
4047
  className: $.counter,
3999
4048
  children: [
4000
- Se.length,
4049
+ ye.length,
4001
4050
  " / ",
4002
- V
4051
+ U
4003
4052
  ]
4004
4053
  })] });
4005
- return !he && me ? Xe : /* @__PURE__ */ n(Dn, {
4006
- id: ge,
4054
+ return !fe && de ? Ye : /* @__PURE__ */ n(jn, {
4055
+ id: pe,
4007
4056
  label: i,
4008
4057
  description: o,
4009
4058
  error: v,
4010
- required: Oe,
4011
- disabled: De,
4012
- invalid: Ee,
4013
- size: Te,
4059
+ required: Te,
4060
+ disabled: we,
4061
+ invalid: Ce,
4062
+ size: Se,
4014
4063
  className: T,
4015
4064
  bindControl: !1,
4016
- children: Xe
4065
+ children: Ye
4017
4066
  });
4018
4067
  });
4019
- Lr.displayName = "Input";
4068
+ Vr.displayName = "Input";
4020
4069
  //#endregion
4021
4070
  //#region src/theme/ThemeContext.ts
4022
- var Rr = s(null), zr = (e) => e === "highContrast" ? "high-contrast" : e, Br = ({ theme: e, defaultTheme: t = "light", onThemeChange: r, syncDocument: i = !0, children: a }) => {
4023
- let [o, s] = _e({
4071
+ var Hr = s(null), Ur = (e) => e === "highContrast" ? "high-contrast" : e, Wr = ({ theme: e, defaultTheme: t = "light", onThemeChange: r, syncDocument: i = !0, children: a }) => {
4072
+ let [o, s] = K({
4024
4073
  value: e,
4025
4074
  defaultValue: t,
4026
4075
  onChange: r
4027
- }), c = zr(o);
4076
+ }), c = Ur(o);
4028
4077
  f(() => {
4029
4078
  if (!i || typeof document > "u") return;
4030
4079
  let { documentElement: e } = document, t = e.dataset.velliraTheme;
@@ -4040,7 +4089,7 @@ var Rr = s(null), zr = (e) => e === "highContrast" ? "high-contrast" : e, Br = (
4040
4089
  theme: o,
4041
4090
  setTheme: s
4042
4091
  }), [o, s]);
4043
- return /* @__PURE__ */ n(Rr.Provider, {
4092
+ return /* @__PURE__ */ n(Hr.Provider, {
4044
4093
  value: l,
4045
4094
  children: /* @__PURE__ */ n("div", {
4046
4095
  "data-vellira-theme": c,
@@ -4048,13 +4097,13 @@ var Rr = s(null), zr = (e) => e === "highContrast" ? "high-contrast" : e, Br = (
4048
4097
  })
4049
4098
  });
4050
4099
  };
4051
- Br.displayName = "ThemeProvider";
4100
+ Wr.displayName = "ThemeProvider";
4052
4101
  //#endregion
4053
4102
  //#region src/theme/useTheme.ts
4054
- function Vr() {
4055
- let e = d(Rr);
4103
+ function Gr() {
4104
+ let e = d(Hr);
4056
4105
  if (!e) throw Error("useTheme must be used within ThemeProvider.");
4057
4106
  return e;
4058
4107
  }
4059
4108
  //#endregion
4060
- export { Dr as Button, Mr as Checkbox, _t as Dropdown, Dn as FormField, Lr as Input, Ht as Modal, we as Portal, Ce as PortalProvider, qt as Radio, nn as RadioGroup, Hn as Select, cr as Tabs, Br as ThemeProvider, Tr as Tooltip, Vr as useTheme };
4109
+ export { jr as Button, Ir as Checkbox, _t as Dropdown, jn as FormField, Vr as Input, Gt as Modal, Se as Portal, xe as PortalProvider, Xt as Radio, on as RadioGroup, Kn as Select, fr as Tabs, Wr as ThemeProvider, kr as Tooltip, Gr as useTheme };