@20minutes/hela 2.21.10 → 2.21.11
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/assets/scripts/countdown.d.ts +1 -2
- package/dist/components/atoms/Tag/Tag.d.ts +1 -1
- package/dist/components/molecules/Countdown/Countdown.d.ts +2 -1
- package/dist/index.es.js +31 -17
- package/dist/index.umd.cjs +1 -1
- package/dist/js/scripts.es.js +316 -309
- package/dist/js/scripts.umd.cjs +1 -1
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/types/Window.d.ts +0 -7
- package/package.json +1 -1
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const listenerOfCountdown: (counter: keyof CountersType, targetID: string) => void;
|
|
1
|
+
export declare const listenerOfCountdown: () => void;
|
|
@@ -4,7 +4,7 @@ export interface TagOptions {
|
|
|
4
4
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'quinary' | 'span' | 'transparent';
|
|
5
5
|
}
|
|
6
6
|
export interface TagSize {
|
|
7
|
-
size?: '
|
|
7
|
+
size?: 'small';
|
|
8
8
|
}
|
|
9
9
|
export type TagProps<T extends As = 'a'> = TagOptions & TagSize & BoxProps<T>;
|
|
10
10
|
export declare const Tag: import('../../../types').ComponentWithAs<"div", TagProps<"a">>;
|
|
@@ -4,7 +4,8 @@ import { LayoutType } from '../../../types';
|
|
|
4
4
|
import { CountdownItemProps } from './CountdownItem';
|
|
5
5
|
export interface CountdownProps extends FlexProps {
|
|
6
6
|
title: string;
|
|
7
|
-
|
|
7
|
+
endDate: string;
|
|
8
|
+
id?: string;
|
|
8
9
|
iconName?: IconOptions['name'];
|
|
9
10
|
layout: LayoutType;
|
|
10
11
|
colorItemCounter?: CountdownItemProps['colorCounter'];
|
package/dist/index.es.js
CHANGED
|
@@ -3995,7 +3995,8 @@ const d1 = j(
|
|
|
3995
3995
|
n?.className
|
|
3996
3996
|
),
|
|
3997
3997
|
"data-id": s,
|
|
3998
|
-
|
|
3998
|
+
py: n?.py ?? "0",
|
|
3999
|
+
px: n?.px ?? "xs",
|
|
3999
4000
|
children: r
|
|
4000
4001
|
}
|
|
4001
4002
|
)
|
|
@@ -4252,7 +4253,7 @@ const d1 = j(
|
|
|
4252
4253
|
size: "l",
|
|
4253
4254
|
fontFamily: "source-serif-pro",
|
|
4254
4255
|
children: [
|
|
4255
|
-
a && /* @__PURE__ */ e(
|
|
4256
|
+
a && /* @__PURE__ */ e(g, { size: "l", mb: "xs", weight: "semi-bold", children: a }),
|
|
4256
4257
|
/* @__PURE__ */ e(u0, { color: l, children: s })
|
|
4257
4258
|
]
|
|
4258
4259
|
}
|
|
@@ -4432,7 +4433,6 @@ const d1 = j(
|
|
|
4432
4433
|
href: "/",
|
|
4433
4434
|
bg: r ? void 0 : l || "ultramarine",
|
|
4434
4435
|
color: "white",
|
|
4435
|
-
px: "xs",
|
|
4436
4436
|
pt: "xxs-3",
|
|
4437
4437
|
ml: { xs: "m", md: "0" },
|
|
4438
4438
|
children: /* @__PURE__ */ e(z, { size: 16, name: "home", svgTitle: "Retour sur la page d'accueil 20 Minutes" })
|
|
@@ -5674,7 +5674,7 @@ const d1 = j(
|
|
|
5674
5674
|
/* @__PURE__ */ t("div", { children: [
|
|
5675
5675
|
/* @__PURE__ */ t(m, { gap: "xxs", alignItems: "center", children: [
|
|
5676
5676
|
/* @__PURE__ */ e(I, { as: "h4", fontFamily: "base", size: "xxs", weight: "bold", children: l }),
|
|
5677
|
-
s && /* @__PURE__ */ e(W, { size: "small",
|
|
5677
|
+
s && /* @__PURE__ */ e(W, { size: "small", children: s })
|
|
5678
5678
|
] }),
|
|
5679
5679
|
/* @__PURE__ */ t(x, { mt: "xxs-3", children: [
|
|
5680
5680
|
/* @__PURE__ */ e(g, { size: "m", children: c }),
|
|
@@ -6698,27 +6698,30 @@ const d1 = j(
|
|
|
6698
6698
|
layout: a,
|
|
6699
6699
|
title: s,
|
|
6700
6700
|
id: l,
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6701
|
+
endDate: c,
|
|
6702
|
+
iconName: r = "olympic-flame",
|
|
6703
|
+
iconSize: n,
|
|
6704
|
+
colorItemCounter: i,
|
|
6705
|
+
...o
|
|
6705
6706
|
}) => {
|
|
6706
|
-
const
|
|
6707
|
+
const d = a === y.DESKTOP ? [28, 50] : [16, 29];
|
|
6707
6708
|
return /* @__PURE__ */ t(
|
|
6708
6709
|
m,
|
|
6709
6710
|
{
|
|
6710
6711
|
direction: { xs: "column", md: "row" },
|
|
6711
6712
|
id: l,
|
|
6713
|
+
"data-countdown": "true",
|
|
6714
|
+
"data-countdown-end-date": c,
|
|
6712
6715
|
bg: "grey-100",
|
|
6713
6716
|
gap: { xs: "0", md: "xxl-2" },
|
|
6714
|
-
...
|
|
6717
|
+
...o,
|
|
6715
6718
|
children: [
|
|
6716
6719
|
/* @__PURE__ */ t(m, { alignItems: "center", mb: { xs: "m", md: "0" }, flexGrow: 0, children: [
|
|
6717
6720
|
/* @__PURE__ */ e(
|
|
6718
6721
|
z,
|
|
6719
6722
|
{
|
|
6720
|
-
name:
|
|
6721
|
-
size:
|
|
6723
|
+
name: r,
|
|
6724
|
+
size: n || d,
|
|
6722
6725
|
ml: { xs: "0", md: "m" },
|
|
6723
6726
|
mr: { xs: "xxs", md: "m" }
|
|
6724
6727
|
}
|
|
@@ -6733,10 +6736,10 @@ const d1 = j(
|
|
|
6733
6736
|
mr: { xs: "0", md: "xxl" },
|
|
6734
6737
|
py: { xs: "0", md: "xs" },
|
|
6735
6738
|
children: [
|
|
6736
|
-
/* @__PURE__ */ e(w1, { colorCounter:
|
|
6737
|
-
/* @__PURE__ */ e(w1, { colorCounter:
|
|
6738
|
-
/* @__PURE__ */ e(w1, { colorCounter:
|
|
6739
|
-
/* @__PURE__ */ e(w1, { colorCounter:
|
|
6739
|
+
/* @__PURE__ */ e(w1, { colorCounter: i, title: "jours", classItem: "days" }),
|
|
6740
|
+
/* @__PURE__ */ e(w1, { colorCounter: i, title: "heures", classItem: "hours" }),
|
|
6741
|
+
/* @__PURE__ */ e(w1, { colorCounter: i, title: "minutes", classItem: "minutes" }),
|
|
6742
|
+
/* @__PURE__ */ e(w1, { colorCounter: i, title: "secondes", classItem: "seconds" })
|
|
6740
6743
|
]
|
|
6741
6744
|
}
|
|
6742
6745
|
)
|
|
@@ -10025,7 +10028,18 @@ const d1 = j(
|
|
|
10025
10028
|
gapX: "xxl",
|
|
10026
10029
|
children: s.map(
|
|
10027
10030
|
(i) => i.links.length === 0 ? null : /* @__PURE__ */ t(m, { as: "section", direction: "column", children: [
|
|
10028
|
-
/* @__PURE__ */ e(
|
|
10031
|
+
/* @__PURE__ */ e(
|
|
10032
|
+
Z,
|
|
10033
|
+
{
|
|
10034
|
+
as: C,
|
|
10035
|
+
href: i.links[0].href,
|
|
10036
|
+
weight: "semi-bold",
|
|
10037
|
+
mb: "m",
|
|
10038
|
+
size: "xxs",
|
|
10039
|
+
color: "white",
|
|
10040
|
+
children: i.links[0].children
|
|
10041
|
+
}
|
|
10042
|
+
),
|
|
10029
10043
|
/* @__PURE__ */ e("ul", { children: i.links.slice(1).map((o, d, u) => /* @__PURE__ */ e(x, { as: "li", mb: d < u.length - 1 ? "xs" : void 0, children: /* @__PURE__ */ e(C, { ...o, color: "white" }) }, o.href)) })
|
|
10030
10044
|
] }, i.name)
|
|
10031
10045
|
)
|