@vellira-ui/react 2.95.1 → 2.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Children as e, Fragment as t, cloneElement as n, createContext as r, forwardRef as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useId as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p, useSyncExternalStore as m } from "react";
2
2
  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, Search as S } from "@vellira-ui/icons";
4
- import { createConsoleOverlayDiagnostics as C, createOverlayManagerStore as w, createOverlayZIndexPolicy as T, createRetainedResourceRegistry as E, deferOverlayFocusRestore as D, getCompoundSlot as O, markCompoundSlot as k, resolveOverlayPresentation as A, runOverlayCloseAutoFocus as j } from "@vellira-ui/core";
5
- import M from "clsx";
6
- import { createPortal as N } from "react-dom";
7
- import { FloatingArrow as P, arrow as F, autoUpdate as I, flip as L, offset as R, shift as z, size as B, useFloating as V, useFocus as H, useHover as U, useInteractions as W } from "@floating-ui/react";
8
- import { controlSizes as ee, lightTheme as te } from "@vellira-ui/tokens";
9
- var ne = {
4
+ import { createAutoFocusEvent as C, createConsoleOverlayDiagnostics as w, createOutsideEvent as T, createOverlayManagerStore as E, createOverlayZIndexPolicy as D, createRetainedResourceRegistry as O, deferOverlayFocusRestore as k, focusFirstElement as A, getCompoundSlot as j, getFocusableElements as M, markCompoundSlot as N, resolveOverlayPresentation as P, resolveSelectGroupSelection as F, runOverlayCloseAutoFocus as I } from "@vellira-ui/core";
5
+ import L from "clsx";
6
+ import { createPortal as R } from "react-dom";
7
+ import { FloatingArrow as z, arrow as B, autoUpdate as V, flip as H, offset as U, shift as W, size as ee, useFloating as te, useFocus as ne, useHover as re, useInteractions as G } from "@floating-ui/react";
8
+ import { controlSizes as ie, lightTheme as K } from "@vellira-ui/tokens";
9
+ var ae = {
10
10
  root: "_root_n1iaz_1",
11
11
  item: "_item_n1iaz_11",
12
12
  trigger: "_trigger_n1iaz_15",
@@ -17,37 +17,37 @@ var ne = {
17
17
  };
18
18
  //#endregion
19
19
  //#region src/components/Accordion/Content/AccordionContent.tsx
20
- function re({ children: e, forceMount: t = !1, hidden: n = !1, contentId: r }) {
20
+ function oe({ children: e, forceMount: t = !1, hidden: n = !1, contentId: r }) {
21
21
  return n && !t ? null : /* @__PURE__ */ g("div", {
22
22
  id: r,
23
- className: ne.content,
23
+ className: ae.content,
24
24
  hidden: n,
25
25
  children: /* @__PURE__ */ g("div", {
26
- className: ne.contentInner,
26
+ className: ae.contentInner,
27
27
  children: e
28
28
  })
29
29
  });
30
30
  }
31
31
  //#endregion
32
32
  //#region src/components/Accordion/Item/AccordionItem.tsx
33
- function G({ children: e, className: t }) {
33
+ function se({ children: e, className: t }) {
34
34
  return /* @__PURE__ */ g("div", {
35
- className: t ?? ne.item,
35
+ className: t ?? ae.item,
36
36
  children: e
37
37
  });
38
38
  }
39
39
  //#endregion
40
40
  //#region src/components/Accordion/Trigger/AccordionTrigger.tsx
41
- function ie({ children: e, disabled: t = !1, contentId: n, expanded: r = !1, onActivate: i }) {
41
+ function ce({ children: e, disabled: t = !1, contentId: n, expanded: r = !1, onActivate: i }) {
42
42
  return /* @__PURE__ */ _("button", {
43
43
  type: "button",
44
- className: ne.trigger,
44
+ className: ae.trigger,
45
45
  disabled: t,
46
46
  "aria-expanded": r,
47
47
  "aria-controls": n,
48
48
  onClick: i,
49
49
  children: [/* @__PURE__ */ g("span", { children: e }), /* @__PURE__ */ g("span", {
50
- className: ne.indicator,
50
+ className: ae.indicator,
51
51
  "aria-hidden": "true",
52
52
  children: /* @__PURE__ */ g(y, { size: 16 })
53
53
  })]
@@ -55,7 +55,7 @@ function ie({ children: e, disabled: t = !1, contentId: n, expanded: r = !1, onA
55
55
  }
56
56
  //#endregion
57
57
  //#region src/components/Accordion/Root/AccordionRoot.tsx
58
- function ae({ children: t, type: r = "single", value: i, defaultValue: s, onValueChange: c, collapsible: u = !1, disabled: f = !1 }) {
58
+ function le({ children: t, type: r = "single", value: i, defaultValue: s, onValueChange: c, collapsible: u = !1, disabled: f = !1 }) {
59
59
  let m = l(), h = i !== void 0, [_, v] = p(s ?? (r === "multiple" ? [] : "")), y = d(() => {
60
60
  let e = (h ? i : _) ?? [];
61
61
  return Array.isArray(e) ? e : e ? [e] : [];
@@ -78,21 +78,21 @@ function ae({ children: t, type: r = "single", value: i, defaultValue: s, onValu
78
78
  r
79
79
  ]);
80
80
  return /* @__PURE__ */ g("div", {
81
- className: ne.root,
81
+ className: ae.root,
82
82
  "data-disabled": f || void 0,
83
83
  children: e.map(t, (t) => {
84
- if (!a(t) || t.type !== G) return t;
85
- let r = t, i = f || !!r.props.disabled, o = y.includes(r.props.value), s = `${m}-accordion-content-${r.props.value}`, c = e.map(r.props.children, (e) => a(e) ? e.type === ie ? n(e, {
84
+ if (!a(t) || t.type !== se) return t;
85
+ let r = t, i = f || !!r.props.disabled, o = y.includes(r.props.value), s = `${m}-accordion-content-${r.props.value}`, c = e.map(r.props.children, (e) => a(e) ? e.type === ce ? 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 === re ? n(e, {
90
+ }) : e.type === oe ? n(e, {
91
91
  contentId: s,
92
92
  hidden: !o
93
93
  }) : e : e);
94
94
  return n(r, {
95
- className: `${ne.item} ${o ? ne.expanded : ""}`,
95
+ className: `${ae.item} ${o ? ae.expanded : ""}`,
96
96
  children: c
97
97
  });
98
98
  })
@@ -100,37 +100,37 @@ function ae({ children: t, type: r = "single", value: i, defaultValue: s, onValu
100
100
  }
101
101
  //#endregion
102
102
  //#region src/components/Accordion/Accordion.tsx
103
- function oe(n) {
104
- return e.toArray(n).flatMap((e) => a(e) && e.type === t ? oe(e.props.children) : e);
103
+ function ue(n) {
104
+ return e.toArray(n).flatMap((e) => a(e) && e.type === t ? ue(e.props.children) : e);
105
105
  }
106
- function se({ children: e, ...t }) {
107
- return /* @__PURE__ */ g(ae, {
106
+ function de({ children: e, ...t }) {
107
+ return /* @__PURE__ */ g(le, {
108
108
  ...t,
109
- children: oe(e)
109
+ children: ue(e)
110
110
  });
111
111
  }
112
- var ce = Object.assign(se, {
112
+ var q = Object.assign(de, {
113
113
  displayName: "Accordion",
114
- Item: G,
115
- Trigger: ie,
116
- Content: re
117
- }), le = { arrow: "_arrow_8b0vb_1" }, K = (...e) => M(e), ue = ({ className: e }) => /* @__PURE__ */ g("span", {
114
+ Item: se,
115
+ Trigger: ce,
116
+ Content: oe
117
+ }), fe = { arrow: "_arrow_8b0vb_1" }, J = (...e) => L(e), pe = ({ className: e }) => /* @__PURE__ */ g("span", {
118
118
  "aria-hidden": "true",
119
- className: K(le.arrow, e)
119
+ className: J(fe.arrow, e)
120
120
  });
121
- k(ue, "arrow"), ue.displayName = "Dropdown.Arrow";
121
+ N(pe, "arrow"), pe.displayName = "Dropdown.Arrow";
122
122
  //#endregion
123
123
  //#region src/components/Dropdown/internal/types.ts
124
- function q(e) {
125
- return O(e);
124
+ function me(e) {
125
+ return j(e);
126
126
  }
127
127
  //#endregion
128
128
  //#region src/components/Dropdown/internal/DropdownCollection.ts
129
- function J(e, t) {
129
+ function Y(e, t) {
130
130
  let n = () => null;
131
- return k(n, e), n.displayName = t, n;
131
+ return N(n, e), n.displayName = t, n;
132
132
  }
133
- function de(t) {
133
+ function he(t) {
134
134
  let n = 0, r, i, o, s, c = [], l = [], u = (e) => `${e}-${n++}`;
135
135
  function d(e) {
136
136
  l.push(e), c.push({
@@ -142,7 +142,7 @@ function de(t) {
142
142
  function f(t, n = {}) {
143
143
  e.forEach(t, (e) => {
144
144
  if (!a(e)) return;
145
- let t = q(e.type);
145
+ let t = me(e.type);
146
146
  if (e.type.__velliraPortal) {
147
147
  o = e, f(e.props.children, n);
148
148
  return;
@@ -210,7 +210,7 @@ function de(t) {
210
210
  type: "item",
211
211
  id: u("item"),
212
212
  props: t,
213
- label: me(t.children),
213
+ label: ve(t.children),
214
214
  disabled: t.disabled
215
215
  });
216
216
  return;
@@ -221,7 +221,7 @@ function de(t) {
221
221
  type: "checkbox",
222
222
  id: u("checkbox"),
223
223
  props: t,
224
- label: me(t.children),
224
+ label: ve(t.children),
225
225
  disabled: t.disabled
226
226
  });
227
227
  return;
@@ -243,20 +243,20 @@ function de(t) {
243
243
  props: t,
244
244
  groupId: n.radioGroupId ?? u("radio-group"),
245
245
  groupProps: n.radioGroupProps,
246
- label: me(t.children),
246
+ label: ve(t.children),
247
247
  disabled: t.disabled
248
248
  });
249
249
  return;
250
250
  }
251
251
  case "sub": {
252
- let t = e.props, n = pe(t.children);
252
+ let t = e.props, n = _e(t.children);
253
253
  if (!n.trigger) return;
254
- let r = n.trigger.props, i = de(n.content?.props.children);
254
+ let r = n.trigger.props, i = he(n.content?.props.children);
255
255
  d({
256
256
  type: "subTrigger",
257
257
  id: u("sub"),
258
258
  props: r,
259
- label: me(r.children),
259
+ label: ve(r.children),
260
260
  disabled: r.disabled,
261
261
  content: n.content?.props.children,
262
262
  subEntries: i.entries,
@@ -283,14 +283,14 @@ function de(t) {
283
283
  trigger: r
284
284
  };
285
285
  }
286
- function fe(t) {
286
+ function ge(t) {
287
287
  let n, r, i, o, s = [];
288
288
  return e.forEach(t, (e) => {
289
289
  if (!a(e)) {
290
290
  s.push(e);
291
291
  return;
292
292
  }
293
- let t = q(e.type);
293
+ let t = me(e.type);
294
294
  if (t === "itemIcon") {
295
295
  i = e.props.children;
296
296
  return;
@@ -316,18 +316,18 @@ function fe(t) {
316
316
  shortcut: o
317
317
  };
318
318
  }
319
- function pe(t) {
319
+ function _e(t) {
320
320
  let n, r;
321
321
  return e.forEach(t, (e) => {
322
322
  if (!a(e)) return;
323
- let t = q(e.type);
323
+ let t = me(e.type);
324
324
  t === "subTrigger" && (n = e), t === "subContent" && (r = e);
325
325
  }), {
326
326
  content: r,
327
327
  trigger: n
328
328
  };
329
329
  }
330
- function me(t) {
330
+ function ve(t) {
331
331
  let n = [];
332
332
  function r(t) {
333
333
  e.forEach(t, (e) => {
@@ -336,7 +336,7 @@ function me(t) {
336
336
  return;
337
337
  }
338
338
  if (!a(e)) return;
339
- let t = q(e.type);
339
+ let t = me(e.type);
340
340
  t !== "itemBadge" && t !== "itemDescription" && t !== "itemIcon" && t !== "itemShortcut" && r(e.props.children);
341
341
  });
342
342
  }
@@ -344,7 +344,7 @@ function me(t) {
344
344
  }
345
345
  //#endregion
346
346
  //#region src/components/Dropdown/CheckboxItem/DropdownCheckboxItem.tsx
347
- var he = J("checkboxItem", "Dropdown.CheckboxItem"), ge = {
347
+ var ye = Y("checkboxItem", "Dropdown.CheckboxItem"), be = {
348
348
  dropdown: "_dropdown_m7rnq_1",
349
349
  "dropdown-in": "_dropdown-in_m7rnq_1",
350
350
  primary: "_primary_m7rnq_42",
@@ -356,31 +356,31 @@ var he = J("checkboxItem", "Dropdown.CheckboxItem"), ge = {
356
356
  searchWrap: "_searchWrap_m7rnq_165",
357
357
  search: "_search_m7rnq_165",
358
358
  "dropdown-sheet-in": "_dropdown-sheet-in_m7rnq_1"
359
- }, _e = J("empty", "Dropdown.Empty"), ve = ({ children: e }) => /* @__PURE__ */ g("li", {
359
+ }, xe = Y("empty", "Dropdown.Empty"), Se = ({ children: e }) => /* @__PURE__ */ g("li", {
360
360
  role: "presentation",
361
- className: ge.empty,
361
+ className: be.empty,
362
362
  children: e ?? "No actions available"
363
363
  });
364
- ve.displayName = "DropdownEmptySurface";
364
+ Se.displayName = "DropdownEmptySurface";
365
365
  //#endregion
366
366
  //#region src/components/Dropdown/Group/DropdownGroup.tsx
367
- var ye = J("group", "Dropdown.Group"), be = () => null;
368
- be.displayName = "DropdownGroupSurface";
367
+ var Ce = Y("group", "Dropdown.Group"), we = () => null;
368
+ we.displayName = "DropdownGroupSurface";
369
369
  //#endregion
370
370
  //#region src/components/Dropdown/internal/DropdownContext.tsx
371
- var xe = r(null), Se = r(null), Ce = r(null), we = xe.Provider, Te = Se.Provider;
372
- Ce.Provider;
373
- function Ee() {
374
- let e = s(xe);
371
+ var Te = r(null), Ee = r(null), De = r(null), Oe = Te.Provider, ke = Ee.Provider;
372
+ De.Provider;
373
+ function Ae() {
374
+ let e = s(Te);
375
375
  if (!e) throw Error("Dropdown compound components must be used inside Dropdown.");
376
376
  return e;
377
377
  }
378
- function De() {
379
- let e = s(Se);
378
+ function je() {
379
+ let e = s(Ee);
380
380
  if (!e) throw Error("Dropdown.Trigger must be used inside Dropdown.");
381
381
  return e;
382
382
  }
383
- var Y = {
383
+ var X = {
384
384
  item: "_item_xmygj_1",
385
385
  disabled: "_disabled_xmygj_35",
386
386
  active: "_active_xmygj_53",
@@ -405,15 +405,15 @@ var Y = {
405
405
  "dropdown-sub-in": "_dropdown-sub-in_xmygj_1",
406
406
  subLabel: "_subLabel_xmygj_300",
407
407
  subSeparator: "_subSeparator_xmygj_308"
408
- }, Oe = (e, t) => {
408
+ }, Me = (e, t) => {
409
409
  process.env.NODE_ENV !== "production" && !e && console.warn(t);
410
- }, ke = J("item", "Dropdown.Item"), Ae = ({ item: e, itemIndex: t }) => {
411
- let r = Ee(), 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 = fe(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(Y.item, Y[r.size], {
412
- [Y.active]: c,
413
- [Y.disabled]: x,
414
- [Y.checked]: y
415
- }, k && k !== "default" ? Y[k] : void 0, S.className);
416
- Oe(!S.asChild || !!R, "Dropdown.Item: asChild requires a single valid React element child.");
410
+ }, Ne = Y("item", "Dropdown.Item"), Pe = ({ item: e, itemIndex: t }) => {
411
+ let r = Ae(), 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 = ge(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], {
412
+ [X.active]: c,
413
+ [X.disabled]: x,
414
+ [X.checked]: y
415
+ }, k && k !== "default" ? X[k] : void 0, S.className);
416
+ Me(!S.asChild || !!R, "Dropdown.Item: asChild requires a single valid React element child.");
417
417
  let B = (t) => {
418
418
  if (x) {
419
419
  t.preventDefault();
@@ -423,7 +423,7 @@ var Y = {
423
423
  let t = !y;
424
424
  s(t), e.props.onCheckedChange?.(t);
425
425
  }
426
- r.selectItem(e, je(t));
426
+ r.selectItem(e, Fe(t));
427
427
  }, V = () => {
428
428
  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)));
429
429
  }, H = () => {
@@ -439,7 +439,7 @@ var Y = {
439
439
  "aria-expanded": m ? l : void 0,
440
440
  "data-active": c || void 0,
441
441
  "data-state": l ? "open" : void 0,
442
- className: K(R.props.className, z),
442
+ className: J(R.props.className, z),
443
443
  onClick: (e) => {
444
444
  R.props.onClick?.(e), e.defaultPrevented || B(e);
445
445
  },
@@ -449,7 +449,7 @@ var Y = {
449
449
  onMouseLeave: (e) => {
450
450
  R.props.onMouseLeave?.(e), e.defaultPrevented || H(e);
451
451
  }
452
- }), Me(e, N, m, l, () => r.setOpenSubId(e.id))] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(I, {
452
+ }), Ie(e, N, m, l, () => r.setOpenSubId(e.id))] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(I, {
453
453
  id: N,
454
454
  role: P,
455
455
  href: I === "a" && !x ? A : void 0,
@@ -469,42 +469,42 @@ var Y = {
469
469
  onMouseLeave: H,
470
470
  children: [
471
471
  w && /* @__PURE__ */ g("span", {
472
- className: Y.itemIcon,
472
+ className: X.itemIcon,
473
473
  children: w
474
474
  }),
475
475
  /* @__PURE__ */ _("span", {
476
- className: Y.itemText,
476
+ className: X.itemText,
477
477
  children: [/* @__PURE__ */ g("span", {
478
- className: Y.itemLabel,
478
+ className: X.itemLabel,
479
479
  children: O
480
480
  }), T && /* @__PURE__ */ g("span", {
481
- className: Y.itemDescription,
481
+ className: X.itemDescription,
482
482
  children: T
483
483
  })]
484
484
  }),
485
485
  E && /* @__PURE__ */ g("span", {
486
- className: Y.itemBadge,
486
+ className: X.itemBadge,
487
487
  children: E
488
488
  }),
489
489
  D && /* @__PURE__ */ g("span", {
490
- className: Y.itemShortcut,
490
+ className: X.itemShortcut,
491
491
  children: D
492
492
  }),
493
493
  L && /* @__PURE__ */ g("span", {
494
- className: Y.indicator,
494
+ className: X.indicator,
495
495
  "aria-hidden": "true",
496
496
  children: y ? /* @__PURE__ */ g(v, {}) : null
497
497
  }),
498
498
  m && /* @__PURE__ */ g("span", {
499
- className: Y.itemShortcut,
499
+ className: X.itemShortcut,
500
500
  "aria-hidden": "true",
501
501
  children: /* @__PURE__ */ g(b, {})
502
502
  })
503
503
  ]
504
- }), Me(e, N, m, l, () => r.setOpenSubId(e.id))] });
504
+ }), Ie(e, N, m, l, () => r.setOpenSubId(e.id))] });
505
505
  };
506
- Ae.displayName = "DropdownItemRow";
507
- function je(e) {
506
+ Pe.displayName = "DropdownItemRow";
507
+ function Fe(e) {
508
508
  let t = !1;
509
509
  return {
510
510
  originalEvent: e,
@@ -516,27 +516,27 @@ function je(e) {
516
516
  }
517
517
  };
518
518
  }
519
- function Me(e, t, n, r, i) {
519
+ function Ie(e, t, n, r, i) {
520
520
  return !n || !r || e.type !== "subTrigger" || e.subEntries.length === 0 ? null : /* @__PURE__ */ g("ul", {
521
521
  role: "menu",
522
- className: Y.subContent,
522
+ className: X.subContent,
523
523
  onMouseEnter: i,
524
524
  children: e.subEntries.map((e) => e.type === "label" ? /* @__PURE__ */ g("li", {
525
525
  role: "presentation",
526
- className: Y.subLabel,
526
+ className: X.subLabel,
527
527
  children: e.props.children
528
528
  }, e.id) : e.type === "separator" ? /* @__PURE__ */ g("li", {
529
529
  role: "separator",
530
- className: Y.subSeparator,
530
+ className: X.subSeparator,
531
531
  "aria-hidden": "true"
532
- }, e.id) : e.type === "item" ? /* @__PURE__ */ g(Ne, {
532
+ }, e.id) : e.type === "item" ? /* @__PURE__ */ g(Le, {
533
533
  item: e.item,
534
534
  id: `${t}-${e.itemIndex}`
535
535
  }, e.item.id) : null)
536
536
  });
537
537
  }
538
- function Ne({ id: e, item: t }) {
539
- let n = Ee(), [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 = fe(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) => {
538
+ function Le({ id: e, item: t }) {
539
+ let n = Ae(), [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 = ge(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) => {
540
540
  if (b) {
541
541
  e.preventDefault();
542
542
  return;
@@ -545,7 +545,7 @@ function Ne({ id: e, item: t }) {
545
545
  let e = !s;
546
546
  i(e), t.props.onCheckedChange?.(e);
547
547
  }
548
- n.selectItem(t, je(e));
548
+ n.selectItem(t, Fe(e));
549
549
  };
550
550
  return /* @__PURE__ */ _(E, {
551
551
  id: e,
@@ -557,66 +557,66 @@ function Ne({ id: e, item: t }) {
557
557
  tabIndex: b ? -1 : 0,
558
558
  "aria-disabled": b || void 0,
559
559
  "aria-checked": a || o ? s : void 0,
560
- className: K(Y.item, Y[n.size], {
561
- [Y.disabled]: b,
562
- [Y.checked]: s
563
- }, y && y !== "default" ? Y[y] : void 0),
560
+ className: J(X.item, X[n.size], {
561
+ [X.disabled]: b,
562
+ [X.checked]: s
563
+ }, y && y !== "default" ? X[y] : void 0),
564
564
  onClick: O,
565
565
  children: [
566
566
  D && /* @__PURE__ */ g("span", {
567
- className: Y.indicator,
567
+ className: X.indicator,
568
568
  "aria-hidden": "true",
569
569
  children: s ? /* @__PURE__ */ g(v, {}) : null
570
570
  }),
571
571
  u && /* @__PURE__ */ g("span", {
572
- className: Y.itemIcon,
572
+ className: X.itemIcon,
573
573
  children: u
574
574
  }),
575
575
  /* @__PURE__ */ _("span", {
576
- className: Y.itemText,
576
+ className: X.itemText,
577
577
  children: [/* @__PURE__ */ g("span", {
578
- className: Y.itemLabel,
578
+ className: X.itemLabel,
579
579
  children: h
580
580
  }), d && /* @__PURE__ */ g("span", {
581
- className: Y.itemDescription,
581
+ className: X.itemDescription,
582
582
  children: d
583
583
  })]
584
584
  }),
585
585
  f && /* @__PURE__ */ g("span", {
586
- className: Y.itemBadge,
586
+ className: X.itemBadge,
587
587
  children: f
588
588
  }),
589
589
  m && /* @__PURE__ */ g("span", {
590
- className: Y.itemShortcut,
590
+ className: X.itemShortcut,
591
591
  children: m
592
592
  })
593
593
  ]
594
594
  });
595
595
  }
596
- var Pe = { group: "_group_aviwv_1" }, X = J("label", "Dropdown.Label"), Fe = ({ children: e, className: t }) => /* @__PURE__ */ g("li", {
596
+ var Re = { group: "_group_aviwv_1" }, ze = Y("label", "Dropdown.Label"), Be = ({ children: e, className: t }) => /* @__PURE__ */ g("li", {
597
597
  role: "presentation",
598
- className: K(Pe.group, t),
598
+ className: J(Re.group, t),
599
599
  children: e
600
600
  });
601
- Fe.displayName = "DropdownLabelSurface";
601
+ Be.displayName = "DropdownLabelSurface";
602
602
  //#endregion
603
603
  //#region src/components/Dropdown/Loading/DropdownLoading.tsx
604
- var Ie = J("loading", "Dropdown.Loading"), Le = ({ children: e }) => /* @__PURE__ */ g("li", {
604
+ var Ve = Y("loading", "Dropdown.Loading"), He = ({ children: e }) => /* @__PURE__ */ g("li", {
605
605
  role: "presentation",
606
606
  "aria-live": "polite",
607
- className: ge.empty,
607
+ className: be.empty,
608
608
  children: e ?? "Loading actions..."
609
609
  });
610
- Le.displayName = "DropdownLoadingSurface";
611
- var Re = { separator: "_separator_1v11r_1" }, ze = J("separator", "Dropdown.Separator"), Be = ({ className: e }) => /* @__PURE__ */ g("li", {
610
+ He.displayName = "DropdownLoadingSurface";
611
+ var Ue = { separator: "_separator_1v11r_1" }, We = Y("separator", "Dropdown.Separator"), Ge = ({ className: e }) => /* @__PURE__ */ g("li", {
612
612
  role: "separator",
613
- className: K(Re.separator, e),
613
+ className: J(Ue.separator, e),
614
614
  "aria-hidden": "true"
615
615
  });
616
- Be.displayName = "DropdownSeparatorSurface";
616
+ Ge.displayName = "DropdownSeparatorSurface";
617
617
  //#endregion
618
618
  //#region src/hooks/behavior/focus/useAriaIsolation.ts
619
- var Ve = ({ active: e, enabled: t, content: n }) => {
619
+ var Ke = ({ active: e, enabled: t, content: n }) => {
620
620
  c(() => {
621
621
  if (!e || !t || !n) return;
622
622
  let r = [], i = n.parentElement;
@@ -642,22 +642,22 @@ var Ve = ({ active: e, enabled: t, content: n }) => {
642
642
  };
643
643
  //#endregion
644
644
  //#region src/hooks/behavior/overlay/useOverlayFocusRestore.ts
645
- function He(e) {
645
+ function qe(e) {
646
646
  return !(e instanceof HTMLElement) || !e.isConnected ? !1 : (e.focus(), document.activeElement === e);
647
647
  }
648
- var Ue = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) => {
648
+ var Je = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) => {
649
649
  let i = f(null), a = f(t), s = f(n), l = f(r);
650
650
  a.current = t, s.current = n, l.current = r;
651
651
  let u = o(() => {
652
652
  typeof document > "u" || (i.current = document.activeElement);
653
653
  }, []), d = o(() => {
654
- a.current && (He(s.current?.current) || He(i.current));
654
+ a.current && (qe(s.current?.current) || qe(i.current));
655
655
  }, []), p = o((e) => {
656
- j({
656
+ I({
657
657
  enabled: a.current,
658
658
  event: e,
659
659
  onCloseAutoFocus: l.current
660
- }) && D(d);
660
+ }) && k(d);
661
661
  }, [d]);
662
662
  return c(() => {
663
663
  if (e) return u(), () => {
@@ -672,47 +672,17 @@ var Ue = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
672
672
  restoreFocusAfterClose: p,
673
673
  saveFocusSnapshot: u
674
674
  };
675
- }, We = () => {
676
- let e = !1;
677
- return {
678
- preventDefault: () => {
679
- e = !0;
680
- },
681
- get defaultPrevented() {
682
- return e;
683
- }
684
- };
685
- }, Ge = (e) => {
686
- let t = !1;
687
- return {
688
- originalEvent: e,
689
- preventDefault: () => {
690
- t = !0;
691
- },
692
- get defaultPrevented() {
693
- return t;
694
- }
695
- };
696
- }, Ke = [
697
- "a[href]",
698
- "button:not([disabled])",
699
- "textarea:not([disabled])",
700
- "input:not([disabled])",
701
- "select:not([disabled])",
702
- "[tabindex]:not([tabindex=\"-1\"])"
703
- ].join(","), qe = (e) => Array.from(e.querySelectorAll(Ke)).filter((e) => !e.hasAttribute("disabled")), Je = (e) => {
704
- (qe(e)[0] ?? e).focus();
705
675
  }, Ye = ({ active: e, contentRef: t, enabled: n, initialFocus: r, finalFocus: i, restoreFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s }) => {
706
- Ue({
676
+ Je({
707
677
  active: e,
708
678
  enabled: a,
709
679
  finalFocus: i,
710
680
  onCloseAutoFocus: s
711
681
  }), c(() => {
712
682
  if (!e) return;
713
- let n = We();
683
+ let n = C();
714
684
  o?.(n), n.defaultPrevented || queueMicrotask(() => {
715
- r?.current?.focus(), !r?.current && t.current && Je(t.current);
685
+ r?.current?.focus(), !r?.current && t.current && A(t.current);
716
686
  });
717
687
  }, [
718
688
  e,
@@ -723,7 +693,7 @@ var Ue = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
723
693
  if (!e || !n) return;
724
694
  let r = (e) => {
725
695
  if (e.key !== "Tab" || !t.current) return;
726
- let n = qe(t.current);
696
+ let n = M(t.current);
727
697
  if (n.length === 0) {
728
698
  e.preventDefault(), t.current.focus();
729
699
  return;
@@ -754,12 +724,12 @@ var Ue = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
754
724
  }, [e]), t;
755
725
  }, Ze = ({ 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 = [] } = {}) => {
756
726
  let f = Xe(l), p = d(() => [
757
- R(i),
758
- ...s ? [L({ padding: a })] : [],
759
- B({ apply({ rects: e, elements: t }) {
727
+ U(i),
728
+ ...s ? [H({ padding: a })] : [],
729
+ ee({ apply({ rects: e, elements: t }) {
760
730
  !o || f || Object.assign(t.floating.style, { width: `${e.reference.width}px` });
761
731
  } }),
762
- ...s ? [z({ padding: a })] : [],
732
+ ...s ? [W({ padding: a })] : [],
763
733
  ...u
764
734
  ], [
765
735
  s,
@@ -768,14 +738,14 @@ var Ue = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
768
738
  f,
769
739
  o,
770
740
  i
771
- ]), { refs: m, floatingStyles: h, isPositioned: g, update: _, context: v, middlewareData: y, placement: b } = V({
741
+ ]), { refs: m, floatingStyles: h, isPositioned: g, update: _, context: v, middlewareData: y, placement: b } = te({
772
742
  open: e,
773
743
  onOpenChange: t,
774
744
  placement: n,
775
745
  strategy: r,
776
746
  transform: !1,
777
747
  middleware: p,
778
- whileElementsMounted: I
748
+ whileElementsMounted: V
779
749
  });
780
750
  return c(() => {
781
751
  f && m.floating.current?.style.removeProperty("width");
@@ -793,12 +763,12 @@ var Ue = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
793
763
  setFloatingRef: m.setFloating,
794
764
  updatePosition: _
795
765
  };
796
- }, Qe = T({
766
+ }, Qe = D({
797
767
  defaultLevel: "popover",
798
- levels: te.tokens.zIndex
799
- }), $e = C("WebOverlayManager");
768
+ levels: K.tokens.zIndex
769
+ }), $e = w("WebOverlayManager");
800
770
  function et() {
801
- let e = w({
771
+ let e = E({
802
772
  diagnostics: $e,
803
773
  policy: Qe
804
774
  }), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
@@ -884,7 +854,7 @@ var tt = et(), nt = r(null), rt = () => s(nt) ?? tt, it = ({ active: e, id: t, z
884
854
  order: l?.order,
885
855
  zIndex: i.getZIndex(t)
886
856
  };
887
- }, at = E((e) => {
857
+ }, at = O((e) => {
888
858
  if (typeof document > "u") return;
889
859
  let t = (t) => {
890
860
  t.key === "Escape" && e.dispatchEscapeKeyDown(t);
@@ -892,7 +862,7 @@ var tt = et(), nt = r(null), rt = () => s(nt) ?? tt, it = ({ active: e, id: t, z
892
862
  return document.addEventListener("keydown", t), () => {
893
863
  document.removeEventListener("keydown", t);
894
864
  };
895
- }), ot = E((e) => {
865
+ }), ot = O((e) => {
896
866
  if (typeof document > "u") return;
897
867
  let t = (t) => {
898
868
  e.dispatchPointerDownOutside(t);
@@ -933,7 +903,7 @@ var lt = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registe
933
903
  if (!e) return;
934
904
  let n = ct(g), r = g.registerPointerDownOutsideHandler(t, (e) => {
935
905
  if (e.target instanceof Node && [o, ...v.current].some((t) => t.current?.contains(e.target))) return;
936
- let t = Ge(e);
906
+ let t = T(e);
937
907
  p?.(t), m?.(t), !(t.defaultPrevented || !u) && h("outside-press", e);
938
908
  });
939
909
  return () => {
@@ -963,7 +933,7 @@ var lt = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registe
963
933
  middleware: f
964
934
  }),
965
935
  animationStyle: o,
966
- presentation: A({
936
+ presentation: P({
967
937
  presentation: a,
968
938
  defaultPresentation: i ? "floating" : "inline"
969
939
  })
@@ -1320,20 +1290,20 @@ var vt = ({ value: e, defaultValue: t, onChange: n }) => {
1320
1290
  children: e
1321
1291
  }), Et = ({ children: e, container: t }) => {
1322
1292
  let n = s(wt), r = gt({ container: t ?? n });
1323
- return r ? N(e, r) : null;
1293
+ return r ? R(e, r) : null;
1324
1294
  };
1325
1295
  Et.__velliraPortal = !0, Et.displayName = "Portal", Tt.displayName = "PortalProvider";
1326
1296
  //#endregion
1327
1297
  //#region src/components/Dropdown/Content/DropdownContent.tsx
1328
1298
  var Dt = ({ className: e }) => {
1329
- let n = Ee(), { contentReadyToFocus: r, isOpen: i, setContentRef: a } = n, s = f(null), l = o((e) => {
1299
+ let n = Ae(), { contentReadyToFocus: r, isOpen: i, setContentRef: a } = n, s = f(null), l = o((e) => {
1330
1300
  s.current = e, a(e);
1331
1301
  }, [a]);
1332
1302
  if (c(() => {
1333
1303
  let e = s.current;
1334
1304
  !i || !r || !e || e.contains(document.activeElement) || e.focus({ preventScroll: !0 });
1335
1305
  }, [r, i]), !i) return null;
1336
- let u = K(ge.dropdown, ge[n.color], n.contentProps?.className, e), d = /* @__PURE__ */ _("ul", {
1306
+ let u = J(be.dropdown, be[n.color], n.contentProps?.className, e), d = /* @__PURE__ */ _("ul", {
1337
1307
  ref: l,
1338
1308
  id: n.contentId,
1339
1309
  role: "menu",
@@ -1350,9 +1320,9 @@ var Dt = ({ className: e }) => {
1350
1320
  "data-color": n.color,
1351
1321
  children: [n.searchable && /* @__PURE__ */ _("li", {
1352
1322
  role: "presentation",
1353
- className: K(ge.searchWrap, n.searchProps?.className),
1323
+ className: J(be.searchWrap, n.searchProps?.className),
1354
1324
  children: [/* @__PURE__ */ g(S, { "aria-hidden": "true" }), /* @__PURE__ */ g("input", {
1355
- className: ge.search,
1325
+ className: be.search,
1356
1326
  value: n.searchValue,
1357
1327
  placeholder: n.searchPlaceholder,
1358
1328
  "aria-label": n.searchProps?.["aria-label"] ?? n.searchPlaceholder,
@@ -1362,19 +1332,19 @@ var Dt = ({ className: e }) => {
1362
1332
  e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "Enter" && e.key !== "Escape" && e.stopPropagation();
1363
1333
  }
1364
1334
  })]
1365
- }), n.loading ? /* @__PURE__ */ g(Le, { children: n.loadingText }) : n.searchable && n.items.length === 0 ? /* @__PURE__ */ g(ve, { children: n.empty }) : n.entries.length ? n.entries.map((e) => e.type === "groupStart" ? /* @__PURE__ */ g(be, {}, e.id) : e.type === "groupEnd" ? null : e.type === "label" ? /* @__PURE__ */ g(Fe, { ...e.props }, e.id) : e.type === "separator" ? /* @__PURE__ */ g(Be, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ g(ve, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ g(Le, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ g(ue, { ...e.props }, e.id) : /* @__PURE__ */ g(t, { children: /* @__PURE__ */ g(Ae, {
1335
+ }), n.loading ? /* @__PURE__ */ g(He, { children: n.loadingText }) : n.searchable && n.items.length === 0 ? /* @__PURE__ */ g(Se, { children: n.empty }) : n.entries.length ? n.entries.map((e) => e.type === "groupStart" ? /* @__PURE__ */ g(we, {}, e.id) : e.type === "groupEnd" ? null : e.type === "label" ? /* @__PURE__ */ g(Be, { ...e.props }, e.id) : e.type === "separator" ? /* @__PURE__ */ g(Ge, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ g(Se, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ g(He, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ g(pe, { ...e.props }, e.id) : /* @__PURE__ */ g(t, { children: /* @__PURE__ */ g(Pe, {
1366
1336
  item: e.item,
1367
1337
  itemIndex: e.itemIndex
1368
- }) }, e.item.id)) : /* @__PURE__ */ g(ve, {})]
1338
+ }) }, e.item.id)) : /* @__PURE__ */ g(Se, {})]
1369
1339
  });
1370
1340
  return n.portal ? /* @__PURE__ */ g(Et, { children: d }) : d;
1371
1341
  };
1372
- k(Dt, "content"), Dt.displayName = "Dropdown.Content";
1342
+ N(Dt, "content"), Dt.displayName = "Dropdown.Content";
1373
1343
  //#endregion
1374
1344
  //#region src/components/Dropdown/ItemBadge/DropdownItemBadge.tsx
1375
- var Ot = J("itemBadge", "Dropdown.ItemBadge"), kt = J("itemDescription", "Dropdown.ItemDescription"), At = J("itemIcon", "Dropdown.ItemIcon"), jt = J("itemShortcut", "Dropdown.ItemShortcut"), Mt = J("radioGroup", "Dropdown.RadioGroup"), Nt = J("radioItem", "Dropdown.RadioItem");
1345
+ var Ot = Y("itemBadge", "Dropdown.ItemBadge"), kt = Y("itemDescription", "Dropdown.ItemDescription"), At = Y("itemIcon", "Dropdown.ItemIcon"), jt = Y("itemShortcut", "Dropdown.ItemShortcut"), Mt = Y("radioGroup", "Dropdown.RadioGroup"), Nt = Y("radioItem", "Dropdown.RadioItem");
1376
1346
  //#endregion
1377
- //#region src/components/Dropdown/internal/composeEventHandlers.ts
1347
+ //#region src/utils/compose.ts
1378
1348
  function Pt(e, t) {
1379
1349
  return (n) => {
1380
1350
  e?.(n), n.defaultPrevented || t(n);
@@ -1393,40 +1363,42 @@ function Ft(...e) {
1393
1363
  });
1394
1364
  };
1395
1365
  }
1366
+ //#endregion
1367
+ //#region src/components/Dropdown/internal/composeEventHandlers.ts
1396
1368
  function It(e) {
1397
1369
  return typeof e == "number" ? `${e}px` : e;
1398
1370
  }
1399
1371
  var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, size: i = "md", color: a = "primary", placement: s = "bottom-start", strategy: u, offset: m = 2, collisionPadding: h = 8, matchTriggerWidth: v = !1, minWidth: y, maxWidth: b, portal: x = !0, avoidCollisions: S = !0, modal: C = !1, closeOnSelect: w = !0, loop: T = !0, disabled: E = !1, loading: D = !1, loadingText: O = "Loading actions...", searchable: k = !1, command: A = !1, searchValue: j, defaultSearchValue: M = "", searchPlaceholder: N, onSearch: P, empty: F, className: I }) => {
1400
- let L = l(), R = `${L}-trigger`, z = `${L}-menu`, B = f(null), V = f(null), [H, U] = p(), [W, ee] = p({}), [te, ne] = p(M), re = j ?? te, G = d(() => de(e), [e]), ie = G.content?.props.command ?? !1, ae = k || A || ie || !!G.search, oe = d(() => Bt(G.items), [G.items]), se = d(() => G.items.map((e) => ({
1372
+ let L = l(), R = `${L}-trigger`, z = `${L}-menu`, B = f(null), V = f(null), [H, U] = p(), [W, ee] = p({}), [te, ne] = p(M), re = j ?? te, G = d(() => he(e), [e]), ie = G.content?.props.command ?? !1, K = k || A || ie || !!G.search, ae = d(() => Bt(G.items), [G.items]), oe = d(() => G.items.map((e) => ({
1401
1373
  disabled: e.disabled,
1402
1374
  label: e.label
1403
- })), [G.items]), ce = d(() => !ae || !re.trim() ? G : Vt(G, re), [
1404
- ae,
1375
+ })), [G.items]), se = d(() => !K || !re.trim() ? G : Vt(G, re), [
1376
+ K,
1405
1377
  G,
1406
1378
  re
1407
- ]), le = d(() => ce.items.map((e) => ({
1379
+ ]), ce = d(() => se.items.map((e) => ({
1408
1380
  disabled: e.disabled,
1409
1381
  label: e.label
1410
- })), [ce.items]);
1382
+ })), [se.items]);
1411
1383
  c(() => {
1412
1384
  ee((e) => {
1413
1385
  let t = { ...e };
1414
- return oe.forEach((e) => {
1386
+ return ae.forEach((e) => {
1415
1387
  e.type === "radio" && t[e.groupId] === void 0 && (t[e.groupId] = e.groupProps?.value ?? e.groupProps?.defaultValue);
1416
1388
  }), t;
1417
1389
  });
1418
- }, [oe]);
1419
- let { activeIndex: ue, setActiveIndex: q, isOpen: J, closeDropdown: fe, toggleDropdown: pe, onKeyDown: me } = bt({
1420
- items: ae ? le : se,
1390
+ }, [ae]);
1391
+ let { activeIndex: le, setActiveIndex: ue, isOpen: de, closeDropdown: q, toggleDropdown: fe, onKeyDown: pe } = bt({
1392
+ items: K ? ce : oe,
1421
1393
  open: t,
1422
1394
  defaultOpen: n,
1423
1395
  disabled: E,
1424
1396
  onOpenChange: r,
1425
- getItemValue: (e, t) => (ae ? ce.items : G.items)[t]?.id ?? "",
1397
+ getItemValue: (e, t) => (K ? se.items : G.items)[t]?.id ?? "",
1426
1398
  getItemText: (e) => e.label,
1427
1399
  loop: T
1428
- }), { floatingStyles: he, isMobileSheet: ge, isPositioned: _e, setRef: ve, setFloatingRef: ye } = ut({
1429
- open: J,
1400
+ }), { floatingStyles: me, isMobileSheet: Y, isPositioned: ge, setRef: _e, setFloatingRef: ve } = ut({
1401
+ open: de,
1430
1402
  placement: s,
1431
1403
  strategy: u,
1432
1404
  portal: x,
@@ -1435,20 +1407,20 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1435
1407
  offset: m,
1436
1408
  collisionPadding: h,
1437
1409
  mobileSheetBreakpoint: 640
1438
- }), be = o((e) => {
1439
- j === void 0 && ne(e), P?.(e), q(0);
1410
+ }), ye = o((e) => {
1411
+ j === void 0 && ne(e), P?.(e), ue(0);
1440
1412
  }, [
1441
1413
  P,
1442
1414
  j,
1443
- q
1415
+ ue
1444
1416
  ]);
1445
1417
  mt({
1446
- active: J,
1418
+ active: de,
1447
1419
  enabled: C
1448
1420
  });
1449
- let xe = o(() => {
1450
- fe(), B.current?.focus();
1451
- }, [fe]), Se = o((e, t) => {
1421
+ let be = o(() => {
1422
+ q(), B.current?.focus();
1423
+ }, [q]), xe = o((e, t) => {
1452
1424
  if (e.disabled || D) return;
1453
1425
  if (e.type === "subTrigger") {
1454
1426
  U(e.id);
@@ -1459,13 +1431,13 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1459
1431
  [e.groupId]: e.props.value
1460
1432
  })), e.groupProps?.onValueChange?.(e.props.value));
1461
1433
  let n = e.props.closeOnSelect ?? (e.type !== "checkbox" && w);
1462
- !t.defaultPrevented && n && xe();
1434
+ !t.defaultPrevented && n && be();
1463
1435
  }, [
1464
- xe,
1436
+ be,
1465
1437
  w,
1466
1438
  D
1467
- ]), Ce = o((e) => {
1468
- let t = ce.items[ue];
1439
+ ]), Se = o((e) => {
1440
+ let t = se.items[le];
1469
1441
  if (e.key === "ArrowRight" && t?.type === "subTrigger") {
1470
1442
  e.preventDefault(), U(t.id);
1471
1443
  return;
@@ -1477,72 +1449,72 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1477
1449
  if ((e.key === "Enter" || e.key === " ") && t) {
1478
1450
  e.preventDefault();
1479
1451
  let n = zt(e);
1480
- Se(t, n);
1452
+ xe(t, n);
1481
1453
  return;
1482
1454
  }
1483
- me(e), e.key === "Escape" && B.current?.focus();
1455
+ pe(e), e.key === "Escape" && B.current?.focus();
1484
1456
  }, [
1485
- ue,
1486
- ce.items,
1487
- me,
1457
+ le,
1458
+ se.items,
1459
+ pe,
1488
1460
  H,
1489
- Se
1490
- ]), Ee = o((e) => {
1491
- e.preventDefault(), pe();
1492
- }, [pe]), De = o((e) => {
1493
- B.current = e, ve(e);
1494
- }, [ve]), Y = o((e) => {
1495
- V.current = e, ye(e), ge && e?.focus({ preventScroll: !0 });
1496
- }, [ge, ye]), Oe = lt({
1497
- active: J,
1461
+ xe
1462
+ ]), Ce = o((e) => {
1463
+ e.preventDefault(), fe();
1464
+ }, [fe]), we = o((e) => {
1465
+ B.current = e, _e(e);
1466
+ }, [_e]), Te = o((e) => {
1467
+ V.current = e, ve(e), Y && e?.focus({ preventScroll: !0 });
1468
+ }, [Y, ve]), Ee = lt({
1469
+ active: de,
1498
1470
  id: z,
1499
1471
  zIndexLevel: "dropdown",
1500
1472
  closeOnEscape: !0,
1501
1473
  closeOnOutsidePress: !0,
1502
1474
  contentRef: V,
1503
1475
  ignoreRefs: [B],
1504
- requestClose: () => fe()
1505
- }), ke = {
1506
- ...he,
1507
- zIndex: Oe.zIndex,
1476
+ requestClose: () => q()
1477
+ }), De = {
1478
+ ...me,
1479
+ zIndex: Ee.zIndex,
1508
1480
  minWidth: It(y),
1509
1481
  maxWidth: It(b)
1510
1482
  }, Ae = {
1511
1483
  disabled: E,
1512
- isOpen: J,
1484
+ isOpen: de,
1513
1485
  contentId: z,
1514
1486
  triggerId: R,
1515
- setTriggerRef: De,
1516
- onClick: Ee,
1517
- onKeyDown: Ce
1487
+ setTriggerRef: we,
1488
+ onClick: Ce,
1489
+ onKeyDown: Se
1518
1490
  }, je = {
1519
- activeIndex: ue,
1491
+ activeIndex: le,
1520
1492
  closeOnSelect: w,
1521
1493
  color: a,
1522
- contentReadyToFocus: ge || _e,
1494
+ contentReadyToFocus: Y || ge,
1523
1495
  contentId: z,
1524
1496
  contentProps: G.content?.props,
1525
1497
  disabled: E,
1526
- entries: ce.entries,
1498
+ entries: se.entries,
1527
1499
  getItemId: (e) => `${z}-item-${e}`,
1528
- isOpen: J,
1529
- items: ce.items,
1500
+ isOpen: de,
1501
+ items: se.items,
1530
1502
  loading: D,
1531
1503
  loadingText: O,
1532
1504
  empty: F,
1533
1505
  maxWidth: b,
1534
1506
  minWidth: y,
1535
1507
  openSubId: H,
1536
- onKeyDown: Ce,
1508
+ onKeyDown: Se,
1537
1509
  portal: !G.portal && x,
1538
1510
  radioValues: W,
1539
1511
  searchPlaceholder: G.search?.props.placeholder ?? N ?? (A || ie ? "Type a command..." : "Search actions..."),
1540
1512
  searchProps: G.search?.props,
1541
1513
  searchValue: re,
1542
- searchable: ae,
1543
- selectItem: Se,
1544
- setActiveIndex: q,
1545
- setContentRef: Y,
1514
+ searchable: K,
1515
+ selectItem: xe,
1516
+ setActiveIndex: ue,
1517
+ setContentRef: Te,
1546
1518
  setOpenSubId: U,
1547
1519
  setRadioValue: (e, t) => {
1548
1520
  ee((n) => ({
@@ -1550,17 +1522,17 @@ var Lt = { wrapper: "_wrapper_14ue8_1" }, Rt = ({ children: e, open: t, defaultO
1550
1522
  [e]: t
1551
1523
  }));
1552
1524
  },
1553
- setSearchValue: be,
1525
+ setSearchValue: ye,
1554
1526
  size: i,
1555
- surfaceStyle: ke,
1527
+ surfaceStyle: De,
1556
1528
  triggerId: R
1557
1529
  };
1558
- return /* @__PURE__ */ g(Te, {
1530
+ return /* @__PURE__ */ g(ke, {
1559
1531
  value: Ae,
1560
- children: /* @__PURE__ */ g(we, {
1532
+ children: /* @__PURE__ */ g(Oe, {
1561
1533
  value: je,
1562
1534
  children: /* @__PURE__ */ _("div", {
1563
- className: K(Lt.wrapper, I),
1535
+ className: J(Lt.wrapper, I),
1564
1536
  "data-disabled": E || void 0,
1565
1537
  children: [G.trigger ?? null, G.portal ?? G.content ?? /* @__PURE__ */ g(Dt, {})]
1566
1538
  })
@@ -1596,7 +1568,7 @@ function Vt(e, t) {
1596
1568
  }
1597
1569
  //#endregion
1598
1570
  //#region src/components/Dropdown/Search/DropdownSearch.tsx
1599
- var Ht = J("search", "Dropdown.Search"), Ut = J("subContent", "Dropdown.SubContent"), Wt = J("subTrigger", "Dropdown.SubTrigger"), Gt = J("sub", "Dropdown.Sub"), Kt = {
1571
+ var Ht = Y("search", "Dropdown.Search"), Ut = Y("subContent", "Dropdown.SubContent"), Wt = Y("subTrigger", "Dropdown.SubTrigger"), Gt = Y("sub", "Dropdown.Sub"), Kt = {
1600
1572
  button: "_button_bb3ib_1",
1601
1573
  disabled: "_disabled_bb3ib_63",
1602
1574
  arrow: "_arrow_bb3ib_71",
@@ -1613,16 +1585,16 @@ var Ht = J("search", "Dropdown.Search"), Ut = J("subContent", "Dropdown.SubConte
1613
1585
  label: "_label_bb3ib_362",
1614
1586
  open: "_open_bb3ib_390"
1615
1587
  }, qt = (e) => /* @__PURE__ */ g(Jt, { ...e });
1616
- k(qt, "trigger"), qt.displayName = "Dropdown.Trigger";
1588
+ N(qt, "trigger"), qt.displayName = "Dropdown.Trigger";
1617
1589
  var Jt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1618
- let o = Ee(), s = De(), c = t && a(e) ? e : void 0, l = o.disabled || r, u = {
1590
+ let o = Ae(), s = je(), c = t && a(e) ? e : void 0, l = o.disabled || r, u = {
1619
1591
  id: s.triggerId,
1620
1592
  ref: c ? Ft(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
1621
1593
  "aria-controls": s.isOpen ? s.contentId : void 0,
1622
1594
  "aria-disabled": l || void 0,
1623
1595
  "aria-expanded": s.isOpen,
1624
1596
  "aria-haspopup": "menu",
1625
- className: K(!c && Kt.button, !c && Kt[o.size], !c && Kt[o.color], i),
1597
+ className: J(!c && Kt.button, !c && Kt[o.size], !c && Kt[o.color], i),
1626
1598
  "data-state": s.isOpen ? "open" : "closed",
1627
1599
  disabled: l || void 0,
1628
1600
  onClick: Pt(c?.props.onClick, s.onClick),
@@ -1630,7 +1602,7 @@ var Jt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1630
1602
  };
1631
1603
  return c ? n(c, {
1632
1604
  ...u,
1633
- className: K(c.props.className, i)
1605
+ className: J(c.props.className, i)
1634
1606
  }) : /* @__PURE__ */ _("button", {
1635
1607
  type: "button",
1636
1608
  ...u,
@@ -1638,7 +1610,7 @@ var Jt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1638
1610
  className: Kt.label,
1639
1611
  children: e
1640
1612
  }), /* @__PURE__ */ g("span", {
1641
- className: K(Kt.arrow, { [Kt.open]: s.isOpen }),
1613
+ className: J(Kt.arrow, { [Kt.open]: s.isOpen }),
1642
1614
  "aria-hidden": "true",
1643
1615
  children: /* @__PURE__ */ g(y, {})
1644
1616
  })]
@@ -1651,13 +1623,13 @@ var Yt = Object.assign(Rt, {
1651
1623
  Trigger: qt,
1652
1624
  Content: Dt,
1653
1625
  Search: Ht,
1654
- Item: ke,
1655
- CheckboxItem: he,
1626
+ Item: Ne,
1627
+ CheckboxItem: ye,
1656
1628
  RadioGroup: Mt,
1657
1629
  RadioItem: Nt,
1658
- Group: ye,
1659
- Label: X,
1660
- Separator: ze,
1630
+ Group: Ce,
1631
+ Label: ze,
1632
+ Separator: We,
1661
1633
  Sub: Gt,
1662
1634
  SubTrigger: Wt,
1663
1635
  SubContent: Ut,
@@ -1665,9 +1637,9 @@ var Yt = Object.assign(Rt, {
1665
1637
  ItemDescription: kt,
1666
1638
  ItemBadge: Ot,
1667
1639
  ItemShortcut: jt,
1668
- Arrow: ue,
1669
- Empty: _e,
1670
- Loading: Ie
1640
+ Arrow: pe,
1641
+ Empty: xe,
1642
+ Loading: Ve
1671
1643
  });
1672
1644
  Yt.displayName = "Dropdown";
1673
1645
  //#endregion
@@ -1684,46 +1656,26 @@ var nn = {
1684
1656
  }, rn = ({ children: e, className: t }) => {
1685
1657
  let n = $t();
1686
1658
  return /* @__PURE__ */ g("div", {
1687
- className: K(nn.modalBody, n?.scrollBehavior === "inside" && nn.inside, t),
1659
+ className: J(nn.modalBody, n?.scrollBehavior === "inside" && nn.inside, t),
1688
1660
  children: e
1689
1661
  });
1690
1662
  };
1691
1663
  rn.displayName = "ModalBody";
1692
- //#endregion
1693
- //#region src/components/Modal/internal/composeEventHandlers.ts
1694
- function an(e, t) {
1695
- return (n) => {
1696
- e?.(n), n.defaultPrevented || t(n);
1697
- };
1698
- }
1699
- function on(...e) {
1700
- return (t) => {
1701
- e.forEach((e) => {
1702
- if (e) {
1703
- if (typeof e == "function") {
1704
- e(t);
1705
- return;
1706
- }
1707
- e.current = t;
1708
- }
1709
- });
1710
- };
1711
- }
1712
- var sn = {
1664
+ var an = {
1713
1665
  modalHeader: "_modalHeader_hw9hl_1",
1714
1666
  modalHeaderText: "_modalHeaderText_hw9hl_8",
1715
1667
  modalHeaderTitle: "_modalHeaderTitle_hw9hl_13",
1716
1668
  modalHeaderDescription: "_modalHeaderDescription_hw9hl_20",
1717
1669
  modalHeaderCloseButton: "_modalHeaderCloseButton_hw9hl_26"
1718
- }, cn = ({ asChild: e = !1, children: t, className: r, "aria-label": i }) => {
1670
+ }, on = ({ asChild: e = !1, children: t, className: r, "aria-label": i }) => {
1719
1671
  let o = Qt(), s = e && a(t) ? t : void 0, c = {
1720
1672
  "aria-label": s ? i : i ?? "Close dialog",
1721
- className: K(!s && sn.modalHeaderCloseButton, r),
1722
- onClick: an(s?.props.onClick, o.requestClose)
1673
+ className: J(!s && an.modalHeaderCloseButton, r),
1674
+ onClick: Pt(s?.props.onClick, o.requestClose)
1723
1675
  };
1724
1676
  return s ? n(s, {
1725
1677
  ...c,
1726
- className: K(s.props.className, r),
1678
+ className: J(s.props.className, r),
1727
1679
  "aria-label": i ?? s.props["aria-label"]
1728
1680
  }) : /* @__PURE__ */ g("button", {
1729
1681
  type: "button",
@@ -1731,8 +1683,8 @@ var sn = {
1731
1683
  children: /* @__PURE__ */ g(x, { size: 16 })
1732
1684
  });
1733
1685
  };
1734
- cn.displayName = "Modal.Close";
1735
- var ln = {
1686
+ on.displayName = "Modal.Close";
1687
+ var sn = {
1736
1688
  content: "_content_1tnw8_1",
1737
1689
  animated: "_animated_1tnw8_24",
1738
1690
  "modal-content-open": "_modal-content-open_1tnw8_1",
@@ -1746,7 +1698,7 @@ var ln = {
1746
1698
  full: "_full_1tnw8_107",
1747
1699
  inside: "_inside_1tnw8_113",
1748
1700
  outside: "_outside_1tnw8_117"
1749
- }, 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 }) => {
1701
+ }, cn = ({ 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 }) => {
1750
1702
  let f = Qt(), m = f.open, h = m && f.shouldRender, [_, v] = p(null), y = o((e) => {
1751
1703
  f.setContentRef(e), v(e);
1752
1704
  }, [f]);
@@ -1759,7 +1711,7 @@ var ln = {
1759
1711
  onCloseAutoFocus: f.onCloseAutoFocus,
1760
1712
  onOpenAutoFocus: f.onOpenAutoFocus,
1761
1713
  restoreFocus: f.restoreFocus
1762
- }), Ve({
1714
+ }), Ke({
1763
1715
  active: m,
1764
1716
  content: _,
1765
1717
  enabled: f.modal
@@ -1769,9 +1721,9 @@ var ln = {
1769
1721
  value: { scrollBehavior: r },
1770
1722
  children: /* @__PURE__ */ g("div", {
1771
1723
  id: f.contentId,
1772
- ref: on(y),
1724
+ ref: Ft(y),
1773
1725
  tabIndex: -1,
1774
- className: K(ln.content, ln[t], ln[n], ln[r], i && ln.animated, u),
1726
+ className: J(sn.content, sn[t], sn[n], sn[r], i && sn.animated, u),
1775
1727
  style: {
1776
1728
  ...f.animationStyle,
1777
1729
  ...d
@@ -1787,61 +1739,61 @@ var ln = {
1787
1739
  })
1788
1740
  });
1789
1741
  };
1790
- un.displayName = "ModalContent";
1791
- var dn = { modalFooter: "_modalFooter_sb1pn_1" }, fn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1792
- className: K(dn.modalFooter, t),
1742
+ cn.displayName = "ModalContent";
1743
+ var ln = { modalFooter: "_modalFooter_sb1pn_1" }, un = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1744
+ className: J(ln.modalFooter, t),
1793
1745
  children: e
1794
1746
  });
1795
- fn.displayName = "ModalFooter";
1747
+ un.displayName = "ModalFooter";
1796
1748
  //#endregion
1797
1749
  //#region src/components/Modal/Header/ModalDescription.tsx
1798
- var pn = ({ children: e }) => {
1750
+ var dn = ({ children: e }) => {
1799
1751
  let { descriptionId: t, setDescriptionPresent: n } = Qt();
1800
1752
  return c(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ g("p", {
1801
1753
  id: t,
1802
- className: sn.modalHeaderDescription,
1754
+ className: an.modalHeaderDescription,
1803
1755
  children: e
1804
1756
  });
1805
1757
  };
1806
- pn.displayName = "Modal.Description";
1758
+ dn.displayName = "Modal.Description";
1807
1759
  //#endregion
1808
1760
  //#region src/components/Modal/Header/ModalHeader.tsx
1809
- var mn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1810
- className: K(sn.modalHeader, t),
1761
+ var fn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1762
+ className: J(an.modalHeader, t),
1811
1763
  children: e
1812
1764
  });
1813
- mn.displayName = "ModalHeader";
1765
+ fn.displayName = "ModalHeader";
1814
1766
  //#endregion
1815
1767
  //#region src/components/Modal/Header/ModalTitle.tsx
1816
- var hn = ({ children: e }) => {
1768
+ var pn = ({ children: e }) => {
1817
1769
  let { setTitlePresent: t, titleId: n } = Qt();
1818
1770
  return u(() => (t(!0), () => t(!1)), [t]), /* @__PURE__ */ g("h2", {
1819
1771
  id: n,
1820
- className: sn.modalHeaderTitle,
1772
+ className: an.modalHeaderTitle,
1821
1773
  children: e
1822
1774
  });
1823
1775
  };
1824
- hn.displayName = "Modal.Title";
1825
- var gn = {
1776
+ pn.displayName = "Modal.Title";
1777
+ var mn = {
1826
1778
  overlay: "_overlay_d6wdf_1",
1827
1779
  "overlay--open": "_overlay--open_d6wdf_10",
1828
1780
  "overlay--animated": "_overlay--animated_d6wdf_15",
1829
1781
  "modal-overlay-open": "_modal-overlay-open_d6wdf_1",
1830
1782
  "modal-overlay-close": "_modal-overlay-close_d6wdf_1"
1831
- }, _n = ({ className: e, animated: t = !0, forceMount: n = !1 }) => {
1783
+ }, hn = ({ className: e, animated: t = !0, forceMount: n = !1 }) => {
1832
1784
  let { animation: r, animationStyle: i, open: a, shouldRender: o } = Qt();
1833
1785
  return !o && !n ? null : /* @__PURE__ */ g("div", {
1834
- className: K(gn.overlay, a && gn["overlay--open"], t && gn["overlay--animated"], e),
1786
+ className: J(mn.overlay, a && mn["overlay--open"], t && mn["overlay--animated"], e),
1835
1787
  style: i,
1836
1788
  "data-state": a ? "open" : "closed",
1837
1789
  "data-animation": r,
1838
1790
  "aria-hidden": "true"
1839
1791
  });
1840
1792
  };
1841
- _n.displayName = "ModalOverlay";
1793
+ hn.displayName = "ModalOverlay";
1842
1794
  //#endregion
1843
1795
  //#region src/components/Modal/internal/useModalDismiss.ts
1844
- var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnEscape: i, closeOnOutsidePress: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => lt({
1796
+ var gn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnEscape: i, closeOnOutsidePress: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => lt({
1845
1797
  active: e,
1846
1798
  registrationActive: t,
1847
1799
  id: n,
@@ -1853,27 +1805,27 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1853
1805
  onInteractOutside: c ? (e) => c(e) : void 0,
1854
1806
  onPointerDownOutside: s ? (e) => s(e) : void 0,
1855
1807
  requestClose: l
1856
- }), yn = {
1857
- standard: te.components.modal.motion.easing,
1808
+ }), _n = {
1809
+ standard: K.components.modal.motion.easing,
1858
1810
  linear: "linear",
1859
1811
  ease: "ease",
1860
1812
  "ease-in": "ease-in",
1861
1813
  "ease-out": "ease-out",
1862
1814
  "ease-in-out": "ease-in-out"
1863
- }, bn = (e) => Number.parseFloat(e), xn = (e) => typeof e == "number" ? {
1815
+ }, vn = (e) => Number.parseFloat(e), yn = (e) => typeof e == "number" ? {
1864
1816
  close: e,
1865
1817
  open: e
1866
1818
  } : {
1867
- close: e?.close ?? bn(te.components.modal.motion.closeDuration),
1868
- open: e?.open ?? bn(te.components.modal.motion.openDuration)
1869
- }, 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" }) => {
1819
+ close: e?.close ?? vn(K.components.modal.motion.closeDuration),
1820
+ open: e?.open ?? vn(K.components.modal.motion.openDuration)
1821
+ }, bn = ({ open: e, defaultOpen: t = !1, onOpenChange: n, animation: r = "scale", duration: i, easing: a = "standard", modal: s = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, preventScroll: m = !0, restoreFocus: h = !0, trapFocus: g = !0, initialFocus: _, finalFocus: v, onOpenAutoFocus: y, onCloseAutoFocus: b, onEscapeKeyDown: x, onPointerDownOutside: S, onInteractOutside: C, role: w = "dialog" }) => {
1870
1822
  let T = f(null), { contentId: E, descriptionId: D, open: O, requestClose: k, setOpen: A, titleId: j } = xt({
1871
1823
  open: e,
1872
1824
  defaultOpen: t,
1873
1825
  onOpenChange: n,
1874
1826
  closeOnEscape: l,
1875
1827
  closeOnOutsidePress: u
1876
- }), [M, N] = p(!1), [P, F] = p(!1), [I, L] = p(0), R = xn(i), z = r === "none" ? 0 : R.close, [B, V] = p(O);
1828
+ }), [M, N] = p(!1), [P, F] = p(!1), [I, L] = p(0), R = yn(i), z = r === "none" ? 0 : R.close, [B, V] = p(O);
1877
1829
  c(() => {
1878
1830
  if (O) {
1879
1831
  V(!0);
@@ -1899,7 +1851,7 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1899
1851
  active: O,
1900
1852
  enabled: m
1901
1853
  });
1902
- let W = vn({
1854
+ let W = gn({
1903
1855
  active: O,
1904
1856
  registrationActive: B,
1905
1857
  id: E,
@@ -1912,7 +1864,7 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1912
1864
  requestClose: H
1913
1865
  }), ee = d(() => ({
1914
1866
  "--modal-animation-close-duration": `${R.close}ms`,
1915
- "--modal-animation-easing": yn[a],
1867
+ "--modal-animation-easing": _n[a],
1916
1868
  "--modal-animation-open-duration": `${R.open}ms`,
1917
1869
  "--z-index-modal": W.zIndex === void 0 ? void 0 : `${W.zIndex}`
1918
1870
  }), [
@@ -2002,89 +1954,89 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
2002
1954
  ]),
2003
1955
  open: O
2004
1956
  };
2005
- }, Cn = ({ children: e, className: t, ...n }) => {
2006
- let { context: r, open: i } = Sn(n);
1957
+ }, xn = ({ children: e, className: t, ...n }) => {
1958
+ let { context: r, open: i } = bn(n);
2007
1959
  return /* @__PURE__ */ g(en, {
2008
1960
  value: r,
2009
1961
  children: /* @__PURE__ */ g("div", {
2010
- className: K(t),
1962
+ className: J(t),
2011
1963
  "data-state": i ? "open" : "closed",
2012
1964
  children: e
2013
1965
  })
2014
1966
  });
2015
1967
  };
2016
- Cn.displayName = "ModalRoot";
1968
+ xn.displayName = "ModalRoot";
2017
1969
  //#endregion
2018
1970
  //#region src/components/Modal/Trigger/ModalTrigger.tsx
2019
- var wn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
1971
+ var Sn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
2020
1972
  let o = Qt(), s = t && a(e) ? e : void 0, c = r, l = {
2021
1973
  "aria-controls": o.contentId,
2022
1974
  "aria-disabled": c || void 0,
2023
1975
  "aria-expanded": o.open,
2024
1976
  "aria-haspopup": "dialog",
2025
- className: K(i),
1977
+ className: J(i),
2026
1978
  "data-state": o.open ? "open" : "closed",
2027
1979
  disabled: c || void 0,
2028
- onClick: an(s?.props.onClick, () => {
1980
+ onClick: Pt(s?.props.onClick, () => {
2029
1981
  c || o.setOpen(!0);
2030
1982
  })
2031
1983
  };
2032
1984
  return s ? n(s, {
2033
1985
  ...l,
2034
- ref: on(s.props.ref),
2035
- className: K(s.props.className, i)
1986
+ ref: Ft(s.props.ref),
1987
+ className: J(s.props.className, i)
2036
1988
  }) : /* @__PURE__ */ g("button", {
2037
1989
  type: "button",
2038
1990
  ...l,
2039
1991
  children: e
2040
1992
  });
2041
1993
  };
2042
- wn.displayName = "Modal.Trigger";
1994
+ Sn.displayName = "Modal.Trigger";
2043
1995
  //#endregion
2044
1996
  //#region src/components/Modal/Modal.tsx
2045
- var Tn = Object.assign(Cn, {
2046
- Trigger: wn,
2047
- Overlay: _n,
2048
- Content: un,
2049
- Header: mn,
2050
- Title: hn,
2051
- Description: pn,
1997
+ var Cn = Object.assign(xn, {
1998
+ Trigger: Sn,
1999
+ Overlay: hn,
2000
+ Content: cn,
2001
+ Header: fn,
2002
+ Title: pn,
2003
+ Description: dn,
2052
2004
  Body: rn,
2053
- Footer: fn,
2054
- Close: cn
2005
+ Footer: un,
2006
+ Close: on
2055
2007
  });
2056
- Tn.displayName = "Modal";
2008
+ Cn.displayName = "Modal";
2057
2009
  //#endregion
2058
2010
  //#region src/components/Popover/Context/PopoverContext.tsx
2059
- var En = r(null);
2060
- function Dn({ children: e, value: t }) {
2061
- return /* @__PURE__ */ g(En.Provider, {
2011
+ var wn = r(null);
2012
+ function Tn({ children: e, value: t }) {
2013
+ return /* @__PURE__ */ g(wn.Provider, {
2062
2014
  value: t,
2063
2015
  children: e
2064
2016
  });
2065
2017
  }
2066
- function On(e) {
2067
- let t = s(En);
2018
+ function En(e) {
2019
+ let t = s(wn);
2068
2020
  if (!t) throw Error(`${e} must be used within Popover.Root`);
2069
2021
  return t;
2070
2022
  }
2071
2023
  //#endregion
2072
2024
  //#region src/components/Popover/Anchor/PopoverAnchor.tsx
2073
- function kn(e, t) {
2025
+ function Dn(e, t) {
2074
2026
  if (typeof e == "function") {
2075
2027
  e(t);
2076
2028
  return;
2077
2029
  }
2078
2030
  e && (e.current = t);
2079
2031
  }
2080
- function An({ children: e, asChild: t = !1, className: r, ...i }) {
2081
- let { setAnchorRef: o } = On("Popover.Anchor"), s = t && a(e) ? e : void 0;
2032
+ function On({ children: e, asChild: t = !1, className: r, ...i }) {
2033
+ let { setAnchorRef: o } = En("Popover.Anchor"), s = t && a(e) ? e : void 0;
2082
2034
  return s ? n(s, {
2083
2035
  ...i,
2084
2036
  ref: (e) => {
2085
- kn(s.props.ref, e), o(e);
2037
+ Dn(s.props.ref, e), o(e);
2086
2038
  },
2087
- className: K(s.props.className, r)
2039
+ className: J(s.props.className, r)
2088
2040
  }) : /* @__PURE__ */ g("div", {
2089
2041
  ...i,
2090
2042
  ref: o,
@@ -2092,15 +2044,15 @@ function An({ children: e, asChild: t = !1, className: r, ...i }) {
2092
2044
  children: e
2093
2045
  });
2094
2046
  }
2095
- An.displayName = "Popover.Anchor";
2096
- var jn = { arrow: "_arrow_6lbs0_1" }, Mn = {
2047
+ On.displayName = "Popover.Anchor";
2048
+ var kn = { arrow: "_arrow_6lbs0_1" }, An = {
2097
2049
  start: "20%",
2098
2050
  center: null,
2099
2051
  end: "80%"
2100
2052
  };
2101
- function Nn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center", offset: i, className: a, ...o }) {
2102
- let { arrowRef: s, floatingContext: c, placement: l } = On("Popover.Arrow"), u = i ?? Mn[r], d = l.split("-")[0];
2103
- return /* @__PURE__ */ g(P, {
2053
+ function jn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center", offset: i, className: a, ...o }) {
2054
+ let { arrowRef: s, floatingContext: c, placement: l } = En("Popover.Arrow"), u = i ?? An[r], d = l.split("-")[0];
2055
+ return /* @__PURE__ */ g(z, {
2104
2056
  ...o,
2105
2057
  ref: s,
2106
2058
  context: c,
@@ -2112,14 +2064,14 @@ function Nn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center
2112
2064
  stroke: "var(--border-muted)",
2113
2065
  strokeWidth: 1,
2114
2066
  "data-side": d,
2115
- className: K(jn.arrow, a)
2067
+ className: J(kn.arrow, a)
2116
2068
  });
2117
2069
  }
2118
- Nn.displayName = "Popover.Arrow";
2070
+ jn.displayName = "Popover.Arrow";
2119
2071
  //#endregion
2120
2072
  //#region src/components/Popover/Close/PopoverClose.tsx
2121
- function Pn({ children: e, asChild: t = !1, className: r, disabled: i, onClick: o, ...s }) {
2122
- let { setOpen: c } = On("Popover.Close"), l = t && a(e) ? e : void 0, u = i || l?.props.disabled === !0, d = (e) => {
2073
+ function Mn({ children: e, asChild: t = !1, className: r, disabled: i, onClick: o, ...s }) {
2074
+ let { setOpen: c } = En("Popover.Close"), l = t && a(e) ? e : void 0, u = i || l?.props.disabled === !0, d = (e) => {
2123
2075
  l?.props.onClick?.(e), o?.(e), !(e.defaultPrevented || u) && c(!1, {
2124
2076
  reason: "close",
2125
2077
  event: e.nativeEvent
@@ -2132,7 +2084,7 @@ function Pn({ children: e, asChild: t = !1, className: r, disabled: i, onClick:
2132
2084
  };
2133
2085
  return l ? n(l, {
2134
2086
  ...f,
2135
- className: K(l.props.className, r)
2087
+ className: J(l.props.className, r)
2136
2088
  }) : /* @__PURE__ */ g("button", {
2137
2089
  type: "button",
2138
2090
  ...f,
@@ -2140,15 +2092,15 @@ function Pn({ children: e, asChild: t = !1, className: r, disabled: i, onClick:
2140
2092
  children: e
2141
2093
  });
2142
2094
  }
2143
- Pn.displayName = "Popover.Close";
2144
- var Fn = {
2095
+ Mn.displayName = "Popover.Close";
2096
+ var Nn = {
2145
2097
  content: "_content_1jzfn_1",
2146
2098
  "popover-in": "_popover-in_1jzfn_1"
2147
2099
  };
2148
2100
  //#endregion
2149
2101
  //#region src/components/Popover/Content/PopoverContent.tsx
2150
- 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 }) {
2151
- 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) => {
2102
+ function Pn({ 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 }) {
2103
+ 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 } = En("Popover.Content"), [M, N] = p(null), P = o((e, t) => {
2152
2104
  A(!1, {
2153
2105
  reason: e,
2154
2106
  event: t
@@ -2184,7 +2136,7 @@ function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2184
2136
  }), mt({
2185
2137
  active: y,
2186
2138
  enabled: b
2187
- }), Ve({
2139
+ }), Ke({
2188
2140
  active: y,
2189
2141
  enabled: b,
2190
2142
  content: M
@@ -2202,7 +2154,7 @@ function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2202
2154
  "aria-describedby": D,
2203
2155
  "data-state": "open",
2204
2156
  "data-side": L,
2205
- className: K(Fn.content, r),
2157
+ className: J(Nn.content, r),
2206
2158
  style: {
2207
2159
  ...k,
2208
2160
  zIndex: F.zIndex,
@@ -2211,7 +2163,7 @@ function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2211
2163
  }, z = t && a(e) ? e : void 0, B = z ? n(z, {
2212
2164
  ...R,
2213
2165
  ref: I,
2214
- className: K(z.props.className, Fn.content, r),
2166
+ className: J(z.props.className, Nn.content, r),
2215
2167
  style: {
2216
2168
  ...k,
2217
2169
  zIndex: F.zIndex,
@@ -2225,30 +2177,30 @@ function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2225
2177
  });
2226
2178
  return x ? /* @__PURE__ */ g(Et, { children: B }) : B;
2227
2179
  }
2228
- In.displayName = "Popover.Content";
2229
- var Ln = { description: "_description_hji8o_1" };
2180
+ Pn.displayName = "Popover.Content";
2181
+ var Fn = { description: "_description_hji8o_1" };
2230
2182
  //#endregion
2231
2183
  //#region src/components/Popover/Description/PopoverDescription.tsx
2232
- function Rn({ children: e, asChild: t = !1, className: r, ...i }) {
2233
- let { descriptionId: o } = On("Popover.Description"), s = t && a(e) ? e : void 0;
2184
+ function In({ children: e, asChild: t = !1, className: r, ...i }) {
2185
+ let { descriptionId: o } = En("Popover.Description"), s = t && a(e) ? e : void 0;
2234
2186
  return s ? n(s, {
2235
2187
  ...i,
2236
2188
  id: o,
2237
- className: K(s.props.className, Ln.description, r)
2189
+ className: J(s.props.className, Fn.description, r)
2238
2190
  }) : /* @__PURE__ */ g("p", {
2239
2191
  ...i,
2240
2192
  id: o,
2241
- className: K(Ln.description, r),
2193
+ className: J(Fn.description, r),
2242
2194
  children: e
2243
2195
  });
2244
2196
  }
2245
- Rn.displayName = "Popover.Description";
2197
+ In.displayName = "Popover.Description";
2246
2198
  //#endregion
2247
2199
  //#region src/components/Popover/Root/PopoverRoot.tsx
2248
- function zn(e, t) {
2200
+ function Ln(e, t) {
2249
2201
  return t === "center" ? e : `${e}-${t}`;
2250
2202
  }
2251
- 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 }) {
2203
+ function Rn({ 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 }) {
2252
2204
  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] = vt({
2253
2205
  value: t,
2254
2206
  defaultValue: n,
@@ -2257,26 +2209,26 @@ function Bn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
2257
2209
  }
2258
2210
  }), O = o((e, t) => {
2259
2211
  b.current = t, D(e);
2260
- }, [D]), k = f(null), A = d(() => [F({
2212
+ }, [D]), k = f(null), A = d(() => [B({
2261
2213
  element: k,
2262
2214
  padding: 8
2263
- })], []), { context: j, floatingStyles: M, isPositioned: N, placement: P, setFloatingRef: I, setRef: L } = ut({
2215
+ })], []), { context: j, floatingStyles: M, isPositioned: N, placement: P, setFloatingRef: F, setRef: I } = ut({
2264
2216
  open: E,
2265
- placement: zn(a, s),
2217
+ placement: Ln(a, s),
2266
2218
  strategy: h,
2267
2219
  portal: m,
2268
2220
  offset: c + 7,
2269
2221
  collisionPadding: u,
2270
2222
  avoidCollisions: p,
2271
2223
  middleware: A
2272
- }), R = o((e) => {
2273
- _.current = e, v.current || L(e);
2274
- }, [L]), z = o((e) => {
2275
- v.current = e, L(e ?? _.current);
2276
- }, [L]), B = o((e) => {
2277
- y.current = e, I(e);
2278
- }, [I]);
2279
- return /* @__PURE__ */ g(Dn, {
2224
+ }), L = o((e) => {
2225
+ _.current = e, v.current || I(e);
2226
+ }, [I]), R = o((e) => {
2227
+ v.current = e, I(e ?? _.current);
2228
+ }, [I]), z = o((e) => {
2229
+ y.current = e, F(e);
2230
+ }, [F]);
2231
+ return /* @__PURE__ */ g(Tn, {
2280
2232
  value: {
2281
2233
  open: E,
2282
2234
  modal: r,
@@ -2293,35 +2245,35 @@ function Bn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
2293
2245
  isPositioned: N,
2294
2246
  floatingContext: j,
2295
2247
  arrowRef: k,
2296
- setTriggerRef: R,
2297
- setAnchorRef: z,
2298
- setContentRef: B,
2248
+ setTriggerRef: L,
2249
+ setAnchorRef: R,
2250
+ setContentRef: z,
2299
2251
  setOpen: O
2300
2252
  },
2301
2253
  children: e
2302
2254
  });
2303
2255
  }
2304
- var Vn = { title: "_title_1gham_1" };
2256
+ var zn = { title: "_title_1gham_1" };
2305
2257
  //#endregion
2306
2258
  //#region src/components/Popover/Title/PopoverTitle.tsx
2307
- function Hn({ children: e, asChild: t = !1, className: r, ...i }) {
2308
- let { titleId: o } = On("Popover.Title"), s = t && a(e) ? e : void 0;
2259
+ function Bn({ children: e, asChild: t = !1, className: r, ...i }) {
2260
+ let { titleId: o } = En("Popover.Title"), s = t && a(e) ? e : void 0;
2309
2261
  return s ? n(s, {
2310
2262
  ...i,
2311
2263
  id: o,
2312
- className: K(s.props.className, Vn.title, r)
2264
+ className: J(s.props.className, zn.title, r)
2313
2265
  }) : /* @__PURE__ */ g("h2", {
2314
2266
  ...i,
2315
2267
  id: o,
2316
- className: K(Vn.title, r),
2268
+ className: J(zn.title, r),
2317
2269
  children: e
2318
2270
  });
2319
2271
  }
2320
- Hn.displayName = "Popover.Title";
2272
+ Bn.displayName = "Popover.Title";
2321
2273
  //#endregion
2322
2274
  //#region src/components/Popover/Trigger/PopoverTrigger.tsx
2323
- function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onClick: o, ...s }) {
2324
- 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 = {
2275
+ function Vn({ children: e, asChild: t = !1, disabled: r = !1, className: i, onClick: o, ...s }) {
2276
+ let { open: c, triggerId: l, contentId: u, setOpen: d, setTriggerRef: f } = En("Popover.Trigger"), p = t && a(e) ? e : void 0, m = r || p?.props.disabled === !0, h = {
2325
2277
  id: l,
2326
2278
  "aria-controls": c ? u : void 0,
2327
2279
  "aria-expanded": c,
@@ -2339,7 +2291,7 @@ function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onCl
2339
2291
  ...s,
2340
2292
  ...h,
2341
2293
  disabled: m || void 0,
2342
- className: K(p.props.className, i),
2294
+ className: J(p.props.className, i),
2343
2295
  ref: (e) => {
2344
2296
  let t = p.props.ref;
2345
2297
  typeof t == "function" ? t(e) : t && (t.current = e), f(e);
@@ -2354,22 +2306,22 @@ function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onCl
2354
2306
  children: e
2355
2307
  });
2356
2308
  }
2357
- Un.displayName = "Popover.Trigger";
2309
+ Vn.displayName = "Popover.Trigger";
2358
2310
  //#endregion
2359
2311
  //#region src/components/Popover/Popover.tsx
2360
- var Wn = Object.assign(Bn, {
2361
- Anchor: An,
2362
- Arrow: Nn,
2363
- Close: Pn,
2364
- Content: In,
2365
- Description: Rn,
2366
- Title: Hn,
2367
- Trigger: Un
2368
- }), Gn = r(null), Kn = Gn.Provider;
2369
- function qn() {
2370
- return s(Gn);
2312
+ var Hn = Object.assign(Rn, {
2313
+ Anchor: On,
2314
+ Arrow: jn,
2315
+ Close: Mn,
2316
+ Content: Pn,
2317
+ Description: In,
2318
+ Title: Bn,
2319
+ Trigger: Vn
2320
+ }), Un = r(null), Wn = Un.Provider;
2321
+ function Gn() {
2322
+ return s(Un);
2371
2323
  }
2372
- var Jn = {
2324
+ var Kn = {
2373
2325
  root: "_root_7yrws_1",
2374
2326
  invalid: "_invalid_7yrws_34",
2375
2327
  control: "_control_7yrws_34",
@@ -2392,14 +2344,14 @@ var Jn = {
2392
2344
  "radio-indicator-in": "_radio-indicator-in_7yrws_1",
2393
2345
  content: "_content_7yrws_346",
2394
2346
  error: "_error_7yrws_363"
2395
- }, Yn = {
2396
- primary: Jn.colorPrimary,
2397
- neutral: Jn.colorNeutral,
2398
- success: Jn.colorSuccess,
2399
- warning: Jn.colorWarning,
2400
- danger: Jn.colorDanger
2401
- }, 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) => {
2402
- let S = qn(), C = l(), w = h ?? C, T = d ? `${w}-description` : void 0, E = s ? `${w}-error` : void 0, D = [
2347
+ }, qn = {
2348
+ primary: Kn.colorPrimary,
2349
+ neutral: Kn.colorNeutral,
2350
+ success: Kn.colorSuccess,
2351
+ warning: Kn.colorWarning,
2352
+ danger: Kn.colorDanger
2353
+ }, Jn = 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) => {
2354
+ let S = Gn(), C = l(), w = h ?? C, T = d ? `${w}-description` : void 0, E = s ? `${w}-error` : void 0, D = [
2403
2355
  T,
2404
2356
  E,
2405
2357
  S?.describedBy,
@@ -2418,10 +2370,10 @@ var Jn = {
2418
2370
  }
2419
2371
  };
2420
2372
  return /* @__PURE__ */ _("div", {
2421
- className: K(Jn.root, Jn[I], F && Jn.invalid, M && Jn.disabled, Yn[L], m),
2373
+ className: J(Kn.root, Kn[I], F && Kn.invalid, M && Kn.disabled, qn[L], m),
2422
2374
  children: [/* @__PURE__ */ _("label", {
2423
2375
  htmlFor: w,
2424
- className: K(Jn.wrapper, p),
2376
+ className: J(Kn.wrapper, p),
2425
2377
  children: [
2426
2378
  /* @__PURE__ */ g("input", {
2427
2379
  ...b,
@@ -2435,55 +2387,55 @@ var Jn = {
2435
2387
  required: N,
2436
2388
  "aria-invalid": F || void 0,
2437
2389
  "aria-describedby": D,
2438
- className: Jn.input,
2390
+ className: Kn.input,
2439
2391
  onChange: R
2440
2392
  }),
2441
2393
  /* @__PURE__ */ g("span", {
2442
- className: Jn.control,
2394
+ className: Kn.control,
2443
2395
  "aria-hidden": "true",
2444
2396
  children: /* @__PURE__ */ g("span", {
2445
- className: K(Jn.indicator, f && Jn.customIcon),
2397
+ className: J(Kn.indicator, f && Kn.customIcon),
2446
2398
  children: f
2447
2399
  })
2448
2400
  }),
2449
2401
  (u || d) && /* @__PURE__ */ _("span", {
2450
- className: Jn.content,
2402
+ className: Kn.content,
2451
2403
  children: [u && /* @__PURE__ */ g("span", {
2452
- className: Jn.label,
2404
+ className: Kn.label,
2453
2405
  children: u
2454
2406
  }), d && /* @__PURE__ */ g("span", {
2455
2407
  id: T,
2456
- className: Jn.description,
2408
+ className: Kn.description,
2457
2409
  children: d
2458
2410
  })]
2459
2411
  })
2460
2412
  ]
2461
2413
  }), s && /* @__PURE__ */ g("div", {
2462
2414
  id: E,
2463
- className: Jn.error,
2415
+ className: Kn.error,
2464
2416
  children: s
2465
2417
  })]
2466
2418
  });
2467
2419
  });
2468
- Xn.displayName = "Radio";
2420
+ Jn.displayName = "Radio";
2469
2421
  //#endregion
2470
2422
  //#region src/components/RadioGroup/Item/RadioGroupItem.tsx
2471
- var Zn = i((e, t) => /* @__PURE__ */ g(Xn, {
2423
+ var Yn = i((e, t) => /* @__PURE__ */ g(Jn, {
2472
2424
  ...e,
2473
2425
  ref: t
2474
2426
  }));
2475
- Zn.displayName = "RadioGroup.Item";
2427
+ Yn.displayName = "RadioGroup.Item";
2476
2428
  //#endregion
2477
2429
  //#region src/components/RadioGroup/internal/useRadioGroupCollection.ts
2478
- var Qn = (e) => {
2430
+ var Xn = (e) => {
2479
2431
  let t = e.current;
2480
2432
  return t ? Array.from(t.querySelectorAll("input[type=\"radio\"]")) : [];
2481
- }, $n = (e) => Qn(e).filter((e) => !e.disabled), er = ["ArrowLeft", "ArrowRight"], tr = ["ArrowUp", "ArrowDown"];
2482
- function nr({ rootRef: e, orientation: t }) {
2433
+ }, Zn = (e) => Xn(e).filter((e) => !e.disabled), Qn = ["ArrowLeft", "ArrowRight"], $n = ["ArrowUp", "ArrowDown"];
2434
+ function er({ rootRef: e, orientation: t }) {
2483
2435
  return o((n) => {
2484
- let r = er.includes(n.key), i = tr.includes(n.key), a = n.key === "Home" || n.key === "End";
2436
+ let r = Qn.includes(n.key), i = $n.includes(n.key), a = n.key === "Home" || n.key === "End";
2485
2437
  if (!r && !i && !a || t === "horizontal" && i || t === "vertical" && r) return;
2486
- let o = $n(e);
2438
+ let o = Zn(e);
2487
2439
  if (o.length === 0) return;
2488
2440
  n.preventDefault();
2489
2441
  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;
@@ -2492,7 +2444,7 @@ function nr({ rootRef: e, orientation: t }) {
2492
2444
  f?.focus(), f?.click();
2493
2445
  }, [t, e]);
2494
2446
  }
2495
- var rr = {
2447
+ var tr = {
2496
2448
  root: "_root_1s3vp_1",
2497
2449
  sm: "_sm_1s3vp_32",
2498
2450
  md: "_md_1s3vp_58",
@@ -2506,12 +2458,12 @@ var rr = {
2506
2458
  error: "_error_1s3vp_152",
2507
2459
  disabled: "_disabled_1s3vp_160",
2508
2460
  invalid: "_invalid_1s3vp_176"
2509
- }, 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) => {
2461
+ }, nr = 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) => {
2510
2462
  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] = vt({
2511
2463
  value: e,
2512
2464
  defaultValue: t,
2513
2465
  onChange: n
2514
- }), N = a || !!p, P = nr({
2466
+ }), N = a || !!p, P = er({
2515
2467
  rootRef: C,
2516
2468
  orientation: m
2517
2469
  }), F = (e) => {
@@ -2534,23 +2486,23 @@ var rr = {
2534
2486
  onKeyDown: (e) => {
2535
2487
  b?.(e), e.defaultPrevented || P(e);
2536
2488
  },
2537
- className: K(rr.root, rr[o], N && rr.invalid, r && rr.disabled, v),
2489
+ className: J(tr.root, tr[o], N && tr.invalid, r && tr.disabled, v),
2538
2490
  children: [
2539
2491
  u && /* @__PURE__ */ _("div", {
2540
2492
  id: E,
2541
- className: rr.label,
2493
+ className: tr.label,
2542
2494
  children: [u, i && /* @__PURE__ */ g("span", {
2543
- className: rr.required,
2495
+ className: tr.required,
2544
2496
  "aria-hidden": "true",
2545
2497
  children: "*"
2546
2498
  })]
2547
2499
  }),
2548
2500
  d && /* @__PURE__ */ g("div", {
2549
2501
  id: D,
2550
- className: rr.description,
2502
+ className: tr.description,
2551
2503
  children: d
2552
2504
  }),
2553
- /* @__PURE__ */ g(Kn, {
2505
+ /* @__PURE__ */ g(Wn, {
2554
2506
  value: {
2555
2507
  name: A,
2556
2508
  value: j,
@@ -2563,35 +2515,35 @@ var rr = {
2563
2515
  onValueChange: M
2564
2516
  },
2565
2517
  children: /* @__PURE__ */ g("div", {
2566
- className: K(rr.items, rr[m]),
2518
+ className: J(tr.items, tr[m]),
2567
2519
  children: h
2568
2520
  })
2569
2521
  }),
2570
2522
  p && /* @__PURE__ */ g("div", {
2571
2523
  id: O,
2572
- className: rr.error,
2524
+ className: tr.error,
2573
2525
  children: p
2574
2526
  })
2575
2527
  ]
2576
2528
  });
2577
2529
  });
2578
- ir.displayName = "RadioGroup.Root";
2530
+ nr.displayName = "RadioGroup.Root";
2579
2531
  //#endregion
2580
2532
  //#region src/components/RadioGroup/RadioGroup.tsx
2581
- var ar = Object.assign(ir, { Item: Zn });
2582
- ar.displayName = "RadioGroup";
2533
+ var rr = Object.assign(nr, { Item: Yn });
2534
+ rr.displayName = "RadioGroup";
2583
2535
  //#endregion
2584
2536
  //#region src/components/Select/internal/SelectContext.tsx
2585
- var or = r(null), sr = or.Provider;
2586
- function cr() {
2587
- let e = s(or);
2537
+ var ir = r(null), ar = ir.Provider;
2538
+ function or() {
2539
+ let e = s(ir);
2588
2540
  if (!e) throw Error("Select compound components must be used inside <Select>");
2589
2541
  return e;
2590
2542
  }
2591
- or.displayName = "SelectContext";
2543
+ ir.displayName = "SelectContext";
2592
2544
  //#endregion
2593
2545
  //#region src/components/Select/internal/SelectVirtualization.ts
2594
- function lr({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight: i }) {
2546
+ function sr({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight: i }) {
2595
2547
  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;
2596
2548
  return {
2597
2549
  bottomSpacerHeight: l ? Math.max(0, (t.length - u - f.length) * o) : 0,
@@ -2607,13 +2559,13 @@ function lr({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight:
2607
2559
  }
2608
2560
  //#endregion
2609
2561
  //#region src/components/Select/internal/types.ts
2610
- function ur(e, t) {
2611
- return k(e, t);
2562
+ function cr(e, t) {
2563
+ return N(e, t);
2612
2564
  }
2613
- function dr(e) {
2614
- return O(e);
2565
+ function lr(e) {
2566
+ return j(e);
2615
2567
  }
2616
- var fr = {
2568
+ var ur = {
2617
2569
  option: "_option_7msws_1",
2618
2570
  selected: "_selected_7msws_38",
2619
2571
  disabled: "_disabled_7msws_38",
@@ -2631,18 +2583,18 @@ var fr = {
2631
2583
  danger: "_danger_7msws_313",
2632
2584
  check: "_check_7msws_377",
2633
2585
  checkPop: "_checkPop_7msws_1"
2634
- }, pr = () => null;
2635
- ur(pr, "item"), pr.displayName = "Select.Item";
2636
- var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o, selectedValues: s, multiple: c, renderOption: l, onSelect: u, onMouseEnter: d }) => {
2637
- let f = !!e.disabled, p = e.asChild && a(e.children) ? e.children : void 0, m = K(fr.option, {
2638
- [fr.selected]: t,
2639
- [fr.active]: r,
2640
- [fr.disabled]: f,
2641
- [fr.success]: e.color === "success",
2642
- [fr.warning]: e.color === "warning",
2643
- [fr.danger]: e.color === "danger"
2586
+ }, dr = () => null;
2587
+ cr(dr, "item"), dr.displayName = "Select.Item";
2588
+ var fr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o, selectedValues: s, multiple: c, renderOption: l, onSelect: u, onMouseEnter: d }) => {
2589
+ let f = !!e.disabled, p = e.asChild && a(e.children) ? e.children : void 0, m = J(ur.option, {
2590
+ [ur.selected]: t,
2591
+ [ur.active]: r,
2592
+ [ur.disabled]: f,
2593
+ [ur.success]: e.color === "success",
2594
+ [ur.warning]: e.color === "warning",
2595
+ [ur.danger]: e.color === "danger"
2644
2596
  });
2645
- Oe(!e.asChild || !!p, "Select.Item: asChild requires a single valid React element child.");
2597
+ Me(!e.asChild || !!p, "Select.Item: asChild requires a single valid React element child.");
2646
2598
  let y = (t) => {
2647
2599
  if (f) {
2648
2600
  t.preventDefault();
@@ -2657,7 +2609,7 @@ var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o,
2657
2609
  role: "option",
2658
2610
  "aria-selected": t,
2659
2611
  "aria-disabled": f || void 0,
2660
- className: K(p.props.className, m),
2612
+ className: J(p.props.className, m),
2661
2613
  onClick: (e) => {
2662
2614
  p.props.onClick?.(e), e.defaultPrevented || y(e);
2663
2615
  },
@@ -2674,7 +2626,7 @@ var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o,
2674
2626
  onClick: y,
2675
2627
  onMouseEnter: b,
2676
2628
  children: [l ? /* @__PURE__ */ g("span", {
2677
- className: fr.custom,
2629
+ className: ur.custom,
2678
2630
  children: l({
2679
2631
  option: e,
2680
2632
  selected: t,
@@ -2687,36 +2639,36 @@ var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o,
2687
2639
  })
2688
2640
  }) : /* @__PURE__ */ _(h, { children: [
2689
2641
  e.icon && /* @__PURE__ */ g("span", {
2690
- className: fr.icon,
2642
+ className: ur.icon,
2691
2643
  children: e.icon
2692
2644
  }),
2693
2645
  /* @__PURE__ */ _("span", {
2694
- className: fr.content,
2646
+ className: ur.content,
2695
2647
  children: [/* @__PURE__ */ g("span", {
2696
- className: fr.label,
2648
+ className: ur.label,
2697
2649
  children: e.label
2698
2650
  }), e.description && /* @__PURE__ */ g("span", {
2699
- className: fr.description,
2651
+ className: ur.description,
2700
2652
  children: e.description
2701
2653
  })]
2702
2654
  }),
2703
2655
  e.badge && /* @__PURE__ */ g("span", {
2704
- className: fr.badge,
2656
+ className: ur.badge,
2705
2657
  children: e.badge
2706
2658
  }),
2707
2659
  e.shortcut && /* @__PURE__ */ g("kbd", {
2708
- className: fr.shortcut,
2660
+ className: ur.shortcut,
2709
2661
  children: e.shortcut
2710
2662
  })
2711
2663
  ] }), /* @__PURE__ */ g("span", {
2712
- className: fr.check,
2664
+ className: ur.check,
2713
2665
  "aria-hidden": "true",
2714
2666
  children: t && /* @__PURE__ */ g(v, {})
2715
2667
  })]
2716
2668
  });
2717
2669
  };
2718
- mr.displayName = "SelectItemRow";
2719
- var hr = {
2670
+ fr.displayName = "SelectItemRow";
2671
+ var pr = {
2720
2672
  dropdown: "_dropdown_1lvgh_1",
2721
2673
  dropdownIn: "_dropdownIn_1lvgh_1",
2722
2674
  primary: "_primary_1lvgh_103",
@@ -2741,17 +2693,17 @@ var hr = {
2741
2693
  separator: "_separator_1lvgh_1575",
2742
2694
  virtualSpacer: "_virtualSpacer_1lvgh_1581",
2743
2695
  mobileDropdownIn: "_mobileDropdownIn_1lvgh_1"
2744
- }, gr = ({ children: e, className: t }) => {
2745
- let { contentProps: n } = cr(), r = vr(e);
2746
- return /* @__PURE__ */ g(_r, {
2696
+ }, mr = ({ children: e, className: t }) => {
2697
+ let { contentProps: n } = or(), r = gr(e);
2698
+ return /* @__PURE__ */ g(hr, {
2747
2699
  ...n,
2748
2700
  ...r,
2749
2701
  className: [n.className, t].filter(Boolean).join(" ")
2750
2702
  });
2751
2703
  };
2752
- ur(gr, "content"), gr.displayName = "Select.Content";
2753
- 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 }) => {
2754
- let H = f(null), U = f(!1), [W, ee] = p(null), [te, ne] = p(0), [re, G] = p(), { bottomSpacerHeight: ie, isVirtual: ae, itemHeight: oe, maxHeight: se, startIndex: ce, topSpacerHeight: le, viewportHeight: K, visibleOptions: ue } = d(() => lr({
2704
+ cr(mr, "content"), mr.displayName = "Select.Content";
2705
+ var hr = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style: i, options: a, entries: s, multiple: l, selectedValues: u, color: m = "primary", variant: v = "outline", searchable: y, command: b, virtual: S, portal: C = !0, searchValue: w = "", searchPlaceholder: T = "Search...", loading: E, loadingText: D = "Loading...", emptyText: O, searchSlot: k, headerSlot: A, emptySlot: j, loadingSlot: M, renderOption: N, selectedValue: P, activeIndex: F, visualActiveIndex: I = F, className: L, onSelect: R, onSelectGroup: z, onMouseEnter: B, onSearchChange: V }) => {
2706
+ let H = f(null), U = f(!1), [W, ee] = p(null), [te, ne] = p(0), [re, G] = p(), { bottomSpacerHeight: ie, isVirtual: K, itemHeight: ae, maxHeight: oe, startIndex: se, topSpacerHeight: ce, viewportHeight: le, visibleOptions: ue } = d(() => sr({
2755
2707
  loading: E,
2756
2708
  options: a,
2757
2709
  scrollTop: te,
@@ -2763,7 +2715,7 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2763
2715
  te,
2764
2716
  re,
2765
2717
  S
2766
- ]), q = o((e) => {
2718
+ ]), de = o((e) => {
2767
2719
  ee(e), r(e), e && G(e.clientHeight || void 0);
2768
2720
  }, [r]);
2769
2721
  c(() => {
@@ -2787,8 +2739,8 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2787
2739
  U.current = !0;
2788
2740
  return;
2789
2741
  }
2790
- if (U.current = !0, ae) {
2791
- let e = Math.max(0, r * oe - (K - oe) / 2);
2742
+ if (U.current = !0, K) {
2743
+ let e = Math.max(0, r * ae - (le - ae) / 2);
2792
2744
  ne(e), W.scrollTop = e;
2793
2745
  return;
2794
2746
  }
@@ -2797,45 +2749,45 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2797
2749
  F,
2798
2750
  W,
2799
2751
  e,
2752
+ K,
2800
2753
  ae,
2801
- oe,
2802
2754
  t,
2803
2755
  E,
2804
2756
  a,
2805
2757
  P,
2806
2758
  u,
2807
- K
2759
+ le
2808
2760
  ]);
2809
- let J = d(() => ({
2761
+ let q = d(() => ({
2810
2762
  ...i,
2811
- "--select-dropdown-max-height": typeof se == "number" ? `${se}px` : se
2812
- }), [se, i]);
2763
+ "--select-dropdown-max-height": typeof oe == "number" ? `${oe}px` : oe
2764
+ }), [oe, i]);
2813
2765
  if (!e) return null;
2814
- let de = s && !ae ? s : ue.map((e, t) => ({
2766
+ let fe = s && !K ? s : ue.map((e, t) => ({
2815
2767
  type: "option",
2816
2768
  option: e,
2817
- optionIndex: ce + t
2818
- })), fe = /* @__PURE__ */ _("div", {
2819
- ref: q,
2769
+ optionIndex: se + t
2770
+ })), J = /* @__PURE__ */ _("div", {
2771
+ ref: de,
2820
2772
  tabIndex: 0,
2821
2773
  className: [
2822
- hr.dropdown,
2823
- hr[m],
2824
- hr[v],
2825
- b ? hr.command : void 0,
2774
+ pr.dropdown,
2775
+ pr[m],
2776
+ pr[v],
2777
+ b ? pr.command : void 0,
2826
2778
  L
2827
2779
  ].filter(Boolean).join(" "),
2828
- style: J,
2780
+ style: q,
2829
2781
  onScroll: (e) => {
2830
- ae && ne(e.currentTarget.scrollTop);
2782
+ K && ne(e.currentTarget.scrollTop);
2831
2783
  },
2832
2784
  children: [
2833
2785
  A,
2834
2786
  k ?? (y && /* @__PURE__ */ _("div", {
2835
- className: hr.searchWrap,
2787
+ className: pr.searchWrap,
2836
2788
  children: [/* @__PURE__ */ g("input", {
2837
2789
  ref: H,
2838
- className: hr.search,
2790
+ className: pr.search,
2839
2791
  value: w,
2840
2792
  placeholder: b ? "Type a command..." : T,
2841
2793
  "aria-label": "Search options",
@@ -2843,7 +2795,7 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2843
2795
  onChange: (e) => V?.(e.target.value)
2844
2796
  }), w && /* @__PURE__ */ g("button", {
2845
2797
  type: "button",
2846
- className: hr.searchClear,
2798
+ className: pr.searchClear,
2847
2799
  "aria-label": "Clear search",
2848
2800
  onClick: () => {
2849
2801
  V?.(""), H.current?.focus();
@@ -2860,15 +2812,15 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2860
2812
  role: "option",
2861
2813
  "aria-disabled": "true",
2862
2814
  "aria-selected": "false",
2863
- className: hr.empty,
2815
+ className: pr.empty,
2864
2816
  children: M ?? D
2865
2817
  }) : a.length ? /* @__PURE__ */ _(h, { children: [
2866
- ae && /* @__PURE__ */ g("li", {
2818
+ K && /* @__PURE__ */ g("li", {
2867
2819
  "aria-hidden": "true",
2868
- className: hr.virtualSpacer,
2869
- style: { height: le }
2820
+ className: pr.virtualSpacer,
2821
+ style: { height: ce }
2870
2822
  }),
2871
- de.map((e) => {
2823
+ fe.map((e) => {
2872
2824
  if (e.type === "group") {
2873
2825
  if (e.selectable && l) {
2874
2826
  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;
@@ -2876,16 +2828,16 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2876
2828
  role: "presentation",
2877
2829
  children: /* @__PURE__ */ _("button", {
2878
2830
  type: "button",
2879
- className: hr.groupAction,
2880
- "aria-label": yr(e.selectLabel ?? e.label),
2831
+ className: pr.groupAction,
2832
+ "aria-label": _r(e.selectLabel ?? e.label),
2881
2833
  "aria-pressed": i ? "mixed" : r ? "true" : "false",
2882
2834
  disabled: t.length === 0,
2883
2835
  onClick: () => z(t),
2884
2836
  children: [/* @__PURE__ */ g("span", {
2885
- className: hr.groupActionText,
2837
+ className: pr.groupActionText,
2886
2838
  children: e.selectLabel ?? e.label
2887
2839
  }), /* @__PURE__ */ _("span", {
2888
- className: hr.groupActionMeta,
2840
+ className: pr.groupActionMeta,
2889
2841
  children: [
2890
2842
  n,
2891
2843
  "/",
@@ -2897,18 +2849,18 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2897
2849
  }
2898
2850
  return /* @__PURE__ */ g("li", {
2899
2851
  role: "presentation",
2900
- className: hr.groupLabel,
2852
+ className: pr.groupLabel,
2901
2853
  children: e.label
2902
2854
  }, e.id);
2903
2855
  }
2904
2856
  if (e.type === "separator") return /* @__PURE__ */ g("li", {
2905
2857
  role: "presentation",
2906
2858
  "aria-hidden": "true",
2907
- className: hr.separator,
2859
+ className: pr.separator,
2908
2860
  "data-vellira-select-separator": "true"
2909
2861
  }, e.id);
2910
2862
  let { option: n, optionIndex: r } = e;
2911
- return /* @__PURE__ */ g(mr, {
2863
+ return /* @__PURE__ */ g(fr, {
2912
2864
  option: n,
2913
2865
  isSelected: u ? u.includes(n.value) : n.value === P,
2914
2866
  isActive: r === I,
@@ -2921,29 +2873,29 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2921
2873
  onMouseEnter: () => B(r)
2922
2874
  }, n.value);
2923
2875
  }),
2924
- ae && /* @__PURE__ */ g("li", {
2876
+ K && /* @__PURE__ */ g("li", {
2925
2877
  "aria-hidden": "true",
2926
- className: hr.virtualSpacer,
2878
+ className: pr.virtualSpacer,
2927
2879
  style: { height: ie }
2928
2880
  })
2929
2881
  ] }) : /* @__PURE__ */ g("li", {
2930
2882
  role: "option",
2931
2883
  "aria-disabled": "true",
2932
2884
  "aria-selected": "false",
2933
- className: hr.empty,
2885
+ className: pr.empty,
2934
2886
  children: j ?? O
2935
2887
  })
2936
2888
  })
2937
2889
  ]
2938
2890
  });
2939
- return C ? /* @__PURE__ */ g(Et, { children: fe }) : fe;
2891
+ return C ? /* @__PURE__ */ g(Et, { children: J }) : J;
2940
2892
  };
2941
- _r.displayName = "SelectContentSurface";
2942
- function vr(t) {
2893
+ hr.displayName = "SelectContentSurface";
2894
+ function gr(t) {
2943
2895
  let n, r, i, o;
2944
2896
  return e.forEach(t, (e) => {
2945
2897
  if (!a(e)) return;
2946
- let t = dr(e.type);
2898
+ let t = lr(e.type);
2947
2899
  t === "label" && (n = e), t === "search" && (r = e), t === "empty" && (i = e), t === "loading" && (o = e);
2948
2900
  }), {
2949
2901
  emptySlot: i,
@@ -2952,17 +2904,17 @@ function vr(t) {
2952
2904
  searchSlot: r
2953
2905
  };
2954
2906
  }
2955
- function yr(e) {
2907
+ function _r(e) {
2956
2908
  return typeof e == "string" || typeof e == "number" ? String(e) : "Select group";
2957
2909
  }
2958
2910
  //#endregion
2959
2911
  //#region src/components/Select/Empty/SelectEmpty.tsx
2960
- var br = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
2961
- ur(br, "empty"), br.displayName = "Select.Empty";
2912
+ var vr = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
2913
+ cr(vr, "empty"), vr.displayName = "Select.Empty";
2962
2914
  //#endregion
2963
2915
  //#region src/components/Select/Group/SelectGroup.tsx
2964
- var xr = () => null;
2965
- ur(xr, "group"), xr.displayName = "Select.Group";
2916
+ var yr = () => null;
2917
+ cr(yr, "group"), yr.displayName = "Select.Group";
2966
2918
  var Z = {
2967
2919
  root: "_root_jn0gk_1",
2968
2920
  control: "_control_jn0gk_8",
@@ -2991,51 +2943,51 @@ var Z = {
2991
2943
  spin: "_spin_jn0gk_817",
2992
2944
  loading: "_loading_jn0gk_826",
2993
2945
  open: "_open_jn0gk_845"
2994
- }, Sr = ({ children: e, className: t }) => {
2995
- let { triggerProps: n } = cr();
2946
+ }, br = ({ children: e, className: t }) => {
2947
+ let { triggerProps: n } = or();
2996
2948
  return /* @__PURE__ */ g("span", {
2997
- className: K(Z.arrow, { [Z.open]: n.isOpen }, t),
2949
+ className: J(Z.arrow, { [Z.open]: n.isOpen }, t),
2998
2950
  "aria-hidden": "true",
2999
2951
  children: n.loading ? /* @__PURE__ */ g("span", { className: Z.spinner }) : e ?? n.endIcon ?? /* @__PURE__ */ g(y, {})
3000
2952
  });
3001
2953
  };
3002
- ur(Sr, "icon"), Sr.displayName = "Select.Icon";
2954
+ cr(br, "icon"), br.displayName = "Select.Icon";
3003
2955
  //#endregion
3004
2956
  //#region src/components/Select/ItemBadge/SelectItemBadge.tsx
3005
- var Cr = () => null;
3006
- ur(Cr, "itemBadge"), Cr.displayName = "Select.ItemBadge";
2957
+ var xr = () => null;
2958
+ cr(xr, "itemBadge"), xr.displayName = "Select.ItemBadge";
3007
2959
  //#endregion
3008
2960
  //#region src/components/Select/ItemDescription/SelectItemDescription.tsx
3009
- var wr = () => null;
3010
- ur(wr, "itemDescription"), wr.displayName = "Select.ItemDescription";
2961
+ var Sr = () => null;
2962
+ cr(Sr, "itemDescription"), Sr.displayName = "Select.ItemDescription";
3011
2963
  //#endregion
3012
2964
  //#region src/components/Select/ItemIcon/SelectItemIcon.tsx
3013
- var Tr = () => null;
3014
- ur(Tr, "itemIcon"), Tr.displayName = "Select.ItemIcon";
2965
+ var Cr = () => null;
2966
+ cr(Cr, "itemIcon"), Cr.displayName = "Select.ItemIcon";
3015
2967
  //#endregion
3016
2968
  //#region src/components/Select/Label/SelectLabel.tsx
3017
- var Er = ({ children: e }) => /* @__PURE__ */ g("div", {
2969
+ var wr = ({ children: e }) => /* @__PURE__ */ g("div", {
3018
2970
  role: "presentation",
3019
- className: hr.groupLabel,
2971
+ className: pr.groupLabel,
3020
2972
  children: e
3021
2973
  });
3022
- ur(Er, "label"), Er.displayName = "Select.Label";
2974
+ cr(wr, "label"), wr.displayName = "Select.Label";
3023
2975
  //#endregion
3024
2976
  //#region src/components/Select/Loading/SelectLoading.tsx
3025
- var Dr = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
3026
- ur(Dr, "loading"), Dr.displayName = "Select.Loading";
2977
+ var Tr = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
2978
+ cr(Tr, "loading"), Tr.displayName = "Select.Loading";
3027
2979
  //#endregion
3028
2980
  //#region src/components/Select/Trigger/SelectTrigger.tsx
3029
- var Or = ({ children: e, className: t }) => {
3030
- let { triggerProps: n } = cr();
3031
- return /* @__PURE__ */ g(kr, {
2981
+ var Er = ({ children: e, className: t }) => {
2982
+ let { triggerProps: n } = or();
2983
+ return /* @__PURE__ */ g(Dr, {
3032
2984
  ...n,
3033
2985
  className: [n.className, t].filter(Boolean).join(" "),
3034
2986
  children: e
3035
2987
  });
3036
2988
  };
3037
- ur(Or, "trigger"), Or.displayName = "Select.Trigger";
3038
- 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", {
2989
+ cr(Er, "trigger"), Er.displayName = "Select.Trigger";
2990
+ var Dr = ({ 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", {
3039
2991
  className: Z.root,
3040
2992
  children: [/* @__PURE__ */ g("button", {
3041
2993
  id: t,
@@ -3053,7 +3005,7 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
3053
3005
  "aria-controls": i ? s : void 0,
3054
3006
  "aria-describedby": n,
3055
3007
  "aria-activedescendant": i && c >= 0 ? `${s}-option-${c}` : void 0,
3056
- className: K(Z.control, Z[p], Z[v], Z[m], {
3008
+ className: J(Z.control, Z[p], Z[v], Z[m], {
3057
3009
  [Z.error]: !!u,
3058
3010
  [Z.disabled]: a,
3059
3011
  [Z.loading]: b,
@@ -3075,7 +3027,7 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
3075
3027
  /* @__PURE__ */ g("span", {
3076
3028
  className: Z.valueWrap,
3077
3029
  children: /* @__PURE__ */ g("span", {
3078
- className: K(Z.value, { [Z.placeholder]: f }),
3030
+ className: J(Z.value, { [Z.placeholder]: f }),
3079
3031
  children: d
3080
3032
  })
3081
3033
  }),
@@ -3084,7 +3036,7 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
3084
3036
  children: T
3085
3037
  }),
3086
3038
  /* @__PURE__ */ g("span", {
3087
- className: K(Z.arrow, { [Z.open]: i }),
3039
+ className: J(Z.arrow, { [Z.open]: i }),
3088
3040
  "aria-hidden": "true",
3089
3041
  children: b ? /* @__PURE__ */ g("span", { className: Z.spinner }) : C ?? /* @__PURE__ */ g(y, {})
3090
3042
  })
@@ -3099,17 +3051,17 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
3099
3051
  children: /* @__PURE__ */ g(x, {})
3100
3052
  })]
3101
3053
  });
3102
- kr.displayName = "SelectTriggerSurface";
3054
+ Dr.displayName = "SelectTriggerSurface";
3103
3055
  //#endregion
3104
3056
  //#region src/components/Select/internal/SelectCollection.ts
3105
- function Ar(t) {
3057
+ function Or(t) {
3106
3058
  let n = [], r = [], i = 0;
3107
3059
  function o(t) {
3108
3060
  e.forEach(t, (e) => {
3109
3061
  if (!a(e)) return;
3110
- let t = dr(e.type);
3062
+ let t = lr(e.type);
3111
3063
  if (t === "group") {
3112
- let t = e.props, r = Mr(t.children);
3064
+ let t = e.props, r = Ar(t.children);
3113
3065
  n.push({
3114
3066
  type: "group",
3115
3067
  id: `group-${i++}`,
@@ -3121,7 +3073,7 @@ function Ar(t) {
3121
3073
  return;
3122
3074
  }
3123
3075
  if (t === "item") {
3124
- let t = e.props, i = Nr(t.children, t.value), a = t.label ?? i.label, o = r.length, s = {
3076
+ let t = e.props, i = jr(t.children, t.value), a = t.label ?? i.label, o = r.length, s = {
3125
3077
  asChild: t.asChild,
3126
3078
  children: t.children,
3127
3079
  label: a,
@@ -3155,12 +3107,12 @@ function Ar(t) {
3155
3107
  options: r
3156
3108
  };
3157
3109
  }
3158
- function jr(t) {
3110
+ function kr(t) {
3159
3111
  let n = !1;
3160
3112
  function r(t) {
3161
3113
  e.forEach(t, (e) => {
3162
3114
  if (!a(e) || n) return;
3163
- let t = dr(e.type);
3115
+ let t = lr(e.type);
3164
3116
  if (t === "trigger" || t === "content") {
3165
3117
  n = !0;
3166
3118
  return;
@@ -3170,12 +3122,12 @@ function jr(t) {
3170
3122
  }
3171
3123
  return r(t), n;
3172
3124
  }
3173
- function Mr(t) {
3125
+ function Ar(t) {
3174
3126
  let n = [];
3175
3127
  function r(t) {
3176
3128
  e.forEach(t, (e) => {
3177
3129
  if (a(e)) {
3178
- if (dr(e.type) === "item") {
3130
+ if (lr(e.type) === "item") {
3179
3131
  n.push(e.props.value);
3180
3132
  return;
3181
3133
  }
@@ -3185,7 +3137,7 @@ function Mr(t) {
3185
3137
  }
3186
3138
  return r(t), n;
3187
3139
  }
3188
- function Nr(t, n) {
3140
+ function jr(t, n) {
3189
3141
  let r, i, o, s = [];
3190
3142
  function c(t) {
3191
3143
  e.forEach(t, (e) => {
@@ -3194,7 +3146,7 @@ function Nr(t, n) {
3194
3146
  return;
3195
3147
  }
3196
3148
  if (!a(e)) return;
3197
- let t = dr(e.type);
3149
+ let t = lr(e.type);
3198
3150
  if (t === "itemBadge") {
3199
3151
  r = e.props.children;
3200
3152
  return;
@@ -3221,22 +3173,22 @@ function Nr(t, n) {
3221
3173
  }
3222
3174
  //#endregion
3223
3175
  //#region src/components/Select/internal/SelectSearch.ts
3224
- function Pr({ options: e, searchable: t, searchValue: n }) {
3176
+ function Mr({ options: e, searchable: t, searchValue: n }) {
3225
3177
  if (!t || !n) return e;
3226
3178
  let r = n.toLocaleLowerCase();
3227
- return e.filter((e) => `${e.label} ${Fr(e.description)}`.toLocaleLowerCase().includes(r));
3179
+ return e.filter((e) => `${e.label} ${Nr(e.description)}`.toLocaleLowerCase().includes(r));
3228
3180
  }
3229
- function Fr(e) {
3181
+ function Nr(e) {
3230
3182
  return typeof e == "string" || typeof e == "number" ? String(e) : "";
3231
3183
  }
3232
3184
  //#endregion
3233
3185
  //#region src/components/Select/internal/useSelectCollection.ts
3234
- function Ir(e) {
3235
- return d(() => Ar(e), [e]);
3186
+ function Pr(e) {
3187
+ return d(() => Or(e), [e]);
3236
3188
  }
3237
3189
  //#endregion
3238
3190
  //#region src/patterns/FormField/FormFieldContext.ts
3239
- var Lr = r(null), Rr = () => s(Lr), zr = {
3191
+ var Fr = r(null), Ir = () => s(Fr), Lr = {
3240
3192
  wrapper: "_wrapper_r078u_1",
3241
3193
  sm: "_sm_r078u_41",
3242
3194
  md: "_md_r078u_78",
@@ -3258,12 +3210,12 @@ var Lr = r(null), Rr = () => s(Lr), zr = {
3258
3210
  messageToneWarning: "_messageToneWarning_r078u_257",
3259
3211
  messageToneDanger: "_messageToneDanger_r078u_261",
3260
3212
  disabled: "_disabled_r078u_274"
3261
- }, Br = (...e) => e.filter(Boolean).join(" ") || void 0;
3262
- function Vr(e, t) {
3213
+ }, Rr = (...e) => e.filter(Boolean).join(" ") || void 0;
3214
+ function zr(e, t) {
3263
3215
  let n = () => null;
3264
3216
  return n.__velliraFormFieldPart = e, n.displayName = t, n;
3265
3217
  }
3266
- function Hr(t) {
3218
+ function Br(t) {
3267
3219
  let n = [], r = { hasSlots: !1 };
3268
3220
  return e.forEach(t, (e) => {
3269
3221
  if (!a(e)) {
@@ -3287,13 +3239,13 @@ function Hr(t) {
3287
3239
  }
3288
3240
  }), n.length > 0 && (r.fallbackChildren = n.length === 1 ? n[0] : n), r;
3289
3241
  }
3290
- 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 }) => {
3291
- 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, ee = N && U ? `${U}-description` : void 0, te = o && U ? `${U}-error` : void 0, ne = !o && P && U ? `${U}-message` : void 0, re = p || !!o, G = o ?? P, ie = o ? "danger" : F, ae = {
3292
- neutral: zr.messageToneNeutral,
3293
- success: zr.messageToneSuccess,
3294
- warning: zr.messageToneWarning,
3295
- danger: zr.messageToneDanger
3296
- }[ie], oe = Br(W), se = Br(ee, te, ne), ce = {
3242
+ var Vr = ({ id: e, label: r, description: i, error: o, message: s, messageTone: c, messageLive: u, required: d = !1, disabled: f = !1, invalid: p = !1, orientation: m = "vertical", labelPosition: h = "top", size: v = "md", labelInfo: y, labelAction: b, optionalText: x, children: S, bindControl: C = !0, className: w, controlClassName: T, labelClassName: E, descriptionClassName: D, errorClassName: O, messageClassName: k, ...A }) => {
3243
+ let j = Br(S), M = r ?? j.label?.children, N = i ?? j.description?.children, P = s ?? j.message?.children, F = c ?? j.message?.tone ?? "neutral", I = u ?? j.message?.live ?? "off", L = y ?? j.label?.info, R = b ?? j.label?.action, z = x ?? j.label?.optionalText, B = j.hasSlots ? j.control?.children ?? j.fallbackChildren : S, V = j.control?.bindControl ?? C, H = l(), U = e ?? H, W = M ? `${U}-label` : void 0, ee = N && U ? `${U}-description` : void 0, te = o && U ? `${U}-error` : void 0, ne = !o && P && U ? `${U}-message` : void 0, re = p || !!o, G = o ?? P, ie = o ? "danger" : F, K = {
3244
+ neutral: Lr.messageToneNeutral,
3245
+ success: Lr.messageToneSuccess,
3246
+ warning: Lr.messageToneWarning,
3247
+ danger: Lr.messageToneDanger
3248
+ }[ie], ae = Rr(W), oe = Rr(ee, te, ne), se = {
3297
3249
  controlId: U,
3298
3250
  labelId: W,
3299
3251
  descriptionId: ee,
@@ -3303,102 +3255,102 @@ var Ur = ({ id: e, label: r, description: i, error: o, message: s, messageTone:
3303
3255
  disabled: f,
3304
3256
  invalid: re,
3305
3257
  size: v,
3306
- ariaLabelledBy: oe,
3307
- ariaDescribedBy: se
3308
- }, le = a(B) && B.type !== t ? B : void 0, ue = V && le ? n(le, {
3309
- id: le.props.id ?? U,
3310
- required: le.props.required ?? d,
3311
- disabled: le.props.disabled ?? f,
3312
- "aria-invalid": le.props["aria-invalid"] ?? (re || void 0),
3313
- "aria-labelledby": Br(le.props["aria-labelledby"], oe),
3314
- "aria-describedby": Br(le.props["aria-describedby"], se)
3258
+ ariaLabelledBy: ae,
3259
+ ariaDescribedBy: oe
3260
+ }, ce = a(B) && B.type !== t ? B : void 0, le = V && ce ? n(ce, {
3261
+ id: ce.props.id ?? U,
3262
+ required: ce.props.required ?? d,
3263
+ disabled: ce.props.disabled ?? f,
3264
+ "aria-invalid": ce.props["aria-invalid"] ?? (re || void 0),
3265
+ "aria-labelledby": Rr(ce.props["aria-labelledby"], ae),
3266
+ "aria-describedby": Rr(ce.props["aria-describedby"], oe)
3315
3267
  }) : B;
3316
3268
  return /* @__PURE__ */ _("div", {
3317
3269
  ...A,
3318
3270
  "aria-disabled": f || void 0,
3319
- className: K(zr.wrapper, zr[m], zr[h], zr[v], f && zr.disabled, w),
3271
+ className: J(Lr.wrapper, Lr[m], Lr[h], Lr[v], f && Lr.disabled, w),
3320
3272
  "data-disabled": f || void 0,
3321
3273
  "data-invalid": re || void 0,
3322
3274
  "data-orientation": m,
3323
3275
  "data-size": v,
3324
3276
  children: [
3325
3277
  (M || R) && /* @__PURE__ */ _("div", {
3326
- className: zr.labelRow,
3278
+ className: Lr.labelRow,
3327
3279
  children: [M && /* @__PURE__ */ _("label", {
3328
3280
  id: W,
3329
3281
  htmlFor: U,
3330
- className: K(zr.label, j.label?.className, E),
3282
+ className: J(Lr.label, j.label?.className, E),
3331
3283
  children: [
3332
3284
  /* @__PURE__ */ g("span", {
3333
- className: zr.labelText,
3285
+ className: Lr.labelText,
3334
3286
  children: M
3335
3287
  }),
3336
3288
  d && /* @__PURE__ */ g("span", {
3337
- className: zr.required,
3289
+ className: Lr.required,
3338
3290
  "aria-hidden": "true",
3339
3291
  children: "*"
3340
3292
  }),
3341
3293
  !d && z && /* @__PURE__ */ g("span", {
3342
- className: zr.optional,
3294
+ className: Lr.optional,
3343
3295
  children: z
3344
3296
  }),
3345
3297
  L && /* @__PURE__ */ g("span", {
3346
- className: zr.labelInfo,
3298
+ className: Lr.labelInfo,
3347
3299
  children: L
3348
3300
  })
3349
3301
  ]
3350
3302
  }), R && /* @__PURE__ */ g("div", {
3351
- className: zr.labelAction,
3303
+ className: Lr.labelAction,
3352
3304
  children: R
3353
3305
  })]
3354
3306
  }),
3355
3307
  N && /* @__PURE__ */ g("div", {
3356
3308
  id: ee,
3357
- className: K(zr.description, j.description?.className, D),
3309
+ className: J(Lr.description, j.description?.className, D),
3358
3310
  children: N
3359
3311
  }),
3360
- /* @__PURE__ */ g(Lr.Provider, {
3361
- value: ce,
3312
+ /* @__PURE__ */ g(Fr.Provider, {
3313
+ value: se,
3362
3314
  children: /* @__PURE__ */ g("div", {
3363
- className: K(zr.control, j.control?.className, T),
3364
- children: ue
3315
+ className: J(Lr.control, j.control?.className, T),
3316
+ children: le
3365
3317
  })
3366
3318
  }),
3367
3319
  G && /* @__PURE__ */ g("div", {
3368
3320
  id: o ? te : ne,
3369
- className: K(zr.message, ae, !o && j.message?.className, o ? O : k),
3321
+ className: J(Lr.message, K, !o && j.message?.className, o ? O : k),
3370
3322
  role: o ? "alert" : void 0,
3371
3323
  "aria-live": !o && I === "polite" ? "polite" : void 0,
3372
3324
  children: G
3373
3325
  })
3374
3326
  ]
3375
3327
  });
3376
- }, Wr = Vr("label", "FormField.Label"), Gr = Vr("description", "FormField.Description"), Kr = Vr("control", "FormField.Control"), qr = Vr("message", "FormField.Message"), Jr = Object.assign(Ur, {
3377
- Label: Wr,
3378
- Description: Gr,
3379
- Control: Kr,
3380
- Message: qr,
3328
+ }, Hr = zr("label", "FormField.Label"), Ur = zr("description", "FormField.Description"), Wr = zr("control", "FormField.Control"), Gr = zr("message", "FormField.Message"), Kr = Object.assign(Vr, {
3329
+ Label: Hr,
3330
+ Description: Ur,
3331
+ Control: Wr,
3332
+ Message: Gr,
3381
3333
  displayName: "FormField"
3382
3334
  });
3383
3335
  //#endregion
3384
3336
  //#region src/components/Select/Root/useSelectRootState.tsx
3385
- function Yr(e) {
3386
- 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: L = "bottom", matchTriggerWidth: R = !0, avoidCollisions: z = !0, portal: B = !0, open: V, defaultOpen: H = !1, onOpenChange: U, onSearch: W, onClear: ee, startIcon: te, endIcon: ne, prefix: re, suffix: G, renderValue: ie, renderOption: ae, onBlur: oe, onFocus: se, className: ce, triggerClassName: le, dropdownClassName: K } = e, ue = l(), q = Rr(), J = !!(n || r || I), de = i ?? (J ? void 0 : q?.controlId) ?? ue, fe = `${de}-listbox`, [pe, me] = p(""), he = !!I, ge = he ? `${de}-error` : void 0, _e = r ? `${de}-description` : void 0, ve = w ?? q?.size ?? "md", ye = k || he || !J && !!q?.invalid, be = O || !J && !!q?.disabled, xe = D || !J && !!q?.required, Se = [
3337
+ function qr(e) {
3338
+ let { children: t, label: n, description: r, id: i, name: a, "aria-label": s, "aria-describedby": u, "aria-labelledby": m, multiple: v = !1, maxSelected: y, closeOnSelect: b, placeholder: x = "Select...", empty: S, loadingText: C = "Loading...", size: w, color: T = "primary", variant: E = "outline", required: D = !1, disabled: O = !1, invalid: k = !1, loading: A = !1, clearable: j = !1, searchable: M = !1, virtual: N, modal: P = !1, command: I = !1, error: L, placement: R = "bottom", matchTriggerWidth: z = !0, avoidCollisions: B = !0, portal: V = !0, open: H, defaultOpen: U = !1, onOpenChange: W, onSearch: ee, onClear: te, startIcon: ne, endIcon: re, prefix: G, suffix: ie, renderValue: K, renderOption: ae, onBlur: oe, onFocus: se, className: ce, triggerClassName: le, dropdownClassName: ue } = e, de = l(), q = Ir(), fe = !!(n || r || L), J = i ?? (fe ? void 0 : q?.controlId) ?? de, pe = `${J}-listbox`, [me, Y] = p(""), he = !!L, ge = he ? `${J}-error` : void 0, _e = r ? `${J}-description` : void 0, ve = w ?? q?.size ?? "md", ye = k || he || !fe && !!q?.invalid, be = O || !fe && !!q?.disabled, xe = D || !fe && !!q?.required, Se = [
3387
3339
  u,
3388
- !J && !u ? q?.ariaDescribedBy : void 0,
3340
+ !fe && !u ? q?.ariaDescribedBy : void 0,
3389
3341
  _e,
3390
3342
  ge
3391
- ].filter(Boolean).join(" "), Ce = f(null), we = f(null), [Te, Ee] = p(!1), De = M || F, { entries: Y, options: Oe } = Ir(t), ke = d(() => Pr({
3392
- options: Oe,
3343
+ ].filter(Boolean).join(" "), Ce = f(null), we = f(null), [Te, Ee] = p(!1), De = M || I, { entries: Oe, options: ke } = Pr(t), Ae = d(() => Mr({
3344
+ options: ke,
3393
3345
  searchable: De,
3394
- searchValue: pe
3346
+ searchValue: me
3395
3347
  }), [
3396
3348
  De,
3397
- Oe,
3398
- pe
3399
- ]), Ae = e.multiple === !0 ? e.value : e.value === null ? "" : e.value, je = e.multiple === !0 ? e.defaultValue : e.defaultValue === null ? "" : e.defaultValue, Me = e.multiple === !0 ? e.onValueChange : void 0, Ne = e.multiple === !0 ? void 0 : e.onValueChange, { selectedValue: Pe, selectedValues: X, isOpen: Fe, setIsOpen: Ie, setSelectedValue: Le, activeIndex: Re, setActiveIndex: ze, closeDropdown: Be, toggleDropdown: Ve, selectValue: He, onKeyDown: Ue } = St({
3400
- value: Ae,
3401
- defaultValue: je,
3349
+ ke,
3350
+ me
3351
+ ]), je = e.multiple === !0 ? e.value : e.value === null ? "" : e.value, X = e.multiple === !0 ? e.defaultValue : e.defaultValue === null ? "" : e.defaultValue, Me = e.multiple === !0 ? e.onValueChange : void 0, Ne = 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 } = St({
3352
+ value: je,
3353
+ defaultValue: X,
3402
3354
  onValueChange: o((e) => {
3403
3355
  if (v) {
3404
3356
  Me?.(Array.isArray(e) ? e : e ? [e] : []);
@@ -3410,216 +3362,216 @@ function Yr(e) {
3410
3362
  Me,
3411
3363
  Ne
3412
3364
  ]),
3413
- options: ke,
3365
+ options: Ae,
3414
3366
  multiple: v,
3415
3367
  maxSelected: y,
3416
3368
  closeOnSelect: b,
3417
3369
  disabled: be,
3418
- open: V,
3419
- defaultOpen: H,
3420
- onOpenChange: U
3421
- }), We = d(() => Oe.find((e) => X.includes(e.value)), [Oe, X]), Ge = d(() => Oe.filter((e) => X.includes(e.value)), [Oe, X]), Ke = !!We, qe = Array.isArray(Pe) ? Pe[0] ?? "" : Pe, { floatingStyles: Je, setRef: Ye, setFloatingRef: Xe } = _t({
3422
- isOpen: Fe,
3423
- onOpenChange: Ie,
3424
- placement: L,
3425
- matchTriggerWidth: R,
3426
- avoidCollisions: z
3427
- }), Ze = o((e) => {
3428
- He(e), Ce.current?.focus();
3429
- }, [He]), Qe = o((e) => {
3370
+ open: H,
3371
+ defaultOpen: U,
3372
+ onOpenChange: W
3373
+ }), 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 } = _t({
3374
+ isOpen: Ie,
3375
+ onOpenChange: Le,
3376
+ placement: R,
3377
+ matchTriggerWidth: z,
3378
+ avoidCollisions: B
3379
+ }), Qe = o((e) => {
3380
+ Ue(e), Ce.current?.focus();
3381
+ }, [Ue]), $e = o((e) => {
3430
3382
  if (!v || e.length === 0) return;
3431
- let t = e.filter((e) => Oe.some((t) => t.value === e && !t.disabled)), n = t.filter((e) => X.includes(e)), r = X.filter((e) => !t.includes(e)).length, i = typeof y == "number" ? Math.max(0, Math.min(t.length, y - r)) : t.length;
3432
- if (n.length > 0 && n.length >= i) {
3433
- Le(X.filter((e) => !t.includes(e)));
3383
+ let t = F({
3384
+ selectedValues: Fe,
3385
+ groupValues: e,
3386
+ enabledValues: new Set(ke.filter((e) => !e.disabled).map((e) => e.value)),
3387
+ maxSelected: y
3388
+ });
3389
+ if (t.clearedGroup) {
3390
+ Re(t.selectedValues);
3434
3391
  return;
3435
3392
  }
3436
- let a = [...X];
3437
- for (let e of t) if (!a.includes(e)) {
3438
- if (typeof y == "number" && a.length >= y) break;
3439
- a.push(e);
3440
- }
3441
- Le(a), b && (Be(), Ce.current?.focus());
3393
+ Re(t.selectedValues), b && (Ve(), Ce.current?.focus());
3442
3394
  }, [
3443
- Be,
3395
+ Ve,
3444
3396
  b,
3445
3397
  y,
3446
3398
  v,
3447
- Oe,
3448
- X,
3449
- Le
3450
- ]), $e = o(() => {
3451
- He(""), ee?.(), Ce.current?.focus();
3452
- }, [ee, He]), et = o(() => {
3453
- Fe || Ee(!1), Ve();
3454
- }, [Fe, Ve]), tt = o((e) => {
3455
- Xr(e, Fe) && Ee(!0), Ue(e);
3456
- }, [Fe, Ue]), nt = o((e) => {
3457
- Ee(!0), ze(e);
3458
- }, [ze]), rt = o((e) => {
3459
- me(e), W?.(e);
3460
- }, [W]), it = lt({
3461
- active: Fe,
3462
- id: fe,
3399
+ ke,
3400
+ Fe,
3401
+ Re
3402
+ ]), et = o(() => {
3403
+ Ue(""), te?.(), Ce.current?.focus();
3404
+ }, [te, Ue]), tt = o(() => {
3405
+ Ie || Ee(!1), He();
3406
+ }, [Ie, He]), nt = o((e) => {
3407
+ Jr(e, Ie) && Ee(!0), We(e);
3408
+ }, [Ie, We]), rt = o((e) => {
3409
+ Ee(!0), Be(e);
3410
+ }, [Be]), it = o((e) => {
3411
+ Y(e), ee?.(e);
3412
+ }, [ee]), at = lt({
3413
+ active: Ie,
3414
+ id: pe,
3463
3415
  zIndexLevel: "dropdown",
3464
3416
  closeOnEscape: !0,
3465
3417
  closeOnOutsidePress: !0,
3466
3418
  contentRef: we,
3467
3419
  ignoreRefs: [Ce],
3468
- requestClose: Be
3420
+ requestClose: Ve
3469
3421
  });
3470
3422
  c(() => {
3471
- Fe || Ee(!1);
3472
- }, [Fe]), c(() => {
3473
- !Fe && pe && me("");
3474
- }, [Fe, pe]), mt({
3475
- active: Fe,
3423
+ Ie || Ee(!1);
3424
+ }, [Ie]), c(() => {
3425
+ !Ie && me && Y("");
3426
+ }, [Ie, me]), mt({
3427
+ active: Ie,
3476
3428
  enabled: P
3477
3429
  });
3478
- let at = o((e) => {
3479
- Ce.current = e, Ye(e);
3480
- }, [Ye]), ot = o((e) => {
3481
- we.current = e, Xe(e);
3482
- }, [Xe]), st = d(() => ie ? ie({
3430
+ let ot = o((e) => {
3431
+ Ce.current = e, Xe(e);
3432
+ }, [Xe]), st = o((e) => {
3433
+ we.current = e, Ze(e);
3434
+ }, [Ze]), ct = d(() => K ? K({
3483
3435
  multiple: v,
3484
- option: We,
3485
- options: Ge,
3486
- value: qe,
3487
- values: X
3488
- }) : v && Ge.length ? Ge.map((e) => e.label).join(", ") : We?.label ?? x, [
3436
+ option: Ge,
3437
+ options: Ke,
3438
+ value: Je,
3439
+ values: Fe
3440
+ }) : v && Ke.length ? Ke.map((e) => e.label).join(", ") : Ge?.label ?? x, [
3489
3441
  v,
3490
3442
  x,
3491
- ie,
3492
- We,
3443
+ K,
3493
3444
  Ge,
3494
- X,
3495
- qe
3496
- ]), ct = S ?? "No options available", ut = j && X.length > 0 && !be && !A, dt = d(() => ({
3497
- ...Je,
3498
- zIndex: it.zIndex
3499
- }), [it.zIndex, Je]), ft = d(() => ({
3500
- id: de,
3445
+ Ke,
3446
+ Fe,
3447
+ Je
3448
+ ]), ut = S ?? "No options available", dt = j && Fe.length > 0 && !be && !A, ft = d(() => ({
3449
+ ...Ye,
3450
+ zIndex: at.zIndex
3451
+ }), [at.zIndex, Ye]), pt = d(() => ({
3452
+ id: J,
3501
3453
  describedBy: Se || void 0,
3502
3454
  labelledBy: s ? void 0 : m,
3503
- isOpen: Fe,
3455
+ isOpen: Ie,
3504
3456
  disabled: be,
3505
3457
  required: xe,
3506
- listboxId: fe,
3507
- activeIndex: Re,
3508
- ariaLabel: s ?? (!n && !q?.labelId ? We?.label || x : void 0),
3458
+ listboxId: pe,
3459
+ activeIndex: ze,
3460
+ ariaLabel: s ?? (!n && !q?.labelId ? Ge?.label || x : void 0),
3509
3461
  error: ye,
3510
3462
  loading: A,
3511
- displayText: st,
3512
- isPlaceholder: !Ke,
3463
+ displayText: ct,
3464
+ isPlaceholder: !qe,
3513
3465
  size: ve,
3514
3466
  color: T,
3515
3467
  variant: E,
3516
- startIcon: te,
3517
- endIcon: ne,
3518
- prefix: re,
3519
- suffix: G,
3520
- clearable: ut,
3468
+ startIcon: ne,
3469
+ endIcon: re,
3470
+ prefix: G,
3471
+ suffix: ie,
3472
+ clearable: dt,
3521
3473
  className: le,
3522
- buttonRef: at,
3523
- onClear: $e,
3524
- onClick: et,
3525
- onKeyDown: tt,
3474
+ buttonRef: ot,
3475
+ onClear: et,
3476
+ onClick: tt,
3477
+ onKeyDown: nt,
3526
3478
  onBlur: oe,
3527
3479
  onFocus: se
3528
3480
  }), [
3529
- Re,
3481
+ ze,
3530
3482
  s,
3531
3483
  m,
3532
3484
  T,
3533
3485
  Se,
3534
- ne,
3486
+ re,
3535
3487
  q?.labelId,
3536
- $e,
3537
3488
  et,
3538
3489
  tt,
3539
- Ke,
3490
+ nt,
3491
+ qe,
3540
3492
  be,
3541
3493
  ye,
3542
- Fe,
3494
+ Ie,
3543
3495
  xe,
3544
3496
  n,
3545
- fe,
3497
+ pe,
3546
3498
  A,
3547
3499
  oe,
3548
3500
  se,
3549
3501
  x,
3550
- re,
3551
- ve,
3552
- st,
3553
- We?.label,
3554
- at,
3555
- ut,
3556
- te,
3557
3502
  G,
3503
+ ve,
3504
+ ct,
3505
+ Ge?.label,
3506
+ ot,
3507
+ dt,
3508
+ ne,
3509
+ ie,
3558
3510
  le,
3559
- de,
3511
+ J,
3560
3512
  E
3561
- ]), pt = d(() => ({
3562
- isOpen: Fe,
3563
- listboxId: fe,
3564
- labelledById: de,
3565
- style: dt,
3566
- options: ke,
3567
- entries: De || pe ? void 0 : Y,
3513
+ ]), ht = d(() => ({
3514
+ isOpen: Ie,
3515
+ listboxId: pe,
3516
+ labelledById: J,
3517
+ style: ft,
3518
+ options: Ae,
3519
+ entries: De || me ? void 0 : Oe,
3568
3520
  multiple: v,
3569
3521
  color: T,
3570
3522
  variant: E,
3571
3523
  searchable: De,
3572
- command: F,
3524
+ command: I,
3573
3525
  virtual: N,
3574
- portal: B,
3575
- searchValue: pe,
3526
+ portal: V,
3527
+ searchValue: me,
3576
3528
  loading: A,
3577
3529
  loadingText: C,
3578
- emptyText: ct,
3530
+ emptyText: ut,
3579
3531
  renderOption: ae,
3580
- selectedValue: qe,
3581
- selectedValues: X,
3582
- activeIndex: Re,
3583
- visualActiveIndex: Te ? Re : -1,
3584
- className: K,
3585
- setDropdownRef: ot,
3586
- onSelect: Ze,
3587
- onSelectGroup: Qe,
3588
- onMouseEnter: nt,
3589
- onSearchChange: rt
3532
+ selectedValue: Je,
3533
+ selectedValues: Fe,
3534
+ activeIndex: ze,
3535
+ visualActiveIndex: Te ? ze : -1,
3536
+ className: ue,
3537
+ setDropdownRef: st,
3538
+ onSelect: Qe,
3539
+ onSelectGroup: $e,
3540
+ onMouseEnter: rt,
3541
+ onSearchChange: it
3590
3542
  }), [
3591
- Re,
3543
+ ze,
3592
3544
  T,
3593
- F,
3594
- dt,
3595
- K,
3596
- ct,
3597
- ke,
3598
- nt,
3545
+ I,
3546
+ ft,
3547
+ ue,
3548
+ ut,
3549
+ Ae,
3599
3550
  rt,
3600
- Ze,
3551
+ it,
3601
3552
  Qe,
3553
+ $e,
3602
3554
  Te,
3603
- Fe,
3555
+ Ie,
3604
3556
  De,
3605
- fe,
3557
+ pe,
3606
3558
  A,
3607
3559
  C,
3608
3560
  v,
3609
- B,
3561
+ V,
3610
3562
  ae,
3611
- Y,
3612
- pe,
3613
- X,
3614
- ot,
3615
- qe,
3616
- de,
3563
+ Oe,
3564
+ me,
3565
+ Fe,
3566
+ st,
3567
+ Je,
3568
+ J,
3617
3569
  E,
3618
3570
  N
3619
- ]), ht = d(() => ({
3620
- triggerProps: ft,
3621
- contentProps: pt
3622
- }), [pt, ft]), gt = d(() => /* @__PURE__ */ _(h, { children: [a && v && X.length > 0 && /* @__PURE__ */ g(h, { children: X.map((e) => /* @__PURE__ */ g("input", {
3571
+ ]), gt = d(() => ({
3572
+ triggerProps: pt,
3573
+ contentProps: ht
3574
+ }), [ht, pt]), vt = d(() => /* @__PURE__ */ _(h, { children: [a && v && Fe.length > 0 && /* @__PURE__ */ g(h, { children: Fe.map((e) => /* @__PURE__ */ g("input", {
3623
3575
  type: "hidden",
3624
3576
  name: a,
3625
3577
  value: e,
@@ -3627,53 +3579,53 @@ function Yr(e) {
3627
3579
  }, e)) }), a && !v && /* @__PURE__ */ g("input", {
3628
3580
  type: "hidden",
3629
3581
  name: a,
3630
- value: qe,
3582
+ value: Je,
3631
3583
  disabled: be
3632
3584
  })] }), [
3633
3585
  be,
3634
3586
  v,
3635
3587
  a,
3636
- X,
3637
- qe
3588
+ Fe,
3589
+ Je
3638
3590
  ]);
3639
3591
  return {
3640
3592
  children: t,
3641
3593
  className: ce,
3642
- contentProps: pt,
3643
- contextValue: ht,
3594
+ contentProps: ht,
3595
+ contextValue: gt,
3644
3596
  description: r,
3645
- error: I,
3646
- hasCompoundLayout: d(() => jr(t), [t]),
3647
- hasExternalField: !J && !!q,
3648
- hiddenInputs: gt,
3597
+ error: L,
3598
+ hasCompoundLayout: d(() => kr(t), [t]),
3599
+ hasExternalField: !fe && !!q,
3600
+ hiddenInputs: vt,
3649
3601
  isDisabled: be,
3650
3602
  isRequired: xe,
3651
3603
  label: n,
3652
3604
  resolvedSize: ve,
3653
- triggerId: de,
3654
- triggerProps: ft
3605
+ triggerId: J,
3606
+ triggerProps: pt
3655
3607
  };
3656
3608
  }
3657
- function Xr(e, t) {
3609
+ function Jr(e, t) {
3658
3610
  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 === " ";
3659
3611
  }
3660
3612
  //#endregion
3661
3613
  //#region src/components/Select/Root/SelectRoot.tsx
3662
- var Zr = (e) => {
3663
- 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, {
3614
+ var Yr = (e) => {
3615
+ 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 } = qr(e), b = d(() => /* @__PURE__ */ _(ar, {
3664
3616
  value: i,
3665
- children: [l, s ? t : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(Or, {}), /* @__PURE__ */ g(gr, { children: t })] })]
3617
+ children: [l, s ? t : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(Er, {}), /* @__PURE__ */ g(mr, { children: t })] })]
3666
3618
  }), [
3667
3619
  t,
3668
3620
  i,
3669
3621
  s,
3670
3622
  l
3671
- ]), x = d(() => /* @__PURE__ */ _(sr, {
3623
+ ]), x = d(() => /* @__PURE__ */ _(ar, {
3672
3624
  value: i,
3673
3625
  children: [
3674
3626
  l,
3675
- /* @__PURE__ */ g(kr, { ...y }),
3676
- /* @__PURE__ */ g(_r, { ...r })
3627
+ /* @__PURE__ */ g(Dr, { ...y }),
3628
+ /* @__PURE__ */ g(hr, { ...r })
3677
3629
  ]
3678
3630
  }), [
3679
3631
  r,
@@ -3681,7 +3633,7 @@ var Zr = (e) => {
3681
3633
  l,
3682
3634
  y
3683
3635
  ]);
3684
- return c ? t ? b : x : /* @__PURE__ */ g(Jr, {
3636
+ return c ? t ? b : x : /* @__PURE__ */ g(Kr, {
3685
3637
  id: v,
3686
3638
  label: p,
3687
3639
  description: a,
@@ -3694,11 +3646,11 @@ var Zr = (e) => {
3694
3646
  children: t ? b : x
3695
3647
  });
3696
3648
  };
3697
- Zr.displayName = "SelectRoot";
3649
+ Yr.displayName = "SelectRoot";
3698
3650
  //#endregion
3699
3651
  //#region src/components/Select/Search/SelectSearch.tsx
3700
- var Qr = ({ placeholder: e, className: t }) => {
3701
- let { contentProps: n } = cr(), r = f(null), i = n.searchValue ?? "";
3652
+ var Xr = ({ placeholder: e, className: t }) => {
3653
+ let { contentProps: n } = or(), r = f(null), i = n.searchValue ?? "";
3702
3654
  return c(() => {
3703
3655
  if (!n.isOpen) return;
3704
3656
  let e = window.setTimeout(() => {
@@ -3706,10 +3658,10 @@ var Qr = ({ placeholder: e, className: t }) => {
3706
3658
  }, 0);
3707
3659
  return () => window.clearTimeout(e);
3708
3660
  }, [n.isOpen]), /* @__PURE__ */ _("div", {
3709
- className: hr.searchWrap,
3661
+ className: pr.searchWrap,
3710
3662
  children: [/* @__PURE__ */ g("input", {
3711
3663
  ref: r,
3712
- className: K(hr.search, t),
3664
+ className: J(pr.search, t),
3713
3665
  value: i,
3714
3666
  placeholder: e ?? (n.command ? "Type a command..." : "Search..."),
3715
3667
  "aria-label": "Search options",
@@ -3717,7 +3669,7 @@ var Qr = ({ placeholder: e, className: t }) => {
3717
3669
  onChange: (e) => n.onSearchChange?.(e.target.value)
3718
3670
  }), i && /* @__PURE__ */ g("button", {
3719
3671
  type: "button",
3720
- className: hr.searchClear,
3672
+ className: pr.searchClear,
3721
3673
  "aria-label": "Clear search",
3722
3674
  onClick: () => {
3723
3675
  n.onSearchChange?.(""), r.current?.focus();
@@ -3726,55 +3678,55 @@ var Qr = ({ placeholder: e, className: t }) => {
3726
3678
  })]
3727
3679
  });
3728
3680
  };
3729
- ur(Qr, "search"), Qr.displayName = "Select.Search";
3681
+ cr(Xr, "search"), Xr.displayName = "Select.Search";
3730
3682
  //#endregion
3731
3683
  //#region src/components/Select/Separator/SelectSeparator.tsx
3732
- var $r = () => null;
3733
- ur($r, "separator"), $r.displayName = "Select.Separator";
3684
+ var Zr = () => null;
3685
+ cr(Zr, "separator"), Zr.displayName = "Select.Separator";
3734
3686
  //#endregion
3735
3687
  //#region src/components/Select/Value/SelectValue.tsx
3736
- var ei = ({ children: e, className: t }) => {
3737
- let { triggerProps: n } = cr();
3688
+ var Qr = ({ children: e, className: t }) => {
3689
+ let { triggerProps: n } = or();
3738
3690
  return /* @__PURE__ */ g("span", {
3739
- className: K(Z.valueWrap, t),
3691
+ className: J(Z.valueWrap, t),
3740
3692
  children: /* @__PURE__ */ g("span", {
3741
- className: K(Z.value, { [Z.placeholder]: n.isPlaceholder }),
3693
+ className: J(Z.value, { [Z.placeholder]: n.isPlaceholder }),
3742
3694
  children: e ?? n.displayText
3743
3695
  })
3744
3696
  });
3745
3697
  };
3746
- ur(ei, "value"), ei.displayName = "Select.Value";
3698
+ cr(Qr, "value"), Qr.displayName = "Select.Value";
3747
3699
  //#endregion
3748
3700
  //#region src/components/Select/Select.tsx
3749
- var ti = Object.assign(Zr, {
3750
- Trigger: Or,
3751
- Value: ei,
3752
- Icon: Sr,
3753
- Content: gr,
3754
- Search: Qr,
3755
- Group: xr,
3756
- Label: Er,
3757
- Item: pr,
3758
- ItemIcon: Tr,
3759
- ItemDescription: wr,
3760
- ItemBadge: Cr,
3761
- Separator: $r,
3762
- Empty: br,
3763
- Loading: Dr
3701
+ var $r = Object.assign(Yr, {
3702
+ Trigger: Er,
3703
+ Value: Qr,
3704
+ Icon: br,
3705
+ Content: mr,
3706
+ Search: Xr,
3707
+ Group: yr,
3708
+ Label: wr,
3709
+ Item: dr,
3710
+ ItemIcon: Cr,
3711
+ ItemDescription: Sr,
3712
+ ItemBadge: xr,
3713
+ Separator: Zr,
3714
+ Empty: vr,
3715
+ Loading: Tr
3764
3716
  });
3765
- ti.displayName = "Select";
3717
+ $r.displayName = "Select";
3766
3718
  //#endregion
3767
3719
  //#region src/components/Tabs/internal/TabsContext.tsx
3768
- var ni = r(null), ri = () => {
3769
- let e = s(ni);
3720
+ var ei = r(null), ti = () => {
3721
+ let e = s(ei);
3770
3722
  if (!e) throw Error("Tabs components must be used inside Tabs");
3771
3723
  return e;
3772
- }, ii = {
3724
+ }, ni = {
3773
3725
  panel: "_panel_1v1a9_1",
3774
3726
  visible: "_visible_1v1a9_10",
3775
3727
  vertical: "_vertical_1v1a9_14"
3776
- }, ai = ({ value: e, children: t, className: n, forceMount: r = !1, ...i }) => {
3777
- let { value: a, orientation: o, keepMounted: s, lazyMount: l, registerContent: u, getTriggerId: d, getContentId: f } = ri(), m = a === e, [h, _] = p(m);
3728
+ }, ri = ({ value: e, children: t, className: n, forceMount: r = !1, ...i }) => {
3729
+ let { value: a, orientation: o, keepMounted: s, lazyMount: l, registerContent: u, getTriggerId: d, getContentId: f } = ti(), m = a === e, [h, _] = p(m);
3778
3730
  return c(() => (u(e, !0), () => {
3779
3731
  u(e, !1);
3780
3732
  }), [u, e]), c(() => {
@@ -3788,15 +3740,15 @@ var ni = r(null), ri = () => {
3788
3740
  tabIndex: 0,
3789
3741
  "data-state": m ? "active" : "inactive",
3790
3742
  "data-orientation": o,
3791
- className: K(ii.panel, m && ii.visible, o === "vertical" && ii.vertical, n),
3743
+ className: J(ni.panel, m && ni.visible, o === "vertical" && ni.vertical, n),
3792
3744
  children: t
3793
3745
  }) : null;
3794
3746
  };
3795
- ai.displayName = "Tabs.Content";
3747
+ ri.displayName = "Tabs.Content";
3796
3748
  //#endregion
3797
3749
  //#region src/components/Tabs/internal/useTabsIndicator.ts
3798
- var oi = 8, si = 360, ci = () => {
3799
- 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();
3750
+ var ii = 8, ai = 360, oi = () => {
3751
+ 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 } = ti();
3800
3752
  return c(() => () => {
3801
3753
  r.current?.cancel();
3802
3754
  }, []), u(() => {
@@ -3832,7 +3784,7 @@ var oi = 8, si = 360, ci = () => {
3832
3784
  let s = t.current;
3833
3785
  if (e && l === "line" && s && n.current !== o && !(typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) && typeof i.animate == "function") {
3834
3786
  r.current?.cancel();
3835
- let e = s.y + s.height / 2, t = p.y + p.height / 2, n = e - oi / 2, a = t - oi / 2;
3787
+ let e = s.y + s.height / 2, t = p.y + p.height / 2, n = e - ii / 2, a = t - ii / 2;
3836
3788
  r.current = i.animate([
3837
3789
  {
3838
3790
  height: `${s.height}px`,
@@ -3840,12 +3792,12 @@ var oi = 8, si = 360, ci = () => {
3840
3792
  offset: 0
3841
3793
  },
3842
3794
  {
3843
- height: `${oi}px`,
3795
+ height: `${ii}px`,
3844
3796
  transform: `translate3d(0, ${n}px, 0)`,
3845
3797
  offset: .28
3846
3798
  },
3847
3799
  {
3848
- height: `${oi}px`,
3800
+ height: `${ii}px`,
3849
3801
  transform: `translate3d(0, ${a}px, 0)`,
3850
3802
  offset: .64
3851
3803
  },
@@ -3855,7 +3807,7 @@ var oi = 8, si = 360, ci = () => {
3855
3807
  offset: 1
3856
3808
  }
3857
3809
  ], {
3858
- duration: si,
3810
+ duration: ai,
3859
3811
  easing: "cubic-bezier(0.22, 1, 0.36, 1)",
3860
3812
  fill: "none"
3861
3813
  });
@@ -3871,7 +3823,7 @@ var oi = 8, si = 360, ci = () => {
3871
3823
  let h = t.current;
3872
3824
  if (e && l === "line" && h && n.current !== o && !(typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) && typeof i.animate == "function") {
3873
3825
  r.current?.cancel();
3874
- let e = h.x + h.width / 2, t = p.x + p.width / 2, n = e - oi / 2, a = t - oi / 2;
3826
+ let e = h.x + h.width / 2, t = p.x + p.width / 2, n = e - ii / 2, a = t - ii / 2;
3875
3827
  r.current = i.animate([
3876
3828
  {
3877
3829
  width: `${h.width}px`,
@@ -3879,12 +3831,12 @@ var oi = 8, si = 360, ci = () => {
3879
3831
  offset: 0
3880
3832
  },
3881
3833
  {
3882
- width: `${oi}px`,
3834
+ width: `${ii}px`,
3883
3835
  transform: `translate3d(${n}px, 0, 0)`,
3884
3836
  offset: .28
3885
3837
  },
3886
3838
  {
3887
- width: `${oi}px`,
3839
+ width: `${ii}px`,
3888
3840
  transform: `translate3d(${a}px, 0, 0)`,
3889
3841
  offset: .64
3890
3842
  },
@@ -3894,7 +3846,7 @@ var oi = 8, si = 360, ci = () => {
3894
3846
  offset: 1
3895
3847
  }
3896
3848
  ], {
3897
- duration: si,
3849
+ duration: ai,
3898
3850
  easing: "cubic-bezier(0.22, 1, 0.36, 1)",
3899
3851
  fill: "none"
3900
3852
  });
@@ -3922,7 +3874,7 @@ var oi = 8, si = 360, ci = () => {
3922
3874
  ref: e,
3923
3875
  style: i
3924
3876
  }), [i]);
3925
- }, li = {
3877
+ }, si = {
3926
3878
  list: "_list_1opuz_1",
3927
3879
  vertical: "_vertical_1opuz_10",
3928
3880
  line: "_line_1opuz_17",
@@ -3930,24 +3882,24 @@ var oi = 8, si = 360, ci = () => {
3930
3882
  segmented: "_segmented_1opuz_29",
3931
3883
  scrollable: "_scrollable_1opuz_37",
3932
3884
  indicator: "_indicator_1opuz_46"
3933
- }, ui = ({ className: e, style: t, ...n }) => {
3934
- let { ref: r, style: i } = ci();
3885
+ }, ci = ({ className: e, style: t, ...n }) => {
3886
+ let { ref: r, style: i } = oi();
3935
3887
  return /* @__PURE__ */ g("span", {
3936
3888
  ...n,
3937
3889
  ref: r,
3938
3890
  "aria-hidden": "true",
3939
- className: K(li.indicator, e),
3891
+ className: J(si.indicator, e),
3940
3892
  style: {
3941
3893
  ...i,
3942
3894
  ...t
3943
3895
  }
3944
3896
  });
3945
3897
  };
3946
- ui.displayName = "Tabs.Indicator";
3898
+ ci.displayName = "Tabs.Indicator";
3947
3899
  //#endregion
3948
3900
  //#region src/components/Tabs/List/TabsList.tsx
3949
- var di = ({ children: e, className: t, scrollable: n, ...r }) => {
3950
- let { mode: i, orientation: a, variant: o } = ri(), s = n ?? !1;
3901
+ var li = ({ children: e, className: t, scrollable: n, ...r }) => {
3902
+ let { mode: i, orientation: a, variant: o } = ti(), s = n ?? !1;
3951
3903
  return /* @__PURE__ */ g("div", {
3952
3904
  ...r,
3953
3905
  role: i === "tabs" ? "tablist" : void 0,
@@ -3955,18 +3907,18 @@ var di = ({ children: e, className: t, scrollable: n, ...r }) => {
3955
3907
  "data-orientation": a,
3956
3908
  "data-variant": o,
3957
3909
  "data-scrollable": s ? "" : void 0,
3958
- className: K(li.list, a === "vertical" && li.vertical, o === "line" && li.line, o === "pills" && li.pills, o === "segmented" && li.segmented, s && li.scrollable, t),
3910
+ className: J(si.list, a === "vertical" && si.vertical, o === "line" && si.line, o === "pills" && si.pills, o === "segmented" && si.segmented, s && si.scrollable, t),
3959
3911
  children: e
3960
3912
  });
3961
3913
  };
3962
- di.displayName = "TabsList";
3914
+ li.displayName = "TabsList";
3963
3915
  //#endregion
3964
3916
  //#region src/components/Tabs/internal/useTabsCollection.ts
3965
- var fi = (e) => [...e].sort((e, t) => {
3917
+ var ui = (e) => [...e].sort((e, t) => {
3966
3918
  if (e.element === t.element) return 0;
3967
3919
  let n = e.element.compareDocumentPosition(t.element);
3968
3920
  return n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
3969
- }), pi = () => {
3921
+ }), di = () => {
3970
3922
  let e = f([]), t = f([]), [n, r] = p(0), i = o(() => {
3971
3923
  r((e) => e + 1);
3972
3924
  }, []);
@@ -3985,7 +3937,7 @@ var fi = (e) => [...e].sort((e, t) => {
3985
3937
  element: n,
3986
3938
  disabled: r
3987
3939
  }, o = e.current.findIndex((e) => e.element === n);
3988
- o >= 0 ? e.current[o] = a : e.current.push(a), e.current = fi(e.current), i();
3940
+ o >= 0 ? e.current[o] = a : e.current.push(a), e.current = ui(e.current), i();
3989
3941
  }, [i]),
3990
3942
  registerContent: o((e, n) => {
3991
3943
  let r = t.current.findIndex((t) => t.value === e);
@@ -3996,7 +3948,7 @@ var fi = (e) => [...e].sort((e, t) => {
3996
3948
  r < 0 && (t.current.push({ value: e }), i());
3997
3949
  }, [i])
3998
3950
  };
3999
- }, mi = ({ focusedValue: e, setValue: t, setFocusedValue: n, getTabs: r, orientation: i, activationMode: a, dir: o, loop: s }) => ({ onKeyDown: (c) => {
3951
+ }, fi = ({ focusedValue: e, setValue: t, setFocusedValue: n, getTabs: r, orientation: i, activationMode: a, dir: o, loop: s }) => ({ onKeyDown: (c) => {
4000
3952
  let l = r().filter((e) => !e.disabled);
4001
3953
  if (l.length === 0) return;
4002
3954
  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) => {
@@ -4031,15 +3983,15 @@ var fi = (e) => [...e].sort((e, t) => {
4031
3983
  e && (c.preventDefault(), n(e.value), t(e.value));
4032
3984
  }
4033
3985
  }
4034
- } }), hi = {
3986
+ } }), pi = {
4035
3987
  tabs: "_tabs_1hj56_1",
4036
3988
  vertical: "_vertical_1hj56_30"
4037
- }, 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 }) => {
3989
+ }, mi = ({ 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 }) => {
4038
3990
  let C = l(), w = t !== void 0, { value: T, setValue: E } = Ct({
4039
3991
  value: t,
4040
3992
  defaultValue: n,
4041
3993
  onValueChange: r
4042
- }), 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) => {
3994
+ }), 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 } = di(), L = o((e, t, n = !1) => {
4043
3995
  if (!t) {
4044
3996
  let t = D.current, n = N.current, r = n.findIndex((t) => t.value === e);
4045
3997
  if (t === e && r >= 0) {
@@ -4055,7 +4007,7 @@ var fi = (e) => [...e].sort((e, t) => {
4055
4007
  j,
4056
4008
  E,
4057
4009
  N
4058
- ]), { onKeyDown: R } = mi({
4010
+ ]), { onKeyDown: R } = fi({
4059
4011
  focusedValue: A,
4060
4012
  setValue: E,
4061
4013
  setFocusedValue: j,
@@ -4118,11 +4070,11 @@ var fi = (e) => [...e].sort((e, t) => {
4118
4070
  d,
4119
4071
  N,
4120
4072
  M
4121
- ]), /* @__PURE__ */ g(ni.Provider, {
4073
+ ]), /* @__PURE__ */ g(ei.Provider, {
4122
4074
  value: z,
4123
4075
  children: /* @__PURE__ */ g("div", {
4124
4076
  ...S,
4125
- className: K(hi.tabs, i === "vertical" && hi.vertical, x),
4077
+ className: J(pi.tabs, i === "vertical" && pi.vertical, x),
4126
4078
  "data-mode": d,
4127
4079
  "data-orientation": i,
4128
4080
  dir: s,
@@ -4134,8 +4086,8 @@ var fi = (e) => [...e].sort((e, t) => {
4134
4086
  })
4135
4087
  });
4136
4088
  };
4137
- gi.displayName = "Tabs";
4138
- var _i = {
4089
+ mi.displayName = "Tabs";
4090
+ var hi = {
4139
4091
  trigger: "_trigger_1xafk_1",
4140
4092
  iconOnly: "_iconOnly_1xafk_49",
4141
4093
  icon: "_icon_1xafk_49",
@@ -4150,23 +4102,23 @@ var _i = {
4150
4102
  line: "_line_1xafk_196",
4151
4103
  pills: "_pills_1xafk_228",
4152
4104
  vertical: "_vertical_1xafk_256"
4153
- }, vi = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
4154
- className: K(_i.badge, t),
4105
+ }, gi = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
4106
+ className: J(hi.badge, t),
4155
4107
  children: e
4156
4108
  });
4157
- vi.displayName = "Tabs.Badge";
4109
+ gi.displayName = "Tabs.Badge";
4158
4110
  //#endregion
4159
4111
  //#region src/components/Tabs/Trigger/TabsIcon.tsx
4160
- var yi = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
4161
- className: K(_i.icon, t),
4112
+ var _i = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
4113
+ className: J(hi.icon, t),
4162
4114
  "aria-hidden": "true",
4163
4115
  children: e
4164
4116
  });
4165
- yi.displayName = "Tabs.Icon";
4117
+ _i.displayName = "Tabs.Icon";
4166
4118
  //#endregion
4167
4119
  //#region src/components/Tabs/Trigger/TabsTrigger.tsx
4168
- 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) => {
4169
- 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;
4120
+ var vi = 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) => {
4121
+ 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 } = ti(), 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;
4170
4122
  process.env.NODE_ENV !== "production" && z && R && console.warn(`Tabs.Trigger value "${t}" received both icon and Tabs.Icon. Tabs.Icon takes precedence.`);
4171
4123
  let V = o((e) => {
4172
4124
  O(t, e, M), typeof v == "function" ? v(e) : v && (v.current = e);
@@ -4175,7 +4127,7 @@ var bi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
4175
4127
  v,
4176
4128
  O,
4177
4129
  t
4178
- ]), H = z && !R || u || d, U = L.every((e) => typeof e == "string" || typeof e == "number"), W = K(_i.trigger, _i[T], _i[E], w === "vertical" && _i.vertical, z && _i.withIcon, B && _i.iconOnly, i), ee = (e) => {
4130
+ ]), H = z && !R || u || d, U = L.every((e) => typeof e == "string" || typeof e == "number"), W = J(hi.trigger, hi[T], hi[E], w === "vertical" && hi.vertical, z && hi.withIcon, B && hi.iconOnly, i), ee = (e) => {
4179
4131
  if (M) {
4180
4132
  e.preventDefault();
4181
4133
  return;
@@ -4188,7 +4140,7 @@ var bi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
4188
4140
  ...m,
4189
4141
  ref: V,
4190
4142
  id: A(t),
4191
- className: K(F.props.className, W),
4143
+ className: J(F.props.className, W),
4192
4144
  "aria-current": N ? "page" : void 0,
4193
4145
  "aria-disabled": M || void 0,
4194
4146
  "data-state": N ? "active" : "inactive",
@@ -4205,25 +4157,25 @@ var bi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
4205
4157
  },
4206
4158
  children: /* @__PURE__ */ _(h, { children: [
4207
4159
  z && !R && /* @__PURE__ */ g("span", {
4208
- className: _i.icon,
4160
+ className: hi.icon,
4209
4161
  "aria-hidden": "true",
4210
4162
  children: l
4211
4163
  }),
4212
4164
  I != null && (H ? /* @__PURE__ */ _("span", {
4213
- className: _i.body,
4165
+ className: hi.body,
4214
4166
  children: [/* @__PURE__ */ g("span", {
4215
- className: _i.label,
4167
+ className: hi.label,
4216
4168
  children: I
4217
4169
  }), d != null && /* @__PURE__ */ g("span", {
4218
- className: _i.description,
4170
+ className: hi.description,
4219
4171
  children: d
4220
4172
  })]
4221
4173
  }) : U ? /* @__PURE__ */ g("span", {
4222
- className: _i.label,
4174
+ className: hi.label,
4223
4175
  children: I
4224
4176
  }) : I),
4225
4177
  u != null && /* @__PURE__ */ g("span", {
4226
- className: _i.badge,
4178
+ className: hi.badge,
4227
4179
  children: u
4228
4180
  })
4229
4181
  ] })
@@ -4249,50 +4201,50 @@ var bi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
4249
4201
  },
4250
4202
  children: [
4251
4203
  z && !R && /* @__PURE__ */ g("span", {
4252
- className: _i.icon,
4204
+ className: hi.icon,
4253
4205
  "aria-hidden": "true",
4254
4206
  children: l
4255
4207
  }),
4256
4208
  I != null && (H ? /* @__PURE__ */ _("span", {
4257
- className: _i.body,
4209
+ className: hi.body,
4258
4210
  children: [/* @__PURE__ */ g("span", {
4259
- className: _i.label,
4211
+ className: hi.label,
4260
4212
  children: I
4261
4213
  }), d != null && /* @__PURE__ */ g("span", {
4262
- className: _i.description,
4214
+ className: hi.description,
4263
4215
  children: d
4264
4216
  })]
4265
4217
  }) : U ? /* @__PURE__ */ g("span", {
4266
- className: _i.label,
4218
+ className: hi.label,
4267
4219
  children: I
4268
4220
  }) : I),
4269
4221
  u != null && /* @__PURE__ */ g("span", {
4270
- className: _i.badge,
4222
+ className: hi.badge,
4271
4223
  children: u
4272
4224
  })
4273
4225
  ]
4274
4226
  }));
4275
4227
  });
4276
- bi.displayName = "Tabs.Trigger";
4228
+ vi.displayName = "Tabs.Trigger";
4277
4229
  //#endregion
4278
4230
  //#region src/components/Tabs/Tabs.tsx
4279
- var xi = Object.assign(gi, {
4280
- List: di,
4281
- Trigger: bi,
4282
- Content: ai,
4283
- Indicator: ui,
4284
- Icon: yi,
4285
- Badge: vi
4231
+ var yi = Object.assign(mi, {
4232
+ List: li,
4233
+ Trigger: vi,
4234
+ Content: ri,
4235
+ Indicator: ci,
4236
+ Icon: _i,
4237
+ Badge: gi
4286
4238
  });
4287
- xi.displayName = "Tabs";
4239
+ yi.displayName = "Tabs";
4288
4240
  //#endregion
4289
4241
  //#region src/components/Tooltip/internal/composeEventHandlers.ts
4290
- function Si(e, t) {
4242
+ function bi(e, t) {
4291
4243
  return (n) => {
4292
4244
  e?.(n), n.defaultPrevented || t?.(n);
4293
4245
  };
4294
4246
  }
4295
- function Ci(...e) {
4247
+ function xi(...e) {
4296
4248
  return (t) => {
4297
4249
  e.forEach((e) => {
4298
4250
  if (e) {
@@ -4307,18 +4259,18 @@ function Ci(...e) {
4307
4259
  }
4308
4260
  //#endregion
4309
4261
  //#region src/components/Tooltip/internal/TooltipContext.tsx
4310
- var wi = r(null), Ti = r({
4262
+ var Si = r(null), Ci = r({
4311
4263
  delay: {
4312
4264
  open: 300,
4313
4265
  close: 100
4314
4266
  },
4315
4267
  skipDelay: 300
4316
- }), Ei = wi.Provider, Di = ({ children: e, delay: t = 700, skipDelay: n = 300 }) => {
4268
+ }), wi = Si.Provider, Ti = ({ children: e, delay: t = 700, skipDelay: n = 300 }) => {
4317
4269
  let r = typeof t == "number" ? {
4318
4270
  open: t,
4319
4271
  close: 100
4320
4272
  } : t;
4321
- return /* @__PURE__ */ g(Ti.Provider, {
4273
+ return /* @__PURE__ */ g(Ci.Provider, {
4322
4274
  value: {
4323
4275
  delay: r,
4324
4276
  skipDelay: n
@@ -4326,19 +4278,19 @@ var wi = r(null), Ti = r({
4326
4278
  children: e
4327
4279
  });
4328
4280
  };
4329
- function Oi() {
4330
- let e = s(wi);
4281
+ function Ei() {
4282
+ let e = s(Si);
4331
4283
  if (!e) throw Error("Tooltip compound components must be rendered inside Tooltip");
4332
4284
  return e;
4333
4285
  }
4334
- function ki() {
4335
- return s(Ti);
4286
+ function Di() {
4287
+ return s(Ci);
4336
4288
  }
4337
- var Ai = {
4289
+ var Oi = {
4338
4290
  tooltip: "_tooltip_raj0t_1",
4339
4291
  arrow: "_arrow_raj0t_25"
4340
- }, ji = i(({ children: e, forceMount: t = !1, withArrow: n = !1, className: r, style: i, ...a }, o) => {
4341
- let s = Oi();
4292
+ }, ki = i(({ children: e, forceMount: t = !1, withArrow: n = !1, className: r, style: i, ...a }, o) => {
4293
+ let s = Ei();
4342
4294
  if (!t && !s.open) return null;
4343
4295
  let c = s.getContentProps({
4344
4296
  id: s.contentId,
@@ -4347,20 +4299,20 @@ var Ai = {
4347
4299
  });
4348
4300
  return /* @__PURE__ */ _("div", {
4349
4301
  ...c,
4350
- ref: Ci(o, s.setContentRef),
4351
- className: K(Ai.tooltip, r),
4302
+ ref: xi(o, s.setContentRef),
4303
+ className: J(Oi.tooltip, r),
4352
4304
  "data-placement": s.placement,
4353
4305
  "data-state": s.open ? "open" : "closed",
4354
4306
  style: {
4355
4307
  ...s.floatingStyles,
4356
4308
  ...i
4357
4309
  },
4358
- children: [e, n && /* @__PURE__ */ g(Mi, {})]
4310
+ children: [e, n && /* @__PURE__ */ g(Ai, {})]
4359
4311
  });
4360
4312
  });
4361
- ji.displayName = "Tooltip.Content";
4362
- function Mi() {
4363
- let e = Oi(), t = {
4313
+ ki.displayName = "Tooltip.Content";
4314
+ function Ai() {
4315
+ let e = Ei(), t = {
4364
4316
  top: "bottom",
4365
4317
  right: "left",
4366
4318
  bottom: "top",
@@ -4368,7 +4320,7 @@ function Mi() {
4368
4320
  }[e.placement.split("-")[0]];
4369
4321
  return /* @__PURE__ */ g("div", {
4370
4322
  ref: e.arrowRef,
4371
- className: Ai.arrow,
4323
+ className: Oi.arrow,
4372
4324
  style: {
4373
4325
  left: e.arrowX == null ? void 0 : `${e.arrowX}px`,
4374
4326
  top: e.arrowY == null ? void 0 : `${e.arrowY}px`,
@@ -4378,8 +4330,8 @@ function Mi() {
4378
4330
  }
4379
4331
  //#endregion
4380
4332
  //#region src/components/Tooltip/internal/useTooltipDelay.ts
4381
- function Ni(e, t) {
4382
- let n = ki();
4333
+ function ji(e, t) {
4334
+ let n = Di();
4383
4335
  return e == null ? n.delay : typeof e == "number" ? {
4384
4336
  open: e,
4385
4337
  close: n.delay.close
@@ -4390,18 +4342,18 @@ function Ni(e, t) {
4390
4342
  }
4391
4343
  //#endregion
4392
4344
  //#region src/components/Tooltip/internal/useTooltipInteractions.ts
4393
- function Pi({ context: e, delay: t, disabled: n, interactive: r }) {
4394
- let i = U(e, {
4345
+ function Mi({ context: e, delay: t, disabled: n, interactive: r }) {
4346
+ let i = re(e, {
4395
4347
  delay: t,
4396
4348
  enabled: !n,
4397
4349
  move: !1,
4398
4350
  handleClose: r ? void 0 : null
4399
- }), a = H(e, { enabled: !n });
4400
- return W([i, a]);
4351
+ }), a = ne(e, { enabled: !n });
4352
+ return G([i, a]);
4401
4353
  }
4402
4354
  //#endregion
4403
4355
  //#region src/components/Tooltip/internal/useTooltipPosition.ts
4404
- function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
4356
+ function Ni({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
4405
4357
  let o = f(null), s = ut({
4406
4358
  open: e,
4407
4359
  onOpenChange: t,
@@ -4409,7 +4361,7 @@ function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions
4409
4361
  offset: r,
4410
4362
  avoidCollisions: i,
4411
4363
  matchTriggerWidth: a,
4412
- middleware: [F({ element: o })]
4364
+ middleware: [B({ element: o })]
4413
4365
  });
4414
4366
  return {
4415
4367
  ...s,
@@ -4420,21 +4372,21 @@ function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions
4420
4372
  }
4421
4373
  //#endregion
4422
4374
  //#region src/components/Tooltip/Root/TooltipRoot.tsx
4423
- 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 }) => {
4375
+ var Pi = ({ 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 }) => {
4424
4376
  let m = `${l()}-content`, h = f(null), _ = f(null), [v, y] = vt({
4425
4377
  value: t,
4426
4378
  defaultValue: n,
4427
4379
  onChange: r
4428
4380
  }), b = (e) => {
4429
4381
  c || y(e);
4430
- }, x = Fi({
4382
+ }, x = Ni({
4431
4383
  open: v,
4432
4384
  onOpenChange: b,
4433
4385
  placement: i,
4434
4386
  offset: a,
4435
4387
  avoidCollisions: d,
4436
4388
  matchTriggerWidth: p
4437
- }), S = Ni(o, s), C = Pi({
4389
+ }), S = ji(o, s), C = Mi({
4438
4390
  context: x.context,
4439
4391
  delay: S,
4440
4392
  disabled: c,
@@ -4449,7 +4401,7 @@ var Ii = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placemen
4449
4401
  closeOnOutsidePress: !u,
4450
4402
  requestClose: () => b(!1)
4451
4403
  });
4452
- return /* @__PURE__ */ g(Ei, {
4404
+ return /* @__PURE__ */ g(wi, {
4453
4405
  value: {
4454
4406
  contentId: m,
4455
4407
  open: v,
@@ -4465,34 +4417,34 @@ var Ii = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placemen
4465
4417
  zIndex: w.zIndex
4466
4418
  },
4467
4419
  setOpen: b,
4468
- setTriggerRef: Ci(_, x.setRef),
4469
- setContentRef: Ci(h, x.setFloatingRef),
4420
+ setTriggerRef: xi(_, x.setRef),
4421
+ setContentRef: xi(h, x.setFloatingRef),
4470
4422
  getTriggerProps: C.getReferenceProps,
4471
4423
  getContentProps: C.getFloatingProps
4472
4424
  },
4473
4425
  children: e
4474
4426
  });
4475
4427
  };
4476
- Ii.displayName = "Tooltip.Root";
4428
+ Pi.displayName = "Tooltip.Root";
4477
4429
  //#endregion
4478
4430
  //#region src/components/Tooltip/Trigger/TooltipTrigger.tsx
4479
- var Li = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...o }) => {
4480
- let s = Oi(), c = e && a(t) ? t : void 0, l = s.disabled || r || c?.props.disabled, u = s.getTriggerProps({
4431
+ var Fi = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...o }) => {
4432
+ let s = Ei(), c = e && a(t) ? t : void 0, l = s.disabled || r || c?.props.disabled, u = s.getTriggerProps({
4481
4433
  ...o,
4482
4434
  "aria-describedby": s.open ? s.contentId : void 0,
4483
4435
  "aria-disabled": l || void 0,
4484
4436
  "data-state": s.open ? "open" : "closed"
4485
4437
  }), d = {
4486
4438
  ...u,
4487
- ref: c ? Ci(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
4488
- className: K(c?.props.className, i),
4439
+ ref: c ? xi(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
4440
+ className: J(c?.props.className, i),
4489
4441
  disabled: l || void 0,
4490
- onMouseEnter: Si(c?.props.onMouseEnter, u.onMouseEnter),
4491
- onMouseLeave: Si(c?.props.onMouseLeave, u.onMouseLeave),
4492
- onPointerEnter: Si(c?.props.onPointerEnter, u.onPointerEnter),
4493
- onPointerLeave: Si(c?.props.onPointerLeave, u.onPointerLeave),
4494
- onFocus: Si(c?.props.onFocus, u.onFocus),
4495
- onBlur: Si(c?.props.onBlur, u.onBlur)
4442
+ onMouseEnter: bi(c?.props.onMouseEnter, u.onMouseEnter),
4443
+ onMouseLeave: bi(c?.props.onMouseLeave, u.onMouseLeave),
4444
+ onPointerEnter: bi(c?.props.onPointerEnter, u.onPointerEnter),
4445
+ onPointerLeave: bi(c?.props.onPointerLeave, u.onPointerLeave),
4446
+ onFocus: bi(c?.props.onFocus, u.onFocus),
4447
+ onBlur: bi(c?.props.onBlur, u.onBlur)
4496
4448
  };
4497
4449
  return c ? n(c, d) : /* @__PURE__ */ g("button", {
4498
4450
  type: "button",
@@ -4500,16 +4452,16 @@ var Li = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...o }
4500
4452
  children: t
4501
4453
  });
4502
4454
  };
4503
- Li.displayName = "Tooltip.Trigger";
4455
+ Fi.displayName = "Tooltip.Trigger";
4504
4456
  //#endregion
4505
4457
  //#region src/components/Tooltip/Tooltip.tsx
4506
- var Ri = Object.assign(Ii, {
4507
- Trigger: Li,
4508
- Content: ji,
4509
- Provider: Di
4458
+ var Ii = Object.assign(Pi, {
4459
+ Trigger: Fi,
4460
+ Content: ki,
4461
+ Provider: Ti
4510
4462
  });
4511
- Ri.displayName = "Tooltip";
4512
- var zi = {
4463
+ Ii.displayName = "Tooltip";
4464
+ var Li = {
4513
4465
  button: "_button_tqwey_1",
4514
4466
  solid: "_solid_tqwey_26",
4515
4467
  primary: "_primary_tqwey_26",
@@ -4537,58 +4489,58 @@ var zi = {
4537
4489
  "button-spin": "_button-spin_tqwey_1",
4538
4490
  badge: "_badge_tqwey_799",
4539
4491
  shortcut: "_shortcut_tqwey_813"
4540
- }, 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) => {
4541
- 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 = ee[i], U = {
4492
+ }, Ri = i(({ children: e, color: t = "primary", appearance: r = "solid", size: i = "md", shape: o = "pill", type: s = "button", disabled: c = !1, loading: l = !1, loadingText: u, iconStart: d, iconEnd: f, spinner: p, badge: m, shortcut: v, tooltip: y, fullWidth: b = !1, iconOnly: x = !1, asChild: S = !1, className: C, style: w, onClick: T, "aria-label": E, "aria-labelledby": D, href: O, target: k, rel: A, download: j, id: M, role: N, tabIndex: P, ...F }, I) => {
4493
+ 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 = ie[i], U = {
4542
4494
  "--button-height": `${H.height}px`,
4543
4495
  "--button-font-size": `${H.fontSize}px`,
4544
4496
  "--button-line-height": `${H.lineHeight}px`,
4545
4497
  "--icon-size": `${H.iconSize}px`
4546
- }, 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(zi.button, zi[t], zi[r], zi[i], zi[o], C, {
4547
- [zi.disabled]: V,
4548
- [zi.loading]: l,
4549
- [zi.fullWidth]: b,
4550
- [zi.iconOnly]: z
4498
+ }, W = 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(Li.button, Li[t], Li[r], Li[i], Li[o], C, {
4499
+ [Li.disabled]: V,
4500
+ [Li.loading]: l,
4501
+ [Li.fullWidth]: b,
4502
+ [Li.iconOnly]: z
4551
4503
  });
4552
- Oe(!S || !O, "Button: pass href to the child element when using asChild."), Oe(!S || !!L, "Button: asChild requires a single valid React element child."), Oe(!z || B, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
4553
- let G = (e) => {
4504
+ Me(!S || !O, "Button: pass href to the child element when using asChild."), Me(!S || !!L, "Button: asChild requires a single valid React element child."), Me(!z || B, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
4505
+ let re = (e) => {
4554
4506
  e.preventDefault(), e.stopPropagation();
4555
- }, ie = (e) => {
4507
+ }, G = (e) => {
4556
4508
  if (V) {
4557
- G(e);
4509
+ re(e);
4558
4510
  return;
4559
4511
  }
4560
4512
  L?.props.onClick?.(e), e.defaultPrevented || T?.(e);
4561
- }, ae = /* @__PURE__ */ _(h, { children: [
4513
+ }, K = /* @__PURE__ */ _(h, { children: [
4562
4514
  l && (p ? /* @__PURE__ */ g("span", {
4563
- className: zi.icon,
4515
+ className: Li.icon,
4564
4516
  "aria-hidden": "true",
4565
4517
  children: p
4566
4518
  }) : /* @__PURE__ */ g("span", {
4567
- className: zi.spinner,
4519
+ className: Li.spinner,
4568
4520
  "aria-hidden": "true"
4569
4521
  })),
4570
4522
  !l && d && /* @__PURE__ */ g("span", {
4571
- className: zi.icon,
4523
+ className: Li.icon,
4572
4524
  children: d
4573
4525
  }),
4574
4526
  W && !z && /* @__PURE__ */ g("span", {
4575
- className: zi.label,
4576
- "data-measure": te,
4527
+ className: Li.label,
4528
+ "data-measure": ee,
4577
4529
  children: /* @__PURE__ */ g("span", {
4578
- className: zi.labelText,
4530
+ className: Li.labelText,
4579
4531
  children: W
4580
4532
  })
4581
4533
  }),
4582
4534
  m && !z && /* @__PURE__ */ g("span", {
4583
- className: zi.badge,
4535
+ className: Li.badge,
4584
4536
  children: m
4585
4537
  }),
4586
4538
  v && !z && /* @__PURE__ */ g("span", {
4587
- className: zi.shortcut,
4539
+ className: Li.shortcut,
4588
4540
  children: v
4589
4541
  }),
4590
4542
  !l && f && /* @__PURE__ */ g("span", {
4591
- className: zi.icon,
4543
+ className: Li.icon,
4592
4544
  children: f
4593
4545
  })
4594
4546
  ] });
@@ -4604,12 +4556,12 @@ var zi = {
4604
4556
  "aria-disabled": V || void 0,
4605
4557
  "aria-label": E || L.props["aria-label"] || void 0,
4606
4558
  "aria-labelledby": D || L.props["aria-labelledby"] || void 0,
4607
- className: K(L.props.className, re),
4559
+ className: J(L.props.className, ne),
4608
4560
  href: V ? void 0 : L.props.href,
4609
- onClick: ie,
4561
+ onClick: G,
4610
4562
  tabIndex: V ? -1 : L.props.tabIndex,
4611
4563
  title: y || L.props.title,
4612
- children: ae
4564
+ children: K
4613
4565
  }) : O ? /* @__PURE__ */ g("a", {
4614
4566
  ref: I,
4615
4567
  href: V ? void 0 : O,
@@ -4617,20 +4569,20 @@ var zi = {
4617
4569
  role: N,
4618
4570
  tabIndex: V ? -1 : P,
4619
4571
  target: k,
4620
- rel: ne,
4572
+ rel: te,
4621
4573
  download: j,
4622
- onClick: V ? G : T,
4574
+ onClick: V ? re : T,
4623
4575
  "aria-disabled": V || void 0,
4624
4576
  "aria-label": E || void 0,
4625
4577
  "aria-labelledby": D || void 0,
4626
4578
  "aria-busy": l || void 0,
4627
- className: re,
4579
+ className: ne,
4628
4580
  title: y,
4629
4581
  style: {
4630
4582
  ...U,
4631
4583
  ...w
4632
4584
  },
4633
- children: ae
4585
+ children: K
4634
4586
  }) : /* @__PURE__ */ g("button", {
4635
4587
  ...F,
4636
4588
  ref: I,
@@ -4643,16 +4595,16 @@ var zi = {
4643
4595
  "aria-label": E || void 0,
4644
4596
  "aria-labelledby": D || void 0,
4645
4597
  "aria-busy": l || void 0,
4646
- className: re,
4598
+ className: ne,
4647
4599
  title: y,
4648
4600
  style: {
4649
4601
  ...U,
4650
4602
  ...w
4651
4603
  },
4652
- children: ae
4604
+ children: K
4653
4605
  });
4654
4606
  });
4655
- Bi.displayName = "Button";
4607
+ Ri.displayName = "Button";
4656
4608
  var Q = {
4657
4609
  wrapper: "_wrapper_jq9wv_1",
4658
4610
  colorPrimary: "_colorPrimary_jq9wv_36",
@@ -4688,25 +4640,25 @@ var Q = {
4688
4640
  "checkbox-checkmark-in": "_checkbox-checkmark-in_jq9wv_1",
4689
4641
  "checkbox-indeterminate-in": "_checkbox-indeterminate-in_jq9wv_1",
4690
4642
  disabled: "_disabled_jq9wv_370"
4691
- }, Vi = {
4643
+ }, zi = {
4692
4644
  sm: Q.labelSm,
4693
4645
  md: Q.labelMd,
4694
4646
  lg: Q.labelLg
4695
- }, Hi = {
4647
+ }, Bi = {
4696
4648
  sm: Q.wrapperSm,
4697
4649
  md: Q.wrapperMd,
4698
4650
  lg: Q.wrapperLg
4699
- }, Ui = {
4651
+ }, Vi = {
4700
4652
  sm: Q.containerSm,
4701
4653
  md: Q.containerMd,
4702
4654
  lg: Q.containerLg
4703
- }, Wi = {
4655
+ }, Hi = {
4704
4656
  primary: Q.colorPrimary,
4705
4657
  neutral: Q.colorNeutral,
4706
4658
  success: Q.colorSuccess,
4707
4659
  warning: Q.colorWarning,
4708
4660
  danger: Q.colorDanger
4709
- }, 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) => {
4661
+ }, Ui = 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) => {
4710
4662
  let k = l(), A = e ?? k, j = f(null), M = !!C, N = n ? `${A}-description` : void 0, P = M ? `${A}-error` : void 0, F = [
4711
4663
  E,
4712
4664
  N,
@@ -4728,12 +4680,12 @@ var Q = {
4728
4680
  let z = (e) => {
4729
4681
  L(e.target.checked);
4730
4682
  };
4731
- return Oe(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ _("div", {
4732
- className: K(Q.container, Ui[s], d === "start" && Q.containerLabelStart, b),
4683
+ return Me(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ _("div", {
4684
+ className: J(Q.container, Vi[s], d === "start" && Q.containerLabelStart, b),
4733
4685
  children: [
4734
4686
  /* @__PURE__ */ _("label", {
4735
4687
  htmlFor: A,
4736
- className: K(Q.wrapper, Hi[s], Wi[u], d === "start" && Q.labelStart, !t && Q.iconOnly, m && Q.disabled, x),
4688
+ className: J(Q.wrapper, Bi[s], Hi[u], d === "start" && Q.labelStart, !t && Q.iconOnly, m && Q.disabled, x),
4737
4689
  children: [
4738
4690
  /* @__PURE__ */ g("input", {
4739
4691
  ...D,
@@ -4752,10 +4704,10 @@ var Q = {
4752
4704
  "aria-describedby": F || void 0
4753
4705
  }),
4754
4706
  /* @__PURE__ */ g("span", {
4755
- className: K(Q.customCheckbox, M && Q.error, y && Q.indeterminate),
4707
+ className: J(Q.customCheckbox, M && Q.error, y && Q.indeterminate),
4756
4708
  "aria-hidden": "true",
4757
4709
  children: y ? /* @__PURE__ */ g("span", {
4758
- className: K(Q.indeterminateMark, i && Q.customMark),
4710
+ className: J(Q.indeterminateMark, i && Q.customMark),
4759
4711
  children: i
4760
4712
  }) : I && /* @__PURE__ */ g("span", {
4761
4713
  className: Q.checkmark,
@@ -4763,7 +4715,7 @@ var Q = {
4763
4715
  })
4764
4716
  }),
4765
4717
  t && /* @__PURE__ */ _("span", {
4766
- className: K(Q.label, Vi[s]),
4718
+ className: J(Q.label, zi[s]),
4767
4719
  children: [t, h && /* @__PURE__ */ g("span", {
4768
4720
  className: Q.requiredMark,
4769
4721
  "aria-hidden": "true",
@@ -4785,7 +4737,7 @@ var Q = {
4785
4737
  ]
4786
4738
  });
4787
4739
  });
4788
- Gi.displayName = "Checkbox";
4740
+ Ui.displayName = "Checkbox";
4789
4741
  var $ = {
4790
4742
  inputGroup: "_inputGroup_10dlc_1",
4791
4743
  primary: "_primary_10dlc_29",
@@ -4827,7 +4779,7 @@ var $ = {
4827
4779
  toneDanger: "_toneDanger_10dlc_877",
4828
4780
  toneMuted: "_toneMuted_10dlc_881",
4829
4781
  toneInverse: "_toneInverse_10dlc_885"
4830
- }, Ki = {
4782
+ }, Wi = {
4831
4783
  default: $.toneDefault,
4832
4784
  primary: $.tonePrimary,
4833
4785
  secondary: $.toneSecondary,
@@ -4835,7 +4787,7 @@ var $ = {
4835
4787
  danger: $.toneDanger,
4836
4788
  muted: $.toneMuted,
4837
4789
  inverse: $.toneInverse
4838
- }, qi = (e = "text", t) => {
4790
+ }, Gi = (e = "text", t) => {
4839
4791
  if (t) return t;
4840
4792
  switch (e) {
4841
4793
  case "email": return "email";
@@ -4845,7 +4797,7 @@ var $ = {
4845
4797
  case "search": return "off";
4846
4798
  default: return;
4847
4799
  }
4848
- }, Ji = (e, t) => {
4800
+ }, Ki = (e, t) => {
4849
4801
  let n = e.replace(/\D/g, ""), r = 0, i = "";
4850
4802
  for (let e of t) {
4851
4803
  if (e === "#") {
@@ -4857,44 +4809,44 @@ var $ = {
4857
4809
  r < n.length && (i += e);
4858
4810
  }
4859
4811
  return i;
4860
- }, 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: C = !1, loading: w = !1, className: T, style: E, wrapperClassName: D, autoComplete: O, readOnly: k = !1, clearable: A = !1, onClear: j, onValueChange: M, revealPassword: N = !1, showCounter: P = !1, startIcon: F, endIcon: I, startAddon: L, endAddon: R, prefix: z, suffix: B, clearIcon: V, mask: H, format: U, parse: W, startIconTone: te = "default", endIconTone: ne = "default", clearIconTone: re = "danger", autoFocus: G, maxLength: ie, onMouseEnter: ae, onMouseLeave: oe, "aria-describedby": se, "aria-invalid": ce, "aria-labelledby": le, ...ue }, q) => {
4861
- let J = l(), de = Rr(), fe = !!(t || r || v), pe = e ?? (fe ? void 0 : de?.controlId) ?? J, me = f(null), [he, ge] = p(!1), [_e, ve] = p(s ?? ""), ye = a !== void 0, be = String((ye ? a : _e) ?? ""), xe = U ? U(be) : be, Se = be.length > 0, Ce = u ?? de?.size ?? "md", we = ee[Ce], Te = {
4862
- "--input-height": `${we.height}px`,
4863
- "--input-font-size": `${we.fontSize}px`,
4864
- "--input-line-height": `${we.lineHeight}px`,
4865
- "--input-icon-size": `${we.iconSize}px`
4866
- }, Ee = y || !!v || !fe && !!de?.invalid, De = b || !fe && !!de?.disabled, Y = C || !fe && !!de?.required, Oe = k || w, ke = c === "password", Ae = ke && N && he ? "text" : c, je = F ?? (c === "search" ? /* @__PURE__ */ g(S, {}) : null), Me = I, Ne = qi(c, O), Pe = w && !De, X = A && Se && !De && !Oe && !Pe, Fe = N && ke && !De && !Pe && !X, Ie = !Pe && !X && !Fe && !!Me, Le = !!(P && ie), Re = r ? `${pe}-description` : void 0, ze = v ? `${pe}-error` : void 0, Be = Le ? `${pe}-counter` : void 0, Ve = [
4867
- se,
4868
- !fe && !se ? de?.ariaDescribedBy : void 0,
4812
+ }, qi = (e, t) => t ? typeof t == "function" ? t(e) : Ki(e, t) : e, Ji = i(({ id: e, label: t, name: n, description: r, placeholder: i, value: a, defaultValue: s, type: c = "text", size: u, color: d = "primary", variant: m = "outline", error: v, invalid: y = !1, disabled: b = !1, required: C = !1, loading: w = !1, className: T, style: E, wrapperClassName: D, autoComplete: O, readOnly: k = !1, clearable: A = !1, onClear: j, onValueChange: M, revealPassword: N = !1, showCounter: P = !1, startIcon: F, endIcon: I, startAddon: L, endAddon: R, prefix: z, suffix: B, clearIcon: V, mask: H, format: U, parse: W, startIconTone: ee = "default", endIconTone: te = "default", clearIconTone: ne = "danger", autoFocus: re, maxLength: G, onMouseEnter: K, onMouseLeave: ae, "aria-describedby": oe, "aria-invalid": se, "aria-labelledby": ce, ...le }, ue) => {
4813
+ let de = l(), q = Ir(), fe = !!(t || r || v), pe = e ?? (fe ? void 0 : q?.controlId) ?? de, me = f(null), [Y, he] = p(!1), [ge, _e] = p(s ?? ""), ve = a !== void 0, ye = String((ve ? a : ge) ?? ""), be = U ? U(ye) : ye, xe = ye.length > 0, Se = u ?? q?.size ?? "md", Ce = ie[Se], we = {
4814
+ "--input-height": `${Ce.height}px`,
4815
+ "--input-font-size": `${Ce.fontSize}px`,
4816
+ "--input-line-height": `${Ce.lineHeight}px`,
4817
+ "--input-icon-size": `${Ce.iconSize}px`
4818
+ }, Te = y || !!v || !fe && !!q?.invalid, Ee = b || !fe && !!q?.disabled, De = C || !fe && !!q?.required, Oe = k || w, ke = c === "password", Ae = ke && N && Y ? "text" : c, je = F ?? (c === "search" ? /* @__PURE__ */ g(S, {}) : null), X = I, Me = Gi(c, O), Ne = w && !Ee, Pe = A && xe && !Ee && !Oe && !Ne, Fe = N && ke && !Ee && !Ne && !Pe, Ie = !Ne && !Pe && !Fe && !!X, Le = !!(P && G), Re = r ? `${pe}-description` : void 0, ze = v ? `${pe}-error` : void 0, Be = Le ? `${pe}-counter` : void 0, Ve = [
4819
+ oe,
4820
+ !fe && !oe ? q?.ariaDescribedBy : void 0,
4869
4821
  Re,
4870
4822
  ze,
4871
4823
  Be
4872
- ].filter(Boolean).join(" "), He = V ?? /* @__PURE__ */ g(x, { "aria-hidden": "true" }), Ue = !!(je || z), We = !!(Me || B || X || Fe || Pe), Ge = !!(je && z), Ke = !!(Me && B), qe = !!(L || R), Je = o((e) => {
4873
- if (me.current = e, typeof q == "function") {
4874
- q(e);
4824
+ ].filter(Boolean).join(" "), He = V ?? /* @__PURE__ */ g(x, { "aria-hidden": "true" }), Ue = !!(je || z), We = !!(X || B || Pe || Fe || Ne), Ge = !!(je && z), Ke = !!(X && B), qe = !!(L || R), Je = o((e) => {
4825
+ if (me.current = e, typeof ue == "function") {
4826
+ ue(e);
4875
4827
  return;
4876
4828
  }
4877
- q && (q.current = e);
4878
- }, [q]), Ye = o((e) => {
4879
- let t = Yi(W ? W(e.target.value) : e.target.value, H);
4880
- ye || ve(t), M?.(t);
4829
+ ue && (ue.current = e);
4830
+ }, [ue]), Ye = o((e) => {
4831
+ let t = qi(W ? W(e.target.value) : e.target.value, H);
4832
+ ve || _e(t), M?.(t);
4881
4833
  }, [
4882
- ye,
4834
+ ve,
4883
4835
  H,
4884
4836
  M,
4885
4837
  W
4886
4838
  ]), Xe = o(() => {
4887
- ye || ve(""), M?.(""), j?.(), me.current?.focus();
4839
+ ve || _e(""), M?.(""), j?.(), me.current?.focus();
4888
4840
  }, [
4889
- ye,
4841
+ ve,
4890
4842
  j,
4891
4843
  M
4892
4844
  ]), Ze = /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
4893
- className: K($.inputGroup, $[m], $[d], {
4845
+ className: J($.inputGroup, $[m], $[d], {
4894
4846
  [$.hasAddons]: qe,
4895
- [$.isDisabled]: De,
4896
- [$.isInvalid]: Ee,
4897
- [$.isLoading]: Pe
4847
+ [$.isDisabled]: Ee,
4848
+ [$.isInvalid]: Te,
4849
+ [$.isLoading]: Ne
4898
4850
  }),
4899
4851
  children: [
4900
4852
  L && /* @__PURE__ */ g("span", {
@@ -4902,7 +4854,7 @@ var $ = {
4902
4854
  children: L
4903
4855
  }),
4904
4856
  /* @__PURE__ */ _("div", {
4905
- className: K($.inputWrapper, {
4857
+ className: J($.inputWrapper, {
4906
4858
  [$.hasLeftAdornment]: Ue,
4907
4859
  [$.hasRightAdornment]: We,
4908
4860
  [$.hasStartIconAndPrefix]: Ge,
@@ -4911,7 +4863,7 @@ var $ = {
4911
4863
  children: [
4912
4864
  je && /* @__PURE__ */ g("span", {
4913
4865
  "aria-hidden": "true",
4914
- className: K($.startAdornment, Ki[te]),
4866
+ className: J($.startAdornment, Wi[ee]),
4915
4867
  children: je
4916
4868
  }),
4917
4869
  z && /* @__PURE__ */ g("span", {
@@ -4919,31 +4871,31 @@ var $ = {
4919
4871
  children: z
4920
4872
  }),
4921
4873
  /* @__PURE__ */ g("input", {
4922
- ...ue,
4874
+ ...le,
4923
4875
  ref: Je,
4924
4876
  id: pe,
4925
4877
  name: n,
4926
4878
  type: Ae,
4927
- autoComplete: Ne,
4928
- className: K($.input, $[Ce], { [$.error]: Ee }, T),
4879
+ autoComplete: Me,
4880
+ className: J($.input, $[Se], { [$.error]: Te }, T),
4929
4881
  style: {
4930
- ...Te,
4882
+ ...we,
4931
4883
  ...E
4932
4884
  },
4933
- value: xe,
4885
+ value: be,
4934
4886
  onChange: Ye,
4935
4887
  placeholder: i,
4936
- disabled: De,
4888
+ disabled: Ee,
4937
4889
  readOnly: Oe,
4938
- required: Y,
4939
- autoFocus: G,
4940
- maxLength: ie,
4941
- "aria-invalid": Ee ? !0 : ce,
4942
- "aria-labelledby": le ?? (fe ? void 0 : de?.ariaLabelledBy),
4890
+ required: De,
4891
+ autoFocus: re,
4892
+ maxLength: G,
4893
+ "aria-invalid": Te ? !0 : se,
4894
+ "aria-labelledby": ce ?? (fe ? void 0 : q?.ariaLabelledBy),
4943
4895
  "aria-describedby": Ve || void 0,
4944
4896
  "aria-busy": w || void 0,
4945
- onMouseEnter: ae,
4946
- onMouseLeave: oe
4897
+ onMouseEnter: K,
4898
+ onMouseLeave: ae
4947
4899
  }),
4948
4900
  B && /* @__PURE__ */ g("span", {
4949
4901
  className: $.suffix,
@@ -4952,7 +4904,7 @@ var $ = {
4952
4904
  /* @__PURE__ */ _("div", {
4953
4905
  className: $.endSlot,
4954
4906
  children: [
4955
- Pe && /* @__PURE__ */ g("span", {
4907
+ Ne && /* @__PURE__ */ g("span", {
4956
4908
  className: $.spinner,
4957
4909
  "aria-hidden": "true",
4958
4910
  "data-testid": "input-spinner"
@@ -4960,21 +4912,21 @@ var $ = {
4960
4912
  Fe && /* @__PURE__ */ g("button", {
4961
4913
  type: "button",
4962
4914
  className: $.iconButton,
4963
- onClick: () => ge((e) => !e),
4964
- "aria-label": he ? "Hide password" : "Show password",
4965
- children: he ? "Hide" : "Show"
4915
+ onClick: () => he((e) => !e),
4916
+ "aria-label": Y ? "Hide password" : "Show password",
4917
+ children: Y ? "Hide" : "Show"
4966
4918
  }),
4967
- X && /* @__PURE__ */ g("button", {
4919
+ Pe && /* @__PURE__ */ g("button", {
4968
4920
  type: "button",
4969
- className: K($.clearButton, Ki[re]),
4921
+ className: J($.clearButton, Wi[ne]),
4970
4922
  onClick: Xe,
4971
4923
  "aria-label": "Clear input",
4972
4924
  children: He
4973
4925
  }),
4974
- Ie && Me && /* @__PURE__ */ g("span", {
4926
+ Ie && X && /* @__PURE__ */ g("span", {
4975
4927
  "aria-hidden": "true",
4976
- className: K($.endAdornment, Ki[ne]),
4977
- children: Me
4928
+ className: J($.endAdornment, Wi[te]),
4929
+ children: X
4978
4930
  })
4979
4931
  ]
4980
4932
  })
@@ -4989,33 +4941,33 @@ var $ = {
4989
4941
  id: Be,
4990
4942
  className: $.counter,
4991
4943
  children: [
4992
- be.length,
4944
+ ye.length,
4993
4945
  " / ",
4994
- ie
4946
+ G
4995
4947
  ]
4996
4948
  })] });
4997
- return !fe && de ? Ze : /* @__PURE__ */ g(Jr, {
4949
+ return !fe && q ? Ze : /* @__PURE__ */ g(Kr, {
4998
4950
  id: pe,
4999
4951
  label: t,
5000
4952
  description: r,
5001
4953
  error: v,
5002
- required: Y,
5003
- disabled: De,
5004
- invalid: Ee,
5005
- size: Ce,
4954
+ required: De,
4955
+ disabled: Ee,
4956
+ invalid: Te,
4957
+ size: Se,
5006
4958
  className: D,
5007
4959
  bindControl: !1,
5008
4960
  children: Ze
5009
4961
  });
5010
4962
  });
5011
- Xi.displayName = "Input";
5012
- var Zi = {
4963
+ Ji.displayName = "Input";
4964
+ var Yi = {
5013
4965
  root: "_root_tczcc_1",
5014
4966
  thumb: "_thumb_tczcc_54"
5015
4967
  };
5016
4968
  //#endregion
5017
4969
  //#region src/primitives/Switch/Switch.tsx
5018
- function Qi({ accessibilityLabel: e = "Switch", checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, invalid: a = !1, onCheckedChange: o }) {
4970
+ function Xi({ accessibilityLabel: e = "Switch", checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, invalid: a = !1, onCheckedChange: o }) {
5019
4971
  let [s, c] = p(n), l = t !== void 0, u = l ? t : s;
5020
4972
  return /* @__PURE__ */ g("button", {
5021
4973
  type: "button",
@@ -5026,25 +4978,25 @@ function Qi({ accessibilityLabel: e = "Switch", checked: t, defaultChecked: n =
5026
4978
  "aria-required": i || void 0,
5027
4979
  "aria-invalid": a || void 0,
5028
4980
  "data-state": u ? "checked" : "unchecked",
5029
- className: Zi.root,
4981
+ className: Yi.root,
5030
4982
  onClick: () => {
5031
4983
  let e = !u;
5032
4984
  l || c(e), o?.(e);
5033
4985
  },
5034
4986
  children: /* @__PURE__ */ g("span", {
5035
- className: Zi.thumb,
4987
+ className: Yi.thumb,
5036
4988
  "aria-hidden": "true"
5037
4989
  })
5038
4990
  });
5039
4991
  }
5040
4992
  //#endregion
5041
4993
  //#region src/theme/ThemeContext.ts
5042
- var $i = r(null), ea = (e) => e === "highContrast" ? "high-contrast" : e, ta = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, syncDocument: r = !0, children: i }) => {
4994
+ var Zi = r(null), Qi = (e) => e === "highContrast" ? "high-contrast" : e, $i = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, syncDocument: r = !0, children: i }) => {
5043
4995
  let [a, o] = vt({
5044
4996
  value: e,
5045
4997
  defaultValue: t,
5046
4998
  onChange: n
5047
- }), s = ea(a);
4999
+ }), s = Qi(a);
5048
5000
  c(() => {
5049
5001
  if (!r || typeof document > "u") return;
5050
5002
  let { documentElement: e } = document, t = e.dataset.velliraTheme;
@@ -5060,7 +5012,7 @@ var $i = r(null), ea = (e) => e === "highContrast" ? "high-contrast" : e, ta = (
5060
5012
  theme: a,
5061
5013
  setTheme: o
5062
5014
  }), [a, o]);
5063
- return /* @__PURE__ */ g($i.Provider, {
5015
+ return /* @__PURE__ */ g(Zi.Provider, {
5064
5016
  value: l,
5065
5017
  children: /* @__PURE__ */ g("div", {
5066
5018
  "data-vellira-theme": s,
@@ -5068,13 +5020,13 @@ var $i = r(null), ea = (e) => e === "highContrast" ? "high-contrast" : e, ta = (
5068
5020
  })
5069
5021
  });
5070
5022
  };
5071
- ta.displayName = "ThemeProvider";
5023
+ $i.displayName = "ThemeProvider";
5072
5024
  //#endregion
5073
5025
  //#region src/theme/useTheme.ts
5074
- function na() {
5075
- let e = s($i);
5026
+ function ea() {
5027
+ let e = s(Zi);
5076
5028
  if (!e) throw Error("useTheme must be used within ThemeProvider.");
5077
5029
  return e;
5078
5030
  }
5079
5031
  //#endregion
5080
- export { ce as Accordion, Bi as Button, Gi as Checkbox, Yt as Dropdown, Jr as FormField, Xi as Input, Tn as Modal, Wn as Popover, Et as Portal, Tt as PortalProvider, Xn as Radio, ar as RadioGroup, ti as Select, Qi as Switch, xi as Tabs, ta as ThemeProvider, Ri as Tooltip, na as useTheme };
5032
+ export { q as Accordion, Ri as Button, Ui as Checkbox, Yt as Dropdown, Kr as FormField, Ji as Input, Cn as Modal, Hn as Popover, Et as Portal, Tt as PortalProvider, Jn as Radio, rr as RadioGroup, $r as Select, Xi as Switch, yi as Tabs, $i as ThemeProvider, Ii as Tooltip, ea as useTheme };