@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.
Files changed (33) hide show
  1. package/dist/components/atoms/InlineSeparator/InlineSeparator.d.ts +2 -2
  2. package/dist/components/atoms/Label/Label.d.ts +2 -0
  3. package/dist/components/atoms/Layout/Flex/Flex.d.ts +3 -6
  4. package/dist/components/atoms/Layout/Flex/FlexItem/FlexItem.d.ts +3 -4
  5. package/dist/components/atoms/ReadAlso/ReadAlso.d.ts +3 -3
  6. package/dist/components/atoms/ScrollProgressBar/ScrollProgressBar.d.ts +2 -2
  7. package/dist/components/molecules/Article/ArticleSummary/ArticleSummary.d.ts +3 -3
  8. package/dist/components/molecules/Card/CardHeader/CardHeader.d.ts +2 -1
  9. package/dist/components/molecules/Card/CardMedium/CardMedium.d.ts +0 -2
  10. package/dist/components/molecules/Collapse/Collapse.d.ts +2 -3
  11. package/dist/components/molecules/ErrorContent/ErrorContent.d.ts +2 -1
  12. package/dist/components/molecules/Horoscope/HoroscopeTopicCard/HoroscopeTopicCard.d.ts +0 -2
  13. package/dist/components/molecules/LiveCards/LiveCards.d.ts +0 -2
  14. package/dist/components/molecules/SocialBar/SocialBar.d.ts +4 -5
  15. package/dist/constants/cssProperties/flexboxAndGridBox.d.ts +2 -0
  16. package/dist/constants/cssProperties/typography.d.ts +1 -1
  17. package/dist/constants/tokenVariables.d.ts +3 -3
  18. package/dist/helpers/systemPropsHelper/classNameWithModifier.d.ts +1 -1
  19. package/dist/helpers/systemPropsHelper/classNamesWithModifiers.d.ts +1 -1
  20. package/dist/helpers/systemPropsHelper/flexBoxItemSystemClassName.d.ts +2 -0
  21. package/dist/helpers/systemPropsHelper/flexBoxSystemClassName.d.ts +2 -0
  22. package/dist/helpers/systemPropsHelper/index.d.ts +2 -0
  23. package/dist/index.es.js +9143 -9042
  24. package/dist/index.umd.js +54 -54
  25. package/dist/scss/abstracts/variables/_token-variables.scss +4 -4
  26. package/dist/style.css +1 -1
  27. package/dist/types/CssProperties/flexboxAndGridBox.d.ts +7 -5
  28. package/dist/types/SystemProps/FlexBoxItemSystemProps.d.ts +6 -0
  29. package/dist/types/SystemProps/FlexBoxSystemProps.d.ts +6 -0
  30. package/dist/types/SystemProps/index.d.ts +2 -0
  31. package/dist/types/index.d.ts +5 -5
  32. package/dist/types/{TokenTypes.d.ts → tokenTypes.d.ts} +1 -1
  33. package/package.json +10 -10
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- import { BoxProps } from '../Layout';
3
- export declare const InlineSeparator: React.FC<BoxProps>;
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 { FlexDirectionType, FlexOrGridBoxSystemProps, FlexWrapType, TypeWithMediaQueriesType } from '../../../../types';
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> & FlexOrGridBoxSystemProps;
10
- export declare const Flex: <C extends React.ElementType<any> = "div">({ inline, direction, wrap, as, children, ...boxProps }: FlexProps<C>) => React.ReactElement<any, any> | null;
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 { FlexBasisType, FlexOrGridBoxItemSystemProps, TypeWithMediaQueriesType } from '../../../../../types';
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> & FlexOrGridBoxItemSystemProps;
8
- export declare const FlexItem: <C extends React.ElementType<any> = "div">({ basis, children, as, ...boxProps }: FlexItemProps<C>) => React.ReactElement<any, any> | null;
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: boolean;
7
- isSponsored: boolean;
8
- isTargetBlank: boolean;
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 { ColorSchemeTheme } from '../../../types';
2
+ import { ColorType } from '../../../types';
3
3
  export interface ScrollProgressBarProps extends React.HTMLAttributes<HTMLDivElement> {
4
- colorScheme?: ColorSchemeTheme;
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 { ColorSchemeTheme } from '../../../../types';
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
- export interface CollapseProps extends React.HTMLAttributes<HTMLDivElement> {
3
- headingClass?: string;
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
- export interface ErrorContentProps {
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>;
@@ -4,7 +4,5 @@ export interface HoroscopeTopicCardProps {
4
4
  icon: IconName;
5
5
  title: string;
6
6
  content: string;
7
- withBorder?: boolean;
8
- classnames?: string;
9
7
  }
10
8
  export declare const HoroscopeTopicCard: React.FC<HoroscopeTopicCardProps>;
@@ -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 { BoxProps } from '../../../components';
2
- import { ColorSchemeTheme, LayoutType } from '../../../types';
3
- export interface SocialBarProps extends BoxProps {
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, colorScheme, layout, ...boxProps }: SocialBarProps): JSX.Element;
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" | "xxl" | "xxl-2" | "xxl-3")[];
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
- xxl: {
259
+ xl: {
260
260
  description: string;
261
261
  fontSize: {
262
262
  value: string;
263
263
  };
264
264
  };
265
- 'xxl-2': {
265
+ xxl: {
266
266
  description: string;
267
267
  fontSize: {
268
268
  value: string;
269
269
  };
270
270
  };
271
- 'xxl-3': {
271
+ 'xxl-2': {
272
272
  description: string;
273
273
  fontSize: {
274
274
  value: string;
@@ -1,5 +1,5 @@
1
1
  export declare const classNameWithModifier: <TPropValue extends string | number | boolean>(options: {
2
- className: string;
2
+ className?: string | undefined;
3
3
  defaultModifier: string;
4
4
  propValue?: TPropValue | undefined;
5
5
  }) => string | undefined;
@@ -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: string;
3
+ className?: string | undefined;
4
4
  defaultModifier?: string | undefined;
5
5
  propValue?: TPropValue | Partial<Record<TModifierType, TPropValue>> | undefined;
6
6
  }) => string[];
@@ -0,0 +1,2 @@
1
+ import { FlexBoxItemSystemProps } from '../../types';
2
+ export declare const flexBoxItemSystemClassName: <TProps extends FlexBoxItemSystemProps>({ basis, shrink, grow, ...props }: TProps) => string;
@@ -0,0 +1,2 @@
1
+ import type { FlexBoxSystemProps } from '../../types';
2
+ export declare const flexBoxSystemClassName: <TProps extends FlexBoxSystemProps>({ inline, direction, wrap, ...props }: TProps) => string;
@@ -7,3 +7,5 @@ export * from './typographySystemClassName';
7
7
  export * from './systemClassName';
8
8
  export * from './flexOrGridBoxItemClassName';
9
9
  export * from './flexOrGridBoxClassName';
10
+ export * from './flexBoxSystemClassName';
11
+ export * from './flexBoxItemSystemClassName';