@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
@@ -38,10 +38,13 @@ var TextInput = _ref => {
38
38
  type,
39
39
  name,
40
40
  label,
41
+ color,
42
+ labelColor,
41
43
  validate,
42
44
  oneInputLabel,
43
45
  description,
44
- disabled // ...otherProps
46
+ disabled,
47
+ placeholder // ...otherProps
45
48
 
46
49
  } = _ref;
47
50
  (0, React.useLayoutEffect)(() => {
@@ -53,17 +56,19 @@ var TextInput = _ref => {
53
56
  });
54
57
  return /*#__PURE__*/React.createElement("div", {
55
58
  id: id,
56
- className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
59
+ className: [baseClassName, componentClassName, userClassName, "y-".concat(color)].filter(e => e).join(' '),
57
60
  style: style // {...otherProps}
58
61
 
59
62
  }, /*#__PURE__*/React.createElement(_common.FormLabel, {
60
- className: ['input-label', oneInputLabel ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v'].filter(e => e).join(' '),
61
- name: name
63
+ className: [oneInputLabel ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v'].filter(e => e).join(' '),
64
+ name: name,
65
+ color: labelColor
62
66
  }, label), /*#__PURE__*/React.createElement("input", _extends({
63
67
  id: name,
64
- className: "input ".concat(meta.touched && meta.error ? 'input-border-error' : 'input-border'),
68
+ className: "input",
65
69
  type: type,
66
- disabled: disabled
70
+ disabled: disabled,
71
+ placeholder: placeholder
67
72
  }, field)), (description || meta.touched && meta.error) && /*#__PURE__*/React.createElement(_common.FormDescription, {
68
73
  isError: !!meta.error,
69
74
  className: "v50 mt-v s-1"
@@ -96,6 +101,11 @@ TextInput.propTypes = {
96
101
  */
97
102
  label: _propTypes.default.string.isRequired,
98
103
 
104
+ /**
105
+ * The input label color
106
+ */
107
+ labelColor: _propTypes.default.string,
108
+
99
109
  /**
100
110
  * The type of the input (html)
101
111
  */
@@ -119,10 +129,21 @@ TextInput.propTypes = {
119
129
  /**
120
130
  * Whether the text input should be disabled
121
131
  */
122
- disabled: _propTypes.default.bool
132
+ disabled: _propTypes.default.bool,
133
+
134
+ /**
135
+ * The placeholder text for the input
136
+ */
137
+ placeholder: _propTypes.default.string,
138
+
139
+ /**
140
+ * The text input color
141
+ */
142
+ color: _propTypes.default.string
123
143
  };
124
144
  TextInput.defaultProps = {
125
145
  type: 'text',
146
+ color: 'background2',
126
147
  disabled: false
127
148
  };
128
149
 
@@ -9,17 +9,26 @@ $default-padding: 0.75em 0.75em 0.55em;
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
 
12
- .input-label {
13
- color: var(--main1);
14
- }
15
-
16
12
  .input {
17
- background: var(--light-background1);
18
- color: var(--on-background1);
13
+ border: var(--theme-border-style) var(--dark-y);
14
+ background: var(--light-y);
15
+ color: var(--on-y);
19
16
  padding: $default-padding;
20
17
 
18
+ &::placeholder{
19
+ color: var(--metadata);
20
+ }
21
+
22
+ &:not(:disabled):hover{
23
+ border: var(--theme-border-style) var(--light-background4);
24
+ }
25
+
26
+ &:disabled {
27
+ background-color: var(--dark-y);
28
+ }
29
+
21
30
  &:focus {
22
- background: var(--dark-background1);
31
+ background: var(--light-background4);
23
32
  }
24
33
  }
25
34
  }
@@ -43,7 +43,8 @@ var TextareaInput = _ref => {
43
43
  textAreaColor,
44
44
  labelColor,
45
45
  description,
46
- disabled // ...otherProps
46
+ disabled,
47
+ placeholder // ...otherProps
47
48
 
48
49
  } = _ref;
49
50
  (0, React.useLayoutEffect)(() => {
@@ -55,16 +56,18 @@ var TextareaInput = _ref => {
55
56
  });
56
57
  return /*#__PURE__*/React.createElement("div", {
57
58
  id: id,
58
- className: [baseClassName, componentClassName, userClassName, "x-".concat(textAreaColor), "y-".concat(labelColor)].filter(e => e).join(' '),
59
+ className: [baseClassName, componentClassName, userClassName, "y-".concat(textAreaColor)].filter(e => e).join(' '),
59
60
  style: style // {...otherProps}
60
61
 
61
62
  }, /*#__PURE__*/React.createElement(_common.FormLabel, {
62
- className: ['c-y', labelAsDescription ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v'].filter(e => e).join(' '),
63
- name: name
63
+ className: [labelAsDescription ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v'].filter(e => e).join(' '),
64
+ name: name,
65
+ color: labelColor
64
66
  }, label), /*#__PURE__*/React.createElement("textarea", _extends({
65
67
  id: textAreaId,
66
- className: "textarea v50 pv-v ".concat(meta.touched && meta.error ? 'input-border-error' : 'input-border')
68
+ className: "textarea"
67
69
  }, field, {
70
+ placeholder: placeholder,
68
71
  rows: rows,
69
72
  disabled: disabled
70
73
  })), (description || meta.touched && meta.error) && /*#__PURE__*/React.createElement(_common.FormDescription, {
@@ -137,12 +140,16 @@ TextareaInput.propTypes = {
137
140
  /**
138
141
  * Whether the text area should be disabled
139
142
  */
140
- disabled: _propTypes.default.bool
143
+ disabled: _propTypes.default.bool,
144
+
145
+ /**
146
+ * The textarea placeholder text
147
+ */
148
+ placeholder: _propTypes.default.string
141
149
  };
142
150
  TextareaInput.defaultProps = {
143
151
  rows: 3,
144
- textAreaColor: 'background1',
145
- labelColor: 'main1',
152
+ textAreaColor: 'background2',
146
153
  disabled: false
147
154
  };
148
155
 
@@ -1,19 +1,32 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  @use "@pareto-engineering/bem";
3
3
 
4
+ $default-padding: .5em;
5
+
4
6
  .#{bem.$base}.text-area-input{
5
7
  display: flex;
6
8
  flex-direction: column;
7
9
 
8
10
  .textarea {
9
- background: var(--light-x);
10
- color: var(--on-x);
11
+ border: var(--theme-border-style) var(--dark-y);
12
+ background: var(--light-y);
13
+ color: var(--on-y);
14
+ padding: $default-padding;
11
15
 
12
- &:focus {
13
- background: var(--dark-x);
16
+ &::placeholder{
17
+ color: var(--metadata);
14
18
  }
15
- }
16
- }
17
19
 
20
+ &:not(:disabled):hover{
21
+ border: var(--theme-border-style) var(--light-background4);
22
+ }
18
23
 
24
+ &:disabled {
25
+ background-color: var(--dark-y);
26
+ }
19
27
 
28
+ &:focus {
29
+ background: var(--light-background4);
30
+ }
31
+ }
32
+ }
@@ -15,24 +15,6 @@ Object.defineProperty(exports, "SelectInput", {
15
15
  return _SelectInput.SelectInput;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "RadioInput", {
19
- enumerable: true,
20
- get: function get() {
21
- return _RadioInput.RadioInput;
22
- }
23
- });
24
- Object.defineProperty(exports, "CheckboxInput", {
25
- enumerable: true,
26
- get: function get() {
27
- return _CheckboxInput.CheckboxInput;
28
- }
29
- });
30
- Object.defineProperty(exports, "TaskRecommendationInput", {
31
- enumerable: true,
32
- get: function get() {
33
- return _TaskRecommendationInput.TaskRecommendationInput;
34
- }
35
- });
36
18
  Object.defineProperty(exports, "ChoicesInput", {
37
19
  enumerable: true,
38
20
  get: function get() {
@@ -56,12 +38,6 @@ var _TextInput = require("./TextInput");
56
38
 
57
39
  var _SelectInput = require("./SelectInput");
58
40
 
59
- var _RadioInput = require("./RadioInput");
60
-
61
- var _CheckboxInput = require("./CheckboxInput");
62
-
63
- var _TaskRecommendationInput = require("./TaskRecommendationInput");
64
-
65
41
  var _ChoicesInput = require("./ChoicesInput");
66
42
 
67
43
  var _TextareaInput = require("./TextareaInput");
@@ -19,7 +19,7 @@ button,
19
19
  textarea,
20
20
  label,
21
21
  select {
22
- background-color: inherit;
22
+ // background-color: inherit;
23
23
  border: 0;
24
24
  display: inline-block;
25
25
  font: inherit;
@@ -2,34 +2,34 @@
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 { Section } from "./common"; // Local Definitions
5
+ import styleNames from '@pareto-engineering/bem'; // Local Definitions
7
6
 
8
7
  const baseClassName = styleNames.base;
9
- const componentClassName = 'site-footer';
8
+ const componentClassName = 'background-gradient';
10
9
  /**
11
10
  * This is the component description.
12
11
  */
13
12
 
14
- const SiteFooter = ({
13
+ const BackgroundGradient = ({
15
14
  id,
16
15
  className: userClassName,
17
16
  style,
18
- children // ...otherProps
17
+ height // ...otherProps
19
18
 
20
19
  }) => {
21
20
  useLayoutEffect(() => {
22
21
  import("./styles.scss");
23
22
  }, []);
24
- return /*#__PURE__*/React.createElement("footer", {
23
+ return /*#__PURE__*/React.createElement("div", {
25
24
  id: id,
26
25
  className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
27
- style: style // {...otherProps}
28
-
29
- }, children);
26
+ style: { ...style,
27
+ '--gradient-height': height
28
+ }
29
+ });
30
30
  };
31
31
 
32
- SiteFooter.propTypes = {
32
+ BackgroundGradient.propTypes = {
33
33
  /**
34
34
  * The HTML id for this element
35
35
  */
@@ -46,11 +46,10 @@ SiteFooter.propTypes = {
46
46
  style: PropTypes.objectOf(PropTypes.string),
47
47
 
48
48
  /**
49
- * The children JSX
49
+ * The height of the shape.
50
50
  */
51
- children: PropTypes.node
51
+ height: PropTypes.string
52
52
  };
53
- SiteFooter.defaultProps = {// someProp:false
53
+ BackgroundGradient.defaultProps = {// someProp: false,
54
54
  };
55
- SiteFooter.Section = Section;
56
- export default SiteFooter;
55
+ export default BackgroundGradient;
@@ -0,0 +1,2 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ export { default as BackgroundGradient } from "./BackgroundGradient";
@@ -0,0 +1,16 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ @use "@pareto-engineering/bem";
3
+
4
+ .#{bem.$base}.background-gradient{
5
+ position: absolute;
6
+ top: 0;
7
+ left: 0;
8
+ width: 100%;
9
+ height: var(--gradient-height);
10
+ background-image: linear-gradient(var(--background1), var(--y) 25%, var(--light-y) 75%, var(--background1));
11
+ opacity: .4;
12
+ z-index: -1;
13
+ }
14
+
15
+
16
+
@@ -19,17 +19,18 @@ const Conversation = ({
19
19
  backgroundColor,
20
20
  ourColor,
21
21
  theirColor,
22
- children // ...otherProps
22
+ children,
23
+ hasTriangle // ...otherProps
23
24
 
24
25
  }) => {
25
26
  useLayoutEffect(() => {
26
27
  import("./styles.scss");
27
- }, []); // const messageColors = { ours: color, theirs: 'main2' }
28
-
28
+ }, []);
29
29
  return /*#__PURE__*/React.createElement(ConversationContext.Provider, {
30
30
  value: {
31
31
  ourColor,
32
- theirColor
32
+ theirColor,
33
+ hasTriangle
33
34
  }
34
35
  }, /*#__PURE__*/React.createElement("div", {
35
36
  id: id,
@@ -72,12 +73,18 @@ Conversation.propTypes = {
72
73
  /**
73
74
  * The children JSX
74
75
  */
75
- children: PropTypes.node
76
+ children: PropTypes.node,
77
+
78
+ /**
79
+ * whether to add triangle to bubble chats
80
+ */
81
+ hasTriangle: PropTypes.bool
76
82
  };
77
83
  Conversation.defaultProps = {
78
- backgroundColor: 'background',
79
- ourColor: 'main2',
80
- theirColor: 'background2'
84
+ backgroundColor: 'background2',
85
+ ourColor: 'background1',
86
+ theirColor: 'background1',
87
+ hasTriangle: 'false'
81
88
  };
82
89
  Conversation.Message = Message;
83
90
  export default Conversation;
@@ -16,22 +16,32 @@ const Message = ({
16
16
  style,
17
17
  message,
18
18
  sender,
19
- from // ...otherProps
19
+ from,
20
+ attachment,
21
+ attachmentIcon,
22
+ attachmentColor // ...otherProps
20
23
 
21
24
  }) => {
22
25
  const {
26
+ hasTriangle,
23
27
  ourColor,
24
28
  theirColor
25
29
  } = useConversation();
26
30
  return /*#__PURE__*/React.createElement("div", {
27
31
  id: id,
28
- className: [baseClassName, componentClassName, userClassName, `x-${from === 'ours' ? ourColor : theirColor}`, from === 'ours' && 'ours'].filter(e => e).join(' '),
32
+ className: [baseClassName, componentClassName, userClassName, `x-${from === 'ours' ? ourColor : theirColor}`, from === 'ours' && 'ours', hasTriangle === true ? 'has-triangle' : '', 'v1'].filter(e => e).join(' '),
29
33
  style: style
30
34
  }, /*#__PURE__*/React.createElement("div", {
31
35
  className: styleNames.elementContent
32
36
  }, /*#__PURE__*/React.createElement("p", {
33
37
  className: "sender v25 mb-v s-1"
34
- }, sender, ":"), /*#__PURE__*/React.createElement("p", null, message)));
38
+ }, sender, ":"), /*#__PURE__*/React.createElement("p", null, message), attachment && /*#__PURE__*/React.createElement("div", {
39
+ className: `attachment y-${attachmentColor}`
40
+ }, /*#__PURE__*/React.createElement("span", {
41
+ className: "f-icons"
42
+ }, attachmentIcon), /*#__PURE__*/React.createElement("p", {
43
+ className: "ml-v"
44
+ }, attachment))));
35
45
  };
36
46
 
37
47
  Message.propTypes = {
@@ -45,6 +55,11 @@ Message.propTypes = {
45
55
  */
46
56
  className: PropTypes.string,
47
57
 
58
+ /**
59
+ * The React-written, css properties for this element.
60
+ */
61
+ style: PropTypes.objectOf(PropTypes.string),
62
+
48
63
  /**
49
64
  * The message in the conversation
50
65
  */
@@ -61,11 +76,23 @@ Message.propTypes = {
61
76
  from: PropTypes.oneOf(['ours', 'theirs']),
62
77
 
63
78
  /**
64
- * The React-written, css properties for this element.
79
+ * name of the attachment file
80
+ */
81
+ attachment: PropTypes.string,
82
+
83
+ /**
84
+ * source of the attachment icon
85
+ */
86
+ attachmentIcon: PropTypes.string,
87
+
88
+ /**
89
+ * background color of the attachment box
65
90
  */
66
- style: PropTypes.objectOf(PropTypes.string)
91
+ attachmentColor: PropTypes.string
67
92
  };
68
93
  Message.defaultProps = {
69
- from: 'theirs'
94
+ from: 'theirs',
95
+ attachmentIcon: 'A',
96
+ attachmentColor: 'main4'
70
97
  };
71
98
  export default Message;
@@ -1,54 +1,149 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
+
2
3
  @use "@pareto-engineering/bem";
3
4
  @use "@aztlan/stylebook/src/mixins";
4
5
  @use "@aztlan/stylebook/src/globals" as *;
5
6
 
6
7
  $default-padding: var(--u);
7
8
  $default-conversation-background: var(--y);
8
- $default-message-max-width: calc(100% - #{$default-padding});
9
+ $default-message-max-width: calc(100% - 4 * #{$default-padding});
9
10
  $default-message-min-width: 12em;
10
11
  $default-message-border: var(--theme-border);
12
+ $triangle-border-size: 15px;
13
+ $triangle-border-style: $triangle-border-size solid;
14
+ $triangle-border-style-subtracted: ($triangle-border-size - 1px) solid;
15
+ $triangle-border1: $triangle-border-style var(--paragraph);
16
+ $triangle-border2: $triangle-border-style transparent;
17
+ $triangle-border3: $triangle-border-style-subtracted var(--x);
18
+ $triangle-border4: $triangle-border-style-subtracted transparent;
19
+ $triangle-before-side:24px;
20
+ $triangle-before-bottom:-30px;
21
+ $triangle-after-bottom:-27px;
22
+ $triangle-after-side:25px;
11
23
 
12
24
  .#{bem.$base}.conversation {
13
- display: flex;
14
- flex-direction: column;
15
- background-color: $default-conversation-background;
16
- padding: $default-padding;
25
+ background-color: $default-conversation-background;
26
+ border-radius: var(--theme-border-radius);
27
+ display: flex;
28
+ flex-direction: column;
29
+ padding: $default-padding;
30
+
31
+ >:not(:last-child) {
32
+ margin-bottom: $default-padding;
33
+ }
34
+
35
+ // >:nth-child(1) {
36
+ // animation-delay: 1s;
37
+ // }
38
+ // >:nth-child(2) {
39
+ // animation-delay: 3s;
40
+ // }
41
+
42
+ .#{bem.$base}.message {
43
+ align-self: flex-start;
44
+ background-color: var(--x);
45
+ // animation: fadeIn 1s ease-in both;
46
+ border: $default-message-border;
17
47
  border-radius: var(--theme-border-radius);
48
+ max-width: $default-message-max-width;
49
+ min-width: $default-message-min-width;
50
+ padding: $default-padding;
51
+ position: relative;
18
52
 
19
- >:not(:last-child) {
20
- margin-bottom: $default-padding;
21
- }
53
+ .#{bem.$element-content} {
54
+ display: flex;
55
+ flex-direction: column;
56
+
57
+ >p {
58
+ color: var(--on-x);
59
+ }
60
+
61
+ .sender {
62
+ font-weight: 800;
63
+ margin-bottom: .5em;
64
+ }
65
+
66
+ .attachment {
67
+ align-self: baseline;
68
+ background-color: var(--y);
69
+ display: flex;
70
+ flex-direction: row;
71
+ padding: .5em 1em;
22
72
 
23
- .#{bem.$base}.message {
24
- min-width: $default-message-min-width;
25
- max-width: $default-message-max-width;
26
- padding: $default-padding;
27
- border-radius: var(--theme-border-radius);
28
- background-color: var(--x);
29
- align-self: flex-start;
30
- border: $default-message-border;
31
-
32
- .#{bem.$element-content} {
33
- display: flex;
34
- flex-direction: column;
35
-
36
- >p {
37
- color: var(--on-x);
38
- }
39
-
40
- .sender {
41
- font-weight: 800;
42
- margin-bottom: .5em;
43
- }
73
+ > p {
74
+ margin-bottom: 0;
44
75
  }
45
- }
46
76
 
47
- .#{bem.$base}.ours {
48
- align-self: flex-end;
77
+ > img {
78
+ width: 40px;
79
+ }
80
+ }
81
+ }
82
+ &.#{bem.$base}.ours {
83
+ align-self: flex-end;
49
84
  }
50
85
 
51
- }
86
+ &.has-triangle {
87
+ ::before {
88
+ border-bottom: $triangle-border2;
89
+ border-left: $triangle-border2;
90
+ border-right: $triangle-border1;
91
+ border-top: $triangle-border1;
92
+ bottom: $triangle-before-bottom;
93
+ content: "";
94
+ height: 0;
95
+ position: absolute;
96
+ right: $triangle-before-side;
97
+ width: 0;
98
+ }
99
+
100
+ ::after {
101
+ border-bottom: $triangle-border4;
102
+ border-left: $triangle-border4;
103
+ border-right: $triangle-border3;
104
+ border-top: $triangle-border3;
105
+ bottom: $triangle-after-bottom;
106
+ content: "";
107
+ height: 0;
108
+ position: absolute;
109
+ right: $triangle-after-side;
110
+ width: 0;
111
+ }
52
112
 
113
+ &:not(.ours) {
114
+ ::before {
115
+ border-bottom: $triangle-border2;
116
+ border-left: $triangle-border1;
117
+ border-right: $triangle-border2;
118
+ border-top: $triangle-border1;
119
+ bottom: $triangle-before-bottom;
120
+ content: "";
121
+ height: 0;
122
+ left: $triangle-before-side;
123
+ position: absolute;
124
+ width: 0;
125
+ }
53
126
 
127
+ ::after {
128
+ border-bottom: $triangle-border4;
129
+ border-left: $triangle-border3;
130
+ border-right: $triangle-border4;
131
+ border-top: $triangle-border3;
132
+ bottom: $triangle-after-bottom;
133
+ content: "";
134
+ height: 0;
135
+ left: $triangle-after-side;
136
+ position: absolute;
137
+ width: 0;
138
+ }
139
+ }
140
+ }
54
141
 
142
+ // mobile style
143
+ @include mixins.media($to:$sm-md) {
144
+ .message {
145
+ margin-top: 2em;
146
+ }
147
+ }
148
+ }
149
+ }