@20minutes/hela 2.22.1 → 2.22.2

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' | 'isCurrentPageHome'> & {
4
4
  backhref?: string;
5
5
  }>;
package/dist/index.es.js CHANGED
@@ -10350,6 +10350,7 @@ const d1 = Z(
10350
10350
  isHidden: l.isHidden,
10351
10351
  logoName: l.logoName,
10352
10352
  showOpenButton: l.showOpenButton,
10353
+ isCurrentPageHome: l.isCurrentPageHome,
10353
10354
  backhref: s
10354
10355
  }
10355
10356
  ), l1 = J.forwardRef(
@@ -10381,15 +10382,32 @@ const O0 = {
10381
10382
  logoName: i = "logo",
10382
10383
  isCurrentPageHome: o = !1
10383
10384
  }) => {
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,
10385
+ const d = () => o ? "ultramarine" : i === "logo-tv" ? "white" : "black", u = /* @__PURE__ */ e(
10386
+ M,
10386
10387
  {
10387
- color: "white",
10388
- svgTitle: "20 Minutes : Actualités et infos en direct",
10389
- name: i,
10390
- size: O0[i]
10388
+ href: a,
10389
+ className: p({
10390
+ "c-header__logo": !r,
10391
+ "c-header__logo--in-homepage": o
10392
+ }),
10393
+ children: o ? /* @__PURE__ */ e(
10394
+ "img",
10395
+ {
10396
+ src: "https://static.20mn.fr/logos/leclerc.gif",
10397
+ alt: "20 Minutes et Leclerc - Logo animé",
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
+ )
10391
10409
  }
10392
- ) });
10410
+ );
10393
10411
  return /* @__PURE__ */ e(
10394
10412
  x,
10395
10413
  {
@@ -10459,7 +10477,15 @@ const O0 = {
10459
10477
  }
10460
10478
  )
10461
10479
  ] }),
10462
- r ? /* @__PURE__ */ e("h1", { className: p({ "c-header__logo": r }), children: u }) : u,
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,
10463
10489
  /* @__PURE__ */ t(h, { alignItems: "center", children: [
10464
10490
  /* @__PURE__ */ t(h, { alignItems: "center", gap: "xs", className: "c-header__media-links", children: [
10465
10491
  /* @__PURE__ */ e(
@@ -10585,17 +10611,34 @@ const O0 = {
10585
10611
  isHidden: c = !1,
10586
10612
  logoName: r = "logo",
10587
10613
  showOpenButton: n = !0,
10588
- backhref: i
10614
+ backhref: i,
10615
+ isCurrentPageHome: o = !1
10589
10616
  }) => {
10590
- const o = /* @__PURE__ */ e(M, { href: a, className: s ? void 0 : "c-header-mobile__logo", children: /* @__PURE__ */ e(
10591
- z,
10617
+ const d = /* @__PURE__ */ e(
10618
+ M,
10592
10619
  {
10593
- color: "white",
10594
- svgTitle: "20 Minutes : Actualités et infos en direct",
10595
- name: r,
10596
- size: P0[r]
10620
+ href: a,
10621
+ className: p({
10622
+ "c-header-mobile__logo": !s
10623
+ }),
10624
+ children: o ? /* @__PURE__ */ e(
10625
+ "img",
10626
+ {
10627
+ src: "https://static.20mn.fr/logos/leclerc.gif",
10628
+ alt: "20 Minutes et Leclerc - Logo animé",
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
+ )
10597
10640
  }
10598
- ) });
10641
+ );
10599
10642
  return /* @__PURE__ */ t(
10600
10643
  h,
10601
10644
  {
@@ -10657,7 +10700,15 @@ const O0 = {
10657
10700
  }
10658
10701
  )
10659
10702
  ] }) : void 0,
10660
- s ? /* @__PURE__ */ e("h1", { className: s ? "c-header-mobile__logo" : void 0, children: o }) : o,
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,
10661
10712
  /* @__PURE__ */ e(
10662
10713
  h,
10663
10714
  {