@20minutes/hela 2.3.4 → 2.3.6

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.
@@ -11,6 +11,14 @@ declare const meta: {
11
11
  onClick: import('@storybook/addon-actions').HandlerFunction;
12
12
  };
13
13
  argTypes: {
14
+ variant: {
15
+ options: readonly ["primary", "secondary", "tertiary", "has-dark-bg", "has-white-bg", "ghost", "round", "round-has-white-bg", "close", "link", "half-opacity-dark-bg", "has-transparent-bg"];
16
+ control: "select";
17
+ };
18
+ size: {
19
+ options: string[];
20
+ control: "select";
21
+ };
14
22
  m?: import('@storybook/csf').InputType | undefined;
15
23
  mt?: import('@storybook/csf').InputType | undefined;
16
24
  mr?: import('@storybook/csf').InputType | undefined;
@@ -34,6 +42,7 @@ export declare const PrimaryIsLoading: Story;
34
42
  export declare const Secondary: Story;
35
43
  export declare const Tertiary: Story;
36
44
  export declare const Square: Story;
45
+ export declare const Small: Story;
37
46
  export declare const HasDarkBackground: Story;
38
47
  export declare const HasHalfOpacityDarkBackground: Story;
39
48
  export declare const PrimaryWithIcon: Story;
@@ -1,6 +1,6 @@
1
1
  import { ButtonProps, TabProps } from '../..';
2
2
  import { As, ColorSystemProps, SizeSystemProps, SpacingSystemProps, TypographySystemProps } from '../../../types';
3
- export type LinkProps<T extends As = 'a'> = SpacingSystemProps & Pick<TypographySystemProps, 'weight' | 'whiteSpace'> & SizeSystemProps & Pick<ColorSystemProps, 'color'> & ButtonProps<T> & {
3
+ export type LinkProps<T extends As = 'a'> = SpacingSystemProps & Pick<TypographySystemProps, 'weight' | 'whiteSpace'> & SizeSystemProps & Pick<ColorSystemProps, 'color'> & Omit<ButtonProps<T>, 'size'> & {
4
4
  tabColor?: TabProps['tabColor'];
5
5
  tabIsSelected?: boolean;
6
6
  tabVariant?: TabProps['variant'];
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { FlexProps } from '../../..';
3
- export interface CardFooterProps extends FlexProps {
4
- text: string;
5
- secondaryText?: string;
3
+ import { CardFooterType } from '../../../../types';
4
+ export interface CardFooterProps extends CardFooterType, FlexProps {
6
5
  }
7
6
  export declare const CardFooter: React.FC<CardFooterProps>;
@@ -1,10 +1,6 @@
1
1
  import { default as React } from 'react';
2
- import { SystemProps, TextSizeType, TextType } from '../../../../types';
3
- export interface CardHeaderProps extends SystemProps {
4
- headline: TextType;
5
- liveTime?: string;
6
- rightSubheader?: TextType;
7
- size?: TextSizeType;
2
+ import { CardHeaderType, SystemProps } from '../../../../types';
3
+ export interface CardHeaderProps extends CardHeaderType, SystemProps {
8
4
  location?: string;
9
5
  hasDot?: boolean;
10
6
  }
@@ -1,19 +1,7 @@
1
1
  import { default as React } from 'react';
2
- import { BoxProps, IconProps } from '../../..';
3
- export interface CardImageProps extends BoxProps {
4
- cover: string;
5
- id?: string;
6
- defaultFormat?: string;
7
- formats?: string[];
8
- sizes?: string;
9
- alt?: string;
10
- caption?: {
11
- iconName: IconProps['name'];
12
- size?: 'small' | 'medium' | 'big';
13
- text?: string;
14
- };
15
- lazyLoad?: boolean;
16
- fetchPriority?: 'auto' | 'high' | 'low';
2
+ import { BoxProps } from '../../..';
3
+ import { CardImageType } from '../../../../types';
4
+ export interface CardImageProps extends CardImageType, BoxProps {
17
5
  withShadow?: boolean;
18
6
  isFavorite?: boolean;
19
7
  enableHD?: boolean;
@@ -1,11 +1,38 @@
1
- import { CardFooterProps, CardHeaderProps, CardImageProps, CardTitleProps, SignatureProps, SocialBarProps, TextProps } from '../components';
1
+ import { CardFooterProps, CardHeaderProps, CardTitleProps, IconProps, SignatureProps, SocialBarProps, TextProps } from '../components';
2
+ import { TextSizeType, TextType } from '.';
3
+ export interface CardHeaderType {
4
+ headline: TextType;
5
+ liveTime?: string;
6
+ rightSubheader?: TextType;
7
+ size?: TextSizeType;
8
+ }
9
+ export interface CaptionType {
10
+ iconName: IconProps['name'];
11
+ size?: 'small' | 'medium' | 'big';
12
+ text?: string;
13
+ }
14
+ export interface CardImageType {
15
+ id?: string;
16
+ cover: string;
17
+ defaultFormat?: string;
18
+ formats?: string[];
19
+ sizes?: string;
20
+ alt?: string;
21
+ caption?: CaptionType;
22
+ lazyLoad?: boolean;
23
+ fetchPriority?: 'auto' | 'high' | 'low';
24
+ }
25
+ export interface CardFooterType {
26
+ text: string;
27
+ secondaryText?: string;
28
+ }
2
29
  export interface CardType {
3
30
  link: string;
4
31
  title: string;
5
32
  summaryProps?: TextProps;
6
33
  cardHeaderProps?: CardHeaderProps;
7
34
  cardTitleProps?: CardTitleProps;
8
- cardImageProps?: CardImageProps;
35
+ cardImageProps?: CardImageType;
9
36
  cardFooterProps?: CardFooterProps;
10
37
  signatureProps?: SignatureProps;
11
38
  socialBarProps?: SocialBarProps;