@20minutes/hela 0.1.44 → 0.1.46

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.
@@ -1,13 +1,11 @@
1
1
  import * as React from 'react';
2
- import { IconName } from '../../../components';
2
+ import { IconProps } from '../../../components';
3
3
  export interface AlertProps {
4
4
  variant?: 'success' | 'warning' | 'error';
5
5
  title: string;
6
6
  description?: string;
7
7
  fill?: boolean;
8
8
  className?: string;
9
- icon?: IconName;
10
- iconSize?: number | number[];
11
- iconClassNames?: string;
9
+ iconProps?: IconProps;
12
10
  }
13
11
  export declare const Alert: React.FC<AlertProps>;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  import type { TypographySystemProps } from '../../../types';
4
4
  export declare type TypographyProps<C extends React.ElementType = 'p'> = BoxProps<C> & TypographySystemProps;
5
- export declare const Typography: <C extends React.ElementType<any>>({ as, children, ...boxProps }: TypographyProps<C>) => React.ReactElement<any, any> | null;
5
+ export declare const Typography: <C extends React.ElementType<any> = "p">({ as, children, ...boxProps }: TypographyProps<C>) => React.ReactElement<any, any> | null;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { LayoutType } from '../../../../types';
3
3
  export interface ArticleCoverProps {
4
- type: string;
4
+ type?: 'photo' | 'video';
5
5
  src: string;
6
6
  caption: string;
7
7
  isCaptionInside?: boolean;
@@ -1,8 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { RawDraftContentState } from 'draft-js';
3
3
  import { BoxProps } from '../../../../components';
4
+ import { RubricColorType } from '../../../../types';
4
5
  export interface ArticleSummaryProps extends BoxProps {
5
6
  title: string;
6
7
  summary: RawDraftContentState;
8
+ rubricColor?: RubricColorType;
7
9
  }
8
10
  export declare const ArticleSummary: React.FC<ArticleSummaryProps>;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export interface ArticleVideoProps {
3
3
  html: string;
4
+ caption?: string;
4
5
  }
5
6
  export declare const ArticleVideo: React.FC<ArticleVideoProps>;
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react';
2
- import { BoxProps } from '../../../components';
2
+ import { BoxProps, IconProps } from '../../../components';
3
3
  export interface CollapseProps extends BoxProps {
4
4
  title: string;
5
- iconClass?: string;
6
- btnClass?: string;
7
- isOpen?: boolean;
8
5
  index: number;
6
+ isOpen?: boolean;
7
+ iconProps?: Partial<IconProps>;
8
+ btnProps?: Partial<BoxProps>;
9
+ children?: React.ReactNode;
9
10
  }
10
11
  export declare const Collapse: React.FC<CollapseProps>;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { BoxProps } from '../../../components';
3
+ export interface CommentProps extends BoxProps {
4
+ enableComment: boolean;
5
+ lazyload?: {
6
+ delayed: boolean;
7
+ distanceVisible?: number;
8
+ };
9
+ }
10
+ export declare const Comment: React.FC<CommentProps>;
@@ -0,0 +1 @@
1
+ export * from './Comment';
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { ColorType } from '../../../types';
3
+ import { CardHeaderProps } from '../Card/CardHeader';
4
+ export interface SubMenuProps {
5
+ className?: string;
6
+ color?: ColorType;
7
+ name: string;
8
+ link: string;
9
+ subCategory: {
10
+ subLinks: {
11
+ name: string;
12
+ href: string;
13
+ }[];
14
+ tags: {
15
+ name: string;
16
+ href: string;
17
+ }[];
18
+ cards: {
19
+ cover: string;
20
+ cardHeaderProps: CardHeaderProps;
21
+ href: string;
22
+ title: string;
23
+ }[];
24
+ };
25
+ }
26
+ export declare const SubMenu: React.FC<SubMenuProps>;
@@ -0,0 +1 @@
1
+ export * from './SubMenu';
@@ -3,6 +3,7 @@ export * from './Breadcrumb';
3
3
  export * from './Card';
4
4
  export * from './CategoryCards';
5
5
  export * from './Collapse';
6
+ export * from './Comment';
6
7
  export * from './ErrorContent';
7
8
  export * from './FooterCategories';
8
9
  export * from './FooterLinks';
@@ -21,6 +22,7 @@ export * from './Signature';
21
22
  export * from './SmartBanner';
22
23
  export * from './SocialBar';
23
24
  export * from './SocialIcons';
25
+ export * from './SubMenu';
24
26
  export * from './Tabs';
25
27
  export * from './TagBar';
26
28
  export * from './Tiles';
@@ -1,13 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { ColorType } from '../../../types';
3
+ import { SubMenuProps } from '../../../components';
3
4
  export interface HeaderDesktopProps {
5
+ logoHref: string;
6
+ searchFormUrl: string;
4
7
  headerLinks: {
5
8
  name: string;
6
- url: string;
7
- theme?: string;
9
+ href: string;
10
+ color?: ColorType;
11
+ subCategory?: SubMenuProps['subCategory'];
8
12
  }[];
9
13
  dividerColor?: ColorType;
10
- logoLink: string;
11
- searchFormUrl: string;
12
14
  }
13
15
  export declare const HeaderDesktop: React.FC<HeaderDesktopProps>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface HeaderMobileProps {
3
- logoLink: string;
3
+ logoHref: string;
4
4
  }
5
5
  export declare const HeaderMobile: React.FC<HeaderMobileProps>;