@youversion/design-system-components 1.12.5 → 1.13.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
@@ -387,11 +387,11 @@ function _2(l) {
387
387
  }
388
388
  C === "[" ? g++ : C === "]" && g--;
389
389
  }
390
- var m = v.length === 0 ? c : c.substring(p), I = m.startsWith(F0), x = I ? m.substring(1) : m, k = w && w > p ? w - p : void 0;
390
+ var m = v.length === 0 ? c : c.substring(p), I = m.startsWith(F0), b = I ? m.substring(1) : m, k = w && w > p ? w - p : void 0;
391
391
  return {
392
392
  modifiers: v,
393
393
  hasImportantModifier: I,
394
- baseClassName: x,
394
+ baseClassName: b,
395
395
  maybePostfixModifierPosition: k
396
396
  };
397
397
  };
@@ -430,10 +430,10 @@ function J2(l, i) {
430
430
  };
431
431
  m = !1;
432
432
  }
433
- var I = X2(g).join(":"), x = p ? I + F0 : I;
433
+ var I = X2(g).join(":"), b = p ? I + F0 : I;
434
434
  return {
435
435
  isTailwindClass: !0,
436
- modifierId: x,
436
+ modifierId: b,
437
437
  classGroupId: C,
438
438
  originalClassName: c,
439
439
  hasPostfixModifier: m
@@ -536,7 +536,7 @@ function he(l) {
536
536
  return re.test(l);
537
537
  }
538
538
  function a0() {
539
- var l = $("colors"), i = $("spacing"), e = $("blur"), r = $("brightness"), a = $("borderColor"), t = $("borderRadius"), c = $("borderSpacing"), v = $("borderWidth"), g = $("contrast"), p = $("grayscale"), w = $("hueRotate"), y = $("invert"), C = $("gap"), m = $("gradientColorStops"), I = $("gradientColorStopPositions"), x = $("inset"), k = $("margin"), M = $("opacity"), S = $("padding"), V = $("saturate"), z = $("scale"), N = $("sepia"), b = $("skew"), B = $("space"), R = $("translate"), F = function() {
539
+ var l = $("colors"), i = $("spacing"), e = $("blur"), r = $("brightness"), a = $("borderColor"), t = $("borderRadius"), c = $("borderSpacing"), v = $("borderWidth"), g = $("contrast"), p = $("grayscale"), w = $("hueRotate"), y = $("invert"), C = $("gap"), m = $("gradientColorStops"), I = $("gradientColorStopPositions"), b = $("inset"), k = $("margin"), M = $("opacity"), S = $("padding"), V = $("saturate"), z = $("scale"), N = $("sepia"), x = $("skew"), B = $("space"), R = $("translate"), F = function() {
540
540
  return ["auto", "contain", "none"];
541
541
  }, L = function() {
542
542
  return ["auto", "hidden", "clip", "visible", "scroll"];
@@ -738,63 +738,63 @@ function a0() {
738
738
  * @see https://tailwindcss.com/docs/top-right-bottom-left
739
739
  */
740
740
  inset: [{
741
- inset: [x]
741
+ inset: [b]
742
742
  }],
743
743
  /**
744
744
  * Right / Left
745
745
  * @see https://tailwindcss.com/docs/top-right-bottom-left
746
746
  */
747
747
  "inset-x": [{
748
- "inset-x": [x]
748
+ "inset-x": [b]
749
749
  }],
750
750
  /**
751
751
  * Top / Bottom
752
752
  * @see https://tailwindcss.com/docs/top-right-bottom-left
753
753
  */
754
754
  "inset-y": [{
755
- "inset-y": [x]
755
+ "inset-y": [b]
756
756
  }],
757
757
  /**
758
758
  * Start
759
759
  * @see https://tailwindcss.com/docs/top-right-bottom-left
760
760
  */
761
761
  start: [{
762
- start: [x]
762
+ start: [b]
763
763
  }],
764
764
  /**
765
765
  * End
766
766
  * @see https://tailwindcss.com/docs/top-right-bottom-left
767
767
  */
768
768
  end: [{
769
- end: [x]
769
+ end: [b]
770
770
  }],
771
771
  /**
772
772
  * Top
773
773
  * @see https://tailwindcss.com/docs/top-right-bottom-left
774
774
  */
775
775
  top: [{
776
- top: [x]
776
+ top: [b]
777
777
  }],
778
778
  /**
779
779
  * Right
780
780
  * @see https://tailwindcss.com/docs/top-right-bottom-left
781
781
  */
782
782
  right: [{
783
- right: [x]
783
+ right: [b]
784
784
  }],
785
785
  /**
786
786
  * Bottom
787
787
  * @see https://tailwindcss.com/docs/top-right-bottom-left
788
788
  */
789
789
  bottom: [{
790
- bottom: [x]
790
+ bottom: [b]
791
791
  }],
792
792
  /**
793
793
  * Left
794
794
  * @see https://tailwindcss.com/docs/top-right-bottom-left
795
795
  */
796
796
  left: [{
797
- left: [x]
797
+ left: [b]
798
798
  }],
799
799
  /**
800
800
  * Visibility
@@ -2213,14 +2213,14 @@ function a0() {
2213
2213
  * @see https://tailwindcss.com/docs/skew
2214
2214
  */
2215
2215
  "skew-x": [{
2216
- "skew-x": [b]
2216
+ "skew-x": [x]
2217
2217
  }],
2218
2218
  /**
2219
2219
  * Skew Y
2220
2220
  * @see https://tailwindcss.com/docs/skew
2221
2221
  */
2222
2222
  "skew-y": [{
2223
- "skew-y": [b]
2223
+ "skew-y": [x]
2224
2224
  }],
2225
2225
  /**
2226
2226
  * Transform Origin
@@ -2635,13 +2635,13 @@ const T1 = (l) => {
2635
2635
  4: "shadow-light-4 dark:shadow-dark-4",
2636
2636
  8: "shadow-light-8 dark:shadow-dark-8",
2637
2637
  12: "shadow-light-12 dark:shadow-dark-12"
2638
- }, x = T1(c), k = T1(l), M = T1(i), S = n0(w), V = n0(p), z = f(
2638
+ }, b = T1(c), k = T1(l), M = T1(i), S = n0(w), V = n0(p), z = f(
2639
2639
  e,
2640
2640
  r,
2641
2641
  I[v],
2642
2642
  V,
2643
2643
  S,
2644
- x,
2644
+ b,
2645
2645
  k,
2646
2646
  M,
2647
2647
  y,
@@ -2810,13 +2810,13 @@ const Ie = ({
2810
2810
  suffix: C,
2811
2811
  value: m,
2812
2812
  ...I
2813
- }, x) => {
2814
- const k = W(null), M = M1({ forwardedRef: x, innerRef: k }), [S, V] = G(!!m), [z, N] = G(!1);
2813
+ }, b) => {
2814
+ const k = W(null), M = M1({ forwardedRef: b, innerRef: k }), [S, V] = G(!!m), [z, N] = G(!1);
2815
2815
  a1(() => {
2816
2816
  var F;
2817
2817
  V(!!((F = M == null ? void 0 : M.current) != null && F.value) || !!(m || p));
2818
2818
  }, [m, p, M]);
2819
- const b = (F) => {
2819
+ const x = (F) => {
2820
2820
  var L;
2821
2821
  V(!!((L = M == null ? void 0 : M.current) != null && L.value) || !!(m || p)), g && g(F);
2822
2822
  }, B = () => {
@@ -2863,7 +2863,7 @@ const Ie = ({
2863
2863
  disabled: i,
2864
2864
  id: v,
2865
2865
  onBlur: R,
2866
- onChange: b,
2866
+ onChange: x,
2867
2867
  placeholder: p,
2868
2868
  ref: M,
2869
2869
  value: m,
@@ -2967,9 +2967,18 @@ function I1({
2967
2967
  color: a = "text-gray-15",
2968
2968
  height: t = "h-full",
2969
2969
  width: c = "w-full",
2970
- iconProps: v = {}
2970
+ iconProps: v = {},
2971
+ ...g
2971
2972
  }) {
2972
- return /* @__PURE__ */ n(H, { "aria-label": l, className: f(["items-center flex justify-center", a, t, c, r]), children: /* @__PURE__ */ n(q0, { ...v, dur: `${i}s`, height: e, width: e }) });
2973
+ return /* @__PURE__ */ n(
2974
+ "div",
2975
+ {
2976
+ ...g,
2977
+ "aria-label": l,
2978
+ className: f(["items-center flex justify-center", a, t, c, r]),
2979
+ children: /* @__PURE__ */ n(q0, { ...v, dur: `${i}s`, height: e, width: e })
2980
+ }
2981
+ );
2973
2982
  }
2974
2983
  const Oe = ({
2975
2984
  isLoading: l = !1,
@@ -2985,7 +2994,7 @@ const Oe = ({
2985
2994
  value: w,
2986
2995
  ...y
2987
2996
  }, C) => {
2988
- const m = W(null), I = W(null), [x, k] = G(w), [M, S] = G(!1);
2997
+ const m = W(null), I = W(null), [b, k] = G(w), [M, S] = G(!1);
2989
2998
  B0(
2990
2999
  C,
2991
3000
  () => ({
@@ -2997,15 +3006,15 @@ const Oe = ({
2997
3006
  [g]
2998
3007
  );
2999
3008
  const V = (B) => {
3000
- M || S(!0), !B.length && x && k(null), g(B);
3009
+ M || S(!0), !B.length && b && k(null), g(B);
3001
3010
  }, z = (B) => {
3002
3011
  p(B), g(B.label), k(B.label), S(!1);
3003
3012
  }, N = _1(
3004
3013
  (B) => {
3005
- I.current && !I.current.contains(B.target) && (!x && w && g(""), x && w && g(x), S(!1));
3014
+ I.current && !I.current.contains(B.target) && (!b && w && g(""), b && w && g(b), S(!1));
3006
3015
  },
3007
- [g, x, w]
3008
- ), b = _(() => r.filter((B) => B.label.toLowerCase().includes(w.toLowerCase())) ?? [], [r, w]);
3016
+ [g, b, w]
3017
+ ), x = _(() => r.filter((B) => B.label.toLowerCase().includes(w.toLowerCase())) ?? [], [r, w]);
3009
3018
  return a1(() => (document.addEventListener("click", N, !0), () => {
3010
3019
  document.removeEventListener("click", N, !0);
3011
3020
  }), [N]), /* @__PURE__ */ d(H, { className: "relative", ref: I, children: [
@@ -3037,10 +3046,10 @@ const Oe = ({
3037
3046
  className: "max-h-[300px] overflow-y-auto bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",
3038
3047
  id: `${e ?? i}-options`,
3039
3048
  role: "listbox",
3040
- children: b.length ? b.map((B, R) => /* @__PURE__ */ n(
3049
+ children: x.length ? x.map((B, R) => /* @__PURE__ */ n(
3041
3050
  "div",
3042
3051
  {
3043
- "aria-selected": x !== B.value,
3052
+ "aria-selected": b !== B.value,
3044
3053
  className: "p-2 cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50",
3045
3054
  id: `${B.value}-${R}`,
3046
3055
  onClick: () => z(B),
@@ -4218,7 +4227,7 @@ const kn = ({
4218
4227
  ...y
4219
4228
  }, C) => {
4220
4229
  "use client";
4221
- const m = /^#[0-9A-F]{0,6}$/i, I = /^#([0-9A-F]{3}){1,2}$/i, x = W(null), k = W(null), [M, S] = G(!1), V = C ?? x, z = (R) => {
4230
+ const m = /^#[0-9A-F]{0,6}$/i, I = /^#([0-9A-F]{3}){1,2}$/i, b = W(null), k = W(null), [M, S] = G(!1), V = C ?? b, z = (R) => {
4222
4231
  if (!R.target.value.length)
4223
4232
  return c(R);
4224
4233
  const F = R.target.value.startsWith("#") ? R.target.value : `#${R.target.value}`;
@@ -4228,7 +4237,7 @@ const kn = ({
4228
4237
  const F = I.test(p) ? p : "";
4229
4238
  R.target.value = F, R.target.name = t, c(R);
4230
4239
  }
4231
- function b() {
4240
+ function x() {
4232
4241
  var R;
4233
4242
  i || (S(!0), (R = V == null ? void 0 : V.current) == null || R.focus());
4234
4243
  }
@@ -4245,7 +4254,7 @@ const kn = ({
4245
4254
  r ? "border-alert" : "",
4246
4255
  M ? "border-blue-30 border-standard" : ""
4247
4256
  ),
4248
- onClick: b,
4257
+ onClick: x,
4249
4258
  children: [
4250
4259
  /* @__PURE__ */ d("div", { className: "flex flex-col justify-center items-start", id: "labelAndInput", children: [
4251
4260
  w || !w && M ? /* @__PURE__ */ n("label", { className: "text-13 font-medium text-gray-25", htmlFor: `${t}-input`, children: a }) : null,
@@ -4523,7 +4532,7 @@ const Vn = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ d(
4523
4532
  y,
4524
4533
  "bg-yv-red !text-white dark:!text-white",
4525
4534
  w
4526
- ), x = _(
4535
+ ), b = _(
4527
4536
  () => Tn({
4528
4537
  page: i.findIndex((k) => k === e) + 1,
4529
4538
  pages: i
@@ -4559,7 +4568,7 @@ const Vn = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ d(
4559
4568
  }
4560
4569
  )
4561
4570
  ] }) : null,
4562
- x.map((k) => /* @__PURE__ */ n(
4571
+ b.map((k) => /* @__PURE__ */ n(
4563
4572
  H,
4564
4573
  {
4565
4574
  "aria-label": t(i.findIndex((M) => M === k) + 1),
@@ -4715,14 +4724,14 @@ const _n = 10, Xn = o(
4715
4724
  onLinkButtonClick: C,
4716
4725
  outerClassNames: m,
4717
4726
  paginationClassNames: I,
4718
- paginationData: x,
4727
+ paginationData: b,
4719
4728
  rowItems: k,
4720
4729
  rowHoverStyles: M,
4721
4730
  rowsPerPage: S = _n,
4722
4731
  selectedPaginationClassNames: V,
4723
4732
  sortSettings: z,
4724
4733
  stripedRowsStyles: N,
4725
- tableClassNames: b,
4734
+ tableClassNames: x,
4726
4735
  tbodyClassNames: B,
4727
4736
  tdClassNames: R,
4728
4737
  thClassNames: F,
@@ -4739,15 +4748,15 @@ const _n = 10, Xn = o(
4739
4748
  break;
4740
4749
  }
4741
4750
  case "stats": {
4742
- b = "border-spacing-y-0.25", R = "first:rounded-s-0.5 last:rounded-e-0.5", F = "first:rounded-s-0.5 last:rounded-e-0.5";
4751
+ x = "border-spacing-y-0.25", R = "first:rounded-s-0.5 last:rounded-e-0.5", F = "first:rounded-s-0.5 last:rounded-e-0.5";
4743
4752
  break;
4744
4753
  }
4745
4754
  case "classic": {
4746
- r = r !== !1, c = c !== !1, g = g !== !1, b = "border-spacing-y-0", R = "first:rounded-s-0.5 last:rounded-e-0.5 !plb-3", F = "first:rounded-ss-1.5 last:rounded-se-1.5", L = "font-semibold";
4755
+ r = r !== !1, c = c !== !1, g = g !== !1, x = "border-spacing-y-0", R = "first:rounded-s-0.5 last:rounded-e-0.5 !plb-3", F = "first:rounded-ss-1.5 last:rounded-se-1.5", L = "font-semibold";
4747
4756
  break;
4748
4757
  }
4749
4758
  }
4750
- const c1 = M == null ? void 0 : M.split(" ").map((Z) => `hover:${Z}`).join(" "), n1 = x != null && x.currentPage ? (Number(x.currentPage) - 1) * S : 0, s1 = "text-gray-30 dark:text-white text-base", i1 = {
4759
+ const c1 = M == null ? void 0 : M.split(" ").map((Z) => `hover:${Z}`).join(" "), n1 = b != null && b.currentPage ? (Number(b.currentPage) - 1) * S : 0, s1 = "text-gray-30 dark:text-white text-base", i1 = {
4751
4760
  asc: /* @__PURE__ */ n(J0, { className: s1, size: "16" }),
4752
4761
  desc: /* @__PURE__ */ n(Q0, { className: s1, size: "16" }),
4753
4762
  inactive: /* @__PURE__ */ n(Y0, { className: s1, size: "16" })
@@ -4763,7 +4772,7 @@ const _n = 10, Xn = o(
4763
4772
  className: f(
4764
4773
  "w-full p-0 shadow-none border-spacing-y-0.5 relative",
4765
4774
  e ?? v ? "border-[1px] border-gray-10 dark:border-surface-quaternary-dark" : "border-separate",
4766
- b
4775
+ x
4767
4776
  ),
4768
4777
  ref: w1,
4769
4778
  ...Y,
@@ -4892,13 +4901,13 @@ const _n = 10, Xn = o(
4892
4901
  ]
4893
4902
  }
4894
4903
  ),
4895
- /* @__PURE__ */ n("div", { className: f("flex flex-row items-center justify-end", I), children: o1 ?? (x ? /* @__PURE__ */ n(
4904
+ /* @__PURE__ */ n("div", { className: f("flex flex-row items-center justify-end", I), children: o1 ?? (b ? /* @__PURE__ */ n(
4896
4905
  Gn,
4897
4906
  {
4898
- currentPage: x.currentPage,
4907
+ currentPage: b.currentPage,
4899
4908
  label: "",
4900
- onClick: x.handlePaginationChange,
4901
- pages: h1(x),
4909
+ onClick: b.handlePaginationChange,
4910
+ pages: h1(b),
4902
4911
  selectedPageClassNames: f("bg-blue-30", V)
4903
4912
  }
4904
4913
  ) : null) })
@@ -5020,21 +5029,24 @@ const v2 = ({ autoFocus: l = !0, children: i, className: e }) => {
5020
5029
  autoFocus: l = !0,
5021
5030
  children: i,
5022
5031
  className: e,
5023
- closeIconClassName: r,
5024
- confirmationButtons: a,
5025
- dialogType: t = "confirmation",
5026
- heading: c,
5027
- isDismissableOnOutsideClick: v = !0,
5028
- onClose: g,
5029
- ...p
5030
- }, w) => (ke(), /* @__PURE__ */ d("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
5032
+ closeButtonLabel: r,
5033
+ closeIconClassName: a,
5034
+ confirmationButtons: t,
5035
+ confirmationContainerClassName: c,
5036
+ dialogType: v = "confirmation",
5037
+ heading: g,
5038
+ headingClassName: p,
5039
+ isDismissableOnOutsideClick: w = !0,
5040
+ onClose: y,
5041
+ ...C
5042
+ }, m) => (ke(), /* @__PURE__ */ d("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
5031
5043
  /* @__PURE__ */ n(
5032
5044
  "div",
5033
5045
  {
5034
5046
  className: "absolute inset-0 bg-overlay-light dark:bg-overlay-dark",
5035
5047
  "data-testid": "dialog-overlay",
5036
5048
  id: "overlay",
5037
- onClick: v ? g : void 0
5049
+ onClick: w ? y : void 0
5038
5050
  }
5039
5051
  ),
5040
5052
  /* @__PURE__ */ n(v2, { autoFocus: l, className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ d(
@@ -5042,27 +5054,28 @@ const v2 = ({ autoFocus: l = !0, children: i, className: e }) => {
5042
5054
  {
5043
5055
  className: f(
5044
5056
  "z-[1400] relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",
5045
- t === "confirmation" ? "max-w-[400px]" : "max-w-[700px]",
5057
+ v === "confirmation" ? "max-w-[400px]" : "max-w-[700px]",
5046
5058
  e
5047
5059
  ),
5048
5060
  open: !0,
5049
- ref: w,
5050
- ...p,
5061
+ ref: m,
5062
+ ...C,
5051
5063
  children: [
5052
- t === "modal" ? /* @__PURE__ */ n(
5064
+ v === "modal" ? /* @__PURE__ */ n(
5053
5065
  R1,
5054
5066
  {
5055
- className: f("absolute inline-end-2 block-start-2", r),
5067
+ "aria-label": r,
5068
+ className: f("absolute inline-end-2 block-start-2", a),
5056
5069
  "data-testid": "close-modal-button",
5057
- onClick: g,
5070
+ onClick: y,
5058
5071
  children: /* @__PURE__ */ n(ad, {})
5059
5072
  }
5060
5073
  ) : null,
5061
- /* @__PURE__ */ n("div", { children: c ? /* @__PURE__ */ n(b1, { className: "pbe-1", size: "md", variant: "headline", children: c }) : null }),
5074
+ /* @__PURE__ */ n("div", { children: g ? /* @__PURE__ */ n(b1, { className: f("pbe-1", p), size: "md", variant: "headline", children: g }) : null }),
5062
5075
  /* @__PURE__ */ n("div", { children: i }),
5063
- /* @__PURE__ */ n("div", { className: "w-full flex justify-end items-center gap-0.5 pbs-2", children: a == null ? void 0 : a.map(({ label: C, ...m }, I) => (
5076
+ /* @__PURE__ */ n("div", { className: f("w-full flex justify-end items-center gap-0.5 pbs-2", c), children: t == null ? void 0 : t.map(({ label: b, ...k }, M) => (
5064
5077
  // eslint-disable-next-line react/jsx-props-no-spreading
5065
- /* @__PURE__ */ n(z1, { "aria-label": C, size: "sm", variant: "all_caps", ...m, children: C }, `${C}${I}`)
5078
+ /* @__PURE__ */ n(z1, { "aria-label": b, size: "sm", variant: "all_caps", ...k, children: b }, `${b}${M}`)
5066
5079
  )) })
5067
5080
  ]
5068
5081
  }
@@ -5121,12 +5134,12 @@ const ud = ({ isSelectedItem: l, option: i, onSelect: e, id: r }) => /* @__PURE_
5121
5134
  defaultValue: p,
5122
5135
  ...w
5123
5136
  }, y) => {
5124
- const C = W(null), [m, I] = G(p ?? null), [x, k] = G(!1), M = (z) => {
5137
+ const C = W(null), [m, I] = G(p ?? null), [b, k] = G(!1), M = (z) => {
5125
5138
  g(z), I(z), k(!1);
5126
5139
  }, S = _1((z) => {
5127
5140
  C.current && !C.current.contains(z.target) && k(!1);
5128
5141
  }, []), V = (z) => {
5129
- const N = a.find((b) => b.value === z.target.value);
5142
+ const N = a.find((x) => x.value === z.target.value);
5130
5143
  N && M(N);
5131
5144
  };
5132
5145
  return a1(() => (document.addEventListener("click", S, !0), () => {
@@ -5137,7 +5150,7 @@ const ud = ({ isSelectedItem: l, option: i, onSelect: e, id: r }) => /* @__PURE_
5137
5150
  Y1,
5138
5151
  {
5139
5152
  "aria-controls": `${e ?? i}-options`,
5140
- "aria-expanded": x,
5153
+ "aria-expanded": b,
5141
5154
  autoCapitalize: "off",
5142
5155
  autoComplete: "off",
5143
5156
  autoCorrect: "off",
@@ -5156,7 +5169,7 @@ const ud = ({ isSelectedItem: l, option: i, onSelect: e, id: r }) => /* @__PURE_
5156
5169
  ...w
5157
5170
  }
5158
5171
  ),
5159
- x ? /* @__PURE__ */ n(H, { className: "absolute top-0 right-0 left-0 z-50", children: /* @__PURE__ */ n(H, { className: "rounded-1 shadow-light-2", children: /* @__PURE__ */ n(J1, { className: "p-1 rounded-1", role: "listbox", children: a.length ? a.map((z, N) => /* @__PURE__ */ n(
5172
+ b ? /* @__PURE__ */ n(H, { className: "absolute top-0 right-0 left-0 z-50", children: /* @__PURE__ */ n(H, { className: "rounded-1 shadow-light-2", children: /* @__PURE__ */ n(J1, { className: "p-1 rounded-1", role: "listbox", children: a.length ? a.map((z, N) => /* @__PURE__ */ n(
5160
5173
  ud,
5161
5174
  {
5162
5175
  id: `${z.value}-${N}`,
@@ -5357,20 +5370,20 @@ const Td = ({
5357
5370
  dismissImageAriaLabel: c = "Remove Image",
5358
5371
  error: v = "",
5359
5372
  fileMaxKbSizeError: g = (R, F) => `${R} is too big to upload, the maximum size is ${F}kb. Please try again.`,
5360
- fileMaxSizeError: p = (R) => `${R} is too large to upload. The maximum dimensions are ${b == null ? void 0 : b.maxWidth}x${b == null ? void 0 : b.maxHeight}. Please try again.`,
5361
- fileMinSizeError: w = (R) => `${R} is too small to upload. The minimum dimensions are ${b == null ? void 0 : b.minWidth}x${b == null ? void 0 : b.minHeight}. Please try again.`,
5362
- fileRatioError: y = (R) => `${R} must have a ratio of, ${b == null ? void 0 : b.imageRatio}. Please try again.`,
5373
+ fileMaxSizeError: p = (R) => `${R} is too large to upload. The maximum dimensions are ${x == null ? void 0 : x.maxWidth}x${x == null ? void 0 : x.maxHeight}. Please try again.`,
5374
+ fileMinSizeError: w = (R) => `${R} is too small to upload. The minimum dimensions are ${x == null ? void 0 : x.minWidth}x${x == null ? void 0 : x.minHeight}. Please try again.`,
5375
+ fileRatioError: y = (R) => `${R} must have a ratio of, ${x == null ? void 0 : x.imageRatio}. Please try again.`,
5363
5376
  fileCallback: C,
5364
5377
  hero: m = !1,
5365
5378
  hint: I,
5366
- imageWidth: x = 160,
5379
+ imageWidth: b = 160,
5367
5380
  imageSrc: k,
5368
5381
  label: M = "Upload Image",
5369
5382
  name: S = "imageUpload",
5370
5383
  onBlur: V,
5371
5384
  preProcessing: z,
5372
5385
  shape: N = "circle",
5373
- validation: b
5386
+ validation: x
5374
5387
  }, B) => {
5375
5388
  const R = W(null), F = M1({ forwardedRef: B, innerRef: R }), [L, Q] = G(void 0), [U, T] = G(k ? "resolved" : "idle"), [o1, Y] = G(v), w1 = () => R != null && R.current ? R.current.click() : void 0;
5376
5389
  a1(() => {
@@ -5398,7 +5411,7 @@ const Td = ({
5398
5411
  ]),
5399
5412
  onLoad: () => L != null && L.imageSrc ? URL.revokeObjectURL(L.imageSrc) : void 0,
5400
5413
  src: c1 || void 0,
5401
- width: x
5414
+ width: b
5402
5415
  }
5403
5416
  ),
5404
5417
  a ? null : /* @__PURE__ */ n(
@@ -5424,27 +5437,27 @@ const Td = ({
5424
5437
  L == null ? void 0 : L.imageSrc,
5425
5438
  k,
5426
5439
  U,
5427
- x,
5440
+ b,
5428
5441
  c1,
5429
5442
  N
5430
5443
  ]), s1 = ({ file: O, imageUrl: q }) => new Promise((K, f1) => {
5431
5444
  var K1;
5432
- const X = new Image(), y1 = (K1 = b == null ? void 0 : b.imageRatio) == null ? void 0 : K1.split("/");
5445
+ const X = new Image(), y1 = (K1 = x == null ? void 0 : x.imageRatio) == null ? void 0 : K1.split("/");
5433
5446
  X.onload = async () => {
5434
- if (b)
5435
- if (b != null && b.maxByteSize && O.size > b.maxByteSize) {
5447
+ if (x)
5448
+ if (x != null && x.maxByteSize && O.size > x.maxByteSize) {
5436
5449
  Q(void 0), T("rejected");
5437
- const z2 = g(O.name, Math.round(b.maxByteSize / 1e3));
5450
+ const z2 = g(O.name, Math.round(x.maxByteSize / 1e3));
5438
5451
  return Y(z2), f1(!1);
5439
5452
  } else {
5440
- if (b != null && b.minWidth && X.width < (b == null ? void 0 : b.minWidth) || b != null && b.minHeight && X.height < (b == null ? void 0 : b.minHeight))
5453
+ if (x != null && x.minWidth && X.width < (x == null ? void 0 : x.minWidth) || x != null && x.minHeight && X.height < (x == null ? void 0 : x.minHeight))
5441
5454
  return Q(void 0), T("rejected"), Y(w(O.name)), f1(!1);
5442
- if (b != null && b.maxHeight && X.height > (b == null ? void 0 : b.maxHeight) || b != null && b.maxWidth && X.width > (b == null ? void 0 : b.maxWidth))
5455
+ if (x != null && x.maxHeight && X.height > (x == null ? void 0 : x.maxHeight) || x != null && x.maxWidth && X.width > (x == null ? void 0 : x.maxWidth))
5443
5456
  return Q(void 0), T("rejected"), Y(p(O.name)), f1(!1);
5444
- if (b != null && b.imageRatio && (y1 == null ? void 0 : y1.length) === 2 && parseInt(y1[0]) / parseInt(y1[1]) !== X.width / X.height)
5457
+ if (x != null && x.imageRatio && (y1 == null ? void 0 : y1.length) === 2 && parseInt(y1[0]) / parseInt(y1[1]) !== X.width / X.height)
5445
5458
  return Q(void 0), T("rejected"), Y(y(O.name)), f1(!1);
5446
5459
  }
5447
- return x = X.width, typeof C == "function" && (console.log("Callback"), await C(O, X)), Y(""), K(!0);
5460
+ return b = X.width, typeof C == "function" && (console.log("Callback"), await C(O, X)), Y(""), K(!0);
5448
5461
  }, X.src = q;
5449
5462
  }), i1 = async (O) => {
5450
5463
  try {
@@ -5825,7 +5838,7 @@ const co = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ d(
5825
5838
  }, y) => {
5826
5839
  const C = W(null), m = M1({ forwardedRef: y, innerRef: C }), I = (k) => {
5827
5840
  c && c(k.target.value);
5828
- }, x = () => {
5841
+ }, b = () => {
5829
5842
  c && c("");
5830
5843
  };
5831
5844
  return /* @__PURE__ */ d("div", { className: f(["flex items-start flex-col gap-0.5", l]), children: [
@@ -5860,7 +5873,7 @@ const co = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ d(
5860
5873
  {
5861
5874
  "aria-label": p,
5862
5875
  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",
5863
- onClick: x,
5876
+ onClick: b,
5864
5877
  variant: "primary",
5865
5878
  children: /* @__PURE__ */ n(C2, {})
5866
5879
  }
@@ -5888,26 +5901,26 @@ const go = ({
5888
5901
  value: p,
5889
5902
  ...w
5890
5903
  }, y) => {
5891
- const C = W(null), m = W(null), [I, x] = G(p), [k, M] = G(!1);
5904
+ const C = W(null), m = W(null), [I, b] = G(p), [k, M] = G(!1);
5892
5905
  B0(
5893
5906
  y,
5894
5907
  () => ({
5895
5908
  clearSelection() {
5896
- x(null), v("");
5909
+ b(null), v("");
5897
5910
  },
5898
5911
  ...C.current
5899
5912
  }),
5900
5913
  [v]
5901
5914
  );
5902
- const S = (b) => {
5903
- k || M(!0), !b.length && I && x(null), v(b);
5904
- }, V = (b) => {
5905
- g(b), v(b.label), x(b.label), M(!1);
5915
+ const S = (x) => {
5916
+ k || M(!0), !x.length && I && b(null), v(x);
5917
+ }, V = (x) => {
5918
+ g(x), v(x.label), b(x.label), M(!1);
5906
5919
  }, z = _1(() => {
5907
5920
  !I && p && v(""), I && p && v(I), M(!1);
5908
5921
  }, [v, I, p]), N = _(() => {
5909
- const b = p.toLowerCase();
5910
- return e.filter((B) => B.label.toLowerCase().includes(b));
5922
+ const x = p.toLowerCase();
5923
+ return e.filter((B) => B.label.toLowerCase().includes(x));
5911
5924
  }, [e, p]);
5912
5925
  return T0({
5913
5926
  handler: z,
@@ -5928,8 +5941,8 @@ const go = ({
5928
5941
  hint: t,
5929
5942
  label: l,
5930
5943
  name: i ?? l,
5931
- onChange: (b) => {
5932
- S(b);
5944
+ onChange: (x) => {
5945
+ S(x);
5933
5946
  },
5934
5947
  onFocus: () => M(!0),
5935
5948
  ref: C,
@@ -5937,7 +5950,7 @@ const go = ({
5937
5950
  ...w
5938
5951
  }
5939
5952
  ),
5940
- k ? /* @__PURE__ */ n(H, { className: "absolute top-full inset-x-0 z-50", children: /* @__PURE__ */ n(J1, { className: "max-h-[300px] rounded-t-0 px-0.5 overflow-y-auto", children: N.length ? N.map((b, B) => /* @__PURE__ */ n(x1, { onClick: () => V(b), children: b.label }, `${b.value}-${B}`)) : /* @__PURE__ */ n(x1, { children: c }, "no-options") }) }) : null
5953
+ k ? /* @__PURE__ */ n(H, { className: "absolute top-full inset-x-0 z-50", children: /* @__PURE__ */ n(J1, { className: "max-h-[300px] rounded-t-0 px-0.5 overflow-y-auto", children: N.length ? N.map((x, B) => /* @__PURE__ */ n(x1, { onClick: () => V(x), children: x.label }, `${x.value}-${B}`)) : /* @__PURE__ */ n(x1, { children: c }, "no-options") }) }) : null
5941
5954
  ]
5942
5955
  }
5943
5956
  );
@@ -6041,12 +6054,12 @@ const yo = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6041
6054
  value: w,
6042
6055
  ...y
6043
6056
  }, C) => {
6044
- var b;
6045
- const m = f(xo, yo), I = W(null), x = M1({ forwardedRef: C, innerRef: I }), [k, M] = G(!!(w || (b = x == null ? void 0 : x.current) != null && b.value));
6057
+ var x;
6058
+ const m = f(xo, yo), I = W(null), b = M1({ forwardedRef: C, innerRef: I }), [k, M] = G(!!(w || (x = b == null ? void 0 : b.current) != null && x.value));
6046
6059
  a1(() => {
6047
6060
  var B;
6048
- M(!!((B = x == null ? void 0 : x.current) != null && B.value || w));
6049
- }, [w, x]);
6061
+ M(!!((B = b == null ? void 0 : b.current) != null && B.value || w));
6062
+ }, [w, b]);
6050
6063
  const S = p !== "sm" && (!!c || !!t), V = _(() => {
6051
6064
  const B = f(
6052
6065
  m,
@@ -6059,7 +6072,7 @@ const yo = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6059
6072
  return k ? B : R;
6060
6073
  }, [k]), N = (B) => {
6061
6074
  var R;
6062
- M(!!((R = x == null ? void 0 : x.current) != null && R.value || w)), g && g(B);
6075
+ M(!!((R = b == null ? void 0 : b.current) != null && R.value || w)), g && g(B);
6063
6076
  };
6064
6077
  return /* @__PURE__ */ d("div", { className: f(i), children: [
6065
6078
  /* @__PURE__ */ d("div", { className: "relative w-full border-none", children: [
@@ -6077,7 +6090,7 @@ const yo = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6077
6090
  id: v,
6078
6091
  name: v,
6079
6092
  onChange: N,
6080
- ref: x,
6093
+ ref: b,
6081
6094
  value: w,
6082
6095
  children: l
6083
6096
  }
@@ -6440,8 +6453,8 @@ const l9 = {
6440
6453
  value: p,
6441
6454
  ...w
6442
6455
  }, y) => {
6443
- const C = W(null), m = M1({ forwardedRef: y, innerRef: C }), [I, x] = G(!!(p || g)), [k, M] = G(!1), S = (N) => {
6444
- x(!!(N.target.value || g)), v && v(N);
6456
+ const C = W(null), m = M1({ forwardedRef: y, innerRef: C }), [I, b] = G(!!(p || g)), [k, M] = G(!1), S = (N) => {
6457
+ b(!!(N.target.value || g)), v && v(N);
6445
6458
  }, V = () => {
6446
6459
  i || !m.current || (m.current.focus(), M(!0));
6447
6460
  }, z = () => {
@@ -6542,33 +6555,33 @@ const c9 = {
6542
6555
  const v = W(null), [g, p] = G(l1.START);
6543
6556
  a1(() => {
6544
6557
  if (g === l1.START) {
6545
- const x = setTimeout(() => p(l1.SHOW), 100);
6546
- return () => clearTimeout(x);
6558
+ const b = setTimeout(() => p(l1.SHOW), 100);
6559
+ return () => clearTimeout(b);
6547
6560
  } else if (g === l1.DISMISS) {
6548
- const x = setTimeout(() => {
6561
+ const b = setTimeout(() => {
6549
6562
  e && e(), p(l1.REMOVE);
6550
6563
  }, 1e3);
6551
- return () => clearTimeout(x);
6564
+ return () => clearTimeout(b);
6552
6565
  } else if (r && g !== l1.REMOVE) {
6553
- const x = setTimeout(() => p(l1.DISMISS), r);
6554
- return () => clearTimeout(x);
6566
+ const b = setTimeout(() => p(l1.DISMISS), r);
6567
+ return () => clearTimeout(b);
6555
6568
  }
6556
6569
  }, [r, g, e]);
6557
6570
  const w = _(() => {
6558
- var x;
6559
- return g === l1.DISMISS && ((x = v == null ? void 0 : v.current) != null && x.clientHeight) ? `-${v.current.clientHeight}px` : "0px";
6571
+ var b;
6572
+ return g === l1.DISMISS && ((b = v == null ? void 0 : v.current) != null && b.clientHeight) ? `-${v.current.clientHeight}px` : "0px";
6560
6573
  }, [v, g]), y = () => p(l1.DISMISS), C = _(() => {
6561
- 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]";
6574
+ const b = "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]";
6562
6575
  switch (c) {
6563
6576
  case "inlineEnd":
6564
- return g === l1.SHOW ? `${x} translate-x-0 opacity-1` : `${x} translate-x-[400px]`;
6577
+ return g === l1.SHOW ? `${b} translate-x-0 opacity-1` : `${b} translate-x-[400px]`;
6565
6578
  case "inlineStart":
6566
6579
  default:
6567
- return g === l1.SHOW ? `${x} translate-x-[-400px]` : `${x} opacity-1 translate-x-0`;
6580
+ return g === l1.SHOW ? `${b} translate-x-[-400px]` : `${b} opacity-1 translate-x-0`;
6568
6581
  }
6569
6582
  }, [c, g]), m = _(() => {
6570
- const x = "flex flex-col transition-[margin] duration-500 ease-in-out overflow-hidden";
6571
- return c === "inlineEnd" ? `${x} items-end` : `${x} items-start`;
6583
+ const b = "flex flex-col transition-[margin] duration-500 ease-in-out overflow-hidden";
6584
+ return c === "inlineEnd" ? `${b} items-end` : `${b} items-start`;
6572
6585
  }, [c]), I = _(() => c9[t], [t]);
6573
6586
  return g === l1.REMOVE ? null : /* @__PURE__ */ n("div", { className: f(m), style: { marginBlockEnd: w }, children: /* @__PURE__ */ d("div", { className: f(C, I, l), ref: v, children: [
6574
6587
  !a && /* @__PURE__ */ n("button", { "aria-label": "Dismiss", className: "mie-1", onClick: y, children: /* @__PURE__ */ n(C2, {}) }),