@grupo-elo-editorial/shared-ui-react 1.2.10 → 1.2.11

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.js CHANGED
@@ -3,7 +3,7 @@ import { clsx as Z } from "clsx";
3
3
  import { twMerge as J } from "tailwind-merge";
4
4
  import { jsx as e, jsxs as i, Fragment as _ } from "react/jsx-runtime";
5
5
  import { forwardRef as x, useState as k, useEffect as M } from "react";
6
- import { Loader2 as V, User as ee, Star as te, CheckIcon as U, ChevronDownIcon as A, ChevronUpIcon as ae, CircleIcon as re, ShoppingCart as R, Heart as oe, Search as Q, X as ie, Minus as ne, Plus as se, ChevronRight as W, FileX as le, Package as de, AlertCircle as ce, RefreshCw as ue, Home as me, XIcon as K, Accessibility as fe, ZoomOut as ge, ZoomIn as ve, Moon as pe, Sun as be, ChevronLeft as he, Menu as xe, ChevronDown as O, Instagram as Ne, Facebook as we, Youtube as ye, Linkedin as ke, Mail as ze } from "lucide-react";
6
+ import { Loader2 as V, User as ee, Star as te, CheckIcon as U, ChevronDownIcon as A, ChevronUpIcon as ae, CircleIcon as re, ShoppingCart as R, Heart as oe, Search as Q, X as ie, Minus as ne, Plus as se, ChevronRight as W, FileX as le, Package as de, AlertCircle as ce, RefreshCw as ue, Home as me, XIcon as K, Accessibility as fe, ZoomOut as ge, ZoomIn as pe, Moon as ve, Sun as be, ChevronLeft as he, Menu as xe, ChevronDown as O, Instagram as Ne, Facebook as we, Youtube as ye, Linkedin as ke, Mail as ze } from "lucide-react";
7
7
  import { cva as L } from "class-variance-authority";
8
8
  import * as z from "@radix-ui/react-select";
9
9
  import * as F from "@radix-ui/react-checkbox";
@@ -57,11 +57,11 @@ const Se = L(
57
57
  children: m,
58
58
  disabled: f,
59
59
  ...u
60
- }, v) => /* @__PURE__ */ e(
60
+ }, p) => /* @__PURE__ */ e(
61
61
  "button",
62
62
  {
63
63
  className: o(Se({ variant: t, size: r, fullWidth: n, className: a })),
64
- ref: v,
64
+ ref: p,
65
65
  disabled: f || s,
66
66
  ...u,
67
67
  children: s ? /* @__PURE__ */ i(_, { children: [
@@ -172,7 +172,7 @@ const Me = L(
172
172
  }
173
173
  ), De = x(
174
174
  ({ className: a, size: t, src: r, alt: n, name: s, showStatus: c, statusType: l = "online", ...m }, f) => {
175
- const [u, v] = k(!1), g = (h) => h.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2), b = {
175
+ const [u, p] = k(!1), g = (h) => h.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2), b = {
176
176
  online: "bg-[var(--success)]",
177
177
  offline: "bg-[var(--muted-foreground)]",
178
178
  away: "bg-[var(--warning)]",
@@ -189,7 +189,7 @@ const Me = L(
189
189
  {
190
190
  src: r,
191
191
  alt: n || s || "Avatar",
192
- onError: () => v(!0),
192
+ onError: () => p(!0),
193
193
  className: "h-full w-full object-cover",
194
194
  ...m
195
195
  }
@@ -296,7 +296,7 @@ const T = x(
296
296
  showValue: l = !1,
297
297
  ...m
298
298
  }, f) => {
299
- const [u, v] = k(0), g = {
299
+ const [u, p] = k(0), g = {
300
300
  sm: "h-4 w-4",
301
301
  md: "h-5 w-5",
302
302
  lg: "h-6 w-6"
@@ -320,8 +320,8 @@ const T = x(
320
320
  type: "button",
321
321
  disabled: s,
322
322
  onClick: () => b(h),
323
- onMouseEnter: () => !s && v(h),
324
- onMouseLeave: () => !s && v(0),
323
+ onMouseEnter: () => !s && p(h),
324
+ onMouseLeave: () => !s && p(0),
325
325
  className: o(
326
326
  "transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-1 rounded",
327
327
  s ? "cursor-default" : "cursor-pointer hover:scale-110"
@@ -591,21 +591,21 @@ const $ = x(
591
591
  reviewCount: m,
592
592
  badge: f,
593
593
  badgeVariant: u = "default",
594
- isSkeleton: v = !1,
594
+ isSkeleton: p = !1,
595
595
  isOutOfStock: g = !1,
596
596
  onAddToCart: b,
597
597
  onToggleFavorite: N,
598
598
  isFavorite: h = !1,
599
599
  href: d,
600
- orientation: p = "vertical",
600
+ orientation: v = "vertical",
601
601
  ...y
602
- }, j) => v ? /* @__PURE__ */ i(
602
+ }, j) => p ? /* @__PURE__ */ i(
603
603
  "div",
604
604
  {
605
605
  ref: j,
606
606
  className: o(
607
607
  "flex rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-4 animate-pulse",
608
- p === "horizontal" ? "flex-row gap-3" : "flex-col",
608
+ v === "horizontal" ? "flex-row gap-3" : "flex-col",
609
609
  a
610
610
  ),
611
611
  ...y,
@@ -615,18 +615,18 @@ const $ = x(
615
615
  {
616
616
  className: o(
617
617
  "rounded-lg bg-[var(--muted)]",
618
- p === "horizontal" ? "h-24 w-20 shrink-0" : "h-55 sm:h-66.5 w-36.75 sm:w-44.25"
618
+ v === "horizontal" ? "h-24 w-20 shrink-0" : "h-55 sm:h-66.5 w-full sm:w-44.25"
619
619
  )
620
620
  }
621
621
  ),
622
- /* @__PURE__ */ i("div", { className: o("flex flex-col gap-2", p === "horizontal" ? "flex-1" : "mt-3"), children: [
622
+ /* @__PURE__ */ i("div", { className: o("flex flex-col gap-2", v === "horizontal" ? "flex-1" : "mt-3"), children: [
623
623
  /* @__PURE__ */ e("div", { className: "h-4 w-3/4 rounded bg-[var(--muted)]" }),
624
624
  /* @__PURE__ */ e("div", { className: "h-4 w-1/2 rounded bg-[var(--muted)]" }),
625
625
  /* @__PURE__ */ e("div", { className: "h-10 w-full rounded bg-[var(--muted)]" })
626
626
  ] })
627
627
  ]
628
628
  }
629
- ) : p === "horizontal" ? /* @__PURE__ */ i(
629
+ ) : v === "horizontal" ? /* @__PURE__ */ i(
630
630
  "div",
631
631
  {
632
632
  ref: j,
@@ -701,7 +701,7 @@ const $ = x(
701
701
  {
702
702
  ref: j,
703
703
  className: o(
704
- "group relative flex flex-col w-fit min-w-37.5 rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
704
+ "group relative flex flex-col w-full sm:w-fit sm:min-w-37.5 rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
705
705
  g && "opacity-60",
706
706
  a
707
707
  ),
@@ -711,14 +711,14 @@ const $ = x(
711
711
  H,
712
712
  {
713
713
  href: d,
714
- className: "relative block h-55 sm:h-66.5 w-fit overflow-hidden rounded-t-lg",
714
+ className: "relative block h-55 sm:h-66.5 w-full sm:w-fit overflow-hidden rounded-t-lg",
715
715
  children: [
716
716
  /* @__PURE__ */ e(
717
717
  "img",
718
718
  {
719
719
  src: t,
720
720
  alt: r,
721
- className: "h-full w-auto transition-transform group-hover:scale-105"
721
+ className: "h-full w-full sm:w-auto object-cover sm:object-none transition-transform group-hover:scale-105"
722
722
  }
723
723
  ),
724
724
  f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(P, { variant: u, children: f }) }),
@@ -743,15 +743,15 @@ const $ = x(
743
743
  )
744
744
  }
745
745
  ),
746
- /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col p-4", children: [
746
+ /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col p-4 w-full sm:w-0 sm:min-w-full", children: [
747
747
  d ? /* @__PURE__ */ e(
748
748
  "a",
749
749
  {
750
750
  href: d,
751
- className: "line-clamp-2 text-base font-medium text-[var(--card-foreground)] hover:text-[var(--brand-primary)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] rounded",
751
+ className: "wrap-break-word text-base font-medium text-card-foreground hover:text-brand-primary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",
752
752
  children: r
753
753
  }
754
- ) : /* @__PURE__ */ e("h3", { className: "line-clamp-2 text-base font-medium text-[var(--card-foreground)]", children: r }),
754
+ ) : /* @__PURE__ */ e("h3", { className: "wrap-break-word text-base font-medium text-card-foreground", children: r }),
755
755
  n && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-[var(--muted-foreground)]", children: n }),
756
756
  l !== void 0 && /* @__PURE__ */ i("div", { className: "mt-2 flex items-center gap-2", children: [
757
757
  /* @__PURE__ */ e(T, { value: l, size: "sm", readonly: !0 }),
@@ -807,7 +807,7 @@ const Ee = x(
807
807
  onChange: m,
808
808
  ...f
809
809
  }, u) => {
810
- const [v, g] = k(""), b = l !== void 0 ? l : v, N = {
810
+ const [p, g] = k(""), b = l !== void 0 ? l : p, N = {
811
811
  sm: "h-9 text-sm",
812
812
  md: "h-11 text-base",
813
813
  lg: "h-14 text-lg"
@@ -816,7 +816,7 @@ const Ee = x(
816
816
  l === void 0 && g(j), m == null || m(y);
817
817
  }, d = () => {
818
818
  l === void 0 && g(""), r == null || r();
819
- }, p = (y) => {
819
+ }, v = (y) => {
820
820
  y.key === "Enter" && t && t(b);
821
821
  };
822
822
  return /* @__PURE__ */ e("div", { className: o("relative w-full", a), children: /* @__PURE__ */ i("div", { className: "relative flex items-center", children: [
@@ -828,7 +828,7 @@ const Ee = x(
828
828
  type: "search",
829
829
  value: b,
830
830
  onChange: h,
831
- onKeyDown: p,
831
+ onKeyDown: v,
832
832
  placeholder: c,
833
833
  className: o(
834
834
  "w-full rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] pl-10 pr-10 font-normal transition-colors",
@@ -868,7 +868,7 @@ const Te = x(
868
868
  installments: l,
869
869
  ...m
870
870
  }, f) => {
871
- const u = r && r > t ? Math.round((r - t) / r * 100) : 0, v = {
871
+ const u = r && r > t ? Math.round((r - t) / r * 100) : 0, p = {
872
872
  sm: "text-base",
873
873
  md: "text-xl",
874
874
  lg: "text-2xl",
@@ -882,7 +882,7 @@ const Te = x(
882
882
  return /* @__PURE__ */ i("div", { ref: f, className: o("flex flex-col gap-1", a), ...m, children: [
883
883
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2 flex-wrap", children: [
884
884
  /* @__PURE__ */ i("div", { className: "flex items-baseline gap-2", children: [
885
- /* @__PURE__ */ i("span", { className: o("font-bold text-[var(--foreground)]", v[s]), children: [
885
+ /* @__PURE__ */ i("span", { className: o("font-bold text-[var(--foreground)]", p[s]), children: [
886
886
  n,
887
887
  " ",
888
888
  t.toFixed(2)
@@ -933,13 +933,13 @@ const $e = x(
933
933
  showLabel: m = !1,
934
934
  ...f
935
935
  }, u) => {
936
- const v = () => {
936
+ const p = () => {
937
937
  t < n && s(t + 1);
938
938
  }, g = () => {
939
939
  t > r && s(t - 1);
940
940
  }, b = (d) => {
941
- const p = parseInt(d.target.value);
942
- !isNaN(p) && p >= r && p <= n && s(p);
941
+ const v = parseInt(d.target.value);
942
+ !isNaN(v) && v >= r && v <= n && s(v);
943
943
  }, N = {
944
944
  sm: "h-8 w-8",
945
945
  md: "h-10 w-10",
@@ -990,7 +990,7 @@ const $e = x(
990
990
  type: "button",
991
991
  variant: "secondary",
992
992
  size: "sm",
993
- onClick: v,
993
+ onClick: p,
994
994
  disabled: l || t >= n,
995
995
  className: o(N[c], "p-0"),
996
996
  "aria-label": "Increase quantity",
@@ -1211,7 +1211,7 @@ const Fe = x(
1211
1211
  backgroundImage: m,
1212
1212
  overlay: f = !0,
1213
1213
  children: u,
1214
- ...v
1214
+ ...p
1215
1215
  }, g) => /* @__PURE__ */ i(
1216
1216
  "section",
1217
1217
  {
@@ -1225,7 +1225,7 @@ const Fe = x(
1225
1225
  }[t],
1226
1226
  a
1227
1227
  ),
1228
- ...v,
1228
+ ...p,
1229
1229
  children: [
1230
1230
  m && /* @__PURE__ */ i(_, { children: [
1231
1231
  /* @__PURE__ */ e(
@@ -1444,7 +1444,7 @@ const He = x(
1444
1444
  onEmptyAction: m,
1445
1445
  ...f
1446
1446
  }, u) => {
1447
- const v = {
1447
+ const p = {
1448
1448
  sm: "gap-4",
1449
1449
  md: "gap-6",
1450
1450
  lg: "gap-8"
@@ -1454,8 +1454,8 @@ const He = x(
1454
1454
  {
1455
1455
  ref: u,
1456
1456
  className: o(
1457
- "flex flex-wrap",
1458
- v[n],
1457
+ "grid grid-cols-2 sm:flex sm:flex-wrap",
1458
+ p[n],
1459
1459
  a
1460
1460
  ),
1461
1461
  ...f,
@@ -1486,8 +1486,8 @@ const He = x(
1486
1486
  {
1487
1487
  ref: u,
1488
1488
  className: o(
1489
- "flex flex-wrap",
1490
- v[n],
1489
+ "grid grid-cols-2 sm:flex sm:flex-wrap",
1490
+ p[n],
1491
1491
  a
1492
1492
  ),
1493
1493
  ...f,
@@ -1729,20 +1729,20 @@ function et({ children: a, as: t = "div", className: r }) {
1729
1729
  }
1730
1730
  const tt = x(
1731
1731
  ({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...s }, c) => {
1732
- const [l, m] = k("light"), [f, u] = k(16), [v, g] = k(!1);
1732
+ const [l, m] = k("light"), [f, u] = k(16), [p, g] = k(!1);
1733
1733
  M(() => {
1734
- const p = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
1735
- m(p);
1734
+ const v = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
1735
+ m(v);
1736
1736
  const y = Number(localStorage.getItem("a11y-font-size"));
1737
1737
  Number.isFinite(y) && y > 0 && u(y);
1738
1738
  }, []), M(() => {
1739
- if (!v && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
1740
- const p = document.createElement("script");
1741
- p.src = "https://vlibras.gov.br/app/vlibras-plugin.js", p.async = !0, p.onload = () => {
1739
+ if (!p && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
1740
+ const v = document.createElement("script");
1741
+ v.src = "https://vlibras.gov.br/app/vlibras-plugin.js", v.async = !0, v.onload = () => {
1742
1742
  g(!0), window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app");
1743
- }, document.body.appendChild(p);
1743
+ }, document.body.appendChild(v);
1744
1744
  }
1745
- }, [v]);
1745
+ }, [p]);
1746
1746
  const b = () => {
1747
1747
  const d = l === "light" ? "dark" : "light";
1748
1748
  m(d), document.documentElement.setAttribute("data-theme", d), localStorage.setItem("a11y-theme", d), t == null || t(d);
@@ -1807,7 +1807,7 @@ const tt = x(
1807
1807
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
1808
1808
  "disabled:opacity-40 disabled:cursor-not-allowed"
1809
1809
  ),
1810
- children: /* @__PURE__ */ e(ve, { className: "h-4 w-4" })
1810
+ children: /* @__PURE__ */ e(pe, { className: "h-4 w-4" })
1811
1811
  }
1812
1812
  )
1813
1813
  ] }),
@@ -1821,7 +1821,7 @@ const tt = x(
1821
1821
  "p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
1822
1822
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
1823
1823
  ),
1824
- children: l === "light" ? /* @__PURE__ */ e(pe, { className: "h-4 w-4" }) : /* @__PURE__ */ e(be, { className: "h-4 w-4" })
1824
+ children: l === "light" ? /* @__PURE__ */ e(ve, { className: "h-4 w-4" }) : /* @__PURE__ */ e(be, { className: "h-4 w-4" })
1825
1825
  }
1826
1826
  ),
1827
1827
  /* @__PURE__ */ e(
@@ -1830,15 +1830,15 @@ const tt = x(
1830
1830
  type: "button",
1831
1831
  onClick: () => g((d) => !d),
1832
1832
  "aria-label": "Ativar VLibras",
1833
- "aria-pressed": v,
1833
+ "aria-pressed": p,
1834
1834
  className: o(
1835
1835
  "px-3 py-1 text-xs font-medium rounded-md transition-colors",
1836
1836
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
1837
1837
  ),
1838
1838
  style: {
1839
- backgroundColor: v ? "var(--primary)" : "transparent",
1840
- color: v ? "var(--primary-foreground)" : "var(--muted-foreground)",
1841
- border: v ? "none" : "1px solid var(--border)"
1839
+ backgroundColor: p ? "var(--primary)" : "transparent",
1840
+ color: p ? "var(--primary-foreground)" : "var(--muted-foreground)",
1841
+ border: p ? "none" : "1px solid var(--border)"
1842
1842
  },
1843
1843
  children: "VLibras"
1844
1844
  }
@@ -1858,21 +1858,21 @@ const at = x(
1858
1858
  autoplay: n = !0,
1859
1859
  ...s
1860
1860
  }, c) => {
1861
- const [l, m] = k(0), [f, u] = k(!1), [v, g] = k(!1);
1861
+ const [l, m] = k(0), [f, u] = k(!1), [p, g] = k(!1);
1862
1862
  M(() => {
1863
1863
  const d = window.matchMedia("(prefers-reduced-motion: reduce)");
1864
1864
  g(d.matches);
1865
- const p = (y) => {
1865
+ const v = (y) => {
1866
1866
  g(y.matches);
1867
1867
  };
1868
- return d.addEventListener("change", p), () => d.removeEventListener("change", p);
1868
+ return d.addEventListener("change", v), () => d.removeEventListener("change", v);
1869
1869
  }, []), M(() => {
1870
- if (!n || f || v) return;
1870
+ if (!n || f || p) return;
1871
1871
  const d = setInterval(() => {
1872
- m((p) => (p + 1) % t.length);
1872
+ m((v) => (v + 1) % t.length);
1873
1873
  }, r);
1874
1874
  return () => clearInterval(d);
1875
- }, [n, r, t.length, f, v]);
1875
+ }, [n, r, t.length, f, p]);
1876
1876
  const b = (d) => {
1877
1877
  m(d), u(!0), setTimeout(() => u(!1), r);
1878
1878
  }, N = () => {
@@ -1889,14 +1889,14 @@ const at = x(
1889
1889
  onMouseLeave: () => u(!1),
1890
1890
  ...s,
1891
1891
  children: [
1892
- /* @__PURE__ */ e("div", { className: "relative", children: t.map((d, p) => /* @__PURE__ */ i(
1892
+ /* @__PURE__ */ e("div", { className: "relative", children: t.map((d, v) => /* @__PURE__ */ i(
1893
1893
  "div",
1894
1894
  {
1895
1895
  className: o(
1896
1896
  "w-full transition-opacity duration-700",
1897
- p === l ? "block" : "hidden"
1897
+ v === l ? "block" : "hidden"
1898
1898
  ),
1899
- "aria-hidden": p !== l,
1899
+ "aria-hidden": v !== l,
1900
1900
  children: [
1901
1901
  /* @__PURE__ */ i("picture", { children: [
1902
1902
  /* @__PURE__ */ e(
@@ -1920,7 +1920,7 @@ const at = x(
1920
1920
  srcSet: `${d.imageMobile} 1x, ${d.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
1921
1921
  alt: d.title,
1922
1922
  className: "w-full object-cover aspect-3/2 md:aspect-video lg:aspect-1920/560",
1923
- loading: p === 0 ? "eager" : "lazy"
1923
+ loading: v === 0 ? "eager" : "lazy"
1924
1924
  }
1925
1925
  )
1926
1926
  ] }),
@@ -1960,18 +1960,18 @@ const at = x(
1960
1960
  }
1961
1961
  )
1962
1962
  ] }),
1963
- t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2", children: t.map((d, p) => /* @__PURE__ */ e(
1963
+ t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2", children: t.map((d, v) => /* @__PURE__ */ e(
1964
1964
  "button",
1965
1965
  {
1966
- onClick: () => b(p),
1966
+ onClick: () => b(v),
1967
1967
  className: o(
1968
1968
  "h-2 rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[24px] flex items-center justify-center",
1969
- p === l ? "w-8 bg-white" : "w-2 bg-white/50 hover:bg-white/70"
1969
+ v === l ? "w-8 bg-white" : "w-2 bg-white/50 hover:bg-white/70"
1970
1970
  ),
1971
- "aria-label": `Ir para slide ${p + 1}`,
1972
- "aria-current": p === l
1971
+ "aria-label": `Ir para slide ${v + 1}`,
1972
+ "aria-current": v === l
1973
1973
  },
1974
- p
1974
+ v
1975
1975
  )) })
1976
1976
  ]
1977
1977
  }
@@ -2386,15 +2386,15 @@ function gt({ title: a, links: t }) {
2386
2386
  )
2387
2387
  ] });
2388
2388
  }
2389
- const vt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...n }) => {
2389
+ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...n }) => {
2390
2390
  const [s, c] = k("light");
2391
2391
  M(() => {
2392
2392
  const u = document.documentElement;
2393
2393
  c(u.getAttribute("data-theme") ?? "light");
2394
- const v = new MutationObserver(() => {
2394
+ const p = new MutationObserver(() => {
2395
2395
  c(u.getAttribute("data-theme") ?? "light");
2396
2396
  });
2397
- return v.observe(u, { attributes: !0, attributeFilter: ["data-theme"] }), () => v.disconnect();
2397
+ return p.observe(u, { attributes: !0, attributeFilter: ["data-theme"] }), () => p.disconnect();
2398
2398
  }, []);
2399
2399
  const l = a === "perabook" ? s === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : s === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_editora_texto_azul.png", m = a === "perabook" ? "PeraBook" : "Elo Editora", f = a === "perabook" ? "Educação socioemocional e diversidade cultural" : "Literatura infantojuvenil que transforma vidas";
2400
2400
  return /* @__PURE__ */ i(
@@ -2419,10 +2419,10 @@ const vt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
2419
2419
  }
2420
2420
  ),
2421
2421
  /* @__PURE__ */ e("p", { className: "mt-3 max-w-xs text-sm text-[var(--muted-foreground)]", children: f }),
2422
- /* @__PURE__ */ e("div", { className: "mt-6 flex flex-wrap gap-2", "aria-label": "Redes sociais", children: mt.map(({ label: u, href: v, Icon: g }) => /* @__PURE__ */ e(
2422
+ /* @__PURE__ */ e("div", { className: "mt-6 flex flex-wrap gap-2", "aria-label": "Redes sociais", children: mt.map(({ label: u, href: p, Icon: g }) => /* @__PURE__ */ e(
2423
2423
  "a",
2424
2424
  {
2425
- href: v,
2425
+ href: p,
2426
2426
  target: "_blank",
2427
2427
  rel: "noopener noreferrer",
2428
2428
  "aria-label": u,
@@ -2456,7 +2456,7 @@ const vt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
2456
2456
  }
2457
2457
  );
2458
2458
  };
2459
- vt.displayName = "Footer";
2459
+ pt.displayName = "Footer";
2460
2460
  function aa({ children: a, className: t }) {
2461
2461
  return /* @__PURE__ */ e(
2462
2462
  "div",
@@ -2470,7 +2470,7 @@ function aa({ children: a, className: t }) {
2470
2470
  }
2471
2471
  );
2472
2472
  }
2473
- const pt = {
2473
+ const vt = {
2474
2474
  1: "col-span-1",
2475
2475
  2: "col-span-2",
2476
2476
  3: "col-span-3",
@@ -2479,7 +2479,7 @@ const pt = {
2479
2479
  6: "col-span-6"
2480
2480
  };
2481
2481
  function ra({ children: a, span: t, className: r }) {
2482
- return /* @__PURE__ */ e("div", { "data-slot": "col", className: o("min-w-0", t && pt[t], r), children: a });
2482
+ return /* @__PURE__ */ e("div", { "data-slot": "col", className: o("min-w-0", t && vt[t], r), children: a });
2483
2483
  }
2484
2484
  export {
2485
2485
  Vt as Accordion,
@@ -2508,7 +2508,7 @@ export {
2508
2508
  Qe as Drawer,
2509
2509
  X as EmptyState,
2510
2510
  qe as ErrorState,
2511
- vt as Footer,
2511
+ pt as Footer,
2512
2512
  Be as FormGroup,
2513
2513
  aa as Grid,
2514
2514
  Fe as Hero,