@grupo-elo-editorial/shared-ui-react 1.3.15 → 1.3.16
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 +11 -0
- package/dist/index.js +82 -83
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,17 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) · Versioning:
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.3.16] — 2026-06-05 (Footer — links app stores, remoção LABBOOK e logo PeraBook)
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`Footer`**: badges Google Play e App Store agora são clicáveis via props `playStoreUrl` e `appStoreUrl` (antes abriam `#`).
|
|
12
|
+
- **`Footer`**: link LABBOOK removido da coluna "Editora" no `NAV_COLUMNS`.
|
|
13
|
+
- **`Footer`**: logo PeraBook aumentada de `h-10` (40 px) para `h-14` (56 px) com sizing condicional por brand; logo Elo Editora mantém `h-10`.
|
|
14
|
+
- `package.json` `version` bumped `1.3.15 → 1.3.16`.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
7
18
|
## [1.3.1] — 2026-06-02 (HeroCarousel — dots pagination visualmente corretos)
|
|
8
19
|
|
|
9
20
|
### Fixed
|
package/dist/index.js
CHANGED
|
@@ -3,23 +3,23 @@ import { clsx as te } from "clsx";
|
|
|
3
3
|
import { twMerge as ae } from "tailwind-merge";
|
|
4
4
|
import { jsx as e, jsxs as o, Fragment as P } from "react/jsx-runtime";
|
|
5
5
|
import { forwardRef as w, useState as z, useEffect as A } from "react";
|
|
6
|
-
import { Loader2 as U, User as re, Star as ie, CheckIcon as W, ChevronDownIcon as R, ChevronUpIcon as oe, CircleIcon as ne, ShoppingCart as T, Heart as se, Search as
|
|
7
|
-
import { cva as
|
|
6
|
+
import { Loader2 as U, User as re, Star as ie, CheckIcon as W, ChevronDownIcon as R, ChevronUpIcon as oe, CircleIcon as ne, ShoppingCart as T, Heart as se, Search as X, X as le, Minus as de, Plus as ce, ChevronRight as Y, FileX as ue, Package as me, AlertCircle as fe, RefreshCw as ge, Home as pe, XIcon as K, Accessibility as ve, ZoomOut as be, ZoomIn as he, Moon as xe, Sun as Ne, ChevronLeft as we, Menu as ye, ChevronDown as O, Instagram as ke, Facebook as ze, Youtube as Ce, Linkedin as Se, Mail as je } from "lucide-react";
|
|
7
|
+
import { cva as B } from "class-variance-authority";
|
|
8
8
|
import * as C from "@radix-ui/react-select";
|
|
9
9
|
import * as q from "@radix-ui/react-checkbox";
|
|
10
10
|
import * as $ from "@radix-ui/react-radio-group";
|
|
11
11
|
import * as G from "@radix-ui/react-switch";
|
|
12
|
-
import { Slot as
|
|
13
|
-
import * as
|
|
12
|
+
import { Slot as De } from "@radix-ui/react-slot";
|
|
13
|
+
import * as _ from "@radix-ui/react-accordion";
|
|
14
14
|
import * as M from "@radix-ui/react-tooltip";
|
|
15
15
|
import { toast as da } from "sonner";
|
|
16
16
|
import { Progress as ua } from "@radix-ui/react-progress";
|
|
17
17
|
import * as y from "@radix-ui/react-dialog";
|
|
18
|
-
import * as
|
|
18
|
+
import * as D from "@radix-ui/react-navigation-menu";
|
|
19
19
|
function i(...a) {
|
|
20
20
|
return ae(te(a));
|
|
21
21
|
}
|
|
22
|
-
const Me =
|
|
22
|
+
const Me = B(
|
|
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: {
|
|
@@ -107,7 +107,7 @@ const Pe = w(
|
|
|
107
107
|
] })
|
|
108
108
|
);
|
|
109
109
|
Pe.displayName = "Textarea";
|
|
110
|
-
const Ae =
|
|
110
|
+
const Ae = B(
|
|
111
111
|
"inline-flex items-center rounded-full font-medium transition-colors whitespace-nowrap",
|
|
112
112
|
{
|
|
113
113
|
variants: {
|
|
@@ -155,7 +155,7 @@ const Ae = L(
|
|
|
155
155
|
)
|
|
156
156
|
);
|
|
157
157
|
E.displayName = "Badge";
|
|
158
|
-
const
|
|
158
|
+
const _e = B(
|
|
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
|
{
|
|
161
161
|
variants: {
|
|
@@ -170,7 +170,7 @@ const Be = L(
|
|
|
170
170
|
size: "md"
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
),
|
|
173
|
+
), Be = w(
|
|
174
174
|
({ className: a, size: t, src: r, alt: s, name: l, showStatus: n, statusType: d = "online", ...m }, u) => {
|
|
175
175
|
const [f, v] = z(!1), p = (h) => h.split(" ").map((c) => c[0]).join("").toUpperCase().slice(0, 2), b = {
|
|
176
176
|
online: "bg-[var(--success)]",
|
|
@@ -183,7 +183,7 @@ const Be = L(
|
|
|
183
183
|
lg: "h-3 w-3 border-2",
|
|
184
184
|
xl: "h-4 w-4 border-2"
|
|
185
185
|
};
|
|
186
|
-
return /* @__PURE__ */ o("div", { ref: u, className: i(
|
|
186
|
+
return /* @__PURE__ */ o("div", { ref: u, className: i(_e({ size: t }), "relative", a), children: [
|
|
187
187
|
r && !f ? /* @__PURE__ */ e(
|
|
188
188
|
"img",
|
|
189
189
|
{
|
|
@@ -208,8 +208,8 @@ const Be = L(
|
|
|
208
208
|
] });
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
|
-
|
|
212
|
-
const
|
|
211
|
+
Be.displayName = "Avatar";
|
|
212
|
+
const Le = B("animate-spin text-[var(--brand-primary)]", {
|
|
213
213
|
variants: {
|
|
214
214
|
size: {
|
|
215
215
|
sm: "h-4 w-4",
|
|
@@ -231,7 +231,7 @@ const _e = L("animate-spin text-[var(--brand-primary)]", {
|
|
|
231
231
|
className: i("inline-flex items-center justify-center", a),
|
|
232
232
|
...s,
|
|
233
233
|
children: [
|
|
234
|
-
/* @__PURE__ */ e(U, { className: i(
|
|
234
|
+
/* @__PURE__ */ e(U, { className: i(Le({ size: t })) }),
|
|
235
235
|
/* @__PURE__ */ e("span", { className: "sr-only", children: r || "Loading" })
|
|
236
236
|
]
|
|
237
237
|
}
|
|
@@ -348,7 +348,7 @@ const V = w(
|
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
350
|
V.displayName = "Rating";
|
|
351
|
-
function
|
|
351
|
+
function jt({ className: a, type: t, ...r }) {
|
|
352
352
|
return /* @__PURE__ */ e(
|
|
353
353
|
"input",
|
|
354
354
|
{
|
|
@@ -364,7 +364,7 @@ function Dt({ className: a, type: t, ...r }) {
|
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Dt({
|
|
368
368
|
...a
|
|
369
369
|
}) {
|
|
370
370
|
return /* @__PURE__ */ e(C.Root, { "data-slot": "select", ...a });
|
|
@@ -431,7 +431,7 @@ function At({
|
|
|
431
431
|
}
|
|
432
432
|
) });
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function _t({
|
|
435
435
|
className: a,
|
|
436
436
|
children: t,
|
|
437
437
|
...r
|
|
@@ -486,7 +486,7 @@ function $e({
|
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Bt({
|
|
490
490
|
className: a,
|
|
491
491
|
...t
|
|
492
492
|
}) {
|
|
@@ -510,7 +510,7 @@ function Lt({
|
|
|
510
510
|
}
|
|
511
511
|
);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Lt({
|
|
514
514
|
className: a,
|
|
515
515
|
...t
|
|
516
516
|
}) {
|
|
@@ -599,10 +599,10 @@ const F = w(
|
|
|
599
599
|
href: c,
|
|
600
600
|
orientation: g = "vertical",
|
|
601
601
|
...N
|
|
602
|
-
},
|
|
602
|
+
}, j) => v ? /* @__PURE__ */ o(
|
|
603
603
|
"div",
|
|
604
604
|
{
|
|
605
|
-
ref:
|
|
605
|
+
ref: j,
|
|
606
606
|
className: i(
|
|
607
607
|
"flex rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-4 animate-pulse",
|
|
608
608
|
g === "horizontal" ? "flex-row gap-3" : "flex-col",
|
|
@@ -629,7 +629,7 @@ const F = w(
|
|
|
629
629
|
) : g === "horizontal" ? /* @__PURE__ */ o(
|
|
630
630
|
"div",
|
|
631
631
|
{
|
|
632
|
-
ref:
|
|
632
|
+
ref: j,
|
|
633
633
|
className: i(
|
|
634
634
|
"group relative flex flex-row gap-3 rounded-lg border-2 border-[var(--border)] bg-[var(--card)] p-3 transition-all hover:shadow-md",
|
|
635
635
|
p && "opacity-60",
|
|
@@ -699,7 +699,7 @@ const F = w(
|
|
|
699
699
|
) : /* @__PURE__ */ o(
|
|
700
700
|
"div",
|
|
701
701
|
{
|
|
702
|
-
ref:
|
|
702
|
+
ref: j,
|
|
703
703
|
className: i(
|
|
704
704
|
"group relative flex flex-col rounded-lg border-2 border-border bg-card transition-all hover:shadow-lg",
|
|
705
705
|
p && "opacity-60",
|
|
@@ -812,15 +812,15 @@ const Ve = w(
|
|
|
812
812
|
md: "h-11 text-base",
|
|
813
813
|
lg: "h-14 text-lg"
|
|
814
814
|
}, h = (N) => {
|
|
815
|
-
const
|
|
816
|
-
d === void 0 && p(
|
|
815
|
+
const j = N.target.value;
|
|
816
|
+
d === void 0 && p(j), m == null || m(N);
|
|
817
817
|
}, c = () => {
|
|
818
818
|
d === void 0 && p(""), r == null || r();
|
|
819
819
|
}, g = (N) => {
|
|
820
820
|
N.key === "Enter" && t && t(b);
|
|
821
821
|
};
|
|
822
822
|
return /* @__PURE__ */ e("div", { className: i("relative w-full", a), children: /* @__PURE__ */ o("div", { className: "relative flex items-center", children: [
|
|
823
|
-
/* @__PURE__ */ e(
|
|
823
|
+
/* @__PURE__ */ e(X, { className: "absolute left-3 h-5 w-5 text-[var(--muted-foreground)] pointer-events-none" }),
|
|
824
824
|
/* @__PURE__ */ e(
|
|
825
825
|
"input",
|
|
826
826
|
{
|
|
@@ -1061,7 +1061,7 @@ function Ft({
|
|
|
1061
1061
|
...r
|
|
1062
1062
|
}) {
|
|
1063
1063
|
return /* @__PURE__ */ e(
|
|
1064
|
-
a ?
|
|
1064
|
+
a ? De : "a",
|
|
1065
1065
|
{
|
|
1066
1066
|
"data-slot": "breadcrumb-link",
|
|
1067
1067
|
className: i("hover:text-foreground transition-colors", t),
|
|
@@ -1095,21 +1095,21 @@ function Ut({
|
|
|
1095
1095
|
"aria-hidden": "true",
|
|
1096
1096
|
className: i("[&>svg]:size-3.5", t),
|
|
1097
1097
|
...r,
|
|
1098
|
-
children: a ?? /* @__PURE__ */ e(
|
|
1098
|
+
children: a ?? /* @__PURE__ */ e(Y, {})
|
|
1099
1099
|
}
|
|
1100
1100
|
);
|
|
1101
1101
|
}
|
|
1102
1102
|
function qt({
|
|
1103
1103
|
...a
|
|
1104
1104
|
}) {
|
|
1105
|
-
return /* @__PURE__ */ e(
|
|
1105
|
+
return /* @__PURE__ */ e(_.Root, { "data-slot": "accordion", ...a });
|
|
1106
1106
|
}
|
|
1107
1107
|
function Gt({
|
|
1108
1108
|
className: a,
|
|
1109
1109
|
...t
|
|
1110
1110
|
}) {
|
|
1111
1111
|
return /* @__PURE__ */ e(
|
|
1112
|
-
|
|
1112
|
+
_.Item,
|
|
1113
1113
|
{
|
|
1114
1114
|
"data-slot": "accordion-item",
|
|
1115
1115
|
className: i("border-b last:border-b-0", a),
|
|
@@ -1122,8 +1122,8 @@ function Ht({
|
|
|
1122
1122
|
children: t,
|
|
1123
1123
|
...r
|
|
1124
1124
|
}) {
|
|
1125
|
-
return /* @__PURE__ */ e(
|
|
1126
|
-
|
|
1125
|
+
return /* @__PURE__ */ e(_.Header, { className: "flex", children: /* @__PURE__ */ o(
|
|
1126
|
+
_.Trigger,
|
|
1127
1127
|
{
|
|
1128
1128
|
"data-slot": "accordion-trigger",
|
|
1129
1129
|
className: i(
|
|
@@ -1144,7 +1144,7 @@ function Qt({
|
|
|
1144
1144
|
...r
|
|
1145
1145
|
}) {
|
|
1146
1146
|
return /* @__PURE__ */ e(
|
|
1147
|
-
|
|
1147
|
+
_.Content,
|
|
1148
1148
|
{
|
|
1149
1149
|
"data-slot": "accordion-content",
|
|
1150
1150
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
@@ -1171,12 +1171,12 @@ function Wt({
|
|
|
1171
1171
|
}) {
|
|
1172
1172
|
return /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(M.Root, { "data-slot": "tooltip", ...a }) });
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Xt({
|
|
1175
1175
|
...a
|
|
1176
1176
|
}) {
|
|
1177
1177
|
return /* @__PURE__ */ e(M.Trigger, { "data-slot": "tooltip-trigger", ...a });
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Yt({
|
|
1180
1180
|
className: a,
|
|
1181
1181
|
sideOffset: t = 0,
|
|
1182
1182
|
children: r,
|
|
@@ -1319,7 +1319,7 @@ const Z = w(
|
|
|
1319
1319
|
}, m) => {
|
|
1320
1320
|
const f = r || {
|
|
1321
1321
|
default: /* @__PURE__ */ e(me, { className: "h-16 w-16" }),
|
|
1322
|
-
search: /* @__PURE__ */ e(
|
|
1322
|
+
search: /* @__PURE__ */ e(X, { className: "h-16 w-16" }),
|
|
1323
1323
|
cart: /* @__PURE__ */ e(T, { className: "h-16 w-16" }),
|
|
1324
1324
|
error: /* @__PURE__ */ e(ue, { className: "h-16 w-16" })
|
|
1325
1325
|
}[t];
|
|
@@ -1497,12 +1497,12 @@ const Qe = w(
|
|
|
1497
1497
|
}
|
|
1498
1498
|
);
|
|
1499
1499
|
Qe.displayName = "ProductGrid";
|
|
1500
|
-
function
|
|
1500
|
+
function Kt({
|
|
1501
1501
|
...a
|
|
1502
1502
|
}) {
|
|
1503
1503
|
return /* @__PURE__ */ e(y.Root, { "data-slot": "dialog", ...a });
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function Ot({
|
|
1506
1506
|
...a
|
|
1507
1507
|
}) {
|
|
1508
1508
|
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
@@ -1512,7 +1512,7 @@ function We({
|
|
|
1512
1512
|
}) {
|
|
1513
1513
|
return /* @__PURE__ */ e(y.Portal, { "data-slot": "dialog-portal", ...a });
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Xe({
|
|
1516
1516
|
className: a,
|
|
1517
1517
|
...t
|
|
1518
1518
|
}) {
|
|
@@ -1534,7 +1534,7 @@ function Zt({
|
|
|
1534
1534
|
...r
|
|
1535
1535
|
}) {
|
|
1536
1536
|
return /* @__PURE__ */ o(We, { "data-slot": "dialog-portal", children: [
|
|
1537
|
-
/* @__PURE__ */ e(
|
|
1537
|
+
/* @__PURE__ */ e(Xe, {}),
|
|
1538
1538
|
/* @__PURE__ */ o(
|
|
1539
1539
|
y.Content,
|
|
1540
1540
|
{
|
|
@@ -1547,7 +1547,7 @@ function Zt({
|
|
|
1547
1547
|
children: [
|
|
1548
1548
|
t,
|
|
1549
1549
|
/* @__PURE__ */ o(y.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
|
|
1550
|
-
/* @__PURE__ */ e(
|
|
1550
|
+
/* @__PURE__ */ e(K, {}),
|
|
1551
1551
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
1552
1552
|
] })
|
|
1553
1553
|
]
|
|
@@ -1604,15 +1604,15 @@ function aa({
|
|
|
1604
1604
|
}
|
|
1605
1605
|
);
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Ye({ ...a }) {
|
|
1608
1608
|
return /* @__PURE__ */ e(y.Root, { "data-slot": "sheet", ...a });
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1610
|
+
function Ke({
|
|
1611
1611
|
...a
|
|
1612
1612
|
}) {
|
|
1613
1613
|
return /* @__PURE__ */ e(y.Trigger, { "data-slot": "sheet-trigger", ...a });
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function Oe({
|
|
1616
1616
|
...a
|
|
1617
1617
|
}) {
|
|
1618
1618
|
return /* @__PURE__ */ e(y.Close, { "data-slot": "sheet-close", ...a });
|
|
@@ -1662,7 +1662,7 @@ function et({
|
|
|
1662
1662
|
children: [
|
|
1663
1663
|
t,
|
|
1664
1664
|
/* @__PURE__ */ o(y.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1665
|
-
/* @__PURE__ */ e(
|
|
1665
|
+
/* @__PURE__ */ e(K, { className: "size-4" }),
|
|
1666
1666
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
1667
1667
|
] })
|
|
1668
1668
|
]
|
|
@@ -1956,7 +1956,7 @@ const ot = w(
|
|
|
1956
1956
|
onClick: h,
|
|
1957
1957
|
className: "absolute right-4 top-1/2 -translate-y-1/2 rounded-full bg-white/50 p-2 shadow-lg transition-all hover:bg-white/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[44px]",
|
|
1958
1958
|
"aria-label": "Próximo slide",
|
|
1959
|
-
children: /* @__PURE__ */ e(
|
|
1959
|
+
children: /* @__PURE__ */ e(Y, { className: "h-6 w-6 text-gray-900" })
|
|
1960
1960
|
}
|
|
1961
1961
|
)
|
|
1962
1962
|
] }),
|
|
@@ -1992,7 +1992,7 @@ function nt({
|
|
|
1992
1992
|
...s
|
|
1993
1993
|
}) {
|
|
1994
1994
|
return /* @__PURE__ */ o(
|
|
1995
|
-
|
|
1995
|
+
D.Root,
|
|
1996
1996
|
{
|
|
1997
1997
|
"data-slot": "navigation-menu",
|
|
1998
1998
|
"data-viewport": r,
|
|
@@ -2013,7 +2013,7 @@ function st({
|
|
|
2013
2013
|
...t
|
|
2014
2014
|
}) {
|
|
2015
2015
|
return /* @__PURE__ */ e(
|
|
2016
|
-
|
|
2016
|
+
D.List,
|
|
2017
2017
|
{
|
|
2018
2018
|
"data-slot": "navigation-menu-list",
|
|
2019
2019
|
className: i(
|
|
@@ -2029,7 +2029,7 @@ function Q({
|
|
|
2029
2029
|
...t
|
|
2030
2030
|
}) {
|
|
2031
2031
|
return /* @__PURE__ */ e(
|
|
2032
|
-
|
|
2032
|
+
D.Item,
|
|
2033
2033
|
{
|
|
2034
2034
|
"data-slot": "navigation-menu-item",
|
|
2035
2035
|
className: i("relative", a),
|
|
@@ -2037,7 +2037,7 @@ function Q({
|
|
|
2037
2037
|
}
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
|
-
const lt =
|
|
2040
|
+
const lt = B(
|
|
2041
2041
|
"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"
|
|
2042
2042
|
);
|
|
2043
2043
|
function dt({
|
|
@@ -2046,7 +2046,7 @@ function dt({
|
|
|
2046
2046
|
...r
|
|
2047
2047
|
}) {
|
|
2048
2048
|
return /* @__PURE__ */ o(
|
|
2049
|
-
|
|
2049
|
+
D.Trigger,
|
|
2050
2050
|
{
|
|
2051
2051
|
"data-slot": "navigation-menu-trigger",
|
|
2052
2052
|
className: i(lt(), "group", a),
|
|
@@ -2070,7 +2070,7 @@ function ct({
|
|
|
2070
2070
|
...t
|
|
2071
2071
|
}) {
|
|
2072
2072
|
return /* @__PURE__ */ e(
|
|
2073
|
-
|
|
2073
|
+
D.Content,
|
|
2074
2074
|
{
|
|
2075
2075
|
"data-slot": "navigation-menu-content",
|
|
2076
2076
|
className: i(
|
|
@@ -2093,7 +2093,7 @@ function ut({
|
|
|
2093
2093
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
2094
2094
|
),
|
|
2095
2095
|
children: /* @__PURE__ */ e(
|
|
2096
|
-
|
|
2096
|
+
D.Viewport,
|
|
2097
2097
|
{
|
|
2098
2098
|
"data-slot": "navigation-menu-viewport",
|
|
2099
2099
|
className: i(
|
|
@@ -2111,7 +2111,7 @@ function I({
|
|
|
2111
2111
|
...t
|
|
2112
2112
|
}) {
|
|
2113
2113
|
return /* @__PURE__ */ e(
|
|
2114
|
-
|
|
2114
|
+
D.Link,
|
|
2115
2115
|
{
|
|
2116
2116
|
"data-slot": "navigation-menu-link",
|
|
2117
2117
|
className: i(
|
|
@@ -2157,7 +2157,7 @@ function mt({ items: a }) {
|
|
|
2157
2157
|
function J({ item: a, depth: t = 0 }) {
|
|
2158
2158
|
var n;
|
|
2159
2159
|
const [r, s] = z(!1);
|
|
2160
|
-
return !((n = a.children) != null && n.length) ? /* @__PURE__ */ e(
|
|
2160
|
+
return !((n = a.children) != null && n.length) ? /* @__PURE__ */ e(Oe, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2161
2161
|
"a",
|
|
2162
2162
|
{
|
|
2163
2163
|
href: a.href ?? "#",
|
|
@@ -2182,7 +2182,7 @@ function J({ item: a, depth: t = 0 }) {
|
|
|
2182
2182
|
children: [
|
|
2183
2183
|
/* @__PURE__ */ e("span", { children: a.label }),
|
|
2184
2184
|
/* @__PURE__ */ e(
|
|
2185
|
-
|
|
2185
|
+
O,
|
|
2186
2186
|
{
|
|
2187
2187
|
"aria-hidden": "true",
|
|
2188
2188
|
className: i(
|
|
@@ -2220,8 +2220,8 @@ const ft = w(
|
|
|
2220
2220
|
s && /* @__PURE__ */ e("div", { className: "hidden flex-1 md:flex", children: s }),
|
|
2221
2221
|
/* @__PURE__ */ e("div", { className: "flex-1 md:hidden", "aria-hidden": "true" }),
|
|
2222
2222
|
r && /* @__PURE__ */ e("div", { className: "flex items-center", children: r }),
|
|
2223
|
-
/* @__PURE__ */ o(
|
|
2224
|
-
/* @__PURE__ */ e(
|
|
2223
|
+
/* @__PURE__ */ o(Ye, { children: [
|
|
2224
|
+
/* @__PURE__ */ e(Ke, { asChild: !0, children: /* @__PURE__ */ e(
|
|
2225
2225
|
"button",
|
|
2226
2226
|
{
|
|
2227
2227
|
type: "button",
|
|
@@ -2298,7 +2298,6 @@ const gt = [
|
|
|
2298
2298
|
title: "Editora",
|
|
2299
2299
|
links: [
|
|
2300
2300
|
{ label: "Autores", href: "/autores" },
|
|
2301
|
-
{ label: "LABBOOK", href: "/labbook" },
|
|
2302
2301
|
{ label: "Projetos", href: "/projetos" },
|
|
2303
2302
|
{ label: "Fale Conosco", href: "/editora/contato" },
|
|
2304
2303
|
{ label: "FAQ", href: "/editora/faq" }
|
|
@@ -2318,7 +2317,7 @@ const gt = [
|
|
|
2318
2317
|
function vt({ onSubmit: a }) {
|
|
2319
2318
|
const [t, r] = z(""), [s, l] = z(!1);
|
|
2320
2319
|
return /* @__PURE__ */ e("div", { className: "mx-auto w-full bg-[var(--brand-primary)] py-8 md:py-10 lg:py-12", style: { maxWidth: "var(--container-max)" }, children: /* @__PURE__ */ o("div", { className: "mx-auto max-w-lg px-[var(--container-px)] text-center", children: [
|
|
2321
|
-
/* @__PURE__ */ e(
|
|
2320
|
+
/* @__PURE__ */ e(je, { className: "mx-auto mb-4 h-10 w-10 text-white", "aria-hidden": "true" }),
|
|
2322
2321
|
/* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-white sm:text-2xl", children: "Receba novidades e ofertas exclusivas" }),
|
|
2323
2322
|
/* @__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." }),
|
|
2324
2323
|
s ? /* @__PURE__ */ e("p", { className: "mt-6 text-sm font-medium text-white", children: "Obrigado! Você está na lista. ✓" }) : /* @__PURE__ */ o("form", { onSubmit: (d) => {
|
|
@@ -2362,7 +2361,7 @@ function bt({ title: a, links: t }) {
|
|
|
2362
2361
|
children: [
|
|
2363
2362
|
a,
|
|
2364
2363
|
/* @__PURE__ */ e(
|
|
2365
|
-
|
|
2364
|
+
O,
|
|
2366
2365
|
{
|
|
2367
2366
|
"aria-hidden": "true",
|
|
2368
2367
|
className: i("h-4 w-4 text-[var(--muted-foreground)] transition-transform duration-200", r && "rotate-180")
|
|
@@ -2397,15 +2396,15 @@ const ht = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2397
2396
|
A(() => {
|
|
2398
2397
|
const k = document.documentElement;
|
|
2399
2398
|
f(k.getAttribute("data-theme") ?? "light");
|
|
2400
|
-
const
|
|
2399
|
+
const L = new MutationObserver(() => {
|
|
2401
2400
|
f(k.getAttribute("data-theme") ?? "light");
|
|
2402
2401
|
});
|
|
2403
|
-
return
|
|
2402
|
+
return L.observe(k, { attributes: !0, attributeFilter: ["data-theme"] }), () => L.disconnect();
|
|
2404
2403
|
}, []);
|
|
2405
2404
|
const v = a === "perabook" ? u === "dark" ? "/logos/logo_PeraBook_institucional_tarja_branca.png" : "/logos/PeraBook_instituicional.png" : u === "dark" ? "/logos/logo_elo_editora_texto_branco.png" : "/logos/logo_elo_institucional.png", p = a === "perabook" ? "PeraBook" : "Elo Editora", b = gt.map((k) => ({
|
|
2406
2405
|
...k,
|
|
2407
2406
|
href: (n == null ? void 0 : n[k.key]) ?? k.href
|
|
2408
|
-
})).filter((k) => k.href), x = (n == null ? void 0 : n.email) ?? "contato@grupoeloediorial.com.br", h = (n == null ? void 0 : n.phone) ?? "(11) 3000-0000", c = n == null ? void 0 : n.fullAddress, g = u === "dark" && (n == null ? void 0 : n.googlePlayBadgeUrlDark) || (n == null ? void 0 : n.googlePlayBadgeUrl) || "", N = u === "dark" && (n == null ? void 0 : n.appStoreBadgeUrlDark) || (n == null ? void 0 : n.appStoreBadgeUrl) || "",
|
|
2407
|
+
})).filter((k) => k.href), x = (n == null ? void 0 : n.email) ?? "contato@grupoeloediorial.com.br", h = (n == null ? void 0 : n.phone) ?? "(11) 3000-0000", c = n == null ? void 0 : n.fullAddress, g = u === "dark" && (n == null ? void 0 : n.googlePlayBadgeUrlDark) || (n == null ? void 0 : n.googlePlayBadgeUrl) || "", N = u === "dark" && (n == null ? void 0 : n.appStoreBadgeUrlDark) || (n == null ? void 0 : n.appStoreBadgeUrl) || "", j = !!(g || N);
|
|
2409
2408
|
return /* @__PURE__ */ o(
|
|
2410
2409
|
"footer",
|
|
2411
2410
|
{
|
|
@@ -2422,9 +2421,9 @@ const ht = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2422
2421
|
{
|
|
2423
2422
|
src: v,
|
|
2424
2423
|
alt: p,
|
|
2425
|
-
width: 120,
|
|
2426
|
-
height: 40,
|
|
2427
|
-
className: "h-10 w-auto object-contain"
|
|
2424
|
+
width: a === "perabook" ? 160 : 120,
|
|
2425
|
+
height: a === "perabook" ? 53 : 40,
|
|
2426
|
+
className: a === "perabook" ? "h-14 w-auto object-contain" : "h-10 w-auto object-contain"
|
|
2428
2427
|
}
|
|
2429
2428
|
),
|
|
2430
2429
|
/* @__PURE__ */ o("div", { className: "mt-6 space-y-1 text-sm", children: [
|
|
@@ -2436,7 +2435,7 @@ const ht = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2436
2435
|
] }),
|
|
2437
2436
|
pt.map((k) => /* @__PURE__ */ e(bt, { title: k.title, links: k.links }, k.id)),
|
|
2438
2437
|
/* @__PURE__ */ o("div", { className: "mb-8 md:mb-0", children: [
|
|
2439
|
-
|
|
2438
|
+
j && /* @__PURE__ */ o(P, { children: [
|
|
2440
2439
|
/* @__PURE__ */ e("p", { className: "text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Baixe nosso app" }),
|
|
2441
2440
|
/* @__PURE__ */ o("div", { className: "mt-3 flex flex-col gap-2", children: [
|
|
2442
2441
|
g && /* @__PURE__ */ e(
|
|
@@ -2484,10 +2483,10 @@ const ht = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
|
|
|
2484
2483
|
] })
|
|
2485
2484
|
] }),
|
|
2486
2485
|
/* @__PURE__ */ e("p", { className: "mt-6 text-sm font-semibold uppercase tracking-wide text-[var(--foreground)]", children: "Compartilhe" }),
|
|
2487
|
-
/* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: b.map(({ label: k, href:
|
|
2486
|
+
/* @__PURE__ */ e("div", { className: "mt-3 flex flex-wrap gap-2", "aria-label": "Compartilhe nas redes sociais", children: b.map(({ label: k, href: L, Icon: ee }) => /* @__PURE__ */ e(
|
|
2488
2487
|
"a",
|
|
2489
2488
|
{
|
|
2490
|
-
href:
|
|
2489
|
+
href: L,
|
|
2491
2490
|
target: "_blank",
|
|
2492
2491
|
rel: "noopener noreferrer",
|
|
2493
2492
|
"aria-label": k,
|
|
@@ -2545,7 +2544,7 @@ export {
|
|
|
2545
2544
|
Qt as AccordionContent,
|
|
2546
2545
|
Gt as AccordionItem,
|
|
2547
2546
|
Ht as AccordionTrigger,
|
|
2548
|
-
|
|
2547
|
+
Be as Avatar,
|
|
2549
2548
|
E as Badge,
|
|
2550
2549
|
Tt as Breadcrumb,
|
|
2551
2550
|
Vt as BreadcrumbItem,
|
|
@@ -2554,7 +2553,7 @@ export {
|
|
|
2554
2553
|
It as BreadcrumbPage,
|
|
2555
2554
|
Ut as BreadcrumbSeparator,
|
|
2556
2555
|
S as Button,
|
|
2557
|
-
|
|
2556
|
+
Bt as Checkbox,
|
|
2558
2557
|
na as Col,
|
|
2559
2558
|
rt as Container,
|
|
2560
2559
|
Zt as DialogContent,
|
|
@@ -2562,9 +2561,9 @@ export {
|
|
|
2562
2561
|
ea as DialogFooter,
|
|
2563
2562
|
Jt as DialogHeader,
|
|
2564
2563
|
ta as DialogTitle,
|
|
2565
|
-
|
|
2564
|
+
Ot as DialogTrigger,
|
|
2566
2565
|
Re as Divider,
|
|
2567
|
-
|
|
2566
|
+
Ye as Drawer,
|
|
2568
2567
|
Z as EmptyState,
|
|
2569
2568
|
He as ErrorState,
|
|
2570
2569
|
ht as Footer,
|
|
@@ -2572,21 +2571,21 @@ export {
|
|
|
2572
2571
|
oa as Grid,
|
|
2573
2572
|
Ge as Hero,
|
|
2574
2573
|
ot as HeroCarousel,
|
|
2575
|
-
|
|
2574
|
+
jt as Input,
|
|
2576
2575
|
ft as MegaMenu,
|
|
2577
|
-
|
|
2576
|
+
Kt as Modal,
|
|
2578
2577
|
Fe as PriceDisplay,
|
|
2579
2578
|
F as ProductCard,
|
|
2580
2579
|
Qe as ProductGrid,
|
|
2581
2580
|
ua as ProgressBar,
|
|
2582
2581
|
Ie as QuantitySelector,
|
|
2583
|
-
|
|
2582
|
+
Lt as RadioGroup,
|
|
2584
2583
|
Et as RadioGroupItem,
|
|
2585
2584
|
V as Rating,
|
|
2586
2585
|
Ve as SearchBar,
|
|
2587
|
-
|
|
2586
|
+
Dt as Select,
|
|
2588
2587
|
At as SelectContent,
|
|
2589
|
-
|
|
2588
|
+
_t as SelectItem,
|
|
2590
2589
|
Pt as SelectTrigger,
|
|
2591
2590
|
Mt as SelectValue,
|
|
2592
2591
|
et as SheetContent,
|
|
@@ -2594,20 +2593,20 @@ export {
|
|
|
2594
2593
|
ra as SheetFooter,
|
|
2595
2594
|
tt as SheetHeader,
|
|
2596
2595
|
at as SheetTitle,
|
|
2597
|
-
|
|
2596
|
+
Ke as SheetTrigger,
|
|
2598
2597
|
Ee as Spinner,
|
|
2599
2598
|
Pe as Textarea,
|
|
2600
2599
|
Rt as Toggle,
|
|
2601
2600
|
Wt as Tooltip,
|
|
2602
|
-
|
|
2601
|
+
Yt as TooltipContent,
|
|
2603
2602
|
qe as TooltipProvider,
|
|
2604
|
-
|
|
2603
|
+
Xt as TooltipTrigger,
|
|
2605
2604
|
it as TopAccessibilityBar,
|
|
2606
|
-
|
|
2605
|
+
_e as avatarVariants,
|
|
2607
2606
|
Ae as badgeVariants,
|
|
2608
2607
|
Me as buttonVariants,
|
|
2609
2608
|
i as cn,
|
|
2610
|
-
|
|
2609
|
+
Le as spinnerVariants,
|
|
2611
2610
|
da as toast
|
|
2612
2611
|
};
|
|
2613
2612
|
//# sourceMappingURL=index.js.map
|