@20minutes/hela 2.17.8 → 2.18.0

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.
@@ -56,7 +56,7 @@ $political-parties-colors: (
56
56
  'union-extreme-droite': #00152a,
57
57
  'divers-extreme-droite': #031322,
58
58
 
59
- 'divers': #818181,
59
+ 'divers': #c0c0c0,
60
60
  'changement-citoyen': #818181,
61
61
  'decidons-nous-meme': #818181,
62
62
  'parti-animaliste': #818181,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 17 Mar 2026 16:52:48 GMT
3
+ * Generated on Fri, 20 Mar 2026 09:48:53 GMT
4
4
  */
5
5
 
6
6
  $token-variables: (
@@ -1,12 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
  import { BoxProps } from '../..';
3
- import { ThemeColorType } from '../../../types';
3
+ import { ColorType, PoliticalPartiesColorsType } from '../../../types';
4
4
  export interface AvatarProps extends BoxProps {
5
5
  img?: string;
6
6
  alt?: string;
7
- themeColor?: ThemeColorType;
7
+ color?: ColorType | PoliticalPartiesColorsType;
8
8
  variant?: 'xsmall' | 'small' | 'default' | 'big';
9
- withBorder?: boolean;
10
9
  streakBadge?: number;
11
10
  }
12
11
  export declare const Avatar: React.FC<AvatarProps>;
@@ -1,14 +1,14 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import('react').FC<import('../..').AvatarProps>;
4
+ component: import('react').FC<import('./Avatar').AvatarProps>;
5
5
  args: {
6
6
  img: string;
7
7
  alt: string;
8
8
  variant: "default";
9
9
  };
10
10
  argTypes: {
11
- themeColor: {
11
+ color: {
12
12
  options: string[];
13
13
  };
14
14
  variant: {
@@ -30,7 +30,6 @@ declare const meta: {
30
30
  py?: import('@storybook/csf').InputType | undefined;
31
31
  borderColor?: import('@storybook/csf').InputType | undefined;
32
32
  bg?: import('@storybook/csf').InputType | undefined;
33
- color?: import('@storybook/csf').InputType | undefined;
34
33
  radius?: import('@storybook/csf').InputType | undefined;
35
34
  };
36
35
  parameters: {
@@ -1,5 +1,5 @@
1
1
  import { BoxProps } from '../..';
2
- import { IconNameOfHoroscopeSignType, IconNameType } from '../../../types';
2
+ import { ColorSystemProps, IconNameOfHoroscopeSignType, IconNameType, PoliticalPartiesColorsType } from '../../../types';
3
3
  export declare const rotationList: readonly ["quarter", "half", "three-quarter"];
4
4
  type RotationListType = (typeof rotationList)[number];
5
5
  export declare const borderSizeList: readonly ["small", "medium", "big"];
@@ -11,7 +11,8 @@ export interface IconOptions {
11
11
  border?: BorderSizeListType;
12
12
  rotation?: RotationListType;
13
13
  svgTitle?: string;
14
+ color?: ColorSystemProps['color'] | PoliticalPartiesColorsType;
14
15
  }
15
- export type IconProps = IconOptions & BoxProps;
16
+ export type IconProps = IconOptions & Omit<BoxProps, 'color'>;
16
17
  export declare const Icon: import('../../../types').ComponentWithAs<"div", IconProps>;
17
18
  export {};
@@ -4,6 +4,6 @@ import { AvatarType } from '../../../types/AvatarType';
4
4
  export interface AvatarGroupProps extends FlexProps {
5
5
  avatars: AvatarType[];
6
6
  maxAvatar?: number;
7
- themeColor?: AvatarProps['themeColor'];
7
+ themeColor?: AvatarProps['color'];
8
8
  }
9
9
  export declare const AvatarGroup: React.FC<AvatarGroupProps>;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { BoxProps } from '../../../..';
3
+ export interface CardSkeletonProps extends BoxProps {
4
+ variant: 'medium' | 'extra-small';
5
+ }
6
+ export declare const CardSkeleton: React.FC<CardSkeletonProps>;
@@ -1,25 +1,11 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import('../../..').ComponentWithAs<"div", import('./Icon').IconProps>;
4
+ component: import('react').FC<import('./CardSkeleton').CardSkeletonProps>;
5
5
  args: {
6
- name: "home";
7
- size: number;
8
- isRounded: false;
6
+ variant: "medium";
9
7
  };
10
8
  argTypes: {
11
- name: {
12
- control: "select";
13
- options: string[];
14
- };
15
- rotation: {
16
- control: "select";
17
- options: readonly ["quarter", "half", "three-quarter"];
18
- };
19
- border: {
20
- control: "select";
21
- options: readonly ["small", "medium", "big"];
22
- };
23
9
  m?: import('@storybook/csf').InputType | undefined;
24
10
  mt?: import('@storybook/csf').InputType | undefined;
25
11
  mr?: import('@storybook/csf').InputType | undefined;
@@ -47,8 +33,5 @@ declare const meta: {
47
33
  };
48
34
  export default meta;
49
35
  type Story = StoryObj<typeof meta>;
50
- export declare const Overview: Story;
51
- export declare const WithBorder: Story;
52
- export declare const WithBgColor: Story;
53
- export declare const Rounded: Story;
54
- export declare const Circle: Story;
36
+ export declare const Medium: Story;
37
+ export declare const ExtraSmall: Story;
@@ -0,0 +1 @@
1
+ export * from './CardSkeleton';
@@ -11,6 +11,7 @@ export * from './CardNotification';
11
11
  export * from './CardOverview';
12
12
  export * from './CardProduct';
13
13
  export * from './CardSideImage';
14
+ export * from './CardSkeleton';
14
15
  export * from './CardSmall';
15
16
  export * from './CardTiny';
16
17
  export * from './CardVertical';
@@ -5,6 +5,7 @@ export interface SearchBannerProps {
5
5
  layout: LayoutType;
6
6
  searchFormProps: SearchFormProps;
7
7
  title?: HeadingProps['children'];
8
+ titleHref?: string;
8
9
  breadcrumbProps?: {
9
10
  label: string;
10
11
  link: string;
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { BoxProps } from '../../..';
3
2
  import { PoliticalPartyType } from '../../../../types';
4
3
  interface DepartmentsPath {
@@ -27,5 +26,5 @@ export interface MapTownsByDepartmentsProps extends BoxProps {
27
26
  townsSprite?: string;
28
27
  className?: string;
29
28
  }
30
- export declare const MapTownsByDepartments: React.FC<MapTownsByDepartmentsProps>;
29
+ export declare const MapTownsByDepartments: ({ resultsPerTown, departmentsPaths, dromsConfig, townsSprite, className, ...boxProps }: MapTownsByDepartmentsProps) => import("react/jsx-runtime").JSX.Element;
31
30
  export {};
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { EmojiReaction, FlexProps, IconItemProps } from '../..';
3
3
  import { ReactionContent } from '../../../constants/emojiConfig';
4
- import { ColorType, ThemeColorType } from '../../../types';
4
+ import { ColorType, LayoutType, ThemeColorType } from '../../../types';
5
5
  export interface ReactButtonProps extends FlexProps {
6
6
  variant: 'horizontal' | 'vertical' | 'card';
7
7
  count?: number;
@@ -16,5 +16,8 @@ export interface ReactButtonProps extends FlexProps {
16
16
  type: ReactionContent;
17
17
  id: number;
18
18
  };
19
+ layout?: LayoutType;
20
+ contentId?: string;
21
+ contentLegacyId?: string;
19
22
  }
20
23
  export declare const ReactButton: React.FC<ReactButtonProps>;
@@ -1,5 +1,6 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  import { default as React } from 'react';
3
+ import { LayoutType } from '../../../types';
3
4
  declare const meta: {
4
5
  title: string;
5
6
  component: React.FC<import('../..').ReactButtonProps>;
@@ -9,10 +10,12 @@ declare const meta: {
9
10
  iconItemProps: {
10
11
  variant: "secondary";
11
12
  };
13
+ layout: LayoutType.DESKTOP;
14
+ contentId: string;
12
15
  };
13
16
  argTypes: {
14
17
  countColor: {
15
- options: readonly import('../../..').ColorType[];
18
+ options: readonly import('../../../types').ColorType[];
16
19
  };
17
20
  countBg: {
18
21
  options: string[];
@@ -12,7 +12,7 @@ export interface SignatureProps extends FlexProps {
12
12
  userlink?: string;
13
13
  authorHighlighted?: boolean;
14
14
  disableAvatar?: boolean;
15
- themeColor?: AvatarProps['themeColor'];
15
+ themeColor?: AvatarProps['color'];
16
16
  sponsor?: SponsorType;
17
17
  }
18
18
  export declare const Signature: React.FC<SignatureProps>;
@@ -0,0 +1,8 @@
1
+ export interface TownSpriteEntry {
2
+ id: string;
3
+ path: string;
4
+ name: string;
5
+ url: string;
6
+ }
7
+ export declare const parseTownSprite: (townsSprite: string) => TownSpriteEntry[];
8
+ export declare const indexTownSpriteEntriesById: (entries: TownSpriteEntry[]) => Map<string, TownSpriteEntry>;
@@ -1,4 +1,6 @@
1
+ import { AvatarProps } from '../components';
1
2
  export interface AvatarType {
2
3
  title: string;
3
4
  path?: string;
5
+ color?: AvatarProps['color'];
4
6
  }