@20minutes/hela 2.21.9 → 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.
@@ -1,2 +1 @@
1
- import { CountersType } from '../../types/Window';
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?: 'regular' | 'small';
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">>;
@@ -13,7 +13,6 @@ export interface BreadcrumbProps extends BoxProps, Pick<SliderOptions, 'colorVar
13
13
  }[];
14
14
  color?: ThemeColorType;
15
15
  layout?: LayoutType;
16
- isSmall?: boolean;
17
16
  isTransparent?: boolean;
18
17
  hasWhiteSeparators?: boolean;
19
18
  }
@@ -5,5 +5,6 @@ export interface CardFooterProps extends FlexProps {
5
5
  avatarAlt?: string;
6
6
  avatarUrl?: string;
7
7
  secondaryText?: string;
8
+ externalLink?: string;
8
9
  }
9
10
  export declare const CardFooter: React.FC<CardFooterProps>;
@@ -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
- id: string;
7
+ endDate: string;
8
+ id?: string;
8
9
  iconName?: IconOptions['name'];
9
10
  layout: LayoutType;
10
11
  colorItemCounter?: CountdownItemProps['colorCounter'];
@@ -4,6 +4,5 @@ import { LayoutType } from '../../../types';
4
4
  export interface TagBarProps extends BoxProps, Pick<SliderOptions, 'colorVariant' | 'buttonsColor' | 'buttonsSize'> {
5
5
  tags: TagProps[];
6
6
  layout: LayoutType;
7
- isSmall?: boolean;
8
7
  }
9
8
  export declare const TagBar: React.FC<TagBarProps>;
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
- px: n?.px,
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(Z, { as: "h4", size: "xxs", mb: "xs", fontFamily: "base", children: a }),
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" })
@@ -4676,20 +4676,31 @@ const d1 = j(
4676
4676
  avatarUrl: l,
4677
4677
  secondaryText: c,
4678
4678
  bg: r,
4679
- ...n
4679
+ externalLink: n,
4680
+ ...i
4680
4681
  }) => {
4681
- const i = {
4682
+ const o = {
4682
4683
  as: "span",
4683
4684
  size: "xs",
4684
4685
  bg: r || void 0,
4685
4686
  p: r ? "xxs" : void 0,
4686
4687
  color: r ? "grey-900" : void 0
4687
- }, o = /* @__PURE__ */ t(m, { gap: "xxs", children: [
4688
- /* @__PURE__ */ e(p1, { variant: "xsmall", img: l, alt: s }),
4689
- /* @__PURE__ */ e(g, { ...i, mt: "xxs-2", children: a })
4690
- ] });
4691
- return /* @__PURE__ */ t(m, { ...n, justifyContent: "between", alignItems: "center", gap: "s", children: [
4692
- l ? o : /* @__PURE__ */ e(g, { ...i, children: a }),
4688
+ }, d = /* @__PURE__ */ t(
4689
+ m,
4690
+ {
4691
+ className: "u-relative u-relative--z-index-2 opacity-hover",
4692
+ as: "a",
4693
+ href: n,
4694
+ target: "_blank",
4695
+ gap: "xxs",
4696
+ children: [
4697
+ l && /* @__PURE__ */ e(p1, { variant: "xsmall", img: l, alt: s }),
4698
+ /* @__PURE__ */ e(g, { ...o, mt: "xxs-2", children: a })
4699
+ ]
4700
+ }
4701
+ );
4702
+ return /* @__PURE__ */ t(m, { ...i, justifyContent: "between", alignItems: "center", gap: "s", children: [
4703
+ n ? d : /* @__PURE__ */ e(g, { ...o, children: a }),
4693
4704
  c && /* @__PURE__ */ e(g, { as: "span", size: "xxs-3", color: "grey-300", textTransform: "uppercase", children: c })
4694
4705
  ] });
4695
4706
  }, J = ({
@@ -5070,7 +5081,7 @@ const d1 = j(
5070
5081
  ...d,
5071
5082
  variant: "card",
5072
5083
  mt: "s",
5073
- className: "c-card-element--is-clickable"
5084
+ className: "u-relative u-relative--z-index-2"
5074
5085
  }
5075
5086
  )
5076
5087
  ]
@@ -5099,7 +5110,7 @@ const d1 = j(
5099
5110
  ...o,
5100
5111
  mx: "m",
5101
5112
  mt: "xs",
5102
- className: "c-card-element--is-clickable"
5113
+ className: "u-relative u-relative--z-index-2"
5103
5114
  }
5104
5115
  ),
5105
5116
  l && /* @__PURE__ */ e(
@@ -5121,7 +5132,7 @@ const d1 = j(
5121
5132
  variant: "card",
5122
5133
  mt: "s",
5123
5134
  mx: "m",
5124
- className: "c-card-element--is-clickable"
5135
+ className: "u-relative u-relative--z-index-2"
5125
5136
  }
5126
5137
  ),
5127
5138
  v && !d && /* @__PURE__ */ e(m, { mt: "s", justifyContent: "center", children: /* @__PURE__ */ e(C, { buttonColor: "primary", ...v }) })
@@ -5197,7 +5208,7 @@ const d1 = j(
5197
5208
  ...o,
5198
5209
  variant: "card",
5199
5210
  mt: "xs",
5200
- className: "c-card-element--is-clickable"
5211
+ className: "u-relative u-relative--z-index-2"
5201
5212
  }
5202
5213
  )
5203
5214
  ]
@@ -5337,7 +5348,7 @@ const d1 = j(
5337
5348
  variant: "card",
5338
5349
  mx: "m",
5339
5350
  mt: "s",
5340
- className: "c-card-element--is-clickable"
5351
+ className: "u-relative u-relative--z-index-2"
5341
5352
  }
5342
5353
  )
5343
5354
  ] }) });
@@ -5405,7 +5416,7 @@ const d1 = j(
5405
5416
  mt: "xs",
5406
5417
  ...n,
5407
5418
  variant: "card",
5408
- className: "c-card-element--is-clickable"
5419
+ className: "u-relative u-relative--z-index-2"
5409
5420
  }
5410
5421
  )
5411
5422
  ]
@@ -5663,7 +5674,7 @@ const d1 = j(
5663
5674
  /* @__PURE__ */ t("div", { children: [
5664
5675
  /* @__PURE__ */ t(m, { gap: "xxs", alignItems: "center", children: [
5665
5676
  /* @__PURE__ */ e(I, { as: "h4", fontFamily: "base", size: "xxs", weight: "bold", children: l }),
5666
- s && /* @__PURE__ */ e(W, { size: "small", px: "xs", children: s })
5677
+ s && /* @__PURE__ */ e(W, { size: "small", children: s })
5667
5678
  ] }),
5668
5679
  /* @__PURE__ */ t(x, { mt: "xxs-3", children: [
5669
5680
  /* @__PURE__ */ e(g, { size: "m", children: c }),
@@ -6126,7 +6137,7 @@ const d1 = j(
6126
6137
  children: c.children
6127
6138
  }
6128
6139
  ),
6129
- l && /* @__PURE__ */ e(ne, { ...l, mt: "l", className: "c-card-element--is-clickable" })
6140
+ l && /* @__PURE__ */ e(ne, { ...l, mt: "l", className: "u-relative u-relative--z-index-2" })
6130
6141
  ] })
6131
6142
  ]
6132
6143
  }
@@ -6233,7 +6244,10 @@ const d1 = j(
6233
6244
  {
6234
6245
  ...i,
6235
6246
  variant: "card",
6236
- className: p("c-card-element--is-clickable", "c-card-with-summary__social-bar")
6247
+ className: p(
6248
+ "u-relative u-relative--z-index-2",
6249
+ "c-card-with-summary__social-bar"
6250
+ )
6237
6251
  }
6238
6252
  )
6239
6253
  ] });
@@ -6684,27 +6698,30 @@ const d1 = j(
6684
6698
  layout: a,
6685
6699
  title: s,
6686
6700
  id: l,
6687
- iconName: c = "olympic-flame",
6688
- iconSize: r,
6689
- colorItemCounter: n,
6690
- ...i
6701
+ endDate: c,
6702
+ iconName: r = "olympic-flame",
6703
+ iconSize: n,
6704
+ colorItemCounter: i,
6705
+ ...o
6691
6706
  }) => {
6692
- const o = a === y.DESKTOP ? [28, 50] : [16, 29];
6707
+ const d = a === y.DESKTOP ? [28, 50] : [16, 29];
6693
6708
  return /* @__PURE__ */ t(
6694
6709
  m,
6695
6710
  {
6696
6711
  direction: { xs: "column", md: "row" },
6697
6712
  id: l,
6713
+ "data-countdown": "true",
6714
+ "data-countdown-end-date": c,
6698
6715
  bg: "grey-100",
6699
6716
  gap: { xs: "0", md: "xxl-2" },
6700
- ...i,
6717
+ ...o,
6701
6718
  children: [
6702
6719
  /* @__PURE__ */ t(m, { alignItems: "center", mb: { xs: "m", md: "0" }, flexGrow: 0, children: [
6703
6720
  /* @__PURE__ */ e(
6704
6721
  z,
6705
6722
  {
6706
- name: c,
6707
- size: r || o,
6723
+ name: r,
6724
+ size: n || d,
6708
6725
  ml: { xs: "0", md: "m" },
6709
6726
  mr: { xs: "xxs", md: "m" }
6710
6727
  }
@@ -6719,10 +6736,10 @@ const d1 = j(
6719
6736
  mr: { xs: "0", md: "xxl" },
6720
6737
  py: { xs: "0", md: "xs" },
6721
6738
  children: [
6722
- /* @__PURE__ */ e(w1, { colorCounter: n, title: "jours", classItem: "days" }),
6723
- /* @__PURE__ */ e(w1, { colorCounter: n, title: "heures", classItem: "hours" }),
6724
- /* @__PURE__ */ e(w1, { colorCounter: n, title: "minutes", classItem: "minutes" }),
6725
- /* @__PURE__ */ e(w1, { colorCounter: n, title: "secondes", classItem: "seconds" })
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" })
6726
6743
  ]
6727
6744
  }
6728
6745
  )
@@ -9585,16 +9602,16 @@ const d1 = j(
9585
9602
  ]
9586
9603
  }
9587
9604
  );
9588
- }, I3 = ({ tags: a, layout: s, isSmall: l = !1, ...c }) => a.length ? /* @__PURE__ */ e(
9605
+ }, I3 = ({ tags: a, layout: s, ...l }) => a.length ? /* @__PURE__ */ e(
9589
9606
  d1,
9590
9607
  {
9591
9608
  hasSpaceAroundButtons: !0,
9592
- ...c,
9609
+ ...l,
9593
9610
  itemsGap: "xs",
9594
9611
  layout: s,
9595
- className: p("c-tag-bar", c?.className),
9596
- ...l && { buttonsSize: "small" },
9597
- children: a.map((r, n) => /* @__PURE__ */ e(W, { ...r, ...l && { size: "small" } }, n))
9612
+ className: p("c-tag-bar", l?.className),
9613
+ buttonsSize: "small",
9614
+ children: a.map((c, r) => /* @__PURE__ */ e(W, { ...c }, r))
9598
9615
  }
9599
9616
  ) : null, L0 = ({ iconName: a, className: s }) => /* @__PURE__ */ e("li", { className: p("c-text-tooltip-item", s), children: /* @__PURE__ */ e(
9600
9617
  V,
@@ -10011,7 +10028,18 @@ const d1 = j(
10011
10028
  gapX: "xxl",
10012
10029
  children: s.map(
10013
10030
  (i) => i.links.length === 0 ? null : /* @__PURE__ */ t(m, { as: "section", direction: "column", children: [
10014
- /* @__PURE__ */ e(Z, { as: "h3", mb: "m", size: "xxs", children: /* @__PURE__ */ e(C, { ...i.links[0], color: "white" }) }),
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
+ ),
10015
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)) })
10016
10044
  ] }, i.name)
10017
10045
  )