@20minutes/hela 0.1.46 → 0.1.48

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,7 +1,7 @@
1
1
  import * as React from 'react';
2
- export interface AdProps {
2
+ import { BoxProps } from '../../../components';
3
+ export interface AdProps extends BoxProps {
3
4
  adUnitCompletePath: string;
4
- classes?: string;
5
5
  lazyload?: {
6
6
  delayed: boolean;
7
7
  distanceVisible?: number;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { LayoutType } from '../../../../types';
2
+ import { LayoutType, MediaSourceType } from '../../../../types';
3
3
  export interface ArticleCoverProps {
4
- type?: 'photo' | 'video';
4
+ type: MediaSourceType;
5
5
  src: string;
6
6
  caption: string;
7
7
  isCaptionInside?: boolean;
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react';
2
- import { ColorType } from '../../../../types';
2
+ import { ColorType, LayoutType } from '../../../../types';
3
3
  export interface ArticleHeaderProps {
4
4
  title: string;
5
5
  lead: string;
6
6
  label: string;
7
7
  color?: ColorType;
8
8
  rightImageUrl?: string;
9
+ layout: LayoutType;
9
10
  }
10
11
  export declare const ArticleHeader: React.FC<ArticleHeaderProps>;
@@ -1,6 +1,6 @@
1
1
  import { FlexProps } from '../../../../components/atoms';
2
2
  import React from 'react';
3
- export interface CardProps extends FlexProps {
3
+ export interface CardProps extends FlexProps<'a'> {
4
4
  link: string;
5
5
  children: React.ReactNode;
6
6
  }
@@ -1,14 +1,5 @@
1
1
  import React from 'react';
2
- import { CardHeaderProps, FlexProps, SignatureProps, SocialBarProps } from '../../../../components';
3
- import { LayoutType } from '../../../../types';
4
- export interface CardExtraLargeProps extends FlexProps {
5
- link: string;
6
- cardHeaderProps: CardHeaderProps;
7
- title: string;
8
- summary: string;
9
- cover: string;
10
- signatureProps: SignatureProps;
11
- socialBarProps: SocialBarProps;
12
- layout?: LayoutType;
2
+ import { CardType, SpacingSystemProps } from '../../../../types';
3
+ export interface CardExtraLargeProps extends CardType, SpacingSystemProps {
13
4
  }
14
5
  export declare const CardExtraLarge: React.FC<CardExtraLargeProps>;
@@ -1,10 +1,5 @@
1
1
  import React from 'react';
2
- import { CardHeaderProps, FlexProps, SocialBarProps } from '../../../../components';
3
- export interface CardExtraSmallProps extends FlexProps {
4
- link: string;
5
- cardHeaderProps: CardHeaderProps;
6
- title: string;
7
- cover: string;
8
- socialBarProps?: SocialBarProps;
2
+ import { CardType, SpacingSystemProps } from '../../../../types';
3
+ export interface CardExtraSmallProps extends CardType, SpacingSystemProps {
9
4
  }
10
5
  export declare const CardExtraSmall: React.FC<CardExtraSmallProps>;
@@ -1,10 +1,6 @@
1
1
  import React from 'react';
2
- import { TextSizeType, TextType } from '../../../../types';
2
+ import { CardHeaderType } from '../../../../types';
3
3
  import { FlexProps } from '../../../../components';
4
- export interface CardHeaderProps extends FlexProps {
5
- headline: TextType;
6
- leftSubheader?: TextType;
7
- rightSubheader?: TextType;
8
- size?: TextSizeType;
4
+ export interface CardHeaderProps extends CardHeaderType, FlexProps {
9
5
  }
10
6
  export declare const CardHeader: React.FC<CardHeaderProps>;
@@ -1,15 +1,6 @@
1
1
  import React from 'react';
2
- import { FlexProps, SignatureProps, SocialBarProps } from '../../../../components';
3
- import { ColorType, LayoutType } from '../../../../types';
4
- export interface CardLargeProps extends FlexProps {
5
- link: string;
6
- headline: string;
7
- color: ColorType;
8
- title: string;
9
- summary: string;
10
- cover: string;
11
- signatureProps: SignatureProps;
12
- socialBarProps: SocialBarProps;
13
- layout?: LayoutType;
2
+ import { CardType, ColorType, SpacingSystemProps } from '../../../../types';
3
+ export interface CardLargeProps extends CardType, SpacingSystemProps {
4
+ labelColor?: ColorType;
14
5
  }
15
6
  export declare const CardLarge: React.FC<CardLargeProps>;
@@ -1,10 +1,5 @@
1
1
  import React from 'react';
2
- import { CardHeaderProps, FlexProps, SocialBarProps } from '../../../../components';
3
- export interface CardMediumProps extends FlexProps {
4
- link: string;
5
- cardHeaderProps: CardHeaderProps;
6
- title: string;
7
- cover: string;
8
- socialBarProps?: SocialBarProps;
2
+ import { CardType, SpacingSystemProps } from '../../../../types';
3
+ export interface CardMediumProps extends CardType, SpacingSystemProps {
9
4
  }
10
5
  export declare const CardMedium: React.FC<CardMediumProps>;
@@ -1,15 +1,8 @@
1
1
  import * as React from 'react';
2
- import { CardHeaderProps, FlexProps } from '../../../../components';
3
- import { LayoutType } from '../../../../types';
4
- export interface CardMostReadProps extends FlexProps {
5
- link: string;
6
- cardHeaderProps: CardHeaderProps;
7
- cover?: string;
8
- title: string;
2
+ import { CardType, SpacingSystemProps } from '../../../../types';
3
+ export interface CardMostReadProps extends CardType, SpacingSystemProps {
9
4
  index: string;
10
- summary?: string;
11
5
  viewCount?: number;
12
- layout?: LayoutType;
13
6
  isSimplified: boolean;
14
7
  withBorder: boolean;
15
8
  }
@@ -1,10 +1,6 @@
1
1
  import { FlexProps } from '../../../../components';
2
- import { ColorType } from '../../../../types';
3
- export interface CardOverviewProps extends FlexProps {
4
- cover: string;
5
- link: string;
6
- headline: string;
7
- title: string;
8
- color?: ColorType;
2
+ import { CardType, ColorType } from '../../../../types';
3
+ export interface CardOverviewProps extends CardType, Omit<FlexProps<'a'>, 'title'> {
4
+ labelBg?: ColorType;
9
5
  }
10
- export declare function CardOverview({ link, cover, headline, title, color, ...flexProps }: CardOverviewProps): JSX.Element;
6
+ export declare function CardOverview({ link, cover, cardHeaderProps, title, labelBg, ...flexProps }: CardOverviewProps): JSX.Element;
@@ -1,11 +1,5 @@
1
1
  import React from 'react';
2
- import { CardHeaderProps, FlexProps } from '../../../../components';
3
- import { LayoutType } from '../../../../types';
4
- export interface CardSmallProps extends FlexProps {
5
- link: string;
6
- cardHeaderProps: CardHeaderProps;
7
- title: string;
8
- cover: string;
9
- layout?: LayoutType;
2
+ import { CardType, SpacingSystemProps } from '../../../../types';
3
+ export interface CardSmallProps extends CardType, SpacingSystemProps {
10
4
  }
11
5
  export declare const CardSmall: React.FC<CardSmallProps>;
@@ -8,6 +8,7 @@ export interface MostReadArticlesProps {
8
8
  rubricName: string;
9
9
  title: string;
10
10
  url: string;
11
+ cover: string;
11
12
  }[];
12
13
  }[];
13
14
  tabItemActive?: string;