@twreporter/react-components 9.4.4 → 9.5.0-rc.1
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 +21 -0
- package/lib/button/components/iconWithTextButton.d.ts +20 -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 +33 -0
- package/lib/button/components/textButton.d.ts +31 -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 +47 -0
- package/lib/card/components/article-card.d.ts +33 -0
- package/lib/card/components/dialog.d.ts +14 -0
- package/lib/card/components/short-story.d.ts +25 -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 +29 -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/constants/links.js +1 -1
- 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 +225 -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 +15 -0
- package/lib/input/components/search-bar.d.ts +27 -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 +9 -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 +19 -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 +16 -0
- package/lib/logo/components/logo-header.d.ts +17 -0
- package/lib/logo/components/logo-loading-fallback.d.ts +9 -0
- package/lib/logo/components/logo-symbol.d.ts +18 -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 +25 -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 +12 -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 +8 -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 +9 -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
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { EmptyState as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
export let style: {
|
|
7
|
+
defaultValue: any;
|
|
8
|
+
options: any[];
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export default _default;
|
|
16
|
+
export namespace emptyState {
|
|
17
|
+
namespace args {
|
|
18
|
+
let title_1: string;
|
|
19
|
+
export { title_1 as title };
|
|
20
|
+
export let showGuide: boolean;
|
|
21
|
+
export let guide: string;
|
|
22
|
+
export let showButton: boolean;
|
|
23
|
+
export let buttonText: string;
|
|
24
|
+
export let buttonUrl: string;
|
|
25
|
+
export let maxWidth: string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
import EmptyState from '../index';
|
|
29
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function getLinksGroups(mainOrigin: any): ({
|
|
2
|
+
slug: string;
|
|
3
|
+
text: string;
|
|
4
|
+
to: string;
|
|
5
|
+
target: string;
|
|
6
|
+
id: string;
|
|
7
|
+
} | {
|
|
8
|
+
slug: string;
|
|
9
|
+
text: string;
|
|
10
|
+
to: string;
|
|
11
|
+
target: string;
|
|
12
|
+
id?: undefined;
|
|
13
|
+
})[][];
|
|
14
|
+
export function getSocialMediaLinks(): {
|
|
15
|
+
slug: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
to: string;
|
|
18
|
+
target: string;
|
|
19
|
+
}[];
|
|
@@ -82,7 +82,7 @@ var getLinksGroups = exports.getLinksGroups = function getLinksGroups(mainOrigin
|
|
|
82
82
|
}, {
|
|
83
83
|
slug: 'subcribe-podcast',
|
|
84
84
|
text: '訂閱 Podcast',
|
|
85
|
-
to: 'https://
|
|
85
|
+
to: 'https://solink.soundon.fm/twreporter-U7Q',
|
|
86
86
|
target: '_blank'
|
|
87
87
|
}, {
|
|
88
88
|
slug: 'subcribe-RSS',
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Footer as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export namespace footer {
|
|
10
|
+
namespace args {
|
|
11
|
+
let releaseBranch: any;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import Footer from './index';
|
|
15
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../storybook/constants';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function FooterLinkButtonGroups({ releaseBranch, }: {
|
|
2
|
+
releaseBranch?: any;
|
|
3
|
+
}): any;
|
|
4
|
+
export namespace FooterLinkButtonGroups {
|
|
5
|
+
namespace propTypes {
|
|
6
|
+
let releaseBranch: any;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export function FooterSocialMediaIcons({ releaseBranch, }: {
|
|
10
|
+
releaseBranch?: any;
|
|
11
|
+
}): any;
|
|
12
|
+
export namespace FooterSocialMediaIcons {
|
|
13
|
+
export namespace propTypes_1 {
|
|
14
|
+
let releaseBranch_1: any;
|
|
15
|
+
export { releaseBranch_1 as releaseBranch };
|
|
16
|
+
}
|
|
17
|
+
export { propTypes_1 as propTypes };
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { useOutsideClick };
|
|
3
|
+
export { useFontFaceObserver };
|
|
4
|
+
export { useBookmark };
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
import useOutsideClick from './use-outside-click';
|
|
8
|
+
import useFontFaceObserver from './use-font-face-observer';
|
|
9
|
+
import useBookmark from './use-bookmark';
|
|
10
|
+
export { useOutsideClick, useFontFaceObserver, useBookmark };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default useBookmark;
|
|
2
|
+
/**
|
|
3
|
+
* hook for create or delete bookmark
|
|
4
|
+
* @param {object} bookmark
|
|
5
|
+
* @param {string} bookmark.slug
|
|
6
|
+
* @param {boolean} bookmark.is_external
|
|
7
|
+
* @param {string} bookmark.title
|
|
8
|
+
* @param {string} bookmark.desc
|
|
9
|
+
* @param {string} bookmark.thumbnail
|
|
10
|
+
* @param {string} bookmark.published_date
|
|
11
|
+
*/
|
|
12
|
+
declare function useBookmark(): {
|
|
13
|
+
addAction: (bookmark: any) => any;
|
|
14
|
+
removeAction: (bookmarkID: any) => any;
|
|
15
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const IconType: Readonly<{
|
|
2
|
+
MASK: "mask";
|
|
3
|
+
RAW: "raw";
|
|
4
|
+
}>;
|
|
5
|
+
export const ArrowDirection: Readonly<{
|
|
6
|
+
RIGHT: "right";
|
|
7
|
+
LEFT: "left";
|
|
8
|
+
UP: "up";
|
|
9
|
+
DOWN: "down";
|
|
10
|
+
}>;
|
|
11
|
+
export const BookmarkType: Readonly<{
|
|
12
|
+
BASIC: "basic";
|
|
13
|
+
ADD: "add";
|
|
14
|
+
SAVED: "saved";
|
|
15
|
+
}>;
|
|
16
|
+
export const MediaType: Readonly<{
|
|
17
|
+
FACEBOOK: "facebook";
|
|
18
|
+
INSTAGRAM: "instagram";
|
|
19
|
+
MEDIUM: "medium";
|
|
20
|
+
TWITTER: "twitter";
|
|
21
|
+
YOUTUBE: "youtube";
|
|
22
|
+
LINE: "line";
|
|
23
|
+
GOOGLE: "google";
|
|
24
|
+
PLURK: "plurk";
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
export function Icon({ type, filename, releaseBranch, ...restProps }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
type?: "mask";
|
|
4
|
+
filename?: string;
|
|
5
|
+
releaseBranch?: any;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
export namespace Icon {
|
|
8
|
+
export namespace propTypes {
|
|
9
|
+
export let type: any;
|
|
10
|
+
export let filename: any;
|
|
11
|
+
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
12
|
+
}
|
|
13
|
+
export { IconType as type };
|
|
14
|
+
export { BRANCH as releaseBranch };
|
|
15
|
+
}
|
|
16
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
releaseBranch?: any;
|
|
19
|
+
}): JSX.Element;
|
|
20
|
+
export namespace Hamburger {
|
|
21
|
+
export namespace propTypes_1 {
|
|
22
|
+
let type_1: any;
|
|
23
|
+
export { type_1 as type };
|
|
24
|
+
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
25
|
+
}
|
|
26
|
+
export { propTypes_1 as propTypes };
|
|
27
|
+
export let displayName: any;
|
|
28
|
+
export { IconType as Type };
|
|
29
|
+
}
|
|
30
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
releaseBranch?: any;
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
export namespace Hamburger { }
|
|
35
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
releaseBranch?: any;
|
|
38
|
+
}): JSX.Element;
|
|
39
|
+
export namespace Hamburger { }
|
|
40
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
releaseBranch?: any;
|
|
43
|
+
}): JSX.Element;
|
|
44
|
+
export namespace Hamburger { }
|
|
45
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
releaseBranch?: any;
|
|
48
|
+
}): JSX.Element;
|
|
49
|
+
export namespace Hamburger { }
|
|
50
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
releaseBranch?: any;
|
|
53
|
+
}): JSX.Element;
|
|
54
|
+
export namespace Hamburger { }
|
|
55
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
56
|
+
[x: string]: any;
|
|
57
|
+
releaseBranch?: any;
|
|
58
|
+
}): JSX.Element;
|
|
59
|
+
export namespace Hamburger { }
|
|
60
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
61
|
+
[x: string]: any;
|
|
62
|
+
releaseBranch?: any;
|
|
63
|
+
}): JSX.Element;
|
|
64
|
+
export namespace Hamburger { }
|
|
65
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
66
|
+
[x: string]: any;
|
|
67
|
+
releaseBranch?: any;
|
|
68
|
+
}): JSX.Element;
|
|
69
|
+
export namespace Hamburger { }
|
|
70
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
71
|
+
[x: string]: any;
|
|
72
|
+
releaseBranch?: any;
|
|
73
|
+
}): JSX.Element;
|
|
74
|
+
export namespace Hamburger { }
|
|
75
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
76
|
+
[x: string]: any;
|
|
77
|
+
releaseBranch?: any;
|
|
78
|
+
}): JSX.Element;
|
|
79
|
+
export namespace Hamburger { }
|
|
80
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
81
|
+
[x: string]: any;
|
|
82
|
+
releaseBranch?: any;
|
|
83
|
+
}): JSX.Element;
|
|
84
|
+
export namespace Hamburger { }
|
|
85
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
86
|
+
[x: string]: any;
|
|
87
|
+
releaseBranch?: any;
|
|
88
|
+
}): JSX.Element;
|
|
89
|
+
export namespace Hamburger { }
|
|
90
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
91
|
+
[x: string]: any;
|
|
92
|
+
releaseBranch?: any;
|
|
93
|
+
}): JSX.Element;
|
|
94
|
+
export namespace Hamburger { }
|
|
95
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
96
|
+
[x: string]: any;
|
|
97
|
+
releaseBranch?: any;
|
|
98
|
+
}): JSX.Element;
|
|
99
|
+
export namespace Hamburger { }
|
|
100
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
101
|
+
[x: string]: any;
|
|
102
|
+
releaseBranch?: any;
|
|
103
|
+
}): JSX.Element;
|
|
104
|
+
export namespace Hamburger { }
|
|
105
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
106
|
+
[x: string]: any;
|
|
107
|
+
releaseBranch?: any;
|
|
108
|
+
}): JSX.Element;
|
|
109
|
+
export namespace Hamburger { }
|
|
110
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
111
|
+
[x: string]: any;
|
|
112
|
+
releaseBranch?: any;
|
|
113
|
+
}): JSX.Element;
|
|
114
|
+
export namespace Hamburger { }
|
|
115
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
116
|
+
[x: string]: any;
|
|
117
|
+
releaseBranch?: any;
|
|
118
|
+
}): JSX.Element;
|
|
119
|
+
export namespace Hamburger { }
|
|
120
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
121
|
+
[x: string]: any;
|
|
122
|
+
releaseBranch?: any;
|
|
123
|
+
}): JSX.Element;
|
|
124
|
+
export namespace Hamburger { }
|
|
125
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
126
|
+
[x: string]: any;
|
|
127
|
+
releaseBranch?: any;
|
|
128
|
+
}): JSX.Element;
|
|
129
|
+
export namespace Hamburger { }
|
|
130
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
131
|
+
[x: string]: any;
|
|
132
|
+
releaseBranch?: any;
|
|
133
|
+
}): JSX.Element;
|
|
134
|
+
export namespace Hamburger { }
|
|
135
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
136
|
+
[x: string]: any;
|
|
137
|
+
releaseBranch?: any;
|
|
138
|
+
}): JSX.Element;
|
|
139
|
+
export namespace Hamburger { }
|
|
140
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
141
|
+
[x: string]: any;
|
|
142
|
+
releaseBranch?: any;
|
|
143
|
+
}): JSX.Element;
|
|
144
|
+
export namespace Hamburger { }
|
|
145
|
+
export function Hamburger({ releaseBranch, ...props }: {
|
|
146
|
+
[x: string]: any;
|
|
147
|
+
releaseBranch?: any;
|
|
148
|
+
}): JSX.Element;
|
|
149
|
+
export namespace Hamburger { }
|
|
150
|
+
export function Arrow({ direction, releaseBranch, ...props }: {
|
|
151
|
+
[x: string]: any;
|
|
152
|
+
direction?: "right";
|
|
153
|
+
releaseBranch: any;
|
|
154
|
+
}): JSX.Element;
|
|
155
|
+
export namespace Arrow {
|
|
156
|
+
export namespace propTypes_2 {
|
|
157
|
+
export let direction: any;
|
|
158
|
+
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
159
|
+
}
|
|
160
|
+
export { propTypes_2 as propTypes };
|
|
161
|
+
export { ArrowDirection as Direction };
|
|
162
|
+
}
|
|
163
|
+
export function Bookmark({ type, releaseBranch }: {
|
|
164
|
+
type?: "basic";
|
|
165
|
+
releaseBranch: any;
|
|
166
|
+
}): JSX.Element;
|
|
167
|
+
export namespace Bookmark {
|
|
168
|
+
export namespace propTypes_3 {
|
|
169
|
+
let type_2: any;
|
|
170
|
+
export { type_2 as type };
|
|
171
|
+
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
172
|
+
}
|
|
173
|
+
export { propTypes_3 as propTypes };
|
|
174
|
+
export { BookmarkType as Type };
|
|
175
|
+
}
|
|
176
|
+
export function SocialMedia({ mediaType, ...args }: {
|
|
177
|
+
[x: string]: any;
|
|
178
|
+
mediaType?: "google";
|
|
179
|
+
}): JSX.Element;
|
|
180
|
+
export namespace SocialMedia {
|
|
181
|
+
export namespace propTypes_4 {
|
|
182
|
+
import type_3 = type;
|
|
183
|
+
export { type_3 as type };
|
|
184
|
+
export let mediaType: any;
|
|
185
|
+
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
186
|
+
}
|
|
187
|
+
export { propTypes_4 as propTypes };
|
|
188
|
+
export { IconType as Type };
|
|
189
|
+
export { MediaType };
|
|
190
|
+
}
|
|
191
|
+
declare namespace _default {
|
|
192
|
+
export { Arrow };
|
|
193
|
+
export { Article };
|
|
194
|
+
export { Bookmark };
|
|
195
|
+
export { Clock };
|
|
196
|
+
export { Copy };
|
|
197
|
+
export { Cross };
|
|
198
|
+
export { Facebook };
|
|
199
|
+
export { Hamburger };
|
|
200
|
+
export { Home };
|
|
201
|
+
export { Instagram };
|
|
202
|
+
export { Line };
|
|
203
|
+
export { Loading };
|
|
204
|
+
export { Printer };
|
|
205
|
+
export { Letter };
|
|
206
|
+
export { Medium };
|
|
207
|
+
export { Member };
|
|
208
|
+
export { Search };
|
|
209
|
+
export { Share };
|
|
210
|
+
export { Text };
|
|
211
|
+
export { Topic };
|
|
212
|
+
export { Twitter };
|
|
213
|
+
export { Youtube };
|
|
214
|
+
export { Google };
|
|
215
|
+
export { SocialMedia };
|
|
216
|
+
export { History };
|
|
217
|
+
export { KidStar };
|
|
218
|
+
export { Plurk };
|
|
219
|
+
export { Filter };
|
|
220
|
+
}
|
|
221
|
+
export default _default;
|
|
222
|
+
import { IconType } from './enum';
|
|
223
|
+
import { ArrowDirection } from './enum';
|
|
224
|
+
import { BookmarkType } from './enum';
|
|
225
|
+
import { MediaType } from './enum';
|
package/lib/icon/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.Youtube = exports.Twitter = exports.Topic = exports.Text = exports.SocialMedia = exports.Share = exports.Search = exports.Printer = exports.Plurk = exports.Member = exports.Medium = exports.Loading = exports.Line = exports.Letter = exports.KidStar = exports.Instagram = exports.Icon = exports.Home = exports.History = exports.Hamburger = exports.Google = exports.Facebook = exports.Cross = exports.Copy = exports.Clock = exports.Bookmark = exports.Article = exports.Arrow = void 0;
|
|
6
|
+
exports["default"] = exports.Youtube = exports.Twitter = exports.Topic = exports.Text = exports.SocialMedia = exports.Share = exports.Search = exports.Printer = exports.Plurk = exports.Member = exports.Medium = exports.Loading = exports.Line = exports.Letter = exports.KidStar = exports.Instagram = exports.Icon = exports.Home = exports.History = exports.Hamburger = exports.Google = exports.Filter = exports.Facebook = exports.Cross = exports.Copy = exports.Clock = exports.Bookmark = exports.Article = exports.Arrow = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
@@ -93,6 +93,7 @@ var Google = exports.Google = getIcon('google');
|
|
|
93
93
|
var History = exports.History = getIcon('history');
|
|
94
94
|
var KidStar = exports.KidStar = getIcon('kid_star');
|
|
95
95
|
var Plurk = exports.Plurk = getIcon('plurk');
|
|
96
|
+
var Filter = exports.Filter = getIcon('filter');
|
|
96
97
|
var Arrow = exports.Arrow = function Arrow(_ref3) {
|
|
97
98
|
var _ref3$direction = _ref3.direction,
|
|
98
99
|
direction = _ref3$direction === void 0 ? _enum.ArrowDirection.RIGHT : _ref3$direction,
|
|
@@ -166,5 +167,6 @@ var _default = exports["default"] = {
|
|
|
166
167
|
SocialMedia: SocialMedia,
|
|
167
168
|
History: History,
|
|
168
169
|
KidStar: KidStar,
|
|
169
|
-
Plurk: Plurk
|
|
170
|
+
Plurk: Plurk,
|
|
171
|
+
Filter: Filter
|
|
170
172
|
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Arrow as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export namespace arrow {
|
|
10
|
+
namespace args {
|
|
11
|
+
let direction: "right";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export namespace right {
|
|
15
|
+
export namespace parameters {
|
|
16
|
+
namespace controls {
|
|
17
|
+
let exclude: string[];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export namespace args_1 {
|
|
21
|
+
let direction_1: "right";
|
|
22
|
+
export { direction_1 as direction };
|
|
23
|
+
}
|
|
24
|
+
export { args_1 as args };
|
|
25
|
+
}
|
|
26
|
+
export namespace left {
|
|
27
|
+
export namespace parameters_1 {
|
|
28
|
+
export namespace controls_1 {
|
|
29
|
+
let exclude_1: string[];
|
|
30
|
+
export { exclude_1 as exclude };
|
|
31
|
+
}
|
|
32
|
+
export { controls_1 as controls };
|
|
33
|
+
}
|
|
34
|
+
export { parameters_1 as parameters };
|
|
35
|
+
export namespace args_2 {
|
|
36
|
+
let direction_2: "left";
|
|
37
|
+
export { direction_2 as direction };
|
|
38
|
+
}
|
|
39
|
+
export { args_2 as args };
|
|
40
|
+
}
|
|
41
|
+
export namespace up {
|
|
42
|
+
export namespace parameters_2 {
|
|
43
|
+
export namespace controls_2 {
|
|
44
|
+
let exclude_2: string[];
|
|
45
|
+
export { exclude_2 as exclude };
|
|
46
|
+
}
|
|
47
|
+
export { controls_2 as controls };
|
|
48
|
+
}
|
|
49
|
+
export { parameters_2 as parameters };
|
|
50
|
+
export namespace args_3 {
|
|
51
|
+
let direction_3: "up";
|
|
52
|
+
export { direction_3 as direction };
|
|
53
|
+
}
|
|
54
|
+
export { args_3 as args };
|
|
55
|
+
}
|
|
56
|
+
export namespace down {
|
|
57
|
+
export namespace parameters_3 {
|
|
58
|
+
export namespace controls_3 {
|
|
59
|
+
let exclude_3: string[];
|
|
60
|
+
export { exclude_3 as exclude };
|
|
61
|
+
}
|
|
62
|
+
export { controls_3 as controls };
|
|
63
|
+
}
|
|
64
|
+
export { parameters_3 as parameters };
|
|
65
|
+
export namespace args_4 {
|
|
66
|
+
let direction_4: "down";
|
|
67
|
+
export { direction_4 as direction };
|
|
68
|
+
}
|
|
69
|
+
export { args_4 as args };
|
|
70
|
+
}
|
|
71
|
+
import { Arrow } from '../index';
|
|
72
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Article as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export const article: {};
|
|
10
|
+
import { Article } from '../index';
|
|
11
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Bookmark as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export namespace bookmark {
|
|
10
|
+
namespace args {
|
|
11
|
+
let type: "basic";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export namespace basic {
|
|
15
|
+
export namespace parameters {
|
|
16
|
+
namespace controls {
|
|
17
|
+
let exclude: string[];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export namespace args_1 {
|
|
21
|
+
let type_1: "basic";
|
|
22
|
+
export { type_1 as type };
|
|
23
|
+
}
|
|
24
|
+
export { args_1 as args };
|
|
25
|
+
}
|
|
26
|
+
export namespace add {
|
|
27
|
+
export namespace parameters_1 {
|
|
28
|
+
export namespace controls_1 {
|
|
29
|
+
let exclude_1: string[];
|
|
30
|
+
export { exclude_1 as exclude };
|
|
31
|
+
}
|
|
32
|
+
export { controls_1 as controls };
|
|
33
|
+
}
|
|
34
|
+
export { parameters_1 as parameters };
|
|
35
|
+
export namespace args_2 {
|
|
36
|
+
let type_2: "add";
|
|
37
|
+
export { type_2 as type };
|
|
38
|
+
}
|
|
39
|
+
export { args_2 as args };
|
|
40
|
+
}
|
|
41
|
+
export namespace saved {
|
|
42
|
+
export namespace parameters_2 {
|
|
43
|
+
export namespace controls_2 {
|
|
44
|
+
let exclude_2: string[];
|
|
45
|
+
export { exclude_2 as exclude };
|
|
46
|
+
}
|
|
47
|
+
export { controls_2 as controls };
|
|
48
|
+
}
|
|
49
|
+
export { parameters_2 as parameters };
|
|
50
|
+
export namespace args_3 {
|
|
51
|
+
let type_3: "saved";
|
|
52
|
+
export { type_3 as type };
|
|
53
|
+
}
|
|
54
|
+
export { args_3 as args };
|
|
55
|
+
}
|
|
56
|
+
import { Bookmark } from '../index';
|
|
57
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { ChangeIconColor as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
namespace color {
|
|
6
|
+
namespace control {
|
|
7
|
+
let type: string;
|
|
8
|
+
let presetColors: string[];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default _default;
|
|
14
|
+
export const changeIconColor: {};
|
|
15
|
+
declare function ChangeIconColor({ color }: {
|
|
16
|
+
color: any;
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
declare namespace ChangeIconColor {
|
|
19
|
+
namespace propTypes {
|
|
20
|
+
let color_1: any;
|
|
21
|
+
export { color_1 as color };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Clock as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export const clock: {};
|
|
10
|
+
import { Clock } from '../index';
|
|
11
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Copy as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export const copy: {};
|
|
10
|
+
import { Copy } from '../index';
|
|
11
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Cross as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export const cross: {};
|
|
10
|
+
import { Cross } from '../index';
|
|
11
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Filter as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export const filter: {};
|
|
10
|
+
import { Filter } from '../index';
|
|
11
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.filter = exports["default"] = void 0;
|
|
7
|
+
var _index = require("../index");
|
|
8
|
+
var _constants = require("../../storybook/constants");
|
|
9
|
+
var _default = exports["default"] = {
|
|
10
|
+
title: 'Icon/Filter',
|
|
11
|
+
component: _index.Filter,
|
|
12
|
+
argTypes: {
|
|
13
|
+
releaseBranch: _constants.BRANCH_STORYBOOK_ARG_TYPE
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var filter = exports.filter = {};
|