@20minutes/hela 0.1.37 → 0.1.39
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/InlineSeparator/InlineSeparator.d.ts +2 -2
- package/dist/components/atoms/Label/Label.d.ts +2 -0
- package/dist/components/atoms/Layout/Flex/Flex.d.ts +3 -6
- package/dist/components/atoms/Layout/Flex/FlexItem/FlexItem.d.ts +3 -4
- package/dist/components/atoms/ReadAlso/ReadAlso.d.ts +3 -3
- package/dist/components/atoms/ScrollProgressBar/ScrollProgressBar.d.ts +2 -2
- package/dist/components/molecules/Article/ArticleSummary/ArticleSummary.d.ts +3 -3
- package/dist/components/molecules/Card/CardHeader/CardHeader.d.ts +2 -1
- package/dist/components/molecules/Card/CardMedium/CardMedium.d.ts +0 -2
- package/dist/components/molecules/Collapse/Collapse.d.ts +2 -3
- package/dist/components/molecules/ErrorContent/ErrorContent.d.ts +2 -1
- package/dist/components/molecules/Horoscope/HoroscopeTopicCard/HoroscopeTopicCard.d.ts +0 -2
- package/dist/components/molecules/LiveCards/LiveCards.d.ts +0 -2
- package/dist/components/molecules/SocialBar/SocialBar.d.ts +4 -5
- package/dist/constants/cssProperties/flexboxAndGridBox.d.ts +2 -0
- package/dist/constants/cssProperties/typography.d.ts +1 -1
- package/dist/constants/tokenVariables.d.ts +3 -3
- package/dist/helpers/systemPropsHelper/classNameWithModifier.d.ts +1 -1
- package/dist/helpers/systemPropsHelper/classNamesWithModifiers.d.ts +1 -1
- package/dist/helpers/systemPropsHelper/flexBoxItemSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/flexBoxSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/index.d.ts +2 -0
- package/dist/index.es.js +9143 -9042
- package/dist/index.umd.js +54 -54
- package/dist/scss/abstracts/variables/_token-variables.scss +4 -4
- package/dist/style.css +1 -1
- package/dist/types/CssProperties/flexboxAndGridBox.d.ts +7 -5
- package/dist/types/SystemProps/FlexBoxItemSystemProps.d.ts +6 -0
- package/dist/types/SystemProps/FlexBoxSystemProps.d.ts +6 -0
- package/dist/types/SystemProps/index.d.ts +2 -0
- package/dist/types/index.d.ts +5 -5
- package/dist/types/{TokenTypes.d.ts → tokenTypes.d.ts} +1 -1
- package/package.json +10 -10
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const InlineSeparator: React.FC<
|
|
2
|
+
import { TextProps } from '../../../components';
|
|
3
|
+
export declare const InlineSeparator: React.FC<TextProps>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FlexProps } from '../../../components';
|
|
3
|
+
import { TextSizeType } from '../../../types';
|
|
3
4
|
export interface LabelProps extends FlexProps {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
hasDot?: boolean;
|
|
6
7
|
isUppercase?: boolean;
|
|
8
|
+
size?: TextSizeType;
|
|
7
9
|
}
|
|
8
10
|
export declare const Label: React.FC<LabelProps>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BoxProps } from '../../../../components';
|
|
3
|
-
import type {
|
|
3
|
+
import type { FlexBoxSystemProps } from '../../../../types';
|
|
4
4
|
export declare type FlexProps<C extends React.ElementType = 'div'> = {
|
|
5
|
-
inline?: boolean | TypeWithMediaQueriesType<boolean>;
|
|
6
|
-
direction?: FlexDirectionType | TypeWithMediaQueriesType<FlexDirectionType>;
|
|
7
|
-
wrap?: FlexWrapType | TypeWithMediaQueriesType<FlexWrapType>;
|
|
8
5
|
children?: React.ReactNode;
|
|
9
|
-
} & BoxProps<C> &
|
|
10
|
-
export declare const Flex: <C extends React.ElementType<any> = "div">({
|
|
6
|
+
} & BoxProps<C> & FlexBoxSystemProps;
|
|
7
|
+
export declare const Flex: <C extends React.ElementType<any> = "div">({ as, children, ...props }: FlexProps<C>) => React.ReactElement<any, any> | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BoxProps } from '../../../../../components';
|
|
3
|
-
import type {
|
|
3
|
+
import type { FlexBoxItemSystemProps } from '../../../../../types';
|
|
4
4
|
export declare type FlexItemProps<C extends React.ElementType = 'div'> = {
|
|
5
|
-
basis?: FlexBasisType | TypeWithMediaQueriesType<FlexBasisType>;
|
|
6
5
|
children?: React.ReactNode;
|
|
7
|
-
} & BoxProps<C> &
|
|
8
|
-
export declare const FlexItem: <C extends React.ElementType<any> = "div">({
|
|
6
|
+
} & BoxProps<C> & FlexBoxItemSystemProps;
|
|
7
|
+
export declare const FlexItem: <C extends React.ElementType<any> = "div">({ children, as, ...props }: FlexItemProps<C>) => React.ReactElement<any, any> | null;
|
|
@@ -3,8 +3,8 @@ export interface ReadAlsoProps {
|
|
|
3
3
|
title: string;
|
|
4
4
|
link: string;
|
|
5
5
|
label: string;
|
|
6
|
-
isNofollow
|
|
7
|
-
isSponsored
|
|
8
|
-
isTargetBlank
|
|
6
|
+
isNofollow?: boolean;
|
|
7
|
+
isSponsored?: boolean;
|
|
8
|
+
isTargetBlank?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const ReadAlso: React.FC<ReadAlsoProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ColorType } from '../../../types';
|
|
3
3
|
export interface ScrollProgressBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
|
|
4
|
+
color?: ColorType;
|
|
5
5
|
hasLimit?: boolean;
|
|
6
6
|
variant?: 'article-mobile';
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RawDraftContentState } from 'draft-js';
|
|
3
|
-
import {
|
|
4
|
-
export interface ArticleSummaryProps {
|
|
3
|
+
import { BoxProps } from '../../../../components';
|
|
4
|
+
export interface ArticleSummaryProps extends BoxProps {
|
|
5
|
+
title: string;
|
|
5
6
|
summary: RawDraftContentState;
|
|
6
|
-
colorScheme?: ColorSchemeTheme;
|
|
7
7
|
}
|
|
8
8
|
export declare const ArticleSummary: React.FC<ArticleSummaryProps>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ColorType } from '../../../../types';
|
|
2
|
+
import { ColorType, TextSizeType } from '../../../../types';
|
|
3
3
|
import { FlexProps } from '../../../../components';
|
|
4
4
|
export interface CardHeaderProps extends FlexProps {
|
|
5
5
|
headline: string;
|
|
6
6
|
color?: ColorType;
|
|
7
7
|
subheader?: string;
|
|
8
|
+
size?: TextSizeType;
|
|
8
9
|
}
|
|
9
10
|
export declare const CardHeader: React.FC<CardHeaderProps>;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CardHeaderProps, FlexProps, SocialBarProps } from '../../../../components';
|
|
3
|
-
import { LayoutType } from '../../../../types';
|
|
4
3
|
export interface CardMediumProps extends FlexProps {
|
|
5
4
|
link: string;
|
|
6
5
|
cardHeaderProps: CardHeaderProps;
|
|
7
6
|
title: string;
|
|
8
7
|
cover: string;
|
|
9
8
|
socialBarProps?: SocialBarProps;
|
|
10
|
-
layout?: LayoutType;
|
|
11
9
|
}
|
|
12
10
|
export declare const CardMedium: React.FC<CardMediumProps>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
listClass?: string;
|
|
2
|
+
import { BoxProps } from '../../../components';
|
|
3
|
+
export interface CollapseProps extends BoxProps {
|
|
5
4
|
title: string;
|
|
6
5
|
iconClass?: string;
|
|
7
6
|
btnClass?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { BoxProps } from '../../../components';
|
|
3
|
+
export interface ErrorContentProps extends BoxProps {
|
|
3
4
|
statusCode: '404' | '500';
|
|
4
5
|
}
|
|
5
6
|
export declare const ErrorContent: React.FC<ErrorContentProps>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CardMediumProps } from '../../../components';
|
|
3
|
-
import { LayoutType } from '../../../types';
|
|
4
3
|
export interface LiveCardsProps {
|
|
5
4
|
articles: CardMediumProps[];
|
|
6
|
-
layout?: LayoutType;
|
|
7
5
|
}
|
|
8
6
|
export declare const LiveCards: React.FC<LiveCardsProps>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export interface SocialBarProps extends
|
|
1
|
+
import { FlexProps } from '../../../components';
|
|
2
|
+
import { LayoutType } from '../../../types';
|
|
3
|
+
export interface SocialBarProps extends FlexProps {
|
|
4
4
|
layout?: LayoutType;
|
|
5
5
|
variant?: 'advanced' | 'simple';
|
|
6
6
|
commentCount: number;
|
|
7
7
|
shareCount: number;
|
|
8
|
-
colorScheme?: ColorSchemeTheme;
|
|
9
8
|
}
|
|
10
|
-
export declare function SocialBar({ variant, commentCount, shareCount,
|
|
9
|
+
export declare function SocialBar({ variant, commentCount, shareCount, layout, bg, ...boxProps }: SocialBarProps): JSX.Element;
|
|
@@ -5,3 +5,5 @@ export declare const alignContentList: readonly ["start", "end", "center", "betw
|
|
|
5
5
|
export declare const justifyContentList: readonly ["start", "end", "center", "between", "around", "evenly", "stretch"];
|
|
6
6
|
export declare const alignSelfList: readonly ["auto", "start", "end", "center", "stretch", "baseline"];
|
|
7
7
|
export declare const flexBasisList: readonly ["auto", 0, 25, 33, 50, 75, 100];
|
|
8
|
+
export declare const flexShrinkList: readonly [0, 1];
|
|
9
|
+
export declare const flexGrowList: readonly [0, 1];
|
|
@@ -3,5 +3,5 @@ export declare const textAlignList: readonly ["left", "center", "right", "justif
|
|
|
3
3
|
export declare const textTransformList: readonly ["capitalize", "uppercase", "lowercase"];
|
|
4
4
|
export declare const fontFamilyTokenNameList: readonly ("oswald" | "source-serif-pro")[];
|
|
5
5
|
export declare const fontWeightTokenNameList: readonly ("regular" | "bold")[];
|
|
6
|
-
export declare const headingSizeTokenNameList: readonly ("xs" | "xxs-2" | "xxs" | "s" | "m" | "l" | "
|
|
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")[];
|
|
@@ -256,19 +256,19 @@ export declare const tokenVariables: {
|
|
|
256
256
|
value: string;
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
|
-
|
|
259
|
+
xl: {
|
|
260
260
|
description: string;
|
|
261
261
|
fontSize: {
|
|
262
262
|
value: string;
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
|
-
|
|
265
|
+
xxl: {
|
|
266
266
|
description: string;
|
|
267
267
|
fontSize: {
|
|
268
268
|
value: string;
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
|
-
'xxl-
|
|
271
|
+
'xxl-2': {
|
|
272
272
|
description: string;
|
|
273
273
|
fontSize: {
|
|
274
274
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypeWithModifierType } from '../../types';
|
|
2
2
|
export declare const classNamesWithModifiers: <TModifierType extends string, TPropValue extends string | number | boolean>(options: {
|
|
3
|
-
className
|
|
3
|
+
className?: string | undefined;
|
|
4
4
|
defaultModifier?: string | undefined;
|
|
5
5
|
propValue?: TPropValue | Partial<Record<TModifierType, TPropValue>> | undefined;
|
|
6
6
|
}) => string[];
|