@pareto-engineering/design-system 2.0.0-alpha.3 → 2.0.0-alpha.30

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 (283) hide show
  1. package/dist/cjs/{c/SiteFooter/common/Section/Section.js → a/BackgroundGradient/BackgroundGradient.js} +20 -38
  2. package/dist/cjs/a/BackgroundGradient/index.js +15 -0
  3. package/dist/cjs/a/BackgroundGradient/styles.scss +16 -0
  4. package/dist/cjs/a/Conversation/Conversation.js +15 -8
  5. package/dist/cjs/a/Conversation/common/Message/Message.js +33 -6
  6. package/dist/cjs/a/Conversation/styles.scss +128 -33
  7. package/dist/cjs/{experimental/GradientBackground/GradientBackground.js → a/OvalIllustration/OvalIllustration.js} +61 -26
  8. package/dist/cjs/a/OvalIllustration/index.js +15 -0
  9. package/dist/cjs/a/OvalIllustration/styles.scss +102 -0
  10. package/dist/cjs/a/SVG/SVG.js +9 -3
  11. package/dist/cjs/a/Shapes/Shapes.js +39 -9
  12. package/dist/cjs/a/Shapes/styles.scss +77 -21
  13. package/dist/cjs/{c/BlogPostsList/BlogPostsList.js → a/SnapScroller/SnapScroller.js} +15 -11
  14. package/dist/cjs/{c/SiteFooter/common/Section → a/SnapScroller}/index.js +3 -3
  15. package/dist/cjs/a/SnapScroller/styles.scss +38 -0
  16. package/dist/cjs/a/index.js +33 -1
  17. package/dist/cjs/b/Button/Button.js +10 -4
  18. package/dist/cjs/b/Button/styles.scss +83 -19
  19. package/dist/cjs/b/Logo/Logo.js +20 -39
  20. package/dist/cjs/b/Logo/styles.scss +0 -138
  21. package/dist/cjs/b/Page/common/Section/Section.js +56 -5
  22. package/dist/cjs/b/Page/styles.scss +8 -2
  23. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +4 -4
  24. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +4 -3
  25. package/dist/cjs/c/ContentSlides/styles.scss +10 -4
  26. package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
  27. package/dist/cjs/f/common/Label/Label.js +1 -1
  28. package/dist/cjs/f/common/Label/styles.scss +1 -1
  29. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  30. package/dist/cjs/f/fields/ChoicesInput/styles.scss +17 -2
  31. package/dist/cjs/f/fields/SelectInput/SelectInput.js +36 -10
  32. package/dist/cjs/f/fields/SelectInput/styles.scss +13 -8
  33. package/dist/cjs/f/fields/TextInput/TextInput.js +28 -7
  34. package/dist/cjs/f/fields/TextInput/styles.scss +16 -7
  35. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +15 -8
  36. package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -6
  37. package/dist/cjs/f/fields/index.js +0 -24
  38. package/dist/cjs/form-reset.scss +1 -1
  39. package/dist/es/{c/SiteFooter/SiteFooter.js → a/BackgroundGradient/BackgroundGradient.js} +14 -15
  40. package/dist/es/a/BackgroundGradient/index.js +2 -0
  41. package/dist/es/a/BackgroundGradient/styles.scss +16 -0
  42. package/dist/es/a/Conversation/Conversation.js +15 -8
  43. package/dist/es/a/Conversation/common/Message/Message.js +33 -6
  44. package/dist/es/a/Conversation/styles.scss +128 -33
  45. package/dist/es/a/OvalIllustration/OvalIllustration.js +111 -0
  46. package/dist/es/a/OvalIllustration/index.js +2 -0
  47. package/dist/es/a/OvalIllustration/styles.scss +102 -0
  48. package/dist/es/a/SVG/SVG.js +1 -1
  49. package/dist/es/a/Shapes/Shapes.js +39 -9
  50. package/dist/es/a/Shapes/styles.scss +77 -21
  51. package/dist/es/{c/BlogPostsList/BlogPostsList.js → a/SnapScroller/SnapScroller.js} +16 -11
  52. package/dist/es/a/SnapScroller/index.js +2 -0
  53. package/dist/es/a/SnapScroller/styles.scss +38 -0
  54. package/dist/es/a/index.js +5 -1
  55. package/dist/es/b/Button/Button.js +8 -2
  56. package/dist/es/b/Button/styles.scss +83 -19
  57. package/dist/es/b/Logo/Logo.js +20 -39
  58. package/dist/es/b/Logo/styles.scss +0 -138
  59. package/dist/es/b/Page/common/Section/Section.js +55 -4
  60. package/dist/es/b/Page/styles.scss +8 -2
  61. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +4 -4
  62. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +4 -3
  63. package/dist/es/c/ContentSlides/styles.scss +10 -4
  64. package/dist/es/f/common/Debugger/Debugger.js +1 -1
  65. package/dist/es/f/common/Label/Label.js +1 -1
  66. package/dist/es/f/common/Label/styles.scss +1 -1
  67. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  68. package/dist/es/f/fields/ChoicesInput/styles.scss +17 -2
  69. package/dist/es/f/fields/SelectInput/SelectInput.js +36 -10
  70. package/dist/es/f/fields/SelectInput/styles.scss +13 -8
  71. package/dist/es/f/fields/TextInput/TextInput.js +28 -7
  72. package/dist/es/f/fields/TextInput/styles.scss +16 -7
  73. package/dist/es/f/fields/TextareaInput/TextareaInput.js +15 -8
  74. package/dist/es/f/fields/TextareaInput/styles.scss +19 -6
  75. package/dist/es/f/fields/index.js +0 -3
  76. package/dist/es/form-reset.scss +1 -1
  77. package/package.json +3 -3
  78. package/src/__snapshots__/Storyshots.test.js.snap +5048 -2508
  79. package/src/local.scss +1 -0
  80. package/src/stories/a/BackgroundGradient.stories.jsx +38 -0
  81. package/src/stories/a/Conversation.stories.jsx +78 -1
  82. package/src/stories/a/OvalIllustration.stories.jsx +59 -0
  83. package/src/stories/a/Shapes.stories.jsx +143 -0
  84. package/src/stories/a/SnapScroller.stories.jsx +98 -0
  85. package/src/stories/b/Button.stories.jsx +86 -88
  86. package/src/stories/b/Logo.stories.jsx +9 -9
  87. package/src/stories/b/Page.stories.jsx +51 -1
  88. package/src/stories/c/ContentSlides.stories.jsx +154 -2
  89. package/src/stories/f/SelectInput.stories.jsx +36 -5
  90. package/src/stories/f/TextInput.stories.jsx +15 -4
  91. package/src/stories/f/TextareaInput.stories.jsx +42 -6
  92. package/src/ui/a/BackgroundGradient/BackgroundGradient.jsx +76 -0
  93. package/src/ui/a/BackgroundGradient/index.js +2 -0
  94. package/src/ui/a/BackgroundGradient/styles.scss +16 -0
  95. package/src/ui/a/Conversation/Conversation.jsx +15 -7
  96. package/src/ui/a/Conversation/common/Message/Message.jsx +40 -7
  97. package/src/ui/a/Conversation/styles.scss +128 -33
  98. package/src/ui/a/OvalIllustration/OvalIllustration.jsx +134 -0
  99. package/src/ui/a/OvalIllustration/index.js +2 -0
  100. package/src/ui/a/OvalIllustration/styles.scss +102 -0
  101. package/src/ui/a/SVG/SVG.jsx +1 -1
  102. package/src/ui/a/Shapes/Shapes.jsx +191 -0
  103. package/{dist/es/c/BlogPostsList/common/Card → src/ui/a/Shapes}/index.js +1 -1
  104. package/src/ui/a/Shapes/styles.scss +255 -0
  105. package/src/ui/a/SnapScroller/SnapScroller.jsx +83 -0
  106. package/src/ui/a/SnapScroller/index.js +2 -0
  107. package/src/ui/a/SnapScroller/styles.scss +38 -0
  108. package/src/ui/a/index.js +4 -0
  109. package/src/ui/b/Button/Button.jsx +9 -1
  110. package/src/ui/b/Button/styles.scss +83 -19
  111. package/src/ui/b/Logo/Logo.jsx +17 -40
  112. package/src/ui/b/Logo/styles.scss +0 -138
  113. package/src/ui/b/Page/common/Section/Section.jsx +68 -2
  114. package/src/ui/b/Page/styles.scss +8 -2
  115. package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +4 -4
  116. package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +3 -2
  117. package/src/ui/c/ContentSlides/styles.scss +10 -4
  118. package/src/ui/f/common/Debugger/Debugger.jsx +1 -1
  119. package/src/ui/f/common/Label/Label.jsx +1 -1
  120. package/src/ui/f/common/Label/styles.scss +1 -1
  121. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +1 -1
  122. package/src/ui/f/fields/ChoicesInput/styles.scss +17 -2
  123. package/src/ui/f/fields/SelectInput/SelectInput.jsx +43 -5
  124. package/src/ui/f/fields/SelectInput/styles.scss +13 -8
  125. package/src/ui/f/fields/TextInput/TextInput.jsx +24 -3
  126. package/src/ui/f/fields/TextInput/styles.scss +16 -7
  127. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +24 -13
  128. package/src/ui/f/fields/TextareaInput/styles.scss +19 -6
  129. package/src/ui/f/fields/index.js +0 -3
  130. package/src/ui/form-reset.scss +1 -1
  131. package/dist/cjs/a/GradientBackground/GradientBackground.js +0 -140
  132. package/dist/cjs/a/GradientBackground/index.js +0 -15
  133. package/dist/cjs/a/GradientBackground/styles.scss +0 -191
  134. package/dist/cjs/c/AcceptCookies/AcceptCookies.js +0 -134
  135. package/dist/cjs/c/AcceptCookies/index.js +0 -15
  136. package/dist/cjs/c/AcceptCookies/styles.scss +0 -49
  137. package/dist/cjs/c/BlogCategoryButton/BlogCategoryButton.js +0 -95
  138. package/dist/cjs/c/BlogCategoryButton/index.js +0 -15
  139. package/dist/cjs/c/BlogContext/BlogContextProvider.js +0 -63
  140. package/dist/cjs/c/BlogContext/Context.js +0 -16
  141. package/dist/cjs/c/BlogContext/ContextProvider.js +0 -63
  142. package/dist/cjs/c/BlogContext/index.js +0 -31
  143. package/dist/cjs/c/BlogContext/useBlog.js +0 -16
  144. package/dist/cjs/c/BlogPost/BlogPost.js +0 -147
  145. package/dist/cjs/c/BlogPost/index.js +0 -15
  146. package/dist/cjs/c/BlogPost/styles.scss +0 -33
  147. package/dist/cjs/c/BlogPostsList/common/Card/Card.js +0 -170
  148. package/dist/cjs/c/BlogPostsList/common/Card/index.js +0 -15
  149. package/dist/cjs/c/BlogPostsList/common/index.js +0 -13
  150. package/dist/cjs/c/BlogPostsList/index.js +0 -15
  151. package/dist/cjs/c/BlogPostsList/styles.scss +0 -72
  152. package/dist/cjs/c/SiteFooter/SiteFooter.js +0 -73
  153. package/dist/cjs/c/SiteFooter/common/index.js +0 -13
  154. package/dist/cjs/c/SiteFooter/index.js +0 -15
  155. package/dist/cjs/c/SiteFooter/styles.scss +0 -34
  156. package/dist/cjs/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -108
  157. package/dist/cjs/c/SiteHeaderCTA/index.js +0 -15
  158. package/dist/cjs/c/SiteHeaderCTA/styles.scss +0 -44
  159. package/dist/cjs/c/SiteMission/SiteMission.js +0 -113
  160. package/dist/cjs/c/SiteMission/index.js +0 -15
  161. package/dist/cjs/c/SiteMission/styles.scss +0 -30
  162. package/dist/cjs/c/SiteNavigation/SiteNavigation.js +0 -130
  163. package/dist/cjs/c/SiteNavigation/index.js +0 -15
  164. package/dist/cjs/c/SiteNavigation/styles.scss +0 -118
  165. package/dist/cjs/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -98
  166. package/dist/cjs/c/SiteOnboardingStep/index.js +0 -15
  167. package/dist/cjs/c/SiteOnboardingStep/styles.scss +0 -51
  168. package/dist/cjs/c/SitePricing/SitePricing.js +0 -108
  169. package/dist/cjs/c/SitePricing/index.js +0 -15
  170. package/dist/cjs/c/SitePricing/styles.scss +0 -73
  171. package/dist/cjs/c/SiteServices/SiteServices.js +0 -211
  172. package/dist/cjs/c/SiteServices/index.js +0 -15
  173. package/dist/cjs/c/SiteServices/styles.scss +0 -138
  174. package/dist/cjs/c/TeamGallery/TeamGallery.js +0 -80
  175. package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +0 -84
  176. package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +0 -15
  177. package/dist/cjs/c/TeamGallery/common/index.js +0 -13
  178. package/dist/cjs/c/TeamGallery/index.js +0 -15
  179. package/dist/cjs/c/TeamGallery/styles.scss +0 -100
  180. package/dist/cjs/c/Testimonials/Testimonials.js +0 -119
  181. package/dist/cjs/c/Testimonials/index.js +0 -15
  182. package/dist/cjs/c/Testimonials/styles.scss +0 -112
  183. package/dist/cjs/experimental/GradientBackground/index.js +0 -15
  184. package/dist/cjs/experimental/GradientBackground/styles.scss +0 -64
  185. package/dist/cjs/experimental/index.js +0 -13
  186. package/dist/cjs/f/fields/CheckboxInput/CheckboxInput.js +0 -105
  187. package/dist/cjs/f/fields/CheckboxInput/index.js +0 -15
  188. package/dist/cjs/f/fields/CheckboxInput/styles.scss +0 -28
  189. package/dist/cjs/f/fields/RadioInput/RadioInput.js +0 -110
  190. package/dist/cjs/f/fields/RadioInput/index.js +0 -15
  191. package/dist/cjs/f/fields/RadioInput/styles.scss +0 -26
  192. package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +0 -129
  193. package/dist/cjs/f/fields/TaskRecommendation/index.js +0 -15
  194. package/dist/cjs/f/fields/TaskRecommendation/styles.scss +0 -37
  195. package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -131
  196. package/dist/cjs/f/fields/TaskRecommendationInput/index.js +0 -15
  197. package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +0 -41
  198. package/dist/cjs/f/fields/TextArea/TextArea.js +0 -141
  199. package/dist/cjs/f/fields/TextArea/index.js +0 -15
  200. package/dist/cjs/f/fields/TextArea/styles.scss +0 -19
  201. package/dist/es/a/GradientBackground/GradientBackground.js +0 -118
  202. package/dist/es/a/GradientBackground/index.js +0 -2
  203. package/dist/es/a/GradientBackground/styles.scss +0 -191
  204. package/dist/es/c/AcceptCookies/AcceptCookies.js +0 -117
  205. package/dist/es/c/AcceptCookies/index.js +0 -2
  206. package/dist/es/c/AcceptCookies/styles.scss +0 -49
  207. package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +0 -68
  208. package/dist/es/c/BlogCategoryButton/index.js +0 -2
  209. package/dist/es/c/BlogContext/BlogContextProvider.js +0 -45
  210. package/dist/es/c/BlogContext/Context.js +0 -2
  211. package/dist/es/c/BlogContext/ContextProvider.js +0 -45
  212. package/dist/es/c/BlogContext/index.js +0 -4
  213. package/dist/es/c/BlogContext/useBlog.js +0 -3
  214. package/dist/es/c/BlogPost/BlogPost.js +0 -128
  215. package/dist/es/c/BlogPost/index.js +0 -2
  216. package/dist/es/c/BlogPost/styles.scss +0 -33
  217. package/dist/es/c/BlogPostsList/common/Card/Card.js +0 -143
  218. package/dist/es/c/BlogPostsList/common/index.js +0 -1
  219. package/dist/es/c/BlogPostsList/index.js +0 -2
  220. package/dist/es/c/BlogPostsList/styles.scss +0 -72
  221. package/dist/es/c/SiteFooter/common/Section/Section.js +0 -73
  222. package/dist/es/c/SiteFooter/common/Section/index.js +0 -2
  223. package/dist/es/c/SiteFooter/common/index.js +0 -1
  224. package/dist/es/c/SiteFooter/index.js +0 -2
  225. package/dist/es/c/SiteFooter/styles.scss +0 -34
  226. package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -92
  227. package/dist/es/c/SiteHeaderCTA/index.js +0 -2
  228. package/dist/es/c/SiteHeaderCTA/styles.scss +0 -44
  229. package/dist/es/c/SiteMission/SiteMission.js +0 -96
  230. package/dist/es/c/SiteMission/index.js +0 -2
  231. package/dist/es/c/SiteMission/styles.scss +0 -30
  232. package/dist/es/c/SiteNavigation/SiteNavigation.js +0 -111
  233. package/dist/es/c/SiteNavigation/index.js +0 -2
  234. package/dist/es/c/SiteNavigation/styles.scss +0 -118
  235. package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -81
  236. package/dist/es/c/SiteOnboardingStep/index.js +0 -2
  237. package/dist/es/c/SiteOnboardingStep/styles.scss +0 -51
  238. package/dist/es/c/SitePricing/SitePricing.js +0 -91
  239. package/dist/es/c/SitePricing/index.js +0 -2
  240. package/dist/es/c/SitePricing/styles.scss +0 -73
  241. package/dist/es/c/SiteServices/SiteServices.js +0 -195
  242. package/dist/es/c/SiteServices/index.js +0 -2
  243. package/dist/es/c/SiteServices/styles.scss +0 -138
  244. package/dist/es/c/TeamGallery/TeamGallery.js +0 -64
  245. package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +0 -64
  246. package/dist/es/c/TeamGallery/common/PersonCard/index.js +0 -2
  247. package/dist/es/c/TeamGallery/common/index.js +0 -1
  248. package/dist/es/c/TeamGallery/index.js +0 -2
  249. package/dist/es/c/TeamGallery/styles.scss +0 -100
  250. package/dist/es/c/Testimonials/Testimonials.js +0 -99
  251. package/dist/es/c/Testimonials/index.js +0 -2
  252. package/dist/es/c/Testimonials/styles.scss +0 -112
  253. package/dist/es/experimental/GradientBackground/GradientBackground.js +0 -76
  254. package/dist/es/experimental/GradientBackground/index.js +0 -2
  255. package/dist/es/experimental/GradientBackground/styles.scss +0 -64
  256. package/dist/es/experimental/index.js +0 -1
  257. package/dist/es/f/fields/CheckboxInput/CheckboxInput.js +0 -85
  258. package/dist/es/f/fields/CheckboxInput/index.js +0 -2
  259. package/dist/es/f/fields/CheckboxInput/styles.scss +0 -28
  260. package/dist/es/f/fields/RadioInput/RadioInput.js +0 -90
  261. package/dist/es/f/fields/RadioInput/index.js +0 -2
  262. package/dist/es/f/fields/RadioInput/styles.scss +0 -26
  263. package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +0 -111
  264. package/dist/es/f/fields/TaskRecommendation/index.js +0 -2
  265. package/dist/es/f/fields/TaskRecommendation/styles.scss +0 -37
  266. package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -111
  267. package/dist/es/f/fields/TaskRecommendationInput/index.js +0 -2
  268. package/dist/es/f/fields/TaskRecommendationInput/styles.scss +0 -41
  269. package/dist/es/f/fields/TextArea/TextArea.js +0 -124
  270. package/dist/es/f/fields/TextArea/index.js +0 -2
  271. package/dist/es/f/fields/TextArea/styles.scss +0 -19
  272. package/src/stories/f/CheckboxInput.stories.jsx +0 -37
  273. package/src/stories/f/RadioInput.stories.jsx +0 -37
  274. package/src/stories/f/TaskRecommendationInput.stories.jsx +0 -38
  275. package/src/ui/f/fields/CheckboxInput/CheckboxInput.jsx +0 -107
  276. package/src/ui/f/fields/CheckboxInput/index.js +0 -2
  277. package/src/ui/f/fields/CheckboxInput/styles.scss +0 -28
  278. package/src/ui/f/fields/RadioInput/RadioInput.jsx +0 -112
  279. package/src/ui/f/fields/RadioInput/index.js +0 -2
  280. package/src/ui/f/fields/RadioInput/styles.scss +0 -26
  281. package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +0 -130
  282. package/src/ui/f/fields/TaskRecommendationInput/index.js +0 -2
  283. package/src/ui/f/fields/TaskRecommendationInput/styles.scss +0 -41
@@ -0,0 +1,111 @@
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
+ const baseClassName = styleNames.base;
8
+ const componentClassName = 'oval-illustration';
9
+ /**
10
+ * This is the component description.
11
+ */
12
+
13
+ const OvalIllustration = ({
14
+ id,
15
+ className: userClassName,
16
+ style,
17
+ layout,
18
+ src,
19
+ alt,
20
+ ovalBackground,
21
+ backgroundColor,
22
+ mobileSize,
23
+ tabletSize,
24
+ desktopSize // ...otherProps
25
+
26
+ }) => {
27
+ useLayoutEffect(() => {
28
+ import("./styles.scss");
29
+ }, []);
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ id: id,
32
+ className: [baseClassName, componentClassName, userClassName, layout].filter(e => e).join(' '),
33
+ style: { ...style,
34
+ '--mobile-size': mobileSize,
35
+ '--tablet-size': tabletSize,
36
+ '--desktop-size': desktopSize
37
+ } // {...otherProps}
38
+
39
+ }, ovalBackground && /*#__PURE__*/React.createElement("div", {
40
+ className: `oval-background y-${backgroundColor}`
41
+ }), /*#__PURE__*/React.createElement("div", {
42
+ className: "illustration"
43
+ }, /*#__PURE__*/React.createElement("img", {
44
+ src: src,
45
+ alt: alt
46
+ })));
47
+ };
48
+
49
+ OvalIllustration.propTypes = {
50
+ /**
51
+ * The HTML id for this element
52
+ */
53
+ id: PropTypes.string,
54
+
55
+ /**
56
+ * The HTML class names for this element
57
+ */
58
+ className: PropTypes.string,
59
+
60
+ /**
61
+ * The React-written, css properties for this element.
62
+ */
63
+ style: PropTypes.objectOf(PropTypes.string),
64
+
65
+ /**
66
+ * side definition of the illustration
67
+ */
68
+ layout: PropTypes.oneOf(['left', 'right']),
69
+
70
+ /**
71
+ * image url
72
+ */
73
+ src: PropTypes.string,
74
+
75
+ /**
76
+ * alt tag for the image
77
+ */
78
+ alt: PropTypes.string,
79
+
80
+ /**
81
+ * whether to have a oval shape as background
82
+ */
83
+ ovalBackground: PropTypes.bool,
84
+
85
+ /**
86
+ * background color of the oval behind the image
87
+ */
88
+ backgroundColor: PropTypes.string,
89
+
90
+ /**
91
+ * size of the oval for mobile screen
92
+ */
93
+ mobileSize: PropTypes.string,
94
+
95
+ /**
96
+ * size of the oval for tablet screen
97
+ */
98
+ tabletSize: PropTypes.string,
99
+
100
+ /**
101
+ * size of the oval for desktop screen
102
+ */
103
+ desktopSize: PropTypes.string
104
+ };
105
+ OvalIllustration.defaultProps = {
106
+ layout: 'left',
107
+ mobileSize: '20em',
108
+ tabletSize: '35em',
109
+ desktopSize: '45em'
110
+ };
111
+ export default OvalIllustration;
@@ -0,0 +1,2 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ export { default as OvalIllustration } from "./OvalIllustration";
@@ -0,0 +1,102 @@
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
+ $default-clockwise-degree:60deg;
8
+ $default-counter-clockwise-degree:-60deg;
9
+ $default-ellipse-size:30% 43% at 50% 50%;
10
+
11
+ .#{bem.$base}.oval-illustration {
12
+ display: flex;
13
+ justify-content: center;
14
+ overflow: hidden;
15
+ position: relative;
16
+
17
+ &.left {
18
+ .oval-background {
19
+ transform: rotate($default-clockwise-degree);
20
+ }
21
+
22
+ .illustration {
23
+ transform: rotate($default-counter-clockwise-degree);
24
+
25
+ > img {
26
+ transform: rotate($default-clockwise-degree);
27
+ }
28
+ }
29
+ }
30
+
31
+ &.right {
32
+ .oval-background {
33
+ transform: rotate($default-counter-clockwise-degree);
34
+ }
35
+
36
+ .illustration {
37
+ transform: rotate($default-clockwise-degree);
38
+
39
+ > img {
40
+ transform: rotate($default-counter-clockwise-degree);
41
+ }
42
+ }
43
+ }
44
+
45
+ .oval-background {
46
+ background: var(--y);
47
+ clip-path: ellipse($default-ellipse-size);
48
+ overflow: hidden;
49
+ position: absolute;
50
+ z-index: 0;
51
+ }
52
+
53
+ .illustration {
54
+ clip-path: ellipse($default-ellipse-size);
55
+ overflow: hidden;
56
+
57
+ > img {
58
+ height: 100%;
59
+ object-fit: cover;
60
+ width: 100%;
61
+ }
62
+ }
63
+
64
+ // mobile style
65
+ @include mixins.media($to:$sm-md) {
66
+ .oval-background {
67
+ height: var(--mobile-size);
68
+ width: var(--mobile-size);
69
+ }
70
+
71
+ .illustration {
72
+ height: var(--mobile-size);
73
+ width: var(--mobile-size);
74
+ }
75
+ }
76
+
77
+ // tablet style
78
+ @include mixins.media($from:$xs-sm, $to:$sm-md) {
79
+ .oval-background {
80
+ height: var(--tablet-size);
81
+ width: var(--tablet-size);
82
+ }
83
+
84
+ .illustration {
85
+ height: var(--tablet-size);
86
+ width: var(--tablet-size);
87
+ }
88
+ }
89
+
90
+ // desktop style
91
+ @include mixins.media($from:$sm-md) {
92
+ .oval-background {
93
+ height: var(--desktop-size);
94
+ width: var(--desktop-size);
95
+ }
96
+
97
+ .illustration {
98
+ height: var(--desktop-size);
99
+ width: var(--desktop-size);
100
+ }
101
+ }
102
+ }
@@ -33,7 +33,7 @@ const SVG = ({
33
33
  const useSVGProps = useMemo(() => ({
34
34
  className: useClassName,
35
35
  source,
36
- target,
36
+ ...target,
37
37
  sprite,
38
38
  strokeWidth
39
39
  }), [useClassName, source, target, strokeWidth, sprite]);
@@ -14,9 +14,11 @@ const Shapes = ({
14
14
  id,
15
15
  className: userClassName,
16
16
  style,
17
- pin,
18
17
  shape,
19
- height // ...otherProps
18
+ height,
19
+ overflow,
20
+ verticalAlign,
21
+ horizontalAlign // ...otherProps
20
22
 
21
23
  }) => {
22
24
  useLayoutEffect(() => {
@@ -26,12 +28,16 @@ const Shapes = ({
26
28
  id: id,
27
29
  className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
28
30
  style: { ...style,
29
- '--pin': pin,
30
- '--shape-height': height
31
+ '--shape-height': height,
32
+ '--overflow': overflow,
33
+ '--vertical-align': verticalAlign,
34
+ '--horizontal-align': horizontalAlign
31
35
  } // {...otherProps}
32
36
 
33
37
  }, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
34
38
  className: "triangle"
39
+ }), shape === 'inverted-triangle' && /*#__PURE__*/React.createElement("div", {
40
+ className: "inverted-triangle"
35
41
  }), shape === 'half-ellipses' && /*#__PURE__*/React.createElement("div", {
36
42
  className: "half-ellipses"
37
43
  }, /*#__PURE__*/React.createElement("div", {
@@ -78,6 +84,18 @@ const Shapes = ({
78
84
  className: "circle-three"
79
85
  }), /*#__PURE__*/React.createElement("div", {
80
86
  className: "circle-four"
87
+ })), shape === 'rotated-ellipses' && /*#__PURE__*/React.createElement("div", {
88
+ className: "rotated-ellipses"
89
+ }, /*#__PURE__*/React.createElement("div", {
90
+ className: "ellipse-one"
91
+ }), /*#__PURE__*/React.createElement("div", {
92
+ className: "ellipse-two"
93
+ })), shape === 'intersecting-circles' && /*#__PURE__*/React.createElement("div", {
94
+ className: "intersecting-circles"
95
+ }, /*#__PURE__*/React.createElement("div", {
96
+ className: "left"
97
+ }), /*#__PURE__*/React.createElement("div", {
98
+ className: "right"
81
99
  })));
82
100
  };
83
101
 
@@ -103,17 +121,29 @@ Shapes.propTypes = {
103
121
  height: PropTypes.string,
104
122
 
105
123
  /**
106
- * Where to pin the shapes
124
+ * The vertical alignment of the shape.
125
+ */
126
+ verticalAlign: PropTypes.oneOf(['flex-start', 'center', 'flex-end']),
127
+
128
+ /**
129
+ * The horizontal alignment of the shape.
107
130
  */
108
- pin: PropTypes.oneOf(['flex-start', 'center', 'flex-end']),
131
+ horizontalAlign: PropTypes.oneOf(['flex-start', 'center', 'flex-end']),
109
132
 
110
133
  /**
111
134
  * The options of a shape to use
112
135
  */
113
- shape: PropTypes.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles'])
136
+ shape: PropTypes.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles', 'rotated-ellipses', 'inverted-triangle', 'intersecting-circles']),
137
+
138
+ /**
139
+ * The overflow of the shape.
140
+ */
141
+ overflow: PropTypes.oneOf(['hidden', 'visible'])
114
142
  };
115
143
  Shapes.defaultProps = {
116
- pin: 'center',
117
- shape: 'triangle'
144
+ verticalAlign: 'center',
145
+ horizontalAlign: 'center',
146
+ shape: 'triangle',
147
+ overflow: 'hidden'
118
148
  };
119
149
  export default Shapes;
@@ -15,8 +15,9 @@ $default-shapes-opacity:.8;
15
15
  left: 0;
16
16
  display: flex;
17
17
  flex-direction: column;
18
- justify-content: var(--pin);
19
- align-items: center;
18
+ overflow: var(--overflow);
19
+ justify-content: var(--vertical-align);
20
+ align-items: var(--horizontal-align);
20
21
  height: 100%;
21
22
  width: 100%;
22
23
 
@@ -28,30 +29,37 @@ $default-shapes-opacity:.8;
28
29
  width: var(--shape-height, #{$default-triangle-height});
29
30
  }
30
31
 
32
+ .inverted-triangle {
33
+ background-image: linear-gradient(var(--dark-y), var(--light-y));
34
+ clip-path: polygon(50% 0, 0 100%, 100% 100%);
35
+ height: calc(var(--shape-height, #{$default-triangle-height}) * 0.86);
36
+ opacity: $default-shapes-opacity;
37
+ width: var(--shape-height, #{$default-triangle-height});
38
+ }
39
+
31
40
  .half-ellipses {
32
41
  height: var(--shape-height, #{$default-ellipse-height});
33
42
  opacity: $default-shapes-opacity;
34
43
  width: calc(var(--shape-height, #{$default-ellipse-height}) * 2);
35
44
 
36
45
  .up {
37
- background-image: linear-gradient(var(--light-y), var(--y));
38
- clip-path: ellipse(40% 100% at 50% 0%);
46
+ background-image: radial-gradient(ellipse at center bottom, var(--y) 5%, transparent 65%);
47
+ clip-path: ellipse(35% 100% at 50% 0%);
39
48
  height: 50%;
40
49
  }
41
50
 
42
51
  .down {
43
- background-image: linear-gradient(to top, var(--light-y), var(--y));
44
- clip-path: ellipse(40% 100% at 50% 100%);
52
+ background-image: radial-gradient(ellipse at center top, var(--y) 5%, transparent 65%);
53
+ clip-path: ellipse(35% 100% at 50% 100%);
45
54
  height: 50%;
46
55
  }
47
56
  }
48
57
 
49
58
  .ellipse {
50
- background-image: linear-gradient(to top left, var(--dark-y), var(--light-y), var(--dark-y));
51
- clip-path: ellipse(50% 25% at 50% 50%);
59
+ background-image: linear-gradient(var(--dark-y), var(--light-y));
60
+ clip-path: ellipse(50% 50% at 50% 50%);
52
61
  height: var(--shape-height, #{$default-ellipse-height});
53
62
  opacity: $default-shapes-opacity;
54
- transform: rotate3d(0, 0, -1, 10deg);
55
63
  width: calc(var(--shape-height, #{$default-ellipse-height}) * 2);
56
64
  }
57
65
 
@@ -109,8 +117,8 @@ $default-shapes-opacity:.8;
109
117
  }
110
118
 
111
119
  .half-ellipse {
112
- background-image: linear-gradient(var(--light-y), var(--dark-y));
113
- clip-path: ellipse(50% 50% at 50% 0);
120
+ background-image: radial-gradient(ellipse at center bottom, var(--y) 10%, var(--light-y) 65%);
121
+ clip-path: ellipse(60% 100% at 50% 0%);
114
122
  height: var(--shape-height, #{$default-ellipse-height});
115
123
  opacity: $default-shapes-opacity;
116
124
  width: calc(var(--shape-height, #{$default-ellipse-height}) * 2);
@@ -139,7 +147,7 @@ $default-shapes-opacity:.8;
139
147
  width: var(--shape-height, #{$default-ellipse-height});
140
148
 
141
149
  .first {
142
- background-image: linear-gradient(to top, var(--dark-y), var(--y), var(--light-y) 50%, transparent);
150
+ background-image: linear-gradient(to top, var(--dark-y), var(--y), var(--light-y) 50%, var(--background1));
143
151
  clip-path: ellipse(50% 20% at 50% 60%);
144
152
  height: 100%;
145
153
  position: absolute;
@@ -148,7 +156,7 @@ $default-shapes-opacity:.8;
148
156
  }
149
157
 
150
158
  .second {
151
- background-image: linear-gradient(to bottom,var(--dark-y), var(--y), var(--light-y) 45%, transparent);
159
+ background-image: linear-gradient(to bottom,var(--dark-y), var(--y), var(--light-y) 45%, var(--background1));
152
160
  clip-path: ellipse(50% 20% at 50% 40%);
153
161
  height: 100%;
154
162
  position: absolute;
@@ -167,33 +175,81 @@ $default-shapes-opacity:.8;
167
175
 
168
176
  > * {
169
177
  border-radius: 50%;
170
- background: radial-gradient(ellipse at center bottom ,var(--dark-y) 10%, transparent 60%);
178
+ background: radial-gradient(ellipse at center bottom, var(--dark-y) 10%, var(--light-y) 60%);
171
179
  position: absolute;
172
180
  opacity: .5;
173
181
  }
174
182
 
175
183
  .circle-one {
176
184
  transform: rotate(45deg);
177
- height: 55%;
178
- width: 55%;
185
+ height:calc(var(--shape-height, #{$default-ellipse-height})* 0.4);
186
+ width: calc(var(--shape-height, #{$default-ellipse-height})* 0.4);
179
187
  }
180
188
 
181
189
  .circle-two {
182
- height: 70%;
183
- width: 70%;
190
+ height: calc(var(--shape-height, #{$default-ellipse-height})* 0.6);
191
+ width: calc(var(--shape-height, #{$default-ellipse-height})* 0.6);
184
192
  }
185
193
 
186
194
  .circle-three {
187
195
  transform: rotate(-45deg);
188
- height: 85%;
189
- width: 85%;
196
+ height: calc(var(--shape-height, #{$default-ellipse-height})* 0.8);
197
+ width: calc(var(--shape-height, #{$default-ellipse-height})* 0.8);
190
198
  }
191
199
 
192
200
  .circle-four {
193
201
  transform: rotate(-90deg);
194
- height: 100%;
202
+ height: calc(var(--shape-height, #{$default-ellipse-height})* 1);
203
+ width: calc(var(--shape-height, #{$default-ellipse-height})* 1);
204
+ }
205
+ }
206
+ .rotated-ellipses {
207
+ height: var(--shape-height, #{$default-ellipse-height});
208
+ opacity: $default-shapes-opacity;
209
+ width: var(--shape-height, #{$default-ellipse-height});
210
+ display: flex;
211
+
212
+ > *{
195
213
  width: 100%;
214
+ height: 100%;
215
+ }
216
+
217
+ .ellipse-one {
218
+ background-image: radial-gradient(ellipse at bottom left, var(--y) 30%, transparent 65%);
219
+ transform: rotate(-15deg);
220
+ clip-path: ellipse(50% 35% at 50% 50%);
221
+ }
222
+
223
+ .ellipse-two {
224
+ background-image: radial-gradient(ellipse at top right, var(--y) 30%, transparent 65%);
225
+ transform: rotate(-15deg);
226
+ clip-path: ellipse(50% 35% at 50% 50%);
196
227
  }
197
228
  }
198
229
 
230
+ .intersecting-circles {
231
+ height: var(--shape-height, #{$default-circle-height});
232
+ opacity: $default-shapes-opacity;
233
+ width: calc(var(--shape-height, #{$default-circle-height}) * 2);
234
+ display: grid;
235
+ grid-template-columns: repeat(7, 1fr);
236
+ position: relative;
237
+
238
+ > * {
239
+ border-radius: 50%;
240
+ height: 100%;
241
+ width: 100%;
242
+ position: absolute;
243
+ opacity: .8;
244
+ }
245
+
246
+ .left {
247
+ background-image: linear-gradient(to right ,var(--dark-y),var(--y), var(--light-y));
248
+ grid-column: 1 / 5;
249
+ }
250
+ .right {
251
+ background-image: linear-gradient(to left, var(--dark-y), var(--y), var(--light-y));
252
+ grid-column: 4 / 8;
253
+ }
254
+ }
199
255
  }
@@ -2,20 +2,20 @@
2
2
  import * as React from 'react';
3
3
  import { useLayoutEffect } from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import styleNames from '@pareto-engineering/bem';
6
- import { Card } from "./common"; // Local Definitions
5
+ import styleNames from '@pareto-engineering/bem'; // Local Definitions
7
6
 
8
7
  const baseClassName = styleNames.base;
9
- const componentClassName = 'blog-posts-list';
8
+ const componentClassName = 'snap-scroller';
10
9
  /**
11
10
  * This is the component description.
12
11
  */
13
12
 
14
- const BlogPostsList = ({
13
+ const SnapScroller = ({
15
14
  id,
16
15
  className: userClassName,
17
16
  style,
18
- children // ...otherProps
17
+ children,
18
+ noScrollOnDesktop // ...otherProps
19
19
 
20
20
  }) => {
21
21
  useLayoutEffect(() => {
@@ -23,13 +23,13 @@ const BlogPostsList = ({
23
23
  }, []);
24
24
  return /*#__PURE__*/React.createElement("div", {
25
25
  id: id,
26
- className: [baseClassName, componentClassName, userClassName, 'u1'].filter(e => e).join(' '),
26
+ className: [baseClassName, componentClassName, userClassName, noScrollOnDesktop && 'desktop-no-scroll'].filter(e => e).join(' '),
27
27
  style: style // {...otherProps}
28
28
 
29
29
  }, children);
30
30
  };
31
31
 
32
- BlogPostsList.propTypes = {
32
+ SnapScroller.propTypes = {
33
33
  /**
34
34
  * The HTML id for this element
35
35
  */
@@ -48,9 +48,14 @@ BlogPostsList.propTypes = {
48
48
  /**
49
49
  * The children JSX
50
50
  */
51
- children: PropTypes.node
51
+ children: PropTypes.node,
52
+
53
+ /**
54
+ * Whether to snap scroll on desktop (false will enable a flexbox)
55
+ */
56
+ noScrollOnDesktop: PropTypes.bool
52
57
  };
53
- BlogPostsList.defaultProps = {// someProp:false
58
+ SnapScroller.defaultProps = {
59
+ noScrollOnDesktop: false
54
60
  };
55
- BlogPostsList.Card = Card;
56
- export default BlogPostsList;
61
+ export default SnapScroller;
@@ -0,0 +1,2 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ export { default as SnapScroller } from "./SnapScroller";
@@ -0,0 +1,38 @@
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
+ $default-spacing:var(--spacing, var(--u));
8
+
9
+ .#{bem.$base}.snap-scroller {
10
+ display: flex;
11
+ -ms-overflow-style: none; /* for Internet Explorer, Edge */
12
+ overflow-x: auto;
13
+ scroll-padding: calc(#{$default-spacing} *2);
14
+ scroll-snap-type: x mandatory;
15
+ scrollbar-width: none;
16
+
17
+
18
+ > * {
19
+ &:first-child {
20
+ margin-left: $default-spacing;
21
+ }
22
+ display: inline-block;
23
+ margin-right: $default-spacing;
24
+ scroll-snap-align: start;
25
+ }
26
+
27
+
28
+ @include mixins.media($from:$sm-md) {
29
+ &.desktop-no-scroll {
30
+ overflow: auto;
31
+ -ms-overflow-style: unset; /* for Internet Explorer, Edge */
32
+ scroll-snap-type: none;
33
+ scrollbar-width: unset;
34
+ }
35
+ }
36
+ }
37
+
38
+
@@ -17,4 +17,8 @@ export { CustomerStat } from "./CustomerStat";
17
17
  export { Quote } from "./Quote";
18
18
  export { ContentCard } from "./ContentCard";
19
19
  export { DotInfo } from "./DotInfo";
20
- export { Timestamp } from "./Timestamp";
20
+ export { Timestamp } from "./Timestamp";
21
+ export { Shapes } from "./Shapes";
22
+ export { OvalIllustration } from "./OvalIllustration";
23
+ export { SnapScroller } from "./SnapScroller";
24
+ export { BackgroundGradient } from "./BackgroundGradient";
@@ -23,6 +23,7 @@ const Button = ({
23
23
  isCompact,
24
24
  isGhost,
25
25
  isSimple,
26
+ arrowDirection,
26
27
  ...otherProps
27
28
  }) => {
28
29
  useLayoutEffect(() => {
@@ -30,7 +31,7 @@ const Button = ({
30
31
  }, []);
31
32
  return /*#__PURE__*/React.createElement("button", _extends({
32
33
  id: id,
33
- className: [baseClassName, componentClassName, userClassName, `x-${color}`, isGhost && styleNames.modifierGhost, isCompact && styleNames.modifierCompact, isSimple && styleNames.modifierSimple].filter(e => e).join(' '),
34
+ className: [baseClassName, componentClassName, userClassName, `x-${color}`, isGhost && styleNames.modifierGhost, isCompact && styleNames.modifierCompact, isSimple && styleNames.modifierSimple, arrowDirection && `arrow-${arrowDirection}`].filter(e => e).join(' '),
34
35
  style: style,
35
36
  type: "button"
36
37
  }, otherProps), isLoading ? /*#__PURE__*/React.createElement(LoadingCircle, {
@@ -85,7 +86,12 @@ Button.propTypes = {
85
86
  /**
86
87
  * Button loading state
87
88
  */
88
- isLoading: PropTypes.bool
89
+ isLoading: PropTypes.bool,
90
+
91
+ /**
92
+ * The direction of the arrow if the button has one
93
+ */
94
+ arrowDirection: PropTypes.string
89
95
  };
90
96
  Button.defaultProps = {
91
97
  color: 'main1'