@grupo-elo-editorial/shared-ui-react 1.2.1 → 1.2.2
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 +12 -0
- package/dist/index.js +150 -164
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { twMerge as
|
|
2
|
+
import { clsx as Z } from "clsx";
|
|
3
|
+
import { twMerge as J } from "tailwind-merge";
|
|
4
4
|
import { jsx as e, jsxs as i, Fragment as A } from "react/jsx-runtime";
|
|
5
5
|
import { forwardRef as N, useState as k, useEffect as M } from "react";
|
|
6
|
-
import { Loader2 as V, User as
|
|
6
|
+
import { Loader2 as V, User as ee, Star as te, CheckIcon as U, ChevronDownIcon as E, ChevronUpIcon as ae, CircleIcon as re, ShoppingCart as L, 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 P } from "class-variance-authority";
|
|
8
8
|
import * as z from "@radix-ui/react-select";
|
|
9
9
|
import * as F from "@radix-ui/react-checkbox";
|
|
10
10
|
import * as T from "@radix-ui/react-radio-group";
|
|
11
11
|
import * as q from "@radix-ui/react-switch";
|
|
12
|
-
import { Slot as
|
|
12
|
+
import { Slot as Ce } from "@radix-ui/react-slot";
|
|
13
13
|
import * as _ from "@radix-ui/react-accordion";
|
|
14
14
|
import * as I from "@radix-ui/react-tooltip";
|
|
15
15
|
import { toast as na } from "sonner";
|
|
@@ -17,9 +17,9 @@ import { Progress as la } from "@radix-ui/react-progress";
|
|
|
17
17
|
import * as w from "@radix-ui/react-dialog";
|
|
18
18
|
import * as S from "@radix-ui/react-navigation-menu";
|
|
19
19
|
function o(...a) {
|
|
20
|
-
return
|
|
20
|
+
return J(Z(a));
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Se = P(
|
|
23
23
|
"inline-flex items-center justify-center gap-2 rounded-lg font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 whitespace-nowrap",
|
|
24
24
|
{
|
|
25
25
|
variants: {
|
|
@@ -52,7 +52,7 @@ const X = P(
|
|
|
52
52
|
size: r,
|
|
53
53
|
fullWidth: n,
|
|
54
54
|
isLoading: s,
|
|
55
|
-
leftIcon:
|
|
55
|
+
leftIcon: d,
|
|
56
56
|
rightIcon: l,
|
|
57
57
|
children: m,
|
|
58
58
|
disabled: f,
|
|
@@ -60,7 +60,7 @@ const X = P(
|
|
|
60
60
|
}, v) => /* @__PURE__ */ e(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
|
-
className: o(
|
|
63
|
+
className: o(Se({ variant: t, size: r, fullWidth: n, className: a })),
|
|
64
64
|
ref: v,
|
|
65
65
|
disabled: f || s,
|
|
66
66
|
...u,
|
|
@@ -68,7 +68,7 @@ const X = P(
|
|
|
68
68
|
/* @__PURE__ */ e(V, { className: "h-4 w-4 animate-spin" }),
|
|
69
69
|
m && /* @__PURE__ */ e("span", { children: m })
|
|
70
70
|
] }) : /* @__PURE__ */ i(A, { children: [
|
|
71
|
-
|
|
71
|
+
d && /* @__PURE__ */ e("span", { className: "inline-flex", children: d }),
|
|
72
72
|
m,
|
|
73
73
|
l && /* @__PURE__ */ e("span", { className: "inline-flex", children: l })
|
|
74
74
|
] })
|
|
@@ -132,7 +132,7 @@ const je = P(
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
), D = N(
|
|
135
|
-
({ className: a, variant: t, size: r, icon: n, onRemove: s, children:
|
|
135
|
+
({ className: a, variant: t, size: r, icon: n, onRemove: s, children: d, ...l }, m) => /* @__PURE__ */ i(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
138
|
ref: m,
|
|
@@ -140,7 +140,7 @@ const je = P(
|
|
|
140
140
|
...l,
|
|
141
141
|
children: [
|
|
142
142
|
n && /* @__PURE__ */ e("span", { className: "mr-1 inline-flex", children: n }),
|
|
143
|
-
|
|
143
|
+
d,
|
|
144
144
|
s && /* @__PURE__ */ e(
|
|
145
145
|
"button",
|
|
146
146
|
{
|
|
@@ -171,8 +171,8 @@ const Me = P(
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
), _e = N(
|
|
174
|
-
({ className: a, size: t, src: r, alt: n, name: s, showStatus:
|
|
175
|
-
const [u, v] = k(!1), g = (x) => x.split(" ").map((
|
|
174
|
+
({ className: a, size: t, src: r, alt: n, name: s, showStatus: d, statusType: l = "online", ...m }, f) => {
|
|
175
|
+
const [u, v] = k(!1), g = (x) => x.split(" ").map((c) => c[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)]",
|
|
@@ -193,8 +193,8 @@ const Me = P(
|
|
|
193
193
|
className: "h-full w-full object-cover",
|
|
194
194
|
...m
|
|
195
195
|
}
|
|
196
|
-
) : s ? /* @__PURE__ */ e("span", { className: "font-medium", children: g(s) }) : /* @__PURE__ */ e(
|
|
197
|
-
|
|
196
|
+
) : s ? /* @__PURE__ */ e("span", { className: "font-medium", children: g(s) }) : /* @__PURE__ */ e(ee, { className: "h-1/2 w-1/2" }),
|
|
197
|
+
d && /* @__PURE__ */ e(
|
|
198
198
|
"span",
|
|
199
199
|
{
|
|
200
200
|
className: o(
|
|
@@ -239,7 +239,7 @@ const Pe = P("animate-spin text-[var(--brand-primary)]", {
|
|
|
239
239
|
);
|
|
240
240
|
Ae.displayName = "Spinner";
|
|
241
241
|
const De = N(
|
|
242
|
-
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...s },
|
|
242
|
+
({ className: a, orientation: t = "horizontal", variant: r = "solid", text: n, ...s }, d) => {
|
|
243
243
|
const l = {
|
|
244
244
|
solid: "border-solid",
|
|
245
245
|
dashed: "border-dashed",
|
|
@@ -249,7 +249,7 @@ const De = N(
|
|
|
249
249
|
/* @__PURE__ */ e(
|
|
250
250
|
"hr",
|
|
251
251
|
{
|
|
252
|
-
ref:
|
|
252
|
+
ref: d,
|
|
253
253
|
className: o(
|
|
254
254
|
"flex-1 border-[var(--border)]",
|
|
255
255
|
l[r]
|
|
@@ -270,7 +270,7 @@ const De = N(
|
|
|
270
270
|
] }) : /* @__PURE__ */ e(
|
|
271
271
|
"hr",
|
|
272
272
|
{
|
|
273
|
-
ref:
|
|
273
|
+
ref: d,
|
|
274
274
|
role: "separator",
|
|
275
275
|
"aria-orientation": t,
|
|
276
276
|
className: o(
|
|
@@ -292,7 +292,7 @@ const $ = N(
|
|
|
292
292
|
maxRating: r = 5,
|
|
293
293
|
size: n = "md",
|
|
294
294
|
readonly: s = !1,
|
|
295
|
-
onChange:
|
|
295
|
+
onChange: d,
|
|
296
296
|
showValue: l = !1,
|
|
297
297
|
...m
|
|
298
298
|
}, f) => {
|
|
@@ -301,7 +301,7 @@ const $ = N(
|
|
|
301
301
|
md: "h-5 w-5",
|
|
302
302
|
lg: "h-6 w-6"
|
|
303
303
|
}, b = (x) => {
|
|
304
|
-
!s &&
|
|
304
|
+
!s && d && d(x);
|
|
305
305
|
}, h = u || t;
|
|
306
306
|
return /* @__PURE__ */ i(
|
|
307
307
|
"div",
|
|
@@ -312,8 +312,8 @@ const $ = N(
|
|
|
312
312
|
"aria-label": `Rating: ${t} out of ${r}`,
|
|
313
313
|
...m,
|
|
314
314
|
children: [
|
|
315
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (x,
|
|
316
|
-
const
|
|
315
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-0.5", children: Array.from({ length: r }, (x, c) => c + 1).map((x) => {
|
|
316
|
+
const c = x <= h;
|
|
317
317
|
return /* @__PURE__ */ e(
|
|
318
318
|
"button",
|
|
319
319
|
{
|
|
@@ -328,12 +328,12 @@ const $ = N(
|
|
|
328
328
|
),
|
|
329
329
|
"aria-label": `Rate ${x} out of ${r}`,
|
|
330
330
|
children: /* @__PURE__ */ e(
|
|
331
|
-
|
|
331
|
+
te,
|
|
332
332
|
{
|
|
333
333
|
className: o(
|
|
334
334
|
g[n],
|
|
335
335
|
"transition-all",
|
|
336
|
-
|
|
336
|
+
c ? "fill-[var(--warning)] text-[var(--warning)]" : "fill-none text-[var(--muted-foreground)]"
|
|
337
337
|
)
|
|
338
338
|
}
|
|
339
339
|
)
|
|
@@ -465,7 +465,7 @@ function Ee({
|
|
|
465
465
|
a
|
|
466
466
|
),
|
|
467
467
|
...t,
|
|
468
|
-
children: /* @__PURE__ */ e(
|
|
468
|
+
children: /* @__PURE__ */ e(ae, { className: "size-4" })
|
|
469
469
|
}
|
|
470
470
|
);
|
|
471
471
|
}
|
|
@@ -541,7 +541,7 @@ function Pt({
|
|
|
541
541
|
{
|
|
542
542
|
"data-slot": "radio-group-indicator",
|
|
543
543
|
className: "relative flex items-center justify-center",
|
|
544
|
-
children: /* @__PURE__ */ e(
|
|
544
|
+
children: /* @__PURE__ */ e(re, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
545
545
|
}
|
|
546
546
|
)
|
|
547
547
|
}
|
|
@@ -586,7 +586,7 @@ const R = N(
|
|
|
586
586
|
title: r,
|
|
587
587
|
author: n,
|
|
588
588
|
price: s,
|
|
589
|
-
originalPrice:
|
|
589
|
+
originalPrice: d,
|
|
590
590
|
rating: l,
|
|
591
591
|
reviewCount: m,
|
|
592
592
|
badge: f,
|
|
@@ -596,7 +596,7 @@ const R = N(
|
|
|
596
596
|
onAddToCart: b,
|
|
597
597
|
onToggleFavorite: h,
|
|
598
598
|
isFavorite: x = !1,
|
|
599
|
-
href:
|
|
599
|
+
href: c,
|
|
600
600
|
orientation: p = "vertical",
|
|
601
601
|
...y
|
|
602
602
|
}, j) => v ? /* @__PURE__ */ i(
|
|
@@ -640,7 +640,7 @@ const R = N(
|
|
|
640
640
|
/* @__PURE__ */ e(
|
|
641
641
|
H,
|
|
642
642
|
{
|
|
643
|
-
href:
|
|
643
|
+
href: c,
|
|
644
644
|
className: "block h-24 w-20 shrink-0 overflow-hidden rounded-lg",
|
|
645
645
|
children: /* @__PURE__ */ e(
|
|
646
646
|
"img",
|
|
@@ -653,10 +653,10 @@ const R = N(
|
|
|
653
653
|
}
|
|
654
654
|
),
|
|
655
655
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
656
|
-
|
|
656
|
+
c ? /* @__PURE__ */ e(
|
|
657
657
|
"a",
|
|
658
658
|
{
|
|
659
|
-
href:
|
|
659
|
+
href: c,
|
|
660
660
|
className: "line-clamp-2 text-sm 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",
|
|
661
661
|
children: r
|
|
662
662
|
}
|
|
@@ -675,9 +675,9 @@ const R = N(
|
|
|
675
675
|
"R$ ",
|
|
676
676
|
s.toFixed(2)
|
|
677
677
|
] }),
|
|
678
|
-
|
|
678
|
+
d && d > s && /* @__PURE__ */ i("span", { className: "text-xs text-[var(--muted-foreground)] line-through", children: [
|
|
679
679
|
"R$ ",
|
|
680
|
-
|
|
680
|
+
d.toFixed(2)
|
|
681
681
|
] })
|
|
682
682
|
] }),
|
|
683
683
|
b && /* @__PURE__ */ e(
|
|
@@ -710,7 +710,7 @@ const R = N(
|
|
|
710
710
|
/* @__PURE__ */ i(
|
|
711
711
|
H,
|
|
712
712
|
{
|
|
713
|
-
href:
|
|
713
|
+
href: c,
|
|
714
714
|
className: "relative block aspect-[3/4] w-full overflow-hidden rounded-t-lg",
|
|
715
715
|
children: [
|
|
716
716
|
/* @__PURE__ */ e(
|
|
@@ -733,7 +733,7 @@ const R = N(
|
|
|
733
733
|
className: "absolute right-3 top-3 rounded-full bg-white/90 p-2 transition-all hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
734
734
|
"aria-label": x ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
735
735
|
children: /* @__PURE__ */ e(
|
|
736
|
-
|
|
736
|
+
oe,
|
|
737
737
|
{
|
|
738
738
|
className: o(
|
|
739
739
|
"h-5 w-5",
|
|
@@ -744,10 +744,10 @@ const R = N(
|
|
|
744
744
|
}
|
|
745
745
|
),
|
|
746
746
|
/* @__PURE__ */ i("div", { className: "flex flex-1 flex-col p-4", children: [
|
|
747
|
-
|
|
747
|
+
c ? /* @__PURE__ */ e(
|
|
748
748
|
"a",
|
|
749
749
|
{
|
|
750
|
-
href:
|
|
750
|
+
href: c,
|
|
751
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",
|
|
752
752
|
children: r
|
|
753
753
|
}
|
|
@@ -766,9 +766,9 @@ const R = N(
|
|
|
766
766
|
"R$ ",
|
|
767
767
|
s.toFixed(2)
|
|
768
768
|
] }),
|
|
769
|
-
|
|
769
|
+
d && d > s && /* @__PURE__ */ i("span", { className: "text-sm text-[var(--muted-foreground)] line-through", children: [
|
|
770
770
|
"R$ ",
|
|
771
|
-
|
|
771
|
+
d.toFixed(2)
|
|
772
772
|
] })
|
|
773
773
|
] }),
|
|
774
774
|
b && /* @__PURE__ */ e(
|
|
@@ -802,7 +802,7 @@ const Te = N(
|
|
|
802
802
|
onClear: r,
|
|
803
803
|
isLoading: n = !1,
|
|
804
804
|
size: s = "md",
|
|
805
|
-
placeholder:
|
|
805
|
+
placeholder: d = "Buscar...",
|
|
806
806
|
value: l,
|
|
807
807
|
onChange: m,
|
|
808
808
|
...f
|
|
@@ -814,7 +814,7 @@ const Te = N(
|
|
|
814
814
|
}, x = (y) => {
|
|
815
815
|
const j = y.target.value;
|
|
816
816
|
l === void 0 && g(j), m == null || m(y);
|
|
817
|
-
},
|
|
817
|
+
}, c = () => {
|
|
818
818
|
l === void 0 && g(""), r == null || r();
|
|
819
819
|
}, p = (y) => {
|
|
820
820
|
y.key === "Enter" && t && t(b);
|
|
@@ -829,7 +829,7 @@ const Te = N(
|
|
|
829
829
|
value: b,
|
|
830
830
|
onChange: x,
|
|
831
831
|
onKeyDown: p,
|
|
832
|
-
placeholder:
|
|
832
|
+
placeholder: d,
|
|
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",
|
|
835
835
|
"placeholder:text-[var(--muted-foreground)]",
|
|
@@ -846,10 +846,10 @@ const Te = N(
|
|
|
846
846
|
"button",
|
|
847
847
|
{
|
|
848
848
|
type: "button",
|
|
849
|
-
onClick:
|
|
849
|
+
onClick: c,
|
|
850
850
|
className: "rounded-full p-1 hover:bg-[var(--muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
851
851
|
"aria-label": "Clear search",
|
|
852
|
-
children: /* @__PURE__ */ e(
|
|
852
|
+
children: /* @__PURE__ */ e(ie, { className: "h-4 w-4 text-[var(--muted-foreground)]" })
|
|
853
853
|
}
|
|
854
854
|
)
|
|
855
855
|
] })
|
|
@@ -864,7 +864,7 @@ const $e = N(
|
|
|
864
864
|
originalPrice: r,
|
|
865
865
|
currency: n = "R$",
|
|
866
866
|
size: s = "md",
|
|
867
|
-
showDiscount:
|
|
867
|
+
showDiscount: d = !0,
|
|
868
868
|
installments: l,
|
|
869
869
|
...m
|
|
870
870
|
}, f) => {
|
|
@@ -902,7 +902,7 @@ const $e = N(
|
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] }),
|
|
905
|
-
|
|
905
|
+
d && u > 0 && /* @__PURE__ */ i(D, { variant: "success", size: "sm", children: [
|
|
906
906
|
"-",
|
|
907
907
|
u,
|
|
908
908
|
"%"
|
|
@@ -928,7 +928,7 @@ const Re = N(
|
|
|
928
928
|
min: r = 1,
|
|
929
929
|
max: n = 99,
|
|
930
930
|
onChange: s,
|
|
931
|
-
size:
|
|
931
|
+
size: d = "md",
|
|
932
932
|
disabled: l = !1,
|
|
933
933
|
showLabel: m = !1,
|
|
934
934
|
...f
|
|
@@ -937,8 +937,8 @@ const Re = N(
|
|
|
937
937
|
t < n && s(t + 1);
|
|
938
938
|
}, g = () => {
|
|
939
939
|
t > r && s(t - 1);
|
|
940
|
-
}, b = (
|
|
941
|
-
const p = parseInt(
|
|
940
|
+
}, b = (c) => {
|
|
941
|
+
const p = parseInt(c.target.value);
|
|
942
942
|
!isNaN(p) && p >= r && p <= n && s(p);
|
|
943
943
|
}, h = {
|
|
944
944
|
sm: "h-8 w-8",
|
|
@@ -960,9 +960,9 @@ const Re = N(
|
|
|
960
960
|
size: "sm",
|
|
961
961
|
onClick: g,
|
|
962
962
|
disabled: l || t <= r,
|
|
963
|
-
className: o(h[
|
|
963
|
+
className: o(h[d], "p-0"),
|
|
964
964
|
"aria-label": "Decrease quantity",
|
|
965
|
-
children: /* @__PURE__ */ e(
|
|
965
|
+
children: /* @__PURE__ */ e(ne, { className: "h-4 w-4" })
|
|
966
966
|
}
|
|
967
967
|
),
|
|
968
968
|
/* @__PURE__ */ e(
|
|
@@ -979,7 +979,7 @@ const Re = N(
|
|
|
979
979
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2",
|
|
980
980
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
981
981
|
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
982
|
-
x[
|
|
982
|
+
x[d]
|
|
983
983
|
),
|
|
984
984
|
"aria-label": "Quantity"
|
|
985
985
|
}
|
|
@@ -992,9 +992,9 @@ const Re = N(
|
|
|
992
992
|
size: "sm",
|
|
993
993
|
onClick: v,
|
|
994
994
|
disabled: l || t >= n,
|
|
995
|
-
className: o(h[
|
|
995
|
+
className: o(h[d], "p-0"),
|
|
996
996
|
"aria-label": "Increase quantity",
|
|
997
|
-
children: /* @__PURE__ */ e(
|
|
997
|
+
children: /* @__PURE__ */ e(se, { className: "h-4 w-4" })
|
|
998
998
|
}
|
|
999
999
|
)
|
|
1000
1000
|
] })
|
|
@@ -1003,7 +1003,7 @@ const Re = N(
|
|
|
1003
1003
|
);
|
|
1004
1004
|
Re.displayName = "QuantitySelector";
|
|
1005
1005
|
const Be = N(
|
|
1006
|
-
({ className: a, label: t, htmlFor: r, required: n, error: s, helperText:
|
|
1006
|
+
({ className: a, label: t, htmlFor: r, required: n, error: s, helperText: d, children: l, ...m }, f) => /* @__PURE__ */ i("div", { ref: f, className: o("flex flex-col gap-1.5", a), ...m, children: [
|
|
1007
1007
|
t && /* @__PURE__ */ i(
|
|
1008
1008
|
"label",
|
|
1009
1009
|
{
|
|
@@ -1016,14 +1016,14 @@ const Be = N(
|
|
|
1016
1016
|
}
|
|
1017
1017
|
),
|
|
1018
1018
|
l,
|
|
1019
|
-
(s ||
|
|
1019
|
+
(s || d) && /* @__PURE__ */ e(
|
|
1020
1020
|
"p",
|
|
1021
1021
|
{
|
|
1022
1022
|
className: o(
|
|
1023
1023
|
"text-sm",
|
|
1024
1024
|
s ? "text-[var(--destructive)]" : "text-[var(--muted-foreground)]"
|
|
1025
1025
|
),
|
|
1026
|
-
children: s ||
|
|
1026
|
+
children: s || d
|
|
1027
1027
|
}
|
|
1028
1028
|
)
|
|
1029
1029
|
] })
|
|
@@ -1061,7 +1061,7 @@ function Tt({
|
|
|
1061
1061
|
...r
|
|
1062
1062
|
}) {
|
|
1063
1063
|
return /* @__PURE__ */ e(
|
|
1064
|
-
a ?
|
|
1064
|
+
a ? Ce : "a",
|
|
1065
1065
|
{
|
|
1066
1066
|
"data-slot": "breadcrumb-link",
|
|
1067
1067
|
className: o("hover:text-foreground transition-colors", t),
|
|
@@ -1206,7 +1206,7 @@ const Fe = N(
|
|
|
1206
1206
|
title: r,
|
|
1207
1207
|
subtitle: n,
|
|
1208
1208
|
description: s,
|
|
1209
|
-
primaryCTA:
|
|
1209
|
+
primaryCTA: d,
|
|
1210
1210
|
secondaryCTA: l,
|
|
1211
1211
|
backgroundImage: m,
|
|
1212
1212
|
overlay: f = !0,
|
|
@@ -1276,14 +1276,14 @@ const Fe = N(
|
|
|
1276
1276
|
children: s
|
|
1277
1277
|
}
|
|
1278
1278
|
),
|
|
1279
|
-
(
|
|
1280
|
-
|
|
1279
|
+
(d || l) && /* @__PURE__ */ i("div", { className: "mt-8 flex flex-wrap gap-4", children: [
|
|
1280
|
+
d && /* @__PURE__ */ e(
|
|
1281
1281
|
C,
|
|
1282
1282
|
{
|
|
1283
1283
|
size: "lg",
|
|
1284
|
-
onClick:
|
|
1284
|
+
onClick: d.onClick,
|
|
1285
1285
|
variant: "primary",
|
|
1286
|
-
children:
|
|
1286
|
+
children: d.label
|
|
1287
1287
|
}
|
|
1288
1288
|
),
|
|
1289
1289
|
l && /* @__PURE__ */ e(
|
|
@@ -1307,21 +1307,21 @@ const Fe = N(
|
|
|
1307
1307
|
)
|
|
1308
1308
|
);
|
|
1309
1309
|
Fe.displayName = "Hero";
|
|
1310
|
-
const
|
|
1310
|
+
const X = N(
|
|
1311
1311
|
({
|
|
1312
1312
|
className: a,
|
|
1313
1313
|
variant: t = "default",
|
|
1314
1314
|
icon: r,
|
|
1315
1315
|
title: n,
|
|
1316
1316
|
description: s,
|
|
1317
|
-
action:
|
|
1317
|
+
action: d,
|
|
1318
1318
|
...l
|
|
1319
1319
|
}, m) => {
|
|
1320
1320
|
const u = r || {
|
|
1321
|
-
default: /* @__PURE__ */ e(
|
|
1321
|
+
default: /* @__PURE__ */ e(de, { className: "h-16 w-16" }),
|
|
1322
1322
|
search: /* @__PURE__ */ e(Q, { className: "h-16 w-16" }),
|
|
1323
1323
|
cart: /* @__PURE__ */ e(L, { className: "h-16 w-16" }),
|
|
1324
|
-
error: /* @__PURE__ */ e(
|
|
1324
|
+
error: /* @__PURE__ */ e(le, { className: "h-16 w-16" })
|
|
1325
1325
|
}[t];
|
|
1326
1326
|
return /* @__PURE__ */ i(
|
|
1327
1327
|
"div",
|
|
@@ -1336,14 +1336,14 @@ const Y = N(
|
|
|
1336
1336
|
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--muted)] p-6 text-[var(--muted-foreground)]", children: u }),
|
|
1337
1337
|
/* @__PURE__ */ e("h3", { className: "mt-6 text-xl font-semibold text-[var(--foreground)]", children: n }),
|
|
1338
1338
|
s && /* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: s }),
|
|
1339
|
-
|
|
1339
|
+
d && /* @__PURE__ */ e(
|
|
1340
1340
|
C,
|
|
1341
1341
|
{
|
|
1342
|
-
onClick:
|
|
1342
|
+
onClick: d.onClick,
|
|
1343
1343
|
variant: "primary",
|
|
1344
1344
|
size: "lg",
|
|
1345
1345
|
className: "mt-6",
|
|
1346
|
-
children:
|
|
1346
|
+
children: d.label
|
|
1347
1347
|
}
|
|
1348
1348
|
)
|
|
1349
1349
|
]
|
|
@@ -1351,7 +1351,7 @@ const Y = N(
|
|
|
1351
1351
|
);
|
|
1352
1352
|
}
|
|
1353
1353
|
);
|
|
1354
|
-
|
|
1354
|
+
X.displayName = "EmptyState";
|
|
1355
1355
|
const qe = N(
|
|
1356
1356
|
({
|
|
1357
1357
|
className: a,
|
|
@@ -1359,7 +1359,7 @@ const qe = N(
|
|
|
1359
1359
|
title: r,
|
|
1360
1360
|
message: n,
|
|
1361
1361
|
onRetry: s,
|
|
1362
|
-
onGoHome:
|
|
1362
|
+
onGoHome: d,
|
|
1363
1363
|
showRetry: l = !0,
|
|
1364
1364
|
showHome: m = !0,
|
|
1365
1365
|
...f
|
|
@@ -1400,7 +1400,7 @@ const qe = N(
|
|
|
1400
1400
|
children: [
|
|
1401
1401
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-4", children: [
|
|
1402
1402
|
g.code && /* @__PURE__ */ e("h1", { className: "text-9xl font-bold text-[var(--muted)] opacity-40", children: g.code }),
|
|
1403
|
-
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(
|
|
1403
|
+
/* @__PURE__ */ e("div", { className: "rounded-full bg-[var(--destructive)]/10 p-6 text-[var(--destructive)]", children: /* @__PURE__ */ e(ce, { className: "h-16 w-16" }) })
|
|
1404
1404
|
] }),
|
|
1405
1405
|
/* @__PURE__ */ e("h2", { className: "mt-6 text-2xl font-bold text-[var(--foreground)]", children: b }),
|
|
1406
1406
|
/* @__PURE__ */ e("p", { className: "mt-2 max-w-md text-[var(--muted-foreground)]", children: h }),
|
|
@@ -1411,17 +1411,17 @@ const qe = N(
|
|
|
1411
1411
|
onClick: s,
|
|
1412
1412
|
variant: "primary",
|
|
1413
1413
|
size: "lg",
|
|
1414
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1414
|
+
leftIcon: /* @__PURE__ */ e(ue, { className: "h-5 w-5" }),
|
|
1415
1415
|
children: "Tentar novamente"
|
|
1416
1416
|
}
|
|
1417
1417
|
),
|
|
1418
|
-
m &&
|
|
1418
|
+
m && d && /* @__PURE__ */ e(
|
|
1419
1419
|
C,
|
|
1420
1420
|
{
|
|
1421
|
-
onClick:
|
|
1421
|
+
onClick: d,
|
|
1422
1422
|
variant: "secondary",
|
|
1423
1423
|
size: "lg",
|
|
1424
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1424
|
+
leftIcon: /* @__PURE__ */ e(me, { className: "h-5 w-5" }),
|
|
1425
1425
|
children: "Voltar ao início"
|
|
1426
1426
|
}
|
|
1427
1427
|
)
|
|
@@ -1439,7 +1439,7 @@ const He = N(
|
|
|
1439
1439
|
columns: r = 4,
|
|
1440
1440
|
gap: n = "md",
|
|
1441
1441
|
isLoading: s = !1,
|
|
1442
|
-
skeletonCount:
|
|
1442
|
+
skeletonCount: d = 8,
|
|
1443
1443
|
emptyStateMessage: l = "Nenhum produto encontrado",
|
|
1444
1444
|
onEmptyAction: m,
|
|
1445
1445
|
...f
|
|
@@ -1465,7 +1465,7 @@ const He = N(
|
|
|
1465
1465
|
a
|
|
1466
1466
|
),
|
|
1467
1467
|
...f,
|
|
1468
|
-
children: Array.from({ length:
|
|
1468
|
+
children: Array.from({ length: d }).map((b, h) => /* @__PURE__ */ e(
|
|
1469
1469
|
R,
|
|
1470
1470
|
{
|
|
1471
1471
|
image: "",
|
|
@@ -1477,7 +1477,7 @@ const He = N(
|
|
|
1477
1477
|
))
|
|
1478
1478
|
}
|
|
1479
1479
|
) : t.length === 0 ? /* @__PURE__ */ e(
|
|
1480
|
-
|
|
1480
|
+
X,
|
|
1481
1481
|
{
|
|
1482
1482
|
variant: "search",
|
|
1483
1483
|
title: l,
|
|
@@ -1724,7 +1724,7 @@ function ea({
|
|
|
1724
1724
|
);
|
|
1725
1725
|
}
|
|
1726
1726
|
const et = N(
|
|
1727
|
-
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...s },
|
|
1727
|
+
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...s }, d) => {
|
|
1728
1728
|
const [l, m] = k("light"), [f, u] = k(16), [v, g] = k(!1);
|
|
1729
1729
|
M(() => {
|
|
1730
1730
|
const p = localStorage.getItem("a11y-theme") ?? document.documentElement.getAttribute("data-theme") ?? "light";
|
|
@@ -1740,19 +1740,19 @@ const et = N(
|
|
|
1740
1740
|
}
|
|
1741
1741
|
}, [v]);
|
|
1742
1742
|
const b = () => {
|
|
1743
|
-
const
|
|
1744
|
-
m(
|
|
1743
|
+
const c = l === "light" ? "dark" : "light";
|
|
1744
|
+
m(c), document.documentElement.setAttribute("data-theme", c), localStorage.setItem("a11y-theme", c), t == null || t(c);
|
|
1745
1745
|
}, h = () => {
|
|
1746
|
-
const
|
|
1747
|
-
u(
|
|
1746
|
+
const c = Math.min(f + 2, 24);
|
|
1747
|
+
u(c), document.documentElement.style.setProperty("--font-size", `${c}px`), document.documentElement.style.fontSize = `${c}px`, localStorage.setItem("a11y-font-size", c.toString()), r == null || r(c);
|
|
1748
1748
|
}, x = () => {
|
|
1749
|
-
const
|
|
1750
|
-
u(
|
|
1749
|
+
const c = Math.max(f - 2, 12);
|
|
1750
|
+
u(c), document.documentElement.style.setProperty("--font-size", `${c}px`), document.documentElement.style.fontSize = `${c}px`, localStorage.setItem("a11y-font-size", c.toString()), r == null || r(c);
|
|
1751
1751
|
};
|
|
1752
1752
|
return /* @__PURE__ */ e(
|
|
1753
1753
|
"div",
|
|
1754
1754
|
{
|
|
1755
|
-
ref:
|
|
1755
|
+
ref: d,
|
|
1756
1756
|
className: o(
|
|
1757
1757
|
"w-full border-b border-[var(--border)] bg-[var(--card)] sticky top-0 z-50",
|
|
1758
1758
|
a
|
|
@@ -1762,7 +1762,7 @@ const et = N(
|
|
|
1762
1762
|
...s,
|
|
1763
1763
|
children: /* @__PURE__ */ i("div", { className: "mx-auto max-w-7xl px-4 py-2 flex items-center justify-between", children: [
|
|
1764
1764
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-sm text-[var(--muted-foreground)]", children: [
|
|
1765
|
-
/* @__PURE__ */ e(
|
|
1765
|
+
/* @__PURE__ */ e(fe, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
|
|
1766
1766
|
/* @__PURE__ */ e("span", { className: "hidden sm:inline", children: "Ferramentas de Acessibilidade" })
|
|
1767
1767
|
] }),
|
|
1768
1768
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2 md:gap-4", children: [
|
|
@@ -1787,7 +1787,7 @@ const et = N(
|
|
|
1787
1787
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
1788
1788
|
"disabled:opacity-40 disabled:cursor-not-allowed"
|
|
1789
1789
|
),
|
|
1790
|
-
children: /* @__PURE__ */ e(
|
|
1790
|
+
children: /* @__PURE__ */ e(ge, { className: "h-4 w-4" })
|
|
1791
1791
|
}
|
|
1792
1792
|
),
|
|
1793
1793
|
/* @__PURE__ */ e("span", { className: "text-xs text-[var(--muted-foreground)] w-3 text-center select-none", "aria-hidden": "true", children: "A" }),
|
|
@@ -1803,7 +1803,7 @@ const et = N(
|
|
|
1803
1803
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
1804
1804
|
"disabled:opacity-40 disabled:cursor-not-allowed"
|
|
1805
1805
|
),
|
|
1806
|
-
children: /* @__PURE__ */ e(
|
|
1806
|
+
children: /* @__PURE__ */ e(ve, { className: "h-4 w-4" })
|
|
1807
1807
|
}
|
|
1808
1808
|
)
|
|
1809
1809
|
] }),
|
|
@@ -1817,14 +1817,14 @@ const et = N(
|
|
|
1817
1817
|
"p-2 rounded-md transition-colors text-[var(--muted-foreground)] hover:bg-[var(--muted)]",
|
|
1818
1818
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
|
|
1819
1819
|
),
|
|
1820
|
-
children: l === "light" ? /* @__PURE__ */ e(
|
|
1820
|
+
children: l === "light" ? /* @__PURE__ */ e(pe, { className: "h-4 w-4" }) : /* @__PURE__ */ e(be, { className: "h-4 w-4" })
|
|
1821
1821
|
}
|
|
1822
1822
|
),
|
|
1823
1823
|
/* @__PURE__ */ e(
|
|
1824
1824
|
"button",
|
|
1825
1825
|
{
|
|
1826
1826
|
type: "button",
|
|
1827
|
-
onClick: () => g((
|
|
1827
|
+
onClick: () => g((c) => !c),
|
|
1828
1828
|
"aria-label": "Ativar VLibras",
|
|
1829
1829
|
"aria-pressed": v,
|
|
1830
1830
|
className: o(
|
|
@@ -1853,24 +1853,24 @@ const tt = N(
|
|
|
1853
1853
|
autoplayDelay: r = 5e3,
|
|
1854
1854
|
autoplay: n = !0,
|
|
1855
1855
|
...s
|
|
1856
|
-
},
|
|
1856
|
+
}, d) => {
|
|
1857
1857
|
const [l, m] = k(0), [f, u] = k(!1), [v, g] = k(!1);
|
|
1858
1858
|
M(() => {
|
|
1859
|
-
const
|
|
1860
|
-
g(
|
|
1859
|
+
const c = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
1860
|
+
g(c.matches);
|
|
1861
1861
|
const p = (y) => {
|
|
1862
1862
|
g(y.matches);
|
|
1863
1863
|
};
|
|
1864
|
-
return
|
|
1864
|
+
return c.addEventListener("change", p), () => c.removeEventListener("change", p);
|
|
1865
1865
|
}, []), M(() => {
|
|
1866
1866
|
if (!n || f || v) return;
|
|
1867
|
-
const
|
|
1867
|
+
const c = setInterval(() => {
|
|
1868
1868
|
m((p) => (p + 1) % t.length);
|
|
1869
1869
|
}, r);
|
|
1870
|
-
return () => clearInterval(
|
|
1870
|
+
return () => clearInterval(c);
|
|
1871
1871
|
}, [n, r, t.length, f, v]);
|
|
1872
|
-
const b = (
|
|
1873
|
-
m(
|
|
1872
|
+
const b = (c) => {
|
|
1873
|
+
m(c), u(!0), setTimeout(() => u(!1), r);
|
|
1874
1874
|
}, h = () => {
|
|
1875
1875
|
b((l - 1 + t.length) % t.length);
|
|
1876
1876
|
}, x = () => {
|
|
@@ -1879,13 +1879,13 @@ const tt = N(
|
|
|
1879
1879
|
return t.length === 0 ? null : (t[l], /* @__PURE__ */ i(
|
|
1880
1880
|
"div",
|
|
1881
1881
|
{
|
|
1882
|
-
ref:
|
|
1882
|
+
ref: d,
|
|
1883
1883
|
className: o("relative w-full overflow-hidden", a),
|
|
1884
1884
|
onMouseEnter: () => u(!0),
|
|
1885
1885
|
onMouseLeave: () => u(!1),
|
|
1886
1886
|
...s,
|
|
1887
1887
|
children: [
|
|
1888
|
-
/* @__PURE__ */ e("div", { className: "relative", children: t.map((
|
|
1888
|
+
/* @__PURE__ */ e("div", { className: "relative", children: t.map((c, p) => /* @__PURE__ */ e(
|
|
1889
1889
|
"div",
|
|
1890
1890
|
{
|
|
1891
1891
|
className: o(
|
|
@@ -1893,48 +1893,34 @@ const tt = N(
|
|
|
1893
1893
|
p === l ? "block" : "hidden"
|
|
1894
1894
|
),
|
|
1895
1895
|
"aria-hidden": p !== l,
|
|
1896
|
-
children: [
|
|
1897
|
-
/* @__PURE__ */
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
] }),
|
|
1923
|
-
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center md:justify-start bg-gradient-to-t from-black/70 via-black/30 to-transparent md:bg-gradient-to-r md:from-black/80 md:via-black/50 md:to-transparent", children: /* @__PURE__ */ e("div", { className: "max-w-7xl mx-auto px-6 lg:px-12 w-full", children: /* @__PURE__ */ i("div", { className: "max-w-2xl text-center md:text-left", children: [
|
|
1924
|
-
/* @__PURE__ */ e("h2", { className: "text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-4", children: d.title }),
|
|
1925
|
-
/* @__PURE__ */ e("p", { className: "text-lg md:text-xl text-gray-200 mb-6", children: d.description }),
|
|
1926
|
-
d.cta && /* @__PURE__ */ e(
|
|
1927
|
-
"a",
|
|
1928
|
-
{
|
|
1929
|
-
href: d.cta.href,
|
|
1930
|
-
className: X({ variant: "primary", size: "lg" }),
|
|
1931
|
-
children: d.cta.label
|
|
1932
|
-
}
|
|
1933
|
-
)
|
|
1934
|
-
] }) }) })
|
|
1935
|
-
]
|
|
1896
|
+
children: /* @__PURE__ */ i("picture", { children: [
|
|
1897
|
+
/* @__PURE__ */ e(
|
|
1898
|
+
"source",
|
|
1899
|
+
{
|
|
1900
|
+
media: "(min-width: 1024px)",
|
|
1901
|
+
srcSet: `${c.imageDesktop} 1x, ${c.imageDesktop.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`
|
|
1902
|
+
}
|
|
1903
|
+
),
|
|
1904
|
+
/* @__PURE__ */ e(
|
|
1905
|
+
"source",
|
|
1906
|
+
{
|
|
1907
|
+
media: "(min-width: 768px)",
|
|
1908
|
+
srcSet: `${c.imageTablet} 1x, ${c.imageTablet.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`
|
|
1909
|
+
}
|
|
1910
|
+
),
|
|
1911
|
+
/* @__PURE__ */ e(
|
|
1912
|
+
"img",
|
|
1913
|
+
{
|
|
1914
|
+
src: c.imageMobile,
|
|
1915
|
+
srcSet: `${c.imageMobile} 1x, ${c.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
|
|
1916
|
+
alt: c.title,
|
|
1917
|
+
className: "w-full object-cover aspect-[5/6] md:aspect-video lg:aspect-[1920/700]",
|
|
1918
|
+
loading: p === 0 ? "eager" : "lazy"
|
|
1919
|
+
}
|
|
1920
|
+
)
|
|
1921
|
+
] })
|
|
1936
1922
|
},
|
|
1937
|
-
|
|
1923
|
+
c.id
|
|
1938
1924
|
)) }),
|
|
1939
1925
|
t.length > 1 && /* @__PURE__ */ i(A, { children: [
|
|
1940
1926
|
/* @__PURE__ */ e(
|
|
@@ -1943,7 +1929,7 @@ const tt = N(
|
|
|
1943
1929
|
onClick: h,
|
|
1944
1930
|
className: "absolute left-4 top-1/2 -translate-y-1/2 rounded-full bg-white/90 p-2 shadow-lg transition-all hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[44px]",
|
|
1945
1931
|
"aria-label": "Slide anterior",
|
|
1946
|
-
children: /* @__PURE__ */ e(
|
|
1932
|
+
children: /* @__PURE__ */ e(he, { className: "h-6 w-6 text-gray-900" })
|
|
1947
1933
|
}
|
|
1948
1934
|
),
|
|
1949
1935
|
/* @__PURE__ */ e(
|
|
@@ -1956,7 +1942,7 @@ const tt = N(
|
|
|
1956
1942
|
}
|
|
1957
1943
|
)
|
|
1958
1944
|
] }),
|
|
1959
|
-
t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2", children: t.map((
|
|
1945
|
+
t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2", children: t.map((c, p) => /* @__PURE__ */ e(
|
|
1960
1946
|
"button",
|
|
1961
1947
|
{
|
|
1962
1948
|
onClick: () => b(p),
|
|
@@ -2144,10 +2130,10 @@ function lt({ items: a }) {
|
|
|
2144
2130
|
}
|
|
2145
2131
|
) });
|
|
2146
2132
|
}
|
|
2147
|
-
function
|
|
2148
|
-
var
|
|
2133
|
+
function Y({ item: a, depth: t = 0 }) {
|
|
2134
|
+
var d;
|
|
2149
2135
|
const [r, n] = k(!1);
|
|
2150
|
-
return !((
|
|
2136
|
+
return !((d = a.children) != null && d.length) ? /* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2151
2137
|
"a",
|
|
2152
2138
|
{
|
|
2153
2139
|
href: a.href ?? "#",
|
|
@@ -2189,19 +2175,19 @@ function Z({ item: a, depth: t = 0 }) {
|
|
|
2189
2175
|
{
|
|
2190
2176
|
id: `mobile-nav-${a.id}`,
|
|
2191
2177
|
className: "mb-1 ml-2 border-l-2 border-[var(--border)] pl-3",
|
|
2192
|
-
children: a.children.map((l) => /* @__PURE__ */ e(
|
|
2178
|
+
children: a.children.map((l) => /* @__PURE__ */ e(Y, { item: l, depth: t + 1 }, l.id))
|
|
2193
2179
|
}
|
|
2194
2180
|
)
|
|
2195
2181
|
] });
|
|
2196
2182
|
}
|
|
2197
2183
|
const dt = N(
|
|
2198
|
-
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter: s, className:
|
|
2184
|
+
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter: s, className: d, ...l }, m) => /* @__PURE__ */ e(
|
|
2199
2185
|
"header",
|
|
2200
2186
|
{
|
|
2201
2187
|
ref: m,
|
|
2202
2188
|
className: o(
|
|
2203
2189
|
"sticky top-0 z-40 border-b border-[var(--border)] bg-[var(--card)]",
|
|
2204
|
-
|
|
2190
|
+
d
|
|
2205
2191
|
),
|
|
2206
2192
|
...l,
|
|
2207
2193
|
children: /* @__PURE__ */ i("div", { className: "px-4", children: [
|
|
@@ -2217,7 +2203,7 @@ const dt = N(
|
|
|
2217
2203
|
type: "button",
|
|
2218
2204
|
"aria-label": "Abrir menu de navegação",
|
|
2219
2205
|
className: "inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-lg text-[var(--foreground)] transition-colors hover:bg-[var(--accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] md:hidden",
|
|
2220
|
-
children: /* @__PURE__ */ e(
|
|
2206
|
+
children: /* @__PURE__ */ e(xe, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
2221
2207
|
}
|
|
2222
2208
|
) }),
|
|
2223
2209
|
/* @__PURE__ */ i(Ye, { side: "left", className: "flex flex-col p-0", children: [
|
|
@@ -2231,7 +2217,7 @@ const dt = N(
|
|
|
2231
2217
|
{
|
|
2232
2218
|
"aria-label": "Menu principal",
|
|
2233
2219
|
className: "flex-1 overflow-y-auto px-5 py-3",
|
|
2234
|
-
children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((f) => /* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(
|
|
2220
|
+
children: /* @__PURE__ */ e("div", { className: "divide-y divide-[var(--border)]", children: a.map((f) => /* @__PURE__ */ e("div", { className: "py-0.5", children: /* @__PURE__ */ e(Y, { item: f }) }, f.id)) })
|
|
2235
2221
|
}
|
|
2236
2222
|
),
|
|
2237
2223
|
s && /* @__PURE__ */ e("div", { className: "border-t border-[var(--border)] px-5 py-4", children: s })
|
|
@@ -2300,15 +2286,15 @@ const ct = [
|
|
|
2300
2286
|
]
|
|
2301
2287
|
}
|
|
2302
2288
|
], ut = [
|
|
2303
|
-
{ label: "Instagram", href: "https://instagram.com/eloeditora", Icon:
|
|
2304
|
-
{ label: "Facebook", href: "https://facebook.com/eloeditora", Icon:
|
|
2305
|
-
{ label: "YouTube", href: "https://youtube.com/@eloeditora", Icon:
|
|
2306
|
-
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon:
|
|
2289
|
+
{ label: "Instagram", href: "https://instagram.com/eloeditora", Icon: Ne },
|
|
2290
|
+
{ label: "Facebook", href: "https://facebook.com/eloeditora", Icon: we },
|
|
2291
|
+
{ label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: ye },
|
|
2292
|
+
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: ke }
|
|
2307
2293
|
];
|
|
2308
2294
|
function mt({ onSubmit: a }) {
|
|
2309
2295
|
const [t, r] = k(""), [n, s] = k(!1);
|
|
2310
2296
|
return /* @__PURE__ */ e("div", { className: "bg-[var(--brand-primary)] py-10", children: /* @__PURE__ */ i("div", { className: "mx-auto max-w-lg px-4 text-center", children: [
|
|
2311
|
-
/* @__PURE__ */ e(
|
|
2297
|
+
/* @__PURE__ */ e(ze, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
|
|
2312
2298
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-white sm:text-2xl", children: "Receba novidades e ofertas exclusivas" }),
|
|
2313
2299
|
/* @__PURE__ */ e("p", { className: "mt-2 text-sm", style: { color: "rgba(255,255,255,0.85)" }, children: "Cadastre-se e fique por dentro dos lançamentos. Sem spam." }),
|
|
2314
2300
|
n ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ i("form", { onSubmit: (l) => {
|
|
@@ -2383,12 +2369,12 @@ function ft({ title: a, links: t }) {
|
|
|
2383
2369
|
] });
|
|
2384
2370
|
}
|
|
2385
2371
|
const gt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...n }) => {
|
|
2386
|
-
const [s,
|
|
2372
|
+
const [s, d] = k("light");
|
|
2387
2373
|
M(() => {
|
|
2388
2374
|
const u = document.documentElement;
|
|
2389
|
-
|
|
2375
|
+
d(u.getAttribute("data-theme") ?? "light");
|
|
2390
2376
|
const v = new MutationObserver(() => {
|
|
2391
|
-
|
|
2377
|
+
d(u.getAttribute("data-theme") ?? "light");
|
|
2392
2378
|
});
|
|
2393
2379
|
return v.observe(u, { attributes: !0, attributeFilter: ["data-theme"] }), () => v.disconnect();
|
|
2394
2380
|
}, []);
|
|
@@ -2513,7 +2499,7 @@ export {
|
|
|
2513
2499
|
Wt as DialogTrigger,
|
|
2514
2500
|
De as Divider,
|
|
2515
2501
|
Qe as Drawer,
|
|
2516
|
-
|
|
2502
|
+
X as EmptyState,
|
|
2517
2503
|
qe as ErrorState,
|
|
2518
2504
|
gt as Footer,
|
|
2519
2505
|
Be as FormGroup,
|
|
@@ -2553,7 +2539,7 @@ export {
|
|
|
2553
2539
|
et as TopAccessibilityBar,
|
|
2554
2540
|
Me as avatarVariants,
|
|
2555
2541
|
je as badgeVariants,
|
|
2556
|
-
|
|
2542
|
+
Se as buttonVariants,
|
|
2557
2543
|
o as cn,
|
|
2558
2544
|
Pe as spinnerVariants,
|
|
2559
2545
|
na as toast
|