@vellira-ui/react 2.186.18 → 2.186.19

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
@@ -3,10 +3,10 @@ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
3
3
  import { Check as v, ChevronDown as y, ChevronRight as b, Close as x, Eye as S, EyeOff as C, Search as w } from "@vellira-ui/icons";
4
4
  import { createAutoFocusEvent as T, createConsoleOverlayDiagnostics as E, createOutsideEvent as D, createOverlayManagerStore as O, createOverlayZIndexPolicy as k, createRetainedResourceRegistry as A, deferOverlayFocusRestore as j, focusFirstElement as M, getCompoundSlot as N, getFocusableElements as P, markCompoundSlot as F, resolveOverlayPresentation as I, resolveSelectGroupSelection as L, runOverlayCloseAutoFocus as R } from "@vellira-ui/core";
5
5
  import z from "clsx";
6
- import { createPortal as B } from "react-dom";
7
- import { FloatingArrow as V, arrow as H, autoUpdate as U, flip as W, offset as G, shift as ee, size as te, useFloating as ne, useFocus as K, useHover as re, useInteractions as q } from "@floating-ui/react";
8
- import { controlSizes as ie, lightTheme as ae } from "@vellira-ui/tokens";
9
- var oe = {
6
+ import { createPortal as ee } from "react-dom";
7
+ import { FloatingArrow as B, arrow as V, autoUpdate as H, flip as U, offset as W, shift as te, size as ne, useFloating as re, useFocus as ie, useHover as ae, useInteractions as G } from "@floating-ui/react";
8
+ import { controlSizes as oe, lightTheme as se } from "@vellira-ui/tokens";
9
+ var ce = {
10
10
  root: "_root_n1iaz_1",
11
11
  item: "_item_n1iaz_11",
12
12
  trigger: "_trigger_n1iaz_15",
@@ -16,42 +16,42 @@ var oe = {
16
16
  contentInner: "_contentInner_n1iaz_79"
17
17
  };
18
18
  // src/components/Accordion/Content/AccordionContent.tsx
19
- function se({ children: e, forceMount: t = !1, hidden: n = !1, contentId: r }) {
19
+ function le({ children: e, forceMount: t = !1, hidden: n = !1, contentId: r }) {
20
20
  return n && !t ? null : /* @__PURE__ */ g("div", {
21
21
  id: r,
22
- className: oe.content,
22
+ className: ce.content,
23
23
  hidden: n,
24
24
  children: /* @__PURE__ */ g("div", {
25
- className: oe.contentInner,
25
+ className: ce.contentInner,
26
26
  children: e
27
27
  })
28
28
  });
29
29
  }
30
30
  // src/components/Accordion/Item/AccordionItem.tsx
31
- function ce({ children: e, className: t }) {
31
+ function ue({ children: e, className: t }) {
32
32
  return /* @__PURE__ */ g("div", {
33
- className: t ?? oe.item,
33
+ className: t ?? ce.item,
34
34
  children: e
35
35
  });
36
36
  }
37
37
  // src/components/Accordion/Trigger/AccordionTrigger.tsx
38
- function le({ children: e, disabled: t = !1, contentId: n, expanded: r = !1, onActivate: i }) {
38
+ function de({ children: e, disabled: t = !1, contentId: n, expanded: r = !1, onActivate: i }) {
39
39
  return /* @__PURE__ */ _("button", {
40
40
  type: "button",
41
- className: oe.trigger,
41
+ className: ce.trigger,
42
42
  disabled: t,
43
43
  "aria-expanded": r,
44
44
  "aria-controls": n,
45
45
  onClick: i,
46
46
  children: [/* @__PURE__ */ g("span", { children: e }), /* @__PURE__ */ g("span", {
47
- className: oe.indicator,
47
+ className: ce.indicator,
48
48
  "aria-hidden": "true",
49
49
  children: /* @__PURE__ */ g(y, { size: 16 })
50
50
  })]
51
51
  });
52
52
  }
53
53
  // src/components/Accordion/Root/AccordionRoot.tsx
54
- function ue(t) {
54
+ function fe(t) {
55
55
  let { children: r, value: i, defaultValue: s, disabled: c = !1 } = t, u = t.type ?? "single", f = t.type === "multiple" ? !1 : t.collapsible ?? !1, m = l(), h = i !== void 0, [_, v] = p(s ?? (u === "multiple" ? [] : "")), y = d(() => {
56
56
  let e = (h ? i : _) ?? [];
57
57
  return Array.isArray(e) ? e : e ? [e] : [];
@@ -78,56 +78,56 @@ function ue(t) {
78
78
  t.type
79
79
  ]);
80
80
  return /* @__PURE__ */ g("div", {
81
- className: oe.root,
81
+ className: ce.root,
82
82
  "data-disabled": c || void 0,
83
83
  children: e.map(r, (t) => {
84
- if (!a(t) || t.type !== ce) return t;
85
- let r = t, i = c || !!r.props.disabled, o = y.includes(r.props.value), s = `${m}-accordion-content-${r.props.value}`, l = e.map(r.props.children, (e) => a(e) ? e.type === le ? n(e, {
84
+ if (!a(t) || t.type !== ue) return t;
85
+ let r = t, i = c || !!r.props.disabled, o = y.includes(r.props.value), s = `${m}-accordion-content-${r.props.value}`, l = e.map(r.props.children, (e) => a(e) ? e.type === de ? n(e, {
86
86
  contentId: s,
87
87
  disabled: i,
88
88
  expanded: o,
89
89
  onActivate: i ? void 0 : () => b(r.props.value)
90
- }) : e.type === se ? n(e, {
90
+ }) : e.type === le ? n(e, {
91
91
  contentId: s,
92
92
  hidden: !o
93
93
  }) : e : e);
94
94
  return n(r, {
95
- className: `${oe.item} ${o ? oe.expanded : ""}`,
95
+ className: `${ce.item} ${o ? ce.expanded : ""}`,
96
96
  children: l
97
97
  });
98
98
  })
99
99
  });
100
100
  }
101
101
  // src/components/Accordion/Accordion.tsx
102
- function de(n) {
103
- return e.toArray(n).flatMap((e) => a(e) && e.type === t ? de(e.props.children) : e);
102
+ function pe(n) {
103
+ return e.toArray(n).flatMap((e) => a(e) && e.type === t ? pe(e.props.children) : e);
104
104
  }
105
- function fe({ children: e, ...t }) {
106
- return /* @__PURE__ */ g(ue, {
105
+ function me({ children: e, ...t }) {
106
+ return /* @__PURE__ */ g(fe, {
107
107
  ...t,
108
- children: de(e)
108
+ children: pe(e)
109
109
  });
110
110
  }
111
- var pe = Object.assign(fe, {
111
+ var he = Object.assign(me, {
112
112
  displayName: "Accordion",
113
- Item: ce,
114
- Trigger: le,
115
- Content: se
116
- }), me = { arrow: "_arrow_8b0vb_1" }, J = (...e) => z(e), he = ({ className: e }) => /* @__PURE__ */ g("span", {
113
+ Item: ue,
114
+ Trigger: de,
115
+ Content: le
116
+ }), ge = { arrow: "_arrow_8b0vb_1" }, K = (...e) => z(e), _e = ({ className: e }) => /* @__PURE__ */ g("span", {
117
117
  "aria-hidden": "true",
118
- className: J(me.arrow, e)
118
+ className: K(ge.arrow, e)
119
119
  });
120
- F(he, "arrow"), he.displayName = "Dropdown.Arrow";
120
+ F(_e, "arrow"), _e.displayName = "Dropdown.Arrow";
121
121
  // src/components/Dropdown/internal/types.ts
122
- function ge(e) {
122
+ function ve(e) {
123
123
  return N(e);
124
124
  }
125
125
  // src/components/Dropdown/internal/DropdownCollection.ts
126
- function Y(e, t) {
126
+ function q(e, t) {
127
127
  let n = () => null;
128
128
  return F(n, e), n.displayName = t, n;
129
129
  }
130
- function _e(t) {
130
+ function ye(t) {
131
131
  let n = 0, r, i, o, s, c = [], l = [], u = (e) => `${e}-${n++}`;
132
132
  function d(e) {
133
133
  l.push(e), c.push({
@@ -139,7 +139,7 @@ function _e(t) {
139
139
  function f(t, n = {}) {
140
140
  e.forEach(t, (e) => {
141
141
  if (!a(e)) return;
142
- let t = ge(e.type);
142
+ let t = ve(e.type);
143
143
  if (e.type.__velliraPortal) o = e, f(e.props.children, n);
144
144
  else switch (t) {
145
145
  case "trigger":
@@ -204,7 +204,7 @@ function _e(t) {
204
204
  type: "item",
205
205
  id: u("item"),
206
206
  props: t,
207
- label: be(t.children),
207
+ label: Se(t.children),
208
208
  disabled: t.disabled
209
209
  });
210
210
  return;
@@ -215,7 +215,7 @@ function _e(t) {
215
215
  type: "checkbox",
216
216
  id: u("checkbox"),
217
217
  props: t,
218
- label: be(t.children),
218
+ label: Se(t.children),
219
219
  disabled: t.disabled
220
220
  });
221
221
  return;
@@ -237,20 +237,20 @@ function _e(t) {
237
237
  props: t,
238
238
  groupId: n.radioGroupId ?? u("radio-group"),
239
239
  groupProps: n.radioGroupProps,
240
- label: be(t.children),
240
+ label: Se(t.children),
241
241
  disabled: t.disabled
242
242
  });
243
243
  return;
244
244
  }
245
245
  case "sub": {
246
- let t = e.props, n = ye(t.children);
246
+ let t = e.props, n = xe(t.children);
247
247
  if (!n.trigger) return;
248
- let r = n.trigger.props, i = _e(n.content?.props.children);
248
+ let r = n.trigger.props, i = ye(n.content?.props.children);
249
249
  d({
250
250
  type: "subTrigger",
251
251
  id: u("sub"),
252
252
  props: r,
253
- label: be(r.children),
253
+ label: Se(r.children),
254
254
  disabled: r.disabled,
255
255
  content: n.content?.props.children,
256
256
  subEntries: i.entries,
@@ -277,14 +277,14 @@ function _e(t) {
277
277
  trigger: r
278
278
  };
279
279
  }
280
- function ve(t) {
280
+ function be(t) {
281
281
  let n, r, i, o, s = [];
282
282
  return e.forEach(t, (e) => {
283
283
  if (!a(e)) {
284
284
  s.push(e);
285
285
  return;
286
286
  }
287
- let t = ge(e.type);
287
+ let t = ve(e.type);
288
288
  t === "itemIcon" ? i = e.props.children : t === "itemDescription" ? r = e.props.children : t === "itemBadge" ? n = e.props.children : t === "itemShortcut" ? o = e.props.children : s.push(e);
289
289
  }), {
290
290
  badge: n,
@@ -294,18 +294,18 @@ function ve(t) {
294
294
  shortcut: o
295
295
  };
296
296
  }
297
- function ye(t) {
297
+ function xe(t) {
298
298
  let n, r;
299
299
  return e.forEach(t, (e) => {
300
300
  if (!a(e)) return;
301
- let t = ge(e.type);
301
+ let t = ve(e.type);
302
302
  t === "subTrigger" && (n = e), t === "subContent" && (r = e);
303
303
  }), {
304
304
  content: r,
305
305
  trigger: n
306
306
  };
307
307
  }
308
- function be(t) {
308
+ function Se(t) {
309
309
  let n = [];
310
310
  function r(t) {
311
311
  e.forEach(t, (e) => {
@@ -314,14 +314,14 @@ function be(t) {
314
314
  return;
315
315
  }
316
316
  if (!a(e)) return;
317
- let t = ge(e.type);
317
+ let t = ve(e.type);
318
318
  t !== "itemBadge" && t !== "itemDescription" && t !== "itemIcon" && t !== "itemShortcut" && r(e.props.children);
319
319
  });
320
320
  }
321
321
  return r(t), n.join("").trim();
322
322
  }
323
323
  // src/components/Dropdown/CheckboxItem/DropdownCheckboxItem.tsx
324
- var xe = Y("checkboxItem", "Dropdown.CheckboxItem"), Se = {
324
+ var Ce = q("checkboxItem", "Dropdown.CheckboxItem"), we = {
325
325
  dropdown: "_dropdown_m7rnq_1",
326
326
  "dropdown-in": "_dropdown-in_m7rnq_1",
327
327
  primary: "_primary_m7rnq_42",
@@ -333,29 +333,29 @@ var xe = Y("checkboxItem", "Dropdown.CheckboxItem"), Se = {
333
333
  searchWrap: "_searchWrap_m7rnq_165",
334
334
  search: "_search_m7rnq_165",
335
335
  "dropdown-sheet-in": "_dropdown-sheet-in_m7rnq_1"
336
- }, Ce = Y("empty", "Dropdown.Empty"), we = ({ children: e }) => /* @__PURE__ */ g("li", {
336
+ }, Te = q("empty", "Dropdown.Empty"), Ee = ({ children: e }) => /* @__PURE__ */ g("li", {
337
337
  role: "presentation",
338
- className: Se.empty,
338
+ className: we.empty,
339
339
  children: e ?? "No actions available"
340
340
  });
341
- we.displayName = "DropdownEmptySurface";
341
+ Ee.displayName = "DropdownEmptySurface";
342
342
  // src/components/Dropdown/Group/DropdownGroup.tsx
343
- var Te = Y("group", "Dropdown.Group"), Ee = () => null;
344
- Ee.displayName = "DropdownGroupSurface";
343
+ var De = q("group", "Dropdown.Group"), Oe = () => null;
344
+ Oe.displayName = "DropdownGroupSurface";
345
345
  // src/components/Dropdown/internal/DropdownContext.tsx
346
- var De = r(null), Oe = r(null), ke = r(null), Ae = De.Provider, je = Oe.Provider;
347
- ke.Provider;
348
- function Me() {
349
- let e = s(De);
346
+ var ke = r(null), Ae = r(null), je = r(null), Me = ke.Provider, Ne = Ae.Provider;
347
+ je.Provider;
348
+ function Pe() {
349
+ let e = s(ke);
350
350
  if (!e) throw Error("Dropdown compound components must be used inside Dropdown.");
351
351
  return e;
352
352
  }
353
- function Ne() {
354
- let e = s(Oe);
353
+ function Fe() {
354
+ let e = s(Ae);
355
355
  if (!e) throw Error("Dropdown.Trigger must be used inside Dropdown.");
356
356
  return e;
357
357
  }
358
- var X = {
358
+ var J = {
359
359
  item: "_item_xmygj_1",
360
360
  disabled: "_disabled_xmygj_35",
361
361
  active: "_active_xmygj_53",
@@ -380,16 +380,16 @@ var X = {
380
380
  "dropdown-sub-in": "_dropdown-sub-in_xmygj_1",
381
381
  subLabel: "_subLabel_xmygj_300",
382
382
  subSeparator: "_subSeparator_xmygj_308"
383
- }, Pe = (e, t) => {
383
+ }, Ie = (e, t) => {
384
384
  process.env.NODE_ENV !== "production" && !e && console.warn(t);
385
- }, Fe = Y("item", "Dropdown.Item"), Ie = ({ item: e, itemIndex: t }) => {
386
- let r = Me(), i = f(void 0), [o, s] = p(e.type === "checkbox" ? e.props.defaultChecked ?? !1 : !1), c = r.activeIndex === t, l = r.openSubId === e.id, u = e.type === "checkbox", d = e.type === "radio", m = e.type === "subTrigger", y = u ? e.props.checked ?? o : d ? (e.groupProps?.value ?? r.radioValues[e.groupId]) === e.props.value : !1, x = r.loading || e.disabled, S = e.props, C = ve(S.children), w = C.icon ?? S.icon, T = C.description ?? ("description" in S ? S.description : void 0), E = C.badge ?? ("badge" in S ? S.badge : void 0), D = C.shortcut ?? S.shortcut, O = C.content.length ? C.content : S.children, k = "color" in S ? S.color : void 0, A = e.type === "item" ? e.props.href : void 0, j = e.type === "item" ? e.props.target : void 0, M = e.type === "item" ? e.props.download : void 0, N = r.getItemId(t), P = u ? "menuitemcheckbox" : d ? "menuitemradio" : "menuitem", F = e.type === "item" && j === "_blank" && !e.props.rel ? "noreferrer noopener" : e.type === "item" ? e.props.rel : void 0, I = A ? "a" : "li", L = u || d, R = S.asChild && a(S.children) ? S.children : void 0, z = J(X.item, X[r.size], {
387
- [X.active]: c,
388
- [X.disabled]: x,
389
- [X.checked]: y
390
- }, k && k !== "default" ? X[k] : void 0, S.className);
391
- Pe(!S.asChild || !!R, "Dropdown.Item: asChild requires a single valid React element child.");
392
- let B = (t) => {
385
+ }, Y = q("item", "Dropdown.Item"), X = ({ item: e, itemIndex: t }) => {
386
+ let r = Pe(), i = f(void 0), [o, s] = p(e.type === "checkbox" ? e.props.defaultChecked ?? !1 : !1), c = r.activeIndex === t, l = r.openSubId === e.id, u = e.type === "checkbox", d = e.type === "radio", m = e.type === "subTrigger", y = u ? e.props.checked ?? o : d ? (e.groupProps?.value ?? r.radioValues[e.groupId]) === e.props.value : !1, x = r.loading || e.disabled, S = e.props, C = be(S.children), w = C.icon ?? S.icon, T = C.description ?? ("description" in S ? S.description : void 0), E = C.badge ?? ("badge" in S ? S.badge : void 0), D = C.shortcut ?? S.shortcut, O = C.content.length ? C.content : S.children, k = "color" in S ? S.color : void 0, A = e.type === "item" ? e.props.href : void 0, j = e.type === "item" ? e.props.target : void 0, M = e.type === "item" ? e.props.download : void 0, N = r.getItemId(t), P = u ? "menuitemcheckbox" : d ? "menuitemradio" : "menuitem", F = e.type === "item" && j === "_blank" && !e.props.rel ? "noreferrer noopener" : e.type === "item" ? e.props.rel : void 0, I = A ? "a" : "li", L = u || d, R = S.asChild && a(S.children) ? S.children : void 0, z = K(J.item, J[r.size], {
387
+ [J.active]: c,
388
+ [J.disabled]: x,
389
+ [J.checked]: y
390
+ }, k && k !== "default" ? J[k] : void 0, S.className);
391
+ Ie(!S.asChild || !!R, "Dropdown.Item: asChild requires a single valid React element child.");
392
+ let ee = (t) => {
393
393
  if (x) t.preventDefault();
394
394
  else {
395
395
  if (u && e.type === "checkbox") {
@@ -398,9 +398,9 @@ var X = {
398
398
  }
399
399
  r.selectItem(e, Le(t));
400
400
  }
401
- }, V = () => {
401
+ }, B = () => {
402
402
  x || (r.setActiveIndex(t), m ? (window.clearTimeout(i.current), i.current = window.setTimeout(() => r.setOpenSubId(e.id), 120)) : (window.clearTimeout(i.current), r.setOpenSubId(void 0)));
403
- }, H = () => {
403
+ }, V = () => {
404
404
  window.clearTimeout(i.current);
405
405
  };
406
406
  return R ? /* @__PURE__ */ _(h, { children: [n(R, {
@@ -411,17 +411,18 @@ var X = {
411
411
  "aria-checked": u || d ? y : void 0,
412
412
  "aria-haspopup": m ? "menu" : void 0,
413
413
  "aria-expanded": m ? l : void 0,
414
+ "aria-controls": m && l ? `${N}-submenu` : void 0,
414
415
  "data-active": c || void 0,
415
416
  "data-state": l ? "open" : void 0,
416
- className: J(R.props.className, z),
417
+ className: K(R.props.className, z),
417
418
  onClick: (e) => {
418
- R.props.onClick?.(e), e.defaultPrevented || B(e);
419
+ R.props.onClick?.(e), e.defaultPrevented || ee(e);
419
420
  },
420
421
  onMouseEnter: (e) => {
421
- R.props.onMouseEnter?.(e), e.defaultPrevented || V(e);
422
+ R.props.onMouseEnter?.(e), e.defaultPrevented || B(e);
422
423
  },
423
424
  onMouseLeave: (e) => {
424
- R.props.onMouseLeave?.(e), e.defaultPrevented || H(e);
425
+ R.props.onMouseLeave?.(e), e.defaultPrevented || V(e);
425
426
  }
426
427
  }), Re(e, N, m, l, () => r.setOpenSubId(e.id))] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(I, {
427
428
  id: N,
@@ -435,49 +436,50 @@ var X = {
435
436
  "aria-checked": u || d ? y : void 0,
436
437
  "aria-haspopup": m ? "menu" : void 0,
437
438
  "aria-expanded": m ? l : void 0,
439
+ "aria-controls": m && l ? `${N}-submenu` : void 0,
438
440
  "data-active": c || void 0,
439
441
  "data-state": l ? "open" : void 0,
440
442
  className: z,
441
- onClick: B,
442
- onMouseEnter: V,
443
- onMouseLeave: H,
443
+ onClick: ee,
444
+ onMouseEnter: B,
445
+ onMouseLeave: V,
444
446
  children: [
445
447
  w && /* @__PURE__ */ g("span", {
446
- className: X.itemIcon,
448
+ className: J.itemIcon,
447
449
  children: w
448
450
  }),
449
451
  /* @__PURE__ */ _("span", {
450
- className: X.itemText,
452
+ className: J.itemText,
451
453
  children: [/* @__PURE__ */ g("span", {
452
- className: X.itemLabel,
454
+ className: J.itemLabel,
453
455
  children: O
454
456
  }), T && /* @__PURE__ */ g("span", {
455
- className: X.itemDescription,
457
+ className: J.itemDescription,
456
458
  children: T
457
459
  })]
458
460
  }),
459
461
  E && /* @__PURE__ */ g("span", {
460
- className: X.itemBadge,
462
+ className: J.itemBadge,
461
463
  children: E
462
464
  }),
463
465
  D && /* @__PURE__ */ g("span", {
464
- className: X.itemShortcut,
466
+ className: J.itemShortcut,
465
467
  children: D
466
468
  }),
467
469
  L && /* @__PURE__ */ g("span", {
468
- className: X.indicator,
470
+ className: J.indicator,
469
471
  "aria-hidden": "true",
470
472
  children: y ? /* @__PURE__ */ g(v, {}) : null
471
473
  }),
472
474
  m && /* @__PURE__ */ g("span", {
473
- className: X.itemShortcut,
475
+ className: J.itemShortcut,
474
476
  "aria-hidden": "true",
475
477
  children: /* @__PURE__ */ g(b, {})
476
478
  })
477
479
  ]
478
480
  }), Re(e, N, m, l, () => r.setOpenSubId(e.id))] });
479
481
  };
480
- Ie.displayName = "DropdownItemRow";
482
+ X.displayName = "DropdownItemRow";
481
483
  function Le(e) {
482
484
  let t = !1;
483
485
  return {
@@ -492,97 +494,104 @@ function Le(e) {
492
494
  }
493
495
  function Re(e, t, n, r, i) {
494
496
  return !n || !r || e.type !== "subTrigger" || e.subEntries.length === 0 ? null : /* @__PURE__ */ g("ul", {
497
+ id: `${t}-submenu`,
495
498
  role: "menu",
496
- className: X.subContent,
499
+ "aria-labelledby": t,
500
+ className: J.subContent,
497
501
  onMouseEnter: i,
498
502
  children: e.subEntries.map((e) => e.type === "label" ? /* @__PURE__ */ g("li", {
499
503
  role: "presentation",
500
- className: X.subLabel,
504
+ className: J.subLabel,
501
505
  children: e.props.children
502
506
  }, e.id) : e.type === "separator" ? /* @__PURE__ */ g("li", {
503
507
  role: "separator",
504
- className: X.subSeparator,
508
+ className: J.subSeparator,
505
509
  "aria-hidden": "true"
506
510
  }, e.id) : e.type === "item" ? /* @__PURE__ */ g(ze, {
507
511
  item: e.item,
512
+ itemIndex: e.itemIndex,
508
513
  id: `${t}-${e.itemIndex}`
509
514
  }, e.item.id) : null)
510
515
  });
511
516
  }
512
- function ze({ id: e, item: t }) {
513
- let n = Me(), [r, i] = p(t.type === "checkbox" ? t.props.defaultChecked ?? !1 : !1), a = t.type === "checkbox", o = t.type === "radio", s = a ? t.props.checked ?? r : o ? (t.groupProps?.value ?? n.radioValues[t.groupId]) === t.props.value : !1, c = t.props, l = ve(c.children), u = l.icon ?? c.icon, d = l.description ?? ("description" in c ? c.description : void 0), f = l.badge ?? ("badge" in c ? c.badge : void 0), m = l.shortcut ?? c.shortcut, h = l.content.length ? l.content : c.children, y = "color" in c ? c.color : void 0, b = n.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 = a ? "menuitemcheckbox" : o ? "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 = a || o, O = (e) => {
514
- if (b) e.preventDefault();
517
+ function ze({ id: e, item: t, itemIndex: n }) {
518
+ let r = Pe(), [i, a] = p(t.type === "checkbox" ? t.props.defaultChecked ?? !1 : !1), o = t.type === "checkbox", s = t.type === "radio", c = o ? t.props.checked ?? i : s ? (t.groupProps?.value ?? r.radioValues[t.groupId]) === t.props.value : !1, l = t.props, u = be(l.children), d = u.icon ?? l.icon, f = u.description ?? ("description" in l ? l.description : void 0), m = u.badge ?? ("badge" in l ? l.badge : void 0), h = u.shortcut ?? l.shortcut, y = u.content.length ? u.content : l.children, b = "color" in l ? l.color : void 0, x = r.loading || t.disabled, S = r.activeSubIndex === n, C = t.type === "item" ? t.props.href : void 0, w = t.type === "item" ? t.props.target : void 0, T = t.type === "item" ? t.props.download : void 0, E = o ? "menuitemcheckbox" : s ? "menuitemradio" : "menuitem", D = t.type === "item" && w === "_blank" && !t.props.rel ? "noreferrer noopener" : t.type === "item" ? t.props.rel : void 0, O = C ? "a" : "li", k = o || s, A = (e) => {
519
+ if (x) e.preventDefault();
515
520
  else {
516
- if (a && t.type === "checkbox") {
517
- let e = !s;
518
- i(e), t.props.onCheckedChange?.(e);
521
+ if (o && t.type === "checkbox") {
522
+ let e = !c;
523
+ a(e), t.props.onCheckedChange?.(e);
519
524
  }
520
- n.selectItem(t, Le(e));
525
+ r.selectItem(t, Le(e));
521
526
  }
522
527
  };
523
- return /* @__PURE__ */ _(E, {
528
+ return /* @__PURE__ */ _(O, {
524
529
  id: e,
525
- role: w,
526
- href: E === "a" && !b ? x : void 0,
527
- target: E === "a" && !b ? S : void 0,
528
- rel: E === "a" ? T : void 0,
529
- download: E === "a" && !b ? C : void 0,
530
- tabIndex: b ? -1 : 0,
531
- "aria-disabled": b || void 0,
532
- "aria-checked": a || o ? s : void 0,
533
- className: J(X.item, X[n.size], {
534
- [X.disabled]: b,
535
- [X.checked]: s
536
- }, y && y !== "default" ? X[y] : void 0),
537
- onClick: O,
530
+ role: E,
531
+ href: O === "a" && !x ? C : void 0,
532
+ target: O === "a" && !x ? w : void 0,
533
+ rel: O === "a" ? D : void 0,
534
+ download: O === "a" && !x ? T : void 0,
535
+ tabIndex: -1,
536
+ "aria-disabled": x || void 0,
537
+ "aria-checked": o || s ? c : void 0,
538
+ "data-active": S || void 0,
539
+ className: K(J.item, { [J.active]: S }, J[r.size], {
540
+ [J.disabled]: x,
541
+ [J.checked]: c
542
+ }, b && b !== "default" ? J[b] : void 0),
543
+ onClick: A,
544
+ onMouseEnter: () => {
545
+ x || r.setActiveSubIndex(n);
546
+ },
538
547
  children: [
539
- D && /* @__PURE__ */ g("span", {
540
- className: X.indicator,
548
+ k && /* @__PURE__ */ g("span", {
549
+ className: J.indicator,
541
550
  "aria-hidden": "true",
542
- children: s ? /* @__PURE__ */ g(v, {}) : null
551
+ children: c ? /* @__PURE__ */ g(v, {}) : null
543
552
  }),
544
- u && /* @__PURE__ */ g("span", {
545
- className: X.itemIcon,
546
- children: u
553
+ d && /* @__PURE__ */ g("span", {
554
+ className: J.itemIcon,
555
+ children: d
547
556
  }),
548
557
  /* @__PURE__ */ _("span", {
549
- className: X.itemText,
558
+ className: J.itemText,
550
559
  children: [/* @__PURE__ */ g("span", {
551
- className: X.itemLabel,
552
- children: h
553
- }), d && /* @__PURE__ */ g("span", {
554
- className: X.itemDescription,
555
- children: d
560
+ className: J.itemLabel,
561
+ children: y
562
+ }), f && /* @__PURE__ */ g("span", {
563
+ className: J.itemDescription,
564
+ children: f
556
565
  })]
557
566
  }),
558
- f && /* @__PURE__ */ g("span", {
559
- className: X.itemBadge,
560
- children: f
561
- }),
562
567
  m && /* @__PURE__ */ g("span", {
563
- className: X.itemShortcut,
568
+ className: J.itemBadge,
564
569
  children: m
570
+ }),
571
+ h && /* @__PURE__ */ g("span", {
572
+ className: J.itemShortcut,
573
+ children: h
565
574
  })
566
575
  ]
567
576
  });
568
577
  }
569
- var Be = { group: "_group_aviwv_1" }, Ve = Y("label", "Dropdown.Label"), He = ({ children: e, className: t }) => /* @__PURE__ */ g("li", {
578
+ var Be = { group: "_group_aviwv_1" }, Ve = q("label", "Dropdown.Label"), He = ({ children: e, className: t }) => /* @__PURE__ */ g("li", {
570
579
  role: "presentation",
571
- className: J(Be.group, t),
580
+ className: K(Be.group, t),
572
581
  children: e
573
582
  });
574
583
  He.displayName = "DropdownLabelSurface";
575
584
  // src/components/Dropdown/Loading/DropdownLoading.tsx
576
- var Ue = Y("loading", "Dropdown.Loading"), We = ({ children: e }) => /* @__PURE__ */ g("li", {
585
+ var Ue = q("loading", "Dropdown.Loading"), We = ({ children: e }) => /* @__PURE__ */ g("li", {
577
586
  role: "presentation",
578
587
  "aria-live": "polite",
579
- className: Se.empty,
588
+ className: we.empty,
580
589
  children: e ?? "Loading actions..."
581
590
  });
582
591
  We.displayName = "DropdownLoadingSurface";
583
- var Ge = { separator: "_separator_1v11r_1" }, Ke = Y("separator", "Dropdown.Separator"), qe = ({ className: e }) => /* @__PURE__ */ g("li", {
592
+ var Ge = { separator: "_separator_1v11r_1" }, Ke = q("separator", "Dropdown.Separator"), qe = ({ className: e }) => /* @__PURE__ */ g("li", {
584
593
  role: "separator",
585
- className: J(Ge.separator, e),
594
+ className: K(Ge.separator, e),
586
595
  "aria-hidden": "true"
587
596
  });
588
597
  qe.displayName = "DropdownSeparatorSurface";
@@ -686,12 +695,12 @@ var Xe = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
686
695
  }, [e]), t;
687
696
  }, $e = ({ open: e, onOpenChange: t, placement: n = "bottom-start", strategy: r = "fixed", offset: i = 2, collisionPadding: a = 8, matchTriggerWidth: o = !1, avoidCollisions: s = !0, mobileSheetBreakpoint: l, middleware: u = [] } = {}) => {
688
697
  let f = Qe(l), p = d(() => [
689
- G(i),
690
- ...s ? [W({ padding: a })] : [],
691
- te({ apply({ rects: e, elements: t }) {
698
+ W(i),
699
+ ...s ? [U({ padding: a })] : [],
700
+ ne({ apply({ rects: e, elements: t }) {
692
701
  o && !f && Object.assign(t.floating.style, { width: `${e.reference.width}px` });
693
702
  } }),
694
- ...s ? [ee({ padding: a })] : [],
703
+ ...s ? [te({ padding: a })] : [],
695
704
  ...u
696
705
  ], [
697
706
  s,
@@ -700,14 +709,14 @@ var Xe = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
700
709
  f,
701
710
  o,
702
711
  i
703
- ]), { refs: m, floatingStyles: h, isPositioned: g, update: _, context: v, middlewareData: y, placement: b } = ne({
712
+ ]), { refs: m, floatingStyles: h, isPositioned: g, update: _, context: v, middlewareData: y, placement: b } = re({
704
713
  open: e,
705
714
  onOpenChange: t,
706
715
  placement: n,
707
716
  strategy: r,
708
717
  transform: !1,
709
718
  middleware: p,
710
- whileElementsMounted: U
719
+ whileElementsMounted: H
711
720
  });
712
721
  return c(() => {
713
722
  f && m.floating.current?.style.removeProperty("width");
@@ -727,7 +736,7 @@ var Xe = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
727
736
  };
728
737
  }, et = k({
729
738
  defaultLevel: "popover",
730
- levels: ae.tokens.zIndex
739
+ levels: se.tokens.zIndex
731
740
  }), tt = E("WebOverlayManager");
732
741
  function nt() {
733
742
  let e = O({
@@ -1231,26 +1240,26 @@ var bt = ({ value: e, defaultValue: t, onChange: n }) => {
1231
1240
  children: e
1232
1241
  }), Ot = ({ children: e, container: t }) => {
1233
1242
  let n = s(Et), r = vt({ container: t ?? n });
1234
- return r ? B(e, r) : null;
1243
+ return r ? ee(e, r) : null;
1235
1244
  };
1236
1245
  Ot.__velliraPortal = !0, Ot.displayName = "Portal", Dt.displayName = "PortalProvider";
1237
1246
  // src/components/Dropdown/Content/DropdownContent.tsx
1238
1247
  var kt = ({ className: e }) => {
1239
- let n = Me(), { contentReadyToFocus: r, isOpen: i, setContentRef: a } = n, s = f(null), l = o((e) => {
1248
+ let n = Pe(), { contentReadyToFocus: r, isOpen: i, setContentRef: a } = n, s = f(null), l = o((e) => {
1240
1249
  s.current = e, a(e);
1241
1250
  }, [a]);
1242
1251
  if (c(() => {
1243
1252
  let e = s.current;
1244
1253
  i && r && e && (e.contains(document.activeElement) || e.focus({ preventScroll: !0 }));
1245
1254
  }, [r, i]), !i) return null;
1246
- let u = J(Se.dropdown, Se[n.color], n.contentProps?.className, e), d = /* @__PURE__ */ _("ul", {
1255
+ let u = K(we.dropdown, we[n.color], n.contentProps?.className, e), d = /* @__PURE__ */ _("ul", {
1247
1256
  ref: l,
1248
1257
  id: n.contentId,
1249
1258
  role: "menu",
1250
1259
  autoFocus: !0,
1251
1260
  tabIndex: -1,
1252
1261
  "aria-labelledby": n.triggerId,
1253
- "aria-activedescendant": n.activeIndex >= 0 && n.activeIndex < n.items.length ? n.getItemId(n.activeIndex) : void 0,
1262
+ "aria-activedescendant": n.activeDescendantId,
1254
1263
  onKeyDown: n.onKeyDown,
1255
1264
  style: {
1256
1265
  ...n.surfaceStyle,
@@ -1260,9 +1269,9 @@ var kt = ({ className: e }) => {
1260
1269
  "data-color": n.color,
1261
1270
  children: [n.searchable && /* @__PURE__ */ _("li", {
1262
1271
  role: "presentation",
1263
- className: J(Se.searchWrap, n.searchProps?.className),
1272
+ className: K(we.searchWrap, n.searchProps?.className),
1264
1273
  children: [/* @__PURE__ */ g(w, { "aria-hidden": "true" }), /* @__PURE__ */ g("input", {
1265
- className: Se.search,
1274
+ className: we.search,
1266
1275
  value: n.searchValue,
1267
1276
  placeholder: n.searchPlaceholder,
1268
1277
  "aria-label": n.searchProps?.["aria-label"] ?? n.searchPlaceholder,
@@ -1272,16 +1281,16 @@ var kt = ({ className: e }) => {
1272
1281
  e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "Enter" && e.key !== "Escape" && e.stopPropagation();
1273
1282
  }
1274
1283
  })]
1275
- }), n.loading ? /* @__PURE__ */ g(We, { children: n.loadingText }) : n.searchable && n.items.length === 0 ? /* @__PURE__ */ g(we, { children: n.empty }) : n.entries.length ? n.entries.map((e) => e.type === "groupStart" ? /* @__PURE__ */ g(Ee, {}, e.id) : e.type === "groupEnd" ? null : e.type === "label" ? /* @__PURE__ */ g(He, { ...e.props }, e.id) : e.type === "separator" ? /* @__PURE__ */ g(qe, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ g(we, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ g(We, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ g(he, { ...e.props }, e.id) : /* @__PURE__ */ g(t, { children: /* @__PURE__ */ g(Ie, {
1284
+ }), n.loading ? /* @__PURE__ */ g(We, { children: n.loadingText }) : n.searchable && n.items.length === 0 ? /* @__PURE__ */ g(Ee, { children: n.empty }) : n.entries.length ? n.entries.map((e) => e.type === "groupStart" ? /* @__PURE__ */ g(Oe, {}, e.id) : e.type === "groupEnd" ? null : e.type === "label" ? /* @__PURE__ */ g(He, { ...e.props }, e.id) : e.type === "separator" ? /* @__PURE__ */ g(qe, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ g(Ee, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ g(We, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ g(_e, { ...e.props }, e.id) : /* @__PURE__ */ g(t, { children: /* @__PURE__ */ g(X, {
1276
1285
  item: e.item,
1277
1286
  itemIndex: e.itemIndex
1278
- }) }, e.item.id)) : /* @__PURE__ */ g(we, {})]
1287
+ }) }, e.item.id)) : /* @__PURE__ */ g(Ee, {})]
1279
1288
  });
1280
1289
  return n.portal ? /* @__PURE__ */ g(Ot, { children: d }) : d;
1281
1290
  };
1282
1291
  F(kt, "content"), kt.displayName = "Dropdown.Content";
1283
1292
  // src/components/Dropdown/ItemBadge/DropdownItemBadge.tsx
1284
- var At = Y("itemBadge", "Dropdown.ItemBadge"), jt = Y("itemDescription", "Dropdown.ItemDescription"), Mt = Y("itemIcon", "Dropdown.ItemIcon"), Nt = Y("itemShortcut", "Dropdown.ItemShortcut"), Pt = Y("radioGroup", "Dropdown.RadioGroup"), Ft = Y("radioItem", "Dropdown.RadioItem");
1293
+ var At = q("itemBadge", "Dropdown.ItemBadge"), jt = q("itemDescription", "Dropdown.ItemDescription"), Mt = q("itemIcon", "Dropdown.ItemIcon"), Nt = q("itemShortcut", "Dropdown.ItemShortcut"), Pt = q("radioGroup", "Dropdown.RadioGroup"), Ft = q("radioItem", "Dropdown.RadioItem");
1285
1294
  // src/utils/compose.ts
1286
1295
  function It(e, t) {
1287
1296
  return (n) => {
@@ -1300,36 +1309,40 @@ function Rt(e) {
1300
1309
  return typeof e == "number" ? `${e}px` : e;
1301
1310
  }
1302
1311
  var zt = { wrapper: "_wrapper_14ue8_1" }, Bt = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, size: i = "md", color: a = "primary", placement: s = "bottom-start", strategy: u, offset: m = 2, collisionPadding: h = 8, matchTriggerWidth: v = !1, minWidth: y, maxWidth: b, portal: x = !0, avoidCollisions: S = !0, modal: C = !1, closeOnSelect: w = !0, loop: T = !0, disabled: E = !1, loading: D = !1, loadingText: O = "Loading actions...", searchable: k = !1, command: A = !1, searchValue: j, defaultSearchValue: M = "", searchPlaceholder: N, onSearch: P, empty: F, className: I }) => {
1303
- let L = l(), R = `${L}-trigger`, z = `${L}-menu`, B = f(null), V = f(null), [H, U] = p(), [W, G] = p({}), [ee, te] = p(M), ne = j ?? ee, K = d(() => _e(e), [e]), re = K.content?.props.command ?? !1, q = k || A || re || !!K.search, ie = d(() => Ht(K.items), [K.items]), ae = d(() => K.items.map((e) => ({
1312
+ let L = l(), R = `${L}-trigger`, z = `${L}-menu`, ee = f(null), B = f(null), [V, H] = p(), [U, W] = p(-1), [te, ne] = p({}), [re, ie] = p(M), ae = j ?? re, G = d(() => ye(e), [e]), oe = G.content?.props.command ?? !1, se = k || A || oe || !!G.search, ce = d(() => Ut(G.items), [G.items]), le = d(() => G.items.map((e) => ({
1304
1313
  disabled: e.disabled,
1305
1314
  label: e.label
1306
- })), [K.items]), oe = d(() => !q || !ne.trim() ? K : Ut(K, ne), [
1307
- q,
1308
- K,
1309
- ne
1310
- ]), se = d(() => oe.items.map((e) => ({
1315
+ })), [G.items]), ue = d(() => !se || !ae.trim() ? G : Wt(G, ae), [
1316
+ se,
1317
+ G,
1318
+ ae
1319
+ ]), de = d(() => ue.items.map((e) => ({
1311
1320
  disabled: e.disabled,
1312
1321
  label: e.label
1313
- })), [oe.items]);
1322
+ })), [ue.items]);
1314
1323
  c(() => {
1315
- G((e) => {
1324
+ ne((e) => {
1316
1325
  let t = { ...e };
1317
- return ie.forEach((e) => {
1326
+ return ce.forEach((e) => {
1318
1327
  e.type === "radio" && t[e.groupId] === void 0 && (t[e.groupId] = e.groupProps?.value ?? e.groupProps?.defaultValue);
1319
1328
  }), t;
1320
1329
  });
1321
- }, [ie]);
1322
- let { activeIndex: ce, setActiveIndex: le, isOpen: ue, closeDropdown: de, toggleDropdown: fe, onKeyDown: pe } = St({
1323
- items: q ? se : ae,
1330
+ }, [ce]);
1331
+ let { activeIndex: fe, setActiveIndex: pe, isOpen: me, closeDropdown: he, toggleDropdown: ge, onKeyDown: _e } = St({
1332
+ items: se ? de : le,
1324
1333
  open: t,
1325
1334
  defaultOpen: n,
1326
1335
  disabled: E,
1327
1336
  onOpenChange: r,
1328
- getItemValue: (e, t) => (q ? oe.items : K.items)[t]?.id ?? "",
1337
+ getItemValue: (e, t) => (se ? ue.items : G.items)[t]?.id ?? "",
1329
1338
  getItemText: (e) => e.label,
1330
1339
  loop: T
1331
- }), { floatingStyles: me, isMobileSheet: he, isPositioned: ge, setRef: Y, setFloatingRef: ve } = ft({
1332
- open: ue,
1340
+ });
1341
+ c(() => {
1342
+ me || (H(void 0), W(-1));
1343
+ }, [me]);
1344
+ let { floatingStyles: ve, isMobileSheet: q, isPositioned: be, setRef: xe, setFloatingRef: Se } = ft({
1345
+ open: me,
1333
1346
  placement: s,
1334
1347
  strategy: u,
1335
1348
  portal: x,
@@ -1338,137 +1351,186 @@ var zt = { wrapper: "_wrapper_14ue8_1" }, Bt = ({ children: e, open: t, defaultO
1338
1351
  offset: m,
1339
1352
  collisionPadding: h,
1340
1353
  mobileSheetBreakpoint: 640
1341
- }), ye = o((e) => {
1342
- j === void 0 && te(e), P?.(e), le(0);
1354
+ }), Ce = o((e) => {
1355
+ j === void 0 && ie(e), P?.(e), pe(0);
1343
1356
  }, [
1344
1357
  P,
1345
1358
  j,
1346
- le
1359
+ pe
1347
1360
  ]);
1348
1361
  gt({
1349
- active: ue,
1362
+ active: me,
1350
1363
  enabled: C
1351
1364
  });
1352
- let be = o(() => {
1353
- de(), B.current?.focus();
1354
- }, [de]), xe = o((e, t) => {
1365
+ let we = o((e) => {
1366
+ H(e), W(-1);
1367
+ }, []), Te = o((e) => {
1368
+ e.type !== "subTrigger" || e.disabled || (H(e.id), W(e.subItems.findIndex((e) => !e.disabled)));
1369
+ }, []), Ee = o(() => {
1370
+ he(), we(void 0), ee.current?.focus();
1371
+ }, [he, we]), De = o((e, t) => {
1355
1372
  if (e.disabled || D) return;
1356
1373
  if (e.type === "subTrigger") {
1357
- U(e.id);
1374
+ Te(e);
1358
1375
  return;
1359
1376
  }
1360
- e.type === "item" && e.props.onSelect?.(t), e.type === "radio" && (G((t) => ({
1377
+ e.type === "item" && e.props.onSelect?.(t), e.type === "radio" && (ne((t) => ({
1361
1378
  ...t,
1362
1379
  [e.groupId]: e.props.value
1363
1380
  })), e.groupProps?.onValueChange?.(e.props.value));
1364
1381
  let n = e.props.closeOnSelect ?? (e.type !== "checkbox" && w);
1365
- !t.defaultPrevented && n && be();
1382
+ !t.defaultPrevented && n && Ee();
1366
1383
  }, [
1367
- be,
1384
+ Ee,
1368
1385
  w,
1369
- D
1370
- ]), Se = o((e) => {
1371
- let t = oe.items[ce];
1372
- if (e.key === "ArrowRight" && t?.type === "subTrigger") e.preventDefault(), U(t.id);
1373
- else if (e.key === "ArrowLeft" && H) e.preventDefault(), U(void 0);
1386
+ D,
1387
+ Te
1388
+ ]), Oe = o((e) => {
1389
+ let t = ue.items[fe], n = ue.items.findIndex((e) => e.type === "subTrigger" && e.id === V), r = ue.items[n];
1390
+ if (r?.type === "subTrigger" && U >= 0) {
1391
+ let t = r.subItems, i = t.findIndex((e) => !e.disabled), a = t.reduce((e, t, n) => t.disabled ? e : n, -1);
1392
+ if (e.key === "ArrowDown" || e.key === "ArrowUp") {
1393
+ e.preventDefault(), W(Vt(t, U, e.key === "ArrowDown" ? 1 : -1, T));
1394
+ return;
1395
+ }
1396
+ if (e.key === "Home" || e.key === "End") {
1397
+ e.preventDefault(), W(e.key === "Home" ? i : a);
1398
+ return;
1399
+ }
1400
+ if (e.key === "Enter" || e.key === " ") {
1401
+ e.preventDefault();
1402
+ let r = t[U], i = document.getElementById(`${z}-item-${n}-${U}`);
1403
+ r && !r.disabled && i instanceof HTMLElement && B.current?.contains(i) && i.click();
1404
+ return;
1405
+ }
1406
+ if (e.key.length === 1 && !e.altKey && !e.ctrlKey && !e.metaKey) {
1407
+ let n = e.key.toLocaleLowerCase(), r = t.findIndex((e, t) => t > U && !e.disabled && e.label.toLocaleLowerCase().startsWith(n)), i = r < 0 ? t.findIndex((e) => !e.disabled && e.label.toLocaleLowerCase().startsWith(n)) : r;
1408
+ if (i >= 0) {
1409
+ e.preventDefault(), W(i);
1410
+ return;
1411
+ }
1412
+ }
1413
+ }
1414
+ if (V && (e.key === "ArrowLeft" || e.key === "Escape")) e.preventDefault(), e.key === "Escape" && e.stopPropagation(), we(void 0);
1415
+ else if (e.key === "ArrowRight" && t?.type === "subTrigger") e.preventDefault(), Te(t);
1374
1416
  else if ((e.key === "Enter" || e.key === " ") && t) {
1375
- if (e.preventDefault(), t.type === "checkbox") {
1376
- let e = document.getElementById(`${z}-item-${ce}`);
1377
- e instanceof HTMLElement && V.current?.contains(e) && e.click();
1417
+ if (e.preventDefault(), t.type === "subTrigger") {
1418
+ Te(t);
1419
+ return;
1420
+ }
1421
+ if (t.type === "checkbox") {
1422
+ let e = document.getElementById(`${z}-item-${fe}`);
1423
+ e instanceof HTMLElement && B.current?.contains(e) && e.click();
1378
1424
  return;
1379
1425
  }
1380
- let n = Vt(e);
1381
- xe(t, n);
1382
- } else pe(e), e.key === "Escape" && B.current?.focus();
1426
+ let n = Ht(e);
1427
+ De(t, n);
1428
+ } else _e(e), e.key === "Escape" && ee.current?.focus();
1383
1429
  }, [
1384
- ce,
1430
+ fe,
1431
+ U,
1385
1432
  z,
1386
- oe.items,
1387
- pe,
1388
- H,
1389
- xe
1390
- ]), Ce = o((e) => {
1391
- e.preventDefault(), fe();
1392
- }, [fe]), we = o((e) => {
1393
- B.current = e, Y(e);
1394
- }, [Y]), Te = o((e) => {
1395
- V.current = e, ve(e), he && e?.focus({ preventScroll: !0 });
1396
- }, [he, ve]), Ee = dt({
1397
- active: ue,
1433
+ ue.items,
1434
+ T,
1435
+ _e,
1436
+ Te,
1437
+ V,
1438
+ De,
1439
+ we
1440
+ ]), ke = o((e) => {
1441
+ e.preventDefault(), ge();
1442
+ }, [ge]), Ae = o((e) => {
1443
+ ee.current = e, xe(e);
1444
+ }, [xe]), je = o((e) => {
1445
+ B.current = e, Se(e), q && e?.focus({ preventScroll: !0 });
1446
+ }, [q, Se]), Pe = dt({
1447
+ active: me,
1398
1448
  id: z,
1399
1449
  zIndexLevel: "dropdown",
1400
1450
  closeOnEscape: !0,
1401
1451
  closeOnOutsidePress: !0,
1402
- contentRef: V,
1403
- ignoreRefs: [B],
1404
- requestClose: () => de()
1405
- }), De = {
1406
- ...me,
1407
- zIndex: Ee.zIndex,
1452
+ contentRef: B,
1453
+ ignoreRefs: [ee],
1454
+ requestClose: () => he()
1455
+ }), Fe = {
1456
+ ...ve,
1457
+ zIndex: Pe.zIndex,
1408
1458
  minWidth: Rt(y),
1409
1459
  maxWidth: Rt(b)
1410
- }, Oe = {
1460
+ }, J = {
1411
1461
  disabled: E,
1412
- isOpen: ue,
1462
+ isOpen: me,
1413
1463
  contentId: z,
1414
1464
  triggerId: R,
1415
- setTriggerRef: we,
1416
- onClick: Ce,
1417
- onKeyDown: Se
1418
- }, ke = {
1419
- activeIndex: ce,
1465
+ setTriggerRef: Ae,
1466
+ onClick: ke,
1467
+ onKeyDown: Oe
1468
+ }, Ie = ue.items.findIndex((e) => e.type === "subTrigger" && e.id === V), Y = ue.items[Ie], X = Y?.type === "subTrigger" ? Y.subItems[U] : void 0, Le = {
1469
+ activeDescendantId: X && !X.disabled ? `${z}-item-${Ie}-${U}` : fe >= 0 && fe < ue.items.length ? `${z}-item-${fe}` : void 0,
1470
+ activeIndex: fe,
1471
+ activeSubIndex: U,
1420
1472
  closeOnSelect: w,
1421
1473
  color: a,
1422
- contentReadyToFocus: he || ge,
1474
+ contentReadyToFocus: q || be,
1423
1475
  contentId: z,
1424
- contentProps: K.content?.props,
1476
+ contentProps: G.content?.props,
1425
1477
  disabled: E,
1426
- entries: oe.entries,
1478
+ entries: ue.entries,
1427
1479
  getItemId: (e) => `${z}-item-${e}`,
1428
- isOpen: ue,
1429
- items: oe.items,
1480
+ isOpen: me,
1481
+ items: ue.items,
1430
1482
  loading: D,
1431
1483
  loadingText: O,
1432
1484
  empty: F,
1433
1485
  maxWidth: b,
1434
1486
  minWidth: y,
1435
- openSubId: H,
1436
- onKeyDown: Se,
1437
- portal: !K.portal && x,
1438
- radioValues: W,
1439
- searchPlaceholder: K.search?.props.placeholder ?? N ?? (A || re ? "Type a command..." : "Search actions..."),
1440
- searchProps: K.search?.props,
1441
- searchValue: ne,
1442
- searchable: q,
1443
- selectItem: xe,
1444
- setActiveIndex: le,
1445
- setContentRef: Te,
1446
- setOpenSubId: U,
1487
+ openSubId: V,
1488
+ onKeyDown: Oe,
1489
+ portal: !G.portal && x,
1490
+ radioValues: te,
1491
+ searchPlaceholder: G.search?.props.placeholder ?? N ?? (A || oe ? "Type a command..." : "Search actions..."),
1492
+ searchProps: G.search?.props,
1493
+ searchValue: ae,
1494
+ searchable: se,
1495
+ selectItem: De,
1496
+ setActiveIndex: pe,
1497
+ setActiveSubIndex: W,
1498
+ setContentRef: je,
1499
+ setOpenSubId: we,
1447
1500
  setRadioValue: (e, t) => {
1448
- G((n) => ({
1501
+ ne((n) => ({
1449
1502
  ...n,
1450
1503
  [e]: t
1451
1504
  }));
1452
1505
  },
1453
- setSearchValue: ye,
1506
+ setSearchValue: Ce,
1454
1507
  size: i,
1455
- surfaceStyle: De,
1508
+ surfaceStyle: Fe,
1456
1509
  triggerId: R
1457
1510
  };
1458
- return /* @__PURE__ */ g(je, {
1459
- value: Oe,
1460
- children: /* @__PURE__ */ g(Ae, {
1461
- value: ke,
1511
+ return /* @__PURE__ */ g(Ne, {
1512
+ value: J,
1513
+ children: /* @__PURE__ */ g(Me, {
1514
+ value: Le,
1462
1515
  children: /* @__PURE__ */ _("div", {
1463
- className: J(zt.wrapper, I),
1516
+ className: K(zt.wrapper, I),
1464
1517
  "data-disabled": E || void 0,
1465
- children: [K.trigger ?? null, K.portal ?? K.content ?? /* @__PURE__ */ g(kt, {})]
1518
+ children: [G.trigger ?? null, G.portal ?? G.content ?? /* @__PURE__ */ g(kt, {})]
1466
1519
  })
1467
1520
  })
1468
1521
  });
1469
1522
  };
1470
1523
  Bt.displayName = "DropdownRoot";
1471
- function Vt(e) {
1524
+ function Vt(e, t, n, r) {
1525
+ let i = t;
1526
+ for (let a = 0; a < e.length; a++) {
1527
+ let a = i + n;
1528
+ if (!r && (a < 0 || a >= e.length)) return t;
1529
+ if (i = (a + e.length) % e.length, !e[i]?.disabled) return i;
1530
+ }
1531
+ return t;
1532
+ }
1533
+ function Ht(e) {
1472
1534
  let t = !1;
1473
1535
  return {
1474
1536
  originalEvent: e,
@@ -1480,13 +1542,13 @@ function Vt(e) {
1480
1542
  }
1481
1543
  };
1482
1544
  }
1483
- function Ht(e) {
1545
+ function Ut(e) {
1484
1546
  let t = [];
1485
1547
  return e.forEach((e) => {
1486
- t.push(e), e.type === "subTrigger" && t.push(...Ht(e.subItems));
1548
+ t.push(e), e.type === "subTrigger" && t.push(...Ut(e.subItems));
1487
1549
  }), t;
1488
1550
  }
1489
- function Ut(e, t) {
1551
+ function Wt(e, t) {
1490
1552
  let n = t.trim().toLocaleLowerCase(), r = new Set(e.items.filter((e) => e.label.toLocaleLowerCase().includes(n)).map((e) => e.id)), i = e.items.filter((e) => r.has(e.id));
1491
1553
  return {
1492
1554
  ...e,
@@ -1495,7 +1557,7 @@ function Ut(e, t) {
1495
1557
  };
1496
1558
  }
1497
1559
  // src/components/Dropdown/Search/DropdownSearch.tsx
1498
- var Wt = Y("search", "Dropdown.Search"), Gt = Y("subContent", "Dropdown.SubContent"), Kt = Y("subTrigger", "Dropdown.SubTrigger"), qt = Y("sub", "Dropdown.Sub"), Jt = {
1560
+ var Gt = q("search", "Dropdown.Search"), Kt = q("subContent", "Dropdown.SubContent"), qt = q("subTrigger", "Dropdown.SubTrigger"), Jt = q("sub", "Dropdown.Sub"), Yt = {
1499
1561
  button: "_button_5pol3_1",
1500
1562
  disabled: "_disabled_5pol3_63",
1501
1563
  arrow: "_arrow_5pol3_71",
@@ -1511,17 +1573,17 @@ var Wt = Y("search", "Dropdown.Search"), Gt = Y("subContent", "Dropdown.SubConte
1511
1573
  lg: "_lg_5pol3_350",
1512
1574
  label: "_label_5pol3_362",
1513
1575
  open: "_open_5pol3_390"
1514
- }, Yt = (e) => /* @__PURE__ */ g(Xt, { ...e });
1515
- F(Yt, "trigger"), Yt.displayName = "Dropdown.Trigger";
1516
- var Xt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1517
- let o = Me(), s = Ne(), c = t && a(e) ? e : void 0, l = o.disabled || r, u = {
1576
+ }, Xt = (e) => /* @__PURE__ */ g(Zt, { ...e });
1577
+ F(Xt, "trigger"), Xt.displayName = "Dropdown.Trigger";
1578
+ var Zt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1579
+ let o = Pe(), s = Fe(), c = t && a(e) ? e : void 0, l = o.disabled || r, u = {
1518
1580
  id: s.triggerId,
1519
1581
  ref: c ? Lt(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
1520
1582
  "aria-controls": s.isOpen ? s.contentId : void 0,
1521
1583
  "aria-disabled": l || void 0,
1522
1584
  "aria-expanded": s.isOpen,
1523
1585
  "aria-haspopup": "menu",
1524
- className: J(!c && Jt.button, !c && Jt[o.size], !c && Jt[o.color], i),
1586
+ className: K(!c && Yt.button, !c && Yt[o.size], !c && Yt[o.color], i),
1525
1587
  "data-state": s.isOpen ? "open" : "closed",
1526
1588
  disabled: l || void 0,
1527
1589
  onClick: It(c?.props.onClick, s.onClick),
@@ -1529,78 +1591,78 @@ var Xt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1529
1591
  };
1530
1592
  return c ? n(c, {
1531
1593
  ...u,
1532
- className: J(c.props.className, i)
1594
+ className: K(c.props.className, i)
1533
1595
  }) : /* @__PURE__ */ _("button", {
1534
1596
  type: "button",
1535
1597
  ...u,
1536
1598
  children: [/* @__PURE__ */ g("span", {
1537
- className: Jt.label,
1599
+ className: Yt.label,
1538
1600
  children: e
1539
1601
  }), /* @__PURE__ */ g("span", {
1540
- className: J(Jt.arrow, { [Jt.open]: s.isOpen }),
1602
+ className: K(Yt.arrow, { [Yt.open]: s.isOpen }),
1541
1603
  "aria-hidden": "true",
1542
1604
  children: /* @__PURE__ */ g(y, {})
1543
1605
  })]
1544
1606
  });
1545
1607
  };
1546
- Xt.displayName = "DropdownTriggerSurface";
1608
+ Zt.displayName = "DropdownTriggerSurface";
1547
1609
  // src/components/Dropdown/Dropdown.tsx
1548
- var Zt = Object.assign(Bt, {
1549
- Trigger: Yt,
1610
+ var Qt = Object.assign(Bt, {
1611
+ Trigger: Xt,
1550
1612
  Content: kt,
1551
- Search: Wt,
1552
- Item: Fe,
1553
- CheckboxItem: xe,
1613
+ Search: Gt,
1614
+ Item: Y,
1615
+ CheckboxItem: Ce,
1554
1616
  RadioGroup: Pt,
1555
1617
  RadioItem: Ft,
1556
- Group: Te,
1618
+ Group: De,
1557
1619
  Label: Ve,
1558
1620
  Separator: Ke,
1559
- Sub: qt,
1560
- SubTrigger: Kt,
1561
- SubContent: Gt,
1621
+ Sub: Jt,
1622
+ SubTrigger: qt,
1623
+ SubContent: Kt,
1562
1624
  ItemIcon: Mt,
1563
1625
  ItemDescription: jt,
1564
1626
  ItemBadge: At,
1565
1627
  ItemShortcut: Nt,
1566
- Arrow: he,
1567
- Empty: Ce,
1628
+ Arrow: _e,
1629
+ Empty: Te,
1568
1630
  Loading: Ue
1569
1631
  });
1570
- Zt.displayName = "Dropdown";
1632
+ Qt.displayName = "Dropdown";
1571
1633
  // src/components/Modal/internal/ModalContext.tsx
1572
- var Qt = r(void 0), $t = r(void 0), en = () => {
1573
- let e = s(Qt);
1634
+ var $t = r(void 0), en = r(void 0), tn = () => {
1635
+ let e = s($t);
1574
1636
  if (e === void 0) throw Error("Modal compound components must be used inside Modal");
1575
1637
  return e;
1576
- }, tn = () => s($t), nn = Qt.Provider, rn = $t.Provider;
1577
- Qt.displayName = "ModalContext", $t.displayName = "ModalContentContext";
1578
- var an = {
1638
+ }, nn = () => s(en), rn = $t.Provider, an = en.Provider;
1639
+ $t.displayName = "ModalContext", en.displayName = "ModalContentContext";
1640
+ var on = {
1579
1641
  modalBody: "_modalBody_ou4ff_1",
1580
1642
  inside: "_inside_ou4ff_6"
1581
- }, on = ({ children: e, className: t }) => {
1582
- let n = tn();
1643
+ }, sn = ({ children: e, className: t }) => {
1644
+ let n = nn();
1583
1645
  return /* @__PURE__ */ g("div", {
1584
- className: J(an.modalBody, n?.scrollBehavior === "inside" && an.inside, t),
1646
+ className: K(on.modalBody, n?.scrollBehavior === "inside" && on.inside, t),
1585
1647
  children: e
1586
1648
  });
1587
1649
  };
1588
- on.displayName = "ModalBody";
1589
- var sn = {
1650
+ sn.displayName = "ModalBody";
1651
+ var cn = {
1590
1652
  modalHeader: "_modalHeader_1xg08_1",
1591
1653
  modalHeaderText: "_modalHeaderText_1xg08_8",
1592
1654
  modalHeaderTitle: "_modalHeaderTitle_1xg08_13",
1593
1655
  modalHeaderDescription: "_modalHeaderDescription_1xg08_20",
1594
1656
  modalHeaderCloseButton: "_modalHeaderCloseButton_1xg08_25"
1595
- }, cn = ({ asChild: e = !1, children: t, className: r, "aria-label": i }) => {
1596
- let o = en(), s = e && a(t) ? t : void 0, c = {
1657
+ }, ln = ({ asChild: e = !1, children: t, className: r, "aria-label": i }) => {
1658
+ let o = tn(), s = e && a(t) ? t : void 0, c = {
1597
1659
  "aria-label": s ? i : i ?? "Close dialog",
1598
- className: J(!s && sn.modalHeaderCloseButton, r),
1660
+ className: K(!s && cn.modalHeaderCloseButton, r),
1599
1661
  onClick: It(s?.props.onClick, o.requestClose)
1600
1662
  };
1601
1663
  return s ? n(s, {
1602
1664
  ...c,
1603
- className: J(s.props.className, r),
1665
+ className: K(s.props.className, r),
1604
1666
  "aria-label": i ?? s.props["aria-label"]
1605
1667
  }) : /* @__PURE__ */ g("button", {
1606
1668
  type: "button",
@@ -1608,8 +1670,8 @@ var sn = {
1608
1670
  children: /* @__PURE__ */ g(x, { size: 16 })
1609
1671
  });
1610
1672
  };
1611
- cn.displayName = "Modal.Close";
1612
- var ln = {
1673
+ ln.displayName = "Modal.Close";
1674
+ var un = {
1613
1675
  content: "_content_1tnw8_1",
1614
1676
  animated: "_animated_1tnw8_24",
1615
1677
  "modal-content-open": "_modal-content-open_1tnw8_1",
@@ -1623,8 +1685,8 @@ var ln = {
1623
1685
  full: "_full_1tnw8_107",
1624
1686
  inside: "_inside_1tnw8_113",
1625
1687
  outside: "_outside_1tnw8_117"
1626
- }, un = ({ children: e, size: t = "md", placement: n = "center", scrollBehavior: r = "inside", animated: i = !0, forceMount: a = !1, ariaLabel: s, ariaLabelledBy: c, ariaDescribedBy: l, className: u, style: d }) => {
1627
- let f = en(), m = f.open, h = m && f.shouldRender, [_, v] = p(null), y = o((e) => {
1688
+ }, dn = ({ children: e, size: t = "md", placement: n = "center", scrollBehavior: r = "inside", animated: i = !0, forceMount: a = !1, ariaLabel: s, ariaLabelledBy: c, ariaDescribedBy: l, className: u, style: d }) => {
1689
+ let f = tn(), m = f.open, h = m && f.shouldRender, [_, v] = p(null), y = o((e) => {
1628
1690
  f.setContentRef(e), v(e);
1629
1691
  }, [f]);
1630
1692
  if (Ze({
@@ -1642,13 +1704,13 @@ var ln = {
1642
1704
  enabled: f.modal
1643
1705
  }), !f.shouldRender && !a) return null;
1644
1706
  let b = c ?? (s ? void 0 : f.titleId), x = l ?? f.descriptionId;
1645
- return /* @__PURE__ */ g(rn, {
1707
+ return /* @__PURE__ */ g(an, {
1646
1708
  value: { scrollBehavior: r },
1647
1709
  children: /* @__PURE__ */ g("div", {
1648
1710
  id: f.contentId,
1649
1711
  ref: Lt(y),
1650
1712
  tabIndex: -1,
1651
- className: J(ln.content, ln[t], ln[n], ln[r], i && ln.animated, u),
1713
+ className: K(un.content, un[t], un[n], un[r], i && un.animated, u),
1652
1714
  style: {
1653
1715
  ...f.animationStyle,
1654
1716
  ...d
@@ -1664,57 +1726,57 @@ var ln = {
1664
1726
  })
1665
1727
  });
1666
1728
  };
1667
- un.displayName = "ModalContent";
1668
- var dn = { modalFooter: "_modalFooter_sb1pn_1" }, fn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1669
- className: J(dn.modalFooter, t),
1729
+ dn.displayName = "ModalContent";
1730
+ var fn = { modalFooter: "_modalFooter_sb1pn_1" }, pn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1731
+ className: K(fn.modalFooter, t),
1670
1732
  children: e
1671
1733
  });
1672
- fn.displayName = "ModalFooter";
1734
+ pn.displayName = "ModalFooter";
1673
1735
  // src/components/Modal/Header/ModalDescription.tsx
1674
- var pn = ({ children: e }) => {
1675
- let { descriptionId: t, setDescriptionPresent: n } = en();
1736
+ var mn = ({ children: e }) => {
1737
+ let { descriptionId: t, setDescriptionPresent: n } = tn();
1676
1738
  return c(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ g("p", {
1677
1739
  id: t,
1678
- className: sn.modalHeaderDescription,
1740
+ className: cn.modalHeaderDescription,
1679
1741
  children: e
1680
1742
  });
1681
1743
  };
1682
- pn.displayName = "Modal.Description";
1744
+ mn.displayName = "Modal.Description";
1683
1745
  // src/components/Modal/Header/ModalHeader.tsx
1684
- var mn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1685
- className: J(sn.modalHeader, t),
1746
+ var hn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1747
+ className: K(cn.modalHeader, t),
1686
1748
  children: e
1687
1749
  });
1688
- mn.displayName = "ModalHeader";
1750
+ hn.displayName = "ModalHeader";
1689
1751
  // src/components/Modal/Header/ModalTitle.tsx
1690
- var hn = ({ children: e }) => {
1691
- let { setTitlePresent: t, titleId: n } = en();
1752
+ var gn = ({ children: e }) => {
1753
+ let { setTitlePresent: t, titleId: n } = tn();
1692
1754
  return u(() => (t(!0), () => t(!1)), [t]), /* @__PURE__ */ g("h2", {
1693
1755
  id: n,
1694
- className: sn.modalHeaderTitle,
1756
+ className: cn.modalHeaderTitle,
1695
1757
  children: e
1696
1758
  });
1697
1759
  };
1698
- hn.displayName = "Modal.Title";
1699
- var gn = {
1760
+ gn.displayName = "Modal.Title";
1761
+ var _n = {
1700
1762
  overlay: "_overlay_d6wdf_1",
1701
1763
  "overlay--open": "_overlay--open_d6wdf_10",
1702
1764
  "overlay--animated": "_overlay--animated_d6wdf_15",
1703
1765
  "modal-overlay-open": "_modal-overlay-open_d6wdf_1",
1704
1766
  "modal-overlay-close": "_modal-overlay-close_d6wdf_1"
1705
- }, _n = ({ className: e, animated: t = !0, forceMount: n = !1 }) => {
1706
- let { animation: r, animationStyle: i, open: a, shouldRender: o } = en();
1767
+ }, vn = ({ className: e, animated: t = !0, forceMount: n = !1 }) => {
1768
+ let { animation: r, animationStyle: i, open: a, shouldRender: o } = tn();
1707
1769
  return !o && !n ? null : /* @__PURE__ */ g("div", {
1708
- className: J(gn.overlay, a && gn["overlay--open"], t && gn["overlay--animated"], e),
1770
+ className: K(_n.overlay, a && _n["overlay--open"], t && _n["overlay--animated"], e),
1709
1771
  style: i,
1710
1772
  "data-state": a ? "open" : "closed",
1711
1773
  "data-animation": r,
1712
1774
  "aria-hidden": "true"
1713
1775
  });
1714
1776
  };
1715
- _n.displayName = "ModalOverlay";
1777
+ vn.displayName = "ModalOverlay";
1716
1778
  // src/components/Modal/internal/useModalDismiss.ts
1717
- var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnEscape: i, closeOnOutsidePress: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => dt({
1779
+ var yn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnEscape: i, closeOnOutsidePress: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => dt({
1718
1780
  active: e,
1719
1781
  registrationActive: t,
1720
1782
  id: n,
@@ -1726,55 +1788,55 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1726
1788
  onInteractOutside: c ? (e) => c(e) : void 0,
1727
1789
  onPointerDownOutside: s ? (e) => s(e) : void 0,
1728
1790
  requestClose: l
1729
- }), yn = {
1730
- standard: ae.components.modal.motion.easing,
1791
+ }), bn = {
1792
+ standard: se.components.modal.motion.easing,
1731
1793
  linear: "linear",
1732
1794
  ease: "ease",
1733
1795
  "ease-in": "ease-in",
1734
1796
  "ease-out": "ease-out",
1735
1797
  "ease-in-out": "ease-in-out"
1736
- }, bn = (e) => Number.parseFloat(e), xn = (e) => typeof e == "number" ? {
1798
+ }, xn = (e) => Number.parseFloat(e), Sn = (e) => typeof e == "number" ? {
1737
1799
  close: e,
1738
1800
  open: e
1739
1801
  } : {
1740
- close: e?.close ?? bn(ae.components.modal.motion.closeDuration),
1741
- open: e?.open ?? bn(ae.components.modal.motion.openDuration)
1742
- }, Sn = ({ open: e, defaultOpen: t = !1, onOpenChange: n, animation: r = "scale", duration: i, easing: a = "standard", modal: s = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, preventScroll: m = !0, restoreFocus: h = !0, trapFocus: g = !0, initialFocus: _, finalFocus: v, onOpenAutoFocus: y, onCloseAutoFocus: b, onEscapeKeyDown: x, onPointerDownOutside: S, onInteractOutside: C, role: w = "dialog" }) => {
1802
+ close: e?.close ?? xn(se.components.modal.motion.closeDuration),
1803
+ open: e?.open ?? xn(se.components.modal.motion.openDuration)
1804
+ }, Cn = ({ open: e, defaultOpen: t = !1, onOpenChange: n, animation: r = "scale", duration: i, easing: a = "standard", modal: s = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, preventScroll: m = !0, restoreFocus: h = !0, trapFocus: g = !0, initialFocus: _, finalFocus: v, onOpenAutoFocus: y, onCloseAutoFocus: b, onEscapeKeyDown: x, onPointerDownOutside: S, onInteractOutside: C, role: w = "dialog" }) => {
1743
1805
  let T = f(null), E = f(null), { contentId: D, descriptionId: O, open: k, requestClose: A, setOpen: j, titleId: M } = Ct({
1744
1806
  open: e,
1745
1807
  defaultOpen: t,
1746
1808
  onOpenChange: n,
1747
1809
  closeOnEscape: l,
1748
1810
  closeOnOutsidePress: u
1749
- }), [N, P] = p(!1), [F, I] = p(!1), [L, R] = p(0), z = xn(i), B = r === "none" ? 0 : z.close, [V, H] = p(k);
1811
+ }), [N, P] = p(!1), [F, I] = p(!1), [L, R] = p(0), z = Sn(i), ee = r === "none" ? 0 : z.close, [B, V] = p(k);
1750
1812
  c(() => {
1751
1813
  if (k) {
1752
- H(!0);
1814
+ V(!0);
1753
1815
  return;
1754
1816
  }
1755
- if (B === 0) {
1756
- H(!1);
1817
+ if (ee === 0) {
1818
+ V(!1);
1757
1819
  return;
1758
1820
  }
1759
1821
  let e = window.setTimeout(() => {
1760
- H(!1);
1761
- }, B);
1822
+ V(!1);
1823
+ }, ee);
1762
1824
  return () => {
1763
1825
  window.clearTimeout(e);
1764
1826
  };
1765
- }, [B, k]);
1766
- let U = o(() => {
1827
+ }, [ee, k]);
1828
+ let H = o(() => {
1767
1829
  A();
1768
- }, [A]), W = o((e) => {
1830
+ }, [A]), U = o((e) => {
1769
1831
  T.current !== e && (T.current = e, R((e) => e + 1));
1770
1832
  }, []);
1771
1833
  gt({
1772
1834
  active: k,
1773
1835
  enabled: m
1774
1836
  });
1775
- let G = vn({
1837
+ let W = yn({
1776
1838
  active: k,
1777
- registrationActive: V,
1839
+ registrationActive: B,
1778
1840
  id: D,
1779
1841
  contentRef: T,
1780
1842
  closeOnEscape: l,
@@ -1782,21 +1844,21 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1782
1844
  onEscapeKeyDown: x,
1783
1845
  onInteractOutside: C,
1784
1846
  onPointerDownOutside: S,
1785
- requestClose: U
1786
- }), ee = d(() => ({
1847
+ requestClose: H
1848
+ }), te = d(() => ({
1787
1849
  "--modal-animation-close-duration": `${z.close}ms`,
1788
- "--modal-animation-easing": yn[a],
1850
+ "--modal-animation-easing": bn[a],
1789
1851
  "--modal-animation-open-duration": `${z.open}ms`,
1790
- "--z-index-modal": G.zIndex === void 0 ? void 0 : `${G.zIndex}`
1852
+ "--z-index-modal": W.zIndex === void 0 ? void 0 : `${W.zIndex}`
1791
1853
  }), [
1792
1854
  z.close,
1793
1855
  z.open,
1794
1856
  a,
1795
- G.zIndex
1796
- ]), te = ft({
1857
+ W.zIndex
1858
+ ]), ne = ft({
1797
1859
  presentation: "modal",
1798
- animationStyle: ee
1799
- }).animationStyle ?? ee;
1860
+ animationStyle: te
1861
+ }).animationStyle ?? te;
1800
1862
  return c(() => {
1801
1863
  if (process.env.NODE_ENV === "production" || !k || N || !T.current) return;
1802
1864
  let e = window.setTimeout(() => {
@@ -1819,7 +1881,7 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1819
1881
  ]), {
1820
1882
  context: d(() => ({
1821
1883
  animation: r,
1822
- animationStyle: te,
1884
+ animationStyle: ne,
1823
1885
  closeOnEscape: l,
1824
1886
  closeOnOutsidePress: u,
1825
1887
  contentId: D,
@@ -1827,7 +1889,7 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1827
1889
  descriptionId: O,
1828
1890
  finalFocus: v,
1829
1891
  initialFocus: _,
1830
- zIndex: G.zIndex,
1892
+ zIndex: W.zIndex,
1831
1893
  modal: s,
1832
1894
  onCloseAutoFocus: b,
1833
1895
  onEscapeKeyDown: x,
@@ -1836,27 +1898,27 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1836
1898
  onPointerDownOutside: S,
1837
1899
  open: k,
1838
1900
  preventScroll: m,
1839
- requestClose: U,
1901
+ requestClose: H,
1840
1902
  restoreFocus: h,
1841
1903
  role: w,
1842
- setContentRef: W,
1904
+ setContentRef: U,
1843
1905
  setDescriptionPresent: I,
1844
1906
  setOpen: j,
1845
1907
  setTitlePresent: P,
1846
- shouldRender: V,
1908
+ shouldRender: B,
1847
1909
  titleId: M,
1848
1910
  trapFocus: g,
1849
1911
  triggerRef: E
1850
1912
  }), [
1851
1913
  r,
1852
- te,
1914
+ ne,
1853
1915
  l,
1854
1916
  u,
1855
1917
  D,
1856
1918
  O,
1857
1919
  v,
1858
1920
  _,
1859
- G.zIndex,
1921
+ W.zIndex,
1860
1922
  k,
1861
1923
  s,
1862
1924
  b,
@@ -1865,37 +1927,37 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1865
1927
  y,
1866
1928
  S,
1867
1929
  m,
1868
- U,
1930
+ H,
1869
1931
  h,
1870
1932
  w,
1871
- W,
1933
+ U,
1872
1934
  j,
1873
- V,
1935
+ B,
1874
1936
  M,
1875
1937
  g
1876
1938
  ]),
1877
1939
  open: k
1878
1940
  };
1879
- }, Cn = ({ children: e, className: t, ...n }) => {
1880
- let { context: r, open: i } = Sn(n);
1881
- return /* @__PURE__ */ g(nn, {
1941
+ }, wn = ({ children: e, className: t, ...n }) => {
1942
+ let { context: r, open: i } = Cn(n);
1943
+ return /* @__PURE__ */ g(rn, {
1882
1944
  value: r,
1883
1945
  children: /* @__PURE__ */ g("div", {
1884
- className: J(t),
1946
+ className: K(t),
1885
1947
  "data-state": i ? "open" : "closed",
1886
1948
  children: e
1887
1949
  })
1888
1950
  });
1889
1951
  };
1890
- Cn.displayName = "ModalRoot";
1952
+ wn.displayName = "ModalRoot";
1891
1953
  // src/components/Modal/Trigger/ModalTrigger.tsx
1892
- var wn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1893
- let o = en(), s = t && a(e) ? e : void 0, c = r, l = {
1954
+ var Tn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1955
+ let o = tn(), s = t && a(e) ? e : void 0, c = r, l = {
1894
1956
  "aria-controls": o.contentId,
1895
1957
  "aria-disabled": c || void 0,
1896
1958
  "aria-expanded": o.open,
1897
1959
  "aria-haspopup": "dialog",
1898
- className: J(i),
1960
+ className: K(i),
1899
1961
  "data-state": o.open ? "open" : "closed",
1900
1962
  disabled: c || void 0,
1901
1963
  onClick: It(s?.props.onClick, () => {
@@ -1905,7 +1967,7 @@ var wn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1905
1967
  return s ? n(s, {
1906
1968
  ...l,
1907
1969
  ref: Lt(s.props.ref, o.triggerRef),
1908
- className: J(s.props.className, i)
1970
+ className: K(s.props.className, i)
1909
1971
  }) : /* @__PURE__ */ g("button", {
1910
1972
  ref: (e) => {
1911
1973
  o.triggerRef.current = e;
@@ -1915,45 +1977,45 @@ var wn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1915
1977
  children: e
1916
1978
  });
1917
1979
  };
1918
- wn.displayName = "Modal.Trigger";
1980
+ Tn.displayName = "Modal.Trigger";
1919
1981
  // src/components/Modal/Modal.tsx
1920
- var Tn = Object.assign(Cn, {
1921
- Trigger: wn,
1922
- Overlay: _n,
1923
- Content: un,
1924
- Header: mn,
1925
- Title: hn,
1926
- Description: pn,
1927
- Body: on,
1928
- Footer: fn,
1929
- Close: cn
1982
+ var En = Object.assign(wn, {
1983
+ Trigger: Tn,
1984
+ Overlay: vn,
1985
+ Content: dn,
1986
+ Header: hn,
1987
+ Title: gn,
1988
+ Description: mn,
1989
+ Body: sn,
1990
+ Footer: pn,
1991
+ Close: ln
1930
1992
  });
1931
- Tn.displayName = "Modal";
1993
+ En.displayName = "Modal";
1932
1994
  // src/components/Popover/Context/PopoverContext.tsx
1933
- var En = r(null);
1934
- function Dn({ children: e, value: t }) {
1935
- return /* @__PURE__ */ g(En.Provider, {
1995
+ var Dn = r(null);
1996
+ function On({ children: e, value: t }) {
1997
+ return /* @__PURE__ */ g(Dn.Provider, {
1936
1998
  value: t,
1937
1999
  children: e
1938
2000
  });
1939
2001
  }
1940
- function On(e) {
1941
- let t = s(En);
2002
+ function kn(e) {
2003
+ let t = s(Dn);
1942
2004
  if (!t) throw Error(`${e} must be used within Popover.Root`);
1943
2005
  return t;
1944
2006
  }
1945
2007
  // src/components/Popover/Anchor/PopoverAnchor.tsx
1946
- function kn(e, t) {
2008
+ function An(e, t) {
1947
2009
  typeof e == "function" ? e(t) : e && (e.current = t);
1948
2010
  }
1949
- function An({ children: e, asChild: t = !1, className: r, ...i }) {
1950
- let { setAnchorRef: o } = On("Popover.Anchor"), s = t && a(e) ? e : void 0;
2011
+ function jn({ children: e, asChild: t = !1, className: r, ...i }) {
2012
+ let { setAnchorRef: o } = kn("Popover.Anchor"), s = t && a(e) ? e : void 0;
1951
2013
  return s ? n(s, {
1952
2014
  ...i,
1953
2015
  ref: (e) => {
1954
- kn(s.props.ref, e), o(e);
2016
+ An(s.props.ref, e), o(e);
1955
2017
  },
1956
- className: J(s.props.className, r)
2018
+ className: K(s.props.className, r)
1957
2019
  }) : /* @__PURE__ */ g("div", {
1958
2020
  ...i,
1959
2021
  ref: o,
@@ -1961,15 +2023,15 @@ function An({ children: e, asChild: t = !1, className: r, ...i }) {
1961
2023
  children: e
1962
2024
  });
1963
2025
  }
1964
- An.displayName = "Popover.Anchor";
1965
- var jn = { arrow: "_arrow_6lbs0_1" }, Mn = {
2026
+ jn.displayName = "Popover.Anchor";
2027
+ var Mn = { arrow: "_arrow_6lbs0_1" }, Nn = {
1966
2028
  start: "20%",
1967
2029
  center: null,
1968
2030
  end: "80%"
1969
2031
  };
1970
- function Nn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center", offset: i, className: a, ...o }) {
1971
- let { arrowRef: s, floatingContext: c, placement: l } = On("Popover.Arrow"), u = i ?? Mn[r], d = l.split("-")[0];
1972
- return /* @__PURE__ */ g(V, {
2032
+ function Pn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center", offset: i, className: a, ...o }) {
2033
+ let { arrowRef: s, floatingContext: c, placement: l } = kn("Popover.Arrow"), u = i ?? Nn[r], d = l.split("-")[0];
2034
+ return /* @__PURE__ */ g(B, {
1973
2035
  ...o,
1974
2036
  ref: s,
1975
2037
  context: c,
@@ -1981,13 +2043,13 @@ function Nn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center
1981
2043
  stroke: "var(--border-muted)",
1982
2044
  strokeWidth: 1,
1983
2045
  "data-side": d,
1984
- className: J(jn.arrow, a)
2046
+ className: K(Mn.arrow, a)
1985
2047
  });
1986
2048
  }
1987
- Nn.displayName = "Popover.Arrow";
2049
+ Pn.displayName = "Popover.Arrow";
1988
2050
  // src/components/Popover/Close/PopoverClose.tsx
1989
- function Pn({ children: e, asChild: t = !1, className: r, disabled: i, onClick: o, ...s }) {
1990
- let { setOpen: c } = On("Popover.Close"), l = t && a(e) ? e : void 0, u = i || l?.props.disabled === !0, d = (e) => {
2051
+ function Fn({ children: e, asChild: t = !1, className: r, disabled: i, onClick: o, ...s }) {
2052
+ let { setOpen: c } = kn("Popover.Close"), l = t && a(e) ? e : void 0, u = i || l?.props.disabled === !0, d = (e) => {
1991
2053
  l?.props.onClick?.(e), o?.(e), !(e.defaultPrevented || u) && c(!1, {
1992
2054
  reason: "close",
1993
2055
  event: e.nativeEvent
@@ -2000,7 +2062,7 @@ function Pn({ children: e, asChild: t = !1, className: r, disabled: i, onClick:
2000
2062
  };
2001
2063
  return l ? n(l, {
2002
2064
  ...f,
2003
- className: J(l.props.className, r)
2065
+ className: K(l.props.className, r)
2004
2066
  }) : /* @__PURE__ */ g("button", {
2005
2067
  type: "button",
2006
2068
  ...f,
@@ -2008,14 +2070,14 @@ function Pn({ children: e, asChild: t = !1, className: r, disabled: i, onClick:
2008
2070
  children: e
2009
2071
  });
2010
2072
  }
2011
- Pn.displayName = "Popover.Close";
2012
- var Fn = {
2073
+ Fn.displayName = "Popover.Close";
2074
+ var In = {
2013
2075
  content: "_content_1jzfn_1",
2014
2076
  "popover-in": "_popover-in_1jzfn_1"
2015
2077
  };
2016
2078
  // src/components/Popover/Content/PopoverContent.tsx
2017
- function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus: s, returnFocus: c = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, onEscapeKeyDown: d, onPointerDownOutside: f, onInteractOutside: m, onOpenAutoFocus: h, onCloseAutoFocus: _, ...v }) {
2018
- let { open: y, modal: b, portal: x, triggerRef: S, anchorRef: C, contentRef: w, contentId: T, titleId: E, descriptionId: D, placement: O, floatingStyles: k, setOpen: A, setContentRef: j } = On("Popover.Content"), [M, N] = p(null), P = o((e, t) => {
2079
+ function Ln({ children: e, asChild: t = !1, className: r, style: i, initialFocus: s, returnFocus: c = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, onEscapeKeyDown: d, onPointerDownOutside: f, onInteractOutside: m, onOpenAutoFocus: h, onCloseAutoFocus: _, ...v }) {
2080
+ let { open: y, modal: b, portal: x, triggerRef: S, anchorRef: C, contentRef: w, contentId: T, titleId: E, descriptionId: D, placement: O, floatingStyles: k, setOpen: A, setContentRef: j } = kn("Popover.Content"), [M, N] = p(null), P = o((e, t) => {
2019
2081
  A(!1, {
2020
2082
  reason: e,
2021
2083
  event: t
@@ -2069,16 +2131,16 @@ function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2069
2131
  "aria-describedby": D,
2070
2132
  "data-state": "open",
2071
2133
  "data-side": L,
2072
- className: J(Fn.content, r),
2134
+ className: K(In.content, r),
2073
2135
  style: {
2074
2136
  ...k,
2075
2137
  zIndex: F.zIndex,
2076
2138
  ...i
2077
2139
  }
2078
- }, z = t && a(e) ? e : void 0, B = z ? n(z, {
2140
+ }, z = t && a(e) ? e : void 0, ee = z ? n(z, {
2079
2141
  ...R,
2080
2142
  ref: I,
2081
- className: J(z.props.className, Fn.content, r),
2143
+ className: K(z.props.className, In.content, r),
2082
2144
  style: {
2083
2145
  ...k,
2084
2146
  zIndex: F.zIndex,
@@ -2090,30 +2152,30 @@ function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2090
2152
  ...R,
2091
2153
  children: e
2092
2154
  });
2093
- return x ? /* @__PURE__ */ g(Ot, { children: B }) : B;
2155
+ return x ? /* @__PURE__ */ g(Ot, { children: ee }) : ee;
2094
2156
  }
2095
- In.displayName = "Popover.Content";
2096
- var Ln = { description: "_description_hji8o_1" };
2157
+ Ln.displayName = "Popover.Content";
2158
+ var Rn = { description: "_description_hji8o_1" };
2097
2159
  // src/components/Popover/Description/PopoverDescription.tsx
2098
- function Rn({ children: e, asChild: t = !1, className: r, ...i }) {
2099
- let { descriptionId: o } = On("Popover.Description"), s = t && a(e) ? e : void 0;
2160
+ function zn({ children: e, asChild: t = !1, className: r, ...i }) {
2161
+ let { descriptionId: o } = kn("Popover.Description"), s = t && a(e) ? e : void 0;
2100
2162
  return s ? n(s, {
2101
2163
  ...i,
2102
2164
  id: o,
2103
- className: J(s.props.className, Ln.description, r)
2165
+ className: K(s.props.className, Rn.description, r)
2104
2166
  }) : /* @__PURE__ */ g("p", {
2105
2167
  ...i,
2106
2168
  id: o,
2107
- className: J(Ln.description, r),
2169
+ className: K(Rn.description, r),
2108
2170
  children: e
2109
2171
  });
2110
2172
  }
2111
- Rn.displayName = "Popover.Description";
2173
+ zn.displayName = "Popover.Description";
2112
2174
  // src/components/Popover/Root/PopoverRoot.tsx
2113
- function zn(e, t) {
2175
+ function Bn(e, t) {
2114
2176
  return t === "center" ? e : `${e}-${t}`;
2115
2177
  }
2116
- function Bn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenChange: i, side: a = "bottom", align: s = "center", sideOffset: c = 8, collisionPadding: u = 8, avoidCollisions: p = !0, portal: m = !0, strategy: h }) {
2178
+ function Vn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenChange: i, side: a = "bottom", align: s = "center", sideOffset: c = 8, collisionPadding: u = 8, avoidCollisions: p = !0, portal: m = !0, strategy: h }) {
2117
2179
  let _ = f(null), v = f(null), y = f(null), b = f({ reason: "programmatic" }), x = l(), S = `vellira-popover-trigger-${x}`, C = `vellira-popover-content-${x}`, w = `vellira-popover-title-${x}`, T = `vellira-popover-description-${x}`, [E, D] = bt({
2118
2180
  value: t,
2119
2181
  defaultValue: n,
@@ -2122,12 +2184,12 @@ function Bn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
2122
2184
  }
2123
2185
  }), O = o((e, t) => {
2124
2186
  b.current = t, D(e);
2125
- }, [D]), k = f(null), A = d(() => [H({
2187
+ }, [D]), k = f(null), A = d(() => [V({
2126
2188
  element: k,
2127
2189
  padding: 8
2128
2190
  })], []), { context: j, floatingStyles: M, isPositioned: N, placement: P, setFloatingRef: F, setRef: I } = ft({
2129
2191
  open: E,
2130
- placement: zn(a, s),
2192
+ placement: Bn(a, s),
2131
2193
  strategy: h,
2132
2194
  portal: m,
2133
2195
  offset: c + 7,
@@ -2141,7 +2203,7 @@ function Bn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
2141
2203
  }, [I]), z = o((e) => {
2142
2204
  y.current = e, F(e);
2143
2205
  }, [F]);
2144
- return /* @__PURE__ */ g(Dn, {
2206
+ return /* @__PURE__ */ g(On, {
2145
2207
  value: {
2146
2208
  open: E,
2147
2209
  modal: r,
@@ -2166,25 +2228,25 @@ function Bn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
2166
2228
  children: e
2167
2229
  });
2168
2230
  }
2169
- var Vn = { title: "_title_1gham_1" };
2231
+ var Hn = { title: "_title_1gham_1" };
2170
2232
  // src/components/Popover/Title/PopoverTitle.tsx
2171
- function Hn({ children: e, asChild: t = !1, className: r, ...i }) {
2172
- let { titleId: o } = On("Popover.Title"), s = t && a(e) ? e : void 0;
2233
+ function Un({ children: e, asChild: t = !1, className: r, ...i }) {
2234
+ let { titleId: o } = kn("Popover.Title"), s = t && a(e) ? e : void 0;
2173
2235
  return s ? n(s, {
2174
2236
  ...i,
2175
2237
  id: o,
2176
- className: J(s.props.className, Vn.title, r)
2238
+ className: K(s.props.className, Hn.title, r)
2177
2239
  }) : /* @__PURE__ */ g("h2", {
2178
2240
  ...i,
2179
2241
  id: o,
2180
- className: J(Vn.title, r),
2242
+ className: K(Hn.title, r),
2181
2243
  children: e
2182
2244
  });
2183
2245
  }
2184
- Hn.displayName = "Popover.Title";
2246
+ Un.displayName = "Popover.Title";
2185
2247
  // src/components/Popover/Trigger/PopoverTrigger.tsx
2186
- function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onClick: o, ...s }) {
2187
- let { open: c, triggerId: l, contentId: u, setOpen: d, setTriggerRef: f } = On("Popover.Trigger"), p = t && a(e) ? e : void 0, m = r || p?.props.disabled === !0, h = {
2248
+ function Wn({ children: e, asChild: t = !1, disabled: r = !1, className: i, onClick: o, ...s }) {
2249
+ let { open: c, triggerId: l, contentId: u, setOpen: d, setTriggerRef: f } = kn("Popover.Trigger"), p = t && a(e) ? e : void 0, m = r || p?.props.disabled === !0, h = {
2188
2250
  id: l,
2189
2251
  "aria-controls": c ? u : void 0,
2190
2252
  "aria-expanded": c,
@@ -2202,7 +2264,7 @@ function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onCl
2202
2264
  ...s,
2203
2265
  ...h,
2204
2266
  disabled: m || void 0,
2205
- className: J(p.props.className, i),
2267
+ className: K(p.props.className, i),
2206
2268
  ref: (e) => {
2207
2269
  let t = p.props.ref;
2208
2270
  typeof t == "function" ? t(e) : t && (t.current = e), f(e);
@@ -2217,21 +2279,21 @@ function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onCl
2217
2279
  children: e
2218
2280
  });
2219
2281
  }
2220
- Un.displayName = "Popover.Trigger";
2282
+ Wn.displayName = "Popover.Trigger";
2221
2283
  // src/components/Popover/Popover.tsx
2222
- var Wn = Object.assign(Bn, {
2223
- Anchor: An,
2224
- Arrow: Nn,
2225
- Close: Pn,
2226
- Content: In,
2227
- Description: Rn,
2228
- Title: Hn,
2229
- Trigger: Un
2230
- }), Gn = r(null), Kn = Gn.Provider;
2231
- function qn() {
2232
- return s(Gn);
2284
+ var Gn = Object.assign(Vn, {
2285
+ Anchor: jn,
2286
+ Arrow: Pn,
2287
+ Close: Fn,
2288
+ Content: Ln,
2289
+ Description: zn,
2290
+ Title: Un,
2291
+ Trigger: Wn
2292
+ }), Kn = r(null), qn = Kn.Provider;
2293
+ function Jn() {
2294
+ return s(Kn);
2233
2295
  }
2234
- var Jn = {
2296
+ var Yn = {
2235
2297
  root: "_root_goond_1",
2236
2298
  invalid: "_invalid_goond_34",
2237
2299
  control: "_control_goond_34",
@@ -2254,14 +2316,14 @@ var Jn = {
2254
2316
  "radio-indicator-in": "_radio-indicator-in_goond_1",
2255
2317
  content: "_content_goond_346",
2256
2318
  error: "_error_goond_363"
2257
- }, Yn = {
2258
- primary: Jn.colorPrimary,
2259
- neutral: Jn.colorNeutral,
2260
- success: Jn.colorSuccess,
2261
- warning: Jn.colorWarning,
2262
- danger: Jn.colorDanger
2263
- }, Xn = i(({ value: e, checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, size: a, color: o, error: s, onCheckedChange: c, label: u, description: d, icon: f, wrapperClassName: p, className: m, id: h, name: v, "aria-describedby": y, ...b }, x) => {
2264
- let S = qn(), C = l(), w = h ?? C, T = d ? `${w}-description` : void 0, E = s ? `${w}-error` : void 0, D = [
2319
+ }, Xn = {
2320
+ primary: Yn.colorPrimary,
2321
+ neutral: Yn.colorNeutral,
2322
+ success: Yn.colorSuccess,
2323
+ warning: Yn.colorWarning,
2324
+ danger: Yn.colorDanger
2325
+ }, Zn = i(({ value: e, checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, size: a, color: o, error: s, onCheckedChange: c, label: u, description: d, icon: f, wrapperClassName: p, className: m, id: h, name: v, "aria-describedby": y, ...b }, x) => {
2326
+ let S = Jn(), C = l(), w = h ?? C, T = d ? `${w}-description` : void 0, E = s ? `${w}-error` : void 0, D = [
2265
2327
  T,
2266
2328
  E,
2267
2329
  S?.describedBy,
@@ -2274,10 +2336,10 @@ var Jn = {
2274
2336
  M || (O ? S.onValueChange(e) : A(t.currentTarget.checked));
2275
2337
  };
2276
2338
  return /* @__PURE__ */ _("div", {
2277
- className: J(Jn.root, Jn[I], F && Jn.invalid, M && Jn.disabled, Yn[L], m),
2339
+ className: K(Yn.root, Yn[I], F && Yn.invalid, M && Yn.disabled, Xn[L], m),
2278
2340
  children: [/* @__PURE__ */ _("label", {
2279
2341
  htmlFor: w,
2280
- className: J(Jn.wrapper, p),
2342
+ className: K(Yn.wrapper, p),
2281
2343
  children: [
2282
2344
  /* @__PURE__ */ g("input", {
2283
2345
  ...b,
@@ -2291,53 +2353,53 @@ var Jn = {
2291
2353
  required: N,
2292
2354
  "aria-invalid": F || void 0,
2293
2355
  "aria-describedby": D,
2294
- className: Jn.input,
2356
+ className: Yn.input,
2295
2357
  onChange: R
2296
2358
  }),
2297
2359
  /* @__PURE__ */ g("span", {
2298
- className: Jn.control,
2360
+ className: Yn.control,
2299
2361
  "aria-hidden": "true",
2300
2362
  children: /* @__PURE__ */ g("span", {
2301
- className: J(Jn.indicator, f && Jn.customIcon),
2363
+ className: K(Yn.indicator, f && Yn.customIcon),
2302
2364
  children: f
2303
2365
  })
2304
2366
  }),
2305
2367
  (u || d) && /* @__PURE__ */ _("span", {
2306
- className: Jn.content,
2368
+ className: Yn.content,
2307
2369
  children: [u && /* @__PURE__ */ g("span", {
2308
- className: Jn.label,
2370
+ className: Yn.label,
2309
2371
  children: u
2310
2372
  }), d && /* @__PURE__ */ g("span", {
2311
2373
  id: T,
2312
- className: Jn.description,
2374
+ className: Yn.description,
2313
2375
  children: d
2314
2376
  })]
2315
2377
  })
2316
2378
  ]
2317
2379
  }), s && /* @__PURE__ */ g("div", {
2318
2380
  id: E,
2319
- className: Jn.error,
2381
+ className: Yn.error,
2320
2382
  children: s
2321
2383
  })]
2322
2384
  });
2323
2385
  });
2324
- Xn.displayName = "Radio";
2386
+ Zn.displayName = "Radio";
2325
2387
  // src/components/RadioGroup/Item/RadioGroupItem.tsx
2326
- var Zn = i((e, t) => /* @__PURE__ */ g(Xn, {
2388
+ var Qn = i((e, t) => /* @__PURE__ */ g(Zn, {
2327
2389
  ...e,
2328
2390
  ref: t
2329
2391
  }));
2330
- Zn.displayName = "RadioGroup.Item";
2392
+ Qn.displayName = "RadioGroup.Item";
2331
2393
  // src/components/RadioGroup/internal/useRadioGroupCollection.ts
2332
- var Qn = (e) => {
2394
+ var $n = (e) => {
2333
2395
  let t = e.current;
2334
2396
  return t ? Array.from(t.querySelectorAll("input[type=\"radio\"]")) : [];
2335
- }, $n = (e) => Qn(e).filter((e) => !e.disabled), er = ["ArrowLeft", "ArrowRight"], tr = ["ArrowUp", "ArrowDown"];
2336
- function nr({ rootRef: e, orientation: t }) {
2397
+ }, er = (e) => $n(e).filter((e) => !e.disabled), tr = ["ArrowLeft", "ArrowRight"], nr = ["ArrowUp", "ArrowDown"];
2398
+ function rr({ rootRef: e, orientation: t }) {
2337
2399
  return o((n) => {
2338
- let r = er.includes(n.key), i = tr.includes(n.key), a = n.key === "Home" || n.key === "End";
2400
+ let r = tr.includes(n.key), i = nr.includes(n.key), a = n.key === "Home" || n.key === "End";
2339
2401
  if (!r && !i && !a || t === "horizontal" && i || t === "vertical" && r) return;
2340
- let o = $n(e);
2402
+ let o = er(e);
2341
2403
  if (o.length === 0) return;
2342
2404
  n.preventDefault();
2343
2405
  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;
@@ -2346,7 +2408,7 @@ function nr({ rootRef: e, orientation: t }) {
2346
2408
  f?.focus(), f?.click();
2347
2409
  }, [t, e]);
2348
2410
  }
2349
- var rr = {
2411
+ var ir = {
2350
2412
  root: "_root_1s3vp_1",
2351
2413
  sm: "_sm_1s3vp_32",
2352
2414
  md: "_md_1s3vp_58",
@@ -2360,12 +2422,12 @@ var rr = {
2360
2422
  error: "_error_1s3vp_152",
2361
2423
  disabled: "_disabled_1s3vp_160",
2362
2424
  invalid: "_invalid_1s3vp_176"
2363
- }, ir = i(({ value: e, defaultValue: t = "", onValueChange: n, disabled: r = !1, required: i = !1, invalid: a = !1, size: o = "md", color: s = "primary", name: c, label: u, description: d, error: p, orientation: m = "vertical", children: h, className: v, id: y, onKeyDown: b, ...x }, S) => {
2425
+ }, ar = i(({ value: e, defaultValue: t = "", onValueChange: n, disabled: r = !1, required: i = !1, invalid: a = !1, size: o = "md", color: s = "primary", name: c, label: u, description: d, error: p, orientation: m = "vertical", children: h, className: v, id: y, onKeyDown: b, ...x }, S) => {
2364
2426
  let C = f(null), w = l(), T = y ?? w, E = u ? `${T}-label` : void 0, D = d ? `${T}-description` : void 0, O = p ? `${T}-error` : void 0, k = [D, O].filter(Boolean).join(" ") || void 0, A = c ?? `${T}-radio`, [j, M] = bt({
2365
2427
  value: e,
2366
2428
  defaultValue: t,
2367
2429
  onChange: n
2368
- }), N = a || !!p, P = nr({
2430
+ }), N = a || !!p, P = rr({
2369
2431
  rootRef: C,
2370
2432
  orientation: m
2371
2433
  }), F = (e) => {
@@ -2384,23 +2446,23 @@ var rr = {
2384
2446
  onKeyDown: (e) => {
2385
2447
  b?.(e), e.defaultPrevented || P(e);
2386
2448
  },
2387
- className: J(rr.root, rr[o], N && rr.invalid, r && rr.disabled, v),
2449
+ className: K(ir.root, ir[o], N && ir.invalid, r && ir.disabled, v),
2388
2450
  children: [
2389
2451
  u && /* @__PURE__ */ _("div", {
2390
2452
  id: E,
2391
- className: rr.label,
2453
+ className: ir.label,
2392
2454
  children: [u, i && /* @__PURE__ */ g("span", {
2393
- className: rr.required,
2455
+ className: ir.required,
2394
2456
  "aria-hidden": "true",
2395
2457
  children: "*"
2396
2458
  })]
2397
2459
  }),
2398
2460
  d && /* @__PURE__ */ g("div", {
2399
2461
  id: D,
2400
- className: rr.description,
2462
+ className: ir.description,
2401
2463
  children: d
2402
2464
  }),
2403
- /* @__PURE__ */ g(Kn, {
2465
+ /* @__PURE__ */ g(qn, {
2404
2466
  value: {
2405
2467
  name: A,
2406
2468
  value: j,
@@ -2413,32 +2475,32 @@ var rr = {
2413
2475
  onValueChange: M
2414
2476
  },
2415
2477
  children: /* @__PURE__ */ g("div", {
2416
- className: J(rr.items, rr[m]),
2478
+ className: K(ir.items, ir[m]),
2417
2479
  children: h
2418
2480
  })
2419
2481
  }),
2420
2482
  p && /* @__PURE__ */ g("div", {
2421
2483
  id: O,
2422
- className: rr.error,
2484
+ className: ir.error,
2423
2485
  children: p
2424
2486
  })
2425
2487
  ]
2426
2488
  });
2427
2489
  });
2428
- ir.displayName = "RadioGroup.Root";
2490
+ ar.displayName = "RadioGroup.Root";
2429
2491
  // src/components/RadioGroup/RadioGroup.tsx
2430
- var ar = Object.assign(ir, { Item: Zn });
2431
- ar.displayName = "RadioGroup";
2492
+ var or = Object.assign(ar, { Item: Qn });
2493
+ or.displayName = "RadioGroup";
2432
2494
  // src/components/Select/internal/SelectContext.tsx
2433
- var or = r(null), sr = or.Provider;
2434
- function cr() {
2435
- let e = s(or);
2495
+ var sr = r(null), cr = sr.Provider;
2496
+ function lr() {
2497
+ let e = s(sr);
2436
2498
  if (!e) throw Error("Select compound components must be used inside <Select>");
2437
2499
  return e;
2438
2500
  }
2439
- or.displayName = "SelectContext";
2501
+ sr.displayName = "SelectContext";
2440
2502
  // src/components/Select/internal/SelectVirtualization.ts
2441
- function lr({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight: i }) {
2503
+ function ur({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight: i }) {
2442
2504
  let a = typeof r == "object" ? r : r ? {} : void 0, o = a?.itemHeight ?? 40, s = a?.overscan ?? 2, c = i ?? a?.viewportHeight ?? 300, l = !!(a && t.length > 0 && !e), u = l ? Math.max(0, Math.floor(n / o) - s) : 0, d = l ? Math.ceil(c / o) + s * 2 : t.length, f = l ? t.slice(u, u + d) : t, p = l ? u * o : 0;
2443
2505
  return {
2444
2506
  bottomSpacerHeight: l ? Math.max(0, (t.length - u - f.length) * o) : 0,
@@ -2453,13 +2515,13 @@ function lr({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight:
2453
2515
  };
2454
2516
  }
2455
2517
  // src/components/Select/internal/types.ts
2456
- function ur(e, t) {
2518
+ function dr(e, t) {
2457
2519
  return F(e, t);
2458
2520
  }
2459
- function dr(e) {
2521
+ function fr(e) {
2460
2522
  return N(e);
2461
2523
  }
2462
- var fr = {
2524
+ var pr = {
2463
2525
  option: "_option_7msws_1",
2464
2526
  selected: "_selected_7msws_38",
2465
2527
  disabled: "_disabled_7msws_38",
@@ -2477,18 +2539,18 @@ var fr = {
2477
2539
  danger: "_danger_7msws_313",
2478
2540
  check: "_check_7msws_377",
2479
2541
  checkPop: "_checkPop_7msws_1"
2480
- }, pr = () => null;
2481
- ur(pr, "item"), pr.displayName = "Select.Item";
2482
- var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o, selectedValues: s, multiple: c, renderOption: l, onSelect: u, onMouseEnter: d }) => {
2483
- let f = !!e.disabled, p = e.asChild && a(e.children) ? e.children : void 0, m = J(fr.option, {
2484
- [fr.selected]: t,
2485
- [fr.active]: r,
2486
- [fr.disabled]: f,
2487
- [fr.success]: e.color === "success",
2488
- [fr.warning]: e.color === "warning",
2489
- [fr.danger]: e.color === "danger"
2542
+ }, mr = () => null;
2543
+ dr(mr, "item"), mr.displayName = "Select.Item";
2544
+ var hr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o, selectedValues: s, multiple: c, renderOption: l, onSelect: u, onMouseEnter: d }) => {
2545
+ let f = !!e.disabled, p = e.asChild && a(e.children) ? e.children : void 0, m = K(pr.option, {
2546
+ [pr.selected]: t,
2547
+ [pr.active]: r,
2548
+ [pr.disabled]: f,
2549
+ [pr.success]: e.color === "success",
2550
+ [pr.warning]: e.color === "warning",
2551
+ [pr.danger]: e.color === "danger"
2490
2552
  });
2491
- Pe(!e.asChild || !!p, "Select.Item: asChild requires a single valid React element child.");
2553
+ Ie(!e.asChild || !!p, "Select.Item: asChild requires a single valid React element child.");
2492
2554
  let y = (t) => {
2493
2555
  f ? t.preventDefault() : u(e.value);
2494
2556
  }, b = () => {
@@ -2499,7 +2561,7 @@ var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o,
2499
2561
  role: "option",
2500
2562
  "aria-selected": t,
2501
2563
  "aria-disabled": f || void 0,
2502
- className: J(p.props.className, m),
2564
+ className: K(p.props.className, m),
2503
2565
  onClick: (e) => {
2504
2566
  p.props.onClick?.(e), e.defaultPrevented || y(e);
2505
2567
  },
@@ -2516,7 +2578,7 @@ var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o,
2516
2578
  onClick: y,
2517
2579
  onMouseEnter: b,
2518
2580
  children: [l ? /* @__PURE__ */ g("span", {
2519
- className: fr.custom,
2581
+ className: pr.custom,
2520
2582
  children: l({
2521
2583
  option: e,
2522
2584
  selected: t,
@@ -2529,36 +2591,36 @@ var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o,
2529
2591
  })
2530
2592
  }) : /* @__PURE__ */ _(h, { children: [
2531
2593
  e.icon && /* @__PURE__ */ g("span", {
2532
- className: fr.icon,
2594
+ className: pr.icon,
2533
2595
  children: e.icon
2534
2596
  }),
2535
2597
  /* @__PURE__ */ _("span", {
2536
- className: fr.content,
2598
+ className: pr.content,
2537
2599
  children: [/* @__PURE__ */ g("span", {
2538
- className: fr.label,
2600
+ className: pr.label,
2539
2601
  children: e.label
2540
2602
  }), e.description && /* @__PURE__ */ g("span", {
2541
- className: fr.description,
2603
+ className: pr.description,
2542
2604
  children: e.description
2543
2605
  })]
2544
2606
  }),
2545
2607
  e.badge && /* @__PURE__ */ g("span", {
2546
- className: fr.badge,
2608
+ className: pr.badge,
2547
2609
  children: e.badge
2548
2610
  }),
2549
2611
  e.shortcut && /* @__PURE__ */ g("kbd", {
2550
- className: fr.shortcut,
2612
+ className: pr.shortcut,
2551
2613
  children: e.shortcut
2552
2614
  })
2553
2615
  ] }), /* @__PURE__ */ g("span", {
2554
- className: fr.check,
2616
+ className: pr.check,
2555
2617
  "aria-hidden": "true",
2556
2618
  children: t && /* @__PURE__ */ g(v, {})
2557
2619
  })]
2558
2620
  });
2559
2621
  };
2560
- mr.displayName = "SelectItemRow";
2561
- var hr = {
2622
+ hr.displayName = "SelectItemRow";
2623
+ var gr = {
2562
2624
  dropdown: "_dropdown_1lvgh_1",
2563
2625
  dropdownIn: "_dropdownIn_1lvgh_1",
2564
2626
  primary: "_primary_1lvgh_103",
@@ -2583,107 +2645,107 @@ var hr = {
2583
2645
  separator: "_separator_1lvgh_1575",
2584
2646
  virtualSpacer: "_virtualSpacer_1lvgh_1581",
2585
2647
  mobileDropdownIn: "_mobileDropdownIn_1lvgh_1"
2586
- }, gr = ({ children: e, className: t }) => {
2587
- let { contentProps: n } = cr(), r = vr(e);
2588
- return /* @__PURE__ */ g(_r, {
2648
+ }, _r = ({ children: e, className: t }) => {
2649
+ let { contentProps: n } = lr(), r = yr(e);
2650
+ return /* @__PURE__ */ g(vr, {
2589
2651
  ...n,
2590
2652
  ...r,
2591
2653
  className: [n.className, t].filter(Boolean).join(" ")
2592
2654
  });
2593
2655
  };
2594
- ur(gr, "content"), gr.displayName = "Select.Content";
2595
- var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style: i, options: a, entries: s, multiple: l, selectedValues: u, color: m = "primary", variant: v = "outline", searchable: y, command: b, virtual: S, portal: C = !0, searchValue: w = "", searchPlaceholder: T = "Search...", loading: E, loadingText: D = "Loading...", emptyText: O, searchSlot: k, headerSlot: A, emptySlot: j, loadingSlot: M, renderOption: N, selectedValue: P, activeIndex: F, visualActiveIndex: I = F, className: L, onSelect: R, onSelectGroup: z, onMouseEnter: B, onSearchChange: V }) => {
2596
- let H = f(null), U = f(!1), [W, G] = p(null), [ee, te] = p(0), [ne, K] = p(), { bottomSpacerHeight: re, isVirtual: q, itemHeight: ie, maxHeight: ae, startIndex: oe, topSpacerHeight: se, viewportHeight: ce, visibleOptions: le } = d(() => lr({
2656
+ dr(_r, "content"), _r.displayName = "Select.Content";
2657
+ var vr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style: i, options: a, entries: s, multiple: l, selectedValues: u, color: m = "primary", variant: v = "outline", searchable: y, command: b, virtual: S, portal: C = !0, searchValue: w = "", searchPlaceholder: T = "Search...", loading: E, loadingText: D = "Loading...", emptyText: O, searchSlot: k, headerSlot: A, emptySlot: j, loadingSlot: M, renderOption: N, selectedValue: P, activeIndex: F, visualActiveIndex: I = F, className: L, onSelect: R, onSelectGroup: z, onMouseEnter: ee, onSearchChange: B }) => {
2658
+ let V = f(null), H = f(!1), [U, W] = p(null), [te, ne] = p(0), [re, ie] = p(), { bottomSpacerHeight: ae, isVirtual: G, itemHeight: oe, maxHeight: se, startIndex: ce, topSpacerHeight: le, viewportHeight: ue, visibleOptions: de } = d(() => ur({
2597
2659
  loading: E,
2598
2660
  options: a,
2599
- scrollTop: ee,
2661
+ scrollTop: te,
2600
2662
  virtual: S,
2601
- viewportHeight: ne
2663
+ viewportHeight: re
2602
2664
  }), [
2603
2665
  E,
2604
2666
  a,
2605
- ee,
2606
- ne,
2667
+ te,
2668
+ re,
2607
2669
  S
2608
- ]), ue = o((e) => {
2609
- G(e), r(e), e && K(e.clientHeight || void 0);
2670
+ ]), fe = o((e) => {
2671
+ W(e), r(e), e && ie(e.clientHeight || void 0);
2610
2672
  }, [r]);
2611
2673
  c(() => {
2612
- e || (U.current = !1, te(0), K(void 0));
2674
+ e || (H.current = !1, ne(0), ie(void 0));
2613
2675
  }, [e, w]), c(() => {
2614
- if (!e || !W || (K(W.clientHeight || void 0), !("ResizeObserver" in window))) return;
2676
+ if (!e || !U || (ie(U.clientHeight || void 0), !("ResizeObserver" in window))) return;
2615
2677
  let t = new ResizeObserver(([e]) => {
2616
- K(e?.contentRect.height || void 0);
2678
+ ie(e?.contentRect.height || void 0);
2617
2679
  });
2618
- return t.observe(W), () => t.disconnect();
2619
- }, [W, e]), c(() => {
2680
+ return t.observe(U), () => t.disconnect();
2681
+ }, [U, e]), c(() => {
2620
2682
  if (!e || !y) return;
2621
2683
  let t = window.setTimeout(() => {
2622
- H.current?.focus({ preventScroll: !0 });
2684
+ V.current?.focus({ preventScroll: !0 });
2623
2685
  }, 0);
2624
2686
  return () => window.clearTimeout(t);
2625
2687
  }, [e, y]), c(() => {
2626
- if (!e || E || !W || U.current) return;
2688
+ if (!e || E || !U || H.current) return;
2627
2689
  let n = a.findIndex((e) => u ? u.includes(e.value) : e.value === P), r = n >= 0 ? n : F;
2628
- if (r < 0) U.current = !0;
2629
- else if (U.current = !0, q) {
2630
- let e = Math.max(0, r * ie - (ce - ie) / 2);
2631
- te(e), W.scrollTop = e;
2690
+ if (r < 0) H.current = !0;
2691
+ else if (H.current = !0, G) {
2692
+ let e = Math.max(0, r * oe - (ue - oe) / 2);
2693
+ ne(e), U.scrollTop = e;
2632
2694
  } else document.getElementById(`${t}-option-${r}`)?.scrollIntoView?.({ block: "nearest" });
2633
2695
  }, [
2634
2696
  F,
2635
- W,
2697
+ U,
2636
2698
  e,
2637
- q,
2638
- ie,
2699
+ G,
2700
+ oe,
2639
2701
  t,
2640
2702
  E,
2641
2703
  a,
2642
2704
  P,
2643
2705
  u,
2644
- ce
2706
+ ue
2645
2707
  ]);
2646
- let de = d(() => ({
2708
+ let pe = d(() => ({
2647
2709
  ...i,
2648
- "--select-dropdown-max-height": typeof ae == "number" ? `${ae}px` : ae
2649
- }), [ae, i]);
2710
+ "--select-dropdown-max-height": typeof se == "number" ? `${se}px` : se
2711
+ }), [se, i]);
2650
2712
  if (!e) return null;
2651
- let fe = s && !q ? s : le.map((e, t) => ({
2713
+ let me = s && !G ? s : de.map((e, t) => ({
2652
2714
  type: "option",
2653
2715
  option: e,
2654
- optionIndex: oe + t
2655
- })), pe = /* @__PURE__ */ _("div", {
2656
- ref: ue,
2716
+ optionIndex: ce + t
2717
+ })), he = /* @__PURE__ */ _("div", {
2718
+ ref: fe,
2657
2719
  tabIndex: 0,
2658
2720
  className: [
2659
- hr.dropdown,
2660
- hr[m],
2661
- hr[v],
2662
- b ? hr.command : void 0,
2721
+ gr.dropdown,
2722
+ gr[m],
2723
+ gr[v],
2724
+ b ? gr.command : void 0,
2663
2725
  L
2664
2726
  ].filter(Boolean).join(" "),
2665
- style: de,
2727
+ style: pe,
2666
2728
  onScroll: (e) => {
2667
- q && te(e.currentTarget.scrollTop);
2729
+ G && ne(e.currentTarget.scrollTop);
2668
2730
  },
2669
2731
  children: [
2670
2732
  A,
2671
2733
  k ?? (y && /* @__PURE__ */ _("div", {
2672
- className: hr.searchWrap,
2734
+ className: gr.searchWrap,
2673
2735
  children: [/* @__PURE__ */ g("input", {
2674
- ref: H,
2675
- className: hr.search,
2736
+ ref: V,
2737
+ className: gr.search,
2676
2738
  value: w,
2677
2739
  placeholder: b ? "Type a command..." : T,
2678
2740
  "aria-label": "Search options",
2679
- onInput: (e) => V?.(e.currentTarget.value),
2680
- onChange: (e) => V?.(e.target.value)
2741
+ onInput: (e) => B?.(e.currentTarget.value),
2742
+ onChange: (e) => B?.(e.target.value)
2681
2743
  }), w && /* @__PURE__ */ g("button", {
2682
2744
  type: "button",
2683
- className: hr.searchClear,
2745
+ className: gr.searchClear,
2684
2746
  "aria-label": "Clear search",
2685
2747
  onClick: () => {
2686
- V?.(""), H.current?.focus();
2748
+ B?.(""), V.current?.focus();
2687
2749
  },
2688
2750
  children: /* @__PURE__ */ g(x, {})
2689
2751
  })]
@@ -2697,15 +2759,15 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2697
2759
  role: "option",
2698
2760
  "aria-disabled": "true",
2699
2761
  "aria-selected": "false",
2700
- className: hr.empty,
2762
+ className: gr.empty,
2701
2763
  children: M ?? D
2702
2764
  }) : a.length ? /* @__PURE__ */ _(h, { children: [
2703
- q && /* @__PURE__ */ g("li", {
2765
+ G && /* @__PURE__ */ g("li", {
2704
2766
  "aria-hidden": "true",
2705
- className: hr.virtualSpacer,
2706
- style: { height: se }
2767
+ className: gr.virtualSpacer,
2768
+ style: { height: le }
2707
2769
  }),
2708
- fe.map((e) => {
2770
+ me.map((e) => {
2709
2771
  if (e.type === "group") {
2710
2772
  if (e.selectable && l) {
2711
2773
  let t = e.itemValues.filter((e) => a.some((t) => t.value === e && !t.disabled)), n = u ? t.filter((e) => u.includes(e)).length : 0, r = t.length > 0 && n === t.length, i = n > 0 && n < t.length;
@@ -2713,16 +2775,16 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2713
2775
  role: "presentation",
2714
2776
  children: /* @__PURE__ */ _("button", {
2715
2777
  type: "button",
2716
- className: hr.groupAction,
2717
- "aria-label": yr(e.selectLabel ?? e.label),
2778
+ className: gr.groupAction,
2779
+ "aria-label": br(e.selectLabel ?? e.label),
2718
2780
  "aria-pressed": i ? "mixed" : r ? "true" : "false",
2719
2781
  disabled: t.length === 0,
2720
2782
  onClick: () => z(t),
2721
2783
  children: [/* @__PURE__ */ g("span", {
2722
- className: hr.groupActionText,
2784
+ className: gr.groupActionText,
2723
2785
  children: e.selectLabel ?? e.label
2724
2786
  }), /* @__PURE__ */ _("span", {
2725
- className: hr.groupActionMeta,
2787
+ className: gr.groupActionMeta,
2726
2788
  children: [
2727
2789
  n,
2728
2790
  "/",
@@ -2734,18 +2796,18 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2734
2796
  }
2735
2797
  return /* @__PURE__ */ g("li", {
2736
2798
  role: "presentation",
2737
- className: hr.groupLabel,
2799
+ className: gr.groupLabel,
2738
2800
  children: e.label
2739
2801
  }, e.id);
2740
2802
  }
2741
2803
  if (e.type === "separator") return /* @__PURE__ */ g("li", {
2742
2804
  role: "presentation",
2743
2805
  "aria-hidden": "true",
2744
- className: hr.separator,
2806
+ className: gr.separator,
2745
2807
  "data-vellira-select-separator": "true"
2746
2808
  }, e.id);
2747
2809
  let { option: n, optionIndex: r } = e;
2748
- return /* @__PURE__ */ g(mr, {
2810
+ return /* @__PURE__ */ g(hr, {
2749
2811
  option: n,
2750
2812
  isSelected: u ? u.includes(n.value) : n.value === P,
2751
2813
  isActive: r === I,
@@ -2755,32 +2817,32 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2755
2817
  multiple: !!l,
2756
2818
  renderOption: N,
2757
2819
  onSelect: R,
2758
- onMouseEnter: () => B(r)
2820
+ onMouseEnter: () => ee(r)
2759
2821
  }, n.value);
2760
2822
  }),
2761
- q && /* @__PURE__ */ g("li", {
2823
+ G && /* @__PURE__ */ g("li", {
2762
2824
  "aria-hidden": "true",
2763
- className: hr.virtualSpacer,
2764
- style: { height: re }
2825
+ className: gr.virtualSpacer,
2826
+ style: { height: ae }
2765
2827
  })
2766
2828
  ] }) : /* @__PURE__ */ g("li", {
2767
2829
  role: "option",
2768
2830
  "aria-disabled": "true",
2769
2831
  "aria-selected": "false",
2770
- className: hr.empty,
2832
+ className: gr.empty,
2771
2833
  children: j ?? O
2772
2834
  })
2773
2835
  })
2774
2836
  ]
2775
2837
  });
2776
- return C ? /* @__PURE__ */ g(Ot, { children: pe }) : pe;
2838
+ return C ? /* @__PURE__ */ g(Ot, { children: he }) : he;
2777
2839
  };
2778
- _r.displayName = "SelectContentSurface";
2779
- function vr(t) {
2840
+ vr.displayName = "SelectContentSurface";
2841
+ function yr(t) {
2780
2842
  let n, r, i, o;
2781
2843
  return e.forEach(t, (e) => {
2782
2844
  if (!a(e)) return;
2783
- let t = dr(e.type);
2845
+ let t = fr(e.type);
2784
2846
  t === "label" && (n = e), t === "search" && (r = e), t === "empty" && (i = e), t === "loading" && (o = e);
2785
2847
  }), {
2786
2848
  emptySlot: i,
@@ -2789,15 +2851,15 @@ function vr(t) {
2789
2851
  searchSlot: r
2790
2852
  };
2791
2853
  }
2792
- function yr(e) {
2854
+ function br(e) {
2793
2855
  return typeof e == "string" || typeof e == "number" ? String(e) : "Select group";
2794
2856
  }
2795
2857
  // src/components/Select/Empty/SelectEmpty.tsx
2796
- var br = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
2797
- ur(br, "empty"), br.displayName = "Select.Empty";
2858
+ var xr = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
2859
+ dr(xr, "empty"), xr.displayName = "Select.Empty";
2798
2860
  // src/components/Select/Group/SelectGroup.tsx
2799
- var xr = () => null;
2800
- ur(xr, "group"), xr.displayName = "Select.Group";
2861
+ var Sr = () => null;
2862
+ dr(Sr, "group"), Sr.displayName = "Select.Group";
2801
2863
  var Z = {
2802
2864
  root: "_root_jn0gk_1",
2803
2865
  control: "_control_jn0gk_8",
@@ -2826,45 +2888,45 @@ var Z = {
2826
2888
  spin: "_spin_jn0gk_817",
2827
2889
  loading: "_loading_jn0gk_826",
2828
2890
  open: "_open_jn0gk_845"
2829
- }, Sr = ({ children: e, className: t }) => {
2830
- let { triggerProps: n } = cr();
2891
+ }, Cr = ({ children: e, className: t }) => {
2892
+ let { triggerProps: n } = lr();
2831
2893
  return /* @__PURE__ */ g("span", {
2832
- className: J(Z.arrow, { [Z.open]: n.isOpen }, t),
2894
+ className: K(Z.arrow, { [Z.open]: n.isOpen }, t),
2833
2895
  "aria-hidden": "true",
2834
2896
  children: n.loading ? /* @__PURE__ */ g("span", { className: Z.spinner }) : e ?? n.endIcon ?? /* @__PURE__ */ g(y, {})
2835
2897
  });
2836
2898
  };
2837
- ur(Sr, "icon"), Sr.displayName = "Select.Icon";
2899
+ dr(Cr, "icon"), Cr.displayName = "Select.Icon";
2838
2900
  // src/components/Select/ItemBadge/SelectItemBadge.tsx
2839
- var Cr = () => null;
2840
- ur(Cr, "itemBadge"), Cr.displayName = "Select.ItemBadge";
2841
- // src/components/Select/ItemDescription/SelectItemDescription.tsx
2842
2901
  var wr = () => null;
2843
- ur(wr, "itemDescription"), wr.displayName = "Select.ItemDescription";
2844
- // src/components/Select/ItemIcon/SelectItemIcon.tsx
2902
+ dr(wr, "itemBadge"), wr.displayName = "Select.ItemBadge";
2903
+ // src/components/Select/ItemDescription/SelectItemDescription.tsx
2845
2904
  var Tr = () => null;
2846
- ur(Tr, "itemIcon"), Tr.displayName = "Select.ItemIcon";
2905
+ dr(Tr, "itemDescription"), Tr.displayName = "Select.ItemDescription";
2906
+ // src/components/Select/ItemIcon/SelectItemIcon.tsx
2907
+ var Er = () => null;
2908
+ dr(Er, "itemIcon"), Er.displayName = "Select.ItemIcon";
2847
2909
  // src/components/Select/Label/SelectLabel.tsx
2848
- var Er = ({ children: e }) => /* @__PURE__ */ g("div", {
2910
+ var Dr = ({ children: e }) => /* @__PURE__ */ g("div", {
2849
2911
  role: "presentation",
2850
- className: hr.groupLabel,
2912
+ className: gr.groupLabel,
2851
2913
  children: e
2852
2914
  });
2853
- ur(Er, "label"), Er.displayName = "Select.Label";
2915
+ dr(Dr, "label"), Dr.displayName = "Select.Label";
2854
2916
  // src/components/Select/Loading/SelectLoading.tsx
2855
- var Dr = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
2856
- ur(Dr, "loading"), Dr.displayName = "Select.Loading";
2917
+ var Or = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
2918
+ dr(Or, "loading"), Or.displayName = "Select.Loading";
2857
2919
  // src/components/Select/Trigger/SelectTrigger.tsx
2858
- var Or = ({ children: e, className: t }) => {
2859
- let { triggerProps: n } = cr();
2860
- return /* @__PURE__ */ g(kr, {
2920
+ var kr = ({ children: e, className: t }) => {
2921
+ let { triggerProps: n } = lr();
2922
+ return /* @__PURE__ */ g(Ar, {
2861
2923
  ...n,
2862
2924
  className: [n.className, t].filter(Boolean).join(" "),
2863
2925
  children: e
2864
2926
  });
2865
2927
  };
2866
- ur(Or, "trigger"), Or.displayName = "Select.Trigger";
2867
- var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabled: a, required: o, listboxId: s, activeIndex: c, ariaLabel: l, error: u, displayText: d, isPlaceholder: f, size: p = "md", color: m, variant: v, loading: b, startIcon: S, endIcon: C, prefix: w, suffix: T, clearable: E, onClear: D, className: O, buttonRef: k, onClick: A, onKeyDown: j, onBlur: M, onFocus: N }) => /* @__PURE__ */ _("span", {
2928
+ dr(kr, "trigger"), kr.displayName = "Select.Trigger";
2929
+ var Ar = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabled: a, required: o, listboxId: s, activeIndex: c, ariaLabel: l, error: u, displayText: d, isPlaceholder: f, size: p = "md", color: m, variant: v, loading: b, startIcon: S, endIcon: C, prefix: w, suffix: T, clearable: E, onClear: D, className: O, buttonRef: k, onClick: A, onKeyDown: j, onBlur: M, onFocus: N }) => /* @__PURE__ */ _("span", {
2868
2930
  className: Z.root,
2869
2931
  children: [/* @__PURE__ */ g("button", {
2870
2932
  id: t,
@@ -2882,7 +2944,7 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
2882
2944
  "aria-controls": i ? s : void 0,
2883
2945
  "aria-describedby": n,
2884
2946
  "aria-activedescendant": i && c >= 0 ? `${s}-option-${c}` : void 0,
2885
- className: J(Z.control, Z[p], Z[v], Z[m], {
2947
+ className: K(Z.control, Z[p], Z[v], Z[m], {
2886
2948
  [Z.error]: !!u,
2887
2949
  [Z.disabled]: a,
2888
2950
  [Z.loading]: b,
@@ -2904,7 +2966,7 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
2904
2966
  /* @__PURE__ */ g("span", {
2905
2967
  className: Z.valueWrap,
2906
2968
  children: /* @__PURE__ */ g("span", {
2907
- className: J(Z.value, { [Z.placeholder]: f }),
2969
+ className: K(Z.value, { [Z.placeholder]: f }),
2908
2970
  children: d
2909
2971
  })
2910
2972
  }),
@@ -2913,7 +2975,7 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
2913
2975
  children: T
2914
2976
  }),
2915
2977
  /* @__PURE__ */ g("span", {
2916
- className: J(Z.arrow, { [Z.open]: i }),
2978
+ className: K(Z.arrow, { [Z.open]: i }),
2917
2979
  "aria-hidden": "true",
2918
2980
  children: b ? /* @__PURE__ */ g("span", { className: Z.spinner }) : C ?? /* @__PURE__ */ g(y, {})
2919
2981
  })
@@ -2928,16 +2990,16 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
2928
2990
  children: /* @__PURE__ */ g(x, {})
2929
2991
  })]
2930
2992
  });
2931
- kr.displayName = "SelectTriggerSurface";
2993
+ Ar.displayName = "SelectTriggerSurface";
2932
2994
  // src/components/Select/internal/SelectCollection.ts
2933
- function Ar(t) {
2995
+ function jr(t) {
2934
2996
  let n = [], r = [], i = 0;
2935
2997
  function o(t) {
2936
2998
  e.forEach(t, (e) => {
2937
2999
  if (!a(e)) return;
2938
- let t = dr(e.type);
3000
+ let t = fr(e.type);
2939
3001
  if (t === "group") {
2940
- let t = e.props, r = Mr(t.children);
3002
+ let t = e.props, r = Nr(t.children);
2941
3003
  n.push({
2942
3004
  type: "group",
2943
3005
  id: `group-${i++}`,
@@ -2947,7 +3009,7 @@ function Ar(t) {
2947
3009
  itemValues: r
2948
3010
  }), o(t.children);
2949
3011
  } else if (t === "item") {
2950
- let t = e.props, i = Nr(t.children, t.value), a = t.label ?? i.label, o = r.length, s = {
3012
+ let t = e.props, i = Pr(t.children, t.value), a = t.label ?? i.label, o = r.length, s = {
2951
3013
  asChild: t.asChild,
2952
3014
  children: t.children,
2953
3015
  label: a,
@@ -2975,27 +3037,27 @@ function Ar(t) {
2975
3037
  options: r
2976
3038
  };
2977
3039
  }
2978
- function jr(t) {
3040
+ function Mr(t) {
2979
3041
  let n = !1;
2980
3042
  function r(t) {
2981
3043
  e.forEach(t, (e) => {
2982
3044
  if (!a(e) || n) return;
2983
- let t = dr(e.type);
3045
+ let t = fr(e.type);
2984
3046
  t === "trigger" || t === "content" ? n = !0 : r(e.props.children);
2985
3047
  });
2986
3048
  }
2987
3049
  return r(t), n;
2988
3050
  }
2989
- function Mr(t) {
3051
+ function Nr(t) {
2990
3052
  let n = [];
2991
3053
  function r(t) {
2992
3054
  e.forEach(t, (e) => {
2993
- a(e) && (dr(e.type) === "item" ? n.push(e.props.value) : r(e.props.children));
3055
+ a(e) && (fr(e.type) === "item" ? n.push(e.props.value) : r(e.props.children));
2994
3056
  });
2995
3057
  }
2996
3058
  return r(t), n;
2997
3059
  }
2998
- function Nr(t, n) {
3060
+ function Pr(t, n) {
2999
3061
  let r, i, o, s = [];
3000
3062
  function c(t) {
3001
3063
  e.forEach(t, (e) => {
@@ -3004,7 +3066,7 @@ function Nr(t, n) {
3004
3066
  return;
3005
3067
  }
3006
3068
  if (!a(e)) return;
3007
- let t = dr(e.type);
3069
+ let t = fr(e.type);
3008
3070
  t === "itemBadge" ? r = e.props.children : t === "itemIcon" ? o = e.props.children : t === "itemDescription" ? i = e.props.children : c(e.props.children);
3009
3071
  });
3010
3072
  }
@@ -3018,20 +3080,20 @@ function Nr(t, n) {
3018
3080
  };
3019
3081
  }
3020
3082
  // src/components/Select/internal/SelectSearch.ts
3021
- function Pr({ options: e, searchable: t, searchValue: n }) {
3083
+ function Fr({ options: e, searchable: t, searchValue: n }) {
3022
3084
  if (!t || !n) return e;
3023
3085
  let r = n.toLocaleLowerCase();
3024
- return e.filter((e) => `${e.label} ${Fr(e.description)}`.toLocaleLowerCase().includes(r));
3086
+ return e.filter((e) => `${e.label} ${Ir(e.description)}`.toLocaleLowerCase().includes(r));
3025
3087
  }
3026
- function Fr(e) {
3088
+ function Ir(e) {
3027
3089
  return typeof e == "string" || typeof e == "number" ? String(e) : "";
3028
3090
  }
3029
3091
  // src/components/Select/internal/useSelectCollection.ts
3030
- function Ir(e) {
3031
- return d(() => Ar(e), [e]);
3092
+ function Lr(e) {
3093
+ return d(() => jr(e), [e]);
3032
3094
  }
3033
3095
  // src/patterns/FormField/FormFieldContext.ts
3034
- var Lr = r(null), Rr = () => s(Lr), zr = {
3096
+ var Rr = r(null), zr = () => s(Rr), Br = {
3035
3097
  wrapper: "_wrapper_r078u_1",
3036
3098
  sm: "_sm_r078u_41",
3037
3099
  md: "_md_r078u_78",
@@ -3053,12 +3115,12 @@ var Lr = r(null), Rr = () => s(Lr), zr = {
3053
3115
  messageToneWarning: "_messageToneWarning_r078u_257",
3054
3116
  messageToneDanger: "_messageToneDanger_r078u_261",
3055
3117
  disabled: "_disabled_r078u_274"
3056
- }, Br = (...e) => e.filter(Boolean).join(" ") || void 0;
3057
- function Vr(e, t) {
3118
+ }, Vr = (...e) => e.filter(Boolean).join(" ") || void 0;
3119
+ function Hr(e, t) {
3058
3120
  let n = () => null;
3059
3121
  return n.__velliraFormFieldPart = e, n.displayName = t, n;
3060
3122
  }
3061
- function Hr(t) {
3123
+ function Ur(t) {
3062
3124
  let n = [], r = { hasSlots: !1 };
3063
3125
  return e.forEach(t, (e) => {
3064
3126
  if (!a(e)) e != null && e !== !1 && n.push(e);
@@ -3079,292 +3141,292 @@ function Hr(t) {
3079
3141
  }
3080
3142
  }), n.length > 0 && (r.fallbackChildren = n.length === 1 ? n[0] : n), r;
3081
3143
  }
3082
- var Ur = ({ id: e, label: r, description: i, error: o, message: s, messageTone: c, messageLive: u, required: d = !1, disabled: f = !1, invalid: p = !1, orientation: m = "vertical", labelPosition: h = "top", size: v = "md", labelInfo: y, labelAction: b, optionalText: x, children: S, bindControl: C = !0, className: w, controlClassName: T, labelClassName: E, descriptionClassName: D, errorClassName: O, messageClassName: k, ...A }) => {
3083
- let j = Hr(S), M = r ?? j.label?.children, N = i ?? j.description?.children, P = s ?? j.message?.children, F = c ?? j.message?.tone ?? "neutral", I = u ?? j.message?.live ?? "off", L = y ?? j.label?.info, R = b ?? j.label?.action, z = x ?? j.label?.optionalText, B = j.hasSlots ? j.control?.children ?? j.fallbackChildren : S, V = j.control?.bindControl ?? C, H = l(), U = e ?? H, W = M ? `${U}-label` : void 0, G = N && U ? `${U}-description` : void 0, ee = o && U ? `${U}-error` : void 0, te = !o && P && U ? `${U}-message` : void 0, ne = p || !!o, K = o ?? P, re = o ? "danger" : F, q = {
3084
- neutral: zr.messageToneNeutral,
3085
- success: zr.messageToneSuccess,
3086
- warning: zr.messageToneWarning,
3087
- danger: zr.messageToneDanger
3088
- }[re], ie = Br(W), ae = Br(G, ee, te), oe = {
3089
- controlId: U,
3090
- labelId: W,
3091
- descriptionId: G,
3092
- errorId: ee,
3093
- messageId: te,
3144
+ var Wr = ({ id: e, label: r, description: i, error: o, message: s, messageTone: c, messageLive: u, required: d = !1, disabled: f = !1, invalid: p = !1, orientation: m = "vertical", labelPosition: h = "top", size: v = "md", labelInfo: y, labelAction: b, optionalText: x, children: S, bindControl: C = !0, className: w, controlClassName: T, labelClassName: E, descriptionClassName: D, errorClassName: O, messageClassName: k, ...A }) => {
3145
+ let j = Ur(S), M = r ?? j.label?.children, N = i ?? j.description?.children, P = s ?? j.message?.children, F = c ?? j.message?.tone ?? "neutral", I = u ?? j.message?.live ?? "off", L = y ?? j.label?.info, R = b ?? j.label?.action, z = x ?? j.label?.optionalText, ee = j.hasSlots ? j.control?.children ?? j.fallbackChildren : S, B = j.control?.bindControl ?? C, V = l(), H = e ?? V, U = M ? `${H}-label` : void 0, W = N && H ? `${H}-description` : void 0, te = o && H ? `${H}-error` : void 0, ne = !o && P && H ? `${H}-message` : void 0, re = p || !!o, ie = o ?? P, ae = o ? "danger" : F, G = {
3146
+ neutral: Br.messageToneNeutral,
3147
+ success: Br.messageToneSuccess,
3148
+ warning: Br.messageToneWarning,
3149
+ danger: Br.messageToneDanger
3150
+ }[ae], oe = Vr(U), se = Vr(W, te, ne), ce = {
3151
+ controlId: H,
3152
+ labelId: U,
3153
+ descriptionId: W,
3154
+ errorId: te,
3155
+ messageId: ne,
3094
3156
  required: d,
3095
3157
  disabled: f,
3096
- invalid: ne,
3158
+ invalid: re,
3097
3159
  size: v,
3098
- ariaLabelledBy: ie,
3099
- ariaDescribedBy: ae
3100
- }, se = a(B) && B.type !== t ? B : void 0, ce = V && se ? n(se, {
3101
- id: se.props.id ?? U,
3102
- required: se.props.required ?? d,
3103
- disabled: se.props.disabled ?? f,
3104
- "aria-invalid": se.props["aria-invalid"] ?? (ne || void 0),
3105
- "aria-labelledby": Br(se.props["aria-labelledby"], ie),
3106
- "aria-describedby": Br(se.props["aria-describedby"], ae)
3107
- }) : B;
3160
+ ariaLabelledBy: oe,
3161
+ ariaDescribedBy: se
3162
+ }, le = a(ee) && ee.type !== t ? ee : void 0, ue = B && le ? n(le, {
3163
+ id: le.props.id ?? H,
3164
+ required: le.props.required ?? d,
3165
+ disabled: le.props.disabled ?? f,
3166
+ "aria-invalid": le.props["aria-invalid"] ?? (re || void 0),
3167
+ "aria-labelledby": Vr(le.props["aria-labelledby"], oe),
3168
+ "aria-describedby": Vr(le.props["aria-describedby"], se)
3169
+ }) : ee;
3108
3170
  return /* @__PURE__ */ _("div", {
3109
3171
  ...A,
3110
3172
  "aria-disabled": f || void 0,
3111
- className: J(zr.wrapper, zr[m], zr[h], zr[v], f && zr.disabled, w),
3173
+ className: K(Br.wrapper, Br[m], Br[h], Br[v], f && Br.disabled, w),
3112
3174
  "data-disabled": f || void 0,
3113
- "data-invalid": ne || void 0,
3175
+ "data-invalid": re || void 0,
3114
3176
  "data-orientation": m,
3115
3177
  "data-size": v,
3116
3178
  children: [
3117
3179
  (M || R) && /* @__PURE__ */ _("div", {
3118
- className: zr.labelRow,
3180
+ className: Br.labelRow,
3119
3181
  children: [M && /* @__PURE__ */ _("label", {
3120
- id: W,
3121
- htmlFor: U,
3122
- className: J(zr.label, j.label?.className, E),
3182
+ id: U,
3183
+ htmlFor: H,
3184
+ className: K(Br.label, j.label?.className, E),
3123
3185
  children: [
3124
3186
  /* @__PURE__ */ g("span", {
3125
- className: zr.labelText,
3187
+ className: Br.labelText,
3126
3188
  children: M
3127
3189
  }),
3128
3190
  d && /* @__PURE__ */ g("span", {
3129
- className: zr.required,
3191
+ className: Br.required,
3130
3192
  "aria-hidden": "true",
3131
3193
  children: "*"
3132
3194
  }),
3133
3195
  !d && z && /* @__PURE__ */ g("span", {
3134
- className: zr.optional,
3196
+ className: Br.optional,
3135
3197
  children: z
3136
3198
  }),
3137
3199
  L && /* @__PURE__ */ g("span", {
3138
- className: zr.labelInfo,
3200
+ className: Br.labelInfo,
3139
3201
  children: L
3140
3202
  })
3141
3203
  ]
3142
3204
  }), R && /* @__PURE__ */ g("div", {
3143
- className: zr.labelAction,
3205
+ className: Br.labelAction,
3144
3206
  children: R
3145
3207
  })]
3146
3208
  }),
3147
3209
  N && /* @__PURE__ */ g("div", {
3148
- id: G,
3149
- className: J(zr.description, j.description?.className, D),
3210
+ id: W,
3211
+ className: K(Br.description, j.description?.className, D),
3150
3212
  children: N
3151
3213
  }),
3152
- /* @__PURE__ */ g(Lr.Provider, {
3153
- value: oe,
3214
+ /* @__PURE__ */ g(Rr.Provider, {
3215
+ value: ce,
3154
3216
  children: /* @__PURE__ */ g("div", {
3155
- className: J(zr.control, j.control?.className, T),
3156
- children: ce
3217
+ className: K(Br.control, j.control?.className, T),
3218
+ children: ue
3157
3219
  })
3158
3220
  }),
3159
- K && /* @__PURE__ */ g("div", {
3160
- id: o ? ee : te,
3161
- className: J(zr.message, q, !o && j.message?.className, o ? O : k),
3221
+ ie && /* @__PURE__ */ g("div", {
3222
+ id: o ? te : ne,
3223
+ className: K(Br.message, G, !o && j.message?.className, o ? O : k),
3162
3224
  role: o ? "alert" : void 0,
3163
3225
  "aria-live": !o && I === "polite" ? "polite" : void 0,
3164
- children: K
3226
+ children: ie
3165
3227
  })
3166
3228
  ]
3167
3229
  });
3168
- }, Wr = Vr("label", "FormField.Label"), Gr = Vr("description", "FormField.Description"), Kr = Vr("control", "FormField.Control"), qr = Vr("message", "FormField.Message"), Jr = Object.assign(Ur, {
3169
- Label: Wr,
3170
- Description: Gr,
3171
- Control: Kr,
3172
- Message: qr,
3230
+ }, Gr = Hr("label", "FormField.Label"), Kr = Hr("description", "FormField.Description"), qr = Hr("control", "FormField.Control"), Jr = Hr("message", "FormField.Message"), Yr = Object.assign(Wr, {
3231
+ Label: Gr,
3232
+ Description: Kr,
3233
+ Control: qr,
3234
+ Message: Jr,
3173
3235
  displayName: "FormField"
3174
3236
  });
3175
3237
  // src/components/Select/Root/useSelectRootState.tsx
3176
- function Yr(e) {
3177
- let { children: t, label: n, description: r, id: i, name: a, "aria-label": s, "aria-describedby": u, "aria-labelledby": m, multiple: v = !1, maxSelected: y, closeOnSelect: b, placeholder: x = "Select...", empty: S, loadingText: C = "Loading...", size: w, color: T = "primary", variant: E = "outline", required: D = !1, disabled: O = !1, invalid: k = !1, loading: A = !1, clearable: j = !1, searchable: M = !1, virtual: N, modal: P = !1, command: F = !1, error: I, placement: R = "bottom", matchTriggerWidth: z = !0, avoidCollisions: B = !0, portal: V = !0, open: H, defaultOpen: U = !1, onOpenChange: W, onSearch: G, onClear: ee, startIcon: te, endIcon: ne, prefix: K, suffix: re, renderValue: q, renderOption: ie, onBlur: ae, onFocus: oe, className: se, triggerClassName: ce, dropdownClassName: le } = e, ue = l(), de = Rr(), fe = !!(n || r || I), pe = i ?? (fe ? void 0 : de?.controlId) ?? ue, me = `${pe}-listbox`, [J, he] = p(""), ge = !!I, Y = ge ? `${pe}-error` : void 0, _e = r ? `${pe}-description` : void 0, ve = w ?? de?.size ?? "md", ye = k || ge || !fe && !!de?.invalid, be = O || !fe && !!de?.disabled, xe = D || !fe && !!de?.required, Se = [
3238
+ function Xr(e) {
3239
+ let { children: t, label: n, description: r, id: i, name: a, "aria-label": s, "aria-describedby": u, "aria-labelledby": m, multiple: v = !1, maxSelected: y, closeOnSelect: b, placeholder: x = "Select...", empty: S, loadingText: C = "Loading...", size: w, color: T = "primary", variant: E = "outline", required: D = !1, disabled: O = !1, invalid: k = !1, loading: A = !1, clearable: j = !1, searchable: M = !1, virtual: N, modal: P = !1, command: F = !1, error: I, placement: R = "bottom", matchTriggerWidth: z = !0, avoidCollisions: ee = !0, portal: B = !0, open: V, defaultOpen: H = !1, onOpenChange: U, onSearch: W, onClear: te, startIcon: ne, endIcon: re, prefix: ie, suffix: ae, renderValue: G, renderOption: oe, onBlur: se, onFocus: ce, className: le, triggerClassName: ue, dropdownClassName: de } = e, fe = l(), pe = zr(), me = !!(n || r || I), he = i ?? (me ? void 0 : pe?.controlId) ?? fe, ge = `${he}-listbox`, [K, _e] = p(""), ve = !!I, q = ve ? `${he}-error` : void 0, ye = r ? `${he}-description` : void 0, be = w ?? pe?.size ?? "md", xe = k || ve || !me && !!pe?.invalid, Se = O || !me && !!pe?.disabled, Ce = D || !me && !!pe?.required, we = [
3178
3240
  u,
3179
- !fe && !u ? de?.ariaDescribedBy : void 0,
3180
- _e,
3181
- Y
3182
- ].filter(Boolean).join(" "), Ce = f(null), we = f(null), [Te, Ee] = p(!1), De = M || F, { entries: Oe, options: ke } = Ir(t), Ae = d(() => Pr({
3183
- options: ke,
3184
- searchable: De,
3185
- searchValue: J
3241
+ !me && !u ? pe?.ariaDescribedBy : void 0,
3242
+ ye,
3243
+ q
3244
+ ].filter(Boolean).join(" "), Te = f(null), Ee = f(null), [De, Oe] = p(!1), ke = M || F, { entries: Ae, options: je } = Lr(t), Me = d(() => Fr({
3245
+ options: je,
3246
+ searchable: ke,
3247
+ searchValue: K
3186
3248
  }), [
3187
- De,
3188
3249
  ke,
3189
- J
3190
- ]), je = e.multiple === !0 ? e.value : e.value === null ? "" : e.value, Me = e.multiple === !0 ? e.defaultValue : e.defaultValue === null ? "" : e.defaultValue, Ne = e.multiple === !0 ? e.onValueChange : void 0, X = e.multiple === !0 ? void 0 : e.onValueChange, { selectedValue: Pe, selectedValues: Fe, isOpen: Ie, setIsOpen: Le, setSelectedValue: Re, activeIndex: ze, setActiveIndex: Be, closeDropdown: Ve, toggleDropdown: He, selectValue: Ue, onKeyDown: We } = wt({
3191
- value: je,
3192
- defaultValue: Me,
3250
+ je,
3251
+ K
3252
+ ]), Ne = e.multiple === !0 ? e.value : e.value === null ? "" : e.value, Pe = e.multiple === !0 ? e.defaultValue : e.defaultValue === null ? "" : e.defaultValue, Fe = e.multiple === !0 ? e.onValueChange : void 0, J = e.multiple === !0 ? void 0 : e.onValueChange, { selectedValue: Ie, selectedValues: Y, isOpen: X, setIsOpen: Le, setSelectedValue: Re, activeIndex: ze, setActiveIndex: Be, closeDropdown: Ve, toggleDropdown: He, selectValue: Ue, onKeyDown: We } = wt({
3253
+ value: Ne,
3254
+ defaultValue: Pe,
3193
3255
  onValueChange: o((e) => {
3194
- v ? Ne?.(Array.isArray(e) ? e : e ? [e] : []) : X?.(Array.isArray(e) ? e[0] ?? null : e === "" ? null : e);
3256
+ v ? Fe?.(Array.isArray(e) ? e : e ? [e] : []) : J?.(Array.isArray(e) ? e[0] ?? null : e === "" ? null : e);
3195
3257
  }, [
3196
3258
  v,
3197
- Ne,
3198
- X
3259
+ Fe,
3260
+ J
3199
3261
  ]),
3200
- options: Ae,
3262
+ options: Me,
3201
3263
  multiple: v,
3202
3264
  maxSelected: y,
3203
3265
  closeOnSelect: b,
3204
- disabled: be,
3205
- open: H,
3206
- defaultOpen: U,
3207
- onOpenChange: W
3208
- }), Ge = d(() => ke.find((e) => Fe.includes(e.value)), [ke, Fe]), Ke = d(() => ke.filter((e) => Fe.includes(e.value)), [ke, Fe]), qe = !!Ge, Je = Array.isArray(Pe) ? Pe[0] ?? "" : Pe, { floatingStyles: Ye, setRef: Xe, setFloatingRef: Ze } = yt({
3209
- isOpen: Ie,
3266
+ disabled: Se,
3267
+ open: V,
3268
+ defaultOpen: H,
3269
+ onOpenChange: U
3270
+ }), Ge = d(() => je.find((e) => Y.includes(e.value)), [je, Y]), Ke = d(() => je.filter((e) => Y.includes(e.value)), [je, Y]), qe = !!Ge, Je = Array.isArray(Ie) ? Ie[0] ?? "" : Ie, { floatingStyles: Ye, setRef: Xe, setFloatingRef: Ze } = yt({
3271
+ isOpen: X,
3210
3272
  onOpenChange: Le,
3211
3273
  placement: R,
3212
3274
  matchTriggerWidth: z,
3213
- avoidCollisions: B
3275
+ avoidCollisions: ee
3214
3276
  }), Qe = o((e) => {
3215
- Ue(e), Ce.current?.focus();
3277
+ Ue(e), Te.current?.focus();
3216
3278
  }, [Ue]), $e = o((e) => {
3217
3279
  if (!v || e.length === 0) return;
3218
3280
  let t = L({
3219
- selectedValues: Fe,
3281
+ selectedValues: Y,
3220
3282
  groupValues: e,
3221
- enabledValues: new Set(ke.filter((e) => !e.disabled).map((e) => e.value)),
3283
+ enabledValues: new Set(je.filter((e) => !e.disabled).map((e) => e.value)),
3222
3284
  maxSelected: y
3223
3285
  });
3224
- t.clearedGroup ? Re(t.selectedValues) : (Re(t.selectedValues), b && (Ve(), Ce.current?.focus()));
3286
+ t.clearedGroup ? Re(t.selectedValues) : (Re(t.selectedValues), b && (Ve(), Te.current?.focus()));
3225
3287
  }, [
3226
3288
  Ve,
3227
3289
  b,
3228
3290
  y,
3229
3291
  v,
3230
- ke,
3231
- Fe,
3292
+ je,
3293
+ Y,
3232
3294
  Re
3233
3295
  ]), et = o(() => {
3234
- Ue(""), ee?.(), Ce.current?.focus();
3235
- }, [ee, Ue]), tt = o(() => {
3236
- Ie || Ee(!1), He();
3237
- }, [Ie, He]), nt = o((e) => {
3238
- Xr(e, Ie) && Ee(!0), We(e);
3239
- }, [Ie, We]), rt = o((e) => {
3240
- Ee(!0), Be(e);
3296
+ Ue(""), te?.(), Te.current?.focus();
3297
+ }, [te, Ue]), tt = o(() => {
3298
+ X || Oe(!1), He();
3299
+ }, [X, He]), nt = o((e) => {
3300
+ Zr(e, X) && Oe(!0), We(e);
3301
+ }, [X, We]), rt = o((e) => {
3302
+ Oe(!0), Be(e);
3241
3303
  }, [Be]), it = o((e) => {
3242
- he(e), G?.(e);
3243
- }, [G]), at = dt({
3244
- active: Ie,
3245
- id: me,
3304
+ _e(e), W?.(e);
3305
+ }, [W]), at = dt({
3306
+ active: X,
3307
+ id: ge,
3246
3308
  zIndexLevel: "dropdown",
3247
3309
  closeOnEscape: !0,
3248
3310
  closeOnOutsidePress: !0,
3249
- contentRef: we,
3250
- ignoreRefs: [Ce],
3311
+ contentRef: Ee,
3312
+ ignoreRefs: [Te],
3251
3313
  requestClose: Ve
3252
3314
  });
3253
3315
  c(() => {
3254
- Ie || Ee(!1);
3255
- }, [Ie]), c(() => {
3256
- !Ie && J && he("");
3257
- }, [Ie, J]), gt({
3258
- active: Ie,
3316
+ X || Oe(!1);
3317
+ }, [X]), c(() => {
3318
+ !X && K && _e("");
3319
+ }, [X, K]), gt({
3320
+ active: X,
3259
3321
  enabled: P
3260
3322
  });
3261
3323
  let ot = o((e) => {
3262
- Ce.current = e, Xe(e);
3324
+ Te.current = e, Xe(e);
3263
3325
  }, [Xe]), st = o((e) => {
3264
- we.current = e, Ze(e);
3265
- }, [Ze]), ct = d(() => q ? q({
3326
+ Ee.current = e, Ze(e);
3327
+ }, [Ze]), ct = d(() => G ? G({
3266
3328
  multiple: v,
3267
3329
  option: Ge,
3268
3330
  options: Ke,
3269
3331
  value: Je,
3270
- values: Fe
3332
+ values: Y
3271
3333
  }) : v && Ke.length ? Ke.map((e) => e.label).join(", ") : Ge?.label ?? x, [
3272
3334
  v,
3273
3335
  x,
3274
- q,
3336
+ G,
3275
3337
  Ge,
3276
3338
  Ke,
3277
- Fe,
3339
+ Y,
3278
3340
  Je
3279
- ]), lt = S ?? "No options available", ut = j && Fe.length > 0 && !be && !A, ft = d(() => ({
3341
+ ]), lt = S ?? "No options available", ut = j && Y.length > 0 && !Se && !A, ft = d(() => ({
3280
3342
  ...Ye,
3281
3343
  zIndex: at.zIndex
3282
3344
  }), [at.zIndex, Ye]), pt = d(() => ({
3283
- id: pe,
3284
- describedBy: Se || void 0,
3345
+ id: he,
3346
+ describedBy: we || void 0,
3285
3347
  labelledBy: s ? void 0 : m,
3286
- isOpen: Ie,
3287
- disabled: be,
3288
- required: xe,
3289
- listboxId: me,
3348
+ isOpen: X,
3349
+ disabled: Se,
3350
+ required: Ce,
3351
+ listboxId: ge,
3290
3352
  activeIndex: ze,
3291
- ariaLabel: s ?? (!n && !de?.labelId ? Ge?.label || x : void 0),
3292
- error: ye,
3353
+ ariaLabel: s ?? (!n && !pe?.labelId ? Ge?.label || x : void 0),
3354
+ error: xe,
3293
3355
  loading: A,
3294
3356
  displayText: ct,
3295
3357
  isPlaceholder: !qe,
3296
- size: ve,
3358
+ size: be,
3297
3359
  color: T,
3298
3360
  variant: E,
3299
- startIcon: te,
3300
- endIcon: ne,
3301
- prefix: K,
3302
- suffix: re,
3361
+ startIcon: ne,
3362
+ endIcon: re,
3363
+ prefix: ie,
3364
+ suffix: ae,
3303
3365
  clearable: ut,
3304
- className: ce,
3366
+ className: ue,
3305
3367
  buttonRef: ot,
3306
3368
  onClear: et,
3307
3369
  onClick: tt,
3308
3370
  onKeyDown: nt,
3309
- onBlur: ae,
3310
- onFocus: oe
3371
+ onBlur: se,
3372
+ onFocus: ce
3311
3373
  }), [
3312
3374
  ze,
3313
3375
  s,
3314
3376
  m,
3315
3377
  T,
3316
- Se,
3317
- ne,
3318
- de?.labelId,
3378
+ we,
3379
+ re,
3380
+ pe?.labelId,
3319
3381
  et,
3320
3382
  tt,
3321
3383
  nt,
3322
3384
  qe,
3323
- be,
3324
- ye,
3325
- Ie,
3385
+ Se,
3326
3386
  xe,
3387
+ X,
3388
+ Ce,
3327
3389
  n,
3328
- me,
3390
+ ge,
3329
3391
  A,
3330
- ae,
3331
- oe,
3392
+ se,
3393
+ ce,
3332
3394
  x,
3333
- K,
3334
- ve,
3395
+ ie,
3396
+ be,
3335
3397
  ct,
3336
3398
  Ge?.label,
3337
3399
  ot,
3338
3400
  ut,
3339
- te,
3340
- re,
3341
- ce,
3342
- pe,
3401
+ ne,
3402
+ ae,
3403
+ ue,
3404
+ he,
3343
3405
  E
3344
3406
  ]), mt = d(() => ({
3345
- isOpen: Ie,
3346
- listboxId: me,
3347
- labelledById: pe,
3407
+ isOpen: X,
3408
+ listboxId: ge,
3409
+ labelledById: he,
3348
3410
  style: ft,
3349
- options: Ae,
3350
- entries: De || J ? void 0 : Oe,
3411
+ options: Me,
3412
+ entries: ke || K ? void 0 : Ae,
3351
3413
  multiple: v,
3352
3414
  color: T,
3353
3415
  variant: E,
3354
- searchable: De,
3416
+ searchable: ke,
3355
3417
  command: F,
3356
3418
  virtual: N,
3357
- portal: V,
3358
- searchValue: J,
3419
+ portal: B,
3420
+ searchValue: K,
3359
3421
  loading: A,
3360
3422
  loadingText: C,
3361
3423
  emptyText: lt,
3362
- renderOption: ie,
3424
+ renderOption: oe,
3363
3425
  selectedValue: Je,
3364
- selectedValues: Fe,
3426
+ selectedValues: Y,
3365
3427
  activeIndex: ze,
3366
- visualActiveIndex: Te ? ze : -1,
3367
- className: le,
3428
+ visualActiveIndex: De ? ze : -1,
3429
+ className: de,
3368
3430
  setDropdownRef: st,
3369
3431
  onSelect: Qe,
3370
3432
  onSelectGroup: $e,
@@ -3375,87 +3437,87 @@ function Yr(e) {
3375
3437
  T,
3376
3438
  F,
3377
3439
  ft,
3378
- le,
3440
+ de,
3379
3441
  lt,
3380
- Ae,
3442
+ Me,
3381
3443
  rt,
3382
3444
  it,
3383
3445
  Qe,
3384
3446
  $e,
3385
- Te,
3386
- Ie,
3387
3447
  De,
3388
- me,
3448
+ X,
3449
+ ke,
3450
+ ge,
3389
3451
  A,
3390
3452
  C,
3391
3453
  v,
3392
- V,
3393
- ie,
3394
- Oe,
3395
- J,
3396
- Fe,
3454
+ B,
3455
+ oe,
3456
+ Ae,
3457
+ K,
3458
+ Y,
3397
3459
  st,
3398
3460
  Je,
3399
- pe,
3461
+ he,
3400
3462
  E,
3401
3463
  N
3402
3464
  ]), ht = d(() => ({
3403
3465
  triggerProps: pt,
3404
3466
  contentProps: mt
3405
- }), [mt, pt]), _t = d(() => /* @__PURE__ */ _(h, { children: [a && v && Fe.length > 0 && /* @__PURE__ */ g(h, { children: Fe.map((e) => /* @__PURE__ */ g("input", {
3467
+ }), [mt, pt]), _t = d(() => /* @__PURE__ */ _(h, { children: [a && v && Y.length > 0 && /* @__PURE__ */ g(h, { children: Y.map((e) => /* @__PURE__ */ g("input", {
3406
3468
  type: "hidden",
3407
3469
  name: a,
3408
3470
  value: e,
3409
- disabled: be
3471
+ disabled: Se
3410
3472
  }, e)) }), a && !v && /* @__PURE__ */ g("input", {
3411
3473
  type: "hidden",
3412
3474
  name: a,
3413
3475
  value: Je,
3414
- disabled: be
3476
+ disabled: Se
3415
3477
  })] }), [
3416
- be,
3478
+ Se,
3417
3479
  v,
3418
3480
  a,
3419
- Fe,
3481
+ Y,
3420
3482
  Je
3421
3483
  ]);
3422
3484
  return {
3423
3485
  children: t,
3424
- className: se,
3486
+ className: le,
3425
3487
  contentProps: mt,
3426
3488
  contextValue: ht,
3427
3489
  description: r,
3428
3490
  error: I,
3429
- hasCompoundLayout: d(() => jr(t), [t]),
3430
- hasExternalField: !fe && !!de,
3491
+ hasCompoundLayout: d(() => Mr(t), [t]),
3492
+ hasExternalField: !me && !!pe,
3431
3493
  hiddenInputs: _t,
3432
- isDisabled: be,
3433
- isRequired: xe,
3494
+ isDisabled: Se,
3495
+ isRequired: Ce,
3434
3496
  label: n,
3435
- resolvedSize: ve,
3436
- triggerId: pe,
3497
+ resolvedSize: be,
3498
+ triggerId: he,
3437
3499
  triggerProps: pt
3438
3500
  };
3439
3501
  }
3440
- function Xr(e, t) {
3502
+ function Zr(e, t) {
3441
3503
  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 === " ";
3442
3504
  }
3443
3505
  // src/components/Select/Root/SelectRoot.tsx
3444
- var Zr = (e) => {
3445
- let { children: t, className: n, contentProps: r, contextValue: i, description: a, error: o, hasCompoundLayout: s, hasExternalField: c, hiddenInputs: l, isDisabled: u, isRequired: f, label: p, resolvedSize: m, triggerId: v, triggerProps: y } = Yr(e), b = d(() => /* @__PURE__ */ _(sr, {
3506
+ var Qr = (e) => {
3507
+ let { children: t, className: n, contentProps: r, contextValue: i, description: a, error: o, hasCompoundLayout: s, hasExternalField: c, hiddenInputs: l, isDisabled: u, isRequired: f, label: p, resolvedSize: m, triggerId: v, triggerProps: y } = Xr(e), b = d(() => /* @__PURE__ */ _(cr, {
3446
3508
  value: i,
3447
- children: [l, s ? t : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(Or, {}), /* @__PURE__ */ g(gr, { children: t })] })]
3509
+ children: [l, s ? t : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(kr, {}), /* @__PURE__ */ g(_r, { children: t })] })]
3448
3510
  }), [
3449
3511
  t,
3450
3512
  i,
3451
3513
  s,
3452
3514
  l
3453
- ]), x = d(() => /* @__PURE__ */ _(sr, {
3515
+ ]), x = d(() => /* @__PURE__ */ _(cr, {
3454
3516
  value: i,
3455
3517
  children: [
3456
3518
  l,
3457
- /* @__PURE__ */ g(kr, { ...y }),
3458
- /* @__PURE__ */ g(_r, { ...r })
3519
+ /* @__PURE__ */ g(Ar, { ...y }),
3520
+ /* @__PURE__ */ g(vr, { ...r })
3459
3521
  ]
3460
3522
  }), [
3461
3523
  r,
@@ -3463,7 +3525,7 @@ var Zr = (e) => {
3463
3525
  l,
3464
3526
  y
3465
3527
  ]);
3466
- return c ? t ? b : x : /* @__PURE__ */ g(Jr, {
3528
+ return c ? t ? b : x : /* @__PURE__ */ g(Yr, {
3467
3529
  id: v,
3468
3530
  label: p,
3469
3531
  description: a,
@@ -3476,10 +3538,10 @@ var Zr = (e) => {
3476
3538
  children: t ? b : x
3477
3539
  });
3478
3540
  };
3479
- Zr.displayName = "SelectRoot";
3541
+ Qr.displayName = "SelectRoot";
3480
3542
  // src/components/Select/Search/SelectSearch.tsx
3481
- var Qr = ({ placeholder: e, className: t }) => {
3482
- let { contentProps: n } = cr(), r = f(null), i = n.searchValue ?? "";
3543
+ var $r = ({ placeholder: e, className: t }) => {
3544
+ let { contentProps: n } = lr(), r = f(null), i = n.searchValue ?? "";
3483
3545
  return c(() => {
3484
3546
  if (!n.isOpen) return;
3485
3547
  let e = window.setTimeout(() => {
@@ -3487,10 +3549,10 @@ var Qr = ({ placeholder: e, className: t }) => {
3487
3549
  }, 0);
3488
3550
  return () => window.clearTimeout(e);
3489
3551
  }, [n.isOpen]), /* @__PURE__ */ _("div", {
3490
- className: hr.searchWrap,
3552
+ className: gr.searchWrap,
3491
3553
  children: [/* @__PURE__ */ g("input", {
3492
3554
  ref: r,
3493
- className: J(hr.search, t),
3555
+ className: K(gr.search, t),
3494
3556
  value: i,
3495
3557
  placeholder: e ?? (n.command ? "Type a command..." : "Search..."),
3496
3558
  "aria-label": "Search options",
@@ -3498,7 +3560,7 @@ var Qr = ({ placeholder: e, className: t }) => {
3498
3560
  onChange: (e) => n.onSearchChange?.(e.target.value)
3499
3561
  }), i && /* @__PURE__ */ g("button", {
3500
3562
  type: "button",
3501
- className: hr.searchClear,
3563
+ className: gr.searchClear,
3502
3564
  "aria-label": "Clear search",
3503
3565
  onClick: () => {
3504
3566
  n.onSearchChange?.(""), r.current?.focus();
@@ -3507,51 +3569,51 @@ var Qr = ({ placeholder: e, className: t }) => {
3507
3569
  })]
3508
3570
  });
3509
3571
  };
3510
- ur(Qr, "search"), Qr.displayName = "Select.Search";
3572
+ dr($r, "search"), $r.displayName = "Select.Search";
3511
3573
  // src/components/Select/Separator/SelectSeparator.tsx
3512
- var $r = () => null;
3513
- ur($r, "separator"), $r.displayName = "Select.Separator";
3574
+ var ei = () => null;
3575
+ dr(ei, "separator"), ei.displayName = "Select.Separator";
3514
3576
  // src/components/Select/Value/SelectValue.tsx
3515
- var ei = ({ children: e, className: t }) => {
3516
- let { triggerProps: n } = cr();
3577
+ var ti = ({ children: e, className: t }) => {
3578
+ let { triggerProps: n } = lr();
3517
3579
  return /* @__PURE__ */ g("span", {
3518
- className: J(Z.valueWrap, t),
3580
+ className: K(Z.valueWrap, t),
3519
3581
  children: /* @__PURE__ */ g("span", {
3520
- className: J(Z.value, { [Z.placeholder]: n.isPlaceholder }),
3582
+ className: K(Z.value, { [Z.placeholder]: n.isPlaceholder }),
3521
3583
  children: e ?? n.displayText
3522
3584
  })
3523
3585
  });
3524
3586
  };
3525
- ur(ei, "value"), ei.displayName = "Select.Value";
3587
+ dr(ti, "value"), ti.displayName = "Select.Value";
3526
3588
  // src/components/Select/Select.tsx
3527
- var ti = Object.assign(Zr, {
3528
- Trigger: Or,
3529
- Value: ei,
3530
- Icon: Sr,
3531
- Content: gr,
3532
- Search: Qr,
3533
- Group: xr,
3534
- Label: Er,
3535
- Item: pr,
3536
- ItemIcon: Tr,
3537
- ItemDescription: wr,
3538
- ItemBadge: Cr,
3539
- Separator: $r,
3540
- Empty: br,
3541
- Loading: Dr
3589
+ var ni = Object.assign(Qr, {
3590
+ Trigger: kr,
3591
+ Value: ti,
3592
+ Icon: Cr,
3593
+ Content: _r,
3594
+ Search: $r,
3595
+ Group: Sr,
3596
+ Label: Dr,
3597
+ Item: mr,
3598
+ ItemIcon: Er,
3599
+ ItemDescription: Tr,
3600
+ ItemBadge: wr,
3601
+ Separator: ei,
3602
+ Empty: xr,
3603
+ Loading: Or
3542
3604
  });
3543
- ti.displayName = "Select";
3605
+ ni.displayName = "Select";
3544
3606
  // src/components/Tabs/internal/TabsContext.tsx
3545
- var ni = r(null), ri = () => {
3546
- let e = s(ni);
3607
+ var ri = r(null), ii = () => {
3608
+ let e = s(ri);
3547
3609
  if (!e) throw Error("Tabs components must be used inside Tabs");
3548
3610
  return e;
3549
- }, ii = {
3611
+ }, ai = {
3550
3612
  panel: "_panel_1v1a9_1",
3551
3613
  visible: "_visible_1v1a9_10",
3552
3614
  vertical: "_vertical_1v1a9_14"
3553
- }, ai = ({ value: e, children: t, className: n, forceMount: r = !1, ...i }) => {
3554
- let { value: a, orientation: o, keepMounted: s, lazyMount: l, registerContent: u, getTriggerId: d, getContentId: f } = ri(), m = a === e, [h, _] = p(m);
3615
+ }, oi = ({ value: e, children: t, className: n, forceMount: r = !1, ...i }) => {
3616
+ let { value: a, orientation: o, keepMounted: s, lazyMount: l, registerContent: u, getTriggerId: d, getContentId: f } = ii(), m = a === e, [h, _] = p(m);
3555
3617
  return c(() => (u(e, !0), () => {
3556
3618
  u(e, !1);
3557
3619
  }), [u, e]), c(() => {
@@ -3565,14 +3627,14 @@ var ni = r(null), ri = () => {
3565
3627
  tabIndex: 0,
3566
3628
  "data-state": m ? "active" : "inactive",
3567
3629
  "data-orientation": o,
3568
- className: J(ii.panel, m && ii.visible, o === "vertical" && ii.vertical, n),
3630
+ className: K(ai.panel, m && ai.visible, o === "vertical" && ai.vertical, n),
3569
3631
  children: t
3570
3632
  }) : null;
3571
3633
  };
3572
- ai.displayName = "Tabs.Content";
3634
+ oi.displayName = "Tabs.Content";
3573
3635
  // src/components/Tabs/internal/useTabsIndicator.ts
3574
- var oi = 8, si = 360, ci = () => {
3575
- let e = f(null), t = f(null), n = f(void 0), r = f(null), [i, a] = p({}), { value: o, orientation: s, variant: l, collectionVersion: m, getTriggerId: h } = ri();
3636
+ var si = 8, ci = 360, li = () => {
3637
+ let e = f(null), t = f(null), n = f(void 0), r = f(null), [i, a] = p({}), { value: o, orientation: s, variant: l, collectionVersion: m, getTriggerId: h } = ii();
3576
3638
  return c(() => () => {
3577
3639
  r.current?.cancel();
3578
3640
  }, []), u(() => {
@@ -3608,7 +3670,7 @@ var oi = 8, si = 360, ci = () => {
3608
3670
  let s = t.current;
3609
3671
  if (e && l === "line" && s && n.current !== o && !(typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) && typeof i.animate == "function") {
3610
3672
  r.current?.cancel();
3611
- let e = s.y + s.height / 2, t = p.y + p.height / 2, n = e - oi / 2, a = t - oi / 2;
3673
+ let e = s.y + s.height / 2, t = p.y + p.height / 2, n = e - si / 2, a = t - si / 2;
3612
3674
  r.current = i.animate([
3613
3675
  {
3614
3676
  height: `${s.height}px`,
@@ -3616,12 +3678,12 @@ var oi = 8, si = 360, ci = () => {
3616
3678
  offset: 0
3617
3679
  },
3618
3680
  {
3619
- height: `${oi}px`,
3681
+ height: `${si}px`,
3620
3682
  transform: `translate3d(0, ${n}px, 0)`,
3621
3683
  offset: .28
3622
3684
  },
3623
3685
  {
3624
- height: `${oi}px`,
3686
+ height: `${si}px`,
3625
3687
  transform: `translate3d(0, ${a}px, 0)`,
3626
3688
  offset: .64
3627
3689
  },
@@ -3631,7 +3693,7 @@ var oi = 8, si = 360, ci = () => {
3631
3693
  offset: 1
3632
3694
  }
3633
3695
  ], {
3634
- duration: si,
3696
+ duration: ci,
3635
3697
  easing: "cubic-bezier(0.22, 1, 0.36, 1)",
3636
3698
  fill: "none"
3637
3699
  });
@@ -3647,7 +3709,7 @@ var oi = 8, si = 360, ci = () => {
3647
3709
  let h = t.current;
3648
3710
  if (e && l === "line" && h && n.current !== o && !(typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) && typeof i.animate == "function") {
3649
3711
  r.current?.cancel();
3650
- let e = h.x + h.width / 2, t = p.x + p.width / 2, n = e - oi / 2, a = t - oi / 2;
3712
+ let e = h.x + h.width / 2, t = p.x + p.width / 2, n = e - si / 2, a = t - si / 2;
3651
3713
  r.current = i.animate([
3652
3714
  {
3653
3715
  width: `${h.width}px`,
@@ -3655,12 +3717,12 @@ var oi = 8, si = 360, ci = () => {
3655
3717
  offset: 0
3656
3718
  },
3657
3719
  {
3658
- width: `${oi}px`,
3720
+ width: `${si}px`,
3659
3721
  transform: `translate3d(${n}px, 0, 0)`,
3660
3722
  offset: .28
3661
3723
  },
3662
3724
  {
3663
- width: `${oi}px`,
3725
+ width: `${si}px`,
3664
3726
  transform: `translate3d(${a}px, 0, 0)`,
3665
3727
  offset: .64
3666
3728
  },
@@ -3670,7 +3732,7 @@ var oi = 8, si = 360, ci = () => {
3670
3732
  offset: 1
3671
3733
  }
3672
3734
  ], {
3673
- duration: si,
3735
+ duration: ci,
3674
3736
  easing: "cubic-bezier(0.22, 1, 0.36, 1)",
3675
3737
  fill: "none"
3676
3738
  });
@@ -3698,7 +3760,7 @@ var oi = 8, si = 360, ci = () => {
3698
3760
  ref: e,
3699
3761
  style: i
3700
3762
  }), [i]);
3701
- }, li = {
3763
+ }, ui = {
3702
3764
  list: "_list_1opuz_1",
3703
3765
  vertical: "_vertical_1opuz_10",
3704
3766
  line: "_line_1opuz_17",
@@ -3706,23 +3768,23 @@ var oi = 8, si = 360, ci = () => {
3706
3768
  segmented: "_segmented_1opuz_29",
3707
3769
  scrollable: "_scrollable_1opuz_37",
3708
3770
  indicator: "_indicator_1opuz_46"
3709
- }, ui = ({ className: e, style: t, ...n }) => {
3710
- let { ref: r, style: i } = ci();
3771
+ }, di = ({ className: e, style: t, ...n }) => {
3772
+ let { ref: r, style: i } = li();
3711
3773
  return /* @__PURE__ */ g("span", {
3712
3774
  ...n,
3713
3775
  ref: r,
3714
3776
  "aria-hidden": "true",
3715
- className: J(li.indicator, e),
3777
+ className: K(ui.indicator, e),
3716
3778
  style: {
3717
3779
  ...i,
3718
3780
  ...t
3719
3781
  }
3720
3782
  });
3721
3783
  };
3722
- ui.displayName = "Tabs.Indicator";
3784
+ di.displayName = "Tabs.Indicator";
3723
3785
  // src/components/Tabs/List/TabsList.tsx
3724
- var di = ({ children: e, className: t, scrollable: n, ...r }) => {
3725
- let { mode: i, orientation: a, variant: o } = ri(), s = n ?? !1;
3786
+ var fi = ({ children: e, className: t, scrollable: n, ...r }) => {
3787
+ let { mode: i, orientation: a, variant: o } = ii(), s = n ?? !1;
3726
3788
  return /* @__PURE__ */ g("div", {
3727
3789
  ...r,
3728
3790
  role: i === "tabs" ? "tablist" : void 0,
@@ -3730,17 +3792,17 @@ var di = ({ children: e, className: t, scrollable: n, ...r }) => {
3730
3792
  "data-orientation": a,
3731
3793
  "data-variant": o,
3732
3794
  "data-scrollable": s ? "" : void 0,
3733
- className: J(li.list, a === "vertical" && li.vertical, o === "line" && li.line, o === "pills" && li.pills, o === "segmented" && li.segmented, s && li.scrollable, t),
3795
+ className: K(ui.list, a === "vertical" && ui.vertical, o === "line" && ui.line, o === "pills" && ui.pills, o === "segmented" && ui.segmented, s && ui.scrollable, t),
3734
3796
  children: e
3735
3797
  });
3736
3798
  };
3737
- di.displayName = "TabsList";
3799
+ fi.displayName = "TabsList";
3738
3800
  // src/components/Tabs/internal/useTabsCollection.ts
3739
- var fi = (e) => [...e].sort((e, t) => {
3801
+ var pi = (e) => [...e].sort((e, t) => {
3740
3802
  if (e.element === t.element) return 0;
3741
3803
  let n = e.element.compareDocumentPosition(t.element);
3742
3804
  return n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
3743
- }), pi = () => {
3805
+ }), mi = () => {
3744
3806
  let e = f([]), t = f([]), [n, r] = p(0), i = o(() => {
3745
3807
  r((e) => e + 1);
3746
3808
  }, []);
@@ -3759,14 +3821,14 @@ var fi = (e) => [...e].sort((e, t) => {
3759
3821
  element: n,
3760
3822
  disabled: r
3761
3823
  }, o = e.current.findIndex((e) => e.element === n);
3762
- o >= 0 ? e.current[o] = a : e.current.push(a), e.current = fi(e.current), i();
3824
+ o >= 0 ? e.current[o] = a : e.current.push(a), e.current = pi(e.current), i();
3763
3825
  }, [i]),
3764
3826
  registerContent: o((e, n) => {
3765
3827
  let r = t.current.findIndex((t) => t.value === e);
3766
3828
  n ? r < 0 && (t.current.push({ value: e }), i()) : r >= 0 && (t.current.splice(r, 1), i());
3767
3829
  }, [i])
3768
3830
  };
3769
- }, mi = ({ focusedValue: e, setValue: t, setFocusedValue: n, getTabs: r, orientation: i, activationMode: a, dir: o, loop: s }) => ({ onKeyDown: (c) => {
3831
+ }, hi = ({ focusedValue: e, setValue: t, setFocusedValue: n, getTabs: r, orientation: i, activationMode: a, dir: o, loop: s }) => ({ onKeyDown: (c) => {
3770
3832
  let l = r().filter((e) => !e.disabled);
3771
3833
  if (l.length === 0) return;
3772
3834
  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) => {
@@ -3801,15 +3863,15 @@ var fi = (e) => [...e].sort((e, t) => {
3801
3863
  e && (c.preventDefault(), n(e.value), t(e.value));
3802
3864
  }
3803
3865
  }
3804
- } }), hi = {
3866
+ } }), gi = {
3805
3867
  tabs: "_tabs_1hj56_1",
3806
3868
  vertical: "_vertical_1hj56_30"
3807
- }, gi = ({ children: e, value: t, defaultValue: n, onValueChange: r, orientation: i = "horizontal", activationMode: a = "automatic", dir: s = "ltr", loop: u = !0, mode: d = "tabs", variant: m = "line", color: h = "primary", size: _ = "md", keepMounted: v = !1, lazyMount: y = !1, disabled: b = !1, className: x, ...S }) => {
3869
+ }, _i = ({ children: e, value: t, defaultValue: n, onValueChange: r, orientation: i = "horizontal", activationMode: a = "automatic", dir: s = "ltr", loop: u = !0, mode: d = "tabs", variant: m = "line", color: h = "primary", size: _ = "md", keepMounted: v = !1, lazyMount: y = !1, disabled: b = !1, className: x, ...S }) => {
3808
3870
  let C = l(), w = t !== void 0, { value: T, setValue: E } = Tt({
3809
3871
  value: t,
3810
3872
  defaultValue: n,
3811
3873
  onValueChange: r
3812
- }), D = f(T), O = f(void 0), k = f(void 0), [A, j] = p(T), { version: M, triggersRef: N, contentsRef: P, registerTrigger: F, registerContent: I } = pi(), L = o((e, t, n = !1) => {
3874
+ }), D = f(T), O = f(void 0), k = f(void 0), [A, j] = p(T), { version: M, triggersRef: N, contentsRef: P, registerTrigger: F, registerContent: I } = mi(), L = o((e, t, n = !1) => {
3813
3875
  if (!t) {
3814
3876
  let t = D.current, n = N.current, r = n.findIndex((t) => t.value === e);
3815
3877
  if (t === e && r >= 0) {
@@ -3825,7 +3887,7 @@ var fi = (e) => [...e].sort((e, t) => {
3825
3887
  j,
3826
3888
  E,
3827
3889
  N
3828
- ]), { onKeyDown: R } = mi({
3890
+ ]), { onKeyDown: R } = hi({
3829
3891
  focusedValue: A,
3830
3892
  setValue: E,
3831
3893
  setFocusedValue: j,
@@ -3880,11 +3942,11 @@ var fi = (e) => [...e].sort((e, t) => {
3880
3942
  d,
3881
3943
  N,
3882
3944
  M
3883
- ]), /* @__PURE__ */ g(ni.Provider, {
3945
+ ]), /* @__PURE__ */ g(ri.Provider, {
3884
3946
  value: z,
3885
3947
  children: /* @__PURE__ */ g("div", {
3886
3948
  ...S,
3887
- className: J(hi.tabs, i === "vertical" && hi.vertical, x),
3949
+ className: K(gi.tabs, i === "vertical" && gi.vertical, x),
3888
3950
  "data-mode": d,
3889
3951
  "data-orientation": i,
3890
3952
  dir: s,
@@ -3896,8 +3958,8 @@ var fi = (e) => [...e].sort((e, t) => {
3896
3958
  })
3897
3959
  });
3898
3960
  };
3899
- gi.displayName = "Tabs";
3900
- var _i = {
3961
+ _i.displayName = "Tabs";
3962
+ var vi = {
3901
3963
  trigger: "_trigger_1xafk_1",
3902
3964
  iconOnly: "_iconOnly_1xafk_49",
3903
3965
  icon: "_icon_1xafk_49",
@@ -3912,76 +3974,76 @@ var _i = {
3912
3974
  line: "_line_1xafk_196",
3913
3975
  pills: "_pills_1xafk_228",
3914
3976
  vertical: "_vertical_1xafk_256"
3915
- }, vi = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
3916
- className: J(_i.badge, t),
3977
+ }, yi = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
3978
+ className: K(vi.badge, t),
3917
3979
  children: e
3918
3980
  });
3919
- vi.displayName = "Tabs.Badge";
3981
+ yi.displayName = "Tabs.Badge";
3920
3982
  // src/components/Tabs/Trigger/TabsIcon.tsx
3921
- var yi = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
3922
- className: J(_i.icon, t),
3983
+ var bi = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
3984
+ className: K(vi.icon, t),
3923
3985
  "aria-hidden": "true",
3924
3986
  children: e
3925
3987
  });
3926
- yi.displayName = "Tabs.Icon";
3988
+ bi.displayName = "Tabs.Icon";
3927
3989
  // src/components/Tabs/Trigger/TabsTrigger.tsx
3928
- var bi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c = !1, icon: l, badge: u, description: d, onClick: f, onKeyDown: p, ...m }, v) => {
3929
- let { value: y, focusedValue: b, setValue: x, setFocusedValue: S, mode: C, orientation: w, variant: T, size: E, disabled: D, registerTrigger: O, onTriggerKeyDown: k, getTriggerId: A, getContentId: j } = ri(), M = D || s, N = y === t, P = b === t || !b && N, F = c && a(r) ? r : void 0, I = F ? F.props.children : r, L = e.toArray(I), R = L.some((e) => a(e) && e.type.displayName === "Tabs.Icon"), z = !!l, B = (z || R) && I == null;
3990
+ var xi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c = !1, icon: l, badge: u, description: d, onClick: f, onKeyDown: p, ...m }, v) => {
3991
+ let { value: y, focusedValue: b, setValue: x, setFocusedValue: S, mode: C, orientation: w, variant: T, size: E, disabled: D, registerTrigger: O, onTriggerKeyDown: k, getTriggerId: A, getContentId: j } = ii(), M = D || s, N = y === t, P = b === t || !b && N, F = c && a(r) ? r : void 0, I = F ? F.props.children : r, L = e.toArray(I), R = L.some((e) => a(e) && e.type.displayName === "Tabs.Icon"), z = !!l, ee = (z || R) && I == null;
3930
3992
  process.env.NODE_ENV !== "production" && z && R && console.warn(`Tabs.Trigger value "${t}" received both icon and Tabs.Icon. Tabs.Icon takes precedence.`);
3931
- let V = o((e) => {
3993
+ let B = o((e) => {
3932
3994
  O(t, e, M), typeof v == "function" ? v(e) : v && (v.current = e);
3933
3995
  }, [
3934
3996
  M,
3935
3997
  v,
3936
3998
  O,
3937
3999
  t
3938
- ]), H = z && !R || u || d, U = L.every((e) => typeof e == "string" || typeof e == "number"), W = J(_i.trigger, _i[T], _i[E], w === "vertical" && _i.vertical, z && _i.withIcon, B && _i.iconOnly, i), G = (e) => {
4000
+ ]), V = z && !R || u || d, H = L.every((e) => typeof e == "string" || typeof e == "number"), U = K(vi.trigger, vi[T], vi[E], w === "vertical" && vi.vertical, z && vi.withIcon, ee && vi.iconOnly, i), W = (e) => {
3939
4001
  M ? e.preventDefault() : (S(t), x(t));
3940
- }, ee = (e) => {
4002
+ }, te = (e) => {
3941
4003
  e.defaultPrevented || k(e);
3942
4004
  };
3943
4005
  return C === "navigation" && F ? n(F, {
3944
4006
  ...m,
3945
- ref: V,
4007
+ ref: B,
3946
4008
  id: A(t),
3947
- className: J(F.props.className, W),
4009
+ className: K(F.props.className, U),
3948
4010
  "aria-current": N ? "page" : void 0,
3949
4011
  "aria-disabled": M || void 0,
3950
4012
  "data-state": N ? "active" : "inactive",
3951
4013
  tabIndex: M ? -1 : F.props.tabIndex,
3952
4014
  onClick: (e) => {
3953
- F.props.onClick?.(e), M ? e.preventDefault() : G(e);
4015
+ F.props.onClick?.(e), M ? e.preventDefault() : W(e);
3954
4016
  },
3955
4017
  onKeyDown: (e) => {
3956
- F.props.onKeyDown?.(e), !e.defaultPrevented && ee(e);
4018
+ F.props.onKeyDown?.(e), !e.defaultPrevented && te(e);
3957
4019
  },
3958
4020
  children: /* @__PURE__ */ _(h, { children: [
3959
4021
  z && !R && /* @__PURE__ */ g("span", {
3960
- className: _i.icon,
4022
+ className: vi.icon,
3961
4023
  "aria-hidden": "true",
3962
4024
  children: l
3963
4025
  }),
3964
- I != null && (H ? /* @__PURE__ */ _("span", {
3965
- className: _i.body,
4026
+ I != null && (V ? /* @__PURE__ */ _("span", {
4027
+ className: vi.body,
3966
4028
  children: [/* @__PURE__ */ g("span", {
3967
- className: _i.label,
4029
+ className: vi.label,
3968
4030
  children: I
3969
4031
  }), d != null && /* @__PURE__ */ g("span", {
3970
- className: _i.description,
4032
+ className: vi.description,
3971
4033
  children: d
3972
4034
  })]
3973
- }) : U ? /* @__PURE__ */ g("span", {
3974
- className: _i.label,
4035
+ }) : H ? /* @__PURE__ */ g("span", {
4036
+ className: vi.label,
3975
4037
  children: I
3976
4038
  }) : I),
3977
4039
  u != null && /* @__PURE__ */ g("span", {
3978
- className: _i.badge,
4040
+ className: vi.badge,
3979
4041
  children: u
3980
4042
  })
3981
4043
  ] })
3982
4044
  }) : (process.env.NODE_ENV !== "production" && C === "tabs" && c && console.warn("Tabs.Trigger: asChild is only supported when Tabs mode=\"navigation\"."), process.env.NODE_ENV !== "production" && C === "navigation" && c && !F && console.warn("Tabs.Trigger: asChild requires a single valid React element child."), /* @__PURE__ */ _("button", {
3983
4045
  ...m,
3984
- ref: V,
4046
+ ref: B,
3985
4047
  type: "button",
3986
4048
  role: "tab",
3987
4049
  id: A(t),
@@ -3992,57 +4054,57 @@ var bi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
3992
4054
  "data-state": N ? "active" : "inactive",
3993
4055
  "data-orientation": w,
3994
4056
  "data-disabled": M ? "" : void 0,
3995
- className: W,
4057
+ className: U,
3996
4058
  onClick: (e) => {
3997
- f?.(e), !e.defaultPrevented && G(e);
4059
+ f?.(e), !e.defaultPrevented && W(e);
3998
4060
  },
3999
4061
  onKeyDown: (e) => {
4000
- p?.(e), !e.defaultPrevented && ee(e);
4062
+ p?.(e), !e.defaultPrevented && te(e);
4001
4063
  },
4002
4064
  children: [
4003
4065
  z && !R && /* @__PURE__ */ g("span", {
4004
- className: _i.icon,
4066
+ className: vi.icon,
4005
4067
  "aria-hidden": "true",
4006
4068
  children: l
4007
4069
  }),
4008
- I != null && (H ? /* @__PURE__ */ _("span", {
4009
- className: _i.body,
4070
+ I != null && (V ? /* @__PURE__ */ _("span", {
4071
+ className: vi.body,
4010
4072
  children: [/* @__PURE__ */ g("span", {
4011
- className: _i.label,
4073
+ className: vi.label,
4012
4074
  children: I
4013
4075
  }), d != null && /* @__PURE__ */ g("span", {
4014
- className: _i.description,
4076
+ className: vi.description,
4015
4077
  children: d
4016
4078
  })]
4017
- }) : U ? /* @__PURE__ */ g("span", {
4018
- className: _i.label,
4079
+ }) : H ? /* @__PURE__ */ g("span", {
4080
+ className: vi.label,
4019
4081
  children: I
4020
4082
  }) : I),
4021
4083
  u != null && /* @__PURE__ */ g("span", {
4022
- className: _i.badge,
4084
+ className: vi.badge,
4023
4085
  children: u
4024
4086
  })
4025
4087
  ]
4026
4088
  }));
4027
4089
  });
4028
- bi.displayName = "Tabs.Trigger";
4090
+ xi.displayName = "Tabs.Trigger";
4029
4091
  // src/components/Tabs/Tabs.tsx
4030
- var xi = Object.assign(gi, {
4031
- List: di,
4032
- Trigger: bi,
4033
- Content: ai,
4034
- Indicator: ui,
4035
- Icon: yi,
4036
- Badge: vi
4092
+ var Si = Object.assign(_i, {
4093
+ List: fi,
4094
+ Trigger: xi,
4095
+ Content: oi,
4096
+ Indicator: di,
4097
+ Icon: bi,
4098
+ Badge: yi
4037
4099
  });
4038
- xi.displayName = "Tabs";
4100
+ Si.displayName = "Tabs";
4039
4101
  // src/components/Tooltip/internal/composeEventHandlers.ts
4040
- function Si(e, t) {
4102
+ function Ci(e, t) {
4041
4103
  return (n) => {
4042
4104
  e?.(n), n.defaultPrevented || t?.(n);
4043
4105
  };
4044
4106
  }
4045
- function Ci(...e) {
4107
+ function wi(...e) {
4046
4108
  return (t) => {
4047
4109
  e.forEach((e) => {
4048
4110
  e && (typeof e == "function" ? e(t) : e.current = t);
@@ -4050,18 +4112,18 @@ function Ci(...e) {
4050
4112
  };
4051
4113
  }
4052
4114
  // src/components/Tooltip/internal/TooltipContext.tsx
4053
- var wi = r(null), Ti = r({
4115
+ var Ti = r(null), Ei = r({
4054
4116
  delay: {
4055
4117
  open: 300,
4056
4118
  close: 100
4057
4119
  },
4058
4120
  skipDelay: 300
4059
- }), Ei = wi.Provider, Di = ({ children: e, delay: t = 700, skipDelay: n = 300 }) => {
4121
+ }), Di = Ti.Provider, Oi = ({ children: e, delay: t = 700, skipDelay: n = 300 }) => {
4060
4122
  let r = typeof t == "number" ? {
4061
4123
  open: t,
4062
4124
  close: 100
4063
4125
  } : t;
4064
- return /* @__PURE__ */ g(Ti.Provider, {
4126
+ return /* @__PURE__ */ g(Ei.Provider, {
4065
4127
  value: {
4066
4128
  delay: r,
4067
4129
  skipDelay: n
@@ -4069,19 +4131,19 @@ var wi = r(null), Ti = r({
4069
4131
  children: e
4070
4132
  });
4071
4133
  };
4072
- function Oi() {
4073
- let e = s(wi);
4134
+ function ki() {
4135
+ let e = s(Ti);
4074
4136
  if (!e) throw Error("Tooltip compound components must be rendered inside Tooltip");
4075
4137
  return e;
4076
4138
  }
4077
- function ki() {
4078
- return s(Ti);
4139
+ function Ai() {
4140
+ return s(Ei);
4079
4141
  }
4080
- var Ai = {
4142
+ var ji = {
4081
4143
  tooltip: "_tooltip_god78_1",
4082
4144
  arrow: "_arrow_god78_25"
4083
- }, ji = i(({ children: e, forceMount: t = !1, withArrow: n = !1, className: r, style: i, ...a }, o) => {
4084
- let s = Oi();
4145
+ }, Mi = i(({ children: e, forceMount: t = !1, withArrow: n = !1, className: r, style: i, ...a }, o) => {
4146
+ let s = ki();
4085
4147
  if (!t && !s.open) return null;
4086
4148
  let c = s.getContentProps({
4087
4149
  id: s.contentId,
@@ -4090,20 +4152,20 @@ var Ai = {
4090
4152
  });
4091
4153
  return /* @__PURE__ */ _("div", {
4092
4154
  ...c,
4093
- ref: Ci(o, s.setContentRef),
4094
- className: J(Ai.tooltip, r),
4155
+ ref: wi(o, s.setContentRef),
4156
+ className: K(ji.tooltip, r),
4095
4157
  "data-placement": s.placement,
4096
4158
  "data-state": s.open ? "open" : "closed",
4097
4159
  style: {
4098
4160
  ...s.floatingStyles,
4099
4161
  ...i
4100
4162
  },
4101
- children: [e, n && /* @__PURE__ */ g(Mi, {})]
4163
+ children: [e, n && /* @__PURE__ */ g(Ni, {})]
4102
4164
  });
4103
4165
  });
4104
- ji.displayName = "Tooltip.Content";
4105
- function Mi() {
4106
- let e = Oi(), t = e.placement.split("-")[0], n = {
4166
+ Mi.displayName = "Tooltip.Content";
4167
+ function Ni() {
4168
+ let e = ki(), t = e.placement.split("-")[0], n = {
4107
4169
  top: "bottom",
4108
4170
  right: "left",
4109
4171
  bottom: "top",
@@ -4111,7 +4173,7 @@ function Mi() {
4111
4173
  }[t];
4112
4174
  return /* @__PURE__ */ g("div", {
4113
4175
  ref: e.arrowRef,
4114
- className: Ai.arrow,
4176
+ className: ji.arrow,
4115
4177
  "data-side": t,
4116
4178
  style: {
4117
4179
  left: e.arrowX == null ? void 0 : `${e.arrowX}px`,
@@ -4121,8 +4183,8 @@ function Mi() {
4121
4183
  });
4122
4184
  }
4123
4185
  // src/components/Tooltip/internal/useTooltipDelay.ts
4124
- function Ni(e, t) {
4125
- let n = ki();
4186
+ function Pi(e, t) {
4187
+ let n = Ai();
4126
4188
  return e == null ? n.delay : typeof e == "number" ? {
4127
4189
  open: e,
4128
4190
  close: n.delay.close
@@ -4132,17 +4194,17 @@ function Ni(e, t) {
4132
4194
  };
4133
4195
  }
4134
4196
  // src/components/Tooltip/internal/useTooltipInteractions.ts
4135
- function Pi({ context: e, delay: t, disabled: n, interactive: r }) {
4136
- let i = re(e, {
4197
+ function Fi({ context: e, delay: t, disabled: n, interactive: r }) {
4198
+ let i = ae(e, {
4137
4199
  delay: t,
4138
4200
  enabled: !n,
4139
4201
  move: !1,
4140
4202
  handleClose: r ? void 0 : null
4141
- }), a = K(e, { enabled: !n });
4142
- return q([i, a]);
4203
+ }), a = ie(e, { enabled: !n });
4204
+ return G([i, a]);
4143
4205
  }
4144
4206
  // src/components/Tooltip/internal/useTooltipPosition.ts
4145
- function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
4207
+ function Ii({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
4146
4208
  let o = f(null), s = ft({
4147
4209
  open: e,
4148
4210
  onOpenChange: t,
@@ -4150,7 +4212,7 @@ function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions
4150
4212
  offset: r,
4151
4213
  avoidCollisions: i,
4152
4214
  matchTriggerWidth: a,
4153
- middleware: [H({ element: o })]
4215
+ middleware: [V({ element: o })]
4154
4216
  });
4155
4217
  return {
4156
4218
  ...s,
@@ -4160,21 +4222,21 @@ function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions
4160
4222
  };
4161
4223
  }
4162
4224
  // src/components/Tooltip/Root/TooltipRoot.tsx
4163
- var Ii = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placement: i = "top", offset: a = 8, delay: o, skipDelay: s, disabled: c = !1, interactive: u = !1, avoidCollisions: d = !0, matchTriggerWidth: p = !1 }) => {
4225
+ var Li = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placement: i = "top", offset: a = 8, delay: o, skipDelay: s, disabled: c = !1, interactive: u = !1, avoidCollisions: d = !0, matchTriggerWidth: p = !1 }) => {
4164
4226
  let m = `${l()}-content`, h = f(null), _ = f(null), [v, y] = bt({
4165
4227
  value: t,
4166
4228
  defaultValue: n,
4167
4229
  onChange: r
4168
4230
  }), b = (e) => {
4169
4231
  c || y(e);
4170
- }, x = Fi({
4232
+ }, x = Ii({
4171
4233
  open: v,
4172
4234
  onOpenChange: b,
4173
4235
  placement: i,
4174
4236
  offset: a,
4175
4237
  avoidCollisions: d,
4176
4238
  matchTriggerWidth: p
4177
- }), S = Ni(o, s), C = Pi({
4239
+ }), S = Pi(o, s), C = Fi({
4178
4240
  context: x.context,
4179
4241
  delay: S,
4180
4242
  disabled: c,
@@ -4189,7 +4251,7 @@ var Ii = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placemen
4189
4251
  closeOnOutsidePress: !u,
4190
4252
  requestClose: () => b(!1)
4191
4253
  });
4192
- return /* @__PURE__ */ g(Ei, {
4254
+ return /* @__PURE__ */ g(Di, {
4193
4255
  value: {
4194
4256
  contentId: m,
4195
4257
  open: v,
@@ -4205,33 +4267,33 @@ var Ii = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placemen
4205
4267
  zIndex: w.zIndex
4206
4268
  },
4207
4269
  setOpen: b,
4208
- setTriggerRef: Ci(_, x.setRef),
4209
- setContentRef: Ci(h, x.setFloatingRef),
4270
+ setTriggerRef: wi(_, x.setRef),
4271
+ setContentRef: wi(h, x.setFloatingRef),
4210
4272
  getTriggerProps: C.getReferenceProps,
4211
4273
  getContentProps: C.getFloatingProps
4212
4274
  },
4213
4275
  children: e
4214
4276
  });
4215
4277
  };
4216
- Ii.displayName = "Tooltip.Root";
4278
+ Li.displayName = "Tooltip.Root";
4217
4279
  // src/components/Tooltip/Trigger/TooltipTrigger.tsx
4218
- var Li = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...o }) => {
4219
- let s = Oi(), c = e && a(t) ? t : void 0, l = s.disabled || r || c?.props.disabled, u = s.getTriggerProps({
4280
+ var Ri = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...o }) => {
4281
+ let s = ki(), c = e && a(t) ? t : void 0, l = s.disabled || r || c?.props.disabled, u = s.getTriggerProps({
4220
4282
  ...o,
4221
4283
  "aria-describedby": s.open ? s.contentId : void 0,
4222
4284
  "aria-disabled": l || void 0,
4223
4285
  "data-state": s.open ? "open" : "closed"
4224
4286
  }), d = {
4225
4287
  ...u,
4226
- ref: c ? Ci(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
4227
- className: J(c?.props.className, i),
4288
+ ref: c ? wi(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
4289
+ className: K(c?.props.className, i),
4228
4290
  disabled: l || void 0,
4229
- onMouseEnter: Si(c?.props.onMouseEnter, u.onMouseEnter),
4230
- onMouseLeave: Si(c?.props.onMouseLeave, u.onMouseLeave),
4231
- onPointerEnter: Si(c?.props.onPointerEnter, u.onPointerEnter),
4232
- onPointerLeave: Si(c?.props.onPointerLeave, u.onPointerLeave),
4233
- onFocus: Si(c?.props.onFocus, u.onFocus),
4234
- onBlur: Si(c?.props.onBlur, u.onBlur)
4291
+ onMouseEnter: Ci(c?.props.onMouseEnter, u.onMouseEnter),
4292
+ onMouseLeave: Ci(c?.props.onMouseLeave, u.onMouseLeave),
4293
+ onPointerEnter: Ci(c?.props.onPointerEnter, u.onPointerEnter),
4294
+ onPointerLeave: Ci(c?.props.onPointerLeave, u.onPointerLeave),
4295
+ onFocus: Ci(c?.props.onFocus, u.onFocus),
4296
+ onBlur: Ci(c?.props.onBlur, u.onBlur)
4235
4297
  };
4236
4298
  return c ? n(c, d) : /* @__PURE__ */ g("button", {
4237
4299
  type: "button",
@@ -4239,15 +4301,15 @@ var Li = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...o }
4239
4301
  children: t
4240
4302
  });
4241
4303
  };
4242
- Li.displayName = "Tooltip.Trigger";
4304
+ Ri.displayName = "Tooltip.Trigger";
4243
4305
  // src/components/Tooltip/Tooltip.tsx
4244
- var Ri = Object.assign(Ii, {
4245
- Trigger: Li,
4246
- Content: ji,
4247
- Provider: Di
4306
+ var zi = Object.assign(Li, {
4307
+ Trigger: Ri,
4308
+ Content: Mi,
4309
+ Provider: Oi
4248
4310
  });
4249
- Ri.displayName = "Tooltip";
4250
- var zi = {
4311
+ zi.displayName = "Tooltip";
4312
+ var Bi = {
4251
4313
  button: "_button_1d6bh_1",
4252
4314
  solid: "_solid_1d6bh_26",
4253
4315
  primary: "_primary_1d6bh_26",
@@ -4278,54 +4340,54 @@ var zi = {
4278
4340
  "button-spin": "_button-spin_1d6bh_1",
4279
4341
  badge: "_badge_1d6bh_870",
4280
4342
  shortcut: "_shortcut_1d6bh_884"
4281
- }, Bi = i(({ children: e, color: t = "primary", appearance: r = "solid", size: i = "md", shape: o = "pill", type: s = "button", disabled: c = !1, loading: l = !1, loadingText: u, iconStart: d, iconEnd: f, spinner: p, badge: m, shortcut: v, tooltip: y, fullWidth: b = !1, iconOnly: x = !1, asChild: S = !1, className: C, style: w, onClick: T, "aria-label": E, "aria-labelledby": D, href: O, target: k, rel: A, download: j, id: M, role: N, tabIndex: P, ...F }, I) => {
4282
- let L = S && a(e) ? e : void 0, R = L ? L.props.children : e, z = x || !R && !!(d || f), B = !!(E || D || L?.props["aria-label"] || L?.props["aria-labelledby"]), V = c || l, H = r === "bare", U = ie[i], W = {
4283
- "--button-height": `${U.height}px`,
4284
- "--button-font-size": `${U.fontSize}px`,
4285
- "--button-line-height": `${U.lineHeight}px`,
4286
- "--icon-size": `${U.iconSize}px`
4287
- }, G = l && u ? u : R, ee = u && R && !z && (typeof R == "string" || typeof R == "number") && (typeof u == "string" || typeof u == "number") ? String(l ? R : u) : void 0, te = k === "_blank" && !A ? "noreferrer noopener" : A, ne = J(H ? zi.bare : zi.button, H ? null : zi[t], H ? null : zi[r], H ? null : zi[i], H ? null : zi[o], C, {
4288
- [zi.disabled]: V,
4289
- [zi.loading]: l,
4290
- [zi.fullWidth]: b,
4291
- [zi.iconOnly]: z
4343
+ }, Vi = i(({ children: e, color: t = "primary", appearance: r = "solid", size: i = "md", shape: o = "pill", type: s = "button", disabled: c = !1, loading: l = !1, loadingText: u, iconStart: d, iconEnd: f, spinner: p, badge: m, shortcut: v, tooltip: y, fullWidth: b = !1, iconOnly: x = !1, asChild: S = !1, className: C, style: w, onClick: T, "aria-label": E, "aria-labelledby": D, href: O, target: k, rel: A, download: j, id: M, role: N, tabIndex: P, ...F }, I) => {
4344
+ let L = S && a(e) ? e : void 0, R = L ? L.props.children : e, z = x || !R && !!(d || f), ee = !!(E || D || L?.props["aria-label"] || L?.props["aria-labelledby"]), B = c || l, V = r === "bare", H = oe[i], U = {
4345
+ "--button-height": `${H.height}px`,
4346
+ "--button-font-size": `${H.fontSize}px`,
4347
+ "--button-line-height": `${H.lineHeight}px`,
4348
+ "--icon-size": `${H.iconSize}px`
4349
+ }, W = l && u ? u : R, te = u && R && !z && (typeof R == "string" || typeof R == "number") && (typeof u == "string" || typeof u == "number") ? String(l ? R : u) : void 0, ne = k === "_blank" && !A ? "noreferrer noopener" : A, re = K(V ? Bi.bare : Bi.button, V ? null : Bi[t], V ? null : Bi[r], V ? null : Bi[i], V ? null : Bi[o], C, {
4350
+ [Bi.disabled]: B,
4351
+ [Bi.loading]: l,
4352
+ [Bi.fullWidth]: b,
4353
+ [Bi.iconOnly]: z
4292
4354
  });
4293
- Pe(!S || !O, "Button: pass href to the child element when using asChild."), Pe(!S || !!L, "Button: asChild requires a single valid React element child."), Pe(!z || B, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
4294
- let K = (e) => {
4355
+ Ie(!S || !O, "Button: pass href to the child element when using asChild."), Ie(!S || !!L, "Button: asChild requires a single valid React element child."), Ie(!z || ee, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
4356
+ let ie = (e) => {
4295
4357
  e.preventDefault(), e.stopPropagation();
4296
- }, re = (e) => {
4297
- V ? K(e) : (L?.props.onClick?.(e), e.defaultPrevented || T?.(e));
4298
- }, q = /* @__PURE__ */ _(h, { children: [
4358
+ }, ae = (e) => {
4359
+ B ? ie(e) : (L?.props.onClick?.(e), e.defaultPrevented || T?.(e));
4360
+ }, G = /* @__PURE__ */ _(h, { children: [
4299
4361
  l && (p ? /* @__PURE__ */ g("span", {
4300
- className: zi.icon,
4362
+ className: Bi.icon,
4301
4363
  "aria-hidden": "true",
4302
4364
  children: p
4303
4365
  }) : /* @__PURE__ */ g("span", {
4304
- className: zi.spinner,
4366
+ className: Bi.spinner,
4305
4367
  "aria-hidden": "true"
4306
4368
  })),
4307
4369
  !l && d && /* @__PURE__ */ g("span", {
4308
- className: J(zi.icon, zi.iconStart),
4370
+ className: K(Bi.icon, Bi.iconStart),
4309
4371
  children: d
4310
4372
  }),
4311
- G && !z && (H ? G : /* @__PURE__ */ g("span", {
4312
- className: zi.label,
4313
- "data-measure": ee,
4373
+ W && !z && (V ? W : /* @__PURE__ */ g("span", {
4374
+ className: Bi.label,
4375
+ "data-measure": te,
4314
4376
  children: /* @__PURE__ */ g("span", {
4315
- className: zi.labelText,
4316
- children: G
4377
+ className: Bi.labelText,
4378
+ children: W
4317
4379
  })
4318
4380
  })),
4319
- m && !z && (H ? m : /* @__PURE__ */ g("span", {
4320
- className: zi.badge,
4381
+ m && !z && (V ? m : /* @__PURE__ */ g("span", {
4382
+ className: Bi.badge,
4321
4383
  children: m
4322
4384
  })),
4323
- v && !z && (H ? v : /* @__PURE__ */ g("span", {
4324
- className: zi.shortcut,
4385
+ v && !z && (V ? v : /* @__PURE__ */ g("span", {
4386
+ className: Bi.shortcut,
4325
4387
  children: v
4326
4388
  })),
4327
4389
  !l && f && /* @__PURE__ */ g("span", {
4328
- className: J(zi.icon, zi.iconEnd),
4390
+ className: K(Bi.icon, Bi.iconEnd),
4329
4391
  children: f
4330
4392
  })
4331
4393
  ] });
@@ -4333,41 +4395,41 @@ var zi = {
4333
4395
  ...F,
4334
4396
  ref: I,
4335
4397
  style: {
4336
- ...W,
4398
+ ...U,
4337
4399
  ...L.props.style,
4338
4400
  ...w
4339
4401
  },
4340
4402
  "aria-busy": l || void 0,
4341
- "aria-disabled": V || void 0,
4403
+ "aria-disabled": B || void 0,
4342
4404
  "aria-label": E || L.props["aria-label"] || void 0,
4343
4405
  "aria-labelledby": D || L.props["aria-labelledby"] || void 0,
4344
- className: J(L.props.className, ne),
4345
- href: V ? void 0 : L.props.href,
4346
- onClick: re,
4347
- tabIndex: V ? -1 : L.props.tabIndex,
4406
+ className: K(L.props.className, re),
4407
+ href: B ? void 0 : L.props.href,
4408
+ onClick: ae,
4409
+ tabIndex: B ? -1 : L.props.tabIndex,
4348
4410
  title: y || L.props.title,
4349
- children: q
4411
+ children: G
4350
4412
  }) : O ? /* @__PURE__ */ g("a", {
4351
4413
  ref: I,
4352
- href: V ? void 0 : O,
4414
+ href: B ? void 0 : O,
4353
4415
  id: M,
4354
4416
  role: N,
4355
- tabIndex: V ? -1 : P,
4417
+ tabIndex: B ? -1 : P,
4356
4418
  target: k,
4357
- rel: te,
4419
+ rel: ne,
4358
4420
  download: j,
4359
- onClick: V ? K : T,
4360
- "aria-disabled": V || void 0,
4421
+ onClick: B ? ie : T,
4422
+ "aria-disabled": B || void 0,
4361
4423
  "aria-label": E || void 0,
4362
4424
  "aria-labelledby": D || void 0,
4363
4425
  "aria-busy": l || void 0,
4364
- className: ne,
4426
+ className: re,
4365
4427
  title: y,
4366
4428
  style: {
4367
- ...W,
4429
+ ...U,
4368
4430
  ...w
4369
4431
  },
4370
- children: q
4432
+ children: G
4371
4433
  }) : /* @__PURE__ */ g("button", {
4372
4434
  ...F,
4373
4435
  ref: I,
@@ -4375,21 +4437,21 @@ var zi = {
4375
4437
  role: N,
4376
4438
  tabIndex: P,
4377
4439
  type: s,
4378
- disabled: V,
4379
- onClick: V ? void 0 : T,
4440
+ disabled: B,
4441
+ onClick: B ? void 0 : T,
4380
4442
  "aria-label": E || void 0,
4381
4443
  "aria-labelledby": D || void 0,
4382
4444
  "aria-busy": l || void 0,
4383
- className: ne,
4445
+ className: re,
4384
4446
  title: y,
4385
4447
  style: {
4386
- ...W,
4448
+ ...U,
4387
4449
  ...w
4388
4450
  },
4389
- children: q
4451
+ children: G
4390
4452
  });
4391
4453
  });
4392
- Bi.displayName = "Button";
4454
+ Vi.displayName = "Button";
4393
4455
  var Q = {
4394
4456
  wrapper: "_wrapper_jq9wv_1",
4395
4457
  colorPrimary: "_colorPrimary_jq9wv_36",
@@ -4425,25 +4487,25 @@ var Q = {
4425
4487
  "checkbox-checkmark-in": "_checkbox-checkmark-in_jq9wv_1",
4426
4488
  "checkbox-indeterminate-in": "_checkbox-indeterminate-in_jq9wv_1",
4427
4489
  disabled: "_disabled_jq9wv_370"
4428
- }, Vi = {
4490
+ }, Hi = {
4429
4491
  sm: Q.labelSm,
4430
4492
  md: Q.labelMd,
4431
4493
  lg: Q.labelLg
4432
- }, Hi = {
4494
+ }, Ui = {
4433
4495
  sm: Q.wrapperSm,
4434
4496
  md: Q.wrapperMd,
4435
4497
  lg: Q.wrapperLg
4436
- }, Ui = {
4498
+ }, Wi = {
4437
4499
  sm: Q.containerSm,
4438
4500
  md: Q.containerMd,
4439
4501
  lg: Q.containerLg
4440
- }, Wi = {
4502
+ }, Gi = {
4441
4503
  primary: Q.colorPrimary,
4442
4504
  neutral: Q.colorNeutral,
4443
4505
  success: Q.colorSuccess,
4444
4506
  warning: Q.colorWarning,
4445
4507
  danger: Q.colorDanger
4446
- }, Gi = i(({ id: e, label: t, description: n, icon: r, indeterminateIcon: i, checked: a, size: s = "md", color: u = "primary", labelPosition: d = "end", defaultChecked: p = !1, disabled: m = !1, required: h = !1, indeterminate: y = !1, className: b, wrapperClassName: x, onCheckedChange: S, error: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, ...D }, O) => {
4508
+ }, Ki = i(({ id: e, label: t, description: n, icon: r, indeterminateIcon: i, checked: a, size: s = "md", color: u = "primary", labelPosition: d = "end", defaultChecked: p = !1, disabled: m = !1, required: h = !1, indeterminate: y = !1, className: b, wrapperClassName: x, onCheckedChange: S, error: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, ...D }, O) => {
4447
4509
  let k = l(), A = e ?? k, j = f(null), M = !!C, N = n ? `${A}-description` : void 0, P = M ? `${A}-error` : void 0, F = [
4448
4510
  E,
4449
4511
  N,
@@ -4461,12 +4523,12 @@ var Q = {
4461
4523
  let z = (e) => {
4462
4524
  L(e.target.checked);
4463
4525
  };
4464
- return Pe(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ _("div", {
4465
- className: J(Q.container, Ui[s], d === "start" && Q.containerLabelStart, b),
4526
+ return Ie(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ _("div", {
4527
+ className: K(Q.container, Wi[s], d === "start" && Q.containerLabelStart, b),
4466
4528
  children: [
4467
4529
  /* @__PURE__ */ _("label", {
4468
4530
  htmlFor: A,
4469
- className: J(Q.wrapper, Hi[s], Wi[u], d === "start" && Q.labelStart, !t && Q.iconOnly, m && Q.disabled, x),
4531
+ className: K(Q.wrapper, Ui[s], Gi[u], d === "start" && Q.labelStart, !t && Q.iconOnly, m && Q.disabled, x),
4470
4532
  children: [
4471
4533
  /* @__PURE__ */ g("input", {
4472
4534
  ...D,
@@ -4485,10 +4547,10 @@ var Q = {
4485
4547
  "aria-describedby": F || void 0
4486
4548
  }),
4487
4549
  /* @__PURE__ */ g("span", {
4488
- className: J(Q.customCheckbox, M && Q.error, y && Q.indeterminate),
4550
+ className: K(Q.customCheckbox, M && Q.error, y && Q.indeterminate),
4489
4551
  "aria-hidden": "true",
4490
4552
  children: y ? /* @__PURE__ */ g("span", {
4491
- className: J(Q.indeterminateMark, i && Q.customMark),
4553
+ className: K(Q.indeterminateMark, i && Q.customMark),
4492
4554
  children: i
4493
4555
  }) : I && /* @__PURE__ */ g("span", {
4494
4556
  className: Q.checkmark,
@@ -4496,7 +4558,7 @@ var Q = {
4496
4558
  })
4497
4559
  }),
4498
4560
  t && /* @__PURE__ */ _("span", {
4499
- className: J(Q.label, Vi[s]),
4561
+ className: K(Q.label, Hi[s]),
4500
4562
  children: [t, h && /* @__PURE__ */ g("span", {
4501
4563
  className: Q.requiredMark,
4502
4564
  "aria-hidden": "true",
@@ -4518,7 +4580,7 @@ var Q = {
4518
4580
  ]
4519
4581
  });
4520
4582
  });
4521
- Gi.displayName = "Checkbox";
4583
+ Ki.displayName = "Checkbox";
4522
4584
  var $ = {
4523
4585
  inputGroup: "_inputGroup_1nr0h_1",
4524
4586
  primary: "_primary_1nr0h_29",
@@ -4561,7 +4623,7 @@ var $ = {
4561
4623
  toneMuted: "_toneMuted_1nr0h_881",
4562
4624
  toneInverse: "_toneInverse_1nr0h_885",
4563
4625
  bare: "_bare_1nr0h_889"
4564
- }, Ki = {
4626
+ }, qi = {
4565
4627
  default: $.toneDefault,
4566
4628
  primary: $.tonePrimary,
4567
4629
  secondary: $.toneSecondary,
@@ -4569,7 +4631,7 @@ var $ = {
4569
4631
  danger: $.toneDanger,
4570
4632
  muted: $.toneMuted,
4571
4633
  inverse: $.toneInverse
4572
- }, qi = (e = "text", t) => {
4634
+ }, Ji = (e = "text", t) => {
4573
4635
  if (t) return t;
4574
4636
  switch (e) {
4575
4637
  case "email": return "email";
@@ -4579,7 +4641,7 @@ var $ = {
4579
4641
  case "search": return "off";
4580
4642
  default: return;
4581
4643
  }
4582
- }, Ji = (e, t) => {
4644
+ }, Yi = (e, t) => {
4583
4645
  let n = e.replace(/\D/g, ""), r = 0, i = "";
4584
4646
  for (let e of t) if (e === "#") {
4585
4647
  let e = n[r];
@@ -4587,40 +4649,40 @@ var $ = {
4587
4649
  i += e, r += 1;
4588
4650
  } else r < n.length && (i += e);
4589
4651
  return i;
4590
- }, Yi = (e, t) => t ? typeof t == "function" ? t(e) : Ji(e, t) : e, Xi = i(({ id: e, label: t, name: n, description: r, placeholder: i, value: a, defaultValue: s, type: c = "text", size: u, color: d = "primary", variant: m = "outline", error: v, invalid: y = !1, disabled: b = !1, required: T = !1, loading: E = !1, className: D, style: O, wrapperClassName: k, autoComplete: A, readOnly: j = !1, clearable: M = !1, onClear: N, onValueChange: P, revealPassword: F = !1, showCounter: I = !1, startIcon: L, endIcon: R, startAddon: z, endAddon: B, prefix: V, suffix: H, clearIcon: U, mask: W, format: G, parse: ee, startIconTone: te = "default", endIconTone: ne = "default", clearIconTone: K = "danger", autoFocus: re, maxLength: q, onMouseEnter: ae, onMouseLeave: oe, "aria-describedby": se, "aria-invalid": ce, "aria-labelledby": le, ...ue }, de) => {
4591
- let fe = l(), pe = Rr(), me = !!(t || r || v), he = e ?? (me ? void 0 : pe?.controlId) ?? fe, ge = f(null), [Y, _e] = p(!1), [ve, ye] = p(s ?? ""), be = a !== void 0, xe = String((be ? a : ve) ?? ""), Se = G ? G(xe) : xe, Ce = xe.length > 0, we = u ?? pe?.size ?? "md", Te = ie[we], Ee = {
4592
- "--input-height": `${Te.height}px`,
4593
- "--input-font-size": `${Te.fontSize}px`,
4594
- "--input-line-height": `${Te.lineHeight}px`,
4595
- "--input-icon-size": `${Te.iconSize}px`
4596
- }, De = y || !!v || !me && !!pe?.invalid, Oe = b || !me && !!pe?.disabled, ke = T || !me && !!pe?.required, Ae = j || E, je = c === "password", Me = je && F && Y ? "text" : c, Ne = L ?? (c === "search" ? /* @__PURE__ */ g(w, {}) : null), X = R, Pe = qi(c, A), Fe = E && !Oe, Ie = M && Ce && !Oe && !Ae && !Fe, Le = F && je && !Oe && !Fe && !Ie, Re = !Fe && !Ie && !Le && !!X, ze = !!(I && q), Be = r ? `${he}-description` : void 0, Ve = v ? `${he}-error` : void 0, He = ze ? `${he}-counter` : void 0, Ue = [
4597
- se,
4598
- !me && !se ? pe?.ariaDescribedBy : void 0,
4652
+ }, Xi = (e, t) => t ? typeof t == "function" ? t(e) : Yi(e, t) : e, Zi = i(({ id: e, label: t, name: n, description: r, placeholder: i, value: a, defaultValue: s, type: c = "text", size: u, color: d = "primary", variant: m = "outline", error: v, invalid: y = !1, disabled: b = !1, required: T = !1, loading: E = !1, className: D, style: O, wrapperClassName: k, autoComplete: A, readOnly: j = !1, clearable: M = !1, onClear: N, onValueChange: P, revealPassword: F = !1, showCounter: I = !1, startIcon: L, endIcon: R, startAddon: z, endAddon: ee, prefix: B, suffix: V, clearIcon: H, mask: U, format: W, parse: te, startIconTone: ne = "default", endIconTone: re = "default", clearIconTone: ie = "danger", autoFocus: ae, maxLength: G, onMouseEnter: se, onMouseLeave: ce, "aria-describedby": le, "aria-invalid": ue, "aria-labelledby": de, ...fe }, pe) => {
4653
+ let me = l(), he = zr(), ge = !!(t || r || v), _e = e ?? (ge ? void 0 : he?.controlId) ?? me, ve = f(null), [q, ye] = p(!1), [be, xe] = p(s ?? ""), Se = a !== void 0, Ce = String((Se ? a : be) ?? ""), we = W ? W(Ce) : Ce, Te = Ce.length > 0, Ee = u ?? he?.size ?? "md", De = oe[Ee], Oe = {
4654
+ "--input-height": `${De.height}px`,
4655
+ "--input-font-size": `${De.fontSize}px`,
4656
+ "--input-line-height": `${De.lineHeight}px`,
4657
+ "--input-icon-size": `${De.iconSize}px`
4658
+ }, ke = y || !!v || !ge && !!he?.invalid, Ae = b || !ge && !!he?.disabled, je = T || !ge && !!he?.required, Me = j || E, Ne = c === "password", Pe = Ne && F && q ? "text" : c, Fe = L ?? (c === "search" ? /* @__PURE__ */ g(w, {}) : null), J = R, Ie = Ji(c, A), Y = E && !Ae, X = M && Te && !Ae && !Me && !Y, Le = F && Ne && !Ae && !Y && !X, Re = !Y && !X && !Le && !!J, ze = !!(I && G), Be = r ? `${_e}-description` : void 0, Ve = v ? `${_e}-error` : void 0, He = ze ? `${_e}-counter` : void 0, Ue = [
4659
+ le,
4660
+ !ge && !le ? he?.ariaDescribedBy : void 0,
4599
4661
  Be,
4600
4662
  Ve,
4601
4663
  He
4602
- ].filter(Boolean).join(" "), We = U ?? /* @__PURE__ */ g(x, { "aria-hidden": "true" }), Ge = !!(Ne || V), Ke = !!(X || H || Ie || Le || Fe), qe = !!(Ne && V), Je = !!(X && H), Ye = !!(z || B), Xe = o((e) => {
4603
- ge.current = e, typeof de == "function" ? de(e) : de && (de.current = e);
4604
- }, [de]), Ze = o((e) => {
4605
- let t = Yi(ee ? ee(e.target.value) : e.target.value, W);
4606
- be || ye(t), P?.(t);
4664
+ ].filter(Boolean).join(" "), We = H ?? /* @__PURE__ */ g(x, { "aria-hidden": "true" }), Ge = !!(Fe || B), Ke = !!(J || V || X || Le || Y), qe = !!(Fe && B), Je = !!(J && V), Ye = !!(z || ee), Xe = o((e) => {
4665
+ ve.current = e, typeof pe == "function" ? pe(e) : pe && (pe.current = e);
4666
+ }, [pe]), Ze = o((e) => {
4667
+ let t = Xi(te ? te(e.target.value) : e.target.value, U);
4668
+ Se || xe(t), P?.(t);
4607
4669
  }, [
4608
- be,
4609
- W,
4670
+ Se,
4671
+ U,
4610
4672
  P,
4611
- ee
4673
+ te
4612
4674
  ]), Qe = o(() => {
4613
- be || ye(""), P?.(""), N?.(), ge.current?.focus();
4675
+ Se || xe(""), P?.(""), N?.(), ve.current?.focus();
4614
4676
  }, [
4615
- be,
4677
+ Se,
4616
4678
  N,
4617
4679
  P
4618
4680
  ]), $e = /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
4619
- className: J($.inputGroup, $[m], $[d], {
4681
+ className: K($.inputGroup, $[m], $[d], {
4620
4682
  [$.hasAddons]: Ye,
4621
- [$.isDisabled]: Oe,
4622
- [$.isInvalid]: De,
4623
- [$.isLoading]: Fe
4683
+ [$.isDisabled]: Ae,
4684
+ [$.isInvalid]: ke,
4685
+ [$.isLoading]: Y
4624
4686
  }),
4625
4687
  children: [
4626
4688
  z && /* @__PURE__ */ g("span", {
@@ -4628,57 +4690,57 @@ var $ = {
4628
4690
  children: z
4629
4691
  }),
4630
4692
  /* @__PURE__ */ _("div", {
4631
- className: J($.inputWrapper, {
4693
+ className: K($.inputWrapper, {
4632
4694
  [$.hasLeftAdornment]: Ge,
4633
4695
  [$.hasRightAdornment]: Ke,
4634
4696
  [$.hasStartIconAndPrefix]: qe,
4635
4697
  [$.hasEndIconAndSuffix]: Je
4636
4698
  }),
4637
4699
  children: [
4638
- Ne && /* @__PURE__ */ g("span", {
4700
+ Fe && /* @__PURE__ */ g("span", {
4639
4701
  "aria-hidden": "true",
4640
- className: J($.startAdornment, Ki[te]),
4641
- children: Ne
4702
+ className: K($.startAdornment, qi[ne]),
4703
+ children: Fe
4642
4704
  }),
4643
- V && /* @__PURE__ */ g("span", {
4705
+ B && /* @__PURE__ */ g("span", {
4644
4706
  className: $.prefix,
4645
- children: V
4707
+ children: B
4646
4708
  }),
4647
4709
  /* @__PURE__ */ g("input", {
4648
- ...ue,
4710
+ ...fe,
4649
4711
  ref: Xe,
4650
- id: he,
4712
+ id: _e,
4651
4713
  name: n,
4652
- type: Me,
4653
- autoComplete: Pe,
4654
- className: J($.input, $[we], { [$.error]: De }, D),
4714
+ type: Pe,
4715
+ autoComplete: Ie,
4716
+ className: K($.input, $[Ee], { [$.error]: ke }, D),
4655
4717
  style: {
4656
- ...Ee,
4718
+ ...Oe,
4657
4719
  ...O
4658
4720
  },
4659
- value: Se,
4721
+ value: we,
4660
4722
  onChange: Ze,
4661
4723
  placeholder: i,
4662
- disabled: Oe,
4663
- readOnly: Ae,
4664
- required: ke,
4665
- autoFocus: re,
4666
- maxLength: q,
4667
- "aria-invalid": De ? !0 : ce,
4668
- "aria-labelledby": le ?? (me ? void 0 : pe?.ariaLabelledBy),
4724
+ disabled: Ae,
4725
+ readOnly: Me,
4726
+ required: je,
4727
+ autoFocus: ae,
4728
+ maxLength: G,
4729
+ "aria-invalid": ke ? !0 : ue,
4730
+ "aria-labelledby": de ?? (ge ? void 0 : he?.ariaLabelledBy),
4669
4731
  "aria-describedby": Ue || void 0,
4670
4732
  "aria-busy": E || void 0,
4671
- onMouseEnter: ae,
4672
- onMouseLeave: oe
4733
+ onMouseEnter: se,
4734
+ onMouseLeave: ce
4673
4735
  }),
4674
- H && /* @__PURE__ */ g("span", {
4736
+ V && /* @__PURE__ */ g("span", {
4675
4737
  className: $.suffix,
4676
- children: H
4738
+ children: V
4677
4739
  }),
4678
4740
  /* @__PURE__ */ _("div", {
4679
4741
  className: $.endSlot,
4680
4742
  children: [
4681
- Fe && /* @__PURE__ */ g("span", {
4743
+ Y && /* @__PURE__ */ g("span", {
4682
4744
  className: $.spinner,
4683
4745
  "aria-hidden": "true",
4684
4746
  "data-testid": "input-spinner"
@@ -4686,64 +4748,64 @@ var $ = {
4686
4748
  Le && /* @__PURE__ */ g("button", {
4687
4749
  type: "button",
4688
4750
  className: $.iconButton,
4689
- onClick: () => _e((e) => !e),
4690
- "aria-label": Y ? "Hide password" : "Show password",
4691
- children: g(Y ? C : S, {
4751
+ onClick: () => ye((e) => !e),
4752
+ "aria-label": q ? "Hide password" : "Show password",
4753
+ children: g(q ? C : S, {
4692
4754
  size: 18,
4693
4755
  "aria-hidden": "true"
4694
4756
  })
4695
4757
  }),
4696
- Ie && /* @__PURE__ */ g("button", {
4758
+ X && /* @__PURE__ */ g("button", {
4697
4759
  type: "button",
4698
- className: J($.clearButton, Ki[K]),
4760
+ className: K($.clearButton, qi[ie]),
4699
4761
  onClick: Qe,
4700
4762
  "aria-label": "Clear input",
4701
4763
  children: We
4702
4764
  }),
4703
- Re && X && /* @__PURE__ */ g("span", {
4765
+ Re && J && /* @__PURE__ */ g("span", {
4704
4766
  "aria-hidden": "true",
4705
- className: J($.endAdornment, Ki[ne]),
4706
- children: X
4767
+ className: K($.endAdornment, qi[re]),
4768
+ children: J
4707
4769
  })
4708
4770
  ]
4709
4771
  })
4710
4772
  ]
4711
4773
  }),
4712
- B && /* @__PURE__ */ g("span", {
4774
+ ee && /* @__PURE__ */ g("span", {
4713
4775
  className: $.addon,
4714
- children: B
4776
+ children: ee
4715
4777
  })
4716
4778
  ]
4717
4779
  }), ze && /* @__PURE__ */ _("div", {
4718
4780
  id: He,
4719
4781
  className: $.counter,
4720
4782
  children: [
4721
- xe.length,
4783
+ Ce.length,
4722
4784
  " / ",
4723
- q
4785
+ G
4724
4786
  ]
4725
4787
  })] });
4726
- return !me && pe ? $e : /* @__PURE__ */ g(Jr, {
4727
- id: he,
4788
+ return !ge && he ? $e : /* @__PURE__ */ g(Yr, {
4789
+ id: _e,
4728
4790
  label: t,
4729
4791
  description: r,
4730
4792
  error: v,
4731
- required: ke,
4732
- disabled: Oe,
4733
- invalid: De,
4734
- size: we,
4793
+ required: je,
4794
+ disabled: Ae,
4795
+ invalid: ke,
4796
+ size: Ee,
4735
4797
  className: k,
4736
4798
  bindControl: !1,
4737
4799
  children: $e
4738
4800
  });
4739
4801
  });
4740
- Xi.displayName = "Input";
4741
- var Zi = {
4802
+ Zi.displayName = "Input";
4803
+ var Qi = {
4742
4804
  root: "_root_tczcc_1",
4743
4805
  thumb: "_thumb_tczcc_54"
4744
4806
  };
4745
4807
  // src/primitives/Switch/Switch.tsx
4746
- function Qi({ accessibilityLabel: e = "Switch", checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, invalid: a = !1, onCheckedChange: o }) {
4808
+ function $i({ accessibilityLabel: e = "Switch", checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, invalid: a = !1, onCheckedChange: o }) {
4747
4809
  let [s, c] = p(n), l = t !== void 0, u = l ? t : s;
4748
4810
  return /* @__PURE__ */ g("button", {
4749
4811
  type: "button",
@@ -4754,24 +4816,24 @@ function Qi({ accessibilityLabel: e = "Switch", checked: t, defaultChecked: n =
4754
4816
  "aria-required": i || void 0,
4755
4817
  "aria-invalid": a || void 0,
4756
4818
  "data-state": u ? "checked" : "unchecked",
4757
- className: Zi.root,
4819
+ className: Qi.root,
4758
4820
  onClick: () => {
4759
4821
  let e = !u;
4760
4822
  l || c(e), o?.(e);
4761
4823
  },
4762
4824
  children: /* @__PURE__ */ g("span", {
4763
- className: Zi.thumb,
4825
+ className: Qi.thumb,
4764
4826
  "aria-hidden": "true"
4765
4827
  })
4766
4828
  });
4767
4829
  }
4768
- var $i = {
4830
+ var ea = {
4769
4831
  textarea: "_textarea_gl2my_1",
4770
4832
  sm: "_sm_gl2my_58",
4771
4833
  md: "_md_gl2my_62",
4772
4834
  lg: "_lg_gl2my_66"
4773
- }, ea = i(({ id: e, label: t, description: n, error: r, placeholder: i, value: a, defaultValue: o, size: s, disabled: c = !1, required: u = !1, invalid: d = !1, wrapperClassName: f, className: p, style: m, rows: h = 3, onChange: _, onValueChange: v, "aria-describedby": y, "aria-invalid": b, "aria-labelledby": x, ...S }, C) => {
4774
- let w = l(), T = Rr(), E = !!(t || n || r), D = e ?? (E ? void 0 : T?.controlId) ?? w, O = s ?? T?.size ?? "md", k = ie[O], A = {
4835
+ }, ta = i(({ id: e, label: t, description: n, error: r, placeholder: i, value: a, defaultValue: o, size: s, disabled: c = !1, required: u = !1, invalid: d = !1, wrapperClassName: f, className: p, style: m, rows: h = 3, onChange: _, onValueChange: v, "aria-describedby": y, "aria-invalid": b, "aria-labelledby": x, ...S }, C) => {
4836
+ let w = l(), T = zr(), E = !!(t || n || r), D = e ?? (E ? void 0 : T?.controlId) ?? w, O = s ?? T?.size ?? "md", k = oe[O], A = {
4775
4837
  "--textarea-font-size": `${k.fontSize}px`,
4776
4838
  "--textarea-line-height": `${k.lineHeight}px`
4777
4839
  }, j = d || !!r || !E && !!T?.invalid, M = c || !E && !!T?.disabled, N = u || !E && !!T?.required, P = n ? `${D}-description` : void 0, F = r ? `${D}-error` : void 0, I = [
@@ -4786,7 +4848,7 @@ var $i = {
4786
4848
  ref: C,
4787
4849
  id: D,
4788
4850
  rows: h,
4789
- className: J($i.textarea, $i[O], p),
4851
+ className: K(ea.textarea, ea[O], p),
4790
4852
  style: {
4791
4853
  ...A,
4792
4854
  ...m
@@ -4801,7 +4863,7 @@ var $i = {
4801
4863
  "aria-describedby": I || void 0,
4802
4864
  onChange: L
4803
4865
  });
4804
- return !E && T ? R : /* @__PURE__ */ g(Jr, {
4866
+ return !E && T ? R : /* @__PURE__ */ g(Yr, {
4805
4867
  id: D,
4806
4868
  label: t,
4807
4869
  description: n,
@@ -4815,14 +4877,14 @@ var $i = {
4815
4877
  children: R
4816
4878
  });
4817
4879
  });
4818
- ea.displayName = "Textarea";
4880
+ ta.displayName = "Textarea";
4819
4881
  // src/theme/ThemeContext.ts
4820
- var ta = r(null), na = (e) => e === "highContrast" ? "high-contrast" : e, ra = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, syncDocument: r = !0, children: i }) => {
4882
+ var na = r(null), ra = (e) => e === "highContrast" ? "high-contrast" : e, ia = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, syncDocument: r = !0, children: i }) => {
4821
4883
  let [a, o] = bt({
4822
4884
  value: e,
4823
4885
  defaultValue: t,
4824
4886
  onChange: n
4825
- }), s = na(a);
4887
+ }), s = ra(a);
4826
4888
  c(() => {
4827
4889
  if (!r || typeof document > "u") return;
4828
4890
  let { documentElement: e } = document, t = e.dataset.velliraTheme;
@@ -4834,7 +4896,7 @@ var ta = r(null), na = (e) => e === "highContrast" ? "high-contrast" : e, ra = (
4834
4896
  theme: a,
4835
4897
  setTheme: o
4836
4898
  }), [a, o]);
4837
- return /* @__PURE__ */ g(ta.Provider, {
4899
+ return /* @__PURE__ */ g(na.Provider, {
4838
4900
  value: l,
4839
4901
  children: /* @__PURE__ */ g("div", {
4840
4902
  "data-vellira-theme": s,
@@ -4842,11 +4904,11 @@ var ta = r(null), na = (e) => e === "highContrast" ? "high-contrast" : e, ra = (
4842
4904
  })
4843
4905
  });
4844
4906
  };
4845
- ra.displayName = "ThemeProvider";
4907
+ ia.displayName = "ThemeProvider";
4846
4908
  // src/theme/useTheme.ts
4847
- function ia() {
4848
- let e = s(ta);
4909
+ function aa() {
4910
+ let e = s(na);
4849
4911
  if (!e) throw Error("useTheme must be used within ThemeProvider.");
4850
4912
  return e;
4851
4913
  }
4852
- export { pe as Accordion, Bi as Button, Gi as Checkbox, Zt as Dropdown, Jr as FormField, Xi as Input, Tn as Modal, Wn as Popover, Ot as Portal, Dt as PortalProvider, Xn as Radio, ar as RadioGroup, ti as Select, Qi as Switch, xi as Tabs, ea as Textarea, ra as ThemeProvider, Ri as Tooltip, ia as useTheme };
4914
+ export { he as Accordion, Vi as Button, Ki as Checkbox, Qt as Dropdown, Yr as FormField, Zi as Input, En as Modal, Gn as Popover, Ot as Portal, Dt as PortalProvider, Zn as Radio, or as RadioGroup, ni as Select, $i as Switch, Si as Tabs, ta as Textarea, ia as ThemeProvider, zi as Tooltip, aa as useTheme };