@logora/debate 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1053) hide show
  1. package/.changeset/config.json +11 -0
  2. package/.eslintrc.js +12 -0
  3. package/.github/dependabot.yml +7 -0
  4. package/.github/workflows/master.yml +121 -0
  5. package/.storybook/main.mjs +47 -0
  6. package/.storybook/preview.js +11 -0
  7. package/LICENSE +661 -0
  8. package/README.md +90 -0
  9. package/package.json +101 -0
  10. package/src/components/action/back_link/BackLink.docs.mdx +25 -0
  11. package/src/components/action/back_link/BackLink.jsx +30 -0
  12. package/src/components/action/back_link/BackLink.module.scss +34 -0
  13. package/src/components/action/back_link/BackLink.stories.jsx +28 -0
  14. package/src/components/action/back_link/BackLink.test.jsx +105 -0
  15. package/src/components/action/back_link/index.js +1 -0
  16. package/src/components/action/button/Button.docs.mdx +43 -0
  17. package/src/components/action/button/Button.examples.jsx +60 -0
  18. package/src/components/action/button/Button.jsx +88 -0
  19. package/src/components/action/button/Button.module.scss +133 -0
  20. package/src/components/action/button/Button.stories.jsx +54 -0
  21. package/src/components/action/button/Button.test.jsx +54 -0
  22. package/src/components/action/button/index.js +1 -0
  23. package/src/components/action/icon_text_link/HomeIcon.dev.jsx +9 -0
  24. package/src/components/action/icon_text_link/IconTextLink.docs.mdx +37 -0
  25. package/src/components/action/icon_text_link/IconTextLink.jsx +57 -0
  26. package/src/components/action/icon_text_link/IconTextLink.module.scss +67 -0
  27. package/src/components/action/icon_text_link/IconTextLink.stories.jsx +44 -0
  28. package/src/components/action/icon_text_link/IconTextLink.test.jsx +134 -0
  29. package/src/components/action/icon_text_link/index.js +1 -0
  30. package/src/components/action/link/Link.docs.mdx +23 -0
  31. package/src/components/action/link/Link.jsx +50 -0
  32. package/src/components/action/link/Link.stories.jsx +43 -0
  33. package/src/components/action/link/Link.test.jsx +91 -0
  34. package/src/components/action/link/index.js +1 -0
  35. package/src/components/ad/ad_unit/AdUnit.docs.mdx +23 -0
  36. package/src/components/ad/ad_unit/AdUnit.jsx +75 -0
  37. package/src/components/ad/ad_unit/AdUnit.module.scss +9 -0
  38. package/src/components/ad/ad_unit/AdUnit.stories.jsx +30 -0
  39. package/src/components/ad/ad_unit/AdUnit.test.jsx +63 -0
  40. package/src/components/ad/ad_unit/index.js +1 -0
  41. package/src/components/ad/use_google_ad_manager/index.js +1 -0
  42. package/src/components/ad/use_google_ad_manager/useGoogleAdManager.docs.mdx +27 -0
  43. package/src/components/ad/use_google_ad_manager/useGoogleAdManager.jsx +37 -0
  44. package/src/components/ad/use_google_ad_manager/useGoogleAdManager.test.jsx +47 -0
  45. package/src/components/ad/with_ad/WithAd.docs.mdx +30 -0
  46. package/src/components/ad/with_ad/WithAd.jsx +51 -0
  47. package/src/components/ad/with_ad/WithAd.test.jsx +104 -0
  48. package/src/components/ad/with_ad/index.js +1 -0
  49. package/src/components/argument/argument/Argument.docs.mdx +60 -0
  50. package/src/components/argument/argument/Argument.jsx +358 -0
  51. package/src/components/argument/argument/Argument.module.scss +233 -0
  52. package/src/components/argument/argument/Argument.stories.jsx +232 -0
  53. package/src/components/argument/argument/Argument.test.jsx +303 -0
  54. package/src/components/argument/argument/ReplyFooter.jsx +47 -0
  55. package/src/components/argument/argument/ReplyFooter.module.scss +77 -0
  56. package/src/components/argument/argument/index.js +2 -0
  57. package/src/components/argument/argument/useRichContent.jsx +18 -0
  58. package/src/components/argument/top_arguments/TopArguments.docs.mdx +22 -0
  59. package/src/components/argument/top_arguments/TopArguments.jsx +90 -0
  60. package/src/components/argument/top_arguments/TopArguments.module.scss +37 -0
  61. package/src/components/argument/top_arguments/TopArguments.stories.jsx +156 -0
  62. package/src/components/argument/top_arguments/TopArguments.test.jsx +67 -0
  63. package/src/components/argument/top_arguments/index.js +1 -0
  64. package/src/components/auth/auth_initializer/AuthInitializer.alltest.js +21 -0
  65. package/src/components/auth/auth_initializer/AuthInitializer.docs.mdx +34 -0
  66. package/src/components/auth/auth_initializer/AuthInitializer.jsx +61 -0
  67. package/src/components/auth/auth_initializer/index.js +1 -0
  68. package/src/components/auth/auth_modal/AuthModal.alltest.js +30 -0
  69. package/src/components/auth/auth_modal/AuthModal.docs.mdx +26 -0
  70. package/src/components/auth/auth_modal/AuthModal.jsx +99 -0
  71. package/src/components/auth/auth_modal/AuthModal.module.scss +9 -0
  72. package/src/components/auth/auth_modal/AuthModal.stories.jsx +90 -0
  73. package/src/components/auth/auth_modal/index.js +1 -0
  74. package/src/components/auth/facebook_login_button/FacebookIcon.jsx +7 -0
  75. package/src/components/auth/facebook_login_button/FacebookLoginButton.docs.mdx +34 -0
  76. package/src/components/auth/facebook_login_button/FacebookLoginButton.jsx +25 -0
  77. package/src/components/auth/facebook_login_button/FacebookLoginButton.module.scss +32 -0
  78. package/src/components/auth/facebook_login_button/FacebookLoginButton.stories.jsx +35 -0
  79. package/src/components/auth/facebook_login_button/FacebookLoginButton.test.jsx +68 -0
  80. package/src/components/auth/facebook_login_button/index.js +1 -0
  81. package/src/components/auth/google_login_button/GoogleIcon.jsx +10 -0
  82. package/src/components/auth/google_login_button/GoogleLoginButton.docs.mdx +43 -0
  83. package/src/components/auth/google_login_button/GoogleLoginButton.jsx +27 -0
  84. package/src/components/auth/google_login_button/GoogleLoginButton.module.scss +28 -0
  85. package/src/components/auth/google_login_button/GoogleLoginButton.stories.jsx +35 -0
  86. package/src/components/auth/google_login_button/GoogleLoginButton.test.jsx +69 -0
  87. package/src/components/auth/google_login_button/index.js +1 -0
  88. package/src/components/auth/login_form/LoginForm.docs.mdx +24 -0
  89. package/src/components/auth/login_form/LoginForm.jsx +65 -0
  90. package/src/components/auth/login_form/LoginForm.module.scss +36 -0
  91. package/src/components/auth/login_form/LoginForm.stories.jsx +42 -0
  92. package/src/components/auth/login_form/LoginForm.test.jsx +94 -0
  93. package/src/components/auth/login_form/index.js +1 -0
  94. package/src/components/auth/oauth2_button/OAuth2Button.docs.mdx +32 -0
  95. package/src/components/auth/oauth2_button/OAuth2Button.jsx +79 -0
  96. package/src/components/auth/oauth2_button/OAuth2Button.module.scss +10 -0
  97. package/src/components/auth/oauth2_button/OAuth2Button.stories.jsx +48 -0
  98. package/src/components/auth/oauth2_button/OAuth2Button.test.jsx +306 -0
  99. package/src/components/auth/oauth2_button/index.js +1 -0
  100. package/src/components/auth/providers/AuthProvider.docs.mdx +35 -0
  101. package/src/components/auth/providers/AuthProvider.js +23 -0
  102. package/src/components/auth/providers/AuthProviderFactory.js +20 -0
  103. package/src/components/auth/providers/FormAuth.js +36 -0
  104. package/src/components/auth/providers/JWTAuth.js +35 -0
  105. package/src/components/auth/providers/OAuth2ServerAuth.js +47 -0
  106. package/src/components/auth/providers/PasswordAuth.js +31 -0
  107. package/src/components/auth/providers/index.js +1 -0
  108. package/src/components/auth/providers/tests/AuthProviderFactory.test.jsx +53 -0
  109. package/src/components/auth/providers/tests/FormAuth.test.jsx +45 -0
  110. package/src/components/auth/providers/tests/JWTAuth.test.jsx +57 -0
  111. package/src/components/auth/providers/tests/OAuth2ServerAuth.test.jsx +78 -0
  112. package/src/components/auth/providers/tests/PasswordAuth.test.jsx +43 -0
  113. package/src/components/auth/signup_form/SignupForm.docs.mdx +29 -0
  114. package/src/components/auth/signup_form/SignupForm.jsx +125 -0
  115. package/src/components/auth/signup_form/SignupForm.module.scss +21 -0
  116. package/src/components/auth/signup_form/SignupForm.stories.jsx +40 -0
  117. package/src/components/auth/signup_form/SignupForm.test.jsx +144 -0
  118. package/src/components/auth/signup_form/index.js +1 -0
  119. package/src/components/auth/social_auth_form/SocialAuthForm.docs.mdx +33 -0
  120. package/src/components/auth/social_auth_form/SocialAuthForm.jsx +170 -0
  121. package/src/components/auth/social_auth_form/SocialAuthForm.module.scss +141 -0
  122. package/src/components/auth/social_auth_form/SocialAuthForm.stories.jsx +82 -0
  123. package/src/components/auth/social_auth_form/SocialAuthForm.test.jsx +201 -0
  124. package/src/components/auth/social_auth_form/index.js +1 -0
  125. package/src/components/auth/sso_form/SSOForm.docs.mdx +39 -0
  126. package/src/components/auth/sso_form/SSOForm.jsx +243 -0
  127. package/src/components/auth/sso_form/SSOForm.module.scss +99 -0
  128. package/src/components/auth/sso_form/SSOForm.stories.jsx +117 -0
  129. package/src/components/auth/sso_form/SSOForm.test.jsx +83 -0
  130. package/src/components/auth/sso_form/index.js +1 -0
  131. package/src/components/auth/use_auth/AuthContext.js +3 -0
  132. package/src/components/auth/use_auth/AuthProvider.jsx +21 -0
  133. package/src/components/auth/use_auth/AuthProvider.test.jsx +26 -0
  134. package/src/components/auth/use_auth/AuthStorage.js +33 -0
  135. package/src/components/auth/use_auth/AuthStorage.test.jsx +165 -0
  136. package/src/components/auth/use_auth/authTokenHandler.js +67 -0
  137. package/src/components/auth/use_auth/authTokenHandler.test.jsx +117 -0
  138. package/src/components/auth/use_auth/index.js +7 -0
  139. package/src/components/auth/use_auth/useAuth.docs.mdx +34 -0
  140. package/src/components/auth/use_auth/useAuth.js +8 -0
  141. package/src/components/auth/use_auth/useAuthActions.js +77 -0
  142. package/src/components/auth/use_auth/useAuthInterceptor.jsx +42 -0
  143. package/src/components/chart/line_chart/LineChart.docs.mdx +34 -0
  144. package/src/components/chart/line_chart/LineChart.jsx +107 -0
  145. package/src/components/chart/line_chart/LineChart.module.scss +54 -0
  146. package/src/components/chart/line_chart/LineChart.stories.jsx +49 -0
  147. package/src/components/chart/line_chart/LineChart.test.jsx +12 -0
  148. package/src/components/chart/line_chart/index.js +1 -0
  149. package/src/components/chart/pie_chart/PieChart.docs.mdx +26 -0
  150. package/src/components/chart/pie_chart/PieChart.jsx +102 -0
  151. package/src/components/chart/pie_chart/PieChart.module.scss +17 -0
  152. package/src/components/chart/pie_chart/PieChart.stories.jsx +36 -0
  153. package/src/components/chart/pie_chart/PieChart.test.jsx +12 -0
  154. package/src/components/chart/pie_chart/index.js +1 -0
  155. package/src/components/consultation/consultation_box/ConsultationBox.docs.mdx +21 -0
  156. package/src/components/consultation/consultation_box/ConsultationBox.jsx +101 -0
  157. package/src/components/consultation/consultation_box/ConsultationBox.module.scss +105 -0
  158. package/src/components/consultation/consultation_box/ConsultationBox.stories.jsx +96 -0
  159. package/src/components/consultation/consultation_box/ConsultationBox.test.jsx +58 -0
  160. package/src/components/consultation/consultation_box/index.js +1 -0
  161. package/src/components/data/axios_client/httpClient.docs.mdx +4 -0
  162. package/src/components/data/axios_client/httpClient.js +11 -0
  163. package/src/components/data/axios_client/index.js +1 -0
  164. package/src/components/data/config_provider/ConfigProvider.docs.mdx +26 -0
  165. package/src/components/data/config_provider/ConfigProvider.jsx +21 -0
  166. package/src/components/data/config_provider/ConfigProvider.test.jsx +39 -0
  167. package/src/components/data/config_provider/index.js +4 -0
  168. package/src/components/data/config_provider/useConfig.jsx +8 -0
  169. package/src/components/data/config_provider/useRoutes.jsx +8 -0
  170. package/src/components/data/config_provider/withConfig.jsx +8 -0
  171. package/src/components/data/data_provider/DataProvider.docs.mdx +52 -0
  172. package/src/components/data/data_provider/DataProvider.jsx +165 -0
  173. package/src/components/data/data_provider/DataProvider.test.jsx +419 -0
  174. package/src/components/data/data_provider/DataProviderContext.jsx +3 -0
  175. package/src/components/data/data_provider/index.js +4 -0
  176. package/src/components/data/data_provider/useData.jsx +9 -0
  177. package/src/components/data/data_provider/useDataProvider.jsx +8 -0
  178. package/src/components/data/data_provider/useDataProvider.test.jsx +38 -0
  179. package/src/components/debate/debate_box/DebateBox.docs.mdx +23 -0
  180. package/src/components/debate/debate_box/DebateBox.jsx +136 -0
  181. package/src/components/debate/debate_box/DebateBox.module.scss +209 -0
  182. package/src/components/debate/debate_box/DebateBox.stories.jsx +157 -0
  183. package/src/components/debate/debate_box/DebateBox.test.jsx +117 -0
  184. package/src/components/debate/debate_box/index.js +1 -0
  185. package/src/components/dialog/announcement_dialog/AnnouncementDialog.docs.mdx +24 -0
  186. package/src/components/dialog/announcement_dialog/AnnouncementDialog.jsx +37 -0
  187. package/src/components/dialog/announcement_dialog/AnnouncementDialog.module.scss +35 -0
  188. package/src/components/dialog/announcement_dialog/AnnouncementDialog.stories.jsx +44 -0
  189. package/src/components/dialog/announcement_dialog/AnnouncementDialog.test.jsx +35 -0
  190. package/src/components/dialog/announcement_dialog/HomeIcon.dev.jsx +9 -0
  191. package/src/components/dialog/announcement_dialog/index.js +1 -0
  192. package/src/components/dialog/confirm_modal/ConfirmModal.docs.mdx +25 -0
  193. package/src/components/dialog/confirm_modal/ConfirmModal.jsx +53 -0
  194. package/src/components/dialog/confirm_modal/ConfirmModal.module.scss +30 -0
  195. package/src/components/dialog/confirm_modal/ConfirmModal.stories.jsx +36 -0
  196. package/src/components/dialog/confirm_modal/ConfirmModal.test.jsx +176 -0
  197. package/src/components/dialog/confirm_modal/index.js +1 -0
  198. package/src/components/dialog/countdown/Countdown.docs.mdx +23 -0
  199. package/src/components/dialog/countdown/Countdown.jsx +36 -0
  200. package/src/components/dialog/countdown/Countdown.stories.jsx +33 -0
  201. package/src/components/dialog/countdown/Countdown.test.jsx +51 -0
  202. package/src/components/dialog/countdown/index.js +1 -0
  203. package/src/components/dialog/dialog_box/DialogBox.docs.mdx +25 -0
  204. package/src/components/dialog/dialog_box/DialogBox.jsx +53 -0
  205. package/src/components/dialog/dialog_box/DialogBox.module.scss +145 -0
  206. package/src/components/dialog/dialog_box/DialogBox.stories.jsx +45 -0
  207. package/src/components/dialog/dialog_box/DialogBox.test.jsx +40 -0
  208. package/src/components/dialog/dialog_box/index.js +1 -0
  209. package/src/components/dialog/drawer/Drawer.docs.mdx +31 -0
  210. package/src/components/dialog/drawer/Drawer.jsx +159 -0
  211. package/src/components/dialog/drawer/Drawer.module.scss +136 -0
  212. package/src/components/dialog/drawer/Drawer.stories.jsx +194 -0
  213. package/src/components/dialog/drawer/Drawer.test.jsx +15 -0
  214. package/src/components/dialog/drawer/index.js +1 -0
  215. package/src/components/dialog/dropdown/Dropdown.docs.mdx +28 -0
  216. package/src/components/dialog/dropdown/Dropdown.jsx +59 -0
  217. package/src/components/dialog/dropdown/Dropdown.module.scss +41 -0
  218. package/src/components/dialog/dropdown/Dropdown.stories.jsx +42 -0
  219. package/src/components/dialog/dropdown/Dropdown.test.jsx +126 -0
  220. package/src/components/dialog/dropdown/index.js +1 -0
  221. package/src/components/dialog/modal/Modal.docs.mdx +39 -0
  222. package/src/components/dialog/modal/Modal.jsx +101 -0
  223. package/src/components/dialog/modal/Modal.module.scss +99 -0
  224. package/src/components/dialog/modal/Modal.stories.jsx +53 -0
  225. package/src/components/dialog/modal/Modal.test.jsx +115 -0
  226. package/src/components/dialog/modal/ModalProvider.jsx +26 -0
  227. package/src/components/dialog/modal/ModalProvider.test.jsx +39 -0
  228. package/src/components/dialog/modal/index.js +3 -0
  229. package/src/components/dialog/modal/useModal.jsx +6 -0
  230. package/src/components/dialog/toast/Toast.docs.mdx +21 -0
  231. package/src/components/dialog/toast/Toast.jsx +44 -0
  232. package/src/components/dialog/toast/Toast.module.scss +66 -0
  233. package/src/components/dialog/toast/Toast.stories.jsx +42 -0
  234. package/src/components/dialog/toast/Toast.test.jsx +21 -0
  235. package/src/components/dialog/toast/index.js +1 -0
  236. package/src/components/dialog/toast_provider/ToastContext.js +3 -0
  237. package/src/components/dialog/toast_provider/ToastProvider.docs.mdx +36 -0
  238. package/src/components/dialog/toast_provider/ToastProvider.jsx +35 -0
  239. package/src/components/dialog/toast_provider/ToastProvider.module.scss +14 -0
  240. package/src/components/dialog/toast_provider/ToastProvider.test.jsx +64 -0
  241. package/src/components/dialog/toast_provider/index.js +2 -0
  242. package/src/components/dialog/toast_provider/useToast.jsx +8 -0
  243. package/src/components/dialog/tooltip/Tooltip.docs.mdx +20 -0
  244. package/src/components/dialog/tooltip/Tooltip.jsx +53 -0
  245. package/src/components/dialog/tooltip/Tooltip.module.scss +92 -0
  246. package/src/components/dialog/tooltip/Tooltip.stories.jsx +76 -0
  247. package/src/components/dialog/tooltip/Tooltip.test.jsx +67 -0
  248. package/src/components/dialog/tooltip/index.js +3 -0
  249. package/src/components/embed/embed_header/EmbedHeader.docs.mdx +25 -0
  250. package/src/components/embed/embed_header/EmbedHeader.jsx +61 -0
  251. package/src/components/embed/embed_header/EmbedHeader.module.scss +148 -0
  252. package/src/components/embed/embed_header/EmbedHeader.stories.jsx +54 -0
  253. package/src/components/embed/embed_header/EmbedHeader.test.jsx +70 -0
  254. package/src/components/embed/embed_header/index.js +1 -0
  255. package/src/components/error/standard_error_boundary/StandardErrorBoundary.docs.mdx +26 -0
  256. package/src/components/error/standard_error_boundary/StandardErrorBoundary.jsx +27 -0
  257. package/src/components/error/standard_error_boundary/StandardErrorBoundary.module.scss +8 -0
  258. package/src/components/error/standard_error_boundary/StandardErrorBoundary.test.jsx +56 -0
  259. package/src/components/error/standard_error_boundary/index.js +1 -0
  260. package/src/components/follow/follow_button/FollowButton.docs.mdx +41 -0
  261. package/src/components/follow/follow_button/FollowButton.jsx +40 -0
  262. package/src/components/follow/follow_button/FollowButton.module.scss +17 -0
  263. package/src/components/follow/follow_button/FollowButton.stories.jsx +58 -0
  264. package/src/components/follow/follow_button/FollowButton.test.jsx +45 -0
  265. package/src/components/follow/follow_button/index.js +1 -0
  266. package/src/components/follow/use_follow/index.js +1 -0
  267. package/src/components/follow/use_follow/useFollow.docs.mdx +24 -0
  268. package/src/components/follow/use_follow/useFollow.jsx +60 -0
  269. package/src/components/follow/use_follow/useFollow.test.jsx +94 -0
  270. package/src/components/forms/form/extract-form-data.js +14 -0
  271. package/src/components/forms/form/form-context.js +3 -0
  272. package/src/components/forms/form/form.docs.mdx +232 -0
  273. package/src/components/forms/form/form.jsx +26 -0
  274. package/src/components/forms/form/form.stories.jsx +119 -0
  275. package/src/components/forms/form/form.test.jsx +3 -0
  276. package/src/components/forms/form/index.js +6 -0
  277. package/src/components/forms/form/use-form-context.js +43 -0
  278. package/src/components/forms/form/use-form.js +4 -0
  279. package/src/components/forms/use_form_validation/index.js +1 -0
  280. package/src/components/forms/use_form_validation/useFormValidation.docs.mdx +40 -0
  281. package/src/components/forms/use_form_validation/useFormValidation.jsx +114 -0
  282. package/src/components/forms/use_form_validation/useFormValidation.test.jsx +91 -0
  283. package/src/components/gamification/badge_box/BadgeBox.docs.mdx +25 -0
  284. package/src/components/gamification/badge_box/BadgeBox.jsx +74 -0
  285. package/src/components/gamification/badge_box/BadgeBox.module.scss +103 -0
  286. package/src/components/gamification/badge_box/BadgeBox.stories.jsx +64 -0
  287. package/src/components/gamification/badge_box/BadgeBox.test.jsx +113 -0
  288. package/src/components/gamification/badge_box/index.js +1 -0
  289. package/src/components/gamification/point_box/PointBox.docs.mdx +19 -0
  290. package/src/components/gamification/point_box/PointBox.jsx +28 -0
  291. package/src/components/gamification/point_box/PointBox.module.scss +38 -0
  292. package/src/components/gamification/point_box/PointBox.stories.jsx +32 -0
  293. package/src/components/gamification/point_box/PointBox.test.jsx +21 -0
  294. package/src/components/gamification/point_box/index.js +1 -0
  295. package/src/components/hooks/use_auth_required/index.js +1 -0
  296. package/src/components/hooks/use_auth_required/useAuthRequired.docs.mdx +22 -0
  297. package/src/components/hooks/use_auth_required/useAuthRequired.jsx +28 -0
  298. package/src/components/hooks/use_auth_required/useAuthRequired.test.jsx +85 -0
  299. package/src/components/hooks/use_css_theme/index.js +1 -0
  300. package/src/components/hooks/use_css_theme/useCssTheme.docs.mdx +34 -0
  301. package/src/components/hooks/use_css_theme/useCssTheme.js +27 -0
  302. package/src/components/hooks/use_css_theme/useCssTheme.stories.jsx +41 -0
  303. package/src/components/hooks/use_css_theme/useCssTheme.test.jsx +31 -0
  304. package/src/components/hooks/use_font_loader/index.js +1 -0
  305. package/src/components/hooks/use_font_loader/useFontLoader.docs.mdx +24 -0
  306. package/src/components/hooks/use_font_loader/useFontLoader.js +16 -0
  307. package/src/components/hooks/use_font_loader/useFontLoader.test.jsx +64 -0
  308. package/src/components/hooks/use_matomo/index.js +1 -0
  309. package/src/components/hooks/use_matomo/useMatomo.docs.mdx +28 -0
  310. package/src/components/hooks/use_matomo/useMatomo.js +17 -0
  311. package/src/components/hooks/use_matomo/useMatomo.test.jsx +24 -0
  312. package/src/components/hooks/use_relative_time/index.js +1 -0
  313. package/src/components/hooks/use_relative_time/useRelativeTime.docs.mdx +35 -0
  314. package/src/components/hooks/use_relative_time/useRelativeTime.jsx +40 -0
  315. package/src/components/hooks/use_relative_time/useRelativeTime.test.jsx +82 -0
  316. package/src/components/hooks/use_responsive/ResponsiveContext.jsx +3 -0
  317. package/src/components/hooks/use_responsive/ResponsiveProvider.jsx +52 -0
  318. package/src/components/hooks/use_responsive/index.js +2 -0
  319. package/src/components/hooks/use_responsive/useResponsive.docs.mdx +46 -0
  320. package/src/components/hooks/use_responsive/useResponsive.jsx +8 -0
  321. package/src/components/hooks/use_responsive/useResponsive.stories.jsx +49 -0
  322. package/src/components/hooks/use_responsive/useResponsive.test.jsx +54 -0
  323. package/src/components/icons/bild_icons/Alarm.jsx +7 -0
  324. package/src/components/icons/bild_icons/Announcement.jsx +16 -0
  325. package/src/components/icons/bild_icons/Arrow.jsx +7 -0
  326. package/src/components/icons/bild_icons/BildIcons.docs.mdx +21 -0
  327. package/src/components/icons/bild_icons/BildIcons.stories.jsx +123 -0
  328. package/src/components/icons/bild_icons/BildIcons.test.jsx +15 -0
  329. package/src/components/icons/bild_icons/Blockquote.jsx +7 -0
  330. package/src/components/icons/bild_icons/Bold.jsx +7 -0
  331. package/src/components/icons/bild_icons/Camera.jsx +8 -0
  332. package/src/components/icons/bild_icons/Chat.jsx +16 -0
  333. package/src/components/icons/bild_icons/Check.jsx +7 -0
  334. package/src/components/icons/bild_icons/CheckCircle.jsx +17 -0
  335. package/src/components/icons/bild_icons/Checkbox.jsx +8 -0
  336. package/src/components/icons/bild_icons/Clap.jsx +9 -0
  337. package/src/components/icons/bild_icons/Clock.jsx +7 -0
  338. package/src/components/icons/bild_icons/Close.jsx +7 -0
  339. package/src/components/icons/bild_icons/Code.jsx +18 -0
  340. package/src/components/icons/bild_icons/Community.jsx +7 -0
  341. package/src/components/icons/bild_icons/Crown.jsx +7 -0
  342. package/src/components/icons/bild_icons/Document.jsx +7 -0
  343. package/src/components/icons/bild_icons/Downvote.jsx +7 -0
  344. package/src/components/icons/bild_icons/Ellipsis.jsx +8 -0
  345. package/src/components/icons/bild_icons/ExpertBadge.jsx +11 -0
  346. package/src/components/icons/bild_icons/Facebook.jsx +7 -0
  347. package/src/components/icons/bild_icons/Flag.jsx +7 -0
  348. package/src/components/icons/bild_icons/Home.jsx +7 -0
  349. package/src/components/icons/bild_icons/Italic.jsx +7 -0
  350. package/src/components/icons/bild_icons/LightArrow.jsx +7 -0
  351. package/src/components/icons/bild_icons/Link.jsx +8 -0
  352. package/src/components/icons/bild_icons/Login.jsx +11 -0
  353. package/src/components/icons/bild_icons/Logora.jsx +24 -0
  354. package/src/components/icons/bild_icons/Mail.jsx +7 -0
  355. package/src/components/icons/bild_icons/MinusCircle.jsx +16 -0
  356. package/src/components/icons/bild_icons/MobileClose.jsx +8 -0
  357. package/src/components/icons/bild_icons/MobileMenu.jsx +10 -0
  358. package/src/components/icons/bild_icons/Next.jsx +10 -0
  359. package/src/components/icons/bild_icons/OpenBlank.jsx +15 -0
  360. package/src/components/icons/bild_icons/OrderedList.jsx +7 -0
  361. package/src/components/icons/bild_icons/PauseCircle.jsx +10 -0
  362. package/src/components/icons/bild_icons/Point.jsx +8 -0
  363. package/src/components/icons/bild_icons/Question.jsx +8 -0
  364. package/src/components/icons/bild_icons/Refresh.jsx +7 -0
  365. package/src/components/icons/bild_icons/Reply.jsx +7 -0
  366. package/src/components/icons/bild_icons/Search.jsx +7 -0
  367. package/src/components/icons/bild_icons/Send.jsx +7 -0
  368. package/src/components/icons/bild_icons/Share.jsx +14 -0
  369. package/src/components/icons/bild_icons/SmallArrow.jsx +11 -0
  370. package/src/components/icons/bild_icons/Source.jsx +7 -0
  371. package/src/components/icons/bild_icons/Suggestion.jsx +7 -0
  372. package/src/components/icons/bild_icons/Twitter.jsx +10 -0
  373. package/src/components/icons/bild_icons/Underline.jsx +7 -0
  374. package/src/components/icons/bild_icons/Upvote.jsx +7 -0
  375. package/src/components/icons/bild_icons/User.jsx +7 -0
  376. package/src/components/icons/bild_icons/Versus.jsx +11 -0
  377. package/src/components/icons/bild_icons/Votebox.jsx +7 -0
  378. package/src/components/icons/bild_icons/index.js +52 -0
  379. package/src/components/icons/hero_icons/Alarm.jsx +7 -0
  380. package/src/components/icons/hero_icons/Announcement.jsx +7 -0
  381. package/src/components/icons/hero_icons/Arrow.jsx +7 -0
  382. package/src/components/icons/hero_icons/Blockquote.jsx +14 -0
  383. package/src/components/icons/hero_icons/Bold.jsx +7 -0
  384. package/src/components/icons/hero_icons/Camera.jsx +8 -0
  385. package/src/components/icons/hero_icons/Chat.jsx +7 -0
  386. package/src/components/icons/hero_icons/Check.jsx +8 -0
  387. package/src/components/icons/hero_icons/CheckCircle.jsx +17 -0
  388. package/src/components/icons/hero_icons/Checkbox.jsx +7 -0
  389. package/src/components/icons/hero_icons/Clap.jsx +7 -0
  390. package/src/components/icons/hero_icons/Clock.jsx +7 -0
  391. package/src/components/icons/hero_icons/Close.jsx +8 -0
  392. package/src/components/icons/hero_icons/Code.jsx +7 -0
  393. package/src/components/icons/hero_icons/Community.jsx +7 -0
  394. package/src/components/icons/hero_icons/Crown.jsx +7 -0
  395. package/src/components/icons/hero_icons/Downvote.jsx +8 -0
  396. package/src/components/icons/hero_icons/Ellipsis.jsx +7 -0
  397. package/src/components/icons/hero_icons/ExpertBadge.jsx +7 -0
  398. package/src/components/icons/hero_icons/Facebook.jsx +7 -0
  399. package/src/components/icons/hero_icons/Flag.jsx +7 -0
  400. package/src/components/icons/hero_icons/HeroIcons.docs.mdx +19 -0
  401. package/src/components/icons/hero_icons/HeroIcons.stories.jsx +121 -0
  402. package/src/components/icons/hero_icons/HeroIcons.test.jsx +15 -0
  403. package/src/components/icons/hero_icons/Home.jsx +7 -0
  404. package/src/components/icons/hero_icons/Italic.jsx +7 -0
  405. package/src/components/icons/hero_icons/LightArrow.jsx +7 -0
  406. package/src/components/icons/hero_icons/Link.jsx +7 -0
  407. package/src/components/icons/hero_icons/Login.jsx +7 -0
  408. package/src/components/icons/hero_icons/Logora.jsx +24 -0
  409. package/src/components/icons/hero_icons/Mail.jsx +7 -0
  410. package/src/components/icons/hero_icons/MinusCircle.jsx +16 -0
  411. package/src/components/icons/hero_icons/MobileClose.jsx +7 -0
  412. package/src/components/icons/hero_icons/MobileMenu.jsx +7 -0
  413. package/src/components/icons/hero_icons/Next.jsx +8 -0
  414. package/src/components/icons/hero_icons/OpenBlank.jsx +7 -0
  415. package/src/components/icons/hero_icons/OrderedList.jsx +19 -0
  416. package/src/components/icons/hero_icons/PauseCircle.jsx +10 -0
  417. package/src/components/icons/hero_icons/Point.jsx +8 -0
  418. package/src/components/icons/hero_icons/Question.jsx +7 -0
  419. package/src/components/icons/hero_icons/Refresh.jsx +7 -0
  420. package/src/components/icons/hero_icons/Reply.jsx +7 -0
  421. package/src/components/icons/hero_icons/Search.jsx +7 -0
  422. package/src/components/icons/hero_icons/Send.jsx +7 -0
  423. package/src/components/icons/hero_icons/Share.jsx +8 -0
  424. package/src/components/icons/hero_icons/SmallArrow.jsx +7 -0
  425. package/src/components/icons/hero_icons/Source.jsx +8 -0
  426. package/src/components/icons/hero_icons/Suggestion.jsx +9 -0
  427. package/src/components/icons/hero_icons/Twitter.jsx +10 -0
  428. package/src/components/icons/hero_icons/Underline.jsx +14 -0
  429. package/src/components/icons/hero_icons/Upvote.jsx +7 -0
  430. package/src/components/icons/hero_icons/User.jsx +7 -0
  431. package/src/components/icons/hero_icons/Versus.jsx +7 -0
  432. package/src/components/icons/hero_icons/Votebox.jsx +7 -0
  433. package/src/components/icons/hero_icons/index.js +51 -0
  434. package/src/components/icons/icon/Icon.docs.mdx +20 -0
  435. package/src/components/icons/icon/Icon.jsx +32 -0
  436. package/src/components/icons/icon/Icon.test.jsx +33 -0
  437. package/src/components/icons/icon/index.js +1 -0
  438. package/src/components/icons/icon_provider/IconProvider.docs.mdx +28 -0
  439. package/src/components/icons/icon_provider/IconProvider.jsx +19 -0
  440. package/src/components/icons/icon_provider/IconProvider.test.jsx +24 -0
  441. package/src/components/icons/icon_provider/index.js +1 -0
  442. package/src/components/icons/krone_icons/Alarm.jsx +27 -0
  443. package/src/components/icons/krone_icons/Announcement.jsx +16 -0
  444. package/src/components/icons/krone_icons/Arrow.jsx +7 -0
  445. package/src/components/icons/krone_icons/Blockquote.jsx +7 -0
  446. package/src/components/icons/krone_icons/Bold.jsx +7 -0
  447. package/src/components/icons/krone_icons/Camera.jsx +8 -0
  448. package/src/components/icons/krone_icons/Chat.jsx +29 -0
  449. package/src/components/icons/krone_icons/Check.jsx +7 -0
  450. package/src/components/icons/krone_icons/CheckBox.jsx +7 -0
  451. package/src/components/icons/krone_icons/CheckCircle.jsx +17 -0
  452. package/src/components/icons/krone_icons/Clap.jsx +29 -0
  453. package/src/components/icons/krone_icons/Clock.jsx +7 -0
  454. package/src/components/icons/krone_icons/Close.jsx +7 -0
  455. package/src/components/icons/krone_icons/Code.jsx +18 -0
  456. package/src/components/icons/krone_icons/Community.jsx +7 -0
  457. package/src/components/icons/krone_icons/Crown.jsx +7 -0
  458. package/src/components/icons/krone_icons/Document.jsx +7 -0
  459. package/src/components/icons/krone_icons/Downvote.jsx +7 -0
  460. package/src/components/icons/krone_icons/Ellipsis.jsx +18 -0
  461. package/src/components/icons/krone_icons/ExpertBadge.jsx +29 -0
  462. package/src/components/icons/krone_icons/Facebook.jsx +7 -0
  463. package/src/components/icons/krone_icons/Flag.jsx +7 -0
  464. package/src/components/icons/krone_icons/Home.jsx +29 -0
  465. package/src/components/icons/krone_icons/Italic.jsx +7 -0
  466. package/src/components/icons/krone_icons/KroneIcons.docs.mdx +21 -0
  467. package/src/components/icons/krone_icons/KroneIcons.stories.jsx +124 -0
  468. package/src/components/icons/krone_icons/KroneIcons.test.jsx +15 -0
  469. package/src/components/icons/krone_icons/LightArrow.jsx +7 -0
  470. package/src/components/icons/krone_icons/Link.jsx +8 -0
  471. package/src/components/icons/krone_icons/Login.jsx +11 -0
  472. package/src/components/icons/krone_icons/Logora.jsx +24 -0
  473. package/src/components/icons/krone_icons/Mail.jsx +7 -0
  474. package/src/components/icons/krone_icons/MinusCircle.jsx +16 -0
  475. package/src/components/icons/krone_icons/MobileClose.jsx +8 -0
  476. package/src/components/icons/krone_icons/MobileMenu.jsx +10 -0
  477. package/src/components/icons/krone_icons/Next.jsx +10 -0
  478. package/src/components/icons/krone_icons/OpenBlank.jsx +15 -0
  479. package/src/components/icons/krone_icons/OrderedList.jsx +7 -0
  480. package/src/components/icons/krone_icons/PauseCircle.jsx +10 -0
  481. package/src/components/icons/krone_icons/Point.jsx +8 -0
  482. package/src/components/icons/krone_icons/Question.jsx +29 -0
  483. package/src/components/icons/krone_icons/Refresh.jsx +7 -0
  484. package/src/components/icons/krone_icons/Reply.jsx +18 -0
  485. package/src/components/icons/krone_icons/Search.jsx +7 -0
  486. package/src/components/icons/krone_icons/Send.jsx +19 -0
  487. package/src/components/icons/krone_icons/Share.jsx +16 -0
  488. package/src/components/icons/krone_icons/SmallArrow.jsx +11 -0
  489. package/src/components/icons/krone_icons/Source.jsx +7 -0
  490. package/src/components/icons/krone_icons/Suggestion.jsx +29 -0
  491. package/src/components/icons/krone_icons/Twitter.jsx +10 -0
  492. package/src/components/icons/krone_icons/Underline.jsx +7 -0
  493. package/src/components/icons/krone_icons/Upvote.jsx +29 -0
  494. package/src/components/icons/krone_icons/User.jsx +30 -0
  495. package/src/components/icons/krone_icons/Versus.jsx +9 -0
  496. package/src/components/icons/krone_icons/Votebox.jsx +29 -0
  497. package/src/components/icons/krone_icons/index.js +52 -0
  498. package/src/components/icons/regular_icons/Alarm.jsx +7 -0
  499. package/src/components/icons/regular_icons/Announcement.jsx +16 -0
  500. package/src/components/icons/regular_icons/Arrow.jsx +7 -0
  501. package/src/components/icons/regular_icons/Blockquote.jsx +7 -0
  502. package/src/components/icons/regular_icons/Bold.jsx +7 -0
  503. package/src/components/icons/regular_icons/Camera.jsx +8 -0
  504. package/src/components/icons/regular_icons/Chat.jsx +10 -0
  505. package/src/components/icons/regular_icons/Check.jsx +7 -0
  506. package/src/components/icons/regular_icons/CheckCircle.jsx +17 -0
  507. package/src/components/icons/regular_icons/Checkbox.jsx +8 -0
  508. package/src/components/icons/regular_icons/Clap.jsx +7 -0
  509. package/src/components/icons/regular_icons/Clock.jsx +7 -0
  510. package/src/components/icons/regular_icons/Close.jsx +7 -0
  511. package/src/components/icons/regular_icons/Code.jsx +18 -0
  512. package/src/components/icons/regular_icons/Community.jsx +7 -0
  513. package/src/components/icons/regular_icons/Crown.jsx +7 -0
  514. package/src/components/icons/regular_icons/Document.jsx +7 -0
  515. package/src/components/icons/regular_icons/Downvote.jsx +7 -0
  516. package/src/components/icons/regular_icons/Ellipsis.jsx +8 -0
  517. package/src/components/icons/regular_icons/ExpertBadge.jsx +11 -0
  518. package/src/components/icons/regular_icons/Facebook.jsx +7 -0
  519. package/src/components/icons/regular_icons/Flag.jsx +7 -0
  520. package/src/components/icons/regular_icons/Home.jsx +7 -0
  521. package/src/components/icons/regular_icons/Italic.jsx +7 -0
  522. package/src/components/icons/regular_icons/LightArrow.jsx +7 -0
  523. package/src/components/icons/regular_icons/Link.jsx +8 -0
  524. package/src/components/icons/regular_icons/Login.jsx +11 -0
  525. package/src/components/icons/regular_icons/Logora.jsx +24 -0
  526. package/src/components/icons/regular_icons/Mail.jsx +7 -0
  527. package/src/components/icons/regular_icons/MinusCircle.jsx +16 -0
  528. package/src/components/icons/regular_icons/MobileClose.jsx +8 -0
  529. package/src/components/icons/regular_icons/MobileMenu.jsx +10 -0
  530. package/src/components/icons/regular_icons/Next.jsx +10 -0
  531. package/src/components/icons/regular_icons/OpenBlank.jsx +15 -0
  532. package/src/components/icons/regular_icons/OrderedList.jsx +7 -0
  533. package/src/components/icons/regular_icons/PauseCircle.jsx +10 -0
  534. package/src/components/icons/regular_icons/Point.jsx +8 -0
  535. package/src/components/icons/regular_icons/Question.jsx +8 -0
  536. package/src/components/icons/regular_icons/Refresh.jsx +7 -0
  537. package/src/components/icons/regular_icons/RegularIcons.docs.mdx +21 -0
  538. package/src/components/icons/regular_icons/RegularIcons.stories.jsx +123 -0
  539. package/src/components/icons/regular_icons/RegularIcons.test.jsx +15 -0
  540. package/src/components/icons/regular_icons/Reply.jsx +7 -0
  541. package/src/components/icons/regular_icons/Search.jsx +7 -0
  542. package/src/components/icons/regular_icons/Send.jsx +7 -0
  543. package/src/components/icons/regular_icons/Share.jsx +14 -0
  544. package/src/components/icons/regular_icons/SmallArrow.jsx +11 -0
  545. package/src/components/icons/regular_icons/Source.jsx +7 -0
  546. package/src/components/icons/regular_icons/Suggestion.jsx +7 -0
  547. package/src/components/icons/regular_icons/Twitter.jsx +10 -0
  548. package/src/components/icons/regular_icons/Underline.jsx +7 -0
  549. package/src/components/icons/regular_icons/Upvote.jsx +7 -0
  550. package/src/components/icons/regular_icons/User.jsx +7 -0
  551. package/src/components/icons/regular_icons/Versus.jsx +9 -0
  552. package/src/components/icons/regular_icons/Votebox.jsx +7 -0
  553. package/src/components/icons/regular_icons/index.js +52 -0
  554. package/src/components/icons/spiegel_icons/Alarm.jsx +7 -0
  555. package/src/components/icons/spiegel_icons/Announcement.jsx +16 -0
  556. package/src/components/icons/spiegel_icons/Arrow.jsx +7 -0
  557. package/src/components/icons/spiegel_icons/Blockquote.jsx +14 -0
  558. package/src/components/icons/spiegel_icons/Bold.jsx +7 -0
  559. package/src/components/icons/spiegel_icons/Camera.jsx +8 -0
  560. package/src/components/icons/spiegel_icons/Chat.jsx +7 -0
  561. package/src/components/icons/spiegel_icons/Check.jsx +11 -0
  562. package/src/components/icons/spiegel_icons/CheckCircle.jsx +8 -0
  563. package/src/components/icons/spiegel_icons/Checkbox.jsx +14 -0
  564. package/src/components/icons/spiegel_icons/Clap.jsx +15 -0
  565. package/src/components/icons/spiegel_icons/Clock.jsx +15 -0
  566. package/src/components/icons/spiegel_icons/Close.jsx +7 -0
  567. package/src/components/icons/spiegel_icons/Code.jsx +18 -0
  568. package/src/components/icons/spiegel_icons/Community.jsx +7 -0
  569. package/src/components/icons/spiegel_icons/Crown.jsx +7 -0
  570. package/src/components/icons/spiegel_icons/Downvote.jsx +7 -0
  571. package/src/components/icons/spiegel_icons/Ellipsis.jsx +8 -0
  572. package/src/components/icons/spiegel_icons/ExpertBadge.jsx +16 -0
  573. package/src/components/icons/spiegel_icons/Facebook.jsx +7 -0
  574. package/src/components/icons/spiegel_icons/Flag.jsx +8 -0
  575. package/src/components/icons/spiegel_icons/Home.jsx +7 -0
  576. package/src/components/icons/spiegel_icons/Italic.jsx +7 -0
  577. package/src/components/icons/spiegel_icons/LightArrow.jsx +7 -0
  578. package/src/components/icons/spiegel_icons/Link.jsx +17 -0
  579. package/src/components/icons/spiegel_icons/Login.jsx +7 -0
  580. package/src/components/icons/spiegel_icons/Logora.jsx +24 -0
  581. package/src/components/icons/spiegel_icons/Mail.jsx +7 -0
  582. package/src/components/icons/spiegel_icons/MinusCircle.jsx +8 -0
  583. package/src/components/icons/spiegel_icons/MobileClose.jsx +8 -0
  584. package/src/components/icons/spiegel_icons/MobileMenu.jsx +10 -0
  585. package/src/components/icons/spiegel_icons/Next.jsx +10 -0
  586. package/src/components/icons/spiegel_icons/OpenBlank.jsx +15 -0
  587. package/src/components/icons/spiegel_icons/OrderedList.jsx +20 -0
  588. package/src/components/icons/spiegel_icons/PauseCircle.jsx +8 -0
  589. package/src/components/icons/spiegel_icons/Point.jsx +8 -0
  590. package/src/components/icons/spiegel_icons/Question.jsx +17 -0
  591. package/src/components/icons/spiegel_icons/Refresh.jsx +7 -0
  592. package/src/components/icons/spiegel_icons/Reply.jsx +7 -0
  593. package/src/components/icons/spiegel_icons/Search.jsx +7 -0
  594. package/src/components/icons/spiegel_icons/Send.jsx +7 -0
  595. package/src/components/icons/spiegel_icons/Share.jsx +14 -0
  596. package/src/components/icons/spiegel_icons/SmallArrow.jsx +7 -0
  597. package/src/components/icons/spiegel_icons/Source.jsx +7 -0
  598. package/src/components/icons/spiegel_icons/SpiegelIcons.docs.mdx +21 -0
  599. package/src/components/icons/spiegel_icons/SpiegelIcons.stories.jsx +121 -0
  600. package/src/components/icons/spiegel_icons/SpiegelIcons.test.jsx +15 -0
  601. package/src/components/icons/spiegel_icons/Suggestion.jsx +7 -0
  602. package/src/components/icons/spiegel_icons/Twitter.jsx +10 -0
  603. package/src/components/icons/spiegel_icons/Underline.jsx +14 -0
  604. package/src/components/icons/spiegel_icons/Upvote.jsx +7 -0
  605. package/src/components/icons/spiegel_icons/User.jsx +7 -0
  606. package/src/components/icons/spiegel_icons/Versus.jsx +11 -0
  607. package/src/components/icons/spiegel_icons/Votebox.jsx +14 -0
  608. package/src/components/icons/spiegel_icons/index.js +51 -0
  609. package/src/components/information/information_box/InformationBox.docs.mdx +28 -0
  610. package/src/components/information/information_box/InformationBox.jsx +54 -0
  611. package/src/components/information/information_box/InformationBox.module.scss +92 -0
  612. package/src/components/information/information_box/InformationBox.stories.jsx +50 -0
  613. package/src/components/information/information_box/InformationBox.test.jsx +94 -0
  614. package/src/components/information/information_box/index.js +1 -0
  615. package/src/components/input/argument_input/ArgumentInput.docs.mdx +29 -0
  616. package/src/components/input/argument_input/ArgumentInput.jsx +420 -0
  617. package/src/components/input/argument_input/ArgumentInput.module.scss +166 -0
  618. package/src/components/input/argument_input/ArgumentInput.stories.jsx +181 -0
  619. package/src/components/input/argument_input/ArgumentInput.test.jsx +482 -0
  620. package/src/components/input/argument_input/index.js +1 -0
  621. package/src/components/input/checkbox/hidden/hidden-checkbox.docs.mdx +4 -0
  622. package/src/components/input/checkbox/hidden/hidden-checkbox.jsx +8 -0
  623. package/src/components/input/checkbox/hidden/hidden-checkbox.module.scss +28 -0
  624. package/src/components/input/checkbox/hidden/hidden-checkbox.stories.jsx +73 -0
  625. package/src/components/input/checkbox/hidden/index.js +1 -0
  626. package/src/components/input/checkbox/indicator/checkbox-indicator.docs.mdx +9 -0
  627. package/src/components/input/checkbox/indicator/checkbox-indicator.jsx +17 -0
  628. package/src/components/input/checkbox/indicator/checkbox-indicator.module.scss +26 -0
  629. package/src/components/input/checkbox/indicator/checkbox-indicator.stories.jsx +51 -0
  630. package/src/components/input/checkbox/indicator/index.js +1 -0
  631. package/src/components/input/checkbox/label/checkbox-label.docs.mdx +39 -0
  632. package/src/components/input/checkbox/label/checkbox-label.jsx +40 -0
  633. package/src/components/input/checkbox/label/checkbox.stories.jsx +57 -0
  634. package/src/components/input/checkbox/label/index.js +1 -0
  635. package/src/components/input/input_provider/InputProvider.docs.mdx +38 -0
  636. package/src/components/input/input_provider/InputProvider.jsx +16 -0
  637. package/src/components/input/input_provider/InputProvider.test.jsx +102 -0
  638. package/src/components/input/input_provider/index.js +2 -0
  639. package/src/components/input/input_provider/useInput.jsx +8 -0
  640. package/src/components/input/search_input/SearchInput.docs.mdx +25 -0
  641. package/src/components/input/search_input/SearchInput.jsx +71 -0
  642. package/src/components/input/search_input/SearchInput.module.scss +18 -0
  643. package/src/components/input/search_input/SearchInput.stories.jsx +45 -0
  644. package/src/components/input/search_input/SearchInput.test.jsx +95 -0
  645. package/src/components/input/search_input/index.js +1 -0
  646. package/src/components/input/select/Select.docs.mdx +37 -0
  647. package/src/components/input/select/Select.jsx +102 -0
  648. package/src/components/input/select/Select.module.scss +72 -0
  649. package/src/components/input/select/Select.stories.jsx +75 -0
  650. package/src/components/input/select/Select.test.jsx +136 -0
  651. package/src/components/input/select/index.js +1 -0
  652. package/src/components/input/text_editor/EditorTheme.js +71 -0
  653. package/src/components/input/text_editor/TextEditor.docs.mdx +31 -0
  654. package/src/components/input/text_editor/TextEditor.jsx +205 -0
  655. package/src/components/input/text_editor/TextEditor.module.scss +140 -0
  656. package/src/components/input/text_editor/TextEditor.stories.jsx +227 -0
  657. package/src/components/input/text_editor/TextEditor.test.jsx +654 -0
  658. package/src/components/input/text_editor/index.js +2 -0
  659. package/src/components/input/text_editor/lexicalToHtml.js +23 -0
  660. package/src/components/input/text_editor/plugins/AutoSavePlugin.jsx +37 -0
  661. package/src/components/input/text_editor/plugins/FocusPlugin.jsx +19 -0
  662. package/src/components/input/text_editor/plugins/MaxLengthPlugin.jsx +44 -0
  663. package/src/components/input/text_editor/plugins/ResetPlugin.jsx +35 -0
  664. package/src/components/input/text_editor/plugins/SetContentPlugin.jsx +24 -0
  665. package/src/components/input/text_editor/plugins/SetRichContentPlugin.jsx +20 -0
  666. package/src/components/input/text_editor/plugins/ToolbarPlugin.jsx +233 -0
  667. package/src/components/input/text_editor/plugins/ToolbarPlugin.module.scss +77 -0
  668. package/src/components/input/text_input/TextInput.docs.mdx +73 -0
  669. package/src/components/input/text_input/TextInput.jsx +46 -0
  670. package/src/components/input/text_input/TextInput.module.scss +146 -0
  671. package/src/components/input/text_input/TextInput.stories.jsx +101 -0
  672. package/src/components/input/text_input/TextInput.test.jsx +64 -0
  673. package/src/components/input/text_input/color-accent.js +16 -0
  674. package/src/components/input/text_input/index.js +3 -0
  675. package/src/components/input/text_input/message.jsx +12 -0
  676. package/src/components/input/toggle/Toggle.docs.mdx +23 -0
  677. package/src/components/input/toggle/Toggle.jsx +25 -0
  678. package/src/components/input/toggle/Toggle.module.scss +73 -0
  679. package/src/components/input/toggle/Toggle.stories.jsx +42 -0
  680. package/src/components/input/toggle/Toggle.test.jsx +39 -0
  681. package/src/components/input/toggle/index.js +1 -0
  682. package/src/components/input/toggle_position/TogglePosition.docs.mdx +20 -0
  683. package/src/components/input/toggle_position/TogglePosition.jsx +55 -0
  684. package/src/components/input/toggle_position/TogglePosition.module.scss +46 -0
  685. package/src/components/input/toggle_position/TogglePosition.stories.jsx +96 -0
  686. package/src/components/input/toggle_position/TogglePosition.test.jsx +66 -0
  687. package/src/components/input/toggle_position/index.js +1 -0
  688. package/src/components/intl/intl_provider/IntlContext.jsx +3 -0
  689. package/src/components/intl/intl_provider/IntlProvider.docs.mdx +37 -0
  690. package/src/components/intl/intl_provider/IntlProvider.jsx +92 -0
  691. package/src/components/intl/intl_provider/IntlProvider.test.jsx +153 -0
  692. package/src/components/intl/intl_provider/index.js +3 -0
  693. package/src/components/intl/intl_provider/locales/en.json +4 -0
  694. package/src/components/intl/intl_provider/locales/es.json +4 -0
  695. package/src/components/intl/intl_provider/locales/fr.json +6 -0
  696. package/src/components/intl/intl_provider/locales/index.js +11 -0
  697. package/src/components/intl/intl_provider/useLocale.jsx +8 -0
  698. package/src/components/list/list_provider/ListProvider.docs.mdx +51 -0
  699. package/src/components/list/list_provider/ListProvider.jsx +32 -0
  700. package/src/components/list/list_provider/ListProvider.stories.jsx +92 -0
  701. package/src/components/list/list_provider/ListProvider.test.jsx +137 -0
  702. package/src/components/list/list_provider/index.js +2 -0
  703. package/src/components/list/list_provider/useList.jsx +8 -0
  704. package/src/components/list/paginated_list/PaginatedList.docs.mdx +68 -0
  705. package/src/components/list/paginated_list/PaginatedList.jsx +397 -0
  706. package/src/components/list/paginated_list/PaginatedList.module.scss +88 -0
  707. package/src/components/list/paginated_list/PaginatedList.stories.jsx +301 -0
  708. package/src/components/list/paginated_list/PaginatedList.test.jsx +1335 -0
  709. package/src/components/list/paginated_list/VotePaginatedList.jsx +26 -0
  710. package/src/components/list/paginated_list/VotePaginatedList.test.jsx +1518 -0
  711. package/src/components/list/paginated_list/action_bar/ActionBar.jsx +132 -0
  712. package/src/components/list/paginated_list/action_bar/ActionBar.module.scss +81 -0
  713. package/src/components/list/paginated_list/index.js +3 -0
  714. package/src/components/list/pagination/Pagination.docs.mdx +32 -0
  715. package/src/components/list/pagination/Pagination.jsx +58 -0
  716. package/src/components/list/pagination/Pagination.module.scss +10 -0
  717. package/src/components/list/pagination/Pagination.stories.jsx +44 -0
  718. package/src/components/list/pagination/Pagination.test.jsx +80 -0
  719. package/src/components/list/pagination/index.js +1 -0
  720. package/src/components/modal/side_modal/SideModal.docs.mdx +31 -0
  721. package/src/components/modal/side_modal/SideModal.jsx +85 -0
  722. package/src/components/modal/side_modal/SideModal.module.scss +83 -0
  723. package/src/components/modal/side_modal/SideModal.stories.jsx +112 -0
  724. package/src/components/modal/side_modal/SideModal.test.jsx +36 -0
  725. package/src/components/modal/side_modal/index.js +1 -0
  726. package/src/components/navbar/navbar_button/NavbarButton.docs.mdx +37 -0
  727. package/src/components/navbar/navbar_button/NavbarButton.jsx +43 -0
  728. package/src/components/navbar/navbar_button/NavbarButton.module.scss +45 -0
  729. package/src/components/navbar/navbar_button/NavbarButton.stories.jsx +93 -0
  730. package/src/components/navbar/navbar_button/NavbarButton.test.jsx +67 -0
  731. package/src/components/navbar/navbar_button/index.js +1 -0
  732. package/src/components/navbar/navbar_modal/NavbarModal.docs.mdx +24 -0
  733. package/src/components/navbar/navbar_modal/NavbarModal.jsx +175 -0
  734. package/src/components/navbar/navbar_modal/NavbarModal.module.scss +132 -0
  735. package/src/components/navbar/navbar_modal/NavbarModal.stories.jsx +96 -0
  736. package/src/components/navbar/navbar_modal/NavbarModal.test.jsx +155 -0
  737. package/src/components/navbar/navbar_modal/index.js +1 -0
  738. package/src/components/notification/notification_item/NotificationItem.docs.mdx +35 -0
  739. package/src/components/notification/notification_item/NotificationItem.jsx +71 -0
  740. package/src/components/notification/notification_item/NotificationItem.module.scss +56 -0
  741. package/src/components/notification/notification_item/NotificationItem.stories.jsx +121 -0
  742. package/src/components/notification/notification_item/NotificationItem.test.jsx +97 -0
  743. package/src/components/notification/notification_item/index.js +1 -0
  744. package/src/components/notification/notification_menu/NotificationMenu.docs.mdx +25 -0
  745. package/src/components/notification/notification_menu/NotificationMenu.jsx +61 -0
  746. package/src/components/notification/notification_menu/NotificationMenu.module.scss +49 -0
  747. package/src/components/notification/notification_menu/NotificationMenu.stories.jsx +94 -0
  748. package/src/components/notification/notification_menu/NotificationMenu.test.jsx +131 -0
  749. package/src/components/notification/notification_menu/index.js +1 -0
  750. package/src/components/progress/loader/Loader.docs.mdx +13 -0
  751. package/src/components/progress/loader/Loader.jsx +9 -0
  752. package/src/components/progress/loader/Loader.module.scss +26 -0
  753. package/src/components/progress/loader/Loader.stories.jsx +11 -0
  754. package/src/components/progress/loader/Loader.test.jsx +11 -0
  755. package/src/components/progress/loader/index.js +3 -0
  756. package/src/components/progress/progress_bar/ProgressBar.docs.mdx +29 -0
  757. package/src/components/progress/progress_bar/ProgressBar.jsx +75 -0
  758. package/src/components/progress/progress_bar/ProgressBar.module.scss +87 -0
  759. package/src/components/progress/progress_bar/ProgressBar.stories.jsx +43 -0
  760. package/src/components/progress/progress_bar/ProgressBar.test.jsx +126 -0
  761. package/src/components/progress/progress_bar/index.js +1 -0
  762. package/src/components/proposal/proposal_box/ProposalBox.docs.mdx +39 -0
  763. package/src/components/proposal/proposal_box/ProposalBox.jsx +108 -0
  764. package/src/components/proposal/proposal_box/ProposalBox.module.scss +80 -0
  765. package/src/components/proposal/proposal_box/ProposalBox.stories.jsx +161 -0
  766. package/src/components/proposal/proposal_box/ProposalBox.test.jsx +137 -0
  767. package/src/components/proposal/proposal_box/index.js +1 -0
  768. package/src/components/report/report_box/ReportBox.docs.mdx +35 -0
  769. package/src/components/report/report_box/ReportBox.jsx +120 -0
  770. package/src/components/report/report_box/ReportBox.module.scss +54 -0
  771. package/src/components/report/report_box/ReportBox.stories.jsx +247 -0
  772. package/src/components/report/report_box/ReportBox.test.jsx +232 -0
  773. package/src/components/report/report_box/index.js +1 -0
  774. package/src/components/section/section_box/SectionBox.docs.mdx +19 -0
  775. package/src/components/section/section_box/SectionBox.jsx +32 -0
  776. package/src/components/section/section_box/SectionBox.module.scss +57 -0
  777. package/src/components/section/section_box/SectionBox.stories.jsx +39 -0
  778. package/src/components/section/section_box/SectionBox.test.jsx +44 -0
  779. package/src/components/section/section_box/index.js +1 -0
  780. package/src/components/share/share_box/ShareBox.docs.mdx +27 -0
  781. package/src/components/share/share_box/ShareBox.jsx +71 -0
  782. package/src/components/share/share_box/ShareBox.module.scss +38 -0
  783. package/src/components/share/share_box/ShareBox.stories.jsx +42 -0
  784. package/src/components/share/share_box/ShareBox.test.jsx +142 -0
  785. package/src/components/share/share_box/index.js +1 -0
  786. package/src/components/share/share_button/ShareButton.docs.mdx +26 -0
  787. package/src/components/share/share_button/ShareButton.jsx +102 -0
  788. package/src/components/share/share_button/ShareButton.module.scss +68 -0
  789. package/src/components/share/share_button/ShareButton.stories.jsx +51 -0
  790. package/src/components/share/share_button/ShareButton.test.jsx +117 -0
  791. package/src/components/share/share_button/index.js +1 -0
  792. package/src/components/share/share_modal/ShareModal.docs.mdx +29 -0
  793. package/src/components/share/share_modal/ShareModal.jsx +49 -0
  794. package/src/components/share/share_modal/ShareModal.module.scss +21 -0
  795. package/src/components/share/share_modal/ShareModal.stories.jsx +48 -0
  796. package/src/components/share/share_modal/ShareModal.test.jsx +70 -0
  797. package/src/components/share/share_modal/index.js +1 -0
  798. package/src/components/skeleton/box_skeleton/BoxSkeleton.docs.mdx +14 -0
  799. package/src/components/skeleton/box_skeleton/BoxSkeleton.jsx +38 -0
  800. package/src/components/skeleton/box_skeleton/BoxSkeleton.stories.jsx +46 -0
  801. package/src/components/skeleton/box_skeleton/BoxSkeleton.test.jsx +39 -0
  802. package/src/components/skeleton/box_skeleton/index.js +1 -0
  803. package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.docs.mdx +15 -0
  804. package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.jsx +56 -0
  805. package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss +78 -0
  806. package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.stories.jsx +44 -0
  807. package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.test.jsx +55 -0
  808. package/src/components/skeleton/user_content_skeleton/index.js +1 -0
  809. package/src/components/source/context_source_box/ContextSourceBox.docs.mdx +27 -0
  810. package/src/components/source/context_source_box/ContextSourceBox.jsx +38 -0
  811. package/src/components/source/context_source_box/ContextSourceBox.module.scss +50 -0
  812. package/src/components/source/context_source_box/ContextSourceBox.stories.jsx +36 -0
  813. package/src/components/source/context_source_box/ContextSourceBox.test.jsx +46 -0
  814. package/src/components/source/context_source_box/index.js +1 -0
  815. package/src/components/source/context_source_list/ContextSourceList.docs.mdx +37 -0
  816. package/src/components/source/context_source_list/ContextSourceList.jsx +42 -0
  817. package/src/components/source/context_source_list/ContextSourceList.module.scss +38 -0
  818. package/src/components/source/context_source_list/ContextSourceList.stories.jsx +39 -0
  819. package/src/components/source/context_source_list/ContextSourceList.test.jsx +47 -0
  820. package/src/components/source/context_source_list/index.js +1 -0
  821. package/src/components/source/source_box/SourceBox.docs.mdx +23 -0
  822. package/src/components/source/source_box/SourceBox.jsx +43 -0
  823. package/src/components/source/source_box/SourceBox.module.scss +43 -0
  824. package/src/components/source/source_box/SourceBox.stories.jsx +26 -0
  825. package/src/components/source/source_box/SourceBox.test.jsx +30 -0
  826. package/src/components/source/source_box/index.js +1 -0
  827. package/src/components/source/source_list_item/SourceListItem.docs.mdx +23 -0
  828. package/src/components/source/source_list_item/SourceListItem.jsx +28 -0
  829. package/src/components/source/source_list_item/SourceListItem.module.scss +33 -0
  830. package/src/components/source/source_list_item/SourceListItem.stories.jsx +40 -0
  831. package/src/components/source/source_list_item/SourceListItem.test.jsx +41 -0
  832. package/src/components/source/source_list_item/index.js +1 -0
  833. package/src/components/source/source_modal/SourceModal.docs.mdx +29 -0
  834. package/src/components/source/source_modal/SourceModal.jsx +157 -0
  835. package/src/components/source/source_modal/SourceModal.module.scss +45 -0
  836. package/src/components/source/source_modal/SourceModal.stories.jsx +82 -0
  837. package/src/components/source/source_modal/SourceModal.test.jsx +180 -0
  838. package/src/components/source/source_modal/index.js +1 -0
  839. package/src/components/styles/display/_display.scss +127 -0
  840. package/src/components/styles/display/display.docs.mdx +8 -0
  841. package/src/components/styles/display/index.scss +1 -0
  842. package/src/components/styles/flex/_flex.scss +55 -0
  843. package/src/components/styles/flex/flex.docs.mdx +8 -0
  844. package/src/components/styles/flex/index.scss +1 -0
  845. package/src/components/styles/spacing/_spacing.scss +107 -0
  846. package/src/components/styles/spacing/index.scss +1 -0
  847. package/src/components/styles/spacing/spacing.docs.mdx +8 -0
  848. package/src/components/styles/tabs/_tabs.scss +159 -0
  849. package/src/components/styles/tabs/index.scss +1 -0
  850. package/src/components/styles/tabs/tabs.docs.mdx +8 -0
  851. package/src/components/styles/theme/_theme.scss +51 -0
  852. package/src/components/styles/theme/index.scss +1 -0
  853. package/src/components/styles/theme/theme.docs.mdx +89 -0
  854. package/src/components/suggestion/suggestion_banner/SuggestionBanner.docs.mdx +35 -0
  855. package/src/components/suggestion/suggestion_banner/SuggestionBanner.jsx +86 -0
  856. package/src/components/suggestion/suggestion_banner/SuggestionBanner.module.scss +93 -0
  857. package/src/components/suggestion/suggestion_banner/SuggestionBanner.stories.jsx +128 -0
  858. package/src/components/suggestion/suggestion_banner/SuggestionBanner.test.jsx +237 -0
  859. package/src/components/suggestion/suggestion_banner/index.js +1 -0
  860. package/src/components/suggestion/suggestion_box/SuggestionBox.docs.mdx +39 -0
  861. package/src/components/suggestion/suggestion_box/SuggestionBox.jsx +112 -0
  862. package/src/components/suggestion/suggestion_box/SuggestionBox.module.scss +55 -0
  863. package/src/components/suggestion/suggestion_box/SuggestionBox.stories.jsx +147 -0
  864. package/src/components/suggestion/suggestion_box/SuggestionBox.test.jsx +184 -0
  865. package/src/components/suggestion/suggestion_box/index.js +1 -0
  866. package/src/components/suggestion/suggestion_input/SuggestionInput.docs.mdx +19 -0
  867. package/src/components/suggestion/suggestion_input/SuggestionInput.jsx +212 -0
  868. package/src/components/suggestion/suggestion_input/SuggestionInput.module.scss +50 -0
  869. package/src/components/suggestion/suggestion_input/SuggestionInput.stories.jsx +87 -0
  870. package/src/components/suggestion/suggestion_input/SuggestionInput.test.jsx +77 -0
  871. package/src/components/suggestion/suggestion_input/index.js +1 -0
  872. package/src/components/summary/argument_summary_box/ArgumentSummaryBox.docs.mdx +19 -0
  873. package/src/components/summary/argument_summary_box/ArgumentSummaryBox.jsx +40 -0
  874. package/src/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss +67 -0
  875. package/src/components/summary/argument_summary_box/ArgumentSummaryBox.stories.jsx +57 -0
  876. package/src/components/summary/argument_summary_box/ArgumentSummaryBox.test.jsx +18 -0
  877. package/src/components/summary/argument_summary_box/index.js +1 -0
  878. package/src/components/summary/keyword_box/KeywordBox.docs.mdx +21 -0
  879. package/src/components/summary/keyword_box/KeywordBox.jsx +43 -0
  880. package/src/components/summary/keyword_box/KeywordBox.module.scss +54 -0
  881. package/src/components/summary/keyword_box/KeywordBox.stories.jsx +49 -0
  882. package/src/components/summary/keyword_box/KeywordBox.test.jsx +47 -0
  883. package/src/components/summary/keyword_box/index.js +1 -0
  884. package/src/components/summary/summary/Summary.docs.mdx +23 -0
  885. package/src/components/summary/summary/Summary.jsx +93 -0
  886. package/src/components/summary/summary/Summary.module.scss +26 -0
  887. package/src/components/summary/summary/Summary.stories.jsx +95 -0
  888. package/src/components/summary/summary/Summary.test.jsx +116 -0
  889. package/src/components/summary/summary/index.js +1 -0
  890. package/src/components/summary/summary_box/SummaryBox.docs.mdx +19 -0
  891. package/src/components/summary/summary_box/SummaryBox.jsx +39 -0
  892. package/src/components/summary/summary_box/SummaryBox.module.scss +56 -0
  893. package/src/components/summary/summary_box/SummaryBox.stories.jsx +83 -0
  894. package/src/components/summary/summary_box/SummaryBox.test.jsx +47 -0
  895. package/src/components/summary/summary_box/SummaryBoxComposition.module.scss +3 -0
  896. package/src/components/summary/summary_box/index.js +1 -0
  897. package/src/components/tag/tag/Tag.docs.mdx +19 -0
  898. package/src/components/tag/tag/Tag.jsx +35 -0
  899. package/src/components/tag/tag/Tag.module.scss +34 -0
  900. package/src/components/tag/tag/Tag.stories.jsx +70 -0
  901. package/src/components/tag/tag/Tag.test.jsx +29 -0
  902. package/src/components/tag/tag/index.js +1 -0
  903. package/src/components/text/expandable_text/ArrowIcon.jsx +7 -0
  904. package/src/components/text/expandable_text/ExpandableText.docs.mdx +42 -0
  905. package/src/components/text/expandable_text/ExpandableText.jsx +81 -0
  906. package/src/components/text/expandable_text/ExpandableText.module.scss +76 -0
  907. package/src/components/text/expandable_text/ExpandableText.stories.jsx +63 -0
  908. package/src/components/text/expandable_text/ExpandableText.test.jsx +23 -0
  909. package/src/components/text/expandable_text/index.js +1 -0
  910. package/src/components/text/read_more/ReadMore.docs.mdx +23 -0
  911. package/src/components/text/read_more/ReadMore.jsx +104 -0
  912. package/src/components/text/read_more/ReadMore.module.scss +51 -0
  913. package/src/components/text/read_more/ReadMore.stories.jsx +141 -0
  914. package/src/components/text/read_more/ReadMore.test.jsx +87 -0
  915. package/src/components/text/read_more/index.js +1 -0
  916. package/src/components/tools/hash_scroll/HashScroll.docs.mdx +27 -0
  917. package/src/components/tools/hash_scroll/HashScroll.jsx +36 -0
  918. package/src/components/tools/hash_scroll/HashScroll.test.jsx +66 -0
  919. package/src/components/tools/hash_scroll/index.js +1 -0
  920. package/src/components/tools/scroll_to_top/ScrollToTop.docs.mdx +28 -0
  921. package/src/components/tools/scroll_to_top/ScrollToTop.jsx +22 -0
  922. package/src/components/tools/scroll_to_top/ScrollToTop.stories.jsx +40 -0
  923. package/src/components/tools/scroll_to_top/ScrollToTop.test.jsx +36 -0
  924. package/src/components/tools/scroll_to_top/index.js +1 -0
  925. package/src/components/translation/translated_content/TranslatedContent.jsx +24 -0
  926. package/src/components/translation/translated_content/TranslatedContent.test.jsx +30 -0
  927. package/src/components/translation/translated_content/index.js +3 -0
  928. package/src/components/translation/translated_content/useTranslatedContent.docs.mdx +80 -0
  929. package/src/components/translation/translated_content/useTranslatedContent.jsx +57 -0
  930. package/src/components/translation/translated_content/useTranslatedContent.test.jsx +118 -0
  931. package/src/components/translation/translation_button/TranslationButton.docs.mdx +18 -0
  932. package/src/components/translation/translation_button/TranslationButton.jsx +46 -0
  933. package/src/components/translation/translation_button/TranslationButton.module.scss +10 -0
  934. package/src/components/translation/translation_button/TranslationButton.stories.jsx +30 -0
  935. package/src/components/translation/translation_button/TranslationButton.test.jsx +35 -0
  936. package/src/components/translation/translation_button/index.js +1 -0
  937. package/src/components/user/author_box/AuthorBox.docs.mdx +35 -0
  938. package/src/components/user/author_box/AuthorBox.jsx +128 -0
  939. package/src/components/user/author_box/AuthorBox.module.scss +110 -0
  940. package/src/components/user/author_box/AuthorBox.stories.jsx +193 -0
  941. package/src/components/user/author_box/AuthorBox.test.jsx +171 -0
  942. package/src/components/user/author_box/index.js +1 -0
  943. package/src/components/user/avatar/Avatar.docs.mdx +31 -0
  944. package/src/components/user/avatar/Avatar.jsx +63 -0
  945. package/src/components/user/avatar/Avatar.module.scss +30 -0
  946. package/src/components/user/avatar/Avatar.stories.jsx +79 -0
  947. package/src/components/user/avatar/Avatar.test.jsx +114 -0
  948. package/src/components/user/avatar/DefaultAvatar.jsx +13 -0
  949. package/src/components/user/avatar/index.js +1 -0
  950. package/src/components/user/avatar_selector/AvatarSelector.docs.mdx +25 -0
  951. package/src/components/user/avatar_selector/AvatarSelector.jsx +65 -0
  952. package/src/components/user/avatar_selector/AvatarSelector.module.scss +105 -0
  953. package/src/components/user/avatar_selector/AvatarSelector.stories.jsx +46 -0
  954. package/src/components/user/avatar_selector/AvatarSelector.test.jsx +98 -0
  955. package/src/components/user/avatar_selector/index.js +1 -0
  956. package/src/components/user/update_user_info_modal/UpdateUserInfoModal.docs.mdx +22 -0
  957. package/src/components/user/update_user_info_modal/UpdateUserInfoModal.jsx +254 -0
  958. package/src/components/user/update_user_info_modal/UpdateUserInfoModal.module.scss +176 -0
  959. package/src/components/user/update_user_info_modal/UpdateUserInfoModal.stories.jsx +113 -0
  960. package/src/components/user/update_user_info_modal/UpdateUserInfoModal.test.jsx +213 -0
  961. package/src/components/user/update_user_info_modal/index.js +2 -0
  962. package/src/components/user/update_user_info_modal/useUpdateUserInfo.jsx +40 -0
  963. package/src/components/user/user_box/UserBox.docs.mdx +21 -0
  964. package/src/components/user/user_box/UserBox.jsx +59 -0
  965. package/src/components/user/user_box/UserBox.module.scss +86 -0
  966. package/src/components/user/user_box/UserBox.stories.jsx +82 -0
  967. package/src/components/user/user_box/UserBox.test.jsx +95 -0
  968. package/src/components/user/user_box/index.js +1 -0
  969. package/src/components/user/user_box_small/UserBoxSmall.docs.mdx +20 -0
  970. package/src/components/user/user_box_small/UserBoxSmall.jsx +36 -0
  971. package/src/components/user/user_box_small/UserBoxSmall.module.scss +21 -0
  972. package/src/components/user/user_box_small/UserBoxSmall.stories.jsx +38 -0
  973. package/src/components/user/user_box_small/UserBoxSmall.test.jsx +49 -0
  974. package/src/components/user/user_box_small/index.js +1 -0
  975. package/src/components/user_content/content_footer/ContentFooter.docs.mdx +36 -0
  976. package/src/components/user_content/content_footer/ContentFooter.jsx +234 -0
  977. package/src/components/user_content/content_footer/ContentFooter.module.scss +79 -0
  978. package/src/components/user_content/content_footer/ContentFooter.stories.jsx +438 -0
  979. package/src/components/user_content/content_footer/ContentFooter.test.jsx +246 -0
  980. package/src/components/user_content/content_footer/index.js +1 -0
  981. package/src/components/user_content/content_header/ContentHeader.docs.mdx +27 -0
  982. package/src/components/user_content/content_header/ContentHeader.jsx +131 -0
  983. package/src/components/user_content/content_header/ContentHeader.module.scss +111 -0
  984. package/src/components/user_content/content_header/ContentHeader.stories.jsx +221 -0
  985. package/src/components/user_content/content_header/ContentHeader.test.jsx +98 -0
  986. package/src/components/user_content/content_header/index.js +1 -0
  987. package/src/components/user_content/summary_content_box/SummaryContentBox.docs.mdx +25 -0
  988. package/src/components/user_content/summary_content_box/SummaryContentBox.jsx +89 -0
  989. package/src/components/user_content/summary_content_box/SummaryContentBox.module.scss +65 -0
  990. package/src/components/user_content/summary_content_box/SummaryContentBox.stories.jsx +130 -0
  991. package/src/components/user_content/summary_content_box/SummaryContentBox.test.jsx +169 -0
  992. package/src/components/user_content/summary_content_box/index.js +1 -0
  993. package/src/components/user_content/use_delete_content/index.js +1 -0
  994. package/src/components/user_content/use_delete_content/useDeleteContent.docs.mdx +34 -0
  995. package/src/components/user_content/use_delete_content/useDeleteContent.jsx +55 -0
  996. package/src/components/user_content/use_delete_content/useDeleteContent.test.jsx +78 -0
  997. package/src/components/user_content/use_report_content/ReportModal.docs.mdx +54 -0
  998. package/src/components/user_content/use_report_content/ReportModal.jsx +187 -0
  999. package/src/components/user_content/use_report_content/ReportModal.module.scss +121 -0
  1000. package/src/components/user_content/use_report_content/ReportModal.stories.jsx +61 -0
  1001. package/src/components/user_content/use_report_content/ReportModal.test.jsx +51 -0
  1002. package/src/components/user_content/use_report_content/index.js +2 -0
  1003. package/src/components/user_content/use_report_content/useReportContent.docs.mdx +24 -0
  1004. package/src/components/user_content/use_report_content/useReportContent.jsx +32 -0
  1005. package/src/components/user_content/use_report_content/useReportContent.test.jsx +138 -0
  1006. package/src/components/util/lang_emojis/index.js +1 -0
  1007. package/src/components/util/lang_emojis/langEmojis.docs.mdx +10 -0
  1008. package/src/components/util/lang_emojis/langEmojis.js +72 -0
  1009. package/src/components/util/lang_emojis/langEmojis.test.jsx +63 -0
  1010. package/src/components/util/location/Location.docs.mdx +18 -0
  1011. package/src/components/util/location/Location.js +84 -0
  1012. package/src/components/util/location/Location.test.jsx +24 -0
  1013. package/src/components/util/location/index.js +1 -0
  1014. package/src/components/util/unique_by/index.js +1 -0
  1015. package/src/components/util/unique_by/uniqueBy.docs.mdx +24 -0
  1016. package/src/components/util/unique_by/uniqueBy.js +9 -0
  1017. package/src/components/util/unique_by/uniqueBy.test.jsx +29 -0
  1018. package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.docs.mdx +24 -0
  1019. package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx +87 -0
  1020. package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss +17 -0
  1021. package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.stories.jsx +97 -0
  1022. package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.test.jsx +182 -0
  1023. package/src/components/vote/suggestion_vote_box/index.js +1 -0
  1024. package/src/components/vote/up_down_vote_box/UpDownVoteBox.docs.mdx +24 -0
  1025. package/src/components/vote/up_down_vote_box/UpDownVoteBox.jsx +64 -0
  1026. package/src/components/vote/up_down_vote_box/UpDownVoteBox.module.scss +35 -0
  1027. package/src/components/vote/up_down_vote_box/UpDownVoteBox.stories.jsx +97 -0
  1028. package/src/components/vote/up_down_vote_box/UpDownVoteBox.test.jsx +173 -0
  1029. package/src/components/vote/up_down_vote_box/index.js +1 -0
  1030. package/src/components/vote/use_vote/index.js +1 -0
  1031. package/src/components/vote/use_vote/useVote.docs.mdx +42 -0
  1032. package/src/components/vote/use_vote/useVote.jsx +165 -0
  1033. package/src/components/vote/use_vote/useVote.test.jsx +294 -0
  1034. package/src/components/vote/vote_box/VoteBox.docs.mdx +45 -0
  1035. package/src/components/vote/vote_box/VoteBox.jsx +420 -0
  1036. package/src/components/vote/vote_box/VoteBox.module.scss +254 -0
  1037. package/src/components/vote/vote_box/VoteBox.stories.jsx +319 -0
  1038. package/src/components/vote/vote_box/VoteBox.test.jsx +256 -0
  1039. package/src/components/vote/vote_box/index.js +1 -0
  1040. package/src/components/vote/vote_button/VoteButton.docs.mdx +24 -0
  1041. package/src/components/vote/vote_button/VoteButton.jsx +59 -0
  1042. package/src/components/vote/vote_button/VoteButton.module.scss +35 -0
  1043. package/src/components/vote/vote_button/VoteButton.stories.jsx +97 -0
  1044. package/src/components/vote/vote_button/VoteButton.test.jsx +167 -0
  1045. package/src/components/vote/vote_button/index.js +1 -0
  1046. package/src/components/vote/vote_provider/VoteProvider.docs.mdx +68 -0
  1047. package/src/components/vote/vote_provider/VoteProvider.jsx +63 -0
  1048. package/src/components/vote/vote_provider/VoteProvider.stories.jsx +99 -0
  1049. package/src/components/vote/vote_provider/VoteProvider.test.jsx +137 -0
  1050. package/src/components/vote/vote_provider/index.js +2 -0
  1051. package/src/index.js +127 -0
  1052. package/vitest.config.mjs +52 -0
  1053. package/vitest.setup.js +4 -0
@@ -0,0 +1,121 @@
1
+ import React from 'react';
2
+ import { Alarm } from "./Alarm"
3
+ import { Announcement } from "./Announcement"
4
+ import { Arrow } from "./Arrow"
5
+ import { Blockquote } from "./Blockquote"
6
+ import { Bold } from "./Bold"
7
+ import { Camera } from "./Camera"
8
+ import { Chat } from "./Chat"
9
+ import { Checkbox } from "./Checkbox"
10
+ import { Check } from "./Check"
11
+ import { Clap } from "./Clap"
12
+ import { Clock } from "./Clock"
13
+ import { Close } from "./Close"
14
+ import { Code } from "./Code"
15
+ import { Community } from "./Community"
16
+ import { Crown } from "./Crown"
17
+ import { Downvote } from "./Downvote"
18
+ import { Ellipsis } from "./Ellipsis"
19
+ import { ExpertBadge } from "./ExpertBadge"
20
+ import { Facebook } from "./Facebook"
21
+ import { Home } from "./Home"
22
+ import { Italic } from "./Italic"
23
+ import { LightArrow } from './LightArrow'
24
+ import { Link } from "./Link"
25
+ import { Login } from "./Login"
26
+ import { Logora } from "./Logora"
27
+ import { Mail } from "./Mail"
28
+ import { MobileClose } from "./MobileClose"
29
+ import { MobileMenu } from "./MobileMenu"
30
+ import { Next } from "./Next"
31
+ import { OpenBlank } from "./OpenBlank"
32
+ import { OrderedList } from "./OrderedList"
33
+ import { Point } from "./Point"
34
+ import { Question } from "./Question"
35
+ import { Refresh } from "./Refresh"
36
+ import { Reply } from "./Reply"
37
+ import { Search } from "./Search"
38
+ import { Send } from "./Send"
39
+ import { Share } from "./Share"
40
+ import { SmallArrow } from "./SmallArrow"
41
+ import { Source } from "./Source"
42
+ import { Suggestion } from './Suggestion';
43
+ import { Twitter } from "./Twitter"
44
+ import { Underline } from "./Underline"
45
+ import { Upvote } from "./Upvote";
46
+ import { User } from "./User"
47
+ import { Votebox } from './Votebox';
48
+ import { Versus } from './Versus';
49
+ import { CheckCircle } from './CheckCircle';
50
+ import { MinusCircle } from './MinusCircle';
51
+ import { Flag } from './Flag';
52
+ import { PauseCircle } from './PauseCircle'
53
+
54
+ const meta = {
55
+ title: 'Icons/Spiegel Icons',
56
+ component: () => null,
57
+ args: {},
58
+ argTypes: {},
59
+ render: () => <SpiegelIconsLibrary />
60
+ };
61
+
62
+ export default meta;
63
+
64
+ export const SpiegelIconsLibrary = () => {
65
+ return (
66
+ <div style={{ display: "flex", justifyContent: "center", flexWrap: "wrap" }}>
67
+ <Alarm width={50} height={50} data-testid={"alarm-icon"} style={{ margin: "15px" }} />
68
+ <Announcement width={50} height={50} data-testid={"announcement-icon"} style={{ margin: "15px" }} />
69
+ <Arrow width={50} height={50} data-testid={"arrow-icon"} style={{ margin: "15px" }} />
70
+ <Blockquote width={50} height={50} data-testid={"blockquote-icon"} style={{ margin: "15px" }} />
71
+ <Bold width={50} height={50} data-testid={"bold-icon"} style={{ margin: "15px" }} />
72
+ <Camera width={50} height={50} data-testid={"camera-icon"} style={{ margin: "15px" }} />
73
+ <Chat width={50} height={50} data-testid={"chat-icon"} style={{ margin: "15px" }} />
74
+ <Checkbox width={50} height={50} data-testid={"checkbox-icon"} style={{ margin: "15px" }} />
75
+ <Check width={50} height={50} data-testid={"checkbox-icon"} style={{ margin: "15px" }} />
76
+ <Clap width={50} height={50} data-testid={"clap-icon"} style={{ margin: "15px" }} />
77
+ <Clock width={50} height={50} data-testid={"clock-icon"} style={{ margin: "15px" }} />
78
+ <Close width={50} height={50} data-testid={"close-icon"} style={{ margin: "15px" }} />
79
+ <Code width={50} height={50} data-testid={"code-icon"} style={{ margin: "15px" }} />
80
+ <Community width={50} height={50} data-testid={"community-icon"} style={{ margin: "15px" }} />
81
+ <Crown width={50} height={50} data-testid={"crown-icon"} style={{ margin: "15px" }} />
82
+ <Downvote width={50} height={50} data-testid={"downvote-icon"} style={{ margin: "15px" }} />
83
+ <Ellipsis width={50} height={50} data-testid={"ellipsis-icon"} style={{ margin: "15px" }} />
84
+ <ExpertBadge width={50} height={50} data-testid={"expert-badge-icon"} style={{ margin: "15px" }} />
85
+ <Facebook width={50} height={50} data-testid={"facebook-icon"} style={{ margin: "15px" }} />
86
+ <Home width={50} height={50} data-testid={"home-icon"} style={{ margin: "15px" }} />
87
+ <Italic width={50} height={50} data-testid={"italic-icon"} style={{ margin: "15px" }} />
88
+ <LightArrow width={50} height={50} data-testid={"light-arrow-icon"} style={{ margin: "15px" }} />
89
+ <Link width={50} height={50} data-testid={"link-icon"} style={{ margin: "15px" }} />
90
+ <Login width={50} height={50} data-testid={"login-icon"} style={{ margin: "15px" }} />
91
+ <Logora width={50} height={50} data-testid={"logora-icon"} style={{ margin: "15px" }} />
92
+ <Mail width={50} height={50} data-testid={"mail-icon"} style={{ margin: "15px" }} />
93
+ <MobileClose width={50} height={50} data-testid={"mobile-close-icon"} style={{ margin: "15px" }} />
94
+ <MobileMenu width={50} height={50} data-testid={"mobile-menu-icon"} style={{ margin: "15px" }} />
95
+ <Next width={50} height={50} data-testid={"next-icon"} style={{ margin: "15px" }} />
96
+ <OpenBlank width={50} height={50} data-testid={"open-blank-icon"} style={{ margin: "15px" }} />
97
+ <OrderedList width={50} height={50} data-testid={"ordered-list-icon"} style={{ margin: "15px" }} />
98
+ <Point width={50} height={50} data-testid={"point-icon"} style={{ margin: "15px" }} />
99
+ <Question width={50} height={50} data-testid={"question-icon"} style={{ margin: "15px" }} />
100
+ <Refresh width={50} height={50} data-testid={"refresh-icon"} style={{ margin: "15px" }} />
101
+ <Reply width={50} height={50} data-testid={"reply-icon"} style={{ margin: "15px" }} />
102
+ <Search width={50} height={50} data-testid={"search-icon"} style={{ margin: "15px" }} />
103
+ <Send width={50} height={50} data-testid={"send-icon"} style={{ margin: "15px" }} />
104
+ <Share width={50} height={50} data-testid={"share-icon"} style={{ margin: "15px" }} />
105
+ <SmallArrow width={50} height={50} data-testid={"small-arrow-icon"} style={{ margin: "15px" }} />
106
+ <Source width={50} height={50} data-testid={"source-icon"} style={{ margin: "15px" }} />
107
+ <Suggestion width={50} height={50} data-testid={"suggestion-icon"} style={{ margin: "15px" }} />
108
+ <Twitter width={50} height={50} data-testid={"twitter-icon"} style={{ margin: "15px" }} />
109
+ <Underline width={50} height={50} data-testid={"underline-icon"} style={{ margin: "15px" }} />
110
+ <Upvote width={50} height={50} data-testid={"upvote-icon"} style={{ margin: "15px" }} />
111
+ <User width={50} height={50} data-testid={"user-icon"} style={{ margin: "15px" }} />
112
+ <Votebox width={50} height={50} data-testid={"vote-box-icon"} style={{ margin: "15px" }} />
113
+ <Versus width={50} height={50} data-testid={"versus-icon"} style={{ margin: "15px" }} />
114
+ <CheckCircle width={50} height={50} data-testid={"circlecheck-icon"} style={{ margin: "15px" }} />
115
+ <MinusCircle width={50} height={50} data-testid={"MinusCircle-icon"} style={{ margin: "15px" }} />
116
+ <Flag width={50} height={50} data-testid={"flag-icon"} style={{ margin: "15px" }} />
117
+ <PauseCircle width={50} height={50} data-testid={"PauseCircle-icon"} style={{ margin: "15px" }} />
118
+
119
+ </div>
120
+ )
121
+ };
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { SpiegelIconsLibrary } from "./SpiegelIcons.stories";
3
+ import { render, screen } from '@testing-library/react';
4
+
5
+ describe('Spiegel icons', () => {
6
+ it ('renders SpiegelIconsLibrary component', () => {
7
+ render(<SpiegelIconsLibrary />);
8
+
9
+ const versusIcon = screen.getByTestId("versus-icon");
10
+ expect(versusIcon).toBeTruthy();
11
+
12
+ const alarmIcon = screen.getByTestId("alarm-icon");
13
+ expect(alarmIcon).toBeTruthy();
14
+ })
15
+ });
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+
3
+ export const Suggestion = (props) => (
4
+ <svg viewBox="0 0 50 50" fill="black" xmlns="http://www.w3.org/2000/svg" {...props}>
5
+ <path fillRule="evenodd" clipRule="evenodd" d="M13.5892 26.0302C12.1456 24.2269 10.7535 22.0697 10.4121 17.3953C10.4362 9.70606 16.971 3.41206 24.8844 3.41206C32.7978 3.41206 39.3327 9.70606 39.3567 17.3953C39.0153 22.0713 37.6289 24.2299 36.189 26.0329C35.9796 26.2951 35.7624 26.5561 35.5419 26.821C34.1929 28.4416 32.719 30.2123 32.1407 33.3438L32.1206 33.4524V36.4573C32.1206 36.8569 31.7966 37.1809 31.397 37.1809H18.3719C17.9722 37.1809 17.6482 36.8569 17.6482 36.4573V33.4549L17.6291 33.3487C17.0621 30.206 15.5839 28.433 14.2299 26.809C14.0117 26.5473 13.7966 26.2893 13.5892 26.0302ZM24.8844 1C15.7009 1 8 8.32177 8 17.4378V17.4808L8.00306 17.5237C8.37983 22.8007 10.0101 25.4189 11.7062 27.5376C11.9484 27.8402 12.1847 28.1257 12.4133 28.4019C13.7227 29.984 14.7777 31.2587 15.2362 33.6734V36.4573C15.2362 38.1891 16.6401 39.593 18.3719 39.593H18.6454L19.1464 43.3314L19.3117 44.7387C19.5971 47.1685 21.6563 49 24.1029 49H25.6754C28.1245 49 30.1849 47.1649 30.4673 44.7322L30.6301 43.3301L31.1251 39.593H31.397C33.1288 39.593 34.5327 38.1891 34.5327 36.4573V33.676C35.0008 31.2674 36.0544 29.9924 37.3579 28.4148C37.5893 28.1348 37.8286 27.8452 38.0738 27.5381C39.7669 25.418 41.3891 22.799 41.7658 17.5237L41.7688 17.4808V17.4378C41.7688 8.32177 34.0679 1 24.8844 1ZM29.1786 39.593H20.5923L20.9479 42.2462H28.8272L29.1786 39.593ZM21.2282 44.5135L21.1885 44.1759H28.5893L28.5506 44.5097C28.3811 45.9693 27.1448 47.0704 25.6754 47.0704H24.1029C22.6349 47.0704 21.3994 45.9715 21.2282 44.5135Z"/>
6
+ </svg>
7
+ )
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+
3
+ export const Twitter = (props) => (
4
+ <svg viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
5
+ <path d="M29.1169 21.1716L47.3303 0H43.0143L27.1997 18.383L14.5685 0H0L19.1008 27.7983L0 50H4.31623L21.0169 30.5869L34.3563 50H48.9249L29.1169 21.1716ZM5.87143 3.2492H12.5009L43.0164 46.8986H36.3869L5.87143 3.2492Z" fill="black"/>
6
+ <path d="M29.1169 21.1716L47.3303 0H43.0143L27.1997 18.383L14.5685 0H0L19.1008 27.7983L0 50H4.31623L21.0169 30.5869L34.3563 50H48.9249L29.1169 21.1716ZM5.87143 3.2492H12.5009L43.0164 46.8986H36.3869L5.87143 3.2492Z" fill="black"/>
7
+ <path d="M29.1169 21.1716L47.3303 0H43.0143L27.1997 18.383L14.5685 0H0L19.1008 27.7983L0 50H4.31623L21.0169 30.5869L34.3563 50H48.9249L29.1169 21.1716ZM5.87143 3.2492H12.5009L43.0164 46.8986H36.3869L5.87143 3.2492Z" fill="black"/>
8
+ <path d="M29.1169 21.1716L47.3303 0H43.0143L27.1997 18.383L14.5685 0H0L19.1008 27.7983L0 50H4.31623L21.0169 30.5869L34.3563 50H48.9249L29.1169 21.1716ZM5.87143 3.2492H12.5009L43.0164 46.8986H36.3869L5.87143 3.2492Z" fill="black"/>
9
+ </svg>
10
+ )
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+
3
+ export const Underline = (props) => (
4
+ <svg viewBox="0 0 50 50" fill="black" xmlns="http://www.w3.org/2000/svg" {...props}>
5
+ <g clipPath="url(#clip0_2638_46095)">
6
+ <path fillRule="evenodd" clipRule="evenodd" d="M19.6972 0H5V25.0101C5 28.4775 6.01479 32.5546 9.09083 35.763C12.1881 38.9936 17.1615 41.122 24.6267 41.0849C32.085 41.0479 36.9733 38.919 40.0149 35.7136C43.0326 32.5333 44.0116 28.5243 44.1384 25.147L44.1395 25.1176V0H29.3001V22.44C29.3001 23.7391 29.2206 24.9237 28.678 25.7975C28.2389 26.5048 27.2738 27.3379 24.6189 27.3379C21.758 27.3379 20.7596 26.5847 20.332 25.9671C19.8043 25.205 19.6972 24.0827 19.6972 22.44V0ZM8.14092 25.0101V3.14092H16.5562V22.44C16.5562 23.9625 16.5859 26.0744 17.7496 27.7551C19.0134 29.5804 21.2612 30.4788 24.6189 30.4788C28.0106 30.4788 30.1714 29.3468 31.3464 27.4544C32.418 25.7285 32.441 23.679 32.441 22.44V3.14092H40.9986V25.058C40.8849 27.9608 40.0471 31.1165 37.7365 33.5516C35.4421 35.9696 31.4734 37.9099 24.6111 37.944C17.7557 37.9781 13.7049 36.0372 11.3581 33.5894C8.99005 31.1194 8.14092 27.9087 8.14092 25.0101ZM8.36134 46.4182C7.37226 46.4182 6.57046 47.2201 6.57046 48.2091C6.57046 49.1982 7.37226 50 8.36134 50H40.7782C41.7673 50 42.5691 49.1982 42.5691 48.2091C42.5691 47.2201 41.7673 46.4182 40.7782 46.4182H8.36134Z" />
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_2638_46095">
10
+ <rect width="50" height="50" fill="white"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
14
+ );
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+
3
+ export const Upvote = (props) => (
4
+ <svg viewBox="0 0 27 25" xmlns="http://www.w3.org/2000/svg" {...props}>
5
+ <path d="M24.7554 8.0429C24.2457 7.47999 23.6157 7.02861 22.9081 6.71931C22.2004 6.41002 21.4317 6.25003 20.654 6.25019H16.3177L16.683 4.12415C16.8122 3.37546 16.6563 2.60721 16.2437 1.9595C15.831 1.3118 15.1892 0.827807 14.4352 0.595806C13.6812 0.363805 12.8652 0.399253 12.1362 0.695685C11.4072 0.992116 10.8137 1.52978 10.464 2.21061L8.38333 6.25019H5.43525C3.99426 6.25184 2.61279 6.80111 1.59386 7.7775C0.574922 8.7539 0.00172608 10.0777 0 11.4585L0 16.6669C0.00172608 18.0477 0.574922 19.3715 1.59386 20.3479C2.61279 21.3243 3.99426 21.8735 5.43525 21.8752H19.893C21.2013 21.8701 22.4641 21.4151 23.4518 20.5931C24.4395 19.771 25.0865 18.6366 25.275 17.396L26.0414 12.1877C26.1493 11.4489 26.0903 10.6965 25.8685 9.98137C25.6466 9.26628 25.267 8.60521 24.7554 8.0429ZM2.1741 16.6669V11.4585C2.1741 10.6297 2.51769 9.83487 3.12927 9.24882C3.74086 8.66276 4.57034 8.33352 5.43525 8.33352H7.60935V19.7919H5.43525C4.57034 19.7919 3.74086 19.4626 3.12927 18.8766C2.51769 18.2905 2.1741 17.4957 2.1741 16.6669ZM23.8836 11.895L23.1161 17.1033C23.0039 17.8471 22.6169 18.5275 22.0254 19.0209C21.4339 19.5143 20.6772 19.7879 19.893 19.7919H9.78346V8.05644C9.8859 7.97092 9.97071 7.86774 10.0335 7.75227L12.413 3.13248C12.5023 2.97824 12.6284 2.84649 12.7811 2.74807C12.9338 2.64964 13.1088 2.58734 13.2915 2.56629C13.4742 2.54524 13.6595 2.56605 13.8322 2.62699C14.0049 2.68793 14.1601 2.78728 14.2849 2.91686C14.3917 3.03586 14.4698 3.17599 14.5136 3.32724C14.5574 3.47849 14.5658 3.63713 14.5382 3.79186L13.9643 7.12519C13.9391 7.27413 13.9479 7.42653 13.9903 7.57186C14.0326 7.71719 14.1073 7.85197 14.2094 7.96689C14.3114 8.0818 14.4383 8.1741 14.5812 8.23741C14.7241 8.30071 14.8797 8.33351 15.0372 8.33352H20.654C21.1207 8.33346 21.5821 8.42943 22.0069 8.61493C22.4316 8.80043 22.8098 9.07114 23.116 9.40877C23.4222 9.7464 23.6492 10.1431 23.7816 10.572C23.914 11.0009 23.9488 11.4521 23.8836 11.895Z" />
6
+ </svg>
7
+ )
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+
3
+ export const User = (props) => (
4
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
5
+ <path d="M7.5,13A4.5,4.5,0,1,1,12,8.5,4.505,4.505,0,0,1,7.5,13Zm0-7A2.5,2.5,0,1,0,10,8.5,2.5,2.5,0,0,0,7.5,6ZM15,23v-.5a7.5,7.5,0,0,0-15,0V23a1,1,0,0,0,2,0v-.5a5.5,5.5,0,0,1,11,0V23a1,1,0,0,0,2,0Zm9-5a7,7,0,0,0-11.667-5.217,1,1,0,1,0,1.334,1.49A5,5,0,0,1,22,18a1,1,0,0,0,2,0ZM17.5,9A4.5,4.5,0,1,1,22,4.5,4.505,4.505,0,0,1,17.5,9Zm0-7A2.5,2.5,0,1,0,20,4.5,2.5,2.5,0,0,0,17.5,2Z"/>
6
+ </svg>
7
+ )
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+
3
+ export const Versus = (props) => (
4
+ <svg viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" {...props}>
5
+ <path
6
+ d="M14.8686 11L11.8386 18H10.2386L7.21859 11H8.96859L11.0986 16L13.2586 11H14.8686ZM17.753 18.12C17.1997 18.12 16.663 18.0467 16.143 17.9C15.6297 17.7467 15.2164 17.55 14.903 17.31L15.453 16.09C15.753 16.31 16.1097 16.4867 16.523 16.62C16.9364 16.7533 17.3497 16.82 17.763 16.82C18.223 16.82 18.563 16.7533 18.783 16.62C19.003 16.48 19.113 16.2967 19.113 16.07C19.113 15.9033 19.0464 15.7667 18.913 15.66C18.7864 15.5467 18.6197 15.4567 18.413 15.39C18.213 15.3233 17.9397 15.25 17.593 15.17C17.0597 15.0433 16.623 14.9167 16.283 14.79C15.943 14.6633 15.6497 14.46 15.403 14.18C15.163 13.9 15.043 13.5267 15.043 13.06C15.043 12.6533 15.153 12.2867 15.373 11.96C15.593 11.6267 15.923 11.3633 16.363 11.17C16.8097 10.9767 17.353 10.88 17.993 10.88C18.4397 10.88 18.8764 10.9333 19.303 11.04C19.7297 11.1467 20.103 11.3 20.423 11.5L19.923 12.73C19.2764 12.3633 18.6297 12.18 17.983 12.18C17.5297 12.18 17.193 12.2533 16.973 12.4C16.7597 12.5467 16.653 12.74 16.653 12.98C16.653 13.22 16.7764 13.4 17.023 13.52C17.2764 13.6333 17.6597 13.7467 18.173 13.86C18.7064 13.9867 19.143 14.1133 19.483 14.24C19.823 14.3667 20.113 14.5667 20.353 14.84C20.5997 15.1133 20.723 15.4833 20.723 15.95C20.723 16.35 20.6097 16.7167 20.383 17.05C20.163 17.3767 19.8297 17.6367 19.383 17.83C18.9364 18.0233 18.393 18.12 17.753 18.12Z"
7
+ fill="#FFF"
8
+ />
9
+ </svg>
10
+
11
+ )
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+
3
+ export const Votebox = (props) => (
4
+ <svg viewBox="0 0 50 50" fill="black" xmlns="http://www.w3.org/2000/svg" {...props}>
5
+ <g clipPath="url(#clip0_2638_39785)">
6
+ <path fillRule="evenodd" clipRule="evenodd" d="M4.6875 3.125H45.3125C46.1754 3.125 46.875 3.82456 46.875 4.6875V45.3125C46.875 46.1754 46.1754 46.875 45.3125 46.875H4.6875C3.82456 46.875 3.125 46.1754 3.125 45.3125V4.6875C3.125 3.82456 3.82456 3.125 4.6875 3.125ZM0 4.6875C0 2.09867 2.09867 0 4.6875 0H45.3125C47.9013 0 50 2.09867 50 4.6875V45.3125C50 47.9013 47.9013 50 45.3125 50H4.6875C2.09867 50 0 47.9013 0 45.3125V4.6875ZM36.65 15.5426C37.1798 14.8614 37.0571 13.8798 36.3759 13.35C35.6948 12.8202 34.7131 12.9429 34.1833 13.6241L20.8559 30.7593L15.8333 24.0625C15.3156 23.3721 14.3362 23.2322 13.6458 23.75C12.9555 24.2678 12.8156 25.2471 13.3333 25.9375L20.8108 35.9074L36.65 15.5426Z"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_2638_39785">
10
+ <rect width="50" height="50" fill="white"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
14
+ );
@@ -0,0 +1,51 @@
1
+ export { Alarm } from "./Alarm"
2
+ export { Announcement } from "./Announcement"
3
+ export { Arrow } from "./Arrow"
4
+ export { Blockquote } from "./Blockquote"
5
+ export { Bold } from "./Bold"
6
+ export { Camera } from "./Camera"
7
+ export { Chat } from "./Chat"
8
+ export { Checkbox } from "./Checkbox"
9
+ export { Check } from "./Check"
10
+ export { Clap } from "./Clap"
11
+ export { Clock } from "./Clock"
12
+ export { Close } from "./Close"
13
+ export { Code } from "./Code"
14
+ export { Community } from "./Community"
15
+ export { Crown } from "./Crown"
16
+ export { Downvote } from "./Downvote"
17
+ export { Ellipsis } from "./Ellipsis"
18
+ export { ExpertBadge } from "./ExpertBadge"
19
+ export { Facebook } from "./Facebook"
20
+ export { Home } from "./Home"
21
+ export { Italic } from "./Italic"
22
+ export { LightArrow } from "./LightArrow"
23
+ export { Link } from "./Link"
24
+ export { Login } from "./Login"
25
+ export { Logora } from "./Logora"
26
+ export { Mail } from "./Mail"
27
+ export { MobileClose } from "./MobileClose"
28
+ export { MobileMenu } from "./MobileMenu"
29
+ export { Next } from "./Next"
30
+ export { OpenBlank } from "./OpenBlank"
31
+ export { OrderedList } from "./OrderedList"
32
+ export { Point } from "./Point"
33
+ export { Question } from "./Question"
34
+ export { Refresh } from "./Refresh"
35
+ export { Reply } from "./Reply"
36
+ export { Search } from "./Search"
37
+ export { Send } from "./Send"
38
+ export { Share } from "./Share"
39
+ export { SmallArrow } from "./SmallArrow"
40
+ export { Source } from "./Source"
41
+ export { Suggestion } from './Suggestion';
42
+ export { Twitter } from "./Twitter"
43
+ export { Underline } from "./Underline"
44
+ export { Upvote } from "./Upvote";
45
+ export { User } from "./User"
46
+ export { Votebox } from './Votebox';
47
+ export { Versus } from'./Versus';
48
+ export { CheckCircle } from './CheckCircle';
49
+ export { MinusCircle} from './MinusCircle';
50
+ export { Flag } from './Flag';
51
+ export { PauseCircle} from './PauseCircle'
@@ -0,0 +1,28 @@
1
+ ---
2
+ description: A box information component.
3
+ ---
4
+
5
+ import { InformationBox } from './InformationBox';
6
+ import { IntlProvider } from 'react-intl';
7
+
8
+ A box that renders a piece of information with title, description, icon and link redirection.
9
+
10
+ It should be wrapped around [react-intl](https://formatjs.io/docs/getting-started/installation/)'s IntlProvider.
11
+
12
+ ### Component usage
13
+ ```js
14
+ import InformationBox from '@logora/debate.box.information_box';
15
+ ```
16
+ ```js
17
+ <IntlProvider locale="en">
18
+ <InformationBox
19
+ icon={YourIcon}
20
+ title={"Your title"}
21
+ points={100}
22
+ description={"Your description"}
23
+ textLink={"Your text link"}
24
+ link={"Router link"}
25
+ isActive={false}
26
+ />
27
+ </IntlProvider>
28
+ ```
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import styles from './InformationBox.module.scss';
3
+ import { Icon } from '@logora/debate/icons/icon';
4
+ import { Link } from '@logora/debate/action/link';
5
+ import { useIntl, FormattedMessage } from "react-intl";
6
+ import PropTypes from "prop-types";
7
+
8
+ export const InformationBox = ({ icon, title, points, description, textLink, link, isActive = false}) => {
9
+ const intl = useIntl();
10
+
11
+ return (
12
+ <div className={styles.container}>
13
+ <div className={styles.title}>
14
+ { icon && <div className={styles.icon} data-testid="icon">{icon}</div> }
15
+ <span>{ title }</span>
16
+ </div>
17
+ <div className={styles.point}>
18
+ <span className={styles.pointNumber}>
19
+ <FormattedMessage id="information.information_box.eloquence_point" values={{ count: points }} defaultMessage={"From {count} eloquence points"}/>
20
+ </span>
21
+ </div>
22
+ <div className={styles.text}>
23
+ <span>{ description }</span>
24
+ </div>
25
+ {isActive ?
26
+ <div className={styles.link}>
27
+ <Link to={link}>
28
+ <span>{ textLink }</span>
29
+ <Icon name="lightArrow" width={10} height={10} />
30
+ </Link>
31
+ </div>
32
+ :
33
+ <span className={styles.moduleNotActive}>{intl.formatMessage({ id: "information.information_box.module_not_active", defaultMessage: "Module not available on this debate space" })}</span>
34
+ }
35
+ </div>
36
+ )
37
+ };
38
+
39
+ InformationBox.propTypes = {
40
+ /** Icon to display */
41
+ icon: PropTypes.any,
42
+ /** Box title */
43
+ title: PropTypes.string,
44
+ /** Points reward */
45
+ points: PropTypes.number,
46
+ /** Box description */
47
+ description: PropTypes.string,
48
+ /** Link's text */
49
+ textLink: PropTypes.string,
50
+ /** Router link */
51
+ link: PropTypes.string,
52
+ /** If true, enable link and redirectio */
53
+ isActive: PropTypes.bool,
54
+ };
@@ -0,0 +1,92 @@
1
+ @use 'styles/theme' as theme;
2
+ @use 'styles/spacing' as spacing;
3
+
4
+ .container {
5
+ display: flex !important;
6
+ flex-direction: column !important;
7
+ @include spacing.p(3, xs);
8
+ height: 100%;
9
+ row-gap: spacing.$box-spacing;
10
+ border-radius: theme.$box-border-radius;
11
+ box-shadow: theme.$box-shadow;
12
+ border: theme.$box-border;
13
+ }
14
+
15
+ .icon {
16
+ position: relative;
17
+ width: 30px;
18
+ height: 30px;
19
+ min-width: 30px;
20
+ max-height: 30px;
21
+ border-radius: 50%;
22
+ background-color: theme.$call-primary;
23
+ @include spacing.mr(2, xs);
24
+ svg {
25
+ position: absolute;
26
+ transform: translate(-50%, -50%);
27
+ top: 50%;
28
+ left: 50%;
29
+ fill: theme.$text-light;
30
+ }
31
+ }
32
+
33
+ .title {
34
+ display: flex !important;
35
+ align-items: center !important;
36
+ font-size: theme.$font-size-large;
37
+ font-weight: theme.$font-weight-bold;
38
+ color: theme.$text-primary;
39
+ }
40
+
41
+ .point {
42
+ font-weight: theme.$font-weight-bold;
43
+ svg {
44
+ display: inline-block;
45
+ vertical-align: middle;
46
+ @include spacing.mr(1, xs);
47
+ }
48
+ .pointNumber {
49
+ @include spacing.mx(1, xs);
50
+ }
51
+ }
52
+
53
+ .text {
54
+ height: 100%;
55
+ color: theme.$text-primary;
56
+ }
57
+
58
+ .textSpacing {
59
+ @include spacing.mr(1, xs);
60
+ }
61
+
62
+ .link {
63
+ display: flex !important;
64
+ align-items: center !important;
65
+ @include spacing.px(3, xs);
66
+ @include spacing.py(2, xs);
67
+ width: fit-content;
68
+ border: 1px solid;
69
+ border-color: theme.$text-primary;
70
+ border-radius: theme.$box-border-radius;
71
+ cursor: pointer;
72
+ svg {
73
+ display: inline-block;
74
+ vertical-align: middle;
75
+ @include spacing.ml(2, xs);
76
+ transform: rotate(-90deg);
77
+ fill: theme.$text-primary;
78
+ }
79
+ a {
80
+ color: theme.$text-primary !important;
81
+ text-decoration: none;
82
+ }
83
+ &:hover {
84
+ opacity: 0.9;
85
+ }
86
+ }
87
+
88
+ .moduleNotActive {
89
+ font-size: theme.$font-size-extra-small;
90
+ color: theme.$text-secondary;
91
+ font-style: italic;
92
+ }
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { InformationBox } from './InformationBox';
3
+ import { IntlProvider } from 'react-intl';
4
+ import { MemoryRouter } from "react-router-dom";
5
+ import { Suggestion } from '@logora/debate/icons/regular_icons';
6
+ import { IconProvider } from '@logora/debate/icons/icon_provider';
7
+ import * as regularIcons from '@logora/debate/icons/regular_icons';
8
+
9
+ export default {
10
+ title: 'Information/Information Box',
11
+ component: InformationBox,
12
+ args: {
13
+ title: 'Suggestion',
14
+ points: 100,
15
+ description: 'Propose debate questions and support user suggestions that you find relevant.',
16
+ textLink: 'View suggestions',
17
+ link: 'https://example.fr/test/',
18
+ isActive: true,
19
+ withIcon: true
20
+ },
21
+ argTypes: {
22
+ title: { control: 'text' },
23
+ points: { control: 'number' },
24
+ description: { control: 'text' },
25
+ textLink: { control: 'text' },
26
+ link: { control: 'text' },
27
+ isActive: { control: 'boolean' },
28
+ withIcon: { control: 'boolean' }
29
+ },
30
+ render: ({ withIcon, ...args }) => (
31
+ <MemoryRouter>
32
+ <IntlProvider locale="en">
33
+ <IconProvider library={regularIcons}>
34
+ <InformationBox
35
+ {...args}
36
+ icon={withIcon ? <Suggestion /> : null}
37
+ />
38
+ </IconProvider>
39
+ </IntlProvider>
40
+ </MemoryRouter>
41
+ )
42
+ };
43
+
44
+ export const DefaultInformationBox = {};
45
+
46
+ export const DefaultInformationBoxWithDisabledModule = {
47
+ args: {
48
+ isActive: false
49
+ }
50
+ };
@@ -0,0 +1,94 @@
1
+ import React from 'react';
2
+ import { MemoryRouter } from "react-router-dom";
3
+ import { IntlProvider } from 'react-intl';
4
+ import { render, screen } from '@testing-library/react';
5
+ import { InformationBox } from './InformationBox';
6
+ import { Suggestion } from '@logora/debate/icons/regular_icons';
7
+ import { IconProvider } from '@logora/debate/icons/icon_provider';
8
+ import * as regularIcons from '@logora/debate/icons/regular_icons';
9
+
10
+ it('should render with icon, title and description', () => {
11
+ const container = render(
12
+ <MemoryRouter>
13
+ <IntlProvider locale="en">
14
+ <IconProvider library={regularIcons}>
15
+ <InformationBox
16
+ icon={<Suggestion />}
17
+ title={"Title"}
18
+ points={100}
19
+ description={"Description"}
20
+ textLink={"View suggestions"}
21
+ link={"https://example.fr/test/"}
22
+ isActive={true}
23
+ />
24
+ </IconProvider>
25
+ </IntlProvider>
26
+ </MemoryRouter>
27
+ );
28
+ expect(container.queryByTestId('icon')).toBeTruthy();
29
+ expect(screen.getByText("Title")).toBeTruthy();
30
+ expect(screen.getByText("Description")).toBeTruthy();
31
+ });
32
+
33
+ it('should render with link', () => {
34
+ const container = render(
35
+ <MemoryRouter>
36
+ <IntlProvider locale="en">
37
+ <IconProvider library={regularIcons}>
38
+ <InformationBox
39
+ icon={<Suggestion />}
40
+ title={"Title"}
41
+ points={100}
42
+ description={"Description"}
43
+ textLink={"View suggestions"}
44
+ link={"/link"}
45
+ isActive={true}
46
+ />
47
+ </IconProvider>
48
+ </IntlProvider>
49
+ </MemoryRouter>
50
+ );
51
+ const link = screen.queryAllByRole("link");
52
+ expect(link).toHaveLength(1);
53
+ expect(link[0]).toHaveAttribute('href', '/link');
54
+ });
55
+
56
+ it('should render with disabled module text', () => {
57
+ const container = render(
58
+ <MemoryRouter>
59
+ <IntlProvider locale="en">
60
+ <IconProvider library={regularIcons}>
61
+ <InformationBox
62
+ icon={<Suggestion />}
63
+ title={"Title"}
64
+ points={100}
65
+ description={"Description"}
66
+ textLink={"View suggestions"}
67
+ link={"https://example.fr/test/"}
68
+ />
69
+ </IconProvider>
70
+ </IntlProvider>
71
+ </MemoryRouter>
72
+ );
73
+ expect(screen.getByText("Module not available on this debate space")).toBeTruthy();
74
+ });
75
+
76
+ it('should render with points number', () => {
77
+ const container = render(
78
+ <MemoryRouter>
79
+ <IntlProvider locale="en">
80
+ <IconProvider library={regularIcons}>
81
+ <InformationBox
82
+ icon={<Suggestion />}
83
+ title={"Title"}
84
+ points={100}
85
+ description={"Description"}
86
+ textLink={"View suggestions"}
87
+ link={"https://example.fr/test/"}
88
+ />
89
+ </IconProvider>
90
+ </IntlProvider>
91
+ </MemoryRouter>
92
+ );
93
+ expect(screen.getByText("From 100 eloquence points")).toBeTruthy();
94
+ });
@@ -0,0 +1 @@
1
+ export { InformationBox as default } from './InformationBox';
@@ -0,0 +1,29 @@
1
+ ---
2
+ description: An input to submit an argument.
3
+ labels: ['argument', 'input']
4
+ ---
5
+
6
+ An input to write and submit an argument.
7
+
8
+ It should be inside [IconProvider](https://bit.cloud/logora/debate/icons/icon_provider).
9
+
10
+ ### Component usage
11
+
12
+ ```js
13
+ import ArgumentInput from '@logora/debate.input.argument_input';
14
+ ```
15
+
16
+ ```js
17
+ <ArgumentInput
18
+ placeholder="Search"
19
+ onSubmit={() => {}}
20
+ groupId={23}
21
+ groupName={"My name"}
22
+ positions={[{id: 2, name: "Yes"}, {id: 3, name: "No"}]}
23
+ disabledPositions={[]}
24
+ listId={"argumentList"}
25
+ positionId={2}
26
+ hideSourceAction={false}
27
+ avatarSize={48}
28
+ />
29
+ ```