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

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
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { clsx as Z } from "clsx";
3
3
  import { twMerge as J } from "tailwind-merge";
4
- import { jsx as e, jsxs as i, Fragment as _ } from "react/jsx-runtime";
4
+ import { jsx as e, jsxs as i, Fragment as P } 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 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";
6
+ import { Loader2 as V, User as ee, Star as te, CheckIcon as U, ChevronDownIcon as R, ChevronUpIcon as ae, CircleIcon as re, ShoppingCart as _, 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";
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,17 +57,17 @@ const Se = L(
57
57
  children: m,
58
58
  disabled: f,
59
59
  ...u
60
- }, p) => /* @__PURE__ */ e(
60
+ }, v) => /* @__PURE__ */ e(
61
61
  "button",
62
62
  {
63
63
  className: o(Se({ variant: t, size: r, fullWidth: n, className: a })),
64
- ref: p,
64
+ ref: v,
65
65
  disabled: f || s,
66
66
  ...u,
67
- children: s ? /* @__PURE__ */ i(_, { children: [
67
+ children: s ? /* @__PURE__ */ i(P, { children: [
68
68
  /* @__PURE__ */ e(V, { className: "h-4 w-4 animate-spin" }),
69
69
  m && /* @__PURE__ */ e("span", { children: m })
70
- ] }) : /* @__PURE__ */ i(_, { children: [
70
+ ] }) : /* @__PURE__ */ i(P, { children: [
71
71
  c && /* @__PURE__ */ e("span", { className: "inline-flex", children: c }),
72
72
  m,
73
73
  l && /* @__PURE__ */ e("span", { className: "inline-flex", children: l })
@@ -131,7 +131,7 @@ const je = L(
131
131
  size: "md"
132
132
  }
133
133
  }
134
- ), P = x(
134
+ ), A = x(
135
135
  ({ className: a, variant: t, size: r, icon: n, onRemove: s, children: c, ...l }, m) => /* @__PURE__ */ i(
136
136
  "div",
137
137
  {
@@ -154,7 +154,7 @@ const je = L(
154
154
  }
155
155
  )
156
156
  );
157
- P.displayName = "Badge";
157
+ A.displayName = "Badge";
158
158
  const Me = L(
159
159
  "relative inline-flex items-center justify-center overflow-hidden rounded-full bg-[var(--muted)] text-[var(--muted-foreground)] flex-shrink-0",
160
160
  {
@@ -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, p] = k(!1), g = (h) => h.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2), b = {
175
+ const [u, v] = 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: () => p(!0),
192
+ onError: () => v(!0),
193
193
  className: "h-full w-full object-cover",
194
194
  ...m
195
195
  }
@@ -221,7 +221,7 @@ const Le = L("animate-spin text-[var(--brand-primary)]", {
221
221
  defaultVariants: {
222
222
  size: "md"
223
223
  }
224
- }), _e = x(
224
+ }), Pe = x(
225
225
  ({ className: a, size: t, label: r, ...n }, s) => /* @__PURE__ */ i(
226
226
  "div",
227
227
  {
@@ -237,8 +237,8 @@ const Le = L("animate-spin text-[var(--brand-primary)]", {
237
237
  }
238
238
  )
239
239
  );
240
- _e.displayName = "Spinner";
241
- const Pe = x(
240
+ Pe.displayName = "Spinner";
241
+ const Ae = x(
242
242
  ({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...s }, c) => {
243
243
  const l = {
244
244
  solid: "border-solid",
@@ -284,8 +284,8 @@ const Pe = x(
284
284
  );
285
285
  }
286
286
  );
287
- Pe.displayName = "Divider";
288
- const T = x(
287
+ Ae.displayName = "Divider";
288
+ const $ = x(
289
289
  ({
290
290
  className: a,
291
291
  value: t = 0,
@@ -296,7 +296,7 @@ const T = x(
296
296
  showValue: l = !1,
297
297
  ...m
298
298
  }, f) => {
299
- const [u, p] = k(0), g = {
299
+ const [u, v] = 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 && p(h),
324
- onMouseLeave: () => !s && p(0),
323
+ onMouseEnter: () => !s && v(h),
324
+ onMouseLeave: () => !s && v(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"
@@ -347,7 +347,7 @@ const T = x(
347
347
  );
348
348
  }
349
349
  );
350
- T.displayName = "Rating";
350
+ $.displayName = "Rating";
351
351
  function zt({ className: a, type: t, ...r }) {
352
352
  return /* @__PURE__ */ e(
353
353
  "input",
@@ -392,7 +392,7 @@ function It({
392
392
  ...n,
393
393
  children: [
394
394
  r,
395
- /* @__PURE__ */ e(z.Icon, { asChild: !0, children: /* @__PURE__ */ e(A, { className: "size-4 opacity-50" }) })
395
+ /* @__PURE__ */ e(z.Icon, { asChild: !0, children: /* @__PURE__ */ e(R, { className: "size-4 opacity-50" }) })
396
396
  ]
397
397
  }
398
398
  );
@@ -415,7 +415,7 @@ function jt({
415
415
  position: r,
416
416
  ...n,
417
417
  children: [
418
- /* @__PURE__ */ e(Ae, {}),
418
+ /* @__PURE__ */ e(Re, {}),
419
419
  /* @__PURE__ */ e(
420
420
  z.Viewport,
421
421
  {
@@ -426,7 +426,7 @@ function jt({
426
426
  children: t
427
427
  }
428
428
  ),
429
- /* @__PURE__ */ e(Re, {})
429
+ /* @__PURE__ */ e(_e, {})
430
430
  ]
431
431
  }
432
432
  ) });
@@ -452,7 +452,7 @@ function Mt({
452
452
  }
453
453
  );
454
454
  }
455
- function Ae({
455
+ function Re({
456
456
  className: a,
457
457
  ...t
458
458
  }) {
@@ -469,7 +469,7 @@ function Ae({
469
469
  }
470
470
  );
471
471
  }
472
- function Re({
472
+ function _e({
473
473
  className: a,
474
474
  ...t
475
475
  }) {
@@ -482,7 +482,7 @@ function Re({
482
482
  a
483
483
  ),
484
484
  ...t,
485
- children: /* @__PURE__ */ e(A, { className: "size-4" })
485
+ children: /* @__PURE__ */ e(R, { className: "size-4" })
486
486
  }
487
487
  );
488
488
  }
@@ -523,7 +523,7 @@ function Lt({
523
523
  }
524
524
  );
525
525
  }
526
- function _t({
526
+ function Pt({
527
527
  className: a,
528
528
  ...t
529
529
  }) {
@@ -547,7 +547,7 @@ function _t({
547
547
  }
548
548
  );
549
549
  }
550
- function Pt({
550
+ function At({
551
551
  className: a,
552
552
  ...t
553
553
  }) {
@@ -579,7 +579,7 @@ function H({
579
579
  }) {
580
580
  return a ? /* @__PURE__ */ e("a", { href: a, className: t, tabIndex: -1, "aria-hidden": "true", children: r }) : /* @__PURE__ */ e("div", { className: t, children: r });
581
581
  }
582
- const $ = x(
582
+ const T = x(
583
583
  ({
584
584
  className: a,
585
585
  image: t,
@@ -591,21 +591,21 @@ const $ = x(
591
591
  reviewCount: m,
592
592
  badge: f,
593
593
  badgeVariant: u = "default",
594
- isSkeleton: p = !1,
594
+ isSkeleton: v = !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: v = "vertical",
600
+ orientation: p = "vertical",
601
601
  ...y
602
- }, j) => p ? /* @__PURE__ */ i(
602
+ }, j) => v ? /* @__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
- v === "horizontal" ? "flex-row gap-3" : "flex-col",
608
+ p === "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
- v === "horizontal" ? "h-24 w-20 shrink-0" : "h-55 sm:h-66.5 w-full sm:w-44.25"
618
+ p === "horizontal" ? "h-24 w-20 shrink-0" : "h-55 lg:h-66.5 w-full"
619
619
  )
620
620
  }
621
621
  ),
622
- /* @__PURE__ */ i("div", { className: o("flex flex-col gap-2", v === "horizontal" ? "flex-1" : "mt-3"), children: [
622
+ /* @__PURE__ */ i("div", { className: o("flex flex-col gap-2", p === "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
- ) : v === "horizontal" ? /* @__PURE__ */ i(
629
+ ) : p === "horizontal" ? /* @__PURE__ */ i(
630
630
  "div",
631
631
  {
632
632
  ref: j,
@@ -663,7 +663,7 @@ const $ = x(
663
663
  ) : /* @__PURE__ */ e("h3", { className: "line-clamp-2 text-sm font-medium text-[var(--card-foreground)]", children: r }),
664
664
  n && /* @__PURE__ */ e("p", { className: "text-xs text-[var(--muted-foreground)]", children: n }),
665
665
  l !== void 0 && /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
666
- /* @__PURE__ */ e(T, { value: l, size: "sm", readonly: !0 }),
666
+ /* @__PURE__ */ e($, { value: l, size: "sm", readonly: !0 }),
667
667
  m !== void 0 && /* @__PURE__ */ i("span", { className: "text-xs text-[var(--muted-foreground)]", children: [
668
668
  "(",
669
669
  m,
@@ -688,7 +688,7 @@ const $ = x(
688
688
  variant: "primary",
689
689
  size: "sm",
690
690
  fullWidth: !0,
691
- leftIcon: /* @__PURE__ */ e(R, { className: "h-3.5 w-3.5" }),
691
+ leftIcon: /* @__PURE__ */ e(_, { className: "h-3.5 w-3.5" }),
692
692
  className: "mt-auto",
693
693
  children: g ? "Indisponível" : "Adicionar"
694
694
  }
@@ -701,7 +701,7 @@ const $ = x(
701
701
  {
702
702
  ref: j,
703
703
  className: o(
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",
704
+ "group relative flex flex-col rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
705
705
  g && "opacity-60",
706
706
  a
707
707
  ),
@@ -711,18 +711,30 @@ const $ = x(
711
711
  H,
712
712
  {
713
713
  href: d,
714
- className: "relative block h-55 sm:h-66.5 w-full sm:w-fit overflow-hidden rounded-t-lg",
714
+ className: "relative block h-55 lg:h-66.5 w-full overflow-hidden rounded-t-lg",
715
715
  children: [
716
+ /* @__PURE__ */ e(
717
+ "div",
718
+ {
719
+ "aria-hidden": "true",
720
+ className: "absolute inset-0 bg-cover bg-center",
721
+ style: {
722
+ backgroundImage: `url(${t})`,
723
+ filter: "blur(14px) brightness(0.85)",
724
+ transform: "scale(1.2)"
725
+ }
726
+ }
727
+ ),
716
728
  /* @__PURE__ */ e(
717
729
  "img",
718
730
  {
719
731
  src: t,
720
732
  alt: r,
721
- className: "h-full w-full sm:w-auto object-cover sm:object-none transition-transform group-hover:scale-105"
733
+ className: "relative z-10 h-full w-full object-contain transition-transform group-hover:scale-105"
722
734
  }
723
735
  ),
724
- f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3", children: /* @__PURE__ */ e(P, { variant: u, children: f }) }),
725
- g && /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(P, { variant: "danger", size: "lg", children: "Esgotado" }) })
736
+ f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3 z-20", children: /* @__PURE__ */ e(A, { variant: u, children: f }) }),
737
+ g && /* @__PURE__ */ e("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-black/60", children: /* @__PURE__ */ e(A, { variant: "danger", size: "lg", children: "Esgotado" }) })
726
738
  ]
727
739
  }
728
740
  ),
@@ -743,7 +755,7 @@ const $ = x(
743
755
  )
744
756
  }
745
757
  ),
746
- /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col p-4 w-full sm:w-0 sm:min-w-full", children: [
758
+ /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col p-4", children: [
747
759
  d ? /* @__PURE__ */ e(
748
760
  "a",
749
761
  {
@@ -754,7 +766,7 @@ const $ = x(
754
766
  ) : /* @__PURE__ */ e("h3", { className: "wrap-break-word text-base font-medium text-card-foreground", children: r }),
755
767
  n && /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-[var(--muted-foreground)]", children: n }),
756
768
  l !== void 0 && /* @__PURE__ */ i("div", { className: "mt-2 flex items-center gap-2", children: [
757
- /* @__PURE__ */ e(T, { value: l, size: "sm", readonly: !0 }),
769
+ /* @__PURE__ */ e($, { value: l, size: "sm", readonly: !0 }),
758
770
  m !== void 0 && /* @__PURE__ */ i("span", { className: "text-sm text-[var(--muted-foreground)]", children: [
759
771
  "(",
760
772
  m,
@@ -779,7 +791,7 @@ const $ = x(
779
791
  variant: "primary",
780
792
  size: "md",
781
793
  fullWidth: !0,
782
- leftIcon: /* @__PURE__ */ e(R, { className: "h-4 w-4" }),
794
+ leftIcon: /* @__PURE__ */ e(_, { className: "h-4 w-4" }),
783
795
  className: o(
784
796
  "mt-4 transition-all duration-200",
785
797
  "opacity-0 translate-y-2",
@@ -794,7 +806,7 @@ const $ = x(
794
806
  }
795
807
  )
796
808
  );
797
- $.displayName = "ProductCard";
809
+ T.displayName = "ProductCard";
798
810
  const Ee = x(
799
811
  ({
800
812
  className: a,
@@ -807,7 +819,7 @@ const Ee = x(
807
819
  onChange: m,
808
820
  ...f
809
821
  }, u) => {
810
- const [p, g] = k(""), b = l !== void 0 ? l : p, N = {
822
+ const [v, g] = k(""), b = l !== void 0 ? l : v, N = {
811
823
  sm: "h-9 text-sm",
812
824
  md: "h-11 text-base",
813
825
  lg: "h-14 text-lg"
@@ -816,7 +828,7 @@ const Ee = x(
816
828
  l === void 0 && g(j), m == null || m(y);
817
829
  }, d = () => {
818
830
  l === void 0 && g(""), r == null || r();
819
- }, v = (y) => {
831
+ }, p = (y) => {
820
832
  y.key === "Enter" && t && t(b);
821
833
  };
822
834
  return /* @__PURE__ */ e("div", { className: o("relative w-full", a), children: /* @__PURE__ */ i("div", { className: "relative flex items-center", children: [
@@ -828,7 +840,7 @@ const Ee = x(
828
840
  type: "search",
829
841
  value: b,
830
842
  onChange: h,
831
- onKeyDown: v,
843
+ onKeyDown: p,
832
844
  placeholder: c,
833
845
  className: o(
834
846
  "w-full rounded-lg border-2 border-[var(--border)] bg-[var(--input-background)] pl-10 pr-10 font-normal transition-colors",
@@ -857,7 +869,7 @@ const Ee = x(
857
869
  }
858
870
  );
859
871
  Ee.displayName = "SearchBar";
860
- const Te = x(
872
+ const $e = x(
861
873
  ({
862
874
  className: a,
863
875
  price: t,
@@ -868,7 +880,7 @@ const Te = x(
868
880
  installments: l,
869
881
  ...m
870
882
  }, f) => {
871
- const u = r && r > t ? Math.round((r - t) / r * 100) : 0, p = {
883
+ const u = r && r > t ? Math.round((r - t) / r * 100) : 0, v = {
872
884
  sm: "text-base",
873
885
  md: "text-xl",
874
886
  lg: "text-2xl",
@@ -882,7 +894,7 @@ const Te = x(
882
894
  return /* @__PURE__ */ i("div", { ref: f, className: o("flex flex-col gap-1", a), ...m, children: [
883
895
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2 flex-wrap", children: [
884
896
  /* @__PURE__ */ i("div", { className: "flex items-baseline gap-2", children: [
885
- /* @__PURE__ */ i("span", { className: o("font-bold text-[var(--foreground)]", p[s]), children: [
897
+ /* @__PURE__ */ i("span", { className: o("font-bold text-[var(--foreground)]", v[s]), children: [
886
898
  n,
887
899
  " ",
888
900
  t.toFixed(2)
@@ -902,7 +914,7 @@ const Te = x(
902
914
  }
903
915
  )
904
916
  ] }),
905
- c && u > 0 && /* @__PURE__ */ i(P, { variant: "success", size: "sm", children: [
917
+ c && u > 0 && /* @__PURE__ */ i(A, { variant: "success", size: "sm", children: [
906
918
  "-",
907
919
  u,
908
920
  "%"
@@ -920,8 +932,8 @@ const Te = x(
920
932
  ] });
921
933
  }
922
934
  );
923
- Te.displayName = "PriceDisplay";
924
- const $e = x(
935
+ $e.displayName = "PriceDisplay";
936
+ const Te = x(
925
937
  ({
926
938
  className: a,
927
939
  value: t,
@@ -933,13 +945,13 @@ const $e = x(
933
945
  showLabel: m = !1,
934
946
  ...f
935
947
  }, u) => {
936
- const p = () => {
948
+ const v = () => {
937
949
  t < n && s(t + 1);
938
950
  }, g = () => {
939
951
  t > r && s(t - 1);
940
952
  }, b = (d) => {
941
- const v = parseInt(d.target.value);
942
- !isNaN(v) && v >= r && v <= n && s(v);
953
+ const p = parseInt(d.target.value);
954
+ !isNaN(p) && p >= r && p <= n && s(p);
943
955
  }, N = {
944
956
  sm: "h-8 w-8",
945
957
  md: "h-10 w-10",
@@ -990,7 +1002,7 @@ const $e = x(
990
1002
  type: "button",
991
1003
  variant: "secondary",
992
1004
  size: "sm",
993
- onClick: p,
1005
+ onClick: v,
994
1006
  disabled: l || t >= n,
995
1007
  className: o(N[c], "p-0"),
996
1008
  "aria-label": "Increase quantity",
@@ -1001,7 +1013,7 @@ const $e = x(
1001
1013
  ] });
1002
1014
  }
1003
1015
  );
1004
- $e.displayName = "QuantitySelector";
1016
+ Te.displayName = "QuantitySelector";
1005
1017
  const Be = x(
1006
1018
  ({ className: a, label: t, htmlFor: r, required: n, error: s, helperText: c, children: l, ...m }, f) => /* @__PURE__ */ i("div", { ref: f, className: o("flex flex-col gap-1.5", a), ...m, children: [
1007
1019
  t && /* @__PURE__ */ i(
@@ -1029,10 +1041,10 @@ const Be = x(
1029
1041
  ] })
1030
1042
  );
1031
1043
  Be.displayName = "FormGroup";
1032
- function At({ ...a }) {
1044
+ function Rt({ ...a }) {
1033
1045
  return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
1034
1046
  }
1035
- function Rt({ className: a, ...t }) {
1047
+ function _t({ className: a, ...t }) {
1036
1048
  return /* @__PURE__ */ e(
1037
1049
  "ol",
1038
1050
  {
@@ -1055,7 +1067,7 @@ function Et({ className: a, ...t }) {
1055
1067
  }
1056
1068
  );
1057
1069
  }
1058
- function Tt({
1070
+ function $t({
1059
1071
  asChild: a,
1060
1072
  className: t,
1061
1073
  ...r
@@ -1069,7 +1081,7 @@ function Tt({
1069
1081
  }
1070
1082
  );
1071
1083
  }
1072
- function $t({ className: a, ...t }) {
1084
+ function Tt({ className: a, ...t }) {
1073
1085
  return /* @__PURE__ */ e(
1074
1086
  "span",
1075
1087
  {
@@ -1133,7 +1145,7 @@ function qt({
1133
1145
  ...r,
1134
1146
  children: [
1135
1147
  t,
1136
- /* @__PURE__ */ e(A, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
1148
+ /* @__PURE__ */ e(R, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
1137
1149
  ]
1138
1150
  }
1139
1151
  ) });
@@ -1211,7 +1223,7 @@ const Fe = x(
1211
1223
  backgroundImage: m,
1212
1224
  overlay: f = !0,
1213
1225
  children: u,
1214
- ...p
1226
+ ...v
1215
1227
  }, g) => /* @__PURE__ */ i(
1216
1228
  "section",
1217
1229
  {
@@ -1225,9 +1237,9 @@ const Fe = x(
1225
1237
  }[t],
1226
1238
  a
1227
1239
  ),
1228
- ...p,
1240
+ ...v,
1229
1241
  children: [
1230
- m && /* @__PURE__ */ i(_, { children: [
1242
+ m && /* @__PURE__ */ i(P, { children: [
1231
1243
  /* @__PURE__ */ e(
1232
1244
  "div",
1233
1245
  {
@@ -1320,7 +1332,7 @@ const X = x(
1320
1332
  const u = r || {
1321
1333
  default: /* @__PURE__ */ e(de, { className: "h-16 w-16" }),
1322
1334
  search: /* @__PURE__ */ e(Q, { className: "h-16 w-16" }),
1323
- cart: /* @__PURE__ */ e(R, { className: "h-16 w-16" }),
1335
+ cart: /* @__PURE__ */ e(_, { className: "h-16 w-16" }),
1324
1336
  error: /* @__PURE__ */ e(le, { className: "h-16 w-16" })
1325
1337
  }[t];
1326
1338
  return /* @__PURE__ */ i(
@@ -1444,7 +1456,7 @@ const He = x(
1444
1456
  onEmptyAction: m,
1445
1457
  ...f
1446
1458
  }, u) => {
1447
- const p = {
1459
+ const v = {
1448
1460
  sm: "gap-4",
1449
1461
  md: "gap-6",
1450
1462
  lg: "gap-8"
@@ -1454,13 +1466,13 @@ const He = x(
1454
1466
  {
1455
1467
  ref: u,
1456
1468
  className: o(
1457
- "grid grid-cols-2 sm:flex sm:flex-wrap",
1458
- p[n],
1469
+ "grid grid-cols-2 lg:grid-cols-4",
1470
+ v[n],
1459
1471
  a
1460
1472
  ),
1461
1473
  ...f,
1462
1474
  children: Array.from({ length: c }).map((g, b) => /* @__PURE__ */ e(
1463
- $,
1475
+ T,
1464
1476
  {
1465
1477
  image: "",
1466
1478
  title: "",
@@ -1486,12 +1498,12 @@ const He = x(
1486
1498
  {
1487
1499
  ref: u,
1488
1500
  className: o(
1489
- "grid grid-cols-2 sm:flex sm:flex-wrap",
1490
- p[n],
1501
+ "grid grid-cols-2 lg:grid-cols-4",
1502
+ v[n],
1491
1503
  a
1492
1504
  ),
1493
1505
  ...f,
1494
- children: t.map((g, b) => /* @__PURE__ */ e($, { ...g }, b))
1506
+ children: t.map((g, b) => /* @__PURE__ */ e(T, { ...g }, b))
1495
1507
  }
1496
1508
  );
1497
1509
  }
@@ -1729,20 +1741,20 @@ function et({ children: a, as: t = "div", className: r }) {
1729
1741
  }
1730
1742
  const tt = x(
1731
1743
  ({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...s }, c) => {
1732
- const [l, m] = k("light"), [f, u] = k(16), [p, g] = k(!1);
1744
+ const [l, m] = k("light"), [f, u] = k(16), [v, g] = k(!1);
1733
1745
  M(() => {
1734
- const v = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
1735
- m(v);
1746
+ const p = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
1747
+ m(p);
1736
1748
  const y = Number(localStorage.getItem("a11y-font-size"));
1737
1749
  Number.isFinite(y) && y > 0 && u(y);
1738
1750
  }, []), M(() => {
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 = () => {
1751
+ if (!v && typeof window < "u" && !document.querySelector('script[src*="vlibras"]')) {
1752
+ const p = document.createElement("script");
1753
+ p.src = "https://vlibras.gov.br/app/vlibras-plugin.js", p.async = !0, p.onload = () => {
1742
1754
  g(!0), window.VLibras && new window.VLibras.Widget("https://vlibras.gov.br/app");
1743
- }, document.body.appendChild(v);
1755
+ }, document.body.appendChild(p);
1744
1756
  }
1745
- }, [p]);
1757
+ }, [v]);
1746
1758
  const b = () => {
1747
1759
  const d = l === "light" ? "dark" : "light";
1748
1760
  m(d), document.documentElement.setAttribute("data-theme", d), localStorage.setItem("a11y-theme", d), t == null || t(d);
@@ -1807,7 +1819,7 @@ const tt = x(
1807
1819
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
1808
1820
  "disabled:opacity-40 disabled:cursor-not-allowed"
1809
1821
  ),
1810
- children: /* @__PURE__ */ e(pe, { className: "h-4 w-4" })
1822
+ children: /* @__PURE__ */ e(ve, { className: "h-4 w-4" })
1811
1823
  }
1812
1824
  )
1813
1825
  ] }),
@@ -1821,7 +1833,7 @@ const tt = x(
1821
1833
  "p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
1822
1834
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
1823
1835
  ),
1824
- children: l === "light" ? /* @__PURE__ */ e(ve, { className: "h-4 w-4" }) : /* @__PURE__ */ e(be, { className: "h-4 w-4" })
1836
+ children: l === "light" ? /* @__PURE__ */ e(pe, { className: "h-4 w-4" }) : /* @__PURE__ */ e(be, { className: "h-4 w-4" })
1825
1837
  }
1826
1838
  ),
1827
1839
  /* @__PURE__ */ e(
@@ -1830,15 +1842,15 @@ const tt = x(
1830
1842
  type: "button",
1831
1843
  onClick: () => g((d) => !d),
1832
1844
  "aria-label": "Ativar VLibras",
1833
- "aria-pressed": p,
1845
+ "aria-pressed": v,
1834
1846
  className: o(
1835
1847
  "px-3 py-1 text-xs font-medium rounded-md transition-colors",
1836
1848
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
1837
1849
  ),
1838
1850
  style: {
1839
- backgroundColor: p ? "var(--primary)" : "transparent",
1840
- color: p ? "var(--primary-foreground)" : "var(--muted-foreground)",
1841
- border: p ? "none" : "1px solid var(--border)"
1851
+ backgroundColor: v ? "var(--primary)" : "transparent",
1852
+ color: v ? "var(--primary-foreground)" : "var(--muted-foreground)",
1853
+ border: v ? "none" : "1px solid var(--border)"
1842
1854
  },
1843
1855
  children: "VLibras"
1844
1856
  }
@@ -1858,21 +1870,21 @@ const at = x(
1858
1870
  autoplay: n = !0,
1859
1871
  ...s
1860
1872
  }, c) => {
1861
- const [l, m] = k(0), [f, u] = k(!1), [p, g] = k(!1);
1873
+ const [l, m] = k(0), [f, u] = k(!1), [v, g] = k(!1);
1862
1874
  M(() => {
1863
1875
  const d = window.matchMedia("(prefers-reduced-motion: reduce)");
1864
1876
  g(d.matches);
1865
- const v = (y) => {
1877
+ const p = (y) => {
1866
1878
  g(y.matches);
1867
1879
  };
1868
- return d.addEventListener("change", v), () => d.removeEventListener("change", v);
1880
+ return d.addEventListener("change", p), () => d.removeEventListener("change", p);
1869
1881
  }, []), M(() => {
1870
- if (!n || f || p) return;
1882
+ if (!n || f || v) return;
1871
1883
  const d = setInterval(() => {
1872
- m((v) => (v + 1) % t.length);
1884
+ m((p) => (p + 1) % t.length);
1873
1885
  }, r);
1874
1886
  return () => clearInterval(d);
1875
- }, [n, r, t.length, f, p]);
1887
+ }, [n, r, t.length, f, v]);
1876
1888
  const b = (d) => {
1877
1889
  m(d), u(!0), setTimeout(() => u(!1), r);
1878
1890
  }, N = () => {
@@ -1889,14 +1901,14 @@ const at = x(
1889
1901
  onMouseLeave: () => u(!1),
1890
1902
  ...s,
1891
1903
  children: [
1892
- /* @__PURE__ */ e("div", { className: "relative", children: t.map((d, v) => /* @__PURE__ */ i(
1904
+ /* @__PURE__ */ e("div", { className: "relative", children: t.map((d, p) => /* @__PURE__ */ i(
1893
1905
  "div",
1894
1906
  {
1895
1907
  className: o(
1896
1908
  "w-full transition-opacity duration-700",
1897
- v === l ? "block" : "hidden"
1909
+ p === l ? "block" : "hidden"
1898
1910
  ),
1899
- "aria-hidden": v !== l,
1911
+ "aria-hidden": p !== l,
1900
1912
  children: [
1901
1913
  /* @__PURE__ */ i("picture", { children: [
1902
1914
  /* @__PURE__ */ e(
@@ -1920,7 +1932,7 @@ const at = x(
1920
1932
  srcSet: `${d.imageMobile} 1x, ${d.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
1921
1933
  alt: d.title,
1922
1934
  className: "w-full object-cover aspect-3/2 md:aspect-video lg:aspect-1920/560",
1923
- loading: v === 0 ? "eager" : "lazy"
1935
+ loading: p === 0 ? "eager" : "lazy"
1924
1936
  }
1925
1937
  )
1926
1938
  ] }),
@@ -1940,7 +1952,7 @@ const at = x(
1940
1952
  },
1941
1953
  d.id
1942
1954
  )) }),
1943
- t.length > 1 && /* @__PURE__ */ i(_, { children: [
1955
+ t.length > 1 && /* @__PURE__ */ i(P, { children: [
1944
1956
  /* @__PURE__ */ e(
1945
1957
  "button",
1946
1958
  {
@@ -1960,18 +1972,18 @@ const at = x(
1960
1972
  }
1961
1973
  )
1962
1974
  ] }),
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(
1975
+ 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(
1964
1976
  "button",
1965
1977
  {
1966
- onClick: () => b(v),
1978
+ onClick: () => b(p),
1967
1979
  className: o(
1968
1980
  "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
- v === l ? "w-8 bg-white" : "w-2 bg-white/50 hover:bg-white/70"
1981
+ p === l ? "w-8 bg-white" : "w-2 bg-white/50 hover:bg-white/70"
1970
1982
  ),
1971
- "aria-label": `Ir para slide ${v + 1}`,
1972
- "aria-current": v === l
1983
+ "aria-label": `Ir para slide ${p + 1}`,
1984
+ "aria-current": p === l
1973
1985
  },
1974
- v
1986
+ p
1975
1987
  )) })
1976
1988
  ]
1977
1989
  }
@@ -2049,7 +2061,7 @@ function nt({
2049
2061
  t,
2050
2062
  " ",
2051
2063
  /* @__PURE__ */ e(
2052
- A,
2064
+ R,
2053
2065
  {
2054
2066
  className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
2055
2067
  "aria-hidden": "true"
@@ -2328,7 +2340,7 @@ function ft({ onSubmit: a }) {
2328
2340
  value: t,
2329
2341
  onChange: (l) => r(l.target.value),
2330
2342
  placeholder: "Seu melhor e-mail",
2331
- className: "min-h-[44px] flex-1 rounded-lg px-4 text-sm text-[#1a1e2e] placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-white"
2343
+ className: "min-h-[44px] flex-1 rounded-lg border border-white px-4 text-sm text-[#1a1e2e] placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-white"
2332
2344
  }
2333
2345
  ),
2334
2346
  /* @__PURE__ */ e(
@@ -2386,17 +2398,17 @@ function gt({ title: a, links: t }) {
2386
2398
  )
2387
2399
  ] });
2388
2400
  }
2389
- const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...n }) => {
2401
+ const vt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...n }) => {
2390
2402
  const [s, c] = k("light");
2391
2403
  M(() => {
2392
2404
  const u = document.documentElement;
2393
2405
  c(u.getAttribute("data-theme") ?? "light");
2394
- const p = new MutationObserver(() => {
2406
+ const v = new MutationObserver(() => {
2395
2407
  c(u.getAttribute("data-theme") ?? "light");
2396
2408
  });
2397
- return p.observe(u, { attributes: !0, attributeFilter: ["data-theme"] }), () => p.disconnect();
2409
+ return v.observe(u, { attributes: !0, attributeFilter: ["data-theme"] }), () => v.disconnect();
2398
2410
  }, []);
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";
2411
+ 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_institucional.png", m = a === "perabook" ? "PeraBook" : "Elo Editora", f = a === "perabook" ? "Educação socioemocional e diversidade cultural" : "Literatura infantojuvenil que transforma vidas";
2400
2412
  return /* @__PURE__ */ i(
2401
2413
  "footer",
2402
2414
  {
@@ -2419,10 +2431,10 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
2419
2431
  }
2420
2432
  ),
2421
2433
  /* @__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: p, Icon: g }) => /* @__PURE__ */ e(
2434
+ /* @__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(
2423
2435
  "a",
2424
2436
  {
2425
- href: p,
2437
+ href: v,
2426
2438
  target: "_blank",
2427
2439
  rel: "noopener noreferrer",
2428
2440
  "aria-label": u,
@@ -2456,7 +2468,7 @@ const pt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
2456
2468
  }
2457
2469
  );
2458
2470
  };
2459
- pt.displayName = "Footer";
2471
+ vt.displayName = "Footer";
2460
2472
  function aa({ children: a, className: t }) {
2461
2473
  return /* @__PURE__ */ e(
2462
2474
  "div",
@@ -2470,7 +2482,7 @@ function aa({ children: a, className: t }) {
2470
2482
  }
2471
2483
  );
2472
2484
  }
2473
- const vt = {
2485
+ const pt = {
2474
2486
  1: "col-span-1",
2475
2487
  2: "col-span-2",
2476
2488
  3: "col-span-3",
@@ -2479,7 +2491,7 @@ const vt = {
2479
2491
  6: "col-span-6"
2480
2492
  };
2481
2493
  function ra({ children: a, span: t, className: r }) {
2482
- return /* @__PURE__ */ e("div", { "data-slot": "col", className: o("min-w-0", t && vt[t], r), children: a });
2494
+ return /* @__PURE__ */ e("div", { "data-slot": "col", className: o("min-w-0", t && pt[t], r), children: a });
2483
2495
  }
2484
2496
  export {
2485
2497
  Vt as Accordion,
@@ -2487,12 +2499,12 @@ export {
2487
2499
  Ft as AccordionItem,
2488
2500
  qt as AccordionTrigger,
2489
2501
  De as Avatar,
2490
- P as Badge,
2491
- At as Breadcrumb,
2502
+ A as Badge,
2503
+ Rt as Breadcrumb,
2492
2504
  Et as BreadcrumbItem,
2493
- Tt as BreadcrumbLink,
2494
- Rt as BreadcrumbList,
2495
- $t as BreadcrumbPage,
2505
+ $t as BreadcrumbLink,
2506
+ _t as BreadcrumbList,
2507
+ Tt as BreadcrumbPage,
2496
2508
  Bt as BreadcrumbSeparator,
2497
2509
  C as Button,
2498
2510
  Dt as Checkbox,
@@ -2504,11 +2516,11 @@ export {
2504
2516
  Xt as DialogHeader,
2505
2517
  Zt as DialogTitle,
2506
2518
  Kt as DialogTrigger,
2507
- Pe as Divider,
2519
+ Ae as Divider,
2508
2520
  Qe as Drawer,
2509
2521
  X as EmptyState,
2510
2522
  qe as ErrorState,
2511
- pt as Footer,
2523
+ vt as Footer,
2512
2524
  Be as FormGroup,
2513
2525
  aa as Grid,
2514
2526
  Fe as Hero,
@@ -2516,14 +2528,14 @@ export {
2516
2528
  zt as Input,
2517
2529
  ct as MegaMenu,
2518
2530
  Wt as Modal,
2519
- Te as PriceDisplay,
2520
- $ as ProductCard,
2531
+ $e as PriceDisplay,
2532
+ T as ProductCard,
2521
2533
  He as ProductGrid,
2522
2534
  la as ProgressBar,
2523
- $e as QuantitySelector,
2535
+ Te as QuantitySelector,
2524
2536
  Lt as RadioGroup,
2525
- _t as RadioGroupItem,
2526
- T as Rating,
2537
+ Pt as RadioGroupItem,
2538
+ $ as Rating,
2527
2539
  Ee as SearchBar,
2528
2540
  Ct as Select,
2529
2541
  jt as SelectContent,
@@ -2536,9 +2548,9 @@ export {
2536
2548
  Ze as SheetHeader,
2537
2549
  Je as SheetTitle,
2538
2550
  We as SheetTrigger,
2539
- _e as Spinner,
2551
+ Pe as Spinner,
2540
2552
  Ie as Textarea,
2541
- Pt as Toggle,
2553
+ At as Toggle,
2542
2554
  Gt as Tooltip,
2543
2555
  Qt as TooltipContent,
2544
2556
  Ve as TooltipProvider,