@youversion/design-system-components 3.8.3 → 3.8.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 3.8.4
4
+
5
+ ### Patch Changes
6
+
7
+ - ec167f4: Move ignoreClickOutside AutocompleteSelect prop to not interfere with close select options on click outside of the component.
8
+ - 37b028b: Re-render FileUpload component when error message changes
9
+
3
10
  ## 3.8.3
4
11
 
5
12
  ### Patch Changes
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import i0 from "clsx";
2
2
  import { jsxs as d, jsx as n, Fragment as d1 } from "react/jsx-runtime";
3
3
  import * as K from "react";
4
- import qe, { forwardRef as o, createElement as u1, useEffect as v1, useLayoutEffect as _e, useRef as J, useState as Y, useImperativeHandle as a0, useCallback as x1, useMemo as l1, Children as Xe, isValidElement as e0, useId as Ke, cloneElement as Ye } from "react";
4
+ import qe, { forwardRef as o, createElement as v1, useEffect as o1, useLayoutEffect as _e, useRef as J, useState as Y, useImperativeHandle as a0, useCallback as x1, useMemo as l1, Children as Xe, isValidElement as e0, useId as Ke, cloneElement as Ye } from "react";
5
5
  var Qe = Object.defineProperty, Je = Object.defineProperties, e2 = Object.getOwnPropertyDescriptors, F1 = Object.getOwnPropertySymbols, X0 = Object.prototype.hasOwnProperty, K0 = Object.prototype.propertyIsEnumerable, f0 = (l, t, e) => t in l ? Qe(l, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[t] = e, l2 = (l, t) => {
6
6
  for (var e in t || (t = {}))
7
7
  X0.call(t, e) && f0(l, e, t[e]);
@@ -477,7 +477,7 @@ function W(l) {
477
477
  return t.isThemeGetter = !0, t;
478
478
  }
479
479
  var te = /^\[(?:([a-z-]+):)?(.+)\]$/i, b2 = /^\d+\/\d+$/, m2 = /* @__PURE__ */ new Set(["px", "full", "screen"]), x2 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, y2 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|^0$/, C2 = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
480
- function h1(l) {
480
+ function u1(l) {
481
481
  return y1(l) || m2.has(l) || b2.test(l) || m1(l);
482
482
  }
483
483
  function m1(l) {
@@ -543,14 +543,14 @@ function x0() {
543
543
  }, F = function() {
544
544
  return ["auto", t];
545
545
  }, _ = function() {
546
- return ["", h1];
546
+ return ["", u1];
547
547
  }, V = function() {
548
548
  return ["auto", y1, X];
549
549
  }, D = function() {
550
550
  return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
551
551
  }, t1 = function() {
552
552
  return ["solid", "dashed", "dotted", "double", "none"];
553
- }, o1 = function() {
553
+ }, c1 = function() {
554
554
  return ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"];
555
555
  }, f1 = function() {
556
556
  return ["start", "end", "center", "between", "around", "evenly", "stretch"];
@@ -558,7 +558,7 @@ function x0() {
558
558
  return ["", "0", X];
559
559
  }, w1 = function() {
560
560
  return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
561
- }, c1 = function() {
561
+ }, s1 = function() {
562
562
  return [y1, $1];
563
563
  }, O = function() {
564
564
  return [y1, X];
@@ -567,14 +567,14 @@ function x0() {
567
567
  cacheSize: 500,
568
568
  theme: {
569
569
  colors: [S1],
570
- spacing: [h1],
570
+ spacing: [u1],
571
571
  blur: ["none", "", b1, m1],
572
- brightness: c1(),
572
+ brightness: s1(),
573
573
  borderColor: [l],
574
574
  borderRadius: ["none", "", "full", b1, m1],
575
575
  borderSpacing: [t],
576
576
  borderWidth: _(),
577
- contrast: c1(),
577
+ contrast: s1(),
578
578
  grayscale: r1(),
579
579
  hueRotate: O(),
580
580
  invert: r1(),
@@ -583,10 +583,10 @@ function x0() {
583
583
  gradientColorStopPositions: [z2, m1],
584
584
  inset: F(),
585
585
  margin: F(),
586
- opacity: c1(),
586
+ opacity: s1(),
587
587
  padding: [t],
588
- saturate: c1(),
589
- scale: c1(),
588
+ saturate: s1(),
589
+ scale: s1(),
590
590
  sepia: r1(),
591
591
  skew: O(),
592
592
  space: [t],
@@ -1187,7 +1187,7 @@ function x0() {
1187
1187
  * @see https://tailwindcss.com/docs/min-width
1188
1188
  */
1189
1189
  "min-w": [{
1190
- "min-w": ["min", "max", "fit", h1]
1190
+ "min-w": ["min", "max", "fit", u1]
1191
1191
  }],
1192
1192
  /**
1193
1193
  * Max-Width
@@ -1210,7 +1210,7 @@ function x0() {
1210
1210
  * @see https://tailwindcss.com/docs/min-height
1211
1211
  */
1212
1212
  "min-h": [{
1213
- "min-h": ["min", "max", "fit", h1]
1213
+ "min-h": ["min", "max", "fit", u1]
1214
1214
  }],
1215
1215
  /**
1216
1216
  * Max-Height
@@ -1300,7 +1300,7 @@ function x0() {
1300
1300
  * @see https://tailwindcss.com/docs/line-height
1301
1301
  */
1302
1302
  leading: [{
1303
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", h1]
1303
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", u1]
1304
1304
  }],
1305
1305
  /**
1306
1306
  * List Style Image
@@ -1376,14 +1376,14 @@ function x0() {
1376
1376
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1377
1377
  */
1378
1378
  "text-decoration-thickness": [{
1379
- decoration: ["auto", "from-font", h1]
1379
+ decoration: ["auto", "from-font", u1]
1380
1380
  }],
1381
1381
  /**
1382
1382
  * Text Underline Offset
1383
1383
  * @see https://tailwindcss.com/docs/text-underline-offset
1384
1384
  */
1385
1385
  "underline-offset": [{
1386
- "underline-offset": ["auto", h1]
1386
+ "underline-offset": ["auto", u1]
1387
1387
  }],
1388
1388
  /**
1389
1389
  * Text Decoration Color
@@ -1844,14 +1844,14 @@ function x0() {
1844
1844
  * @see https://tailwindcss.com/docs/outline-offset
1845
1845
  */
1846
1846
  "outline-offset": [{
1847
- "outline-offset": [h1]
1847
+ "outline-offset": [u1]
1848
1848
  }],
1849
1849
  /**
1850
1850
  * Outline Width
1851
1851
  * @see https://tailwindcss.com/docs/outline-width
1852
1852
  */
1853
1853
  "outline-w": [{
1854
- outline: [h1]
1854
+ outline: [u1]
1855
1855
  }],
1856
1856
  /**
1857
1857
  * Outline Color
@@ -1891,7 +1891,7 @@ function x0() {
1891
1891
  * @see https://tailwindcss.com/docs/ring-offset-width
1892
1892
  */
1893
1893
  "ring-offset-w": [{
1894
- "ring-offset": [h1]
1894
+ "ring-offset": [u1]
1895
1895
  }],
1896
1896
  /**
1897
1897
  * Ring Offset Color
@@ -1927,14 +1927,14 @@ function x0() {
1927
1927
  * @see https://tailwindcss.com/docs/mix-blend-mode
1928
1928
  */
1929
1929
  "mix-blend": [{
1930
- "mix-blend": o1()
1930
+ "mix-blend": c1()
1931
1931
  }],
1932
1932
  /**
1933
1933
  * Background Blend Mode
1934
1934
  * @see https://tailwindcss.com/docs/background-blend-mode
1935
1935
  */
1936
1936
  "bg-blend": [{
1937
- "bg-blend": o1()
1937
+ "bg-blend": c1()
1938
1938
  }],
1939
1939
  // Filters
1940
1940
  /**
@@ -2467,7 +2467,7 @@ function x0() {
2467
2467
  * @see https://tailwindcss.com/docs/stroke-width
2468
2468
  */
2469
2469
  "stroke-w": [{
2470
- stroke: [h1, $1]
2470
+ stroke: [u1, $1]
2471
2471
  }],
2472
2472
  /**
2473
2473
  * Stroke
@@ -2648,14 +2648,14 @@ const Q1 = (l) => {
2648
2648
  g,
2649
2649
  a
2650
2650
  );
2651
- return u1(i, {
2651
+ return v1(i, {
2652
2652
  className: B,
2653
2653
  ...x,
2654
2654
  ref: M
2655
2655
  });
2656
2656
  }, E = o(E2);
2657
2657
  E.displayName = "Box";
2658
- const B1 = ({ innerRef: l, forwardedRef: t }) => (v1(() => {
2658
+ const B1 = ({ innerRef: l, forwardedRef: t }) => (o1(() => {
2659
2659
  [l, t].forEach((e) => {
2660
2660
  e && (typeof e == "function" ? e(l.current || null) : e.current = l.current || null);
2661
2661
  });
@@ -2667,7 +2667,7 @@ function T2() {
2667
2667
  }, []);
2668
2668
  }
2669
2669
  function ae({ handler: l, ref: t }) {
2670
- v1(() => {
2670
+ o1(() => {
2671
2671
  function e(r) {
2672
2672
  const a = t == null ? void 0 : t.current;
2673
2673
  !a || a.contains(r.target) || l(r);
@@ -2811,7 +2811,7 @@ const U2 = ({
2811
2811
  ...R
2812
2812
  }, Z) => {
2813
2813
  const z = J(null), S = B1({ forwardedRef: Z, innerRef: z }), [B, j] = Y(!!y), [A, P] = Y(!1);
2814
- v1(() => {
2814
+ o1(() => {
2815
2815
  var F;
2816
2816
  j(!!((F = S == null ? void 0 : S.current) != null && F.value) || !!(y || w));
2817
2817
  }, [y, w, S]);
@@ -2924,7 +2924,7 @@ const q2 = ({ children: l, className: t, component: e, componentProps: r, disabl
2924
2924
  ]),
2925
2925
  ref: g,
2926
2926
  ...v,
2927
- children: u1(e ?? "div", {
2927
+ children: v1(e ?? "div", {
2928
2928
  children: l,
2929
2929
  ...r,
2930
2930
  className: f(
@@ -3017,11 +3017,11 @@ const tl = ({
3017
3017
  p(I), g(I.label), Z(I.label), S(!1);
3018
3018
  }, A = x1(
3019
3019
  (I) => {
3020
- y.current && !y.current.contains(I.target) && !w && (!R && m && g(""), R && m && g(R), S(!1));
3020
+ y.current && !y.current.contains(I.target) && (!w && m && g(R || ""), S(!1));
3021
3021
  },
3022
3022
  [w, g, R, m]
3023
3023
  ), P = l1(() => r.filter((I) => I.label.toLowerCase().includes(m.toLowerCase())) ?? [], [r, m]);
3024
- return v1(() => (document.addEventListener("click", A, !0), () => {
3024
+ return o1(() => (document.addEventListener("click", A, !0), () => {
3025
3025
  document.removeEventListener("click", A, !0);
3026
3026
  }), [A]), /* @__PURE__ */ d(E, { className: "relative", ref: y, children: [
3027
3027
  l ? /* @__PURE__ */ n(A1, { className: "absolute z-1" }) : null,
@@ -4051,7 +4051,7 @@ const Pn = ({ children: l, className: t, ...e }, r) => {
4051
4051
  size: "15"
4052
4052
  }
4053
4053
  ) : null,
4054
- typeof c == "object" && "type" in c ? u1(c.type, {
4054
+ typeof c == "object" && "type" in c ? v1(c.type, {
4055
4055
  ...c.props,
4056
4056
  className: f([
4057
4057
  c.props.className ?? "",
@@ -4156,13 +4156,13 @@ const Tn = ({
4156
4156
  l
4157
4157
  );
4158
4158
  return /* @__PURE__ */ d("button", { className: y, disabled: r || v, ref: M, type: m, ...x, children: [
4159
- c === "start" && a !== void 0 ? u1(a, {
4159
+ c === "start" && a !== void 0 ? v1(a, {
4160
4160
  className: p === "xs" ? "mie-0.25" : "mie-0.5",
4161
4161
  onClick: i ?? void 0,
4162
4162
  size: N1[p]
4163
4163
  }) : null,
4164
4164
  /* @__PURE__ */ n("span", { className: f("w-full", e), children: t }),
4165
- c === "end" && a !== void 0 ? u1(a, {
4165
+ c === "end" && a !== void 0 ? v1(a, {
4166
4166
  className: p === "xs" ? "mis-0.25" : "mis-0.5",
4167
4167
  onClick: i ?? void 0,
4168
4168
  size: N1[p]
@@ -4851,11 +4851,11 @@ const Gd = 10, Wd = o(
4851
4851
  thClassNames: V,
4852
4852
  thTextClassNames: D,
4853
4853
  theadClassNames: t1,
4854
- theme: o1,
4854
+ theme: c1,
4855
4855
  trClassNames: f1,
4856
4856
  variant: r1 = "default",
4857
4857
  viewMoreButton: w1,
4858
- ...c1
4858
+ ...s1
4859
4859
  }, O) => {
4860
4860
  switch (r1) {
4861
4861
  case "default": {
@@ -4877,10 +4877,10 @@ const Gd = 10, Wd = o(
4877
4877
  inactive: /* @__PURE__ */ n(sd, { className: g1, size: "16" })
4878
4878
  }, k1 = g0["blue-10"], U = g0["blue-50"], q = x1(
4879
4879
  (k) => {
4880
- const L = o1 === "dark" ? U : k1;
4880
+ const L = c1 === "dark" ? U : k1;
4881
4881
  return `linear-gradient(to right, ${L} 0%, ${L} ${k}, transparent ${k}, transparent 100%)`;
4882
4882
  },
4883
- [k1, U, o1]
4883
+ [k1, U, c1]
4884
4884
  );
4885
4885
  function Q(k) {
4886
4886
  const { totalRowsCount: L } = k, G = Math.ceil(L / A);
@@ -4897,10 +4897,10 @@ const Gd = 10, Wd = o(
4897
4897
  N
4898
4898
  ),
4899
4899
  ref: O,
4900
- ...c1,
4900
+ ...s1,
4901
4901
  children: [
4902
4902
  c ? /* @__PURE__ */ n(Td, { className: t1, children: /* @__PURE__ */ n(T0, { className: f1, children: t == null ? void 0 : t.map((k) => {
4903
- var G, s1, T;
4903
+ var G, h1, T;
4904
4904
  const L = (I == null ? void 0 : I.sortBy) === k.dataIndex;
4905
4905
  return /* @__PURE__ */ n(
4906
4906
  Ed,
@@ -4921,7 +4921,7 @@ const Gd = 10, Wd = o(
4921
4921
  "div",
4922
4922
  {
4923
4923
  className: "bg-transparent flex items-center gap-0.5",
4924
- style: { justifyContent: ((s1 = k.props) == null ? void 0 : s1.align) ?? "start" },
4924
+ style: { justifyContent: ((h1 = k.props) == null ? void 0 : h1.align) ?? "start" },
4925
4925
  children: [
4926
4926
  /* @__PURE__ */ n(
4927
4927
  $,
@@ -4943,7 +4943,7 @@ const Gd = 10, Wd = o(
4943
4943
  );
4944
4944
  }) }) }) : null,
4945
4945
  /* @__PURE__ */ n(jd, { className: F, children: B == null ? void 0 : B.map((k, L) => {
4946
- const G = !!(z || k != null && k.endIcon), s1 = !!C;
4946
+ const G = !!(z || k != null && k.endIcon), h1 = !!C;
4947
4947
  return /* @__PURE__ */ n(
4948
4948
  T0,
4949
4949
  {
@@ -4951,8 +4951,8 @@ const Gd = 10, Wd = o(
4951
4951
  "relative z-0",
4952
4952
  m && L % 2 !== 0 ? (b == null ? void 0 : b[0]) ?? "bg-canvas-secondary-light dark:bg-surface-quaternary-dark" : "",
4953
4953
  m && L % 2 === 0 ? b == null ? void 0 : b[1] : "",
4954
- v || k != null && k.rowLink || s1 ? f("hover:bg-warm-neutral hover:dark:bg-warm-neutral-dark", H) : "",
4955
- k != null && k.rowLink || s1 ? "cursor-pointer" : "",
4954
+ v || k != null && k.rowLink || h1 ? f("hover:bg-warm-neutral hover:dark:bg-warm-neutral-dark", H) : "",
4955
+ k != null && k.rowLink || h1 ? "cursor-pointer" : "",
4956
4956
  f1
4957
4957
  ),
4958
4958
  onClick: () => C == null ? void 0 : C(L),
@@ -5127,7 +5127,7 @@ var Ud = Object.defineProperty, qd = Object.defineProperties, _d = Object.getOwn
5127
5127
  }, Jd = o(Qd), eo = Jd;
5128
5128
  const He = ({ autoFocus: l = !0, children: t, className: e }) => {
5129
5129
  const r = J(null);
5130
- return v1(() => {
5130
+ return o1(() => {
5131
5131
  if (r.current) {
5132
5132
  const a = r.current.querySelectorAll(
5133
5133
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
@@ -5231,7 +5231,7 @@ const He = ({ autoFocus: l = !0, children: t, className: e }) => {
5231
5231
  ) })
5232
5232
  ] })), to = o(lo);
5233
5233
  to.displayName = "Dialog";
5234
- const ro = ({ className: l, ...t }) => /* @__PURE__ */ n("hr", { ...t, className: f("w-full border-gray-15 dark:border-gray-30 border-standard", l) }), io = ({ children: l, className: t, isOrdered: e = !1, ...r }, a) => u1(e ? "ol" : "ul", {
5234
+ const ro = ({ className: l, ...t }) => /* @__PURE__ */ n("hr", { ...t, className: f("w-full border-gray-15 dark:border-gray-30 border-standard", l) }), io = ({ children: l, className: t, isOrdered: e = !1, ...r }, a) => v1(e ? "ol" : "ul", {
5235
5235
  children: l,
5236
5236
  className: f(["bg-canvas-light dark:bg-gray-45 rounded-1 py-0.5", t]),
5237
5237
  ref: a,
@@ -5319,7 +5319,7 @@ const oo = ({
5319
5319
  const F = c.find((_) => _.value === N.target.value);
5320
5320
  F && P(F);
5321
5321
  };
5322
- return v1(() => (document.addEventListener("click", I, !0), () => {
5322
+ return o1(() => (document.addEventListener("click", I, !0), () => {
5323
5323
  document.removeEventListener("click", I, !0);
5324
5324
  }), [I]), /* @__PURE__ */ n(E, { children: /* @__PURE__ */ d(E, { className: "relative", ref: z, children: [
5325
5325
  t ? /* @__PURE__ */ n(A1, { className: "absolute z-1" }) : null,
@@ -5398,7 +5398,7 @@ var ho = Object.defineProperty, uo = Object.defineProperties, vo = Object.getOwn
5398
5398
  var e = l, { title: r, titleId: a } = e, i = po(e, ["title", "titleId"]);
5399
5399
  return d("svg", go(fo({ width: i.size || "24", height: i.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, i), { children: [r ? n("title", { id: a, children: r }) : null, n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.334 15.666a1 1 0 0 0 1 1h1.364a1 1 0 0 0 .707-.293l7.898-7.899-2.777-2.777-7.899 7.899a1 1 0 0 0-.293.707v1.363Zm13.117-9.34a.738.738 0 0 0 0-1.044L14.718 3.55a.738.738 0 0 0-1.044 0l-1.356 1.356 2.778 2.777 1.355-1.355Z", fill: "currentColor" })] }));
5400
5400
  }, bo = o(wo), D0 = bo;
5401
- const mo = ({ className: l, children: t, component: e = "a", variant: r = "borderless", ...a }, i) => u1(
5401
+ const mo = ({ className: l, children: t, component: e = "a", variant: r = "borderless", ...a }, i) => v1(
5402
5402
  e,
5403
5403
  {
5404
5404
  ...a,
@@ -5537,7 +5537,9 @@ function Io({
5537
5537
  const S = J(null);
5538
5538
  a0(z, () => S.current, []);
5539
5539
  const [B, j] = Y([]), [A, P] = Y(!1), [I, b] = Y(R);
5540
- v1(() => c(B.map((O) => O.file)), [c, B]);
5540
+ o1(() => {
5541
+ b(R);
5542
+ }, [R]), o1(() => c(B.map((O) => O.file)), [c, B]);
5541
5543
  const N = l1(
5542
5544
  () => B.map((O) => {
5543
5545
  var H;
@@ -5569,7 +5571,7 @@ function Io({
5569
5571
  ), t1 = x1(
5570
5572
  (O) => O.filter((H) => B.every((i1) => i1.id !== H.name)),
5571
5573
  [B]
5572
- ), o1 = x1(
5574
+ ), c1 = x1(
5573
5575
  (O) => {
5574
5576
  const H = Object.values(O), i1 = V(H), g1 = t1(i1), R1 = D(g1);
5575
5577
  j([...B, ...R1]);
@@ -5579,7 +5581,7 @@ function Io({
5579
5581
  function f1(O) {
5580
5582
  g && g(O);
5581
5583
  const { files: H } = O.nativeEvent.target;
5582
- H && o1(H);
5584
+ H && c1(H);
5583
5585
  }
5584
5586
  function r1(O) {
5585
5587
  p && p(O), P(!0);
@@ -5587,7 +5589,7 @@ function Io({
5587
5589
  function w1(O) {
5588
5590
  m && m(O), P(!1);
5589
5591
  }
5590
- function c1(O) {
5592
+ function s1(O) {
5591
5593
  w && w(O), P(!1);
5592
5594
  }
5593
5595
  return /* @__PURE__ */ d("div", { className: t, children: [
@@ -5595,8 +5597,8 @@ function Io({
5595
5597
  "div",
5596
5598
  {
5597
5599
  className: f(
5598
- "relative pbs-1 pbe-2 pli-2 rounded-1 border-tertiary-light dark:border-gray-30 border-small dark:text-white text-gray-50 bg-transparent flex flex-col items-start mbe-0.5 bg-white dark:bg-gray-50",
5599
- I ? "border-alert" : "",
5600
+ "relative pbs-1 pbe-2 pli-2 rounded-1 border-tertiary-light border-small dark:text-white text-gray-50 bg-transparent flex flex-col items-start mbe-0.5 bg-white dark:bg-gray-50",
5601
+ I ? "border-alert dark:border-alert-dark" : "dark:border-gray-30",
5600
5602
  e ? "bg-gray-10 dark:bg-gray-40" : ""
5601
5603
  ),
5602
5604
  children: [
@@ -5669,7 +5671,7 @@ function Io({
5669
5671
  onChange: f1,
5670
5672
  onDragEnter: r1,
5671
5673
  onDragLeave: w1,
5672
- onDrop: c1,
5674
+ onDrop: s1,
5673
5675
  ref: S,
5674
5676
  title: "",
5675
5677
  type: "file",
@@ -5771,14 +5773,14 @@ const Wo = ({
5771
5773
  shape: I = "circle",
5772
5774
  validation: b
5773
5775
  }, N) => {
5774
- const F = J(null), _ = B1({ forwardedRef: N, innerRef: F }), [V, D] = Y({ error: g, status: z ? "resolved" : "idle" }), [t1, o1] = Y(null), f1 = () => F != null && F.current ? F.current.click() : void 0;
5775
- v1(() => {
5776
+ const F = J(null), _ = B1({ forwardedRef: N, innerRef: F }), [V, D] = Y({ error: g, status: z ? "resolved" : "idle" }), [t1, c1] = Y(null), f1 = () => F != null && F.current ? F.current.click() : void 0;
5777
+ o1(() => {
5776
5778
  if (z) {
5777
5779
  let U = !0;
5778
5780
  D((Q) => ({ ...Q, status: "pending" }));
5779
5781
  const q = new Image();
5780
5782
  return q.onload = () => {
5781
- U && (o1({
5783
+ U && (c1({
5782
5784
  height: q.height,
5783
5785
  isLandscape: q.width >= q.height,
5784
5786
  width: q.width
@@ -5789,7 +5791,7 @@ const Wo = ({
5789
5791
  U = !1, q.onload = null, q.onerror = null, q.src = "";
5790
5792
  };
5791
5793
  } else
5792
- D((U) => ({ ...U, status: "idle" })), o1(null);
5794
+ D((U) => ({ ...U, status: "idle" })), c1(null);
5793
5795
  }, [z]);
5794
5796
  const r1 = l1(() => V.file && V.status !== "rejected" ? (D((U) => ({ ...U, status: "resolved" })), V.file.imageSrc) : z && V.status === "resolved" ? (D((U) => ({ ...U, status: "resolved" })), z) : null, [V.file, V.status, z]), w1 = l1(() => {
5795
5797
  var q, Q, k;
@@ -5801,8 +5803,8 @@ const Wo = ({
5801
5803
  return /* @__PURE__ */ n(E, { className: "animate-spin", children: /* @__PURE__ */ n(se, { className: "text-info-light dark:text-info-dark", "data-testid": "loading spinner", size: "32" }) });
5802
5804
  case "resolved":
5803
5805
  const L = t && t1 && (() => {
5804
- const G = t1.width / t1.height, s1 = 0.2;
5805
- return Math.abs(G - t) / t > s1;
5806
+ const G = t1.width / t1.height, h1 = 0.2;
5807
+ return Math.abs(G - t) / t > h1;
5806
5808
  })();
5807
5809
  return /* @__PURE__ */ d(d1, { children: [
5808
5810
  L ? (
@@ -5885,11 +5887,11 @@ const Wo = ({
5885
5887
  v,
5886
5888
  t1,
5887
5889
  t
5888
- ]), c1 = ({ file: U, imageUrl: q }) => new Promise((Q, k) => {
5889
- var s1;
5890
- const L = new Image(), G = (s1 = b == null ? void 0 : b.imageRatio) == null ? void 0 : s1.split("/");
5890
+ ]), s1 = ({ file: U, imageUrl: q }) => new Promise((Q, k) => {
5891
+ var h1;
5892
+ const L = new Image(), G = (h1 = b == null ? void 0 : b.imageRatio) == null ? void 0 : h1.split("/");
5891
5893
  L.onload = async () => {
5892
- if (o1({
5894
+ if (c1({
5893
5895
  height: L.height,
5894
5896
  isLandscape: L.width >= L.height,
5895
5897
  width: L.width
@@ -5913,7 +5915,7 @@ const Wo = ({
5913
5915
  if (q) {
5914
5916
  const Q = q[0], k = URL.createObjectURL(Q);
5915
5917
  let L = !0;
5916
- D((G) => ({ ...G, status: "pending" })), P && await P(Q), L = await c1({
5918
+ D((G) => ({ ...G, status: "pending" })), P && await P(Q), L = await s1({
5917
5919
  file: Q,
5918
5920
  imageUrl: k
5919
5921
  }), L && D((G) => ({
@@ -6013,7 +6015,7 @@ const Uo = ({
6013
6015
  ...v
6014
6016
  }, g) => {
6015
6017
  const p = xe(r !== void 0 ? a : void 0);
6016
- return /* @__PURE__ */ d(({ children: w }) => u1(
6018
+ return /* @__PURE__ */ d(({ children: w }) => v1(
6017
6019
  e,
6018
6020
  {
6019
6021
  ...v,
@@ -6028,12 +6030,12 @@ const Uo = ({
6028
6030
  },
6029
6031
  w
6030
6032
  ), { children: [
6031
- a === "start" && r !== void 0 ? u1(r, {
6033
+ a === "start" && r !== void 0 ? v1(r, {
6032
6034
  className: f("flex-shrink-0", c === "xs" ? "mie-0.25" : "mie-0.5"),
6033
6035
  size: N1[c]
6034
6036
  }) : null,
6035
- u1("span", { className: "" }, t),
6036
- a === "end" && r !== void 0 ? u1(r, {
6037
+ v1("span", { className: "" }, t),
6038
+ a === "end" && r !== void 0 ? v1(r, {
6037
6039
  className: f("flex-shrink-0", c === "xs" ? "mis-0.25" : "mis-0.5"),
6038
6040
  size: N1[c]
6039
6041
  }) : null
@@ -6548,7 +6550,7 @@ const M9 = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
6548
6550
  }, C) => {
6549
6551
  var I;
6550
6552
  const y = f(Z9, M9), R = J(null), Z = B1({ forwardedRef: C, innerRef: R }), [z, S] = Y(!!(x || (I = Z == null ? void 0 : Z.current) != null && I.value));
6551
- v1(() => {
6553
+ o1(() => {
6552
6554
  var b;
6553
6555
  S(!!((b = Z == null ? void 0 : Z.current) != null && b.value || x));
6554
6556
  }, [x, Z]);
@@ -6663,7 +6665,7 @@ const V9 = o(
6663
6665
  V9.displayName = "SideNavContent";
6664
6666
  const L9 = o(({ className: l, ...t }, e) => {
6665
6667
  const [r, a] = Y(!1);
6666
- return v1(() => {
6668
+ return o1(() => {
6667
6669
  const i = document.querySelector('[data-sidebar="content"]');
6668
6670
  if (!i)
6669
6671
  return;
@@ -7063,7 +7065,7 @@ const gc = {
7063
7065
  position: c = "inlineEnd"
7064
7066
  }) => {
7065
7067
  const v = J(null), [g, p] = Y(n1.START);
7066
- v1(() => {
7068
+ o1(() => {
7067
7069
  if (g === n1.START) {
7068
7070
  const y = setTimeout(() => p(n1.SHOW), 100);
7069
7071
  return () => clearTimeout(y);