@vellira-ui/react 2.91.2 → 2.92.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
@@ -114,16 +114,16 @@ var ce = Object.assign(se, {
114
114
  k(ue, "arrow"), ue.displayName = "Dropdown.Arrow";
115
115
  //#endregion
116
116
  //#region src/components/Dropdown/internal/types.ts
117
- function de(e) {
117
+ function q(e) {
118
118
  return O(e);
119
119
  }
120
120
  //#endregion
121
121
  //#region src/components/Dropdown/internal/DropdownCollection.ts
122
- function q(e, t) {
122
+ function J(e, t) {
123
123
  let n = () => null;
124
124
  return k(n, e), n.displayName = t, n;
125
125
  }
126
- function fe(t) {
126
+ function de(t) {
127
127
  let n = 0, r, i, o, s, c = [], l = [], u = (e) => `${e}-${n++}`;
128
128
  function d(e) {
129
129
  l.push(e), c.push({
@@ -135,7 +135,7 @@ function fe(t) {
135
135
  function f(t, n = {}) {
136
136
  e.forEach(t, (e) => {
137
137
  if (!a(e)) return;
138
- let t = de(e.type);
138
+ let t = q(e.type);
139
139
  if (e.type.__velliraPortal) {
140
140
  o = e, f(e.props.children, n);
141
141
  return;
@@ -203,7 +203,7 @@ function fe(t) {
203
203
  type: "item",
204
204
  id: u("item"),
205
205
  props: t,
206
- label: he(t.children),
206
+ label: me(t.children),
207
207
  disabled: t.disabled
208
208
  });
209
209
  return;
@@ -214,7 +214,7 @@ function fe(t) {
214
214
  type: "checkbox",
215
215
  id: u("checkbox"),
216
216
  props: t,
217
- label: he(t.children),
217
+ label: me(t.children),
218
218
  disabled: t.disabled
219
219
  });
220
220
  return;
@@ -236,20 +236,20 @@ function fe(t) {
236
236
  props: t,
237
237
  groupId: n.radioGroupId ?? u("radio-group"),
238
238
  groupProps: n.radioGroupProps,
239
- label: he(t.children),
239
+ label: me(t.children),
240
240
  disabled: t.disabled
241
241
  });
242
242
  return;
243
243
  }
244
244
  case "sub": {
245
- let t = e.props, n = me(t.children);
245
+ let t = e.props, n = pe(t.children);
246
246
  if (!n.trigger) return;
247
- let r = n.trigger.props, i = fe(n.content?.props.children);
247
+ let r = n.trigger.props, i = de(n.content?.props.children);
248
248
  d({
249
249
  type: "subTrigger",
250
250
  id: u("sub"),
251
251
  props: r,
252
- label: he(r.children),
252
+ label: me(r.children),
253
253
  disabled: r.disabled,
254
254
  content: n.content?.props.children,
255
255
  subEntries: i.entries,
@@ -276,14 +276,14 @@ function fe(t) {
276
276
  trigger: r
277
277
  };
278
278
  }
279
- function pe(t) {
279
+ function fe(t) {
280
280
  let n, r, i, o, s = [];
281
281
  return e.forEach(t, (e) => {
282
282
  if (!a(e)) {
283
283
  s.push(e);
284
284
  return;
285
285
  }
286
- let t = de(e.type);
286
+ let t = q(e.type);
287
287
  if (t === "itemIcon") {
288
288
  i = e.props.children;
289
289
  return;
@@ -309,18 +309,18 @@ function pe(t) {
309
309
  shortcut: o
310
310
  };
311
311
  }
312
- function me(t) {
312
+ function pe(t) {
313
313
  let n, r;
314
314
  return e.forEach(t, (e) => {
315
315
  if (!a(e)) return;
316
- let t = de(e.type);
316
+ let t = q(e.type);
317
317
  t === "subTrigger" && (n = e), t === "subContent" && (r = e);
318
318
  }), {
319
319
  content: r,
320
320
  trigger: n
321
321
  };
322
322
  }
323
- function he(t) {
323
+ function me(t) {
324
324
  let n = [];
325
325
  function r(t) {
326
326
  e.forEach(t, (e) => {
@@ -329,7 +329,7 @@ function he(t) {
329
329
  return;
330
330
  }
331
331
  if (!a(e)) return;
332
- let t = de(e.type);
332
+ let t = q(e.type);
333
333
  t !== "itemBadge" && t !== "itemDescription" && t !== "itemIcon" && t !== "itemShortcut" && r(e.props.children);
334
334
  });
335
335
  }
@@ -337,7 +337,7 @@ function he(t) {
337
337
  }
338
338
  //#endregion
339
339
  //#region src/components/Dropdown/CheckboxItem/DropdownCheckboxItem.tsx
340
- var ge = q("checkboxItem", "Dropdown.CheckboxItem"), _e = {
340
+ var he = J("checkboxItem", "Dropdown.CheckboxItem"), ge = {
341
341
  dropdown: "_dropdown_m7rnq_1",
342
342
  "dropdown-in": "_dropdown-in_m7rnq_1",
343
343
  primary: "_primary_m7rnq_42",
@@ -349,31 +349,31 @@ var ge = q("checkboxItem", "Dropdown.CheckboxItem"), _e = {
349
349
  searchWrap: "_searchWrap_m7rnq_165",
350
350
  search: "_search_m7rnq_165",
351
351
  "dropdown-sheet-in": "_dropdown-sheet-in_m7rnq_1"
352
- }, ve = q("empty", "Dropdown.Empty"), ye = ({ children: e }) => /* @__PURE__ */ g("li", {
352
+ }, _e = J("empty", "Dropdown.Empty"), ve = ({ children: e }) => /* @__PURE__ */ g("li", {
353
353
  role: "presentation",
354
- className: _e.empty,
354
+ className: ge.empty,
355
355
  children: e ?? "No actions available"
356
356
  });
357
- ye.displayName = "DropdownEmptySurface";
357
+ ve.displayName = "DropdownEmptySurface";
358
358
  //#endregion
359
359
  //#region src/components/Dropdown/Group/DropdownGroup.tsx
360
- var be = q("group", "Dropdown.Group"), xe = () => null;
361
- xe.displayName = "DropdownGroupSurface";
360
+ var ye = J("group", "Dropdown.Group"), be = () => null;
361
+ be.displayName = "DropdownGroupSurface";
362
362
  //#endregion
363
363
  //#region src/components/Dropdown/internal/DropdownContext.tsx
364
- var Se = r(null), Ce = r(null), we = r(null), Te = Se.Provider, Ee = Ce.Provider;
365
- we.Provider;
366
- function De() {
367
- let e = s(Se);
364
+ var xe = r(null), Se = r(null), Ce = r(null), we = xe.Provider, Te = Se.Provider;
365
+ Ce.Provider;
366
+ function Ee() {
367
+ let e = s(xe);
368
368
  if (!e) throw Error("Dropdown compound components must be used inside Dropdown.");
369
369
  return e;
370
370
  }
371
- function Oe() {
372
- let e = s(Ce);
371
+ function De() {
372
+ let e = s(Se);
373
373
  if (!e) throw Error("Dropdown.Trigger must be used inside Dropdown.");
374
374
  return e;
375
375
  }
376
- var J = {
376
+ var Y = {
377
377
  item: "_item_xmygj_1",
378
378
  disabled: "_disabled_xmygj_35",
379
379
  active: "_active_xmygj_53",
@@ -398,15 +398,15 @@ var J = {
398
398
  "dropdown-sub-in": "_dropdown-sub-in_xmygj_1",
399
399
  subLabel: "_subLabel_xmygj_300",
400
400
  subSeparator: "_subSeparator_xmygj_308"
401
- }, ke = (e, t) => {
401
+ }, Oe = (e, t) => {
402
402
  process.env.NODE_ENV !== "production" && !e && console.warn(t);
403
- }, Ae = q("item", "Dropdown.Item"), je = ({ item: e, itemIndex: t }) => {
404
- let r = De(), 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 = pe(S.children), w = C.icon ?? S.icon, T = C.description ?? ("description" in S ? S.description : void 0), E = C.badge ?? ("badge" in S ? S.badge : void 0), D = C.shortcut ?? S.shortcut, O = C.content.length ? C.content : S.children, k = "color" in S ? S.color : void 0, A = e.type === "item" ? e.props.href : void 0, j = e.type === "item" ? e.props.target : void 0, M = e.type === "item" ? e.props.download : void 0, N = r.getItemId(t), P = u ? "menuitemcheckbox" : d ? "menuitemradio" : "menuitem", F = e.type === "item" && j === "_blank" && !e.props.rel ? "noreferrer noopener" : e.type === "item" ? e.props.rel : void 0, I = A ? "a" : "li", L = u || d, R = S.asChild && a(S.children) ? S.children : void 0, z = K(J.item, J[r.size], {
405
- [J.active]: c,
406
- [J.disabled]: x,
407
- [J.checked]: y
408
- }, k && k !== "default" ? J[k] : void 0, S.className);
409
- ke(!S.asChild || !!R, "Dropdown.Item: asChild requires a single valid React element child.");
403
+ }, ke = J("item", "Dropdown.Item"), Ae = ({ item: e, itemIndex: t }) => {
404
+ 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], {
405
+ [Y.active]: c,
406
+ [Y.disabled]: x,
407
+ [Y.checked]: y
408
+ }, k && k !== "default" ? Y[k] : void 0, S.className);
409
+ Oe(!S.asChild || !!R, "Dropdown.Item: asChild requires a single valid React element child.");
410
410
  let B = (t) => {
411
411
  if (x) {
412
412
  t.preventDefault();
@@ -416,7 +416,7 @@ var J = {
416
416
  let t = !y;
417
417
  s(t), e.props.onCheckedChange?.(t);
418
418
  }
419
- r.selectItem(e, Me(t));
419
+ r.selectItem(e, je(t));
420
420
  }, V = () => {
421
421
  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)));
422
422
  }, H = () => {
@@ -442,7 +442,7 @@ var J = {
442
442
  onMouseLeave: (e) => {
443
443
  R.props.onMouseLeave?.(e), e.defaultPrevented || H(e);
444
444
  }
445
- }), Ne(e, N, m, l, () => r.setOpenSubId(e.id))] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(I, {
445
+ }), Me(e, N, m, l, () => r.setOpenSubId(e.id))] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(I, {
446
446
  id: N,
447
447
  role: P,
448
448
  href: I === "a" && !x ? A : void 0,
@@ -462,42 +462,42 @@ var J = {
462
462
  onMouseLeave: H,
463
463
  children: [
464
464
  w && /* @__PURE__ */ g("span", {
465
- className: J.itemIcon,
465
+ className: Y.itemIcon,
466
466
  children: w
467
467
  }),
468
468
  /* @__PURE__ */ _("span", {
469
- className: J.itemText,
469
+ className: Y.itemText,
470
470
  children: [/* @__PURE__ */ g("span", {
471
- className: J.itemLabel,
471
+ className: Y.itemLabel,
472
472
  children: O
473
473
  }), T && /* @__PURE__ */ g("span", {
474
- className: J.itemDescription,
474
+ className: Y.itemDescription,
475
475
  children: T
476
476
  })]
477
477
  }),
478
478
  E && /* @__PURE__ */ g("span", {
479
- className: J.itemBadge,
479
+ className: Y.itemBadge,
480
480
  children: E
481
481
  }),
482
482
  D && /* @__PURE__ */ g("span", {
483
- className: J.itemShortcut,
483
+ className: Y.itemShortcut,
484
484
  children: D
485
485
  }),
486
486
  L && /* @__PURE__ */ g("span", {
487
- className: J.indicator,
487
+ className: Y.indicator,
488
488
  "aria-hidden": "true",
489
489
  children: y ? /* @__PURE__ */ g(v, {}) : null
490
490
  }),
491
491
  m && /* @__PURE__ */ g("span", {
492
- className: J.itemShortcut,
492
+ className: Y.itemShortcut,
493
493
  "aria-hidden": "true",
494
494
  children: /* @__PURE__ */ g(b, {})
495
495
  })
496
496
  ]
497
- }), Ne(e, N, m, l, () => r.setOpenSubId(e.id))] });
497
+ }), Me(e, N, m, l, () => r.setOpenSubId(e.id))] });
498
498
  };
499
- je.displayName = "DropdownItemRow";
500
- function Me(e) {
499
+ Ae.displayName = "DropdownItemRow";
500
+ function je(e) {
501
501
  let t = !1;
502
502
  return {
503
503
  originalEvent: e,
@@ -509,27 +509,27 @@ function Me(e) {
509
509
  }
510
510
  };
511
511
  }
512
- function Ne(e, t, n, r, i) {
512
+ function Me(e, t, n, r, i) {
513
513
  return !n || !r || e.type !== "subTrigger" || e.subEntries.length === 0 ? null : /* @__PURE__ */ g("ul", {
514
514
  role: "menu",
515
- className: J.subContent,
515
+ className: Y.subContent,
516
516
  onMouseEnter: i,
517
517
  children: e.subEntries.map((e) => e.type === "label" ? /* @__PURE__ */ g("li", {
518
518
  role: "presentation",
519
- className: J.subLabel,
519
+ className: Y.subLabel,
520
520
  children: e.props.children
521
521
  }, e.id) : e.type === "separator" ? /* @__PURE__ */ g("li", {
522
522
  role: "separator",
523
- className: J.subSeparator,
523
+ className: Y.subSeparator,
524
524
  "aria-hidden": "true"
525
- }, e.id) : e.type === "item" ? /* @__PURE__ */ g(Pe, {
525
+ }, e.id) : e.type === "item" ? /* @__PURE__ */ g(Ne, {
526
526
  item: e.item,
527
527
  id: `${t}-${e.itemIndex}`
528
528
  }, e.item.id) : null)
529
529
  });
530
530
  }
531
- function Pe({ id: e, item: t }) {
532
- let n = De(), [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 = pe(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) => {
531
+ function Ne({ id: e, item: t }) {
532
+ 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) => {
533
533
  if (b) {
534
534
  e.preventDefault();
535
535
  return;
@@ -538,7 +538,7 @@ function Pe({ id: e, item: t }) {
538
538
  let e = !s;
539
539
  i(e), t.props.onCheckedChange?.(e);
540
540
  }
541
- n.selectItem(t, Me(e));
541
+ n.selectItem(t, je(e));
542
542
  };
543
543
  return /* @__PURE__ */ _(E, {
544
544
  id: e,
@@ -550,66 +550,66 @@ function Pe({ id: e, item: t }) {
550
550
  tabIndex: b ? -1 : 0,
551
551
  "aria-disabled": b || void 0,
552
552
  "aria-checked": a || o ? s : void 0,
553
- className: K(J.item, J[n.size], {
554
- [J.disabled]: b,
555
- [J.checked]: s
556
- }, y && y !== "default" ? J[y] : void 0),
553
+ className: K(Y.item, Y[n.size], {
554
+ [Y.disabled]: b,
555
+ [Y.checked]: s
556
+ }, y && y !== "default" ? Y[y] : void 0),
557
557
  onClick: O,
558
558
  children: [
559
559
  D && /* @__PURE__ */ g("span", {
560
- className: J.indicator,
560
+ className: Y.indicator,
561
561
  "aria-hidden": "true",
562
562
  children: s ? /* @__PURE__ */ g(v, {}) : null
563
563
  }),
564
564
  u && /* @__PURE__ */ g("span", {
565
- className: J.itemIcon,
565
+ className: Y.itemIcon,
566
566
  children: u
567
567
  }),
568
568
  /* @__PURE__ */ _("span", {
569
- className: J.itemText,
569
+ className: Y.itemText,
570
570
  children: [/* @__PURE__ */ g("span", {
571
- className: J.itemLabel,
571
+ className: Y.itemLabel,
572
572
  children: h
573
573
  }), d && /* @__PURE__ */ g("span", {
574
- className: J.itemDescription,
574
+ className: Y.itemDescription,
575
575
  children: d
576
576
  })]
577
577
  }),
578
578
  f && /* @__PURE__ */ g("span", {
579
- className: J.itemBadge,
579
+ className: Y.itemBadge,
580
580
  children: f
581
581
  }),
582
582
  m && /* @__PURE__ */ g("span", {
583
- className: J.itemShortcut,
583
+ className: Y.itemShortcut,
584
584
  children: m
585
585
  })
586
586
  ]
587
587
  });
588
588
  }
589
- var Fe = { group: "_group_aviwv_1" }, Y = q("label", "Dropdown.Label"), Ie = ({ children: e, className: t }) => /* @__PURE__ */ g("li", {
589
+ var Pe = { group: "_group_aviwv_1" }, X = J("label", "Dropdown.Label"), Fe = ({ children: e, className: t }) => /* @__PURE__ */ g("li", {
590
590
  role: "presentation",
591
- className: K(Fe.group, t),
591
+ className: K(Pe.group, t),
592
592
  children: e
593
593
  });
594
- Ie.displayName = "DropdownLabelSurface";
594
+ Fe.displayName = "DropdownLabelSurface";
595
595
  //#endregion
596
596
  //#region src/components/Dropdown/Loading/DropdownLoading.tsx
597
- var Le = q("loading", "Dropdown.Loading"), Re = ({ children: e }) => /* @__PURE__ */ g("li", {
597
+ var Ie = J("loading", "Dropdown.Loading"), Le = ({ children: e }) => /* @__PURE__ */ g("li", {
598
598
  role: "presentation",
599
599
  "aria-live": "polite",
600
- className: _e.empty,
600
+ className: ge.empty,
601
601
  children: e ?? "Loading actions..."
602
602
  });
603
- Re.displayName = "DropdownLoadingSurface";
604
- var ze = { separator: "_separator_1v11r_1" }, Be = q("separator", "Dropdown.Separator"), Ve = ({ className: e }) => /* @__PURE__ */ g("li", {
603
+ Le.displayName = "DropdownLoadingSurface";
604
+ var Re = { separator: "_separator_1v11r_1" }, ze = J("separator", "Dropdown.Separator"), Be = ({ className: e }) => /* @__PURE__ */ g("li", {
605
605
  role: "separator",
606
- className: K(ze.separator, e),
606
+ className: K(Re.separator, e),
607
607
  "aria-hidden": "true"
608
608
  });
609
- Ve.displayName = "DropdownSeparatorSurface";
609
+ Be.displayName = "DropdownSeparatorSurface";
610
610
  //#endregion
611
611
  //#region src/hooks/behavior/focus/useAriaIsolation.ts
612
- var He = ({ active: e, enabled: t, content: n }) => {
612
+ var Ve = ({ active: e, enabled: t, content: n }) => {
613
613
  c(() => {
614
614
  if (!e || !t || !n) return;
615
615
  let r = [], i = n.parentElement;
@@ -635,16 +635,16 @@ var He = ({ active: e, enabled: t, content: n }) => {
635
635
  };
636
636
  //#endregion
637
637
  //#region src/hooks/behavior/overlay/useOverlayFocusRestore.ts
638
- function Ue(e) {
638
+ function He(e) {
639
639
  return !(e instanceof HTMLElement) || !e.isConnected ? !1 : (e.focus(), document.activeElement === e);
640
640
  }
641
- var We = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) => {
641
+ var Ue = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) => {
642
642
  let i = f(null), a = f(t), s = f(n), l = f(r);
643
643
  a.current = t, s.current = n, l.current = r;
644
644
  let u = o(() => {
645
645
  typeof document > "u" || (i.current = document.activeElement);
646
646
  }, []), d = o(() => {
647
- a.current && (Ue(s.current?.current) || Ue(i.current));
647
+ a.current && (He(s.current?.current) || He(i.current));
648
648
  }, []), p = o((e) => {
649
649
  j({
650
650
  enabled: a.current,
@@ -665,7 +665,7 @@ var We = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
665
665
  restoreFocusAfterClose: p,
666
666
  saveFocusSnapshot: u
667
667
  };
668
- }, Ge = () => {
668
+ }, We = () => {
669
669
  let e = !1;
670
670
  return {
671
671
  preventDefault: () => {
@@ -675,7 +675,7 @@ var We = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
675
675
  return e;
676
676
  }
677
677
  };
678
- }, Ke = (e) => {
678
+ }, Ge = (e) => {
679
679
  let t = !1;
680
680
  return {
681
681
  originalEvent: e,
@@ -686,26 +686,26 @@ var We = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
686
686
  return t;
687
687
  }
688
688
  };
689
- }, qe = [
689
+ }, Ke = [
690
690
  "a[href]",
691
691
  "button:not([disabled])",
692
692
  "textarea:not([disabled])",
693
693
  "input:not([disabled])",
694
694
  "select:not([disabled])",
695
695
  "[tabindex]:not([tabindex=\"-1\"])"
696
- ].join(","), Je = (e) => Array.from(e.querySelectorAll(qe)).filter((e) => !e.hasAttribute("disabled")), Ye = (e) => {
697
- (Je(e)[0] ?? e).focus();
698
- }, Xe = ({ active: e, contentRef: t, enabled: n, initialFocus: r, finalFocus: i, restoreFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s }) => {
699
- We({
696
+ ].join(","), qe = (e) => Array.from(e.querySelectorAll(Ke)).filter((e) => !e.hasAttribute("disabled")), Je = (e) => {
697
+ (qe(e)[0] ?? e).focus();
698
+ }, Ye = ({ active: e, contentRef: t, enabled: n, initialFocus: r, finalFocus: i, restoreFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s }) => {
699
+ Ue({
700
700
  active: e,
701
701
  enabled: a,
702
702
  finalFocus: i,
703
703
  onCloseAutoFocus: s
704
704
  }), c(() => {
705
705
  if (!e) return;
706
- let n = Ge();
706
+ let n = We();
707
707
  o?.(n), n.defaultPrevented || queueMicrotask(() => {
708
- r?.current?.focus(), !r?.current && t.current && Ye(t.current);
708
+ r?.current?.focus(), !r?.current && t.current && Je(t.current);
709
709
  });
710
710
  }, [
711
711
  e,
@@ -716,7 +716,7 @@ var We = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
716
716
  if (!e || !n) return;
717
717
  let r = (e) => {
718
718
  if (e.key !== "Tab" || !t.current) return;
719
- let n = Je(t.current);
719
+ let n = qe(t.current);
720
720
  if (n.length === 0) {
721
721
  e.preventDefault(), t.current.focus();
722
722
  return;
@@ -736,7 +736,7 @@ var We = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
736
736
  t,
737
737
  n
738
738
  ]);
739
- }, Ze = (e) => {
739
+ }, Xe = (e) => {
740
740
  let [t, n] = p(() => typeof window > "u" || typeof window.matchMedia != "function" || !e ? !1 : window.matchMedia(`(max-width: ${e}px)`).matches);
741
741
  return c(() => {
742
742
  if (typeof window > "u" || typeof window.matchMedia != "function" || !e) return;
@@ -745,8 +745,8 @@ var We = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
745
745
  t.removeEventListener("change", r);
746
746
  };
747
747
  }, [e]), t;
748
- }, Qe = ({ 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 = [] } = {}) => {
749
- let f = Ze(l), p = d(() => [
748
+ }, 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 = [] } = {}) => {
749
+ let f = Xe(l), p = d(() => [
750
750
  R(i),
751
751
  ...s ? [L({ padding: a })] : [],
752
752
  B({ apply({ rects: e, elements: t }) {
@@ -786,14 +786,14 @@ var We = ({ active: e, enabled: t = !0, finalFocus: n, onCloseAutoFocus: r }) =>
786
786
  setFloatingRef: m.setFloating,
787
787
  updatePosition: _
788
788
  };
789
- }, $e = T({
789
+ }, Qe = T({
790
790
  defaultLevel: "popover",
791
791
  levels: te.tokens.zIndex
792
- }), et = C("WebOverlayManager");
793
- function tt() {
792
+ }), $e = C("WebOverlayManager");
793
+ function et() {
794
794
  let e = w({
795
- diagnostics: et,
796
- policy: $e
795
+ diagnostics: $e,
796
+ policy: Qe
797
797
  }), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
798
798
  return {
799
799
  register(t) {
@@ -853,8 +853,8 @@ function tt() {
853
853
  }
854
854
  };
855
855
  }
856
- var nt = tt(), rt = r(null), it = () => s(rt) ?? nt, at = ({ active: e, id: t, zIndexLevel: n, zIndex: r }) => {
857
- let i = it(), a = m(i.subscribe, i.getSnapshot, i.getSnapshot);
856
+ var tt = et(), nt = r(null), rt = () => s(nt) ?? tt, it = ({ active: e, id: t, zIndexLevel: n, zIndex: r }) => {
857
+ let i = rt(), a = m(i.subscribe, i.getSnapshot, i.getSnapshot);
858
858
  c(() => {
859
859
  if (e) return i.register({
860
860
  id: t,
@@ -877,7 +877,7 @@ var nt = tt(), rt = r(null), it = () => s(rt) ?? nt, at = ({ active: e, id: t, z
877
877
  order: l?.order,
878
878
  zIndex: i.getZIndex(t)
879
879
  };
880
- }, ot = E((e) => {
880
+ }, at = E((e) => {
881
881
  if (typeof document > "u") return;
882
882
  let t = (t) => {
883
883
  t.key === "Escape" && e.dispatchEscapeKeyDown(t);
@@ -885,7 +885,7 @@ var nt = tt(), rt = r(null), it = () => s(rt) ?? nt, at = ({ active: e, id: t, z
885
885
  return document.addEventListener("keydown", t), () => {
886
886
  document.removeEventListener("keydown", t);
887
887
  };
888
- }), st = E((e) => {
888
+ }), ot = E((e) => {
889
889
  if (typeof document > "u") return;
890
890
  let t = (t) => {
891
891
  e.dispatchPointerDownOutside(t);
@@ -894,14 +894,14 @@ var nt = tt(), rt = r(null), it = () => s(rt) ?? nt, at = ({ active: e, id: t, z
894
894
  document.removeEventListener("pointerdown", t);
895
895
  };
896
896
  });
897
+ function st(e) {
898
+ return at.retain(e);
899
+ }
897
900
  function ct(e) {
898
901
  return ot.retain(e);
899
902
  }
900
- function lt(e) {
901
- return st.retain(e);
902
- }
903
- var ut = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registered: i = !1, zIndex: a, contentRef: o, ignoreRefs: s = [], closeOnEscape: l, closeOnOutsidePress: u, onEscapeKeyDown: d, onPointerDownOutside: p, onInteractOutside: m, requestClose: h }) => {
904
- let g = it(), _ = at({
903
+ var lt = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registered: i = !1, zIndex: a, contentRef: o, ignoreRefs: s = [], closeOnEscape: l, closeOnOutsidePress: u, onEscapeKeyDown: d, onPointerDownOutside: p, onInteractOutside: m, requestClose: h }) => {
904
+ let g = rt(), _ = it({
905
905
  active: r && !i,
906
906
  id: t,
907
907
  zIndexLevel: n,
@@ -909,7 +909,7 @@ var ut = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registe
909
909
  }), v = f(s);
910
910
  return v.current = s, c(() => {
911
911
  if (!e) return;
912
- let n = ct(g), r = g.registerEscapeHandler(t, (e) => {
912
+ let n = st(g), r = g.registerEscapeHandler(t, (e) => {
913
913
  d?.(e), !(e.defaultPrevented || !l) && h("escape-key", e);
914
914
  });
915
915
  return () => {
@@ -924,9 +924,9 @@ var ut = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registe
924
924
  h
925
925
  ]), c(() => {
926
926
  if (!e) return;
927
- let n = lt(g), r = g.registerPointerDownOutsideHandler(t, (e) => {
927
+ let n = ct(g), r = g.registerPointerDownOutsideHandler(t, (e) => {
928
928
  if (e.target instanceof Node && [o, ...v.current].some((t) => t.current?.contains(e.target))) return;
929
- let t = Ke(e);
929
+ let t = Ge(e);
930
930
  p?.(t), m?.(t), !(t.defaultPrevented || !u) && h("outside-press", e);
931
931
  });
932
932
  return () => {
@@ -942,8 +942,8 @@ var ut = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registe
942
942
  p,
943
943
  h
944
944
  ]), _;
945
- }, dt = ({ open: e, onOpenChange: t, placement: n = "bottom-start", strategy: r, portal: i = !0, presentation: a, animationStyle: o, offset: s, collisionPadding: c, matchTriggerWidth: l, avoidCollisions: u, mobileSheetBreakpoint: d, middleware: f } = {}) => ({
946
- ...Qe({
945
+ }, ut = ({ open: e, onOpenChange: t, placement: n = "bottom-start", strategy: r, portal: i = !0, presentation: a, animationStyle: o, offset: s, collisionPadding: c, matchTriggerWidth: l, avoidCollisions: u, mobileSheetBreakpoint: d, middleware: f } = {}) => ({
946
+ ...Ze({
947
947
  open: e,
948
948
  onOpenChange: t,
949
949
  placement: n,
@@ -960,29 +960,29 @@ var ut = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registe
960
960
  presentation: a,
961
961
  defaultPresentation: i ? "floating" : "inline"
962
962
  })
963
- }), ft = 0, pt = "", mt = {
963
+ }), dt = 0, ft = "", pt = {
964
964
  lock() {
965
- typeof document > "u" || (ft === 0 && (pt = document.body.style.overflow, document.body.style.overflow = "hidden"), ft += 1);
965
+ typeof document > "u" || (dt === 0 && (ft = document.body.style.overflow, document.body.style.overflow = "hidden"), dt += 1);
966
966
  },
967
967
  unlock() {
968
- typeof document > "u" || (ft = Math.max(0, ft - 1), ft === 0 && (document.body.style.overflow = pt));
968
+ typeof document > "u" || (dt = Math.max(0, dt - 1), dt === 0 && (document.body.style.overflow = ft));
969
969
  }
970
- }, ht = ({ active: e, enabled: t = !0 }) => {
970
+ }, mt = ({ active: e, enabled: t = !0 }) => {
971
971
  c(() => {
972
- if (!(!e || !t)) return mt.lock(), () => {
973
- mt.unlock();
972
+ if (!(!e || !t)) return pt.lock(), () => {
973
+ pt.unlock();
974
974
  };
975
975
  }, [e, t]);
976
- }, gt = () => typeof document > "u" ? null : document.body, _t = ({ container: e } = {}) => {
976
+ }, ht = () => typeof document > "u" ? null : document.body, gt = ({ container: e } = {}) => {
977
977
  let [t, n] = p(!1);
978
978
  return c(() => {
979
979
  n(!0);
980
- }, []), t ? e ?? document.getElementById("overlay-root") ?? gt() : null;
980
+ }, []), t ? e ?? document.getElementById("overlay-root") ?? ht() : null;
981
981
  };
982
982
  //#endregion
983
983
  //#region src/hooks/behavior/select/useSelectPosition.ts
984
- function vt({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
985
- return dt({
984
+ function _t({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
985
+ return ut({
986
986
  open: t,
987
987
  onOpenChange: r,
988
988
  placement: i === "bottom" || i === "top" ? `${i}-start` : i,
@@ -993,12 +993,12 @@ function vt({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange:
993
993
  }
994
994
  //#endregion
995
995
  //#region src/hooks/useControllableState.ts
996
- var yt = ({ value: e, defaultValue: t, onChange: n }) => {
996
+ var vt = ({ value: e, defaultValue: t, onChange: n }) => {
997
997
  let [r, i] = p(t), a = e !== void 0;
998
998
  return [a ? e : r, o((e) => {
999
999
  a || i(e), n?.(e);
1000
1000
  }, [a, n])];
1001
- }, bt = ({ activeIndex: e, setActiveIndex: t, items: n, isOpen: r, onOpen: i, onSelect: a, onClose: s, getItemText: l, loop: u = !0 }) => {
1001
+ }, yt = ({ activeIndex: e, setActiveIndex: t, items: n, isOpen: r, onOpen: i, onSelect: a, onClose: s, getItemText: l, loop: u = !0 }) => {
1002
1002
  let d = f({
1003
1003
  value: "",
1004
1004
  timeoutId: void 0
@@ -1079,7 +1079,7 @@ var yt = ({ value: e, defaultValue: t, onChange: n }) => {
1079
1079
  h,
1080
1080
  g
1081
1081
  ]) };
1082
- }, xt = ({ items: e, open: t, defaultOpen: n = !1, disabled: r = !1, onOpenChange: i, onSelect: a, getItemValue: s, getItemText: l, loop: u = !0 }) => {
1082
+ }, bt = ({ items: e, open: t, defaultOpen: n = !1, disabled: r = !1, onOpenChange: i, onSelect: a, getItemValue: s, getItemText: l, loop: u = !0 }) => {
1083
1083
  let [d, f] = p(n), [m, h] = p(-1), g = t !== void 0, _ = t ?? d, v = o(() => e.findIndex((e) => !e.disabled), [e]), y = o(() => {
1084
1084
  for (let t = e.length - 1; t >= 0; t--) if (!e[t]?.disabled) return t;
1085
1085
  return -1;
@@ -1134,7 +1134,7 @@ var yt = ({ value: e, defaultValue: t, onChange: n }) => {
1134
1134
  m,
1135
1135
  e,
1136
1136
  T
1137
- ]), { onKeyDown: D } = bt({
1137
+ ]), { onKeyDown: D } = yt({
1138
1138
  activeIndex: m,
1139
1139
  setActiveIndex: h,
1140
1140
  items: e,
@@ -1163,8 +1163,8 @@ var yt = ({ value: e, defaultValue: t, onChange: n }) => {
1163
1163
  getFirstEnabledIndex: v,
1164
1164
  getLastEnabledIndex: y
1165
1165
  };
1166
- }, St = ({ open: e, defaultOpen: t = !1, onOpenChange: n, closeOnEscape: r, closeOnOutsidePress: i }) => {
1167
- let a = l(), s = l(), c = l(), [u, d] = yt({
1166
+ }, xt = ({ open: e, defaultOpen: t = !1, onOpenChange: n, closeOnEscape: r, closeOnOutsidePress: i }) => {
1167
+ let a = l(), s = l(), c = l(), [u, d] = vt({
1168
1168
  value: e,
1169
1169
  defaultValue: t,
1170
1170
  onChange: n
@@ -1182,7 +1182,7 @@ var yt = ({ value: e, defaultValue: t, onChange: n }) => {
1182
1182
  titleId: s,
1183
1183
  descriptionId: c
1184
1184
  };
1185
- }, Ct = ({ value: e, defaultValue: t, onValueChange: n, options: r, multiple: i = !1, maxSelected: a, closeOnSelect: s = !i, disabled: l = !1, open: u, defaultOpen: f = !1, onOpenChange: m }) => {
1185
+ }, St = ({ value: e, defaultValue: t, onValueChange: n, options: r, multiple: i = !1, maxSelected: a, closeOnSelect: s = !i, disabled: l = !1, open: u, defaultOpen: f = !1, onOpenChange: m }) => {
1186
1186
  let h = o((e) => {
1187
1187
  if (n) {
1188
1188
  if (i) {
@@ -1195,11 +1195,11 @@ var yt = ({ value: e, defaultValue: t, onChange: n }) => {
1195
1195
  }
1196
1196
  n(Array.isArray(e) ? e[0] ?? "" : e);
1197
1197
  }
1198
- }, [i, n]), [g, _] = yt({
1198
+ }, [i, n]), [g, _] = vt({
1199
1199
  value: e,
1200
1200
  defaultValue: t ?? (i ? [] : ""),
1201
1201
  onChange: h
1202
- }), [v, y] = yt({
1202
+ }), [v, y] = vt({
1203
1203
  value: u,
1204
1204
  defaultValue: f,
1205
1205
  onChange: m
@@ -1268,7 +1268,7 @@ var yt = ({ value: e, defaultValue: t, onChange: n }) => {
1268
1268
  b,
1269
1269
  r,
1270
1270
  k
1271
- ]), { onKeyDown: j } = bt({
1271
+ ]), { onKeyDown: j } = yt({
1272
1272
  activeIndex: b,
1273
1273
  setActiveIndex: x,
1274
1274
  items: r,
@@ -1298,8 +1298,8 @@ var yt = ({ value: e, defaultValue: t, onChange: n }) => {
1298
1298
  selectActiveOption: A,
1299
1299
  onKeyDown: j
1300
1300
  };
1301
- }, wt = ({ value: e, defaultValue: t = "", onValueChange: n }) => {
1302
- let [r, i] = yt({
1301
+ }, Ct = ({ value: e, defaultValue: t = "", onValueChange: n }) => {
1302
+ let [r, i] = vt({
1303
1303
  value: e,
1304
1304
  defaultValue: t,
1305
1305
  onChange: n
@@ -1308,25 +1308,25 @@ var yt = ({ value: e, defaultValue: t, onChange: n }) => {
1308
1308
  value: r,
1309
1309
  setValue: i
1310
1310
  };
1311
- }, Tt = r(null), Et = ({ children: e, container: t = null }) => /* @__PURE__ */ g(Tt.Provider, {
1311
+ }, wt = r(null), Tt = ({ children: e, container: t = null }) => /* @__PURE__ */ g(wt.Provider, {
1312
1312
  value: t,
1313
1313
  children: e
1314
- }), Dt = ({ children: e, container: t }) => {
1315
- let n = s(Tt), r = _t({ container: t ?? n });
1314
+ }), Et = ({ children: e, container: t }) => {
1315
+ let n = s(wt), r = gt({ container: t ?? n });
1316
1316
  return r ? N(e, r) : null;
1317
1317
  };
1318
- Dt.__velliraPortal = !0, Dt.displayName = "Portal", Et.displayName = "PortalProvider";
1318
+ Et.__velliraPortal = !0, Et.displayName = "Portal", Tt.displayName = "PortalProvider";
1319
1319
  //#endregion
1320
1320
  //#region src/components/Dropdown/Content/DropdownContent.tsx
1321
- var Ot = ({ className: e }) => {
1322
- let n = De(), { contentReadyToFocus: r, isOpen: i, setContentRef: a } = n, s = f(null), l = o((e) => {
1321
+ var Dt = ({ className: e }) => {
1322
+ let n = Ee(), { contentReadyToFocus: r, isOpen: i, setContentRef: a } = n, s = f(null), l = o((e) => {
1323
1323
  s.current = e, a(e);
1324
1324
  }, [a]);
1325
1325
  if (c(() => {
1326
1326
  let e = s.current;
1327
1327
  !i || !r || !e || e.contains(document.activeElement) || e.focus({ preventScroll: !0 });
1328
1328
  }, [r, i]), !i) return null;
1329
- let u = K(_e.dropdown, _e[n.color], n.contentProps?.className, e), d = /* @__PURE__ */ _("ul", {
1329
+ let u = K(ge.dropdown, ge[n.color], n.contentProps?.className, e), d = /* @__PURE__ */ _("ul", {
1330
1330
  ref: l,
1331
1331
  id: n.contentId,
1332
1332
  role: "menu",
@@ -1343,9 +1343,9 @@ var Ot = ({ className: e }) => {
1343
1343
  "data-color": n.color,
1344
1344
  children: [n.searchable && /* @__PURE__ */ _("li", {
1345
1345
  role: "presentation",
1346
- className: K(_e.searchWrap, n.searchProps?.className),
1346
+ className: K(ge.searchWrap, n.searchProps?.className),
1347
1347
  children: [/* @__PURE__ */ g(S, { "aria-hidden": "true" }), /* @__PURE__ */ g("input", {
1348
- className: _e.search,
1348
+ className: ge.search,
1349
1349
  value: n.searchValue,
1350
1350
  placeholder: n.searchPlaceholder,
1351
1351
  "aria-label": n.searchProps?.["aria-label"] ?? n.searchPlaceholder,
@@ -1355,25 +1355,25 @@ var Ot = ({ className: e }) => {
1355
1355
  e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "Enter" && e.key !== "Escape" && e.stopPropagation();
1356
1356
  }
1357
1357
  })]
1358
- }), n.loading ? /* @__PURE__ */ g(Re, { children: n.loadingText }) : n.searchable && n.items.length === 0 ? /* @__PURE__ */ g(ye, { children: n.empty }) : n.entries.length ? n.entries.map((e) => e.type === "groupStart" ? /* @__PURE__ */ g(xe, {}, e.id) : e.type === "groupEnd" ? null : e.type === "label" ? /* @__PURE__ */ g(Ie, { ...e.props }, e.id) : e.type === "separator" ? /* @__PURE__ */ g(Ve, { ...e.props }, e.id) : e.type === "empty" ? /* @__PURE__ */ g(ye, { children: e.props.children }, e.id) : e.type === "loading" ? /* @__PURE__ */ g(Re, { children: e.props.children }, e.id) : e.type === "arrow" ? /* @__PURE__ */ g(ue, { ...e.props }, e.id) : /* @__PURE__ */ g(t, { children: /* @__PURE__ */ g(je, {
1358
+ }), 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, {
1359
1359
  item: e.item,
1360
1360
  itemIndex: e.itemIndex
1361
- }) }, e.item.id)) : /* @__PURE__ */ g(ye, {})]
1361
+ }) }, e.item.id)) : /* @__PURE__ */ g(ve, {})]
1362
1362
  });
1363
- return n.portal ? /* @__PURE__ */ g(Dt, { children: d }) : d;
1363
+ return n.portal ? /* @__PURE__ */ g(Et, { children: d }) : d;
1364
1364
  };
1365
- k(Ot, "content"), Ot.displayName = "Dropdown.Content";
1365
+ k(Dt, "content"), Dt.displayName = "Dropdown.Content";
1366
1366
  //#endregion
1367
1367
  //#region src/components/Dropdown/ItemBadge/DropdownItemBadge.tsx
1368
- var kt = q("itemBadge", "Dropdown.ItemBadge"), At = q("itemDescription", "Dropdown.ItemDescription"), jt = q("itemIcon", "Dropdown.ItemIcon"), Mt = q("itemShortcut", "Dropdown.ItemShortcut"), Nt = q("radioGroup", "Dropdown.RadioGroup"), Pt = q("radioItem", "Dropdown.RadioItem");
1368
+ 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");
1369
1369
  //#endregion
1370
1370
  //#region src/components/Dropdown/internal/composeEventHandlers.ts
1371
- function Ft(e, t) {
1371
+ function Pt(e, t) {
1372
1372
  return (n) => {
1373
1373
  e?.(n), n.defaultPrevented || t(n);
1374
1374
  };
1375
1375
  }
1376
- function It(...e) {
1376
+ function Ft(...e) {
1377
1377
  return (t) => {
1378
1378
  e.forEach((e) => {
1379
1379
  if (e) {
@@ -1386,14 +1386,14 @@ function It(...e) {
1386
1386
  });
1387
1387
  };
1388
1388
  }
1389
- function Lt(e) {
1389
+ function It(e) {
1390
1390
  return typeof e == "number" ? `${e}px` : e;
1391
1391
  }
1392
- var Rt = { wrapper: "_wrapper_14ue8_1" }, zt = ({ 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 }) => {
1393
- 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(() => fe(e), [e]), ie = G.content?.props.command ?? !1, ae = k || A || ie || !!G.search, oe = d(() => Vt(G.items), [G.items]), se = d(() => G.items.map((e) => ({
1392
+ 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 }) => {
1393
+ 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) => ({
1394
1394
  disabled: e.disabled,
1395
1395
  label: e.label
1396
- })), [G.items]), ce = d(() => !ae || !re.trim() ? G : Ht(G, re), [
1396
+ })), [G.items]), ce = d(() => !ae || !re.trim() ? G : Vt(G, re), [
1397
1397
  ae,
1398
1398
  G,
1399
1399
  re
@@ -1409,7 +1409,7 @@ var Rt = { wrapper: "_wrapper_14ue8_1" }, zt = ({ children: e, open: t, defaultO
1409
1409
  }), t;
1410
1410
  });
1411
1411
  }, [oe]);
1412
- let { activeIndex: ue, setActiveIndex: de, isOpen: q, closeDropdown: pe, toggleDropdown: me, onKeyDown: he } = xt({
1412
+ let { activeIndex: ue, setActiveIndex: q, isOpen: J, closeDropdown: fe, toggleDropdown: pe, onKeyDown: me } = bt({
1413
1413
  items: ae ? le : se,
1414
1414
  open: t,
1415
1415
  defaultOpen: n,
@@ -1418,8 +1418,8 @@ var Rt = { wrapper: "_wrapper_14ue8_1" }, zt = ({ children: e, open: t, defaultO
1418
1418
  getItemValue: (e, t) => (ae ? ce.items : G.items)[t]?.id ?? "",
1419
1419
  getItemText: (e) => e.label,
1420
1420
  loop: T
1421
- }), { floatingStyles: ge, isMobileSheet: _e, isPositioned: ve, setRef: ye, setFloatingRef: be } = dt({
1422
- open: q,
1421
+ }), { floatingStyles: he, isMobileSheet: ge, isPositioned: _e, setRef: ve, setFloatingRef: ye } = ut({
1422
+ open: J,
1423
1423
  placement: s,
1424
1424
  strategy: u,
1425
1425
  portal: x,
@@ -1428,20 +1428,20 @@ var Rt = { wrapper: "_wrapper_14ue8_1" }, zt = ({ children: e, open: t, defaultO
1428
1428
  offset: m,
1429
1429
  collisionPadding: h,
1430
1430
  mobileSheetBreakpoint: 640
1431
- }), xe = o((e) => {
1432
- j === void 0 && ne(e), P?.(e), de(0);
1431
+ }), be = o((e) => {
1432
+ j === void 0 && ne(e), P?.(e), q(0);
1433
1433
  }, [
1434
1434
  P,
1435
1435
  j,
1436
- de
1436
+ q
1437
1437
  ]);
1438
- ht({
1439
- active: q,
1438
+ mt({
1439
+ active: J,
1440
1440
  enabled: C
1441
1441
  });
1442
- let Se = o(() => {
1443
- pe(), B.current?.focus();
1444
- }, [pe]), Ce = o((e, t) => {
1442
+ let xe = o(() => {
1443
+ fe(), B.current?.focus();
1444
+ }, [fe]), Se = o((e, t) => {
1445
1445
  if (e.disabled || D) return;
1446
1446
  if (e.type === "subTrigger") {
1447
1447
  U(e.id);
@@ -1452,12 +1452,12 @@ var Rt = { wrapper: "_wrapper_14ue8_1" }, zt = ({ children: e, open: t, defaultO
1452
1452
  [e.groupId]: e.props.value
1453
1453
  })), e.groupProps?.onValueChange?.(e.props.value));
1454
1454
  let n = e.props.closeOnSelect ?? (e.type !== "checkbox" && w);
1455
- !t.defaultPrevented && n && Se();
1455
+ !t.defaultPrevented && n && xe();
1456
1456
  }, [
1457
- Se,
1457
+ xe,
1458
1458
  w,
1459
1459
  D
1460
- ]), we = o((e) => {
1460
+ ]), Ce = o((e) => {
1461
1461
  let t = ce.items[ue];
1462
1462
  if (e.key === "ArrowRight" && t?.type === "subTrigger") {
1463
1463
  e.preventDefault(), U(t.id);
@@ -1469,56 +1469,56 @@ var Rt = { wrapper: "_wrapper_14ue8_1" }, zt = ({ children: e, open: t, defaultO
1469
1469
  }
1470
1470
  if ((e.key === "Enter" || e.key === " ") && t) {
1471
1471
  e.preventDefault();
1472
- let n = Bt(e);
1473
- Ce(t, n);
1472
+ let n = zt(e);
1473
+ Se(t, n);
1474
1474
  return;
1475
1475
  }
1476
- he(e), e.key === "Escape" && B.current?.focus();
1476
+ me(e), e.key === "Escape" && B.current?.focus();
1477
1477
  }, [
1478
1478
  ue,
1479
1479
  ce.items,
1480
- he,
1480
+ me,
1481
1481
  H,
1482
- Ce
1483
- ]), De = o((e) => {
1484
- e.preventDefault(), me();
1485
- }, [me]), Oe = o((e) => {
1486
- B.current = e, ye(e);
1487
- }, [ye]), J = o((e) => {
1488
- V.current = e, be(e), _e && e?.focus({ preventScroll: !0 });
1489
- }, [_e, be]), ke = ut({
1490
- active: q,
1482
+ Se
1483
+ ]), Ee = o((e) => {
1484
+ e.preventDefault(), pe();
1485
+ }, [pe]), De = o((e) => {
1486
+ B.current = e, ve(e);
1487
+ }, [ve]), Y = o((e) => {
1488
+ V.current = e, ye(e), ge && e?.focus({ preventScroll: !0 });
1489
+ }, [ge, ye]), Oe = lt({
1490
+ active: J,
1491
1491
  id: z,
1492
1492
  zIndexLevel: "dropdown",
1493
1493
  closeOnEscape: !0,
1494
1494
  closeOnOutsidePress: !0,
1495
1495
  contentRef: V,
1496
1496
  ignoreRefs: [B],
1497
- requestClose: () => pe()
1498
- }), Ae = {
1499
- ...ge,
1500
- zIndex: ke.zIndex,
1501
- minWidth: Lt(y),
1502
- maxWidth: Lt(b)
1503
- }, je = {
1497
+ requestClose: () => fe()
1498
+ }), ke = {
1499
+ ...he,
1500
+ zIndex: Oe.zIndex,
1501
+ minWidth: It(y),
1502
+ maxWidth: It(b)
1503
+ }, Ae = {
1504
1504
  disabled: E,
1505
- isOpen: q,
1505
+ isOpen: J,
1506
1506
  contentId: z,
1507
1507
  triggerId: R,
1508
- setTriggerRef: Oe,
1509
- onClick: De,
1510
- onKeyDown: we
1511
- }, Me = {
1508
+ setTriggerRef: De,
1509
+ onClick: Ee,
1510
+ onKeyDown: Ce
1511
+ }, je = {
1512
1512
  activeIndex: ue,
1513
1513
  closeOnSelect: w,
1514
1514
  color: a,
1515
- contentReadyToFocus: _e || ve,
1515
+ contentReadyToFocus: ge || _e,
1516
1516
  contentId: z,
1517
1517
  contentProps: G.content?.props,
1518
1518
  disabled: E,
1519
1519
  entries: ce.entries,
1520
1520
  getItemId: (e) => `${z}-item-${e}`,
1521
- isOpen: q,
1521
+ isOpen: J,
1522
1522
  items: ce.items,
1523
1523
  loading: D,
1524
1524
  loadingText: O,
@@ -1526,16 +1526,16 @@ var Rt = { wrapper: "_wrapper_14ue8_1" }, zt = ({ children: e, open: t, defaultO
1526
1526
  maxWidth: b,
1527
1527
  minWidth: y,
1528
1528
  openSubId: H,
1529
- onKeyDown: we,
1529
+ onKeyDown: Ce,
1530
1530
  portal: !G.portal && x,
1531
1531
  radioValues: W,
1532
1532
  searchPlaceholder: G.search?.props.placeholder ?? N ?? (A || ie ? "Type a command..." : "Search actions..."),
1533
1533
  searchProps: G.search?.props,
1534
1534
  searchValue: re,
1535
1535
  searchable: ae,
1536
- selectItem: Ce,
1537
- setActiveIndex: de,
1538
- setContentRef: J,
1536
+ selectItem: Se,
1537
+ setActiveIndex: q,
1538
+ setContentRef: Y,
1539
1539
  setOpenSubId: U,
1540
1540
  setRadioValue: (e, t) => {
1541
1541
  ee((n) => ({
@@ -1543,25 +1543,25 @@ var Rt = { wrapper: "_wrapper_14ue8_1" }, zt = ({ children: e, open: t, defaultO
1543
1543
  [e]: t
1544
1544
  }));
1545
1545
  },
1546
- setSearchValue: xe,
1546
+ setSearchValue: be,
1547
1547
  size: i,
1548
- surfaceStyle: Ae,
1548
+ surfaceStyle: ke,
1549
1549
  triggerId: R
1550
1550
  };
1551
- return /* @__PURE__ */ g(Ee, {
1552
- value: je,
1553
- children: /* @__PURE__ */ g(Te, {
1554
- value: Me,
1551
+ return /* @__PURE__ */ g(Te, {
1552
+ value: Ae,
1553
+ children: /* @__PURE__ */ g(we, {
1554
+ value: je,
1555
1555
  children: /* @__PURE__ */ _("div", {
1556
- className: K(Rt.wrapper, I),
1556
+ className: K(Lt.wrapper, I),
1557
1557
  "data-disabled": E || void 0,
1558
- children: [G.trigger ?? null, G.portal ?? G.content ?? /* @__PURE__ */ g(Ot, {})]
1558
+ children: [G.trigger ?? null, G.portal ?? G.content ?? /* @__PURE__ */ g(Dt, {})]
1559
1559
  })
1560
1560
  })
1561
1561
  });
1562
1562
  };
1563
- zt.displayName = "DropdownRoot";
1564
- function Bt(e) {
1563
+ Rt.displayName = "DropdownRoot";
1564
+ function zt(e) {
1565
1565
  let t = !1;
1566
1566
  return {
1567
1567
  originalEvent: e,
@@ -1573,13 +1573,13 @@ function Bt(e) {
1573
1573
  }
1574
1574
  };
1575
1575
  }
1576
- function Vt(e) {
1576
+ function Bt(e) {
1577
1577
  let t = [];
1578
1578
  return e.forEach((e) => {
1579
- t.push(e), e.type === "subTrigger" && t.push(...Vt(e.subItems));
1579
+ t.push(e), e.type === "subTrigger" && t.push(...Bt(e.subItems));
1580
1580
  }), t;
1581
1581
  }
1582
- function Ht(e, t) {
1582
+ function Vt(e, t) {
1583
1583
  let n = t.trim().toLocaleLowerCase(), r = new Set(e.items.filter((e) => e.label.toLocaleLowerCase().includes(n)).map((e) => e.id)), i = e.items.filter((e) => r.has(e.id));
1584
1584
  return {
1585
1585
  ...e,
@@ -1589,7 +1589,7 @@ function Ht(e, t) {
1589
1589
  }
1590
1590
  //#endregion
1591
1591
  //#region src/components/Dropdown/Search/DropdownSearch.tsx
1592
- var Ut = q("search", "Dropdown.Search"), Wt = q("subContent", "Dropdown.SubContent"), Gt = q("subTrigger", "Dropdown.SubTrigger"), Kt = q("sub", "Dropdown.Sub"), qt = {
1592
+ var Ht = J("search", "Dropdown.Search"), Ut = J("subContent", "Dropdown.SubContent"), Wt = J("subTrigger", "Dropdown.SubTrigger"), Gt = J("sub", "Dropdown.Sub"), Kt = {
1593
1593
  button: "_button_bb3ib_1",
1594
1594
  disabled: "_disabled_bb3ib_63",
1595
1595
  arrow: "_arrow_bb3ib_71",
@@ -1605,21 +1605,21 @@ var Ut = q("search", "Dropdown.Search"), Wt = q("subContent", "Dropdown.SubConte
1605
1605
  lg: "_lg_bb3ib_350",
1606
1606
  label: "_label_bb3ib_362",
1607
1607
  open: "_open_bb3ib_390"
1608
- }, Jt = (e) => /* @__PURE__ */ g(Yt, { ...e });
1609
- k(Jt, "trigger"), Jt.displayName = "Dropdown.Trigger";
1610
- var Yt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1611
- let o = De(), s = Oe(), c = t && a(e) ? e : void 0, l = o.disabled || r, u = {
1608
+ }, qt = (e) => /* @__PURE__ */ g(Jt, { ...e });
1609
+ k(qt, "trigger"), qt.displayName = "Dropdown.Trigger";
1610
+ var Jt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1611
+ let o = Ee(), s = De(), c = t && a(e) ? e : void 0, l = o.disabled || r, u = {
1612
1612
  id: s.triggerId,
1613
- ref: c ? It(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
1613
+ ref: c ? Ft(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
1614
1614
  "aria-controls": s.isOpen ? s.contentId : void 0,
1615
1615
  "aria-disabled": l || void 0,
1616
1616
  "aria-expanded": s.isOpen,
1617
1617
  "aria-haspopup": "menu",
1618
- className: K(!c && qt.button, !c && qt[o.size], !c && qt[o.color], i),
1618
+ className: K(!c && Kt.button, !c && Kt[o.size], !c && Kt[o.color], i),
1619
1619
  "data-state": s.isOpen ? "open" : "closed",
1620
1620
  disabled: l || void 0,
1621
- onClick: Ft(c?.props.onClick, s.onClick),
1622
- onKeyDown: Ft(c?.props.onKeyDown, s.onKeyDown)
1621
+ onClick: Pt(c?.props.onClick, s.onClick),
1622
+ onKeyDown: Pt(c?.props.onKeyDown, s.onKeyDown)
1623
1623
  };
1624
1624
  return c ? n(c, {
1625
1625
  ...u,
@@ -1628,68 +1628,68 @@ var Yt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
1628
1628
  type: "button",
1629
1629
  ...u,
1630
1630
  children: [/* @__PURE__ */ g("span", {
1631
- className: qt.label,
1631
+ className: Kt.label,
1632
1632
  children: e
1633
1633
  }), /* @__PURE__ */ g("span", {
1634
- className: K(qt.arrow, { [qt.open]: s.isOpen }),
1634
+ className: K(Kt.arrow, { [Kt.open]: s.isOpen }),
1635
1635
  "aria-hidden": "true",
1636
1636
  children: /* @__PURE__ */ g(y, {})
1637
1637
  })]
1638
1638
  });
1639
1639
  };
1640
- Yt.displayName = "DropdownTriggerSurface";
1640
+ Jt.displayName = "DropdownTriggerSurface";
1641
1641
  //#endregion
1642
1642
  //#region src/components/Dropdown/Dropdown.tsx
1643
- var Xt = Object.assign(zt, {
1644
- Trigger: Jt,
1645
- Content: Ot,
1646
- Search: Ut,
1647
- Item: Ae,
1648
- CheckboxItem: ge,
1649
- RadioGroup: Nt,
1650
- RadioItem: Pt,
1651
- Group: be,
1652
- Label: Y,
1653
- Separator: Be,
1654
- Sub: Kt,
1655
- SubTrigger: Gt,
1656
- SubContent: Wt,
1657
- ItemIcon: jt,
1658
- ItemDescription: At,
1659
- ItemBadge: kt,
1660
- ItemShortcut: Mt,
1643
+ var Yt = Object.assign(Rt, {
1644
+ Trigger: qt,
1645
+ Content: Dt,
1646
+ Search: Ht,
1647
+ Item: ke,
1648
+ CheckboxItem: he,
1649
+ RadioGroup: Mt,
1650
+ RadioItem: Nt,
1651
+ Group: ye,
1652
+ Label: X,
1653
+ Separator: ze,
1654
+ Sub: Gt,
1655
+ SubTrigger: Wt,
1656
+ SubContent: Ut,
1657
+ ItemIcon: At,
1658
+ ItemDescription: kt,
1659
+ ItemBadge: Ot,
1660
+ ItemShortcut: jt,
1661
1661
  Arrow: ue,
1662
- Empty: ve,
1663
- Loading: Le
1662
+ Empty: _e,
1663
+ Loading: Ie
1664
1664
  });
1665
- Xt.displayName = "Dropdown";
1665
+ Yt.displayName = "Dropdown";
1666
1666
  //#endregion
1667
1667
  //#region src/components/Modal/internal/ModalContext.tsx
1668
- var Zt = r(void 0), Qt = r(void 0), $t = () => {
1669
- let e = s(Zt);
1668
+ var Xt = r(void 0), Zt = r(void 0), Qt = () => {
1669
+ let e = s(Xt);
1670
1670
  if (e === void 0) throw Error("Modal compound components must be used inside Modal");
1671
1671
  return e;
1672
- }, en = () => s(Qt), tn = Zt.Provider, nn = Qt.Provider;
1673
- Zt.displayName = "ModalContext", Qt.displayName = "ModalContentContext";
1674
- var rn = {
1672
+ }, $t = () => s(Zt), en = Xt.Provider, tn = Zt.Provider;
1673
+ Xt.displayName = "ModalContext", Zt.displayName = "ModalContentContext";
1674
+ var nn = {
1675
1675
  modalBody: "_modalBody_ou4ff_1",
1676
1676
  inside: "_inside_ou4ff_6"
1677
- }, an = ({ children: e, className: t }) => {
1678
- let n = en();
1677
+ }, rn = ({ children: e, className: t }) => {
1678
+ let n = $t();
1679
1679
  return /* @__PURE__ */ g("div", {
1680
- className: K(rn.modalBody, n?.scrollBehavior === "inside" && rn.inside, t),
1680
+ className: K(nn.modalBody, n?.scrollBehavior === "inside" && nn.inside, t),
1681
1681
  children: e
1682
1682
  });
1683
1683
  };
1684
- an.displayName = "ModalBody";
1684
+ rn.displayName = "ModalBody";
1685
1685
  //#endregion
1686
1686
  //#region src/components/Modal/internal/composeEventHandlers.ts
1687
- function on(e, t) {
1687
+ function an(e, t) {
1688
1688
  return (n) => {
1689
1689
  e?.(n), n.defaultPrevented || t(n);
1690
1690
  };
1691
1691
  }
1692
- function sn(...e) {
1692
+ function on(...e) {
1693
1693
  return (t) => {
1694
1694
  e.forEach((e) => {
1695
1695
  if (e) {
@@ -1702,17 +1702,17 @@ function sn(...e) {
1702
1702
  });
1703
1703
  };
1704
1704
  }
1705
- var cn = {
1705
+ var sn = {
1706
1706
  modalHeader: "_modalHeader_hw9hl_1",
1707
1707
  modalHeaderText: "_modalHeaderText_hw9hl_8",
1708
1708
  modalHeaderTitle: "_modalHeaderTitle_hw9hl_13",
1709
1709
  modalHeaderDescription: "_modalHeaderDescription_hw9hl_20",
1710
1710
  modalHeaderCloseButton: "_modalHeaderCloseButton_hw9hl_26"
1711
- }, ln = ({ asChild: e = !1, children: t, className: r, "aria-label": i }) => {
1712
- let o = $t(), s = e && a(t) ? t : void 0, c = {
1711
+ }, cn = ({ asChild: e = !1, children: t, className: r, "aria-label": i }) => {
1712
+ let o = Qt(), s = e && a(t) ? t : void 0, c = {
1713
1713
  "aria-label": s ? i : i ?? "Close dialog",
1714
- className: K(!s && cn.modalHeaderCloseButton, r),
1715
- onClick: on(s?.props.onClick, o.requestClose)
1714
+ className: K(!s && sn.modalHeaderCloseButton, r),
1715
+ onClick: an(s?.props.onClick, o.requestClose)
1716
1716
  };
1717
1717
  return s ? n(s, {
1718
1718
  ...c,
@@ -1724,8 +1724,8 @@ var cn = {
1724
1724
  children: /* @__PURE__ */ g(x, { size: 16 })
1725
1725
  });
1726
1726
  };
1727
- ln.displayName = "Modal.Close";
1728
- var un = {
1727
+ cn.displayName = "Modal.Close";
1728
+ var ln = {
1729
1729
  content: "_content_1tnw8_1",
1730
1730
  animated: "_animated_1tnw8_24",
1731
1731
  "modal-content-open": "_modal-content-open_1tnw8_1",
@@ -1739,11 +1739,11 @@ var un = {
1739
1739
  full: "_full_1tnw8_107",
1740
1740
  inside: "_inside_1tnw8_113",
1741
1741
  outside: "_outside_1tnw8_117"
1742
- }, dn = ({ children: e, size: t = "md", placement: n = "center", scrollBehavior: r = "inside", animated: i = !0, forceMount: a = !1, ariaLabel: s, ariaLabelledBy: c, ariaDescribedBy: l, className: u, style: d }) => {
1743
- let f = $t(), m = f.open, h = m && f.shouldRender, [_, v] = p(null), y = o((e) => {
1742
+ }, 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 }) => {
1743
+ let f = Qt(), m = f.open, h = m && f.shouldRender, [_, v] = p(null), y = o((e) => {
1744
1744
  f.setContentRef(e), v(e);
1745
1745
  }, [f]);
1746
- if (Xe({
1746
+ if (Ye({
1747
1747
  active: h,
1748
1748
  contentRef: f.contentRef,
1749
1749
  enabled: f.trapFocus,
@@ -1752,19 +1752,19 @@ var un = {
1752
1752
  onCloseAutoFocus: f.onCloseAutoFocus,
1753
1753
  onOpenAutoFocus: f.onOpenAutoFocus,
1754
1754
  restoreFocus: f.restoreFocus
1755
- }), He({
1755
+ }), Ve({
1756
1756
  active: m,
1757
1757
  content: _,
1758
1758
  enabled: f.modal
1759
1759
  }), !f.shouldRender && !a) return null;
1760
1760
  let b = c ?? (s ? void 0 : f.titleId), x = l ?? f.descriptionId;
1761
- return /* @__PURE__ */ g(nn, {
1761
+ return /* @__PURE__ */ g(tn, {
1762
1762
  value: { scrollBehavior: r },
1763
1763
  children: /* @__PURE__ */ g("div", {
1764
1764
  id: f.contentId,
1765
- ref: sn(y),
1765
+ ref: on(y),
1766
1766
  tabIndex: -1,
1767
- className: K(un.content, un[t], un[n], un[r], i && un.animated, u),
1767
+ className: K(ln.content, ln[t], ln[n], ln[r], i && ln.animated, u),
1768
1768
  style: {
1769
1769
  ...f.animationStyle,
1770
1770
  ...d
@@ -1780,61 +1780,61 @@ var un = {
1780
1780
  })
1781
1781
  });
1782
1782
  };
1783
- dn.displayName = "ModalContent";
1784
- var fn = { modalFooter: "_modalFooter_sb1pn_1" }, pn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1785
- className: K(fn.modalFooter, t),
1783
+ un.displayName = "ModalContent";
1784
+ var dn = { modalFooter: "_modalFooter_sb1pn_1" }, fn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1785
+ className: K(dn.modalFooter, t),
1786
1786
  children: e
1787
1787
  });
1788
- pn.displayName = "ModalFooter";
1788
+ fn.displayName = "ModalFooter";
1789
1789
  //#endregion
1790
1790
  //#region src/components/Modal/Header/ModalDescription.tsx
1791
- var mn = ({ children: e }) => {
1792
- let { descriptionId: t, setDescriptionPresent: n } = $t();
1791
+ var pn = ({ children: e }) => {
1792
+ let { descriptionId: t, setDescriptionPresent: n } = Qt();
1793
1793
  return c(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ g("p", {
1794
1794
  id: t,
1795
- className: cn.modalHeaderDescription,
1795
+ className: sn.modalHeaderDescription,
1796
1796
  children: e
1797
1797
  });
1798
1798
  };
1799
- mn.displayName = "Modal.Description";
1799
+ pn.displayName = "Modal.Description";
1800
1800
  //#endregion
1801
1801
  //#region src/components/Modal/Header/ModalHeader.tsx
1802
- var hn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1803
- className: K(cn.modalHeader, t),
1802
+ var mn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
1803
+ className: K(sn.modalHeader, t),
1804
1804
  children: e
1805
1805
  });
1806
- hn.displayName = "ModalHeader";
1806
+ mn.displayName = "ModalHeader";
1807
1807
  //#endregion
1808
1808
  //#region src/components/Modal/Header/ModalTitle.tsx
1809
- var gn = ({ children: e }) => {
1810
- let { setTitlePresent: t, titleId: n } = $t();
1809
+ var hn = ({ children: e }) => {
1810
+ let { setTitlePresent: t, titleId: n } = Qt();
1811
1811
  return u(() => (t(!0), () => t(!1)), [t]), /* @__PURE__ */ g("h2", {
1812
1812
  id: n,
1813
- className: cn.modalHeaderTitle,
1813
+ className: sn.modalHeaderTitle,
1814
1814
  children: e
1815
1815
  });
1816
1816
  };
1817
- gn.displayName = "Modal.Title";
1818
- var _n = {
1817
+ hn.displayName = "Modal.Title";
1818
+ var gn = {
1819
1819
  overlay: "_overlay_d6wdf_1",
1820
1820
  "overlay--open": "_overlay--open_d6wdf_10",
1821
1821
  "overlay--animated": "_overlay--animated_d6wdf_15",
1822
1822
  "modal-overlay-open": "_modal-overlay-open_d6wdf_1",
1823
1823
  "modal-overlay-close": "_modal-overlay-close_d6wdf_1"
1824
- }, vn = ({ className: e, animated: t = !0, forceMount: n = !1 }) => {
1825
- let { animation: r, animationStyle: i, open: a, shouldRender: o } = $t();
1824
+ }, _n = ({ className: e, animated: t = !0, forceMount: n = !1 }) => {
1825
+ let { animation: r, animationStyle: i, open: a, shouldRender: o } = Qt();
1826
1826
  return !o && !n ? null : /* @__PURE__ */ g("div", {
1827
- className: K(_n.overlay, a && _n["overlay--open"], t && _n["overlay--animated"], e),
1827
+ className: K(gn.overlay, a && gn["overlay--open"], t && gn["overlay--animated"], e),
1828
1828
  style: i,
1829
1829
  "data-state": a ? "open" : "closed",
1830
1830
  "data-animation": r,
1831
1831
  "aria-hidden": "true"
1832
1832
  });
1833
1833
  };
1834
- vn.displayName = "ModalOverlay";
1834
+ _n.displayName = "ModalOverlay";
1835
1835
  //#endregion
1836
1836
  //#region src/components/Modal/internal/useModalDismiss.ts
1837
- var yn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnEscape: i, closeOnOutsidePress: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => ut({
1837
+ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnEscape: i, closeOnOutsidePress: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => lt({
1838
1838
  active: e,
1839
1839
  registrationActive: t,
1840
1840
  id: n,
@@ -1846,27 +1846,27 @@ var yn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1846
1846
  onInteractOutside: c ? (e) => c(e) : void 0,
1847
1847
  onPointerDownOutside: s ? (e) => s(e) : void 0,
1848
1848
  requestClose: l
1849
- }), bn = {
1849
+ }), yn = {
1850
1850
  standard: te.components.modal.motion.easing,
1851
1851
  linear: "linear",
1852
1852
  ease: "ease",
1853
1853
  "ease-in": "ease-in",
1854
1854
  "ease-out": "ease-out",
1855
1855
  "ease-in-out": "ease-in-out"
1856
- }, xn = (e) => Number.parseFloat(e), Sn = (e) => typeof e == "number" ? {
1856
+ }, bn = (e) => Number.parseFloat(e), xn = (e) => typeof e == "number" ? {
1857
1857
  close: e,
1858
1858
  open: e
1859
1859
  } : {
1860
- close: e?.close ?? xn(te.components.modal.motion.closeDuration),
1861
- open: e?.open ?? xn(te.components.modal.motion.openDuration)
1862
- }, Cn = ({ open: e, defaultOpen: t = !1, onOpenChange: n, animation: r = "scale", duration: i, easing: a = "standard", modal: s = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, preventScroll: m = !0, restoreFocus: h = !0, trapFocus: g = !0, initialFocus: _, finalFocus: v, onOpenAutoFocus: y, onCloseAutoFocus: b, onEscapeKeyDown: x, onPointerDownOutside: S, onInteractOutside: C, role: w = "dialog" }) => {
1863
- let T = f(null), { contentId: E, descriptionId: D, open: O, requestClose: k, setOpen: A, titleId: j } = St({
1860
+ close: e?.close ?? bn(te.components.modal.motion.closeDuration),
1861
+ open: e?.open ?? bn(te.components.modal.motion.openDuration)
1862
+ }, 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" }) => {
1863
+ let T = f(null), { contentId: E, descriptionId: D, open: O, requestClose: k, setOpen: A, titleId: j } = xt({
1864
1864
  open: e,
1865
1865
  defaultOpen: t,
1866
1866
  onOpenChange: n,
1867
1867
  closeOnEscape: l,
1868
1868
  closeOnOutsidePress: u
1869
- }), [M, N] = p(!1), [P, F] = p(!1), [I, L] = p(0), R = Sn(i), z = r === "none" ? 0 : R.close, [B, V] = p(O);
1869
+ }), [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);
1870
1870
  c(() => {
1871
1871
  if (O) {
1872
1872
  V(!0);
@@ -1888,11 +1888,11 @@ var yn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1888
1888
  }, [k]), U = o((e) => {
1889
1889
  T.current !== e && (T.current = e, L((e) => e + 1));
1890
1890
  }, []);
1891
- ht({
1891
+ mt({
1892
1892
  active: O,
1893
1893
  enabled: m
1894
1894
  });
1895
- let W = yn({
1895
+ let W = vn({
1896
1896
  active: O,
1897
1897
  registrationActive: B,
1898
1898
  id: E,
@@ -1905,7 +1905,7 @@ var yn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1905
1905
  requestClose: H
1906
1906
  }), ee = d(() => ({
1907
1907
  "--modal-animation-close-duration": `${R.close}ms`,
1908
- "--modal-animation-easing": bn[a],
1908
+ "--modal-animation-easing": yn[a],
1909
1909
  "--modal-animation-open-duration": `${R.open}ms`,
1910
1910
  "--z-index-modal": W.zIndex === void 0 ? void 0 : `${W.zIndex}`
1911
1911
  }), [
@@ -1913,7 +1913,7 @@ var yn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1913
1913
  R.open,
1914
1914
  a,
1915
1915
  W.zIndex
1916
- ]), te = dt({
1916
+ ]), te = ut({
1917
1917
  presentation: "modal",
1918
1918
  animationStyle: ee
1919
1919
  }).animationStyle ?? ee;
@@ -1995,9 +1995,9 @@ var yn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
1995
1995
  ]),
1996
1996
  open: O
1997
1997
  };
1998
- }, wn = ({ children: e, className: t, ...n }) => {
1999
- let { context: r, open: i } = Cn(n);
2000
- return /* @__PURE__ */ g(tn, {
1998
+ }, Cn = ({ children: e, className: t, ...n }) => {
1999
+ let { context: r, open: i } = Sn(n);
2000
+ return /* @__PURE__ */ g(en, {
2001
2001
  value: r,
2002
2002
  children: /* @__PURE__ */ g("div", {
2003
2003
  className: K(t),
@@ -2006,11 +2006,11 @@ var yn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
2006
2006
  })
2007
2007
  });
2008
2008
  };
2009
- wn.displayName = "ModalRoot";
2009
+ Cn.displayName = "ModalRoot";
2010
2010
  //#endregion
2011
2011
  //#region src/components/Modal/Trigger/ModalTrigger.tsx
2012
- var Tn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
2013
- let o = $t(), s = t && a(e) ? e : void 0, c = r, l = {
2012
+ var wn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
2013
+ let o = Qt(), s = t && a(e) ? e : void 0, c = r, l = {
2014
2014
  "aria-controls": o.contentId,
2015
2015
  "aria-disabled": c || void 0,
2016
2016
  "aria-expanded": o.open,
@@ -2018,13 +2018,13 @@ var Tn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
2018
2018
  className: K(i),
2019
2019
  "data-state": o.open ? "open" : "closed",
2020
2020
  disabled: c || void 0,
2021
- onClick: on(s?.props.onClick, () => {
2021
+ onClick: an(s?.props.onClick, () => {
2022
2022
  c || o.setOpen(!0);
2023
2023
  })
2024
2024
  };
2025
2025
  return s ? n(s, {
2026
2026
  ...l,
2027
- ref: sn(s.props.ref),
2027
+ ref: on(s.props.ref),
2028
2028
  className: K(s.props.className, i)
2029
2029
  }) : /* @__PURE__ */ g("button", {
2030
2030
  type: "button",
@@ -2032,50 +2032,50 @@ var Tn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
2032
2032
  children: e
2033
2033
  });
2034
2034
  };
2035
- Tn.displayName = "Modal.Trigger";
2035
+ wn.displayName = "Modal.Trigger";
2036
2036
  //#endregion
2037
2037
  //#region src/components/Modal/Modal.tsx
2038
- var En = Object.assign(wn, {
2039
- Trigger: Tn,
2040
- Overlay: vn,
2041
- Content: dn,
2042
- Header: hn,
2043
- Title: gn,
2044
- Description: mn,
2045
- Body: an,
2046
- Footer: pn,
2047
- Close: ln
2038
+ var Tn = Object.assign(Cn, {
2039
+ Trigger: wn,
2040
+ Overlay: _n,
2041
+ Content: un,
2042
+ Header: mn,
2043
+ Title: hn,
2044
+ Description: pn,
2045
+ Body: rn,
2046
+ Footer: fn,
2047
+ Close: cn
2048
2048
  });
2049
- En.displayName = "Modal";
2049
+ Tn.displayName = "Modal";
2050
2050
  //#endregion
2051
2051
  //#region src/components/Popover/Context/PopoverContext.tsx
2052
- var Dn = r(null);
2053
- function On({ children: e, value: t }) {
2054
- return /* @__PURE__ */ g(Dn.Provider, {
2052
+ var En = r(null);
2053
+ function Dn({ children: e, value: t }) {
2054
+ return /* @__PURE__ */ g(En.Provider, {
2055
2055
  value: t,
2056
2056
  children: e
2057
2057
  });
2058
2058
  }
2059
- function kn(e) {
2060
- let t = s(Dn);
2059
+ function On(e) {
2060
+ let t = s(En);
2061
2061
  if (!t) throw Error(`${e} must be used within Popover.Root`);
2062
2062
  return t;
2063
2063
  }
2064
2064
  //#endregion
2065
2065
  //#region src/components/Popover/Anchor/PopoverAnchor.tsx
2066
- function An(e, t) {
2066
+ function kn(e, t) {
2067
2067
  if (typeof e == "function") {
2068
2068
  e(t);
2069
2069
  return;
2070
2070
  }
2071
2071
  e && (e.current = t);
2072
2072
  }
2073
- function jn({ children: e, asChild: t = !1, className: r, ...i }) {
2074
- let { setAnchorRef: o } = kn("Popover.Anchor"), s = t && a(e) ? e : void 0;
2073
+ function An({ children: e, asChild: t = !1, className: r, ...i }) {
2074
+ let { setAnchorRef: o } = On("Popover.Anchor"), s = t && a(e) ? e : void 0;
2075
2075
  return s ? n(s, {
2076
2076
  ...i,
2077
2077
  ref: (e) => {
2078
- An(s.props.ref, e), o(e);
2078
+ kn(s.props.ref, e), o(e);
2079
2079
  },
2080
2080
  className: K(s.props.className, r)
2081
2081
  }) : /* @__PURE__ */ g("div", {
@@ -2085,14 +2085,14 @@ function jn({ children: e, asChild: t = !1, className: r, ...i }) {
2085
2085
  children: e
2086
2086
  });
2087
2087
  }
2088
- jn.displayName = "Popover.Anchor";
2089
- var Mn = { arrow: "_arrow_6lbs0_1" }, Nn = {
2088
+ An.displayName = "Popover.Anchor";
2089
+ var jn = { arrow: "_arrow_6lbs0_1" }, Mn = {
2090
2090
  start: "20%",
2091
2091
  center: null,
2092
2092
  end: "80%"
2093
2093
  };
2094
- function Pn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center", offset: i, className: a, ...o }) {
2095
- let { arrowRef: s, floatingContext: c, placement: l } = kn("Popover.Arrow"), u = i ?? Nn[r], d = l.split("-")[0];
2094
+ function Nn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center", offset: i, className: a, ...o }) {
2095
+ let { arrowRef: s, floatingContext: c, placement: l } = On("Popover.Arrow"), u = i ?? Mn[r], d = l.split("-")[0];
2096
2096
  return /* @__PURE__ */ g(P, {
2097
2097
  ...o,
2098
2098
  ref: s,
@@ -2105,14 +2105,14 @@ function Pn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center
2105
2105
  stroke: "var(--border-muted)",
2106
2106
  strokeWidth: 1,
2107
2107
  "data-side": d,
2108
- className: K(Mn.arrow, a)
2108
+ className: K(jn.arrow, a)
2109
2109
  });
2110
2110
  }
2111
- Pn.displayName = "Popover.Arrow";
2111
+ Nn.displayName = "Popover.Arrow";
2112
2112
  //#endregion
2113
2113
  //#region src/components/Popover/Close/PopoverClose.tsx
2114
- function Fn({ children: e, asChild: t = !1, className: r, disabled: i, onClick: o, ...s }) {
2115
- let { setOpen: c } = kn("Popover.Close"), l = t && a(e) ? e : void 0, u = i || l?.props.disabled === !0, d = (e) => {
2114
+ function Pn({ children: e, asChild: t = !1, className: r, disabled: i, onClick: o, ...s }) {
2115
+ let { setOpen: c } = On("Popover.Close"), l = t && a(e) ? e : void 0, u = i || l?.props.disabled === !0, d = (e) => {
2116
2116
  l?.props.onClick?.(e), o?.(e), !(e.defaultPrevented || u) && c(!1, {
2117
2117
  reason: "close",
2118
2118
  event: e.nativeEvent
@@ -2133,20 +2133,20 @@ function Fn({ children: e, asChild: t = !1, className: r, disabled: i, onClick:
2133
2133
  children: e
2134
2134
  });
2135
2135
  }
2136
- Fn.displayName = "Popover.Close";
2137
- var In = {
2136
+ Pn.displayName = "Popover.Close";
2137
+ var Fn = {
2138
2138
  content: "_content_1jzfn_1",
2139
2139
  "popover-in": "_popover-in_1jzfn_1"
2140
2140
  };
2141
2141
  //#endregion
2142
2142
  //#region src/components/Popover/Content/PopoverContent.tsx
2143
- function Ln({ children: e, asChild: t = !1, className: r, style: i, initialFocus: s, returnFocus: c = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, onEscapeKeyDown: d, onPointerDownOutside: f, onInteractOutside: m, onOpenAutoFocus: h, onCloseAutoFocus: _, ...v }) {
2144
- let { open: y, modal: b, portal: x, triggerRef: S, anchorRef: C, contentRef: w, contentId: T, titleId: E, descriptionId: D, placement: O, floatingStyles: k, setOpen: A, setContentRef: j } = kn("Popover.Content"), [M, N] = p(null), P = o((e, t) => {
2143
+ 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 }) {
2144
+ 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) => {
2145
2145
  A(!1, {
2146
2146
  reason: e,
2147
2147
  event: t
2148
2148
  });
2149
- }, [A]), F = ut({
2149
+ }, [A]), F = lt({
2150
2150
  active: y,
2151
2151
  id: T,
2152
2152
  zIndexLevel: "popover",
@@ -2159,7 +2159,7 @@ function Ln({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2159
2159
  onInteractOutside: m,
2160
2160
  requestClose: P
2161
2161
  });
2162
- Xe({
2162
+ Ye({
2163
2163
  active: y,
2164
2164
  contentRef: w,
2165
2165
  enabled: b,
@@ -2174,10 +2174,10 @@ function Ln({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2174
2174
  h
2175
2175
  ]),
2176
2176
  onCloseAutoFocus: _
2177
- }), ht({
2177
+ }), mt({
2178
2178
  active: y,
2179
2179
  enabled: b
2180
- }), He({
2180
+ }), Ve({
2181
2181
  active: y,
2182
2182
  enabled: b,
2183
2183
  content: M
@@ -2195,7 +2195,7 @@ function Ln({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2195
2195
  "aria-describedby": D,
2196
2196
  "data-state": "open",
2197
2197
  "data-side": L,
2198
- className: K(In.content, r),
2198
+ className: K(Fn.content, r),
2199
2199
  style: {
2200
2200
  ...k,
2201
2201
  zIndex: F.zIndex,
@@ -2204,7 +2204,7 @@ function Ln({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2204
2204
  }, z = t && a(e) ? e : void 0, B = z ? n(z, {
2205
2205
  ...R,
2206
2206
  ref: I,
2207
- className: K(z.props.className, In.content, r),
2207
+ className: K(z.props.className, Fn.content, r),
2208
2208
  style: {
2209
2209
  ...k,
2210
2210
  zIndex: F.zIndex,
@@ -2216,33 +2216,33 @@ function Ln({ children: e, asChild: t = !1, className: r, style: i, initialFocus
2216
2216
  ...R,
2217
2217
  children: e
2218
2218
  });
2219
- return x ? /* @__PURE__ */ g(Dt, { children: B }) : B;
2219
+ return x ? /* @__PURE__ */ g(Et, { children: B }) : B;
2220
2220
  }
2221
- Ln.displayName = "Popover.Content";
2222
- var Rn = { description: "_description_hji8o_1" };
2221
+ In.displayName = "Popover.Content";
2222
+ var Ln = { description: "_description_hji8o_1" };
2223
2223
  //#endregion
2224
2224
  //#region src/components/Popover/Description/PopoverDescription.tsx
2225
- function zn({ children: e, asChild: t = !1, className: r, ...i }) {
2226
- let { descriptionId: o } = kn("Popover.Description"), s = t && a(e) ? e : void 0;
2225
+ function Rn({ children: e, asChild: t = !1, className: r, ...i }) {
2226
+ let { descriptionId: o } = On("Popover.Description"), s = t && a(e) ? e : void 0;
2227
2227
  return s ? n(s, {
2228
2228
  ...i,
2229
2229
  id: o,
2230
- className: K(s.props.className, Rn.description, r)
2230
+ className: K(s.props.className, Ln.description, r)
2231
2231
  }) : /* @__PURE__ */ g("p", {
2232
2232
  ...i,
2233
2233
  id: o,
2234
- className: K(Rn.description, r),
2234
+ className: K(Ln.description, r),
2235
2235
  children: e
2236
2236
  });
2237
2237
  }
2238
- zn.displayName = "Popover.Description";
2238
+ Rn.displayName = "Popover.Description";
2239
2239
  //#endregion
2240
2240
  //#region src/components/Popover/Root/PopoverRoot.tsx
2241
- function Bn(e, t) {
2241
+ function zn(e, t) {
2242
2242
  return t === "center" ? e : `${e}-${t}`;
2243
2243
  }
2244
- function Vn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenChange: i, side: a = "bottom", align: s = "center", sideOffset: c = 8, collisionPadding: u = 8, avoidCollisions: p = !0, portal: m = !0, strategy: h }) {
2245
- 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] = yt({
2244
+ 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 }) {
2245
+ 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({
2246
2246
  value: t,
2247
2247
  defaultValue: n,
2248
2248
  onChange: (e) => {
@@ -2253,9 +2253,9 @@ function Vn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
2253
2253
  }, [D]), k = f(null), A = d(() => [F({
2254
2254
  element: k,
2255
2255
  padding: 8
2256
- })], []), { context: j, floatingStyles: M, isPositioned: N, placement: P, setFloatingRef: I, setRef: L } = dt({
2256
+ })], []), { context: j, floatingStyles: M, isPositioned: N, placement: P, setFloatingRef: I, setRef: L } = ut({
2257
2257
  open: E,
2258
- placement: Bn(a, s),
2258
+ placement: zn(a, s),
2259
2259
  strategy: h,
2260
2260
  portal: m,
2261
2261
  offset: c + 7,
@@ -2269,7 +2269,7 @@ function Vn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
2269
2269
  }, [L]), B = o((e) => {
2270
2270
  y.current = e, I(e);
2271
2271
  }, [I]);
2272
- return /* @__PURE__ */ g(On, {
2272
+ return /* @__PURE__ */ g(Dn, {
2273
2273
  value: {
2274
2274
  open: E,
2275
2275
  modal: r,
@@ -2294,27 +2294,27 @@ function Vn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
2294
2294
  children: e
2295
2295
  });
2296
2296
  }
2297
- var Hn = { title: "_title_1gham_1" };
2297
+ var Vn = { title: "_title_1gham_1" };
2298
2298
  //#endregion
2299
2299
  //#region src/components/Popover/Title/PopoverTitle.tsx
2300
- function Un({ children: e, asChild: t = !1, className: r, ...i }) {
2301
- let { titleId: o } = kn("Popover.Title"), s = t && a(e) ? e : void 0;
2300
+ function Hn({ children: e, asChild: t = !1, className: r, ...i }) {
2301
+ let { titleId: o } = On("Popover.Title"), s = t && a(e) ? e : void 0;
2302
2302
  return s ? n(s, {
2303
2303
  ...i,
2304
2304
  id: o,
2305
- className: K(s.props.className, Hn.title, r)
2305
+ className: K(s.props.className, Vn.title, r)
2306
2306
  }) : /* @__PURE__ */ g("h2", {
2307
2307
  ...i,
2308
2308
  id: o,
2309
- className: K(Hn.title, r),
2309
+ className: K(Vn.title, r),
2310
2310
  children: e
2311
2311
  });
2312
2312
  }
2313
- Un.displayName = "Popover.Title";
2313
+ Hn.displayName = "Popover.Title";
2314
2314
  //#endregion
2315
2315
  //#region src/components/Popover/Trigger/PopoverTrigger.tsx
2316
- function Wn({ children: e, asChild: t = !1, disabled: r = !1, className: i, onClick: o, ...s }) {
2317
- let { open: c, triggerId: l, contentId: u, setOpen: d, setTriggerRef: f } = kn("Popover.Trigger"), p = t && a(e) ? e : void 0, m = r || p?.props.disabled === !0, h = {
2316
+ function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onClick: o, ...s }) {
2317
+ 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 = {
2318
2318
  id: l,
2319
2319
  "aria-controls": c ? u : void 0,
2320
2320
  "aria-expanded": c,
@@ -2347,22 +2347,22 @@ function Wn({ children: e, asChild: t = !1, disabled: r = !1, className: i, onCl
2347
2347
  children: e
2348
2348
  });
2349
2349
  }
2350
- Wn.displayName = "Popover.Trigger";
2350
+ Un.displayName = "Popover.Trigger";
2351
2351
  //#endregion
2352
2352
  //#region src/components/Popover/Popover.tsx
2353
- var Gn = Object.assign(Vn, {
2354
- Anchor: jn,
2355
- Arrow: Pn,
2356
- Close: Fn,
2357
- Content: Ln,
2358
- Description: zn,
2359
- Title: Un,
2360
- Trigger: Wn
2361
- }), Kn = r(null), qn = Kn.Provider;
2362
- function Jn() {
2363
- return s(Kn);
2353
+ var Wn = Object.assign(Bn, {
2354
+ Anchor: An,
2355
+ Arrow: Nn,
2356
+ Close: Pn,
2357
+ Content: In,
2358
+ Description: Rn,
2359
+ Title: Hn,
2360
+ Trigger: Un
2361
+ }), Gn = r(null), Kn = Gn.Provider;
2362
+ function qn() {
2363
+ return s(Gn);
2364
2364
  }
2365
- var Yn = {
2365
+ var Jn = {
2366
2366
  root: "_root_7yrws_1",
2367
2367
  invalid: "_invalid_7yrws_34",
2368
2368
  control: "_control_7yrws_34",
@@ -2385,19 +2385,19 @@ var Yn = {
2385
2385
  "radio-indicator-in": "_radio-indicator-in_7yrws_1",
2386
2386
  content: "_content_7yrws_346",
2387
2387
  error: "_error_7yrws_363"
2388
- }, Xn = {
2389
- primary: Yn.colorPrimary,
2390
- neutral: Yn.colorNeutral,
2391
- success: Yn.colorSuccess,
2392
- warning: Yn.colorWarning,
2393
- danger: Yn.colorDanger
2394
- }, Zn = i(({ value: e, checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, size: a, color: o, error: s, onCheckedChange: c, label: u, description: d, icon: f, wrapperClassName: p, className: m, id: h, name: v, "aria-describedby": y, ...b }, x) => {
2395
- let S = Jn(), C = l(), w = h ?? C, T = d ? `${w}-description` : void 0, E = s ? `${w}-error` : void 0, D = [
2388
+ }, Yn = {
2389
+ primary: Jn.colorPrimary,
2390
+ neutral: Jn.colorNeutral,
2391
+ success: Jn.colorSuccess,
2392
+ warning: Jn.colorWarning,
2393
+ danger: Jn.colorDanger
2394
+ }, 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) => {
2395
+ let S = qn(), C = l(), w = h ?? C, T = d ? `${w}-description` : void 0, E = s ? `${w}-error` : void 0, D = [
2396
2396
  T,
2397
2397
  E,
2398
2398
  S?.describedBy,
2399
2399
  y
2400
- ].filter(Boolean).join(" ") || void 0, O = S !== null, [k, A] = yt({
2400
+ ].filter(Boolean).join(" ") || void 0, O = S !== null, [k, A] = vt({
2401
2401
  value: t,
2402
2402
  defaultValue: n,
2403
2403
  onChange: c
@@ -2411,10 +2411,10 @@ var Yn = {
2411
2411
  }
2412
2412
  };
2413
2413
  return /* @__PURE__ */ _("div", {
2414
- className: K(Yn.root, Yn[I], F && Yn.invalid, M && Yn.disabled, Xn[L], m),
2414
+ className: K(Jn.root, Jn[I], F && Jn.invalid, M && Jn.disabled, Yn[L], m),
2415
2415
  children: [/* @__PURE__ */ _("label", {
2416
2416
  htmlFor: w,
2417
- className: K(Yn.wrapper, p),
2417
+ className: K(Jn.wrapper, p),
2418
2418
  children: [
2419
2419
  /* @__PURE__ */ g("input", {
2420
2420
  ...b,
@@ -2428,55 +2428,55 @@ var Yn = {
2428
2428
  required: N,
2429
2429
  "aria-invalid": F || void 0,
2430
2430
  "aria-describedby": D,
2431
- className: Yn.input,
2431
+ className: Jn.input,
2432
2432
  onChange: R
2433
2433
  }),
2434
2434
  /* @__PURE__ */ g("span", {
2435
- className: Yn.control,
2435
+ className: Jn.control,
2436
2436
  "aria-hidden": "true",
2437
2437
  children: /* @__PURE__ */ g("span", {
2438
- className: K(Yn.indicator, f && Yn.customIcon),
2438
+ className: K(Jn.indicator, f && Jn.customIcon),
2439
2439
  children: f
2440
2440
  })
2441
2441
  }),
2442
2442
  (u || d) && /* @__PURE__ */ _("span", {
2443
- className: Yn.content,
2443
+ className: Jn.content,
2444
2444
  children: [u && /* @__PURE__ */ g("span", {
2445
- className: Yn.label,
2445
+ className: Jn.label,
2446
2446
  children: u
2447
2447
  }), d && /* @__PURE__ */ g("span", {
2448
2448
  id: T,
2449
- className: Yn.description,
2449
+ className: Jn.description,
2450
2450
  children: d
2451
2451
  })]
2452
2452
  })
2453
2453
  ]
2454
2454
  }), s && /* @__PURE__ */ g("div", {
2455
2455
  id: E,
2456
- className: Yn.error,
2456
+ className: Jn.error,
2457
2457
  children: s
2458
2458
  })]
2459
2459
  });
2460
2460
  });
2461
- Zn.displayName = "Radio";
2461
+ Xn.displayName = "Radio";
2462
2462
  //#endregion
2463
2463
  //#region src/components/RadioGroup/Item/RadioGroupItem.tsx
2464
- var Qn = i((e, t) => /* @__PURE__ */ g(Zn, {
2464
+ var Zn = i((e, t) => /* @__PURE__ */ g(Xn, {
2465
2465
  ...e,
2466
2466
  ref: t
2467
2467
  }));
2468
- Qn.displayName = "RadioGroup.Item";
2468
+ Zn.displayName = "RadioGroup.Item";
2469
2469
  //#endregion
2470
2470
  //#region src/components/RadioGroup/internal/useRadioGroupCollection.ts
2471
- var $n = (e) => {
2471
+ var Qn = (e) => {
2472
2472
  let t = e.current;
2473
2473
  return t ? Array.from(t.querySelectorAll("input[type=\"radio\"]")) : [];
2474
- }, er = (e) => $n(e).filter((e) => !e.disabled), tr = ["ArrowLeft", "ArrowRight"], nr = ["ArrowUp", "ArrowDown"];
2475
- function rr({ rootRef: e, orientation: t }) {
2474
+ }, $n = (e) => Qn(e).filter((e) => !e.disabled), er = ["ArrowLeft", "ArrowRight"], tr = ["ArrowUp", "ArrowDown"];
2475
+ function nr({ rootRef: e, orientation: t }) {
2476
2476
  return o((n) => {
2477
- let r = tr.includes(n.key), i = nr.includes(n.key), a = n.key === "Home" || n.key === "End";
2477
+ let r = er.includes(n.key), i = tr.includes(n.key), a = n.key === "Home" || n.key === "End";
2478
2478
  if (!r && !i && !a || t === "horizontal" && i || t === "vertical" && r) return;
2479
- let o = er(e);
2479
+ let o = $n(e);
2480
2480
  if (o.length === 0) return;
2481
2481
  n.preventDefault();
2482
2482
  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;
@@ -2485,7 +2485,7 @@ function rr({ rootRef: e, orientation: t }) {
2485
2485
  f?.focus(), f?.click();
2486
2486
  }, [t, e]);
2487
2487
  }
2488
- var ir = {
2488
+ var rr = {
2489
2489
  root: "_root_1s3vp_1",
2490
2490
  sm: "_sm_1s3vp_32",
2491
2491
  md: "_md_1s3vp_58",
@@ -2499,12 +2499,12 @@ var ir = {
2499
2499
  error: "_error_1s3vp_152",
2500
2500
  disabled: "_disabled_1s3vp_160",
2501
2501
  invalid: "_invalid_1s3vp_176"
2502
- }, ar = i(({ value: e, defaultValue: t = "", onValueChange: n, disabled: r = !1, required: i = !1, invalid: a = !1, size: o = "md", color: s = "primary", name: c, label: u, description: d, error: p, orientation: m = "vertical", children: h, className: v, id: y, onKeyDown: b, ...x }, S) => {
2503
- 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] = yt({
2502
+ }, 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) => {
2503
+ 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({
2504
2504
  value: e,
2505
2505
  defaultValue: t,
2506
2506
  onChange: n
2507
- }), N = a || !!p, P = rr({
2507
+ }), N = a || !!p, P = nr({
2508
2508
  rootRef: C,
2509
2509
  orientation: m
2510
2510
  }), F = (e) => {
@@ -2527,23 +2527,23 @@ var ir = {
2527
2527
  onKeyDown: (e) => {
2528
2528
  b?.(e), e.defaultPrevented || P(e);
2529
2529
  },
2530
- className: K(ir.root, ir[o], N && ir.invalid, r && ir.disabled, v),
2530
+ className: K(rr.root, rr[o], N && rr.invalid, r && rr.disabled, v),
2531
2531
  children: [
2532
2532
  u && /* @__PURE__ */ _("div", {
2533
2533
  id: E,
2534
- className: ir.label,
2534
+ className: rr.label,
2535
2535
  children: [u, i && /* @__PURE__ */ g("span", {
2536
- className: ir.required,
2536
+ className: rr.required,
2537
2537
  "aria-hidden": "true",
2538
2538
  children: "*"
2539
2539
  })]
2540
2540
  }),
2541
2541
  d && /* @__PURE__ */ g("div", {
2542
2542
  id: D,
2543
- className: ir.description,
2543
+ className: rr.description,
2544
2544
  children: d
2545
2545
  }),
2546
- /* @__PURE__ */ g(qn, {
2546
+ /* @__PURE__ */ g(Kn, {
2547
2547
  value: {
2548
2548
  name: A,
2549
2549
  value: j,
@@ -2556,35 +2556,35 @@ var ir = {
2556
2556
  onValueChange: M
2557
2557
  },
2558
2558
  children: /* @__PURE__ */ g("div", {
2559
- className: K(ir.items, ir[m]),
2559
+ className: K(rr.items, rr[m]),
2560
2560
  children: h
2561
2561
  })
2562
2562
  }),
2563
2563
  p && /* @__PURE__ */ g("div", {
2564
2564
  id: O,
2565
- className: ir.error,
2565
+ className: rr.error,
2566
2566
  children: p
2567
2567
  })
2568
2568
  ]
2569
2569
  });
2570
2570
  });
2571
- ar.displayName = "RadioGroup.Root";
2571
+ ir.displayName = "RadioGroup.Root";
2572
2572
  //#endregion
2573
2573
  //#region src/components/RadioGroup/RadioGroup.tsx
2574
- var or = Object.assign(ar, { Item: Qn });
2575
- or.displayName = "RadioGroup";
2574
+ var ar = Object.assign(ir, { Item: Zn });
2575
+ ar.displayName = "RadioGroup";
2576
2576
  //#endregion
2577
2577
  //#region src/components/Select/internal/SelectContext.tsx
2578
- var sr = r(null), cr = sr.Provider;
2579
- function lr() {
2580
- let e = s(sr);
2578
+ var or = r(null), sr = or.Provider;
2579
+ function cr() {
2580
+ let e = s(or);
2581
2581
  if (!e) throw Error("Select compound components must be used inside <Select>");
2582
2582
  return e;
2583
2583
  }
2584
- sr.displayName = "SelectContext";
2584
+ or.displayName = "SelectContext";
2585
2585
  //#endregion
2586
2586
  //#region src/components/Select/internal/SelectVirtualization.ts
2587
- function ur({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight: i }) {
2587
+ function lr({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight: i }) {
2588
2588
  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;
2589
2589
  return {
2590
2590
  bottomSpacerHeight: l ? Math.max(0, (t.length - u - f.length) * o) : 0,
@@ -2600,13 +2600,13 @@ function ur({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight:
2600
2600
  }
2601
2601
  //#endregion
2602
2602
  //#region src/components/Select/internal/types.ts
2603
- function dr(e, t) {
2603
+ function ur(e, t) {
2604
2604
  return k(e, t);
2605
2605
  }
2606
- function fr(e) {
2606
+ function dr(e) {
2607
2607
  return O(e);
2608
2608
  }
2609
- var pr = {
2609
+ var fr = {
2610
2610
  option: "_option_7msws_1",
2611
2611
  selected: "_selected_7msws_38",
2612
2612
  disabled: "_disabled_7msws_38",
@@ -2624,18 +2624,18 @@ var pr = {
2624
2624
  danger: "_danger_7msws_313",
2625
2625
  check: "_check_7msws_377",
2626
2626
  checkPop: "_checkPop_7msws_1"
2627
- }, mr = () => null;
2628
- dr(mr, "item"), mr.displayName = "Select.Item";
2629
- var hr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o, selectedValues: s, multiple: c, renderOption: l, onSelect: u, onMouseEnter: d }) => {
2630
- let f = !!e.disabled, p = e.asChild && a(e.children) ? e.children : void 0, m = K(pr.option, {
2631
- [pr.selected]: t,
2632
- [pr.active]: r,
2633
- [pr.disabled]: f,
2634
- [pr.success]: e.color === "success",
2635
- [pr.warning]: e.color === "warning",
2636
- [pr.danger]: e.color === "danger"
2627
+ }, pr = () => null;
2628
+ ur(pr, "item"), pr.displayName = "Select.Item";
2629
+ var mr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o, selectedValues: s, multiple: c, renderOption: l, onSelect: u, onMouseEnter: d }) => {
2630
+ let f = !!e.disabled, p = e.asChild && a(e.children) ? e.children : void 0, m = K(fr.option, {
2631
+ [fr.selected]: t,
2632
+ [fr.active]: r,
2633
+ [fr.disabled]: f,
2634
+ [fr.success]: e.color === "success",
2635
+ [fr.warning]: e.color === "warning",
2636
+ [fr.danger]: e.color === "danger"
2637
2637
  });
2638
- ke(!e.asChild || !!p, "Select.Item: asChild requires a single valid React element child.");
2638
+ Oe(!e.asChild || !!p, "Select.Item: asChild requires a single valid React element child.");
2639
2639
  let y = (t) => {
2640
2640
  if (f) {
2641
2641
  t.preventDefault();
@@ -2667,7 +2667,7 @@ var hr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o,
2667
2667
  onClick: y,
2668
2668
  onMouseEnter: b,
2669
2669
  children: [l ? /* @__PURE__ */ g("span", {
2670
- className: pr.custom,
2670
+ className: fr.custom,
2671
2671
  children: l({
2672
2672
  option: e,
2673
2673
  selected: t,
@@ -2680,36 +2680,36 @@ var hr = ({ option: e, isSelected: t, isActive: r, optionId: i, optionIndex: o,
2680
2680
  })
2681
2681
  }) : /* @__PURE__ */ _(h, { children: [
2682
2682
  e.icon && /* @__PURE__ */ g("span", {
2683
- className: pr.icon,
2683
+ className: fr.icon,
2684
2684
  children: e.icon
2685
2685
  }),
2686
2686
  /* @__PURE__ */ _("span", {
2687
- className: pr.content,
2687
+ className: fr.content,
2688
2688
  children: [/* @__PURE__ */ g("span", {
2689
- className: pr.label,
2689
+ className: fr.label,
2690
2690
  children: e.label
2691
2691
  }), e.description && /* @__PURE__ */ g("span", {
2692
- className: pr.description,
2692
+ className: fr.description,
2693
2693
  children: e.description
2694
2694
  })]
2695
2695
  }),
2696
2696
  e.badge && /* @__PURE__ */ g("span", {
2697
- className: pr.badge,
2697
+ className: fr.badge,
2698
2698
  children: e.badge
2699
2699
  }),
2700
2700
  e.shortcut && /* @__PURE__ */ g("kbd", {
2701
- className: pr.shortcut,
2701
+ className: fr.shortcut,
2702
2702
  children: e.shortcut
2703
2703
  })
2704
2704
  ] }), /* @__PURE__ */ g("span", {
2705
- className: pr.check,
2705
+ className: fr.check,
2706
2706
  "aria-hidden": "true",
2707
2707
  children: t && /* @__PURE__ */ g(v, {})
2708
2708
  })]
2709
2709
  });
2710
2710
  };
2711
- hr.displayName = "SelectItemRow";
2712
- var X = {
2711
+ mr.displayName = "SelectItemRow";
2712
+ var hr = {
2713
2713
  dropdown: "_dropdown_1lvgh_1",
2714
2714
  dropdownIn: "_dropdownIn_1lvgh_1",
2715
2715
  primary: "_primary_1lvgh_103",
@@ -2735,16 +2735,16 @@ var X = {
2735
2735
  virtualSpacer: "_virtualSpacer_1lvgh_1581",
2736
2736
  mobileDropdownIn: "_mobileDropdownIn_1lvgh_1"
2737
2737
  }, gr = ({ children: e, className: t }) => {
2738
- let { contentProps: n } = lr(), r = vr(e);
2738
+ let { contentProps: n } = cr(), r = vr(e);
2739
2739
  return /* @__PURE__ */ g(_r, {
2740
2740
  ...n,
2741
2741
  ...r,
2742
2742
  className: [n.className, t].filter(Boolean).join(" ")
2743
2743
  });
2744
2744
  };
2745
- dr(gr, "content"), gr.displayName = "Select.Content";
2745
+ ur(gr, "content"), gr.displayName = "Select.Content";
2746
2746
  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 }) => {
2747
- 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(() => ur({
2747
+ 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({
2748
2748
  loading: E,
2749
2749
  options: a,
2750
2750
  scrollTop: te,
@@ -2756,7 +2756,7 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2756
2756
  te,
2757
2757
  re,
2758
2758
  S
2759
- ]), de = o((e) => {
2759
+ ]), q = o((e) => {
2760
2760
  ee(e), r(e), e && G(e.clientHeight || void 0);
2761
2761
  }, [r]);
2762
2762
  c(() => {
@@ -2799,36 +2799,36 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2799
2799
  u,
2800
2800
  K
2801
2801
  ]);
2802
- let q = d(() => ({
2802
+ let J = d(() => ({
2803
2803
  ...i,
2804
2804
  "--select-dropdown-max-height": typeof se == "number" ? `${se}px` : se
2805
2805
  }), [se, i]);
2806
2806
  if (!e) return null;
2807
- let fe = s && !ae ? s : ue.map((e, t) => ({
2807
+ let de = s && !ae ? s : ue.map((e, t) => ({
2808
2808
  type: "option",
2809
2809
  option: e,
2810
2810
  optionIndex: ce + t
2811
- })), pe = /* @__PURE__ */ _("div", {
2812
- ref: de,
2811
+ })), fe = /* @__PURE__ */ _("div", {
2812
+ ref: q,
2813
2813
  tabIndex: 0,
2814
2814
  className: [
2815
- X.dropdown,
2816
- X[m],
2817
- X[v],
2818
- b ? X.command : void 0,
2815
+ hr.dropdown,
2816
+ hr[m],
2817
+ hr[v],
2818
+ b ? hr.command : void 0,
2819
2819
  L
2820
2820
  ].filter(Boolean).join(" "),
2821
- style: q,
2821
+ style: J,
2822
2822
  onScroll: (e) => {
2823
2823
  ae && ne(e.currentTarget.scrollTop);
2824
2824
  },
2825
2825
  children: [
2826
2826
  A,
2827
2827
  k ?? (y && /* @__PURE__ */ _("div", {
2828
- className: X.searchWrap,
2828
+ className: hr.searchWrap,
2829
2829
  children: [/* @__PURE__ */ g("input", {
2830
2830
  ref: H,
2831
- className: X.search,
2831
+ className: hr.search,
2832
2832
  value: w,
2833
2833
  placeholder: b ? "Type a command..." : T,
2834
2834
  "aria-label": "Search options",
@@ -2836,7 +2836,7 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2836
2836
  onChange: (e) => V?.(e.target.value)
2837
2837
  }), w && /* @__PURE__ */ g("button", {
2838
2838
  type: "button",
2839
- className: X.searchClear,
2839
+ className: hr.searchClear,
2840
2840
  "aria-label": "Clear search",
2841
2841
  onClick: () => {
2842
2842
  V?.(""), H.current?.focus();
@@ -2853,15 +2853,15 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2853
2853
  role: "option",
2854
2854
  "aria-disabled": "true",
2855
2855
  "aria-selected": "false",
2856
- className: X.empty,
2856
+ className: hr.empty,
2857
2857
  children: M ?? D
2858
2858
  }) : a.length ? /* @__PURE__ */ _(h, { children: [
2859
2859
  ae && /* @__PURE__ */ g("li", {
2860
2860
  "aria-hidden": "true",
2861
- className: X.virtualSpacer,
2861
+ className: hr.virtualSpacer,
2862
2862
  style: { height: le }
2863
2863
  }),
2864
- fe.map((e) => {
2864
+ de.map((e) => {
2865
2865
  if (e.type === "group") {
2866
2866
  if (e.selectable && l) {
2867
2867
  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;
@@ -2869,16 +2869,16 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2869
2869
  role: "presentation",
2870
2870
  children: /* @__PURE__ */ _("button", {
2871
2871
  type: "button",
2872
- className: X.groupAction,
2872
+ className: hr.groupAction,
2873
2873
  "aria-label": yr(e.selectLabel ?? e.label),
2874
2874
  "aria-pressed": i ? "mixed" : r ? "true" : "false",
2875
2875
  disabled: t.length === 0,
2876
2876
  onClick: () => z(t),
2877
2877
  children: [/* @__PURE__ */ g("span", {
2878
- className: X.groupActionText,
2878
+ className: hr.groupActionText,
2879
2879
  children: e.selectLabel ?? e.label
2880
2880
  }), /* @__PURE__ */ _("span", {
2881
- className: X.groupActionMeta,
2881
+ className: hr.groupActionMeta,
2882
2882
  children: [
2883
2883
  n,
2884
2884
  "/",
@@ -2890,18 +2890,18 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2890
2890
  }
2891
2891
  return /* @__PURE__ */ g("li", {
2892
2892
  role: "presentation",
2893
- className: X.groupLabel,
2893
+ className: hr.groupLabel,
2894
2894
  children: e.label
2895
2895
  }, e.id);
2896
2896
  }
2897
2897
  if (e.type === "separator") return /* @__PURE__ */ g("li", {
2898
2898
  role: "presentation",
2899
2899
  "aria-hidden": "true",
2900
- className: X.separator,
2900
+ className: hr.separator,
2901
2901
  "data-vellira-select-separator": "true"
2902
2902
  }, e.id);
2903
2903
  let { option: n, optionIndex: r } = e;
2904
- return /* @__PURE__ */ g(hr, {
2904
+ return /* @__PURE__ */ g(mr, {
2905
2905
  option: n,
2906
2906
  isSelected: u ? u.includes(n.value) : n.value === P,
2907
2907
  isActive: r === I,
@@ -2916,27 +2916,27 @@ var _r = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
2916
2916
  }),
2917
2917
  ae && /* @__PURE__ */ g("li", {
2918
2918
  "aria-hidden": "true",
2919
- className: X.virtualSpacer,
2919
+ className: hr.virtualSpacer,
2920
2920
  style: { height: ie }
2921
2921
  })
2922
2922
  ] }) : /* @__PURE__ */ g("li", {
2923
2923
  role: "option",
2924
2924
  "aria-disabled": "true",
2925
2925
  "aria-selected": "false",
2926
- className: X.empty,
2926
+ className: hr.empty,
2927
2927
  children: j ?? O
2928
2928
  })
2929
2929
  })
2930
2930
  ]
2931
2931
  });
2932
- return C ? /* @__PURE__ */ g(Dt, { children: pe }) : pe;
2932
+ return C ? /* @__PURE__ */ g(Et, { children: fe }) : fe;
2933
2933
  };
2934
2934
  _r.displayName = "SelectContentSurface";
2935
2935
  function vr(t) {
2936
2936
  let n, r, i, o;
2937
2937
  return e.forEach(t, (e) => {
2938
2938
  if (!a(e)) return;
2939
- let t = fr(e.type);
2939
+ let t = dr(e.type);
2940
2940
  t === "label" && (n = e), t === "search" && (r = e), t === "empty" && (i = e), t === "loading" && (o = e);
2941
2941
  }), {
2942
2942
  emptySlot: i,
@@ -2951,11 +2951,11 @@ function yr(e) {
2951
2951
  //#endregion
2952
2952
  //#region src/components/Select/Empty/SelectEmpty.tsx
2953
2953
  var br = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
2954
- dr(br, "empty"), br.displayName = "Select.Empty";
2954
+ ur(br, "empty"), br.displayName = "Select.Empty";
2955
2955
  //#endregion
2956
2956
  //#region src/components/Select/Group/SelectGroup.tsx
2957
2957
  var xr = () => null;
2958
- dr(xr, "group"), xr.displayName = "Select.Group";
2958
+ ur(xr, "group"), xr.displayName = "Select.Group";
2959
2959
  var Z = {
2960
2960
  root: "_root_jn0gk_1",
2961
2961
  control: "_control_jn0gk_8",
@@ -2985,49 +2985,49 @@ var Z = {
2985
2985
  loading: "_loading_jn0gk_826",
2986
2986
  open: "_open_jn0gk_845"
2987
2987
  }, Sr = ({ children: e, className: t }) => {
2988
- let { triggerProps: n } = lr();
2988
+ let { triggerProps: n } = cr();
2989
2989
  return /* @__PURE__ */ g("span", {
2990
2990
  className: K(Z.arrow, { [Z.open]: n.isOpen }, t),
2991
2991
  "aria-hidden": "true",
2992
2992
  children: n.loading ? /* @__PURE__ */ g("span", { className: Z.spinner }) : e ?? n.endIcon ?? /* @__PURE__ */ g(y, {})
2993
2993
  });
2994
2994
  };
2995
- dr(Sr, "icon"), Sr.displayName = "Select.Icon";
2995
+ ur(Sr, "icon"), Sr.displayName = "Select.Icon";
2996
2996
  //#endregion
2997
2997
  //#region src/components/Select/ItemBadge/SelectItemBadge.tsx
2998
2998
  var Cr = () => null;
2999
- dr(Cr, "itemBadge"), Cr.displayName = "Select.ItemBadge";
2999
+ ur(Cr, "itemBadge"), Cr.displayName = "Select.ItemBadge";
3000
3000
  //#endregion
3001
3001
  //#region src/components/Select/ItemDescription/SelectItemDescription.tsx
3002
3002
  var wr = () => null;
3003
- dr(wr, "itemDescription"), wr.displayName = "Select.ItemDescription";
3003
+ ur(wr, "itemDescription"), wr.displayName = "Select.ItemDescription";
3004
3004
  //#endregion
3005
3005
  //#region src/components/Select/ItemIcon/SelectItemIcon.tsx
3006
3006
  var Tr = () => null;
3007
- dr(Tr, "itemIcon"), Tr.displayName = "Select.ItemIcon";
3007
+ ur(Tr, "itemIcon"), Tr.displayName = "Select.ItemIcon";
3008
3008
  //#endregion
3009
3009
  //#region src/components/Select/Label/SelectLabel.tsx
3010
3010
  var Er = ({ children: e }) => /* @__PURE__ */ g("div", {
3011
3011
  role: "presentation",
3012
- className: X.groupLabel,
3012
+ className: hr.groupLabel,
3013
3013
  children: e
3014
3014
  });
3015
- dr(Er, "label"), Er.displayName = "Select.Label";
3015
+ ur(Er, "label"), Er.displayName = "Select.Label";
3016
3016
  //#endregion
3017
3017
  //#region src/components/Select/Loading/SelectLoading.tsx
3018
3018
  var Dr = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
3019
- dr(Dr, "loading"), Dr.displayName = "Select.Loading";
3019
+ ur(Dr, "loading"), Dr.displayName = "Select.Loading";
3020
3020
  //#endregion
3021
3021
  //#region src/components/Select/Trigger/SelectTrigger.tsx
3022
3022
  var Or = ({ children: e, className: t }) => {
3023
- let { triggerProps: n } = lr();
3023
+ let { triggerProps: n } = cr();
3024
3024
  return /* @__PURE__ */ g(kr, {
3025
3025
  ...n,
3026
3026
  className: [n.className, t].filter(Boolean).join(" "),
3027
3027
  children: e
3028
3028
  });
3029
3029
  };
3030
- dr(Or, "trigger"), Or.displayName = "Select.Trigger";
3030
+ ur(Or, "trigger"), Or.displayName = "Select.Trigger";
3031
3031
  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", {
3032
3032
  className: Z.root,
3033
3033
  children: [/* @__PURE__ */ g("button", {
@@ -3100,7 +3100,7 @@ function Ar(t) {
3100
3100
  function o(t) {
3101
3101
  e.forEach(t, (e) => {
3102
3102
  if (!a(e)) return;
3103
- let t = fr(e.type);
3103
+ let t = dr(e.type);
3104
3104
  if (t === "group") {
3105
3105
  let t = e.props, r = Mr(t.children);
3106
3106
  n.push({
@@ -3153,7 +3153,7 @@ function jr(t) {
3153
3153
  function r(t) {
3154
3154
  e.forEach(t, (e) => {
3155
3155
  if (!a(e) || n) return;
3156
- let t = fr(e.type);
3156
+ let t = dr(e.type);
3157
3157
  if (t === "trigger" || t === "content") {
3158
3158
  n = !0;
3159
3159
  return;
@@ -3168,7 +3168,7 @@ function Mr(t) {
3168
3168
  function r(t) {
3169
3169
  e.forEach(t, (e) => {
3170
3170
  if (a(e)) {
3171
- if (fr(e.type) === "item") {
3171
+ if (dr(e.type) === "item") {
3172
3172
  n.push(e.props.value);
3173
3173
  return;
3174
3174
  }
@@ -3187,7 +3187,7 @@ function Nr(t, n) {
3187
3187
  return;
3188
3188
  }
3189
3189
  if (!a(e)) return;
3190
- let t = fr(e.type);
3190
+ let t = dr(e.type);
3191
3191
  if (t === "itemBadge") {
3192
3192
  r = e.props.children;
3193
3193
  return;
@@ -3376,275 +3376,275 @@ var Ur = ({ id: e, label: r, description: i, error: o, message: s, messageTone:
3376
3376
  //#endregion
3377
3377
  //#region src/components/Select/Root/useSelectRootState.tsx
3378
3378
  function Yr(e) {
3379
- 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(), de = Rr(), q = !!(n || r || I), fe = i ?? (q ? void 0 : de?.controlId) ?? ue, pe = `${fe}-listbox`, [me, he] = p(""), ge = !!I, _e = ge ? `${fe}-error` : void 0, ve = r ? `${fe}-description` : void 0, ye = w ?? de?.size ?? "md", be = k || ge || !q && !!de?.invalid, xe = O || !q && !!de?.disabled, Se = D || !q && !!de?.required, Ce = [
3379
+ 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 = [
3380
3380
  u,
3381
- !q && !u ? de?.ariaDescribedBy : void 0,
3382
- ve,
3383
- _e
3384
- ].filter(Boolean).join(" "), we = f(null), Te = f(null), [Ee, De] = p(!1), Oe = M || F, { entries: J, options: ke } = Ir(t), Ae = d(() => Pr({
3385
- options: ke,
3386
- searchable: Oe,
3387
- searchValue: me
3381
+ !J && !u ? q?.ariaDescribedBy : void 0,
3382
+ _e,
3383
+ ge
3384
+ ].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({
3385
+ options: Oe,
3386
+ searchable: De,
3387
+ searchValue: pe
3388
3388
  }), [
3389
+ De,
3389
3390
  Oe,
3390
- ke,
3391
- me
3392
- ]), je = e.multiple === !0 ? e.value : e.value === null ? "" : e.value, Me = e.multiple === !0 ? e.defaultValue : e.defaultValue === null ? "" : e.defaultValue, Ne = e.multiple === !0 ? e.onValueChange : void 0, Pe = e.multiple === !0 ? void 0 : e.onValueChange, { selectedValue: Fe, selectedValues: Y, isOpen: Ie, setIsOpen: Le, setSelectedValue: Re, activeIndex: ze, setActiveIndex: Be, closeDropdown: Ve, toggleDropdown: He, selectValue: Ue, onKeyDown: We } = Ct({
3393
- value: je,
3394
- defaultValue: Me,
3391
+ pe
3392
+ ]), 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({
3393
+ value: Ae,
3394
+ defaultValue: je,
3395
3395
  onValueChange: o((e) => {
3396
3396
  if (v) {
3397
- Ne?.(Array.isArray(e) ? e : e ? [e] : []);
3397
+ Me?.(Array.isArray(e) ? e : e ? [e] : []);
3398
3398
  return;
3399
3399
  }
3400
- Pe?.(Array.isArray(e) ? e[0] ?? null : e === "" ? null : e);
3400
+ Ne?.(Array.isArray(e) ? e[0] ?? null : e === "" ? null : e);
3401
3401
  }, [
3402
3402
  v,
3403
- Ne,
3404
- Pe
3403
+ Me,
3404
+ Ne
3405
3405
  ]),
3406
- options: Ae,
3406
+ options: ke,
3407
3407
  multiple: v,
3408
3408
  maxSelected: y,
3409
3409
  closeOnSelect: b,
3410
- disabled: xe,
3410
+ disabled: be,
3411
3411
  open: V,
3412
3412
  defaultOpen: H,
3413
3413
  onOpenChange: U
3414
- }), Ge = d(() => ke.find((e) => Y.includes(e.value)), [ke, Y]), Ke = d(() => ke.filter((e) => Y.includes(e.value)), [ke, Y]), qe = !!Ge, Je = Array.isArray(Fe) ? Fe[0] ?? "" : Fe, { floatingStyles: Ye, setRef: Xe, setFloatingRef: Ze } = vt({
3415
- isOpen: Ie,
3416
- onOpenChange: Le,
3414
+ }), 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({
3415
+ isOpen: Fe,
3416
+ onOpenChange: Ie,
3417
3417
  placement: L,
3418
3418
  matchTriggerWidth: R,
3419
3419
  avoidCollisions: z
3420
- }), Qe = o((e) => {
3421
- Ue(e), we.current?.focus();
3422
- }, [Ue]), $e = o((e) => {
3420
+ }), Ze = o((e) => {
3421
+ He(e), Ce.current?.focus();
3422
+ }, [He]), Qe = o((e) => {
3423
3423
  if (!v || e.length === 0) return;
3424
- let t = e.filter((e) => ke.some((t) => t.value === e && !t.disabled)), n = t.filter((e) => Y.includes(e)), r = Y.filter((e) => !t.includes(e)).length, i = typeof y == "number" ? Math.max(0, Math.min(t.length, y - r)) : t.length;
3424
+ 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;
3425
3425
  if (n.length > 0 && n.length >= i) {
3426
- Re(Y.filter((e) => !t.includes(e)));
3426
+ Le(X.filter((e) => !t.includes(e)));
3427
3427
  return;
3428
3428
  }
3429
- let a = [...Y];
3429
+ let a = [...X];
3430
3430
  for (let e of t) if (!a.includes(e)) {
3431
3431
  if (typeof y == "number" && a.length >= y) break;
3432
3432
  a.push(e);
3433
3433
  }
3434
- Re(a), b && (Ve(), we.current?.focus());
3434
+ Le(a), b && (Be(), Ce.current?.focus());
3435
3435
  }, [
3436
- Ve,
3436
+ Be,
3437
3437
  b,
3438
3438
  y,
3439
3439
  v,
3440
- ke,
3441
- Y,
3442
- Re
3443
- ]), et = o(() => {
3444
- Ue(""), ee?.(), we.current?.focus();
3445
- }, [ee, Ue]), tt = o(() => {
3446
- Ie || De(!1), He();
3447
- }, [Ie, He]), nt = o((e) => {
3448
- Xr(e, Ie) && De(!0), We(e);
3449
- }, [Ie, We]), rt = o((e) => {
3450
- De(!0), Be(e);
3451
- }, [Be]), it = o((e) => {
3452
- he(e), W?.(e);
3453
- }, [W]), at = ut({
3454
- active: Ie,
3455
- id: pe,
3440
+ Oe,
3441
+ X,
3442
+ Le
3443
+ ]), $e = o(() => {
3444
+ He(""), ee?.(), Ce.current?.focus();
3445
+ }, [ee, He]), et = o(() => {
3446
+ Fe || Ee(!1), Ve();
3447
+ }, [Fe, Ve]), tt = o((e) => {
3448
+ Xr(e, Fe) && Ee(!0), Ue(e);
3449
+ }, [Fe, Ue]), nt = o((e) => {
3450
+ Ee(!0), ze(e);
3451
+ }, [ze]), rt = o((e) => {
3452
+ me(e), W?.(e);
3453
+ }, [W]), it = lt({
3454
+ active: Fe,
3455
+ id: fe,
3456
3456
  zIndexLevel: "dropdown",
3457
3457
  closeOnEscape: !0,
3458
3458
  closeOnOutsidePress: !0,
3459
- contentRef: Te,
3460
- ignoreRefs: [we],
3461
- requestClose: Ve
3459
+ contentRef: we,
3460
+ ignoreRefs: [Ce],
3461
+ requestClose: Be
3462
3462
  });
3463
3463
  c(() => {
3464
- Ie || De(!1);
3465
- }, [Ie]), c(() => {
3466
- !Ie && me && he("");
3467
- }, [Ie, me]), ht({
3468
- active: Ie,
3464
+ Fe || Ee(!1);
3465
+ }, [Fe]), c(() => {
3466
+ !Fe && pe && me("");
3467
+ }, [Fe, pe]), mt({
3468
+ active: Fe,
3469
3469
  enabled: P
3470
3470
  });
3471
- let ot = o((e) => {
3471
+ let at = o((e) => {
3472
+ Ce.current = e, Ye(e);
3473
+ }, [Ye]), ot = o((e) => {
3472
3474
  we.current = e, Xe(e);
3473
- }, [Xe]), st = o((e) => {
3474
- Te.current = e, Ze(e);
3475
- }, [Ze]), ct = d(() => ie ? ie({
3475
+ }, [Xe]), st = d(() => ie ? ie({
3476
3476
  multiple: v,
3477
- option: Ge,
3478
- options: Ke,
3479
- value: Je,
3480
- values: Y
3481
- }) : v && Ke.length ? Ke.map((e) => e.label).join(", ") : Ge?.label ?? x, [
3477
+ option: We,
3478
+ options: Ge,
3479
+ value: qe,
3480
+ values: X
3481
+ }) : v && Ge.length ? Ge.map((e) => e.label).join(", ") : We?.label ?? x, [
3482
3482
  v,
3483
3483
  x,
3484
3484
  ie,
3485
+ We,
3485
3486
  Ge,
3486
- Ke,
3487
- Y,
3488
- Je
3489
- ]), lt = S ?? "No options available", dt = j && Y.length > 0 && !xe && !A, ft = d(() => ({
3490
- ...Ye,
3491
- zIndex: at.zIndex
3492
- }), [at.zIndex, Ye]), pt = d(() => ({
3493
- id: fe,
3494
- describedBy: Ce || void 0,
3487
+ X,
3488
+ qe
3489
+ ]), ct = S ?? "No options available", ut = j && X.length > 0 && !be && !A, dt = d(() => ({
3490
+ ...Je,
3491
+ zIndex: it.zIndex
3492
+ }), [it.zIndex, Je]), ft = d(() => ({
3493
+ id: de,
3494
+ describedBy: Se || void 0,
3495
3495
  labelledBy: s ? void 0 : m,
3496
- isOpen: Ie,
3497
- disabled: xe,
3498
- required: Se,
3499
- listboxId: pe,
3500
- activeIndex: ze,
3501
- ariaLabel: s ?? (!n && !de?.labelId ? Ge?.label || x : void 0),
3502
- error: be,
3496
+ isOpen: Fe,
3497
+ disabled: be,
3498
+ required: xe,
3499
+ listboxId: fe,
3500
+ activeIndex: Re,
3501
+ ariaLabel: s ?? (!n && !q?.labelId ? We?.label || x : void 0),
3502
+ error: ye,
3503
3503
  loading: A,
3504
- displayText: ct,
3505
- isPlaceholder: !qe,
3506
- size: ye,
3504
+ displayText: st,
3505
+ isPlaceholder: !Ke,
3506
+ size: ve,
3507
3507
  color: T,
3508
3508
  variant: E,
3509
3509
  startIcon: te,
3510
3510
  endIcon: ne,
3511
3511
  prefix: re,
3512
3512
  suffix: G,
3513
- clearable: dt,
3513
+ clearable: ut,
3514
3514
  className: le,
3515
- buttonRef: ot,
3516
- onClear: et,
3517
- onClick: tt,
3518
- onKeyDown: nt,
3515
+ buttonRef: at,
3516
+ onClear: $e,
3517
+ onClick: et,
3518
+ onKeyDown: tt,
3519
3519
  onBlur: oe,
3520
3520
  onFocus: se
3521
3521
  }), [
3522
- ze,
3522
+ Re,
3523
3523
  s,
3524
3524
  m,
3525
3525
  T,
3526
- Ce,
3526
+ Se,
3527
3527
  ne,
3528
- de?.labelId,
3528
+ q?.labelId,
3529
+ $e,
3529
3530
  et,
3530
3531
  tt,
3531
- nt,
3532
- qe,
3533
- xe,
3532
+ Ke,
3534
3533
  be,
3535
- Ie,
3536
- Se,
3534
+ ye,
3535
+ Fe,
3536
+ xe,
3537
3537
  n,
3538
- pe,
3538
+ fe,
3539
3539
  A,
3540
3540
  oe,
3541
3541
  se,
3542
3542
  x,
3543
3543
  re,
3544
- ye,
3545
- ct,
3546
- Ge?.label,
3547
- ot,
3548
- dt,
3544
+ ve,
3545
+ st,
3546
+ We?.label,
3547
+ at,
3548
+ ut,
3549
3549
  te,
3550
3550
  G,
3551
3551
  le,
3552
- fe,
3552
+ de,
3553
3553
  E
3554
- ]), mt = d(() => ({
3555
- isOpen: Ie,
3556
- listboxId: pe,
3557
- labelledById: fe,
3558
- style: ft,
3559
- options: Ae,
3560
- entries: Oe || me ? void 0 : J,
3554
+ ]), pt = d(() => ({
3555
+ isOpen: Fe,
3556
+ listboxId: fe,
3557
+ labelledById: de,
3558
+ style: dt,
3559
+ options: ke,
3560
+ entries: De || pe ? void 0 : Y,
3561
3561
  multiple: v,
3562
3562
  color: T,
3563
3563
  variant: E,
3564
- searchable: Oe,
3564
+ searchable: De,
3565
3565
  command: F,
3566
3566
  virtual: N,
3567
3567
  portal: B,
3568
- searchValue: me,
3568
+ searchValue: pe,
3569
3569
  loading: A,
3570
3570
  loadingText: C,
3571
- emptyText: lt,
3571
+ emptyText: ct,
3572
3572
  renderOption: ae,
3573
- selectedValue: Je,
3574
- selectedValues: Y,
3575
- activeIndex: ze,
3576
- visualActiveIndex: Ee ? ze : -1,
3573
+ selectedValue: qe,
3574
+ selectedValues: X,
3575
+ activeIndex: Re,
3576
+ visualActiveIndex: Te ? Re : -1,
3577
3577
  className: K,
3578
- setDropdownRef: st,
3579
- onSelect: Qe,
3580
- onSelectGroup: $e,
3581
- onMouseEnter: rt,
3582
- onSearchChange: it
3578
+ setDropdownRef: ot,
3579
+ onSelect: Ze,
3580
+ onSelectGroup: Qe,
3581
+ onMouseEnter: nt,
3582
+ onSearchChange: rt
3583
3583
  }), [
3584
- ze,
3584
+ Re,
3585
3585
  T,
3586
3586
  F,
3587
- ft,
3587
+ dt,
3588
3588
  K,
3589
- lt,
3590
- Ae,
3589
+ ct,
3590
+ ke,
3591
+ nt,
3591
3592
  rt,
3592
- it,
3593
+ Ze,
3593
3594
  Qe,
3594
- $e,
3595
- Ee,
3596
- Ie,
3597
- Oe,
3598
- pe,
3595
+ Te,
3596
+ Fe,
3597
+ De,
3598
+ fe,
3599
3599
  A,
3600
3600
  C,
3601
3601
  v,
3602
3602
  B,
3603
3603
  ae,
3604
- J,
3605
- me,
3606
3604
  Y,
3607
- st,
3608
- Je,
3609
- fe,
3605
+ pe,
3606
+ X,
3607
+ ot,
3608
+ qe,
3609
+ de,
3610
3610
  E,
3611
3611
  N
3612
- ]), gt = d(() => ({
3613
- triggerProps: pt,
3614
- contentProps: mt
3615
- }), [mt, pt]), _t = d(() => /* @__PURE__ */ _(h, { children: [a && v && Y.length > 0 && /* @__PURE__ */ g(h, { children: Y.map((e) => /* @__PURE__ */ g("input", {
3612
+ ]), ht = d(() => ({
3613
+ triggerProps: ft,
3614
+ contentProps: pt
3615
+ }), [pt, ft]), gt = d(() => /* @__PURE__ */ _(h, { children: [a && v && X.length > 0 && /* @__PURE__ */ g(h, { children: X.map((e) => /* @__PURE__ */ g("input", {
3616
3616
  type: "hidden",
3617
3617
  name: a,
3618
3618
  value: e,
3619
- disabled: xe
3619
+ disabled: be
3620
3620
  }, e)) }), a && !v && /* @__PURE__ */ g("input", {
3621
3621
  type: "hidden",
3622
3622
  name: a,
3623
- value: Je,
3624
- disabled: xe
3623
+ value: qe,
3624
+ disabled: be
3625
3625
  })] }), [
3626
- xe,
3626
+ be,
3627
3627
  v,
3628
3628
  a,
3629
- Y,
3630
- Je
3629
+ X,
3630
+ qe
3631
3631
  ]);
3632
3632
  return {
3633
3633
  children: t,
3634
3634
  className: ce,
3635
- contentProps: mt,
3636
- contextValue: gt,
3635
+ contentProps: pt,
3636
+ contextValue: ht,
3637
3637
  description: r,
3638
3638
  error: I,
3639
3639
  hasCompoundLayout: d(() => jr(t), [t]),
3640
- hasExternalField: !q && !!de,
3641
- hiddenInputs: _t,
3642
- isDisabled: xe,
3643
- isRequired: Se,
3640
+ hasExternalField: !J && !!q,
3641
+ hiddenInputs: gt,
3642
+ isDisabled: be,
3643
+ isRequired: xe,
3644
3644
  label: n,
3645
- resolvedSize: ye,
3646
- triggerId: fe,
3647
- triggerProps: pt
3645
+ resolvedSize: ve,
3646
+ triggerId: de,
3647
+ triggerProps: ft
3648
3648
  };
3649
3649
  }
3650
3650
  function Xr(e, t) {
@@ -3653,7 +3653,7 @@ function Xr(e, t) {
3653
3653
  //#endregion
3654
3654
  //#region src/components/Select/Root/SelectRoot.tsx
3655
3655
  var Zr = (e) => {
3656
- 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__ */ _(cr, {
3656
+ 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, {
3657
3657
  value: i,
3658
3658
  children: [l, s ? t : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(Or, {}), /* @__PURE__ */ g(gr, { children: t })] })]
3659
3659
  }), [
@@ -3661,7 +3661,7 @@ var Zr = (e) => {
3661
3661
  i,
3662
3662
  s,
3663
3663
  l
3664
- ]), x = d(() => /* @__PURE__ */ _(cr, {
3664
+ ]), x = d(() => /* @__PURE__ */ _(sr, {
3665
3665
  value: i,
3666
3666
  children: [
3667
3667
  l,
@@ -3691,7 +3691,7 @@ Zr.displayName = "SelectRoot";
3691
3691
  //#endregion
3692
3692
  //#region src/components/Select/Search/SelectSearch.tsx
3693
3693
  var Qr = ({ placeholder: e, className: t }) => {
3694
- let { contentProps: n } = lr(), r = f(null), i = n.searchValue ?? "";
3694
+ let { contentProps: n } = cr(), r = f(null), i = n.searchValue ?? "";
3695
3695
  return c(() => {
3696
3696
  if (!n.isOpen) return;
3697
3697
  let e = window.setTimeout(() => {
@@ -3699,10 +3699,10 @@ var Qr = ({ placeholder: e, className: t }) => {
3699
3699
  }, 0);
3700
3700
  return () => window.clearTimeout(e);
3701
3701
  }, [n.isOpen]), /* @__PURE__ */ _("div", {
3702
- className: X.searchWrap,
3702
+ className: hr.searchWrap,
3703
3703
  children: [/* @__PURE__ */ g("input", {
3704
3704
  ref: r,
3705
- className: K(X.search, t),
3705
+ className: K(hr.search, t),
3706
3706
  value: i,
3707
3707
  placeholder: e ?? (n.command ? "Type a command..." : "Search..."),
3708
3708
  "aria-label": "Search options",
@@ -3710,7 +3710,7 @@ var Qr = ({ placeholder: e, className: t }) => {
3710
3710
  onChange: (e) => n.onSearchChange?.(e.target.value)
3711
3711
  }), i && /* @__PURE__ */ g("button", {
3712
3712
  type: "button",
3713
- className: X.searchClear,
3713
+ className: hr.searchClear,
3714
3714
  "aria-label": "Clear search",
3715
3715
  onClick: () => {
3716
3716
  n.onSearchChange?.(""), r.current?.focus();
@@ -3719,15 +3719,15 @@ var Qr = ({ placeholder: e, className: t }) => {
3719
3719
  })]
3720
3720
  });
3721
3721
  };
3722
- dr(Qr, "search"), Qr.displayName = "Select.Search";
3722
+ ur(Qr, "search"), Qr.displayName = "Select.Search";
3723
3723
  //#endregion
3724
3724
  //#region src/components/Select/Separator/SelectSeparator.tsx
3725
3725
  var $r = () => null;
3726
- dr($r, "separator"), $r.displayName = "Select.Separator";
3726
+ ur($r, "separator"), $r.displayName = "Select.Separator";
3727
3727
  //#endregion
3728
3728
  //#region src/components/Select/Value/SelectValue.tsx
3729
3729
  var ei = ({ children: e, className: t }) => {
3730
- let { triggerProps: n } = lr();
3730
+ let { triggerProps: n } = cr();
3731
3731
  return /* @__PURE__ */ g("span", {
3732
3732
  className: K(Z.valueWrap, t),
3733
3733
  children: /* @__PURE__ */ g("span", {
@@ -3736,7 +3736,7 @@ var ei = ({ children: e, className: t }) => {
3736
3736
  })
3737
3737
  });
3738
3738
  };
3739
- dr(ei, "value"), ei.displayName = "Select.Value";
3739
+ ur(ei, "value"), ei.displayName = "Select.Value";
3740
3740
  //#endregion
3741
3741
  //#region src/components/Select/Select.tsx
3742
3742
  var ti = Object.assign(Zr, {
@@ -3747,7 +3747,7 @@ var ti = Object.assign(Zr, {
3747
3747
  Search: Qr,
3748
3748
  Group: xr,
3749
3749
  Label: Er,
3750
- Item: mr,
3750
+ Item: pr,
3751
3751
  ItemIcon: Tr,
3752
3752
  ItemDescription: wr,
3753
3753
  ItemBadge: Cr,
@@ -4028,7 +4028,7 @@ var fi = (e) => [...e].sort((e, t) => {
4028
4028
  tabs: "_tabs_1hj56_1",
4029
4029
  vertical: "_vertical_1hj56_30"
4030
4030
  }, 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 }) => {
4031
- let C = l(), w = t !== void 0, { value: T, setValue: E } = wt({
4031
+ let C = l(), w = t !== void 0, { value: T, setValue: E } = Ct({
4032
4032
  value: t,
4033
4033
  defaultValue: n,
4034
4034
  onValueChange: r
@@ -4395,7 +4395,7 @@ function Pi({ context: e, delay: t, disabled: n, interactive: r }) {
4395
4395
  //#endregion
4396
4396
  //#region src/components/Tooltip/internal/useTooltipPosition.ts
4397
4397
  function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
4398
- let o = f(null), s = dt({
4398
+ let o = f(null), s = ut({
4399
4399
  open: e,
4400
4400
  onOpenChange: t,
4401
4401
  placement: n,
@@ -4414,7 +4414,7 @@ function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions
4414
4414
  //#endregion
4415
4415
  //#region src/components/Tooltip/Root/TooltipRoot.tsx
4416
4416
  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 }) => {
4417
- let m = `${l()}-content`, h = f(null), _ = f(null), [v, y] = yt({
4417
+ let m = `${l()}-content`, h = f(null), _ = f(null), [v, y] = vt({
4418
4418
  value: t,
4419
4419
  defaultValue: n,
4420
4420
  onChange: r
@@ -4432,7 +4432,7 @@ var Ii = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placemen
4432
4432
  delay: S,
4433
4433
  disabled: c,
4434
4434
  interactive: u
4435
- }), w = ut({
4435
+ }), w = lt({
4436
4436
  active: v,
4437
4437
  id: m,
4438
4438
  zIndexLevel: "tooltip",
@@ -4542,7 +4542,7 @@ var zi = {
4542
4542
  [zi.fullWidth]: b,
4543
4543
  [zi.iconOnly]: z
4544
4544
  });
4545
- ke(!S || !O, "Button: pass href to the child element when using asChild."), ke(!S || !!L, "Button: asChild requires a single valid React element child."), ke(!z || B, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
4545
+ 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.");
4546
4546
  let G = (e) => {
4547
4547
  e.preventDefault(), e.stopPropagation();
4548
4548
  }, ie = (e) => {
@@ -4704,7 +4704,7 @@ var Q = {
4704
4704
  E,
4705
4705
  N,
4706
4706
  P
4707
- ].filter(Boolean).join(" "), [I, L] = yt({
4707
+ ].filter(Boolean).join(" "), [I, L] = vt({
4708
4708
  value: a,
4709
4709
  defaultValue: p,
4710
4710
  onChange: S
@@ -4721,7 +4721,7 @@ var Q = {
4721
4721
  let z = (e) => {
4722
4722
  L(e.target.checked);
4723
4723
  };
4724
- return ke(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ _("div", {
4724
+ return Oe(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ _("div", {
4725
4725
  className: K(Q.container, Ui[s], d === "start" && Q.containerLabelStart, b),
4726
4726
  children: [
4727
4727
  /* @__PURE__ */ _("label", {
@@ -4850,38 +4850,38 @@ var $ = {
4850
4850
  r < n.length && (i += e);
4851
4851
  }
4852
4852
  return i;
4853
- }, 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: x = !1, loading: C = !1, className: w, style: T, wrapperClassName: E, autoComplete: D, readOnly: O = !1, clearable: k = !1, onClear: A, onValueChange: j, revealPassword: M = !1, showCounter: N = !1, startIcon: P, endIcon: F, startAddon: I, endAddon: L, prefix: R, suffix: z, clearIcon: B, mask: V, format: H, parse: U, startIconTone: W = "default", endIconTone: te = "default", clearIconTone: ne = "danger", autoFocus: re, maxLength: G, onMouseEnter: ie, onMouseLeave: ae, "aria-describedby": oe, "aria-invalid": se, "aria-labelledby": ce, ...le }, ue) => {
4854
- let de = l(), q = Rr(), fe = !!(t || r || v), pe = e ?? (fe ? void 0 : q?.controlId) ?? de, me = f(null), [he, ge] = p(!1), [_e, ve] = p(s ?? ""), ye = a !== void 0, be = String((ye ? a : _e) ?? ""), xe = H ? H(be) : be, Se = be.length > 0, Ce = u ?? q?.size ?? "md", we = ee[Ce], Te = {
4853
+ }, 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) => {
4854
+ 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 = {
4855
4855
  "--input-height": `${we.height}px`,
4856
4856
  "--input-font-size": `${we.fontSize}px`,
4857
4857
  "--input-line-height": `${we.lineHeight}px`,
4858
4858
  "--input-icon-size": `${we.iconSize}px`
4859
- }, Ee = y || !!v || !fe && !!q?.invalid, De = b || !fe && !!q?.disabled, Oe = x || !fe && !!q?.required, J = O || C, ke = c === "password", Ae = ke && M && he ? "text" : c, je = P ?? (c === "search" ? /* @__PURE__ */ g(S, {}) : null), Me = F, Ne = qi(c, D), Pe = C && !De, Fe = k && Se && !De && !J && !Pe, Y = M && ke && !De && !Pe && !Fe, Ie = !Pe && !Fe && !Y && !!Me, Le = !!(N && G), Re = r ? `${pe}-description` : void 0, ze = v ? `${pe}-error` : void 0, Be = Le ? `${pe}-counter` : void 0, Ve = [
4860
- oe,
4861
- !fe && !oe ? q?.ariaDescribedBy : void 0,
4859
+ }, 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 = [
4860
+ se,
4861
+ !fe && !se ? de?.ariaDescribedBy : void 0,
4862
4862
  Re,
4863
4863
  ze,
4864
4864
  Be
4865
- ].filter(Boolean).join(" "), He = B ?? "×", Ue = !!(je || R), We = !!(Me || z || Fe || Y || Pe), Ge = !!(je && R), Ke = !!(Me && z), qe = !!(I || L), Je = o((e) => {
4866
- if (me.current = e, typeof ue == "function") {
4867
- ue(e);
4865
+ ].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) => {
4866
+ if (me.current = e, typeof q == "function") {
4867
+ q(e);
4868
4868
  return;
4869
4869
  }
4870
- ue && (ue.current = e);
4871
- }, [ue]), Ye = o((e) => {
4872
- let t = Yi(U ? U(e.target.value) : e.target.value, V);
4873
- ye || ve(t), j?.(t);
4870
+ q && (q.current = e);
4871
+ }, [q]), Ye = o((e) => {
4872
+ let t = Yi(W ? W(e.target.value) : e.target.value, H);
4873
+ ye || ve(t), M?.(t);
4874
4874
  }, [
4875
4875
  ye,
4876
- V,
4877
- j,
4878
- U
4876
+ H,
4877
+ M,
4878
+ W
4879
4879
  ]), Xe = o(() => {
4880
- ye || ve(""), j?.(""), A?.(), me.current?.focus();
4880
+ ye || ve(""), M?.(""), j?.(), me.current?.focus();
4881
4881
  }, [
4882
4882
  ye,
4883
- A,
4884
- j
4883
+ j,
4884
+ M
4885
4885
  ]), Ze = /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
4886
4886
  className: K($.inputGroup, $[m], $[d], {
4887
4887
  [$.hasAddons]: qe,
@@ -4890,9 +4890,9 @@ var $ = {
4890
4890
  [$.isLoading]: Pe
4891
4891
  }),
4892
4892
  children: [
4893
- I && /* @__PURE__ */ g("span", {
4893
+ L && /* @__PURE__ */ g("span", {
4894
4894
  className: $.addon,
4895
- children: I
4895
+ children: L
4896
4896
  }),
4897
4897
  /* @__PURE__ */ _("div", {
4898
4898
  className: K($.inputWrapper, {
@@ -4904,43 +4904,43 @@ var $ = {
4904
4904
  children: [
4905
4905
  je && /* @__PURE__ */ g("span", {
4906
4906
  "aria-hidden": "true",
4907
- className: K($.startAdornment, Ki[W]),
4907
+ className: K($.startAdornment, Ki[te]),
4908
4908
  children: je
4909
4909
  }),
4910
- R && /* @__PURE__ */ g("span", {
4910
+ z && /* @__PURE__ */ g("span", {
4911
4911
  className: $.prefix,
4912
- children: R
4912
+ children: z
4913
4913
  }),
4914
4914
  /* @__PURE__ */ g("input", {
4915
- ...le,
4915
+ ...ue,
4916
4916
  ref: Je,
4917
4917
  id: pe,
4918
4918
  name: n,
4919
4919
  type: Ae,
4920
4920
  autoComplete: Ne,
4921
- className: K($.input, $[Ce], { [$.error]: Ee }, w),
4921
+ className: K($.input, $[Ce], { [$.error]: Ee }, T),
4922
4922
  style: {
4923
4923
  ...Te,
4924
- ...T
4924
+ ...E
4925
4925
  },
4926
4926
  value: xe,
4927
4927
  onChange: Ye,
4928
4928
  placeholder: i,
4929
4929
  disabled: De,
4930
- readOnly: J,
4931
- required: Oe,
4932
- autoFocus: re,
4933
- maxLength: G,
4934
- "aria-invalid": Ee ? !0 : se,
4935
- "aria-labelledby": ce ?? (fe ? void 0 : q?.ariaLabelledBy),
4930
+ readOnly: Oe,
4931
+ required: Y,
4932
+ autoFocus: G,
4933
+ maxLength: ie,
4934
+ "aria-invalid": Ee ? !0 : ce,
4935
+ "aria-labelledby": le ?? (fe ? void 0 : de?.ariaLabelledBy),
4936
4936
  "aria-describedby": Ve || void 0,
4937
- "aria-busy": C || void 0,
4938
- onMouseEnter: ie,
4939
- onMouseLeave: ae
4937
+ "aria-busy": w || void 0,
4938
+ onMouseEnter: ae,
4939
+ onMouseLeave: oe
4940
4940
  }),
4941
- z && /* @__PURE__ */ g("span", {
4941
+ B && /* @__PURE__ */ g("span", {
4942
4942
  className: $.suffix,
4943
- children: z
4943
+ children: B
4944
4944
  }),
4945
4945
  /* @__PURE__ */ _("div", {
4946
4946
  className: $.endSlot,
@@ -4950,32 +4950,32 @@ var $ = {
4950
4950
  "aria-hidden": "true",
4951
4951
  "data-testid": "input-spinner"
4952
4952
  }),
4953
- Y && /* @__PURE__ */ g("button", {
4953
+ Fe && /* @__PURE__ */ g("button", {
4954
4954
  type: "button",
4955
4955
  className: $.iconButton,
4956
4956
  onClick: () => ge((e) => !e),
4957
4957
  "aria-label": he ? "Hide password" : "Show password",
4958
4958
  children: he ? "Hide" : "Show"
4959
4959
  }),
4960
- Fe && /* @__PURE__ */ g("button", {
4960
+ X && /* @__PURE__ */ g("button", {
4961
4961
  type: "button",
4962
- className: K($.clearButton, Ki[ne]),
4962
+ className: K($.clearButton, Ki[re]),
4963
4963
  onClick: Xe,
4964
4964
  "aria-label": "Clear input",
4965
4965
  children: He
4966
4966
  }),
4967
4967
  Ie && Me && /* @__PURE__ */ g("span", {
4968
4968
  "aria-hidden": "true",
4969
- className: K($.endAdornment, Ki[te]),
4969
+ className: K($.endAdornment, Ki[ne]),
4970
4970
  children: Me
4971
4971
  })
4972
4972
  ]
4973
4973
  })
4974
4974
  ]
4975
4975
  }),
4976
- L && /* @__PURE__ */ g("span", {
4976
+ R && /* @__PURE__ */ g("span", {
4977
4977
  className: $.addon,
4978
- children: L
4978
+ children: R
4979
4979
  })
4980
4980
  ]
4981
4981
  }), Le && /* @__PURE__ */ _("div", {
@@ -4984,19 +4984,19 @@ var $ = {
4984
4984
  children: [
4985
4985
  be.length,
4986
4986
  " / ",
4987
- G
4987
+ ie
4988
4988
  ]
4989
4989
  })] });
4990
- return !fe && q ? Ze : /* @__PURE__ */ g(Jr, {
4990
+ return !fe && de ? Ze : /* @__PURE__ */ g(Jr, {
4991
4991
  id: pe,
4992
4992
  label: t,
4993
4993
  description: r,
4994
4994
  error: v,
4995
- required: Oe,
4995
+ required: Y,
4996
4996
  disabled: De,
4997
4997
  invalid: Ee,
4998
4998
  size: Ce,
4999
- className: E,
4999
+ className: D,
5000
5000
  bindControl: !1,
5001
5001
  children: Ze
5002
5002
  });
@@ -5033,7 +5033,7 @@ function Qi({ accessibilityLabel: e = "Switch", checked: t, defaultChecked: n =
5033
5033
  //#endregion
5034
5034
  //#region src/theme/ThemeContext.ts
5035
5035
  var $i = r(null), ea = (e) => e === "highContrast" ? "high-contrast" : e, ta = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, syncDocument: r = !0, children: i }) => {
5036
- let [a, o] = yt({
5036
+ let [a, o] = vt({
5037
5037
  value: e,
5038
5038
  defaultValue: t,
5039
5039
  onChange: n
@@ -5070,4 +5070,4 @@ function na() {
5070
5070
  return e;
5071
5071
  }
5072
5072
  //#endregion
5073
- export { ce as Accordion, Bi as Button, Gi as Checkbox, Xt as Dropdown, Jr as FormField, Xi as Input, En as Modal, Gn as Popover, Dt as Portal, Et as PortalProvider, Zn as Radio, or as RadioGroup, ti as Select, Qi as Switch, xi as Tabs, ta as ThemeProvider, Ri as Tooltip, na as useTheme };
5073
+ 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 };