@20minutes/hela 0.1.85 → 0.1.86
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/atoms/Alert/Alert.d.ts +1 -1
- package/dist/components/atoms/Avatar/Avatar.d.ts +2 -2
- package/dist/components/atoms/Button/Button.d.ts +1 -1
- package/dist/components/atoms/Divider/Divider.d.ts +1 -1
- package/dist/components/atoms/DividerSection/DividerSection.d.ts +1 -1
- package/dist/components/atoms/Icon/Icon.d.ts +2 -2
- package/dist/components/atoms/Img/Img.d.ts +1 -1
- package/dist/components/atoms/InlineSeparator/InlineSeparator.d.ts +1 -1
- package/dist/components/atoms/Input/Input.d.ts +1 -1
- package/dist/components/atoms/Label/Label.d.ts +1 -1
- package/dist/components/atoms/Overlay/Overlay.d.ts +1 -1
- package/dist/components/atoms/Slider/Slider.d.ts +2 -2
- package/dist/components/atoms/Tag/Tag.d.ts +1 -1
- package/dist/components/atoms/Typography/Heading/Heading.d.ts +1 -1
- package/dist/components/atoms/Typography/Text/Text.d.ts +1 -1
- package/dist/components/atoms/Typography/index.d.ts +1 -0
- package/dist/components/molecules/AlertInfoBanner/AlertInfoBanner.d.ts +10 -0
- package/dist/components/molecules/AlertInfoBanner/index.d.ts +1 -0
- package/dist/components/molecules/Article/ArticleSummary/ArticleSummary.d.ts +1 -2
- package/dist/components/molecules/Article/index.d.ts +2 -2
- package/dist/components/molecules/Card/CardContainer/CardContainer.d.ts +1 -1
- package/dist/components/molecules/Card/CardHeader/CardHeader.d.ts +1 -1
- package/dist/components/molecules/Collapse/Collapse.d.ts +1 -1
- package/dist/components/molecules/HeaderPage/HeaderPage.d.ts +3 -3
- package/dist/components/molecules/Horoscope/HoroscopeContent/HoroscopeContent.d.ts +1 -1
- package/dist/components/molecules/InfoBanner/InfoBanner.d.ts +2 -5
- package/dist/components/molecules/ReadAlsoBanner/ReadAlsoBanner.d.ts +2 -2
- package/dist/components/molecules/SocialBar/SocialBar.d.ts +1 -1
- package/dist/components/molecules/index.d.ts +2 -0
- package/dist/constants/cssProperties/typography.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +3517 -43609
- package/dist/index.umd.js +2 -299
- package/dist/scss/abstracts/variables/_old-colors.scss +3 -0
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/scss/abstracts/variables/_variables.scss +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -11
- package/dist/assets/scripts/collapse.d.ts +0 -1
- package/dist/assets/scripts/expander.d.ts +0 -1
- package/dist/assets/scripts/modal.d.ts +0 -1
- package/dist/assets/scripts/navigation.d.ts +0 -2
- package/dist/assets/scripts/overlay.d.ts +0 -1
- package/dist/assets/scripts/scroll.d.ts +0 -1
- package/dist/assets/scripts/scrollDirectionDetection.d.ts +0 -2
- package/dist/assets/scripts/searchToggle.d.ts +0 -1
- package/dist/assets/scripts/tabs.d.ts +0 -1
- package/dist/assets/scripts/theming.d.ts +0 -2
- package/dist/components/molecules/Article/ArticleContent/ArticleContent.d.ts +0 -8
- package/dist/components/molecules/Article/ArticleContent/index.d.ts +0 -1
- package/dist/helpers/draftjsHtmlHelper.d.ts +0 -2
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useLayoutEffect.d.ts +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type BoxProps } from '../../../components';
|
|
3
3
|
import type { RubricColorType } from '../../../types';
|
|
4
4
|
export interface AvatarProps extends BoxProps {
|
|
5
5
|
img: string;
|
|
6
6
|
alt?: string;
|
|
7
|
-
rubricColor?: RubricColorType;
|
|
7
|
+
rubricColor?: RubricColorType | 'afp';
|
|
8
8
|
}
|
|
9
9
|
export declare const Avatar: React.FC<AvatarProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type IconProps } from '../../../components';
|
|
3
3
|
import type { As, AsProps, ColorSystemProps, SpacingSystemProps } from '../../../types';
|
|
4
4
|
export declare const buttonVariant: readonly ["primary", "secondary", "tertiary", "ghost", "round", "exit"];
|
|
5
5
|
export type ButtonVariantType = (typeof buttonVariant)[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export type IconName = '20mn-pub' | 'apple' | 'arrow' | 'bookmark' | 'chevron' | 'clock' | 'close' | 'clover' | 'comment' | 'connect' | 'connected' | 'dailymotion' | 'darkmode' | 'diaporama' | 'diode-rubric-entertainment' | 'diode-leaning' | 'diode-rubric-planet' | 'diode-rubric-sport' | 'diode' | 'error' | 'facebook' | 'flipboard' | 'googleplay' | 'health' | 'heart' | 'horoscope' | 'home' | 'instagram' | 'jeux' | 'journal' | 'local' | 'logo' | 'menu' | 'mood' | 'newsletters' | 'not-found' | 'notification' | 'podcast' | 'report' | 'search' | 'server-error' | 'share' | 'signin-facebook' | 'signin-google' | 'snapchat' | 'star' | 'tiktok' | 'twitter' | 'valide' | 'video' | 'view' | 'youtube' | 'work';
|
|
1
|
+
import { type BoxProps } from '../../../components';
|
|
2
|
+
export type IconName = '20mn-achat' | '20mn-afp' | '20mn-mag' | '20mn-media' | '20mn-product' | '20mn-pub' | 'apple' | 'arrow' | 'bookmark' | 'chevron' | 'clock' | 'close' | 'clover' | 'comment' | 'connect' | 'connected' | 'dailymotion' | 'darkmode' | 'diaporama' | 'diode-rubric-entertainment' | 'diode-leaning' | 'diode-rubric-planet' | 'diode-rubric-sport' | 'diode' | 'error' | 'facebook' | 'flipboard' | 'googleplay' | 'health' | 'heart' | 'horoscope' | 'home' | 'instagram' | 'jeux' | 'journal' | 'local' | 'logo' | 'menu' | 'mood' | 'newsletters' | 'not-found' | 'notification' | 'podcast' | 'report' | 'search' | 'server-error' | 'share' | 'signin-facebook' | 'signin-google' | 'snapchat' | 'star' | 'tiktok' | 'twitter' | 'valide' | 'video' | 'view' | 'youtube' | 'work';
|
|
3
3
|
export type IconHoroscopeName = 'horoscope-belier' | 'horoscope-taureau' | 'horoscope-gemeaux' | 'horoscope-cancer' | 'horoscope-lion' | 'horoscope-vierge' | 'horoscope-balance' | 'horoscope-scorpion' | 'horoscope-sagittaire' | 'horoscope-capricorne' | 'horoscope-verseau' | 'horoscope-poissons' | 'horoscope-buffle' | 'horoscope-cheval' | 'horoscope-chevre' | 'horoscope-chien' | 'horoscope-cochon' | 'horoscope-coq' | 'horoscope-dragon' | 'horoscope-lapin' | 'horoscope-rat' | 'horoscope-serpent' | 'horoscope-singe' | 'horoscope-tigre';
|
|
4
4
|
export interface IconOptions {
|
|
5
5
|
name: IconName | IconHoroscopeName;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ButtonProps, type IconName, type TextProps } from '../../../components';
|
|
2
2
|
import type { AsProps, ColorSystemProps } from '../../../types';
|
|
3
3
|
export interface InputOptions {
|
|
4
4
|
label?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type FlexProps } from '../../../components';
|
|
3
3
|
import type { TextSizeType } from '../../../types';
|
|
4
4
|
export interface LabelProps extends FlexProps {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { SpacingType } from '../../../types';
|
|
1
|
+
import type { BoxProps } from '../../../components';
|
|
3
2
|
import { LayoutType } from '../../../types';
|
|
3
|
+
import type { SpacingType } from '../../../types';
|
|
4
4
|
export type SliderType = 'default' | 'partners' | 'rubrics';
|
|
5
5
|
export interface SliderOptions {
|
|
6
6
|
layout: LayoutType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TypographyProps } from '../../../../components';
|
|
2
2
|
import type { As, HeadingSizeType, TypeWithMediaQueriesType } from '../../../../types';
|
|
3
3
|
export interface HeadingOptions {
|
|
4
4
|
size?: HeadingSizeType | TypeWithMediaQueriesType<HeadingSizeType>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TypographyProps } from '../../../../components';
|
|
2
2
|
import type { As, TextSizeType, TypeWithMediaQueriesType } from '../../../../types';
|
|
3
3
|
export interface TextOptions {
|
|
4
4
|
size?: TextSizeType | TypeWithMediaQueriesType<TextSizeType>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ButtonProps, type FlexProps } from '../../../components';
|
|
3
|
+
export interface AlertInfoBannerProps extends FlexProps<'div'> {
|
|
4
|
+
title: string;
|
|
5
|
+
description: React.ReactNode;
|
|
6
|
+
cover?: string;
|
|
7
|
+
link?: React.ComponentProps<'a'>;
|
|
8
|
+
closeButton?: ButtonProps;
|
|
9
|
+
}
|
|
10
|
+
export declare const AlertInfoBanner: React.FC<AlertInfoBannerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AlertInfoBanner';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BoxProps } from '../../../../components';
|
|
3
3
|
import type { RubricColorType } from '../../../../types';
|
|
4
|
-
import type { RawDraftContentState } from 'draft-js';
|
|
5
4
|
export interface ArticleSummaryProps extends BoxProps {
|
|
6
5
|
title: string;
|
|
7
|
-
summary:
|
|
6
|
+
summary: React.ReactNode;
|
|
8
7
|
rubricColor?: RubricColorType;
|
|
9
8
|
}
|
|
10
9
|
export declare const ArticleSummary: React.FC<ArticleSummaryProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type FlexProps } from '../../../../components';
|
|
3
3
|
import type { CardHeaderType } from '../../../../types';
|
|
4
4
|
export interface CardHeaderProps extends CardHeaderType, FlexProps {
|
|
5
5
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type BoxProps } from '../../../components';
|
|
3
3
|
import type { ColorType } from '../../../types';
|
|
4
|
-
import type { RawDraftContentState } from 'draft-js';
|
|
5
4
|
export interface HeaderPageProps extends BoxProps {
|
|
6
5
|
title: string;
|
|
7
|
-
subtitle?:
|
|
6
|
+
subtitle?: React.ReactNode;
|
|
7
|
+
subtitleIsString?: boolean;
|
|
8
8
|
dividerSectionColor?: ColorType;
|
|
9
9
|
isExpandable?: boolean;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type HoroscopeTopicCardProps, type InfoBannerProps } from '../../../../components';
|
|
3
3
|
export interface HoroscopeContentProps {
|
|
4
4
|
topics: HoroscopeTopicCardProps[];
|
|
5
5
|
infoBannerProps: InfoBannerProps;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
3
|
-
import type { RawDraftContentState } from 'draft-js';
|
|
2
|
+
import { type ButtonProps, type FlexProps } from '../../../components';
|
|
4
3
|
export interface InfoBannerProps extends FlexProps<'div'> {
|
|
5
4
|
title?: string;
|
|
6
|
-
description:
|
|
7
|
-
cover?: string;
|
|
8
|
-
variant?: 'default' | 'alert' | 'framed';
|
|
5
|
+
description: React.ReactNode;
|
|
9
6
|
link?: React.ComponentProps<'a'>;
|
|
10
7
|
closeButton?: ButtonProps;
|
|
11
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CardSmallProps } from '../../../components';
|
|
3
3
|
import type { LayoutType } from '../../../types';
|
|
4
4
|
export interface ReadAlsoBannerProps {
|
|
5
5
|
layout: LayoutType;
|
|
@@ -10,7 +10,7 @@ export interface SocialBarProps extends SpacingSystemProps {
|
|
|
10
10
|
layout?: LayoutType;
|
|
11
11
|
variant?: 'advanced' | 'simple';
|
|
12
12
|
rubricColor?: RubricColorType;
|
|
13
|
-
displaySavePage?: boolean;
|
|
14
13
|
reportAction?: () => void;
|
|
14
|
+
saveContentId?: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const SocialBar: React.FC<SocialBarProps>;
|
|
@@ -2,6 +2,6 @@ export declare const textDecorationList: readonly ["underline", "dotted", "wavy"
|
|
|
2
2
|
export declare const textAlignList: readonly ["left", "center", "right", "justify"];
|
|
3
3
|
export declare const textTransformList: readonly ["capitalize", "uppercase", "lowercase"];
|
|
4
4
|
export declare const fontFamilyTokenNameList: readonly ("oswald" | "source-serif-pro")[];
|
|
5
|
-
export declare const fontWeightTokenNameList: readonly ("
|
|
5
|
+
export declare const fontWeightTokenNameList: readonly ("regular" | "bold")[];
|
|
6
6
|
export declare const headingSizeTokenNameList: readonly ("xs" | "xxs-2" | "xxs" | "s" | "m" | "l" | "xl" | "xxl" | "xxl-2")[];
|
|
7
7
|
export declare const textSizeTokenNameList: readonly ("xs" | "xxs-2" | "xxs" | "s" | "m" | "l" | "xl" | "xxl" | "xxs-3")[];
|
package/dist/index.d.ts
CHANGED