@celke/kole-react 0.2.0 → 0.3.0

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/README.md CHANGED
@@ -101,6 +101,37 @@ export function Layout({ sair }: { sair: () => void }) {
101
101
  Para links de verdade do roteador (ctrl+clique abre em nova aba), passe
102
102
  `renderLink={(p) => <Link to={p.href} className={p.className} onClick={p.onClick} aria-current={p['aria-current']}>{p.children}</Link>}`.
103
103
 
104
+ ### Páginas fora do React no mesmo app (Inertia + Blade)
105
+
106
+ Num app Laravel com páginas Inertia e páginas Blade, o `<Link>` do Inertia só
107
+ serve para as páginas Inertia. Marque as outras com `recarregar: true`: o link
108
+ vira um `<a>` comum (sem `renderLink` nem `aoNavegar`) e abre com recarga
109
+ completa. Vale para o menu, a busca do menu e a trilha. Se a marca aponta para
110
+ uma página Blade, use `marca={{ …, recarregar: true }}`.
111
+
112
+ ```tsx
113
+ import { Link, router, usePage } from '@inertiajs/react';
114
+
115
+ <Estrutura
116
+ nav={[
117
+ {
118
+ itens: [
119
+ { rotulo: 'Painel', icone: 'house', rota: '/painel' }, // Inertia
120
+ { rotulo: 'Relatórios', icone: 'file-text', rota: '/relatorios', recarregar: true }, // Blade
121
+ ],
122
+ },
123
+ ]}
124
+ rotaAtual={usePage().url}
125
+ aoNavegar={(rota) => router.visit(rota)}
126
+ renderLink={(p) => <Link href={p.href} className={p.className} onClick={p.onClick} aria-current={p['aria-current']}>{p.children}</Link>}
127
+ …
128
+ />
129
+ ```
130
+
131
+ Do Blade para o Inertia não precisa de nada: um link comum abre a página
132
+ Inertia. Para as telas Blade com o mesmo layout, veja o pacote Composer
133
+ [`celke/kole-laravel`](https://github.com/celkecursos/kole-laravel).
134
+
104
135
  ## Componentes
105
136
 
106
137
  | Grupo | Componentes |
@@ -6,6 +6,8 @@ export interface ItemBusca {
6
6
  icone?: IconeProp;
7
7
  /** Caminho no menu (ex.: "Cadastros › Pessoas"). */
8
8
  trilha?: string;
9
+ /** Página fora da navegação SPA (ex.: tela Blade num app Inertia): abre com recarga completa, sem `aoNavegar`. */
10
+ recarregar?: boolean;
9
11
  }
10
12
  export interface BuscaProps {
11
13
  placeholder?: string;
@@ -8,6 +8,11 @@ export interface ItemNav {
8
8
  rota?: string;
9
9
  filhos?: ItemNav[];
10
10
  desabilitado?: boolean;
11
+ /**
12
+ * Página fora da navegação SPA (ex.: tela Blade num app Inertia): o link vira
13
+ * um `<a>` comum, sem `renderLink` nem `aoNavegar`, e abre com recarga completa.
14
+ */
15
+ recarregar?: boolean;
11
16
  }
12
17
  export interface SecaoNav {
13
18
  /** Rótulo do grupo (linha em caixa alta). */
@@ -20,6 +25,8 @@ export interface Marca {
20
25
  /** URL da imagem do logo (sem ela, mostra um escudo). */
21
26
  logo?: string;
22
27
  href?: string;
28
+ /** O `href` da marca abre com recarga completa (ver `ItemNav.recarregar`). */
29
+ recarregar?: boolean;
23
30
  }
24
31
  export interface UsuarioEstrutura {
25
32
  nome: string;
package/dist/index.js CHANGED
@@ -1467,8 +1467,8 @@ function ci({ placeholder: e = "Buscar…", ocupado: t, itensMenu: n, aoNavegar:
1467
1467
  });
1468
1468
  let S = (e) => {
1469
1469
  f(e), g(-1), m(!0), a?.(e);
1470
- }, C = (e, t) => {
1471
- r && (t?.preventDefault(), r(e)), f(""), m(!1), u.current?.blur();
1470
+ }, C = (e, t, n) => {
1471
+ r && !n && (t?.preventDefault(), r(e)), f(""), m(!1), u.current?.blur();
1472
1472
  }, w = (e) => {
1473
1473
  let t = x();
1474
1474
  if (e.key === "ArrowDown" || e.key === "ArrowUp") {
@@ -1531,7 +1531,7 @@ function ci({ placeholder: e = "Buscar…", ocupado: t, itensMenu: n, aoNavegar:
1531
1531
  y.map((e) => /* @__PURE__ */ U("a", {
1532
1532
  className: "lp-pb-item",
1533
1533
  href: e.rota,
1534
- onClick: (t) => C(e.rota, t),
1534
+ onClick: (t) => C(e.rota, t, e.recarregar),
1535
1535
  children: [
1536
1536
  /* @__PURE__ */ H(Z, { icone: e.icone ?? "chevron-right" }),
1537
1537
  /* @__PURE__ */ H("span", { children: e.rotulo }),
@@ -1687,7 +1687,8 @@ function yi(e) {
1687
1687
  rotulo: a.rotulo,
1688
1688
  rota: a.rota,
1689
1689
  icone: a.icone ?? i,
1690
- trilha: r.join(" › ") || void 0
1690
+ trilha: r.join(" › ") || void 0,
1691
+ recarregar: a.recarregar || void 0
1691
1692
  }));
1692
1693
  };
1693
1694
  return e.forEach((e) => n(e.itens, e.rotulo ? [e.rotulo] : [])), t;
@@ -1732,7 +1733,18 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1732
1733
  for (let n of t) n.rota && e(n.rota) && (!r || n.rota.length > r.length) && (r = n.rota), n.filhos && i(n.filhos);
1733
1734
  };
1734
1735
  return t.forEach((e) => i(e.itens)), r;
1735
- }, [t, n]), oe = W((e) => !!e && e === ae, [ae]), se = (e) => !!e.filhos?.some((e) => oe(e.rota) || se(e)), ce = _ === "abaixo" && D, le = (e) => P((t) => {
1736
+ }, [t, n]), oe = W((e) => !!e && e === ae, [ae]), se = At(() => {
1737
+ let n = /* @__PURE__ */ new Set();
1738
+ e.recarregar && n.add(e.href ?? "/");
1739
+ let r = (e) => {
1740
+ for (let t of e) t.recarregar && t.rota && n.add(t.rota), t.filhos && r(t.filhos);
1741
+ };
1742
+ return t.forEach((e) => r(e.itens)), n;
1743
+ }, [
1744
+ t,
1745
+ e.recarregar,
1746
+ e.href
1747
+ ]), ce = (e) => !!e.filhos?.some((e) => oe(e.rota) || ce(e)), le = _ === "abaixo" && D, ue = (e) => P((t) => {
1736
1748
  let n = new Set(t);
1737
1749
  return n.has(e) ? n.delete(e) : n.add(e), n;
1738
1750
  });
@@ -1747,23 +1759,23 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1747
1759
  };
1748
1760
  t.forEach((e) => n(e.itens, "")), e.length && P((t) => /* @__PURE__ */ new Set([...t, ...e]));
1749
1761
  }, [t, oe]), K(() => {
1750
- ce && A(null);
1751
- }, [ce]);
1752
- let ue = () => {
1762
+ le && A(null);
1763
+ }, [le]);
1764
+ let de = () => {
1753
1765
  A(null), T && O(!1);
1754
- }, de = (e, t, n) => {
1755
- let a = oe(e.rota), o = {
1766
+ }, fe = (e, t, n) => {
1767
+ let a = oe(e.rota), o = !!e.recarregar || !!e.rota && se.has(e.rota), s = {
1756
1768
  href: e.rota ?? "#",
1757
1769
  className: X(t, a && "lp-active", e.desabilitado && "lp-is-disabled"),
1758
1770
  "aria-current": a ? "page" : void 0,
1759
1771
  "aria-disabled": e.desabilitado || void 0,
1760
1772
  children: n,
1761
1773
  onClick: (t) => {
1762
- e.desabilitado ? t.preventDefault() : (r && e.rota && (t.preventDefault(), r(e.rota)), ue());
1774
+ e.desabilitado ? t.preventDefault() : (r && e.rota && !o && (t.preventDefault(), r(e.rota)), de());
1763
1775
  }
1764
1776
  };
1765
- return i ? i(o, e) : /* @__PURE__ */ H("a", { ...o });
1766
- }, fe = At(() => {
1777
+ return i && !o ? i(s, e) : /* @__PURE__ */ H("a", { ...s });
1778
+ }, pe = At(() => {
1767
1779
  let n = {
1768
1780
  rotulo: "Início",
1769
1781
  rota: e.href ?? "/",
@@ -1771,7 +1783,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1771
1783
  }, r = fi(t, oe), i = r[r.length - 1];
1772
1784
  return {
1773
1785
  itens: !i || i.rota === n.rota ? [n] : [n, ...r],
1774
- link: (e, t, n) => de({
1786
+ link: (e, t, n) => fe({
1775
1787
  rotulo: "",
1776
1788
  rota: e
1777
1789
  }, n, t),
@@ -1783,9 +1795,10 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1783
1795
  e.href,
1784
1796
  r,
1785
1797
  i,
1786
- g
1787
- ]), pe = (e, t) => e.map((e) => {
1788
- if (!e.filhos?.length) return /* @__PURE__ */ H(Ct, { children: de(e, "lp-nav-sub", /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
1798
+ g,
1799
+ se
1800
+ ]), me = (e, t) => e.map((e) => {
1801
+ if (!e.filhos?.length) return /* @__PURE__ */ H(Ct, { children: fe(e, "lp-nav-sub", /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
1789
1802
  className: "lp-nav-sub-ic",
1790
1803
  children: /* @__PURE__ */ H(Z, { icone: e.icone ?? "chevron-right" })
1791
1804
  }), /* @__PURE__ */ H("span", {
@@ -1794,13 +1807,13 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1794
1807
  })] })) }, e.rotulo);
1795
1808
  let n = `${t}›${e.rotulo}`, r = N.has(n);
1796
1809
  return /* @__PURE__ */ U("div", {
1797
- className: X("lp-nav-sub-grp", r && "lp-sub-open", se(e) && "lp-has-active"),
1810
+ className: X("lp-nav-sub-grp", r && "lp-sub-open", ce(e) && "lp-has-active"),
1798
1811
  children: [/* @__PURE__ */ U("button", {
1799
1812
  type: "button",
1800
1813
  className: X("lp-nav-sub lp-nav-sub-parent", e.desabilitado && "lp-is-disabled"),
1801
1814
  disabled: e.desabilitado,
1802
1815
  "aria-expanded": r,
1803
- onClick: () => le(n),
1816
+ onClick: () => ue(n),
1804
1817
  children: [
1805
1818
  /* @__PURE__ */ H("span", {
1806
1819
  className: "lp-nav-sub-ic",
@@ -1819,24 +1832,24 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1819
1832
  className: "lp-nav-sub-netos",
1820
1833
  role: "group",
1821
1834
  "aria-label": e.rotulo,
1822
- children: pe(e.filhos, n)
1835
+ children: me(e.filhos, n)
1823
1836
  })]
1824
1837
  }, e.rotulo);
1825
- }), me = At(() => yi(t), [t]), he = At(() => {
1838
+ }), he = At(() => yi(t), [t]), ge = At(() => {
1826
1839
  for (let e of t) for (let t of e.itens) if (t.rotulo === k && t.filhos) return t;
1827
1840
  return null;
1828
- }, [t, k]), ge = c?.filter((e) => e.naoLida).length ?? 0, _e = u.length > 0, ve = hi.find((e) => e.valor === C?.densidade) ?? hi[1], ye = (e) => I((t) => t === e ? null : e), be = (e) => (t) => {
1841
+ }, [t, k]), _e = c?.filter((e) => e.naoLida).length ?? 0, ve = u.length > 0, ye = hi.find((e) => e.valor === C?.densidade) ?? hi[1], be = (e) => I((t) => t === e ? null : e), xe = (e) => (t) => {
1829
1842
  I(null), e?.(t);
1830
- }, xe = a && /* @__PURE__ */ H(oi, {
1843
+ }, Se = a && /* @__PURE__ */ H(oi, {
1831
1844
  className: "lp-avatar-topo",
1832
1845
  tom: "escuro",
1833
1846
  tamanho: "1.875rem",
1834
1847
  nome: a.nome,
1835
1848
  foto: a.foto,
1836
1849
  iniciais: a.iniciais
1837
- }), Se = a && /* @__PURE__ */ U("div", {
1850
+ }), Ce = a && /* @__PURE__ */ U("div", {
1838
1851
  className: "lp-tb-menu-head",
1839
- children: [xe, /* @__PURE__ */ U("div", {
1852
+ children: [Se, /* @__PURE__ */ U("div", {
1840
1853
  className: "lp-tb-menu-head-tx",
1841
1854
  children: [/* @__PURE__ */ H("div", {
1842
1855
  className: "lp-profile-name",
@@ -1846,7 +1859,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1846
1859
  children: a.cargo
1847
1860
  })]
1848
1861
  })]
1849
- }), Ce = C && /* @__PURE__ */ H(V, { children: hi.map((e) => /* @__PURE__ */ U("button", {
1862
+ }), we = C && /* @__PURE__ */ H(V, { children: hi.map((e) => /* @__PURE__ */ U("button", {
1850
1863
  type: "button",
1851
1864
  className: X("lp-tb-menu-item", C.densidade === e.valor && "lp-active"),
1852
1865
  "aria-pressed": C.densidade === e.valor,
@@ -1859,9 +1872,9 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1859
1872
  className: "lp-tb-menu-check"
1860
1873
  })
1861
1874
  ]
1862
- }, e.valor)) }), we = v === void 0 ? /* @__PURE__ */ H(ci, {
1875
+ }, e.valor)) }), Te = v === void 0 ? /* @__PURE__ */ H(ci, {
1863
1876
  placeholder: y,
1864
- itensMenu: me,
1877
+ itensMenu: he,
1865
1878
  aoNavegar: r,
1866
1879
  aoBuscar: b
1867
1880
  }) : v || null;
@@ -1915,7 +1928,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1915
1928
  href: e.href ?? "/",
1916
1929
  "aria-label": e.nome,
1917
1930
  onClick: (t) => {
1918
- r && (t.preventDefault(), r(e.href ?? "/"));
1931
+ r && !e.recarregar && (t.preventDefault(), r(e.href ?? "/"));
1919
1932
  },
1920
1933
  children: e.logo && L ? /* @__PURE__ */ H("img", {
1921
1934
  className: "lp-brand-img",
@@ -1951,14 +1964,14 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1951
1964
  children: [/* @__PURE__ */ H("span", { children: e.rotulo }), /* @__PURE__ */ H("span", { className: "lp-sidebar-grp-ln" })]
1952
1965
  }), /* @__PURE__ */ H("div", {
1953
1966
  className: "lp-sidebar-items",
1954
- children: e.itens.map((e) => e.filhos ? ce ? /* @__PURE__ */ U("div", {
1955
- className: X("lp-nav-group", N.has(e.rotulo) && "lp-grupo-aberto", se(e) && "lp-has-active"),
1967
+ children: e.itens.map((e) => e.filhos ? le ? /* @__PURE__ */ U("div", {
1968
+ className: X("lp-nav-group", N.has(e.rotulo) && "lp-grupo-aberto", ce(e) && "lp-has-active"),
1956
1969
  children: [/* @__PURE__ */ U("button", {
1957
1970
  type: "button",
1958
1971
  className: X("lp-nav-it lp-nav-parent", e.desabilitado && "lp-is-disabled"),
1959
1972
  disabled: e.desabilitado,
1960
1973
  "aria-expanded": N.has(e.rotulo),
1961
- onClick: () => le(e.rotulo),
1974
+ onClick: () => ue(e.rotulo),
1962
1975
  children: [
1963
1976
  /* @__PURE__ */ H("span", {
1964
1977
  className: "lp-nav-tile",
@@ -1977,10 +1990,10 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
1977
1990
  className: "lp-nav-filhos",
1978
1991
  role: "group",
1979
1992
  "aria-label": e.rotulo,
1980
- children: pe(e.filhos, e.rotulo)
1993
+ children: me(e.filhos, e.rotulo)
1981
1994
  })]
1982
1995
  }, e.rotulo) : /* @__PURE__ */ H("div", {
1983
- className: X("lp-nav-group", k === e.rotulo && "lp-aside-on", se(e) && "lp-has-active"),
1996
+ className: X("lp-nav-group", k === e.rotulo && "lp-aside-on", ce(e) && "lp-has-active"),
1984
1997
  children: /* @__PURE__ */ U("button", {
1985
1998
  type: "button",
1986
1999
  className: X("lp-nav-it lp-nav-parent", e.desabilitado && "lp-is-disabled"),
@@ -2008,7 +2021,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2008
2021
  texto: D ? void 0 : e.rotulo,
2009
2022
  posicao: "direita",
2010
2023
  atraso: 150,
2011
- children: de(e, "lp-nav-it", /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
2024
+ children: fe(e, "lp-nav-it", /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
2012
2025
  className: "lp-nav-tile",
2013
2026
  children: /* @__PURE__ */ H(Z, { icone: e.icone ?? "circle" })
2014
2027
  }), /* @__PURE__ */ H("span", {
@@ -2037,22 +2050,22 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2037
2050
  })
2038
2051
  ]
2039
2052
  }),
2040
- he && /* @__PURE__ */ U("div", {
2053
+ ge && /* @__PURE__ */ U("div", {
2041
2054
  className: X("lp-sidebar-aside", !D && "lp-aside--flutuante"),
2042
2055
  ref: B,
2043
2056
  role: "region",
2044
- "aria-label": `Submenu ${he.rotulo}`,
2057
+ "aria-label": `Submenu ${ge.rotulo}`,
2045
2058
  style: D ? void 0 : { "--aside-topo": `${Math.max(8, Math.min(j, window.innerHeight - 320))}px` },
2046
2059
  children: [/* @__PURE__ */ U("div", {
2047
2060
  className: "lp-aside-head",
2048
2061
  children: [
2049
2062
  /* @__PURE__ */ H("span", {
2050
2063
  className: "lp-aside-ic",
2051
- children: /* @__PURE__ */ H(Z, { icone: he.icone ?? "folder" })
2064
+ children: /* @__PURE__ */ H(Z, { icone: ge.icone ?? "folder" })
2052
2065
  }),
2053
2066
  /* @__PURE__ */ H("span", {
2054
2067
  className: "lp-aside-ttl",
2055
- children: he.rotulo
2068
+ children: ge.rotulo
2056
2069
  }),
2057
2070
  /* @__PURE__ */ H("button", {
2058
2071
  type: "button",
@@ -2065,17 +2078,17 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2065
2078
  ]
2066
2079
  }), /* @__PURE__ */ H("div", {
2067
2080
  className: "lp-aside-corpo",
2068
- children: he.filhos.map((e) => {
2069
- if (!e.filhos?.length) return /* @__PURE__ */ H(Ct, { children: de(e, "lp-nav-sub", /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
2081
+ children: ge.filhos.map((e) => {
2082
+ if (!e.filhos?.length) return /* @__PURE__ */ H(Ct, { children: fe(e, "lp-nav-sub", /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
2070
2083
  className: "lp-nav-sub-ic",
2071
2084
  children: /* @__PURE__ */ H(Z, { icone: e.icone ?? "chevron-right" })
2072
2085
  }), /* @__PURE__ */ H("span", {
2073
2086
  className: "lp-nav-sub-tx",
2074
2087
  children: e.rotulo
2075
2088
  })] })) }, e.rotulo);
2076
- let t = `${he.rotulo}›${e.rotulo}`, n = N.has(t) || se(e);
2089
+ let t = `${ge.rotulo}›${e.rotulo}`, n = N.has(t) || ce(e);
2077
2090
  return /* @__PURE__ */ U("div", {
2078
- className: X("lp-nav-sub-grp", n && "lp-sub-open", se(e) && "lp-has-active"),
2091
+ className: X("lp-nav-sub-grp", n && "lp-sub-open", ce(e) && "lp-has-active"),
2079
2092
  children: [/* @__PURE__ */ U("button", {
2080
2093
  type: "button",
2081
2094
  className: X("lp-nav-sub lp-nav-sub-parent", e.desabilitado && "lp-is-disabled"),
@@ -2103,7 +2116,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2103
2116
  className: "lp-nav-sub-netos",
2104
2117
  role: "group",
2105
2118
  "aria-label": e.rotulo,
2106
- children: e.filhos.map((e) => /* @__PURE__ */ H(Ct, { children: de(e, "lp-nav-sub lp-nav-sub-neto", /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
2119
+ children: e.filhos.map((e) => /* @__PURE__ */ H(Ct, { children: fe(e, "lp-nav-sub lp-nav-sub-neto", /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
2107
2120
  className: "lp-nav-sub-ic",
2108
2121
  children: /* @__PURE__ */ H(Z, { icone: e.icone ?? "chevron-right" })
2109
2122
  }), /* @__PURE__ */ H("span", {
@@ -2133,7 +2146,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2133
2146
  className: "lp-tb-system",
2134
2147
  children: [/* @__PURE__ */ H("b", { children: e.nome }), e.subtitulo && /* @__PURE__ */ H("span", { children: e.subtitulo })]
2135
2148
  }),
2136
- !E && we,
2149
+ !E && Te,
2137
2150
  /* @__PURE__ */ U("div", {
2138
2151
  className: "lp-tb-right",
2139
2152
  ref: ee,
@@ -2143,14 +2156,14 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2143
2156
  C && /* @__PURE__ */ U("div", {
2144
2157
  className: "lp-tb-menu-wrap",
2145
2158
  children: [/* @__PURE__ */ H(Dr, {
2146
- texto: `Densidade: ${ve.rotulo}`,
2159
+ texto: `Densidade: ${ye.rotulo}`,
2147
2160
  children: /* @__PURE__ */ H("button", {
2148
2161
  type: "button",
2149
2162
  className: X("lp-tb-icon", F === "densidade" && "lp-menu-open"),
2150
2163
  "aria-expanded": F === "densidade",
2151
- "aria-label": `Densidade: ${ve.rotulo}`,
2152
- onClick: () => ye("densidade"),
2153
- children: /* @__PURE__ */ H(Z, { icone: ve.icone })
2164
+ "aria-label": `Densidade: ${ye.rotulo}`,
2165
+ onClick: () => be("densidade"),
2166
+ children: /* @__PURE__ */ H(Z, { icone: ye.icone })
2154
2167
  })
2155
2168
  }), F === "densidade" && /* @__PURE__ */ U("div", {
2156
2169
  className: "lp-tb-menu",
@@ -2159,10 +2172,10 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2159
2172
  children: [/* @__PURE__ */ H("div", {
2160
2173
  className: "lp-tb-menu-ttl",
2161
2174
  children: "Densidade"
2162
- }), Ce]
2175
+ }), we]
2163
2176
  })]
2164
2177
  }),
2165
- _e && /* @__PURE__ */ U("div", {
2178
+ ve && /* @__PURE__ */ U("div", {
2166
2179
  className: "lp-tb-menu-wrap",
2167
2180
  children: [/* @__PURE__ */ H(Dr, {
2168
2181
  texto: "Desenvolvimento",
@@ -2171,7 +2184,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2171
2184
  className: X("lp-tb-icon", F === "dev" && "lp-menu-open"),
2172
2185
  "aria-expanded": F === "dev",
2173
2186
  "aria-label": "Desenvolvimento",
2174
- onClick: () => ye("dev"),
2187
+ onClick: () => be("dev"),
2175
2188
  children: /* @__PURE__ */ H(Z, { icone: "code" })
2176
2189
  })
2177
2190
  }), F === "dev" && /* @__PURE__ */ H("div", {
@@ -2180,7 +2193,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2180
2193
  "aria-label": "Desenvolvimento",
2181
2194
  children: /* @__PURE__ */ H(bi, {
2182
2195
  itens: u,
2183
- aoEscolher: be(d)
2196
+ aoEscolher: xe(d)
2184
2197
  })
2185
2198
  })]
2186
2199
  }),
@@ -2203,9 +2216,9 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2203
2216
  type: "button",
2204
2217
  className: X("lp-tb-icon lp-tb-bell", F === "sino" && "lp-menu-open"),
2205
2218
  "aria-expanded": F === "sino",
2206
- "aria-label": ge ? `Notificações: ${ge} não lida(s)` : "Notificações",
2207
- onClick: () => ye("sino"),
2208
- children: [/* @__PURE__ */ H(Z, { icone: "bell" }), ge > 0 && /* @__PURE__ */ H("span", {
2219
+ "aria-label": _e ? `Notificações: ${_e} não lida(s)` : "Notificações",
2220
+ onClick: () => be("sino"),
2221
+ children: [/* @__PURE__ */ H(Z, { icone: "bell" }), _e > 0 && /* @__PURE__ */ H("span", {
2209
2222
  className: "lp-bell-dot",
2210
2223
  "aria-hidden": "true"
2211
2224
  })]
@@ -2216,14 +2229,14 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2216
2229
  "aria-label": "Notificações",
2217
2230
  children: [/* @__PURE__ */ U("div", {
2218
2231
  className: "lp-tb-menu-ttl",
2219
- children: [/* @__PURE__ */ H("span", { children: "Notificações" }), ge > 0 && /* @__PURE__ */ U("span", {
2232
+ children: [/* @__PURE__ */ H("span", { children: "Notificações" }), _e > 0 && /* @__PURE__ */ U("span", {
2220
2233
  className: "lp-notif-count",
2221
- children: [ge, " não lida(s)"]
2234
+ children: [_e, " não lida(s)"]
2222
2235
  })]
2223
2236
  }), c.length ? c.map((e) => /* @__PURE__ */ U("button", {
2224
2237
  type: "button",
2225
2238
  className: X("lp-tb-menu-item lp-notif-item", e.naoLida && "lp-unread"),
2226
- onClick: () => be(l)(e.id),
2239
+ onClick: () => xe(l)(e.id),
2227
2240
  children: [
2228
2241
  /* @__PURE__ */ H("span", {
2229
2242
  className: "lp-notif-ic",
@@ -2264,14 +2277,14 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2264
2277
  className: "lp-profile",
2265
2278
  "aria-expanded": F === "compacto",
2266
2279
  "aria-label": `Conta e preferências: ${a.nome}`,
2267
- onClick: () => ye("compacto"),
2268
- children: xe
2280
+ onClick: () => be("compacto"),
2281
+ children: Se
2269
2282
  }), F === "compacto" && /* @__PURE__ */ U("div", {
2270
2283
  className: "lp-tb-menu lp-tb-menu-compact",
2271
2284
  role: "group",
2272
2285
  "aria-label": "Conta e preferências",
2273
2286
  children: [
2274
- Se,
2287
+ Ce,
2275
2288
  b && /* @__PURE__ */ U("div", {
2276
2289
  className: "lp-cm-search",
2277
2290
  role: "search",
@@ -2294,23 +2307,23 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2294
2307
  onClick: C.alternarTema,
2295
2308
  children: [/* @__PURE__ */ H(Z, { icone: C.escuro ? "sun" : "moon" }), /* @__PURE__ */ H("span", { children: C.escuro ? "Tema claro" : "Tema escuro" })]
2296
2309
  })] }),
2297
- _e && /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
2310
+ ve && /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
2298
2311
  className: "lp-tb-menu-ttl",
2299
2312
  children: "Desenvolvimento"
2300
2313
  }), /* @__PURE__ */ H(bi, {
2301
2314
  itens: u,
2302
- aoEscolher: be(d)
2315
+ aoEscolher: xe(d)
2303
2316
  })] }),
2304
2317
  C && /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
2305
2318
  className: "lp-tb-menu-ttl",
2306
2319
  children: "Densidade"
2307
- }), Ce] }),
2320
+ }), we] }),
2308
2321
  o.length > 0 && /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
2309
2322
  className: "lp-tb-menu-ln",
2310
2323
  "aria-hidden": "true"
2311
2324
  }), /* @__PURE__ */ H(bi, {
2312
2325
  itens: o,
2313
- aoEscolher: be(s)
2326
+ aoEscolher: xe(s)
2314
2327
  })] })
2315
2328
  ]
2316
2329
  })]
@@ -2321,9 +2334,9 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2321
2334
  className: X("lp-profile", !o.length && "lp-no-menu"),
2322
2335
  "aria-expanded": o.length ? F === "usuario" : void 0,
2323
2336
  "aria-label": `Usuário: ${a.nome}`,
2324
- onClick: () => o.length && ye("usuario"),
2337
+ onClick: () => o.length && be("usuario"),
2325
2338
  children: [
2326
- xe,
2339
+ Se,
2327
2340
  /* @__PURE__ */ U("div", {
2328
2341
  className: "lp-profile-info",
2329
2342
  children: [/* @__PURE__ */ H("div", {
@@ -2343,9 +2356,9 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2343
2356
  className: "lp-tb-menu lp-tb-menu-user",
2344
2357
  role: "group",
2345
2358
  "aria-label": "Menu do usuário",
2346
- children: [Se, /* @__PURE__ */ H(bi, {
2359
+ children: [Ce, /* @__PURE__ */ H(bi, {
2347
2360
  itens: o,
2348
- aoEscolher: be(s)
2361
+ aoEscolher: xe(s)
2349
2362
  })]
2350
2363
  })]
2351
2364
  })] }))
@@ -2361,7 +2374,7 @@ function xi({ marca: e, nav: t, rotaAtual: n, aoNavegar: r, renderLink: i, usuar
2361
2374
  children: /* @__PURE__ */ H("div", {
2362
2375
  className: "lp-content-inner",
2363
2376
  children: /* @__PURE__ */ H(ui, {
2364
- value: fe,
2377
+ value: pe,
2365
2378
  children: S
2366
2379
  })
2367
2380
  })