@youversion/design-system-components 1.7.0 → 1.8.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
@@ -253,21 +253,21 @@ var A0 = "!";
253
253
  function Oe(l) {
254
254
  var i = l.separator || ":", e = i.length === 1, r = i[0], a = i.length;
255
255
  return function(u) {
256
- for (var v = [], g = 0, p = 0, w, b = 0; b < u.length; b++) {
257
- var k = u[b];
256
+ for (var v = [], g = 0, p = 0, w, x = 0; x < u.length; x++) {
257
+ var k = u[x];
258
258
  if (g === 0) {
259
- if (k === r && (e || u.slice(b, b + a) === i)) {
260
- v.push(u.slice(p, b)), p = b + a;
259
+ if (k === r && (e || u.slice(x, x + a) === i)) {
260
+ v.push(u.slice(p, x)), p = x + a;
261
261
  continue;
262
262
  }
263
263
  if (k === "/") {
264
- w = b;
264
+ w = x;
265
265
  continue;
266
266
  }
267
267
  }
268
268
  k === "[" ? g++ : k === "]" && g--;
269
269
  }
270
- var x = v.length === 0 ? u : u.substring(p), Z = x.startsWith(A0), y = Z ? x.substring(1) : x, C = w && w > p ? w - p : void 0;
270
+ var b = v.length === 0 ? u : u.substring(p), Z = b.startsWith(A0), y = Z ? b.substring(1) : b, C = w && w > p ? w - p : void 0;
271
271
  return {
272
272
  modifiers: v,
273
273
  hasImportantModifier: Z,
@@ -296,9 +296,9 @@ var Te = /\s+/;
296
296
  function Ee(l, i) {
297
297
  var e = i.splitModifiers, r = i.getClassGroupId, a = i.getConflictingClassGroupIds, t = /* @__PURE__ */ new Set();
298
298
  return l.trim().split(Te).map(function(u) {
299
- var v = e(u), g = v.modifiers, p = v.hasImportantModifier, w = v.baseClassName, b = v.maybePostfixModifierPosition, k = r(b ? w.substring(0, b) : w), x = !!b;
299
+ var v = e(u), g = v.modifiers, p = v.hasImportantModifier, w = v.baseClassName, x = v.maybePostfixModifierPosition, k = r(x ? w.substring(0, x) : w), b = !!x;
300
300
  if (!k) {
301
- if (!b)
301
+ if (!x)
302
302
  return {
303
303
  isTailwindClass: !1,
304
304
  originalClassName: u
@@ -308,7 +308,7 @@ function Ee(l, i) {
308
308
  isTailwindClass: !1,
309
309
  originalClassName: u
310
310
  };
311
- x = !1;
311
+ b = !1;
312
312
  }
313
313
  var Z = Pe(g).join(":"), y = p ? Z + A0 : Z;
314
314
  return {
@@ -316,14 +316,14 @@ function Ee(l, i) {
316
316
  modifierId: y,
317
317
  classGroupId: k,
318
318
  originalClassName: u,
319
- hasPostfixModifier: x
319
+ hasPostfixModifier: b
320
320
  };
321
321
  }).reverse().filter(function(u) {
322
322
  if (!u.isTailwindClass)
323
323
  return !0;
324
324
  var v = u.modifierId, g = u.classGroupId, p = u.hasPostfixModifier, w = v + g;
325
- return t.has(w) ? !1 : (t.add(w), a(g, p).forEach(function(b) {
326
- return t.add(v + b);
325
+ return t.has(w) ? !1 : (t.add(w), a(g, p).forEach(function(x) {
326
+ return t.add(v + x);
327
327
  }), !0);
328
328
  }).reverse().map(function(u) {
329
329
  return u.originalClassName;
@@ -334,8 +334,8 @@ function e0() {
334
334
  i[e] = arguments[e];
335
335
  var r, a, t, u = v;
336
336
  function v(p) {
337
- var w = i[0], b = i.slice(1), k = b.reduce(function(x, Z) {
338
- return Z(x);
337
+ var w = i[0], x = i.slice(1), k = x.reduce(function(b, Z) {
338
+ return Z(b);
339
339
  }, w());
340
340
  return r = je(k), a = r.cache.get, t = r.cache.set, u = g, g(p);
341
341
  }
@@ -343,8 +343,8 @@ function e0() {
343
343
  var w = a(p);
344
344
  if (w)
345
345
  return w;
346
- var b = Ee(p, r);
347
- return t(p, b), b;
346
+ var x = Ee(p, r);
347
+ return t(p, x), x;
348
348
  }
349
349
  return function() {
350
350
  return u(Be.apply(null, arguments));
@@ -416,7 +416,7 @@ function e2(l) {
416
416
  return Ue.test(l);
417
417
  }
418
418
  function t0() {
419
- var l = H("colors"), i = H("spacing"), e = H("blur"), r = H("brightness"), a = H("borderColor"), t = H("borderRadius"), u = H("borderSpacing"), v = H("borderWidth"), g = H("contrast"), p = H("grayscale"), w = H("hueRotate"), b = H("invert"), k = H("gap"), x = H("gradientColorStops"), Z = H("gradientColorStopPositions"), y = H("inset"), C = H("margin"), z = H("opacity"), I = H("padding"), A = H("saturate"), R = H("scale"), B = H("sepia"), m = H("skew"), S = H("space"), M = H("translate"), O = function() {
419
+ var l = H("colors"), i = H("spacing"), e = H("blur"), r = H("brightness"), a = H("borderColor"), t = H("borderRadius"), u = H("borderSpacing"), v = H("borderWidth"), g = H("contrast"), p = H("grayscale"), w = H("hueRotate"), x = H("invert"), k = H("gap"), b = H("gradientColorStops"), Z = H("gradientColorStopPositions"), y = H("inset"), C = H("margin"), z = H("opacity"), I = H("padding"), A = H("saturate"), R = H("scale"), B = H("sepia"), m = H("skew"), S = H("space"), M = H("translate"), O = function() {
420
420
  return ["auto", "contain", "none"];
421
421
  }, L = function() {
422
422
  return ["auto", "hidden", "clip", "visible", "scroll"];
@@ -1419,21 +1419,21 @@ function t0() {
1419
1419
  * @see https://tailwindcss.com/docs/gradient-color-stops
1420
1420
  */
1421
1421
  "gradient-from": [{
1422
- from: [x]
1422
+ from: [b]
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: [x]
1429
+ via: [b]
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: [x]
1436
+ to: [b]
1437
1437
  }],
1438
1438
  // Borders
1439
1439
  /**
@@ -1872,7 +1872,7 @@ function t0() {
1872
1872
  * @see https://tailwindcss.com/docs/invert
1873
1873
  */
1874
1874
  invert: [{
1875
- invert: [b]
1875
+ invert: [x]
1876
1876
  }],
1877
1877
  /**
1878
1878
  * Saturate
@@ -1936,7 +1936,7 @@ function t0() {
1936
1936
  * @see https://tailwindcss.com/docs/backdrop-invert
1937
1937
  */
1938
1938
  "backdrop-invert": [{
1939
- "backdrop-invert": [b]
1939
+ "backdrop-invert": [x]
1940
1940
  }],
1941
1941
  /**
1942
1942
  * Backdrop Opacity
@@ -2505,9 +2505,9 @@ const T1 = (l) => {
2505
2505
  height: g,
2506
2506
  margin: p,
2507
2507
  padding: w,
2508
- width: b,
2508
+ width: x,
2509
2509
  ...k
2510
- }, x) => {
2510
+ }, b) => {
2511
2511
  const Z = {
2512
2512
  0: "",
2513
2513
  1: "shadow-light-1 dark:shadow-dark-1",
@@ -2524,14 +2524,14 @@ const T1 = (l) => {
2524
2524
  y,
2525
2525
  C,
2526
2526
  z,
2527
- b,
2527
+ x,
2528
2528
  g,
2529
2529
  a
2530
2530
  );
2531
2531
  return X(t, {
2532
2532
  className: R,
2533
2533
  ...k,
2534
- ref: x
2534
+ ref: b
2535
2535
  });
2536
2536
  }, N = d(h2);
2537
2537
  N.displayName = "Box";
@@ -2686,19 +2686,19 @@ const p2 = ({
2686
2686
  onChange: g,
2687
2687
  placeholder: p,
2688
2688
  prefix: w,
2689
- startIcon: b,
2689
+ startIcon: x,
2690
2690
  suffix: k,
2691
- value: x,
2691
+ value: b,
2692
2692
  ...Z
2693
2693
  }, y) => {
2694
- const C = T(null), z = k1({ forwardedRef: y, innerRef: C }), [I, A] = P(!!x), [R, B] = P(!1);
2694
+ const C = T(null), z = k1({ forwardedRef: y, innerRef: C }), [I, A] = P(!!b), [R, B] = P(!1);
2695
2695
  K(() => {
2696
2696
  var O;
2697
- A(!!((O = z == null ? void 0 : z.current) != null && O.value) || !!(x || p));
2698
- }, [x, p, z]);
2697
+ A(!!((O = z == null ? void 0 : z.current) != null && O.value) || !!(b || p));
2698
+ }, [b, p, z]);
2699
2699
  const m = (O) => {
2700
2700
  var L;
2701
- A(!!((L = z == null ? void 0 : z.current) != null && L.value) || !!(x || p)), g && g(O);
2701
+ A(!!((L = z == null ? void 0 : z.current) != null && L.value) || !!(b || p)), g && g(O);
2702
2702
  }, S = () => {
2703
2703
  i || !z.current || (z.current.focus(), B(!0));
2704
2704
  }, M = () => {
@@ -2717,14 +2717,14 @@ const p2 = ({
2717
2717
  onClick: S,
2718
2718
  onFocus: S,
2719
2719
  children: [
2720
- b ? /* @__PURE__ */ n("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: b }) : null,
2720
+ x ? /* @__PURE__ */ n("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: x }) : null,
2721
2721
  /* @__PURE__ */ o("span", { className: "relative flex flex-1 overflow-hidden", children: [
2722
2722
  w && (R || I) ? /* @__PURE__ */ n(
2723
2723
  V,
2724
2724
  {
2725
2725
  className: f(
2726
2726
  "text-text-muted-light dark:text-text-muted-dark select-none pointer-events-none",
2727
- b ? "pis-1 -mie-1" : "pis-2 -mie-2",
2727
+ x ? "pis-1 -mie-1" : "pis-2 -mie-2",
2728
2728
  u ? "pbs-3 pbe-1" : "pbs-2 pbe-2"
2729
2729
  ),
2730
2730
  children: w
@@ -2735,7 +2735,7 @@ const p2 = ({
2735
2735
  {
2736
2736
  className: f([
2737
2737
  "self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",
2738
- b ? "pis-1" : "pis-2",
2738
+ x ? "pis-1" : "pis-2",
2739
2739
  r ? "pie-1" : "pie-2",
2740
2740
  u ? "pbs-3 pbe-1" : "plb-2",
2741
2741
  e ? null : "cursor-pointer caret-transparent"
@@ -2746,7 +2746,7 @@ const p2 = ({
2746
2746
  onChange: m,
2747
2747
  placeholder: p,
2748
2748
  ref: z,
2749
- value: x,
2749
+ value: b,
2750
2750
  ...Z
2751
2751
  }
2752
2752
  ),
@@ -2766,7 +2766,7 @@ const p2 = ({
2766
2766
  {
2767
2767
  className: f(
2768
2768
  "items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",
2769
- b ? "inline-start-1" : "inline-start-2",
2769
+ x ? "inline-start-1" : "inline-start-2",
2770
2770
  R || I ? "text-13 -translate-y-1.5" : "text-16"
2771
2771
  ),
2772
2772
  htmlFor: v,
@@ -2863,16 +2863,16 @@ const z2 = ({
2863
2863
  onChange: g,
2864
2864
  onSelect: p,
2865
2865
  value: w,
2866
- ...b
2866
+ ...x
2867
2867
  }, k) => {
2868
- const x = T(null), Z = T(null), [y, C] = P(w), [z, I] = P(!1);
2868
+ const b = T(null), Z = T(null), [y, C] = P(w), [z, I] = P(!1);
2869
2869
  z0(
2870
2870
  k,
2871
2871
  () => ({
2872
2872
  clearSelection() {
2873
2873
  C(null), g("");
2874
2874
  },
2875
- ...x.current
2875
+ ...b.current
2876
2876
  }),
2877
2877
  [g]
2878
2878
  );
@@ -2905,10 +2905,10 @@ const z2 = ({
2905
2905
  A(S.target.value);
2906
2906
  },
2907
2907
  onFocus: () => I(!0),
2908
- ref: x,
2908
+ ref: b,
2909
2909
  role: "combobox",
2910
2910
  value: w ?? "",
2911
- ...b
2911
+ ...x
2912
2912
  }
2913
2913
  ),
2914
2914
  z ? /* @__PURE__ */ n(N, { className: "absolute top-[calc(100%+1px)] w-full z-50", children: /* @__PURE__ */ n(
@@ -3940,16 +3940,16 @@ const pn = ({
3940
3940
  size: g = "md",
3941
3941
  type: p = "button",
3942
3942
  variant: w = "filled:default",
3943
- ...b
3943
+ ...x
3944
3944
  }, k) => {
3945
- const x = Q0(r !== void 0 ? t : void 0), Z = f(
3945
+ const b = Q0(r !== void 0 ? t : void 0), Z = f(
3946
3946
  J0,
3947
3947
  E[w],
3948
- x[g],
3948
+ b[g],
3949
3949
  { "disabled:opacity-100": u },
3950
3950
  l
3951
3951
  );
3952
- return /* @__PURE__ */ o("button", { className: Z, disabled: e || u, ref: k, type: p, ...b, children: [
3952
+ return /* @__PURE__ */ o("button", { className: Z, disabled: e || u, ref: k, type: p, ...x, children: [
3953
3953
  t === "start" && r !== void 0 ? X(r, {
3954
3954
  className: g === "xs" ? "mie-0.25" : "mie-0.5",
3955
3955
  onClick: a ?? void 0,
@@ -3975,7 +3975,7 @@ const pn = ({
3975
3975
  }, y1 = d(pn);
3976
3976
  y1.displayName = "Button";
3977
3977
  const wn = ({ error: l, className: i, label: e, disabled: r, name: a, labelProps: t, ...u }, v) => {
3978
- const g = xe(), p = G(() => `checkbox-label-${g}`, [g]), { className: w, ...b } = t ?? {};
3978
+ const g = xe(), p = G(() => `checkbox-label-${g}`, [g]), { className: w, ...x } = t ?? {};
3979
3979
  return /* @__PURE__ */ o(
3980
3980
  "div",
3981
3981
  {
@@ -4005,7 +4005,7 @@ const wn = ({ error: l, className: i, label: e, disabled: r, name: a, labelProps
4005
4005
  "peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",
4006
4006
  w
4007
4007
  ),
4008
- children: /* @__PURE__ */ n("label", { htmlFor: a, id: p, ...b, children: e })
4008
+ children: /* @__PURE__ */ n("label", { htmlFor: a, id: p, ...x, children: e })
4009
4009
  }
4010
4010
  ) : null,
4011
4011
  l ? /* @__PURE__ */ n("div", { className: "text-alert-light dark:text-alert-dark text-13", children: l }) : null
@@ -4027,14 +4027,14 @@ const bn = ({
4027
4027
  resetAriaLabel: g = "Reset color",
4028
4028
  resetValue: p = "#FFFFFF",
4029
4029
  value: w,
4030
- ...b
4030
+ ...x
4031
4031
  }, k) => {
4032
4032
  "use client";
4033
- const x = /^#[0-9A-F]{0,6}$/i, Z = /^#([0-9A-F]{3}){1,2}$/i, y = T(null), C = T(null), [z, I] = P(!1), A = k ?? y, R = (M) => {
4033
+ const b = /^#[0-9A-F]{0,6}$/i, Z = /^#([0-9A-F]{3}){1,2}$/i, y = T(null), C = T(null), [z, I] = P(!1), A = k ?? y, R = (M) => {
4034
4034
  if (!M.target.value.length)
4035
4035
  return u(M);
4036
4036
  const O = M.target.value.startsWith("#") ? M.target.value : `#${M.target.value}`;
4037
- x.test(O) && (M.target.value = O, u(M));
4037
+ b.test(O) && (M.target.value = O, u(M));
4038
4038
  };
4039
4039
  function B(M) {
4040
4040
  const O = Z.test(p) ? p : "";
@@ -4092,7 +4092,7 @@ const bn = ({
4092
4092
  ref: C,
4093
4093
  type: "color",
4094
4094
  value: w || p,
4095
- ...b
4095
+ ...x
4096
4096
  }
4097
4097
  ),
4098
4098
  /* @__PURE__ */ n(
@@ -4160,20 +4160,20 @@ const le = ({ autoFocus: l = !0, children: i, className: e }) => {
4160
4160
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4161
4161
  );
4162
4162
  let t = document.activeElement;
4163
- const u = a[0], v = a[a.length - 1], g = (b) => {
4164
- if (b.key === "Tab") {
4165
- if (b.shiftKey) {
4163
+ const u = a[0], v = a[a.length - 1], g = (x) => {
4164
+ if (x.key === "Tab") {
4165
+ if (x.shiftKey) {
4166
4166
  if (document.activeElement === u)
4167
- b.preventDefault(), v.focus(), t = v;
4167
+ x.preventDefault(), v.focus(), t = v;
4168
4168
  else
4169
4169
  for (let k = 0; k < a.length; k++)
4170
4170
  if (a[k] === document.activeElement) {
4171
4171
  t = a[k - 1];
4172
4172
  break;
4173
4173
  }
4174
- } else if (!b.shiftKey) {
4174
+ } else if (!x.shiftKey) {
4175
4175
  if (document.activeElement === v)
4176
- b.preventDefault(), u.focus(), t = u;
4176
+ x.preventDefault(), u.focus(), t = u;
4177
4177
  else
4178
4178
  for (let k = 0; k < a.length; k++)
4179
4179
  if (a[k] === document.activeElement) {
@@ -4185,14 +4185,14 @@ const le = ({ autoFocus: l = !0, children: i, className: e }) => {
4185
4185
  };
4186
4186
  l && (() => {
4187
4187
  if (r.current) {
4188
- const b = r.current.querySelector(
4188
+ const x = r.current.querySelector(
4189
4189
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4190
4190
  );
4191
- b && b.focus();
4191
+ x && x.focus();
4192
4192
  }
4193
4193
  })();
4194
- const w = (b) => {
4195
- r.current && !r.current.contains(b.target) && t.focus();
4194
+ const w = (x) => {
4195
+ r.current && !r.current.contains(x.target) && t.focus();
4196
4196
  };
4197
4197
  return document.addEventListener("keydown", g), document.addEventListener("click", w), () => {
4198
4198
  document.removeEventListener("keydown", g), document.removeEventListener("click", w);
@@ -4244,20 +4244,21 @@ const Nn = ({
4244
4244
  autoFocus: l = !0,
4245
4245
  children: i,
4246
4246
  className: e,
4247
- confirmationButtons: r,
4248
- dialogType: a = "confirmation",
4249
- heading: t,
4250
- isDismissableOnOutsideClick: u = !0,
4251
- onClose: v,
4252
- ...g
4253
- }, p) => (u2(), /* @__PURE__ */ o("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
4247
+ closeIconClassName: r,
4248
+ confirmationButtons: a,
4249
+ dialogType: t = "confirmation",
4250
+ heading: u,
4251
+ isDismissableOnOutsideClick: v = !0,
4252
+ onClose: g,
4253
+ ...p
4254
+ }, w) => (u2(), /* @__PURE__ */ o("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
4254
4255
  /* @__PURE__ */ n(
4255
4256
  "div",
4256
4257
  {
4257
4258
  className: "absolute inset-0 bg-overlay-light dark:bg-overlay-dark",
4258
4259
  "data-testid": "dialog-overlay",
4259
4260
  id: "overlay",
4260
- onClick: u ? v : void 0
4261
+ onClick: v ? g : void 0
4261
4262
  }
4262
4263
  ),
4263
4264
  /* @__PURE__ */ n(le, { autoFocus: l, className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ o(
@@ -4265,27 +4266,27 @@ const Nn = ({
4265
4266
  {
4266
4267
  className: f(
4267
4268
  "z-[1400] relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",
4268
- a === "confirmation" ? "max-w-[400px]" : "max-w-[700px]",
4269
+ t === "confirmation" ? "max-w-[400px]" : "max-w-[700px]",
4269
4270
  e
4270
4271
  ),
4271
4272
  open: !0,
4272
- ref: p,
4273
- ...g,
4273
+ ref: w,
4274
+ ...p,
4274
4275
  children: [
4275
- a === "modal" ? /* @__PURE__ */ n(
4276
+ t === "modal" ? /* @__PURE__ */ n(
4276
4277
  j1,
4277
4278
  {
4278
- className: "absolute inline-end-2 block-start-2",
4279
+ className: f("absolute inline-end-2 block-start-2", r),
4279
4280
  "data-testid": "close-modal-button",
4280
- onClick: v,
4281
+ onClick: g,
4281
4282
  children: /* @__PURE__ */ n(Sn, {})
4282
4283
  }
4283
4284
  ) : null,
4284
- /* @__PURE__ */ n("div", { children: t ? /* @__PURE__ */ n(f1, { className: "pbe-1", size: "md", variant: "headline", children: t }) : null }),
4285
+ /* @__PURE__ */ n("div", { children: u ? /* @__PURE__ */ n(f1, { className: "pbe-1", size: "md", variant: "headline", children: u }) : null }),
4285
4286
  /* @__PURE__ */ n("div", { children: i }),
4286
- /* @__PURE__ */ n("div", { className: "w-full flex justify-end items-center gap-0.5 pbs-2", children: r == null ? void 0 : r.map(({ label: b, ...k }, x) => (
4287
+ /* @__PURE__ */ n("div", { className: "w-full flex justify-end items-center gap-0.5 pbs-2", children: a == null ? void 0 : a.map(({ label: k, ...b }, Z) => (
4287
4288
  // eslint-disable-next-line react/jsx-props-no-spreading
4288
- /* @__PURE__ */ n(y1, { "aria-label": b, size: "sm", variant: "all_caps", ...k, children: b }, `${b}${x}`)
4289
+ /* @__PURE__ */ n(y1, { "aria-label": k, size: "sm", variant: "all_caps", ...b, children: k }, `${k}${Z}`)
4289
4290
  )) })
4290
4291
  ]
4291
4292
  }
@@ -4343,8 +4344,8 @@ const $n = ({ isSelectedItem: l, option: i, onSelect: e, id: r }) => /* @__PURE_
4343
4344
  onSelect: g,
4344
4345
  defaultValue: p,
4345
4346
  ...w
4346
- }, b) => {
4347
- const k = T(null), [x, Z] = P(p ?? null), [y, C] = P(!1), z = (R) => {
4347
+ }, x) => {
4348
+ const k = T(null), [b, Z] = P(p ?? null), [y, C] = P(!1), z = (R) => {
4348
4349
  g(R), Z(R), C(!1);
4349
4350
  }, I = D1((R) => {
4350
4351
  k.current && !k.current.contains(R.target) && C(!1);
@@ -4372,10 +4373,10 @@ const $n = ({ isSelectedItem: l, option: i, onSelect: e, id: r }) => /* @__PURE_
4372
4373
  label: i,
4373
4374
  name: e ?? i ?? "",
4374
4375
  onFocus: () => C((R) => !R),
4375
- ref: b,
4376
+ ref: x,
4376
4377
  role: "combobox",
4377
4378
  spellCheck: "false",
4378
- value: (x == null ? void 0 : x.label) ?? "",
4379
+ value: (b == null ? void 0 : b.label) ?? "",
4379
4380
  ...w
4380
4381
  }
4381
4382
  ),
@@ -4383,7 +4384,7 @@ const $n = ({ isSelectedItem: l, option: i, onSelect: e, id: r }) => /* @__PURE_
4383
4384
  $n,
4384
4385
  {
4385
4386
  id: `${R.value}-${B}`,
4386
- isSelectedItem: (x == null ? void 0 : x.value) === R.value,
4387
+ isSelectedItem: (b == null ? void 0 : b.value) === R.value,
4387
4388
  onSelect: z,
4388
4389
  option: R
4389
4390
  },
@@ -4399,7 +4400,7 @@ const $n = ({ isSelectedItem: l, option: i, onSelect: e, id: r }) => /* @__PURE_
4399
4400
  name: e,
4400
4401
  onChange: A,
4401
4402
  tabIndex: -1,
4402
- value: x == null ? void 0 : x.value,
4403
+ value: b == null ? void 0 : b.value,
4403
4404
  children: a.map((R, B) => /* @__PURE__ */ n("option", { value: R.value, children: R.label }, `${R.value}${B}`))
4404
4405
  }
4405
4406
  )
@@ -4598,9 +4599,9 @@ const k7 = ({
4598
4599
  fileMaxKbSizeError: g = (M, O) => `${M} is too big to upload, the maximum size is ${O}kb. Please try again.`,
4599
4600
  fileMaxSizeError: p = (M) => `${M} is too large to upload. The maximum dimensions are ${m == null ? void 0 : m.maxWidth}x${m == null ? void 0 : m.maxHeight}. Please try again.`,
4600
4601
  fileMinSizeError: w = (M) => `${M} is too small to upload. The minimum dimensions are ${m == null ? void 0 : m.minWidth}x${m == null ? void 0 : m.minHeight}. Please try again.`,
4601
- fileRatioError: b = (M) => `${M} must have a ratio of, ${m == null ? void 0 : m.imageRatio}. Please try again.`,
4602
+ fileRatioError: x = (M) => `${M} must have a ratio of, ${m == null ? void 0 : m.imageRatio}. Please try again.`,
4602
4603
  fileCallback: k,
4603
- hero: x = !1,
4604
+ hero: b = !1,
4604
4605
  hint: Z,
4605
4606
  imageWidth: y = 160,
4606
4607
  imageSrc: C,
@@ -4631,9 +4632,9 @@ const k7 = ({
4631
4632
  className: f([
4632
4633
  "object-fit w-full h-full",
4633
4634
  B === "circle" ? "rounded-full" : "rounded-0.5",
4634
- B !== "unset" || !x ? "aspect-square" : "",
4635
- B === "unset" && x ? "aspect-video" : "",
4636
- B === "unset" && !x ? "!aspect-auto" : ""
4635
+ B !== "unset" || !b ? "aspect-square" : "",
4636
+ B === "unset" && b ? "aspect-video" : "",
4637
+ B === "unset" && !b ? "!aspect-auto" : ""
4637
4638
  ]),
4638
4639
  onLoad: () => L != null && L.imageSrc ? URL.revokeObjectURL(L.imageSrc) : void 0,
4639
4640
  src: h1 || void 0,
@@ -4658,7 +4659,7 @@ const k7 = ({
4658
4659
  a,
4659
4660
  t,
4660
4661
  u,
4661
- x,
4662
+ b,
4662
4663
  L == null ? void 0 : L.id,
4663
4664
  L == null ? void 0 : L.imageSrc,
4664
4665
  C,
@@ -4681,7 +4682,7 @@ const k7 = ({
4681
4682
  if (m != null && m.maxHeight && W.height > (m == null ? void 0 : m.maxHeight) || m != null && m.maxWidth && W.width > (m == null ? void 0 : m.maxWidth))
4682
4683
  return Y(void 0), j("rejected"), Q(p(J.name)), n1(!1);
4683
4684
  if (m != null && m.imageRatio && (w1 == null ? void 0 : w1.length) === 2 && parseInt(w1[0]) / parseInt(w1[1]) !== W.width / W.height)
4684
- return Y(void 0), j("rejected"), Q(b(J.name)), n1(!1);
4685
+ return Y(void 0), j("rejected"), Q(x(J.name)), n1(!1);
4685
4686
  }
4686
4687
  return y = W.width, typeof k == "function" && (console.log("Callback"), await k(J, W)), Q(""), a1(!0);
4687
4688
  }, W.src = i1;
@@ -4700,11 +4701,11 @@ const k7 = ({
4700
4701
  if (i1 instanceof Error)
4701
4702
  throw i1;
4702
4703
  }
4703
- }, u1 = f([B === "circle" && !x ? "rounded-full aspect-square" : ""]), F = f([B === "square" && !x ? "aspect-square rounded-1" : ""]), ve = f([
4704
- B === "unset" && !x ? "rounded-1" : "",
4705
- B === "unset" && D !== "idle" && !x ? "aspect-auto" : "",
4706
- B === "unset" && D !== "resolved" && !x ? "aspect-square" : ""
4707
- ]), fe = f([x ? "rounded-1 aspect-video" : ""]);
4704
+ }, u1 = f([B === "circle" && !b ? "rounded-full aspect-square" : ""]), F = f([B === "square" && !b ? "aspect-square rounded-1" : ""]), ve = f([
4705
+ B === "unset" && !b ? "rounded-1" : "",
4706
+ B === "unset" && D !== "idle" && !b ? "aspect-auto" : "",
4707
+ B === "unset" && D !== "resolved" && !b ? "aspect-square" : ""
4708
+ ]), fe = f([b ? "rounded-1 aspect-video" : ""]);
4708
4709
  return /* @__PURE__ */ o(N, { className: f([r]), children: [
4709
4710
  /* @__PURE__ */ o(
4710
4711
  N,
@@ -4723,7 +4724,7 @@ const k7 = ({
4723
4724
  {
4724
4725
  className: f([
4725
4726
  "flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",
4726
- x ? "w-full" : "md:w-1/2 w-4/5",
4727
+ b ? "w-full" : "md:w-1/2 w-4/5",
4727
4728
  a ? "border-small border-solid border-tertiary-light" : "",
4728
4729
  D !== "resolved" ? "bg-gray-10 dark:bg-gray-40" : "",
4729
4730
  u1,
@@ -4739,7 +4740,7 @@ const k7 = ({
4739
4740
  {
4740
4741
  className: f([
4741
4742
  "my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",
4742
- x ? "!mbs-2" : ""
4743
+ b ? "!mbs-2" : ""
4743
4744
  ]),
4744
4745
  disabled: a,
4745
4746
  onClick: Z1,
@@ -4784,7 +4785,7 @@ const C7 = ({
4784
4785
  ...v
4785
4786
  }, g) => {
4786
4787
  const p = Q0(r !== void 0 ? a : void 0);
4787
- return /* @__PURE__ */ o(({ children: b }) => X(
4788
+ return /* @__PURE__ */ o(({ children: x }) => X(
4788
4789
  e,
4789
4790
  {
4790
4791
  ...v,
@@ -4797,7 +4798,7 @@ const C7 = ({
4797
4798
  ]),
4798
4799
  ref: g
4799
4800
  },
4800
- b
4801
+ x
4801
4802
  ), { children: [
4802
4803
  a === "start" && r !== void 0 ? X(r, {
4803
4804
  className: f("flex-shrink-0", u === "xs" ? "mie-0.25" : "mie-0.5"),
@@ -5008,7 +5009,7 @@ const $7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5008
5009
  "dark:text-text-muted-dark hover:!text-canvas-light hover:dark:text-gray-50",
5009
5010
  "border border-transparent focus:border-info focus:dark:border-info",
5010
5011
  "hover:border-transparent hover:dark:border-transparent"
5011
- ), b = w, k = f(p, "bg-yv-red !text-white dark:!text-white"), x = G(
5012
+ ), x = w, k = f(p, "bg-yv-red !text-white dark:!text-white"), b = G(
5012
5013
  () => W7({
5013
5014
  page: l.findIndex((Z) => Z === i) + 1,
5014
5015
  pages: l
@@ -5021,7 +5022,7 @@ const $7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5021
5022
  N,
5022
5023
  {
5023
5024
  "aria-label": v,
5024
- className: f(b, "hidden md:flex mli-0"),
5025
+ className: f(x, "hidden md:flex mli-0"),
5025
5026
  component: r,
5026
5027
  onClick: () => e(l[0]),
5027
5028
  children: [
@@ -5034,7 +5035,7 @@ const $7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5034
5035
  N,
5035
5036
  {
5036
5037
  "aria-label": u,
5037
- className: f(b, "mli-0"),
5038
+ className: f(x, "mli-0"),
5038
5039
  component: r,
5039
5040
  onClick: () => e(l[l.findIndex((Z) => Z === i) - 1]),
5040
5041
  children: [
@@ -5044,7 +5045,7 @@ const $7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5044
5045
  }
5045
5046
  )
5046
5047
  ] }) : null,
5047
- x.map((Z) => /* @__PURE__ */ n(
5048
+ b.map((Z) => /* @__PURE__ */ n(
5048
5049
  N,
5049
5050
  {
5050
5051
  "aria-label": a(l.findIndex((y) => y === Z) + 1),
@@ -5080,7 +5081,7 @@ const $7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5080
5081
  N,
5081
5082
  {
5082
5083
  "aria-label": t,
5083
- className: f(w, b, "mli-0"),
5084
+ className: f(w, x, "mli-0"),
5084
5085
  component: r,
5085
5086
  onClick: () => e(l[l.findIndex((Z) => Z === i) + 1]),
5086
5087
  children: [
@@ -5093,7 +5094,7 @@ const $7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5093
5094
  N,
5094
5095
  {
5095
5096
  "aria-label": g,
5096
- className: f(w, b, "hidden md:flex mli-0"),
5097
+ className: f(w, x, "hidden md:flex mli-0"),
5097
5098
  component: r,
5098
5099
  onClick: () => e(l[l.length - 1]),
5099
5100
  children: [
@@ -5151,14 +5152,14 @@ const $7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5151
5152
  onClose: g,
5152
5153
  ...p
5153
5154
  }) => {
5154
- function w(x) {
5155
- u && x.key === "Escape" && g();
5155
+ function w(b) {
5156
+ u && b.key === "Escape" && g();
5156
5157
  }
5157
- function b() {
5158
+ function x() {
5158
5159
  u && g();
5159
5160
  }
5160
5161
  const k = T(null);
5161
- return O0({ handler: b, ref: k }), /* @__PURE__ */ n(U7, { open: v, children: /* @__PURE__ */ n(le, { autoFocus: i, children: /* @__PURE__ */ n(
5162
+ return O0({ handler: x, ref: k }), /* @__PURE__ */ n(U7, { open: v, children: /* @__PURE__ */ n(le, { autoFocus: i, children: /* @__PURE__ */ n(
5162
5163
  D7,
5163
5164
  {
5164
5165
  align: l,
@@ -5292,8 +5293,8 @@ const Q7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5292
5293
  value: g,
5293
5294
  dismissButtonLabel: p,
5294
5295
  ...w
5295
- }, b) => {
5296
- const k = T(null), x = k1({ forwardedRef: b, innerRef: k }), Z = (C) => {
5296
+ }, x) => {
5297
+ const k = T(null), b = k1({ forwardedRef: x, innerRef: k }), Z = (C) => {
5297
5298
  u && u(C.target.value);
5298
5299
  }, y = () => {
5299
5300
  u && u("");
@@ -5318,7 +5319,7 @@ const Q7 = ({ title: l, titleId: i, ...e }, r) => /* @__PURE__ */ o(
5318
5319
  name: t,
5319
5320
  onChange: Z,
5320
5321
  placeholder: v,
5321
- ref: x,
5322
+ ref: b,
5322
5323
  type: "search",
5323
5324
  value: g,
5324
5325
  ...w
@@ -5357,10 +5358,10 @@ const ro = ({
5357
5358
  onSelect: g,
5358
5359
  value: p,
5359
5360
  ...w
5360
- }, b) => {
5361
- const k = T(null), x = T(null), [Z, y] = P(p), [C, z] = P(!1);
5361
+ }, x) => {
5362
+ const k = T(null), b = T(null), [Z, y] = P(p), [C, z] = P(!1);
5362
5363
  z0(
5363
- b,
5364
+ x,
5364
5365
  () => ({
5365
5366
  clearSelection() {
5366
5367
  y(null), v("");
@@ -5381,14 +5382,14 @@ const ro = ({
5381
5382
  }, [e, p]);
5382
5383
  return O0({
5383
5384
  handler: R,
5384
- ref: x
5385
+ ref: b
5385
5386
  }), /* @__PURE__ */ o(
5386
5387
  N,
5387
5388
  {
5388
5389
  className: f("relative p-1", {
5389
5390
  "bg-canvas-light dark:bg-canvas-secondary-dark rounded-t-1": C
5390
5391
  }),
5391
- ref: x,
5392
+ ref: b,
5392
5393
  children: [
5393
5394
  /* @__PURE__ */ n(
5394
5395
  ue,
@@ -5424,8 +5425,8 @@ function ao({
5424
5425
  activeItemClassName: u,
5425
5426
  ...v
5426
5427
  }, g) {
5427
- const [p, w] = P(i ?? 0), b = p > 0 ? p - 1 : 0, k = (x) => {
5428
- w(x), e(x);
5428
+ const [p, w] = P(i ?? 0), x = p > 0 ? p - 1 : 0, k = (b) => {
5429
+ w(b), e(b);
5429
5430
  };
5430
5431
  return /* @__PURE__ */ n(
5431
5432
  "div",
@@ -5433,7 +5434,7 @@ function ao({
5433
5434
  ...v,
5434
5435
  className: `inline-flex overflow-hidden text-gray-40 dark:text-white ${l}`,
5435
5436
  ref: g,
5436
- children: r.map((x, Z) => /* @__PURE__ */ n(
5437
+ children: r.map((b, Z) => /* @__PURE__ */ n(
5437
5438
  oo,
5438
5439
  {
5439
5440
  activeIndex: p,
@@ -5442,9 +5443,9 @@ function ao({
5442
5443
  currentIndex: Z,
5443
5444
  lastIndex: r.length - 1,
5444
5445
  onSelectedValue: k,
5445
- prevIndex: b,
5446
+ prevIndex: x,
5446
5447
  size: a,
5447
- value: x
5448
+ value: b
5448
5449
  }
5449
5450
  ))
5450
5451
  }
@@ -5508,22 +5509,22 @@ const so = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
5508
5509
  onChange: g,
5509
5510
  size: p = "md",
5510
5511
  value: w,
5511
- ...b
5512
+ ...x
5512
5513
  }, k) => {
5513
5514
  var m;
5514
- const x = f(co, so), Z = T(null), y = k1({ forwardedRef: k, innerRef: Z }), [C, z] = P(!!(w || (m = y == null ? void 0 : y.current) != null && m.value));
5515
+ const b = f(co, so), Z = T(null), y = k1({ forwardedRef: k, innerRef: Z }), [C, z] = P(!!(w || (m = y == null ? void 0 : y.current) != null && m.value));
5515
5516
  K(() => {
5516
5517
  var S;
5517
5518
  z(!!((S = y == null ? void 0 : y.current) != null && S.value || w));
5518
5519
  }, [w, y]);
5519
5520
  const I = p !== "sm" && (!!u || !!t), A = G(() => {
5520
5521
  const S = f(
5521
- x,
5522
+ b,
5522
5523
  fo,
5523
5524
  I ? go : null
5524
- ), M = f(x, G1);
5525
+ ), M = f(b, G1);
5525
5526
  return C ? S : M;
5526
- }, [x, C, I]), R = G(() => {
5527
+ }, [b, C, I]), R = G(() => {
5527
5528
  const S = f(M0, vo), M = f(M0);
5528
5529
  return C ? S : M;
5529
5530
  }, [C]), B = (S) => {
@@ -5535,7 +5536,7 @@ const so = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
5535
5536
  /* @__PURE__ */ n(
5536
5537
  "select",
5537
5538
  {
5538
- ...b,
5539
+ ...x,
5539
5540
  className: f([A, r ? ho : uo], {
5540
5541
  "!pbs-[40px]": p === "lg" && I,
5541
5542
  "p-2": p === "md",
@@ -5572,7 +5573,7 @@ const so = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
5572
5573
  "div",
5573
5574
  {
5574
5575
  className: f(po, {
5575
- "block-end-0.25": p === "sm",
5576
+ "block-end-0.25 inline-end-0.25": p === "sm",
5576
5577
  "block-end-2": p !== "sm" && !I,
5577
5578
  "block-end-3": p !== "sm" && I || p === "lg" && !I
5578
5579
  }),
@@ -5759,11 +5760,11 @@ const Ro = {
5759
5760
  placeholder: g,
5760
5761
  value: p,
5761
5762
  ...w
5762
- }, b) => {
5763
- const k = T(null), x = k1({ forwardedRef: b, innerRef: k }), [Z, y] = P(!!(p || g)), [C, z] = P(!1), I = (B) => {
5763
+ }, x) => {
5764
+ const k = T(null), b = k1({ forwardedRef: x, innerRef: k }), [Z, y] = P(!!(p || g)), [C, z] = P(!1), I = (B) => {
5764
5765
  y(!!(B.target.value || g)), v && v(B);
5765
5766
  }, A = () => {
5766
- i || !x.current || (x.current.focus(), z(!0));
5767
+ i || !b.current || (b.current.focus(), z(!0));
5767
5768
  }, R = () => {
5768
5769
  z(!1);
5769
5770
  };
@@ -5791,7 +5792,7 @@ const Ro = {
5791
5792
  onBlur: R,
5792
5793
  onChange: I,
5793
5794
  placeholder: g,
5794
- ref: x,
5795
+ ref: b,
5795
5796
  value: p,
5796
5797
  ...w
5797
5798
  }
@@ -5877,7 +5878,7 @@ const $o = {
5877
5878
  const w = G(() => {
5878
5879
  var y;
5879
5880
  return g === q.DISMISS && ((y = v == null ? void 0 : v.current) != null && y.clientHeight) ? `-${v.current.clientHeight}px` : "0px";
5880
- }, [v, g]), b = () => p(q.DISMISS), k = G(() => {
5881
+ }, [v, g]), x = () => p(q.DISMISS), k = G(() => {
5881
5882
  const y = "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]";
5882
5883
  switch (u) {
5883
5884
  case "inlineEnd":
@@ -5886,12 +5887,12 @@ const $o = {
5886
5887
  default:
5887
5888
  return g === q.SHOW ? `${y} translate-x-[-400px]` : `${y} opacity-1 translate-x-0`;
5888
5889
  }
5889
- }, [u, g]), x = G(() => {
5890
+ }, [u, g]), b = G(() => {
5890
5891
  const y = "flex flex-col transition-[margin] duration-500 ease-in-out overflow-hidden";
5891
5892
  return u === "inlineEnd" ? `${y} items-end` : `${y} items-start`;
5892
5893
  }, [u]), Z = G(() => $o[t], [t]);
5893
- return g === q.REMOVE ? null : /* @__PURE__ */ n("div", { className: f(x), style: { marginBlockEnd: w }, children: /* @__PURE__ */ o("div", { className: f(k, Z, l), ref: v, children: [
5894
- !a && /* @__PURE__ */ n("button", { "aria-label": "Dismiss", className: "mie-1", onClick: b, children: /* @__PURE__ */ n(he, {}) }),
5894
+ return g === q.REMOVE ? null : /* @__PURE__ */ n("div", { className: f(b), style: { marginBlockEnd: w }, children: /* @__PURE__ */ o("div", { className: f(k, Z, l), ref: v, children: [
5895
+ !a && /* @__PURE__ */ n("button", { "aria-label": "Dismiss", className: "mie-1", onClick: x, children: /* @__PURE__ */ n(he, {}) }),
5895
5896
  i
5896
5897
  ] }) });
5897
5898
  }, sd = ({ content: l, className: i, ...e }) => /* @__PURE__ */ n(