@surveycake/rc 2.4.0-alpha.12

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 (226) hide show
  1. package/CHANGELOG.md +1586 -0
  2. package/README.md +9 -0
  3. package/dist/AnimateHeight/index.d.ts +18 -0
  4. package/dist/AnimateHeight/utils.d.ts +1 -0
  5. package/dist/Avatar/index.d.ts +4 -0
  6. package/dist/Avatar/style.d.ts +4 -0
  7. package/dist/Avatar/types.d.ts +6 -0
  8. package/dist/Backdrop/index.d.ts +4 -0
  9. package/dist/Button/index.d.ts +4 -0
  10. package/dist/Button/types.d.ts +5 -0
  11. package/dist/Card/CardActionArea/index.d.ts +8 -0
  12. package/dist/Card/CardActions/index.d.ts +3 -0
  13. package/dist/Card/CardContent/index.d.ts +2 -0
  14. package/dist/Card/CardHeader/index.d.ts +2 -0
  15. package/dist/Card/index.d.ts +4 -0
  16. package/dist/Card/style.d.ts +3 -0
  17. package/dist/Card/types.d.ts +5 -0
  18. package/dist/Checkbox/index.d.ts +4 -0
  19. package/dist/Checkbox/types.d.ts +3 -0
  20. package/dist/Chip/CustomChip/index.d.ts +19 -0
  21. package/dist/Chip/CustomChip/types.d.ts +5 -0
  22. package/dist/Chip/index.d.ts +4 -0
  23. package/dist/Chip/types.d.ts +11 -0
  24. package/dist/DatePicker/index.d.ts +4 -0
  25. package/dist/DatePicker/styles.d.ts +9 -0
  26. package/dist/DatePicker/types.d.ts +10 -0
  27. package/dist/Divider/index.d.ts +4 -0
  28. package/dist/Divider/style.d.ts +13 -0
  29. package/dist/EditableTable/index.d.ts +8 -0
  30. package/dist/GroupSelect/index.d.ts +4 -0
  31. package/dist/GroupSelect/style.d.ts +5 -0
  32. package/dist/GroupSelect/types.d.ts +28 -0
  33. package/dist/Icon/icons/brands/facebook-in.d.ts +3 -0
  34. package/dist/Icon/icons/brands/facebook.d.ts +3 -0
  35. package/dist/Icon/icons/brands/linkedin-in.d.ts +3 -0
  36. package/dist/Icon/icons/brands/linkedin.d.ts +3 -0
  37. package/dist/Icon/icons/brands/twitter-in.d.ts +3 -0
  38. package/dist/Icon/icons/brands/twitter.d.ts +3 -0
  39. package/dist/Icon/icons/filled/angle-left.d.ts +3 -0
  40. package/dist/Icon/icons/filled/angle-right.d.ts +3 -0
  41. package/dist/Icon/icons/filled/arrow-alt-left.d.ts +3 -0
  42. package/dist/Icon/icons/filled/bar-chart.d.ts +3 -0
  43. package/dist/Icon/icons/filled/caret-down.d.ts +3 -0
  44. package/dist/Icon/icons/filled/caret-left.d.ts +3 -0
  45. package/dist/Icon/icons/filled/caret-right.d.ts +3 -0
  46. package/dist/Icon/icons/filled/caret-up.d.ts +3 -0
  47. package/dist/Icon/icons/filled/check-circle.d.ts +3 -0
  48. package/dist/Icon/icons/filled/check-square.d.ts +3 -0
  49. package/dist/Icon/icons/filled/check.d.ts +3 -0
  50. package/dist/Icon/icons/filled/chevron-left.d.ts +3 -0
  51. package/dist/Icon/icons/filled/chevron-right.d.ts +3 -0
  52. package/dist/Icon/icons/filled/ellipsis-h.d.ts +3 -0
  53. package/dist/Icon/icons/filled/ellipsis-v.d.ts +3 -0
  54. package/dist/Icon/icons/filled/exclamation-circle.d.ts +3 -0
  55. package/dist/Icon/icons/filled/exclamation-triangle.d.ts +3 -0
  56. package/dist/Icon/icons/filled/hand-pointer.d.ts +3 -0
  57. package/dist/Icon/icons/filled/heart.d.ts +3 -0
  58. package/dist/Icon/icons/filled/info-circle.d.ts +3 -0
  59. package/dist/Icon/icons/filled/list-ul.d.ts +3 -0
  60. package/dist/Icon/icons/filled/lock.d.ts +3 -0
  61. package/dist/Icon/icons/filled/minus-light.d.ts +3 -0
  62. package/dist/Icon/icons/filled/plus-light.d.ts +3 -0
  63. package/dist/Icon/icons/filled/plus.d.ts +3 -0
  64. package/dist/Icon/icons/filled/question-circle.d.ts +3 -0
  65. package/dist/Icon/icons/filled/search.d.ts +3 -0
  66. package/dist/Icon/icons/filled/sort-down.d.ts +3 -0
  67. package/dist/Icon/icons/filled/sort-up.d.ts +3 -0
  68. package/dist/Icon/icons/filled/sort.d.ts +3 -0
  69. package/dist/Icon/icons/filled/star.d.ts +3 -0
  70. package/dist/Icon/icons/filled/thumb-up.d.ts +3 -0
  71. package/dist/Icon/icons/filled/times-circle.d.ts +3 -0
  72. package/dist/Icon/icons/filled/user-plus.d.ts +3 -0
  73. package/dist/Icon/icons/filled/user.d.ts +3 -0
  74. package/dist/Icon/icons/filled/users.d.ts +3 -0
  75. package/dist/Icon/icons/outlined/analytics-light.d.ts +3 -0
  76. package/dist/Icon/icons/outlined/angle-left.d.ts +3 -0
  77. package/dist/Icon/icons/outlined/angle-right.d.ts +3 -0
  78. package/dist/Icon/icons/outlined/arrow-right.d.ts +3 -0
  79. package/dist/Icon/icons/outlined/brackets-curly.d.ts +3 -0
  80. package/dist/Icon/icons/outlined/browser-light.d.ts +3 -0
  81. package/dist/Icon/icons/outlined/calendar-alt.d.ts +3 -0
  82. package/dist/Icon/icons/outlined/check-circle.d.ts +3 -0
  83. package/dist/Icon/icons/outlined/check.d.ts +3 -0
  84. package/dist/Icon/icons/outlined/chevron-down.d.ts +3 -0
  85. package/dist/Icon/icons/outlined/clock.d.ts +3 -0
  86. package/dist/Icon/icons/outlined/code.d.ts +3 -0
  87. package/dist/Icon/icons/outlined/cog-light.d.ts +3 -0
  88. package/dist/Icon/icons/outlined/comment-alt-lines.d.ts +3 -0
  89. package/dist/Icon/icons/outlined/edit-light.d.ts +3 -0
  90. package/dist/Icon/icons/outlined/exclamation-circle.d.ts +3 -0
  91. package/dist/Icon/icons/outlined/external-link-light.d.ts +3 -0
  92. package/dist/Icon/icons/outlined/file-alt.d.ts +3 -0
  93. package/dist/Icon/icons/outlined/file-certificate.d.ts +3 -0
  94. package/dist/Icon/icons/outlined/filter.d.ts +3 -0
  95. package/dist/Icon/icons/outlined/global-asia.d.ts +3 -0
  96. package/dist/Icon/icons/outlined/hand-pointer.d.ts +3 -0
  97. package/dist/Icon/icons/outlined/heart.d.ts +3 -0
  98. package/dist/Icon/icons/outlined/info-circle.d.ts +3 -0
  99. package/dist/Icon/icons/outlined/link-light.d.ts +3 -0
  100. package/dist/Icon/icons/outlined/link.d.ts +3 -0
  101. package/dist/Icon/icons/outlined/list-ul.d.ts +3 -0
  102. package/dist/Icon/icons/outlined/long-arrow-right.d.ts +3 -0
  103. package/dist/Icon/icons/outlined/page-break.d.ts +3 -0
  104. package/dist/Icon/icons/outlined/pen-light.d.ts +3 -0
  105. package/dist/Icon/icons/outlined/plus-circle.d.ts +3 -0
  106. package/dist/Icon/icons/outlined/qrcode.d.ts +3 -0
  107. package/dist/Icon/icons/outlined/question-circle-outline.d.ts +3 -0
  108. package/dist/Icon/icons/outlined/redo.d.ts +3 -0
  109. package/dist/Icon/icons/outlined/search-light.d.ts +3 -0
  110. package/dist/Icon/icons/outlined/spinner-third.d.ts +3 -0
  111. package/dist/Icon/icons/outlined/square.d.ts +3 -0
  112. package/dist/Icon/icons/outlined/star.d.ts +3 -0
  113. package/dist/Icon/icons/outlined/th-large.d.ts +3 -0
  114. package/dist/Icon/icons/outlined/thumb-up.d.ts +3 -0
  115. package/dist/Icon/icons/outlined/times-circle.d.ts +3 -0
  116. package/dist/Icon/icons/outlined/times.d.ts +3 -0
  117. package/dist/Icon/icons/outlined/trash-alt-regular.d.ts +3 -0
  118. package/dist/Icon/icons/outlined/user-plus.d.ts +3 -0
  119. package/dist/Icon/index.d.ts +16 -0
  120. package/dist/Icon/styles.d.ts +1 -0
  121. package/dist/Icon/types.d.ts +7 -0
  122. package/dist/IconButton/index.d.ts +5 -0
  123. package/dist/IconButton/types.d.ts +6 -0
  124. package/dist/InputSlider/Dots/Dot.d.ts +12 -0
  125. package/dist/InputSlider/Dots/index.d.ts +14 -0
  126. package/dist/InputSlider/Dots/styles.d.ts +1 -0
  127. package/dist/InputSlider/Handler/index.d.ts +10 -0
  128. package/dist/InputSlider/Marks/Mark.d.ts +15 -0
  129. package/dist/InputSlider/Marks/index.d.ts +11 -0
  130. package/dist/InputSlider/Marks/styles.d.ts +1 -0
  131. package/dist/InputSlider/Track/index.d.ts +7 -0
  132. package/dist/InputSlider/index.d.ts +5 -0
  133. package/dist/InputSlider/styles.d.ts +1 -0
  134. package/dist/InputSlider/types.d.ts +45 -0
  135. package/dist/InputSlider/useSlide.d.ts +10 -0
  136. package/dist/InputSlider/utils.d.ts +9 -0
  137. package/dist/KeyboardDatePicker/index.d.ts +4 -0
  138. package/dist/KeyboardDatePicker/style.d.ts +5 -0
  139. package/dist/KeyboardDatePicker/types.d.ts +12 -0
  140. package/dist/KeyboardDatePicker/withMuiPickersUtilsProvider.d.ts +2 -0
  141. package/dist/MenuItem/index.d.ts +4 -0
  142. package/dist/MenuItem/styles.d.ts +3 -0
  143. package/dist/MenuItem/types.d.ts +6 -0
  144. package/dist/MenuList/index.d.ts +4 -0
  145. package/dist/MenuList/styles.d.ts +3 -0
  146. package/dist/MenuList/types.d.ts +5 -0
  147. package/dist/Message/Message.d.ts +13 -0
  148. package/dist/Message/icons.d.ts +4 -0
  149. package/dist/Message/index.d.ts +19 -0
  150. package/dist/Message/styles.d.ts +1 -0
  151. package/dist/Modal/index.d.ts +4 -0
  152. package/dist/Modal/types.d.ts +6 -0
  153. package/dist/MuiComponentsPlayground/Button/index.d.ts +5 -0
  154. package/dist/MuiComponentsPlayground/Menu/index.d.ts +5 -0
  155. package/dist/MuiComponentsPlayground/Typography/index.d.ts +5 -0
  156. package/dist/MuiSystemPlayground/Typography/index.d.ts +5 -0
  157. package/dist/Pagination/Icons.d.ts +58 -0
  158. package/dist/Pagination/index.d.ts +4 -0
  159. package/dist/Pagination/types.d.ts +12 -0
  160. package/dist/Paper/index.d.ts +4 -0
  161. package/dist/Popper/index.d.ts +4 -0
  162. package/dist/Portal/index.d.ts +10 -0
  163. package/dist/Radio/index.d.ts +4 -0
  164. package/dist/Radio/types.d.ts +3 -0
  165. package/dist/RadioGroup/index.d.ts +4 -0
  166. package/dist/RadioGroup/types.d.ts +3 -0
  167. package/dist/Select/index.d.ts +4 -0
  168. package/dist/Select/style.d.ts +4 -0
  169. package/dist/Select/types.d.ts +26 -0
  170. package/dist/SlidingSideMenu/index.d.ts +4 -0
  171. package/dist/SlidingSideMenu/styles.d.ts +7 -0
  172. package/dist/SlidingSideMenu/types.d.ts +17 -0
  173. package/dist/Snackbar/index.d.ts +4 -0
  174. package/dist/Snackbar/styles.d.ts +13 -0
  175. package/dist/Snackbar/types.d.ts +24 -0
  176. package/dist/Stepper/Step/index.d.ts +4 -0
  177. package/dist/Stepper/Step/styles.d.ts +5 -0
  178. package/dist/Stepper/Step/types.d.ts +7 -0
  179. package/dist/Stepper/index.d.ts +4 -0
  180. package/dist/Stepper/styles.d.ts +2 -0
  181. package/dist/Stepper/types.d.ts +6 -0
  182. package/dist/Switch/index.d.ts +4 -0
  183. package/dist/Switch/styles.d.ts +9 -0
  184. package/dist/Switch/types.d.ts +11 -0
  185. package/dist/Tabs/Tab/index.d.ts +4 -0
  186. package/dist/Tabs/Tab/styles.d.ts +2 -0
  187. package/dist/Tabs/Tab/types.d.ts +3 -0
  188. package/dist/Tabs/index.d.ts +4 -0
  189. package/dist/Tabs/styles.d.ts +2 -0
  190. package/dist/Tabs/types.d.ts +3 -0
  191. package/dist/Tag/index.d.ts +9 -0
  192. package/dist/Tag/styles.d.ts +1 -0
  193. package/dist/ToggleButtonGroup/index.d.ts +4 -0
  194. package/dist/ToggleButtonGroup/style.d.ts +25 -0
  195. package/dist/ToggleButtonGroup/types.d.ts +14 -0
  196. package/dist/Tooltip/index.d.ts +4 -0
  197. package/dist/Tooltip/types.d.ts +3 -0
  198. package/dist/Typography/index.d.ts +26 -0
  199. package/dist/Typography/styles.d.ts +1 -0
  200. package/dist/index.d.ts +135 -0
  201. package/dist/index.js +8 -0
  202. package/dist/rc.cjs.development.js +4529 -0
  203. package/dist/rc.cjs.development.js.map +1 -0
  204. package/dist/rc.cjs.production.min.js +2 -0
  205. package/dist/rc.cjs.production.min.js.map +1 -0
  206. package/dist/rc.esm.js +4385 -0
  207. package/dist/rc.esm.js.map +1 -0
  208. package/dist/styles/MuiThemeProvider.d.ts +3 -0
  209. package/dist/styles/boxShadow.d.ts +2 -0
  210. package/dist/styles/index.d.ts +92 -0
  211. package/dist/styles/theme.d.ts +76 -0
  212. package/dist/types/color.d.ts +4 -0
  213. package/dist/utils/formatNumberToText.d.ts +2 -0
  214. package/dist/utils/hexToRgba.d.ts +4 -0
  215. package/dist/utils/replaceAll.d.ts +2 -0
  216. package/dist/utils/resolveThemeColorByPath.d.ts +3 -0
  217. package/dist/utils/resolveThemeColorProp.d.ts +3 -0
  218. package/dist/utils/statusData.d.ts +21 -0
  219. package/dist/wording/en/dashboard.d.ts +54 -0
  220. package/dist/wording/en/index.d.ts +2 -0
  221. package/dist/wording/en/pricing.d.ts +35 -0
  222. package/dist/wording/index.d.ts +12 -0
  223. package/dist/wording/tw/dashboard.d.ts +54 -0
  224. package/dist/wording/tw/index.d.ts +2 -0
  225. package/dist/wording/tw/pricing.d.ts +35 -0
  226. package/package.json +98 -0
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ export declare const muiThemeForSurveyCake: import("@material-ui/core/styles").Theme;
3
+ export declare const MuiThemeProvider: FC;
@@ -0,0 +1,2 @@
1
+ declare const boxShadowForMenu = "0 1px 6px 0 rgba(69, 69, 69, 0.2),\n0 1px 5px 0 rgba(69, 69, 69, 0.1)";
2
+ export { boxShadowForMenu };
@@ -0,0 +1,92 @@
1
+ import { ThemeContext } from '@emotion/core';
2
+ import { Interpolation } from 'emotion';
3
+ import { theme as defaultTheme } from './theme';
4
+ export declare type DefaultTheme = typeof defaultTheme;
5
+ export declare type ThemeColor = keyof DefaultTheme['color'];
6
+ /**
7
+ * @todo type friendly for custom theme.
8
+ */
9
+ export declare type Theme = DefaultTheme & {
10
+ [key: string]: any;
11
+ };
12
+ export declare type DynamicStyle<K extends string> = (theme: Theme, deps: any[], classes: Classes<K>) => Interpolation;
13
+ export declare type Style<K extends string> = string | DynamicStyle<K>;
14
+ export declare type Styles<K extends string> = ReadonlyArray<[K, Style<K>]>;
15
+ export declare type Classes<K extends string> = {
16
+ [className in K]: string;
17
+ };
18
+ export { defaultTheme, ThemeContext };
19
+ export declare function useTheme(): {
20
+ color: {
21
+ primary: {
22
+ active: string;
23
+ default: string;
24
+ hover: string;
25
+ disabled: string;
26
+ background: string;
27
+ lightBackground: string;
28
+ };
29
+ secondary: {
30
+ active: string;
31
+ default: string;
32
+ hover: string;
33
+ disabled: string;
34
+ background: string;
35
+ };
36
+ thirdary: {
37
+ active: string;
38
+ default: string;
39
+ hover: string;
40
+ disabled: string;
41
+ background: string;
42
+ };
43
+ text: {
44
+ white: string;
45
+ B6: string;
46
+ B5: string;
47
+ B4: string;
48
+ B3: string;
49
+ B2: string;
50
+ B: string;
51
+ HB: string;
52
+ F: string;
53
+ };
54
+ semantic: {
55
+ success: string;
56
+ info: string;
57
+ warning: string;
58
+ error: string;
59
+ enterprise: string;
60
+ team: string;
61
+ pro: string;
62
+ };
63
+ };
64
+ typography: {
65
+ fontSize: {
66
+ h1: number;
67
+ h2: number;
68
+ h3: number;
69
+ h4: number;
70
+ h5: number;
71
+ h6: number;
72
+ p: number;
73
+ span: number;
74
+ div: number;
75
+ };
76
+ fontWeight: {
77
+ normal: number;
78
+ medium: number;
79
+ bold: number;
80
+ };
81
+ };
82
+ zIndex: {
83
+ mobileStepper: number;
84
+ speedDial: number;
85
+ appBar: number;
86
+ drawer: number;
87
+ modal: number;
88
+ snackbar: number;
89
+ tooltip: number;
90
+ };
91
+ };
92
+ export declare function makeStyles<K extends string>(styles: Styles<K>): (deps?: any[]) => Classes<K>;
@@ -0,0 +1,76 @@
1
+ export declare const theme: {
2
+ color: {
3
+ primary: {
4
+ active: string;
5
+ default: string;
6
+ hover: string;
7
+ disabled: string;
8
+ background: string;
9
+ lightBackground: string;
10
+ };
11
+ secondary: {
12
+ active: string;
13
+ default: string;
14
+ hover: string;
15
+ disabled: string;
16
+ background: string;
17
+ };
18
+ thirdary: {
19
+ active: string;
20
+ default: string;
21
+ hover: string;
22
+ disabled: string;
23
+ background: string;
24
+ };
25
+ text: {
26
+ white: string;
27
+ B6: string;
28
+ B5: string;
29
+ B4: string;
30
+ B3: string;
31
+ B2: string;
32
+ B: string;
33
+ HB: string;
34
+ F: string;
35
+ };
36
+ semantic: {
37
+ success: string;
38
+ info: string;
39
+ warning: string;
40
+ error: string;
41
+ /**
42
+ * @description specific usage
43
+ */
44
+ enterprise: string;
45
+ team: string;
46
+ pro: string;
47
+ };
48
+ };
49
+ typography: {
50
+ fontSize: {
51
+ h1: number;
52
+ h2: number;
53
+ h3: number;
54
+ h4: number;
55
+ h5: number;
56
+ h6: number;
57
+ p: number;
58
+ span: number;
59
+ div: number;
60
+ };
61
+ fontWeight: {
62
+ normal: number;
63
+ medium: number;
64
+ bold: number;
65
+ };
66
+ };
67
+ zIndex: {
68
+ mobileStepper: number;
69
+ speedDial: number;
70
+ appBar: number;
71
+ drawer: number;
72
+ modal: number;
73
+ snackbar: number;
74
+ tooltip: number;
75
+ };
76
+ };
@@ -0,0 +1,4 @@
1
+ import { Theme } from '../styles';
2
+ export declare type ColorResolver = (theme: Theme) => string;
3
+ export declare type ColorPath = 'primary' | 'primary.active' | 'primary.default' | 'primary.hover' | 'primary.disabled' | 'primary.background' | 'secondary' | 'secondary.active' | 'secondary.default' | 'secondary.hover' | 'secondary.disabled' | 'secondary.background' | 'thirdary' | 'thirdary.active' | 'thirdary.default' | 'thirdary.hover' | 'thirdary.disabled' | 'thirdary.background' | 'text.white' | 'text.B6' | 'text.B5' | 'text.B4' | 'text.B3' | 'text.B2' | 'text.B' | 'text.HB' | 'text.F' | 'success' | 'info' | 'warning' | 'error';
4
+ export declare type ColorProp = ColorPath | ColorResolver;
@@ -0,0 +1,2 @@
1
+ declare function formatNumberToText(num: number): string | number;
2
+ export default formatNumberToText;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Converts a color from CSS hex format to CSS rgba format.
3
+ */
4
+ export declare function hexToRgba(originColor: string, opacity?: number): string;
@@ -0,0 +1,2 @@
1
+ declare function replaceAll(str: string, find: string, replace: string): string;
2
+ export default replaceAll;
@@ -0,0 +1,3 @@
1
+ import { Theme } from '../styles';
2
+ import { ColorPath } from '../types/color';
3
+ export declare function resolveThemeColorByPath(theme: Theme, color?: ColorPath): string | undefined;
@@ -0,0 +1,3 @@
1
+ import { ColorProp } from '../types/color';
2
+ import { Theme } from '../styles';
3
+ export declare function resolveThemeColorProp(theme: Theme, color: ColorProp): string | undefined;
@@ -0,0 +1,21 @@
1
+ declare const statusData: {
2
+ PUBLIC: {
3
+ color: string;
4
+ };
5
+ PRIVATE: {
6
+ color: string;
7
+ };
8
+ OFF: {
9
+ color: string;
10
+ };
11
+ ENDED: {
12
+ color: string;
13
+ };
14
+ COMING_SOON: {
15
+ color: string;
16
+ };
17
+ REPLY_FULL: {
18
+ color: string;
19
+ };
20
+ };
21
+ export default statusData;
@@ -0,0 +1,54 @@
1
+ declare const _default: {
2
+ create_a_survey: string;
3
+ from_empty: string;
4
+ from_template: string;
5
+ responses: string;
6
+ surveyStatus: {
7
+ PUBLIC: string;
8
+ PRIVATE: string;
9
+ OFF: string;
10
+ ENDED: string;
11
+ COMING_SOON: string;
12
+ REPLY_FULL: string;
13
+ };
14
+ title: string;
15
+ status: string;
16
+ allStatus: string;
17
+ createtime: string;
18
+ reply_count: string;
19
+ table: {
20
+ show: string;
21
+ to: string;
22
+ unit: string;
23
+ total: string;
24
+ dataText: string;
25
+ comma: string;
26
+ selectTag: string;
27
+ };
28
+ menu: {
29
+ edit: string;
30
+ preview: string;
31
+ move: string;
32
+ duplicate: string;
33
+ share: string;
34
+ createSlaveSurvey: string;
35
+ review: string;
36
+ chart: string;
37
+ };
38
+ orderFilter: {
39
+ createtime: string;
40
+ updatetime: string;
41
+ reply_time_latest: string;
42
+ reply_count: string;
43
+ };
44
+ from: string;
45
+ to: string;
46
+ startDate: string;
47
+ endDate: string;
48
+ chips: {
49
+ slave: string;
50
+ master: string;
51
+ pro: string;
52
+ };
53
+ };
54
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as pricing } from './pricing';
2
+ export { default as dashboard } from './dashboard';
@@ -0,0 +1,35 @@
1
+ declare const _default: {
2
+ title: string;
3
+ subtitle: string;
4
+ plan: {
5
+ basic: {
6
+ name: string;
7
+ subtitle: string;
8
+ pricing: string;
9
+ currency: string;
10
+ features: string[];
11
+ };
12
+ pro: {
13
+ name: string;
14
+ subtitle: string;
15
+ pricing: string;
16
+ currency: string;
17
+ features: string[];
18
+ };
19
+ team: {
20
+ name: string;
21
+ subtitle: string;
22
+ pricing: string;
23
+ currency: string;
24
+ features: string[];
25
+ };
26
+ enterprise: {
27
+ name: string;
28
+ subtitle: string;
29
+ pricing: string;
30
+ currency: string;
31
+ features: string[];
32
+ };
33
+ };
34
+ };
35
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import React, { FC } from 'react';
2
+ import * as enWording from './en';
3
+ import * as twWording from './tw';
4
+ interface WordingProviderProps {
5
+ lang: 'tw' | 'en';
6
+ }
7
+ export interface IWording extends FC<WordingProviderProps> {
8
+ useWording: () => typeof twWording;
9
+ }
10
+ export declare const WordingContext: React.Context<typeof enWording>;
11
+ declare const WordingProvider: IWording;
12
+ export default WordingProvider;
@@ -0,0 +1,54 @@
1
+ declare const _default: {
2
+ create_a_survey: string;
3
+ from_empty: string;
4
+ from_template: string;
5
+ responses: string;
6
+ surveyStatus: {
7
+ PUBLIC: string;
8
+ PRIVATE: string;
9
+ OFF: string;
10
+ ENDED: string;
11
+ COMING_SOON: string;
12
+ REPLY_FULL: string;
13
+ };
14
+ title: string;
15
+ status: string;
16
+ allStatus: string;
17
+ createtime: string;
18
+ reply_count: string;
19
+ table: {
20
+ show: string;
21
+ to: string;
22
+ unit: string;
23
+ total: string;
24
+ dataText: string;
25
+ comma: string;
26
+ selectTag: string;
27
+ };
28
+ menu: {
29
+ edit: string;
30
+ preview: string;
31
+ move: string;
32
+ duplicate: string;
33
+ share: string;
34
+ createSlaveSurvey: string;
35
+ review: string;
36
+ chart: string;
37
+ };
38
+ orderFilter: {
39
+ createtime: string;
40
+ updatetime: string;
41
+ reply_time_latest: string;
42
+ reply_count: string;
43
+ };
44
+ from: string;
45
+ to: string;
46
+ startDate: string;
47
+ endDate: string;
48
+ chips: {
49
+ slave: string;
50
+ master: string;
51
+ pro: string;
52
+ };
53
+ };
54
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as pricing } from './pricing';
2
+ export { default as dashboard } from './dashboard';
@@ -0,0 +1,35 @@
1
+ declare const _default: {
2
+ title: string;
3
+ subtitle: string;
4
+ plan: {
5
+ basic: {
6
+ name: string;
7
+ subtitle: string;
8
+ pricing: string;
9
+ currency: string;
10
+ features: string[];
11
+ };
12
+ pro: {
13
+ name: string;
14
+ subtitle: string;
15
+ pricing: string;
16
+ currency: string;
17
+ features: string[];
18
+ };
19
+ team: {
20
+ name: string;
21
+ subtitle: string;
22
+ pricing: string;
23
+ currency: string;
24
+ features: string[];
25
+ };
26
+ enterprise: {
27
+ name: string;
28
+ subtitle: string;
29
+ pricing: string;
30
+ currency: string;
31
+ features: string[];
32
+ };
33
+ };
34
+ };
35
+ export default _default;
package/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@surveycake/rc",
3
+ "version": "2.4.0-alpha.12",
4
+ "description": "react component of surveycake",
5
+ "keywords": [
6
+ "surveycake",
7
+ "25sprout",
8
+ "react",
9
+ "component"
10
+ ],
11
+ "contributor": [
12
+ {
13
+ "name": "25sprout Front-End Team",
14
+ "email": "hey@25sprout.com"
15
+ }
16
+ ],
17
+ "repository": "git@fox.25sprout.com:surveycake/sdk/rc.git",
18
+ "license": "MIT",
19
+ "sideEffects": false,
20
+ "private": false,
21
+ "config": {
22
+ "commitizen": {
23
+ "path": "cz-conventional-changelog"
24
+ }
25
+ },
26
+ "main": "dist/index.js",
27
+ "module": "dist/rc.esm.js",
28
+ "typings": "dist/index.d.ts",
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "scripts": {
33
+ "start": "tsdx watch",
34
+ "test": "tsdx test --env=jsdom",
35
+ "lint": "tsdx lint",
36
+ "build": "tsdx build",
37
+ "commit": "git-cz",
38
+ "release": "standard-version",
39
+ "dev": "styleguidist server",
40
+ "build:doc": "rm -rf ./styleguide && styleguidist build",
41
+ "format": "prettier --config ./.prettierrc --write '**/*.{ts,js,css,html,json}'"
42
+ },
43
+ "dependencies": {
44
+ "@date-io/date-fns": "^1.3.13",
45
+ "@emotion/styled": "^10.0.27",
46
+ "@material-ui/core": "^4.9.14",
47
+ "@material-ui/icons": "^4.9.1",
48
+ "@material-ui/lab": "^4.0.0-alpha.53",
49
+ "@material-ui/pickers": "^3.2.10",
50
+ "@surveycake/rhooks": "^2.3.5",
51
+ "@surveycake/utils": "^2.6.10",
52
+ "date-fns": "^2.8.1",
53
+ "react-table": "^7.0.0-beta.23",
54
+ "react-use": "^13.11.0",
55
+ "react-virtualized": "^9.21.2"
56
+ },
57
+ "peerDependencies": {
58
+ "@emotion/core": "10.x",
59
+ "emotion": "10.x",
60
+ "emotion-theming": "10.x",
61
+ "react": ">=16",
62
+ "react-dom": ">=16"
63
+ },
64
+ "devDependencies": {
65
+ "@babel/core": "^7.7.4",
66
+ "@babel/preset-env": "^7.6.3",
67
+ "@babel/preset-react": "^7.6.3",
68
+ "@babel/preset-typescript": "^7.6.0",
69
+ "@emotion/core": "^10.0.28",
70
+ "@types/he": "^1.1.0",
71
+ "@types/jest": "^24.0.21",
72
+ "@types/react": "^16.9.11",
73
+ "@types/react-dom": "^16.9.3",
74
+ "@types/react-virtualized": "^9.21.6",
75
+ "babel-loader": "^8.0.6",
76
+ "commitizen": "^4.2.3",
77
+ "core-js": "^3.3.6",
78
+ "cz-conventional-changelog": "^3.3.0",
79
+ "emotion": "^10.0.23",
80
+ "emotion-theming": "^10.0.19",
81
+ "he": "^1.2.0",
82
+ "prettier": "^1.19.1",
83
+ "prop-types": "^15.7.2",
84
+ "react": "^16.11.0",
85
+ "react-docgen-typescript": "^1.15.1",
86
+ "react-dom": "^16.11.0",
87
+ "react-styleguidist": "^10.1.0",
88
+ "standard-version": "^9.1.1",
89
+ "tsdx": "^0.11.0",
90
+ "tslib": "^1.10.0",
91
+ "typescript": "^3.6.4",
92
+ "webpack": "^4.41.2"
93
+ },
94
+ "standard-version": {
95
+ "commitUrlFormat": "{{host}}/surveycake/sdk/rc/commit/{{hash}}",
96
+ "compareUrlFormat": "{{host}}/surveycake/sdk/rc/compare/{{previousTag}}...{{currentTag}}"
97
+ }
98
+ }