@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.
Files changed (153) hide show
  1. package/lib/badge/badge.stories.d.ts +13 -0
  2. package/lib/badge/index.d.ts +14 -0
  3. package/lib/bookmark-list/bookmark.d.ts +9 -0
  4. package/lib/bookmark-list/bookmarks.d.ts +15 -0
  5. package/lib/bookmark-list/customized-link.d.ts +19 -0
  6. package/lib/bookmark-list/image-wrapper.d.ts +27 -0
  7. package/lib/bookmark-list/index.d.ts +26 -0
  8. package/lib/bookmark-list/redirect-to-sign-in.d.ts +9 -0
  9. package/lib/bookmark-list/stories/bookmark.stories.d.ts +9 -0
  10. package/lib/bookmark-widget/index.d.ts +13 -0
  11. package/lib/button/components/iconButton.d.ts +22 -0
  12. package/lib/button/components/iconWithTextButton.d.ts +21 -0
  13. package/lib/button/components/link.d.ts +45 -0
  14. package/lib/button/components/menuButton.d.ts +29 -0
  15. package/lib/button/components/pillButton.d.ts +34 -0
  16. package/lib/button/components/textButton.d.ts +32 -0
  17. package/lib/button/components/toggleButton.d.ts +18 -0
  18. package/lib/button/enums/index.d.ts +13 -0
  19. package/lib/button/index.d.ts +20 -0
  20. package/lib/button/stories/iconButton.stories.d.ts +42 -0
  21. package/lib/button/stories/iconWithTextButton.stories.d.ts +37 -0
  22. package/lib/button/stories/link.stories.d.ts +139 -0
  23. package/lib/button/stories/menuButton.stories.d.ts +26 -0
  24. package/lib/button/stories/pillButton.stories.d.ts +92 -0
  25. package/lib/button/stories/textButton.stories.d.ts +85 -0
  26. package/lib/button/stories/toggleButton.stories.d.ts +22 -0
  27. package/lib/button/utils/size.d.ts +8 -0
  28. package/lib/button/utils/theme.d.ts +218 -0
  29. package/lib/card/components/article-card.d.ts +34 -0
  30. package/lib/card/components/dialog.d.ts +14 -0
  31. package/lib/card/components/short-story.d.ts +26 -0
  32. package/lib/card/index.d.ts +10 -0
  33. package/lib/card/stories/articleCard.stories.d.ts +30 -0
  34. package/lib/card/stories/dialog.stories.d.ts +23 -0
  35. package/lib/card/stories/shortStory.stories.d.ts +37 -0
  36. package/lib/checkbox/checkbox.stories.d.ts +21 -0
  37. package/lib/checkbox/index.d.ts +16 -0
  38. package/lib/color.stories.d.ts +63 -0
  39. package/lib/confirmation/index.d.ts +25 -0
  40. package/lib/customized-link.d.ts +12 -0
  41. package/lib/divider.d.ts +15 -0
  42. package/lib/divider.stories.d.ts +33 -0
  43. package/lib/donation-link.d.ts +10 -0
  44. package/lib/empty-state/enums/index.d.ts +5 -0
  45. package/lib/empty-state/index.d.ts +30 -0
  46. package/lib/empty-state/stories/empty-guide.stories.d.ts +29 -0
  47. package/lib/error/index.d.ts +8 -0
  48. package/lib/error/message.d.ts +9 -0
  49. package/lib/footer/constants/links.d.ts +19 -0
  50. package/lib/footer/footer.stories.d.ts +15 -0
  51. package/lib/footer/index.d.ts +9 -0
  52. package/lib/footer/link.d.ts +18 -0
  53. package/lib/footer/logo.d.ts +9 -0
  54. package/lib/hook/index.d.ts +10 -0
  55. package/lib/hook/use-bookmark.d.ts +15 -0
  56. package/lib/hook/use-font-face-observer.d.ts +2 -0
  57. package/lib/hook/use-outside-click.d.ts +2 -0
  58. package/lib/icon/enum/index.d.ts +25 -0
  59. package/lib/icon/index.d.ts +227 -0
  60. package/lib/icon/index.js +4 -2
  61. package/lib/icon/stories/arrow.stories.d.ts +72 -0
  62. package/lib/icon/stories/article.stories.d.ts +11 -0
  63. package/lib/icon/stories/bookmark.stories.d.ts +57 -0
  64. package/lib/icon/stories/changeIconColor.stories.d.ts +23 -0
  65. package/lib/icon/stories/clock.stories.d.ts +11 -0
  66. package/lib/icon/stories/copy.stories.d.ts +11 -0
  67. package/lib/icon/stories/cross.stories.d.ts +11 -0
  68. package/lib/icon/stories/filter.stories.d.ts +11 -0
  69. package/lib/icon/stories/filter.stories.js +16 -0
  70. package/lib/icon/stories/hamburger.stories.d.ts +11 -0
  71. package/lib/icon/stories/home.stories.d.ts +11 -0
  72. package/lib/icon/stories/letter.stories.d.ts +11 -0
  73. package/lib/icon/stories/loading.stories.d.ts +11 -0
  74. package/lib/icon/stories/member.stories.d.ts +11 -0
  75. package/lib/icon/stories/printer.stories.d.ts +11 -0
  76. package/lib/icon/stories/search.stories.d.ts +11 -0
  77. package/lib/icon/stories/share.stories.d.ts +11 -0
  78. package/lib/icon/stories/socialMedia.stories.d.ts +25 -0
  79. package/lib/icon/stories/text.stories.d.ts +11 -0
  80. package/lib/icon/stories/topic.stories.d.ts +11 -0
  81. package/lib/image-with-fallback.d.ts +16 -0
  82. package/lib/input/components/search-bar.d.ts +29 -0
  83. package/lib/input/components/text-field.d.ts +26 -0
  84. package/lib/input/enums/index.d.ts +13 -0
  85. package/lib/input/index.d.ts +8 -0
  86. package/lib/input/stories/search-bar.stories.d.ts +33 -0
  87. package/lib/input/stories/text-field.stories.d.ts +37 -0
  88. package/lib/input/utils/theme.d.ts +17 -0
  89. package/lib/is-fetching-wrapper.d.ts +14 -0
  90. package/lib/junior-link.d.ts +7 -0
  91. package/lib/link-with-tracker.d.ts +29 -0
  92. package/lib/listing-page/components/card-list.d.ts +20 -0
  93. package/lib/listing-page/components/image.d.ts +29 -0
  94. package/lib/listing-page/components/list-item.d.ts +27 -0
  95. package/lib/listing-page/components/list.d.ts +31 -0
  96. package/lib/listing-page/components/page-content.d.ts +2 -0
  97. package/lib/listing-page/components/topics/index.d.ts +25 -0
  98. package/lib/listing-page/components/topics/post-item.d.ts +19 -0
  99. package/lib/listing-page/components/topics/posts.d.ts +2 -0
  100. package/lib/listing-page/components/topics/section.d.ts +20 -0
  101. package/lib/listing-page/components/topics/topic-item.d.ts +22 -0
  102. package/lib/listing-page/constants/mockup-spec.d.ts +46 -0
  103. package/lib/listing-page/constants/predefined-css.d.ts +2 -0
  104. package/lib/listing-page/constants/prop-types.d.ts +1 -0
  105. package/lib/listing-page/constants/topics.d.ts +6 -0
  106. package/lib/listing-page/index.d.ts +10 -0
  107. package/lib/listing-page/stories/cardList.stories.d.ts +72 -0
  108. package/lib/logo/components/logo-footer.d.ts +17 -0
  109. package/lib/logo/components/logo-header.d.ts +18 -0
  110. package/lib/logo/components/logo-loading-fallback.d.ts +10 -0
  111. package/lib/logo/components/logo-symbol.d.ts +19 -0
  112. package/lib/logo/index.d.ts +12 -0
  113. package/lib/logo/stories/logoFooter.stories.d.ts +11 -0
  114. package/lib/logo/stories/logoHeader.stories.d.ts +15 -0
  115. package/lib/logo/stories/logoLoadingFallback.stories.d.ts +11 -0
  116. package/lib/logo/stories/logoSymbol.stories.d.ts +15 -0
  117. package/lib/logo/utils/path.d.ts +5 -0
  118. package/lib/material-icon.d.ts +17 -0
  119. package/lib/mobile-member-role-card/index.d.ts +26 -0
  120. package/lib/mobile-member-role-card/stories/member-role-card.stories.d.ts +34 -0
  121. package/lib/mobile-pop-up-modal.d.ts +28 -0
  122. package/lib/more.d.ts +10 -0
  123. package/lib/pagination/index.d.ts +36 -0
  124. package/lib/podcast-link.d.ts +7 -0
  125. package/lib/rwd.d.ts +5 -0
  126. package/lib/shared-enum.d.ts +4 -0
  127. package/lib/side-bar/index.d.ts +81 -0
  128. package/lib/simple-header/index.d.ts +2 -0
  129. package/lib/simple-header/simpleHeader.stories.d.ts +9 -0
  130. package/lib/snack-bar/components/snack-bar.d.ts +13 -0
  131. package/lib/snack-bar/hooks/use-snack-bar.d.ts +9 -0
  132. package/lib/snack-bar/index.d.ts +8 -0
  133. package/lib/snack-bar/stories/snackBar.stories.d.ts +28 -0
  134. package/lib/snack-bar/utils/theme.d.ts +11 -0
  135. package/lib/storybook/constants/index.d.ts +21 -0
  136. package/lib/storybook/utils/get-enum-arg.d.ts +7 -0
  137. package/lib/table-of-contents/index.d.ts +200 -0
  138. package/lib/text/constants/headline-type.d.ts +4 -0
  139. package/lib/text/enums/index.d.ts +9 -0
  140. package/lib/text/headline.d.ts +60 -0
  141. package/lib/text/paragraph.d.ts +49 -0
  142. package/lib/text/stories/headline.stories.d.ts +112 -0
  143. package/lib/text/stories/paragraph.stories.d.ts +78 -0
  144. package/lib/text/utils/webfonts.d.ts +10 -0
  145. package/lib/title-bar/components/tab.d.ts +13 -0
  146. package/lib/title-bar/components/title1.d.ts +11 -0
  147. package/lib/title-bar/components/title2.d.ts +13 -0
  148. package/lib/title-bar/index.d.ts +10 -0
  149. package/lib/title-bar/stories/tab.stories.d.ts +43 -0
  150. package/lib/title-bar/stories/title1.stories.d.ts +29 -0
  151. package/lib/title-bar/stories/title2.stories.d.ts +29 -0
  152. package/lib/utils/link-with-params.d.ts +6 -0
  153. package/package.json +9 -7
@@ -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 = {};
@@ -0,0 +1,11 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { Hamburger as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const hamburger: {};
10
+ import { Hamburger } 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 { Home as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const home: {};
10
+ import { Home } 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 { Letter as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const letter: {};
10
+ import { Letter } 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 { Loading as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const loading: {};
10
+ import { Loading } 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 { Member as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const member: {};
10
+ import { Member } 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 { Printer as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const printer: {};
10
+ import { Printer } 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 { Search as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const search: {};
10
+ import { Search } 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 { Share as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const share: {};
10
+ import { Share } from '../index';
11
+ import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
@@ -0,0 +1,25 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { SocialMedia as component };
4
+ export namespace argTypes {
5
+ export let type: {
6
+ defaultValue: any;
7
+ options: any[];
8
+ control: {
9
+ type: string;
10
+ };
11
+ };
12
+ export let mediaType: {
13
+ defaultValue: any;
14
+ options: any[];
15
+ control: {
16
+ type: string;
17
+ };
18
+ };
19
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
20
+ }
21
+ }
22
+ export default _default;
23
+ export const socialMedia: {};
24
+ import { SocialMedia } from '../index';
25
+ import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
@@ -0,0 +1,11 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { Text as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const text: {};
10
+ import { Text } 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 { Topic as component };
4
+ export namespace argTypes {
5
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
6
+ }
7
+ }
8
+ export default _default;
9
+ export const topic: {};
10
+ import { Topic } from '../index';
11
+ import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
@@ -0,0 +1,16 @@
1
+ export default Image;
2
+ declare function Image({ src, alt, srcSet, releaseBranch, }: {
3
+ src: any;
4
+ alt?: string;
5
+ srcSet?: string;
6
+ releaseBranch?: string;
7
+ }): JSX.Element;
8
+ declare namespace Image {
9
+ namespace propTypes {
10
+ export let alt: any;
11
+ export let src: any;
12
+ export let srcSet: any;
13
+ export { BRANCH_PROP_TYPES as releaseBranch };
14
+ }
15
+ }
16
+ import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
@@ -0,0 +1,29 @@
1
+ export default SearchBar;
2
+ declare function SearchBar({ placeholder, theme, releaseBranch, onSearch, onClose, handleBlur, autofocus, widthType, ...props }: {
3
+ [x: string]: any;
4
+ placeholder?: string;
5
+ theme?: "normal";
6
+ releaseBranch?: string;
7
+ onSearch?: () => void;
8
+ onClose?: () => void;
9
+ handleBlur?: () => void;
10
+ autofocus?: boolean;
11
+ widthType?: "fit";
12
+ }): JSX.Element;
13
+ declare namespace SearchBar {
14
+ export namespace propTypes {
15
+ export let placeholder: any;
16
+ export let theme: any;
17
+ export { BRANCH_PROP_TYPES as releaseBranch };
18
+ export let onSearch: any;
19
+ export let onClose: any;
20
+ export let handleBlur: any;
21
+ export let autofocus: any;
22
+ export let widthType: any;
23
+ }
24
+ export { THEME };
25
+ export { WidthType };
26
+ }
27
+ import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
28
+ import { THEME } from '@twreporter/core/lib/constants/theme';
29
+ import { WidthType } from '../enums';
@@ -0,0 +1,26 @@
1
+ export default TextField;
2
+ declare function TextField({ placeholder, align, state, message, onSubmit, onChange, className, ...props }: {
3
+ [x: string]: any;
4
+ placeholder?: string;
5
+ align?: "left";
6
+ state?: "default";
7
+ message?: string;
8
+ onSubmit?: () => void;
9
+ onChange?: () => void;
10
+ className?: string;
11
+ }): JSX.Element;
12
+ declare namespace TextField {
13
+ export namespace propTypes {
14
+ let placeholder: any;
15
+ let align: any;
16
+ let state: any;
17
+ let message: any;
18
+ let onSubmit: any;
19
+ let onChange: any;
20
+ let className: any;
21
+ }
22
+ export { TextAlign as Align };
23
+ export { TextState as State };
24
+ }
25
+ import { TextAlign } from '../enums';
26
+ import { TextState } from '../enums';
@@ -0,0 +1,13 @@
1
+ export const WidthType: Readonly<{
2
+ FIT: "fit";
3
+ STRETCH: "stretch";
4
+ }>;
5
+ export const TextAlign: Readonly<{
6
+ LEFT: "left";
7
+ CENTER: "center";
8
+ }>;
9
+ export const TextState: Readonly<{
10
+ DEFAULT: "default";
11
+ ERROR: "error";
12
+ DISABLED: "disabled";
13
+ }>;
@@ -0,0 +1,8 @@
1
+ declare namespace _default {
2
+ export { SearchBar };
3
+ export { TextField };
4
+ }
5
+ export default _default;
6
+ import SearchBar from './components/search-bar';
7
+ import TextField from './components/text-field';
8
+ export { SearchBar, TextField };
@@ -0,0 +1,33 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { SearchBar as component };
4
+ export namespace argTypes {
5
+ export let widthType: {
6
+ defaultValue: any;
7
+ options: any[];
8
+ control: {
9
+ type: string;
10
+ };
11
+ };
12
+ export { BRANCH_STORYBOOK_ARG_TYPE as releaseBranch };
13
+ export { THEME_STORYBOOK_ARG_TYPE as theme };
14
+ }
15
+ }
16
+ export default _default;
17
+ export namespace searchBar {
18
+ namespace args {
19
+ export let placeholder: string;
20
+ export let theme: "normal";
21
+ export let releaseBranch: string;
22
+ export { onSearch };
23
+ export { onClose };
24
+ export let autofocus: boolean;
25
+ let widthType_1: "fit";
26
+ export { widthType_1 as widthType };
27
+ }
28
+ }
29
+ import SearchBar from '../components/search-bar';
30
+ import { BRANCH_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
31
+ import { THEME_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
32
+ declare function onSearch(keyword: any): void;
33
+ declare function onClose(): void;
@@ -0,0 +1,37 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { TextField as component };
4
+ export namespace argTypes {
5
+ let align: {
6
+ defaultValue: any;
7
+ options: any[];
8
+ control: {
9
+ type: string;
10
+ };
11
+ };
12
+ let state: {
13
+ defaultValue: any;
14
+ options: any[];
15
+ control: {
16
+ type: string;
17
+ };
18
+ };
19
+ }
20
+ }
21
+ export default _default;
22
+ export namespace textField {
23
+ function render(args: any): JSX.Element;
24
+ namespace args {
25
+ export { onSubmit };
26
+ export { onChange };
27
+ export let placeholder: string;
28
+ let align_1: "left";
29
+ export { align_1 as align };
30
+ let state_1: "default";
31
+ export { state_1 as state };
32
+ export let message: string;
33
+ }
34
+ }
35
+ import TextField from '../components/text-field';
36
+ declare function onSubmit(value: any): void;
37
+ declare function onChange(value: any): void;
@@ -0,0 +1,17 @@
1
+ export function selectThemeStyle(theme: any): {
2
+ bgColor: "rgba(255, 255, 255, 0.8)";
3
+ focusBgColor: "#f1f1f1";
4
+ desktopBgColor: "#f1f1f1";
5
+ borderColor: "#e3be98";
6
+ color: "#404040";
7
+ focusColor: "#9c9c9c";
8
+ placeholderColor: "#404040";
9
+ } | {
10
+ bgColor: "rgba(241, 241, 241, 0.8)";
11
+ focusBgColor: "rgba(241, 241, 241, 0.8)";
12
+ desktopBgColor: "#ffffff";
13
+ borderColor: "#808080";
14
+ color: "#404040";
15
+ focusColor: "#9c9c9c";
16
+ placeholderColor: "#9c9c9c";
17
+ };
@@ -0,0 +1,14 @@
1
+ export default FetchingWrapper;
2
+ declare function FetchingWrapper(WrappedComponent: any): {
3
+ new (): {
4
+ render(): JSX.Element;
5
+ };
6
+ defaultProps: {
7
+ isFetching: boolean;
8
+ showSpinner: boolean;
9
+ };
10
+ propTypes: {
11
+ isFetching: any;
12
+ showSpinner: any;
13
+ };
14
+ };
@@ -0,0 +1,7 @@
1
+ export default JuniorLink;
2
+ declare class JuniorLink {
3
+ static propTypes: {
4
+ children: any;
5
+ };
6
+ render(): JSX.Element;
7
+ }
@@ -0,0 +1,29 @@
1
+ declare class TrackedLink extends PureComponent<any, any, any> {
2
+ constructor(props: any);
3
+ sendClickTrackingEvent(e: any): void;
4
+ isKeyToBeTracked(keyCode: any): boolean;
5
+ render(): JSX.Element;
6
+ }
7
+ declare namespace TrackedLink {
8
+ namespace propTypes {
9
+ let clickActionName: any;
10
+ let href: any;
11
+ let to: any;
12
+ let rel: any;
13
+ let target: any;
14
+ }
15
+ namespace defaultProps {
16
+ let clickActionName_1: string;
17
+ export { clickActionName_1 as clickActionName };
18
+ let href_1: string;
19
+ export { href_1 as href };
20
+ let to_1: string;
21
+ export { to_1 as to };
22
+ let rel_1: string;
23
+ export { rel_1 as rel };
24
+ let target_1: string;
25
+ export { target_1 as target };
26
+ }
27
+ }
28
+ export default TrackedLink;
29
+ import { PureComponent } from 'react';
@@ -0,0 +1,20 @@
1
+ export default CardList;
2
+ declare function CardList({ data, isFetching, showSpinner, releaseBranch, showIsBookmarked, width, }: {
3
+ data?: any[];
4
+ isFetching?: boolean;
5
+ showSpinner?: boolean;
6
+ releaseBranch?: string;
7
+ showIsBookmarked?: boolean;
8
+ width?: number;
9
+ }): JSX.Element;
10
+ declare namespace CardList {
11
+ namespace propTypes {
12
+ export let data: any;
13
+ export let isFetching: any;
14
+ export let showSpinner: any;
15
+ export { BRANCH_PROP_TYPES as releaseBranch };
16
+ export let showIsBookmarked: any;
17
+ export let width: any;
18
+ }
19
+ }
20
+ import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';