@pareto-engineering/design-system 3.0.0-alpha.29 → 4.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 (359) 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/AppContext/Context.js +1 -1
  6. package/dist/cjs/a/AppContext/ContextProvider.js +19 -15
  7. package/dist/cjs/a/AppContext/index.js +4 -4
  8. package/dist/cjs/a/AppContext/useTheme.js +7 -7
  9. package/dist/cjs/a/ContentTree/ContentTree.js +6 -6
  10. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +12 -12
  11. package/dist/cjs/a/ContentTree/common/Tree/index.js +1 -1
  12. package/dist/cjs/a/ContentTree/common/index.js +3 -3
  13. package/dist/cjs/a/ContentTree/common/useContentTree.js +14 -14
  14. package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +10 -11
  15. package/dist/cjs/a/ContentTree/index.js +1 -1
  16. package/dist/cjs/a/ContentTree/styles.scss +20 -20
  17. package/dist/cjs/a/Conversation/Context.js +1 -1
  18. package/dist/cjs/a/Conversation/Conversation.js +6 -6
  19. package/dist/cjs/a/Conversation/common/Message/Message.js +8 -8
  20. package/dist/cjs/a/Conversation/common/Message/index.js +1 -1
  21. package/dist/cjs/a/Conversation/common/index.js +1 -1
  22. package/dist/cjs/a/Conversation/index.js +3 -3
  23. package/dist/cjs/a/Conversation/styles.scss +1 -0
  24. package/dist/cjs/a/DotInfo/DotInfo.js +10 -14
  25. package/dist/cjs/a/DotInfo/index.js +1 -1
  26. package/dist/cjs/a/Figure/Figure.js +5 -5
  27. package/dist/cjs/a/Figure/index.js +1 -1
  28. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +16 -19
  29. package/dist/cjs/a/HamburgerButton/index.js +1 -1
  30. package/dist/cjs/a/IconList/IconList.js +18 -25
  31. package/dist/cjs/a/IconList/common/Item/Item.js +17 -24
  32. package/dist/cjs/a/IconList/common/Item/index.js +1 -1
  33. package/dist/cjs/a/IconList/common/index.js +1 -1
  34. package/dist/cjs/a/IconList/index.js +1 -1
  35. package/dist/cjs/a/Label/Label.js +6 -6
  36. package/dist/cjs/a/Label/index.js +1 -1
  37. package/dist/cjs/a/Label/styles.scss +18 -17
  38. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +10 -14
  39. package/dist/cjs/a/LoadingCircle/index.js +1 -1
  40. package/dist/cjs/a/LoadingCircle/styles.scss +35 -37
  41. package/dist/cjs/a/People/People.js +8 -12
  42. package/dist/cjs/a/People/common/Person/Person.js +7 -7
  43. package/dist/cjs/a/People/common/Person/index.js +1 -1
  44. package/dist/cjs/a/People/common/index.js +1 -1
  45. package/dist/cjs/a/People/index.js +1 -1
  46. package/dist/cjs/a/People/styles.scss +4 -4
  47. package/dist/cjs/a/Popover/Popover.js +8 -8
  48. package/dist/cjs/a/Popover/index.js +1 -1
  49. package/dist/cjs/a/Popover/styles.scss +4 -3
  50. package/dist/cjs/a/ProgressBar/ProgressBar.js +10 -14
  51. package/dist/cjs/a/ProgressBar/index.js +1 -1
  52. package/dist/cjs/a/Quote/Quote.js +6 -6
  53. package/dist/cjs/a/Quote/index.js +1 -1
  54. package/dist/cjs/a/Quote/styles.scss +41 -38
  55. package/dist/cjs/a/SVG/SVG.js +22 -25
  56. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +9 -11
  57. package/dist/cjs/a/SVG/common/UseSVG/index.js +1 -1
  58. package/dist/cjs/a/SVG/common/index.js +1 -1
  59. package/dist/cjs/a/SVG/index.js +1 -1
  60. package/dist/cjs/a/SnapScroller/SnapScroller.js +5 -5
  61. package/dist/cjs/a/SnapScroller/index.js +1 -1
  62. package/dist/cjs/a/SnapScroller/styles.scss +6 -4
  63. package/dist/cjs/a/Spinner/Spinner.js +6 -6
  64. package/dist/cjs/a/Spinner/index.js +1 -1
  65. package/dist/cjs/a/Timestamp/Timestamp.js +11 -11
  66. package/dist/cjs/a/Timestamp/index.js +1 -1
  67. package/dist/cjs/a/index.js +20 -27
  68. package/dist/cjs/b/Button/Button.js +18 -21
  69. package/dist/cjs/b/Button/index.js +1 -1
  70. package/dist/cjs/b/Button/styles.scss +2 -2
  71. package/dist/cjs/b/Logo/Logo.js +12 -12
  72. package/dist/cjs/b/Logo/index.js +1 -1
  73. package/dist/cjs/b/Logo/styles.scss +4 -2
  74. package/dist/cjs/b/Page/Context.js +1 -1
  75. package/dist/cjs/b/Page/Page.js +15 -18
  76. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +41 -45
  77. package/dist/cjs/b/Page/common/PageHelmet/index.js +1 -1
  78. package/dist/cjs/b/Page/common/Section/Section.js +13 -16
  79. package/dist/cjs/b/Page/common/Section/index.js +1 -1
  80. package/dist/cjs/b/Page/common/index.js +2 -2
  81. package/dist/cjs/b/Page/index.js +3 -3
  82. package/dist/cjs/b/Page/styles.scss +7 -6
  83. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +20 -24
  84. package/dist/cjs/b/SocialMediaButton/index.js +1 -1
  85. package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
  86. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +8 -8
  87. package/dist/cjs/b/ThemeSelector/index.js +1 -1
  88. package/dist/cjs/b/Title/Title.js +5 -5
  89. package/dist/cjs/b/Title/index.js +1 -1
  90. package/dist/cjs/b/index.js +6 -6
  91. package/dist/cjs/c/ContentSlides/ContentSlides.js +31 -28
  92. package/dist/cjs/c/ContentSlides/Context.js +1 -1
  93. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +8 -8
  94. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +1 -1
  95. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +7 -7
  96. package/dist/cjs/c/ContentSlides/common/Navigator/index.js +1 -1
  97. package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +5 -5
  98. package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +1 -1
  99. package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +6 -6
  100. package/dist/cjs/c/ContentSlides/common/Slide/index.js +1 -1
  101. package/dist/cjs/c/ContentSlides/common/index.js +4 -4
  102. package/dist/cjs/c/ContentSlides/index.js +3 -3
  103. package/dist/cjs/c/ContentSlides/styles.scss +2 -4
  104. package/dist/cjs/c/Modal/Modal.js +5 -5
  105. package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +5 -5
  106. package/dist/cjs/c/Modal/common/ModalHeader/index.js +1 -1
  107. package/dist/cjs/c/Modal/common/index.js +1 -1
  108. package/dist/cjs/c/Modal/index.js +1 -1
  109. package/dist/cjs/c/Modal/styles.scss +7 -5
  110. package/dist/cjs/c/Shortener/Shortener.js +9 -9
  111. package/dist/cjs/c/Shortener/index.js +1 -1
  112. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +11 -11
  113. package/dist/cjs/c/SocialMediaShareButton/index.js +1 -1
  114. package/dist/cjs/c/SocialMediaShareButton/styles.scss +3 -3
  115. package/dist/cjs/c/index.js +5 -5
  116. package/dist/cjs/f/FormInput/FormInput.js +13 -16
  117. package/dist/cjs/f/FormInput/index.js +1 -1
  118. package/dist/cjs/f/FormInput/styles.scss +4 -4
  119. package/dist/cjs/f/common/Debugger/Debugger.js +7 -7
  120. package/dist/cjs/f/common/Debugger/index.js +1 -1
  121. package/dist/cjs/f/common/Description/Description.js +7 -7
  122. package/dist/cjs/f/common/Description/index.js +1 -1
  123. package/dist/cjs/f/common/Label/Label.js +6 -6
  124. package/dist/cjs/f/common/Label/index.js +1 -1
  125. package/dist/cjs/f/common/Label/styles.scss +1 -1
  126. package/dist/cjs/f/common/index.js +3 -3
  127. package/dist/cjs/f/fields/Checkbox/Checkbox.js +6 -6
  128. package/dist/cjs/f/fields/Checkbox/index.js +1 -1
  129. package/dist/cjs/f/fields/Checkbox/styles.scss +9 -8
  130. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +11 -15
  131. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +7 -7
  132. package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +1 -1
  133. package/dist/cjs/f/fields/ChoicesInput/common/index.js +1 -1
  134. package/dist/cjs/f/fields/ChoicesInput/index.js +1 -1
  135. package/dist/cjs/f/fields/ChoicesInput/styles.scss +4 -4
  136. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +25 -30
  137. package/dist/cjs/f/fields/QueryChoices/index.js +1 -1
  138. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +19 -21
  139. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +12 -12
  140. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
  141. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +14 -17
  142. package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +1 -1
  143. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +22 -26
  144. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
  145. package/dist/cjs/f/fields/QueryCombobox/common/index.js +3 -3
  146. package/dist/cjs/f/fields/QueryCombobox/index.js +1 -1
  147. package/dist/cjs/f/fields/QueryCombobox/styles.scss +59 -59
  148. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +11 -11
  149. package/dist/cjs/f/fields/QuerySelect/index.js +1 -1
  150. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +8 -8
  151. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +7 -7
  152. package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +1 -1
  153. package/dist/cjs/f/fields/RatingsInput/common/index.js +1 -1
  154. package/dist/cjs/f/fields/RatingsInput/index.js +1 -1
  155. package/dist/cjs/f/fields/RatingsInput/styles.scss +8 -9
  156. package/dist/cjs/f/fields/SelectInput/SelectInput.js +9 -9
  157. package/dist/cjs/f/fields/SelectInput/index.js +1 -1
  158. package/dist/cjs/f/fields/SelectInput/styles.scss +6 -6
  159. package/dist/cjs/f/fields/TextInput/TextInput.js +7 -7
  160. package/dist/cjs/f/fields/TextInput/index.js +1 -1
  161. package/dist/cjs/f/fields/TextInput/styles.scss +4 -4
  162. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +7 -7
  163. package/dist/cjs/f/fields/TextareaInput/index.js +1 -1
  164. package/dist/cjs/f/fields/TextareaInput/styles.scss +7 -6
  165. package/dist/cjs/f/fields/index.js +9 -9
  166. package/dist/cjs/f/index.js +3 -3
  167. package/dist/cjs/index.js +8 -8
  168. package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +7 -10
  169. package/dist/cjs/r/SwitchRouteMap/index.js +1 -1
  170. package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +13 -16
  171. package/dist/cjs/r/common/PrivateRoute/index.js +1 -1
  172. package/dist/cjs/r/common/index.js +1 -1
  173. package/dist/cjs/r/index.js +2 -2
  174. package/dist/cjs/test/QueryLoader/QueryLoader.js +4 -4
  175. package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +1 -1
  176. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +4 -4
  177. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +1 -1
  178. package/dist/cjs/test/QueryLoader/common/index.js +1 -1
  179. package/dist/cjs/test/QueryLoader/index.js +1 -1
  180. package/dist/cjs/test/index.js +1 -1
  181. package/dist/cjs/utils/hooks/index.js +2 -2
  182. package/dist/cjs/utils/hooks/useDynamicPosition.js +24 -24
  183. package/dist/cjs/utils/hooks/useWindowSize.js +6 -6
  184. package/dist/cjs/utils/index.js +2 -2
  185. package/dist/es/a/AppContext/ContextProvider.js +7 -8
  186. package/dist/es/a/AppContext/useTheme.js +1 -2
  187. package/dist/es/a/ContentTree/ContentTree.js +8 -9
  188. package/dist/es/a/ContentTree/common/Tree/Tree.js +8 -9
  189. package/dist/es/a/ContentTree/styles.scss +20 -20
  190. package/dist/es/a/Conversation/Conversation.js +11 -12
  191. package/dist/es/a/Conversation/common/Message/Message.js +12 -13
  192. package/dist/es/a/Conversation/styles.scss +1 -0
  193. package/dist/es/a/DotInfo/DotInfo.js +11 -12
  194. package/dist/es/a/Figure/Figure.js +8 -9
  195. package/dist/es/a/HamburgerButton/HamburgerButton.js +10 -11
  196. package/dist/es/a/IconList/IconList.js +9 -10
  197. package/dist/es/a/IconList/common/Item/Item.js +17 -20
  198. package/dist/es/a/Label/Label.js +9 -10
  199. package/dist/es/a/Label/styles.scss +18 -17
  200. package/dist/es/a/LoadingCircle/LoadingCircle.js +10 -11
  201. package/dist/es/a/LoadingCircle/styles.scss +35 -37
  202. package/dist/es/a/People/People.js +9 -10
  203. package/dist/es/a/People/common/Person/Person.js +24 -27
  204. package/dist/es/a/People/styles.scss +4 -4
  205. package/dist/es/a/Popover/Popover.js +14 -15
  206. package/dist/es/a/Popover/styles.scss +4 -3
  207. package/dist/es/a/ProgressBar/ProgressBar.js +10 -11
  208. package/dist/es/a/Quote/Quote.js +10 -11
  209. package/dist/es/a/Quote/styles.scss +41 -38
  210. package/dist/es/a/SVG/SVG.js +17 -18
  211. package/dist/es/a/SVG/common/UseSVG/UseSVG.js +19 -22
  212. package/dist/es/a/SnapScroller/SnapScroller.js +8 -9
  213. package/dist/es/a/SnapScroller/styles.scss +6 -4
  214. package/dist/es/a/Spinner/Spinner.js +7 -8
  215. package/dist/es/a/Timestamp/Timestamp.js +14 -15
  216. package/dist/es/a/index.js +0 -1
  217. package/dist/es/b/Button/Button.js +13 -14
  218. package/dist/es/b/Button/styles.scss +2 -2
  219. package/dist/es/b/Logo/Logo.js +12 -13
  220. package/dist/es/b/Logo/styles.scss +4 -2
  221. package/dist/es/b/Page/Page.js +10 -11
  222. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +9 -11
  223. package/dist/es/b/Page/common/Section/Section.js +7 -8
  224. package/dist/es/b/Page/styles.scss +7 -6
  225. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +11 -12
  226. package/dist/es/b/SocialMediaButton/styles.scss +1 -1
  227. package/dist/es/b/ThemeSelector/ThemeSelector.js +8 -9
  228. package/dist/es/b/Title/Title.js +27 -30
  229. package/dist/es/c/ContentSlides/ContentSlides.js +12 -15
  230. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +11 -12
  231. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +14 -15
  232. package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +8 -9
  233. package/dist/es/c/ContentSlides/common/Slide/Slide.js +8 -9
  234. package/dist/es/c/ContentSlides/styles.scss +2 -4
  235. package/dist/es/c/Modal/Modal.js +10 -11
  236. package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +20 -23
  237. package/dist/es/c/Modal/styles.scss +7 -5
  238. package/dist/es/c/Shortener/Shortener.js +11 -12
  239. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +9 -10
  240. package/dist/es/c/SocialMediaShareButton/styles.scss +3 -3
  241. package/dist/es/f/FormInput/FormInput.js +7 -8
  242. package/dist/es/f/FormInput/styles.scss +4 -4
  243. package/dist/es/f/common/Debugger/Debugger.js +7 -8
  244. package/dist/es/f/common/Description/Description.js +9 -10
  245. package/dist/es/f/common/Label/Label.js +11 -12
  246. package/dist/es/f/common/Label/styles.scss +1 -1
  247. package/dist/es/f/fields/Checkbox/Checkbox.js +11 -12
  248. package/dist/es/f/fields/Checkbox/styles.scss +9 -8
  249. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +17 -18
  250. package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +13 -14
  251. package/dist/es/f/fields/ChoicesInput/styles.scss +4 -4
  252. package/dist/es/f/fields/QueryChoices/QueryChoices.js +16 -20
  253. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +27 -31
  254. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +22 -24
  255. package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +22 -25
  256. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +24 -26
  257. package/dist/es/f/fields/QueryCombobox/styles.scss +59 -59
  258. package/dist/es/f/fields/QuerySelect/QuerySelect.js +24 -28
  259. package/dist/es/f/fields/RatingsInput/RatingsInput.js +16 -17
  260. package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +15 -16
  261. package/dist/es/f/fields/RatingsInput/styles.scss +8 -9
  262. package/dist/es/f/fields/SelectInput/SelectInput.js +16 -17
  263. package/dist/es/f/fields/SelectInput/styles.scss +6 -6
  264. package/dist/es/f/fields/TextInput/TextInput.js +18 -19
  265. package/dist/es/f/fields/TextInput/styles.scss +4 -4
  266. package/dist/es/f/fields/TextareaInput/TextareaInput.js +20 -21
  267. package/dist/es/f/fields/TextareaInput/styles.scss +7 -6
  268. package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +15 -21
  269. package/dist/es/r/common/PrivateRoute/PrivateRoute.js +6 -7
  270. package/dist/es/test/QueryLoader/QueryLoader.js +1 -1
  271. package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +5 -6
  272. package/dist/es/utils/hooks/useDynamicPosition.js +9 -10
  273. package/dist/es/utils/hooks/useWindowSize.js +1 -2
  274. package/jest.config.js +5 -5
  275. package/package.json +44 -82
  276. package/src/stories/b/Page.stories.jsx +2 -1
  277. package/src/stories/original/Button.jsx +55 -0
  278. package/src/stories/original/Button.stories.js +39 -0
  279. package/src/stories/original/Header.jsx +64 -0
  280. package/src/stories/original/Header.stories.js +22 -0
  281. package/src/stories/original/Introduction.mdx +211 -0
  282. package/src/stories/original/Page.jsx +76 -0
  283. package/src/stories/original/Page.stories.js +26 -0
  284. package/src/stories/original/assets/code-brackets.svg +1 -0
  285. package/src/stories/original/assets/colors.svg +1 -0
  286. package/src/stories/original/assets/comments.svg +1 -0
  287. package/src/stories/original/assets/direction.svg +1 -0
  288. package/src/stories/original/assets/flow.svg +1 -0
  289. package/src/stories/original/assets/plugin.svg +1 -0
  290. package/src/stories/original/assets/repo.svg +1 -0
  291. package/src/stories/original/assets/stackalt.svg +1 -0
  292. package/src/stories/original/button.css +30 -0
  293. package/src/stories/original/header.css +32 -0
  294. package/src/stories/original/page.css +69 -0
  295. package/src/ui/a/ContentTree/styles.scss +20 -20
  296. package/src/ui/a/Conversation/styles.scss +1 -0
  297. package/src/ui/a/Label/styles.scss +18 -17
  298. package/src/ui/a/LoadingCircle/styles.scss +35 -37
  299. package/src/ui/a/People/styles.scss +4 -4
  300. package/src/ui/a/Popover/styles.scss +4 -3
  301. package/src/ui/a/Quote/styles.scss +41 -38
  302. package/src/ui/a/SnapScroller/styles.scss +6 -4
  303. package/src/ui/a/index.js +0 -1
  304. package/src/ui/b/Button/styles.scss +2 -2
  305. package/src/ui/b/Logo/styles.scss +4 -2
  306. package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +1 -1
  307. package/src/ui/b/Page/styles.scss +7 -6
  308. package/src/ui/b/SocialMediaButton/styles.scss +1 -1
  309. package/src/ui/c/ContentSlides/styles.scss +2 -4
  310. package/src/ui/c/Modal/styles.scss +7 -5
  311. package/src/ui/c/SocialMediaShareButton/styles.scss +3 -3
  312. package/src/ui/f/FormInput/styles.scss +4 -4
  313. package/src/ui/f/common/Label/styles.scss +1 -1
  314. package/src/ui/f/fields/Checkbox/styles.scss +9 -8
  315. package/src/ui/f/fields/ChoicesInput/styles.scss +4 -4
  316. package/src/ui/f/fields/QueryCombobox/styles.scss +59 -59
  317. package/src/ui/f/fields/RatingsInput/styles.scss +8 -9
  318. package/src/ui/f/fields/SelectInput/styles.scss +6 -6
  319. package/src/ui/f/fields/TextInput/styles.scss +4 -4
  320. package/src/ui/f/fields/TextareaInput/styles.scss +7 -6
  321. package/src/ui/test/QueryLoader/QueryLoader.jsx +1 -1
  322. package/{src → tests}/__snapshots__/Storyshots.test.js.snap +687 -301
  323. package/tests/staticStub.js +1 -0
  324. package/.storybook/manager-head.html +0 -6
  325. package/.storybook/preview-head.html +0 -5
  326. package/README.md +0 -1
  327. package/build-storybook.log +0 -2978
  328. package/config/CSSStub.js +0 -1
  329. package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +0 -105
  330. package/dist/cjs/a/AnimatedCounter/index.js +0 -13
  331. package/dist/cjs/a/AnimatedCounter/styles.scss +0 -16
  332. package/dist/es/a/AnimatedCounter/AnimatedCounter.js +0 -98
  333. package/dist/es/a/AnimatedCounter/index.js +0 -2
  334. package/dist/es/a/AnimatedCounter/styles.scss +0 -16
  335. package/postcss.config.js +0 -13
  336. package/relay.config.js +0 -12
  337. package/src/assets/images/Ellipse1.png +0 -0
  338. package/src/assets/images/Ellipse2.png +0 -0
  339. package/src/assets/images/Fundraising.svg +0 -40
  340. package/src/assets/images/ParetoSupport.svg +0 -190
  341. package/src/assets/images/ParetoWorld.svg +0 -207
  342. package/src/assets/images/Vector.png +0 -0
  343. package/src/assets/images/email-attach.svg +0 -1
  344. package/src/assets/images/email-delete.svg +0 -1
  345. package/src/assets/images/favicon.png +0 -0
  346. package/src/assets/images/onboarding/focus-on-strategic-work.webp +0 -0
  347. package/src/assets/images/onboarding/launch-project.webp +0 -0
  348. package/src/assets/images/onboarding/meet-pareto-partner.webp +0 -0
  349. package/src/assets/images/quality.png +0 -0
  350. package/src/assets/images/sprite.svg +0 -253
  351. package/src/assets/images/test +0 -1
  352. package/src/local.scss +0 -16
  353. package/src/stories/a/AnimatedCounter.stories.jsx +0 -34
  354. package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +0 -118
  355. package/src/ui/a/AnimatedCounter/index.js +0 -2
  356. package/src/ui/a/AnimatedCounter/styles.scss +0 -16
  357. /package/{src → tests}/Storyshots.test.js +0 -0
  358. /package/{config → tests}/global-setup.js +0 -0
  359. /package/{config → tests}/test-setup.js +0 -0
@@ -12,19 +12,18 @@ const componentClassName = 'message';
12
12
  /**
13
13
  * This is the component description.
14
14
  */
15
- const Message = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- message,
21
- sender,
22
- from,
23
- attachment,
24
- attachmentIcon,
25
- attachmentColor
26
- // ...otherProps
27
- } = _ref;
15
+ const Message = ({
16
+ id,
17
+ className: userClassName,
18
+ style,
19
+ message,
20
+ sender,
21
+ from,
22
+ attachment,
23
+ attachmentIcon,
24
+ attachmentColor
25
+ // ...otherProps
26
+ }) => {
28
27
  const {
29
28
  ourColor,
30
29
  theirColor
@@ -1,4 +1,5 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+ /* stylelint-disable selector-max-compound-selectors -- exception */
2
3
 
3
4
  @use "@pareto-engineering/bem";
4
5
  @use "@pareto-engineering/styles/src/mixins";
@@ -12,18 +12,17 @@ const componentClassName = 'dot-info';
12
12
  /**
13
13
  * This is the component description.
14
14
  */
15
- const DotInfo = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- booleanValue,
21
- height,
22
- colorTrue,
23
- colorFalse,
24
- colorEmpty
25
- // ...otherProps
26
- } = _ref;
15
+ const DotInfo = ({
16
+ id,
17
+ className: userClassName,
18
+ style,
19
+ booleanValue,
20
+ height,
21
+ colorTrue,
22
+ colorFalse,
23
+ colorEmpty
24
+ // ...otherProps
25
+ }) => {
27
26
  useLayoutEffect(() => {
28
27
  import("./styles.scss");
29
28
  }, []);
@@ -12,15 +12,14 @@ const componentClassName = 'photo-card';
12
12
  /**
13
13
  * This is the component description.
14
14
  */
15
- const Figure = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- src,
21
- alt,
22
- caption
23
- } = _ref;
15
+ const Figure = ({
16
+ id,
17
+ className: userClassName,
18
+ style,
19
+ src,
20
+ alt,
21
+ caption
22
+ }) => {
24
23
  useLayoutEffect(() => {
25
24
  import("./styles.scss");
26
25
  }, []);
@@ -14,17 +14,16 @@ const hamburgerType = 'squeeze'; // docs : https://jonsuh.com/hamburgers/#sass
14
14
  /**
15
15
  * This is the component description.
16
16
  */
17
- const HamburgerButton = _ref => {
18
- let {
19
- id,
20
- className: userClassName,
21
- style,
22
- children,
23
- isOpen,
24
- ariaLabel,
25
- color,
26
- ...otherProps
27
- } = _ref;
17
+ const HamburgerButton = ({
18
+ id,
19
+ className: userClassName,
20
+ style,
21
+ children,
22
+ isOpen,
23
+ ariaLabel,
24
+ color,
25
+ ...otherProps
26
+ }) => {
28
27
  useLayoutEffect(() => {
29
28
  import("./styles.scss");
30
29
  }, []);
@@ -14,16 +14,15 @@ const componentClassName = 'icon-list';
14
14
  /**
15
15
  * This is the component description.
16
16
  */
17
- const IconList = _ref => {
18
- let {
19
- id,
20
- className: userClassName,
21
- style,
22
- children,
23
- icon,
24
- iconHover,
25
- ...otherProps
26
- } = _ref;
17
+ const IconList = ({
18
+ id,
19
+ className: userClassName,
20
+ style,
21
+ children,
22
+ icon,
23
+ iconHover,
24
+ ...otherProps
25
+ }) => {
27
26
  useLayoutEffect(() => {
28
27
  import("./styles.scss");
29
28
  }, []);
@@ -11,26 +11,23 @@ const componentClassName = styleNames.elementItem;
11
11
  /**
12
12
  * This is the component description.
13
13
  */
14
- const Item = _ref => {
15
- let {
16
- id,
17
- className: userClassName,
18
- style,
19
- children,
20
- icon,
21
- iconHover,
22
- ...otherProps
23
- } = _ref;
24
- return /*#__PURE__*/React.createElement("li", _extends({
25
- id: id,
26
- className: [componentClassName, userClassName].filter(e => e).join(' '),
27
- style: {
28
- ...style,
29
- '--list-icon': icon && `"${icon}"`,
30
- '--list-icon-hover': iconHover && `"${iconHover}"`
31
- }
32
- }, otherProps), children);
33
- };
14
+ const Item = ({
15
+ id,
16
+ className: userClassName,
17
+ style,
18
+ children,
19
+ icon,
20
+ iconHover,
21
+ ...otherProps
22
+ }) => /*#__PURE__*/React.createElement("li", _extends({
23
+ id: id,
24
+ className: [componentClassName, userClassName].filter(e => e).join(' '),
25
+ style: {
26
+ ...style,
27
+ '--list-icon': icon && `"${icon}"`,
28
+ '--list-icon-hover': iconHover && `"${iconHover}"`
29
+ }
30
+ }, otherProps), children);
34
31
  Item.propTypes = {
35
32
  /**
36
33
  * The HTML id for this element
@@ -12,16 +12,15 @@ const componentClassName = 'label';
12
12
  /**
13
13
  * This is the component description.
14
14
  */
15
- const Label = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- children,
21
- color,
22
- isCompact,
23
- isGhost
24
- } = _ref;
15
+ const Label = ({
16
+ id,
17
+ className: userClassName,
18
+ style,
19
+ children,
20
+ color,
21
+ isCompact,
22
+ isGhost
23
+ }) => {
25
24
  useLayoutEffect(() => {
26
25
  import("./styles.scss");
27
26
  }, []);
@@ -1,4 +1,5 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
  $default-padding-bottom: .4em;
@@ -13,22 +14,22 @@ $default-image-size: 2em;
13
14
  $default-font-size: calc(1em * var(--s-1));
14
15
 
15
16
  .#{bem.$base}.label {
16
- align-items: center;
17
- background: var(--x, var(--#{$default-color}));
18
- border-radius: 3em;
19
- color: var(--on-x, var(--on-#{$default-color}));
20
- display: inline-flex;
21
- font-size: $default-font-size;
22
- padding: $default-padding;
23
- white-space: nowrap;
17
+ align-items: center;
18
+ background: var(--x, var(--#{$default-color}));
19
+ border-radius: 3em;
20
+ color: var(--on-x, var(--on-#{$default-color}));
21
+ display: inline-flex;
22
+ font-size: $default-font-size;
23
+ padding: $default-padding;
24
+ white-space: nowrap;
24
25
 
25
- &.#{bem.$modifier-compact} {
26
- padding: $compact-padding;
27
- }
26
+ &.#{bem.$modifier-compact} {
27
+ padding: $compact-padding;
28
+ }
28
29
 
29
- &.#{bem.$modifier-ghost} {
30
- background: transparent;
31
- border: 1px solid var(--x, var(--#{$default-color}));
32
- color: var(--x, var(--#{$default-color}));
33
- }
34
- }
30
+ &.#{bem.$modifier-ghost} {
31
+ background: transparent;
32
+ border: 1px solid var(--x, var(--#{$default-color}));
33
+ color: var(--x, var(--#{$default-color}));
34
+ }
35
+ }
@@ -12,17 +12,16 @@ const componentClassName = 'loading-circle';
12
12
  /**
13
13
  * This is the component description.
14
14
  */
15
- const LoadingCircle = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- heightWidth,
20
- strokeLinecap,
21
- strokeWidth,
22
- animationDuration,
23
- style
24
- // ...otherProps
25
- } = _ref;
15
+ const LoadingCircle = ({
16
+ id,
17
+ className: userClassName,
18
+ heightWidth,
19
+ strokeLinecap,
20
+ strokeWidth,
21
+ animationDuration,
22
+ style
23
+ // ...otherProps
24
+ }) => {
26
25
  useLayoutEffect(() => {
27
26
  import("./styles.scss");
28
27
  }, []);
@@ -1,49 +1,47 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
 
5
6
  $animation-duration:var(--animation-duration, 2s);
6
7
  $stroke-color:var(--x);
7
8
 
8
- .#{bem.$base}.loading-circle{
9
-
10
- height: var(--height-width);
11
- width: var(--height-width);
12
-
13
- @keyframes rotate {
14
- 100% {
15
- transform: rotate(360deg);
16
- }
9
+ .#{bem.$base}.loading-circle {
10
+ height: var(--height-width);
11
+ width: var(--height-width);
12
+ @keyframes rotate {
13
+ 100% {
14
+ transform: rotate(360deg);
15
+ }
16
+ }
17
+ @keyframes dash-anim {
18
+ 0% {
19
+ stroke-dasharray: 1, 200;
20
+ stroke-dashoffset: 0;
17
21
  }
18
22
 
19
- @keyframes dash-anim {
20
- 0% {
21
- stroke-dasharray: 1, 200;
22
- stroke-dashoffset: 0;
23
- }
24
-
25
- 50% {
26
- stroke-dasharray: 89, 200;
27
- stroke-dashoffset: -35px;
28
- }
29
-
30
- 100% {
31
- stroke-dasharray: 89, 200;
32
- stroke-dashoffset: -124px;
33
- }
23
+ 50% {
24
+ stroke-dasharray: 89, 200;
25
+ stroke-dashoffset: -35px;
34
26
  }
35
27
 
36
- svg.svg-circle {
37
- transform-origin: center center;
38
- margin: auto;
39
- animation: rotate $animation-duration linear infinite;
40
-
41
- circle {
42
- animation: dash-anim $animation-duration ease-in-out infinite;
43
- stroke: $stroke-color;
44
- stroke-width: var(--stroke-width, 8);
45
- stroke-dasharray: 1, 200;
46
- stroke-dashoffset: 0;
47
- }
28
+ 100% {
29
+ stroke-dasharray: 89, 200;
30
+ stroke-dashoffset: -124px;
31
+ }
32
+ }
33
+
34
+ svg.svg-circle {
35
+ animation: rotate $animation-duration linear infinite;
36
+ margin: auto;
37
+ transform-origin: center center;
38
+
39
+ circle {
40
+ animation: dash-anim $animation-duration ease-in-out infinite;
41
+ stroke: $stroke-color;
42
+ stroke-dasharray: 1, 200;
43
+ stroke-dashoffset: 0;
44
+ stroke-width: var(--stroke-width, 8);
48
45
  }
49
- }
46
+ }
47
+ }
@@ -13,16 +13,15 @@ const componentClassName = 'people';
13
13
  /**
14
14
  * This is the component description.
15
15
  */
16
- const People = _ref => {
17
- let {
18
- id,
19
- className: userClassName,
20
- style,
21
- imageSize,
22
- children,
23
- columnWidth
24
- // ...otherProps
25
- } = _ref;
16
+ const People = ({
17
+ id,
18
+ className: userClassName,
19
+ style,
20
+ imageSize,
21
+ children,
22
+ columnWidth
23
+ // ...otherProps
24
+ }) => {
26
25
  useLayoutEffect(() => {
27
26
  import("./styles.scss");
28
27
  }, []);
@@ -11,33 +11,30 @@ const componentClassName = 'person';
11
11
  /**
12
12
  * This is the component description.
13
13
  */
14
- const Person = _ref => {
15
- let {
16
- id,
17
- className: userClassName,
18
- style,
19
- name,
20
- image,
21
- role,
22
- color
23
- // ...otherProps
24
- } = _ref;
25
- return /*#__PURE__*/React.createElement("div", {
26
- id: id,
27
- className: [baseClassName, componentClassName, userClassName, `y-${color}`].filter(e => e).join(' '),
28
- style: style
29
- }, /*#__PURE__*/React.createElement("img", {
30
- className: "image v50 mr-v",
31
- src: image,
32
- alt: `${name}, ${role}`
33
- }), /*#__PURE__*/React.createElement("div", {
34
- className: "details"
35
- }, /*#__PURE__*/React.createElement("p", {
36
- className: "name"
37
- }, name), /*#__PURE__*/React.createElement("p", {
38
- className: "role"
39
- }, role)));
40
- };
14
+ const Person = ({
15
+ id,
16
+ className: userClassName,
17
+ style,
18
+ name,
19
+ image,
20
+ role,
21
+ color
22
+ // ...otherProps
23
+ }) => /*#__PURE__*/React.createElement("div", {
24
+ id: id,
25
+ className: [baseClassName, componentClassName, userClassName, `y-${color}`].filter(e => e).join(' '),
26
+ style: style
27
+ }, /*#__PURE__*/React.createElement("img", {
28
+ className: "image v50 mr-v",
29
+ src: image,
30
+ alt: `${name}, ${role}`
31
+ }), /*#__PURE__*/React.createElement("div", {
32
+ className: "details"
33
+ }, /*#__PURE__*/React.createElement("p", {
34
+ className: "name"
35
+ }, name), /*#__PURE__*/React.createElement("p", {
36
+ className: "role"
37
+ }, role)));
41
38
  Person.propTypes = {
42
39
  /**
43
40
  * The HTML id for this element
@@ -15,8 +15,8 @@ $default-image-padding: 1.5rem;
15
15
 
16
16
  .#{bem.$base}.people {
17
17
  display: grid;
18
+ gap: $default-grid-gap;
18
19
  grid-template-columns: repeat(auto-fill, minmax(var(--column-width), 1fr));
19
- gap:$default-grid-gap;
20
20
 
21
21
 
22
22
  .person {
@@ -29,19 +29,19 @@ $default-image-padding: 1.5rem;
29
29
  .image {
30
30
  border-radius: $default-border-radius;
31
31
  height: var(--image-size);
32
- width: var(--image-size);
33
32
  margin-right: $default-image-padding;
33
+ width: var(--image-size);
34
34
  }
35
35
 
36
36
  .details {
37
37
  align-items: flex-start;
38
+ color: var(--grey);
38
39
  display: flex;
39
40
  flex-direction: column;
40
- color: var(--grey);
41
41
 
42
42
  .name {
43
- margin-bottom: .1em;
44
43
  color: var(--grey);
44
+ margin-bottom: .1em;
45
45
  }
46
46
 
47
47
  .role {
@@ -12,21 +12,20 @@ const componentClassName = 'popover';
12
12
  /**
13
13
  * This is the component description.
14
14
  */
15
- const Popover = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- color,
21
- children,
22
- isOpen,
23
- parentRef,
24
- preferredPrimaryOrder,
25
- preferredSecondaryOrder,
26
- offsetXPx,
27
- offsetYPx
28
- // ...otherProps
29
- } = _ref;
15
+ const Popover = ({
16
+ id,
17
+ className: userClassName,
18
+ style,
19
+ color,
20
+ children,
21
+ isOpen,
22
+ parentRef,
23
+ preferredPrimaryOrder,
24
+ preferredSecondaryOrder,
25
+ offsetXPx,
26
+ offsetYPx
27
+ // ...otherProps
28
+ }) => {
30
29
  useLayoutEffect(() => {
31
30
  import("./styles.scss");
32
31
  }, []);
@@ -1,13 +1,14 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
 
4
5
  $default-border: var(--theme-border-style) var(--metadata);
5
6
 
6
7
  .#{bem.$base}.popover {
7
- position: absolute;
8
- z-index: 1;
9
8
  background-color: var(--x);
10
9
  border: $default-border;
10
+ position: absolute;
11
+ z-index: 1;
11
12
 
12
13
  &:not(.open) {
13
14
  display: none;
@@ -30,4 +31,4 @@ $default-border: var(--theme-border-style) var(--metadata);
30
31
  bottom: 100%;
31
32
  top: auto;
32
33
  }
33
- }
34
+ }
@@ -12,17 +12,16 @@ const componentClassName = 'progress-bar';
12
12
  /**
13
13
  * This is the component description. This takes the color x = indigo.
14
14
  */
15
- const ProgressBar = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- attached,
21
- color,
22
- progress,
23
- height
24
- // ...otherProps
25
- } = _ref;
15
+ const ProgressBar = ({
16
+ id,
17
+ className: userClassName,
18
+ style,
19
+ attached,
20
+ color,
21
+ progress,
22
+ height
23
+ // ...otherProps
24
+ }) => {
26
25
  useLayoutEffect(() => {
27
26
  import("./styles.scss");
28
27
  }, []);
@@ -12,17 +12,16 @@ const componentClassName = 'quote';
12
12
  /**
13
13
  * This is the component description.
14
14
  */
15
- const Quote = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- children,
21
- source,
22
- author,
23
- color
24
- // ...otherProps
25
- } = _ref;
15
+ const Quote = ({
16
+ id,
17
+ className: userClassName,
18
+ style,
19
+ children,
20
+ source,
21
+ author,
22
+ color
23
+ // ...otherProps
24
+ }) => {
26
25
  useLayoutEffect(() => {
27
26
  import("./styles.scss");
28
27
  }, []);