@20minutes/hela 0.1.63 → 0.1.65
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/navigation.d.ts +2 -10
- package/dist/components/molecules/Card/CardExtraLarge/CardExtraLarge.d.ts +2 -1
- package/dist/components/molecules/Card/CardExtraSmall/CardExtraSmall.d.ts +2 -2
- package/dist/components/molecules/Card/CardFooter/CardFooter.d.ts +6 -0
- package/dist/components/molecules/Card/CardFooter/index.d.ts +1 -0
- package/dist/components/molecules/Card/CardLarge/CardLarge.d.ts +2 -1
- package/dist/components/molecules/Card/CardMedium/CardMedium.d.ts +2 -2
- 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/Card/index.d.ts +1 -0
- package/dist/components/molecules/HeaderSideModal/HeaderSideModal.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/constants/cssProperties/typography.d.ts +1 -1
- package/dist/constants/tokenVariables.d.ts +9 -0
- package/dist/index.es.js +7554 -7468
- package/dist/index.umd.js +68 -68
- package/dist/js/main.min.js +1 -1
- package/dist/scss/abstracts/variables/_token-variables.scss +5 -1
- package/dist/scss/abstracts/variables/_variables.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CardType.d.ts +7 -3
- package/package.json +9 -9
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
navigatedList: HTMLDivElement;
|
|
4
|
-
nextBtn: HTMLDivElement;
|
|
5
|
-
prevBtn: HTMLDivElement;
|
|
6
|
-
sliderVariant?: SliderType;
|
|
7
|
-
};
|
|
8
|
-
export declare const onListenContainerSize: (navigationContainerElement?: null | HTMLDivElement, sliderVariant?: NavigationElementOptions['sliderVariant']) => void;
|
|
9
|
-
export declare const onListenResize: (navigationContainerElement?: null | HTMLDivElement, sliderVariant?: NavigationElementOptions['sliderVariant']) => void;
|
|
10
|
-
export {};
|
|
1
|
+
export declare const onListenContainerSize: () => void;
|
|
2
|
+
export declare const onListenResize: () => void;
|
|
@@ -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,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SocialBarProps } from '../../../../components';
|
|
3
|
-
import { CardType,
|
|
4
|
-
export interface CardExtraSmallProps extends CardType,
|
|
3
|
+
import { CardType, SystemProps } from '../../../../types';
|
|
4
|
+
export interface CardExtraSmallProps extends CardType, SystemProps {
|
|
5
5
|
socialBarProps?: SocialBarProps;
|
|
6
6
|
}
|
|
7
7
|
export declare const CardExtraSmall: React.FC<CardExtraSmallProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlexProps } from '../../../../components';
|
|
3
|
+
import { CardFooterType } from '../../../../types';
|
|
4
|
+
export interface CardFooterProps extends CardFooterType, FlexProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const CardFooter: React.FC<CardFooterProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardFooter';
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SocialBarProps } from '../../../../components';
|
|
3
|
-
import { CardType,
|
|
4
|
-
export interface CardMediumProps extends CardType,
|
|
3
|
+
import { CardType, SystemProps } from '../../../../types';
|
|
4
|
+
export interface CardMediumProps extends CardType, SystemProps {
|
|
5
5
|
socialBarProps?: SocialBarProps;
|
|
6
6
|
}
|
|
7
7
|
export declare const CardMedium: React.FC<CardMediumProps>;
|
|
@@ -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,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ButtonProps } from '../../../components';
|
|
2
|
+
import { ButtonProps, HeadingProps } from '../../../components';
|
|
3
3
|
export interface HeaderSideModalProps extends ButtonProps {
|
|
4
4
|
dialogId: string;
|
|
5
5
|
ariaLabel?: string;
|
|
6
6
|
modalIconSize?: number | number[];
|
|
7
|
+
headingProps?: HeadingProps;
|
|
7
8
|
}
|
|
8
9
|
export declare const HeaderSideModal: React.FC<HeaderSideModalProps>;
|
|
@@ -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>;
|
|
@@ -4,4 +4,4 @@ export declare const textTransformList: readonly ["capitalize", "uppercase", "lo
|
|
|
4
4
|
export declare const fontFamilyTokenNameList: readonly ("oswald" | "source-serif-pro")[];
|
|
5
5
|
export declare const fontWeightTokenNameList: readonly ("bold" | "regular")[];
|
|
6
6
|
export declare const headingSizeTokenNameList: readonly ("xs" | "xxs-2" | "xxs" | "s" | "m" | "l" | "xl" | "xxl" | "xxl-2")[];
|
|
7
|
-
export declare const textSizeTokenNameList: readonly ("xs" | "xxs-2" | "xxs" | "s" | "m" | "l" | "xl" | "xxl")[];
|
|
7
|
+
export declare const textSizeTokenNameList: readonly ("xs" | "xxs-2" | "xxs" | "s" | "m" | "l" | "xl" | "xxl" | "xxs-3")[];
|
|
@@ -157,6 +157,9 @@ export declare const tokenVariables: {
|
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
159
|
'font-size': {
|
|
160
|
+
'xxs-4': {
|
|
161
|
+
value: string;
|
|
162
|
+
};
|
|
160
163
|
'xxs-3': {
|
|
161
164
|
value: string;
|
|
162
165
|
};
|
|
@@ -303,6 +306,12 @@ export declare const tokenVariables: {
|
|
|
303
306
|
};
|
|
304
307
|
};
|
|
305
308
|
text: {
|
|
309
|
+
'xxs-3': {
|
|
310
|
+
description: string;
|
|
311
|
+
fontSize: {
|
|
312
|
+
value: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
306
315
|
'xxs-2': {
|
|
307
316
|
description: string;
|
|
308
317
|
fontSize: {
|