@grupo-elo-editorial/shared-ui-react 1.2.7 → 1.2.8
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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) · Versioning:
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.2.8] — 2026-05-26 (HeroCarousel — mobile aspect ratio 3:2)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- **`HeroCarousel`**: mobile aspect ratio updated from `5:6` (portrait, ~497px on iPhone XR) to `3:2` (~276px on iPhone XR = 31% of 896px viewport). The previous ratio made the hero occupy 55% of the screen on common phones, which was disproportionate. Tablet (`16:9`) and desktop (`1920:700`) ratios unchanged. Image spec updated: mobile banners should now be **750 × 500 px** (3:2) instead of 750 × 900 px.
|
|
12
|
+
|
|
13
|
+
- `package.json` `version` bumped `1.2.7 → 1.2.8`.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
7
17
|
## [1.2.7] — 2026-05-26 (TopAccessibilityBar — container via design-tokens)
|
|
8
18
|
|
|
9
19
|
### Changed
|
package/dist/index.js
CHANGED
|
@@ -615,7 +615,7 @@ const T = N(
|
|
|
615
615
|
{
|
|
616
616
|
className: o(
|
|
617
617
|
"rounded-lg bg-[var(--muted)]",
|
|
618
|
-
p === "horizontal" ? "h-24 w-20 shrink-0" : "w-full
|
|
618
|
+
p === "horizontal" ? "h-24 w-20 shrink-0" : "h-56 sm:h-60 lg:h-64 w-full"
|
|
619
619
|
)
|
|
620
620
|
}
|
|
621
621
|
),
|
|
@@ -711,7 +711,7 @@ const T = N(
|
|
|
711
711
|
H,
|
|
712
712
|
{
|
|
713
713
|
href: d,
|
|
714
|
-
className: "relative block w-full
|
|
714
|
+
className: "relative block h-56 sm:h-60 lg:h-64 w-full overflow-hidden rounded-t-lg",
|
|
715
715
|
children: [
|
|
716
716
|
/* @__PURE__ */ e(
|
|
717
717
|
"div",
|
|
@@ -730,7 +730,7 @@ const T = N(
|
|
|
730
730
|
{
|
|
731
731
|
src: t,
|
|
732
732
|
alt: r,
|
|
733
|
-
className: "relative z-10 h-full w-full object-
|
|
733
|
+
className: "relative z-10 h-full w-full object-cover transition-transform group-hover:scale-105"
|
|
734
734
|
}
|
|
735
735
|
),
|
|
736
736
|
f && /* @__PURE__ */ e("div", { className: "absolute left-3 top-3 z-20", children: /* @__PURE__ */ e(P, { variant: u, children: f }) }),
|
|
@@ -1458,8 +1458,8 @@ const He = N(
|
|
|
1458
1458
|
}, u) => {
|
|
1459
1459
|
const v = {
|
|
1460
1460
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
1461
|
-
3: "grid-cols-
|
|
1462
|
-
4: "grid-cols-
|
|
1461
|
+
3: "grid-cols-2 sm:grid-cols-2 lg:grid-cols-3",
|
|
1462
|
+
4: "grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",
|
|
1463
1463
|
5: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5"
|
|
1464
1464
|
}, g = {
|
|
1465
1465
|
sm: "gap-4",
|
|
@@ -1938,7 +1938,7 @@ const at = N(
|
|
|
1938
1938
|
src: d.imageMobile,
|
|
1939
1939
|
srcSet: `${d.imageMobile} 1x, ${d.imageMobile.replace(/\.(jpg|png)$/, "@2x.$1")} 2x`,
|
|
1940
1940
|
alt: d.title,
|
|
1941
|
-
className: "w-full object-cover aspect-
|
|
1941
|
+
className: "w-full object-cover aspect-3/2 md:aspect-video lg:aspect-1920/700",
|
|
1942
1942
|
loading: p === 0 ? "eager" : "lazy"
|
|
1943
1943
|
}
|
|
1944
1944
|
)
|