@pareto-engineering/design-system 3.0.0-alpha.29 → 4.0.0-alpha.11

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 (495) hide show
  1. package/.storybook/main.js +25 -63
  2. package/.storybook/preview.js +26 -9
  3. package/.storybook/webpackFinal.js +68 -0
  4. package/babel.config.js +25 -48
  5. package/dist/cjs/a/{AnimatedCounter/AnimatedCounter.js → AnimatedBlobs/AnimatedBlobs.js} +41 -56
  6. package/dist/cjs/a/AnimatedBlobs/index.js +13 -0
  7. package/dist/cjs/a/AnimatedBlobs/styles.scss +87 -0
  8. package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +56 -0
  9. package/dist/cjs/a/AnimatedGradient/index.js +13 -0
  10. package/dist/cjs/a/AnimatedGradient/styles.scss +14 -0
  11. package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +528 -0
  12. package/dist/cjs/a/AppContext/Context.js +1 -1
  13. package/dist/cjs/a/AppContext/ContextProvider.js +19 -15
  14. package/dist/cjs/a/AppContext/index.js +4 -4
  15. package/dist/cjs/a/AppContext/useTheme.js +7 -7
  16. package/dist/cjs/a/ContentTree/ContentTree.js +8 -8
  17. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +12 -12
  18. package/dist/cjs/a/ContentTree/common/Tree/index.js +1 -1
  19. package/dist/cjs/a/ContentTree/common/index.js +3 -3
  20. package/dist/cjs/a/ContentTree/common/useContentTree.js +14 -14
  21. package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +10 -11
  22. package/dist/cjs/a/ContentTree/index.js +1 -1
  23. package/dist/cjs/a/ContentTree/styles.scss +20 -20
  24. package/dist/cjs/a/Conversation/Context.js +1 -1
  25. package/dist/cjs/a/Conversation/Conversation.js +7 -7
  26. package/dist/cjs/a/Conversation/common/Message/Message.js +8 -8
  27. package/dist/cjs/a/Conversation/common/Message/index.js +1 -1
  28. package/dist/cjs/a/Conversation/common/index.js +1 -1
  29. package/dist/cjs/a/Conversation/index.js +3 -3
  30. package/dist/cjs/a/Conversation/styles.scss +1 -0
  31. package/dist/cjs/a/DotInfo/DotInfo.js +11 -15
  32. package/dist/cjs/a/DotInfo/index.js +1 -1
  33. package/dist/cjs/a/Figure/Figure.js +6 -6
  34. package/dist/cjs/a/Figure/index.js +1 -1
  35. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +17 -20
  36. package/dist/cjs/a/HamburgerButton/index.js +1 -1
  37. package/dist/cjs/a/IconList/IconList.js +19 -26
  38. package/dist/cjs/a/IconList/common/Item/Item.js +17 -24
  39. package/dist/cjs/a/IconList/common/Item/index.js +1 -1
  40. package/dist/cjs/a/IconList/common/index.js +1 -1
  41. package/dist/cjs/a/IconList/index.js +1 -1
  42. package/dist/cjs/a/Label/Label.js +19 -11
  43. package/dist/cjs/a/Label/index.js +1 -1
  44. package/dist/cjs/a/Label/styles.scss +22 -21
  45. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +11 -15
  46. package/dist/cjs/a/LoadingCircle/index.js +1 -1
  47. package/dist/cjs/a/LoadingCircle/styles.scss +35 -37
  48. package/dist/cjs/a/MetaCard/MetaCard.js +60 -0
  49. package/dist/cjs/a/MetaCard/index.js +13 -0
  50. package/dist/cjs/a/MetaCard/styles.scss +30 -0
  51. package/dist/cjs/a/People/People.js +9 -13
  52. package/dist/cjs/a/People/common/Person/Person.js +7 -7
  53. package/dist/cjs/a/People/common/Person/index.js +1 -1
  54. package/dist/cjs/a/People/common/index.js +1 -1
  55. package/dist/cjs/a/People/index.js +1 -1
  56. package/dist/cjs/a/People/styles.scss +4 -4
  57. package/dist/cjs/a/Popover/Popover.js +10 -10
  58. package/dist/cjs/a/Popover/index.js +1 -1
  59. package/dist/cjs/a/Popover/styles.scss +4 -3
  60. package/dist/cjs/a/ProgressBar/ProgressBar.js +11 -15
  61. package/dist/cjs/a/ProgressBar/index.js +1 -1
  62. package/dist/cjs/a/Quote/Quote.js +7 -7
  63. package/dist/cjs/a/Quote/index.js +1 -1
  64. package/dist/cjs/a/Quote/styles.scss +41 -38
  65. package/dist/cjs/a/SVG/SVG.js +23 -26
  66. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +9 -11
  67. package/dist/cjs/a/SVG/common/UseSVG/index.js +1 -1
  68. package/dist/cjs/a/SVG/common/index.js +1 -1
  69. package/dist/cjs/a/SVG/index.js +1 -1
  70. package/dist/cjs/a/SnapScroller/SnapScroller.js +6 -6
  71. package/dist/cjs/a/SnapScroller/index.js +1 -1
  72. package/dist/cjs/a/SnapScroller/styles.scss +22 -12
  73. package/dist/cjs/a/Spinner/Spinner.js +7 -7
  74. package/dist/cjs/a/Spinner/index.js +1 -1
  75. package/dist/cjs/a/TextSteps/TextSteps.js +70 -0
  76. package/dist/cjs/a/TextSteps/index.js +13 -0
  77. package/dist/cjs/a/TextSteps/styles.scss +29 -0
  78. package/dist/cjs/a/Timestamp/Timestamp.js +12 -12
  79. package/dist/cjs/a/Timestamp/index.js +1 -1
  80. package/dist/cjs/a/Tip/Tip.js +72 -0
  81. package/dist/cjs/a/Tip/index.js +13 -0
  82. package/dist/cjs/a/Tip/styles.scss +22 -0
  83. package/dist/cjs/a/index.js +53 -25
  84. package/dist/cjs/b/Button/Button.js +28 -26
  85. package/dist/cjs/b/Button/common/Group/Group.js +57 -0
  86. package/dist/cjs/b/Button/common/Group/index.js +13 -0
  87. package/dist/cjs/b/Button/common/Group/styles.scss +11 -0
  88. package/dist/cjs/b/Button/common/index.js +12 -0
  89. package/dist/cjs/b/Button/index.js +1 -1
  90. package/dist/cjs/b/Button/styles.scss +9 -2
  91. package/dist/cjs/b/Card/Card.js +74 -0
  92. package/dist/cjs/b/Card/common/Group/Group.js +73 -0
  93. package/dist/cjs/b/Card/common/Group/index.js +13 -0
  94. package/dist/cjs/b/Card/common/Group/styles.scss +42 -0
  95. package/dist/cjs/b/Card/common/Section/Section.js +59 -0
  96. package/dist/cjs/b/Card/common/Section/index.js +13 -0
  97. package/dist/cjs/b/Card/common/index.js +19 -0
  98. package/dist/cjs/b/Card/index.js +13 -0
  99. package/dist/cjs/b/Card/styles.scss +46 -0
  100. package/dist/cjs/b/Logo/Logo.js +13 -13
  101. package/dist/cjs/b/Logo/index.js +1 -1
  102. package/dist/cjs/b/Logo/styles.scss +4 -2
  103. package/dist/cjs/b/Page/Context.js +1 -1
  104. package/dist/cjs/b/Page/Page.js +25 -21
  105. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +41 -45
  106. package/dist/cjs/b/Page/common/PageHelmet/index.js +1 -1
  107. package/dist/cjs/b/Page/common/Section/Section.js +25 -18
  108. package/dist/cjs/b/Page/common/Section/index.js +1 -1
  109. package/dist/cjs/b/Page/common/index.js +2 -2
  110. package/dist/cjs/b/Page/index.js +3 -3
  111. package/dist/cjs/b/Page/styles.scss +29 -7
  112. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +21 -25
  113. package/dist/cjs/b/SocialMediaButton/index.js +1 -1
  114. package/dist/cjs/b/SocialMediaButton/styles.scss +2 -16
  115. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +9 -9
  116. package/dist/cjs/b/ThemeSelector/index.js +1 -1
  117. package/dist/cjs/b/Title/Title.js +9 -6
  118. package/dist/cjs/b/Title/index.js +1 -1
  119. package/dist/cjs/b/index.js +14 -7
  120. package/dist/cjs/c/ContentSlides/ContentSlides.js +33 -30
  121. package/dist/cjs/c/ContentSlides/Context.js +1 -1
  122. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +8 -8
  123. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +1 -1
  124. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +7 -7
  125. package/dist/cjs/c/ContentSlides/common/Navigator/index.js +1 -1
  126. package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +5 -5
  127. package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +1 -1
  128. package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +6 -6
  129. package/dist/cjs/c/ContentSlides/common/Slide/index.js +1 -1
  130. package/dist/cjs/c/ContentSlides/common/index.js +4 -4
  131. package/dist/cjs/c/ContentSlides/index.js +3 -3
  132. package/dist/cjs/c/ContentSlides/styles.scss +2 -4
  133. package/dist/cjs/c/Modal/Modal.js +6 -6
  134. package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +5 -5
  135. package/dist/cjs/c/Modal/common/ModalHeader/index.js +1 -1
  136. package/dist/cjs/c/Modal/common/index.js +1 -1
  137. package/dist/cjs/c/Modal/index.js +1 -1
  138. package/dist/cjs/c/Modal/styles.scss +9 -6
  139. package/dist/cjs/c/Shortener/Shortener.js +10 -10
  140. package/dist/cjs/c/Shortener/index.js +1 -1
  141. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +12 -12
  142. package/dist/cjs/c/SocialMediaShareButton/index.js +1 -1
  143. package/dist/cjs/c/SocialMediaShareButton/styles.scss +3 -3
  144. package/dist/cjs/c/index.js +5 -5
  145. package/dist/cjs/f/FormInput/FormInput.js +14 -17
  146. package/dist/cjs/f/FormInput/index.js +1 -1
  147. package/dist/cjs/f/FormInput/styles.scss +4 -4
  148. package/dist/cjs/f/common/Debugger/Debugger.js +8 -8
  149. package/dist/cjs/f/common/Debugger/index.js +1 -1
  150. package/dist/cjs/f/common/Description/Description.js +8 -8
  151. package/dist/cjs/f/common/Description/index.js +1 -1
  152. package/dist/cjs/f/common/Label/Label.js +7 -7
  153. package/dist/cjs/f/common/Label/index.js +1 -1
  154. package/dist/cjs/f/common/Label/styles.scss +1 -1
  155. package/dist/cjs/f/common/index.js +3 -3
  156. package/dist/cjs/f/fields/Checkbox/Checkbox.js +7 -7
  157. package/dist/cjs/f/fields/Checkbox/index.js +1 -1
  158. package/dist/cjs/f/fields/Checkbox/styles.scss +9 -8
  159. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +26 -22
  160. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +7 -7
  161. package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +1 -1
  162. package/dist/cjs/f/fields/ChoicesInput/common/index.js +1 -1
  163. package/dist/cjs/f/fields/ChoicesInput/index.js +1 -1
  164. package/dist/cjs/f/fields/ChoicesInput/styles.scss +23 -35
  165. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +25 -30
  166. package/dist/cjs/f/fields/QueryChoices/index.js +1 -1
  167. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +20 -22
  168. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +12 -12
  169. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
  170. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +14 -17
  171. package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +1 -1
  172. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +22 -26
  173. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
  174. package/dist/cjs/f/fields/QueryCombobox/common/index.js +3 -3
  175. package/dist/cjs/f/fields/QueryCombobox/index.js +1 -1
  176. package/dist/cjs/f/fields/QueryCombobox/styles.scss +60 -59
  177. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +11 -11
  178. package/dist/cjs/f/fields/QuerySelect/index.js +1 -1
  179. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +9 -9
  180. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +7 -7
  181. package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +1 -1
  182. package/dist/cjs/f/fields/RatingsInput/common/index.js +1 -1
  183. package/dist/cjs/f/fields/RatingsInput/index.js +1 -1
  184. package/dist/cjs/f/fields/RatingsInput/styles.scss +8 -9
  185. package/dist/cjs/f/fields/SelectInput/SelectInput.js +12 -12
  186. package/dist/cjs/f/fields/SelectInput/index.js +1 -1
  187. package/dist/cjs/f/fields/SelectInput/styles.scss +33 -23
  188. package/dist/cjs/f/fields/TextInput/TextInput.js +12 -10
  189. package/dist/cjs/f/fields/TextInput/index.js +1 -1
  190. package/dist/cjs/f/fields/TextInput/styles.scss +27 -18
  191. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +8 -8
  192. package/dist/cjs/f/fields/TextareaInput/index.js +1 -1
  193. package/dist/cjs/f/fields/TextareaInput/styles.scss +7 -6
  194. package/dist/cjs/f/fields/index.js +9 -9
  195. package/dist/cjs/f/index.js +3 -3
  196. package/dist/cjs/index.js +8 -8
  197. package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +7 -10
  198. package/dist/cjs/r/SwitchRouteMap/index.js +1 -1
  199. package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +13 -16
  200. package/dist/cjs/r/common/PrivateRoute/index.js +1 -1
  201. package/dist/cjs/r/common/index.js +1 -1
  202. package/dist/cjs/r/index.js +2 -2
  203. package/dist/cjs/test/QueryLoader/QueryLoader.js +4 -4
  204. package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +1 -1
  205. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +4 -4
  206. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +1 -1
  207. package/dist/cjs/test/QueryLoader/common/index.js +1 -1
  208. package/dist/cjs/test/QueryLoader/index.js +1 -1
  209. package/dist/cjs/test/index.js +1 -1
  210. package/dist/cjs/utils/hooks/index.js +2 -2
  211. package/dist/cjs/utils/hooks/useDynamicPosition.js +24 -24
  212. package/dist/cjs/utils/hooks/useWindowSize.js +6 -6
  213. package/dist/cjs/utils/index.js +2 -2
  214. package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +82 -0
  215. package/dist/es/a/AnimatedBlobs/index.js +1 -0
  216. package/dist/es/a/AnimatedBlobs/styles.scss +87 -0
  217. package/dist/es/a/AnimatedGradient/AnimatedGradient.js +48 -0
  218. package/dist/es/a/AnimatedGradient/index.js +1 -0
  219. package/dist/es/a/AnimatedGradient/styles.scss +14 -0
  220. package/dist/es/a/AnimatedGradient/webGIRenderer.js +492 -0
  221. package/dist/es/a/AppContext/ContextProvider.js +7 -8
  222. package/dist/es/a/AppContext/useTheme.js +1 -2
  223. package/dist/es/a/ContentTree/ContentTree.js +11 -12
  224. package/dist/es/a/ContentTree/common/Tree/Tree.js +8 -9
  225. package/dist/es/a/ContentTree/styles.scss +20 -20
  226. package/dist/es/a/Conversation/Conversation.js +13 -14
  227. package/dist/es/a/Conversation/common/Message/Message.js +12 -13
  228. package/dist/es/a/Conversation/styles.scss +1 -0
  229. package/dist/es/a/DotInfo/DotInfo.js +13 -14
  230. package/dist/es/a/Figure/Figure.js +10 -11
  231. package/dist/es/a/HamburgerButton/HamburgerButton.js +12 -13
  232. package/dist/es/a/IconList/IconList.js +11 -12
  233. package/dist/es/a/IconList/common/Item/Item.js +17 -20
  234. package/dist/es/a/Label/Label.js +22 -15
  235. package/dist/es/a/Label/styles.scss +22 -21
  236. package/dist/es/a/LoadingCircle/LoadingCircle.js +12 -13
  237. package/dist/es/a/LoadingCircle/styles.scss +35 -37
  238. package/dist/es/a/MetaCard/MetaCard.js +52 -0
  239. package/dist/es/a/MetaCard/index.js +1 -0
  240. package/dist/es/a/MetaCard/styles.scss +30 -0
  241. package/dist/es/a/People/People.js +11 -12
  242. package/dist/es/a/People/common/Person/Person.js +24 -27
  243. package/dist/es/a/People/styles.scss +4 -4
  244. package/dist/es/a/Popover/Popover.js +17 -18
  245. package/dist/es/a/Popover/styles.scss +4 -3
  246. package/dist/es/a/ProgressBar/ProgressBar.js +12 -13
  247. package/dist/es/a/Quote/Quote.js +12 -13
  248. package/dist/es/a/Quote/styles.scss +41 -38
  249. package/dist/es/a/SVG/SVG.js +19 -20
  250. package/dist/es/a/SVG/common/UseSVG/UseSVG.js +19 -22
  251. package/dist/es/a/SnapScroller/SnapScroller.js +10 -11
  252. package/dist/es/a/SnapScroller/styles.scss +22 -12
  253. package/dist/es/a/Spinner/Spinner.js +9 -10
  254. package/dist/es/a/TextSteps/TextSteps.js +61 -0
  255. package/dist/es/a/TextSteps/index.js +1 -0
  256. package/dist/es/a/TextSteps/styles.scss +29 -0
  257. package/dist/es/a/Timestamp/Timestamp.js +16 -17
  258. package/dist/es/a/Tip/Tip.js +64 -0
  259. package/dist/es/a/Tip/index.js +2 -0
  260. package/dist/es/a/Tip/styles.scss +22 -0
  261. package/dist/es/a/index.js +6 -2
  262. package/dist/es/b/Button/Button.js +25 -20
  263. package/dist/es/b/Button/common/Group/Group.js +49 -0
  264. package/dist/es/b/Button/common/Group/index.js +1 -0
  265. package/dist/es/b/Button/common/Group/styles.scss +11 -0
  266. package/dist/es/b/Button/common/index.js +1 -0
  267. package/dist/es/b/Button/styles.scss +9 -2
  268. package/dist/es/b/Card/Card.js +66 -0
  269. package/dist/es/b/Card/common/Group/Group.js +65 -0
  270. package/dist/es/b/Card/common/Group/index.js +1 -0
  271. package/dist/es/b/Card/common/Group/styles.scss +42 -0
  272. package/dist/es/b/Card/common/Section/Section.js +48 -0
  273. package/dist/es/b/Card/common/Section/index.js +1 -0
  274. package/dist/es/b/Card/common/index.js +2 -0
  275. package/dist/es/b/Card/index.js +1 -0
  276. package/dist/es/b/Card/styles.scss +46 -0
  277. package/dist/es/b/Logo/Logo.js +14 -15
  278. package/dist/es/b/Logo/styles.scss +4 -2
  279. package/dist/es/b/Page/Page.js +21 -15
  280. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +9 -11
  281. package/dist/es/b/Page/common/Section/Section.js +19 -10
  282. package/dist/es/b/Page/styles.scss +29 -7
  283. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +13 -14
  284. package/dist/es/b/SocialMediaButton/styles.scss +2 -16
  285. package/dist/es/b/ThemeSelector/ThemeSelector.js +10 -11
  286. package/dist/es/b/Title/Title.js +22 -19
  287. package/dist/es/b/index.js +2 -1
  288. package/dist/es/c/ContentSlides/ContentSlides.js +15 -18
  289. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +11 -12
  290. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +14 -15
  291. package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +8 -9
  292. package/dist/es/c/ContentSlides/common/Slide/Slide.js +8 -9
  293. package/dist/es/c/ContentSlides/styles.scss +2 -4
  294. package/dist/es/c/Modal/Modal.js +12 -13
  295. package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +20 -23
  296. package/dist/es/c/Modal/styles.scss +9 -6
  297. package/dist/es/c/Shortener/Shortener.js +13 -14
  298. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +11 -12
  299. package/dist/es/c/SocialMediaShareButton/styles.scss +3 -3
  300. package/dist/es/f/FormInput/FormInput.js +9 -10
  301. package/dist/es/f/FormInput/styles.scss +4 -4
  302. package/dist/es/f/common/Debugger/Debugger.js +9 -10
  303. package/dist/es/f/common/Description/Description.js +11 -12
  304. package/dist/es/f/common/Label/Label.js +13 -14
  305. package/dist/es/f/common/Label/styles.scss +1 -1
  306. package/dist/es/f/fields/Checkbox/Checkbox.js +13 -14
  307. package/dist/es/f/fields/Checkbox/styles.scss +9 -8
  308. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +33 -26
  309. package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +13 -14
  310. package/dist/es/f/fields/ChoicesInput/styles.scss +23 -35
  311. package/dist/es/f/fields/QueryChoices/QueryChoices.js +16 -20
  312. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +29 -33
  313. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +22 -24
  314. package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +22 -25
  315. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +24 -26
  316. package/dist/es/f/fields/QueryCombobox/styles.scss +60 -59
  317. package/dist/es/f/fields/QuerySelect/QuerySelect.js +24 -28
  318. package/dist/es/f/fields/RatingsInput/RatingsInput.js +18 -19
  319. package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +15 -16
  320. package/dist/es/f/fields/RatingsInput/styles.scss +8 -9
  321. package/dist/es/f/fields/SelectInput/SelectInput.js +20 -21
  322. package/dist/es/f/fields/SelectInput/styles.scss +33 -23
  323. package/dist/es/f/fields/TextInput/TextInput.js +24 -23
  324. package/dist/es/f/fields/TextInput/styles.scss +27 -18
  325. package/dist/es/f/fields/TextareaInput/TextareaInput.js +22 -23
  326. package/dist/es/f/fields/TextareaInput/styles.scss +7 -6
  327. package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +15 -21
  328. package/dist/es/r/common/PrivateRoute/PrivateRoute.js +6 -7
  329. package/dist/es/test/QueryLoader/QueryLoader.js +1 -1
  330. package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +5 -6
  331. package/dist/es/utils/hooks/useDynamicPosition.js +9 -10
  332. package/dist/es/utils/hooks/useWindowSize.js +1 -2
  333. package/jest.config.js +5 -5
  334. package/package.json +44 -82
  335. package/src/stories/a/MetaCard.stories.jsx +35 -0
  336. package/src/stories/a/TextSteps.stories.jsx +19 -0
  337. package/src/stories/a/Tip.stories.jsx +28 -0
  338. package/src/stories/b/{Button.stories.jsx → Button/Button.stories.jsx} +15 -0
  339. package/src/stories/b/Button/Group.stories.jsx +35 -0
  340. package/src/stories/b/Card/Card.stories.jsx +59 -0
  341. package/src/stories/b/Card/Group.stories.jsx +59 -0
  342. package/src/stories/b/Page.stories.jsx +21 -4
  343. package/src/stories/colors.js +6 -6
  344. package/src/stories/f/SelectInput.stories.jsx +7 -0
  345. package/src/stories/f/TextInput.stories.jsx +4 -4
  346. package/src/stories/original/Button.jsx +55 -0
  347. package/src/stories/original/Button.stories.js +39 -0
  348. package/src/stories/original/Header.jsx +64 -0
  349. package/src/stories/original/Header.stories.js +22 -0
  350. package/src/stories/original/Introduction.mdx +211 -0
  351. package/src/stories/original/Page.jsx +76 -0
  352. package/src/stories/original/Page.stories.js +26 -0
  353. package/src/stories/original/assets/code-brackets.svg +1 -0
  354. package/src/stories/original/assets/colors.svg +1 -0
  355. package/src/stories/original/assets/comments.svg +1 -0
  356. package/src/stories/original/assets/direction.svg +1 -0
  357. package/src/stories/original/assets/flow.svg +1 -0
  358. package/src/stories/original/assets/plugin.svg +1 -0
  359. package/src/stories/original/assets/repo.svg +1 -0
  360. package/src/stories/original/assets/stackalt.svg +1 -0
  361. package/src/stories/original/button.css +30 -0
  362. package/src/stories/original/header.css +32 -0
  363. package/src/stories/original/page.css +69 -0
  364. package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +102 -0
  365. package/src/ui/a/AnimatedBlobs/index.js +1 -0
  366. package/src/ui/a/AnimatedBlobs/styles.scss +87 -0
  367. package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +69 -0
  368. package/src/ui/a/AnimatedGradient/index.js +1 -0
  369. package/src/ui/a/AnimatedGradient/styles.scss +14 -0
  370. package/src/ui/a/AnimatedGradient/webGIRenderer.js +541 -0
  371. package/src/ui/a/ContentTree/ContentTree.jsx +3 -3
  372. package/src/ui/a/ContentTree/styles.scss +20 -20
  373. package/src/ui/a/Conversation/Conversation.jsx +2 -2
  374. package/src/ui/a/Conversation/styles.scss +1 -0
  375. package/src/ui/a/DotInfo/DotInfo.jsx +2 -2
  376. package/src/ui/a/Figure/Figure.jsx +2 -2
  377. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +2 -2
  378. package/src/ui/a/IconList/IconList.jsx +2 -2
  379. package/src/ui/a/Label/Label.jsx +13 -4
  380. package/src/ui/a/Label/styles.scss +22 -21
  381. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
  382. package/src/ui/a/LoadingCircle/styles.scss +35 -37
  383. package/src/ui/a/MetaCard/MetaCard.jsx +74 -0
  384. package/src/ui/a/MetaCard/index.js +1 -0
  385. package/src/ui/a/MetaCard/styles.scss +30 -0
  386. package/src/ui/a/People/People.jsx +2 -2
  387. package/src/ui/a/People/styles.scss +4 -4
  388. package/src/ui/a/Popover/Popover.jsx +3 -3
  389. package/src/ui/a/Popover/styles.scss +4 -3
  390. package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
  391. package/src/ui/a/Quote/Quote.jsx +2 -2
  392. package/src/ui/a/Quote/styles.scss +41 -38
  393. package/src/ui/a/SVG/SVG.jsx +2 -2
  394. package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -2
  395. package/src/ui/a/SnapScroller/styles.scss +22 -12
  396. package/src/ui/a/Spinner/Spinner.jsx +2 -2
  397. package/src/ui/a/TextSteps/TextSteps.jsx +87 -0
  398. package/src/ui/a/TextSteps/index.js +1 -0
  399. package/src/ui/a/TextSteps/styles.scss +29 -0
  400. package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
  401. package/src/ui/a/Tip/Tip.jsx +88 -0
  402. package/src/ui/a/Tip/index.js +2 -0
  403. package/src/ui/a/Tip/styles.scss +22 -0
  404. package/src/ui/a/index.js +5 -1
  405. package/src/ui/b/Button/Button.jsx +14 -5
  406. package/src/ui/b/Button/common/Group/Group.jsx +71 -0
  407. package/src/ui/b/Button/common/Group/index.js +1 -0
  408. package/src/ui/b/Button/common/Group/styles.scss +11 -0
  409. package/src/ui/b/Button/common/index.js +1 -0
  410. package/src/ui/b/Button/styles.scss +9 -2
  411. package/src/ui/b/Card/Card.jsx +94 -0
  412. package/src/ui/b/Card/common/Group/Group.jsx +91 -0
  413. package/src/ui/b/Card/common/Group/index.js +1 -0
  414. package/src/ui/b/Card/common/Group/styles.scss +42 -0
  415. package/src/ui/b/Card/common/Section/Section.jsx +70 -0
  416. package/src/ui/b/Card/common/Section/index.js +1 -0
  417. package/src/ui/b/Card/common/index.js +2 -0
  418. package/src/ui/b/Card/index.js +1 -0
  419. package/src/ui/b/Card/styles.scss +46 -0
  420. package/src/ui/b/Logo/Logo.jsx +2 -2
  421. package/src/ui/b/Logo/styles.scss +4 -2
  422. package/src/ui/b/Page/Page.jsx +9 -3
  423. package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +1 -1
  424. package/src/ui/b/Page/common/Section/Section.jsx +16 -1
  425. package/src/ui/b/Page/styles.scss +29 -7
  426. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
  427. package/src/ui/b/SocialMediaButton/styles.scss +2 -16
  428. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
  429. package/src/ui/b/Title/Title.jsx +30 -23
  430. package/src/ui/b/index.js +1 -0
  431. package/src/ui/c/ContentSlides/ContentSlides.jsx +3 -3
  432. package/src/ui/c/ContentSlides/styles.scss +2 -4
  433. package/src/ui/c/Modal/Modal.jsx +2 -2
  434. package/src/ui/c/Modal/styles.scss +9 -6
  435. package/src/ui/c/Shortener/Shortener.jsx +2 -2
  436. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
  437. package/src/ui/c/SocialMediaShareButton/styles.scss +3 -3
  438. package/src/ui/f/FormInput/FormInput.jsx +2 -2
  439. package/src/ui/f/FormInput/styles.scss +4 -4
  440. package/src/ui/f/common/Debugger/Debugger.jsx +2 -2
  441. package/src/ui/f/common/Description/Description.jsx +2 -2
  442. package/src/ui/f/common/Label/Label.jsx +2 -2
  443. package/src/ui/f/common/Label/styles.scss +1 -1
  444. package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -2
  445. package/src/ui/f/fields/Checkbox/styles.scss +9 -8
  446. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +12 -7
  447. package/src/ui/f/fields/ChoicesInput/styles.scss +23 -35
  448. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -2
  449. package/src/ui/f/fields/QueryCombobox/styles.scss +60 -59
  450. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +2 -2
  451. package/src/ui/f/fields/RatingsInput/styles.scss +8 -9
  452. package/src/ui/f/fields/SelectInput/SelectInput.jsx +4 -4
  453. package/src/ui/f/fields/SelectInput/styles.scss +33 -23
  454. package/src/ui/f/fields/TextInput/TextInput.jsx +13 -11
  455. package/src/ui/f/fields/TextInput/styles.scss +27 -18
  456. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +2 -2
  457. package/src/ui/f/fields/TextareaInput/styles.scss +7 -6
  458. package/src/ui/test/QueryLoader/QueryLoader.jsx +1 -1
  459. package/{src → tests}/__snapshots__/Storyshots.test.js.snap +3426 -1617
  460. package/tests/staticStub.js +1 -0
  461. package/.storybook/manager-head.html +0 -6
  462. package/.storybook/preview-head.html +0 -5
  463. package/README.md +0 -1
  464. package/build-storybook.log +0 -2978
  465. package/config/CSSStub.js +0 -1
  466. package/dist/cjs/a/AnimatedCounter/index.js +0 -13
  467. package/dist/cjs/a/AnimatedCounter/styles.scss +0 -16
  468. package/dist/es/a/AnimatedCounter/AnimatedCounter.js +0 -98
  469. package/dist/es/a/AnimatedCounter/index.js +0 -2
  470. package/dist/es/a/AnimatedCounter/styles.scss +0 -16
  471. package/postcss.config.js +0 -13
  472. package/relay.config.js +0 -12
  473. package/src/assets/images/Ellipse1.png +0 -0
  474. package/src/assets/images/Ellipse2.png +0 -0
  475. package/src/assets/images/Fundraising.svg +0 -40
  476. package/src/assets/images/ParetoSupport.svg +0 -190
  477. package/src/assets/images/ParetoWorld.svg +0 -207
  478. package/src/assets/images/Vector.png +0 -0
  479. package/src/assets/images/email-attach.svg +0 -1
  480. package/src/assets/images/email-delete.svg +0 -1
  481. package/src/assets/images/favicon.png +0 -0
  482. package/src/assets/images/onboarding/focus-on-strategic-work.webp +0 -0
  483. package/src/assets/images/onboarding/launch-project.webp +0 -0
  484. package/src/assets/images/onboarding/meet-pareto-partner.webp +0 -0
  485. package/src/assets/images/quality.png +0 -0
  486. package/src/assets/images/sprite.svg +0 -253
  487. package/src/assets/images/test +0 -1
  488. package/src/local.scss +0 -16
  489. package/src/stories/a/AnimatedCounter.stories.jsx +0 -34
  490. package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +0 -118
  491. package/src/ui/a/AnimatedCounter/index.js +0 -2
  492. package/src/ui/a/AnimatedCounter/styles.scss +0 -16
  493. /package/{src → tests}/Storyshots.test.js +0 -0
  494. /package/{config → tests}/global-setup.js +0 -0
  495. /package/{config → tests}/test-setup.js +0 -0
@@ -1,70 +1,32 @@
1
- const path=require('path')
1
+ /** @type { import('@storybook/react-webpack5').StorybookConfig } */
2
+ import webpackFinal from './webpackFinal'
2
3
 
3
- const localImages = path.resolve(__dirname,"../src/assets/images")
4
- const imagesFromAssetsPackage = path.resolve(__dirname,"../../../node_modules/@pareto-engineering/assets/images")
5
- const fonts = path.resolve(__dirname,"../../../node_modules/@pareto-engineering/assets/fonts")
6
-
7
- module.exports = {
8
- webpackFinal: async (config, { configType }) => {
9
- // `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
10
- // You can change the configuration based on that.
11
- // 'PRODUCTION' is used when building the static version of storybook.
12
-
13
- // Make whatever fine-grained changes you need
14
- config.resolve.roots = [fonts, localImages, imagesFromAssetsPackage]
15
- config.module.rules.push({
16
- test: /\.scss$/,
17
- use: [
18
- 'style-loader',
19
- {
20
- loader: 'css-loader',
21
- options: {
22
- //modules:{
23
- // mode:'global',
24
- //},
25
- //localIdentName:"[name]__hello_[local]__[hash:base64:5]"
26
- },
27
- },
28
- {
29
- loader:'sass-loader',
30
- options: {
31
- sassOptions: {
32
- includePaths: [
33
- //path.resolve(__dirname, '../node_modules'), // Already default
34
- path.resolve(__dirname, '../src')
35
- ]
36
- }
37
- }
38
- }
39
- ],
40
- include: path.resolve(__dirname, '../..')
41
- });
42
-
43
- // Return the altered config
44
- return config;
45
- },
46
-
47
- "stories": [
48
- "../src/stories/**/*.stories.mdx",
49
- "../src/stories/**/*.stories.@(js|jsx|ts|tsx)"
4
+ const config = {
5
+ webpackFinal,
6
+ staticDirs:[
7
+ '../../../node_modules/@pareto-engineering/assets/images',
8
+ '../../../node_modules/@pareto-engineering/assets/fonts',
9
+ ],
10
+ stories:[
11
+ '../src/stories/**/*.mdx',
12
+ '../src/stories/**/*.stories.@(js|jsx|ts|tsx)',
50
13
  ],
51
- "addons": [
52
- "@storybook/addon-links",
53
- {
54
- name: '@storybook/addon-essentials',
55
- options: {
56
- backgrounds: false,
57
- }
58
- },
59
- 'storybook-addon-themes'
14
+ addons:[
15
+ '@storybook/addon-links',
16
+ '@storybook/addon-essentials',
17
+ //'@storybook/addon-interactions',
18
+ //'storybook-addon-themes',
60
19
  ],
61
- core: {
62
- builder: 'webpack5',
20
+ framework:{
21
+ name :'@storybook/react-webpack5',
22
+ options:{},
63
23
  },
64
- reactOptions: {
65
- fastRefresh: true,
24
+ docs:{
25
+ autodocs:true,
26
+ //autodocs:'tag',
66
27
  },
67
- features: {
68
- previewMdx2: true
28
+ core:{
29
+ disableTelemetry:true, // 👈 Disables telemetry
69
30
  },
70
31
  }
32
+ export default config
@@ -1,11 +1,28 @@
1
- import '../src/local.scss'
2
- import '@pareto-engineering/styles/dist/main.min.css'
1
+ /** @type { import('@storybook/react').Preview } */
2
+ // import '../src/local.scss'
3
+ // import '@pareto-engineering/styles'
4
+ // Same as
5
+ import '@pareto-engineering/styles/dist/main.css'
3
6
 
4
- export const parameters = {
5
- layout:'fullscreen',
6
- actions: { argTypesRegex: "^on[A-Z].*" },
7
- themes: [
8
- { name: 'Colorscheme Light', class: 'ui-light', color: '#EFEFEF', default: true },
9
- { name: 'Colorscheme Dark', class: 'ui-dark', color: '#121212' }
10
- ],
7
+ const preview = {
8
+ parameters:{
9
+ backgrounds:{
10
+ default:'light',
11
+ },
12
+ actions :{ argTypesRegex: '^on[A-Z].*' },
13
+ controls:{
14
+ matchers:{
15
+ color:/(background|color)$/i,
16
+ date :/Date$/,
17
+ },
18
+ },
19
+ themes:[
20
+ {
21
+ name:'Light', class:'ui-light', color:'#EFEFEF', default:true,
22
+ },
23
+ { name: 'Dark', class: 'ui-dark', color: '#121212' },
24
+ ],
25
+ },
11
26
  }
27
+
28
+ export default preview
@@ -0,0 +1,68 @@
1
+ import path from 'path'
2
+
3
+ /* We want to stop webpack from loading the fonts (.woff, etc)
4
+ * This fonts are embedded in the imported css file, but it makes no sense
5
+ * that webpack processes them. Instead, we will simply provide the right
6
+ * static path to storybook to have them loaded by the client.
7
+ */
8
+ const patchCssLoader = (rules) => {
9
+ // We find the css rule
10
+ const cssRule = rules.find(rule => {
11
+ return rule.test?.test('.css')
12
+ })
13
+ // console.log(cssRule)
14
+
15
+ // We find the `css-loader` configuration object
16
+ const cssLoaderConfig = cssRule.use.find(({ loader }) => {
17
+ return loader?.includes('css-loader')
18
+ })
19
+ // console.log(cssLoaderConfig)
20
+
21
+ // We patch it for it not to load external resources
22
+ cssLoaderConfig.options.url = false
23
+ console.log('info => Patched CSS loader with { url:false }')
24
+ }
25
+
26
+ export default async (config, { configType }) => {
27
+ // `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
28
+ // You can change the configuration based on that.
29
+ // 'PRODUCTION' is used when building the static version of storybook.
30
+
31
+ // Make whatever fine-grained changes you need
32
+ config.resolve.roots = [
33
+ path.resolve(__dirname, '../../../node_modules/@pareto-engineering/assets/fonts'),
34
+ path.resolve(__dirname, '../../../node_modules/@pareto-engineering/assets/images')
35
+ ]
36
+ //config.resolve.alias.react = path.resolve(__dirname, '../node_modules/react')
37
+ // patchCssLoader(config.module.rules)
38
+ config.module.rules.push({
39
+ test:/\.scss$/,
40
+ use :[
41
+ 'style-loader',
42
+ {
43
+ loader :'css-loader',
44
+ options:{
45
+ url :false,
46
+ modules:{
47
+ // We only activate CSS modules for the file containing the BEM rules
48
+ auto:(resourcePath) => resourcePath.includes('bem/exports.scss'),
49
+ },
50
+ },
51
+ },
52
+ {
53
+ loader :'sass-loader',
54
+ options:{
55
+ sassOptions:{
56
+ includePaths:[
57
+ // path.resolve(__dirname, '../node_modules'), // Already default
58
+ path.resolve(__dirname, '../src'),
59
+ ],
60
+ },
61
+ },
62
+ },
63
+ ],
64
+ include:path.resolve(__dirname, '../..'),
65
+ })
66
+
67
+ return config
68
+ }
package/babel.config.js CHANGED
@@ -2,21 +2,32 @@
2
2
  //
3
3
 
4
4
  module.exports = function (api) {
5
- // api.cache(false)
6
5
  // var isProd = api.cache(() => process.env.NODE_ENV === 'production')
7
- const isCjs = api.cache(() => process.env.COMPILE_ENV === 'cjs')
8
- const isEs = api.cache(() => process.env.COMPILE_ENV === 'es')
9
- const isTest = api.env('test')
6
+ const isCjs = api.cache(() => process.env.TARGET === 'cjs')
7
+ const isEs = api.cache(() => process.env.TARGET === 'es')
10
8
 
11
- const modules = isEs ? false : 'commonjs'
9
+ let modules; let targets; let
10
+ moduleResolverRoots
12
11
 
13
- const targets = isTest
14
- ? { node: '12' }
15
- : isCjs
16
- ? { esmodules: true }
17
- : undefined
12
+ // If we are compiling for common JS
13
+ if (isCjs) {
14
+ modules = 'commonjs'
15
+ targets = 'defaults'
16
+ moduleResolverRoots = ['./src']
17
+ }
18
+
19
+ // If we are compiling for ES
20
+ else if (isEs) {
21
+ modules = false
22
+ targets = { chrome: '111' }
23
+ moduleResolverRoots = ['./src']
24
+ }
18
25
 
19
- // { browsers: '>0.35%, not ie' }
26
+ // If we are simply running the storybook
27
+ else {
28
+ targets = { chrome: '100' }
29
+ moduleResolverRoots = ['./src', './']
30
+ }
20
31
 
21
32
  const presets = [
22
33
  [
@@ -24,53 +35,19 @@ module.exports = function (api) {
24
35
  {
25
36
  modules,
26
37
  targets,
27
- // debug:true,
38
+ // debug:true,
28
39
  },
29
40
  ],
30
41
  '@babel/preset-react',
31
42
  ]
43
+
32
44
  const plugins = [
33
45
  'relay',
34
46
  ['module-resolver', {
35
- root:['./src'],
36
- }],
37
- ['@babel/plugin-proposal-private-property-in-object', { loose: true }], // This is to silence a warning after upgrading storybook to 6.2.9
38
- ['@babel/plugin-proposal-class-properties', { loose: true }],
39
- ['@babel/plugin-proposal-private-methods', { loose: true }],
40
-
41
- // ['@babel/plugin-proposal-class-properties', { 'loose': true }],
42
- /* ['babel-plugin-inline-import', {
43
- 'extensions':[
44
- '.html',
45
- '.graphql',
46
- '.gql'
47
- ]}], */
48
- /*
49
- ['transform-react-remove-prop-types', {
50
- 'mode':'wrap',
47
+ root:moduleResolverRoots,
51
48
  }],
52
- */
53
- // ['add-module-exports'],
54
-
55
49
  ]
56
50
 
57
- /* We comment out this part because it's probably better to remove the proptypes in the final react app instead of in the compilation process
58
- if(isEs || isCjs) { plugins.push(
59
- [
60
- 'transform-react-remove-prop-types',
61
- {
62
- removeImport:true
63
- },
64
- ],
65
- )}
66
- */
67
-
68
- /* const env = { //UNUSED (??)
69
- 'production': {
70
- 'plugins': ['transform-react-remove-prop-types']
71
- }
72
- } */
73
-
74
51
  return {
75
52
  presets,
76
53
  plugins,
@@ -5,69 +5,55 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _reactCountup = _interopRequireDefault(require("react-countup"));
9
- var _reactVisibilitySensor = _interopRequireDefault(require("react-visibility-sensor"));
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
9
  var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
12
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- 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); }
11
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
12
  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; }
15
13
  // Local Definitions
16
14
 
17
- var baseClassName = _exports.default.base;
18
- var componentClassName = 'animated-counter';
15
+ const baseClassName = _exports.default.base;
16
+ const componentClassName = 'animated-blobs';
19
17
 
20
18
  /**
21
- * This is the component description
19
+ * This is the component description.
22
20
  */
23
- var AnimatedCounter = _ref => {
24
- var {
21
+ const AnimatedBlobs = _ref => {
22
+ let {
25
23
  id,
26
24
  className: userClassName,
27
- style,
28
25
  color,
29
- number,
30
- before,
31
- after,
32
- delay
26
+ style,
27
+ height,
28
+ width,
29
+ opacity
33
30
  // ...otherProps
34
31
  } = _ref;
35
- (0, React.useLayoutEffect)(() => {
32
+ (0, React.useInsertionEffect)(() => {
36
33
  Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
37
34
  }, []);
38
- var countDecimals = (0, React.useCallback)(value => {
39
- if (value % 1 !== 0) return value.toString().split('.')[1].length;
40
- return 0;
41
- }, []);
42
35
  return /*#__PURE__*/React.createElement("div", {
43
36
  id: id,
44
- className: [baseClassName, componentClassName, userClassName, "x-".concat(color)].filter(e => e).join(' '),
45
- style: style
46
- // {...otherProps}
37
+ className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
38
+ style: {
39
+ ...style,
40
+ '--blob-color': `var(--${color})`,
41
+ '--height': height,
42
+ '--opacity': opacity,
43
+ '--width': width
44
+ }
47
45
  }, /*#__PURE__*/React.createElement("div", {
48
- className: "count s3"
49
- }, before && /*#__PURE__*/React.createElement("span", null, before), /*#__PURE__*/React.createElement(_reactCountup.default, {
50
- end: number,
51
- delay: delay,
52
- decimals: countDecimals(number),
53
- redraw: true
54
- }, _ref2 => {
55
- var {
56
- countUpRef,
57
- start
58
- } = _ref2;
59
- return /*#__PURE__*/React.createElement(_reactVisibilitySensor.default, {
60
- onChange: start,
61
- delayedCall: true
62
- }, /*#__PURE__*/React.createElement("span", {
63
- ref: countUpRef
64
- }));
65
- }), after && /*#__PURE__*/React.createElement("span", null, after)));
46
+ className: "shape-blob"
47
+ }), /*#__PURE__*/React.createElement("div", {
48
+ className: "shape-blob one"
49
+ }), /*#__PURE__*/React.createElement("div", {
50
+ className: "shape-blob two"
51
+ }));
66
52
  };
67
- AnimatedCounter.propTypes = {
53
+ AnimatedBlobs.propTypes = {
68
54
  /**
69
- * The HTML id for this element.
70
- */
55
+ * The HTML id for this element
56
+ */
71
57
  id: _propTypes.default.string,
72
58
  /**
73
59
  * The HTML class names for this element
@@ -78,28 +64,27 @@ AnimatedCounter.propTypes = {
78
64
  */
79
65
  style: _propTypes.default.objectOf(_propTypes.default.string),
80
66
  /**
81
- * The count color
67
+ * The color of the blobs
82
68
  */
83
69
  color: _propTypes.default.string,
84
70
  /**
85
- * The review count value
86
- */
87
- number: _propTypes.default.number,
88
- /**
89
- * The unit before the number
71
+ * The height of the blobs
90
72
  */
91
- before: _propTypes.default.string,
73
+ height: _propTypes.default.string,
92
74
  /**
93
- * The unit after the number
75
+ * The width of the blobs
94
76
  */
95
- after: _propTypes.default.string,
77
+ width: _propTypes.default.string,
96
78
  /**
97
- * react counter delay
79
+ * The opacity of the blobs
98
80
  */
99
- delay: _propTypes.default.number
81
+ opacity: _propTypes.default.string
100
82
  };
101
- AnimatedCounter.defaultProps = {
102
- color: 'main1'
83
+ AnimatedBlobs.defaultProps = {
84
+ color: 'background-mesh',
85
+ height: '200px',
86
+ width: '200px',
87
+ opacity: '0.7'
103
88
  };
104
- var _default = AnimatedCounter;
89
+ var _default = AnimatedBlobs;
105
90
  exports.default = _default;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "AnimatedBlobs", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _AnimatedBlobs.default;
10
+ }
11
+ });
12
+ var _AnimatedBlobs = _interopRequireDefault(require("./AnimatedBlobs"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,87 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+
5
+ @keyframes transform {
6
+ 0%,
7
+ 100% {
8
+ border-radius: 33% 67% 70% 30% / 30% 30% 70% 70%;
9
+ }
10
+
11
+ 20% {
12
+ border-radius: 37% 63% 51% 49% / 37% 65% 35% 63%;
13
+ }
14
+
15
+ 40% {
16
+ border-radius: 36% 64% 64% 36% / 64% 48% 52% 36%;
17
+ }
18
+
19
+ 60% {
20
+ border-radius: 37% 63% 51% 49% / 30% 30% 70% 70%;
21
+ }
22
+
23
+ 80% {
24
+ border-radius: 40% 60% 42% 58% / 41% 51% 49% 59%;
25
+ }
26
+ }
27
+ @keyframes movement_one {
28
+ 0%,
29
+ 100% {
30
+ transform: none;
31
+ }
32
+
33
+ 50% {
34
+ transform: translate(50%, 20%) rotateY(10deg) scale(1.2);
35
+ }
36
+ }
37
+ @keyframes movement_two {
38
+ 0%,
39
+ 500% {
40
+ transform: none;
41
+ }
42
+
43
+ 50% {
44
+ transform: translate(50%, 20%) rotate(-200deg) scale(1.2);
45
+ }
46
+ }
47
+
48
+ .#{bem.$base}.animated-blobs {
49
+ height: 100%;
50
+ left: 0;
51
+ top: 0;
52
+ width: 100%;
53
+
54
+ > .shape-blob {
55
+ animation:
56
+ transform 20s ease-in-out infinite both alternate,
57
+ movement_one 40s ease-in-out infinite both;
58
+ background: var(--blob-color);
59
+ border-radius: 30% 50% 20% 40%;
60
+ height: var(--height);
61
+ left: 70%;
62
+ opacity: var(--opacity);
63
+ position: absolute;
64
+ top: 50%;
65
+ width: var(--width);
66
+ }
67
+
68
+ > .shape-blob.one {
69
+ animation: transform 30s ease-in-out infinite both alternate,
70
+ movement_two 60s ease-in-out infinite both;
71
+ height: calc(var(--height) * 2.5);
72
+ left: -200px;
73
+ top: -150px;
74
+ transform: rotate(-180deg);
75
+ width: calc(var(--width) * 2.5);
76
+ }
77
+
78
+ > .shape-blob.two {
79
+ animation: transform 30s ease-in-out infinite both alternate,
80
+ movement_two 60s ease-in-out infinite both;
81
+ height: calc(var(--height) * 1.75);
82
+ left: 500px;
83
+ top: -150px;
84
+ transform: rotate(-180deg);
85
+ width: calc(var(--width) * 1.75);
86
+ }
87
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
10
+ var _webGIRenderer = require("./webGIRenderer");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+ 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; }
14
+ // Local Definitions
15
+
16
+ const baseClassName = _exports.default.base;
17
+ const componentClassName = 'animated-gradient';
18
+
19
+ /**
20
+ * This is the component description.
21
+ */
22
+ const AnimatedGradient = _ref => {
23
+ let {
24
+ className: userClassName
25
+ // ...otherProps
26
+ } = _ref;
27
+ (0, React.useInsertionEffect)(() => {
28
+ Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
29
+ }, []);
30
+ const isClient = typeof window !== 'undefined';
31
+ (0, React.useEffect)(() => {
32
+ // Only initialize the Gradient if we're in the browser
33
+ if (isClient) {
34
+ const gradient = new _webGIRenderer.Gradient();
35
+ gradient.initGradient('#gradient-canvas');
36
+ }
37
+ }, []);
38
+ return /*#__PURE__*/React.createElement("canvas", {
39
+ id: "gradient-canvas",
40
+ "data-transition-in": true,
41
+ className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' ')
42
+ // {...otherProps}
43
+ });
44
+ };
45
+
46
+ AnimatedGradient.propTypes = {
47
+ /**
48
+ * The HTML class names for this element
49
+ */
50
+ className: _propTypes.default.string
51
+ };
52
+ AnimatedGradient.defaultProps = {
53
+ // primaryColor:'black',
54
+ };
55
+ var _default = AnimatedGradient;
56
+ exports.default = _default;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "AnimatedGradient", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _AnimatedGradient.default;
10
+ }
11
+ });
12
+ var _AnimatedGradient = _interopRequireDefault(require("./AnimatedGradient"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,14 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+
5
+ .#{bem.$base}.animated-gradient {
6
+ --gradient-color-1: var(--background-mesh);
7
+ --gradient-color-2: var(--soft-background-mesh);
8
+ --gradient-color-3: var(--background-mesh);
9
+ --gradient-color-4: var(--soft-background-mesh);
10
+ height: 100%;
11
+ left: 0;
12
+ top: 0;
13
+ width: 100%;
14
+ }