@youversion/design-system-components 0.29.0 → 0.29.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.es.js CHANGED
@@ -237,21 +237,21 @@ var R0 = "!";
237
237
  function He(t) {
238
238
  var i = t.separator || ":", e = i.length === 1, r = i[0], a = i.length;
239
239
  return function(u) {
240
- for (var v = [], p = 0, g = 0, m, b = 0; b < u.length; b++) {
241
- var Z = u[b];
240
+ for (var v = [], p = 0, g = 0, b, m = 0; m < u.length; m++) {
241
+ var Z = u[m];
242
242
  if (p === 0) {
243
- if (Z === r && (e || u.slice(b, b + a) === i)) {
244
- v.push(u.slice(g, b)), g = b + a;
243
+ if (Z === r && (e || u.slice(m, m + a) === i)) {
244
+ v.push(u.slice(g, m)), g = m + a;
245
245
  continue;
246
246
  }
247
247
  if (Z === "/") {
248
- m = b;
248
+ b = m;
249
249
  continue;
250
250
  }
251
251
  }
252
252
  Z === "[" ? p++ : Z === "]" && p--;
253
253
  }
254
- var x = v.length === 0 ? u : u.substring(g), y = x.startsWith(R0), k = y ? x.substring(1) : x, C = m && m > g ? m - g : void 0;
254
+ var x = v.length === 0 ? u : u.substring(g), y = x.startsWith(R0), k = y ? x.substring(1) : x, C = b && b > g ? b - g : void 0;
255
255
  return {
256
256
  modifiers: v,
257
257
  hasImportantModifier: y,
@@ -280,14 +280,14 @@ var Ve = /\s+/;
280
280
  function Le(t, i) {
281
281
  var e = i.splitModifiers, r = i.getClassGroupId, a = i.getConflictingClassGroupIds, l = /* @__PURE__ */ new Set();
282
282
  return t.trim().split(Ve).map(function(u) {
283
- var v = e(u), p = v.modifiers, g = v.hasImportantModifier, m = v.baseClassName, b = v.maybePostfixModifierPosition, Z = r(b ? m.substring(0, b) : m), x = !!b;
283
+ var v = e(u), p = v.modifiers, g = v.hasImportantModifier, b = v.baseClassName, m = v.maybePostfixModifierPosition, Z = r(m ? b.substring(0, m) : b), x = !!m;
284
284
  if (!Z) {
285
- if (!b)
285
+ if (!m)
286
286
  return {
287
287
  isTailwindClass: !1,
288
288
  originalClassName: u
289
289
  };
290
- if (Z = r(m), !Z)
290
+ if (Z = r(b), !Z)
291
291
  return {
292
292
  isTailwindClass: !1,
293
293
  originalClassName: u
@@ -305,9 +305,9 @@ function Le(t, i) {
305
305
  }).reverse().filter(function(u) {
306
306
  if (!u.isTailwindClass)
307
307
  return !0;
308
- var v = u.modifierId, p = u.classGroupId, g = u.hasPostfixModifier, m = v + p;
309
- return l.has(m) ? !1 : (l.add(m), a(p, g).forEach(function(b) {
310
- return l.add(v + b);
308
+ var v = u.modifierId, p = u.classGroupId, g = u.hasPostfixModifier, b = v + p;
309
+ return l.has(b) ? !1 : (l.add(b), a(p, g).forEach(function(m) {
310
+ return l.add(v + m);
311
311
  }), !0);
312
312
  }).reverse().map(function(u) {
313
313
  return u.originalClassName;
@@ -318,17 +318,17 @@ function _1() {
318
318
  i[e] = arguments[e];
319
319
  var r, a, l, u = v;
320
320
  function v(g) {
321
- var m = i[0], b = i.slice(1), Z = b.reduce(function(x, y) {
321
+ var b = i[0], m = i.slice(1), Z = m.reduce(function(x, y) {
322
322
  return y(x);
323
- }, m());
323
+ }, b());
324
324
  return r = Ae(Z), a = r.cache.get, l = r.cache.set, u = p, p(g);
325
325
  }
326
326
  function p(g) {
327
- var m = a(g);
328
- if (m)
329
- return m;
330
- var b = Le(g, r);
331
- return l(g, b), b;
327
+ var b = a(g);
328
+ if (b)
329
+ return b;
330
+ var m = Le(g, r);
331
+ return l(g, m), m;
332
332
  }
333
333
  return function() {
334
334
  return u(Ce.apply(null, arguments));
@@ -400,7 +400,7 @@ function _e(t) {
400
400
  return Te.test(t);
401
401
  }
402
402
  function Y1() {
403
- var t = B("colors"), i = B("spacing"), e = B("blur"), r = B("brightness"), a = B("borderColor"), l = B("borderRadius"), u = B("borderSpacing"), v = B("borderWidth"), p = B("contrast"), g = B("grayscale"), m = B("hueRotate"), b = B("invert"), Z = B("gap"), x = B("gradientColorStops"), y = B("gradientColorStopPositions"), k = B("inset"), C = B("margin"), z = B("opacity"), I = B("padding"), A = B("saturate"), R = B("scale"), M = B("sepia"), w = B("skew"), H = B("space"), $ = B("translate"), K = function() {
403
+ var t = B("colors"), i = B("spacing"), e = B("blur"), r = B("brightness"), a = B("borderColor"), l = B("borderRadius"), u = B("borderSpacing"), v = B("borderWidth"), p = B("contrast"), g = B("grayscale"), b = B("hueRotate"), m = B("invert"), Z = B("gap"), x = B("gradientColorStops"), y = B("gradientColorStopPositions"), k = B("inset"), C = B("margin"), z = B("opacity"), I = B("padding"), A = B("saturate"), R = B("scale"), M = B("sepia"), w = B("skew"), H = B("space"), $ = B("translate"), K = function() {
404
404
  return ["auto", "contain", "none"];
405
405
  }, V = function() {
406
406
  return ["auto", "hidden", "clip", "visible", "scroll"];
@@ -1849,14 +1849,14 @@ function Y1() {
1849
1849
  * @see https://tailwindcss.com/docs/hue-rotate
1850
1850
  */
1851
1851
  "hue-rotate": [{
1852
- "hue-rotate": [m]
1852
+ "hue-rotate": [b]
1853
1853
  }],
1854
1854
  /**
1855
1855
  * Invert
1856
1856
  * @see https://tailwindcss.com/docs/invert
1857
1857
  */
1858
1858
  invert: [{
1859
- invert: [b]
1859
+ invert: [m]
1860
1860
  }],
1861
1861
  /**
1862
1862
  * Saturate
@@ -1913,14 +1913,14 @@ function Y1() {
1913
1913
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1914
1914
  */
1915
1915
  "backdrop-hue-rotate": [{
1916
- "backdrop-hue-rotate": [m]
1916
+ "backdrop-hue-rotate": [b]
1917
1917
  }],
1918
1918
  /**
1919
1919
  * Backdrop Invert
1920
1920
  * @see https://tailwindcss.com/docs/backdrop-invert
1921
1921
  */
1922
1922
  "backdrop-invert": [{
1923
- "backdrop-invert": [b]
1923
+ "backdrop-invert": [m]
1924
1924
  }],
1925
1925
  /**
1926
1926
  * Backdrop Opacity
@@ -2488,8 +2488,8 @@ const $1 = (t) => {
2488
2488
  elevation: v = 0,
2489
2489
  height: p,
2490
2490
  margin: g,
2491
- padding: m,
2492
- width: b,
2491
+ padding: b,
2492
+ width: m,
2493
2493
  ...Z
2494
2494
  }, x) => {
2495
2495
  const y = {
@@ -2499,7 +2499,7 @@ const $1 = (t) => {
2499
2499
  4: "shadow-light-4 dark:shadow-dark-4",
2500
2500
  8: "shadow-light-8 dark:shadow-dark-8",
2501
2501
  12: "shadow-light-12 dark:shadow-dark-12"
2502
- }, k = $1(u), C = $1(t), z = $1(i), I = J1(m), A = J1(g), R = f(
2502
+ }, k = $1(u), C = $1(t), z = $1(i), I = J1(b), A = J1(g), R = f(
2503
2503
  e,
2504
2504
  r,
2505
2505
  y[v],
@@ -2508,7 +2508,7 @@ const $1 = (t) => {
2508
2508
  k,
2509
2509
  C,
2510
2510
  z,
2511
- b,
2511
+ m,
2512
2512
  p,
2513
2513
  a
2514
2514
  );
@@ -2553,17 +2553,17 @@ const o2 = ({
2553
2553
  onChange: v,
2554
2554
  placeholder: p,
2555
2555
  startIcon: g,
2556
- value: m,
2557
- ...b
2556
+ value: b,
2557
+ ...m
2558
2558
  }, Z) => {
2559
- const x = P(null), y = b1({ forwardedRef: Z, innerRef: x }), [k, C] = O(!!m), [z, I] = O(!1);
2559
+ const x = P(null), y = b1({ forwardedRef: Z, innerRef: x }), [k, C] = O(!!b), [z, I] = O(!1);
2560
2560
  o1(() => {
2561
2561
  var w;
2562
- C(!!((w = y == null ? void 0 : y.current) != null && w.value) || !!(m || p));
2563
- }, [m, p, y]);
2562
+ C(!!((w = y == null ? void 0 : y.current) != null && w.value) || !!(b || p));
2563
+ }, [b, p, y]);
2564
2564
  const A = (w) => {
2565
2565
  var H;
2566
- C(!!((H = y == null ? void 0 : y.current) != null && H.value) || !!(m || p)), v && v(w);
2566
+ C(!!((H = y == null ? void 0 : y.current) != null && H.value) || !!(b || p)), v && v(w);
2567
2567
  }, R = () => {
2568
2568
  i || !y.current || (y.current.focus(), I(!0));
2569
2569
  }, M = () => {
@@ -2598,8 +2598,8 @@ const o2 = ({
2598
2598
  onChange: A,
2599
2599
  placeholder: p,
2600
2600
  ref: y,
2601
- value: m,
2602
- ...b
2601
+ value: b,
2602
+ ...m
2603
2603
  }
2604
2604
  ),
2605
2605
  l ? /* @__PURE__ */ n(
@@ -2680,11 +2680,11 @@ const s2 = ({
2680
2680
  onChange: v,
2681
2681
  onSelect: p,
2682
2682
  value: g,
2683
- ...m
2684
- }, b) => {
2683
+ ...b
2684
+ }, m) => {
2685
2685
  const Z = P(null), x = P(null), [y, k] = O(g), [C, z] = O(!1);
2686
2686
  b0(
2687
- b,
2687
+ m,
2688
2688
  () => ({
2689
2689
  clearSelection() {
2690
2690
  k(null), v("");
@@ -2721,7 +2721,7 @@ const s2 = ({
2721
2721
  onFocus: () => z(!0),
2722
2722
  ref: Z,
2723
2723
  value: g ?? "",
2724
- ...m
2724
+ ...b
2725
2725
  }
2726
2726
  ),
2727
2727
  C ? /* @__PURE__ */ n(S, { className: "absolute top-[calc(100%+1px)] w-full z-50", children: /* @__PURE__ */ n(F1, { className: "max-h-[300px] overflow-y-auto", children: M.length ? M.map((w, H) => /* @__PURE__ */ n(m1, { onClick: () => A(w), children: w.label }, `${w.value}-${H}`)) : /* @__PURE__ */ n(m1, { children: u }, "no-options") }) }) : null
@@ -2893,11 +2893,11 @@ const K1 = {
2893
2893
  primary: "font-aktiv-grotesk",
2894
2894
  secondary: "font-untitled-serif"
2895
2895
  }, I2 = ({ className: t, component: i = "p", children: e, font: r = "primary", size: a, variant: l, ...u }, v) => {
2896
- const p = "text-text-light dark:text-text-dark", g = O0[r], m = $0({ size: a, variant: l });
2896
+ const p = "text-text-light dark:text-text-dark", g = O0[r], b = $0({ size: a, variant: l });
2897
2897
  return /* @__PURE__ */ n(
2898
2898
  S,
2899
2899
  {
2900
- className: f(p, m, g, t),
2900
+ className: f(p, b, g, t),
2901
2901
  component: i,
2902
2902
  ref: v,
2903
2903
  ...u,
@@ -3070,17 +3070,17 @@ const oo = {
3070
3070
  loadingSpinnerLabel: v,
3071
3071
  size: p = "md",
3072
3072
  type: g = "button",
3073
- variant: m = "primary",
3074
- ...b
3073
+ variant: b = "primary",
3074
+ ...m
3075
3075
  }, Z) => {
3076
3076
  const x = W0(r !== void 0 ? l : void 0), y = f(
3077
3077
  D0,
3078
- V1[m],
3078
+ V1[b],
3079
3079
  x[p],
3080
3080
  { "disabled:opacity-100": u },
3081
3081
  t
3082
3082
  );
3083
- return /* @__PURE__ */ o("button", { className: y, disabled: e || u, ref: Z, type: g, ...b, children: [
3083
+ return /* @__PURE__ */ o("button", { className: y, disabled: e || u, ref: Z, type: g, ...m, children: [
3084
3084
  l === "start" && r !== void 0 ? Y(r, {
3085
3085
  className: "mie-0.5",
3086
3086
  onClick: a ?? void 0,
@@ -3106,7 +3106,7 @@ const oo = {
3106
3106
  }, R1 = d(_2);
3107
3107
  R1.displayName = "Button";
3108
3108
  const X2 = ({ error: t, className: i, label: e, disabled: r, name: a, labelProps: l, ...u }, v) => {
3109
- const p = fe(), g = E(() => `checkbox-label-${p}`, [p]), { className: m, ...b } = l ?? {};
3109
+ const p = fe(), g = E(() => `checkbox-label-${p}`, [p]), { className: b, ...m } = l ?? {};
3110
3110
  return /* @__PURE__ */ o(
3111
3111
  "div",
3112
3112
  {
@@ -3134,9 +3134,9 @@ const X2 = ({ error: t, className: i, label: e, disabled: r, name: a, labelProps
3134
3134
  {
3135
3135
  className: f(
3136
3136
  "peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",
3137
- m
3137
+ b
3138
3138
  ),
3139
- children: /* @__PURE__ */ n("label", { htmlFor: a, id: g, ...b, children: e })
3139
+ children: /* @__PURE__ */ n("label", { htmlFor: a, id: g, ...m, children: e })
3140
3140
  }
3141
3141
  ) : null,
3142
3142
  t ? /* @__PURE__ */ n("div", { className: "text-alert-light dark:text-alert-dark text-13", children: t }) : null
@@ -3891,8 +3891,8 @@ const X8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3891
3891
  placeholder: v = a,
3892
3892
  resetAriaLabel: p = "Reset color",
3893
3893
  resetValue: g = "#000000",
3894
- value: m,
3895
- ...b
3894
+ value: b,
3895
+ ...m
3896
3896
  }, Z) => {
3897
3897
  "use client";
3898
3898
  const x = /^#[0-9A-F]{6}$/i, y = P(null), k = P(null), [C, z] = O(!1), I = Z ?? y, A = (H) => {
@@ -3903,7 +3903,7 @@ const X8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3903
3903
  var H;
3904
3904
  z(!0), (H = I == null ? void 0 : I.current) == null || H.focus();
3905
3905
  }, w = () => {
3906
- x.test(m) || u(x.test(g) ? g : "#000000"), z(!1);
3906
+ x.test(b) || u(x.test(g) ? g : "#000000"), z(!1);
3907
3907
  };
3908
3908
  return /* @__PURE__ */ o("div", { className: t, children: [
3909
3909
  /* @__PURE__ */ o(
@@ -3932,7 +3932,7 @@ const X8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3932
3932
  placeholder: v ?? a,
3933
3933
  ref: I,
3934
3934
  type: "text",
3935
- value: m
3935
+ value: b
3936
3936
  }
3937
3937
  ) })
3938
3938
  ] }),
@@ -3948,8 +3948,8 @@ const X8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3948
3948
  onChange: A,
3949
3949
  ref: k,
3950
3950
  type: "color",
3951
- value: x.test(m) ? m : "#000000",
3952
- ...b
3951
+ value: x.test(b) ? b : "#000000",
3952
+ ...m
3953
3953
  }
3954
3954
  ),
3955
3955
  /* @__PURE__ */ n(
@@ -3960,7 +3960,7 @@ const X8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3960
3960
  var H;
3961
3961
  k && k.current && ((H = k.current) == null || H.click());
3962
3962
  },
3963
- style: { backgroundColor: m }
3963
+ style: { backgroundColor: b }
3964
3964
  }
3965
3965
  )
3966
3966
  ] }),
@@ -4003,53 +4003,53 @@ var Q8 = Object.defineProperty, K8 = Object.defineProperties, e7 = Object.getOwn
4003
4003
  var e = t, { title: r, titleId: a } = e, l = r7(e, ["title", "titleId"]);
4004
4004
  return o("svg", t7(l7({ width: l.size || "24", height: l.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: i, "aria-labelledby": a }, l), { children: [r ? n("title", { id: a, children: r }) : null, n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 1 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z", fill: "currentColor" })] }));
4005
4005
  }, a7 = d(i7), n7 = a7;
4006
- const Q0 = ({ children: t, autoFocus: i = !0 }) => {
4007
- const e = P(null);
4006
+ const Q0 = ({ autoFocus: t = !0, children: i, className: e }) => {
4007
+ const r = P(null);
4008
4008
  return o1(() => {
4009
- if (e.current) {
4010
- const r = e.current.querySelectorAll(
4009
+ if (r.current) {
4010
+ const a = r.current.querySelectorAll(
4011
4011
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4012
4012
  );
4013
- let a = document.activeElement;
4014
- const l = r[0], u = r[r.length - 1], v = (m) => {
4013
+ let l = document.activeElement;
4014
+ const u = a[0], v = a[a.length - 1], p = (m) => {
4015
4015
  if (m.key === "Tab") {
4016
4016
  if (m.shiftKey) {
4017
- if (document.activeElement === l)
4018
- m.preventDefault(), u.focus(), a = u;
4017
+ if (document.activeElement === u)
4018
+ m.preventDefault(), v.focus(), l = v;
4019
4019
  else
4020
- for (let b = 0; b < r.length; b++)
4021
- if (r[b] === document.activeElement) {
4022
- a = r[b - 1];
4020
+ for (let Z = 0; Z < a.length; Z++)
4021
+ if (a[Z] === document.activeElement) {
4022
+ l = a[Z - 1];
4023
4023
  break;
4024
4024
  }
4025
4025
  } else if (!m.shiftKey) {
4026
- if (document.activeElement === u)
4027
- m.preventDefault(), l.focus(), a = l;
4026
+ if (document.activeElement === v)
4027
+ m.preventDefault(), u.focus(), l = u;
4028
4028
  else
4029
- for (let b = 0; b < r.length; b++)
4030
- if (r[b] === document.activeElement) {
4031
- a = r[b + 1];
4029
+ for (let Z = 0; Z < a.length; Z++)
4030
+ if (a[Z] === document.activeElement) {
4031
+ l = a[Z + 1];
4032
4032
  break;
4033
4033
  }
4034
4034
  }
4035
4035
  }
4036
4036
  };
4037
- i && (() => {
4038
- if (e.current) {
4039
- const m = e.current.querySelector(
4037
+ t && (() => {
4038
+ if (r.current) {
4039
+ const m = r.current.querySelector(
4040
4040
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4041
4041
  );
4042
4042
  m && m.focus();
4043
4043
  }
4044
4044
  })();
4045
- const g = (m) => {
4046
- e.current && !e.current.contains(m.target) && a.focus();
4045
+ const b = (m) => {
4046
+ r.current && !r.current.contains(m.target) && l.focus();
4047
4047
  };
4048
- return document.addEventListener("keydown", v), document.addEventListener("click", g), () => {
4049
- document.removeEventListener("keydown", v), document.removeEventListener("click", g);
4048
+ return document.addEventListener("keydown", p), document.addEventListener("click", b), () => {
4049
+ document.removeEventListener("keydown", p), document.removeEventListener("click", b);
4050
4050
  };
4051
4051
  }
4052
- }, [i]), /* @__PURE__ */ n("div", { ref: e, children: t });
4052
+ }, [t]), /* @__PURE__ */ n("div", { className: e, ref: r, children: i });
4053
4053
  }, o7 = ({
4054
4054
  children: t,
4055
4055
  className: i,
@@ -4097,11 +4097,11 @@ const d7 = {
4097
4097
  3: "h3",
4098
4098
  4: "h4"
4099
4099
  }, c7 = ({ className: t, children: i, font: e = "primary", level: r = 1, size: a, variant: l, ...u }, v) => {
4100
- const p = "text-text-light dark:text-text-dark", g = O0[e], m = $0({ size: a, variant: l });
4100
+ const p = "text-text-light dark:text-text-dark", g = O0[e], b = $0({ size: a, variant: l });
4101
4101
  return /* @__PURE__ */ n(
4102
4102
  S,
4103
4103
  {
4104
- className: f(p, m, g, t),
4104
+ className: f(p, b, g, t),
4105
4105
  component: d7[r],
4106
4106
  ref: v,
4107
4107
  ...u,
@@ -4120,7 +4120,7 @@ const s7 = ({
4120
4120
  isDismissableOnOutsideClick: u = !0,
4121
4121
  onClose: v,
4122
4122
  ...p
4123
- }, g) => (n2(), /* @__PURE__ */ o("div", { className: "flex items-center justify-center w-full h-screen z-[1400] fixed inset-0", children: [
4123
+ }, g) => (n2(), /* @__PURE__ */ o("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
4124
4124
  /* @__PURE__ */ n(
4125
4125
  "div",
4126
4126
  {
@@ -4130,7 +4130,7 @@ const s7 = ({
4130
4130
  onClick: u ? v : void 0
4131
4131
  }
4132
4132
  ),
4133
- /* @__PURE__ */ n(Q0, { autoFocus: t, children: /* @__PURE__ */ o(
4133
+ /* @__PURE__ */ n(Q0, { autoFocus: t, className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ o(
4134
4134
  "dialog",
4135
4135
  {
4136
4136
  className: f(
@@ -4153,9 +4153,9 @@ const s7 = ({
4153
4153
  ) : null,
4154
4154
  /* @__PURE__ */ n("div", { children: l ? /* @__PURE__ */ n(w1, { className: "pbe-1", size: "md", variant: "headline", children: l }) : null }),
4155
4155
  /* @__PURE__ */ n("div", { children: i }),
4156
- /* @__PURE__ */ n("div", { className: "w-full flex justify-end items-center pbs-2", children: r == null ? void 0 : r.map(({ label: b, ...Z }, x) => (
4156
+ /* @__PURE__ */ n("div", { className: "w-full flex justify-end items-center pbs-2", children: r == null ? void 0 : r.map(({ label: m, ...Z }, x) => (
4157
4157
  // eslint-disable-next-line react/jsx-props-no-spreading
4158
- /* @__PURE__ */ n(R1, { "aria-label": b, size: "sm", variant: "all_caps", ...Z, children: b }, `${b}${x}`)
4158
+ /* @__PURE__ */ n(R1, { "aria-label": m, size: "sm", variant: "all_caps", ...Z, children: m }, `${m}${x}`)
4159
4159
  )) })
4160
4160
  ]
4161
4161
  }
@@ -4343,8 +4343,8 @@ const X7 = ({
4343
4343
  error: v = "",
4344
4344
  fileMaxKbSizeError: p = ($, K) => `${$} is too big to upload, the maximum size is ${K}kb. Please try again.`,
4345
4345
  fileMaxSizeError: g = ($) => `${$} is too large to upload. The maximum dimensions are ${w == null ? void 0 : w.maxWidth}x${w == null ? void 0 : w.maxHeight}. Please try again.`,
4346
- fileMinSizeError: 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.`,
4347
- fileRatioError: b = ($) => `${$} must have a ratio of, ${w == null ? void 0 : w.imageRatio}. Please try again.`,
4346
+ fileMinSizeError: b = ($) => `${$} 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.`,
4347
+ fileRatioError: m = ($) => `${$} must have a ratio of, ${w == null ? void 0 : w.imageRatio}. Please try again.`,
4348
4348
  fileCallback: Z,
4349
4349
  hero: x = !1,
4350
4350
  hint: y,
@@ -4419,11 +4419,11 @@ const X7 = ({
4419
4419
  return _(se), i1(!1);
4420
4420
  } else {
4421
4421
  if (w != null && w.minWidth && G.width < (w == null ? void 0 : w.minWidth) || w != null && w.minHeight && G.height < (w == null ? void 0 : w.minHeight))
4422
- return q(void 0), j("rejected"), _(m(X.name)), i1(!1);
4422
+ return q(void 0), j("rejected"), _(b(X.name)), i1(!1);
4423
4423
  if (w != null && w.maxHeight && G.height > (w == null ? void 0 : w.maxHeight) || w != null && w.maxWidth && G.width > (w == null ? void 0 : w.maxWidth))
4424
4424
  return q(void 0), j("rejected"), _(g(X.name)), i1(!1);
4425
4425
  if (w != null && w.imageRatio && (v1 == null ? void 0 : v1.length) === 2 && parseInt(v1[0]) / parseInt(v1[1]) !== G.width / G.height)
4426
- return q(void 0), j("rejected"), _(b(X.name)), i1(!1);
4426
+ return q(void 0), j("rejected"), _(m(X.name)), i1(!1);
4427
4427
  }
4428
4428
  return k = G.width, typeof Z == "function" && (console.log("Callback"), await Z(X, G)), _(""), r1(!0);
4429
4429
  }, G.src = t1;
@@ -4526,7 +4526,7 @@ const J7 = ({
4526
4526
  ...v
4527
4527
  }, p) => {
4528
4528
  const g = W0(r !== void 0 ? a : void 0);
4529
- return /* @__PURE__ */ o(({ children: b }) => Y(
4529
+ return /* @__PURE__ */ o(({ children: m }) => Y(
4530
4530
  e,
4531
4531
  {
4532
4532
  ...v,
@@ -4539,7 +4539,7 @@ const J7 = ({
4539
4539
  ]),
4540
4540
  ref: p
4541
4541
  },
4542
- b
4542
+ m
4543
4543
  ), { children: [
4544
4544
  a === "start" && r !== void 0 ? Y(r, {
4545
4545
  className: "mie-0.5 flex-shrink-0",
@@ -4706,13 +4706,13 @@ const vo = ({
4706
4706
  firstLabel: v = "Go to first page",
4707
4707
  lastLabel: p = "Go to last page"
4708
4708
  }) => {
4709
- const g = "w-4 h-4 mli-0.5 flex justify-center items-center rounded-full cursor-pointer leading-snug", m = f(
4709
+ const g = "w-4 h-4 mli-0.5 flex justify-center items-center rounded-full cursor-pointer leading-snug", b = f(
4710
4710
  g,
4711
4711
  "bg-transparent hover:bg-gray-35 hover:dark:bg-white text-muted-light",
4712
4712
  "dark:text-text-muted-dark hover:!text-canvas-light hover:dark:text-gray-50",
4713
4713
  "border border-transparent focus:border-info focus:dark:border-info",
4714
4714
  "hover:border-transparent hover:dark:border-transparent"
4715
- ), b = m, Z = f(g, "bg-yv-red !text-white dark:!text-white"), x = E(
4715
+ ), m = b, Z = f(g, "bg-yv-red !text-white dark:!text-white"), x = E(
4716
4716
  () => dn({
4717
4717
  page: t.findIndex((y) => y === i) + 1,
4718
4718
  pages: t
@@ -4725,7 +4725,7 @@ const vo = ({
4725
4725
  S,
4726
4726
  {
4727
4727
  "aria-label": v,
4728
- className: f(b, "hidden md:flex mli-0"),
4728
+ className: f(m, "hidden md:flex mli-0"),
4729
4729
  component: r,
4730
4730
  onClick: () => e(t[0]),
4731
4731
  children: [
@@ -4738,7 +4738,7 @@ const vo = ({
4738
4738
  S,
4739
4739
  {
4740
4740
  "aria-label": u,
4741
- className: f(b, "mli-0"),
4741
+ className: f(m, "mli-0"),
4742
4742
  component: r,
4743
4743
  onClick: () => e(t[t.findIndex((y) => y === i) - 1]),
4744
4744
  children: [
@@ -4752,7 +4752,7 @@ const vo = ({
4752
4752
  S,
4753
4753
  {
4754
4754
  "aria-label": a(t.findIndex((k) => k === y) + 1),
4755
- className: f(y === i ? Z : m, "hidden md:flex"),
4755
+ className: f(y === i ? Z : b, "hidden md:flex"),
4756
4756
  component: r,
4757
4757
  onClick: () => e(y),
4758
4758
  children: /* @__PURE__ */ n(
@@ -4784,7 +4784,7 @@ const vo = ({
4784
4784
  S,
4785
4785
  {
4786
4786
  "aria-label": l,
4787
- className: f(m, b, "mli-0"),
4787
+ className: f(b, m, "mli-0"),
4788
4788
  component: r,
4789
4789
  onClick: () => e(t[t.findIndex((y) => y === i) + 1]),
4790
4790
  children: [
@@ -4797,7 +4797,7 @@ const vo = ({
4797
4797
  S,
4798
4798
  {
4799
4799
  "aria-label": p,
4800
- className: f(m, b, "hidden md:flex mli-0"),
4800
+ className: f(b, m, "hidden md:flex mli-0"),
4801
4801
  component: r,
4802
4802
  onClick: () => e(t[t.length - 1]),
4803
4803
  children: [
@@ -4846,11 +4846,11 @@ const vo = ({
4846
4846
  function g(Z) {
4847
4847
  l && Z.key === "Escape" && v();
4848
4848
  }
4849
- function m() {
4849
+ function b() {
4850
4850
  l && v();
4851
4851
  }
4852
- const b = P(null);
4853
- return N0({ handler: m, ref: b }), /* @__PURE__ */ n(sn, { open: u, children: /* @__PURE__ */ n(Q0, { autoFocus: i, children: /* @__PURE__ */ n(
4852
+ const m = P(null);
4853
+ return N0({ handler: b, ref: m }), /* @__PURE__ */ n(sn, { open: u, children: /* @__PURE__ */ n(Q0, { autoFocus: i, children: /* @__PURE__ */ n(
4854
4854
  cn,
4855
4855
  {
4856
4856
  align: t,
@@ -4858,7 +4858,7 @@ const vo = ({
4858
4858
  onClose: v,
4859
4859
  ...p,
4860
4860
  children: /* @__PURE__ */ n("div", { onClick: a ? v : () => {
4861
- }, onKeyDown: g, ref: b, children: e })
4861
+ }, onKeyDown: g, ref: m, children: e })
4862
4862
  }
4863
4863
  ) }) });
4864
4864
  }, wo = ({ onToggle: t, children: i, className: e, disabled: r }) => {
@@ -4970,9 +4970,9 @@ const pn = ({ title: t, titleId: i, ...e }, r) => /* @__PURE__ */ o(
4970
4970
  placeholder: v,
4971
4971
  value: p,
4972
4972
  dismissButtonLabel: g,
4973
- ...m
4974
- }, b) => {
4975
- const Z = P(null), x = b1({ forwardedRef: b, innerRef: Z }), y = (C) => {
4973
+ ...b
4974
+ }, m) => {
4975
+ const Z = P(null), x = b1({ forwardedRef: m, innerRef: Z }), y = (C) => {
4976
4976
  u && u(C.target.value);
4977
4977
  }, k = () => {
4978
4978
  u && u("");
@@ -5000,7 +5000,7 @@ const pn = ({ title: t, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5000
5000
  ref: x,
5001
5001
  type: "search",
5002
5002
  value: p,
5003
- ...m
5003
+ ...b
5004
5004
  }
5005
5005
  ),
5006
5006
  /* @__PURE__ */ n("label", { className: "sr-only", htmlFor: l, children: a }),
@@ -5035,11 +5035,11 @@ const yn = ({
5035
5035
  onChange: v,
5036
5036
  onSelect: p,
5037
5037
  value: g,
5038
- ...m
5039
- }, b) => {
5038
+ ...b
5039
+ }, m) => {
5040
5040
  const Z = P(null), x = P(null), [y, k] = O(g), [C, z] = O(!1);
5041
5041
  b0(
5042
- b,
5042
+ m,
5043
5043
  () => ({
5044
5044
  clearSelection() {
5045
5045
  k(null), v("");
@@ -5083,7 +5083,7 @@ const yn = ({
5083
5083
  onFocus: () => z(!0),
5084
5084
  ref: Z,
5085
5085
  value: g,
5086
- ...m
5086
+ ...b
5087
5087
  }
5088
5088
  ),
5089
5089
  C ? /* @__PURE__ */ n(S, { className: "absolute top-full inset-x-0 z-50", children: /* @__PURE__ */ n(F1, { className: "max-h-[300px] rounded-t-0 px-0.5 overflow-y-auto", children: M.length ? M.map((w, H) => /* @__PURE__ */ n(m1, { onClick: () => A(w), children: w.label }, `${w.value}-${H}`)) : /* @__PURE__ */ n(m1, { children: u }, "no-options") }) }) : null
@@ -5094,8 +5094,8 @@ const yn = ({
5094
5094
  kn.displayName = "SearchableSelect";
5095
5095
  function Zn({ className: t, defaultValue: i, onChange: e = () => {
5096
5096
  }, values: r, ...a }, l) {
5097
- const [u, v] = O(i ?? 0), p = u > 0 ? u - 1 : 0, g = (m) => {
5098
- v(m), e(m);
5097
+ const [u, v] = O(i ?? 0), p = u > 0 ? u - 1 : 0, g = (b) => {
5098
+ v(b), e(b);
5099
5099
  };
5100
5100
  return /* @__PURE__ */ n(
5101
5101
  S,
@@ -5103,15 +5103,15 @@ function Zn({ className: t, defaultValue: i, onChange: e = () => {
5103
5103
  ...a,
5104
5104
  className: `inline-flex overflow-hidden text-gray-40 dark:text-white ${t}`,
5105
5105
  ref: l,
5106
- children: r.map((m, b) => /* @__PURE__ */ n(
5106
+ children: r.map((b, m) => /* @__PURE__ */ n(
5107
5107
  Mn,
5108
5108
  {
5109
5109
  activeIndex: u,
5110
- currentIndex: b,
5110
+ currentIndex: m,
5111
5111
  lastIndex: r.length - 1,
5112
5112
  onSelectedValue: g,
5113
5113
  prevIndex: p,
5114
- value: m
5114
+ value: b
5115
5115
  }
5116
5116
  ))
5117
5117
  }
@@ -5150,17 +5150,17 @@ const mo = ({ ...t }) => /* @__PURE__ */ n("option", { ...t }), zn = "_select_1d
5150
5150
  const In = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0", Rn = "border-alert-light dark:border-alert-dark", Sn = "border-tertiary-light dark:border-tertiary-dark", j1 = "text-text-muted-light dark:text-text-muted-dark", w0 = f(
5151
5151
  j1,
5152
5152
  "font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"
5153
- ), Bn = "-translate-y-1 opacity-100", Hn = "text-overlay-text dark:text-text-dark", Nn = "!pbs-3 !pbe-1", An = "absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark", Vn = ({ children: t, className: i, disabled: e = !1, error: r, hint: a, label: l, name: u, onChange: v, value: p, ...g }, m) => {
5153
+ ), Bn = "-translate-y-1 opacity-100", Hn = "text-overlay-text dark:text-text-dark", Nn = "!pbs-3 !pbe-1", An = "absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark", Vn = ({ children: t, className: i, disabled: e = !1, error: r, hint: a, label: l, name: u, onChange: v, value: p, ...g }, b) => {
5154
5154
  var A;
5155
- const b = f(zn, In), Z = P(null), x = b1({ forwardedRef: m, innerRef: Z }), [y, k] = O(!!(p || (A = x == null ? void 0 : x.current) != null && A.value));
5155
+ const m = f(zn, In), Z = P(null), x = b1({ forwardedRef: b, innerRef: Z }), [y, k] = O(!!(p || (A = x == null ? void 0 : x.current) != null && A.value));
5156
5156
  o1(() => {
5157
5157
  var R;
5158
5158
  k(!!((R = x == null ? void 0 : x.current) != null && R.value || p));
5159
5159
  }, [p, x]);
5160
5160
  const C = E(() => {
5161
- const R = f(b, Hn, l ? Nn : null), M = f(b, j1);
5161
+ const R = f(m, Hn, l ? Nn : null), M = f(m, j1);
5162
5162
  return y ? R : M;
5163
- }, [b, y, l]), z = E(() => {
5163
+ }, [m, y, l]), z = E(() => {
5164
5164
  const R = f(w0, Bn), M = f(w0);
5165
5165
  return y ? R : M;
5166
5166
  }, [y]), I = (R) => {
@@ -5350,9 +5350,9 @@ const Wn = {
5350
5350
  onChange: v,
5351
5351
  placeholder: p,
5352
5352
  value: g,
5353
- ...m
5354
- }, b) => {
5355
- const Z = P(null), x = b1({ forwardedRef: b, innerRef: Z }), [y, k] = O(!!(g || p)), [C, z] = O(!1), I = (M) => {
5353
+ ...b
5354
+ }, m) => {
5355
+ const Z = P(null), x = b1({ forwardedRef: m, innerRef: Z }), [y, k] = O(!!(g || p)), [C, z] = O(!1), I = (M) => {
5356
5356
  k(!!(M.target.value || p)), v && v(M);
5357
5357
  }, A = () => {
5358
5358
  i || !x.current || (x.current.focus(), z(!0));
@@ -5385,7 +5385,7 @@ const Wn = {
5385
5385
  placeholder: p,
5386
5386
  ref: x,
5387
5387
  value: g,
5388
- ...m
5388
+ ...b
5389
5389
  }
5390
5390
  ),
5391
5391
  l ? /* @__PURE__ */ n(
@@ -5466,10 +5466,10 @@ const Qn = {
5466
5466
  return () => clearTimeout(k);
5467
5467
  }
5468
5468
  }, [r, p, e]);
5469
- const m = E(() => {
5469
+ const b = E(() => {
5470
5470
  var k;
5471
5471
  return p === D.DISMISS && ((k = v == null ? void 0 : v.current) != null && k.clientHeight) ? `-${v.current.clientHeight}px` : "0px";
5472
- }, [v, p]), b = () => g(D.DISMISS), Z = E(() => {
5472
+ }, [v, p]), m = () => g(D.DISMISS), Z = E(() => {
5473
5473
  const k = "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]";
5474
5474
  switch (u) {
5475
5475
  case "inlineEnd":
@@ -5482,8 +5482,8 @@ const Qn = {
5482
5482
  const k = "flex flex-col transition-[margin] duration-500 ease-in-out overflow-hidden";
5483
5483
  return u === "inlineEnd" ? `${k} items-end` : `${k} items-start`;
5484
5484
  }, [u]), y = E(() => Qn[l], [l]);
5485
- return p === D.REMOVE ? null : /* @__PURE__ */ n("div", { className: f(x), style: { marginBlockEnd: m }, children: /* @__PURE__ */ o("div", { className: f(Z, y, t), ref: v, children: [
5486
- !a && /* @__PURE__ */ n("button", { "aria-label": "Dismiss", className: "mie-1", onClick: b, children: /* @__PURE__ */ n(ne, {}) }),
5485
+ return p === D.REMOVE ? null : /* @__PURE__ */ n("div", { className: f(x), style: { marginBlockEnd: b }, children: /* @__PURE__ */ o("div", { className: f(Z, y, t), ref: v, children: [
5486
+ !a && /* @__PURE__ */ n("button", { "aria-label": "Dismiss", className: "mie-1", onClick: m, children: /* @__PURE__ */ n(ne, {}) }),
5487
5487
  i
5488
5488
  ] }) });
5489
5489
  }, Kn = "_tooltipWrapper_qu88w_1", eo = "_tooltipContent_qu88w_18", m0 = {