@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,92 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { PillButton as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { THEME_STORYBOOK_ARG_TYPE as theme };
|
|
6
|
+
export let type: {
|
|
7
|
+
defaultValue: any;
|
|
8
|
+
options: any[];
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { SIZE_STORYBOOK_ARG_TYPE as size };
|
|
14
|
+
export let style: {
|
|
15
|
+
defaultValue: any;
|
|
16
|
+
options: any[];
|
|
17
|
+
control: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export namespace showLeft {
|
|
22
|
+
let defaultValue: boolean;
|
|
23
|
+
namespace control {
|
|
24
|
+
let type_1: string;
|
|
25
|
+
export { type_1 as type };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export namespace showRight {
|
|
29
|
+
let defaultValue_1: boolean;
|
|
30
|
+
export { defaultValue_1 as defaultValue };
|
|
31
|
+
export namespace control_1 {
|
|
32
|
+
let type_2: string;
|
|
33
|
+
export { type_2 as type };
|
|
34
|
+
}
|
|
35
|
+
export { control_1 as control };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export default _default;
|
|
40
|
+
export namespace pillButton {
|
|
41
|
+
namespace args {
|
|
42
|
+
export let text: string;
|
|
43
|
+
export let size: "S";
|
|
44
|
+
export let theme: "normal";
|
|
45
|
+
let style_1: "brand";
|
|
46
|
+
export { style_1 as style };
|
|
47
|
+
let type_3: "primary";
|
|
48
|
+
export { type_3 as type };
|
|
49
|
+
export let disabled: boolean;
|
|
50
|
+
export let loading: boolean;
|
|
51
|
+
}
|
|
52
|
+
namespace parameters {
|
|
53
|
+
namespace controls {
|
|
54
|
+
let exclude: string[];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export namespace toggleIconDisplay {
|
|
59
|
+
export function render(args: any): JSX.Element;
|
|
60
|
+
export namespace args_1 {
|
|
61
|
+
let showLeft_1: boolean;
|
|
62
|
+
export { showLeft_1 as showLeft };
|
|
63
|
+
let showRight_1: boolean;
|
|
64
|
+
export { showRight_1 as showRight };
|
|
65
|
+
let text_1: string;
|
|
66
|
+
export { text_1 as text };
|
|
67
|
+
let size_1: "S";
|
|
68
|
+
export { size_1 as size };
|
|
69
|
+
let theme_1: "normal";
|
|
70
|
+
export { theme_1 as theme };
|
|
71
|
+
let style_2: "brand";
|
|
72
|
+
export { style_2 as style };
|
|
73
|
+
let type_4: "primary";
|
|
74
|
+
export { type_4 as type };
|
|
75
|
+
let disabled_1: boolean;
|
|
76
|
+
export { disabled_1 as disabled };
|
|
77
|
+
let loading_1: boolean;
|
|
78
|
+
export { loading_1 as loading };
|
|
79
|
+
}
|
|
80
|
+
export { args_1 as args };
|
|
81
|
+
export namespace parameters_1 {
|
|
82
|
+
export namespace controls_1 {
|
|
83
|
+
let exclude_1: string[];
|
|
84
|
+
export { exclude_1 as exclude };
|
|
85
|
+
}
|
|
86
|
+
export { controls_1 as controls };
|
|
87
|
+
}
|
|
88
|
+
export { parameters_1 as parameters };
|
|
89
|
+
}
|
|
90
|
+
import PillButton from '../components/pillButton';
|
|
91
|
+
import { THEME_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
92
|
+
import { SIZE_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { TextButton as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { THEME_STORYBOOK_ARG_TYPE as theme };
|
|
6
|
+
export let style: {
|
|
7
|
+
defaultValue: any;
|
|
8
|
+
options: any[];
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { SIZE_STORYBOOK_ARG_TYPE as size };
|
|
14
|
+
export namespace showLeft {
|
|
15
|
+
let defaultValue: boolean;
|
|
16
|
+
namespace control {
|
|
17
|
+
let type: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export namespace showRight {
|
|
21
|
+
let defaultValue_1: boolean;
|
|
22
|
+
export { defaultValue_1 as defaultValue };
|
|
23
|
+
export namespace control_1 {
|
|
24
|
+
let type_1: string;
|
|
25
|
+
export { type_1 as type };
|
|
26
|
+
}
|
|
27
|
+
export { control_1 as control };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default _default;
|
|
32
|
+
export namespace textButton {
|
|
33
|
+
namespace args {
|
|
34
|
+
export let text: string;
|
|
35
|
+
export let size: "S";
|
|
36
|
+
export let theme: "normal";
|
|
37
|
+
let style_1: "dark";
|
|
38
|
+
export { style_1 as style };
|
|
39
|
+
export let active: boolean;
|
|
40
|
+
export let disabled: boolean;
|
|
41
|
+
export let loading: boolean;
|
|
42
|
+
export let leftIconComponent: JSX.Element;
|
|
43
|
+
export let rightIconComponent: JSX.Element;
|
|
44
|
+
}
|
|
45
|
+
namespace parameters {
|
|
46
|
+
namespace controls {
|
|
47
|
+
let exclude: string[];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export namespace toggleIconDisplay {
|
|
52
|
+
export function render(args: any): JSX.Element;
|
|
53
|
+
export namespace args_1 {
|
|
54
|
+
let showLeft_1: boolean;
|
|
55
|
+
export { showLeft_1 as showLeft };
|
|
56
|
+
let showRight_1: boolean;
|
|
57
|
+
export { showRight_1 as showRight };
|
|
58
|
+
let text_1: string;
|
|
59
|
+
export { text_1 as text };
|
|
60
|
+
let size_1: "S";
|
|
61
|
+
export { size_1 as size };
|
|
62
|
+
let theme_1: "normal";
|
|
63
|
+
export { theme_1 as theme };
|
|
64
|
+
let style_2: "dark";
|
|
65
|
+
export { style_2 as style };
|
|
66
|
+
let active_1: boolean;
|
|
67
|
+
export { active_1 as active };
|
|
68
|
+
let disabled_1: boolean;
|
|
69
|
+
export { disabled_1 as disabled };
|
|
70
|
+
let loading_1: boolean;
|
|
71
|
+
export { loading_1 as loading };
|
|
72
|
+
}
|
|
73
|
+
export { args_1 as args };
|
|
74
|
+
export namespace parameters_1 {
|
|
75
|
+
export namespace controls_1 {
|
|
76
|
+
let exclude_1: string[];
|
|
77
|
+
export { exclude_1 as exclude };
|
|
78
|
+
}
|
|
79
|
+
export { controls_1 as controls };
|
|
80
|
+
}
|
|
81
|
+
export { parameters_1 as parameters };
|
|
82
|
+
}
|
|
83
|
+
import TextButton from '../components/textButton';
|
|
84
|
+
import { THEME_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
85
|
+
import { SIZE_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { ToggleButton as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
namespace value {
|
|
6
|
+
let defaultValue: boolean;
|
|
7
|
+
let options: boolean[];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export default _default;
|
|
12
|
+
export namespace toggleButton {
|
|
13
|
+
namespace args {
|
|
14
|
+
let value_1: boolean;
|
|
15
|
+
export { value_1 as value };
|
|
16
|
+
export let labelOn: string;
|
|
17
|
+
export let labelOff: string;
|
|
18
|
+
export let disabled: boolean;
|
|
19
|
+
export function onChange(): void;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import ToggleButton from '../components/toggleButton';
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
export function getFilledPillButtonTheme(theme: any, disabled: any, style: any): {
|
|
2
|
+
color: "#ffffff";
|
|
3
|
+
bgColor: "#bbbbbb";
|
|
4
|
+
hoverColor: "#ffffff";
|
|
5
|
+
hoverBgColor: "#bbbbbb";
|
|
6
|
+
} | {
|
|
7
|
+
color: "#666666";
|
|
8
|
+
bgColor: "#9c9c9c";
|
|
9
|
+
hoverColor: "#666666";
|
|
10
|
+
hoverBgColor: "#9c9c9c";
|
|
11
|
+
} | {
|
|
12
|
+
color: "#052142";
|
|
13
|
+
bgColor: "#ffffff";
|
|
14
|
+
hoverColor: "#052142";
|
|
15
|
+
hoverBgColor: "#e2e2e2";
|
|
16
|
+
} | {
|
|
17
|
+
color: "#052142";
|
|
18
|
+
bgColor: "#cdcdcd";
|
|
19
|
+
hoverColor: "#052142";
|
|
20
|
+
hoverBgColor: "#bbbbbb";
|
|
21
|
+
} | {
|
|
22
|
+
color: "#052142";
|
|
23
|
+
bgColor: "#f0d5be";
|
|
24
|
+
hoverColor: "#052142";
|
|
25
|
+
hoverBgColor: "#e3be98";
|
|
26
|
+
} | {
|
|
27
|
+
color: "#404040";
|
|
28
|
+
bgColor: "#cdcdcd";
|
|
29
|
+
hoverColor: "#404040";
|
|
30
|
+
hoverBgColor: "#bbbbbb";
|
|
31
|
+
} | {
|
|
32
|
+
color: "#ffffff";
|
|
33
|
+
bgColor: "#404040";
|
|
34
|
+
hoverColor: "#ffffff";
|
|
35
|
+
hoverBgColor: "#000000";
|
|
36
|
+
} | {
|
|
37
|
+
color: "#404040";
|
|
38
|
+
bgColor: "#ffffff";
|
|
39
|
+
hoverColor: "#404040";
|
|
40
|
+
hoverBgColor: "#e2e2e2";
|
|
41
|
+
} | {
|
|
42
|
+
color: "#ffffff";
|
|
43
|
+
bgColor: "#c40d23";
|
|
44
|
+
hoverColor: "#ffffff";
|
|
45
|
+
hoverBgColor: "#9b051e";
|
|
46
|
+
};
|
|
47
|
+
export function getOutlinePillButtonTheme(theme: any, disabled: any, style: any): {
|
|
48
|
+
color: "#bbbbbb";
|
|
49
|
+
bgColor: "#bbbbbb";
|
|
50
|
+
hoverColor: "#bbbbbb";
|
|
51
|
+
hoverBgColor: "#bbbbbb";
|
|
52
|
+
} | {
|
|
53
|
+
color: "#9c9c9c";
|
|
54
|
+
bgColor: "#9c9c9c";
|
|
55
|
+
hoverColor: "#9c9c9c";
|
|
56
|
+
hoverBgColor: "#9c9c9c";
|
|
57
|
+
} | {
|
|
58
|
+
color: "#ffffff";
|
|
59
|
+
bgColor: "#ffffff";
|
|
60
|
+
hoverColor: "#e2e2e2";
|
|
61
|
+
hoverBgColor: "#e2e2e2";
|
|
62
|
+
} | {
|
|
63
|
+
color: "#cdcdcd";
|
|
64
|
+
bgColor: "#cdcdcd";
|
|
65
|
+
hoverColor: "#bbbbbb";
|
|
66
|
+
hoverBgColor: "#bbbbbb";
|
|
67
|
+
} | {
|
|
68
|
+
color: "#f0d5be";
|
|
69
|
+
bgColor: "#f0d5be";
|
|
70
|
+
hoverColor: "#e3be98";
|
|
71
|
+
hoverBgColor: "#e3be98";
|
|
72
|
+
} | {
|
|
73
|
+
color: "#404040";
|
|
74
|
+
bgColor: "#404040";
|
|
75
|
+
hoverColor: "#000000";
|
|
76
|
+
hoverBgColor: "#000000";
|
|
77
|
+
} | {
|
|
78
|
+
color: "#404040";
|
|
79
|
+
bgColor: "#ffffff";
|
|
80
|
+
hoverColor: "#404040";
|
|
81
|
+
hoverBgColor: "#e2e2e2";
|
|
82
|
+
} | {
|
|
83
|
+
color: "#c40d23";
|
|
84
|
+
bgColor: "#c40d23";
|
|
85
|
+
hoverColor: "#9b051e";
|
|
86
|
+
hoverBgColor: "#9b051e";
|
|
87
|
+
};
|
|
88
|
+
export function getPrimaryIconButtonTheme(theme: any, isActive: any, isDisabled: any): {
|
|
89
|
+
color: "#bbbbbb";
|
|
90
|
+
hoverColor: "#bbbbbb";
|
|
91
|
+
} | {
|
|
92
|
+
color: "#ffffff";
|
|
93
|
+
hoverColor: "#e3be98";
|
|
94
|
+
} | {
|
|
95
|
+
color: "#e3be98";
|
|
96
|
+
hoverColor: "#e3be98";
|
|
97
|
+
} | {
|
|
98
|
+
color: "#ffffff";
|
|
99
|
+
hoverColor: "#e2e2e2";
|
|
100
|
+
} | {
|
|
101
|
+
color: "#ffffff";
|
|
102
|
+
hoverColor: "#ffffff";
|
|
103
|
+
} | {
|
|
104
|
+
color: "#c40d23";
|
|
105
|
+
hoverColor: "#c40d23";
|
|
106
|
+
} | {
|
|
107
|
+
color: "#808080";
|
|
108
|
+
hoverColor: "#404040";
|
|
109
|
+
};
|
|
110
|
+
export function getSecondaryIconButtonTheme(theme: any, isActive: any, isDisabled: any): {
|
|
111
|
+
color: "#bbbbbb";
|
|
112
|
+
hoverColor: "#bbbbbb";
|
|
113
|
+
} | {
|
|
114
|
+
color: "#bbbbbb";
|
|
115
|
+
hoverColor: "#e3be98";
|
|
116
|
+
} | {
|
|
117
|
+
color: "#e3be98";
|
|
118
|
+
hoverColor: "#e3be98";
|
|
119
|
+
} | {
|
|
120
|
+
color: "#808080";
|
|
121
|
+
hoverColor: "#ffffff";
|
|
122
|
+
} | {
|
|
123
|
+
color: "#808080";
|
|
124
|
+
hoverColor: "#808080";
|
|
125
|
+
} | {
|
|
126
|
+
color: "#c40d23";
|
|
127
|
+
hoverColor: "#c40d23";
|
|
128
|
+
} | {
|
|
129
|
+
color: "#bbbbbb";
|
|
130
|
+
hoverColor: "#808080";
|
|
131
|
+
};
|
|
132
|
+
export function getIconWithTextButtonTheme(theme: any, isActive: any, isDisabled: any): {
|
|
133
|
+
color: "#bbbbbb";
|
|
134
|
+
hoverColor: "#bbbbbb";
|
|
135
|
+
} | {
|
|
136
|
+
color: "#e2e2e2";
|
|
137
|
+
hoverColor: "#e3be98";
|
|
138
|
+
} | {
|
|
139
|
+
color: "#e3be98";
|
|
140
|
+
hoverColor: "#e3be98";
|
|
141
|
+
} | {
|
|
142
|
+
color: "#f1f1f1";
|
|
143
|
+
hoverColor: "#e2e2e2";
|
|
144
|
+
} | {
|
|
145
|
+
color: "#ffffff";
|
|
146
|
+
hoverColor: "#ffffff";
|
|
147
|
+
} | {
|
|
148
|
+
color: "#c40d23";
|
|
149
|
+
hoverColor: "#c40d23";
|
|
150
|
+
} | {
|
|
151
|
+
color: "#808080";
|
|
152
|
+
hoverColor: "#c40d23";
|
|
153
|
+
};
|
|
154
|
+
export function getTextButtonTheme(theme: any, style: any): {
|
|
155
|
+
color: "#ffffff";
|
|
156
|
+
hoverColor: "#e3be98";
|
|
157
|
+
} | {
|
|
158
|
+
color: "#cdcdcd";
|
|
159
|
+
hoverColor: "#bbbbbb";
|
|
160
|
+
} | {
|
|
161
|
+
color: "#f0d5be";
|
|
162
|
+
hoverColor: "#e3be98";
|
|
163
|
+
} | {
|
|
164
|
+
color: "#404040";
|
|
165
|
+
hoverColor: "#000000";
|
|
166
|
+
} | {
|
|
167
|
+
color: "#ffffff";
|
|
168
|
+
hoverColor: "#e2e2e2";
|
|
169
|
+
} | {
|
|
170
|
+
color: "#404040";
|
|
171
|
+
hoverColor: "#c40d23";
|
|
172
|
+
} | {
|
|
173
|
+
color: "#808080";
|
|
174
|
+
hoverColor: "#404040";
|
|
175
|
+
} | {
|
|
176
|
+
color: "#c40d23";
|
|
177
|
+
hoverColor: "#9b051e";
|
|
178
|
+
};
|
|
179
|
+
export function getDisabledTextButtonTheme(theme: any): {
|
|
180
|
+
color: "#9c9c9c";
|
|
181
|
+
hoverColor: "#9c9c9c";
|
|
182
|
+
} | {
|
|
183
|
+
color: "#bbbbbb";
|
|
184
|
+
hoverColor: "#bbbbbb";
|
|
185
|
+
};
|
|
186
|
+
export function getActiveTextButtonTheme(theme: any, style: any): {
|
|
187
|
+
color: "#bbbbbb";
|
|
188
|
+
hoverColor: "#bbbbbb";
|
|
189
|
+
} | {
|
|
190
|
+
color: "#e3be98";
|
|
191
|
+
hoverColor: "#e3be98";
|
|
192
|
+
} | {
|
|
193
|
+
color: "#000000";
|
|
194
|
+
hoverColor: "#000000";
|
|
195
|
+
} | {
|
|
196
|
+
color: "#e2e2e2";
|
|
197
|
+
hoverColor: "#e2e2e2";
|
|
198
|
+
} | {
|
|
199
|
+
color: "#c40d23";
|
|
200
|
+
hoverColor: "#c40d23";
|
|
201
|
+
} | {
|
|
202
|
+
color: "#404040";
|
|
203
|
+
hoverColor: "#404040";
|
|
204
|
+
} | {
|
|
205
|
+
color: "#9b051e";
|
|
206
|
+
hoverColor: "#9b051e";
|
|
207
|
+
};
|
|
208
|
+
declare namespace _default {
|
|
209
|
+
export { getFilledPillButtonTheme };
|
|
210
|
+
export { getOutlinePillButtonTheme };
|
|
211
|
+
export { getPrimaryIconButtonTheme };
|
|
212
|
+
export { getSecondaryIconButtonTheme };
|
|
213
|
+
export { getIconWithTextButtonTheme };
|
|
214
|
+
export { getTextButtonTheme };
|
|
215
|
+
export { getDisabledTextButtonTheme };
|
|
216
|
+
export { getActiveTextButtonTheme };
|
|
217
|
+
}
|
|
218
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default ArticleCard;
|
|
2
|
+
declare function ArticleCard({ title, description, date, image, category, size, isBookmarked, toggleBookmark, releaseBranch, showIsBookmarked, style, slug, }: {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
date?: string;
|
|
6
|
+
image?: {};
|
|
7
|
+
category?: string;
|
|
8
|
+
size?: "S";
|
|
9
|
+
isBookmarked?: boolean;
|
|
10
|
+
toggleBookmark: any;
|
|
11
|
+
releaseBranch?: string;
|
|
12
|
+
showIsBookmarked?: boolean;
|
|
13
|
+
style?: string;
|
|
14
|
+
slug?: string;
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
declare namespace ArticleCard {
|
|
17
|
+
export namespace propTypes {
|
|
18
|
+
export let title: any;
|
|
19
|
+
export let description: any;
|
|
20
|
+
export let date: any;
|
|
21
|
+
export let image: any;
|
|
22
|
+
export let category: any;
|
|
23
|
+
export let size: any;
|
|
24
|
+
export let isBookmarked: any;
|
|
25
|
+
export let toggleBookmark: any;
|
|
26
|
+
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
27
|
+
export let showIsBookmarked: any;
|
|
28
|
+
export let style: any;
|
|
29
|
+
export let slug: any;
|
|
30
|
+
}
|
|
31
|
+
export { Size };
|
|
32
|
+
}
|
|
33
|
+
import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
|
|
34
|
+
import { Size } from '../../shared-enum';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default Dialog;
|
|
2
|
+
declare function Dialog({ text, size, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
text?: string;
|
|
5
|
+
size?: "S";
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
declare namespace Dialog {
|
|
8
|
+
export namespace propTypes {
|
|
9
|
+
let text: any;
|
|
10
|
+
let size: any;
|
|
11
|
+
}
|
|
12
|
+
export { Size };
|
|
13
|
+
}
|
|
14
|
+
import { Size } from '../../shared-enum';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default ShortStory;
|
|
2
|
+
declare function ShortStory({ title, date, image, category, size, releaseBranch, style, slug, }: {
|
|
3
|
+
title?: string;
|
|
4
|
+
date?: string;
|
|
5
|
+
image?: {};
|
|
6
|
+
category?: string;
|
|
7
|
+
size?: "S";
|
|
8
|
+
releaseBranch?: string;
|
|
9
|
+
style?: string;
|
|
10
|
+
slug?: string;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
declare namespace ShortStory {
|
|
13
|
+
export namespace propTypes {
|
|
14
|
+
export let title: any;
|
|
15
|
+
export let date: any;
|
|
16
|
+
export let image: any;
|
|
17
|
+
export let category: any;
|
|
18
|
+
export let size: any;
|
|
19
|
+
export { BRANCH_PROP_TYPES as releaseBranch };
|
|
20
|
+
export let style: any;
|
|
21
|
+
export let slug: any;
|
|
22
|
+
}
|
|
23
|
+
export { Size };
|
|
24
|
+
}
|
|
25
|
+
import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
|
|
26
|
+
import { Size } from '../../shared-enum';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { Dialog };
|
|
3
|
+
export { ArticleCard };
|
|
4
|
+
export { ShortStory };
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
import Dialog from './components/dialog';
|
|
8
|
+
import ArticleCard from './components/article-card';
|
|
9
|
+
import ShortStory from './components/short-story';
|
|
10
|
+
export { Dialog, ArticleCard, ShortStory };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { ArticleCard as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
export { SIZE_STORYBOOK_ARG_TYPE as size };
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export default _default;
|
|
10
|
+
export namespace article {
|
|
11
|
+
function render(args: any): JSX.Element;
|
|
12
|
+
namespace args {
|
|
13
|
+
export let size: "L";
|
|
14
|
+
let title_1: string;
|
|
15
|
+
export { title_1 as title };
|
|
16
|
+
export let description: string;
|
|
17
|
+
export let category: string;
|
|
18
|
+
export let date: string;
|
|
19
|
+
export namespace image {
|
|
20
|
+
let src: string;
|
|
21
|
+
let alt: string;
|
|
22
|
+
}
|
|
23
|
+
export let releaseBranch: string;
|
|
24
|
+
export let isBookmarked: boolean;
|
|
25
|
+
export let showIsBookmarked: boolean;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
import ArticleCard from '../components/article-card';
|
|
29
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
30
|
+
import { SIZE_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Dialog as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { SIZE_STORYBOOK_ARG_TYPE as size };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export namespace dialog {
|
|
10
|
+
function render(args: any): JSX.Element;
|
|
11
|
+
namespace args {
|
|
12
|
+
let text: string;
|
|
13
|
+
let size: "S";
|
|
14
|
+
}
|
|
15
|
+
namespace parameters {
|
|
16
|
+
namespace backgrounds {
|
|
17
|
+
let _default: string;
|
|
18
|
+
export { _default as default };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import Dialog from '../components/dialog';
|
|
23
|
+
import { SIZE_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { ShortStory as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
|
|
6
|
+
export { SIZE_STORYBOOK_ARG_TYPE as size };
|
|
7
|
+
export let style: {
|
|
8
|
+
defaultValue: any;
|
|
9
|
+
options: any[];
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export default _default;
|
|
17
|
+
export namespace shortStory {
|
|
18
|
+
function render(args: any): JSX.Element;
|
|
19
|
+
namespace args {
|
|
20
|
+
export let size: "L";
|
|
21
|
+
let title_1: string;
|
|
22
|
+
export { title_1 as title };
|
|
23
|
+
export let category: string;
|
|
24
|
+
export let date: string;
|
|
25
|
+
export namespace image {
|
|
26
|
+
let src: string;
|
|
27
|
+
let alt: string;
|
|
28
|
+
}
|
|
29
|
+
export let releaseBranch: string;
|
|
30
|
+
let style_1: string;
|
|
31
|
+
export { style_1 as style };
|
|
32
|
+
export let slug: string;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
import ShortStory from '../components/short-story';
|
|
36
|
+
import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
37
|
+
import { SIZE_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Checkbox as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
namespace value {
|
|
6
|
+
let defaultValue: boolean;
|
|
7
|
+
let options: boolean[];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export default _default;
|
|
12
|
+
export namespace checkbox {
|
|
13
|
+
namespace args {
|
|
14
|
+
export let label: string;
|
|
15
|
+
let value_1: boolean;
|
|
16
|
+
export { value_1 as value };
|
|
17
|
+
export let disabled: boolean;
|
|
18
|
+
export function onChange(e: any): void;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
import Checkbox from '.';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function Checkbox({ value, label, disabled, onChange, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
value?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onChange?: () => void;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export namespace Checkbox {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
let value: any;
|
|
11
|
+
let label: any;
|
|
12
|
+
let disabled: any;
|
|
13
|
+
let onChange: any;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export default Checkbox;
|