@vellira-ui/react 2.35.0 → 2.35.1

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
@@ -274,77 +274,81 @@ var W = {
274
274
  subLabel: "_subLabel_1vj4n_276",
275
275
  subSeparator: "_subSeparator_1vj4n_284"
276
276
  }, _e = B("item", "Dropdown.Item"), ve = ({ item: e, itemIndex: t }) => {
277
- let n = he(), [r, i] = f(e.type === "checkbox" ? e.props.defaultChecked ?? !1 : !1), a = n.activeIndex === t, o = n.openSubId === e.id, s = e.type === "checkbox", c = e.type === "radio", l = e.type === "subTrigger", u = s ? e.props.checked ?? r : c ? (e.groupProps?.value ?? n.radioValues[e.groupId]) === e.props.value : !1, d = n.loading || e.disabled, p = e.props, m = ne(p.children), y = m.icon ?? p.icon, x = m.description ?? ("description" in p ? p.description : void 0), S = m.badge ?? ("badge" in p ? p.badge : void 0), C = m.shortcut ?? p.shortcut, w = m.content.length ? m.content : p.children, T = "color" in p ? p.color : void 0, E = e.type === "item" ? e.props.href : void 0, D = e.type === "item" ? e.props.target : void 0, O = e.type === "item" ? e.props.download : void 0, k = n.getItemId(t), A = s ? "menuitemcheckbox" : c ? "menuitemradio" : "menuitem", j = e.type === "item" && D === "_blank" && !e.props.rel ? "noreferrer noopener" : e.type === "item" ? e.props.rel : void 0, M = E ? "a" : "li", N = s || c, P = (t) => {
278
- if (d) {
277
+ let n = he(), r = d(void 0), [i, a] = f(e.type === "checkbox" ? e.props.defaultChecked ?? !1 : !1), o = n.activeIndex === t, s = n.openSubId === e.id, c = e.type === "checkbox", l = e.type === "radio", u = e.type === "subTrigger", p = c ? e.props.checked ?? i : l ? (e.groupProps?.value ?? n.radioValues[e.groupId]) === e.props.value : !1, m = n.loading || e.disabled, y = e.props, x = ne(y.children), S = x.icon ?? y.icon, C = x.description ?? ("description" in y ? y.description : void 0), w = x.badge ?? ("badge" in y ? y.badge : void 0), T = x.shortcut ?? y.shortcut, E = x.content.length ? x.content : y.children, D = "color" in y ? y.color : void 0, O = e.type === "item" ? e.props.href : void 0, k = e.type === "item" ? e.props.target : void 0, A = e.type === "item" ? e.props.download : void 0, j = n.getItemId(t), M = c ? "menuitemcheckbox" : l ? "menuitemradio" : "menuitem", N = e.type === "item" && k === "_blank" && !e.props.rel ? "noreferrer noopener" : e.type === "item" ? e.props.rel : void 0, P = O ? "a" : "li", F = c || l, I = (t) => {
278
+ if (m) {
279
279
  t.preventDefault();
280
280
  return;
281
281
  }
282
- if (s && e.type === "checkbox") {
283
- let t = !u;
284
- i(t), e.props.onCheckedChange?.(t);
282
+ if (c && e.type === "checkbox") {
283
+ let t = !p;
284
+ a(t), e.props.onCheckedChange?.(t);
285
285
  }
286
286
  n.selectItem(e, ye(t));
287
287
  };
288
- return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(M, {
289
- id: k,
290
- role: A,
291
- href: M === "a" && !d ? E : void 0,
292
- target: M === "a" && !d ? D : void 0,
293
- rel: M === "a" ? j : void 0,
294
- download: M === "a" && !d ? O : void 0,
295
- tabIndex: d ? -1 : 0,
296
- "aria-disabled": d || void 0,
297
- "aria-checked": s || c ? u : void 0,
298
- "aria-haspopup": l ? "menu" : void 0,
299
- "aria-expanded": l ? o : void 0,
300
- "data-active": a || void 0,
301
- "data-state": o ? "open" : void 0,
288
+ return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(P, {
289
+ id: j,
290
+ role: M,
291
+ href: P === "a" && !m ? O : void 0,
292
+ target: P === "a" && !m ? k : void 0,
293
+ rel: P === "a" ? N : void 0,
294
+ download: P === "a" && !m ? A : void 0,
295
+ tabIndex: m ? -1 : 0,
296
+ "aria-disabled": m || void 0,
297
+ "aria-checked": c || l ? p : void 0,
298
+ "aria-haspopup": u ? "menu" : void 0,
299
+ "aria-expanded": u ? s : void 0,
300
+ "data-active": o || void 0,
301
+ "data-state": s ? "open" : void 0,
302
302
  className: V(W.item, W[n.size], {
303
- [W.active]: a,
304
- [W.disabled]: d,
305
- [W.checked]: u
306
- }, T && T !== "default" ? W[T] : void 0, p.className),
307
- onClick: P,
303
+ [W.active]: o,
304
+ [W.disabled]: m,
305
+ [W.checked]: p
306
+ }, D && D !== "default" ? W[D] : void 0, y.className),
307
+ onClick: I,
308
308
  onMouseEnter: () => {
309
- d || (n.setActiveIndex(t), l && window.setTimeout(() => n.setOpenSubId(e.id), 120));
309
+ m || (n.setActiveIndex(t), u ? (window.clearTimeout(r.current), r.current = window.setTimeout(() => n.setOpenSubId(e.id), 120)) : (window.clearTimeout(r.current), n.setOpenSubId(void 0)));
310
+ },
311
+ onMouseLeave: () => {
312
+ window.clearTimeout(r.current);
310
313
  },
311
314
  children: [
312
- N && /* @__PURE__ */ g("span", {
315
+ F && /* @__PURE__ */ g("span", {
313
316
  className: W.indicator,
314
317
  "aria-hidden": "true",
315
- children: u ? /* @__PURE__ */ g(v, {}) : null
318
+ children: p ? /* @__PURE__ */ g(v, {}) : null
316
319
  }),
317
- y && /* @__PURE__ */ g("span", {
320
+ S && /* @__PURE__ */ g("span", {
318
321
  className: W.itemIcon,
319
- children: y
322
+ children: S
320
323
  }),
321
324
  /* @__PURE__ */ _("span", {
322
325
  className: W.itemText,
323
326
  children: [/* @__PURE__ */ g("span", {
324
327
  className: W.itemLabel,
325
- children: w
326
- }), x && /* @__PURE__ */ g("span", {
328
+ children: E
329
+ }), C && /* @__PURE__ */ g("span", {
327
330
  className: W.itemDescription,
328
- children: x
331
+ children: C
329
332
  })]
330
333
  }),
331
- S && /* @__PURE__ */ g("span", {
334
+ w && /* @__PURE__ */ g("span", {
332
335
  className: W.itemBadge,
333
- children: S
336
+ children: w
334
337
  }),
335
- C && /* @__PURE__ */ g("span", {
338
+ T && /* @__PURE__ */ g("span", {
336
339
  className: W.itemShortcut,
337
- children: C
340
+ children: T
338
341
  }),
339
- l && /* @__PURE__ */ g("span", {
342
+ u && /* @__PURE__ */ g("span", {
340
343
  className: W.itemShortcut,
341
344
  "aria-hidden": "true",
342
345
  children: /* @__PURE__ */ g(b, {})
343
346
  })
344
347
  ]
345
- }), l && o && e.subEntries.length > 0 && /* @__PURE__ */ g("ul", {
348
+ }), u && s && e.subEntries.length > 0 && /* @__PURE__ */ g("ul", {
346
349
  role: "menu",
347
350
  className: W.subContent,
351
+ onMouseEnter: () => n.setOpenSubId(e.id),
348
352
  children: e.subEntries.map((e) => e.type === "label" ? /* @__PURE__ */ g("li", {
349
353
  role: "presentation",
350
354
  className: W.subLabel,
@@ -355,7 +359,7 @@ var W = {
355
359
  "aria-hidden": "true"
356
360
  }, e.id) : e.type === "item" ? /* @__PURE__ */ g(be, {
357
361
  item: e.item,
358
- id: `${k}-${e.itemIndex}`
362
+ id: `${j}-${e.itemIndex}`
359
363
  }, e.item.id) : null)
360
364
  })] });
361
365
  };
@@ -373,26 +377,61 @@ function ye(e) {
373
377
  };
374
378
  }
375
379
  function be({ id: e, item: t }) {
376
- let n = he(), r = t.props, i = ne(r.children), a = i.icon ?? r.icon, o = i.content.length ? i.content : r.children, s = "color" in r ? r.color : void 0, c = n.loading || t.disabled;
377
- return /* @__PURE__ */ _("li", {
380
+ let n = he(), [r, i] = f(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 = ne(c.children), u = l.icon ?? c.icon, d = l.description ?? ("description" in c ? c.description : void 0), p = 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) => {
381
+ if (b) {
382
+ e.preventDefault();
383
+ return;
384
+ }
385
+ if (a && t.type === "checkbox") {
386
+ let e = !s;
387
+ i(e), t.props.onCheckedChange?.(e);
388
+ }
389
+ n.selectItem(t, ye(e));
390
+ };
391
+ return /* @__PURE__ */ _(E, {
378
392
  id: e,
379
- role: "menuitem",
380
- tabIndex: c ? -1 : 0,
381
- "aria-disabled": c || void 0,
382
- className: V(W.item, W[n.size], { [W.disabled]: c }, s && s !== "default" ? W[s] : void 0),
383
- onClick: (e) => {
384
- c || n.selectItem(t, ye(e));
385
- },
386
- children: [a && /* @__PURE__ */ g("span", {
387
- className: W.itemIcon,
388
- children: a
389
- }), /* @__PURE__ */ g("span", {
390
- className: W.itemText,
391
- children: /* @__PURE__ */ g("span", {
392
- className: W.itemLabel,
393
- children: o
393
+ role: w,
394
+ href: E === "a" && !b ? x : void 0,
395
+ target: E === "a" && !b ? S : void 0,
396
+ rel: E === "a" ? T : void 0,
397
+ download: E === "a" && !b ? C : void 0,
398
+ tabIndex: b ? -1 : 0,
399
+ "aria-disabled": b || void 0,
400
+ "aria-checked": a || o ? s : void 0,
401
+ className: V(W.item, W[n.size], {
402
+ [W.disabled]: b,
403
+ [W.checked]: s
404
+ }, y && y !== "default" ? W[y] : void 0),
405
+ onClick: O,
406
+ children: [
407
+ D && /* @__PURE__ */ g("span", {
408
+ className: W.indicator,
409
+ "aria-hidden": "true",
410
+ children: s ? /* @__PURE__ */ g(v, {}) : null
411
+ }),
412
+ u && /* @__PURE__ */ g("span", {
413
+ className: W.itemIcon,
414
+ children: u
415
+ }),
416
+ /* @__PURE__ */ _("span", {
417
+ className: W.itemText,
418
+ children: [/* @__PURE__ */ g("span", {
419
+ className: W.itemLabel,
420
+ children: h
421
+ }), d && /* @__PURE__ */ g("span", {
422
+ className: W.itemDescription,
423
+ children: d
424
+ })]
425
+ }),
426
+ p && /* @__PURE__ */ g("span", {
427
+ className: W.itemBadge,
428
+ children: p
429
+ }),
430
+ m && /* @__PURE__ */ g("span", {
431
+ className: W.itemShortcut,
432
+ children: m
394
433
  })
395
- })]
434
+ ]
396
435
  });
397
436
  }
398
437
  var xe = { group: "_group_aviwv_1" }, Se = B("label", "Dropdown.Label"), Ce = ({ children: e, className: t }) => /* @__PURE__ */ g("li", {
@@ -527,19 +566,19 @@ function G(e) {
527
566
  return typeof e == "number" ? `${e}px` : e;
528
567
  }
529
568
  var K = { wrapper: "_wrapper_14ue8_1" }, Ve = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, size: i = "md", color: a = "primary", placement: s = "bottom-start", offset: p = 2, matchTriggerWidth: m = !1, minWidth: h, maxWidth: v, portal: y = !0, avoidCollisions: b = !0, modal: x = !1, closeOnSelect: S = !0, loop: C = !0, disabled: w = !1, loading: T = !1, loadingText: E = "Loading actions...", className: D }) => {
530
- let O = l(), k = `${O}-trigger`, A = `${O}-menu`, j = d(null), M = d(null), [N, P] = f(), [I, L] = f({}), R = u(() => te(e), [e]), ee = u(() => R.items.map((e) => ({
569
+ let O = l(), k = `${O}-trigger`, A = `${O}-menu`, j = d(null), M = d(null), [N, P] = f(), [I, L] = f({}), R = u(() => te(e), [e]), ee = u(() => Ue(R.items), [R.items]), z = u(() => R.items.map((e) => ({
531
570
  disabled: e.disabled,
532
571
  label: e.label
533
572
  })), [R.items]);
534
573
  c(() => {
535
574
  L((e) => {
536
575
  let t = { ...e };
537
- return R.items.forEach((e) => {
576
+ return ee.forEach((e) => {
538
577
  e.type === "radio" && t[e.groupId] === void 0 && (t[e.groupId] = e.groupProps?.value ?? e.groupProps?.defaultValue);
539
578
  }), t;
540
579
  });
541
- }, [R.items]);
542
- let { floatingStyles: z, setRef: B, setFloatingRef: ne } = Le({
580
+ }, [ee]);
581
+ let { floatingStyles: B, setRef: ne, setFloatingRef: re } = Le({
543
582
  open: t,
544
583
  onOpenChange: r,
545
584
  placement: s,
@@ -547,8 +586,8 @@ var K = { wrapper: "_wrapper_14ue8_1" }, Ve = ({ children: e, open: t, defaultOp
547
586
  avoidCollisions: b,
548
587
  offset: p,
549
588
  mobileSheetBreakpoint: 640
550
- }), { activeIndex: re, setActiveIndex: ie, isOpen: ae, closeDropdown: H, toggleDropdown: U, onKeyDown: oe } = F({
551
- items: ee,
589
+ }), { activeIndex: ie, setActiveIndex: ae, isOpen: H, closeDropdown: U, toggleDropdown: oe, onKeyDown: se } = F({
590
+ items: z,
552
591
  open: t,
553
592
  defaultOpen: n,
554
593
  disabled: w,
@@ -558,15 +597,15 @@ var K = { wrapper: "_wrapper_14ue8_1" }, Ve = ({ children: e, open: t, defaultOp
558
597
  loop: C
559
598
  });
560
599
  c(() => {
561
- if (!x || !ae) return;
600
+ if (!x || !H) return;
562
601
  let e = document.body.style.overflow;
563
602
  return document.body.style.overflow = "hidden", () => {
564
603
  document.body.style.overflow = e;
565
604
  };
566
- }, [ae, x]);
567
- let se = o(() => {
568
- H(), j.current?.focus();
569
- }, [H]), ce = o((e, t) => {
605
+ }, [H, x]);
606
+ let ce = o(() => {
607
+ U(), j.current?.focus();
608
+ }, [U]), le = o((e, t) => {
570
609
  if (e.disabled || T) return;
571
610
  if (e.type === "subTrigger") {
572
611
  P(e.id);
@@ -577,13 +616,13 @@ var K = { wrapper: "_wrapper_14ue8_1" }, Ve = ({ children: e, open: t, defaultOp
577
616
  [e.groupId]: e.props.value
578
617
  })), e.groupProps?.onValueChange?.(e.props.value));
579
618
  let n = e.props.closeOnSelect ?? (e.type !== "checkbox" && S);
580
- !t.defaultPrevented && n && se();
619
+ !t.defaultPrevented && n && ce();
581
620
  }, [
582
- se,
621
+ ce,
583
622
  S,
584
623
  T
585
- ]), le = o((e) => {
586
- let t = R.items[re];
624
+ ]), ue = o((e) => {
625
+ let t = R.items[ie];
587
626
  if (e.key === "ArrowRight" && t?.type === "subTrigger") {
588
627
  e.preventDefault(), P(t.id);
589
628
  return;
@@ -595,42 +634,42 @@ var K = { wrapper: "_wrapper_14ue8_1" }, Ve = ({ children: e, open: t, defaultOp
595
634
  if ((e.key === "Enter" || e.key === " ") && t) {
596
635
  e.preventDefault();
597
636
  let n = He(e);
598
- ce(t, n);
637
+ le(t, n);
599
638
  return;
600
639
  }
601
- oe(e), e.key === "Escape" && j.current?.focus();
640
+ se(e), e.key === "Escape" && j.current?.focus();
602
641
  }, [
603
- re,
604
- oe,
642
+ ie,
643
+ se,
605
644
  N,
606
645
  R.items,
607
- ce
608
- ]), ue = o((e) => {
609
- e.preventDefault(), U();
610
- }, [U]), de = o((e) => {
611
- j.current = e, B(e);
612
- }, [B]), fe = o((e) => {
613
- M.current = e, ne(e), e?.focus();
614
- }, [ne]);
615
- Re([j, M], H, ae);
616
- let he = {
617
- ...z,
646
+ le
647
+ ]), de = o((e) => {
648
+ e.preventDefault(), oe();
649
+ }, [oe]), fe = o((e) => {
650
+ j.current = e, ne(e);
651
+ }, [ne]), he = o((e) => {
652
+ M.current = e, re(e), e?.focus();
653
+ }, [re]);
654
+ Re([j, M], U, H);
655
+ let ge = {
656
+ ...B,
618
657
  minWidth: G(h),
619
658
  maxWidth: G(v)
620
659
  };
621
660
  return /* @__PURE__ */ g(me, {
622
661
  value: {
623
662
  disabled: w,
624
- isOpen: ae,
663
+ isOpen: H,
625
664
  contentId: A,
626
665
  triggerId: k,
627
- setTriggerRef: de,
628
- onClick: ue,
629
- onKeyDown: le
666
+ setTriggerRef: fe,
667
+ onClick: de,
668
+ onKeyDown: ue
630
669
  },
631
670
  children: /* @__PURE__ */ g(pe, {
632
671
  value: {
633
- activeIndex: re,
672
+ activeIndex: ie,
634
673
  closeOnSelect: S,
635
674
  color: a,
636
675
  contentId: A,
@@ -638,19 +677,19 @@ var K = { wrapper: "_wrapper_14ue8_1" }, Ve = ({ children: e, open: t, defaultOp
638
677
  disabled: w,
639
678
  entries: R.entries,
640
679
  getItemId: (e) => `${A}-item-${e}`,
641
- isOpen: ae,
680
+ isOpen: H,
642
681
  items: R.items,
643
682
  loading: T,
644
683
  loadingText: E,
645
684
  maxWidth: v,
646
685
  minWidth: h,
647
686
  openSubId: N,
648
- onKeyDown: le,
687
+ onKeyDown: ue,
649
688
  portal: y,
650
689
  radioValues: I,
651
- selectItem: ce,
652
- setActiveIndex: ie,
653
- setContentRef: fe,
690
+ selectItem: le,
691
+ setActiveIndex: ae,
692
+ setContentRef: he,
654
693
  setOpenSubId: P,
655
694
  setRadioValue: (e, t) => {
656
695
  L((n) => ({
@@ -659,7 +698,7 @@ var K = { wrapper: "_wrapper_14ue8_1" }, Ve = ({ children: e, open: t, defaultOp
659
698
  }));
660
699
  },
661
700
  size: i,
662
- surfaceStyle: he,
701
+ surfaceStyle: ge,
663
702
  triggerId: k
664
703
  },
665
704
  children: /* @__PURE__ */ _("div", {
@@ -683,9 +722,15 @@ function He(e) {
683
722
  }
684
723
  };
685
724
  }
725
+ function Ue(e) {
726
+ let t = [];
727
+ return e.forEach((e) => {
728
+ t.push(e), e.type === "subTrigger" && t.push(...Ue(e.subItems));
729
+ }), t;
730
+ }
686
731
  //#endregion
687
732
  //#region src/components/Dropdown/SubContent/DropdownSubContent.tsx
688
- var Ue = B("subContent", "Dropdown.SubContent"), We = B("subTrigger", "Dropdown.SubTrigger"), Ge = B("sub", "Dropdown.Sub"), Ke = {
733
+ var We = B("subContent", "Dropdown.SubContent"), Ge = B("subTrigger", "Dropdown.SubTrigger"), Ke = B("sub", "Dropdown.Sub"), qe = {
689
734
  button: "_button_bb3ib_1",
690
735
  disabled: "_disabled_bb3ib_63",
691
736
  arrow: "_arrow_bb3ib_71",
@@ -701,9 +746,9 @@ var Ue = B("subContent", "Dropdown.SubContent"), We = B("subTrigger", "Dropdown.
701
746
  lg: "_lg_bb3ib_350",
702
747
  label: "_label_bb3ib_362",
703
748
  open: "_open_bb3ib_390"
704
- }, qe = (e) => /* @__PURE__ */ g(Je, { ...e });
705
- qe.__velliraDropdownPart = "trigger", qe.displayName = "Dropdown.Trigger";
706
- var Je = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
749
+ }, Je = (e) => /* @__PURE__ */ g(Ye, { ...e });
750
+ Je.__velliraDropdownPart = "trigger", Je.displayName = "Dropdown.Trigger";
751
+ var Ye = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
707
752
  let o = he(), s = ge(), c = t && a(e) ? e : void 0, l = o.disabled || r, u = {
708
753
  id: s.triggerId,
709
754
  ref: c ? Be(c.props.ref, s.setTriggerRef) : s.setTriggerRef,
@@ -711,7 +756,7 @@ var Je = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
711
756
  "aria-disabled": l || void 0,
712
757
  "aria-expanded": s.isOpen,
713
758
  "aria-haspopup": "menu",
714
- className: V(!c && Ke.button, !c && Ke[o.size], !c && Ke[o.color], i),
759
+ className: V(!c && qe.button, !c && qe[o.size], !c && qe[o.color], i),
715
760
  "data-state": s.isOpen ? "open" : "closed",
716
761
  disabled: l || void 0,
717
762
  onClick: ze(c?.props.onClick, s.onClick),
@@ -724,20 +769,20 @@ var Je = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
724
769
  type: "button",
725
770
  ...u,
726
771
  children: [/* @__PURE__ */ g("span", {
727
- className: Ke.label,
772
+ className: qe.label,
728
773
  children: e
729
774
  }), /* @__PURE__ */ g("span", {
730
- className: V(Ke.arrow, { [Ke.open]: s.isOpen }),
775
+ className: V(qe.arrow, { [qe.open]: s.isOpen }),
731
776
  "aria-hidden": "true",
732
777
  children: /* @__PURE__ */ g(y, {})
733
778
  })]
734
779
  });
735
780
  };
736
- Je.displayName = "DropdownTriggerSurface";
781
+ Ye.displayName = "DropdownTriggerSurface";
737
782
  //#endregion
738
783
  //#region src/components/Dropdown/Dropdown.tsx
739
- var Ye = Object.assign(Ve, {
740
- Trigger: qe,
784
+ var Xe = Object.assign(Ve, {
785
+ Trigger: Je,
741
786
  Content: ke,
742
787
  Item: _e,
743
788
  CheckboxItem: ae,
@@ -746,9 +791,9 @@ var Ye = Object.assign(Ve, {
746
791
  Group: ce,
747
792
  Label: Se,
748
793
  Separator: De,
749
- Sub: Ge,
750
- SubTrigger: We,
751
- SubContent: Ue,
794
+ Sub: Ke,
795
+ SubTrigger: Ge,
796
+ SubContent: We,
752
797
  ItemIcon: Me,
753
798
  ItemDescription: je,
754
799
  ItemBadge: Ae,
@@ -756,81 +801,81 @@ var Ye = Object.assign(Ve, {
756
801
  Empty: oe,
757
802
  Loading: we
758
803
  });
759
- Ye.displayName = "Dropdown";
804
+ Xe.displayName = "Dropdown";
760
805
  //#endregion
761
806
  //#region src/components/Modal/ModalContext.tsx
762
- var Xe = r(void 0), Ze = () => {
763
- let e = s(Xe);
807
+ var Ze = r(void 0), Qe = () => {
808
+ let e = s(Ze);
764
809
  if (e === void 0) throw Error("Modal compound components must be used inside Modal");
765
810
  return e;
766
811
  };
767
- Xe.displayName = "ModalContext";
768
- var Qe = { modalBody: "_modalBody_iv33a_1" }, $e = ({ children: e }) => {
769
- let { descriptionId: t } = Ze();
812
+ Ze.displayName = "ModalContext";
813
+ var $e = { modalBody: "_modalBody_iv33a_1" }, et = ({ children: e }) => {
814
+ let { descriptionId: t } = Qe();
770
815
  return /* @__PURE__ */ g("div", {
771
816
  id: t,
772
- className: Qe.modalBody,
817
+ className: $e.modalBody,
773
818
  children: e
774
819
  });
775
820
  };
776
- $e.displayName = "ModalBody";
777
- var et = { content: "_content_k44g7_1" }, tt = ({ children: e }) => /* @__PURE__ */ g("div", {
778
- className: et.content,
821
+ et.displayName = "ModalBody";
822
+ var tt = { content: "_content_k44g7_1" }, nt = ({ children: e }) => /* @__PURE__ */ g("div", {
823
+ className: tt.content,
779
824
  children: e
780
825
  });
781
- tt.displayName = "ModalContent";
782
- var nt = { modalFooter: "_modalFooter_ezys6_1" }, rt = ({ children: e }) => /* @__PURE__ */ g("div", {
783
- className: nt.modalFooter,
826
+ nt.displayName = "ModalContent";
827
+ var rt = { modalFooter: "_modalFooter_ezys6_1" }, it = ({ children: e }) => /* @__PURE__ */ g("div", {
828
+ className: rt.modalFooter,
784
829
  children: e
785
830
  });
786
- rt.displayName = "ModalFooter";
787
- var it = {
831
+ it.displayName = "ModalFooter";
832
+ var at = {
788
833
  modalHeader: "_modalHeader_p8xf1_1",
789
834
  modalHeaderTitle: "_modalHeaderTitle_p8xf1_7",
790
835
  modalHeaderCloseButton: "_modalHeaderCloseButton_p8xf1_14"
791
- }, at = ({ children: e }) => {
792
- let { onClose: t, titleId: n } = Ze();
836
+ }, ot = ({ children: e }) => {
837
+ let { onClose: t, titleId: n } = Qe();
793
838
  return /* @__PURE__ */ _("div", {
794
- className: it.modalHeader,
839
+ className: at.modalHeader,
795
840
  children: [/* @__PURE__ */ g("h2", {
796
841
  id: n,
797
- className: it.modalHeaderTitle,
842
+ className: at.modalHeaderTitle,
798
843
  children: e
799
844
  }), t && /* @__PURE__ */ g("button", {
800
845
  type: "button",
801
- className: it.modalHeaderCloseButton,
846
+ className: at.modalHeaderCloseButton,
802
847
  onClick: t,
803
848
  "aria-label": "Close modal",
804
849
  children: /* @__PURE__ */ g(x, { size: 16 })
805
850
  })]
806
851
  });
807
852
  };
808
- at.displayName = "ModalHeader";
853
+ ot.displayName = "ModalHeader";
809
854
  //#endregion
810
855
  //#region src/hooks/useModalKeyboard.ts
811
- var ot = ({ isOpen: e, onClose: t }) => {
856
+ var st = ({ isOpen: e, onClose: t }) => {
812
857
  let n = o((n) => {
813
858
  e && n.key === "Escape" && (n.preventDefault(), t?.());
814
859
  }, [e, t]);
815
860
  c(() => (document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n)), [n]);
816
- }, st = {
861
+ }, ct = {
817
862
  overlay: "_overlay_dcudn_1",
818
863
  "overlay--open": "_overlay--open_dcudn_14",
819
864
  modal: "_modal_dcudn_20",
820
865
  "overlay--animated": "_overlay--animated_dcudn_28"
821
- }, ct = 0, lt = "", ut = ({ children: e, onClose: t, isOpen: n, className: r, closeOnBackdrop: i, closeOnClick: a, closeOnEsc: s = !0, zIndex: l = 1e3, animated: u = !0 }) => {
822
- let f = i ?? a ?? !0, p = d(null), { titleId: m, descriptionId: h } = Ze(), _ = o((e) => {
866
+ }, lt = 0, ut = "", dt = ({ children: e, onClose: t, isOpen: n, className: r, closeOnBackdrop: i, closeOnClick: a, closeOnEsc: s = !0, zIndex: l = 1e3, animated: u = !0 }) => {
867
+ let f = i ?? a ?? !0, p = d(null), { titleId: m, descriptionId: h } = Qe(), _ = o((e) => {
823
868
  f && e.target === e.currentTarget && t?.();
824
869
  }, [f, t]);
825
- return ot({
870
+ return st({
826
871
  isOpen: n,
827
872
  onClose: s ? t : void 0
828
873
  }), c(() => {
829
- if (n) return ct === 0 && (lt = document.body.style.overflow), ct += 1, document.body.style.overflow = "hidden", () => {
830
- ct = Math.max(0, ct - 1), ct === 0 && (document.body.style.overflow = lt);
874
+ if (n) return lt === 0 && (ut = document.body.style.overflow), lt += 1, document.body.style.overflow = "hidden", () => {
875
+ lt = Math.max(0, lt - 1), lt === 0 && (document.body.style.overflow = ut);
831
876
  };
832
877
  }, [n]), !n && !u ? null : /* @__PURE__ */ g(H, { children: /* @__PURE__ */ g("div", {
833
- className: V(st.overlay, n && st["overlay--open"], u && st["overlay--animated"], r),
878
+ className: V(ct.overlay, n && ct["overlay--open"], u && ct["overlay--animated"], r),
834
879
  onClick: _,
835
880
  tabIndex: -1,
836
881
  role: "presentation",
@@ -846,7 +891,7 @@ var ot = ({ isOpen: e, onClose: t }) => {
846
891
  children: /* @__PURE__ */ g("div", {
847
892
  ref: p,
848
893
  tabIndex: -1,
849
- className: st.modal,
894
+ className: ct.modal,
850
895
  role: "dialog",
851
896
  "aria-modal": "true",
852
897
  "aria-labelledby": m,
@@ -856,10 +901,10 @@ var ot = ({ isOpen: e, onClose: t }) => {
856
901
  })
857
902
  }) });
858
903
  };
859
- ut.displayName = "ModalOverlay";
904
+ dt.displayName = "ModalOverlay";
860
905
  //#endregion
861
906
  //#region src/components/Modal/Modal.tsx
862
- var dt = ({ isOpen: e, children: t, onClose: n, closeOnBackdrop: r, closeOnClick: i, closeOnEsc: a = !0 }) => {
907
+ var ft = ({ isOpen: e, children: t, onClose: n, closeOnBackdrop: r, closeOnClick: i, closeOnEsc: a = !0 }) => {
863
908
  let o = I({
864
909
  isOpen: e,
865
910
  onClose: n,
@@ -867,34 +912,34 @@ var dt = ({ isOpen: e, children: t, onClose: n, closeOnBackdrop: r, closeOnClick
867
912
  closeOnClick: i,
868
913
  closeOnEsc: a
869
914
  });
870
- return o.shouldRender ? /* @__PURE__ */ g(Xe.Provider, {
915
+ return o.shouldRender ? /* @__PURE__ */ g(Ze.Provider, {
871
916
  value: {
872
917
  onClose: o.onClose,
873
918
  titleId: o.titleId,
874
919
  descriptionId: o.descriptionId
875
920
  },
876
- children: /* @__PURE__ */ g(ut, {
921
+ children: /* @__PURE__ */ g(dt, {
877
922
  isOpen: o.isOpen,
878
923
  onClose: o.onClose,
879
924
  closeOnBackdrop: o.closeOnBackdrop,
880
925
  closeOnEsc: o.closeOnEsc,
881
- children: /* @__PURE__ */ g(tt, { children: t })
926
+ children: /* @__PURE__ */ g(nt, { children: t })
882
927
  })
883
928
  }) : null;
884
929
  };
885
- dt.displayName = "Modal";
930
+ ft.displayName = "Modal";
886
931
  //#endregion
887
932
  //#region src/components/Modal/index.ts
888
- var ft = Object.assign(dt, {
889
- Header: at,
890
- Body: $e,
891
- Content: tt,
892
- Footer: rt
893
- }), pt = r(null), mt = pt.Provider;
894
- function ht() {
895
- return s(pt);
933
+ var pt = Object.assign(ft, {
934
+ Header: ot,
935
+ Body: et,
936
+ Content: nt,
937
+ Footer: it
938
+ }), mt = r(null), ht = mt.Provider;
939
+ function gt() {
940
+ return s(mt);
896
941
  }
897
- var gt = {
942
+ var _t = {
898
943
  root: "_root_1n02e_1",
899
944
  label: "_label_1n02e_9",
900
945
  required: "_required_1n02e_21",
@@ -905,7 +950,7 @@ var gt = {
905
950
  error: "_error_1n02e_51",
906
951
  disabled: "_disabled_1n02e_59",
907
952
  invalid: "_invalid_1n02e_75"
908
- }, _t = i(({ value: e, defaultValue: t = "", onValueChange: n, disabled: r = !1, required: i = !1, size: a = "md", color: o = "primary", name: s, label: c, description: u, error: d, orientation: f = "vertical", children: p, className: m, id: h, ...v }, y) => {
953
+ }, vt = i(({ value: e, defaultValue: t = "", onValueChange: n, disabled: r = !1, required: i = !1, size: a = "md", color: o = "primary", name: s, label: c, description: u, error: d, orientation: f = "vertical", children: p, className: m, id: h, ...v }, y) => {
909
954
  let b = l(), x = h ?? b, S = c ? `${x}-label` : void 0, C = u ? `${x}-description` : void 0, w = d ? `${x}-error` : void 0, T = [C, w].filter(Boolean).join(" ") || void 0, E = s ?? `${x}-radio`, [D, O] = P({
910
955
  value: e,
911
956
  defaultValue: t,
@@ -921,23 +966,23 @@ var gt = {
921
966
  "aria-disabled": r || void 0,
922
967
  "aria-required": i || void 0,
923
968
  "aria-invalid": k || void 0,
924
- className: V(gt.root, k && gt.invalid, r && gt.disabled, m),
969
+ className: V(_t.root, k && _t.invalid, r && _t.disabled, m),
925
970
  children: [
926
971
  c && /* @__PURE__ */ _("div", {
927
972
  id: S,
928
- className: gt.label,
973
+ className: _t.label,
929
974
  children: [c, i && /* @__PURE__ */ g("span", {
930
- className: gt.required,
975
+ className: _t.required,
931
976
  "aria-hidden": "true",
932
977
  children: "*"
933
978
  })]
934
979
  }),
935
980
  u && /* @__PURE__ */ g("div", {
936
981
  id: C,
937
- className: gt.description,
982
+ className: _t.description,
938
983
  children: u
939
984
  }),
940
- /* @__PURE__ */ g(mt, {
985
+ /* @__PURE__ */ g(ht, {
941
986
  value: {
942
987
  name: E,
943
988
  value: D,
@@ -950,31 +995,31 @@ var gt = {
950
995
  onValueChange: O
951
996
  },
952
997
  children: /* @__PURE__ */ g("div", {
953
- className: V(gt.items, gt[f]),
998
+ className: V(_t.items, _t[f]),
954
999
  children: p
955
1000
  })
956
1001
  }),
957
1002
  d && /* @__PURE__ */ g("div", {
958
1003
  id: w,
959
- className: gt.error,
1004
+ className: _t.error,
960
1005
  children: d
961
1006
  })
962
1007
  ]
963
1008
  });
964
1009
  });
965
- _t.displayName = "RadioGroup";
1010
+ vt.displayName = "RadioGroup";
966
1011
  //#endregion
967
1012
  //#region src/components/Select/internal/SelectContext.tsx
968
- var vt = r(null), yt = vt.Provider;
969
- function bt() {
970
- let e = s(vt);
1013
+ var yt = r(null), bt = yt.Provider;
1014
+ function xt() {
1015
+ let e = s(yt);
971
1016
  if (!e) throw Error("Select compound components must be used inside <Select>");
972
1017
  return e;
973
1018
  }
974
- vt.displayName = "SelectContext";
1019
+ yt.displayName = "SelectContext";
975
1020
  //#endregion
976
1021
  //#region src/components/Select/internal/useSelectVirtualization.ts
977
- function xt({ loading: e, options: t, scrollTop: n, virtual: r }) {
1022
+ function St({ loading: e, options: t, scrollTop: n, virtual: r }) {
978
1023
  return u(() => {
979
1024
  let i = typeof r == "object" ? r : r ? {} : void 0, a = i?.itemHeight ?? 40, o = !!(i && t.length > 0 && !e), s = o ? Math.max(0, Math.floor(n / a) - 2) : 0, c = o ? Math.ceil(300 / a) + 4 : t.length, l = o ? t.slice(s, s + c) : t, u = o ? s * a : 0;
980
1025
  return {
@@ -1011,9 +1056,9 @@ var q = {
1011
1056
  danger: "_danger_1l7x7_283",
1012
1057
  check: "_check_1l7x7_347",
1013
1058
  checkPop: "_checkPop_1l7x7_1"
1014
- }, St = () => null;
1015
- St.__velliraSelectPart = "item", St.displayName = "Select.Item";
1016
- var Ct = ({ option: e, isSelected: t, isActive: n, optionId: r, renderOption: i, onSelect: a, onMouseEnter: o }) => {
1059
+ }, Ct = () => null;
1060
+ Ct.__velliraSelectPart = "item", Ct.displayName = "Select.Item";
1061
+ var wt = ({ option: e, isSelected: t, isActive: n, optionId: r, renderOption: i, onSelect: a, onMouseEnter: o }) => {
1017
1062
  let s = !!e.disabled;
1018
1063
  return /* @__PURE__ */ _("li", {
1019
1064
  id: r,
@@ -1067,7 +1112,7 @@ var Ct = ({ option: e, isSelected: t, isActive: n, optionId: r, renderOption: i,
1067
1112
  })]
1068
1113
  });
1069
1114
  };
1070
- Ct.displayName = "SelectItemRow";
1115
+ wt.displayName = "SelectItemRow";
1071
1116
  var J = {
1072
1117
  dropdown: "_dropdown_k5nye_1",
1073
1118
  dropdownIn: "_dropdownIn_k5nye_1",
@@ -1093,17 +1138,17 @@ var J = {
1093
1138
  separator: "_separator_k5nye_1556",
1094
1139
  virtualSpacer: "_virtualSpacer_k5nye_1562",
1095
1140
  mobileDropdownIn: "_mobileDropdownIn_k5nye_1"
1096
- }, wt = ({ children: e, className: t }) => {
1097
- let { contentProps: n } = bt(), r = Et(e);
1098
- return /* @__PURE__ */ g(Tt, {
1141
+ }, Tt = ({ children: e, className: t }) => {
1142
+ let { contentProps: n } = xt(), r = Dt(e);
1143
+ return /* @__PURE__ */ g(Et, {
1099
1144
  ...n,
1100
1145
  ...r,
1101
1146
  className: [n.className, t].filter(Boolean).join(" ")
1102
1147
  });
1103
1148
  };
1104
- wt.__velliraSelectPart = "content", wt.displayName = "Select.Content";
1105
- var Tt = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style: i, options: a, entries: s, multiple: l, selectedValues: u, color: p = "primary", variant: m = "outline", searchable: v, command: y, virtual: b, portal: S = !0, searchValue: C = "", searchPlaceholder: w = "Search...", loading: T, loadingText: E = "Loading...", noOptionsText: D, searchSlot: O, headerSlot: k, emptySlot: A, loadingSlot: j, renderOption: M, selectedValue: N, activeIndex: P, visualActiveIndex: F = P, className: I, onSelect: L, onSelectGroup: R, onMouseEnter: ee, onSearchChange: z }) => {
1106
- let B = d(null), te = d(!1), [ne, re] = f(null), [ie, ae] = f(0), { bottomSpacerHeight: V, isVirtual: U, itemHeight: oe, startIndex: se, topSpacerHeight: ce, viewportHeight: le, visibleOptions: ue } = xt({
1149
+ Tt.__velliraSelectPart = "content", Tt.displayName = "Select.Content";
1150
+ var Et = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style: i, options: a, entries: s, multiple: l, selectedValues: u, color: p = "primary", variant: m = "outline", searchable: v, command: y, virtual: b, portal: S = !0, searchValue: C = "", searchPlaceholder: w = "Search...", loading: T, loadingText: E = "Loading...", noOptionsText: D, searchSlot: O, headerSlot: k, emptySlot: A, loadingSlot: j, renderOption: M, selectedValue: N, activeIndex: P, visualActiveIndex: F = P, className: I, onSelect: L, onSelectGroup: R, onMouseEnter: ee, onSearchChange: z }) => {
1151
+ let B = d(null), te = d(!1), [ne, re] = f(null), [ie, ae] = f(0), { bottomSpacerHeight: V, isVirtual: U, itemHeight: oe, startIndex: se, topSpacerHeight: ce, viewportHeight: le, visibleOptions: ue } = St({
1107
1152
  loading: T,
1108
1153
  options: a,
1109
1154
  scrollTop: ie,
@@ -1210,7 +1255,7 @@ var Tt = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
1210
1255
  children: /* @__PURE__ */ _("button", {
1211
1256
  type: "button",
1212
1257
  className: J.groupAction,
1213
- "aria-label": Dt(e.selectLabel ?? e.label),
1258
+ "aria-label": Ot(e.selectLabel ?? e.label),
1214
1259
  "aria-pressed": i ? "mixed" : r ? "true" : "false",
1215
1260
  disabled: t.length === 0,
1216
1261
  onClick: () => R(t),
@@ -1241,7 +1286,7 @@ var Tt = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
1241
1286
  "data-vellira-select-separator": "true"
1242
1287
  }, e.id);
1243
1288
  let { option: n, optionIndex: r } = e;
1244
- return /* @__PURE__ */ g(Ct, {
1289
+ return /* @__PURE__ */ g(wt, {
1245
1290
  option: n,
1246
1291
  isSelected: u ? u.includes(n.value) : n.value === N,
1247
1292
  isActive: r === F,
@@ -1268,8 +1313,8 @@ var Tt = ({ isOpen: e, listboxId: t, labelledById: n, setDropdownRef: r, style:
1268
1313
  });
1269
1314
  return S ? /* @__PURE__ */ g(H, { children: pe }) : pe;
1270
1315
  };
1271
- Tt.displayName = "SelectContentSurface";
1272
- function Et(t) {
1316
+ Et.displayName = "SelectContentSurface";
1317
+ function Dt(t) {
1273
1318
  let n, r, i, o;
1274
1319
  return e.forEach(t, (e) => {
1275
1320
  if (!a(e)) return;
@@ -1282,21 +1327,21 @@ function Et(t) {
1282
1327
  searchSlot: r
1283
1328
  };
1284
1329
  }
1285
- function Dt(e) {
1330
+ function Ot(e) {
1286
1331
  return typeof e == "string" || typeof e == "number" ? String(e) : "Select group";
1287
1332
  }
1288
1333
  //#endregion
1289
1334
  //#region src/components/Select/Content/SelectEmpty.tsx
1290
- var Ot = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
1291
- Ot.__velliraSelectPart = "empty", Ot.displayName = "Select.Empty";
1335
+ var kt = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
1336
+ kt.__velliraSelectPart = "empty", kt.displayName = "Select.Empty";
1292
1337
  //#endregion
1293
1338
  //#region src/components/Select/Content/SelectLoading.tsx
1294
- var kt = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
1295
- kt.__velliraSelectPart = "loading", kt.displayName = "Select.Loading";
1339
+ var At = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
1340
+ At.__velliraSelectPart = "loading", At.displayName = "Select.Loading";
1296
1341
  //#endregion
1297
1342
  //#region src/components/Select/Content/SelectSearch.tsx
1298
- var At = ({ placeholder: e, className: t }) => {
1299
- let { contentProps: n } = bt(), r = d(null), i = n.searchValue ?? "";
1343
+ var jt = ({ placeholder: e, className: t }) => {
1344
+ let { contentProps: n } = xt(), r = d(null), i = n.searchValue ?? "";
1300
1345
  return c(() => {
1301
1346
  if (!n.isOpen) return;
1302
1347
  let e = window.setTimeout(() => {
@@ -1324,38 +1369,38 @@ var At = ({ placeholder: e, className: t }) => {
1324
1369
  })]
1325
1370
  });
1326
1371
  };
1327
- At.__velliraSelectPart = "search", At.displayName = "Select.Search";
1372
+ jt.__velliraSelectPart = "search", jt.displayName = "Select.Search";
1328
1373
  //#endregion
1329
1374
  //#region src/components/Select/Group/SelectGroup.tsx
1330
- var jt = () => null;
1331
- jt.__velliraSelectPart = "group", jt.displayName = "Select.Group";
1375
+ var Mt = () => null;
1376
+ Mt.__velliraSelectPart = "group", Mt.displayName = "Select.Group";
1332
1377
  //#endregion
1333
1378
  //#region src/components/Select/Group/SelectLabel.tsx
1334
- var Mt = ({ children: e }) => /* @__PURE__ */ g("div", {
1379
+ var Nt = ({ children: e }) => /* @__PURE__ */ g("div", {
1335
1380
  role: "presentation",
1336
1381
  className: J.groupLabel,
1337
1382
  children: e
1338
1383
  });
1339
- Mt.__velliraSelectPart = "label", Mt.displayName = "Select.Label";
1384
+ Nt.__velliraSelectPart = "label", Nt.displayName = "Select.Label";
1340
1385
  //#endregion
1341
1386
  //#region src/components/Select/Group/SelectSeparator.tsx
1342
- var Nt = () => null;
1343
- Nt.__velliraSelectPart = "separator", Nt.displayName = "Select.Separator";
1387
+ var Pt = () => null;
1388
+ Pt.__velliraSelectPart = "separator", Pt.displayName = "Select.Separator";
1344
1389
  //#endregion
1345
1390
  //#region src/components/Select/Item/SelectItemBadge.tsx
1346
- var Pt = () => null;
1347
- Pt.__velliraSelectPart = "itemBadge", Pt.displayName = "Select.ItemBadge";
1391
+ var Ft = () => null;
1392
+ Ft.__velliraSelectPart = "itemBadge", Ft.displayName = "Select.ItemBadge";
1348
1393
  //#endregion
1349
1394
  //#region src/components/Select/Item/SelectItemDescription.tsx
1350
- var Ft = () => null;
1351
- Ft.__velliraSelectPart = "itemDescription", Ft.displayName = "Select.ItemDescription";
1395
+ var It = () => null;
1396
+ It.__velliraSelectPart = "itemDescription", It.displayName = "Select.ItemDescription";
1352
1397
  //#endregion
1353
1398
  //#region src/components/Select/Item/SelectItemIcon.tsx
1354
- var It = () => null;
1355
- It.__velliraSelectPart = "itemIcon", It.displayName = "Select.ItemIcon";
1399
+ var Lt = () => null;
1400
+ Lt.__velliraSelectPart = "itemIcon", Lt.displayName = "Select.ItemIcon";
1356
1401
  //#endregion
1357
1402
  //#region src/patterns/FormField/FormFieldContext.ts
1358
- var Lt = r(null), Rt = () => s(Lt), zt = {
1403
+ var Rt = r(null), zt = () => s(Rt), Bt = {
1359
1404
  wrapper: "_wrapper_143kr_1",
1360
1405
  sm: "_sm_143kr_41",
1361
1406
  md: "_md_143kr_78",
@@ -1371,8 +1416,8 @@ var Lt = r(null), Rt = () => s(Lt), zt = {
1371
1416
  optional: "_optional_143kr_194",
1372
1417
  labelInfo: "_labelInfo_143kr_201",
1373
1418
  disabled: "_disabled_143kr_243"
1374
- }, Bt = (...e) => e.filter(Boolean).join(" ") || void 0, Vt = ({ id: e, label: t, description: r, error: i, required: o = !1, disabled: s = !1, invalid: c = !1, orientation: u = "vertical", labelPosition: d = "top", size: f = "md", labelInfo: p, optionalText: m, children: h, bindControl: v = !0, className: y, controlClassName: b, labelClassName: x, descriptionClassName: S, errorClassName: C, ...w }) => {
1375
- let T = l(), E = e ?? T, D = t ? `${E}-label` : void 0, O = r && E ? `${E}-description` : void 0, k = i && E ? `${E}-error` : void 0, A = c || !!i, j = Bt(D), M = Bt(O, k), N = {
1419
+ }, Vt = (...e) => e.filter(Boolean).join(" ") || void 0, Ht = ({ id: e, label: t, description: r, error: i, required: o = !1, disabled: s = !1, invalid: c = !1, orientation: u = "vertical", labelPosition: d = "top", size: f = "md", labelInfo: p, optionalText: m, children: h, bindControl: v = !0, className: y, controlClassName: b, labelClassName: x, descriptionClassName: S, errorClassName: C, ...w }) => {
1420
+ let T = l(), E = e ?? T, D = t ? `${E}-label` : void 0, O = r && E ? `${E}-description` : void 0, k = i && E ? `${E}-error` : void 0, A = c || !!i, j = Vt(D), M = Vt(O, k), N = {
1376
1421
  controlId: E,
1377
1422
  labelId: D,
1378
1423
  descriptionId: O,
@@ -1388,13 +1433,13 @@ var Lt = r(null), Rt = () => s(Lt), zt = {
1388
1433
  required: P.props.required ?? o,
1389
1434
  disabled: P.props.disabled ?? s,
1390
1435
  "aria-invalid": P.props["aria-invalid"] ?? (A || void 0),
1391
- "aria-labelledby": Bt(P.props["aria-labelledby"], j),
1392
- "aria-describedby": Bt(P.props["aria-describedby"], M)
1436
+ "aria-labelledby": Vt(P.props["aria-labelledby"], j),
1437
+ "aria-describedby": Vt(P.props["aria-describedby"], M)
1393
1438
  }) : h;
1394
1439
  return /* @__PURE__ */ _("div", {
1395
1440
  ...w,
1396
1441
  "aria-disabled": s || void 0,
1397
- className: V(zt.wrapper, zt[u], zt[d], zt[f], s && zt.disabled, y),
1442
+ className: V(Bt.wrapper, Bt[u], Bt[d], Bt[f], s && Bt.disabled, y),
1398
1443
  "data-disabled": s || void 0,
1399
1444
  "data-invalid": A || void 0,
1400
1445
  "data-orientation": u,
@@ -1403,42 +1448,42 @@ var Lt = r(null), Rt = () => s(Lt), zt = {
1403
1448
  t && /* @__PURE__ */ _("label", {
1404
1449
  id: D,
1405
1450
  htmlFor: E,
1406
- className: V(zt.label, x),
1451
+ className: V(Bt.label, x),
1407
1452
  children: [
1408
1453
  /* @__PURE__ */ g("span", {
1409
- className: zt.labelText,
1454
+ className: Bt.labelText,
1410
1455
  children: t
1411
1456
  }),
1412
1457
  o && /* @__PURE__ */ g("span", {
1413
- className: zt.required,
1458
+ className: Bt.required,
1414
1459
  "aria-hidden": "true",
1415
1460
  children: "*"
1416
1461
  }),
1417
1462
  !o && m && /* @__PURE__ */ g("span", {
1418
- className: zt.optional,
1463
+ className: Bt.optional,
1419
1464
  children: m
1420
1465
  }),
1421
1466
  p && /* @__PURE__ */ g("span", {
1422
- className: zt.labelInfo,
1467
+ className: Bt.labelInfo,
1423
1468
  children: p
1424
1469
  })
1425
1470
  ]
1426
1471
  }),
1427
1472
  r && /* @__PURE__ */ g("div", {
1428
1473
  id: O,
1429
- className: V(zt.description, S),
1474
+ className: V(Bt.description, S),
1430
1475
  children: r
1431
1476
  }),
1432
- /* @__PURE__ */ g(Lt.Provider, {
1477
+ /* @__PURE__ */ g(Rt.Provider, {
1433
1478
  value: N,
1434
1479
  children: /* @__PURE__ */ g("div", {
1435
- className: V(zt.control, b),
1480
+ className: V(Bt.control, b),
1436
1481
  children: F
1437
1482
  })
1438
1483
  }),
1439
1484
  i && /* @__PURE__ */ g("div", {
1440
1485
  id: k,
1441
- className: V(zt.errorText, C),
1486
+ className: V(Bt.errorText, C),
1442
1487
  role: "alert",
1443
1488
  children: i
1444
1489
  })
@@ -1447,14 +1492,14 @@ var Lt = r(null), Rt = () => s(Lt), zt = {
1447
1492
  };
1448
1493
  //#endregion
1449
1494
  //#region src/components/Select/internal/SelectCollection.ts
1450
- function Ht(t) {
1495
+ function Ut(t) {
1451
1496
  let n = [], r = [], i = 0;
1452
1497
  function o(t) {
1453
1498
  e.forEach(t, (e) => {
1454
1499
  if (!a(e)) return;
1455
1500
  let t = e.type;
1456
1501
  if (t.__velliraSelectPart === "group") {
1457
- let t = e.props, r = Wt(t.children);
1502
+ let t = e.props, r = Gt(t.children);
1458
1503
  n.push({
1459
1504
  type: "group",
1460
1505
  id: `group-${i++}`,
@@ -1466,7 +1511,7 @@ function Ht(t) {
1466
1511
  return;
1467
1512
  }
1468
1513
  if (t.__velliraSelectPart === "item") {
1469
- let t = e.props, i = Gt(t.children, t.value), a = t.label ?? i.label, o = r.length, s = {
1514
+ let t = e.props, i = Kt(t.children, t.value), a = t.label ?? i.label, o = r.length, s = {
1470
1515
  label: a,
1471
1516
  value: t.value,
1472
1517
  disabled: t.disabled,
@@ -1498,7 +1543,7 @@ function Ht(t) {
1498
1543
  options: r
1499
1544
  };
1500
1545
  }
1501
- function Ut(t) {
1546
+ function Wt(t) {
1502
1547
  let n = !1;
1503
1548
  function r(t) {
1504
1549
  e.forEach(t, (e) => {
@@ -1513,7 +1558,7 @@ function Ut(t) {
1513
1558
  }
1514
1559
  return r(t), n;
1515
1560
  }
1516
- function Wt(t) {
1561
+ function Gt(t) {
1517
1562
  let n = [];
1518
1563
  function r(t) {
1519
1564
  e.forEach(t, (e) => {
@@ -1528,7 +1573,7 @@ function Wt(t) {
1528
1573
  }
1529
1574
  return r(t), n;
1530
1575
  }
1531
- function Gt(t, n) {
1576
+ function Kt(t, n) {
1532
1577
  let r, i, o, s = [];
1533
1578
  function c(t) {
1534
1579
  e.forEach(t, (e) => {
@@ -1564,12 +1609,12 @@ function Gt(t, n) {
1564
1609
  }
1565
1610
  //#endregion
1566
1611
  //#region src/components/Select/internal/useSelectCollection.ts
1567
- function Kt(e) {
1568
- return u(() => Ht(e), [e]);
1612
+ function qt(e) {
1613
+ return u(() => Ut(e), [e]);
1569
1614
  }
1570
1615
  //#endregion
1571
1616
  //#region src/components/Select/internal/useSelectPosition.ts
1572
- function qt({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
1617
+ function Jt({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
1573
1618
  return Le({
1574
1619
  open: t,
1575
1620
  onOpenChange: r,
@@ -1581,18 +1626,18 @@ function qt({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange:
1581
1626
  }
1582
1627
  //#endregion
1583
1628
  //#region src/components/Select/internal/useSelectSearch.ts
1584
- function Jt({ options: e, searchable: t, searchValue: n }) {
1629
+ function Yt({ options: e, searchable: t, searchValue: n }) {
1585
1630
  return u(() => {
1586
1631
  if (!t || !n) return e;
1587
1632
  let r = n.toLocaleLowerCase();
1588
- return e.filter((e) => `${e.label} ${Yt(e.description)}`.toLocaleLowerCase().includes(r));
1633
+ return e.filter((e) => `${e.label} ${Xt(e.description)}`.toLocaleLowerCase().includes(r));
1589
1634
  }, [
1590
1635
  e,
1591
1636
  n,
1592
1637
  t
1593
1638
  ]);
1594
1639
  }
1595
- function Yt(e) {
1640
+ function Xt(e) {
1596
1641
  return typeof e == "string" || typeof e == "number" ? String(e) : "";
1597
1642
  }
1598
1643
  var Y = {
@@ -1621,16 +1666,16 @@ var Y = {
1621
1666
  spin: "_spin_x5w2h_818",
1622
1667
  loading: "_loading_x5w2h_827",
1623
1668
  open: "_open_x5w2h_846"
1624
- }, Xt = ({ children: e, className: t }) => {
1625
- let { triggerProps: n } = bt();
1626
- return /* @__PURE__ */ g(Zt, {
1669
+ }, Zt = ({ children: e, className: t }) => {
1670
+ let { triggerProps: n } = xt();
1671
+ return /* @__PURE__ */ g(Qt, {
1627
1672
  ...n,
1628
1673
  className: [n.className, t].filter(Boolean).join(" "),
1629
1674
  children: e
1630
1675
  });
1631
1676
  };
1632
- Xt.__velliraSelectPart = "trigger", Xt.displayName = "Select.Trigger";
1633
- var Zt = ({ 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__ */ g("button", {
1677
+ Zt.__velliraSelectPart = "trigger", Zt.displayName = "Select.Trigger";
1678
+ var Qt = ({ 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__ */ g("button", {
1634
1679
  id: t,
1635
1680
  ref: k,
1636
1681
  type: "button",
@@ -1692,16 +1737,16 @@ var Zt = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
1692
1737
  })
1693
1738
  ] })
1694
1739
  });
1695
- Zt.displayName = "SelectTriggerSurface";
1740
+ Qt.displayName = "SelectTriggerSurface";
1696
1741
  //#endregion
1697
1742
  //#region src/components/Select/Root/SelectRoot.tsx
1698
- var Qt = 0, $t = "", en = ({ children: e, label: t, description: n, id: r, name: i, "aria-label": a, "aria-describedby": s, "aria-labelledby": p, value: m, defaultValue: v, onValueChange: y, multiple: b = !1, maxSelected: x, closeOnSelect: S, placeholder: C = "Select...", empty: w, loadingText: T = "Loading...", noOptionsText: E, size: D, color: O = "primary", variant: k = "outline", required: A = !1, disabled: j = !1, invalid: M = !1, loading: N = !1, clearable: P = !1, searchable: F = !1, virtual: I, modal: R = !1, command: ee = !1, error: z, placement: B = "bottom", matchTriggerWidth: te = !0, avoidCollisions: ne = !0, portal: re = !0, open: ie, defaultOpen: ae = !1, onOpenChange: V, onSearch: H, onClear: U, startIcon: oe, endIcon: se, prefix: ce, suffix: le, renderValue: ue, renderOption: de, onBlur: fe, onFocus: pe, className: me, triggerClassName: he, dropdownClassName: ge }) => {
1699
- let W = l(), _e = Rt(), ve = !!(t || n || z), ye = r ?? (ve ? void 0 : _e?.controlId) ?? W, be = `${ye}-listbox`, [xe, Se] = f(""), Ce = !!z, we = Ce ? `${ye}-error` : void 0, Te = n ? `${ye}-description` : void 0, Ee = D ?? _e?.size ?? "md", De = M || Ce || !ve && !!_e?.invalid, Oe = j || !ve && !!_e?.disabled, ke = A || !ve && !!_e?.required, Ae = [
1743
+ var $t = 0, en = "", tn = ({ children: e, label: t, description: n, id: r, name: i, "aria-label": a, "aria-describedby": s, "aria-labelledby": p, value: m, defaultValue: v, onValueChange: y, multiple: b = !1, maxSelected: x, closeOnSelect: S, placeholder: C = "Select...", empty: w, loadingText: T = "Loading...", noOptionsText: E, size: D, color: O = "primary", variant: k = "outline", required: A = !1, disabled: j = !1, invalid: M = !1, loading: N = !1, clearable: P = !1, searchable: F = !1, virtual: I, modal: R = !1, command: ee = !1, error: z, placement: B = "bottom", matchTriggerWidth: te = !0, avoidCollisions: ne = !0, portal: re = !0, open: ie, defaultOpen: ae = !1, onOpenChange: V, onSearch: H, onClear: U, startIcon: oe, endIcon: se, prefix: ce, suffix: le, renderValue: ue, renderOption: de, onBlur: fe, onFocus: pe, className: me, triggerClassName: he, dropdownClassName: ge }) => {
1744
+ let W = l(), _e = zt(), ve = !!(t || n || z), ye = r ?? (ve ? void 0 : _e?.controlId) ?? W, be = `${ye}-listbox`, [xe, Se] = f(""), Ce = !!z, we = Ce ? `${ye}-error` : void 0, Te = n ? `${ye}-description` : void 0, Ee = D ?? _e?.size ?? "md", De = M || Ce || !ve && !!_e?.invalid, Oe = j || !ve && !!_e?.disabled, ke = A || !ve && !!_e?.required, Ae = [
1700
1745
  s,
1701
1746
  !ve && !s ? _e?.ariaDescribedBy : void 0,
1702
1747
  Te,
1703
1748
  we
1704
- ].filter(Boolean).join(" "), je = d(null), Me = d(null), [Ne, Pe] = f(!1), Fe = F || ee, { entries: Ie, options: Le } = Kt(e), ze = Jt({
1749
+ ].filter(Boolean).join(" "), je = d(null), Me = d(null), [Ne, Pe] = f(!1), Fe = F || ee, { entries: Ie, options: Le } = qt(e), ze = Yt({
1705
1750
  options: Le,
1706
1751
  searchable: Fe,
1707
1752
  searchValue: xe
@@ -1717,7 +1762,7 @@ var Qt = 0, $t = "", en = ({ children: e, label: t, description: n, id: r, name:
1717
1762
  open: ie,
1718
1763
  defaultOpen: ae,
1719
1764
  onOpenChange: V
1720
- }), Ye = u(() => Le.find((e) => G.includes(e.value)), [Le, G]), Xe = u(() => Le.filter((e) => G.includes(e.value)), [Le, G]), Ze = !!Ye, Qe = Array.isArray(Be) ? Be[0] ?? "" : Be, { floatingStyles: $e, setRef: et, setFloatingRef: tt } = qt({
1765
+ }), Ye = u(() => Le.find((e) => G.includes(e.value)), [Le, G]), Xe = u(() => Le.filter((e) => G.includes(e.value)), [Le, G]), Ze = !!Ye, Qe = Array.isArray(Be) ? Be[0] ?? "" : Be, { floatingStyles: $e, setRef: et, setFloatingRef: tt } = Jt({
1721
1766
  isOpen: K,
1722
1767
  onOpenChange: Ve,
1723
1768
  placement: B,
@@ -1751,7 +1796,7 @@ var Qt = 0, $t = "", en = ({ children: e, label: t, description: n, id: r, name:
1751
1796
  }, [U, qe]), at = o(() => {
1752
1797
  K || Pe(!1), Ke();
1753
1798
  }, [K, Ke]), ot = o((e) => {
1754
- tn(e, K) && Pe(!0), Je(e);
1799
+ nn(e, K) && Pe(!0), Je(e);
1755
1800
  }, [K, Je]), st = o((e) => {
1756
1801
  Pe(!0), We(e);
1757
1802
  }, [We]), ct = o((e) => {
@@ -1762,8 +1807,8 @@ var Qt = 0, $t = "", en = ({ children: e, label: t, description: n, id: r, name:
1762
1807
  }, [K]), c(() => {
1763
1808
  !K && xe && Se("");
1764
1809
  }, [K, xe]), c(() => {
1765
- if (!(!R || !K)) return Qt === 0 && ($t = document.body.style.overflow), Qt += 1, document.body.style.overflow = "hidden", () => {
1766
- Qt = Math.max(0, Qt - 1), Qt === 0 && (document.body.style.overflow = $t);
1810
+ if (!(!R || !K)) return $t === 0 && (en = document.body.style.overflow), $t += 1, document.body.style.overflow = "hidden", () => {
1811
+ $t = Math.max(0, $t - 1), $t === 0 && (document.body.style.overflow = en);
1767
1812
  };
1768
1813
  }, [K, R]);
1769
1814
  let lt = o((e) => {
@@ -1838,24 +1883,24 @@ var Qt = 0, $t = "", en = ({ children: e, label: t, description: n, id: r, name:
1838
1883
  name: i,
1839
1884
  value: Qe,
1840
1885
  disabled: Oe
1841
- })] }), _t = Ut(e), vt = /* @__PURE__ */ _(yt, {
1886
+ })] }), _t = Wt(e), vt = /* @__PURE__ */ _(bt, {
1842
1887
  value: {
1843
1888
  triggerProps: mt,
1844
1889
  contentProps: ht
1845
1890
  },
1846
- children: [gt, _t ? e : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(Xt, {}), /* @__PURE__ */ g(wt, { children: e })] })]
1847
- }), bt = /* @__PURE__ */ _(yt, {
1891
+ children: [gt, _t ? e : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(Zt, {}), /* @__PURE__ */ g(Tt, { children: e })] })]
1892
+ }), yt = /* @__PURE__ */ _(bt, {
1848
1893
  value: {
1849
1894
  triggerProps: mt,
1850
1895
  contentProps: ht
1851
1896
  },
1852
1897
  children: [
1853
1898
  gt,
1854
- /* @__PURE__ */ g(Zt, { ...mt }),
1855
- /* @__PURE__ */ g(Tt, { ...ht })
1899
+ /* @__PURE__ */ g(Qt, { ...mt }),
1900
+ /* @__PURE__ */ g(Et, { ...ht })
1856
1901
  ]
1857
1902
  });
1858
- return !ve && _e ? e ? vt : bt : /* @__PURE__ */ g(Vt, {
1903
+ return !ve && _e ? e ? vt : yt : /* @__PURE__ */ g(Ht, {
1859
1904
  id: ye,
1860
1905
  label: t,
1861
1906
  description: n,
@@ -1864,28 +1909,28 @@ var Qt = 0, $t = "", en = ({ children: e, label: t, description: n, id: r, name:
1864
1909
  disabled: Oe,
1865
1910
  bindControl: !1,
1866
1911
  className: me,
1867
- children: e ? vt : bt
1912
+ children: e ? vt : yt
1868
1913
  });
1869
1914
  };
1870
- en.displayName = "SelectRoot";
1871
- function tn(e, t) {
1915
+ tn.displayName = "SelectRoot";
1916
+ function nn(e, t) {
1872
1917
  return e.altKey || e.ctrlKey || e.metaKey ? !1 : t ? e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End" || e.key === "Enter" || e.key === " " || e.key.length === 1 : e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Enter" || e.key === " ";
1873
1918
  }
1874
1919
  //#endregion
1875
1920
  //#region src/components/Select/Trigger/SelectIcon.tsx
1876
- var nn = ({ children: e, className: t }) => {
1877
- let { triggerProps: n } = bt();
1921
+ var rn = ({ children: e, className: t }) => {
1922
+ let { triggerProps: n } = xt();
1878
1923
  return /* @__PURE__ */ g("span", {
1879
1924
  className: V(Y.arrow, { [Y.open]: n.isOpen }, t),
1880
1925
  "aria-hidden": "true",
1881
1926
  children: n.loading ? /* @__PURE__ */ g("span", { className: Y.spinner }) : e ?? n.endIcon ?? /* @__PURE__ */ g(y, {})
1882
1927
  });
1883
1928
  };
1884
- nn.__velliraSelectPart = "icon", nn.displayName = "Select.Icon";
1929
+ rn.__velliraSelectPart = "icon", rn.displayName = "Select.Icon";
1885
1930
  //#endregion
1886
1931
  //#region src/components/Select/Trigger/SelectValue.tsx
1887
- var rn = ({ children: e, className: t }) => {
1888
- let { triggerProps: n } = bt();
1932
+ var an = ({ children: e, className: t }) => {
1933
+ let { triggerProps: n } = xt();
1889
1934
  return /* @__PURE__ */ g("span", {
1890
1935
  className: V(Y.valueWrap, t),
1891
1936
  children: /* @__PURE__ */ g("span", {
@@ -1894,52 +1939,52 @@ var rn = ({ children: e, className: t }) => {
1894
1939
  })
1895
1940
  });
1896
1941
  };
1897
- rn.__velliraSelectPart = "value", rn.displayName = "Select.Value";
1942
+ an.__velliraSelectPart = "value", an.displayName = "Select.Value";
1898
1943
  //#endregion
1899
1944
  //#region src/components/Select/Select.tsx
1900
- var an = Object.assign(en, {
1901
- Trigger: Xt,
1902
- Value: rn,
1903
- Icon: nn,
1904
- Content: wt,
1905
- Search: At,
1906
- Group: jt,
1907
- Label: Mt,
1908
- Item: St,
1909
- ItemIcon: It,
1910
- ItemDescription: Ft,
1911
- ItemBadge: Pt,
1912
- Separator: Nt,
1913
- Empty: Ot,
1914
- Loading: kt
1945
+ var on = Object.assign(tn, {
1946
+ Trigger: Zt,
1947
+ Value: an,
1948
+ Icon: rn,
1949
+ Content: Tt,
1950
+ Search: jt,
1951
+ Group: Mt,
1952
+ Label: Nt,
1953
+ Item: Ct,
1954
+ ItemIcon: Lt,
1955
+ ItemDescription: It,
1956
+ ItemBadge: Ft,
1957
+ Separator: Pt,
1958
+ Empty: kt,
1959
+ Loading: At
1915
1960
  });
1916
- an.displayName = "Select";
1961
+ on.displayName = "Select";
1917
1962
  //#endregion
1918
1963
  //#region src/components/Tabs/TabsContext.tsx
1919
- var on = r(null), sn = () => {
1920
- let e = s(on);
1964
+ var sn = r(null), cn = () => {
1965
+ let e = s(sn);
1921
1966
  if (!e) throw Error("Tabs components must be used inside Tabs");
1922
1967
  return e;
1923
- }, cn = {
1968
+ }, ln = {
1924
1969
  list: "_list_13hkl_1",
1925
1970
  vertical: "_vertical_13hkl_8"
1926
- }, ln = ({ children: e, className: t, ...n }) => {
1927
- let { orientation: r, appearance: i } = sn();
1971
+ }, un = ({ children: e, className: t, ...n }) => {
1972
+ let { orientation: r, appearance: i } = cn();
1928
1973
  return /* @__PURE__ */ g("div", {
1929
1974
  ...n,
1930
1975
  role: "tablist",
1931
1976
  "aria-orientation": r,
1932
- className: V(cn.list, r === "vertical" && cn.vertical, i === "underline" && cn.underline, i === "pills" && cn.pills, t),
1977
+ className: V(ln.list, r === "vertical" && ln.vertical, i === "underline" && ln.underline, i === "pills" && ln.pills, t),
1933
1978
  children: e
1934
1979
  });
1935
1980
  };
1936
- ln.displayName = "TabsList";
1937
- var un = {
1981
+ un.displayName = "TabsList";
1982
+ var dn = {
1938
1983
  panel: "_panel_1v1a9_1",
1939
1984
  visible: "_visible_1v1a9_10",
1940
1985
  vertical: "_vertical_1v1a9_14"
1941
- }, dn = ({ index: e, children: t, className: n }) => {
1942
- let { activeIndex: r, orientation: i } = sn(), [a, o] = f(!1), s = r === e;
1986
+ }, fn = ({ index: e, children: t, className: n }) => {
1987
+ let { activeIndex: r, orientation: i } = cn(), [a, o] = f(!1), s = r === e;
1943
1988
  return c(() => {
1944
1989
  if (!s) {
1945
1990
  o(!1);
@@ -1953,12 +1998,12 @@ var un = {
1953
1998
  "aria-labelledby": `tab-${e}`,
1954
1999
  hidden: !s,
1955
2000
  tabIndex: 0,
1956
- className: V(un.panel, a && un.visible, i === "vertical" && un.vertical, n),
2001
+ className: V(dn.panel, a && dn.visible, i === "vertical" && dn.vertical, n),
1957
2002
  children: t
1958
2003
  });
1959
2004
  };
1960
- dn.displayName = "TabsPanel";
1961
- var fn = {
2005
+ fn.displayName = "TabsPanel";
2006
+ var pn = {
1962
2007
  tab: "_tab_qe8xc_1",
1963
2008
  iconOnly: "_iconOnly_qe8xc_27",
1964
2009
  tabIcon: "_tabIcon_qe8xc_31",
@@ -1967,8 +2012,8 @@ var fn = {
1967
2012
  underline: "_underline_qe8xc_60",
1968
2013
  pills: "_pills_qe8xc_92",
1969
2014
  vertical: "_vertical_qe8xc_106"
1970
- }, pn = i(({ index: e, children: t, className: n, disabled: r = !1, icon: i, onClick: a, onKeyDown: s, ...c }, l) => {
1971
- let { activeIndex: u, setActiveIndex: d, orientation: f, appearance: p = "default", registerTab: m, onTabKeyDown: h } = sn(), v = u === e, y = !!i, b = y && t == null;
2015
+ }, mn = i(({ index: e, children: t, className: n, disabled: r = !1, icon: i, onClick: a, onKeyDown: s, ...c }, l) => {
2016
+ let { activeIndex: u, setActiveIndex: d, orientation: f, appearance: p = "default", registerTab: m, onTabKeyDown: h } = cn(), v = u === e, y = !!i, b = y && t == null;
1972
2017
  return /* @__PURE__ */ _("button", {
1973
2018
  type: "button",
1974
2019
  ref: o((t) => {
@@ -1984,7 +2029,7 @@ var fn = {
1984
2029
  id: `tab-${e}`,
1985
2030
  disabled: r,
1986
2031
  tabIndex: v ? 0 : -1,
1987
- className: V(fn.tab, fn[p], f === "vertical" && fn.vertical, y && fn.withIcon, b && fn.iconOnly, n),
2032
+ className: V(pn.tab, pn[p], f === "vertical" && pn.vertical, y && pn.withIcon, b && pn.iconOnly, n),
1988
2033
  onClick: (t) => {
1989
2034
  r || (d(e), a?.(t));
1990
2035
  },
@@ -1993,20 +2038,20 @@ var fn = {
1993
2038
  },
1994
2039
  ...c,
1995
2040
  children: [y && /* @__PURE__ */ g("span", {
1996
- className: fn.tabIcon,
2041
+ className: pn.tabIcon,
1997
2042
  "aria-hidden": "true",
1998
2043
  children: i
1999
2044
  }), t != null && /* @__PURE__ */ g("span", {
2000
- className: fn.label,
2045
+ className: pn.label,
2001
2046
  children: t
2002
2047
  })]
2003
2048
  });
2004
2049
  });
2005
- pn.displayName = "Tab";
2006
- var mn = {
2050
+ mn.displayName = "Tab";
2051
+ var hn = {
2007
2052
  tabs: "_tabs_uqy7q_1",
2008
2053
  vertical: "_vertical_uqy7q_5"
2009
- }, hn = ({ children: e, activeIndex: t, defaultActiveIndex: n = 0, onChange: r, orientation: i = "horizontal", appearance: a = "default", className: s }) => {
2054
+ }, gn = ({ children: e, activeIndex: t, defaultActiveIndex: n = 0, onChange: r, orientation: i = "horizontal", appearance: a = "default", className: s }) => {
2010
2055
  let { activeIndex: c, setActiveIndex: l } = R({
2011
2056
  activeIndex: t,
2012
2057
  defaultActiveIndex: n,
@@ -2029,25 +2074,25 @@ var mn = {
2029
2074
  registerTab: f,
2030
2075
  onTabKeyDown: p
2031
2076
  };
2032
- return /* @__PURE__ */ g(on.Provider, {
2077
+ return /* @__PURE__ */ g(sn.Provider, {
2033
2078
  value: m,
2034
2079
  children: /* @__PURE__ */ g("div", {
2035
- className: V(mn.tabs, i === "vertical" && mn.vertical, s),
2080
+ className: V(hn.tabs, i === "vertical" && hn.vertical, s),
2036
2081
  children: e
2037
2082
  })
2038
2083
  });
2039
2084
  };
2040
- hn.displayName = "Tabs";
2085
+ gn.displayName = "Tabs";
2041
2086
  //#endregion
2042
2087
  //#region src/components/Tabs/index.ts
2043
- var gn = Object.assign(hn, {
2044
- List: ln,
2045
- Tab: pn,
2046
- Panel: dn
2047
- }), _n = {
2088
+ var _n = Object.assign(gn, {
2089
+ List: un,
2090
+ Tab: mn,
2091
+ Panel: fn
2092
+ }), vn = {
2048
2093
  tooltip: "_tooltip_10opu_1",
2049
2094
  arrow: "_arrow_10opu_25"
2050
- }, vn = i(({ content: e, placement: t = "top", arrowRef: n, arrowX: r, arrowY: i, className: a, style: o, ...s }, c) => {
2095
+ }, yn = i(({ content: e, placement: t = "top", arrowRef: n, arrowX: r, arrowY: i, className: a, style: o, ...s }, c) => {
2051
2096
  let l = {
2052
2097
  top: "bottom",
2053
2098
  right: "left",
@@ -2062,22 +2107,22 @@ var gn = Object.assign(hn, {
2062
2107
  };
2063
2108
  return /* @__PURE__ */ _("div", {
2064
2109
  ref: c,
2065
- className: V(_n.tooltip, a),
2110
+ className: V(vn.tooltip, a),
2066
2111
  "data-placement": t,
2067
2112
  "data-state": "open",
2068
2113
  style: o,
2069
2114
  ...s,
2070
2115
  children: [e, /* @__PURE__ */ g("div", {
2071
2116
  ref: n,
2072
- className: _n.arrow,
2117
+ className: vn.arrow,
2073
2118
  style: u
2074
2119
  })]
2075
2120
  });
2076
2121
  });
2077
- vn.displayName = "TooltipContent";
2122
+ yn.displayName = "TooltipContent";
2078
2123
  //#endregion
2079
2124
  //#region src/components/Tooltip/Tooltip.tsx
2080
- var yn = ({ children: e, placement: t = "top", content: n, disabled: r = !1, delay: i = {
2125
+ var bn = ({ children: e, placement: t = "top", content: n, disabled: r = !1, delay: i = {
2081
2126
  open: 300,
2082
2127
  close: 100
2083
2128
  }, maxWidth: a = 250, className: o, onOpenChange: s }) => {
@@ -2098,7 +2143,7 @@ var yn = ({ children: e, placement: t = "top", content: n, disabled: r = !1, del
2098
2143
  "aria-describedby": c ? m : void 0,
2099
2144
  ...O(),
2100
2145
  children: e
2101
- }), /* @__PURE__ */ g(C, { children: c && n && /* @__PURE__ */ g(vn, {
2146
+ }), /* @__PURE__ */ g(C, { children: c && n && /* @__PURE__ */ g(yn, {
2102
2147
  id: m,
2103
2148
  ref: S,
2104
2149
  content: n,
@@ -2115,10 +2160,10 @@ var yn = ({ children: e, placement: t = "top", content: n, disabled: r = !1, del
2115
2160
  ...k()
2116
2161
  }) })] });
2117
2162
  };
2118
- yn.displayName = "Tooltip";
2163
+ bn.displayName = "Tooltip";
2119
2164
  //#endregion
2120
2165
  //#region src/utils/devWarning.ts
2121
- var bn = (e, t) => {
2166
+ var xn = (e, t) => {
2122
2167
  process.env.NODE_ENV !== "production" && !e && console.warn(t);
2123
2168
  }, X = {
2124
2169
  button: "_button_wwfj5_1",
@@ -2148,14 +2193,14 @@ var bn = (e, t) => {
2148
2193
  "button-spin": "_button-spin_wwfj5_1",
2149
2194
  badge: "_badge_wwfj5_1058",
2150
2195
  shortcut: "_shortcut_wwfj5_1072"
2151
- }, xn = i(({ children: e, color: t = "primary", appearance: r = "solid", size: i = "md", shape: o = "pill", type: s = "button", disabled: c = !1, loading: l = !1, loadingText: u, iconStart: d, iconEnd: f, spinner: p, badge: m, shortcut: v, tooltip: y, fullWidth: b = !1, iconOnly: x = !1, asChild: S = !1, className: C, onClick: w, "aria-label": T, "aria-labelledby": E, href: D, target: O, rel: k, download: A, id: j, role: M, tabIndex: N, ...P }, F) => {
2196
+ }, Sn = i(({ children: e, color: t = "primary", appearance: r = "solid", size: i = "md", shape: o = "pill", type: s = "button", disabled: c = !1, loading: l = !1, loadingText: u, iconStart: d, iconEnd: f, spinner: p, badge: m, shortcut: v, tooltip: y, fullWidth: b = !1, iconOnly: x = !1, asChild: S = !1, className: C, onClick: w, "aria-label": T, "aria-labelledby": E, href: D, target: O, rel: k, download: A, id: j, role: M, tabIndex: N, ...P }, F) => {
2152
2197
  let I = S && a(e) ? e : void 0, L = I ? I.props.children : e, R = x || !L && !!(d || f), ee = !!(T || E || I?.props["aria-label"] || I?.props["aria-labelledby"]), z = c || l, B = l && u ? u : L, te = u && L && !R && (typeof L == "string" || typeof L == "number") && (typeof u == "string" || typeof u == "number") ? String(l ? L : u) : void 0, ne = O === "_blank" && !k ? "noreferrer noopener" : k, re = V(X.button, X[t], X[r], X[i], X[o], C, {
2153
2198
  [X.disabled]: z,
2154
2199
  [X.loading]: l,
2155
2200
  [X.fullWidth]: b,
2156
2201
  [X.iconOnly]: R
2157
2202
  });
2158
- bn(!S || !D, "Button: pass href to the child element when using asChild."), bn(!S || !!I, "Button: asChild requires a single valid React element child."), bn(!R || ee, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
2203
+ xn(!S || !D, "Button: pass href to the child element when using asChild."), xn(!S || !!I, "Button: asChild requires a single valid React element child."), xn(!R || ee, "Button: icon-only buttons must provide aria-label or aria-labelledby.");
2159
2204
  let ie = (e) => {
2160
2205
  e.preventDefault(), e.stopPropagation();
2161
2206
  }, ae = (e) => {
@@ -2245,7 +2290,7 @@ var bn = (e, t) => {
2245
2290
  children: H
2246
2291
  });
2247
2292
  });
2248
- xn.displayName = "Button";
2293
+ Sn.displayName = "Button";
2249
2294
  var Z = {
2250
2295
  wrapper: "_wrapper_1kk5v_1",
2251
2296
  colorPrimary: "_colorPrimary_1kk5v_27",
@@ -2281,25 +2326,25 @@ var Z = {
2281
2326
  "checkbox-checkmark-in": "_checkbox-checkmark-in_1kk5v_1",
2282
2327
  "checkbox-indeterminate-in": "_checkbox-indeterminate-in_1kk5v_1",
2283
2328
  disabled: "_disabled_1kk5v_361"
2284
- }, Sn = {
2329
+ }, Cn = {
2285
2330
  sm: Z.labelSm,
2286
2331
  md: Z.labelMd,
2287
2332
  lg: Z.labelLg
2288
- }, Cn = {
2333
+ }, wn = {
2289
2334
  sm: Z.wrapperSm,
2290
2335
  md: Z.wrapperMd,
2291
2336
  lg: Z.wrapperLg
2292
- }, wn = {
2337
+ }, Tn = {
2293
2338
  sm: Z.containerSm,
2294
2339
  md: Z.containerMd,
2295
2340
  lg: Z.containerLg
2296
- }, Tn = {
2341
+ }, En = {
2297
2342
  primary: Z.colorPrimary,
2298
2343
  neutral: Z.colorNeutral,
2299
2344
  success: Z.colorSuccess,
2300
2345
  warning: Z.colorWarning,
2301
2346
  danger: Z.colorDanger
2302
- }, En = i(({ id: e, label: t, description: n, icon: r, indeterminateIcon: i, checked: a, size: s = "md", color: u = "primary", labelPosition: f = "end", defaultChecked: p = !1, disabled: m = !1, required: h = !1, indeterminate: y = !1, className: b, wrapperClassName: x, onCheckedChange: S, error: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, ...D }, O) => {
2347
+ }, Dn = i(({ id: e, label: t, description: n, icon: r, indeterminateIcon: i, checked: a, size: s = "md", color: u = "primary", labelPosition: f = "end", defaultChecked: p = !1, disabled: m = !1, required: h = !1, indeterminate: y = !1, className: b, wrapperClassName: x, onCheckedChange: S, error: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, ...D }, O) => {
2303
2348
  let k = l(), A = e ?? k, j = d(null), M = !!C, N = n ? `${A}-description` : void 0, F = M ? `${A}-error` : void 0, I = [
2304
2349
  E,
2305
2350
  N,
@@ -2321,12 +2366,12 @@ var Z = {
2321
2366
  let z = (e) => {
2322
2367
  R(e.target.checked);
2323
2368
  };
2324
- return bn(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ _("div", {
2325
- className: V(Z.container, wn[s], f === "start" && Z.containerLabelStart, b),
2369
+ return xn(!!(t || w || T), "Checkbox: an accessible label must be provided through label, aria-label, or aria-labelledby."), /* @__PURE__ */ _("div", {
2370
+ className: V(Z.container, Tn[s], f === "start" && Z.containerLabelStart, b),
2326
2371
  children: [
2327
2372
  /* @__PURE__ */ _("label", {
2328
2373
  htmlFor: A,
2329
- className: V(Z.wrapper, Cn[s], Tn[u], f === "start" && Z.labelStart, !t && Z.iconOnly, m && Z.disabled, x),
2374
+ className: V(Z.wrapper, wn[s], En[u], f === "start" && Z.labelStart, !t && Z.iconOnly, m && Z.disabled, x),
2330
2375
  children: [
2331
2376
  /* @__PURE__ */ g("input", {
2332
2377
  ...D,
@@ -2356,7 +2401,7 @@ var Z = {
2356
2401
  })
2357
2402
  }),
2358
2403
  t && /* @__PURE__ */ _("span", {
2359
- className: V(Z.label, Sn[s]),
2404
+ className: V(Z.label, Cn[s]),
2360
2405
  children: [t, h && /* @__PURE__ */ g("span", {
2361
2406
  className: Z.requiredMark,
2362
2407
  "aria-hidden": "true",
@@ -2378,7 +2423,7 @@ var Z = {
2378
2423
  ]
2379
2424
  });
2380
2425
  });
2381
- En.displayName = "Checkbox";
2426
+ Dn.displayName = "Checkbox";
2382
2427
  var Q = {
2383
2428
  inputGroup: "_inputGroup_1fjhk_1",
2384
2429
  primary: "_primary_1fjhk_29",
@@ -2420,7 +2465,7 @@ var Q = {
2420
2465
  toneDanger: "_toneDanger_1fjhk_876",
2421
2466
  toneMuted: "_toneMuted_1fjhk_880",
2422
2467
  toneInverse: "_toneInverse_1fjhk_884"
2423
- }, Dn = {
2468
+ }, On = {
2424
2469
  default: Q.toneDefault,
2425
2470
  primary: Q.tonePrimary,
2426
2471
  secondary: Q.toneSecondary,
@@ -2428,7 +2473,7 @@ var Q = {
2428
2473
  danger: Q.toneDanger,
2429
2474
  muted: Q.toneMuted,
2430
2475
  inverse: Q.toneInverse
2431
- }, On = (e = "text", t) => {
2476
+ }, kn = (e = "text", t) => {
2432
2477
  if (t) return t;
2433
2478
  switch (e) {
2434
2479
  case "email": return "email";
@@ -2438,7 +2483,7 @@ var Q = {
2438
2483
  case "search": return "off";
2439
2484
  default: return;
2440
2485
  }
2441
- }, kn = (e, t) => {
2486
+ }, An = (e, t) => {
2442
2487
  let n = e.replace(/\D/g, ""), r = 0, i = "";
2443
2488
  for (let e of t) {
2444
2489
  if (e === "#") {
@@ -2450,8 +2495,8 @@ var Q = {
2450
2495
  r < n.length && (i += e);
2451
2496
  }
2452
2497
  return i;
2453
- }, An = (e, t) => t ? typeof t == "function" ? t(e) : kn(e, t) : e, jn = i(({ id: e, label: t, name: n, description: r, placeholder: i, value: a, defaultValue: s, type: c = "text", size: u, color: p = "primary", variant: m = "outline", error: v, invalid: y = !1, disabled: b = !1, required: x = !1, loading: C = !1, className: w, wrapperClassName: T, autoComplete: E, readOnly: D = !1, clearable: O = !1, onClear: k, onValueChange: A, revealPassword: j = !1, showCounter: M = !1, startIcon: N, endIcon: P, startAddon: F, endAddon: I, prefix: L, suffix: R, clearIcon: ee, mask: z, format: B, parse: te, startIconTone: ne = "default", endIconTone: re = "default", clearIconTone: ie = "danger", autoFocus: ae, maxLength: H, onMouseEnter: U, onMouseLeave: oe, "aria-describedby": se, "aria-invalid": ce, "aria-labelledby": le, ...ue }, de) => {
2454
- let fe = l(), pe = Rt(), me = !!(t || r || v), he = e ?? (me ? void 0 : pe?.controlId) ?? fe, ge = d(null), [W, _e] = f(!1), [ve, ye] = f(s ?? ""), be = a !== void 0, xe = String((be ? a : ve) ?? ""), Se = B ? B(xe) : xe, Ce = xe.length > 0, we = u ?? pe?.size ?? "md", Te = y || !!v || !me && !!pe?.invalid, Ee = b || !me && !!pe?.disabled, De = x || !me && !!pe?.required, Oe = D || C, ke = c === "password", Ae = ke && j && W ? "text" : c, je = N ?? (c === "search" ? /* @__PURE__ */ g(S, {}) : null), Me = P, Ne = On(c, E), Pe = C && !Ee, Fe = O && Ce && !Ee && !Oe && !Pe, Ie = j && ke && !Ee && !Pe && !Fe, Le = !Pe && !Fe && !Ie && !!Me, Re = !!(M && H), ze = r ? `${he}-description` : void 0, Be = v ? `${he}-error` : void 0, G = Re ? `${he}-counter` : void 0, K = [
2498
+ }, jn = (e, t) => t ? typeof t == "function" ? t(e) : An(e, t) : e, Mn = i(({ id: e, label: t, name: n, description: r, placeholder: i, value: a, defaultValue: s, type: c = "text", size: u, color: p = "primary", variant: m = "outline", error: v, invalid: y = !1, disabled: b = !1, required: x = !1, loading: C = !1, className: w, wrapperClassName: T, autoComplete: E, readOnly: D = !1, clearable: O = !1, onClear: k, onValueChange: A, revealPassword: j = !1, showCounter: M = !1, startIcon: N, endIcon: P, startAddon: F, endAddon: I, prefix: L, suffix: R, clearIcon: ee, mask: z, format: B, parse: te, startIconTone: ne = "default", endIconTone: re = "default", clearIconTone: ie = "danger", autoFocus: ae, maxLength: H, onMouseEnter: U, onMouseLeave: oe, "aria-describedby": se, "aria-invalid": ce, "aria-labelledby": le, ...ue }, de) => {
2499
+ let fe = l(), pe = zt(), me = !!(t || r || v), he = e ?? (me ? void 0 : pe?.controlId) ?? fe, ge = d(null), [W, _e] = f(!1), [ve, ye] = f(s ?? ""), be = a !== void 0, xe = String((be ? a : ve) ?? ""), Se = B ? B(xe) : xe, Ce = xe.length > 0, we = u ?? pe?.size ?? "md", Te = y || !!v || !me && !!pe?.invalid, Ee = b || !me && !!pe?.disabled, De = x || !me && !!pe?.required, Oe = D || C, ke = c === "password", Ae = ke && j && W ? "text" : c, je = N ?? (c === "search" ? /* @__PURE__ */ g(S, {}) : null), Me = P, Ne = kn(c, E), Pe = C && !Ee, Fe = O && Ce && !Ee && !Oe && !Pe, Ie = j && ke && !Ee && !Pe && !Fe, Le = !Pe && !Fe && !Ie && !!Me, Re = !!(M && H), ze = r ? `${he}-description` : void 0, Be = v ? `${he}-error` : void 0, G = Re ? `${he}-counter` : void 0, K = [
2455
2500
  se,
2456
2501
  !me && !se ? pe?.ariaDescribedBy : void 0,
2457
2502
  ze,
@@ -2464,7 +2509,7 @@ var Q = {
2464
2509
  }
2465
2510
  de && (de.current = e);
2466
2511
  }, [de]), Je = o((e) => {
2467
- let t = An(te ? te(e.target.value) : e.target.value, z);
2512
+ let t = jn(te ? te(e.target.value) : e.target.value, z);
2468
2513
  be || ye(t), A?.(t);
2469
2514
  }, [
2470
2515
  be,
@@ -2499,7 +2544,7 @@ var Q = {
2499
2544
  children: [
2500
2545
  je && /* @__PURE__ */ g("span", {
2501
2546
  "aria-hidden": "true",
2502
- className: V(Q.startAdornment, Dn[ne]),
2547
+ className: V(Q.startAdornment, On[ne]),
2503
2548
  children: je
2504
2549
  }),
2505
2550
  L && /* @__PURE__ */ g("span", {
@@ -2550,14 +2595,14 @@ var Q = {
2550
2595
  }),
2551
2596
  Fe && /* @__PURE__ */ g("button", {
2552
2597
  type: "button",
2553
- className: V(Q.clearButton, Dn[ie]),
2598
+ className: V(Q.clearButton, On[ie]),
2554
2599
  onClick: Ye,
2555
2600
  "aria-label": "Clear input",
2556
2601
  children: Ve
2557
2602
  }),
2558
2603
  Le && Me && /* @__PURE__ */ g("span", {
2559
2604
  "aria-hidden": "true",
2560
- className: V(Q.endAdornment, Dn[re]),
2605
+ className: V(Q.endAdornment, On[re]),
2561
2606
  children: Me
2562
2607
  })
2563
2608
  ]
@@ -2578,7 +2623,7 @@ var Q = {
2578
2623
  H
2579
2624
  ]
2580
2625
  })] });
2581
- return !me && pe ? Xe : /* @__PURE__ */ g(Vt, {
2626
+ return !me && pe ? Xe : /* @__PURE__ */ g(Ht, {
2582
2627
  id: he,
2583
2628
  label: t,
2584
2629
  description: r,
@@ -2592,7 +2637,7 @@ var Q = {
2592
2637
  children: Xe
2593
2638
  });
2594
2639
  });
2595
- jn.displayName = "Input";
2640
+ Mn.displayName = "Input";
2596
2641
  var $ = {
2597
2642
  root: "_root_1avxs_1",
2598
2643
  invalid: "_invalid_1avxs_27",
@@ -2616,14 +2661,14 @@ var $ = {
2616
2661
  "radio-indicator-in": "_radio-indicator-in_1avxs_1",
2617
2662
  content: "_content_1avxs_339",
2618
2663
  error: "_error_1avxs_356"
2619
- }, Mn = {
2664
+ }, Nn = {
2620
2665
  primary: $.colorPrimary,
2621
2666
  neutral: $.colorNeutral,
2622
2667
  success: $.colorSuccess,
2623
2668
  warning: $.colorWarning,
2624
2669
  danger: $.colorDanger
2625
- }, Nn = 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) => {
2626
- let S = ht(), C = l(), w = h ?? C, T = d ? `${w}-description` : void 0, E = s ? `${w}-error` : void 0, D = [
2670
+ }, Pn = 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) => {
2671
+ let S = gt(), C = l(), w = h ?? C, T = d ? `${w}-description` : void 0, E = s ? `${w}-error` : void 0, D = [
2627
2672
  T,
2628
2673
  E,
2629
2674
  S?.describedBy,
@@ -2642,7 +2687,7 @@ var $ = {
2642
2687
  }
2643
2688
  };
2644
2689
  return /* @__PURE__ */ _("div", {
2645
- className: V($.root, $[L], I && $.invalid, M && $.disabled, Mn[R], m),
2690
+ className: V($.root, $[L], I && $.invalid, M && $.disabled, Nn[R], m),
2646
2691
  children: [/* @__PURE__ */ _("label", {
2647
2692
  htmlFor: w,
2648
2693
  className: V($.wrapper, p),
@@ -2689,15 +2734,15 @@ var $ = {
2689
2734
  })]
2690
2735
  });
2691
2736
  });
2692
- Nn.displayName = "Radio";
2737
+ Pn.displayName = "Radio";
2693
2738
  //#endregion
2694
2739
  //#region src/theme/ThemeContext.ts
2695
- var Pn = r(null), Fn = (e) => e === "highContrast" ? "high-contrast" : e, In = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, children: r }) => {
2740
+ var Fn = r(null), In = (e) => e === "highContrast" ? "high-contrast" : e, Ln = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, children: r }) => {
2696
2741
  let [i, a] = P({
2697
2742
  value: e,
2698
2743
  defaultValue: t,
2699
2744
  onChange: n
2700
- }), o = Fn(i);
2745
+ }), o = In(i);
2701
2746
  c(() => {
2702
2747
  if (typeof document > "u") return;
2703
2748
  let { documentElement: e } = document, t = e.dataset.velliraTheme;
@@ -2713,7 +2758,7 @@ var Pn = r(null), Fn = (e) => e === "highContrast" ? "high-contrast" : e, In = (
2713
2758
  theme: i,
2714
2759
  setTheme: a
2715
2760
  }), [i, a]);
2716
- return /* @__PURE__ */ g(Pn.Provider, {
2761
+ return /* @__PURE__ */ g(Fn.Provider, {
2717
2762
  value: s,
2718
2763
  children: /* @__PURE__ */ g("div", {
2719
2764
  "data-vellira-theme": o,
@@ -2721,13 +2766,13 @@ var Pn = r(null), Fn = (e) => e === "highContrast" ? "high-contrast" : e, In = (
2721
2766
  })
2722
2767
  });
2723
2768
  };
2724
- In.displayName = "ThemeProvider";
2769
+ Ln.displayName = "ThemeProvider";
2725
2770
  //#endregion
2726
2771
  //#region src/theme/useTheme.ts
2727
- function Ln() {
2728
- let e = s(Pn);
2772
+ function Rn() {
2773
+ let e = s(Fn);
2729
2774
  if (!e) throw Error("useTheme must be used within ThemeProvider.");
2730
2775
  return e;
2731
2776
  }
2732
2777
  //#endregion
2733
- export { xn as Button, En as Checkbox, Ye as Dropdown, Vt as FormField, jn as Input, ft as Modal, Nn as Radio, _t as RadioGroup, an as Select, gn as Tabs, In as ThemeProvider, yn as Tooltip, Ln as useTheme };
2778
+ export { Sn as Button, Dn as Checkbox, Xe as Dropdown, Ht as FormField, Mn as Input, pt as Modal, Pn as Radio, vt as RadioGroup, on as Select, _n as Tabs, Ln as ThemeProvider, bn as Tooltip, Rn as useTheme };