@twreporter/react-components 9.5.0-rc.0 → 9.5.0-rc.2
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/lib/footer/constants/links.js +1 -1
- package/package.json +5 -6
- package/lib/badge/badge.stories.d.ts +0 -13
- package/lib/badge/index.d.ts +0 -14
- package/lib/bookmark-list/bookmark.d.ts +0 -9
- package/lib/bookmark-list/bookmarks.d.ts +0 -15
- package/lib/bookmark-list/customized-link.d.ts +0 -19
- package/lib/bookmark-list/image-wrapper.d.ts +0 -27
- package/lib/bookmark-list/index.d.ts +0 -26
- package/lib/bookmark-list/redirect-to-sign-in.d.ts +0 -9
- package/lib/bookmark-list/stories/bookmark.stories.d.ts +0 -9
- package/lib/bookmark-widget/index.d.ts +0 -13
- package/lib/button/components/iconButton.d.ts +0 -22
- package/lib/button/components/iconWithTextButton.d.ts +0 -21
- package/lib/button/components/link.d.ts +0 -45
- package/lib/button/components/menuButton.d.ts +0 -29
- package/lib/button/components/pillButton.d.ts +0 -34
- package/lib/button/components/textButton.d.ts +0 -32
- package/lib/button/components/toggleButton.d.ts +0 -18
- package/lib/button/enums/index.d.ts +0 -13
- package/lib/button/index.d.ts +0 -20
- package/lib/button/stories/iconButton.stories.d.ts +0 -42
- package/lib/button/stories/iconWithTextButton.stories.d.ts +0 -37
- package/lib/button/stories/link.stories.d.ts +0 -139
- package/lib/button/stories/menuButton.stories.d.ts +0 -26
- package/lib/button/stories/pillButton.stories.d.ts +0 -92
- package/lib/button/stories/textButton.stories.d.ts +0 -85
- package/lib/button/stories/toggleButton.stories.d.ts +0 -22
- package/lib/button/utils/size.d.ts +0 -8
- package/lib/button/utils/theme.d.ts +0 -218
- package/lib/card/components/article-card.d.ts +0 -34
- package/lib/card/components/dialog.d.ts +0 -14
- package/lib/card/components/short-story.d.ts +0 -26
- package/lib/card/index.d.ts +0 -10
- package/lib/card/stories/articleCard.stories.d.ts +0 -30
- package/lib/card/stories/dialog.stories.d.ts +0 -23
- package/lib/card/stories/shortStory.stories.d.ts +0 -37
- package/lib/checkbox/checkbox.stories.d.ts +0 -21
- package/lib/checkbox/index.d.ts +0 -16
- package/lib/color.stories.d.ts +0 -63
- package/lib/confirmation/index.d.ts +0 -25
- package/lib/customized-link.d.ts +0 -12
- package/lib/divider.d.ts +0 -15
- package/lib/divider.stories.d.ts +0 -33
- package/lib/donation-link.d.ts +0 -10
- package/lib/empty-state/enums/index.d.ts +0 -5
- package/lib/empty-state/index.d.ts +0 -30
- package/lib/empty-state/stories/empty-guide.stories.d.ts +0 -29
- package/lib/error/index.d.ts +0 -8
- package/lib/error/message.d.ts +0 -9
- package/lib/footer/constants/links.d.ts +0 -19
- package/lib/footer/footer.stories.d.ts +0 -15
- package/lib/footer/index.d.ts +0 -9
- package/lib/footer/link.d.ts +0 -18
- package/lib/footer/logo.d.ts +0 -9
- package/lib/hook/index.d.ts +0 -10
- package/lib/hook/use-bookmark.d.ts +0 -15
- package/lib/hook/use-font-face-observer.d.ts +0 -2
- package/lib/hook/use-outside-click.d.ts +0 -2
- package/lib/icon/enum/index.d.ts +0 -25
- package/lib/icon/index.d.ts +0 -227
- package/lib/icon/stories/arrow.stories.d.ts +0 -72
- package/lib/icon/stories/article.stories.d.ts +0 -11
- package/lib/icon/stories/bookmark.stories.d.ts +0 -57
- package/lib/icon/stories/changeIconColor.stories.d.ts +0 -23
- package/lib/icon/stories/clock.stories.d.ts +0 -11
- package/lib/icon/stories/copy.stories.d.ts +0 -11
- package/lib/icon/stories/cross.stories.d.ts +0 -11
- package/lib/icon/stories/filter.stories.d.ts +0 -11
- package/lib/icon/stories/hamburger.stories.d.ts +0 -11
- package/lib/icon/stories/home.stories.d.ts +0 -11
- package/lib/icon/stories/letter.stories.d.ts +0 -11
- package/lib/icon/stories/loading.stories.d.ts +0 -11
- package/lib/icon/stories/member.stories.d.ts +0 -11
- package/lib/icon/stories/printer.stories.d.ts +0 -11
- package/lib/icon/stories/search.stories.d.ts +0 -11
- package/lib/icon/stories/share.stories.d.ts +0 -11
- package/lib/icon/stories/socialMedia.stories.d.ts +0 -25
- package/lib/icon/stories/text.stories.d.ts +0 -11
- package/lib/icon/stories/topic.stories.d.ts +0 -11
- package/lib/image-with-fallback.d.ts +0 -16
- package/lib/input/components/search-bar.d.ts +0 -29
- package/lib/input/components/text-field.d.ts +0 -26
- package/lib/input/enums/index.d.ts +0 -13
- package/lib/input/index.d.ts +0 -8
- package/lib/input/stories/search-bar.stories.d.ts +0 -33
- package/lib/input/stories/text-field.stories.d.ts +0 -37
- package/lib/input/utils/theme.d.ts +0 -17
- package/lib/is-fetching-wrapper.d.ts +0 -14
- package/lib/junior-link.d.ts +0 -7
- package/lib/link-with-tracker.d.ts +0 -29
- package/lib/listing-page/components/card-list.d.ts +0 -20
- package/lib/listing-page/components/image.d.ts +0 -29
- package/lib/listing-page/components/list-item.d.ts +0 -27
- package/lib/listing-page/components/list.d.ts +0 -31
- package/lib/listing-page/components/page-content.d.ts +0 -2
- package/lib/listing-page/components/topics/index.d.ts +0 -25
- package/lib/listing-page/components/topics/post-item.d.ts +0 -19
- package/lib/listing-page/components/topics/posts.d.ts +0 -2
- package/lib/listing-page/components/topics/section.d.ts +0 -20
- package/lib/listing-page/components/topics/topic-item.d.ts +0 -22
- package/lib/listing-page/constants/mockup-spec.d.ts +0 -46
- package/lib/listing-page/constants/predefined-css.d.ts +0 -2
- package/lib/listing-page/constants/prop-types.d.ts +0 -1
- package/lib/listing-page/constants/topics.d.ts +0 -6
- package/lib/listing-page/index.d.ts +0 -10
- package/lib/listing-page/stories/cardList.stories.d.ts +0 -72
- package/lib/logo/components/logo-footer.d.ts +0 -17
- package/lib/logo/components/logo-header.d.ts +0 -18
- package/lib/logo/components/logo-loading-fallback.d.ts +0 -10
- package/lib/logo/components/logo-symbol.d.ts +0 -19
- package/lib/logo/index.d.ts +0 -12
- package/lib/logo/stories/logoFooter.stories.d.ts +0 -11
- package/lib/logo/stories/logoHeader.stories.d.ts +0 -15
- package/lib/logo/stories/logoLoadingFallback.stories.d.ts +0 -11
- package/lib/logo/stories/logoSymbol.stories.d.ts +0 -15
- package/lib/logo/utils/path.d.ts +0 -5
- package/lib/material-icon.d.ts +0 -17
- package/lib/mobile-member-role-card/index.d.ts +0 -26
- package/lib/mobile-member-role-card/stories/member-role-card.stories.d.ts +0 -34
- package/lib/mobile-pop-up-modal.d.ts +0 -28
- package/lib/more.d.ts +0 -10
- package/lib/pagination/index.d.ts +0 -36
- package/lib/podcast-link.d.ts +0 -7
- package/lib/rwd.d.ts +0 -5
- package/lib/shared-enum.d.ts +0 -4
- package/lib/side-bar/index.d.ts +0 -81
- package/lib/simple-header/index.d.ts +0 -2
- package/lib/simple-header/simpleHeader.stories.d.ts +0 -9
- package/lib/snack-bar/components/snack-bar.d.ts +0 -13
- package/lib/snack-bar/hooks/use-snack-bar.d.ts +0 -9
- package/lib/snack-bar/index.d.ts +0 -8
- package/lib/snack-bar/stories/snackBar.stories.d.ts +0 -28
- package/lib/snack-bar/utils/theme.d.ts +0 -11
- package/lib/storybook/constants/index.d.ts +0 -21
- package/lib/storybook/utils/get-enum-arg.d.ts +0 -7
- package/lib/table-of-contents/index.d.ts +0 -200
- package/lib/text/constants/headline-type.d.ts +0 -4
- package/lib/text/enums/index.d.ts +0 -9
- package/lib/text/headline.d.ts +0 -60
- package/lib/text/paragraph.d.ts +0 -49
- package/lib/text/stories/headline.stories.d.ts +0 -112
- package/lib/text/stories/paragraph.stories.d.ts +0 -78
- package/lib/text/utils/webfonts.d.ts +0 -10
- package/lib/title-bar/components/tab.d.ts +0 -13
- package/lib/title-bar/components/title1.d.ts +0 -11
- package/lib/title-bar/components/title2.d.ts +0 -13
- package/lib/title-bar/index.d.ts +0 -10
- package/lib/title-bar/stories/tab.stories.d.ts +0 -43
- package/lib/title-bar/stories/title1.stories.d.ts +0 -29
- package/lib/title-bar/stories/title2.stories.d.ts +0 -29
- package/lib/utils/link-with-params.d.ts +0 -6
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export default Topics;
|
|
2
|
-
declare class Topics extends Component<any, any, any> {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
constructor(props: any, context: any);
|
|
5
|
-
_buildRelatedPosts(posts: any): any;
|
|
6
|
-
_buildTopicBoxes(topics: any): any;
|
|
7
|
-
render(): JSX.Element;
|
|
8
|
-
}
|
|
9
|
-
declare namespace Topics {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
let topics: any;
|
|
12
|
-
let currentPage: any;
|
|
13
|
-
let isFetching: any;
|
|
14
|
-
let showSpinner: any;
|
|
15
|
-
}
|
|
16
|
-
namespace defaultProps {
|
|
17
|
-
let topics_1: any[];
|
|
18
|
-
export { topics_1 as topics };
|
|
19
|
-
let currentPage_1: number;
|
|
20
|
-
export { currentPage_1 as currentPage };
|
|
21
|
-
let showSpinner_1: boolean;
|
|
22
|
-
export { showSpinner_1 as showSpinner };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
import { Component } from 'react';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export default PostItem;
|
|
2
|
-
declare class PostItem extends PureComponent<any, any, any> {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
constructor(props: any, context: any);
|
|
5
|
-
render(): JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
declare namespace PostItem {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
let title: any;
|
|
10
|
-
let imgUrl: any;
|
|
11
|
-
let linkTo: any;
|
|
12
|
-
let linkTarget: any;
|
|
13
|
-
}
|
|
14
|
-
namespace defaultProps {
|
|
15
|
-
let linkTarget_1: any;
|
|
16
|
-
export { linkTarget_1 as linkTarget };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
import { PureComponent } from 'react';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export default PostsContainer;
|
|
2
|
-
declare const PostsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export function TopSectionContent(props: any): JSX.Element;
|
|
2
|
-
export namespace TopSectionContent {
|
|
3
|
-
namespace propTypes {
|
|
4
|
-
let children: any;
|
|
5
|
-
let topicUrl: any;
|
|
6
|
-
let topicName: any;
|
|
7
|
-
}
|
|
8
|
-
namespace defaultProps {
|
|
9
|
-
let topicName_1: string;
|
|
10
|
-
export { topicName_1 as topicName };
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export function ListSectionContent(props: any): JSX.Element;
|
|
14
|
-
export namespace ListSectionContent {
|
|
15
|
-
export namespace propTypes_1 {
|
|
16
|
-
let children_1: any;
|
|
17
|
-
export { children_1 as children };
|
|
18
|
-
}
|
|
19
|
-
export { propTypes_1 as propTypes };
|
|
20
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default TopicItem;
|
|
2
|
-
declare class TopicItem extends PureComponent<any, any, any> {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
constructor(props: any, context: any);
|
|
5
|
-
render(): JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
declare namespace TopicItem {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
let title: any;
|
|
10
|
-
let updatedAt: any;
|
|
11
|
-
let description: any;
|
|
12
|
-
let imgUrl: any;
|
|
13
|
-
let imgAlt: any;
|
|
14
|
-
let linkTo: any;
|
|
15
|
-
let isTop: any;
|
|
16
|
-
}
|
|
17
|
-
namespace defaultProps {
|
|
18
|
-
let isTop_1: boolean;
|
|
19
|
-
export { isTop_1 as isTop };
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
import { PureComponent } from 'react';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { marginBetweenItems };
|
|
3
|
-
export namespace mobile {
|
|
4
|
-
let maxWidth: number;
|
|
5
|
-
let cardWidth: number;
|
|
6
|
-
let tagsWidth: number;
|
|
7
|
-
let imgHeight: number;
|
|
8
|
-
}
|
|
9
|
-
export namespace desktop {
|
|
10
|
-
let maxWidth_1: number;
|
|
11
|
-
export { maxWidth_1 as maxWidth };
|
|
12
|
-
let cardWidth_1: number;
|
|
13
|
-
export { cardWidth_1 as cardWidth };
|
|
14
|
-
export let textWidth: number;
|
|
15
|
-
let tagsWidth_1: number;
|
|
16
|
-
export { tagsWidth_1 as tagsWidth };
|
|
17
|
-
let imgHeight_1: number;
|
|
18
|
-
export { imgHeight_1 as imgHeight };
|
|
19
|
-
}
|
|
20
|
-
export namespace tablet {
|
|
21
|
-
let maxWidth_2: number;
|
|
22
|
-
export { maxWidth_2 as maxWidth };
|
|
23
|
-
let cardWidth_2: number;
|
|
24
|
-
export { cardWidth_2 as cardWidth };
|
|
25
|
-
let textWidth_1: number;
|
|
26
|
-
export { textWidth_1 as textWidth };
|
|
27
|
-
let tagsWidth_2: number;
|
|
28
|
-
export { tagsWidth_2 as tagsWidth };
|
|
29
|
-
let imgHeight_2: number;
|
|
30
|
-
export { imgHeight_2 as imgHeight };
|
|
31
|
-
}
|
|
32
|
-
export namespace hd {
|
|
33
|
-
let maxWidth_3: number;
|
|
34
|
-
export { maxWidth_3 as maxWidth };
|
|
35
|
-
let cardWidth_3: number;
|
|
36
|
-
export { cardWidth_3 as cardWidth };
|
|
37
|
-
let textWidth_2: number;
|
|
38
|
-
export { textWidth_2 as textWidth };
|
|
39
|
-
let tagsWidth_3: number;
|
|
40
|
-
export { tagsWidth_3 as tagsWidth };
|
|
41
|
-
let imgHeight_3: number;
|
|
42
|
-
export { imgHeight_3 as imgHeight };
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export default _default;
|
|
46
|
-
declare const marginBetweenItems: 20;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const ARTICLE_PROP_TYPES: any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { TopicsList };
|
|
3
|
-
export { List };
|
|
4
|
-
export { CardList };
|
|
5
|
-
}
|
|
6
|
-
export default _default;
|
|
7
|
-
import TopicsList from './components/topics';
|
|
8
|
-
import List from './components/list';
|
|
9
|
-
import CardList from './components/card-list';
|
|
10
|
-
export { TopicsList, List, CardList };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { CardList as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export namespace card {
|
|
10
|
-
namespace args {
|
|
11
|
-
let data: ({
|
|
12
|
-
id: string;
|
|
13
|
-
title: string;
|
|
14
|
-
og_description: string;
|
|
15
|
-
category_set: {
|
|
16
|
-
category: {
|
|
17
|
-
name: string;
|
|
18
|
-
};
|
|
19
|
-
subcategory: {
|
|
20
|
-
name: string;
|
|
21
|
-
};
|
|
22
|
-
}[];
|
|
23
|
-
published_date: string;
|
|
24
|
-
hero_image: {
|
|
25
|
-
description: string;
|
|
26
|
-
resized_targets?: undefined;
|
|
27
|
-
};
|
|
28
|
-
slug: string;
|
|
29
|
-
is_bookmarked: boolean;
|
|
30
|
-
} | {
|
|
31
|
-
id: string;
|
|
32
|
-
title: string;
|
|
33
|
-
og_description: string;
|
|
34
|
-
published_date: string;
|
|
35
|
-
hero_image: {
|
|
36
|
-
description: string;
|
|
37
|
-
resized_targets?: undefined;
|
|
38
|
-
};
|
|
39
|
-
slug: string;
|
|
40
|
-
category_set?: undefined;
|
|
41
|
-
is_bookmarked?: undefined;
|
|
42
|
-
} | {
|
|
43
|
-
id: string;
|
|
44
|
-
title: string;
|
|
45
|
-
og_description: string;
|
|
46
|
-
category_set: {
|
|
47
|
-
category: {
|
|
48
|
-
name: string;
|
|
49
|
-
};
|
|
50
|
-
subcategory: {
|
|
51
|
-
name: string;
|
|
52
|
-
};
|
|
53
|
-
}[];
|
|
54
|
-
published_date: string;
|
|
55
|
-
hero_image: {
|
|
56
|
-
description: string;
|
|
57
|
-
resized_targets: {
|
|
58
|
-
mobile: {
|
|
59
|
-
url: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
slug: string;
|
|
64
|
-
is_bookmarked?: undefined;
|
|
65
|
-
})[];
|
|
66
|
-
let releaseBranch: string;
|
|
67
|
-
let showIsBookmarked: boolean;
|
|
68
|
-
let width: number;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
import CardList from '../components/card-list';
|
|
72
|
-
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default LogoFooter;
|
|
2
|
-
declare function LogoFooter({ releaseBranch, type, }: {
|
|
3
|
-
releaseBranch?: string;
|
|
4
|
-
type?: string;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
declare namespace LogoFooter {
|
|
7
|
-
export namespace propTypes {
|
|
8
|
-
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
9
|
-
export let type: any;
|
|
10
|
-
}
|
|
11
|
-
export { logoType as Type };
|
|
12
|
-
}
|
|
13
|
-
import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
|
|
14
|
-
declare namespace logoType {
|
|
15
|
-
let DEFAULT: string;
|
|
16
|
-
let WHITE: string;
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default LogoHeader;
|
|
2
|
-
declare function LogoHeader({ type, releaseBranch, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
type?: string;
|
|
5
|
-
releaseBranch?: string;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
declare namespace LogoHeader {
|
|
8
|
-
export namespace propTypes {
|
|
9
|
-
export let type: any;
|
|
10
|
-
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
11
|
-
}
|
|
12
|
-
export { logoType as Type };
|
|
13
|
-
}
|
|
14
|
-
import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
|
|
15
|
-
declare namespace logoType {
|
|
16
|
-
let DEFAULT: string;
|
|
17
|
-
let WHITE: string;
|
|
18
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export default LogoFallback;
|
|
2
|
-
declare function LogoFallback({ releaseBranch }: {
|
|
3
|
-
releaseBranch?: string;
|
|
4
|
-
}): JSX.Element;
|
|
5
|
-
declare namespace LogoFallback {
|
|
6
|
-
namespace propTypes {
|
|
7
|
-
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export default LogoSymbol;
|
|
2
|
-
declare function LogoSymbol({ type, releaseBranch, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
type?: string;
|
|
5
|
-
releaseBranch?: string;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
declare namespace LogoSymbol {
|
|
8
|
-
export namespace propTypes {
|
|
9
|
-
export let type: any;
|
|
10
|
-
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
11
|
-
}
|
|
12
|
-
export { logoType as Type };
|
|
13
|
-
}
|
|
14
|
-
import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
|
|
15
|
-
declare namespace logoType {
|
|
16
|
-
let DEFAULT: string;
|
|
17
|
-
let BLACK: string;
|
|
18
|
-
let WHITE: string;
|
|
19
|
-
}
|
package/lib/logo/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { LogoHeader };
|
|
3
|
-
export { LogoFooter };
|
|
4
|
-
export { LogoSymbol };
|
|
5
|
-
export { LogoFallback };
|
|
6
|
-
}
|
|
7
|
-
export default _default;
|
|
8
|
-
import LogoHeader from './components/logo-header';
|
|
9
|
-
import LogoFooter from './components/logo-footer';
|
|
10
|
-
import LogoSymbol from './components/logo-symbol';
|
|
11
|
-
import LogoFallback from './components/logo-loading-fallback';
|
|
12
|
-
export { LogoHeader, LogoFooter, LogoSymbol, LogoFallback };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { LogoFooter as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export const footer: {};
|
|
10
|
-
import LogoFooter from '../components/logo-footer';
|
|
11
|
-
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { LogoHeader as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export namespace header {
|
|
10
|
-
namespace args {
|
|
11
|
-
let type: string;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import LogoHeader from '../components/logo-header';
|
|
15
|
-
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { LogoFallback as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export const fallback: {};
|
|
10
|
-
import LogoFallback from '../components/logo-loading-fallback';
|
|
11
|
-
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { LogoSymbol as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export namespace symbol {
|
|
10
|
-
namespace args {
|
|
11
|
-
let type: string;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import LogoSymbol from '../components/logo-symbol';
|
|
15
|
-
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
package/lib/logo/utils/path.d.ts
DELETED
package/lib/material-icon.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default MeterialSymbol;
|
|
2
|
-
declare function MeterialSymbol({ icon, fill, weight, grade, size, }: {
|
|
3
|
-
icon: any;
|
|
4
|
-
fill?: boolean;
|
|
5
|
-
weight?: number;
|
|
6
|
-
grade?: number;
|
|
7
|
-
size?: number;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
declare namespace MeterialSymbol {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
let icon: any;
|
|
12
|
-
let fill: any;
|
|
13
|
-
let weight: any;
|
|
14
|
-
let grade: any;
|
|
15
|
-
let size: any;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default MobileMemberRoleCard;
|
|
2
|
-
declare function MobileMemberRoleCard({ role, releaseBranch, email, joinDate, name, articleReadCount, articleReadingTimeUnit, articleReadingTime, hideInfo, }: {
|
|
3
|
-
role?: string;
|
|
4
|
-
releaseBranch?: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
joinDate?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
articleReadCount?: number;
|
|
9
|
-
articleReadingTimeUnit?: "minute";
|
|
10
|
-
articleReadingTime?: number;
|
|
11
|
-
hideInfo?: boolean;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
-
declare namespace MobileMemberRoleCard {
|
|
14
|
-
namespace propTypes {
|
|
15
|
-
export let role: any;
|
|
16
|
-
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
17
|
-
export let email: any;
|
|
18
|
-
export let joinDate: any;
|
|
19
|
-
export let name: any;
|
|
20
|
-
export let articleReadCount: any;
|
|
21
|
-
export let articleReadingTimeUnit: any;
|
|
22
|
-
export let articleReadingTime: any;
|
|
23
|
-
export let hideInfo: any;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { MobileMemberRoleCard as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
-
export let role: {
|
|
7
|
-
defaultValue: any;
|
|
8
|
-
options: any[];
|
|
9
|
-
control: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export let articleReadingTimeUnit: {
|
|
14
|
-
defaultValue: any;
|
|
15
|
-
options: any[];
|
|
16
|
-
control: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export default _default;
|
|
23
|
-
export namespace moblieMemberRoleCard {
|
|
24
|
-
namespace args {
|
|
25
|
-
let email: string;
|
|
26
|
-
let joinDate: string;
|
|
27
|
-
let name: string;
|
|
28
|
-
let articleReadCount: number;
|
|
29
|
-
let articleReadingTime: number;
|
|
30
|
-
let hideInfo: boolean;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
import MobileMemberRoleCard from '../index';
|
|
34
|
-
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export default MobileModal;
|
|
2
|
-
declare class MobileModal {
|
|
3
|
-
static propTypes: {
|
|
4
|
-
modalHeight: any;
|
|
5
|
-
modalWidth: any;
|
|
6
|
-
};
|
|
7
|
-
static defaultProps: {
|
|
8
|
-
modalHeight: string;
|
|
9
|
-
modalWidth: string;
|
|
10
|
-
};
|
|
11
|
-
constructor(props: any);
|
|
12
|
-
state: {
|
|
13
|
-
modalHeight: any;
|
|
14
|
-
};
|
|
15
|
-
startY: number;
|
|
16
|
-
panel: any;
|
|
17
|
-
handleTouchstartWhenPanning: any;
|
|
18
|
-
handleTouchendWhenPanning: any;
|
|
19
|
-
handleTouchmoveWhenPanning: any;
|
|
20
|
-
componentDidMount(): void;
|
|
21
|
-
componentWillUnmount(): void;
|
|
22
|
-
_updateStartY(startY: any): void;
|
|
23
|
-
_updateScrollY(endY: any): void;
|
|
24
|
-
_handleTouchstartWhenPanning(event: any): void;
|
|
25
|
-
_handleTouchendWhenPanning(event: any): void;
|
|
26
|
-
_handleTouchmoveWhenPanning(event: any): void;
|
|
27
|
-
render(): JSX.Element;
|
|
28
|
-
}
|
package/lib/more.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export default Pagination;
|
|
2
|
-
declare class Pagination {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
_buildPagesArray(currentPage: any, totalPages: any): any;
|
|
5
|
-
_buildPageBox(index: any, currentPage: any): JSX.Element;
|
|
6
|
-
_buildCenterJSX(startAt: any, length: any, currentPage: any): JSX.Element[];
|
|
7
|
-
_buildMobilePagesArray(currentPage: any, totalPages: any): JSX.Element[];
|
|
8
|
-
render(): JSX.Element;
|
|
9
|
-
}
|
|
10
|
-
declare namespace Pagination {
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
let currentPage: any;
|
|
13
|
-
let ellipsis: any;
|
|
14
|
-
let handleClickNext: any;
|
|
15
|
-
let handleClickPage: any;
|
|
16
|
-
let handleClickPrev: any;
|
|
17
|
-
let nOfCenterPages: any;
|
|
18
|
-
let nOfMarginPages: any;
|
|
19
|
-
let totalPages: any;
|
|
20
|
-
let className: any;
|
|
21
|
-
}
|
|
22
|
-
namespace defaultProps {
|
|
23
|
-
let currentPage_1: number;
|
|
24
|
-
export { currentPage_1 as currentPage };
|
|
25
|
-
let totalPages_1: number;
|
|
26
|
-
export { totalPages_1 as totalPages };
|
|
27
|
-
let ellipsis_1: string;
|
|
28
|
-
export { ellipsis_1 as ellipsis };
|
|
29
|
-
let nOfCenterPages_1: number;
|
|
30
|
-
export { nOfCenterPages_1 as nOfCenterPages };
|
|
31
|
-
let nOfMarginPages_1: number;
|
|
32
|
-
export { nOfMarginPages_1 as nOfMarginPages };
|
|
33
|
-
let className_1: string;
|
|
34
|
-
export { className_1 as className };
|
|
35
|
-
}
|
|
36
|
-
}
|
package/lib/podcast-link.d.ts
DELETED
package/lib/rwd.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export const DesktopOnly: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export const MobileOnly: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export const DesktopAndAbove: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export const TabletAndBelow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
-
export const TabletAndAbove: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/lib/shared-enum.d.ts
DELETED
package/lib/side-bar/index.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export default decorateSideBar;
|
|
2
|
-
export function AnchorWrapper({ children }: {
|
|
3
|
-
children: any;
|
|
4
|
-
}): any;
|
|
5
|
-
export namespace AnchorWrapper {
|
|
6
|
-
namespace defaultProps {
|
|
7
|
-
let anchorLabel: string;
|
|
8
|
-
let showAnchor: boolean;
|
|
9
|
-
}
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
export let anchorId: any;
|
|
12
|
-
let anchorLabel_1: any;
|
|
13
|
-
export { anchorLabel_1 as anchorLabel };
|
|
14
|
-
let showAnchor_1: any;
|
|
15
|
-
export { showAnchor_1 as showAnchor };
|
|
16
|
-
export let children: any;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* `decorateSideBar`
|
|
21
|
-
* returns a High Order Component adding the side bar functionalities onto `DecoratedComponent`.
|
|
22
|
-
* It passes props such as `currentAnchorId`, `handleClickAnchor` to the `DecoratedComponent`.
|
|
23
|
-
* `DecoratedSideBar` will map the anchor ids to the sections which are passed as React children,
|
|
24
|
-
* `currentAnchorId` indicates which section is in the viewport right now.
|
|
25
|
-
* `handleClickAnchor` is a function which can be used to scroll to the certain section.
|
|
26
|
-
*
|
|
27
|
-
* For example,
|
|
28
|
-
* ```
|
|
29
|
-
* // react component to render side bar
|
|
30
|
-
* const SideBar = ({anchors, currentAnchorId, handleClickAnchor}) => {
|
|
31
|
-
* const anchorsJSX = []
|
|
32
|
-
* anchors.ForEach((anchor) => {
|
|
33
|
-
* anchorsJSX.push(
|
|
34
|
-
* <div
|
|
35
|
-
* key={anchor.id}
|
|
36
|
-
* onClick={(e) => handleClickAnchor(anchor.id, e)}
|
|
37
|
-
* style={{color: currentAnchorId === anchor.id ? 'black' : 'white'}}
|
|
38
|
-
* >
|
|
39
|
-
* {anchor.label}
|
|
40
|
-
* </div>
|
|
41
|
-
* )
|
|
42
|
-
* })
|
|
43
|
-
* return (
|
|
44
|
-
* <div>
|
|
45
|
-
* {anchorsJSX}
|
|
46
|
-
* </div>
|
|
47
|
-
* )
|
|
48
|
-
* }
|
|
49
|
-
*
|
|
50
|
-
* const DecoratedSideBar = decoratedSideBar(SideBar)
|
|
51
|
-
*
|
|
52
|
-
* const SideBarWithContent = () => {
|
|
53
|
-
* return (
|
|
54
|
-
* <DecoratedSideBar>
|
|
55
|
-
* <AnchorWrapper anchorId="section-1" anchorLabel="Section One">
|
|
56
|
-
* <SectionOne />
|
|
57
|
-
* </AnchorWrapper>
|
|
58
|
-
* <AnchorWrapper anchorId="section-2" anchorLabel="Section Two">
|
|
59
|
-
* <SectionTwo />
|
|
60
|
-
* </AnchorWrapper>
|
|
61
|
-
* <AnchorWrapper anchorId="section-3" anchorLabel="Section Three">
|
|
62
|
-
* <SectionThree />
|
|
63
|
-
* </AnchorWrapper>
|
|
64
|
-
* </DecoratedSideBar>
|
|
65
|
-
* )
|
|
66
|
-
* }
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* The above codes will render three sections and side bar on the same page.
|
|
70
|
-
* When the section, like `SectionTwo`, scrolls into the viewport,
|
|
71
|
-
* the anchor of that section(`Section Two`) will be black, and others will be white.
|
|
72
|
-
*
|
|
73
|
-
* And when user click the anchor, say if `Secetion Two`, the browser will auto scroll to `SectionTwo`,
|
|
74
|
-
* and anchor `Section Two` will be black.
|
|
75
|
-
*
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* @param {Object} DecoratedComponent A React component wants to have side bar functionality
|
|
79
|
-
* @returns {Object} A React component with side bar functionalities
|
|
80
|
-
*/
|
|
81
|
-
declare function decorateSideBar(DecoratedComponent: any): any;
|