@twreporter/react-components 9.4.4 → 9.5.0-rc.0
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/badge/badge.stories.d.ts +13 -0
- package/lib/badge/index.d.ts +14 -0
- package/lib/bookmark-list/bookmark.d.ts +9 -0
- package/lib/bookmark-list/bookmarks.d.ts +15 -0
- package/lib/bookmark-list/customized-link.d.ts +19 -0
- package/lib/bookmark-list/image-wrapper.d.ts +27 -0
- package/lib/bookmark-list/index.d.ts +26 -0
- package/lib/bookmark-list/redirect-to-sign-in.d.ts +9 -0
- package/lib/bookmark-list/stories/bookmark.stories.d.ts +9 -0
- package/lib/bookmark-widget/index.d.ts +13 -0
- package/lib/button/components/iconButton.d.ts +22 -0
- package/lib/button/components/iconWithTextButton.d.ts +21 -0
- package/lib/button/components/link.d.ts +45 -0
- package/lib/button/components/menuButton.d.ts +29 -0
- package/lib/button/components/pillButton.d.ts +34 -0
- package/lib/button/components/textButton.d.ts +32 -0
- package/lib/button/components/toggleButton.d.ts +18 -0
- package/lib/button/enums/index.d.ts +13 -0
- package/lib/button/index.d.ts +20 -0
- package/lib/button/stories/iconButton.stories.d.ts +42 -0
- package/lib/button/stories/iconWithTextButton.stories.d.ts +37 -0
- package/lib/button/stories/link.stories.d.ts +139 -0
- package/lib/button/stories/menuButton.stories.d.ts +26 -0
- package/lib/button/stories/pillButton.stories.d.ts +92 -0
- package/lib/button/stories/textButton.stories.d.ts +85 -0
- package/lib/button/stories/toggleButton.stories.d.ts +22 -0
- package/lib/button/utils/size.d.ts +8 -0
- package/lib/button/utils/theme.d.ts +218 -0
- package/lib/card/components/article-card.d.ts +34 -0
- package/lib/card/components/dialog.d.ts +14 -0
- package/lib/card/components/short-story.d.ts +26 -0
- package/lib/card/index.d.ts +10 -0
- package/lib/card/stories/articleCard.stories.d.ts +30 -0
- package/lib/card/stories/dialog.stories.d.ts +23 -0
- package/lib/card/stories/shortStory.stories.d.ts +37 -0
- package/lib/checkbox/checkbox.stories.d.ts +21 -0
- package/lib/checkbox/index.d.ts +16 -0
- package/lib/color.stories.d.ts +63 -0
- package/lib/confirmation/index.d.ts +25 -0
- package/lib/customized-link.d.ts +12 -0
- package/lib/divider.d.ts +15 -0
- package/lib/divider.stories.d.ts +33 -0
- package/lib/donation-link.d.ts +10 -0
- package/lib/empty-state/enums/index.d.ts +5 -0
- package/lib/empty-state/index.d.ts +30 -0
- package/lib/empty-state/stories/empty-guide.stories.d.ts +29 -0
- package/lib/error/index.d.ts +8 -0
- package/lib/error/message.d.ts +9 -0
- package/lib/footer/constants/links.d.ts +19 -0
- package/lib/footer/footer.stories.d.ts +15 -0
- package/lib/footer/index.d.ts +9 -0
- package/lib/footer/link.d.ts +18 -0
- package/lib/footer/logo.d.ts +9 -0
- package/lib/hook/index.d.ts +10 -0
- package/lib/hook/use-bookmark.d.ts +15 -0
- package/lib/hook/use-font-face-observer.d.ts +2 -0
- package/lib/hook/use-outside-click.d.ts +2 -0
- package/lib/icon/enum/index.d.ts +25 -0
- package/lib/icon/index.d.ts +227 -0
- package/lib/icon/index.js +4 -2
- package/lib/icon/stories/arrow.stories.d.ts +72 -0
- package/lib/icon/stories/article.stories.d.ts +11 -0
- package/lib/icon/stories/bookmark.stories.d.ts +57 -0
- package/lib/icon/stories/changeIconColor.stories.d.ts +23 -0
- package/lib/icon/stories/clock.stories.d.ts +11 -0
- package/lib/icon/stories/copy.stories.d.ts +11 -0
- package/lib/icon/stories/cross.stories.d.ts +11 -0
- package/lib/icon/stories/filter.stories.d.ts +11 -0
- package/lib/icon/stories/filter.stories.js +16 -0
- package/lib/icon/stories/hamburger.stories.d.ts +11 -0
- package/lib/icon/stories/home.stories.d.ts +11 -0
- package/lib/icon/stories/letter.stories.d.ts +11 -0
- package/lib/icon/stories/loading.stories.d.ts +11 -0
- package/lib/icon/stories/member.stories.d.ts +11 -0
- package/lib/icon/stories/printer.stories.d.ts +11 -0
- package/lib/icon/stories/search.stories.d.ts +11 -0
- package/lib/icon/stories/share.stories.d.ts +11 -0
- package/lib/icon/stories/socialMedia.stories.d.ts +25 -0
- package/lib/icon/stories/text.stories.d.ts +11 -0
- package/lib/icon/stories/topic.stories.d.ts +11 -0
- package/lib/image-with-fallback.d.ts +16 -0
- package/lib/input/components/search-bar.d.ts +29 -0
- package/lib/input/components/text-field.d.ts +26 -0
- package/lib/input/enums/index.d.ts +13 -0
- package/lib/input/index.d.ts +8 -0
- package/lib/input/stories/search-bar.stories.d.ts +33 -0
- package/lib/input/stories/text-field.stories.d.ts +37 -0
- package/lib/input/utils/theme.d.ts +17 -0
- package/lib/is-fetching-wrapper.d.ts +14 -0
- package/lib/junior-link.d.ts +7 -0
- package/lib/link-with-tracker.d.ts +29 -0
- package/lib/listing-page/components/card-list.d.ts +20 -0
- package/lib/listing-page/components/image.d.ts +29 -0
- package/lib/listing-page/components/list-item.d.ts +27 -0
- package/lib/listing-page/components/list.d.ts +31 -0
- package/lib/listing-page/components/page-content.d.ts +2 -0
- package/lib/listing-page/components/topics/index.d.ts +25 -0
- package/lib/listing-page/components/topics/post-item.d.ts +19 -0
- package/lib/listing-page/components/topics/posts.d.ts +2 -0
- package/lib/listing-page/components/topics/section.d.ts +20 -0
- package/lib/listing-page/components/topics/topic-item.d.ts +22 -0
- package/lib/listing-page/constants/mockup-spec.d.ts +46 -0
- package/lib/listing-page/constants/predefined-css.d.ts +2 -0
- package/lib/listing-page/constants/prop-types.d.ts +1 -0
- package/lib/listing-page/constants/topics.d.ts +6 -0
- package/lib/listing-page/index.d.ts +10 -0
- package/lib/listing-page/stories/cardList.stories.d.ts +72 -0
- package/lib/logo/components/logo-footer.d.ts +17 -0
- package/lib/logo/components/logo-header.d.ts +18 -0
- package/lib/logo/components/logo-loading-fallback.d.ts +10 -0
- package/lib/logo/components/logo-symbol.d.ts +19 -0
- package/lib/logo/index.d.ts +12 -0
- package/lib/logo/stories/logoFooter.stories.d.ts +11 -0
- package/lib/logo/stories/logoHeader.stories.d.ts +15 -0
- package/lib/logo/stories/logoLoadingFallback.stories.d.ts +11 -0
- package/lib/logo/stories/logoSymbol.stories.d.ts +15 -0
- package/lib/logo/utils/path.d.ts +5 -0
- package/lib/material-icon.d.ts +17 -0
- package/lib/mobile-member-role-card/index.d.ts +26 -0
- package/lib/mobile-member-role-card/stories/member-role-card.stories.d.ts +34 -0
- package/lib/mobile-pop-up-modal.d.ts +28 -0
- package/lib/more.d.ts +10 -0
- package/lib/pagination/index.d.ts +36 -0
- package/lib/podcast-link.d.ts +7 -0
- package/lib/rwd.d.ts +5 -0
- package/lib/shared-enum.d.ts +4 -0
- package/lib/side-bar/index.d.ts +81 -0
- package/lib/simple-header/index.d.ts +2 -0
- package/lib/simple-header/simpleHeader.stories.d.ts +9 -0
- package/lib/snack-bar/components/snack-bar.d.ts +13 -0
- package/lib/snack-bar/hooks/use-snack-bar.d.ts +9 -0
- package/lib/snack-bar/index.d.ts +8 -0
- package/lib/snack-bar/stories/snackBar.stories.d.ts +28 -0
- package/lib/snack-bar/utils/theme.d.ts +11 -0
- package/lib/storybook/constants/index.d.ts +21 -0
- package/lib/storybook/utils/get-enum-arg.d.ts +7 -0
- package/lib/table-of-contents/index.d.ts +200 -0
- package/lib/text/constants/headline-type.d.ts +4 -0
- package/lib/text/enums/index.d.ts +9 -0
- package/lib/text/headline.d.ts +60 -0
- package/lib/text/paragraph.d.ts +49 -0
- package/lib/text/stories/headline.stories.d.ts +112 -0
- package/lib/text/stories/paragraph.stories.d.ts +78 -0
- package/lib/text/utils/webfonts.d.ts +10 -0
- package/lib/title-bar/components/tab.d.ts +13 -0
- package/lib/title-bar/components/title1.d.ts +11 -0
- package/lib/title-bar/components/title2.d.ts +13 -0
- package/lib/title-bar/index.d.ts +10 -0
- package/lib/title-bar/stories/tab.stories.d.ts +43 -0
- package/lib/title-bar/stories/title1.stories.d.ts +29 -0
- package/lib/title-bar/stories/title2.stories.d.ts +29 -0
- package/lib/utils/link-with-params.d.ts +6 -0
- package/package.json +9 -7
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default Image;
|
|
2
|
+
declare class Image {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
state: {
|
|
5
|
+
isObjectFit: boolean;
|
|
6
|
+
isImgOnLoad: boolean;
|
|
7
|
+
};
|
|
8
|
+
handleImgOnLoad: any;
|
|
9
|
+
imgNode: HTMLImageElement;
|
|
10
|
+
componentDidMount(): void;
|
|
11
|
+
componentWillUnMount(): void;
|
|
12
|
+
_handleImgOnLoad(): void;
|
|
13
|
+
render(): JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
declare namespace Image {
|
|
16
|
+
namespace defaultProps {
|
|
17
|
+
let alt: string;
|
|
18
|
+
let src: string;
|
|
19
|
+
let srcSet: string;
|
|
20
|
+
}
|
|
21
|
+
namespace propTypes {
|
|
22
|
+
let alt_1: any;
|
|
23
|
+
export { alt_1 as alt };
|
|
24
|
+
let src_1: any;
|
|
25
|
+
export { src_1 as src };
|
|
26
|
+
let srcSet_1: any;
|
|
27
|
+
export { srcSet_1 as srcSet };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default ListItem;
|
|
2
|
+
declare class ListItem extends PureComponent<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
render(): JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
declare namespace ListItem {
|
|
8
|
+
namespace defaultProps {
|
|
9
|
+
let tags: any[];
|
|
10
|
+
namespace link {
|
|
11
|
+
let to: string;
|
|
12
|
+
let target: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
namespace propTypes {
|
|
16
|
+
export let title: any;
|
|
17
|
+
export let desc: any;
|
|
18
|
+
export let img: any;
|
|
19
|
+
let link_1: any;
|
|
20
|
+
export { link_1 as link };
|
|
21
|
+
export let category: any;
|
|
22
|
+
export let pubDate: any;
|
|
23
|
+
let tags_1: any;
|
|
24
|
+
export { tags_1 as tags };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
import { PureComponent } from 'react';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default List;
|
|
2
|
+
declare class List extends PureComponent<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
render(): JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
declare namespace List {
|
|
8
|
+
namespace defaultProps {
|
|
9
|
+
let data: any[];
|
|
10
|
+
let catName: string;
|
|
11
|
+
let tagName: string;
|
|
12
|
+
let isFetching: boolean;
|
|
13
|
+
let showSpinner: boolean;
|
|
14
|
+
let showCategory: boolean;
|
|
15
|
+
}
|
|
16
|
+
namespace propTypes {
|
|
17
|
+
let data_1: any;
|
|
18
|
+
export { data_1 as data };
|
|
19
|
+
let tagName_1: any;
|
|
20
|
+
export { tagName_1 as tagName };
|
|
21
|
+
let catName_1: any;
|
|
22
|
+
export { catName_1 as catName };
|
|
23
|
+
let isFetching_1: any;
|
|
24
|
+
export { isFetching_1 as isFetching };
|
|
25
|
+
let showSpinner_1: any;
|
|
26
|
+
export { showSpinner_1 as showSpinner };
|
|
27
|
+
let showCategory_1: any;
|
|
28
|
+
export { showCategory_1 as showCategory };
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
import { PureComponent } from 'react';
|
|
@@ -0,0 +1,25 @@
|
|
|
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';
|
|
@@ -0,0 +1,19 @@
|
|
|
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';
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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';
|
|
@@ -0,0 +1,46 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ARTICLE_PROP_TYPES: any;
|
|
@@ -0,0 +1,10 @@
|
|
|
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 };
|
|
@@ -0,0 +1,72 @@
|
|
|
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';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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';
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
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';
|
|
@@ -0,0 +1,15 @@
|
|
|
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';
|
|
@@ -0,0 +1,11 @@
|
|
|
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';
|
|
@@ -0,0 +1,15 @@
|
|
|
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';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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';
|
|
@@ -0,0 +1,34 @@
|
|
|
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';
|
|
@@ -0,0 +1,28 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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/rwd.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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;
|