@grupo-elo-editorial/shared-ui-react 1.2.16 → 1.3.1

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 CHANGED
@@ -4,6 +4,27 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) · Versioning:
4
4
 
5
5
  ---
6
6
 
7
+ ## [1.3.1] — 2026-06-02 (HeroCarousel — dots pagination visualmente corretos)
8
+
9
+ ### Fixed
10
+
11
+ - **`HeroCarousel`**: dots de pagination corrigidos — o `min-h-[24px]` do touch target sobrescrevia `h-1.5` tornando os dots visualmente grandes (44×24 px de fundo). Separado o touch target (button transparente `min-w-11 min-h-6 group`) do visual (inner `<span>`) para que o fundo colorido tenha exatamente `h-1 w-1` (inativo) ou `h-1 w-3` (ativo). Cores: `bg-white/40` inativo → `bg-white/60` no `group-hover`; `bg-white` ativo. Gap: `gap-2` → `gap-1.5`. Touch targets e `focus-visible:ring` preservados (WCAG 2.5.5 / 1.4.11).
12
+ - `package.json` `version` bumped `1.3.0 → 1.3.1`.
13
+
14
+ ---
15
+
16
+ ## [1.3.0] — 2026-06-02 (HeroCarousel — polish visual nos controles de navegação)
17
+
18
+ ### Changed
19
+
20
+ - **`HeroCarousel`**: setas de navegação com opacidade reduzida: idle `bg-white/90` → `bg-white/50`; hover `hover:bg-white` → `hover:bg-white/80`. Touch targets (`min-w-[44px] min-h-[44px]`) e `focus-visible:ring` preservados (WCAG 2.5.5 / 1.4.11).
21
+
22
+ - **`HeroCarousel`**: pagination dots menores: pill ativo `h-2 w-8` (32×8 px) → `h-1.5 w-5` (20×6 px); círculo inativo `h-2 w-2` (8×8 px) → `h-1.5 w-1.5` (6×6 px). Wrapper mantém `min-w-[44px] min-h-[24px]` (WCAG 2.5.5).
23
+
24
+ - `package.json` `version` bumped `1.2.16 → 1.3.0`.
25
+
26
+ ---
27
+
7
28
  ## [1.2.9] — 2026-05-26 (HeroCarousel — desktop aspect ratio 24:7)
8
29
 
9
30
  ### Changed
package/dist/index.js CHANGED
@@ -1945,7 +1945,7 @@ const at = x(
1945
1945
  "button",
1946
1946
  {
1947
1947
  onClick: N,
1948
- 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]",
1948
+ className: "absolute left-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]",
1949
1949
  "aria-label": "Slide anterior",
1950
1950
  children: /* @__PURE__ */ e(he, { className: "h-6 w-6 text-gray-900" })
1951
1951
  }
@@ -1954,22 +1954,28 @@ const at = x(
1954
1954
  "button",
1955
1955
  {
1956
1956
  onClick: h,
1957
- className: "absolute right-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]",
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
1959
  children: /* @__PURE__ */ e(W, { className: "h-6 w-6 text-gray-900" })
1960
1960
  }
1961
1961
  )
1962
1962
  ] }),
1963
- t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2", children: t.map((d, v) => /* @__PURE__ */ e(
1963
+ t.length > 1 && /* @__PURE__ */ e("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-1.5", children: t.map((d, v) => /* @__PURE__ */ e(
1964
1964
  "button",
1965
1965
  {
1966
1966
  onClick: () => b(v),
1967
- className: o(
1968
- "h-2 rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] min-w-[44px] min-h-[24px] flex items-center justify-center",
1969
- v === s ? "w-8 bg-white" : "w-2 bg-white/50 hover:bg-white/70"
1970
- ),
1967
+ className: "min-w-11 min-h-6 flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-full group",
1971
1968
  "aria-label": `Ir para slide ${v + 1}`,
1972
- "aria-current": v === s
1969
+ "aria-current": v === s,
1970
+ children: /* @__PURE__ */ e(
1971
+ "span",
1972
+ {
1973
+ className: o(
1974
+ "block rounded-full transition-all",
1975
+ v === s ? "h-1 w-3 bg-white" : "h-1 w-1 bg-white/40 group-hover:bg-white/60"
1976
+ )
1977
+ }
1978
+ )
1973
1979
  },
1974
1980
  v
1975
1981
  )) })