@20minutes/hela 2.22.3 → 2.22.4
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { HeaderProps } from '../..';
|
|
3
|
-
export declare const HeaderMobile: React.FC<Pick<HeaderProps, 'logoHref' | 'logoIsHeading' | 'themeColor' | 'isHidden' | 'logoName' | 'showOpenButton'
|
|
3
|
+
export declare const HeaderMobile: React.FC<Pick<HeaderProps, 'logoHref' | 'logoIsHeading' | 'themeColor' | 'isHidden' | 'logoName' | 'showOpenButton'> & {
|
|
4
4
|
backhref?: string;
|
|
5
5
|
}>;
|
package/dist/index.es.js
CHANGED
|
@@ -10350,7 +10350,6 @@ const d1 = Z(
|
|
|
10350
10350
|
isHidden: l.isHidden,
|
|
10351
10351
|
logoName: l.logoName,
|
|
10352
10352
|
showOpenButton: l.showOpenButton,
|
|
10353
|
-
isCurrentPageHome: l.isCurrentPageHome,
|
|
10354
10353
|
backhref: s
|
|
10355
10354
|
}
|
|
10356
10355
|
), l1 = J.forwardRef(
|
|
@@ -10382,32 +10381,15 @@ const O0 = {
|
|
|
10382
10381
|
logoName: i = "logo",
|
|
10383
10382
|
isCurrentPageHome: o = !1
|
|
10384
10383
|
}) => {
|
|
10385
|
-
const d = () => o ? "ultramarine" : i === "logo-tv" ? "white" : "black", u = /* @__PURE__ */ e(
|
|
10386
|
-
|
|
10384
|
+
const d = () => o ? "ultramarine" : i === "logo-tv" ? "white" : "black", u = /* @__PURE__ */ e(M, { href: a, className: p({ "c-header__logo": !r }), children: /* @__PURE__ */ e(
|
|
10385
|
+
z,
|
|
10387
10386
|
{
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
}),
|
|
10393
|
-
children: o ? /* @__PURE__ */ e(
|
|
10394
|
-
"img",
|
|
10395
|
-
{
|
|
10396
|
-
src: "https://static.20mn.fr/logos/leclerc.gif",
|
|
10397
|
-
alt: "20 Minutes : Actualités et infos en direct",
|
|
10398
|
-
className: "c-header__logo-image"
|
|
10399
|
-
}
|
|
10400
|
-
) : /* @__PURE__ */ e(
|
|
10401
|
-
z,
|
|
10402
|
-
{
|
|
10403
|
-
color: "white",
|
|
10404
|
-
svgTitle: "20 Minutes : Actualités et infos en direct",
|
|
10405
|
-
name: i,
|
|
10406
|
-
size: O0[i]
|
|
10407
|
-
}
|
|
10408
|
-
)
|
|
10387
|
+
color: "white",
|
|
10388
|
+
svgTitle: "20 Minutes : Actualités et infos en direct",
|
|
10389
|
+
name: i,
|
|
10390
|
+
size: O0[i]
|
|
10409
10391
|
}
|
|
10410
|
-
);
|
|
10392
|
+
) });
|
|
10411
10393
|
return /* @__PURE__ */ e(
|
|
10412
10394
|
x,
|
|
10413
10395
|
{
|
|
@@ -10477,15 +10459,7 @@ const O0 = {
|
|
|
10477
10459
|
}
|
|
10478
10460
|
)
|
|
10479
10461
|
] }),
|
|
10480
|
-
r ? /* @__PURE__ */ e(
|
|
10481
|
-
"h1",
|
|
10482
|
-
{
|
|
10483
|
-
className: p("c-header__logo", {
|
|
10484
|
-
"c-header__logo--in-homepage": o
|
|
10485
|
-
}),
|
|
10486
|
-
children: u
|
|
10487
|
-
}
|
|
10488
|
-
) : u,
|
|
10462
|
+
r ? /* @__PURE__ */ e("h1", { className: p({ "c-header__logo": r }), children: u }) : u,
|
|
10489
10463
|
/* @__PURE__ */ t(h, { alignItems: "center", children: [
|
|
10490
10464
|
/* @__PURE__ */ t(h, { alignItems: "center", gap: "xs", className: "c-header__media-links", children: [
|
|
10491
10465
|
/* @__PURE__ */ e(
|
|
@@ -10611,34 +10585,17 @@ const O0 = {
|
|
|
10611
10585
|
isHidden: c = !1,
|
|
10612
10586
|
logoName: r = "logo",
|
|
10613
10587
|
showOpenButton: n = !0,
|
|
10614
|
-
backhref: i
|
|
10615
|
-
isCurrentPageHome: o = !1
|
|
10588
|
+
backhref: i
|
|
10616
10589
|
}) => {
|
|
10617
|
-
const
|
|
10618
|
-
|
|
10590
|
+
const o = /* @__PURE__ */ e(M, { href: a, className: s ? void 0 : "c-header-mobile__logo", children: /* @__PURE__ */ e(
|
|
10591
|
+
z,
|
|
10619
10592
|
{
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
children: o ? /* @__PURE__ */ e(
|
|
10625
|
-
"img",
|
|
10626
|
-
{
|
|
10627
|
-
src: "https://static.20mn.fr/logos/leclerc.gif",
|
|
10628
|
-
alt: "20 Minutes : Actualités et infos en direct",
|
|
10629
|
-
className: "c-header-mobile__logo-image"
|
|
10630
|
-
}
|
|
10631
|
-
) : /* @__PURE__ */ e(
|
|
10632
|
-
z,
|
|
10633
|
-
{
|
|
10634
|
-
color: "white",
|
|
10635
|
-
svgTitle: "20 Minutes : Actualités et infos en direct",
|
|
10636
|
-
name: r,
|
|
10637
|
-
size: P0[r]
|
|
10638
|
-
}
|
|
10639
|
-
)
|
|
10593
|
+
color: "white",
|
|
10594
|
+
svgTitle: "20 Minutes : Actualités et infos en direct",
|
|
10595
|
+
name: r,
|
|
10596
|
+
size: P0[r]
|
|
10640
10597
|
}
|
|
10641
|
-
);
|
|
10598
|
+
) });
|
|
10642
10599
|
return /* @__PURE__ */ t(
|
|
10643
10600
|
h,
|
|
10644
10601
|
{
|
|
@@ -10700,15 +10657,7 @@ const O0 = {
|
|
|
10700
10657
|
}
|
|
10701
10658
|
)
|
|
10702
10659
|
] }) : void 0,
|
|
10703
|
-
s ? /* @__PURE__ */ e(
|
|
10704
|
-
"h1",
|
|
10705
|
-
{
|
|
10706
|
-
className: p("c-header-mobile__logo", {
|
|
10707
|
-
"c-header-mobile__logo--in-homepage": o
|
|
10708
|
-
}),
|
|
10709
|
-
children: d
|
|
10710
|
-
}
|
|
10711
|
-
) : d,
|
|
10660
|
+
s ? /* @__PURE__ */ e("h1", { className: s ? "c-header-mobile__logo" : void 0, children: o }) : o,
|
|
10712
10661
|
/* @__PURE__ */ e(
|
|
10713
10662
|
h,
|
|
10714
10663
|
{
|