@20minutes/hela 2.26.2 → 2.26.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.
- package/dist/components/molecules/Card/CardTitle/CardTitle.d.ts +2 -2
- package/dist/components/organisms/Ranking/Ranking.d.ts +0 -1
- package/dist/index.es.js +91 -103
- 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 +5 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { HeadingProps } from '../../..';
|
|
3
3
|
type CartridgeType = 'exclusive' | 'alert' | 'live' | 'info' | 'with-you' | 'magazine';
|
|
4
|
-
export interface CardTitleProps extends
|
|
4
|
+
export interface CardTitleProps extends HeadingProps {
|
|
5
5
|
cartridge?: CartridgeType;
|
|
6
6
|
cartridgeIsCentered?: boolean;
|
|
7
7
|
maxRows?: 2 | 3 | 4 | 5;
|
package/dist/index.es.js
CHANGED
|
@@ -7319,13 +7319,18 @@ const h1 = L(
|
|
|
7319
7319
|
enableHD: x
|
|
7320
7320
|
}
|
|
7321
7321
|
);
|
|
7322
|
-
return /* @__PURE__ */
|
|
7323
|
-
|
|
7322
|
+
return /* @__PURE__ */ n(
|
|
7323
|
+
w,
|
|
7324
7324
|
{
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
"c-card-
|
|
7328
|
-
|
|
7325
|
+
...M,
|
|
7326
|
+
className: g(
|
|
7327
|
+
"c-card-img",
|
|
7328
|
+
{
|
|
7329
|
+
"c-card-img--with-shadow": u || !!t || y,
|
|
7330
|
+
"c-card-img--with-interaction": h !== void 0
|
|
7331
|
+
},
|
|
7332
|
+
f
|
|
7333
|
+
),
|
|
7329
7334
|
children: [
|
|
7330
7335
|
t && /* @__PURE__ */ n(
|
|
7331
7336
|
m,
|
|
@@ -7365,7 +7370,7 @@ const h1 = L(
|
|
|
7365
7370
|
)
|
|
7366
7371
|
]
|
|
7367
7372
|
}
|
|
7368
|
-
)
|
|
7373
|
+
);
|
|
7369
7374
|
}, E1 = (a) => {
|
|
7370
7375
|
switch (a) {
|
|
7371
7376
|
case "alert":
|
|
@@ -7393,48 +7398,46 @@ const h1 = L(
|
|
|
7393
7398
|
weight: d,
|
|
7394
7399
|
children: u,
|
|
7395
7400
|
...h
|
|
7396
|
-
}) =>
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
"
|
|
7403
|
-
{
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
)
|
|
7437
|
-
}
|
|
7401
|
+
}) => (
|
|
7402
|
+
// pb is to prevent the bottom of certain letters from being hidden (g, j, p and q)
|
|
7403
|
+
/* @__PURE__ */ n(
|
|
7404
|
+
I,
|
|
7405
|
+
{
|
|
7406
|
+
as: s || "h1",
|
|
7407
|
+
...i && { as: "a", href: i },
|
|
7408
|
+
...r && { target: r },
|
|
7409
|
+
pb: "xxs-3",
|
|
7410
|
+
...h,
|
|
7411
|
+
className: g(
|
|
7412
|
+
"c-card-title",
|
|
7413
|
+
{
|
|
7414
|
+
"c-card-title--has-max-rows": l,
|
|
7415
|
+
[`c-card-title--has-${l}-rows`]: l
|
|
7416
|
+
},
|
|
7417
|
+
h?.className
|
|
7418
|
+
),
|
|
7419
|
+
size: t || "m",
|
|
7420
|
+
fontFamily: o || "source-serif-pro",
|
|
7421
|
+
weight: d || "semi-bold",
|
|
7422
|
+
children: [
|
|
7423
|
+
a && /* @__PURE__ */ e(
|
|
7424
|
+
T,
|
|
7425
|
+
{
|
|
7426
|
+
bg: E1(a).color,
|
|
7427
|
+
color: "white",
|
|
7428
|
+
hasDot: a === "live" || !1,
|
|
7429
|
+
mr: "xxs",
|
|
7430
|
+
textProps: { fontFamily: "base" },
|
|
7431
|
+
className: g("c-card-title__cartridge-heading", {
|
|
7432
|
+
"c-card-title__cartridge-heading--is-centered": c
|
|
7433
|
+
}),
|
|
7434
|
+
children: E1(a).label
|
|
7435
|
+
}
|
|
7436
|
+
),
|
|
7437
|
+
u
|
|
7438
|
+
]
|
|
7439
|
+
}
|
|
7440
|
+
)
|
|
7438
7441
|
), Zc = ({
|
|
7439
7442
|
link: a,
|
|
7440
7443
|
title: c,
|
|
@@ -7528,41 +7531,39 @@ const h1 = L(
|
|
|
7528
7531
|
]
|
|
7529
7532
|
}
|
|
7530
7533
|
) : /* @__PURE__ */ n(S, { children: [
|
|
7531
|
-
/* @__PURE__ */
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
)
|
|
7565
|
-
] }),
|
|
7534
|
+
s && /* @__PURE__ */ e(Q, { ...s, rightSubheader: void 0, mx: "m", mb: "xxs-2" }),
|
|
7535
|
+
/* @__PURE__ */ e(A, { as: "h2", weight: "bold", ...i, mx: "m", children: /* @__PURE__ */ e("a", { href: a, children: c }) }),
|
|
7536
|
+
r && /* @__PURE__ */ e(
|
|
7537
|
+
F,
|
|
7538
|
+
{
|
|
7539
|
+
...r,
|
|
7540
|
+
formats: f,
|
|
7541
|
+
defaultFormat: "640x408",
|
|
7542
|
+
alt: c,
|
|
7543
|
+
mt: "xs",
|
|
7544
|
+
radius: "0"
|
|
7545
|
+
}
|
|
7546
|
+
),
|
|
7547
|
+
o && /* @__PURE__ */ e(
|
|
7548
|
+
ue,
|
|
7549
|
+
{
|
|
7550
|
+
...o,
|
|
7551
|
+
mx: "m",
|
|
7552
|
+
mt: "xs",
|
|
7553
|
+
className: "u-relative u-relative--z-index-2"
|
|
7554
|
+
}
|
|
7555
|
+
),
|
|
7556
|
+
l && /* @__PURE__ */ e(
|
|
7557
|
+
w,
|
|
7558
|
+
{
|
|
7559
|
+
as: "p",
|
|
7560
|
+
color: l.color || "grey-600",
|
|
7561
|
+
className: "c-card-extra-large__summary",
|
|
7562
|
+
mx: "m",
|
|
7563
|
+
mt: "xs",
|
|
7564
|
+
children: l.children
|
|
7565
|
+
}
|
|
7566
|
+
),
|
|
7566
7567
|
d && /* @__PURE__ */ e(
|
|
7567
7568
|
t1,
|
|
7568
7569
|
{
|
|
@@ -11780,20 +11781,7 @@ const h1 = L(
|
|
|
11780
11781
|
}
|
|
11781
11782
|
)
|
|
11782
11783
|
}
|
|
11783
|
-
), K = /* @__PURE__ */ e(
|
|
11784
|
-
H,
|
|
11785
|
-
{
|
|
11786
|
-
id: "mbrs-social-chatbot-container-bar",
|
|
11787
|
-
"data-content-id": t,
|
|
11788
|
-
color: "quaternary",
|
|
11789
|
-
"aria-label": "Poser une question au Chatbot",
|
|
11790
|
-
hasNormalWeight: !0,
|
|
11791
|
-
stayOnSingleLine: !0,
|
|
11792
|
-
className: "c-social-bar__chatbot-cta",
|
|
11793
|
-
"data-a11y-dialog-show": "dialog-chatbot",
|
|
11794
|
-
children: "Poser une question"
|
|
11795
|
-
}
|
|
11796
|
-
), n1 = /* @__PURE__ */ e(
|
|
11784
|
+
), K = /* @__PURE__ */ e("div", { "data-lemrock-placement": !0, "data-lemrock-type": "launcher-anchor" }), n1 = /* @__PURE__ */ e(
|
|
11797
11785
|
O,
|
|
11798
11786
|
{
|
|
11799
11787
|
iconProps: { name: "dots", size: 16, color: "black" },
|
|
@@ -13374,11 +13362,11 @@ const La = {
|
|
|
13374
13362
|
},
|
|
13375
13363
|
`photoswipe-${l.imgProps?.id}`
|
|
13376
13364
|
)) }), Aa = [
|
|
13377
|
-
{ current: 1,
|
|
13378
|
-
{ current: 2,
|
|
13379
|
-
{ current: 3,
|
|
13380
|
-
{ current: 4,
|
|
13381
|
-
{ current: 5,
|
|
13365
|
+
{ current: 1, username: "Joueur 1", points: 9010, played: 23, wins: 20 },
|
|
13366
|
+
{ current: 2, username: "Joueur 2", points: 9e3, played: 23, wins: 20 },
|
|
13367
|
+
{ current: 3, username: "Joueur 3", points: 7349, played: 17, wins: 12 },
|
|
13368
|
+
{ current: 4, username: "Joueur 4", points: 5102, played: 15, wins: 10 },
|
|
13369
|
+
{ current: 5, username: "Joueur 5", points: 5029, played: 15, wins: 9 }
|
|
13382
13370
|
], Jl = ({ playerData: a, layout: c, children: l, ...s }) => {
|
|
13383
13371
|
const i = !a, r = a ?? Aa, t = (d, u) => u ? "is-current" : d % 2 === 0 ? "even" : "odd", o = /* @__PURE__ */ n(l1, { colsNumber: c === _.MOBILE ? 5 : 6, className: "c-ranking__content", children: [
|
|
13384
13372
|
/* @__PURE__ */ e("div", {}),
|