@twreporter/react-components 9.5.0-rc.0 → 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.
Files changed (44) hide show
  1. package/lib/badge/badge.stories.d.ts +1 -1
  2. package/lib/bookmark-list/bookmarks.d.ts +1 -1
  3. package/lib/bookmark-list/index.d.ts +2 -2
  4. package/lib/button/components/iconButton.d.ts +1 -2
  5. package/lib/button/components/iconWithTextButton.d.ts +1 -2
  6. package/lib/button/components/menuButton.d.ts +3 -3
  7. package/lib/button/components/pillButton.d.ts +1 -2
  8. package/lib/button/components/textButton.d.ts +1 -2
  9. package/lib/button/stories/iconButton.stories.d.ts +2 -2
  10. package/lib/button/stories/iconWithTextButton.stories.d.ts +2 -2
  11. package/lib/button/stories/menuButton.stories.d.ts +3 -3
  12. package/lib/button/stories/pillButton.stories.d.ts +2 -2
  13. package/lib/button/stories/textButton.stories.d.ts +2 -2
  14. package/lib/button/utils/theme.d.ts +20 -191
  15. package/lib/card/components/article-card.d.ts +2 -3
  16. package/lib/card/components/short-story.d.ts +2 -3
  17. package/lib/card/stories/articleCard.stories.d.ts +1 -1
  18. package/lib/card/stories/shortStory.stories.d.ts +2 -2
  19. package/lib/color.stories.d.ts +2 -2
  20. package/lib/empty-state/index.d.ts +1 -2
  21. package/lib/footer/constants/links.js +1 -1
  22. package/lib/footer/footer.stories.d.ts +1 -1
  23. package/lib/footer/index.d.ts +1 -1
  24. package/lib/footer/link.d.ts +2 -2
  25. package/lib/footer/logo.d.ts +1 -1
  26. package/lib/icon/index.d.ts +26 -28
  27. package/lib/image-with-fallback.d.ts +1 -2
  28. package/lib/input/components/search-bar.d.ts +2 -4
  29. package/lib/input/stories/search-bar.stories.d.ts +2 -2
  30. package/lib/input/utils/theme.d.ts +7 -15
  31. package/lib/listing-page/components/card-list.d.ts +1 -2
  32. package/lib/listing-page/stories/cardList.stories.d.ts +1 -1
  33. package/lib/logo/components/logo-footer.d.ts +1 -2
  34. package/lib/logo/components/logo-header.d.ts +1 -2
  35. package/lib/logo/components/logo-loading-fallback.d.ts +1 -2
  36. package/lib/logo/components/logo-symbol.d.ts +1 -2
  37. package/lib/mobile-member-role-card/index.d.ts +3 -4
  38. package/lib/snack-bar/components/snack-bar.d.ts +1 -2
  39. package/lib/snack-bar/stories/snackBar.stories.d.ts +1 -1
  40. package/lib/snack-bar/utils/theme.d.ts +2 -5
  41. package/lib/storybook/constants/index.d.ts +2 -2
  42. package/lib/text/constants/headline-type.d.ts +2 -2
  43. package/lib/text/utils/webfonts.d.ts +1 -2
  44. package/package.json +2 -2
@@ -6,7 +6,7 @@ export default _default;
6
6
  export namespace badge {
7
7
  namespace args {
8
8
  let text: string;
9
- let textColor: "#c40d23";
9
+ let textColor: any;
10
10
  let backgroundColor: string;
11
11
  }
12
12
  }
@@ -3,7 +3,7 @@ declare function Bookmarks({ total, bookmarks, handleDelete, releaseBranch, }: {
3
3
  total?: number;
4
4
  bookmarks?: any[];
5
5
  handleDelete: any;
6
- releaseBranch?: string;
6
+ releaseBranch?: any;
7
7
  }): JSX.Element;
8
8
  declare namespace Bookmarks {
9
9
  namespace propTypes {
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("react-redux").ConnectedComponent<{
2
2
  ({ releaseBranch, bookmarks, total, getMultipleBookmarks, deleteSingleBookmark, isAuthed, jwt, userID, }: {
3
- releaseBranch?: string;
3
+ releaseBranch?: any;
4
4
  bookmarks: any;
5
5
  total: any;
6
6
  getMultipleBookmarks: any;
@@ -20,7 +20,7 @@ declare const _default: import("react-redux").ConnectedComponent<{
20
20
  userID: any;
21
21
  };
22
22
  defaultProps: {
23
- releaseBranch: string;
23
+ releaseBranch: any;
24
24
  };
25
25
  }, any>;
26
26
  export default _default;
@@ -2,7 +2,7 @@ export default IconButton;
2
2
  declare function IconButton({ iconComponent, theme, type, disabled, active, ...props }: {
3
3
  [x: string]: any;
4
4
  iconComponent: any;
5
- theme?: "normal";
5
+ theme?: any;
6
6
  type?: "primary";
7
7
  disabled?: boolean;
8
8
  active?: boolean;
@@ -18,5 +18,4 @@ declare namespace IconButton {
18
18
  export { THEME };
19
19
  export { Type };
20
20
  }
21
- import { THEME } from '@twreporter/core/lib/constants/theme';
22
21
  import { Type } from '../enums';
@@ -2,7 +2,7 @@ export default IconWithTextButton;
2
2
  declare function IconWithTextButton({ text, iconComponent, theme, disabled, active, hideText, }: {
3
3
  text?: string;
4
4
  iconComponent: any;
5
- theme?: "normal";
5
+ theme?: any;
6
6
  disabled?: boolean;
7
7
  active?: boolean;
8
8
  hideText?: boolean;
@@ -18,4 +18,3 @@ declare namespace IconWithTextButton {
18
18
  }
19
19
  export { THEME };
20
20
  }
21
- import { THEME } from '@twreporter/core/lib/constants/theme';
@@ -3,10 +3,10 @@ declare function MenuButton({ text, link, color, fontWeight, hoverBgColor, activ
3
3
  [x: string]: any;
4
4
  text?: string;
5
5
  link?: {};
6
- color?: "#404040";
6
+ color?: any;
7
7
  fontWeight?: "normal";
8
- hoverBgColor?: "#f1f1f1";
9
- activeBgColor?: "#e2e2e2";
8
+ hoverBgColor?: any;
9
+ activeBgColor?: any;
10
10
  paddingLeft?: number;
11
11
  paddingRight?: number;
12
12
  }): JSX.Element;
@@ -5,7 +5,7 @@ declare function PillButton({ text, leftIconComponent, rightIconComponent, size,
5
5
  leftIconComponent?: any;
6
6
  rightIconComponent?: any;
7
7
  size?: "S";
8
- theme?: "normal";
8
+ theme?: any;
9
9
  type?: "primary";
10
10
  style?: "brand";
11
11
  disabled?: boolean;
@@ -28,7 +28,6 @@ declare namespace PillButton {
28
28
  export { Size };
29
29
  export { Style };
30
30
  }
31
- import { THEME } from '@twreporter/core/lib/constants/theme';
32
31
  import { Type } from '../enums';
33
32
  import { Size } from '../../shared-enum';
34
33
  import { Style } from '../enums';
@@ -5,7 +5,7 @@ declare function TextButton({ text, leftIconComponent, rightIconComponent, size,
5
5
  leftIconComponent?: any;
6
6
  rightIconComponent?: any;
7
7
  size?: "S";
8
- theme?: "normal";
8
+ theme?: any;
9
9
  style?: "dark";
10
10
  active?: boolean;
11
11
  disabled?: boolean;
@@ -27,6 +27,5 @@ declare namespace TextButton {
27
27
  export { Size };
28
28
  export { Style };
29
29
  }
30
- import { THEME } from '@twreporter/core/lib/constants/theme';
31
30
  import { Size } from '../../shared-enum';
32
31
  import { Style } from '../enums';
@@ -16,7 +16,7 @@ export default _default;
16
16
  export namespace iconButton {
17
17
  namespace args {
18
18
  export let iconComponent: JSX.Element;
19
- export let theme: "normal";
19
+ export let theme: any;
20
20
  let type_1: "primary";
21
21
  export { type_1 as type };
22
22
  export let disabled: boolean;
@@ -27,7 +27,7 @@ export namespace shareButton {
27
27
  export namespace args_1 {
28
28
  let iconComponent_1: JSX.Element;
29
29
  export { iconComponent_1 as iconComponent };
30
- let theme_1: "normal";
30
+ let theme_1: any;
31
31
  export { theme_1 as theme };
32
32
  let type_2: "primary";
33
33
  export { type_2 as type };
@@ -10,7 +10,7 @@ export namespace iconWithTextButton {
10
10
  namespace args {
11
11
  let text: string;
12
12
  let iconComponent: JSX.Element;
13
- let theme: "normal";
13
+ let theme: any;
14
14
  let disabled: boolean;
15
15
  let active: boolean;
16
16
  let hideText: boolean;
@@ -22,7 +22,7 @@ export namespace shareButton {
22
22
  export { text_1 as text };
23
23
  let iconComponent_1: JSX.Element;
24
24
  export { iconComponent_1 as iconComponent };
25
- let theme_1: "normal";
25
+ let theme_1: any;
26
26
  export { theme_1 as theme };
27
27
  let disabled_1: boolean;
28
28
  export { disabled_1 as disabled };
@@ -16,9 +16,9 @@ export namespace menuButton {
16
16
  namespace args {
17
17
  let text: string;
18
18
  let link: {};
19
- let color: "#404040";
20
- let hoverBgColor: "#f1f1f1";
21
- let activeBgColor: "#e2e2e2";
19
+ let color: any;
20
+ let hoverBgColor: any;
21
+ let activeBgColor: any;
22
22
  let paddingLeft: number;
23
23
  let paddingRight: number;
24
24
  }
@@ -41,7 +41,7 @@ export namespace pillButton {
41
41
  namespace args {
42
42
  export let text: string;
43
43
  export let size: "S";
44
- export let theme: "normal";
44
+ export let theme: any;
45
45
  let style_1: "brand";
46
46
  export { style_1 as style };
47
47
  let type_3: "primary";
@@ -66,7 +66,7 @@ export namespace toggleIconDisplay {
66
66
  export { text_1 as text };
67
67
  let size_1: "S";
68
68
  export { size_1 as size };
69
- let theme_1: "normal";
69
+ let theme_1: any;
70
70
  export { theme_1 as theme };
71
71
  let style_2: "brand";
72
72
  export { style_2 as style };
@@ -33,7 +33,7 @@ export namespace textButton {
33
33
  namespace args {
34
34
  export let text: string;
35
35
  export let size: "S";
36
- export let theme: "normal";
36
+ export let theme: any;
37
37
  let style_1: "dark";
38
38
  export { style_1 as style };
39
39
  export let active: boolean;
@@ -59,7 +59,7 @@ export namespace toggleIconDisplay {
59
59
  export { text_1 as text };
60
60
  let size_1: "S";
61
61
  export { size_1 as size };
62
- let theme_1: "normal";
62
+ let theme_1: any;
63
63
  export { theme_1 as theme };
64
64
  let style_2: "dark";
65
65
  export { style_2 as style };
@@ -1,209 +1,38 @@
1
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";
2
+ color: any;
3
+ bgColor: any;
4
+ hoverColor: any;
5
+ hoverBgColor: any;
46
6
  };
47
7
  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";
8
+ color: any;
9
+ bgColor: any;
10
+ hoverColor: any;
11
+ hoverBgColor: any;
87
12
  };
88
13
  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";
14
+ color: any;
15
+ hoverColor: any;
109
16
  };
110
17
  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";
18
+ color: any;
19
+ hoverColor: any;
131
20
  };
132
21
  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";
22
+ color: any;
23
+ hoverColor: any;
153
24
  };
154
25
  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";
26
+ color: any;
27
+ hoverColor: any;
178
28
  };
179
29
  export function getDisabledTextButtonTheme(theme: any): {
180
- color: "#9c9c9c";
181
- hoverColor: "#9c9c9c";
182
- } | {
183
- color: "#bbbbbb";
184
- hoverColor: "#bbbbbb";
30
+ color: any;
31
+ hoverColor: any;
185
32
  };
186
33
  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";
34
+ color: any;
35
+ hoverColor: any;
207
36
  };
208
37
  declare namespace _default {
209
38
  export { getFilledPillButtonTheme };
@@ -8,9 +8,9 @@ declare function ArticleCard({ title, description, date, image, category, size,
8
8
  size?: "S";
9
9
  isBookmarked?: boolean;
10
10
  toggleBookmark: any;
11
- releaseBranch?: string;
11
+ releaseBranch?: any;
12
12
  showIsBookmarked?: boolean;
13
- style?: string;
13
+ style?: any;
14
14
  slug?: string;
15
15
  }): JSX.Element;
16
16
  declare namespace ArticleCard {
@@ -30,5 +30,4 @@ declare namespace ArticleCard {
30
30
  }
31
31
  export { Size };
32
32
  }
33
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
34
33
  import { Size } from '../../shared-enum';
@@ -5,8 +5,8 @@ declare function ShortStory({ title, date, image, category, size, releaseBranch,
5
5
  image?: {};
6
6
  category?: string;
7
7
  size?: "S";
8
- releaseBranch?: string;
9
- style?: string;
8
+ releaseBranch?: any;
9
+ style?: any;
10
10
  slug?: string;
11
11
  }): JSX.Element;
12
12
  declare namespace ShortStory {
@@ -22,5 +22,4 @@ declare namespace ShortStory {
22
22
  }
23
23
  export { Size };
24
24
  }
25
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
26
25
  import { Size } from '../../shared-enum';
@@ -20,7 +20,7 @@ export namespace article {
20
20
  let src: string;
21
21
  let alt: string;
22
22
  }
23
- export let releaseBranch: string;
23
+ export let releaseBranch: any;
24
24
  export let isBookmarked: boolean;
25
25
  export let showIsBookmarked: boolean;
26
26
  }
@@ -26,8 +26,8 @@ export namespace shortStory {
26
26
  let src: string;
27
27
  let alt: string;
28
28
  }
29
- export let releaseBranch: string;
30
- let style_1: string;
29
+ export let releaseBranch: any;
30
+ let style_1: any;
31
31
  export { style_1 as style };
32
32
  export let slug: string;
33
33
  }
@@ -13,7 +13,7 @@ declare namespace _default {
13
13
  namespace control {
14
14
  let type_1: string;
15
15
  export { type_1 as type };
16
- export let presetColors: ("#808080" | "#f1f1f1" | "#052142")[];
16
+ export let presetColors: any[];
17
17
  }
18
18
  }
19
19
  }
@@ -26,7 +26,7 @@ export namespace colorSet {
26
26
  import type_2 = ColorSetEnum.GRAYSCALE;
27
27
  export { type_2 as type };
28
28
  export let showColorText: boolean;
29
- let background_1: "#f1f1f1";
29
+ let background_1: any;
30
30
  export { background_1 as background };
31
31
  }
32
32
  }
@@ -1,6 +1,6 @@
1
1
  export default EmptyState;
2
2
  declare function EmptyState({ releaseBranch, style, title, showGuide, guide, showButton, buttonText, buttonUrl, buttonOnclick, maxWidth, }: {
3
- releaseBranch?: string;
3
+ releaseBranch?: any;
4
4
  style?: "default";
5
5
  title?: string;
6
6
  showGuide?: boolean;
@@ -26,5 +26,4 @@ declare namespace EmptyState {
26
26
  }
27
27
  export { Style };
28
28
  }
29
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
30
29
  import { Style } from './enums';
@@ -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://bit.ly/4cxM3Tm',
85
+ to: 'https://solink.soundon.fm/twreporter-U7Q',
86
86
  target: '_blank'
87
87
  }, {
88
88
  slug: 'subcribe-RSS',
@@ -8,7 +8,7 @@ declare namespace _default {
8
8
  export default _default;
9
9
  export namespace footer {
10
10
  namespace args {
11
- let releaseBranch: string;
11
+ let releaseBranch: any;
12
12
  }
13
13
  }
14
14
  import Footer from './index';
@@ -1,6 +1,6 @@
1
1
  export default Footer;
2
2
  declare function Footer({ releaseBranch }: {
3
- releaseBranch?: string;
3
+ releaseBranch?: any;
4
4
  }): JSX.Element;
5
5
  declare namespace Footer {
6
6
  namespace propTypes {
@@ -1,5 +1,5 @@
1
1
  export function FooterLinkButtonGroups({ releaseBranch, }: {
2
- releaseBranch?: string;
2
+ releaseBranch?: any;
3
3
  }): any;
4
4
  export namespace FooterLinkButtonGroups {
5
5
  namespace propTypes {
@@ -7,7 +7,7 @@ export namespace FooterLinkButtonGroups {
7
7
  }
8
8
  }
9
9
  export function FooterSocialMediaIcons({ releaseBranch, }: {
10
- releaseBranch?: string;
10
+ releaseBranch?: any;
11
11
  }): any;
12
12
  export namespace FooterSocialMediaIcons {
13
13
  export namespace propTypes_1 {
@@ -1,6 +1,6 @@
1
1
  export default Logo;
2
2
  declare function Logo({ releaseBranch }: {
3
- releaseBranch?: string;
3
+ releaseBranch?: any;
4
4
  }): JSX.Element;
5
5
  declare namespace Logo {
6
6
  namespace propTypes {
@@ -2,7 +2,7 @@ export function Icon({ type, filename, releaseBranch, ...restProps }: {
2
2
  [x: string]: any;
3
3
  type?: "mask";
4
4
  filename?: string;
5
- releaseBranch?: string;
5
+ releaseBranch?: any;
6
6
  }): JSX.Element;
7
7
  export namespace Icon {
8
8
  export namespace propTypes {
@@ -15,7 +15,7 @@ export namespace Icon {
15
15
  }
16
16
  export function Hamburger({ releaseBranch, ...props }: {
17
17
  [x: string]: any;
18
- releaseBranch?: string;
18
+ releaseBranch?: any;
19
19
  }): JSX.Element;
20
20
  export namespace Hamburger {
21
21
  export namespace propTypes_1 {
@@ -29,122 +29,122 @@ export namespace Hamburger {
29
29
  }
30
30
  export function Hamburger({ releaseBranch, ...props }: {
31
31
  [x: string]: any;
32
- releaseBranch?: string;
32
+ releaseBranch?: any;
33
33
  }): JSX.Element;
34
34
  export namespace Hamburger { }
35
35
  export function Hamburger({ releaseBranch, ...props }: {
36
36
  [x: string]: any;
37
- releaseBranch?: string;
37
+ releaseBranch?: any;
38
38
  }): JSX.Element;
39
39
  export namespace Hamburger { }
40
40
  export function Hamburger({ releaseBranch, ...props }: {
41
41
  [x: string]: any;
42
- releaseBranch?: string;
42
+ releaseBranch?: any;
43
43
  }): JSX.Element;
44
44
  export namespace Hamburger { }
45
45
  export function Hamburger({ releaseBranch, ...props }: {
46
46
  [x: string]: any;
47
- releaseBranch?: string;
47
+ releaseBranch?: any;
48
48
  }): JSX.Element;
49
49
  export namespace Hamburger { }
50
50
  export function Hamburger({ releaseBranch, ...props }: {
51
51
  [x: string]: any;
52
- releaseBranch?: string;
52
+ releaseBranch?: any;
53
53
  }): JSX.Element;
54
54
  export namespace Hamburger { }
55
55
  export function Hamburger({ releaseBranch, ...props }: {
56
56
  [x: string]: any;
57
- releaseBranch?: string;
57
+ releaseBranch?: any;
58
58
  }): JSX.Element;
59
59
  export namespace Hamburger { }
60
60
  export function Hamburger({ releaseBranch, ...props }: {
61
61
  [x: string]: any;
62
- releaseBranch?: string;
62
+ releaseBranch?: any;
63
63
  }): JSX.Element;
64
64
  export namespace Hamburger { }
65
65
  export function Hamburger({ releaseBranch, ...props }: {
66
66
  [x: string]: any;
67
- releaseBranch?: string;
67
+ releaseBranch?: any;
68
68
  }): JSX.Element;
69
69
  export namespace Hamburger { }
70
70
  export function Hamburger({ releaseBranch, ...props }: {
71
71
  [x: string]: any;
72
- releaseBranch?: string;
72
+ releaseBranch?: any;
73
73
  }): JSX.Element;
74
74
  export namespace Hamburger { }
75
75
  export function Hamburger({ releaseBranch, ...props }: {
76
76
  [x: string]: any;
77
- releaseBranch?: string;
77
+ releaseBranch?: any;
78
78
  }): JSX.Element;
79
79
  export namespace Hamburger { }
80
80
  export function Hamburger({ releaseBranch, ...props }: {
81
81
  [x: string]: any;
82
- releaseBranch?: string;
82
+ releaseBranch?: any;
83
83
  }): JSX.Element;
84
84
  export namespace Hamburger { }
85
85
  export function Hamburger({ releaseBranch, ...props }: {
86
86
  [x: string]: any;
87
- releaseBranch?: string;
87
+ releaseBranch?: any;
88
88
  }): JSX.Element;
89
89
  export namespace Hamburger { }
90
90
  export function Hamburger({ releaseBranch, ...props }: {
91
91
  [x: string]: any;
92
- releaseBranch?: string;
92
+ releaseBranch?: any;
93
93
  }): JSX.Element;
94
94
  export namespace Hamburger { }
95
95
  export function Hamburger({ releaseBranch, ...props }: {
96
96
  [x: string]: any;
97
- releaseBranch?: string;
97
+ releaseBranch?: any;
98
98
  }): JSX.Element;
99
99
  export namespace Hamburger { }
100
100
  export function Hamburger({ releaseBranch, ...props }: {
101
101
  [x: string]: any;
102
- releaseBranch?: string;
102
+ releaseBranch?: any;
103
103
  }): JSX.Element;
104
104
  export namespace Hamburger { }
105
105
  export function Hamburger({ releaseBranch, ...props }: {
106
106
  [x: string]: any;
107
- releaseBranch?: string;
107
+ releaseBranch?: any;
108
108
  }): JSX.Element;
109
109
  export namespace Hamburger { }
110
110
  export function Hamburger({ releaseBranch, ...props }: {
111
111
  [x: string]: any;
112
- releaseBranch?: string;
112
+ releaseBranch?: any;
113
113
  }): JSX.Element;
114
114
  export namespace Hamburger { }
115
115
  export function Hamburger({ releaseBranch, ...props }: {
116
116
  [x: string]: any;
117
- releaseBranch?: string;
117
+ releaseBranch?: any;
118
118
  }): JSX.Element;
119
119
  export namespace Hamburger { }
120
120
  export function Hamburger({ releaseBranch, ...props }: {
121
121
  [x: string]: any;
122
- releaseBranch?: string;
122
+ releaseBranch?: any;
123
123
  }): JSX.Element;
124
124
  export namespace Hamburger { }
125
125
  export function Hamburger({ releaseBranch, ...props }: {
126
126
  [x: string]: any;
127
- releaseBranch?: string;
127
+ releaseBranch?: any;
128
128
  }): JSX.Element;
129
129
  export namespace Hamburger { }
130
130
  export function Hamburger({ releaseBranch, ...props }: {
131
131
  [x: string]: any;
132
- releaseBranch?: string;
132
+ releaseBranch?: any;
133
133
  }): JSX.Element;
134
134
  export namespace Hamburger { }
135
135
  export function Hamburger({ releaseBranch, ...props }: {
136
136
  [x: string]: any;
137
- releaseBranch?: string;
137
+ releaseBranch?: any;
138
138
  }): JSX.Element;
139
139
  export namespace Hamburger { }
140
140
  export function Hamburger({ releaseBranch, ...props }: {
141
141
  [x: string]: any;
142
- releaseBranch?: string;
142
+ releaseBranch?: any;
143
143
  }): JSX.Element;
144
144
  export namespace Hamburger { }
145
145
  export function Hamburger({ releaseBranch, ...props }: {
146
146
  [x: string]: any;
147
- releaseBranch?: string;
147
+ releaseBranch?: any;
148
148
  }): JSX.Element;
149
149
  export namespace Hamburger { }
150
150
  export function Arrow({ direction, releaseBranch, ...props }: {
@@ -219,9 +219,7 @@ declare namespace _default {
219
219
  export { Filter };
220
220
  }
221
221
  export default _default;
222
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
223
222
  import { IconType } from './enum';
224
- import { BRANCH } from '@twreporter/core/lib/constants/release-branch';
225
223
  import { ArrowDirection } from './enum';
226
224
  import { BookmarkType } from './enum';
227
225
  import { MediaType } from './enum';
@@ -3,7 +3,7 @@ declare function Image({ src, alt, srcSet, releaseBranch, }: {
3
3
  src: any;
4
4
  alt?: string;
5
5
  srcSet?: string;
6
- releaseBranch?: string;
6
+ releaseBranch?: any;
7
7
  }): JSX.Element;
8
8
  declare namespace Image {
9
9
  namespace propTypes {
@@ -13,4 +13,3 @@ declare namespace Image {
13
13
  export { BRANCH_PROP_TYPES as releaseBranch };
14
14
  }
15
15
  }
16
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
@@ -2,8 +2,8 @@ export default SearchBar;
2
2
  declare function SearchBar({ placeholder, theme, releaseBranch, onSearch, onClose, handleBlur, autofocus, widthType, ...props }: {
3
3
  [x: string]: any;
4
4
  placeholder?: string;
5
- theme?: "normal";
6
- releaseBranch?: string;
5
+ theme?: any;
6
+ releaseBranch?: any;
7
7
  onSearch?: () => void;
8
8
  onClose?: () => void;
9
9
  handleBlur?: () => void;
@@ -24,6 +24,4 @@ declare namespace SearchBar {
24
24
  export { THEME };
25
25
  export { WidthType };
26
26
  }
27
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
28
- import { THEME } from '@twreporter/core/lib/constants/theme';
29
27
  import { WidthType } from '../enums';
@@ -17,8 +17,8 @@ export default _default;
17
17
  export namespace searchBar {
18
18
  namespace args {
19
19
  export let placeholder: string;
20
- export let theme: "normal";
21
- export let releaseBranch: string;
20
+ export let theme: any;
21
+ export let releaseBranch: any;
22
22
  export { onSearch };
23
23
  export { onClose };
24
24
  export let autofocus: boolean;
@@ -1,17 +1,9 @@
1
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";
2
+ bgColor: any;
3
+ focusBgColor: any;
4
+ desktopBgColor: any;
5
+ borderColor: any;
6
+ color: any;
7
+ focusColor: any;
8
+ placeholderColor: any;
17
9
  };
@@ -3,7 +3,7 @@ declare function CardList({ data, isFetching, showSpinner, releaseBranch, showIs
3
3
  data?: any[];
4
4
  isFetching?: boolean;
5
5
  showSpinner?: boolean;
6
- releaseBranch?: string;
6
+ releaseBranch?: any;
7
7
  showIsBookmarked?: boolean;
8
8
  width?: number;
9
9
  }): JSX.Element;
@@ -17,4 +17,3 @@ declare namespace CardList {
17
17
  export let width: any;
18
18
  }
19
19
  }
20
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
@@ -63,7 +63,7 @@ export namespace card {
63
63
  slug: string;
64
64
  is_bookmarked?: undefined;
65
65
  })[];
66
- let releaseBranch: string;
66
+ let releaseBranch: any;
67
67
  let showIsBookmarked: boolean;
68
68
  let width: number;
69
69
  }
@@ -1,6 +1,6 @@
1
1
  export default LogoFooter;
2
2
  declare function LogoFooter({ releaseBranch, type, }: {
3
- releaseBranch?: string;
3
+ releaseBranch?: any;
4
4
  type?: string;
5
5
  }): JSX.Element;
6
6
  declare namespace LogoFooter {
@@ -10,7 +10,6 @@ declare namespace LogoFooter {
10
10
  }
11
11
  export { logoType as Type };
12
12
  }
13
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
14
13
  declare namespace logoType {
15
14
  let DEFAULT: string;
16
15
  let WHITE: string;
@@ -2,7 +2,7 @@ export default LogoHeader;
2
2
  declare function LogoHeader({ type, releaseBranch, ...props }: {
3
3
  [x: string]: any;
4
4
  type?: string;
5
- releaseBranch?: string;
5
+ releaseBranch?: any;
6
6
  }): JSX.Element;
7
7
  declare namespace LogoHeader {
8
8
  export namespace propTypes {
@@ -11,7 +11,6 @@ declare namespace LogoHeader {
11
11
  }
12
12
  export { logoType as Type };
13
13
  }
14
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
15
14
  declare namespace logoType {
16
15
  let DEFAULT: string;
17
16
  let WHITE: string;
@@ -1,10 +1,9 @@
1
1
  export default LogoFallback;
2
2
  declare function LogoFallback({ releaseBranch }: {
3
- releaseBranch?: string;
3
+ releaseBranch?: any;
4
4
  }): JSX.Element;
5
5
  declare namespace LogoFallback {
6
6
  namespace propTypes {
7
7
  export { BRANCH_PROP_TYPES as releaseBranch };
8
8
  }
9
9
  }
10
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
@@ -2,7 +2,7 @@ export default LogoSymbol;
2
2
  declare function LogoSymbol({ type, releaseBranch, ...props }: {
3
3
  [x: string]: any;
4
4
  type?: string;
5
- releaseBranch?: string;
5
+ releaseBranch?: any;
6
6
  }): JSX.Element;
7
7
  declare namespace LogoSymbol {
8
8
  export namespace propTypes {
@@ -11,7 +11,6 @@ declare namespace LogoSymbol {
11
11
  }
12
12
  export { logoType as Type };
13
13
  }
14
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
15
14
  declare namespace logoType {
16
15
  let DEFAULT: string;
17
16
  let BLACK: string;
@@ -1,12 +1,12 @@
1
1
  export default MobileMemberRoleCard;
2
2
  declare function MobileMemberRoleCard({ role, releaseBranch, email, joinDate, name, articleReadCount, articleReadingTimeUnit, articleReadingTime, hideInfo, }: {
3
- role?: string;
4
- releaseBranch?: string;
3
+ role?: any;
4
+ releaseBranch?: any;
5
5
  email?: string;
6
6
  joinDate?: string;
7
7
  name?: string;
8
8
  articleReadCount?: number;
9
- articleReadingTimeUnit?: "minute";
9
+ articleReadingTimeUnit?: any;
10
10
  articleReadingTime?: number;
11
11
  hideInfo?: boolean;
12
12
  }): JSX.Element;
@@ -23,4 +23,3 @@ declare namespace MobileMemberRoleCard {
23
23
  export let hideInfo: any;
24
24
  }
25
25
  }
26
- import { BRANCH_PROP_TYPES } from '@twreporter/core/lib/constants/release-branch';
@@ -1,7 +1,7 @@
1
1
  export default SnackBar;
2
2
  declare function SnackBar({ text, theme }: {
3
3
  text?: string;
4
- theme?: "normal";
4
+ theme?: any;
5
5
  }): JSX.Element;
6
6
  declare namespace SnackBar {
7
7
  export namespace propTypes {
@@ -10,4 +10,3 @@ declare namespace SnackBar {
10
10
  }
11
11
  export { THEME };
12
12
  }
13
- import { THEME } from '@twreporter/core/lib/constants/theme';
@@ -9,7 +9,7 @@ export default _default;
9
9
  export namespace snackBar {
10
10
  namespace args {
11
11
  let text: string;
12
- let theme: "normal";
12
+ let theme: any;
13
13
  }
14
14
  }
15
15
  export namespace clickToShow {
@@ -1,9 +1,6 @@
1
1
  export function getSnackBarTheme(theme: any): {
2
- color: "#404040";
3
- bgColor: "#e2e2e2";
4
- } | {
5
- color: "#ffffff";
6
- bgColor: "#404040";
2
+ color: any;
3
+ bgColor: any;
7
4
  };
8
5
  declare namespace _default {
9
6
  export { getSnackBarTheme };
@@ -1,6 +1,6 @@
1
1
  export namespace BRANCH_STORYBOOK_ARG_TYPE {
2
- let defaultValue: string;
3
- let options: string[];
2
+ let defaultValue: any;
3
+ let options: any[];
4
4
  namespace control {
5
5
  let type: string;
6
6
  }
@@ -1,4 +1,4 @@
1
1
  export const TYPE_FONT_FAMILY: Readonly<{
2
- default: string;
3
- article: string;
2
+ default: any;
3
+ article: any;
4
4
  }>;
@@ -4,7 +4,6 @@ declare namespace _default {
4
4
  }
5
5
  export default _default;
6
6
  declare const fontFaces: {
7
- "Noto Sans TC": any;
8
- "Tauhu Oo": any;
7
+ [x: number]: any;
9
8
  };
10
9
  declare let fontGCSFiles: any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twreporter/react-components",
3
- "version": "9.5.0-rc.0",
3
+ "version": "9.5.0-rc.1",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "repository": "https://github.com/twreporter/twreporter-npm-packages.git",
@@ -56,5 +56,5 @@
56
56
  "storybook": "^8.1.11",
57
57
  "typescript": "^5.7.3"
58
58
  },
59
- "gitHead": "53b64eb9f37b4d8df44e6bb8db7bece5cae16f87"
59
+ "gitHead": "43dc91590b6a5ef7f51881f809317e48a11797a3"
60
60
  }