create-catalyst-app 0.0.1-beta.2 → 0.0.1-beta.3

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 (237) hide show
  1. package/{readme.md → Readme.md} +2 -3
  2. package/license +10 -0
  3. package/package.json +20 -18
  4. package/scripts/cli.cjs +242 -0
  5. package/templates/common/.babelrc +11 -11
  6. package/templates/common/README.md +16 -20
  7. package/templates/common/api.js +9 -11
  8. package/templates/common/client/styles.js +1 -13
  9. package/templates/common/config/config.json +13 -16
  10. package/templates/common/public/favicon.ico +0 -0
  11. package/templates/{none-js → common}/server/document.js +1 -2
  12. package/templates/common/server/index.js +2 -0
  13. package/templates/common/server/server.js +8 -0
  14. package/templates/common/src/js/containers/Home/Home.js +23 -40
  15. package/templates/common/src/js/containers/Home/Home.scss +34 -0
  16. package/templates/common/src/js/routes/index.js +9 -42
  17. package/templates/common/src/static/css/base/index.scss +0 -7
  18. package/templates/common/src/static/css/base/styles.scss +0 -160
  19. package/templates/common/src/static/css/resources/_variables.scss +0 -172
  20. package/{my-app → templates/common}/webpackConfig.js +2 -2
  21. package/templates/none-js/client/index.js +9 -13
  22. package/templates/none-js/package.json +6 -36
  23. package/templates/none-js/src/js/containers/App/index.js +12 -36
  24. package/templates/none-js/src/js/routes/utils.js +28 -0
  25. package/templates/redux-js/client/index.js +6 -5
  26. package/templates/redux-js/package.json +9 -36
  27. package/templates/redux-js/src/js/containers/App/actions.js +1 -4
  28. package/templates/redux-js/src/js/containers/App/index.js +12 -38
  29. package/templates/redux-js/src/js/containers/App/reducer.js +15 -16
  30. package/templates/redux-js/src/js/routes/utils.js +28 -0
  31. package/templates/redux-js/src/js/store/index.js +17 -68
  32. package/templates/rtk-js/client/index.js +6 -5
  33. package/templates/rtk-js/package.json +9 -36
  34. package/templates/rtk-js/src/js/containers/App/index.js +12 -38
  35. package/templates/rtk-js/src/js/containers/App/reducer.js +1 -9
  36. package/templates/rtk-js/src/js/routes/utils.js +28 -0
  37. package/templates/rtk-js/src/js/store/index.js +12 -6
  38. package/my-app/.babelrc +0 -26
  39. package/my-app/.eslintignore +0 -6
  40. package/my-app/.eslintrc +0 -53
  41. package/my-app/.stylelintrc +0 -35
  42. package/my-app/README.md +0 -23
  43. package/my-app/api.js +0 -29
  44. package/my-app/checkVersion.js +0 -3
  45. package/my-app/client/index.js +0 -27
  46. package/my-app/client/styles.js +0 -14
  47. package/my-app/config/config.json +0 -15
  48. package/my-app/config/config_template.json +0 -18
  49. package/my-app/config/index.js +0 -44
  50. package/my-app/package.json +0 -28
  51. package/my-app/server/document.js +0 -14
  52. package/my-app/server/index.js +0 -3
  53. package/my-app/server/server.js +0 -3
  54. package/my-app/src/js/containers/App/actions.js +0 -20
  55. package/my-app/src/js/containers/App/index.js +0 -16
  56. package/my-app/src/js/containers/App/reducer.js +0 -26
  57. package/my-app/src/js/containers/DemoPage/DemoPage.js +0 -39
  58. package/my-app/src/js/containers/DemoPage/DemoPage.scss +0 -3
  59. package/my-app/src/js/containers/Home/Home.js +0 -25
  60. package/my-app/src/js/containers/Home/Home.scss +0 -36
  61. package/my-app/src/js/reducer/index.js +0 -80
  62. package/my-app/src/js/routes/index.js +0 -43
  63. package/my-app/src/js/stateManager/stateProvider.js +0 -34
  64. package/my-app/src/js/store/index.js +0 -22
  65. package/my-app/src/static/css/base/index.scss +0 -2
  66. package/my-app/src/static/css/base/styles.scss +0 -3
  67. package/my-app/src/static/css/base/typography.scss +0 -53
  68. package/my-app/src/static/css/resources/_variables.scss +0 -0
  69. package/my-app/src/static/fonts/.gitkeep +0 -0
  70. package/my-app/src/static/fonts/Inter-Bold-Subset.otf +0 -0
  71. package/my-app/src/static/fonts/Inter-Italic-Subset.otf +0 -0
  72. package/my-app/src/static/fonts/Inter-Light-Subset.otf +0 -0
  73. package/my-app/src/static/fonts/Inter-Medium-Subset.otf +0 -0
  74. package/my-app/src/static/fonts/Inter-Regular-Subset.otf +0 -0
  75. package/my-app/src/static/fonts/Inter-SemiBold-Subset.otf +0 -0
  76. package/my-app/src/static/fonts/Poppins-Bold-Subset.woff2 +0 -0
  77. package/my-app/src/static/fonts/Poppins-Italic-Subset.woff2 +0 -0
  78. package/my-app/src/static/fonts/Poppins-Medium-Subset.woff2 +0 -0
  79. package/my-app/src/static/fonts/Poppins-Regular-Subset.woff2 +0 -0
  80. package/my-app/src/static/fonts/Poppins-SemiBold-Subset.woff2 +0 -0
  81. package/scripts/cli.mjs +0 -266
  82. package/templates/common/.editorconfig +0 -12
  83. package/templates/common/.eslintignore +0 -6
  84. package/templates/common/.eslintrc +0 -53
  85. package/templates/common/.prettierrc.json +0 -7
  86. package/templates/common/.stylelintrc +0 -35
  87. package/templates/common/checkVersion.js +0 -3
  88. package/templates/common/client/index.js +0 -39
  89. package/templates/common/config/config_template.json +0 -18
  90. package/templates/common/config/index.js +0 -77
  91. package/templates/common/package.json +0 -56
  92. package/templates/common/server/CustomDocument.js +0 -14
  93. package/templates/common/server/customIndex.js +0 -3
  94. package/templates/common/server/customServer.js +0 -16
  95. package/templates/common/src/js/containers/App/actions.js +0 -20
  96. package/templates/common/src/js/containers/App/index.js +0 -46
  97. package/templates/common/src/js/containers/App/reducer.js +0 -21
  98. package/templates/common/src/js/containers/PDP/PDP.js +0 -37
  99. package/templates/common/src/js/reducer/index.js +0 -80
  100. package/templates/common/src/js/stateManager/stateProvider.js +0 -34
  101. package/templates/common/src/js/store/index.js +0 -77
  102. package/templates/common/src/static/css/base/_overrides.scss +0 -81
  103. package/templates/common/src/static/css/base/animations.js +0 -38
  104. package/templates/common/src/static/css/base/layout.scss +0 -242
  105. package/templates/common/src/static/css/base/typography.scss +0 -285
  106. package/templates/common/src/static/css/resources/_mixins.scss +0 -196
  107. package/templates/common/src/static/css/resources/_vendors.scss +0 -1
  108. package/templates/common/src/static/fonts/.gitkeep +0 -0
  109. package/templates/common/src/static/fonts/Inter-Bold-Subset.otf +0 -0
  110. package/templates/common/src/static/fonts/Inter-Italic-Subset.otf +0 -0
  111. package/templates/common/src/static/fonts/Inter-Light-Subset.otf +0 -0
  112. package/templates/common/src/static/fonts/Inter-Medium-Subset.otf +0 -0
  113. package/templates/common/src/static/fonts/Inter-Regular-Subset.otf +0 -0
  114. package/templates/common/src/static/fonts/Inter-SemiBold-Subset.otf +0 -0
  115. package/templates/common/src/static/fonts/Poppins-Bold-Subset.woff2 +0 -0
  116. package/templates/common/src/static/fonts/Poppins-Italic-Subset.woff2 +0 -0
  117. package/templates/common/src/static/fonts/Poppins-Light-Subset.woff2 +0 -0
  118. package/templates/common/src/static/fonts/Poppins-Medium-Subset.woff2 +0 -0
  119. package/templates/common/src/static/fonts/Poppins-Regular-Subset.woff2 +0 -0
  120. package/templates/common/src/static/fonts/Poppins-SemiBold-Subset.woff2 +0 -0
  121. package/templates/none-js/.babelrc +0 -26
  122. package/templates/none-js/.eslintignore +0 -6
  123. package/templates/none-js/.eslintrc +0 -53
  124. package/templates/none-js/.prettierrc.json +0 -7
  125. package/templates/none-js/.stylelintrc +0 -35
  126. package/templates/none-js/README.md +0 -22
  127. package/templates/none-js/api.js +0 -29
  128. package/templates/none-js/checkVersion.js +0 -3
  129. package/templates/none-js/client/styles.js +0 -15
  130. package/templates/none-js/config/config.json +0 -15
  131. package/templates/none-js/config/config_template.json +0 -18
  132. package/templates/none-js/config/index.js +0 -44
  133. package/templates/none-js/server/index.js +0 -3
  134. package/templates/none-js/server/server.js +0 -16
  135. package/templates/none-js/src/js/containers/DemoPage/DemoPage.js +0 -39
  136. package/templates/none-js/src/js/containers/DemoPage/DemoPage.scss +0 -3
  137. package/templates/none-js/src/js/containers/Home/Home.js +0 -27
  138. package/templates/none-js/src/js/containers/Home/Home.scss +0 -36
  139. package/templates/none-js/src/js/routes/index.js +0 -49
  140. package/templates/none-js/src/js/stateManager/stateProvider.js +0 -19
  141. package/templates/none-js/src/js/store/index.js +0 -6
  142. package/templates/none-js/src/static/css/base/index.scss +0 -3
  143. package/templates/none-js/src/static/css/base/styles.scss +0 -11
  144. package/templates/none-js/src/static/css/base/typography.scss +0 -53
  145. package/templates/none-js/src/static/css/resources/_variables.scss +0 -1
  146. package/templates/none-js/src/static/fonts/.gitkeep +0 -0
  147. package/templates/none-js/src/static/fonts/Inter-Bold-Subset.otf +0 -0
  148. package/templates/none-js/src/static/fonts/Inter-Italic-Subset.otf +0 -0
  149. package/templates/none-js/src/static/fonts/Inter-Light-Subset.otf +0 -0
  150. package/templates/none-js/src/static/fonts/Inter-Medium-Subset.otf +0 -0
  151. package/templates/none-js/src/static/fonts/Inter-Regular-Subset.otf +0 -0
  152. package/templates/none-js/src/static/fonts/Inter-SemiBold-Subset.otf +0 -0
  153. package/templates/none-js/src/static/fonts/Poppins-Bold-Subset.woff2 +0 -0
  154. package/templates/none-js/src/static/fonts/Poppins-Italic-Subset.woff2 +0 -0
  155. package/templates/none-js/src/static/fonts/Poppins-Medium-Subset.woff2 +0 -0
  156. package/templates/none-js/src/static/fonts/Poppins-Regular-Subset.woff2 +0 -0
  157. package/templates/none-js/src/static/fonts/Poppins-SemiBold-Subset.woff2 +0 -0
  158. package/templates/none-js/webpackConfig.js +0 -5
  159. package/templates/redux-js/.babelrc +0 -26
  160. package/templates/redux-js/.eslintignore +0 -6
  161. package/templates/redux-js/.eslintrc +0 -53
  162. package/templates/redux-js/.prettierrc.json +0 -7
  163. package/templates/redux-js/.stylelintrc +0 -35
  164. package/templates/redux-js/README.md +0 -22
  165. package/templates/redux-js/api.js +0 -29
  166. package/templates/redux-js/checkVersion.js +0 -3
  167. package/templates/redux-js/client/styles.js +0 -15
  168. package/templates/redux-js/config/config.json +0 -15
  169. package/templates/redux-js/config/config_template.json +0 -18
  170. package/templates/redux-js/config/index.js +0 -44
  171. package/templates/redux-js/server/document.js +0 -14
  172. package/templates/redux-js/server/index.js +0 -3
  173. package/templates/redux-js/server/server.js +0 -16
  174. package/templates/redux-js/src/js/containers/DemoPage/DemoPage.js +0 -39
  175. package/templates/redux-js/src/js/containers/DemoPage/DemoPage.scss +0 -3
  176. package/templates/redux-js/src/js/containers/Home/Home.js +0 -27
  177. package/templates/redux-js/src/js/containers/Home/Home.scss +0 -36
  178. package/templates/redux-js/src/js/reducer/index.js +0 -80
  179. package/templates/redux-js/src/js/routes/index.js +0 -49
  180. package/templates/redux-js/src/js/stateManager/stateProvider.js +0 -34
  181. package/templates/redux-js/src/static/css/base/index.scss +0 -3
  182. package/templates/redux-js/src/static/css/base/styles.scss +0 -11
  183. package/templates/redux-js/src/static/css/base/typography.scss +0 -53
  184. package/templates/redux-js/src/static/css/resources/_variables.scss +0 -1
  185. package/templates/redux-js/src/static/fonts/.gitkeep +0 -0
  186. package/templates/redux-js/src/static/fonts/Inter-Bold-Subset.otf +0 -0
  187. package/templates/redux-js/src/static/fonts/Inter-Italic-Subset.otf +0 -0
  188. package/templates/redux-js/src/static/fonts/Inter-Light-Subset.otf +0 -0
  189. package/templates/redux-js/src/static/fonts/Inter-Medium-Subset.otf +0 -0
  190. package/templates/redux-js/src/static/fonts/Inter-Regular-Subset.otf +0 -0
  191. package/templates/redux-js/src/static/fonts/Inter-SemiBold-Subset.otf +0 -0
  192. package/templates/redux-js/src/static/fonts/Poppins-Bold-Subset.woff2 +0 -0
  193. package/templates/redux-js/src/static/fonts/Poppins-Italic-Subset.woff2 +0 -0
  194. package/templates/redux-js/src/static/fonts/Poppins-Medium-Subset.woff2 +0 -0
  195. package/templates/redux-js/src/static/fonts/Poppins-Regular-Subset.woff2 +0 -0
  196. package/templates/redux-js/src/static/fonts/Poppins-SemiBold-Subset.woff2 +0 -0
  197. package/templates/redux-js/webpackConfig.js +0 -5
  198. package/templates/rtk-js/.babelrc +0 -26
  199. package/templates/rtk-js/.eslintignore +0 -6
  200. package/templates/rtk-js/.eslintrc +0 -53
  201. package/templates/rtk-js/.prettierrc.json +0 -7
  202. package/templates/rtk-js/.stylelintrc +0 -35
  203. package/templates/rtk-js/README.md +0 -23
  204. package/templates/rtk-js/api.js +0 -29
  205. package/templates/rtk-js/checkVersion.js +0 -3
  206. package/templates/rtk-js/client/styles.js +0 -15
  207. package/templates/rtk-js/config/config.json +0 -15
  208. package/templates/rtk-js/config/config_template.json +0 -18
  209. package/templates/rtk-js/config/index.js +0 -44
  210. package/templates/rtk-js/server/document.js +0 -14
  211. package/templates/rtk-js/server/index.js +0 -3
  212. package/templates/rtk-js/server/server.js +0 -16
  213. package/templates/rtk-js/src/js/containers/DemoPage/DemoPage.js +0 -39
  214. package/templates/rtk-js/src/js/containers/DemoPage/DemoPage.scss +0 -3
  215. package/templates/rtk-js/src/js/containers/Home/Home.js +0 -27
  216. package/templates/rtk-js/src/js/containers/Home/Home.scss +0 -36
  217. package/templates/rtk-js/src/js/reducer/index.js +0 -80
  218. package/templates/rtk-js/src/js/routes/index.js +0 -49
  219. package/templates/rtk-js/src/js/stateManager/stateProvider.js +0 -34
  220. package/templates/rtk-js/src/static/css/base/index.scss +0 -3
  221. package/templates/rtk-js/src/static/css/base/styles.scss +0 -11
  222. package/templates/rtk-js/src/static/css/base/typography.scss +0 -53
  223. package/templates/rtk-js/src/static/css/resources/_variables.scss +0 -1
  224. package/templates/rtk-js/src/static/fonts/.gitkeep +0 -0
  225. package/templates/rtk-js/src/static/fonts/Inter-Bold-Subset.otf +0 -0
  226. package/templates/rtk-js/src/static/fonts/Inter-Italic-Subset.otf +0 -0
  227. package/templates/rtk-js/src/static/fonts/Inter-Light-Subset.otf +0 -0
  228. package/templates/rtk-js/src/static/fonts/Inter-Medium-Subset.otf +0 -0
  229. package/templates/rtk-js/src/static/fonts/Inter-Regular-Subset.otf +0 -0
  230. package/templates/rtk-js/src/static/fonts/Inter-SemiBold-Subset.otf +0 -0
  231. package/templates/rtk-js/src/static/fonts/Poppins-Bold-Subset.woff2 +0 -0
  232. package/templates/rtk-js/src/static/fonts/Poppins-Italic-Subset.woff2 +0 -0
  233. package/templates/rtk-js/src/static/fonts/Poppins-Medium-Subset.woff2 +0 -0
  234. package/templates/rtk-js/src/static/fonts/Poppins-Regular-Subset.woff2 +0 -0
  235. package/templates/rtk-js/src/static/fonts/Poppins-SemiBold-Subset.woff2 +0 -0
  236. package/templates/rtk-js/webpackConfig.js +0 -5
  237. /package/{my-app/.prettierrc.json → .prettierrc.json} +0 -0
@@ -1,285 +0,0 @@
1
- @font-face {
2
- font-family: Inter;
3
- font-style: normal;
4
- font-weight: 300;
5
- font-display: block;
6
- src: local("Inter Light"), local("Inter-Light"), url($font_url + "Inter-Light-Subset.otf");
7
- unicode-range: U+0020-007F, U+201C, U+201D, U+00A;
8
- }
9
-
10
- @font-face {
11
- font-family: Inter;
12
- font-style: normal;
13
- font-weight: 400;
14
- font-display: block;
15
- src: local("Inter Regular"), local("Inter-Regular"), url($font_url + "Inter-Regular-Subset.otf");
16
- unicode-range: U+0020-007F, U+201C, U+201D, U+00A;
17
- }
18
-
19
- @font-face {
20
- font-family: Inter;
21
- font-style: italic;
22
- font-weight: 400;
23
- font-display: block;
24
- src: local("Inter Italic"), local("Inter-Italic"), url($font_url + "Inter-Italic-Subset.otf");
25
- unicode-range: U+0020-007F, U+201C, U+201D, U+00A;
26
- }
27
-
28
- @font-face {
29
- font-family: Inter;
30
- font-style: normal;
31
- font-weight: 500;
32
- font-display: block;
33
- src: local("Inter Medium"), local("Inter-Medium"), url($font_url + "Inter-Medium-Subset.otf");
34
- unicode-range: U+0020-007F, U+201C, U+201D, U+00A;
35
- }
36
-
37
- @font-face {
38
- font-family: Inter;
39
- font-style: normal;
40
- font-weight: 600;
41
- font-display: block;
42
- src: local("Inter SemiBold"), local("Inter-SemiBold"), url($font_url + "Inter-SemiBold-Subset.otf");
43
- unicode-range: U+0020-007F, U+201C, U+201D, U+00A;
44
- }
45
-
46
- @font-face {
47
- font-family: Inter;
48
- font-style: normal;
49
- font-weight: 700;
50
- font-display: block;
51
- src: local("Inter Bold"), local("Inter-Bold"), url($font_url + "Inter-Bold-Subset.otf");
52
- unicode-range: U+0020-007F, U+201C, U+201D, U+00A;
53
- }
54
-
55
- html {
56
- font-size: $font-size-body + px;
57
- line-height: $line-height-base;
58
- }
59
-
60
- h1 {
61
- font-size: remy($font-size-l3);
62
- font-weight: $font-weight-regular;
63
- line-height: $line-height-base;
64
- margin: 0;
65
- }
66
-
67
- h2 {
68
- font-size: remy($font-size-l4);
69
- font-weight: $font-weight-semi-bold;
70
- line-height: $line-height-base;
71
- margin: 0;
72
- }
73
-
74
- h3 {
75
- font-size: remy($font-size-l5);
76
- font-weight: $font-weight-medium;
77
- line-height: $line-height-base;
78
- margin: 0;
79
- }
80
-
81
- p {
82
- font-size: remy($font-size-body);
83
- line-height: $line-height-base;
84
- margin: 0;
85
- word-break: break-word;
86
- overflow-wrap: break-word;
87
- }
88
-
89
- .heroSemiBold {
90
- font-size: remy($font-size-hero);
91
- font-weight: $font-weight-semi-bold;
92
- line-height: $line-height-base;
93
- }
94
-
95
- .heroMedium {
96
- font-size: remy($font-size-hero);
97
- font-weight: $font-weight-medium;
98
- line-height: $line-height-base;
99
- }
100
-
101
- .heroRegular {
102
- font-size: remy($font-size-hero);
103
- font-weight: $font-weight-regular;
104
- line-height: $line-height-base;
105
- }
106
-
107
- .l1SemiBold {
108
- font-size: remy($font-size-l1);
109
- font-weight: $font-weight-semi-bold;
110
- line-height: $line-height-base;
111
- }
112
-
113
- .l1Medium {
114
- font-size: remy($font-size-l1);
115
- font-weight: $font-weight-medium;
116
- line-height: $line-height-base;
117
- }
118
-
119
- .l1Regular {
120
- font-size: remy($font-size-l1);
121
- font-weight: $font-weight-regular;
122
- line-height: $line-height-base;
123
- }
124
-
125
- .l2SemiBold {
126
- font-size: remy($font-size-l2);
127
- font-weight: $font-weight-semi-bold;
128
- line-height: $line-height-base;
129
- }
130
-
131
- .l2Medium {
132
- font-size: remy($font-size-l2);
133
- font-weight: $font-weight-medium;
134
- line-height: $line-height-base;
135
- }
136
-
137
- .l2Regular {
138
- font-size: remy($font-size-l2);
139
- font-weight: $font-weight-regular;
140
- line-height: $line-height-base;
141
- }
142
-
143
- .l3SemiBold {
144
- font-size: remy($font-size-l3);
145
- font-weight: $font-weight-semi-bold;
146
- line-height: $line-height-base;
147
- }
148
-
149
- .l3Medium {
150
- font-size: remy($font-size-l3);
151
- font-weight: $font-weight-medium;
152
- line-height: $line-height-base;
153
- }
154
-
155
- .l3Regular {
156
- font-size: remy($font-size-l3);
157
- font-weight: $font-weight-regular;
158
- line-height: $line-height-base;
159
- }
160
-
161
- .l4SemiBold {
162
- font-size: remy($font-size-l4);
163
- font-weight: $font-weight-semi-bold;
164
- line-height: $line-height-base;
165
- }
166
-
167
- .l4Medium {
168
- font-size: remy($font-size-l4);
169
- font-weight: $font-weight-medium;
170
- line-height: $line-height-base;
171
- }
172
-
173
- .l4Regular {
174
- font-size: remy($font-size-l4);
175
- font-weight: $font-weight-regular;
176
- line-height: $line-height-base;
177
- }
178
-
179
- .l5SemiBold {
180
- font-size: remy($font-size-l5);
181
- font-weight: $font-weight-semi-bold;
182
- line-height: $line-height-base;
183
- }
184
-
185
- .l5Medium {
186
- font-size: remy($font-size-l5);
187
- font-weight: $font-weight-medium;
188
- line-height: $line-height-base;
189
- }
190
-
191
- .l5Regular {
192
- font-size: remy($font-size-l5);
193
- font-weight: $font-weight-regular;
194
- line-height: $line-height-base;
195
- }
196
-
197
- .bodySemiBold {
198
- font-size: remy($font-size-body);
199
- font-weight: $font-weight-semi-bold;
200
- line-height: $line-height-base;
201
- }
202
-
203
- .bodyMedium {
204
- font-size: remy($font-size-body);
205
- font-weight: $font-weight-medium;
206
- line-height: $line-height-base;
207
- }
208
-
209
- .bodyRegular {
210
- font-size: remy($font-size-body);
211
- font-weight: $font-weight-regular;
212
- line-height: $line-height-base;
213
- }
214
-
215
- .smallSemiBold {
216
- font-size: remy($font-size-small);
217
- font-weight: $font-weight-semi-bold;
218
- line-height: $line-height-base;
219
- }
220
-
221
- .smallMedium {
222
- font-size: remy($font-size-small);
223
- font-weight: $font-weight-medium;
224
- line-height: $line-height-base;
225
- }
226
-
227
- .smallRegular {
228
- font-size: remy($font-size-small);
229
- font-weight: $font-weight-regular;
230
- line-height: $line-height-base;
231
- }
232
-
233
- .xSmallSemiBold {
234
- font-size: remy($font-size-x-small);
235
- font-weight: $font-weight-semi-bold;
236
- line-height: $line-height-x-small;
237
- }
238
-
239
- .xSmallMedium {
240
- font-size: remy($font-size-x-small);
241
- font-weight: $font-weight-medium;
242
- line-height: $line-height-x-small;
243
- }
244
-
245
- .xSmallRegular {
246
- font-size: remy($font-size-x-small);
247
- font-weight: $font-weight-regular;
248
- line-height: $line-height-x-small;
249
- }
250
-
251
- .textPrimary {
252
- color: $information-primary;
253
- }
254
-
255
- .textSecondary {
256
- color: $information-secondary;
257
- }
258
-
259
- .textTertiary {
260
- color: $information-tertiary;
261
- }
262
-
263
- //EXCEPTIONS Please fix it in DLS 2.0
264
- .errorColor {
265
- background-color: $error-background;
266
- color: $error;
267
- }
268
-
269
- .cautionColor {
270
- background-color: $caution-background;
271
- color: $caution;
272
- }
273
-
274
- .successColor {
275
- background-color: $success-background;
276
- color: $success;
277
- }
278
-
279
- .noAnchorColor {
280
- color: $information-primary;
281
- }
282
-
283
- .breakWord {
284
- word-break: break-word;
285
- }
@@ -1,196 +0,0 @@
1
- /**
2
- @param: Number like 1, 2 or 3
3
- @returns: Space in multiples of 8px
4
- */
5
- @function makespace($spaceMultiple) {
6
- @if $spaceMultiple == 4 {
7
- $spaceMultiple: 5;
8
- }
9
- @return ($spaceMultiple * $base-space);
10
- }
11
-
12
- /**
13
- @param: Input size in px
14
- @returns: Size in rem
15
- */
16
- @function remy($pxsize) {
17
- @return calc($pxsize/$font-size-body) + rem;
18
- }
19
-
20
- @mixin font-size($size) {
21
- // font-size: $size + px; // For unsupported browsers
22
- font-size: remy($size);
23
- }
24
-
25
- // @mixin vertical-center {
26
- // position: relative;
27
- // top: 50%;
28
- // -ms-transform: translateY(-50%);
29
- // -webkit-transform: translateY(-50%);
30
- // transform: translateY(-50%);
31
- // }
32
-
33
- // @mixin keyframes($name) {
34
- // @-webkit-keyframes #{$name} {
35
- // @content;
36
- // }
37
- // @-moz-keyframes #{$name} {
38
- // @content;
39
- // }
40
- // @keyframes #{$name} {
41
- // @content;
42
- // }
43
- // }
44
-
45
- // @mixin text-shorten {
46
- // overflow: hidden;
47
- // text-overflow: ellipsis;
48
- // white-space: nowrap;
49
- // }
50
-
51
- // Clearfix mixin
52
- // %clearfix {
53
- // *zoom: 1;
54
-
55
- // &::before,
56
- // &::after {
57
- // content: " ";
58
- // display: table;
59
- // }
60
-
61
- // &::after {
62
- // clear: both;
63
- // }
64
- // }
65
-
66
- // @mixin generateRatings {
67
- // @each $index, $color, $text-color in $rating-bg-colors-map {
68
- // .rating-#{$index} {
69
- // background: $color;
70
- // color: $text-color;
71
- // }
72
- // }
73
- // }
74
-
75
- @mixin optional-at-root($sel) {
76
- @at-root #{if(not &, $sel, selector-append(&, $sel))} {
77
- @content;
78
- }
79
- }
80
-
81
- @mixin placeholder {
82
- @include optional-at-root("::-webkit-input-placeholder") {
83
- @content;
84
- }
85
-
86
- @include optional-at-root(":-moz-placeholder") {
87
- @content;
88
- }
89
-
90
- @include optional-at-root("::-moz-placeholder") {
91
- @content;
92
- }
93
-
94
- @include optional-at-root(":-ms-input-placeholder") {
95
- @content;
96
- }
97
- }
98
-
99
- // @mixin transition($transition-property, $transition-time, $method) {
100
- // -webkit-transition: $transition-property $transition-time $method;
101
- // -moz-transition: $transition-property $transition-time $method;
102
- // -ms-transition: $transition-property $transition-time $method;
103
- // -o-transition: $transition-property $transition-time $method;
104
- // transition: $transition-property $transition-time $method;
105
- // }
106
-
107
- // @mixin enhanceAnimations() {
108
- // -webkit-transform: translate3d(0, 0, 0);
109
- // -moz-transform: translate3d(0, 0, 0);
110
- // -ms-transform: translate3d(0, 0, 0);
111
- // -o-transform: translate3d(0, 0, 0);
112
- // transform: translate3d(0, 0, 0);
113
-
114
- // // stoping flickering on chrome
115
- // // -webkit-transform-style: preserve-3d;
116
- // // -webkit-perspective: 1000;
117
- // // -webkit-backface-visibility: hidden;
118
- // }
119
-
120
- // @mixin only-mobile {
121
- // @media (max-width: #{$tablet-width}) {
122
- // @content;
123
- // }
124
- // }
125
-
126
- // @mixin tablet {
127
- // @media (min-width: #{$tablet-width}) {
128
- // @content;
129
- // }
130
- // }
131
-
132
- // @mixin only-tablet {
133
- // @media (min-width: #{$tablet-width}) and (max-width: #{$desktop-width}) {
134
- // @content;
135
- // }
136
- // }
137
-
138
- // @mixin desktop {
139
- // @media (min-width: #{$desktop-width}) {
140
- // @content;
141
- // }
142
- // }
143
-
144
- // @mixin only-desktop {
145
- // @media (min-width: #{$desktop-width}) and (max-width: #{$large-width}) {
146
- // @content;
147
- // }
148
- // }
149
-
150
- // @mixin large {
151
- // @media (min-width: #{$large-width}) {
152
- // @content;
153
- // }
154
- // }
155
-
156
- // @mixin box-sizing($box-model) {
157
- // -webkit-box-sizing: $box-model; // Safari <= 5
158
- // -moz-box-sizing: $box-model; // Firefox <= 19
159
- // box-sizing: $box-model;
160
- // }
161
-
162
- // @mixin border-radius($radius) {
163
- // -webkit-border-radius: $radius;
164
- // border-radius: $radius;
165
- // background-clip: padding-box; /* stops bg color from leaking outside the border: */
166
- // }
167
-
168
- // @mixin opacity($opacity) {
169
- // opacity: $opacity;
170
- // $opacity-ie: $opacity * 100;
171
-
172
- // filter: alpha(opacity=$opacity-ie); //IE8
173
- // }
174
-
175
- // hack to remove scrollbars from chrome and IE
176
- @mixin hideScroll() {
177
- -ms-overflow-style: none;
178
-
179
- &::-webkit-scrollbar {
180
- width: 0 !important; /* stylelint-disable-line */
181
- }
182
- }
183
-
184
- // Sidebar Widget / Full width container mixin
185
- // @mixin contentWidth($container-width) {
186
- // width: $container-width;
187
- // }
188
-
189
- @mixin truncateAfterNumberOfLines($lines) {
190
- overflow: hidden;
191
- text-overflow: ellipsis;
192
- display: -webkit-box;
193
- line-clamp: $lines;
194
- -webkit-line-clamp: $lines;
195
- -webkit-box-orient: vertical;
196
- }
@@ -1 +0,0 @@
1
- /* Import or define any sass mixins, functions, and vendor mixins below */
File without changes
@@ -1,26 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "targets": {
7
- "node": "current"
8
- },
9
- },
10
- ],
11
- "@babel/preset-react"
12
- ],
13
- "plugins": [
14
- "@babel/plugin-proposal-object-rest-spread",
15
- "transform-es2015-modules-commonjs",
16
- "transform-class-properties",
17
- "dynamic-import-node",
18
- "@loadable/babel-plugin"
19
- ],
20
- "env": {
21
- "test": {
22
- "presets": ["@babel/preset-react"]
23
- }
24
- },
25
- "ignore": ["__TEST__"]
26
- }
@@ -1,6 +0,0 @@
1
- **/node_modules/*
2
- **/dist/*
3
- **/build/*
4
- **/coverage/*
5
- **/eventScripts/*
6
- **/docs/*
@@ -1,53 +0,0 @@
1
- {
2
- "parser": "@babel/eslint-parser",
3
- "rules": {
4
- "prettier/prettier": "error",
5
- "no-console": "warn",
6
- "react/prop-types": 1,
7
- "react/display-name": [0, { "ignoreTranspilerName": true }],
8
- "react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
9
- "no-prototype-builtins": "off",
10
- "jam3/no-sanitizer-with-danger": 2,
11
- "react/jsx-no-target-blank": [0, {
12
- "enforceDynamicLinks": "never"
13
- }]
14
- },
15
- "env": {
16
- "browser": true,
17
- "es6": true,
18
- "jest": true,
19
- "node": true
20
- },
21
- "globals": {
22
- "expect": true,
23
- "__non_webpack_require__": true,
24
- "logger": "readonly",
25
- "AppCallbacks": "readonly"
26
- },
27
- "extends": ["eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended"],
28
- "parserOptions": {
29
- "sourceType": "module",
30
- "ecmaFeatures": {
31
- "experimentalObjectRestSpread": true,
32
- "jsx": true
33
- },
34
- "babelOptions": {
35
- "configFile": "./babel.config.js"
36
- },
37
- "ecmaVersion": 6
38
- },
39
- "plugins": ["babel", "react", "react-hooks", "prettier", "jam3"],
40
- "settings": {
41
- "react": {
42
- "createClass": "createReactClass",
43
- "pragma": "React",
44
- "version": "detect"
45
- },
46
- "propWrapperFunctions": [
47
- "forbidExtraProps",
48
- { "property": "freeze", "object": "Object" },
49
- { "property": "myFavoriteWrapper" }
50
- ],
51
- "linkComponents": ["Hyperlink", { "name": "Link", "linkAttribute": "to" }]
52
- }
53
- }
@@ -1,7 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 4,
4
- "semi": false,
5
- "arrowParens": "always",
6
- "printWidth": 110
7
- }
@@ -1,35 +0,0 @@
1
- {
2
- "extends": [
3
- "stylelint-config-standard-scss",
4
- "stylelint-config-prettier-scss",
5
- "stylelint-config-css-modules"
6
- ],
7
- "plugins": ["stylelint-prettier"],
8
- "rules": {
9
- "property-no-vendor-prefix":null,
10
- "scss/function-no-unknown": null,
11
- "selector-class-pattern": null,
12
- "prettier/prettier": true,
13
- "color-no-invalid-hex": true,
14
- "comment-empty-line-before": ["always", { "ignore": ["stylelint-commands", "after-comment"] }],
15
- "indentation": 4,
16
- "number-leading-zero": null,
17
- "max-empty-lines": 2,
18
- "declaration-no-important": true,
19
- "block-no-empty": true,
20
- "no-empty-source": null,
21
- "selector-pseudo-class-no-unknown": null,
22
- "selector-type-no-unknown": null,
23
- "rule-empty-line-before": ["always", { "except": ["first-nested"], "ignore": ["after-comment"] }],
24
- "declaration-property-unit-allowed-list": {
25
- "/.*/": ["em", "rem", "%", "s", "vh", "vw", "px", "deg", "ms", "dpi", "dvh", "fr"]
26
- },
27
- "at-rule-no-unknown": null,
28
- "scss/double-slash-comment-whitespace-inside": null,
29
- "scss/at-mixin-pattern": null,
30
- "scss/dollar-variable-pattern": null,
31
- "selector-id-pattern": null,
32
- "keyframes-name-pattern": null,
33
- "selector-pseudo-element-no-unknown": null
34
- }
35
- }
@@ -1,22 +0,0 @@
1
- ## Getting Started
2
- Commence development by initiating the application in development mode with the following commands:
3
-
4
- For running the application in development mode, run:
5
- ```bash
6
- npm run start
7
- ```
8
-
9
- For a production build, utilize:
10
-
11
- ```bash
12
- npm run build
13
- ```
14
-
15
- To serve the production build, execute:
16
-
17
- ```bash
18
- npm run serve
19
- ```
20
-
21
- ## Documentation
22
- Explore the complete documentation at [https://catalyst.1mg.com](https://catalyst.1mg.com).
@@ -1,29 +0,0 @@
1
- const apiInstance = () => {
2
- const fetchFunction = async (url, options) => {
3
- let baseURL = process.env.API_URL
4
- let finalUrl = baseURL + url
5
-
6
- // Request Interceptor - you can modify request here
7
-
8
-
9
- // Add query params if exist
10
- if (Object.keys(options?.params).length > 0) {
11
- finalUrl = url + "?" + new URLSearchParams(options.params)
12
- }
13
-
14
- return fetch(finalUrl, options)
15
- .then(async (response) => {
16
- const parsedResponse = await response.json()
17
- // Response Interceptor - you can modify response here
18
- return parsedResponse
19
- });
20
- }
21
- return {
22
- get: fetchFunction,
23
- post: fetchFunction,
24
- delete: fetchFunction,
25
- patch: fetchFunction,
26
- put: fetchFunction
27
- }
28
- }
29
- export default { apiInstance }