@pareto-engineering/design-system 1.0.2 → 2.0.0-alpha.4

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 (846) hide show
  1. package/.eslintrc.js +41 -0
  2. package/.githooks/pre-commit +5 -0
  3. package/.github/workflows/push-main-branches.yaml +89 -0
  4. package/.github/workflows/push-pr.yaml +83 -0
  5. package/.github/workflows.old/push-production.yaml +34 -0
  6. package/.github/workflows.old/push-staging.yaml +34 -0
  7. package/.github/workflows.old/test-publish.no +63 -0
  8. package/.github/workflows.old/test-publish.yaml +68 -0
  9. package/.storybook/main.js +51 -2
  10. package/.storybook/preview-head.html +5 -0
  11. package/.storybook/preview.js +8 -1
  12. package/babel.config.js +29 -26
  13. package/build-storybook.log +2978 -0
  14. package/config/CSSStub.js +1 -0
  15. package/config/global-setup.js +3 -0
  16. package/config/test-setup.js +4 -0
  17. package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +121 -0
  18. package/dist/cjs/a/AnimatedCounter/index.js +15 -0
  19. package/dist/cjs/a/AnimatedCounter/styles.scss +16 -0
  20. package/dist/cjs/a/ContentCard/ContentCard.js +79 -0
  21. package/dist/cjs/a/ContentCard/common/Section/Section.js +80 -0
  22. package/dist/cjs/a/ContentCard/common/Section/index.js +15 -0
  23. package/dist/cjs/a/ContentCard/common/index.js +13 -0
  24. package/dist/cjs/a/ContentCard/index.js +15 -0
  25. package/dist/cjs/a/ContentCard/styles.scss +78 -0
  26. package/dist/cjs/a/Conversation/Context.js +16 -0
  27. package/dist/cjs/a/Conversation/Conversation.js +100 -0
  28. package/dist/cjs/a/Conversation/common/Message/Message.js +90 -0
  29. package/dist/cjs/a/Conversation/common/Message/index.js +15 -0
  30. package/dist/cjs/a/Conversation/common/index.js +13 -0
  31. package/dist/cjs/a/Conversation/index.js +31 -0
  32. package/dist/cjs/a/Conversation/styles.scss +54 -0
  33. package/dist/cjs/a/Conversation/useConversation.js +16 -0
  34. package/dist/cjs/a/CustomerLogos/CustomerLogos.js +86 -0
  35. package/dist/cjs/a/CustomerLogos/index.js +15 -0
  36. package/dist/cjs/a/CustomerLogos/styles.scss +41 -0
  37. package/dist/cjs/a/CustomerStat/CustomerStat.js +87 -0
  38. package/dist/cjs/a/CustomerStat/index.js +15 -0
  39. package/dist/cjs/a/CustomerStat/styles.scss +16 -0
  40. package/dist/cjs/a/DashboardNavbar/DashboardNavbar.js +70 -0
  41. package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +66 -0
  42. package/dist/cjs/a/DashboardNavbar/common/NavItem/index.js +15 -0
  43. package/dist/cjs/a/DashboardNavbar/common/NavItem/styles.scss +9 -0
  44. package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +66 -0
  45. package/dist/cjs/a/DashboardNavbar/common/NavProfile/index.js +15 -0
  46. package/dist/cjs/a/DashboardNavbar/common/NavProfile/styles.scss +9 -0
  47. package/dist/cjs/a/DashboardNavbar/common/index.js +21 -0
  48. package/dist/cjs/a/DashboardNavbar/index.js +15 -0
  49. package/dist/cjs/a/DashboardNavbar/styles.scss +14 -0
  50. package/dist/cjs/a/DotInfo/DotInfo.js +106 -0
  51. package/dist/cjs/a/DotInfo/index.js +15 -0
  52. package/dist/cjs/a/DotInfo/styles.scss +20 -0
  53. package/dist/cjs/a/FeaturedOn/FeaturedOn.js +88 -0
  54. package/dist/cjs/a/FeaturedOn/index.js +15 -0
  55. package/dist/cjs/a/FeaturedOn/styles.scss +41 -0
  56. package/dist/cjs/a/Figure/Figure.js +84 -0
  57. package/dist/cjs/a/Figure/index.js +15 -0
  58. package/dist/cjs/a/Figure/styles.scss +19 -0
  59. package/dist/cjs/a/GradientBackground/GradientBackground.js +140 -0
  60. package/dist/cjs/a/GradientBackground/index.js +15 -0
  61. package/dist/cjs/a/GradientBackground/styles.scss +191 -0
  62. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +107 -0
  63. package/dist/cjs/a/HamburgerButton/index.js +15 -0
  64. package/dist/cjs/a/HamburgerButton/styles.scss +41 -0
  65. package/dist/cjs/a/IconList/IconList.js +102 -0
  66. package/dist/cjs/a/IconList/common/Item/Item.js +98 -0
  67. package/dist/cjs/a/IconList/common/Item/index.js +15 -0
  68. package/dist/cjs/a/IconList/common/index.js +13 -0
  69. package/dist/cjs/a/IconList/index.js +15 -0
  70. package/dist/cjs/a/IconList/styles.scss +37 -0
  71. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +121 -0
  72. package/dist/cjs/a/LoadingCircle/index.js +15 -0
  73. package/dist/cjs/a/LoadingCircle/styles.scss +49 -0
  74. package/dist/cjs/a/People/People.js +95 -0
  75. package/dist/cjs/a/People/common/Person/Person.js +96 -0
  76. package/dist/cjs/a/People/common/Person/index.js +15 -0
  77. package/dist/cjs/a/People/common/index.js +13 -0
  78. package/dist/cjs/a/People/index.js +15 -0
  79. package/dist/cjs/a/People/styles.scss +52 -0
  80. package/dist/cjs/a/ProgressBar/ProgressBar.js +99 -0
  81. package/dist/cjs/a/ProgressBar/index.js +15 -0
  82. package/dist/cjs/a/ProgressBar/styles.scss +37 -0
  83. package/dist/cjs/a/Quote/Quote.js +96 -0
  84. package/dist/cjs/a/Quote/index.js +15 -0
  85. package/dist/cjs/a/Quote/styles.scss +53 -0
  86. package/dist/cjs/a/SVG/SVG.js +165 -0
  87. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +88 -0
  88. package/dist/cjs/a/SVG/common/UseSVG/index.js +15 -0
  89. package/dist/cjs/a/SVG/common/index.js +13 -0
  90. package/dist/cjs/a/SVG/index.js +15 -0
  91. package/dist/cjs/a/SVG/styles.scss +57 -0
  92. package/dist/cjs/a/Shapes/Shapes.js +141 -0
  93. package/dist/cjs/a/Shapes/index.js +15 -0
  94. package/dist/cjs/a/Shapes/styles.scss +199 -0
  95. package/dist/cjs/a/SiteContext/Context.js +16 -0
  96. package/dist/cjs/a/SiteContext/ContextProvider.js +95 -0
  97. package/dist/cjs/a/SiteContext/index.js +39 -0
  98. package/dist/cjs/a/SiteContext/useSite.js +16 -0
  99. package/dist/cjs/a/SiteContext/useTheme.js +45 -0
  100. package/dist/cjs/a/Spinner/Spinner.js +73 -0
  101. package/dist/cjs/a/Spinner/index.js +15 -0
  102. package/dist/cjs/a/Spinner/styles.scss +23 -0
  103. package/dist/cjs/a/TeamInfo/TeamInfo.js +102 -0
  104. package/dist/cjs/a/TeamInfo/index.js +15 -0
  105. package/dist/cjs/a/TeamInfo/styles.scss +58 -0
  106. package/dist/cjs/a/Timestamp/Timestamp.js +139 -0
  107. package/dist/cjs/a/Timestamp/index.js +15 -0
  108. package/dist/cjs/a/Timestamp/styles.scss +7 -0
  109. package/dist/cjs/a/index.js +183 -0
  110. package/dist/cjs/b/Button/Button.js +116 -0
  111. package/dist/cjs/{Button → b/Button}/index.js +3 -3
  112. package/dist/cjs/b/Button/styles.scss +96 -0
  113. package/dist/cjs/b/Card/Card.js +67 -0
  114. package/dist/cjs/b/Card/common/Group/Group.js +71 -0
  115. package/dist/cjs/b/Card/common/Group/index.js +15 -0
  116. package/dist/cjs/b/Card/common/Group/styles.scss +61 -0
  117. package/dist/cjs/b/Card/common/index.js +13 -0
  118. package/dist/cjs/b/Card/index.js +15 -0
  119. package/dist/cjs/b/Card/styles.scss +12 -0
  120. package/dist/cjs/b/Logo/Logo.js +139 -0
  121. package/dist/cjs/b/Logo/index.js +15 -0
  122. package/dist/cjs/b/Logo/styles.scss +147 -0
  123. package/dist/cjs/b/Metrics/Metrics.js +89 -0
  124. package/dist/cjs/b/Metrics/index.js +15 -0
  125. package/dist/cjs/b/Metrics/styles.scss +91 -0
  126. package/dist/cjs/b/Page/Context.js +16 -0
  127. package/dist/cjs/b/Page/Page.js +122 -0
  128. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +196 -0
  129. package/dist/cjs/b/Page/common/PageHelmet/index.js +15 -0
  130. package/dist/cjs/b/Page/common/Section/Section.js +78 -0
  131. package/dist/cjs/b/Page/common/Section/index.js +15 -0
  132. package/dist/cjs/b/Page/common/index.js +21 -0
  133. package/dist/cjs/b/Page/index.js +31 -0
  134. package/dist/cjs/b/Page/styles.scss +10 -0
  135. package/dist/cjs/b/Page/usePage.js +16 -0
  136. package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +119 -0
  137. package/dist/cjs/b/QuestionDropdown/index.js +15 -0
  138. package/dist/cjs/b/QuestionDropdown/styles.scss +95 -0
  139. package/dist/cjs/b/Segment/Segment.js +79 -0
  140. package/dist/cjs/b/Segment/index.js +15 -0
  141. package/dist/cjs/b/Segment/styles.scss +26 -0
  142. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +140 -0
  143. package/dist/cjs/b/SocialMediaButton/index.js +15 -0
  144. package/dist/cjs/b/SocialMediaButton/styles.scss +49 -0
  145. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +101 -0
  146. package/dist/cjs/b/ThemeSelector/index.js +15 -0
  147. package/dist/cjs/b/ThemeSelector/styles.scss +14 -0
  148. package/dist/cjs/b/Title/Title.js +138 -0
  149. package/dist/cjs/b/Title/index.js +15 -0
  150. package/dist/cjs/b/Title/styles.scss +16 -0
  151. package/dist/cjs/b/index.js +85 -0
  152. package/dist/cjs/c/AcceptCookies/AcceptCookies.js +134 -0
  153. package/dist/cjs/c/AcceptCookies/index.js +15 -0
  154. package/dist/cjs/c/AcceptCookies/styles.scss +49 -0
  155. package/dist/cjs/c/BlogCategoryButton/BlogCategoryButton.js +95 -0
  156. package/dist/cjs/c/BlogCategoryButton/index.js +15 -0
  157. package/dist/cjs/c/BlogContext/BlogContextProvider.js +63 -0
  158. package/dist/cjs/c/BlogContext/Context.js +16 -0
  159. package/dist/cjs/c/BlogContext/ContextProvider.js +63 -0
  160. package/dist/cjs/c/BlogContext/index.js +31 -0
  161. package/dist/cjs/c/BlogContext/useBlog.js +16 -0
  162. package/dist/cjs/c/BlogPost/BlogPost.js +147 -0
  163. package/dist/cjs/c/BlogPost/index.js +15 -0
  164. package/dist/cjs/c/BlogPost/styles.scss +33 -0
  165. package/dist/cjs/c/BlogPostsList/BlogPostsList.js +73 -0
  166. package/dist/cjs/c/BlogPostsList/common/Card/Card.js +170 -0
  167. package/dist/cjs/c/BlogPostsList/common/Card/index.js +15 -0
  168. package/dist/cjs/c/BlogPostsList/common/index.js +13 -0
  169. package/dist/cjs/c/BlogPostsList/index.js +15 -0
  170. package/dist/cjs/c/BlogPostsList/styles.scss +72 -0
  171. package/dist/cjs/c/ContentSlides/ContentSlides.js +200 -0
  172. package/dist/cjs/c/ContentSlides/Context.js +16 -0
  173. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +135 -0
  174. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +15 -0
  175. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +145 -0
  176. package/dist/cjs/c/ContentSlides/common/Navigator/index.js +15 -0
  177. package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +106 -0
  178. package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +15 -0
  179. package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +84 -0
  180. package/dist/cjs/c/ContentSlides/common/Slide/index.js +15 -0
  181. package/dist/cjs/c/ContentSlides/common/index.js +37 -0
  182. package/dist/cjs/c/ContentSlides/index.js +31 -0
  183. package/dist/cjs/c/ContentSlides/styles.scss +308 -0
  184. package/dist/cjs/c/ContentSlides/useContentSlides.js +16 -0
  185. package/dist/cjs/c/Hero/Hero.js +88 -0
  186. package/dist/cjs/c/Hero/index.js +15 -0
  187. package/dist/cjs/c/Hero/styles.scss +41 -0
  188. package/dist/cjs/c/Shortener/Shortener.js +114 -0
  189. package/dist/cjs/c/Shortener/index.js +15 -0
  190. package/dist/cjs/c/Shortener/styles.scss +7 -0
  191. package/dist/cjs/c/SiteFooter/SiteFooter.js +73 -0
  192. package/dist/cjs/c/SiteFooter/common/Section/Section.js +95 -0
  193. package/dist/cjs/c/SiteFooter/common/Section/index.js +15 -0
  194. package/dist/cjs/c/SiteFooter/common/index.js +13 -0
  195. package/dist/cjs/c/SiteFooter/index.js +15 -0
  196. package/dist/cjs/c/SiteFooter/styles.scss +34 -0
  197. package/dist/cjs/c/SiteHeaderCTA/SiteHeaderCTA.js +108 -0
  198. package/dist/cjs/c/SiteHeaderCTA/index.js +15 -0
  199. package/dist/cjs/c/SiteHeaderCTA/styles.scss +44 -0
  200. package/dist/cjs/c/SiteMission/SiteMission.js +113 -0
  201. package/dist/cjs/c/SiteMission/index.js +15 -0
  202. package/dist/cjs/c/SiteMission/styles.scss +30 -0
  203. package/dist/cjs/c/SiteNavigation/SiteNavigation.js +130 -0
  204. package/dist/cjs/c/SiteNavigation/index.js +15 -0
  205. package/dist/cjs/c/SiteNavigation/styles.scss +118 -0
  206. package/dist/cjs/c/SiteOnboardingStep/SiteOnboardingStep.js +98 -0
  207. package/dist/cjs/c/SiteOnboardingStep/index.js +15 -0
  208. package/dist/cjs/c/SiteOnboardingStep/styles.scss +51 -0
  209. package/dist/cjs/c/SitePricing/SitePricing.js +108 -0
  210. package/dist/cjs/c/SitePricing/index.js +15 -0
  211. package/dist/cjs/c/SitePricing/styles.scss +73 -0
  212. package/dist/cjs/c/SiteServices/SiteServices.js +211 -0
  213. package/dist/cjs/c/SiteServices/index.js +15 -0
  214. package/dist/cjs/c/SiteServices/styles.scss +138 -0
  215. package/dist/cjs/c/TeamGallery/TeamGallery.js +80 -0
  216. package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +84 -0
  217. package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +15 -0
  218. package/dist/cjs/c/TeamGallery/common/index.js +13 -0
  219. package/dist/cjs/c/TeamGallery/index.js +15 -0
  220. package/dist/cjs/c/TeamGallery/styles.scss +100 -0
  221. package/dist/cjs/c/Testimonials/Testimonials.js +119 -0
  222. package/dist/cjs/c/Testimonials/index.js +15 -0
  223. package/dist/cjs/c/Testimonials/styles.scss +112 -0
  224. package/dist/cjs/c/index.js +35 -0
  225. package/dist/cjs/d/index.js +1 -0
  226. package/dist/cjs/experimental/GradientBackground/GradientBackground.js +98 -0
  227. package/dist/cjs/experimental/GradientBackground/index.js +15 -0
  228. package/dist/cjs/experimental/GradientBackground/styles.scss +64 -0
  229. package/dist/cjs/experimental/index.js +13 -0
  230. package/dist/cjs/f/FormInput/FormInput.js +110 -0
  231. package/dist/cjs/f/FormInput/index.js +15 -0
  232. package/dist/cjs/f/common/Debugger/Debugger.js +81 -0
  233. package/dist/cjs/f/common/Debugger/index.js +15 -0
  234. package/dist/cjs/f/common/Debugger/styles.scss +12 -0
  235. package/dist/cjs/f/common/Description/Description.js +84 -0
  236. package/dist/cjs/f/common/Description/index.js +15 -0
  237. package/dist/cjs/f/common/Description/styles.scss +10 -0
  238. package/dist/cjs/f/common/Label/Label.js +92 -0
  239. package/dist/cjs/f/common/Label/index.js +15 -0
  240. package/dist/cjs/f/common/Label/styles.scss +11 -0
  241. package/dist/cjs/f/common/index.js +29 -0
  242. package/dist/cjs/f/fields/CheckboxInput/CheckboxInput.js +105 -0
  243. package/dist/cjs/f/fields/CheckboxInput/index.js +15 -0
  244. package/dist/cjs/f/fields/CheckboxInput/styles.scss +28 -0
  245. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +159 -0
  246. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +122 -0
  247. package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +15 -0
  248. package/dist/cjs/f/fields/ChoicesInput/common/index.js +13 -0
  249. package/dist/cjs/f/fields/ChoicesInput/index.js +15 -0
  250. package/dist/cjs/f/fields/ChoicesInput/styles.scss +52 -0
  251. package/dist/cjs/f/fields/RadioInput/RadioInput.js +110 -0
  252. package/dist/cjs/f/fields/RadioInput/index.js +15 -0
  253. package/dist/cjs/f/fields/RadioInput/styles.scss +26 -0
  254. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +121 -0
  255. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +129 -0
  256. package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +15 -0
  257. package/dist/cjs/f/fields/RatingsInput/common/index.js +13 -0
  258. package/dist/cjs/f/fields/RatingsInput/index.js +15 -0
  259. package/dist/cjs/f/fields/RatingsInput/styles.scss +43 -0
  260. package/dist/cjs/f/fields/SelectInput/SelectInput.js +121 -0
  261. package/dist/cjs/f/fields/SelectInput/index.js +15 -0
  262. package/dist/cjs/f/fields/SelectInput/styles.scss +30 -0
  263. package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +129 -0
  264. package/dist/cjs/f/fields/TaskRecommendation/index.js +15 -0
  265. package/dist/cjs/f/fields/TaskRecommendation/styles.scss +37 -0
  266. package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +131 -0
  267. package/dist/cjs/f/fields/TaskRecommendationInput/index.js +15 -0
  268. package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +41 -0
  269. package/dist/cjs/f/fields/TextArea/TextArea.js +141 -0
  270. package/dist/cjs/f/fields/TextArea/index.js +15 -0
  271. package/dist/cjs/f/fields/TextArea/styles.scss +19 -0
  272. package/dist/cjs/f/fields/TextInput/TextInput.js +131 -0
  273. package/dist/cjs/f/fields/TextInput/index.js +15 -0
  274. package/dist/cjs/f/fields/TextInput/styles.scss +26 -0
  275. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +151 -0
  276. package/dist/cjs/f/fields/TextareaInput/index.js +15 -0
  277. package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -0
  278. package/dist/cjs/f/fields/index.js +69 -0
  279. package/dist/cjs/f/index.js +44 -0
  280. package/dist/cjs/form-reset.scss +86 -0
  281. package/dist/cjs/form.scss +34 -0
  282. package/dist/cjs/index.js +69 -4
  283. package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +78 -0
  284. package/dist/cjs/r/SwitchRouteMap/index.js +15 -0
  285. package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +90 -0
  286. package/dist/cjs/r/common/PrivateRoute/index.js +15 -0
  287. package/dist/cjs/r/common/index.js +13 -0
  288. package/dist/cjs/r/index.js +30 -0
  289. package/dist/es/a/AnimatedCounter/AnimatedCounter.js +100 -0
  290. package/dist/es/a/AnimatedCounter/index.js +2 -0
  291. package/dist/es/a/AnimatedCounter/styles.scss +16 -0
  292. package/dist/es/a/ContentCard/ContentCard.js +63 -0
  293. package/dist/es/a/ContentCard/common/Section/Section.js +60 -0
  294. package/dist/es/a/ContentCard/common/Section/index.js +2 -0
  295. package/dist/es/a/ContentCard/common/index.js +1 -0
  296. package/dist/es/a/ContentCard/index.js +2 -0
  297. package/dist/es/a/ContentCard/styles.scss +78 -0
  298. package/dist/es/a/Conversation/Context.js +2 -0
  299. package/dist/es/a/Conversation/Conversation.js +83 -0
  300. package/dist/es/a/Conversation/common/Message/Message.js +71 -0
  301. package/dist/es/a/Conversation/common/Message/index.js +2 -0
  302. package/dist/es/a/Conversation/common/index.js +1 -0
  303. package/dist/es/a/Conversation/index.js +4 -0
  304. package/dist/es/a/Conversation/styles.scss +54 -0
  305. package/dist/es/a/Conversation/useConversation.js +3 -0
  306. package/dist/es/a/CustomerLogos/CustomerLogos.js +70 -0
  307. package/dist/es/a/CustomerLogos/index.js +2 -0
  308. package/dist/es/a/CustomerLogos/styles.scss +41 -0
  309. package/dist/es/a/CustomerStat/CustomerStat.js +71 -0
  310. package/dist/es/a/CustomerStat/index.js +2 -0
  311. package/dist/es/a/CustomerStat/styles.scss +16 -0
  312. package/dist/es/a/DashboardNavbar/DashboardNavbar.js +53 -0
  313. package/dist/es/a/DashboardNavbar/common/NavItem/NavItem.js +48 -0
  314. package/dist/es/a/DashboardNavbar/common/NavItem/index.js +2 -0
  315. package/dist/es/a/DashboardNavbar/common/NavItem/styles.scss +9 -0
  316. package/dist/es/a/DashboardNavbar/common/NavProfile/NavProfile.js +48 -0
  317. package/dist/es/a/DashboardNavbar/common/NavProfile/index.js +2 -0
  318. package/dist/es/a/DashboardNavbar/common/NavProfile/styles.scss +9 -0
  319. package/dist/es/a/DashboardNavbar/common/index.js +2 -0
  320. package/dist/es/a/DashboardNavbar/index.js +2 -0
  321. package/dist/es/a/DashboardNavbar/styles.scss +14 -0
  322. package/dist/es/a/DotInfo/DotInfo.js +85 -0
  323. package/dist/es/a/DotInfo/index.js +2 -0
  324. package/dist/es/a/DotInfo/styles.scss +20 -0
  325. package/dist/es/a/FeaturedOn/FeaturedOn.js +72 -0
  326. package/dist/es/a/FeaturedOn/index.js +2 -0
  327. package/dist/es/a/FeaturedOn/styles.scss +41 -0
  328. package/dist/es/a/Figure/Figure.js +68 -0
  329. package/dist/es/a/Figure/index.js +2 -0
  330. package/dist/es/a/Figure/styles.scss +19 -0
  331. package/dist/es/a/GradientBackground/GradientBackground.js +118 -0
  332. package/dist/es/a/GradientBackground/index.js +2 -0
  333. package/dist/es/a/GradientBackground/styles.scss +191 -0
  334. package/dist/es/a/HamburgerButton/HamburgerButton.js +84 -0
  335. package/dist/es/a/HamburgerButton/index.js +2 -0
  336. package/dist/es/a/HamburgerButton/styles.scss +41 -0
  337. package/dist/es/a/IconList/IconList.js +72 -0
  338. package/dist/es/a/IconList/common/Item/Item.js +66 -0
  339. package/dist/es/a/IconList/common/Item/index.js +2 -0
  340. package/dist/es/a/IconList/common/index.js +1 -0
  341. package/dist/es/a/IconList/index.js +2 -0
  342. package/dist/es/a/IconList/styles.scss +37 -0
  343. package/dist/es/a/LoadingCircle/LoadingCircle.js +100 -0
  344. package/dist/es/a/LoadingCircle/index.js +2 -0
  345. package/dist/es/a/LoadingCircle/styles.scss +49 -0
  346. package/dist/es/a/People/People.js +73 -0
  347. package/dist/es/a/People/common/Person/Person.js +76 -0
  348. package/dist/es/a/People/common/Person/index.js +2 -0
  349. package/dist/es/a/People/common/index.js +1 -0
  350. package/dist/es/a/People/index.js +2 -0
  351. package/dist/es/a/People/styles.scss +52 -0
  352. package/dist/es/a/ProgressBar/ProgressBar.js +78 -0
  353. package/dist/es/a/ProgressBar/index.js +2 -0
  354. package/dist/es/a/ProgressBar/styles.scss +37 -0
  355. package/dist/es/a/Quote/Quote.js +80 -0
  356. package/dist/es/a/Quote/index.js +2 -0
  357. package/dist/es/a/Quote/styles.scss +53 -0
  358. package/dist/es/a/SVG/SVG.js +141 -0
  359. package/dist/es/a/SVG/common/UseSVG/UseSVG.js +65 -0
  360. package/dist/es/a/SVG/common/UseSVG/index.js +2 -0
  361. package/dist/es/a/SVG/common/index.js +1 -0
  362. package/dist/es/a/SVG/index.js +2 -0
  363. package/dist/es/a/SVG/styles.scss +57 -0
  364. package/dist/es/a/Shapes/Shapes.js +119 -0
  365. package/dist/es/a/Shapes/index.js +2 -0
  366. package/dist/es/a/Shapes/styles.scss +199 -0
  367. package/dist/es/a/SiteContext/Context.js +2 -0
  368. package/dist/es/a/SiteContext/ContextProvider.js +77 -0
  369. package/dist/es/a/SiteContext/index.js +5 -0
  370. package/dist/es/a/SiteContext/useSite.js +3 -0
  371. package/dist/es/a/SiteContext/useTheme.js +34 -0
  372. package/dist/es/a/Spinner/Spinner.js +57 -0
  373. package/dist/es/a/Spinner/index.js +2 -0
  374. package/dist/es/a/Spinner/styles.scss +23 -0
  375. package/dist/es/a/TeamInfo/TeamInfo.js +86 -0
  376. package/dist/es/a/TeamInfo/index.js +2 -0
  377. package/dist/es/a/TeamInfo/styles.scss +58 -0
  378. package/dist/es/a/Timestamp/Timestamp.js +122 -0
  379. package/dist/es/a/Timestamp/index.js +2 -0
  380. package/dist/es/a/Timestamp/styles.scss +7 -0
  381. package/dist/es/a/index.js +20 -0
  382. package/dist/es/b/Button/Button.js +93 -0
  383. package/dist/es/b/Button/index.js +2 -0
  384. package/dist/es/b/Button/styles.scss +96 -0
  385. package/dist/es/b/Card/Card.js +49 -0
  386. package/dist/es/b/Card/common/Group/Group.js +53 -0
  387. package/dist/es/b/Card/common/Group/index.js +2 -0
  388. package/dist/es/b/Card/common/Group/styles.scss +61 -0
  389. package/dist/es/b/Card/common/index.js +1 -0
  390. package/dist/es/b/Card/index.js +2 -0
  391. package/dist/es/b/Card/styles.scss +12 -0
  392. package/dist/es/b/Logo/Logo.js +122 -0
  393. package/dist/es/b/Logo/index.js +2 -0
  394. package/dist/es/b/Logo/styles.scss +147 -0
  395. package/dist/es/b/Metrics/Metrics.js +72 -0
  396. package/dist/es/b/Metrics/index.js +2 -0
  397. package/dist/es/b/Metrics/styles.scss +91 -0
  398. package/dist/es/b/Page/Context.js +2 -0
  399. package/dist/es/b/Page/Page.js +98 -0
  400. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +178 -0
  401. package/dist/es/b/Page/common/PageHelmet/index.js +2 -0
  402. package/dist/es/b/Page/common/Section/Section.js +53 -0
  403. package/dist/es/b/Page/common/Section/index.js +2 -0
  404. package/dist/es/b/Page/common/index.js +2 -0
  405. package/dist/es/b/Page/index.js +4 -0
  406. package/dist/es/b/Page/styles.scss +10 -0
  407. package/dist/es/b/Page/usePage.js +3 -0
  408. package/dist/es/b/QuestionDropdown/QuestionDropdown.js +104 -0
  409. package/dist/es/b/QuestionDropdown/index.js +2 -0
  410. package/dist/es/b/QuestionDropdown/styles.scss +95 -0
  411. package/dist/es/b/Segment/Segment.js +61 -0
  412. package/dist/es/b/Segment/index.js +2 -0
  413. package/dist/es/b/Segment/styles.scss +26 -0
  414. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +116 -0
  415. package/dist/es/b/SocialMediaButton/index.js +2 -0
  416. package/dist/es/b/SocialMediaButton/styles.scss +49 -0
  417. package/dist/es/b/ThemeSelector/ThemeSelector.js +84 -0
  418. package/dist/es/b/ThemeSelector/index.js +2 -0
  419. package/dist/es/b/ThemeSelector/styles.scss +14 -0
  420. package/dist/es/b/Title/Title.js +120 -0
  421. package/dist/es/b/Title/index.js +2 -0
  422. package/dist/es/b/Title/styles.scss +16 -0
  423. package/dist/es/b/index.js +10 -0
  424. package/dist/es/c/AcceptCookies/AcceptCookies.js +117 -0
  425. package/dist/es/c/AcceptCookies/index.js +2 -0
  426. package/dist/es/c/AcceptCookies/styles.scss +49 -0
  427. package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +68 -0
  428. package/dist/es/c/BlogCategoryButton/index.js +2 -0
  429. package/dist/es/c/BlogContext/BlogContextProvider.js +45 -0
  430. package/dist/es/c/BlogContext/Context.js +2 -0
  431. package/dist/es/c/BlogContext/ContextProvider.js +45 -0
  432. package/dist/es/c/BlogContext/index.js +4 -0
  433. package/dist/es/c/BlogContext/useBlog.js +3 -0
  434. package/dist/es/c/BlogPost/BlogPost.js +128 -0
  435. package/dist/es/c/BlogPost/index.js +2 -0
  436. package/dist/es/c/BlogPost/styles.scss +33 -0
  437. package/dist/es/c/BlogPostsList/BlogPostsList.js +56 -0
  438. package/dist/es/c/BlogPostsList/common/Card/Card.js +143 -0
  439. package/dist/es/c/BlogPostsList/common/Card/index.js +2 -0
  440. package/dist/es/c/BlogPostsList/common/index.js +1 -0
  441. package/dist/es/c/BlogPostsList/index.js +2 -0
  442. package/dist/es/c/BlogPostsList/styles.scss +72 -0
  443. package/dist/es/c/ContentSlides/ContentSlides.js +176 -0
  444. package/dist/es/c/ContentSlides/Context.js +2 -0
  445. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +114 -0
  446. package/dist/es/c/ContentSlides/common/HorizontalMenu/index.js +2 -0
  447. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +126 -0
  448. package/dist/es/c/ContentSlides/common/Navigator/index.js +2 -0
  449. package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +85 -0
  450. package/dist/es/c/ContentSlides/common/Sidebar/index.js +2 -0
  451. package/dist/es/c/ContentSlides/common/Slide/Slide.js +65 -0
  452. package/dist/es/c/ContentSlides/common/Slide/index.js +2 -0
  453. package/dist/es/c/ContentSlides/common/index.js +4 -0
  454. package/dist/es/c/ContentSlides/index.js +4 -0
  455. package/dist/es/c/ContentSlides/styles.scss +308 -0
  456. package/dist/es/c/ContentSlides/useContentSlides.js +3 -0
  457. package/dist/es/c/Hero/Hero.js +72 -0
  458. package/dist/es/c/Hero/index.js +2 -0
  459. package/dist/es/c/Hero/styles.scss +41 -0
  460. package/dist/es/c/Shortener/Shortener.js +98 -0
  461. package/dist/es/c/Shortener/index.js +2 -0
  462. package/dist/es/c/Shortener/styles.scss +7 -0
  463. package/dist/es/c/SiteFooter/SiteFooter.js +56 -0
  464. package/dist/es/c/SiteFooter/common/Section/Section.js +73 -0
  465. package/dist/es/c/SiteFooter/common/Section/index.js +2 -0
  466. package/dist/es/c/SiteFooter/common/index.js +1 -0
  467. package/dist/es/c/SiteFooter/index.js +2 -0
  468. package/dist/es/c/SiteFooter/styles.scss +34 -0
  469. package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +92 -0
  470. package/dist/es/c/SiteHeaderCTA/index.js +2 -0
  471. package/dist/es/c/SiteHeaderCTA/styles.scss +44 -0
  472. package/dist/es/c/SiteMission/SiteMission.js +96 -0
  473. package/dist/es/c/SiteMission/index.js +2 -0
  474. package/dist/es/c/SiteMission/styles.scss +30 -0
  475. package/dist/es/c/SiteNavigation/SiteNavigation.js +111 -0
  476. package/dist/es/c/SiteNavigation/index.js +2 -0
  477. package/dist/es/c/SiteNavigation/styles.scss +118 -0
  478. package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +81 -0
  479. package/dist/es/c/SiteOnboardingStep/index.js +2 -0
  480. package/dist/es/c/SiteOnboardingStep/styles.scss +51 -0
  481. package/dist/es/c/SitePricing/SitePricing.js +91 -0
  482. package/dist/es/c/SitePricing/index.js +2 -0
  483. package/dist/es/c/SitePricing/styles.scss +73 -0
  484. package/dist/es/c/SiteServices/SiteServices.js +195 -0
  485. package/dist/es/c/SiteServices/index.js +2 -0
  486. package/dist/es/c/SiteServices/styles.scss +138 -0
  487. package/dist/es/c/TeamGallery/TeamGallery.js +64 -0
  488. package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +64 -0
  489. package/dist/es/c/TeamGallery/common/PersonCard/index.js +2 -0
  490. package/dist/es/c/TeamGallery/common/index.js +1 -0
  491. package/dist/es/c/TeamGallery/index.js +2 -0
  492. package/dist/es/c/TeamGallery/styles.scss +100 -0
  493. package/dist/es/c/Testimonials/Testimonials.js +99 -0
  494. package/dist/es/c/Testimonials/index.js +2 -0
  495. package/dist/es/c/Testimonials/styles.scss +112 -0
  496. package/dist/es/c/index.js +3 -0
  497. package/dist/es/d/index.js +0 -0
  498. package/dist/es/experimental/GradientBackground/GradientBackground.js +76 -0
  499. package/dist/es/experimental/GradientBackground/index.js +2 -0
  500. package/dist/es/experimental/GradientBackground/styles.scss +64 -0
  501. package/dist/es/experimental/index.js +1 -0
  502. package/dist/es/f/FormInput/FormInput.js +85 -0
  503. package/dist/es/f/FormInput/index.js +2 -0
  504. package/dist/es/f/common/Debugger/Debugger.js +64 -0
  505. package/dist/es/f/common/Debugger/index.js +2 -0
  506. package/dist/es/f/common/Debugger/styles.scss +12 -0
  507. package/dist/es/f/common/Description/Description.js +68 -0
  508. package/dist/es/f/common/Description/index.js +2 -0
  509. package/dist/es/f/common/Description/styles.scss +10 -0
  510. package/dist/es/f/common/Label/Label.js +76 -0
  511. package/dist/es/f/common/Label/index.js +2 -0
  512. package/dist/es/f/common/Label/styles.scss +11 -0
  513. package/dist/es/f/common/index.js +3 -0
  514. package/dist/es/f/fields/CheckboxInput/CheckboxInput.js +85 -0
  515. package/dist/es/f/fields/CheckboxInput/index.js +2 -0
  516. package/dist/es/f/fields/CheckboxInput/styles.scss +28 -0
  517. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +135 -0
  518. package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +105 -0
  519. package/dist/es/f/fields/ChoicesInput/common/Choice/index.js +2 -0
  520. package/dist/es/f/fields/ChoicesInput/common/index.js +1 -0
  521. package/dist/es/f/fields/ChoicesInput/index.js +2 -0
  522. package/dist/es/f/fields/ChoicesInput/styles.scss +52 -0
  523. package/dist/es/f/fields/RadioInput/RadioInput.js +90 -0
  524. package/dist/es/f/fields/RadioInput/index.js +2 -0
  525. package/dist/es/f/fields/RadioInput/styles.scss +26 -0
  526. package/dist/es/f/fields/RatingsInput/RatingsInput.js +103 -0
  527. package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +111 -0
  528. package/dist/es/f/fields/RatingsInput/common/Rating/index.js +2 -0
  529. package/dist/es/f/fields/RatingsInput/common/index.js +1 -0
  530. package/dist/es/f/fields/RatingsInput/index.js +2 -0
  531. package/dist/es/f/fields/RatingsInput/styles.scss +43 -0
  532. package/dist/es/f/fields/SelectInput/SelectInput.js +101 -0
  533. package/dist/es/f/fields/SelectInput/index.js +2 -0
  534. package/dist/es/f/fields/SelectInput/styles.scss +30 -0
  535. package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +111 -0
  536. package/dist/es/f/fields/TaskRecommendation/index.js +2 -0
  537. package/dist/es/f/fields/TaskRecommendation/styles.scss +37 -0
  538. package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +111 -0
  539. package/dist/es/f/fields/TaskRecommendationInput/index.js +2 -0
  540. package/dist/es/f/fields/TaskRecommendationInput/styles.scss +41 -0
  541. package/dist/es/f/fields/TextArea/TextArea.js +124 -0
  542. package/dist/es/f/fields/TextArea/index.js +2 -0
  543. package/dist/es/f/fields/TextArea/styles.scss +19 -0
  544. package/dist/es/f/fields/TextInput/TextInput.js +111 -0
  545. package/dist/es/f/fields/TextInput/index.js +2 -0
  546. package/dist/es/f/fields/TextInput/styles.scss +26 -0
  547. package/dist/es/f/fields/TextareaInput/TextareaInput.js +132 -0
  548. package/dist/es/f/fields/TextareaInput/index.js +2 -0
  549. package/dist/es/f/fields/TextareaInput/styles.scss +19 -0
  550. package/dist/es/f/fields/index.js +8 -0
  551. package/dist/es/f/index.js +3 -0
  552. package/dist/es/form-reset.scss +86 -0
  553. package/dist/es/form.scss +34 -0
  554. package/dist/es/index.js +7 -1
  555. package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +49 -0
  556. package/dist/es/r/SwitchRouteMap/index.js +2 -0
  557. package/dist/es/r/common/PrivateRoute/PrivateRoute.js +67 -0
  558. package/dist/es/r/common/PrivateRoute/index.js +2 -0
  559. package/dist/es/r/common/index.js +1 -0
  560. package/dist/es/r/index.js +2 -0
  561. package/jest.config.js +24 -0
  562. package/package.json +83 -20
  563. package/postcss.config.js +13 -0
  564. package/scripts/postinstall.js +1 -0
  565. package/scripts/upgrade.sh +10 -0
  566. package/src/Storyshots.test.js +3 -0
  567. package/src/__snapshots__/Storyshots.test.js.snap +9655 -0
  568. package/src/assets/images/Ellipse1.png +0 -0
  569. package/src/assets/images/Ellipse2.png +0 -0
  570. package/src/assets/images/Fundraising.svg +40 -0
  571. package/src/assets/images/ParetoSupport.svg +190 -0
  572. package/src/assets/images/ParetoWorld.svg +207 -0
  573. package/src/assets/images/Vector.png +0 -0
  574. package/src/assets/images/email-attach.svg +1 -0
  575. package/src/assets/images/email-delete.svg +1 -0
  576. package/src/assets/images/onboarding/focus-on-strategic-work.webp +0 -0
  577. package/src/assets/images/onboarding/launch-project.webp +0 -0
  578. package/src/assets/images/onboarding/meet-pareto-partner.webp +0 -0
  579. package/src/assets/images/quality.png +0 -0
  580. package/src/assets/images/sprite.svg +253 -0
  581. package/src/local.scss +14 -0
  582. package/src/stories/StyleGuide/colors.stories.mdx +73 -0
  583. package/src/stories/StyleGuide/cssClasses.stories.mdx +16 -0
  584. package/src/stories/StyleGuide/helpers.js +48 -0
  585. package/src/stories/StyleGuide/icons.stories.mdx +29 -0
  586. package/src/stories/StyleGuide/typography.stories.mdx +56 -0
  587. package/src/stories/a/AnimatedCounter.stories.jsx +34 -0
  588. package/src/stories/a/ContentCard.stories.jsx +158 -0
  589. package/src/stories/a/Conversation.stories.jsx +46 -0
  590. package/src/stories/a/CustomerLogos.stories.jsx +35 -0
  591. package/src/stories/a/CustomerStat.stories.jsx +22 -0
  592. package/src/stories/a/DashboardNavbar.stories.jsx +57 -0
  593. package/src/stories/a/DotInfo.stories.jsx +32 -0
  594. package/src/stories/a/FeaturedOn.stories.jsx +33 -0
  595. package/src/stories/a/Figure.stories.jsx +26 -0
  596. package/src/stories/a/HamburgerButton.stories.jsx +27 -0
  597. package/src/stories/a/IconList.stories.jsx +51 -0
  598. package/src/stories/a/LoadingCircle.stories.jsx +28 -0
  599. package/src/stories/a/People.stories.jsx +72 -0
  600. package/src/stories/a/ProgressBar.stories.jsx +75 -0
  601. package/src/stories/a/Quote.stories.jsx +29 -0
  602. package/src/stories/a/SVG.stories.jsx +97 -0
  603. package/src/stories/a/SiteContext.stories.jsx +42 -0
  604. package/src/stories/a/Spinner.stories.jsx +25 -0
  605. package/src/stories/a/TeamInfo.stories.jsx +31 -0
  606. package/src/stories/a/Timestamp.stories.jsx +102 -0
  607. package/src/stories/b/Button.stories.jsx +84 -0
  608. package/src/stories/b/Card.stories.jsx +36 -0
  609. package/src/stories/b/Logo.stories.jsx +37 -0
  610. package/src/stories/b/Metrics.stories.jsx +62 -0
  611. package/src/stories/b/Page.stories.jsx +59 -0
  612. package/src/stories/b/QuestionDropdown.stories.jsx +62 -0
  613. package/src/stories/b/Segment.stories.jsx +34 -0
  614. package/src/stories/b/SocialMediaButton.stories.jsx +73 -0
  615. package/src/stories/b/ThemeSelector.stories.jsx +53 -0
  616. package/src/stories/b/Title.stories.jsx +49 -0
  617. package/src/stories/c/ContentSlides.stories.jsx +348 -0
  618. package/src/stories/c/Hero.stories.jsx +46 -0
  619. package/src/stories/c/Shortener.stories.jsx +28 -0
  620. package/src/stories/colors.js +76 -0
  621. package/src/stories/f/CheckboxInput.stories.jsx +37 -0
  622. package/src/stories/f/ChoicesInput.stories.jsx +168 -0
  623. package/src/stories/f/Description.stories.jsx +22 -0
  624. package/src/stories/f/FormInput.stories.jsx +187 -0
  625. package/src/stories/f/Label.stories.jsx +22 -0
  626. package/src/stories/f/RadioInput.stories.jsx +37 -0
  627. package/src/stories/f/RatingsInput.stories.jsx +56 -0
  628. package/src/stories/f/SelectInput.stories.jsx +81 -0
  629. package/src/stories/f/TaskRecommendationInput.stories.jsx +38 -0
  630. package/src/stories/f/TextInput.stories.jsx +79 -0
  631. package/src/stories/f/TextareaInput.stories.jsx +49 -0
  632. package/src/stories/r/PrivateRoute.stories.jsx +16 -0
  633. package/src/stories/r/SwitchRouteMap.stories.jsx +14 -0
  634. package/src/stories/utils/Router.jsx +20 -0
  635. package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +118 -0
  636. package/src/ui/a/AnimatedCounter/index.js +2 -0
  637. package/src/ui/a/AnimatedCounter/styles.scss +16 -0
  638. package/src/ui/a/ContentCard/ContentCard.jsx +84 -0
  639. package/src/ui/a/ContentCard/common/Section/Section.jsx +79 -0
  640. package/src/ui/a/ContentCard/common/Section/index.js +2 -0
  641. package/src/ui/a/ContentCard/common/index.js +1 -0
  642. package/src/ui/a/ContentCard/index.js +2 -0
  643. package/src/ui/a/ContentCard/styles.scss +78 -0
  644. package/src/ui/a/Conversation/Context.js +3 -0
  645. package/src/ui/a/Conversation/Conversation.jsx +107 -0
  646. package/src/ui/a/Conversation/common/Message/Message.jsx +90 -0
  647. package/src/ui/a/Conversation/common/Message/index.js +2 -0
  648. package/src/ui/a/Conversation/common/index.js +1 -0
  649. package/src/ui/a/Conversation/index.js +4 -0
  650. package/src/ui/a/Conversation/styles.scss +54 -0
  651. package/src/ui/a/Conversation/useConversation.js +4 -0
  652. package/src/ui/a/CustomerLogos/CustomerLogos.jsx +92 -0
  653. package/src/ui/a/CustomerLogos/index.js +2 -0
  654. package/src/ui/a/CustomerLogos/styles.scss +41 -0
  655. package/src/ui/a/CustomerStat/CustomerStat.jsx +88 -0
  656. package/src/ui/a/CustomerStat/index.js +2 -0
  657. package/src/ui/a/CustomerStat/styles.scss +16 -0
  658. package/src/ui/a/DashboardNavbar/DashboardNavbar.jsx +74 -0
  659. package/src/ui/a/DashboardNavbar/common/NavItem/NavItem.jsx +64 -0
  660. package/src/ui/a/DashboardNavbar/common/NavItem/index.js +2 -0
  661. package/src/ui/a/DashboardNavbar/common/NavItem/styles.scss +9 -0
  662. package/src/ui/a/DashboardNavbar/common/NavProfile/NavProfile.jsx +64 -0
  663. package/src/ui/a/DashboardNavbar/common/NavProfile/index.js +2 -0
  664. package/src/ui/a/DashboardNavbar/common/NavProfile/styles.scss +9 -0
  665. package/src/ui/a/DashboardNavbar/common/index.js +2 -0
  666. package/src/ui/a/DashboardNavbar/index.js +2 -0
  667. package/src/ui/a/DashboardNavbar/styles.scss +14 -0
  668. package/src/ui/a/DotInfo/DotInfo.jsx +107 -0
  669. package/src/ui/a/DotInfo/index.js +2 -0
  670. package/src/ui/a/DotInfo/styles.scss +20 -0
  671. package/src/ui/a/FeaturedOn/FeaturedOn.jsx +95 -0
  672. package/src/ui/a/FeaturedOn/index.js +2 -0
  673. package/src/ui/a/FeaturedOn/styles.scss +41 -0
  674. package/src/ui/a/Figure/Figure.jsx +88 -0
  675. package/src/ui/a/Figure/index.js +2 -0
  676. package/src/ui/a/Figure/styles.scss +19 -0
  677. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +103 -0
  678. package/src/ui/a/HamburgerButton/index.js +2 -0
  679. package/src/ui/a/HamburgerButton/styles.scss +41 -0
  680. package/src/ui/a/IconList/IconList.jsx +95 -0
  681. package/src/ui/a/IconList/common/Item/Item.jsx +81 -0
  682. package/src/ui/a/IconList/common/Item/index.js +2 -0
  683. package/src/ui/a/IconList/common/index.js +1 -0
  684. package/src/ui/a/IconList/index.js +2 -0
  685. package/src/ui/a/IconList/styles.scss +37 -0
  686. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +124 -0
  687. package/src/ui/a/LoadingCircle/index.js +2 -0
  688. package/src/ui/a/LoadingCircle/styles.scss +49 -0
  689. package/src/ui/a/People/People.jsx +98 -0
  690. package/src/ui/a/People/common/Person/Person.jsx +87 -0
  691. package/src/ui/a/People/common/Person/index.js +2 -0
  692. package/src/ui/a/People/common/index.js +1 -0
  693. package/src/ui/a/People/index.js +2 -0
  694. package/src/ui/a/People/styles.scss +52 -0
  695. package/src/ui/a/ProgressBar/ProgressBar.jsx +99 -0
  696. package/src/ui/a/ProgressBar/index.js +2 -0
  697. package/src/ui/a/ProgressBar/styles.scss +37 -0
  698. package/src/ui/a/Quote/Quote.jsx +96 -0
  699. package/src/ui/a/Quote/index.js +2 -0
  700. package/src/ui/a/Quote/styles.scss +53 -0
  701. package/src/ui/a/SVG/SVG.jsx +185 -0
  702. package/src/ui/a/SVG/common/UseSVG/UseSVG.jsx +74 -0
  703. package/src/ui/a/SVG/common/UseSVG/index.js +2 -0
  704. package/src/ui/a/SVG/common/index.js +1 -0
  705. package/src/ui/a/SVG/index.js +2 -0
  706. package/src/ui/a/SVG/styles.scss +57 -0
  707. package/src/ui/a/SiteContext/Context.js +3 -0
  708. package/src/ui/a/SiteContext/ContextProvider.jsx +89 -0
  709. package/src/ui/a/SiteContext/index.js +5 -0
  710. package/src/ui/a/SiteContext/useSite.js +4 -0
  711. package/src/ui/a/SiteContext/useTheme.js +47 -0
  712. package/src/ui/a/Spinner/Spinner.jsx +75 -0
  713. package/src/ui/a/Spinner/index.js +2 -0
  714. package/src/ui/a/Spinner/styles.scss +23 -0
  715. package/src/ui/a/TeamInfo/TeamInfo.jsx +99 -0
  716. package/src/ui/a/TeamInfo/index.js +2 -0
  717. package/src/ui/a/TeamInfo/styles.scss +58 -0
  718. package/src/ui/a/Timestamp/Timestamp.jsx +168 -0
  719. package/src/ui/a/Timestamp/index.js +2 -0
  720. package/src/ui/a/Timestamp/styles.scss +7 -0
  721. package/src/ui/a/index.js +25 -0
  722. package/src/ui/b/Button/Button.jsx +112 -0
  723. package/src/ui/b/Button/index.js +2 -0
  724. package/src/ui/b/Button/styles.scss +96 -0
  725. package/src/ui/b/Card/Card.jsx +63 -0
  726. package/src/ui/b/Card/common/Group/Group.jsx +70 -0
  727. package/src/ui/b/Card/common/Group/index.js +2 -0
  728. package/src/ui/b/Card/common/Group/styles.scss +61 -0
  729. package/src/ui/b/Card/common/index.js +1 -0
  730. package/src/ui/b/Card/index.js +2 -0
  731. package/src/ui/b/Card/styles.scss +12 -0
  732. package/src/ui/b/Logo/Logo.jsx +152 -0
  733. package/src/ui/b/Logo/index.js +2 -0
  734. package/src/ui/b/Logo/styles.scss +147 -0
  735. package/src/ui/b/Metrics/Metrics.jsx +93 -0
  736. package/src/ui/b/Metrics/index.js +2 -0
  737. package/src/ui/b/Metrics/styles.scss +91 -0
  738. package/src/ui/b/Page/Context.js +3 -0
  739. package/src/ui/b/Page/Page.jsx +122 -0
  740. package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +272 -0
  741. package/src/ui/b/Page/common/PageHelmet/index.js +2 -0
  742. package/src/ui/b/Page/common/Section/Section.jsx +69 -0
  743. package/src/ui/b/Page/common/Section/index.js +2 -0
  744. package/src/ui/b/Page/common/index.js +2 -0
  745. package/src/ui/b/Page/index.js +4 -0
  746. package/src/ui/b/Page/styles.scss +10 -0
  747. package/src/ui/b/Page/usePage.js +4 -0
  748. package/src/ui/b/QuestionDropdown/QuestionDropdown.jsx +112 -0
  749. package/src/ui/b/QuestionDropdown/index.js +2 -0
  750. package/src/ui/b/QuestionDropdown/styles.scss +95 -0
  751. package/src/ui/b/Segment/Segment.jsx +78 -0
  752. package/src/ui/b/Segment/index.js +2 -0
  753. package/src/ui/b/Segment/styles.scss +26 -0
  754. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +137 -0
  755. package/src/ui/b/SocialMediaButton/index.js +2 -0
  756. package/src/ui/b/SocialMediaButton/styles.scss +49 -0
  757. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +107 -0
  758. package/src/ui/b/ThemeSelector/index.js +2 -0
  759. package/src/ui/b/ThemeSelector/styles.scss +14 -0
  760. package/src/ui/b/Title/Title.jsx +152 -0
  761. package/src/ui/b/Title/index.js +2 -0
  762. package/src/ui/b/Title/styles.scss +16 -0
  763. package/src/ui/b/index.js +10 -0
  764. package/src/ui/c/ContentSlides/ContentSlides.jsx +216 -0
  765. package/src/ui/c/ContentSlides/Context.js +3 -0
  766. package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +138 -0
  767. package/src/ui/c/ContentSlides/common/HorizontalMenu/index.js +2 -0
  768. package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +149 -0
  769. package/src/ui/c/ContentSlides/common/Navigator/index.js +2 -0
  770. package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +135 -0
  771. package/src/ui/c/ContentSlides/common/Sidebar/index.js +2 -0
  772. package/src/ui/c/ContentSlides/common/Slide/Slide.jsx +87 -0
  773. package/src/ui/c/ContentSlides/common/Slide/index.js +2 -0
  774. package/src/ui/c/ContentSlides/common/index.js +4 -0
  775. package/src/ui/c/ContentSlides/index.js +4 -0
  776. package/src/ui/c/ContentSlides/styles.scss +308 -0
  777. package/src/ui/c/ContentSlides/useContentSlides.js +4 -0
  778. package/src/ui/c/Hero/Hero.jsx +96 -0
  779. package/src/ui/c/Hero/index.js +2 -0
  780. package/src/ui/c/Hero/styles.scss +41 -0
  781. package/src/ui/c/Shortener/Shortener.jsx +142 -0
  782. package/src/ui/c/Shortener/index.js +2 -0
  783. package/src/ui/c/Shortener/styles.scss +7 -0
  784. package/src/ui/c/index.js +3 -0
  785. package/src/ui/d/index.js +0 -0
  786. package/src/ui/f/FormInput/FormInput.jsx +122 -0
  787. package/src/ui/f/FormInput/index.js +2 -0
  788. package/src/ui/f/common/Debugger/Debugger.jsx +85 -0
  789. package/src/ui/f/common/Debugger/index.js +2 -0
  790. package/src/ui/f/common/Debugger/styles.scss +12 -0
  791. package/src/ui/f/common/Description/Description.jsx +88 -0
  792. package/src/ui/f/common/Description/index.js +2 -0
  793. package/src/ui/f/common/Description/styles.scss +10 -0
  794. package/src/ui/f/common/Label/Label.jsx +96 -0
  795. package/src/ui/f/common/Label/index.js +2 -0
  796. package/src/ui/f/common/Label/styles.scss +11 -0
  797. package/src/ui/f/common/index.js +3 -0
  798. package/src/ui/f/fields/CheckboxInput/CheckboxInput.jsx +107 -0
  799. package/src/ui/f/fields/CheckboxInput/index.js +2 -0
  800. package/src/ui/f/fields/CheckboxInput/styles.scss +28 -0
  801. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +155 -0
  802. package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +110 -0
  803. package/src/ui/f/fields/ChoicesInput/common/Choice/index.js +2 -0
  804. package/src/ui/f/fields/ChoicesInput/common/index.js +1 -0
  805. package/src/ui/f/fields/ChoicesInput/index.js +2 -0
  806. package/src/ui/f/fields/ChoicesInput/styles.scss +52 -0
  807. package/src/ui/f/fields/RadioInput/RadioInput.jsx +112 -0
  808. package/src/ui/f/fields/RadioInput/index.js +2 -0
  809. package/src/ui/f/fields/RadioInput/styles.scss +26 -0
  810. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +119 -0
  811. package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +136 -0
  812. package/src/ui/f/fields/RatingsInput/common/Rating/index.js +2 -0
  813. package/src/ui/f/fields/RatingsInput/common/index.js +1 -0
  814. package/src/ui/f/fields/RatingsInput/index.js +2 -0
  815. package/src/ui/f/fields/RatingsInput/styles.scss +43 -0
  816. package/src/ui/f/fields/SelectInput/SelectInput.jsx +114 -0
  817. package/src/ui/f/fields/SelectInput/index.js +2 -0
  818. package/src/ui/f/fields/SelectInput/styles.scss +30 -0
  819. package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +130 -0
  820. package/src/ui/f/fields/TaskRecommendationInput/index.js +2 -0
  821. package/src/ui/f/fields/TaskRecommendationInput/styles.scss +41 -0
  822. package/src/ui/f/fields/TextInput/TextInput.jsx +146 -0
  823. package/src/ui/f/fields/TextInput/index.js +2 -0
  824. package/src/ui/f/fields/TextInput/styles.scss +26 -0
  825. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +159 -0
  826. package/src/ui/f/fields/TextareaInput/index.js +2 -0
  827. package/src/ui/f/fields/TextareaInput/styles.scss +19 -0
  828. package/src/ui/f/fields/index.js +8 -0
  829. package/src/ui/f/index.js +3 -0
  830. package/src/ui/form-reset.scss +86 -0
  831. package/src/ui/form.scss +34 -0
  832. package/src/ui/index.js +6 -1
  833. package/src/ui/r/SwitchRouteMap/SwitchRouteMap.jsx +64 -0
  834. package/src/ui/r/SwitchRouteMap/index.js +2 -0
  835. package/src/ui/r/common/PrivateRoute/PrivateRoute.jsx +73 -0
  836. package/src/ui/r/common/PrivateRoute/index.js +2 -0
  837. package/src/ui/r/common/index.js +1 -0
  838. package/src/ui/r/index.js +2 -0
  839. package/stylelint.config.js +45 -0
  840. package/dist/cjs/Button/Button.js +0 -75
  841. package/dist/es/Button/Button.js +0 -63
  842. package/dist/es/Button/index.js +0 -1
  843. package/src/stories/Button.stories.js +0 -36
  844. package/src/ui/Button/Button.js +0 -52
  845. package/src/ui/Button/button.css +0 -30
  846. package/src/ui/Button/index.js +0 -1
@@ -0,0 +1,86 @@
1
+ form {
2
+ border: 0;
3
+ font-family: inherit;
4
+ font-size: 100%;
5
+ font-style: inherit;
6
+ font-weight: inherit;
7
+ margin: 0;
8
+ outline: 0;
9
+ padding: 0;
10
+ vertical-align: baseline;
11
+ }
12
+
13
+ /**
14
+ 1. Change the font styles in all browsers.
15
+ 2. Remove the margin in Firefox and Safari.
16
+ */
17
+ input,
18
+ button,
19
+ textarea,
20
+ label,
21
+ select {
22
+ background-color: inherit;
23
+ border: 0;
24
+ display: inline-block;
25
+ font: inherit;
26
+ font-size: 100%;
27
+ margin: 0;
28
+ outline: none;
29
+ }
30
+
31
+ /**
32
+ * Show the overflow in IE.
33
+ * 1. Show the overflow in Edge.
34
+ */
35
+
36
+ button,
37
+ input { /* 1 */
38
+ overflow: visible;
39
+ }
40
+
41
+
42
+ /**
43
+ Remove the inheritance of text transform in Edge and Firefox.
44
+ */
45
+
46
+ button,
47
+ select {
48
+ text-transform: none;
49
+ }
50
+
51
+ /**
52
+ Correct the inability to style clickable types in iOS and Safari.
53
+ */
54
+
55
+ button,
56
+ [type="button"],
57
+ [type="reset"],
58
+ [type="submit"] {
59
+ appearance: button;
60
+ }
61
+
62
+
63
+ /**
64
+ * Remove the inner border and padding in Firefox.
65
+ */
66
+
67
+ button::-moz-focus-inner,
68
+ [type="button"]::-moz-focus-inner,
69
+ [type="reset"]::-moz-focus-inner,
70
+ [type="submit"]::-moz-focus-inner {
71
+ border-style: none;
72
+ padding: 0;
73
+ }
74
+
75
+ /**
76
+ * Remove the default vertical scrollbar in IE 10+.
77
+ */
78
+
79
+ textarea {
80
+ overflow: auto;
81
+ }
82
+
83
+ /* Remove outline on focus */
84
+ :focus {
85
+ outline: 0;
86
+ }
@@ -0,0 +1,34 @@
1
+ @use "form-reset.scss";
2
+
3
+ $form-input-border-bottom: 1px solid var(--dark-background1);
4
+ $form-input-on-focus-border-bottom: 1px solid var(--light-main1);
5
+ $form-input-on-error-border-bottom: 1px solid var(--error);
6
+ $label-input-heigth-width: 100%;
7
+
8
+ :root {
9
+ --form-input-border-bottom: #{$form-input-border-bottom};
10
+ --form-input-on-focus-border-bottom: #{$form-input-on-focus-border-bottom};
11
+ --form-input-on-error-border-bottom: #{$form-input-on-error-border-bottom};
12
+ }
13
+
14
+ @mixin radio-checkbox-input-selected {
15
+ border: var(--form-input-on-focus-border-bottom);
16
+ position: relative;
17
+ }
18
+
19
+
20
+ @mixin radio-checkbox-input-not-selected {
21
+ border: var(--form-input-border-bottom);
22
+ position: relative;
23
+ }
24
+
25
+
26
+ @mixin radio-checkbox-input {
27
+ appearance: none;
28
+ cursor: pointer;
29
+ height: $label-input-heigth-width;
30
+ left: 0;
31
+ position: absolute;
32
+ top: 0;
33
+ width: $label-input-heigth-width;
34
+ }
package/dist/cjs/index.js CHANGED
@@ -4,15 +4,80 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var _Button = require("./Button");
7
+ var _r = require("./r");
8
8
 
9
- Object.keys(_Button).forEach(function (key) {
9
+ Object.keys(_r).forEach(function (key) {
10
10
  if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _Button[key]) return;
11
+ if (key in exports && exports[key] === _r[key]) return;
12
12
  Object.defineProperty(exports, key, {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _Button[key];
15
+ return _r[key];
16
+ }
17
+ });
18
+ });
19
+
20
+ var _a = require("./a");
21
+
22
+ Object.keys(_a).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _a[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function get() {
28
+ return _a[key];
29
+ }
30
+ });
31
+ });
32
+
33
+ var _b = require("./b");
34
+
35
+ Object.keys(_b).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _b[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function get() {
41
+ return _b[key];
42
+ }
43
+ });
44
+ });
45
+
46
+ var _c = require("./c");
47
+
48
+ Object.keys(_c).forEach(function (key) {
49
+ if (key === "default" || key === "__esModule") return;
50
+ if (key in exports && exports[key] === _c[key]) return;
51
+ Object.defineProperty(exports, key, {
52
+ enumerable: true,
53
+ get: function get() {
54
+ return _c[key];
55
+ }
56
+ });
57
+ });
58
+
59
+ var _d = require("./d");
60
+
61
+ Object.keys(_d).forEach(function (key) {
62
+ if (key === "default" || key === "__esModule") return;
63
+ if (key in exports && exports[key] === _d[key]) return;
64
+ Object.defineProperty(exports, key, {
65
+ enumerable: true,
66
+ get: function get() {
67
+ return _d[key];
68
+ }
69
+ });
70
+ });
71
+
72
+ var _f = require("./f");
73
+
74
+ Object.keys(_f).forEach(function (key) {
75
+ if (key === "default" || key === "__esModule") return;
76
+ if (key in exports && exports[key] === _f[key]) return;
77
+ Object.defineProperty(exports, key, {
78
+ enumerable: true,
79
+ get: function get() {
80
+ return _f[key];
16
81
  }
17
82
  });
18
83
  });
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var React = _interopRequireWildcard(require("react"));
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _reactRouterDom = require("react-router-dom");
13
+
14
+ var _common = require("../common");
15
+
16
+ var _excluded = ["isPrivate"];
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
+
26
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
27
+
28
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
+
30
+ /* eslint-disable react/no-children-prop */
31
+
32
+ /**
33
+ * **Dependencies : `react-router-dom.Router`,**
34
+ * **`SessionContextProvider` in case you're using PrivateRoutes. **
35
+ * `SwitchRouteMap` generates a routing `Switch` from an array of route Props
36
+ */
37
+ var SwitchRouteMap = _ref => {
38
+ var {
39
+ routes,
40
+ NotFound
41
+ } = _ref;
42
+ return /*#__PURE__*/React.createElement(_reactRouterDom.Switch, {
43
+ children: [...routes.map(_ref2 => {
44
+ var {
45
+ isPrivate
46
+ } = _ref2,
47
+ routeProps = _objectWithoutProperties(_ref2, _excluded);
48
+
49
+ return isPrivate ? /*#__PURE__*/React.createElement(_common.PrivateRoute, _extends({
50
+ key: routeProps.path
51
+ }, routeProps)) : /*#__PURE__*/React.createElement(_reactRouterDom.Route, _extends({
52
+ key: routeProps.path
53
+ }, routeProps));
54
+ }), ...(NotFound ? [/*#__PURE__*/React.createElement(_reactRouterDom.Route, {
55
+ component: NotFound
56
+ })] : [])]
57
+ });
58
+ };
59
+
60
+ SwitchRouteMap.propTypes = {
61
+ /**
62
+ * The routes to render
63
+ */
64
+ routes: _propTypes.default.arrayOf(_propTypes.default.shape({
65
+ path: _propTypes.default.string.isRequired // title:PropTypes.string.isRequired,
66
+ // state:PropTypes.string.isRequired,
67
+
68
+ })).isRequired,
69
+
70
+ /**
71
+ * A component to display in case no route was found.
72
+ * In case you're doing SSR, you might want to use
73
+ * a component that returns a 404 code.
74
+ */
75
+ NotFound: _propTypes.default.node
76
+ };
77
+ var _default = SwitchRouteMap;
78
+ exports.default = _default;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "SwitchRouteMap", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _SwitchRouteMap.default;
10
+ }
11
+ });
12
+
13
+ var _SwitchRouteMap = _interopRequireDefault(require("./SwitchRouteMap"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var React = _interopRequireWildcard(require("react"));
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _reactRouterDom = require("react-router-dom");
13
+
14
+ var _excluded = ["component", "render", "test"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
22
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
+
24
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
+
26
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
27
+
28
+ // import { SessionContext } from '..'
29
+ var SessionContext = /*#__PURE__*/React.createContext({}); // Package-level Imports
30
+ // import styleNames from 'style_names.scss'
31
+ // Component-level imports
32
+
33
+ /**
34
+ * **Dependencies : `SessionContext.loginPath` **
35
+ * `PrivateRoute` subclasses `react-router-dom` `Route`.
36
+ * `PrivateRoute` checks whether a user matches a specified test before allowing him to the resource
37
+ * In case the user is not allowed, he is redirected to `SessionContext.loginPath`.
38
+ * Please remember this is a front-end test, and is not equivalent to back-end permission checks.
39
+ * This component is meant to be used alongside back-end checks.
40
+ */
41
+
42
+ var PrivateRoute = _ref => {
43
+ var {
44
+ component: Component,
45
+ render: _render,
46
+ test
47
+ } = _ref,
48
+ rest = _objectWithoutProperties(_ref, _excluded);
49
+
50
+ var {
51
+ currentUserData: currentUser,
52
+ loginPath
53
+ } = (0, React.useContext)(SessionContext);
54
+ var location = (0, _reactRouterDom.useLocation)(); // console.log(me)
55
+
56
+ var isUserAllowed = currentUser && test(currentUser);
57
+ return /*#__PURE__*/React.createElement(_reactRouterDom.Route, _extends({}, rest, {
58
+ render: props => isUserAllowed ? (_render === null || _render === void 0 ? void 0 : _render(props)) || /*#__PURE__*/React.createElement(Component, props) : /*#__PURE__*/React.createElement(_reactRouterDom.Redirect, {
59
+ to: {
60
+ pathname: loginPath,
61
+ state: {
62
+ from: location
63
+ } // TODO to implement
64
+
65
+ }
66
+ })
67
+ }));
68
+ };
69
+
70
+ PrivateRoute.propTypes = {
71
+ /**
72
+ * A function that takes the user and returns a boolean.
73
+ */
74
+ test: _propTypes.default.func,
75
+
76
+ /**
77
+ * Provide a custom rendering function in the "Render Props" pattern
78
+ */
79
+ render: _propTypes.default.func,
80
+
81
+ /**
82
+ * Which javascript component to render
83
+ */
84
+ component: _propTypes.default.node
85
+ };
86
+ PrivateRoute.defaultProps = {
87
+ test: user => user.id
88
+ };
89
+ var _default = PrivateRoute;
90
+ exports.default = _default;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "PrivateRoute", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _PrivateRoute.default;
10
+ }
11
+ });
12
+
13
+ var _PrivateRoute = _interopRequireDefault(require("./PrivateRoute"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "PrivateRoute", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _PrivateRoute.PrivateRoute;
10
+ }
11
+ });
12
+
13
+ var _PrivateRoute = require("./PrivateRoute");
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ SwitchRouteMap: true
8
+ };
9
+ Object.defineProperty(exports, "SwitchRouteMap", {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _SwitchRouteMap.SwitchRouteMap;
13
+ }
14
+ });
15
+
16
+ var _common = require("./common");
17
+
18
+ Object.keys(_common).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
21
+ if (key in exports && exports[key] === _common[key]) return;
22
+ Object.defineProperty(exports, key, {
23
+ enumerable: true,
24
+ get: function get() {
25
+ return _common[key];
26
+ }
27
+ });
28
+ });
29
+
30
+ var _SwitchRouteMap = require("./SwitchRouteMap");
@@ -0,0 +1,100 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react';
3
+ import { useLayoutEffect, useCallback } from 'react';
4
+ import CountUp from 'react-countup';
5
+ import VisibilitySensor from 'react-visibility-sensor';
6
+ import PropTypes from 'prop-types';
7
+ import styleNames from '@pareto-engineering/bem'; // Local Definitions
8
+
9
+ const baseClassName = styleNames.base;
10
+ const componentClassName = 'animated-counter';
11
+ /**
12
+ * This is the component description
13
+ */
14
+
15
+ const AnimatedCounter = ({
16
+ id,
17
+ className: userClassName,
18
+ style,
19
+ color,
20
+ number,
21
+ before,
22
+ after,
23
+ delay // ...otherProps
24
+
25
+ }) => {
26
+ useLayoutEffect(() => {
27
+ import("./styles.scss");
28
+ }, []);
29
+ const countDecimals = useCallback(value => {
30
+ if (value % 1 !== 0) return value.toString().split('.')[1].length;
31
+ return 0;
32
+ }, []);
33
+ return /*#__PURE__*/React.createElement("div", {
34
+ id: id,
35
+ className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
36
+ style: style // {...otherProps}
37
+
38
+ }, /*#__PURE__*/React.createElement("div", {
39
+ className: "count s3"
40
+ }, before && /*#__PURE__*/React.createElement("span", null, before), /*#__PURE__*/React.createElement(CountUp, {
41
+ end: number,
42
+ delay: delay,
43
+ decimals: countDecimals(number),
44
+ redraw: true
45
+ }, ({
46
+ countUpRef,
47
+ start
48
+ }) => /*#__PURE__*/React.createElement(VisibilitySensor, {
49
+ onChange: start,
50
+ delayedCall: true
51
+ }, /*#__PURE__*/React.createElement("span", {
52
+ ref: countUpRef
53
+ }))), after && /*#__PURE__*/React.createElement("span", null, after)));
54
+ };
55
+
56
+ AnimatedCounter.propTypes = {
57
+ /**
58
+ * The HTML id for this element.
59
+ */
60
+ id: PropTypes.string,
61
+
62
+ /**
63
+ * The HTML class names for this element
64
+ */
65
+ className: PropTypes.string,
66
+
67
+ /**
68
+ * The React-written, css properties for this element.
69
+ */
70
+ style: PropTypes.objectOf(PropTypes.string),
71
+
72
+ /**
73
+ * The count color
74
+ */
75
+ color: PropTypes.string,
76
+
77
+ /**
78
+ * The review count value
79
+ */
80
+ number: PropTypes.number,
81
+
82
+ /**
83
+ * The unit before the number
84
+ */
85
+ before: PropTypes.string,
86
+
87
+ /**
88
+ * The unit after the number
89
+ */
90
+ after: PropTypes.string,
91
+
92
+ /**
93
+ * react counter delay
94
+ */
95
+ delay: PropTypes.number
96
+ };
97
+ AnimatedCounter.defaultProps = {
98
+ color: 'main1'
99
+ };
100
+ export default AnimatedCounter;
@@ -0,0 +1,2 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ export { default as AnimatedCounter } from "./AnimatedCounter";
@@ -0,0 +1,16 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+ //@use "@aztlan/stylebook/src/mixins";
5
+ //@use "@aztlan/stylebook/src/globals" as *;
6
+
7
+ .#{bem.$base}.animated-counter {
8
+ display: flex;
9
+ justify-content: center;
10
+
11
+ .count {
12
+ color: var(--x);
13
+ }
14
+ }
15
+
16
+
@@ -0,0 +1,63 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react';
3
+ import { useLayoutEffect } from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import styleNames from '@pareto-engineering/bem'; // Local Definitions
6
+
7
+ import { Section } from "./common";
8
+ const baseClassName = styleNames.base;
9
+ const componentClassName = 'content-card';
10
+ /**
11
+ * This is the component description.
12
+ */
13
+
14
+ const ContentCard = ({
15
+ id,
16
+ className: userClassName,
17
+ style,
18
+ color,
19
+ children // messages,
20
+ // ...otherProps
21
+
22
+ }) => {
23
+ useLayoutEffect(() => {
24
+ import("./styles.scss");
25
+ }, []);
26
+ return /*#__PURE__*/React.createElement("div", {
27
+ id: id,
28
+ className: [baseClassName, componentClassName, userClassName, `y-${color}`, 'u1'].filter(e => e).join(' '),
29
+ style: style
30
+ }, children);
31
+ };
32
+
33
+ ContentCard.propTypes = {
34
+ /**
35
+ * The HTML id for this element
36
+ */
37
+ id: PropTypes.string,
38
+
39
+ /**
40
+ * The HTML class names for this element
41
+ */
42
+ className: PropTypes.string,
43
+
44
+ /**
45
+ * The React-written, css properties for this element.
46
+ */
47
+ style: PropTypes.objectOf(PropTypes.string),
48
+
49
+ /**
50
+ * Base color
51
+ */
52
+ color: PropTypes.string,
53
+
54
+ /**
55
+ * The children jsx
56
+ */
57
+ children: PropTypes.node
58
+ };
59
+ ContentCard.defaultProps = {
60
+ color: 'background2'
61
+ };
62
+ ContentCard.Section = Section;
63
+ export default ContentCard;