@20minutes/hela 2.22.7 → 2.22.9
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/dist/components/molecules/Header/HeaderTitle/HeaderTitle.d.ts +2 -0
- package/dist/components/molecules/Sponsor/Sponsor.d.ts +1 -1
- package/dist/index.es.js +44 -37
- package/dist/index.umd.cjs +1 -1
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { HeadingProps, IconProps } from '../../..';
|
|
3
|
+
import { SponsorType } from '../../../../types';
|
|
3
4
|
export interface HeaderTitleProps extends HeadingProps {
|
|
4
5
|
iconProps?: IconProps;
|
|
5
6
|
isCentered?: boolean;
|
|
7
|
+
sponsor?: SponsorType;
|
|
6
8
|
}
|
|
7
9
|
export declare const HeaderTitle: React.FC<HeaderTitleProps>;
|
|
@@ -3,7 +3,7 @@ import { FlexProps } from '../..';
|
|
|
3
3
|
import { SponsorType } from '../../../types';
|
|
4
4
|
export interface SponsorProps extends FlexProps {
|
|
5
5
|
sponsor: SponsorType;
|
|
6
|
-
|
|
6
|
+
size?: 'xl' | 'l' | 'm' | 's' | 'xs' | 'xxs';
|
|
7
7
|
hasText?: boolean;
|
|
8
8
|
isInline?: boolean;
|
|
9
9
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -4267,7 +4267,7 @@ const d1 = j(
|
|
|
4267
4267
|
children: c
|
|
4268
4268
|
}
|
|
4269
4269
|
),
|
|
4270
|
-
n && /* @__PURE__ */ e(X, { sponsor: n,
|
|
4270
|
+
n && /* @__PURE__ */ e(X, { sponsor: n, size: "l", mt: "l" })
|
|
4271
4271
|
] });
|
|
4272
4272
|
let u = /* @__PURE__ */ t(x, { ...o, as: "header", children: [
|
|
4273
4273
|
s.length > 0 && /* @__PURE__ */ e(A, { color: r, size: "xs", children: s }),
|
|
@@ -4291,7 +4291,7 @@ const d1 = j(
|
|
|
4291
4291
|
] }),
|
|
4292
4292
|
c && c.length > 0 && /* @__PURE__ */ e(g, { id: "content-header-lead", as: "span", size: "xxl", fontFamily: "source-serif-pro", children: c })
|
|
4293
4293
|
] }),
|
|
4294
|
-
n && /* @__PURE__ */ e(X, { sponsor: n,
|
|
4294
|
+
n && /* @__PURE__ */ e(X, { sponsor: n, size: "l", mt: "l" })
|
|
4295
4295
|
]
|
|
4296
4296
|
}
|
|
4297
4297
|
)), u;
|
|
@@ -7352,7 +7352,7 @@ const d1 = j(
|
|
|
7352
7352
|
X,
|
|
7353
7353
|
{
|
|
7354
7354
|
sponsor: n.content,
|
|
7355
|
-
|
|
7355
|
+
size: "xs",
|
|
7356
7356
|
hasText: !0,
|
|
7357
7357
|
gap: "xs",
|
|
7358
7358
|
justifyContent: "end",
|
|
@@ -7371,7 +7371,7 @@ const d1 = j(
|
|
|
7371
7371
|
...d
|
|
7372
7372
|
}
|
|
7373
7373
|
),
|
|
7374
|
-
n?.type === "dedicated-area" && /* @__PURE__ */ e(X, { sponsor: n.content,
|
|
7374
|
+
n?.type === "dedicated-area" && /* @__PURE__ */ e(X, { sponsor: n.content, size: "s", mt: "s", mx: "m" }),
|
|
7375
7375
|
i && /* @__PURE__ */ e(b1, { ...i, mt: "xl" }),
|
|
7376
7376
|
c && f
|
|
7377
7377
|
] });
|
|
@@ -7388,16 +7388,7 @@ const d1 = j(
|
|
|
7388
7388
|
children: [
|
|
7389
7389
|
/* @__PURE__ */ e(I, { basis: 100, children: b }),
|
|
7390
7390
|
!!l && /* @__PURE__ */ e(I, { basis: "auto", shrink: 0, children: l }),
|
|
7391
|
-
n?.type === "sponsored-page" && /* @__PURE__ */ e(
|
|
7392
|
-
X,
|
|
7393
|
-
{
|
|
7394
|
-
sponsor: n.content,
|
|
7395
|
-
variant: "header-sponsored-desktop",
|
|
7396
|
-
hasText: !0,
|
|
7397
|
-
justifyContent: "end",
|
|
7398
|
-
mb: "s"
|
|
7399
|
-
}
|
|
7400
|
-
)
|
|
7391
|
+
n?.type === "sponsored-page" && /* @__PURE__ */ e(X, { sponsor: n.content, size: "s", hasText: !0, justifyContent: "end", mb: "s" })
|
|
7401
7392
|
]
|
|
7402
7393
|
}
|
|
7403
7394
|
) : b,
|
|
@@ -7420,7 +7411,7 @@ const d1 = j(
|
|
|
7420
7411
|
h && !v && /* @__PURE__ */ e(U1, {}),
|
|
7421
7412
|
v && !h && /* @__PURE__ */ e(G1, {})
|
|
7422
7413
|
] }),
|
|
7423
|
-
n?.type === "dedicated-area" && /* @__PURE__ */ e(X, { sponsor: n.content,
|
|
7414
|
+
n?.type === "dedicated-area" && /* @__PURE__ */ e(X, { sponsor: n.content, size: "l", mt: "xl" })
|
|
7424
7415
|
] })), /* @__PURE__ */ e(
|
|
7425
7416
|
x,
|
|
7426
7417
|
{
|
|
@@ -7526,19 +7517,30 @@ const d1 = j(
|
|
|
7526
7517
|
children: a,
|
|
7527
7518
|
iconProps: s,
|
|
7528
7519
|
isCentered: l,
|
|
7529
|
-
|
|
7520
|
+
sponsor: c,
|
|
7521
|
+
...r
|
|
7530
7522
|
}) => /* @__PURE__ */ e(
|
|
7531
7523
|
V,
|
|
7532
7524
|
{
|
|
7533
7525
|
className: p("c-header-title", {
|
|
7534
|
-
"c-header-title--has-icon":
|
|
7535
|
-
"c-header-title--has-icon-and-centered":
|
|
7526
|
+
"c-header-title--has-icon": s || c,
|
|
7527
|
+
"c-header-title--has-icon-and-centered": (s || c) && l
|
|
7536
7528
|
}),
|
|
7537
7529
|
fontFamily: "obviously",
|
|
7538
7530
|
size: { xs: "l", md: "xxl" },
|
|
7539
|
-
...
|
|
7540
|
-
children: s ? /* @__PURE__ */ t(S, { children: [
|
|
7541
|
-
/* @__PURE__ */ e(z, { className: "c-header-title__icon", mr: "xxs", ...s }),
|
|
7531
|
+
...r,
|
|
7532
|
+
children: s || c ? /* @__PURE__ */ t(S, { children: [
|
|
7533
|
+
s && /* @__PURE__ */ e(z, { className: "c-header-title__icon", mr: "xxs", ...s }),
|
|
7534
|
+
c && /* @__PURE__ */ e(
|
|
7535
|
+
x,
|
|
7536
|
+
{
|
|
7537
|
+
as: "img",
|
|
7538
|
+
className: "c-header-title__sponsor",
|
|
7539
|
+
mr: "xxs",
|
|
7540
|
+
src: c.logoUrl,
|
|
7541
|
+
alt: c.name
|
|
7542
|
+
}
|
|
7543
|
+
),
|
|
7542
7544
|
/* @__PURE__ */ e("span", { className: "c-header-title__text-with-icon", children: a })
|
|
7543
7545
|
] }) : a
|
|
7544
7546
|
}
|
|
@@ -8507,17 +8509,20 @@ const d1 = j(
|
|
|
8507
8509
|
color: d.color ?? "black",
|
|
8508
8510
|
children: d.sponsor ? /* @__PURE__ */ t(S, { children: [
|
|
8509
8511
|
d.name,
|
|
8510
|
-
d.sponsor && /* @__PURE__ */
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8512
|
+
d.sponsor && /* @__PURE__ */ t(S, { children: [
|
|
8513
|
+
" ",
|
|
8514
|
+
/* @__PURE__ */ e(
|
|
8515
|
+
X,
|
|
8516
|
+
{
|
|
8517
|
+
sponsor: d.sponsor,
|
|
8518
|
+
size: "xs",
|
|
8519
|
+
hasText: !0,
|
|
8520
|
+
isInline: !0,
|
|
8521
|
+
gap: "xs",
|
|
8522
|
+
className: "c-menu__sponsor"
|
|
8523
|
+
}
|
|
8524
|
+
)
|
|
8525
|
+
] })
|
|
8521
8526
|
] }) : d.name
|
|
8522
8527
|
},
|
|
8523
8528
|
...d.icon && {
|
|
@@ -9150,7 +9155,7 @@ const d1 = j(
|
|
|
9150
9155
|
] })
|
|
9151
9156
|
] })
|
|
9152
9157
|
] }),
|
|
9153
|
-
h && l === y.MOBILE && /* @__PURE__ */ e(X, { sponsor: h,
|
|
9158
|
+
h && l === y.MOBILE && /* @__PURE__ */ e(X, { sponsor: h, size: "xxs" })
|
|
9154
9159
|
] });
|
|
9155
9160
|
return i ? /* @__PURE__ */ e("a", { href: i, children: w }) : w;
|
|
9156
9161
|
}, P3 = ({ installButton: a, closeButton: s }) => /* @__PURE__ */ t(m, { className: "c-smart-banner", alignItems: "center", gap: "xs", bg: "ultramarine", color: "white", children: [
|
|
@@ -9389,7 +9394,6 @@ const d1 = j(
|
|
|
9389
9394
|
id: "mbrs-social-chatbot-container-bar",
|
|
9390
9395
|
"data-content-id": i,
|
|
9391
9396
|
color: "quaternary",
|
|
9392
|
-
size: "small",
|
|
9393
9397
|
"aria-label": "Poser une question au Chatbot",
|
|
9394
9398
|
hasNormalWeight: !0,
|
|
9395
9399
|
stayOnSingleLine: !0,
|
|
@@ -9478,7 +9482,7 @@ const d1 = j(
|
|
|
9478
9482
|
] });
|
|
9479
9483
|
}, X = ({
|
|
9480
9484
|
sponsor: a,
|
|
9481
|
-
|
|
9485
|
+
size: s,
|
|
9482
9486
|
hasText: l = !1,
|
|
9483
9487
|
isInline: c = !1,
|
|
9484
9488
|
...r
|
|
@@ -9488,6 +9492,7 @@ const d1 = j(
|
|
|
9488
9492
|
...r,
|
|
9489
9493
|
as: c ? "span" : r.as,
|
|
9490
9494
|
gap: l ? r?.gap || "l" : void 0,
|
|
9495
|
+
className: p("c-sponsor", r?.className),
|
|
9491
9496
|
children: [
|
|
9492
9497
|
l && (c ? /* @__PURE__ */ e(g, { as: "span", weight: "bold", children: "avec" }) : /* @__PURE__ */ e(I, { align: "end", children: /* @__PURE__ */ e(g, { as: "span", weight: "bold", children: "avec" }) })),
|
|
9493
9498
|
/* @__PURE__ */ e(
|
|
@@ -9495,7 +9500,9 @@ const d1 = j(
|
|
|
9495
9500
|
{
|
|
9496
9501
|
alt: a.name,
|
|
9497
9502
|
src: a.logoUrl,
|
|
9498
|
-
className: p(
|
|
9503
|
+
className: p("c-sponsor__img", {
|
|
9504
|
+
[`c-sponsor__img--${s}`]: s
|
|
9505
|
+
})
|
|
9499
9506
|
}
|
|
9500
9507
|
)
|
|
9501
9508
|
]
|
|
@@ -9681,7 +9688,7 @@ const d1 = j(
|
|
|
9681
9688
|
X,
|
|
9682
9689
|
{
|
|
9683
9690
|
sponsor: i,
|
|
9684
|
-
|
|
9691
|
+
size: "xs",
|
|
9685
9692
|
hasText: !0,
|
|
9686
9693
|
gap: "xs",
|
|
9687
9694
|
...!c?.tags && { pt: "xxs", pb: "xs" }
|