@20minutes/hela 0.1.50 → 0.1.52

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,5 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  label?: string;
4
+ variant?: 'success' | 'error';
5
+ variantLabel?: 'default' | 'error' | 'success';
4
6
  }
5
7
  export declare const Checkbox: React.FC<CheckboxProps>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
- export declare type IconName = '20mn-pub' | 'apple' | 'arrow' | 'bookmark' | 'chevron' | 'close' | 'clover' | 'comment' | 'connect' | 'connected' | 'dailymotion' | 'darkmode' | 'diode-rubric-entertainment' | 'diode-leaning' | 'diode-rubric-planet' | 'diode-rubric-sport' | 'diode' | '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' | 'view' | 'youtube' | 'work';
3
+ export declare type IconName = '20mn-pub' | 'apple' | 'arrow' | 'bookmark' | 'chevron' | 'close' | 'clover' | 'comment' | 'connect' | 'connected' | 'dailymotion' | 'darkmode' | 'diaporama' | 'diode-rubric-entertainment' | 'diode-leaning' | 'diode-rubric-planet' | 'diode-rubric-sport' | 'diode' | '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';
4
4
  export declare 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';
5
5
  export interface IconProps extends BoxProps<'div'> {
6
6
  name: IconName | IconHoroscopeName;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  export interface ImgProps extends BoxProps {
4
- src: string;
4
+ src?: string;
5
5
  defaultFormat: string;
6
6
  formats?: string[];
7
7
  sizes?: string;
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
+ import { SignatureProps, SocialBarProps } from '../../../../components';
2
3
  import { CardType, SpacingSystemProps } from '../../../../types';
3
4
  export interface CardExtraLargeProps extends CardType, SpacingSystemProps {
5
+ summary?: string;
6
+ signatureProps?: SignatureProps;
7
+ socialBarProps?: SocialBarProps;
4
8
  }
5
9
  export declare const CardExtraLarge: React.FC<CardExtraLargeProps>;
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
+ import { SocialBarProps } from '../../../../components';
2
3
  import { CardType, SpacingSystemProps } from '../../../../types';
3
4
  export interface CardExtraSmallProps extends CardType, SpacingSystemProps {
5
+ socialBarProps?: SocialBarProps;
4
6
  }
5
7
  export declare const CardExtraSmall: React.FC<CardExtraSmallProps>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../../../../components';
3
+ import { CardImageType } from '../../../../types';
4
+ export interface CardImageProps extends CardImageType, BoxProps {
5
+ }
6
+ export declare const CardImage: React.FC<CardImageProps>;
@@ -0,0 +1 @@
1
+ export * from './CardImage';
@@ -1,6 +1,10 @@
1
1
  import React from 'react';
2
+ import { SignatureProps, SocialBarProps } from '../../../../components';
2
3
  import { CardType, ColorType, SpacingSystemProps } from '../../../../types';
3
4
  export interface CardLargeProps extends CardType, SpacingSystemProps {
5
+ summary?: string;
6
+ signatureProps?: SignatureProps;
7
+ socialBarProps?: SocialBarProps;
4
8
  labelColor?: ColorType;
5
9
  }
6
10
  export declare const CardLarge: React.FC<CardLargeProps>;
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
+ import { SocialBarProps } from '../../../../components';
2
3
  import { CardType, SpacingSystemProps } from '../../../../types';
3
4
  export interface CardMediumProps extends CardType, SpacingSystemProps {
5
+ socialBarProps?: SocialBarProps;
4
6
  }
5
7
  export declare const CardMedium: React.FC<CardMediumProps>;
@@ -2,8 +2,9 @@ import * as React from 'react';
2
2
  import { CardType, SpacingSystemProps } from '../../../../types';
3
3
  export interface CardMostReadProps extends CardType, SpacingSystemProps {
4
4
  index: string;
5
- viewCount?: number;
6
5
  isSimplified: boolean;
7
6
  withBorder: boolean;
7
+ viewCount?: number;
8
+ summary?: string;
8
9
  }
9
10
  export declare const CardMostRead: React.FC<CardMostReadProps>;
@@ -3,4 +3,4 @@ import { CardType, ColorType } from '../../../../types';
3
3
  export interface CardOverviewProps extends CardType, Omit<FlexProps<'a'>, 'title'> {
4
4
  labelBg?: ColorType;
5
5
  }
6
- export declare function CardOverview({ link, cover, cardHeaderProps, title, labelBg, ...flexProps }: CardOverviewProps): JSX.Element;
6
+ export declare function CardOverview({ link, cardImageProps, cardHeaderProps, title, labelBg, ...flexProps }: CardOverviewProps): JSX.Element;
@@ -2,6 +2,7 @@ export * from './Card';
2
2
  export * from './CardExtraLarge';
3
3
  export * from './CardExtraSmall';
4
4
  export * from './CardHeader';
5
+ export * from './CardImage';
5
6
  export * from './CardLarge';
6
7
  export * from './CardMedium';
7
8
  export * from './CardMostRead';
@@ -1,9 +1,2 @@
1
1
  import * as React from 'react';
2
- import { IconName } from '../../../components';
3
- export interface SmartBannerProps {
4
- icon: IconName;
5
- iconClassNames?: string;
6
- iconSize?: number | number[];
7
- className?: string;
8
- }
9
- export declare const SmartBanner: React.FC<SmartBannerProps>;
2
+ export declare const SmartBanner: React.FC;
@@ -1,2 +1,2 @@
1
- import type { FlexOrGridBoxSystemProps } from '../../types';
2
- export declare const flexOrGridBoxSystemProps: Record<keyof FlexOrGridBoxSystemProps, string[]>;
1
+ import type { FlexBoxSystemProps } from '../../types';
2
+ export declare const flexOrGridBoxSystemProps: Record<keyof FlexBoxSystemProps, string[]>;
@@ -1,2 +1,2 @@
1
- import type { FlexOrGridBoxItemSystemProps } from '../../types';
2
- export declare const flexOrGridItemSystemProps: Record<keyof FlexOrGridBoxItemSystemProps, string[]>;
1
+ import type { FlexBoxItemSystemProps } from '../../types';
2
+ export declare const flexOrGridItemSystemProps: Record<keyof FlexBoxItemSystemProps, string[]>;
@@ -1,6 +1,6 @@
1
- export * from './spacingSystemProps';
2
1
  export * from './colorSystemProps';
3
- export * from './typographySystemProps';
4
- export * from './systemProps';
5
2
  export * from './flexOrGridItemSystemProps';
6
3
  export * from './flexOrGridBoxSystemProps';
4
+ export * from './spacingSystemProps';
5
+ export * from './systemProps';
6
+ export * from './typographySystemProps';