@grupo-elo-editorial/shared-ui-react 1.2.5 → 1.2.7
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 +10 -0
- package/dist/index.js +141 -129
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -285,7 +285,7 @@ const Pe = N(
|
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
287
|
Pe.displayName = "Divider";
|
|
288
|
-
const
|
|
288
|
+
const $ = N(
|
|
289
289
|
({
|
|
290
290
|
className: a,
|
|
291
291
|
value: t = 0,
|
|
@@ -347,8 +347,8 @@ const T = N(
|
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
|
-
|
|
351
|
-
function
|
|
350
|
+
$.displayName = "Rating";
|
|
351
|
+
function zt({ className: a, type: t, ...r }) {
|
|
352
352
|
return /* @__PURE__ */ e(
|
|
353
353
|
"input",
|
|
354
354
|
{
|
|
@@ -364,17 +364,17 @@ function kt({ className: a, type: t, ...r }) {
|
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Ct({
|
|
368
368
|
...a
|
|
369
369
|
}) {
|
|
370
370
|
return /* @__PURE__ */ e(z.Root, { "data-slot": "select", ...a });
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function St({
|
|
373
373
|
...a
|
|
374
374
|
}) {
|
|
375
375
|
return /* @__PURE__ */ e(z.Value, { "data-slot": "select-value", ...a });
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function It({
|
|
378
378
|
className: a,
|
|
379
379
|
size: t = "default",
|
|
380
380
|
children: r,
|
|
@@ -397,7 +397,7 @@ function St({
|
|
|
397
397
|
}
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function jt({
|
|
401
401
|
className: a,
|
|
402
402
|
children: t,
|
|
403
403
|
position: r = "popper",
|
|
@@ -431,7 +431,7 @@ function It({
|
|
|
431
431
|
}
|
|
432
432
|
) });
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Mt({
|
|
435
435
|
className: a,
|
|
436
436
|
children: t,
|
|
437
437
|
...r
|
|
@@ -486,7 +486,7 @@ function Re({
|
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Dt({
|
|
490
490
|
className: a,
|
|
491
491
|
...t
|
|
492
492
|
}) {
|
|
@@ -510,7 +510,7 @@ function Mt({
|
|
|
510
510
|
}
|
|
511
511
|
);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Lt({
|
|
514
514
|
className: a,
|
|
515
515
|
...t
|
|
516
516
|
}) {
|
|
@@ -523,7 +523,7 @@ function Dt({
|
|
|
523
523
|
}
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function _t({
|
|
527
527
|
className: a,
|
|
528
528
|
...t
|
|
529
529
|
}) {
|
|
@@ -547,7 +547,7 @@ function Lt({
|
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Pt({
|
|
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
|
|
582
|
+
const T = N(
|
|
583
583
|
({
|
|
584
584
|
className: a,
|
|
585
585
|
image: t,
|
|
@@ -615,7 +615,7 @@ const $ = N(
|
|
|
615
615
|
{
|
|
616
616
|
className: o(
|
|
617
617
|
"rounded-lg bg-[var(--muted)]",
|
|
618
|
-
p === "horizontal" ? "h-24 w-20 shrink-0" : "
|
|
618
|
+
p === "horizontal" ? "h-24 w-20 shrink-0" : "w-full aspect-2/3"
|
|
619
619
|
)
|
|
620
620
|
}
|
|
621
621
|
),
|
|
@@ -663,7 +663,7 @@ const $ = N(
|
|
|
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(
|
|
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,
|
|
@@ -711,18 +711,30 @@ const $ = N(
|
|
|
711
711
|
H,
|
|
712
712
|
{
|
|
713
713
|
href: d,
|
|
714
|
-
className: "relative block
|
|
714
|
+
className: "relative block w-full aspect-2/3 overflow-hidden rounded-t-lg",
|
|
715
715
|
children: [
|
|
716
|
+
/* @__PURE__ */ e(
|
|
717
|
+
"div",
|
|
718
|
+
{
|
|
719
|
+
"aria-hidden": "true",
|
|
720
|
+
className: "absolute inset-0 z-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 object-contain 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(P, { 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(P, { variant: "danger", size: "lg", children: "Esgotado" }) })
|
|
726
738
|
]
|
|
727
739
|
}
|
|
728
740
|
),
|
|
@@ -754,7 +766,7 @@ const $ = N(
|
|
|
754
766
|
) : /* @__PURE__ */ e("h3", { className: "line-clamp-2 text-base font-medium text-[var(--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(
|
|
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,
|
|
@@ -794,7 +806,7 @@ const $ = N(
|
|
|
794
806
|
}
|
|
795
807
|
)
|
|
796
808
|
);
|
|
797
|
-
|
|
809
|
+
T.displayName = "ProductCard";
|
|
798
810
|
const Ee = N(
|
|
799
811
|
({
|
|
800
812
|
className: a,
|
|
@@ -857,7 +869,7 @@ const Ee = N(
|
|
|
857
869
|
}
|
|
858
870
|
);
|
|
859
871
|
Ee.displayName = "SearchBar";
|
|
860
|
-
const
|
|
872
|
+
const $e = N(
|
|
861
873
|
({
|
|
862
874
|
className: a,
|
|
863
875
|
price: t,
|
|
@@ -920,8 +932,8 @@ const Te = N(
|
|
|
920
932
|
] });
|
|
921
933
|
}
|
|
922
934
|
);
|
|
923
|
-
|
|
924
|
-
const
|
|
935
|
+
$e.displayName = "PriceDisplay";
|
|
936
|
+
const Te = N(
|
|
925
937
|
({
|
|
926
938
|
className: a,
|
|
927
939
|
value: t,
|
|
@@ -1001,7 +1013,7 @@ const $e = N(
|
|
|
1001
1013
|
] });
|
|
1002
1014
|
}
|
|
1003
1015
|
);
|
|
1004
|
-
|
|
1016
|
+
Te.displayName = "QuantitySelector";
|
|
1005
1017
|
const Be = N(
|
|
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 = N(
|
|
|
1029
1041
|
] })
|
|
1030
1042
|
);
|
|
1031
1043
|
Be.displayName = "FormGroup";
|
|
1032
|
-
function
|
|
1044
|
+
function At({ ...a }) {
|
|
1033
1045
|
return /* @__PURE__ */ e("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
|
|
1034
1046
|
}
|
|
1035
|
-
function
|
|
1047
|
+
function Rt({ className: a, ...t }) {
|
|
1036
1048
|
return /* @__PURE__ */ e(
|
|
1037
1049
|
"ol",
|
|
1038
1050
|
{
|
|
@@ -1045,7 +1057,7 @@ function At({ className: a, ...t }) {
|
|
|
1045
1057
|
}
|
|
1046
1058
|
);
|
|
1047
1059
|
}
|
|
1048
|
-
function
|
|
1060
|
+
function Et({ className: a, ...t }) {
|
|
1049
1061
|
return /* @__PURE__ */ e(
|
|
1050
1062
|
"li",
|
|
1051
1063
|
{
|
|
@@ -1055,7 +1067,7 @@ function Rt({ className: a, ...t }) {
|
|
|
1055
1067
|
}
|
|
1056
1068
|
);
|
|
1057
1069
|
}
|
|
1058
|
-
function
|
|
1070
|
+
function $t({
|
|
1059
1071
|
asChild: a,
|
|
1060
1072
|
className: t,
|
|
1061
1073
|
...r
|
|
@@ -1082,7 +1094,7 @@ function Tt({ className: a, ...t }) {
|
|
|
1082
1094
|
}
|
|
1083
1095
|
);
|
|
1084
1096
|
}
|
|
1085
|
-
function
|
|
1097
|
+
function Bt({
|
|
1086
1098
|
children: a,
|
|
1087
1099
|
className: t,
|
|
1088
1100
|
...r
|
|
@@ -1099,12 +1111,12 @@ function $t({
|
|
|
1099
1111
|
}
|
|
1100
1112
|
);
|
|
1101
1113
|
}
|
|
1102
|
-
function
|
|
1114
|
+
function Vt({
|
|
1103
1115
|
...a
|
|
1104
1116
|
}) {
|
|
1105
1117
|
return /* @__PURE__ */ e(D.Root, { "data-slot": "accordion", ...a });
|
|
1106
1118
|
}
|
|
1107
|
-
function
|
|
1119
|
+
function Ft({
|
|
1108
1120
|
className: a,
|
|
1109
1121
|
...t
|
|
1110
1122
|
}) {
|
|
@@ -1117,7 +1129,7 @@ function Vt({
|
|
|
1117
1129
|
}
|
|
1118
1130
|
);
|
|
1119
1131
|
}
|
|
1120
|
-
function
|
|
1132
|
+
function qt({
|
|
1121
1133
|
className: a,
|
|
1122
1134
|
children: t,
|
|
1123
1135
|
...r
|
|
@@ -1138,7 +1150,7 @@ function Ft({
|
|
|
1138
1150
|
}
|
|
1139
1151
|
) });
|
|
1140
1152
|
}
|
|
1141
|
-
function
|
|
1153
|
+
function Ht({
|
|
1142
1154
|
className: a,
|
|
1143
1155
|
children: t,
|
|
1144
1156
|
...r
|
|
@@ -1166,17 +1178,17 @@ function Ve({
|
|
|
1166
1178
|
}
|
|
1167
1179
|
);
|
|
1168
1180
|
}
|
|
1169
|
-
function
|
|
1181
|
+
function Gt({
|
|
1170
1182
|
...a
|
|
1171
1183
|
}) {
|
|
1172
1184
|
return /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(I.Root, { "data-slot": "tooltip", ...a }) });
|
|
1173
1185
|
}
|
|
1174
|
-
function
|
|
1186
|
+
function Ut({
|
|
1175
1187
|
...a
|
|
1176
1188
|
}) {
|
|
1177
1189
|
return /* @__PURE__ */ e(I.Trigger, { "data-slot": "tooltip-trigger", ...a });
|
|
1178
1190
|
}
|
|
1179
|
-
function
|
|
1191
|
+
function Qt({
|
|
1180
1192
|
className: a,
|
|
1181
1193
|
sideOffset: t = 0,
|
|
1182
1194
|
children: r,
|
|
@@ -1466,7 +1478,7 @@ const He = N(
|
|
|
1466
1478
|
),
|
|
1467
1479
|
...f,
|
|
1468
1480
|
children: Array.from({ length: c }).map((b, h) => /* @__PURE__ */ e(
|
|
1469
|
-
|
|
1481
|
+
T,
|
|
1470
1482
|
{
|
|
1471
1483
|
image: "",
|
|
1472
1484
|
title: "",
|
|
@@ -1498,18 +1510,18 @@ const He = N(
|
|
|
1498
1510
|
a
|
|
1499
1511
|
),
|
|
1500
1512
|
...f,
|
|
1501
|
-
children: t.map((b, h) => /* @__PURE__ */ e(
|
|
1513
|
+
children: t.map((b, h) => /* @__PURE__ */ e(T, { ...b }, h))
|
|
1502
1514
|
}
|
|
1503
1515
|
);
|
|
1504
1516
|
}
|
|
1505
1517
|
);
|
|
1506
1518
|
He.displayName = "ProductGrid";
|
|
1507
|
-
function
|
|
1519
|
+
function Wt({
|
|
1508
1520
|
...a
|
|
1509
1521
|
}) {
|
|
1510
1522
|
return /* @__PURE__ */ e(w.Root, { "data-slot": "dialog", ...a });
|
|
1511
1523
|
}
|
|
1512
|
-
function
|
|
1524
|
+
function Kt({
|
|
1513
1525
|
...a
|
|
1514
1526
|
}) {
|
|
1515
1527
|
return /* @__PURE__ */ e(w.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
@@ -1535,7 +1547,7 @@ function Ue({
|
|
|
1535
1547
|
}
|
|
1536
1548
|
);
|
|
1537
1549
|
}
|
|
1538
|
-
function
|
|
1550
|
+
function Ot({
|
|
1539
1551
|
className: a,
|
|
1540
1552
|
children: t,
|
|
1541
1553
|
...r
|
|
@@ -1562,7 +1574,7 @@ function Kt({
|
|
|
1562
1574
|
)
|
|
1563
1575
|
] });
|
|
1564
1576
|
}
|
|
1565
|
-
function
|
|
1577
|
+
function Xt({ className: a, ...t }) {
|
|
1566
1578
|
return /* @__PURE__ */ e(
|
|
1567
1579
|
"div",
|
|
1568
1580
|
{
|
|
@@ -1572,7 +1584,7 @@ function Ot({ className: a, ...t }) {
|
|
|
1572
1584
|
}
|
|
1573
1585
|
);
|
|
1574
1586
|
}
|
|
1575
|
-
function
|
|
1587
|
+
function Yt({ className: a, ...t }) {
|
|
1576
1588
|
return /* @__PURE__ */ e(
|
|
1577
1589
|
"div",
|
|
1578
1590
|
{
|
|
@@ -1585,7 +1597,7 @@ function Xt({ className: a, ...t }) {
|
|
|
1585
1597
|
}
|
|
1586
1598
|
);
|
|
1587
1599
|
}
|
|
1588
|
-
function
|
|
1600
|
+
function Zt({
|
|
1589
1601
|
className: a,
|
|
1590
1602
|
...t
|
|
1591
1603
|
}) {
|
|
@@ -1598,7 +1610,7 @@ function Yt({
|
|
|
1598
1610
|
}
|
|
1599
1611
|
);
|
|
1600
1612
|
}
|
|
1601
|
-
function
|
|
1613
|
+
function Jt({
|
|
1602
1614
|
className: a,
|
|
1603
1615
|
...t
|
|
1604
1616
|
}) {
|
|
@@ -1687,7 +1699,7 @@ function Ze({ className: a, ...t }) {
|
|
|
1687
1699
|
}
|
|
1688
1700
|
);
|
|
1689
1701
|
}
|
|
1690
|
-
function
|
|
1702
|
+
function ea({ className: a, ...t }) {
|
|
1691
1703
|
return /* @__PURE__ */ e(
|
|
1692
1704
|
"div",
|
|
1693
1705
|
{
|
|
@@ -1710,7 +1722,7 @@ function Je({
|
|
|
1710
1722
|
}
|
|
1711
1723
|
);
|
|
1712
1724
|
}
|
|
1713
|
-
function
|
|
1725
|
+
function ta({
|
|
1714
1726
|
className: a,
|
|
1715
1727
|
...t
|
|
1716
1728
|
}) {
|
|
@@ -1723,7 +1735,18 @@ function ea({
|
|
|
1723
1735
|
}
|
|
1724
1736
|
);
|
|
1725
1737
|
}
|
|
1726
|
-
|
|
1738
|
+
function et({ children: a, as: t = "div", className: r }) {
|
|
1739
|
+
return /* @__PURE__ */ e(
|
|
1740
|
+
t,
|
|
1741
|
+
{
|
|
1742
|
+
"data-slot": "container",
|
|
1743
|
+
className: o("w-full mx-auto px-[var(--container-px)]", r),
|
|
1744
|
+
style: { maxWidth: "var(--container-max)" },
|
|
1745
|
+
children: a
|
|
1746
|
+
}
|
|
1747
|
+
);
|
|
1748
|
+
}
|
|
1749
|
+
const tt = N(
|
|
1727
1750
|
({ className: a, onThemeChange: t, onFontSizeChange: r, showA11yLink: n = !1, ...s }, c) => {
|
|
1728
1751
|
const [l, m] = k("light"), [f, u] = k(16), [v, g] = k(!1);
|
|
1729
1752
|
M(() => {
|
|
@@ -1760,7 +1783,7 @@ const et = N(
|
|
|
1760
1783
|
role: "toolbar",
|
|
1761
1784
|
"aria-label": "Ferramentas de acessibilidade",
|
|
1762
1785
|
...s,
|
|
1763
|
-
children: /* @__PURE__ */ i(
|
|
1786
|
+
children: /* @__PURE__ */ i(et, { className: "py-2 flex items-center justify-between", children: [
|
|
1764
1787
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-sm text-[var(--muted-foreground)]", children: [
|
|
1765
1788
|
/* @__PURE__ */ e(fe, { className: "h-4 w-4 flex-shrink-0", "aria-hidden": "true" }),
|
|
1766
1789
|
/* @__PURE__ */ e("span", { className: "hidden sm:inline", children: "Ferramentas de Acessibilidade" })
|
|
@@ -1845,8 +1868,8 @@ const et = N(
|
|
|
1845
1868
|
);
|
|
1846
1869
|
}
|
|
1847
1870
|
);
|
|
1848
|
-
|
|
1849
|
-
const
|
|
1871
|
+
tt.displayName = "TopAccessibilityBar";
|
|
1872
|
+
const at = N(
|
|
1850
1873
|
({
|
|
1851
1874
|
className: a,
|
|
1852
1875
|
slides: t,
|
|
@@ -1974,8 +1997,8 @@ const tt = N(
|
|
|
1974
1997
|
));
|
|
1975
1998
|
}
|
|
1976
1999
|
);
|
|
1977
|
-
|
|
1978
|
-
function
|
|
2000
|
+
at.displayName = "HeroCarousel";
|
|
2001
|
+
function rt({
|
|
1979
2002
|
className: a,
|
|
1980
2003
|
children: t,
|
|
1981
2004
|
viewport: r = !0,
|
|
@@ -1993,12 +2016,12 @@ function at({
|
|
|
1993
2016
|
...n,
|
|
1994
2017
|
children: [
|
|
1995
2018
|
t,
|
|
1996
|
-
r && /* @__PURE__ */ e(
|
|
2019
|
+
r && /* @__PURE__ */ e(lt, {})
|
|
1997
2020
|
]
|
|
1998
2021
|
}
|
|
1999
2022
|
);
|
|
2000
2023
|
}
|
|
2001
|
-
function
|
|
2024
|
+
function ot({
|
|
2002
2025
|
className: a,
|
|
2003
2026
|
...t
|
|
2004
2027
|
}) {
|
|
@@ -2027,10 +2050,10 @@ function G({
|
|
|
2027
2050
|
}
|
|
2028
2051
|
);
|
|
2029
2052
|
}
|
|
2030
|
-
const
|
|
2053
|
+
const it = L(
|
|
2031
2054
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
2032
2055
|
);
|
|
2033
|
-
function
|
|
2056
|
+
function nt({
|
|
2034
2057
|
className: a,
|
|
2035
2058
|
children: t,
|
|
2036
2059
|
...r
|
|
@@ -2039,7 +2062,7 @@ function it({
|
|
|
2039
2062
|
S.Trigger,
|
|
2040
2063
|
{
|
|
2041
2064
|
"data-slot": "navigation-menu-trigger",
|
|
2042
|
-
className: o(
|
|
2065
|
+
className: o(it(), "group", a),
|
|
2043
2066
|
...r,
|
|
2044
2067
|
children: [
|
|
2045
2068
|
t,
|
|
@@ -2055,7 +2078,7 @@ function it({
|
|
|
2055
2078
|
}
|
|
2056
2079
|
);
|
|
2057
2080
|
}
|
|
2058
|
-
function
|
|
2081
|
+
function st({
|
|
2059
2082
|
className: a,
|
|
2060
2083
|
...t
|
|
2061
2084
|
}) {
|
|
@@ -2072,7 +2095,7 @@ function nt({
|
|
|
2072
2095
|
}
|
|
2073
2096
|
);
|
|
2074
2097
|
}
|
|
2075
|
-
function
|
|
2098
|
+
function lt({
|
|
2076
2099
|
className: a,
|
|
2077
2100
|
...t
|
|
2078
2101
|
}) {
|
|
@@ -2112,7 +2135,7 @@ function B({
|
|
|
2112
2135
|
}
|
|
2113
2136
|
);
|
|
2114
2137
|
}
|
|
2115
|
-
function
|
|
2138
|
+
function dt({ items: a }) {
|
|
2116
2139
|
return /* @__PURE__ */ e("ul", { className: "grid gap-0.5 p-2 min-w-[180px]", role: "none", children: a.map(
|
|
2117
2140
|
(t) => {
|
|
2118
2141
|
var r;
|
|
@@ -2194,7 +2217,7 @@ function Y({ item: a, depth: t = 0 }) {
|
|
|
2194
2217
|
)
|
|
2195
2218
|
] });
|
|
2196
2219
|
}
|
|
2197
|
-
const
|
|
2220
|
+
const ct = N(
|
|
2198
2221
|
({ items: a, logo: t, rightSlot: r, searchSlot: n, drawerFooter: s, className: c, ...l }, m) => /* @__PURE__ */ e(
|
|
2199
2222
|
"header",
|
|
2200
2223
|
{
|
|
@@ -2243,12 +2266,12 @@ const dt = N(
|
|
|
2243
2266
|
{
|
|
2244
2267
|
"aria-label": "Menu principal",
|
|
2245
2268
|
className: "hidden border-t border-[var(--border)] py-2 md:flex",
|
|
2246
|
-
children: /* @__PURE__ */ e(
|
|
2269
|
+
children: /* @__PURE__ */ e(rt, { children: /* @__PURE__ */ e(ot, { children: a.map(
|
|
2247
2270
|
(f) => {
|
|
2248
2271
|
var u;
|
|
2249
2272
|
return (u = f.children) != null && u.length ? /* @__PURE__ */ i(G, { children: [
|
|
2250
|
-
/* @__PURE__ */ e(
|
|
2251
|
-
/* @__PURE__ */ e(
|
|
2273
|
+
/* @__PURE__ */ e(nt, { className: "h-9 bg-transparent text-sm text-[var(--foreground)] hover:bg-[var(--accent)]", children: f.label }),
|
|
2274
|
+
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(dt, { items: f.children }) })
|
|
2252
2275
|
] }, f.id) : /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
|
|
2253
2276
|
B,
|
|
2254
2277
|
{
|
|
@@ -2265,8 +2288,8 @@ const dt = N(
|
|
|
2265
2288
|
}
|
|
2266
2289
|
)
|
|
2267
2290
|
);
|
|
2268
|
-
|
|
2269
|
-
const
|
|
2291
|
+
ct.displayName = "MegaMenu";
|
|
2292
|
+
const ut = [
|
|
2270
2293
|
{
|
|
2271
2294
|
id: "catalogo",
|
|
2272
2295
|
title: "Catálogo",
|
|
@@ -2299,13 +2322,13 @@ const ct = [
|
|
|
2299
2322
|
{ label: "Sobre o APP", href: "/sobre-app" }
|
|
2300
2323
|
]
|
|
2301
2324
|
}
|
|
2302
|
-
],
|
|
2325
|
+
], mt = [
|
|
2303
2326
|
{ label: "Instagram", href: "https://instagram.com/eloeditora", Icon: Ne },
|
|
2304
2327
|
{ label: "Facebook", href: "https://facebook.com/eloeditora", Icon: we },
|
|
2305
2328
|
{ label: "YouTube", href: "https://youtube.com/@eloeditora", Icon: ye },
|
|
2306
2329
|
{ label: "LinkedIn", href: "https://linkedin.com/company/eloeditora", Icon: ke }
|
|
2307
2330
|
];
|
|
2308
|
-
function
|
|
2331
|
+
function ft({ onSubmit: a }) {
|
|
2309
2332
|
const [t, r] = k(""), [n, s] = k(!1);
|
|
2310
2333
|
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
2334
|
/* @__PURE__ */ e(ze, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
|
|
@@ -2339,7 +2362,7 @@ function mt({ onSubmit: a }) {
|
|
|
2339
2362
|
] })
|
|
2340
2363
|
] }) });
|
|
2341
2364
|
}
|
|
2342
|
-
function
|
|
2365
|
+
function gt({ title: a, links: t }) {
|
|
2343
2366
|
const [r, n] = k(!1);
|
|
2344
2367
|
return /* @__PURE__ */ i("div", { className: "border-b border-[var(--border)] md:border-none", children: [
|
|
2345
2368
|
/* @__PURE__ */ i(
|
|
@@ -2382,7 +2405,7 @@ function ft({ title: a, links: t }) {
|
|
|
2382
2405
|
)
|
|
2383
2406
|
] });
|
|
2384
2407
|
}
|
|
2385
|
-
const
|
|
2408
|
+
const vt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...n }) => {
|
|
2386
2409
|
const [s, c] = k("light");
|
|
2387
2410
|
M(() => {
|
|
2388
2411
|
const u = document.documentElement;
|
|
@@ -2400,7 +2423,7 @@ const gt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
|
|
|
2400
2423
|
"aria-label": "Rodapé do site",
|
|
2401
2424
|
...n,
|
|
2402
2425
|
children: [
|
|
2403
|
-
/* @__PURE__ */ e(
|
|
2426
|
+
/* @__PURE__ */ e(ft, { onSubmit: t }),
|
|
2404
2427
|
/* @__PURE__ */ i("div", { className: "mx-auto max-w-screen-xl px-4", children: [
|
|
2405
2428
|
/* @__PURE__ */ i("div", { className: "py-10 md:grid md:grid-cols-4 md:gap-8", children: [
|
|
2406
2429
|
/* @__PURE__ */ i("div", { className: "mb-8 md:mb-0", children: [
|
|
@@ -2415,7 +2438,7 @@ const gt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
|
|
|
2415
2438
|
}
|
|
2416
2439
|
),
|
|
2417
2440
|
/* @__PURE__ */ e("p", { className: "mt-3 max-w-xs text-sm text-[var(--muted-foreground)]", children: f }),
|
|
2418
|
-
/* @__PURE__ */ e("div", { className: "mt-6 flex flex-wrap gap-2", "aria-label": "Redes sociais", children:
|
|
2441
|
+
/* @__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(
|
|
2419
2442
|
"a",
|
|
2420
2443
|
{
|
|
2421
2444
|
href: v,
|
|
@@ -2433,7 +2456,7 @@ const gt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
|
|
|
2433
2456
|
/* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: "(11) 3000-0000" })
|
|
2434
2457
|
] })
|
|
2435
2458
|
] }),
|
|
2436
|
-
|
|
2459
|
+
ut.map((u) => /* @__PURE__ */ e(gt, { title: u.title, links: u.links }, u.id))
|
|
2437
2460
|
] }),
|
|
2438
2461
|
/* @__PURE__ */ i("div", { className: "flex flex-col gap-2 border-t border-[var(--border)] py-6 text-xs text-[var(--muted-foreground)] sm:flex-row sm:items-center sm:justify-between", children: [
|
|
2439
2462
|
/* @__PURE__ */ i("p", { children: [
|
|
@@ -2452,18 +2475,7 @@ const gt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, className: r, ...
|
|
|
2452
2475
|
}
|
|
2453
2476
|
);
|
|
2454
2477
|
};
|
|
2455
|
-
|
|
2456
|
-
function ta({ children: a, as: t = "div", className: r }) {
|
|
2457
|
-
return /* @__PURE__ */ e(
|
|
2458
|
-
t,
|
|
2459
|
-
{
|
|
2460
|
-
"data-slot": "container",
|
|
2461
|
-
className: o("w-full mx-auto px-[var(--container-px)]", r),
|
|
2462
|
-
style: { maxWidth: "var(--container-max)" },
|
|
2463
|
-
children: a
|
|
2464
|
-
}
|
|
2465
|
-
);
|
|
2466
|
-
}
|
|
2478
|
+
vt.displayName = "Footer";
|
|
2467
2479
|
function aa({ children: a, className: t }) {
|
|
2468
2480
|
return /* @__PURE__ */ e(
|
|
2469
2481
|
"div",
|
|
@@ -2477,7 +2489,7 @@ function aa({ children: a, className: t }) {
|
|
|
2477
2489
|
}
|
|
2478
2490
|
);
|
|
2479
2491
|
}
|
|
2480
|
-
const
|
|
2492
|
+
const pt = {
|
|
2481
2493
|
1: "col-span-1",
|
|
2482
2494
|
2: "col-span-2",
|
|
2483
2495
|
3: "col-span-3",
|
|
@@ -2486,71 +2498,71 @@ const vt = {
|
|
|
2486
2498
|
6: "col-span-6"
|
|
2487
2499
|
};
|
|
2488
2500
|
function ra({ children: a, span: t, className: r }) {
|
|
2489
|
-
return /* @__PURE__ */ e("div", { "data-slot": "col", className: o("min-w-0", t &&
|
|
2501
|
+
return /* @__PURE__ */ e("div", { "data-slot": "col", className: o("min-w-0", t && pt[t], r), children: a });
|
|
2490
2502
|
}
|
|
2491
2503
|
export {
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2504
|
+
Vt as Accordion,
|
|
2505
|
+
Ht as AccordionContent,
|
|
2506
|
+
Ft as AccordionItem,
|
|
2507
|
+
qt as AccordionTrigger,
|
|
2496
2508
|
De as Avatar,
|
|
2497
2509
|
P as Badge,
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2510
|
+
At as Breadcrumb,
|
|
2511
|
+
Et as BreadcrumbItem,
|
|
2512
|
+
$t as BreadcrumbLink,
|
|
2513
|
+
Rt as BreadcrumbList,
|
|
2502
2514
|
Tt as BreadcrumbPage,
|
|
2503
|
-
|
|
2515
|
+
Bt as BreadcrumbSeparator,
|
|
2504
2516
|
C as Button,
|
|
2505
|
-
|
|
2517
|
+
Dt as Checkbox,
|
|
2506
2518
|
ra as Col,
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2519
|
+
et as Container,
|
|
2520
|
+
Ot as DialogContent,
|
|
2521
|
+
Jt as DialogDescription,
|
|
2522
|
+
Yt as DialogFooter,
|
|
2523
|
+
Xt as DialogHeader,
|
|
2524
|
+
Zt as DialogTitle,
|
|
2525
|
+
Kt as DialogTrigger,
|
|
2514
2526
|
Pe as Divider,
|
|
2515
2527
|
Qe as Drawer,
|
|
2516
2528
|
X as EmptyState,
|
|
2517
2529
|
qe as ErrorState,
|
|
2518
|
-
|
|
2530
|
+
vt as Footer,
|
|
2519
2531
|
Be as FormGroup,
|
|
2520
2532
|
aa as Grid,
|
|
2521
2533
|
Fe as Hero,
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2534
|
+
at as HeroCarousel,
|
|
2535
|
+
zt as Input,
|
|
2536
|
+
ct as MegaMenu,
|
|
2537
|
+
Wt as Modal,
|
|
2538
|
+
$e as PriceDisplay,
|
|
2539
|
+
T as ProductCard,
|
|
2528
2540
|
He as ProductGrid,
|
|
2529
2541
|
la as ProgressBar,
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2542
|
+
Te as QuantitySelector,
|
|
2543
|
+
Lt as RadioGroup,
|
|
2544
|
+
_t as RadioGroupItem,
|
|
2545
|
+
$ as Rating,
|
|
2534
2546
|
Ee as SearchBar,
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2547
|
+
Ct as Select,
|
|
2548
|
+
jt as SelectContent,
|
|
2549
|
+
Mt as SelectItem,
|
|
2550
|
+
It as SelectTrigger,
|
|
2551
|
+
St as SelectValue,
|
|
2540
2552
|
Ye as SheetContent,
|
|
2541
|
-
|
|
2542
|
-
|
|
2553
|
+
ta as SheetDescription,
|
|
2554
|
+
ea as SheetFooter,
|
|
2543
2555
|
Ze as SheetHeader,
|
|
2544
2556
|
Je as SheetTitle,
|
|
2545
2557
|
We as SheetTrigger,
|
|
2546
2558
|
_e as Spinner,
|
|
2547
2559
|
Ie as Textarea,
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2560
|
+
Pt as Toggle,
|
|
2561
|
+
Gt as Tooltip,
|
|
2562
|
+
Qt as TooltipContent,
|
|
2551
2563
|
Ve as TooltipProvider,
|
|
2552
|
-
|
|
2553
|
-
|
|
2564
|
+
Ut as TooltipTrigger,
|
|
2565
|
+
tt as TopAccessibilityBar,
|
|
2554
2566
|
Me as avatarVariants,
|
|
2555
2567
|
je as badgeVariants,
|
|
2556
2568
|
Se as buttonVariants,
|