@20minutes/hela 0.1.88 → 0.1.89
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/molecules/Article/ArticleHeader/ArticleHeader.d.ts +3 -3
- package/dist/components/molecules/ReadAlsoBanner/ReadAlsoBanner.d.ts +1 -0
- package/dist/components/molecules/ShareBar/ShareBar.d.ts +1 -1
- package/dist/components/molecules/Signature/Signature.d.ts +1 -0
- package/dist/components/molecules/SocialBar/SocialBar.d.ts +5 -8
- package/dist/components/molecules/SocialBar/SocialItem/SocialBarItem.d.ts +13 -0
- package/dist/components/molecules/SocialBar/SocialItem/index.d.ts +1 -0
- package/dist/index.es.js +1349 -1340
- package/dist/index.umd.js +2 -2
- package/dist/js/scripts.es.js +18 -15
- package/dist/js/scripts.umd.js +1 -1
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/scss/abstracts/variables/_variables.scss +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -8
|
@@ -3,10 +3,10 @@ import type { ColorType } from '../../../../types';
|
|
|
3
3
|
import { LayoutType } from '../../../../types';
|
|
4
4
|
export interface ArticleHeaderProps {
|
|
5
5
|
title: string;
|
|
6
|
-
lead: string;
|
|
7
6
|
label: string;
|
|
8
|
-
color?: ColorType;
|
|
9
|
-
rightImageUrl?: string;
|
|
10
7
|
layout: LayoutType;
|
|
8
|
+
lead?: string;
|
|
9
|
+
color?: ColorType;
|
|
10
|
+
logoUrl?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare const ArticleHeader: React.FC<ArticleHeaderProps>;
|
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import type { SpacingSystemProps } from '../../../types';
|
|
3
3
|
export type SharingNetwork = 'blogger' | 'delicious' | 'digg' | 'email' | 'facebook' | 'flipboard' | 'google' | 'linkedin' | 'livejournal' | 'mailru' | 'meneame' | 'messenger' | 'oknoklassniki' | 'pinterest' | 'print' | 'reddit' | 'sharethis' | 'sms' | 'stumbleupon' | 'tumblr' | 'twitter' | 'vk' | 'wechat' | 'weibo' | 'whatsapp' | 'xing';
|
|
4
4
|
export interface ShareBarProps extends SpacingSystemProps {
|
|
5
|
-
networks
|
|
5
|
+
networks?: SharingNetwork[];
|
|
6
6
|
}
|
|
7
7
|
export declare const ShareBar: React.FC<ShareBarProps>;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
3
|
-
import type {
|
|
4
|
-
import { LayoutType } from '../../../types';
|
|
2
|
+
import { type SharingNetwork } from '../../../components';
|
|
3
|
+
import type { SpacingSystemProps } from '../../../types';
|
|
5
4
|
export interface SocialBarProps extends SpacingSystemProps {
|
|
6
5
|
commentCount: number;
|
|
7
|
-
commentAnchor?: string;
|
|
8
6
|
shareCount: number;
|
|
7
|
+
variant?: 'horizontal' | 'vertical' | 'card';
|
|
9
8
|
networks?: SharingNetwork[];
|
|
10
|
-
layout?: LayoutType;
|
|
11
|
-
variant?: 'advanced' | 'simple';
|
|
12
|
-
rubricColor?: RubricColorType;
|
|
13
|
-
reportAction?: () => void;
|
|
14
9
|
saveContentId?: string;
|
|
10
|
+
onReport?: () => void;
|
|
11
|
+
commentAnchor?: string;
|
|
15
12
|
}
|
|
16
13
|
export declare const SocialBar: React.FC<SocialBarProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FlexProps, IconName, SharingNetwork } from '../../../../components';
|
|
3
|
+
import type { RubricColorType } from '../../../../types';
|
|
4
|
+
export interface SocialBarItemProps extends FlexProps {
|
|
5
|
+
iconName: IconName;
|
|
6
|
+
variant: 'primary' | 'secondary';
|
|
7
|
+
count?: number;
|
|
8
|
+
rubricColor?: RubricColorType;
|
|
9
|
+
sharingNetworks?: SharingNetwork[];
|
|
10
|
+
anchor?: string;
|
|
11
|
+
dataId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SocialBarItem: React.FC<SocialBarItemProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SocialBarItem';
|