@20minutes/hela 0.1.64 → 0.1.66
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/assets/scripts/scroll.d.ts +1 -1
- package/dist/components/atoms/ScrollProgressBar/ScrollProgressBar.d.ts +2 -5
- package/dist/components/molecules/Card/CardExtraLarge/CardExtraLarge.d.ts +2 -1
- package/dist/components/molecules/Card/CardLarge/CardLarge.d.ts +2 -1
- package/dist/components/molecules/Card/CardMostRead/CardMostRead.d.ts +5 -4
- package/dist/components/molecules/Card/CardSmall/CardSmall.d.ts +2 -1
- package/dist/components/molecules/InfoBanner/InfoBanner.d.ts +4 -3
- package/dist/components/molecules/OverviewBar/OverviewBar.d.ts +1 -1
- package/dist/components/molecules/PartnerCards/PartnerCards.d.ts +0 -2
- package/dist/components/molecules/RubricCards/RubricCards.d.ts +2 -2
- package/dist/index.es.js +4414 -4384
- package/dist/index.umd.js +64 -64
- package/dist/js/main.min.js +1 -1
- 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/dist/types/CardType.d.ts +1 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const listenerOfScroll: (
|
|
1
|
+
export declare const listenerOfScroll: () => void;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ColorType } from '../../../types';
|
|
2
|
-
|
|
3
|
-
export interface ScrollProgressBarOptions {
|
|
4
|
-
color?: ColorType;
|
|
5
|
-
hasLimit?: boolean;
|
|
2
|
+
export interface ScrollProgressBarProps {
|
|
6
3
|
variant?: 'article-mobile';
|
|
4
|
+
progressColor?: ColorType;
|
|
7
5
|
}
|
|
8
|
-
export type ScrollProgressBarProps = ScrollProgressBarOptions & BoxProps;
|
|
9
6
|
export declare const ScrollProgressBar: import('../../../types').ComponentWithAs<"div", ScrollProgressBarProps>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SignatureProps, SocialBarProps } from '../../../../components';
|
|
3
|
-
import { CardType, SpacingSystemProps } from '../../../../types';
|
|
3
|
+
import { CardType, LayoutType, SpacingSystemProps } from '../../../../types';
|
|
4
4
|
export interface CardExtraLargeProps extends CardType, SpacingSystemProps {
|
|
5
|
+
layout: LayoutType;
|
|
5
6
|
summary?: string;
|
|
6
7
|
signatureProps?: SignatureProps;
|
|
7
8
|
socialBarProps?: SocialBarProps;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SignatureProps, SocialBarProps } from '../../../../components';
|
|
3
|
-
import { CardType, RubricColorType, SpacingSystemProps } from '../../../../types';
|
|
3
|
+
import { CardType, LayoutType, RubricColorType, SpacingSystemProps } from '../../../../types';
|
|
4
4
|
export interface CardLargeProps extends CardType, SpacingSystemProps {
|
|
5
|
+
layout: LayoutType;
|
|
5
6
|
summary?: string;
|
|
6
7
|
signatureProps?: SignatureProps;
|
|
7
8
|
socialBarProps?: SocialBarProps;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { CardType, SpacingSystemProps } from '../../../../types';
|
|
2
|
+
import { CardType, LayoutType, SpacingSystemProps } from '../../../../types';
|
|
3
3
|
export interface CardMostReadProps extends CardType, SpacingSystemProps {
|
|
4
4
|
index: string;
|
|
5
|
-
|
|
6
|
-
withBorder: boolean;
|
|
7
|
-
viewCount?: number;
|
|
5
|
+
layout: LayoutType;
|
|
8
6
|
summary?: string;
|
|
7
|
+
isSimplified?: boolean;
|
|
8
|
+
withBorder?: boolean;
|
|
9
|
+
viewCount?: number;
|
|
9
10
|
}
|
|
10
11
|
export declare const CardMostRead: React.FC<CardMostReadProps>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HeadingProps } from '../../../../components';
|
|
3
|
-
import { CardType, SpacingSystemProps } from '../../../../types';
|
|
3
|
+
import { CardType, LayoutType, SpacingSystemProps } from '../../../../types';
|
|
4
4
|
export interface CardSmallProps extends CardType, SpacingSystemProps {
|
|
5
|
+
layout: LayoutType;
|
|
5
6
|
headingProps?: Pick<HeadingProps, 'color' | 'weight'>;
|
|
6
7
|
}
|
|
7
8
|
export declare const CardSmall: React.FC<CardSmallProps>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { RawDraftContentState } from 'draft-js';
|
|
2
3
|
import { FlexProps } from '../../../components';
|
|
3
4
|
export interface InfoBannerProps extends FlexProps<'div'> {
|
|
4
5
|
cover?: string;
|
|
5
|
-
description: string;
|
|
6
|
-
title
|
|
7
|
-
variant?: 'default' | 'alert';
|
|
6
|
+
description: RawDraftContentState | string;
|
|
7
|
+
title?: string;
|
|
8
|
+
variant?: 'default' | 'alert' | 'framed';
|
|
8
9
|
isCloseable?: boolean;
|
|
9
10
|
link?: string;
|
|
10
11
|
}
|
|
@@ -2,6 +2,6 @@ import { CardOverviewProps } from '../../../components';
|
|
|
2
2
|
import { LayoutType } from '../../../types';
|
|
3
3
|
export interface OverviewBarProps {
|
|
4
4
|
articles: CardOverviewProps[];
|
|
5
|
-
layout
|
|
5
|
+
layout: LayoutType;
|
|
6
6
|
}
|
|
7
7
|
export declare function OverviewBar({ articles, layout }: OverviewBarProps): JSX.Element;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CardExtraSmallProps, CardMediumProps } from '../../../components';
|
|
3
|
-
import { LayoutType } from '../../../types';
|
|
4
3
|
export interface PartnerCardsProps {
|
|
5
4
|
columns: {
|
|
6
5
|
label: string;
|
|
7
6
|
articles: CardMediumProps[] | CardExtraSmallProps[];
|
|
8
7
|
}[];
|
|
9
|
-
layout?: LayoutType;
|
|
10
8
|
}
|
|
11
9
|
export declare const PartnerCards: React.FC<PartnerCardsProps>;
|
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { CardSmallProps } from '../../../components';
|
|
3
3
|
import { LayoutType, RubricColorType } from '../../../types';
|
|
4
4
|
export interface RubricCardsProps {
|
|
5
|
-
articles: CardSmallProps[];
|
|
6
5
|
label: string;
|
|
6
|
+
articles: CardSmallProps[];
|
|
7
|
+
layout: LayoutType;
|
|
7
8
|
rubricColor?: RubricColorType;
|
|
8
|
-
layout?: LayoutType;
|
|
9
9
|
}
|
|
10
10
|
export declare const RubricCards: React.FC<RubricCardsProps>;
|