@youversion/design-system-components 1.16.0 → 1.17.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.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import J1 from "clsx";
2
- import { jsxs as d, jsx as n, Fragment as c1 } from "react/jsx-runtime";
2
+ import { jsxs as d, jsx as n, Fragment as a1 } from "react/jsx-runtime";
3
3
  import * as E from "react";
4
- import $2, { forwardRef as o, createElement as t1, useEffect as a1, useLayoutEffect as L2, useRef as _, useState as U, useImperativeHandle as P0, useCallback as K1, useMemo as Y, Children as O2, isValidElement as P2, useId as j2, cloneElement as T2 } from "react";
4
+ import $2, { forwardRef as o, createElement as t1, useEffect as n1, useLayoutEffect as L2, useRef as _, useState as U, useImperativeHandle as P0, useCallback as K1, useMemo as Y, Children as O2, isValidElement as P2, useId as j2, cloneElement as T2 } from "react";
5
5
  var E2 = Object.defineProperty, F2 = Object.defineProperties, G2 = Object.getOwnPropertyDescriptors, A1 = Object.getOwnPropertySymbols, j0 = Object.prototype.hasOwnProperty, T0 = Object.prototype.propertyIsEnumerable, i0 = (l, r, e) => r in l ? E2(l, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[r] = e, W2 = (l, r) => {
6
6
  for (var e in r || (r = {}))
7
7
  j0.call(r, e) && i0(l, e, r[e]);
@@ -267,11 +267,11 @@ function te(l) {
267
267
  }
268
268
  k === "[" ? g++ : k === "]" && g--;
269
269
  }
270
- var m = f.length === 0 ? c : c.substring(p), R = m.startsWith(U0), x = R ? m.substring(1) : m, C = b && b > p ? b - p : void 0;
270
+ var x = f.length === 0 ? c : c.substring(p), R = x.startsWith(U0), m = R ? x.substring(1) : x, C = b && b > p ? b - p : void 0;
271
271
  return {
272
272
  modifiers: f,
273
273
  hasImportantModifier: R,
274
- baseClassName: x,
274
+ baseClassName: m,
275
275
  maybePostfixModifierPosition: C
276
276
  };
277
277
  };
@@ -296,7 +296,7 @@ var ae = /\s+/;
296
296
  function ne(l, r) {
297
297
  var e = r.splitModifiers, t = r.getClassGroupId, a = r.getConflictingClassGroupIds, i = /* @__PURE__ */ new Set();
298
298
  return l.trim().split(ae).map(function(c) {
299
- var f = e(c), g = f.modifiers, p = f.hasImportantModifier, b = f.baseClassName, y = f.maybePostfixModifierPosition, k = t(y ? b.substring(0, y) : b), m = !!y;
299
+ var f = e(c), g = f.modifiers, p = f.hasImportantModifier, b = f.baseClassName, y = f.maybePostfixModifierPosition, k = t(y ? b.substring(0, y) : b), x = !!y;
300
300
  if (!k) {
301
301
  if (!y)
302
302
  return {
@@ -308,15 +308,15 @@ function ne(l, r) {
308
308
  isTailwindClass: !1,
309
309
  originalClassName: c
310
310
  };
311
- m = !1;
311
+ x = !1;
312
312
  }
313
- var R = re(g).join(":"), x = p ? R + U0 : R;
313
+ var R = re(g).join(":"), m = p ? R + U0 : R;
314
314
  return {
315
315
  isTailwindClass: !0,
316
- modifierId: x,
316
+ modifierId: m,
317
317
  classGroupId: k,
318
318
  originalClassName: c,
319
- hasPostfixModifier: m
319
+ hasPostfixModifier: x
320
320
  };
321
321
  }).reverse().filter(function(c) {
322
322
  if (!c.isTailwindClass)
@@ -334,8 +334,8 @@ function d0() {
334
334
  r[e] = arguments[e];
335
335
  var t, a, i, c = f;
336
336
  function f(p) {
337
- var b = r[0], y = r.slice(1), k = y.reduce(function(m, R) {
338
- return R(m);
337
+ var b = r[0], y = r.slice(1), k = y.reduce(function(x, R) {
338
+ return R(x);
339
339
  }, b());
340
340
  return t = ie(k), a = t.cache.get, i = t.cache.set, c = g, g(p);
341
341
  }
@@ -416,7 +416,7 @@ function me(l) {
416
416
  return he.test(l);
417
417
  }
418
418
  function c0() {
419
- var l = P("colors"), r = P("spacing"), e = P("blur"), t = P("brightness"), a = P("borderColor"), i = P("borderRadius"), c = P("borderSpacing"), f = P("borderWidth"), g = P("contrast"), p = P("grayscale"), b = P("hueRotate"), y = P("invert"), k = P("gap"), m = P("gradientColorStops"), R = P("gradientColorStopPositions"), x = P("inset"), C = P("margin"), z = P("opacity"), S = P("padding"), $ = P("saturate"), N = P("scale"), B = P("sepia"), w = P("skew"), I = P("space"), M = P("translate"), F = function() {
419
+ var l = P("colors"), r = P("spacing"), e = P("blur"), t = P("brightness"), a = P("borderColor"), i = P("borderRadius"), c = P("borderSpacing"), f = P("borderWidth"), g = P("contrast"), p = P("grayscale"), b = P("hueRotate"), y = P("invert"), k = P("gap"), x = P("gradientColorStops"), R = P("gradientColorStopPositions"), m = P("inset"), C = P("margin"), z = P("opacity"), S = P("padding"), $ = P("saturate"), N = P("scale"), B = P("sepia"), w = P("skew"), I = P("space"), M = P("translate"), F = function() {
420
420
  return ["auto", "contain", "none"];
421
421
  }, H = function() {
422
422
  return ["auto", "hidden", "clip", "visible", "scroll"];
@@ -426,7 +426,7 @@ function c0() {
426
426
  return ["", l1];
427
427
  }, W = function() {
428
428
  return ["auto", u1, j];
429
- }, n1 = function() {
429
+ }, d1 = function() {
430
430
  return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
431
431
  }, J = function() {
432
432
  return ["solid", "dashed", "dotted", "double", "none"];
@@ -434,11 +434,11 @@ function c0() {
434
434
  return ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"];
435
435
  }, s1 = function() {
436
436
  return ["start", "end", "center", "between", "around", "evenly", "stretch"];
437
- }, d1 = function() {
437
+ }, o1 = function() {
438
438
  return ["", "0", j];
439
439
  }, p1 = function() {
440
440
  return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
441
- }, o1 = function() {
441
+ }, c1 = function() {
442
442
  return [u1, N1];
443
443
  }, r1 = function() {
444
444
  return [u1, j];
@@ -449,25 +449,25 @@ function c0() {
449
449
  colors: [C1],
450
450
  spacing: [l1],
451
451
  blur: ["none", "", h1, v1],
452
- brightness: o1(),
452
+ brightness: c1(),
453
453
  borderColor: [l],
454
454
  borderRadius: ["none", "", "full", h1, v1],
455
455
  borderSpacing: [r],
456
456
  borderWidth: q(),
457
- contrast: o1(),
458
- grayscale: d1(),
457
+ contrast: c1(),
458
+ grayscale: o1(),
459
459
  hueRotate: r1(),
460
- invert: d1(),
460
+ invert: o1(),
461
461
  gap: [r],
462
462
  gradientColorStops: [l],
463
463
  gradientColorStopPositions: [ge, v1],
464
464
  inset: G(),
465
465
  margin: G(),
466
- opacity: o1(),
466
+ opacity: c1(),
467
467
  padding: [r],
468
- saturate: o1(),
469
- scale: o1(),
470
- sepia: d1(),
468
+ saturate: c1(),
469
+ scale: c1(),
470
+ sepia: o1(),
471
471
  skew: r1(),
472
472
  space: [r],
473
473
  translate: [r]
@@ -564,7 +564,7 @@ function c0() {
564
564
  * @see https://tailwindcss.com/docs/object-position
565
565
  */
566
566
  "object-position": [{
567
- object: [].concat(n1(), [j])
567
+ object: [].concat(d1(), [j])
568
568
  }],
569
569
  /**
570
570
  * Overflow
@@ -618,63 +618,63 @@ function c0() {
618
618
  * @see https://tailwindcss.com/docs/top-right-bottom-left
619
619
  */
620
620
  inset: [{
621
- inset: [x]
621
+ inset: [m]
622
622
  }],
623
623
  /**
624
624
  * Right / Left
625
625
  * @see https://tailwindcss.com/docs/top-right-bottom-left
626
626
  */
627
627
  "inset-x": [{
628
- "inset-x": [x]
628
+ "inset-x": [m]
629
629
  }],
630
630
  /**
631
631
  * Top / Bottom
632
632
  * @see https://tailwindcss.com/docs/top-right-bottom-left
633
633
  */
634
634
  "inset-y": [{
635
- "inset-y": [x]
635
+ "inset-y": [m]
636
636
  }],
637
637
  /**
638
638
  * Start
639
639
  * @see https://tailwindcss.com/docs/top-right-bottom-left
640
640
  */
641
641
  start: [{
642
- start: [x]
642
+ start: [m]
643
643
  }],
644
644
  /**
645
645
  * End
646
646
  * @see https://tailwindcss.com/docs/top-right-bottom-left
647
647
  */
648
648
  end: [{
649
- end: [x]
649
+ end: [m]
650
650
  }],
651
651
  /**
652
652
  * Top
653
653
  * @see https://tailwindcss.com/docs/top-right-bottom-left
654
654
  */
655
655
  top: [{
656
- top: [x]
656
+ top: [m]
657
657
  }],
658
658
  /**
659
659
  * Right
660
660
  * @see https://tailwindcss.com/docs/top-right-bottom-left
661
661
  */
662
662
  right: [{
663
- right: [x]
663
+ right: [m]
664
664
  }],
665
665
  /**
666
666
  * Bottom
667
667
  * @see https://tailwindcss.com/docs/top-right-bottom-left
668
668
  */
669
669
  bottom: [{
670
- bottom: [x]
670
+ bottom: [m]
671
671
  }],
672
672
  /**
673
673
  * Left
674
674
  * @see https://tailwindcss.com/docs/top-right-bottom-left
675
675
  */
676
676
  left: [{
677
- left: [x]
677
+ left: [m]
678
678
  }],
679
679
  /**
680
680
  * Visibility
@@ -722,14 +722,14 @@ function c0() {
722
722
  * @see https://tailwindcss.com/docs/flex-grow
723
723
  */
724
724
  grow: [{
725
- grow: d1()
725
+ grow: o1()
726
726
  }],
727
727
  /**
728
728
  * Flex Shrink
729
729
  * @see https://tailwindcss.com/docs/flex-shrink
730
730
  */
731
731
  shrink: [{
732
- shrink: d1()
732
+ shrink: o1()
733
733
  }],
734
734
  /**
735
735
  * Order
@@ -1359,7 +1359,7 @@ function c0() {
1359
1359
  * @see https://tailwindcss.com/docs/background-position
1360
1360
  */
1361
1361
  "bg-position": [{
1362
- bg: [].concat(n1(), [ue])
1362
+ bg: [].concat(d1(), [ue])
1363
1363
  }],
1364
1364
  /**
1365
1365
  * Background Repeat
@@ -1419,21 +1419,21 @@ function c0() {
1419
1419
  * @see https://tailwindcss.com/docs/gradient-color-stops
1420
1420
  */
1421
1421
  "gradient-from": [{
1422
- from: [m]
1422
+ from: [x]
1423
1423
  }],
1424
1424
  /**
1425
1425
  * Gradient Color Stops Via
1426
1426
  * @see https://tailwindcss.com/docs/gradient-color-stops
1427
1427
  */
1428
1428
  "gradient-via": [{
1429
- via: [m]
1429
+ via: [x]
1430
1430
  }],
1431
1431
  /**
1432
1432
  * Gradient Color Stops To
1433
1433
  * @see https://tailwindcss.com/docs/gradient-color-stops
1434
1434
  */
1435
1435
  "gradient-to": [{
1436
- to: [m]
1436
+ to: [x]
1437
1437
  }],
1438
1438
  // Borders
1439
1439
  /**
@@ -2507,7 +2507,7 @@ const D1 = (l) => {
2507
2507
  padding: b,
2508
2508
  width: y,
2509
2509
  ...k
2510
- }, m) => {
2510
+ }, x) => {
2511
2511
  const R = {
2512
2512
  0: "",
2513
2513
  1: "shadow-light-1 dark:shadow-dark-1",
@@ -2515,13 +2515,13 @@ const D1 = (l) => {
2515
2515
  4: "shadow-light-4 dark:shadow-dark-4",
2516
2516
  8: "shadow-light-8 dark:shadow-dark-8",
2517
2517
  12: "shadow-light-12 dark:shadow-dark-12"
2518
- }, x = D1(c), C = D1(l), z = D1(r), S = s0(b), $ = s0(p), N = u(
2518
+ }, m = D1(c), C = D1(l), z = D1(r), S = s0(b), $ = s0(p), N = u(
2519
2519
  e,
2520
2520
  t,
2521
2521
  R[f],
2522
2522
  $,
2523
2523
  S,
2524
- x,
2524
+ m,
2525
2525
  C,
2526
2526
  z,
2527
2527
  y,
@@ -2531,11 +2531,11 @@ const D1 = (l) => {
2531
2531
  return t1(i, {
2532
2532
  className: N,
2533
2533
  ...k,
2534
- ref: m
2534
+ ref: x
2535
2535
  });
2536
2536
  }, V = o(Ne);
2537
2537
  V.displayName = "Box";
2538
- const z1 = ({ innerRef: l, forwardedRef: r }) => (a1(() => {
2538
+ const z1 = ({ innerRef: l, forwardedRef: r }) => (n1(() => {
2539
2539
  [l, r].forEach((e) => {
2540
2540
  e && (typeof e == "function" ? e(l.current || null) : e.current = l.current || null);
2541
2541
  });
@@ -2550,7 +2550,7 @@ function X0({
2550
2550
  handler: l,
2551
2551
  ref: r
2552
2552
  }) {
2553
- a1(() => {
2553
+ n1(() => {
2554
2554
  function e(t) {
2555
2555
  const a = r == null ? void 0 : r.current;
2556
2556
  !a || a.contains(t.target) || l(t);
@@ -2688,17 +2688,17 @@ const $e = ({
2688
2688
  prefix: b,
2689
2689
  startIcon: y,
2690
2690
  suffix: k,
2691
- value: m,
2691
+ value: x,
2692
2692
  ...R
2693
- }, x) => {
2694
- const C = _(null), z = z1({ forwardedRef: x, innerRef: C }), [S, $] = U(!!m), [N, B] = U(!1);
2695
- a1(() => {
2693
+ }, m) => {
2694
+ const C = _(null), z = z1({ forwardedRef: m, innerRef: C }), [S, $] = U(!!x), [N, B] = U(!1);
2695
+ n1(() => {
2696
2696
  var F;
2697
- $(!!((F = z == null ? void 0 : z.current) != null && F.value) || !!(m || p));
2698
- }, [m, p, z]);
2697
+ $(!!((F = z == null ? void 0 : z.current) != null && F.value) || !!(x || p));
2698
+ }, [x, p, z]);
2699
2699
  const w = (F) => {
2700
2700
  var H;
2701
- $(!!((H = z == null ? void 0 : z.current) != null && H.value) || !!(m || p)), g && g(F);
2701
+ $(!!((H = z == null ? void 0 : z.current) != null && H.value) || !!(x || p)), g && g(F);
2702
2702
  }, I = () => {
2703
2703
  r || !z.current || (z.current.focus(), B(!0));
2704
2704
  }, M = () => {
@@ -2746,7 +2746,7 @@ const $e = ({
2746
2746
  onChange: w,
2747
2747
  placeholder: p,
2748
2748
  ref: z,
2749
- value: m,
2749
+ value: x,
2750
2750
  ...R
2751
2751
  }
2752
2752
  ),
@@ -2874,28 +2874,28 @@ const Ue = ({
2874
2874
  value: b,
2875
2875
  ...y
2876
2876
  }, k) => {
2877
- const m = _(null), R = _(null), [x, C] = U(b), [z, S] = U(!1);
2877
+ const x = _(null), R = _(null), [m, C] = U(b), [z, S] = U(!1);
2878
2878
  P0(
2879
2879
  k,
2880
2880
  () => ({
2881
2881
  clearSelection() {
2882
2882
  C(null), g("");
2883
2883
  },
2884
- ...m.current
2884
+ ...x.current
2885
2885
  }),
2886
2886
  [g]
2887
2887
  );
2888
2888
  const $ = (I) => {
2889
- z || S(!0), !I.length && x && C(null), g(I);
2889
+ z || S(!0), !I.length && m && C(null), g(I);
2890
2890
  }, N = (I) => {
2891
2891
  p(I), g(I.label), C(I.label), S(!1);
2892
2892
  }, B = K1(
2893
2893
  (I) => {
2894
- R.current && !R.current.contains(I.target) && (!x && b && g(""), x && b && g(x), S(!1));
2894
+ R.current && !R.current.contains(I.target) && (!m && b && g(""), m && b && g(m), S(!1));
2895
2895
  },
2896
- [g, x, b]
2896
+ [g, m, b]
2897
2897
  ), w = Y(() => t.filter((I) => I.label.toLowerCase().includes(b.toLowerCase())) ?? [], [t, b]);
2898
- return a1(() => (document.addEventListener("click", B, !0), () => {
2898
+ return n1(() => (document.addEventListener("click", B, !0), () => {
2899
2899
  document.removeEventListener("click", B, !0);
2900
2900
  }), [B]), /* @__PURE__ */ d(V, { className: "relative", ref: R, children: [
2901
2901
  l ? /* @__PURE__ */ n(M1, { className: "absolute z-1" }) : null,
@@ -2914,7 +2914,7 @@ const Ue = ({
2914
2914
  $(I.target.value);
2915
2915
  },
2916
2916
  onFocus: () => S(!0),
2917
- ref: m,
2917
+ ref: x,
2918
2918
  role: "combobox",
2919
2919
  value: b ?? "",
2920
2920
  ...y
@@ -2929,7 +2929,7 @@ const Ue = ({
2929
2929
  children: w.length ? w.map((I, M) => /* @__PURE__ */ n(
2930
2930
  "div",
2931
2931
  {
2932
- "aria-selected": x !== I.value,
2932
+ "aria-selected": m !== I.value,
2933
2933
  className: "p-2 cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50",
2934
2934
  id: `${I.value}-${M}`,
2935
2935
  onClick: () => N(I),
@@ -4019,10 +4019,10 @@ const Bn = ({
4019
4019
  variant: b = "filled:default",
4020
4020
  ...y
4021
4021
  }, k) => {
4022
- const m = s2(t !== void 0 ? i : void 0), R = u(
4022
+ const x = s2(t !== void 0 ? i : void 0), R = u(
4023
4023
  h2,
4024
4024
  X[b],
4025
- m[g],
4025
+ x[g],
4026
4026
  { "disabled:opacity-100": c },
4027
4027
  l
4028
4028
  );
@@ -4107,11 +4107,11 @@ const Vn = ({
4107
4107
  ...y
4108
4108
  }, k) => {
4109
4109
  "use client";
4110
- const m = /^#[0-9A-F]{0,6}$/i, R = /^#([0-9A-F]{3}){1,2}$/i, x = _(null), C = _(null), [z, S] = U(!1), $ = k ?? x, N = (M) => {
4110
+ const x = /^#[0-9A-F]{0,6}$/i, R = /^#([0-9A-F]{3}){1,2}$/i, m = _(null), C = _(null), [z, S] = U(!1), $ = k ?? m, N = (M) => {
4111
4111
  if (!M.target.value.length)
4112
4112
  return c(M);
4113
4113
  const F = M.target.value.startsWith("#") ? M.target.value : `#${M.target.value}`;
4114
- m.test(F) && (M.target.value = F, c(M));
4114
+ x.test(F) && (M.target.value = F, c(M));
4115
4115
  };
4116
4116
  function B(M) {
4117
4117
  const F = R.test(p) ? p : "";
@@ -4462,11 +4462,11 @@ const bd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
4462
4462
  "border border-transparent focus:border-info focus:dark:border-info",
4463
4463
  "hover:border-transparent hover:dark:border-transparent",
4464
4464
  l
4465
- ), m = k, R = u(
4465
+ ), x = k, R = u(
4466
4466
  y,
4467
4467
  "bg-yv-red !text-white dark:!text-white",
4468
4468
  b
4469
- ), x = Y(
4469
+ ), m = Y(
4470
4470
  () => Md({
4471
4471
  page: r.findIndex((C) => C === e) + 1,
4472
4472
  pages: r
@@ -4474,12 +4474,12 @@ const bd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
4474
4474
  [r, e]
4475
4475
  );
4476
4476
  return /* @__PURE__ */ d(V, { className: "h-4 flex items-center justify-center", children: [
4477
- e !== r[0] ? /* @__PURE__ */ d(c1, { children: [
4477
+ e !== r[0] ? /* @__PURE__ */ d(a1, { children: [
4478
4478
  /* @__PURE__ */ d(
4479
4479
  V,
4480
4480
  {
4481
4481
  "aria-label": g,
4482
- className: u(m, "hidden md:flex mli-0"),
4482
+ className: u(x, "hidden md:flex mli-0"),
4483
4483
  component: a,
4484
4484
  onClick: () => t(r[0]),
4485
4485
  children: [
@@ -4492,7 +4492,7 @@ const bd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
4492
4492
  V,
4493
4493
  {
4494
4494
  "aria-label": f,
4495
- className: u(m, "mli-0"),
4495
+ className: u(x, "mli-0"),
4496
4496
  component: a,
4497
4497
  onClick: () => t(r[r.findIndex((C) => C === e) - 1]),
4498
4498
  children: [
@@ -4502,7 +4502,7 @@ const bd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
4502
4502
  }
4503
4503
  )
4504
4504
  ] }) : null,
4505
- x.map((C) => /* @__PURE__ */ n(
4505
+ m.map((C) => /* @__PURE__ */ n(
4506
4506
  V,
4507
4507
  {
4508
4508
  "aria-label": i(r.findIndex((z) => z === C) + 1),
@@ -4530,12 +4530,12 @@ const bd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
4530
4530
  children: `${r.indexOf(e) + 1} of ${r.length}`
4531
4531
  }
4532
4532
  ),
4533
- e !== r[r.length - 1] ? /* @__PURE__ */ d(c1, { children: [
4533
+ e !== r[r.length - 1] ? /* @__PURE__ */ d(a1, { children: [
4534
4534
  /* @__PURE__ */ d(
4535
4535
  V,
4536
4536
  {
4537
4537
  "aria-label": c,
4538
- className: u(k, m, "mli-0"),
4538
+ className: u(k, x, "mli-0"),
4539
4539
  component: a,
4540
4540
  onClick: () => t(r[r.findIndex((C) => C === e) + 1]),
4541
4541
  children: [
@@ -4548,7 +4548,7 @@ const bd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
4548
4548
  V,
4549
4549
  {
4550
4550
  "aria-label": p,
4551
- className: u(k, m, "hidden md:flex mli-0"),
4551
+ className: u(k, x, "hidden md:flex mli-0"),
4552
4552
  component: a,
4553
4553
  onClick: () => t(r[r.length - 1]),
4554
4554
  children: [
@@ -4693,9 +4693,9 @@ const Ad = 10, Hd = o(
4693
4693
  minHeight: b,
4694
4694
  noDataComponent: y,
4695
4695
  noDataText: k = "-",
4696
- outerClassNames: m,
4696
+ outerClassNames: x,
4697
4697
  paginationClassNames: R,
4698
- paginationData: x,
4698
+ paginationData: m,
4699
4699
  rowEndIcon: C,
4700
4700
  rowImageClassNames: z,
4701
4701
  rowItems: S,
@@ -4710,11 +4710,11 @@ const Ad = 10, Hd = o(
4710
4710
  thClassNames: G,
4711
4711
  thTextClassNames: q,
4712
4712
  theadClassNames: W,
4713
- trClassNames: n1,
4713
+ trClassNames: d1,
4714
4714
  variant: J = "default",
4715
4715
  viewMoreButton: g1,
4716
4716
  ...s1
4717
- }, d1) => {
4717
+ }, o1) => {
4718
4718
  switch (J) {
4719
4719
  case "default": {
4720
4720
  c = c !== !1, H = u("plb-0.5 pli-1.5", H), G = u("first:rounded-s-0.5 last:rounded-e-0.5", G);
@@ -4729,7 +4729,7 @@ const Ad = 10, Hd = o(
4729
4729
  break;
4730
4730
  }
4731
4731
  }
4732
- const p1 = $ == null ? void 0 : $.split(" ").map((Z) => `hover:${Z}`).join(" "), o1 = x != null && x.currentPage ? (Number(x.currentPage) - 1) * N : 0, r1 = "text-gray-30 dark:text-white text-base", D = u("bg-gray-15 dark:bg-gray-40", w == null ? void 0 : w.columnClassName), I1 = {
4732
+ const p1 = $ == null ? void 0 : $.split(" ").map((Z) => `hover:${Z}`).join(" "), c1 = m != null && m.currentPage ? (Number(m.currentPage) - 1) * N : 0, r1 = "text-gray-30 dark:text-white text-base", D = u("bg-gray-15 dark:bg-gray-40", w == null ? void 0 : w.columnClassName), I1 = {
4733
4733
  asc: /* @__PURE__ */ n(od, { className: r1, size: "16" }),
4734
4734
  desc: /* @__PURE__ */ n(Wn, { className: r1, size: "16" }),
4735
4735
  inactive: /* @__PURE__ */ n(Kn, { className: r1, size: "16" })
@@ -4738,20 +4738,20 @@ const Ad = 10, Hd = o(
4738
4738
  const { totalRowsCount: T } = Z, Q = Math.ceil(T / N);
4739
4739
  return Array.from({ length: Q ?? 1 }, (O, i1) => (i1 + 1).toString());
4740
4740
  }
4741
- return /* @__PURE__ */ n("div", { className: u("w-full overflow-x-auto p-0 flex flex-row items-center relative", m), children: a ? /* @__PURE__ */ n("div", { className: u("w-full p-0 shadow-none relative"), style: { height: b ?? "400px" }, children: /* @__PURE__ */ n(M1, {}) }) : /* @__PURE__ */ d("div", { className: u("w-full rounded-2 flex flex-col", m), children: [
4741
+ return a ? /* @__PURE__ */ n("div", { className: u("w-full p-0 shadow-none relative"), style: { height: b ?? "400px" }, children: /* @__PURE__ */ n(M1, {}) }) : /* @__PURE__ */ n(a1, { children: /* @__PURE__ */ d("div", { className: u("w-full overflow-x-auto p-0 flex flex-row items-center relative", x), children: [
4742
4742
  /* @__PURE__ */ d(
4743
4743
  "table",
4744
4744
  {
4745
4745
  className: u(
4746
- "w-full p-0 shadow-none border-spacing-y-0.5 relative",
4746
+ "w-full p-0 shadow-none border-spacing-y-0.5 relative rounded-2",
4747
4747
  e ? "border-[1px] border-gray-10 dark:border-surface-quaternary-dark" : "border-separate",
4748
4748
  g ? "border-collapse" : "",
4749
4749
  M
4750
4750
  ),
4751
- ref: d1,
4751
+ ref: o1,
4752
4752
  ...s1,
4753
4753
  children: [
4754
- i ? /* @__PURE__ */ n(Bd, { className: W, children: /* @__PURE__ */ n(B0, { className: n1, children: l == null ? void 0 : l.map((Z) => {
4754
+ i ? /* @__PURE__ */ n(Bd, { className: W, children: /* @__PURE__ */ n(B0, { className: d1, children: l == null ? void 0 : l.map((Z) => {
4755
4755
  var Q, L, O;
4756
4756
  const T = (w == null ? void 0 : w.sortBy) === Z.dataIndex;
4757
4757
  return /* @__PURE__ */ n(
@@ -4804,7 +4804,7 @@ const Ad = 10, Hd = o(
4804
4804
  p && T % 2 === 0 ? I == null ? void 0 : I[1] : "",
4805
4805
  c || Z != null && Z.rowLink ? u("hover:bg-warm-neutral hover:dark:bg-blue-50", p1) : "",
4806
4806
  Z != null && Z.rowLink ? "cursor-pointer" : "",
4807
- n1
4807
+ d1
4808
4808
  ),
4809
4809
  children: l == null ? void 0 : l.map((L, O) => {
4810
4810
  var i1, x1, S1;
@@ -4826,7 +4826,7 @@ const Ad = 10, Hd = o(
4826
4826
  ),
4827
4827
  style: { justifyContent: ((i1 = L.props) == null ? void 0 : i1.align) ?? "start" },
4828
4828
  children: [
4829
- f && O === 0 ? /* @__PURE__ */ n(A, { className: "min-w-[16px] text-end", size: "sm", variant: "paragraph", children: `${o1 + T + 1}` }) : null,
4829
+ f && O === 0 ? /* @__PURE__ */ n(A, { className: "min-w-[16px] text-end", size: "sm", variant: "paragraph", children: `${c1 + T + 1}` }) : null,
4830
4830
  L != null && L.displayImages && (Z != null && Z.imageUrl) && O === 0 ? /* @__PURE__ */ n(
4831
4831
  "img",
4832
4832
  {
@@ -4898,13 +4898,13 @@ const Ad = 10, Hd = o(
4898
4898
  ]
4899
4899
  }
4900
4900
  ),
4901
- /* @__PURE__ */ n("div", { className: u("flex flex-row items-center justify-end", R), children: g1 ?? (x ? /* @__PURE__ */ n(
4901
+ /* @__PURE__ */ n("div", { className: u("flex flex-row items-center justify-end", R), children: g1 ?? (m ? /* @__PURE__ */ n(
4902
4902
  Rd,
4903
4903
  {
4904
- currentPage: x.currentPage,
4904
+ currentPage: m.currentPage,
4905
4905
  label: "",
4906
- onClick: x.handlePaginationChange,
4907
- pages: q1(x),
4906
+ onClick: m.handlePaginationChange,
4907
+ pages: q1(m),
4908
4908
  selectedPageClassNames: u("bg-blue-30", B)
4909
4909
  }
4910
4910
  ) : null) })
@@ -4977,7 +4977,7 @@ var $d = Object.defineProperty, Ld = Object.defineProperties, Od = Object.getOwn
4977
4977
  }, Fd = o(Ed), Gd = Fd;
4978
4978
  const k2 = ({ autoFocus: l = !0, children: r, className: e }) => {
4979
4979
  const t = _(null);
4980
- return a1(() => {
4980
+ return n1(() => {
4981
4981
  if (t.current) {
4982
4982
  const a = t.current.querySelectorAll(
4983
4983
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
@@ -5036,7 +5036,7 @@ const k2 = ({ autoFocus: l = !0, children: r, className: e }) => {
5036
5036
  isDismissableOnOutsideClick: b = !0,
5037
5037
  onClose: y,
5038
5038
  ...k
5039
- }, m) => (Be(), /* @__PURE__ */ d("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
5039
+ }, x) => (Be(), /* @__PURE__ */ d("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
5040
5040
  /* @__PURE__ */ n(
5041
5041
  "div",
5042
5042
  {
@@ -5055,7 +5055,7 @@ const k2 = ({ autoFocus: l = !0, children: r, className: e }) => {
5055
5055
  e
5056
5056
  ),
5057
5057
  open: !0,
5058
- ref: m,
5058
+ ref: x,
5059
5059
  ...k,
5060
5060
  children: [
5061
5061
  f === "modal" ? /* @__PURE__ */ n(
@@ -5070,9 +5070,9 @@ const k2 = ({ autoFocus: l = !0, children: r, className: e }) => {
5070
5070
  ) : null,
5071
5071
  /* @__PURE__ */ n("div", { children: g ? /* @__PURE__ */ n(b1, { className: u("pbe-1", p), size: "md", variant: "headline", children: g }) : null }),
5072
5072
  /* @__PURE__ */ n("div", { children: r }),
5073
- /* @__PURE__ */ n("div", { className: u("w-full flex justify-end items-center gap-0.5 pbs-2", c), children: i == null ? void 0 : i.map(({ label: x, ...C }, z) => (
5073
+ /* @__PURE__ */ n("div", { className: u("w-full flex justify-end items-center gap-0.5 pbs-2", c), children: i == null ? void 0 : i.map(({ label: m, ...C }, z) => (
5074
5074
  // eslint-disable-next-line react/jsx-props-no-spreading
5075
- /* @__PURE__ */ n(Z1, { "aria-label": x, size: "sm", variant: "all_caps", ...C, children: x }, `${x}${z}`)
5075
+ /* @__PURE__ */ n(Z1, { "aria-label": m, size: "sm", variant: "all_caps", ...C, children: m }, `${m}${z}`)
5076
5076
  )) })
5077
5077
  ]
5078
5078
  }
@@ -5131,7 +5131,7 @@ const Qd = ({ isSelectedItem: l, option: r, onSelect: e, id: t }) => /* @__PURE_
5131
5131
  defaultValue: p,
5132
5132
  ...b
5133
5133
  }, y) => {
5134
- const k = _(null), [m, R] = U(p ?? null), [x, C] = U(!1), z = (N) => {
5134
+ const k = _(null), [x, R] = U(p ?? null), [m, C] = U(!1), z = (N) => {
5135
5135
  g(N), R(N), C(!1);
5136
5136
  }, S = K1((N) => {
5137
5137
  k.current && !k.current.contains(N.target) && C(!1);
@@ -5139,7 +5139,7 @@ const Qd = ({ isSelectedItem: l, option: r, onSelect: e, id: t }) => /* @__PURE_
5139
5139
  const B = a.find((w) => w.value === N.target.value);
5140
5140
  B && z(B);
5141
5141
  };
5142
- return a1(() => (document.addEventListener("click", S, !0), () => {
5142
+ return n1(() => (document.addEventListener("click", S, !0), () => {
5143
5143
  document.removeEventListener("click", S, !0);
5144
5144
  }), [S]), /* @__PURE__ */ n(V, { children: /* @__PURE__ */ d(V, { className: "relative", ref: k, children: [
5145
5145
  l ? /* @__PURE__ */ n(M1, { className: "absolute z-1" }) : null,
@@ -5147,7 +5147,7 @@ const Qd = ({ isSelectedItem: l, option: r, onSelect: e, id: t }) => /* @__PURE_
5147
5147
  t0,
5148
5148
  {
5149
5149
  "aria-controls": `${e ?? r}-options`,
5150
- "aria-expanded": x,
5150
+ "aria-expanded": m,
5151
5151
  autoCapitalize: "off",
5152
5152
  autoComplete: "off",
5153
5153
  autoCorrect: "off",
@@ -5162,15 +5162,15 @@ const Qd = ({ isSelectedItem: l, option: r, onSelect: e, id: t }) => /* @__PURE_
5162
5162
  ref: y,
5163
5163
  role: "combobox",
5164
5164
  spellCheck: "false",
5165
- value: (m == null ? void 0 : m.label) ?? "",
5165
+ value: (x == null ? void 0 : x.label) ?? "",
5166
5166
  ...b
5167
5167
  }
5168
5168
  ),
5169
- x ? /* @__PURE__ */ n(V, { className: "absolute top-0 right-0 left-0 z-50", children: /* @__PURE__ */ n(V, { className: "rounded-1 shadow-light-2", children: /* @__PURE__ */ n(r0, { className: "p-1 rounded-1", role: "listbox", children: a.length ? a.map((N, B) => /* @__PURE__ */ n(
5169
+ m ? /* @__PURE__ */ n(V, { className: "absolute top-0 right-0 left-0 z-50", children: /* @__PURE__ */ n(V, { className: "rounded-1 shadow-light-2", children: /* @__PURE__ */ n(r0, { className: "p-1 rounded-1", role: "listbox", children: a.length ? a.map((N, B) => /* @__PURE__ */ n(
5170
5170
  Qd,
5171
5171
  {
5172
5172
  id: `${N.value}-${B}`,
5173
- isSelectedItem: (m == null ? void 0 : m.value) === N.value,
5173
+ isSelectedItem: (x == null ? void 0 : x.value) === N.value,
5174
5174
  onSelect: z,
5175
5175
  option: N
5176
5176
  },
@@ -5186,7 +5186,7 @@ const Qd = ({ isSelectedItem: l, option: r, onSelect: e, id: t }) => /* @__PURE_
5186
5186
  name: e,
5187
5187
  onChange: $,
5188
5188
  tabIndex: -1,
5189
- value: m == null ? void 0 : m.value,
5189
+ value: x == null ? void 0 : x.value,
5190
5190
  children: a.map((N, B) => /* @__PURE__ */ n("option", { value: N.value, children: N.label }, `${N.value}${B}`))
5191
5191
  }
5192
5192
  )
@@ -5371,9 +5371,9 @@ const Ro = ({
5371
5371
  fileMinSizeError: b = (M) => `${M} is too small to upload. The minimum dimensions are ${w == null ? void 0 : w.minWidth}x${w == null ? void 0 : w.minHeight}. Please try again.`,
5372
5372
  fileRatioError: y = (M) => `${M} must have a ratio of, ${w == null ? void 0 : w.imageRatio}. Please try again.`,
5373
5373
  fileCallback: k,
5374
- hero: m = !1,
5374
+ hero: x = !1,
5375
5375
  hint: R,
5376
- imageWidth: x = 160,
5376
+ imageWidth: m = 160,
5377
5377
  imageSrc: C,
5378
5378
  label: z = "Upload Image",
5379
5379
  name: S = "imageUpload",
@@ -5382,11 +5382,11 @@ const Ro = ({
5382
5382
  shape: B = "circle",
5383
5383
  validation: w
5384
5384
  }, I) => {
5385
- const M = _(null), F = z1({ forwardedRef: I, innerRef: M }), [H, G] = U(void 0), [q, W] = U(C ? "resolved" : "idle"), [n1, J] = U(f), g1 = () => M != null && M.current ? M.current.click() : void 0;
5386
- a1(() => {
5385
+ const M = _(null), F = z1({ forwardedRef: I, innerRef: M }), [H, G] = U(void 0), [q, W] = U(C ? "resolved" : "idle"), [d1, J] = U(f), g1 = () => M != null && M.current ? M.current.click() : void 0;
5386
+ n1(() => {
5387
5387
  W(C ? "resolved" : "idle");
5388
5388
  }, [C]);
5389
- const s1 = Y(() => H && q !== "rejected" ? (W("resolved"), H.imageSrc) : C && q === "resolved" ? (W("resolved"), C) : null, [H, C, q]), d1 = Y(() => {
5389
+ const s1 = Y(() => H && q !== "rejected" ? (W("resolved"), H.imageSrc) : C && q === "resolved" ? (W("resolved"), C) : null, [H, C, q]), o1 = Y(() => {
5390
5390
  const Z = () => {
5391
5391
  i && i(C), G(void 0), W("idle");
5392
5392
  };
@@ -5394,7 +5394,7 @@ const Ro = ({
5394
5394
  case "pending":
5395
5395
  return /* @__PURE__ */ n(V, { className: "animate-spin", children: /* @__PURE__ */ n(e2, { className: "text-info-light dark:text-info-dark", "data-testid": "loading spinner", size: "32" }) });
5396
5396
  case "resolved":
5397
- return /* @__PURE__ */ d(c1, { children: [
5397
+ return /* @__PURE__ */ d(a1, { children: [
5398
5398
  /* @__PURE__ */ n(
5399
5399
  "img",
5400
5400
  {
@@ -5402,13 +5402,13 @@ const Ro = ({
5402
5402
  className: u([
5403
5403
  "object-fit w-full h-full",
5404
5404
  B === "circle" ? "rounded-full" : "rounded-0.5",
5405
- B !== "unset" || !m ? "aspect-square" : "",
5406
- B === "unset" && m ? "aspect-video" : "",
5407
- B === "unset" && !m ? "!aspect-auto" : ""
5405
+ B !== "unset" || !x ? "aspect-square" : "",
5406
+ B === "unset" && x ? "aspect-video" : "",
5407
+ B === "unset" && !x ? "!aspect-auto" : ""
5408
5408
  ]),
5409
5409
  onLoad: () => H != null && H.imageSrc ? URL.revokeObjectURL(H.imageSrc) : void 0,
5410
5410
  src: s1 || void 0,
5411
- width: x
5411
+ width: m
5412
5412
  }
5413
5413
  ),
5414
5414
  a ? null : /* @__PURE__ */ n(
@@ -5429,12 +5429,12 @@ const Ro = ({
5429
5429
  a,
5430
5430
  i,
5431
5431
  c,
5432
- m,
5432
+ x,
5433
5433
  H == null ? void 0 : H.id,
5434
5434
  H == null ? void 0 : H.imageSrc,
5435
5435
  C,
5436
5436
  q,
5437
- x,
5437
+ m,
5438
5438
  s1,
5439
5439
  B
5440
5440
  ]), p1 = ({ file: Z, imageUrl: T }) => new Promise((Q, L) => {
@@ -5454,9 +5454,9 @@ const Ro = ({
5454
5454
  if (w != null && w.imageRatio && (i1 == null ? void 0 : i1.length) === 2 && parseInt(i1[0]) / parseInt(i1[1]) !== O.width / O.height)
5455
5455
  return G(void 0), W("rejected"), J(y(Z.name)), L(!1);
5456
5456
  }
5457
- return x = O.width, typeof k == "function" && (console.log("Callback"), await k(Z, O)), J(""), Q(!0);
5457
+ return m = O.width, typeof k == "function" && (console.log("Callback"), await k(Z, O)), J(""), Q(!0);
5458
5458
  }, O.src = T;
5459
- }), o1 = async (Z) => {
5459
+ }), c1 = async (Z) => {
5460
5460
  try {
5461
5461
  const { files: T } = Z.target;
5462
5462
  if (T) {
@@ -5471,11 +5471,11 @@ const Ro = ({
5471
5471
  if (T instanceof Error)
5472
5472
  throw T;
5473
5473
  }
5474
- }, r1 = u([B === "circle" && !m ? "rounded-full aspect-square" : ""]), D = u([B === "square" && !m ? "aspect-square rounded-1" : ""]), I1 = u([
5475
- B === "unset" && !m ? "rounded-1" : "",
5476
- B === "unset" && q !== "idle" && !m ? "aspect-auto" : "",
5477
- B === "unset" && q !== "resolved" && !m ? "aspect-square" : ""
5478
- ]), q1 = u([m ? "rounded-1 aspect-video" : ""]);
5474
+ }, r1 = u([B === "circle" && !x ? "rounded-full aspect-square" : ""]), D = u([B === "square" && !x ? "aspect-square rounded-1" : ""]), I1 = u([
5475
+ B === "unset" && !x ? "rounded-1" : "",
5476
+ B === "unset" && q !== "idle" && !x ? "aspect-auto" : "",
5477
+ B === "unset" && q !== "resolved" && !x ? "aspect-square" : ""
5478
+ ]), q1 = u([x ? "rounded-1 aspect-video" : ""]);
5479
5479
  return /* @__PURE__ */ d(V, { className: u([t]), children: [
5480
5480
  /* @__PURE__ */ d(
5481
5481
  V,
@@ -5483,7 +5483,7 @@ const Ro = ({
5483
5483
  className: u([
5484
5484
  "relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",
5485
5485
  ,
5486
- n1 ? "border-alert-light dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark",
5486
+ d1 ? "border-alert-light dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark",
5487
5487
  a ? "select-none bg-gray-10 dark:bg-gray-40 pointer-events-none" : ""
5488
5488
  ]),
5489
5489
  children: [
@@ -5494,7 +5494,7 @@ const Ro = ({
5494
5494
  {
5495
5495
  className: u([
5496
5496
  "flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",
5497
- m ? "w-full" : "md:w-1/2 w-4/5",
5497
+ x ? "w-full" : "md:w-1/2 w-4/5",
5498
5498
  a ? "border-small border-solid border-tertiary-light" : "",
5499
5499
  q !== "resolved" ? "bg-gray-10 dark:bg-gray-40" : "",
5500
5500
  r1,
@@ -5502,7 +5502,7 @@ const Ro = ({
5502
5502
  I1,
5503
5503
  q1
5504
5504
  ]),
5505
- children: d1
5505
+ children: o1
5506
5506
  }
5507
5507
  ),
5508
5508
  /* @__PURE__ */ n(
@@ -5510,7 +5510,7 @@ const Ro = ({
5510
5510
  {
5511
5511
  className: u([
5512
5512
  "my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",
5513
- m ? "!mbs-2" : ""
5513
+ x ? "!mbs-2" : ""
5514
5514
  ]),
5515
5515
  disabled: a,
5516
5516
  onClick: g1,
@@ -5528,7 +5528,7 @@ const Ro = ({
5528
5528
  id: S,
5529
5529
  name: S,
5530
5530
  onBlur: $,
5531
- onChange: o1,
5531
+ onChange: c1,
5532
5532
  ref: F,
5533
5533
  title: "",
5534
5534
  type: "file",
@@ -5539,7 +5539,7 @@ const Ro = ({
5539
5539
  ]
5540
5540
  }
5541
5541
  ),
5542
- n1 ? /* @__PURE__ */ n(A, { className: "dark:!text-alert-dark !text-alert-light text-13", children: n1 }) : null,
5542
+ d1 ? /* @__PURE__ */ n(A, { className: "dark:!text-alert-dark !text-alert-light text-13", children: d1 }) : null,
5543
5543
  R ? /* @__PURE__ */ n(A, { className: "text-text-muted-light dark:text-text-muted-dark text-13", children: R }) : null
5544
5544
  ] });
5545
5545
  }, Io = o(Ro);
@@ -5679,7 +5679,7 @@ const fc = ({ children: l, className: r, ...e }) => /* @__PURE__ */ n("div", { c
5679
5679
  children: r
5680
5680
  }
5681
5681
  );
5682
- }, Fo = ({ open: l, children: r }) => /* @__PURE__ */ n(c1, { children: l ? r : null }), gc = ({
5682
+ }, Fo = ({ open: l, children: r }) => /* @__PURE__ */ n(a1, { children: l ? r : null }), gc = ({
5683
5683
  align: l = { horizontal: "start", vertical: "bottom" },
5684
5684
  autoFocus: r = !0,
5685
5685
  children: e,
@@ -5691,8 +5691,8 @@ const fc = ({ children: l, className: r, ...e }) => /* @__PURE__ */ n("div", { c
5691
5691
  onClose: g,
5692
5692
  ...p
5693
5693
  }) => {
5694
- function b(m) {
5695
- c && m.key === "Escape" && g();
5694
+ function b(x) {
5695
+ c && x.key === "Escape" && g();
5696
5696
  }
5697
5697
  function y() {
5698
5698
  c && g();
@@ -5719,7 +5719,7 @@ const fc = ({ children: l, className: r, ...e }) => /* @__PURE__ */ n("div", { c
5719
5719
  onClick: a,
5720
5720
  ref: i
5721
5721
  });
5722
- return /* @__PURE__ */ n(c1, { children: c });
5722
+ return /* @__PURE__ */ n(a1, { children: c });
5723
5723
  }, Go = ({ children: l, className: r, error: e, hint: t, heading: a, headingProps: i, hintProps: c, errorProps: f, ...g }, p) => /* @__PURE__ */ d("div", { ...g, className: u("flex-col rounded-0.5 w-fit", r), ref: p, children: [
5724
5724
  a ? (
5725
5725
  // eslint-disable-next-line react/jsx-props-no-spreading
@@ -5840,9 +5840,9 @@ const Do = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
5840
5840
  dismissButtonLabel: p,
5841
5841
  ...b
5842
5842
  }, y) => {
5843
- const k = _(null), m = z1({ forwardedRef: y, innerRef: k }), R = (C) => {
5843
+ const k = _(null), x = z1({ forwardedRef: y, innerRef: k }), R = (C) => {
5844
5844
  c && c(C.target.value);
5845
- }, x = () => {
5845
+ }, m = () => {
5846
5846
  c && c("");
5847
5847
  };
5848
5848
  return /* @__PURE__ */ d("div", { className: u(["flex items-start flex-col gap-0.5", l]), children: [
@@ -5865,7 +5865,7 @@ const Do = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
5865
5865
  name: i,
5866
5866
  onChange: R,
5867
5867
  placeholder: f,
5868
- ref: m,
5868
+ ref: x,
5869
5869
  type: "search",
5870
5870
  value: g,
5871
5871
  ...b
@@ -5877,7 +5877,7 @@ const Do = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
5877
5877
  {
5878
5878
  "aria-label": p,
5879
5879
  className: "mie-1.5 p-0.25 bg-text-muted-light hover:bg-gray-20 dark:bg-text-muted-dark dark:hover:bg-gray-25 text-canvas-light dark:text-canvas-dark dark:hover:text-canvas-dark",
5880
- onClick: x,
5880
+ onClick: m,
5881
5881
  variant: "primary",
5882
5882
  children: /* @__PURE__ */ n(A2, {})
5883
5883
  }
@@ -5905,21 +5905,21 @@ const Ko = ({
5905
5905
  value: p,
5906
5906
  ...b
5907
5907
  }, y) => {
5908
- const k = _(null), m = _(null), [R, x] = U(p), [C, z] = U(!1);
5908
+ const k = _(null), x = _(null), [R, m] = U(p), [C, z] = U(!1);
5909
5909
  P0(
5910
5910
  y,
5911
5911
  () => ({
5912
5912
  clearSelection() {
5913
- x(null), f("");
5913
+ m(null), f("");
5914
5914
  },
5915
5915
  ...k.current
5916
5916
  }),
5917
5917
  [f]
5918
5918
  );
5919
5919
  const S = (w) => {
5920
- C || z(!0), !w.length && R && x(null), f(w);
5920
+ C || z(!0), !w.length && R && m(null), f(w);
5921
5921
  }, $ = (w) => {
5922
- g(w), f(w.label), x(w.label), z(!1);
5922
+ g(w), f(w.label), m(w.label), z(!1);
5923
5923
  }, N = K1(() => {
5924
5924
  !R && p && f(""), R && p && f(R), z(!1);
5925
5925
  }, [f, R, p]), B = Y(() => {
@@ -5928,14 +5928,14 @@ const Ko = ({
5928
5928
  }, [e, p]);
5929
5929
  return X0({
5930
5930
  handler: N,
5931
- ref: m
5931
+ ref: x
5932
5932
  }), /* @__PURE__ */ d(
5933
5933
  V,
5934
5934
  {
5935
5935
  className: u("relative p-1", {
5936
5936
  "bg-canvas-light dark:bg-canvas-secondary-dark rounded-t-1": C
5937
5937
  }),
5938
- ref: m,
5938
+ ref: x,
5939
5939
  children: [
5940
5940
  /* @__PURE__ */ n(
5941
5941
  H2,
@@ -5971,8 +5971,8 @@ function l9({
5971
5971
  activeItemClassName: c,
5972
5972
  ...f
5973
5973
  }, g) {
5974
- const [p, b] = U(r ?? 0), y = p > 0 ? p - 1 : 0, k = (m) => {
5975
- b(m), e(m);
5974
+ const [p, b] = U(r ?? 0), y = p > 0 ? p - 1 : 0, k = (x) => {
5975
+ b(x), e(x);
5976
5976
  };
5977
5977
  return /* @__PURE__ */ n(
5978
5978
  "div",
@@ -5980,7 +5980,7 @@ function l9({
5980
5980
  ...f,
5981
5981
  className: `inline-flex overflow-hidden text-gray-40 dark:text-white ${l}`,
5982
5982
  ref: g,
5983
- children: t.map((m, R) => /* @__PURE__ */ n(
5983
+ children: t.map((x, R) => /* @__PURE__ */ n(
5984
5984
  r9,
5985
5985
  {
5986
5986
  activeIndex: p,
@@ -5991,9 +5991,9 @@ function l9({
5991
5991
  onSelectedValue: k,
5992
5992
  prevIndex: y,
5993
5993
  size: a,
5994
- value: m
5994
+ value: x
5995
5995
  },
5996
- m
5996
+ x
5997
5997
  ))
5998
5998
  }
5999
5999
  );
@@ -6011,7 +6011,7 @@ function r9({
6011
6011
  className: f,
6012
6012
  activeItemClassName: g = ""
6013
6013
  }) {
6014
- return /* @__PURE__ */ d(c1, { children: [
6014
+ return /* @__PURE__ */ d(a1, { children: [
6015
6015
  /* @__PURE__ */ n(
6016
6016
  "button",
6017
6017
  {
@@ -6059,24 +6059,24 @@ const a9 = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6059
6059
  ...y
6060
6060
  }, k) => {
6061
6061
  var w;
6062
- const m = u(i9, a9), R = _(null), x = z1({ forwardedRef: k, innerRef: R }), [C, z] = U(!!(b || (w = x == null ? void 0 : x.current) != null && w.value));
6063
- a1(() => {
6062
+ const x = u(i9, a9), R = _(null), m = z1({ forwardedRef: k, innerRef: R }), [C, z] = U(!!(b || (w = m == null ? void 0 : m.current) != null && w.value));
6063
+ n1(() => {
6064
6064
  var I;
6065
- z(!!((I = x == null ? void 0 : x.current) != null && I.value || b));
6066
- }, [b, x]);
6065
+ z(!!((I = m == null ? void 0 : m.current) != null && I.value || b));
6066
+ }, [b, m]);
6067
6067
  const S = p !== "sm" && (!!c || !!i), $ = Y(() => {
6068
6068
  const I = u(
6069
- m,
6069
+ x,
6070
6070
  c9,
6071
6071
  S ? s9 : null
6072
- ), M = u(m, Q1);
6072
+ ), M = u(x, Q1);
6073
6073
  return C ? I : M;
6074
- }, [m, C, S]), N = Y(() => {
6074
+ }, [x, C, S]), N = Y(() => {
6075
6075
  const I = u(O0, o9), M = u(O0);
6076
6076
  return C ? I : M;
6077
6077
  }, [C]), B = (I) => {
6078
6078
  var M;
6079
- z(!!((M = x == null ? void 0 : x.current) != null && M.value || b)), g && g(I);
6079
+ z(!!((M = m == null ? void 0 : m.current) != null && M.value || b)), g && g(I);
6080
6080
  };
6081
6081
  return /* @__PURE__ */ d("div", { className: u(r), children: [
6082
6082
  /* @__PURE__ */ d("div", { className: "relative w-full border-none", children: [
@@ -6094,7 +6094,7 @@ const a9 = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6094
6094
  id: f,
6095
6095
  name: f,
6096
6096
  onChange: B,
6097
- ref: x,
6097
+ ref: m,
6098
6098
  value: b,
6099
6099
  children: l
6100
6100
  }
@@ -6171,7 +6171,7 @@ const f9 = o(
6171
6171
  f9.displayName = "SideNavContent";
6172
6172
  const g9 = o(({ className: l, ...r }, e) => {
6173
6173
  const [t, a] = U(!1);
6174
- return a1(() => {
6174
+ return n1(() => {
6175
6175
  const i = document.querySelector('[data-sidebar="content"]');
6176
6176
  if (!i)
6177
6177
  return;
@@ -6241,7 +6241,7 @@ var Y1 = E.forwardRef((l, r) => {
6241
6241
  return E.Children.count(e) > 1 ? E.Children.only(null) : null;
6242
6242
  });
6243
6243
  Y1.displayName = "SlotClone";
6244
- var C9 = ({ children: l }) => /* @__PURE__ */ n(c1, { children: l });
6244
+ var C9 = ({ children: l }) => /* @__PURE__ */ n(a1, { children: l });
6245
6245
  function k9(l) {
6246
6246
  return E.isValidElement(l) && l.type === C9;
6247
6247
  }
@@ -6283,7 +6283,7 @@ const M9 = ({
6283
6283
  }
6284
6284
  );
6285
6285
  M9.displayName = "SideNavItem";
6286
- const R9 = ({ icon: l }) => E.isValidElement(l) ? l : typeof l == "object" && "filled" in l && "outlined" in l ? /* @__PURE__ */ d(c1, { children: [
6286
+ const R9 = ({ icon: l }) => E.isValidElement(l) ? l : typeof l == "object" && "filled" in l && "outlined" in l ? /* @__PURE__ */ d(a1, { children: [
6287
6287
  /* @__PURE__ */ n("div", { className: "hidden group-data-[active=true]/menu-item:block", children: l.filled }),
6288
6288
  /* @__PURE__ */ n("div", { className: "block group-data-[active=true]/menu-item:hidden", children: l.outlined })
6289
6289
  ] }) : null;
@@ -6464,10 +6464,10 @@ const j9 = {
6464
6464
  value: p,
6465
6465
  ...b
6466
6466
  }, y) => {
6467
- const k = _(null), m = z1({ forwardedRef: y, innerRef: k }), [R, x] = U(!!(p || g)), [C, z] = U(!1), S = (B) => {
6468
- x(!!(B.target.value || g)), f && f(B);
6467
+ const k = _(null), x = z1({ forwardedRef: y, innerRef: k }), [R, m] = U(!!(p || g)), [C, z] = U(!1), S = (B) => {
6468
+ m(!!(B.target.value || g)), f && f(B);
6469
6469
  }, $ = () => {
6470
- r || !m.current || (m.current.focus(), z(!0));
6470
+ r || !x.current || (x.current.focus(), z(!0));
6471
6471
  }, N = () => {
6472
6472
  z(!1);
6473
6473
  };
@@ -6495,7 +6495,7 @@ const j9 = {
6495
6495
  onBlur: N,
6496
6496
  onChange: S,
6497
6497
  placeholder: g,
6498
- ref: m,
6498
+ ref: x,
6499
6499
  value: p,
6500
6500
  ...b
6501
6501
  }
@@ -6523,7 +6523,7 @@ const j9 = {
6523
6523
  F9.displayName = "TextArea";
6524
6524
  const G9 = "_inputIcon_1pzdd_1", W9 = {
6525
6525
  inputIcon: G9
6526
- }, U9 = ({ className: l, error: r, name: e, ...t }, a) => /* @__PURE__ */ d(c1, { children: [
6526
+ }, U9 = ({ className: l, error: r, name: e, ...t }, a) => /* @__PURE__ */ d(a1, { children: [
6527
6527
  /* @__PURE__ */ n(
6528
6528
  "input",
6529
6529
  {
@@ -6564,37 +6564,37 @@ const D9 = {
6564
6564
  position: c = "inlineEnd"
6565
6565
  }) => {
6566
6566
  const f = _(null), [g, p] = U(e1.START);
6567
- a1(() => {
6567
+ n1(() => {
6568
6568
  if (g === e1.START) {
6569
- const x = setTimeout(() => p(e1.SHOW), 100);
6570
- return () => clearTimeout(x);
6569
+ const m = setTimeout(() => p(e1.SHOW), 100);
6570
+ return () => clearTimeout(m);
6571
6571
  } else if (g === e1.DISMISS) {
6572
- const x = setTimeout(() => {
6572
+ const m = setTimeout(() => {
6573
6573
  e && e(), p(e1.REMOVE);
6574
6574
  }, 1e3);
6575
- return () => clearTimeout(x);
6575
+ return () => clearTimeout(m);
6576
6576
  } else if (t && g !== e1.REMOVE) {
6577
- const x = setTimeout(() => p(e1.DISMISS), t);
6578
- return () => clearTimeout(x);
6577
+ const m = setTimeout(() => p(e1.DISMISS), t);
6578
+ return () => clearTimeout(m);
6579
6579
  }
6580
6580
  }, [t, g, e]);
6581
6581
  const b = Y(() => {
6582
- var x;
6583
- return g === e1.DISMISS && ((x = f == null ? void 0 : f.current) != null && x.clientHeight) ? `-${f.current.clientHeight}px` : "0px";
6582
+ var m;
6583
+ return g === e1.DISMISS && ((m = f == null ? void 0 : f.current) != null && m.clientHeight) ? `-${f.current.clientHeight}px` : "0px";
6584
6584
  }, [f, g]), y = () => p(e1.DISMISS), k = Y(() => {
6585
- const x = "flex items-start justify-start p-2 text-white rounded-1 width-full max-w-[400px] border-0 opacity-0 transition-[opacity, transform] duration-1000 ease-in-out min-w-[276px]";
6585
+ const m = "flex items-start justify-start p-2 text-white rounded-1 width-full max-w-[400px] border-0 opacity-0 transition-[opacity, transform] duration-1000 ease-in-out min-w-[276px]";
6586
6586
  switch (c) {
6587
6587
  case "inlineEnd":
6588
- return g === e1.SHOW ? `${x} translate-x-0 opacity-1` : `${x} translate-x-[400px]`;
6588
+ return g === e1.SHOW ? `${m} translate-x-0 opacity-1` : `${m} translate-x-[400px]`;
6589
6589
  case "inlineStart":
6590
6590
  default:
6591
- return g === e1.SHOW ? `${x} translate-x-[-400px]` : `${x} opacity-1 translate-x-0`;
6591
+ return g === e1.SHOW ? `${m} translate-x-[-400px]` : `${m} opacity-1 translate-x-0`;
6592
6592
  }
6593
- }, [c, g]), m = Y(() => {
6594
- const x = "flex flex-col transition-[margin] duration-500 ease-in-out overflow-hidden";
6595
- return c === "inlineEnd" ? `${x} items-end` : `${x} items-start`;
6593
+ }, [c, g]), x = Y(() => {
6594
+ const m = "flex flex-col transition-[margin] duration-500 ease-in-out overflow-hidden";
6595
+ return c === "inlineEnd" ? `${m} items-end` : `${m} items-start`;
6596
6596
  }, [c]), R = Y(() => D9[i], [i]);
6597
- return g === e1.REMOVE ? null : /* @__PURE__ */ n("div", { className: u(m), style: { marginBlockEnd: b }, children: /* @__PURE__ */ d("div", { className: u(k, R, l), ref: f, children: [
6597
+ return g === e1.REMOVE ? null : /* @__PURE__ */ n("div", { className: u(x), style: { marginBlockEnd: b }, children: /* @__PURE__ */ d("div", { className: u(k, R, l), ref: f, children: [
6598
6598
  !a && /* @__PURE__ */ n("button", { "aria-label": "Dismiss", className: "mie-1", onClick: y, children: /* @__PURE__ */ n(A2, {}) }),
6599
6599
  r
6600
6600
  ] }) });