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

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 (280) 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/Shapes/Shapes.js +39 -9
  11. package/dist/cjs/a/Shapes/styles.scss +77 -21
  12. package/dist/cjs/{c/BlogPostsList/BlogPostsList.js → a/SnapScroller/SnapScroller.js} +15 -11
  13. package/dist/cjs/{c/SiteFooter/common/Section → a/SnapScroller}/index.js +3 -3
  14. package/dist/cjs/a/SnapScroller/styles.scss +38 -0
  15. package/dist/cjs/a/index.js +33 -1
  16. package/dist/cjs/b/Button/Button.js +10 -4
  17. package/dist/cjs/b/Button/styles.scss +83 -19
  18. package/dist/cjs/b/Logo/Logo.js +20 -39
  19. package/dist/cjs/b/Logo/styles.scss +0 -138
  20. package/dist/cjs/b/Page/common/Section/Section.js +56 -5
  21. package/dist/cjs/b/Page/styles.scss +8 -2
  22. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +5 -5
  23. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +4 -3
  24. package/dist/cjs/c/ContentSlides/styles.scss +10 -4
  25. package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
  26. package/dist/cjs/f/common/Label/Label.js +1 -1
  27. package/dist/cjs/f/common/Label/styles.scss +1 -1
  28. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  29. package/dist/cjs/f/fields/ChoicesInput/styles.scss +17 -2
  30. package/dist/cjs/f/fields/SelectInput/SelectInput.js +36 -10
  31. package/dist/cjs/f/fields/SelectInput/styles.scss +13 -8
  32. package/dist/cjs/f/fields/TextInput/TextInput.js +28 -7
  33. package/dist/cjs/f/fields/TextInput/styles.scss +16 -7
  34. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +15 -8
  35. package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -6
  36. package/dist/cjs/f/fields/index.js +0 -24
  37. package/dist/cjs/form-reset.scss +1 -1
  38. package/dist/es/{c/SiteFooter/SiteFooter.js → a/BackgroundGradient/BackgroundGradient.js} +14 -15
  39. package/dist/es/a/BackgroundGradient/index.js +2 -0
  40. package/dist/es/a/BackgroundGradient/styles.scss +16 -0
  41. package/dist/es/a/Conversation/Conversation.js +15 -8
  42. package/dist/es/a/Conversation/common/Message/Message.js +33 -6
  43. package/dist/es/a/Conversation/styles.scss +128 -33
  44. package/dist/es/a/OvalIllustration/OvalIllustration.js +111 -0
  45. package/dist/es/a/OvalIllustration/index.js +2 -0
  46. package/dist/es/a/OvalIllustration/styles.scss +102 -0
  47. package/dist/es/a/Shapes/Shapes.js +39 -9
  48. package/dist/es/a/Shapes/styles.scss +77 -21
  49. package/dist/es/{c/BlogPostsList/BlogPostsList.js → a/SnapScroller/SnapScroller.js} +16 -11
  50. package/dist/es/a/SnapScroller/index.js +2 -0
  51. package/dist/es/a/SnapScroller/styles.scss +38 -0
  52. package/dist/es/a/index.js +5 -1
  53. package/dist/es/b/Button/Button.js +8 -2
  54. package/dist/es/b/Button/styles.scss +83 -19
  55. package/dist/es/b/Logo/Logo.js +20 -39
  56. package/dist/es/b/Logo/styles.scss +0 -138
  57. package/dist/es/b/Page/common/Section/Section.js +55 -4
  58. package/dist/es/b/Page/styles.scss +8 -2
  59. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +5 -5
  60. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +4 -3
  61. package/dist/es/c/ContentSlides/styles.scss +10 -4
  62. package/dist/es/f/common/Debugger/Debugger.js +1 -1
  63. package/dist/es/f/common/Label/Label.js +1 -1
  64. package/dist/es/f/common/Label/styles.scss +1 -1
  65. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  66. package/dist/es/f/fields/ChoicesInput/styles.scss +17 -2
  67. package/dist/es/f/fields/SelectInput/SelectInput.js +36 -10
  68. package/dist/es/f/fields/SelectInput/styles.scss +13 -8
  69. package/dist/es/f/fields/TextInput/TextInput.js +28 -7
  70. package/dist/es/f/fields/TextInput/styles.scss +16 -7
  71. package/dist/es/f/fields/TextareaInput/TextareaInput.js +15 -8
  72. package/dist/es/f/fields/TextareaInput/styles.scss +19 -6
  73. package/dist/es/f/fields/index.js +0 -3
  74. package/dist/es/form-reset.scss +1 -1
  75. package/package.json +3 -3
  76. package/src/__snapshots__/Storyshots.test.js.snap +5048 -2508
  77. package/src/local.scss +1 -0
  78. package/src/stories/a/BackgroundGradient.stories.jsx +38 -0
  79. package/src/stories/a/Conversation.stories.jsx +78 -1
  80. package/src/stories/a/OvalIllustration.stories.jsx +59 -0
  81. package/src/stories/a/Shapes.stories.jsx +143 -0
  82. package/src/stories/a/SnapScroller.stories.jsx +98 -0
  83. package/src/stories/b/Button.stories.jsx +86 -88
  84. package/src/stories/b/Logo.stories.jsx +9 -9
  85. package/src/stories/b/Page.stories.jsx +51 -1
  86. package/src/stories/c/ContentSlides.stories.jsx +154 -2
  87. package/src/stories/f/SelectInput.stories.jsx +36 -5
  88. package/src/stories/f/TextInput.stories.jsx +15 -4
  89. package/src/stories/f/TextareaInput.stories.jsx +42 -6
  90. package/src/ui/a/BackgroundGradient/BackgroundGradient.jsx +76 -0
  91. package/src/ui/a/BackgroundGradient/index.js +2 -0
  92. package/src/ui/a/BackgroundGradient/styles.scss +16 -0
  93. package/src/ui/a/Conversation/Conversation.jsx +15 -7
  94. package/src/ui/a/Conversation/common/Message/Message.jsx +40 -7
  95. package/src/ui/a/Conversation/styles.scss +128 -33
  96. package/src/ui/a/OvalIllustration/OvalIllustration.jsx +134 -0
  97. package/src/ui/a/OvalIllustration/index.js +2 -0
  98. package/src/ui/a/OvalIllustration/styles.scss +102 -0
  99. package/src/ui/a/Shapes/Shapes.jsx +191 -0
  100. package/{dist/es/c/BlogPostsList/common/Card → src/ui/a/Shapes}/index.js +1 -1
  101. package/src/ui/a/Shapes/styles.scss +255 -0
  102. package/src/ui/a/SnapScroller/SnapScroller.jsx +83 -0
  103. package/src/ui/a/SnapScroller/index.js +2 -0
  104. package/src/ui/a/SnapScroller/styles.scss +38 -0
  105. package/src/ui/a/index.js +4 -0
  106. package/src/ui/b/Button/Button.jsx +9 -1
  107. package/src/ui/b/Button/styles.scss +83 -19
  108. package/src/ui/b/Logo/Logo.jsx +17 -40
  109. package/src/ui/b/Logo/styles.scss +0 -138
  110. package/src/ui/b/Page/common/Section/Section.jsx +68 -2
  111. package/src/ui/b/Page/styles.scss +8 -2
  112. package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +4 -4
  113. package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +3 -2
  114. package/src/ui/c/ContentSlides/styles.scss +10 -4
  115. package/src/ui/f/common/Debugger/Debugger.jsx +1 -1
  116. package/src/ui/f/common/Label/Label.jsx +1 -1
  117. package/src/ui/f/common/Label/styles.scss +1 -1
  118. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +1 -1
  119. package/src/ui/f/fields/ChoicesInput/styles.scss +17 -2
  120. package/src/ui/f/fields/SelectInput/SelectInput.jsx +43 -5
  121. package/src/ui/f/fields/SelectInput/styles.scss +13 -8
  122. package/src/ui/f/fields/TextInput/TextInput.jsx +24 -3
  123. package/src/ui/f/fields/TextInput/styles.scss +16 -7
  124. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +24 -13
  125. package/src/ui/f/fields/TextareaInput/styles.scss +19 -6
  126. package/src/ui/f/fields/index.js +0 -3
  127. package/src/ui/form-reset.scss +1 -1
  128. package/dist/cjs/a/GradientBackground/GradientBackground.js +0 -140
  129. package/dist/cjs/a/GradientBackground/index.js +0 -15
  130. package/dist/cjs/a/GradientBackground/styles.scss +0 -191
  131. package/dist/cjs/c/AcceptCookies/AcceptCookies.js +0 -134
  132. package/dist/cjs/c/AcceptCookies/index.js +0 -15
  133. package/dist/cjs/c/AcceptCookies/styles.scss +0 -49
  134. package/dist/cjs/c/BlogCategoryButton/BlogCategoryButton.js +0 -95
  135. package/dist/cjs/c/BlogCategoryButton/index.js +0 -15
  136. package/dist/cjs/c/BlogContext/BlogContextProvider.js +0 -63
  137. package/dist/cjs/c/BlogContext/Context.js +0 -16
  138. package/dist/cjs/c/BlogContext/ContextProvider.js +0 -63
  139. package/dist/cjs/c/BlogContext/index.js +0 -31
  140. package/dist/cjs/c/BlogContext/useBlog.js +0 -16
  141. package/dist/cjs/c/BlogPost/BlogPost.js +0 -147
  142. package/dist/cjs/c/BlogPost/index.js +0 -15
  143. package/dist/cjs/c/BlogPost/styles.scss +0 -33
  144. package/dist/cjs/c/BlogPostsList/common/Card/Card.js +0 -170
  145. package/dist/cjs/c/BlogPostsList/common/Card/index.js +0 -15
  146. package/dist/cjs/c/BlogPostsList/common/index.js +0 -13
  147. package/dist/cjs/c/BlogPostsList/index.js +0 -15
  148. package/dist/cjs/c/BlogPostsList/styles.scss +0 -72
  149. package/dist/cjs/c/SiteFooter/SiteFooter.js +0 -73
  150. package/dist/cjs/c/SiteFooter/common/index.js +0 -13
  151. package/dist/cjs/c/SiteFooter/index.js +0 -15
  152. package/dist/cjs/c/SiteFooter/styles.scss +0 -34
  153. package/dist/cjs/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -108
  154. package/dist/cjs/c/SiteHeaderCTA/index.js +0 -15
  155. package/dist/cjs/c/SiteHeaderCTA/styles.scss +0 -44
  156. package/dist/cjs/c/SiteMission/SiteMission.js +0 -113
  157. package/dist/cjs/c/SiteMission/index.js +0 -15
  158. package/dist/cjs/c/SiteMission/styles.scss +0 -30
  159. package/dist/cjs/c/SiteNavigation/SiteNavigation.js +0 -130
  160. package/dist/cjs/c/SiteNavigation/index.js +0 -15
  161. package/dist/cjs/c/SiteNavigation/styles.scss +0 -118
  162. package/dist/cjs/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -98
  163. package/dist/cjs/c/SiteOnboardingStep/index.js +0 -15
  164. package/dist/cjs/c/SiteOnboardingStep/styles.scss +0 -51
  165. package/dist/cjs/c/SitePricing/SitePricing.js +0 -108
  166. package/dist/cjs/c/SitePricing/index.js +0 -15
  167. package/dist/cjs/c/SitePricing/styles.scss +0 -73
  168. package/dist/cjs/c/SiteServices/SiteServices.js +0 -211
  169. package/dist/cjs/c/SiteServices/index.js +0 -15
  170. package/dist/cjs/c/SiteServices/styles.scss +0 -138
  171. package/dist/cjs/c/TeamGallery/TeamGallery.js +0 -80
  172. package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +0 -84
  173. package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +0 -15
  174. package/dist/cjs/c/TeamGallery/common/index.js +0 -13
  175. package/dist/cjs/c/TeamGallery/index.js +0 -15
  176. package/dist/cjs/c/TeamGallery/styles.scss +0 -100
  177. package/dist/cjs/c/Testimonials/Testimonials.js +0 -119
  178. package/dist/cjs/c/Testimonials/index.js +0 -15
  179. package/dist/cjs/c/Testimonials/styles.scss +0 -112
  180. package/dist/cjs/experimental/GradientBackground/index.js +0 -15
  181. package/dist/cjs/experimental/GradientBackground/styles.scss +0 -64
  182. package/dist/cjs/experimental/index.js +0 -13
  183. package/dist/cjs/f/fields/CheckboxInput/CheckboxInput.js +0 -105
  184. package/dist/cjs/f/fields/CheckboxInput/index.js +0 -15
  185. package/dist/cjs/f/fields/CheckboxInput/styles.scss +0 -28
  186. package/dist/cjs/f/fields/RadioInput/RadioInput.js +0 -110
  187. package/dist/cjs/f/fields/RadioInput/index.js +0 -15
  188. package/dist/cjs/f/fields/RadioInput/styles.scss +0 -26
  189. package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +0 -129
  190. package/dist/cjs/f/fields/TaskRecommendation/index.js +0 -15
  191. package/dist/cjs/f/fields/TaskRecommendation/styles.scss +0 -37
  192. package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -131
  193. package/dist/cjs/f/fields/TaskRecommendationInput/index.js +0 -15
  194. package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +0 -41
  195. package/dist/cjs/f/fields/TextArea/TextArea.js +0 -141
  196. package/dist/cjs/f/fields/TextArea/index.js +0 -15
  197. package/dist/cjs/f/fields/TextArea/styles.scss +0 -19
  198. package/dist/es/a/GradientBackground/GradientBackground.js +0 -118
  199. package/dist/es/a/GradientBackground/index.js +0 -2
  200. package/dist/es/a/GradientBackground/styles.scss +0 -191
  201. package/dist/es/c/AcceptCookies/AcceptCookies.js +0 -117
  202. package/dist/es/c/AcceptCookies/index.js +0 -2
  203. package/dist/es/c/AcceptCookies/styles.scss +0 -49
  204. package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +0 -68
  205. package/dist/es/c/BlogCategoryButton/index.js +0 -2
  206. package/dist/es/c/BlogContext/BlogContextProvider.js +0 -45
  207. package/dist/es/c/BlogContext/Context.js +0 -2
  208. package/dist/es/c/BlogContext/ContextProvider.js +0 -45
  209. package/dist/es/c/BlogContext/index.js +0 -4
  210. package/dist/es/c/BlogContext/useBlog.js +0 -3
  211. package/dist/es/c/BlogPost/BlogPost.js +0 -128
  212. package/dist/es/c/BlogPost/index.js +0 -2
  213. package/dist/es/c/BlogPost/styles.scss +0 -33
  214. package/dist/es/c/BlogPostsList/common/Card/Card.js +0 -143
  215. package/dist/es/c/BlogPostsList/common/index.js +0 -1
  216. package/dist/es/c/BlogPostsList/index.js +0 -2
  217. package/dist/es/c/BlogPostsList/styles.scss +0 -72
  218. package/dist/es/c/SiteFooter/common/Section/Section.js +0 -73
  219. package/dist/es/c/SiteFooter/common/Section/index.js +0 -2
  220. package/dist/es/c/SiteFooter/common/index.js +0 -1
  221. package/dist/es/c/SiteFooter/index.js +0 -2
  222. package/dist/es/c/SiteFooter/styles.scss +0 -34
  223. package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -92
  224. package/dist/es/c/SiteHeaderCTA/index.js +0 -2
  225. package/dist/es/c/SiteHeaderCTA/styles.scss +0 -44
  226. package/dist/es/c/SiteMission/SiteMission.js +0 -96
  227. package/dist/es/c/SiteMission/index.js +0 -2
  228. package/dist/es/c/SiteMission/styles.scss +0 -30
  229. package/dist/es/c/SiteNavigation/SiteNavigation.js +0 -111
  230. package/dist/es/c/SiteNavigation/index.js +0 -2
  231. package/dist/es/c/SiteNavigation/styles.scss +0 -118
  232. package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -81
  233. package/dist/es/c/SiteOnboardingStep/index.js +0 -2
  234. package/dist/es/c/SiteOnboardingStep/styles.scss +0 -51
  235. package/dist/es/c/SitePricing/SitePricing.js +0 -91
  236. package/dist/es/c/SitePricing/index.js +0 -2
  237. package/dist/es/c/SitePricing/styles.scss +0 -73
  238. package/dist/es/c/SiteServices/SiteServices.js +0 -195
  239. package/dist/es/c/SiteServices/index.js +0 -2
  240. package/dist/es/c/SiteServices/styles.scss +0 -138
  241. package/dist/es/c/TeamGallery/TeamGallery.js +0 -64
  242. package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +0 -64
  243. package/dist/es/c/TeamGallery/common/PersonCard/index.js +0 -2
  244. package/dist/es/c/TeamGallery/common/index.js +0 -1
  245. package/dist/es/c/TeamGallery/index.js +0 -2
  246. package/dist/es/c/TeamGallery/styles.scss +0 -100
  247. package/dist/es/c/Testimonials/Testimonials.js +0 -99
  248. package/dist/es/c/Testimonials/index.js +0 -2
  249. package/dist/es/c/Testimonials/styles.scss +0 -112
  250. package/dist/es/experimental/GradientBackground/GradientBackground.js +0 -76
  251. package/dist/es/experimental/GradientBackground/index.js +0 -2
  252. package/dist/es/experimental/GradientBackground/styles.scss +0 -64
  253. package/dist/es/experimental/index.js +0 -1
  254. package/dist/es/f/fields/CheckboxInput/CheckboxInput.js +0 -85
  255. package/dist/es/f/fields/CheckboxInput/index.js +0 -2
  256. package/dist/es/f/fields/CheckboxInput/styles.scss +0 -28
  257. package/dist/es/f/fields/RadioInput/RadioInput.js +0 -90
  258. package/dist/es/f/fields/RadioInput/index.js +0 -2
  259. package/dist/es/f/fields/RadioInput/styles.scss +0 -26
  260. package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +0 -111
  261. package/dist/es/f/fields/TaskRecommendation/index.js +0 -2
  262. package/dist/es/f/fields/TaskRecommendation/styles.scss +0 -37
  263. package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -111
  264. package/dist/es/f/fields/TaskRecommendationInput/index.js +0 -2
  265. package/dist/es/f/fields/TaskRecommendationInput/styles.scss +0 -41
  266. package/dist/es/f/fields/TextArea/TextArea.js +0 -124
  267. package/dist/es/f/fields/TextArea/index.js +0 -2
  268. package/dist/es/f/fields/TextArea/styles.scss +0 -19
  269. package/src/stories/f/CheckboxInput.stories.jsx +0 -37
  270. package/src/stories/f/RadioInput.stories.jsx +0 -37
  271. package/src/stories/f/TaskRecommendationInput.stories.jsx +0 -38
  272. package/src/ui/f/fields/CheckboxInput/CheckboxInput.jsx +0 -107
  273. package/src/ui/f/fields/CheckboxInput/index.js +0 -2
  274. package/src/ui/f/fields/CheckboxInput/styles.scss +0 -28
  275. package/src/ui/f/fields/RadioInput/RadioInput.jsx +0 -112
  276. package/src/ui/f/fields/RadioInput/index.js +0 -2
  277. package/src/ui/f/fields/RadioInput/styles.scss +0 -26
  278. package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +0 -130
  279. package/src/ui/f/fields/TaskRecommendationInput/index.js +0 -2
  280. package/src/ui/f/fields/TaskRecommendationInput/styles.scss +0 -41
@@ -35,9 +35,11 @@ var Shapes = _ref => {
35
35
  id,
36
36
  className: userClassName,
37
37
  style,
38
- pin,
39
38
  shape,
40
- height // ...otherProps
39
+ height,
40
+ overflow,
41
+ verticalAlign,
42
+ horizontalAlign // ...otherProps
41
43
 
42
44
  } = _ref;
43
45
  (0, React.useLayoutEffect)(() => {
@@ -47,12 +49,16 @@ var Shapes = _ref => {
47
49
  id: id,
48
50
  className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
49
51
  style: _objectSpread(_objectSpread({}, style), {}, {
50
- '--pin': pin,
51
- '--shape-height': height
52
+ '--shape-height': height,
53
+ '--overflow': overflow,
54
+ '--vertical-align': verticalAlign,
55
+ '--horizontal-align': horizontalAlign
52
56
  }) // {...otherProps}
53
57
 
54
58
  }, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
55
59
  className: "triangle"
60
+ }), shape === 'inverted-triangle' && /*#__PURE__*/React.createElement("div", {
61
+ className: "inverted-triangle"
56
62
  }), shape === 'half-ellipses' && /*#__PURE__*/React.createElement("div", {
57
63
  className: "half-ellipses"
58
64
  }, /*#__PURE__*/React.createElement("div", {
@@ -99,6 +105,18 @@ var Shapes = _ref => {
99
105
  className: "circle-three"
100
106
  }), /*#__PURE__*/React.createElement("div", {
101
107
  className: "circle-four"
108
+ })), shape === 'rotated-ellipses' && /*#__PURE__*/React.createElement("div", {
109
+ className: "rotated-ellipses"
110
+ }, /*#__PURE__*/React.createElement("div", {
111
+ className: "ellipse-one"
112
+ }), /*#__PURE__*/React.createElement("div", {
113
+ className: "ellipse-two"
114
+ })), shape === 'intersecting-circles' && /*#__PURE__*/React.createElement("div", {
115
+ className: "intersecting-circles"
116
+ }, /*#__PURE__*/React.createElement("div", {
117
+ className: "left"
118
+ }), /*#__PURE__*/React.createElement("div", {
119
+ className: "right"
102
120
  })));
103
121
  };
104
122
 
@@ -124,18 +142,30 @@ Shapes.propTypes = {
124
142
  height: _propTypes.default.string,
125
143
 
126
144
  /**
127
- * Where to pin the shapes
145
+ * The vertical alignment of the shape.
146
+ */
147
+ verticalAlign: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
148
+
149
+ /**
150
+ * The horizontal alignment of the shape.
128
151
  */
129
- pin: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
152
+ horizontalAlign: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
130
153
 
131
154
  /**
132
155
  * The options of a shape to use
133
156
  */
134
- shape: _propTypes.default.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles'])
157
+ shape: _propTypes.default.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles', 'rotated-ellipses', 'inverted-triangle', 'intersecting-circles']),
158
+
159
+ /**
160
+ * The overflow of the shape.
161
+ */
162
+ overflow: _propTypes.default.oneOf(['hidden', 'visible'])
135
163
  };
136
164
  Shapes.defaultProps = {
137
- pin: 'center',
138
- shape: 'triangle'
165
+ verticalAlign: 'center',
166
+ horizontalAlign: 'center',
167
+ shape: 'triangle',
168
+ overflow: 'hidden'
139
169
  };
140
170
  var _default = Shapes;
141
171
  exports.default = _default;
@@ -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
  }
@@ -11,8 +11,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
13
13
 
14
- var _common = require("./common");
15
-
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
15
 
18
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -21,17 +19,18 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
21
19
 
22
20
  // Local Definitions
23
21
  var baseClassName = _bem.default.base;
24
- var componentClassName = 'blog-posts-list';
22
+ var componentClassName = 'snap-scroller';
25
23
  /**
26
24
  * This is the component description.
27
25
  */
28
26
 
29
- var BlogPostsList = _ref => {
27
+ var SnapScroller = _ref => {
30
28
  var {
31
29
  id,
32
30
  className: userClassName,
33
31
  style,
34
- children // ...otherProps
32
+ children,
33
+ noScrollOnDesktop // ...otherProps
35
34
 
36
35
  } = _ref;
37
36
  (0, React.useLayoutEffect)(() => {
@@ -39,13 +38,13 @@ var BlogPostsList = _ref => {
39
38
  }, []);
40
39
  return /*#__PURE__*/React.createElement("div", {
41
40
  id: id,
42
- className: [baseClassName, componentClassName, userClassName, 'u1'].filter(e => e).join(' '),
41
+ className: [baseClassName, componentClassName, userClassName, noScrollOnDesktop && 'desktop-no-scroll'].filter(e => e).join(' '),
43
42
  style: style // {...otherProps}
44
43
 
45
44
  }, children);
46
45
  };
47
46
 
48
- BlogPostsList.propTypes = {
47
+ SnapScroller.propTypes = {
49
48
  /**
50
49
  * The HTML id for this element
51
50
  */
@@ -64,10 +63,15 @@ BlogPostsList.propTypes = {
64
63
  /**
65
64
  * The children JSX
66
65
  */
67
- children: _propTypes.default.node
66
+ children: _propTypes.default.node,
67
+
68
+ /**
69
+ * Whether to snap scroll on desktop (false will enable a flexbox)
70
+ */
71
+ noScrollOnDesktop: _propTypes.default.bool
68
72
  };
69
- BlogPostsList.defaultProps = {// someProp:false
73
+ SnapScroller.defaultProps = {
74
+ noScrollOnDesktop: false
70
75
  };
71
- BlogPostsList.Card = _common.Card;
72
- var _default = BlogPostsList;
76
+ var _default = SnapScroller;
73
77
  exports.default = _default;
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Section", {
6
+ Object.defineProperty(exports, "SnapScroller", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _Section.default;
9
+ return _SnapScroller.default;
10
10
  }
11
11
  });
12
12
 
13
- var _Section = _interopRequireDefault(require("./Section"));
13
+ var _SnapScroller = _interopRequireDefault(require("./SnapScroller"));
14
14
 
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -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
+
@@ -141,6 +141,30 @@ Object.defineProperty(exports, "Timestamp", {
141
141
  return _Timestamp.Timestamp;
142
142
  }
143
143
  });
144
+ Object.defineProperty(exports, "Shapes", {
145
+ enumerable: true,
146
+ get: function get() {
147
+ return _Shapes.Shapes;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "OvalIllustration", {
151
+ enumerable: true,
152
+ get: function get() {
153
+ return _OvalIllustration.OvalIllustration;
154
+ }
155
+ });
156
+ Object.defineProperty(exports, "SnapScroller", {
157
+ enumerable: true,
158
+ get: function get() {
159
+ return _SnapScroller.SnapScroller;
160
+ }
161
+ });
162
+ Object.defineProperty(exports, "BackgroundGradient", {
163
+ enumerable: true,
164
+ get: function get() {
165
+ return _BackgroundGradient.BackgroundGradient;
166
+ }
167
+ });
144
168
 
145
169
  var _SVG = require("./SVG");
146
170
 
@@ -180,4 +204,12 @@ var _ContentCard = require("./ContentCard");
180
204
 
181
205
  var _DotInfo = require("./DotInfo");
182
206
 
183
- var _Timestamp = require("./Timestamp");
207
+ var _Timestamp = require("./Timestamp");
208
+
209
+ var _Shapes = require("./Shapes");
210
+
211
+ var _OvalIllustration = require("./OvalIllustration");
212
+
213
+ var _SnapScroller = require("./SnapScroller");
214
+
215
+ var _BackgroundGradient = require("./BackgroundGradient");
@@ -13,7 +13,7 @@ var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
13
13
 
14
14
  var _ = require("../..");
15
15
 
16
- var _excluded = ["id", "className", "style", "children", "isLoading", "color", "isCompact", "isGhost", "isSimple"];
16
+ var _excluded = ["id", "className", "style", "children", "isLoading", "color", "isCompact", "isGhost", "isSimple", "arrowDirection"];
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -43,7 +43,8 @@ var Button = _ref => {
43
43
  color,
44
44
  isCompact,
45
45
  isGhost,
46
- isSimple
46
+ isSimple,
47
+ arrowDirection
47
48
  } = _ref,
48
49
  otherProps = _objectWithoutProperties(_ref, _excluded);
49
50
 
@@ -52,7 +53,7 @@ var Button = _ref => {
52
53
  }, []);
53
54
  return /*#__PURE__*/React.createElement("button", _extends({
54
55
  id: id,
55
- className: [baseClassName, componentClassName, userClassName, "x-".concat(color), isGhost && _bem.default.modifierGhost, isCompact && _bem.default.modifierCompact, isSimple && _bem.default.modifierSimple].filter(e => e).join(' '),
56
+ className: [baseClassName, componentClassName, userClassName, "x-".concat(color), isGhost && _bem.default.modifierGhost, isCompact && _bem.default.modifierCompact, isSimple && _bem.default.modifierSimple, arrowDirection && "arrow-".concat(arrowDirection)].filter(e => e).join(' '),
56
57
  style: style,
57
58
  type: "button"
58
59
  }, otherProps), isLoading ? /*#__PURE__*/React.createElement(_.LoadingCircle, {
@@ -107,7 +108,12 @@ Button.propTypes = {
107
108
  /**
108
109
  * Button loading state
109
110
  */
110
- isLoading: _propTypes.default.bool
111
+ isLoading: _propTypes.default.bool,
112
+
113
+ /**
114
+ * The direction of the arrow if the button has one
115
+ */
116
+ arrowDirection: _propTypes.default.string
111
117
  };
112
118
  Button.defaultProps = {
113
119
  color: 'main1'
@@ -4,28 +4,64 @@
4
4
 
5
5
  $default-padding: 1em 1em .84em;
6
6
  $compact-padding: .6em .6em .48em;
7
- $default-border-radius:2em;
8
7
  $default-color:primary;
9
8
  $font-weight:bold;
9
+ $default-margin:.5em;
10
+ $default-animation-time: .3s;
10
11
 
11
12
  .#{bem.$base}.button {
12
13
  background: var(--x, var(--#{$default-color}));
13
14
  border: transparent;
14
- //border-radius: var(--theme-border-radius);
15
- border-radius: $default-border-radius;
15
+ border-radius: var(--theme-border-radius);
16
16
  color: var(--on-x, var(--on-#{$default-color}));
17
- font-weight: 600;
17
+ display: inline-flex;
18
+ font-family: var(--theme-default-paragraph);
19
+ font-weight: 400;
20
+ justify-content: space-between;
18
21
  padding: $default-padding;
19
22
  transition: all .25s;
20
23
 
24
+ &.arrow-right {
25
+ &::after {
26
+ content: "-->";
27
+ margin-left: $default-margin;
28
+ vertical-align: middle;
29
+ }
30
+
31
+ &:hover {
32
+ &::after {
33
+ --final-position: 50%;
34
+ animation: animateArrow $default-animation-time forwards;
35
+ }
36
+ }
37
+ }
38
+
39
+ &.arrow-left {
40
+ &::before {
41
+ content: "<--";
42
+ margin-right: $default-margin;
43
+ vertical-align: middle;
44
+ }
45
+
46
+ &:hover {
47
+ &::before {
48
+ --final-position: -50%;
49
+ animation: animateArrow $default-animation-time forwards;
50
+ }
51
+ }
52
+ }
53
+
21
54
  &:not(:disabled) {
22
55
  cursor: pointer;
23
56
 
24
57
  &:hover {
25
58
  background: var(--light-x, var(--light-#{$default-color}));
26
59
  }
27
- }
28
60
 
61
+ &:focus {
62
+ background: var(--dark-x, var(--dark-#{$default-color}));
63
+ }
64
+ }
29
65
 
30
66
  &.#{bem.$modifier-compact} {
31
67
  padding: $compact-padding;
@@ -36,42 +72,70 @@ $font-weight:bold;
36
72
  border: 1px solid var(--x, var(--#{$default-color}));
37
73
  color: var(--x, var(--#{$default-color}));
38
74
 
39
- &:not(:disabled) {
40
- &:hover,
41
- &:focus {
42
- border: 1px solid transparent;
43
- color: var(--on-x, var(--on-#{$default-color}));
44
- }
75
+ &:hover,
76
+ &:focus,
77
+ &:disabled {
78
+ background: transparent;
79
+ }
45
80
 
81
+ &:not(:disabled) {
46
82
  &:hover {
47
- background: var(--x, var(--#{$default-color}));
83
+ border: 1px solid var(--light-x, var(--light-#{$default-color}));
84
+ color: var(--light-x, var(--light-#{$default-color}));
48
85
  }
49
86
 
50
87
  &:focus {
51
- background: var(--dark-x, var(--#{$default-color}));
88
+ border: 1px solid var(--dark-x, var(--dark-#{$default-color}));
89
+ color: var(--dark-x, var(--dark-#{$default-color}));
52
90
  }
53
91
  }
92
+
93
+ &:disabled {
94
+ border: 1px solid var(--x, var(--#{$default-color}));
95
+ color: var(--x, var(--#{$default-color}));
96
+ }
54
97
  }
55
98
 
56
99
  &.#{bem.$modifier-simple} {
57
100
  background: transparent;
58
101
  border: 1px solid transparent;
59
102
  color: var(--x, var(--#{$default-color}));
103
+ padding: 0;
104
+
105
+ &:disabled,
106
+ &:hover,
107
+ &:focus {
108
+ background: transparent;
109
+ }
60
110
 
61
111
  &:not(:disabled) {
62
- &:hover,
112
+ &:hover {
113
+ color: var(--light-x, var(--light-#{$default-color}));
114
+ }
115
+
63
116
  &:focus {
64
- background:transparent;
65
- border: 1px solid transparent;
66
- color: var(--dark-x, var(--on-#{$default-color}));
117
+ color: var(--dark-x, var(--dark-#{$default-color}));
67
118
  }
68
119
  }
120
+
121
+ &:disabled {
122
+ color: var(--x, var(--#{$default-color}));
123
+ }
69
124
  }
70
125
 
71
126
  &:disabled {
72
- background: var(--light-x);
73
- filter: brightness(120%);
127
+ background: var(--x);
128
+ filter: brightness(125%);
74
129
  }
75
130
  }
76
131
 
77
132
 
133
+ @keyframes animateArrow {
134
+ from {
135
+ transform: translateX(0);
136
+ }
137
+
138
+ to {
139
+ transform: translateX(var(--final-position));
140
+ }
141
+ }