@pareto-engineering/design-system 2.0.0-alpha.6 → 2.0.0-alpha.60

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 (373) hide show
  1. package/.env.scripts.example +4 -0
  2. package/.eslintrc.js +25 -1
  3. package/babel.config.js +1 -0
  4. package/dist/cjs/a/Alert/Alert.js +141 -0
  5. package/dist/cjs/a/Alert/index.js +15 -0
  6. package/dist/cjs/a/Alert/styles.scss +74 -0
  7. package/dist/cjs/a/AppContext/Context.js +16 -0
  8. package/dist/cjs/a/AppContext/ContextProvider.js +96 -0
  9. package/dist/cjs/a/AppContext/index.js +39 -0
  10. package/dist/cjs/a/AppContext/useApp.js +16 -0
  11. package/dist/cjs/a/AppContext/useTheme.js +45 -0
  12. package/dist/cjs/a/BackgroundGradient/BackgroundGradient.js +77 -0
  13. package/dist/cjs/a/BackgroundGradient/index.js +15 -0
  14. package/dist/cjs/a/BackgroundGradient/styles.scss +16 -0
  15. package/dist/cjs/a/ContentTree/ContentTree.js +83 -0
  16. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +116 -0
  17. package/dist/cjs/a/ContentTree/common/Tree/index.js +15 -0
  18. package/dist/cjs/a/ContentTree/common/index.js +31 -0
  19. package/dist/cjs/a/ContentTree/common/useContentTree.js +82 -0
  20. package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +65 -0
  21. package/dist/cjs/a/ContentTree/index.js +15 -0
  22. package/dist/cjs/a/ContentTree/styles.scss +33 -0
  23. package/dist/cjs/a/Conversation/Conversation.js +14 -8
  24. package/dist/cjs/a/Conversation/common/Message/Message.js +32 -6
  25. package/dist/cjs/a/Conversation/styles.scss +132 -33
  26. package/dist/cjs/a/OvalIllustration/OvalIllustration.js +133 -0
  27. package/dist/cjs/a/OvalIllustration/index.js +15 -0
  28. package/dist/cjs/a/OvalIllustration/styles.scss +102 -0
  29. package/dist/cjs/a/Popover/Popover.js +134 -0
  30. package/dist/cjs/a/Popover/common/Divider/Divider.js +67 -0
  31. package/dist/cjs/a/Popover/common/Divider/index.js +15 -0
  32. package/dist/cjs/a/Popover/common/Item/Item.js +67 -0
  33. package/dist/cjs/a/Popover/common/Item/index.js +15 -0
  34. package/dist/cjs/a/Popover/common/index.js +21 -0
  35. package/dist/cjs/a/Popover/index.js +15 -0
  36. package/dist/cjs/a/Popover/styles.scss +33 -0
  37. package/dist/cjs/a/Shapes/Shapes.js +9 -1
  38. package/dist/cjs/a/Shapes/styles.scss +42 -9
  39. package/dist/cjs/a/SnapScroller/SnapScroller.js +77 -0
  40. package/dist/cjs/a/SnapScroller/index.js +15 -0
  41. package/dist/cjs/a/SnapScroller/styles.scss +38 -0
  42. package/dist/cjs/a/index.js +57 -9
  43. package/dist/cjs/b/Button/Button.js +10 -4
  44. package/dist/cjs/b/Button/styles.scss +55 -10
  45. package/dist/cjs/b/Logo/Logo.js +41 -41
  46. package/dist/cjs/b/Logo/styles.scss +0 -138
  47. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +1 -1
  48. package/dist/cjs/b/Page/common/Section/Section.js +17 -3
  49. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +4 -4
  50. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
  51. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +16 -9
  52. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +4 -3
  53. package/dist/cjs/c/ContentSlides/styles.scss +10 -4
  54. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +111 -0
  55. package/dist/cjs/c/SocialMediaShareButton/index.js +15 -0
  56. package/dist/cjs/c/SocialMediaShareButton/styles.scss +39 -0
  57. package/dist/cjs/c/index.js +9 -1
  58. package/dist/cjs/f/FormInput/FormInput.js +26 -3
  59. package/dist/cjs/f/FormInput/styles.scss +11 -0
  60. package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
  61. package/dist/cjs/f/common/Description/Description.js +20 -14
  62. package/dist/cjs/f/common/Label/Label.js +1 -1
  63. package/dist/cjs/f/common/Label/styles.scss +1 -1
  64. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +2 -2
  65. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +5 -2
  66. package/dist/cjs/f/fields/ChoicesInput/styles.scss +17 -2
  67. package/dist/cjs/f/fields/IntlTelInput/IntlTelInput.js +170 -0
  68. package/dist/cjs/f/fields/IntlTelInput/index.js +15 -0
  69. package/dist/cjs/f/fields/IntlTelInput/styles.scss +37 -0
  70. package/dist/cjs/f/fields/PhoneIntlTelInput/PhoneIntlTelInput.js +180 -0
  71. package/dist/cjs/f/fields/PhoneIntlTelInput/index.js +15 -0
  72. package/dist/cjs/f/fields/PhoneIntlTelInput/styles.scss +43 -0
  73. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +235 -0
  74. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +208 -0
  75. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +15 -0
  76. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +103 -0
  77. package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +15 -0
  78. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +307 -0
  79. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +15 -0
  80. package/dist/cjs/f/fields/QueryCombobox/common/index.js +29 -0
  81. package/dist/cjs/f/fields/QueryCombobox/index.js +15 -0
  82. package/dist/cjs/f/fields/QueryCombobox/styles.scss +90 -0
  83. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +201 -0
  84. package/dist/cjs/f/fields/QuerySelect/index.js +15 -0
  85. package/dist/cjs/f/fields/QuerySelect/styles.scss +21 -0
  86. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +39 -6
  87. package/dist/cjs/f/fields/RatingsInput/styles.scss +29 -20
  88. package/dist/cjs/f/fields/SelectInput/SelectInput.js +59 -14
  89. package/dist/cjs/f/fields/SelectInput/styles.scss +33 -13
  90. package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +1 -1
  91. package/dist/cjs/f/fields/TextInput/TextInput.js +50 -13
  92. package/dist/cjs/f/fields/TextInput/styles.scss +16 -7
  93. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +41 -15
  94. package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -6
  95. package/dist/cjs/f/fields/index.js +15 -23
  96. package/dist/cjs/form-reset.scss +1 -1
  97. package/dist/cjs/index.js +26 -0
  98. package/dist/cjs/test/QueryLoader/QueryLoader.js +41 -0
  99. package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +71 -0
  100. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +49 -0
  101. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +15 -0
  102. package/dist/cjs/test/QueryLoader/common/index.js +13 -0
  103. package/dist/cjs/test/QueryLoader/index.js +15 -0
  104. package/dist/cjs/test/QueryLoader/styles.scss +9 -0
  105. package/dist/cjs/test/index.js +13 -0
  106. package/dist/cjs/utils/hooks/index.js +23 -0
  107. package/dist/cjs/utils/hooks/useDynamicPosition.js +107 -0
  108. package/dist/cjs/utils/hooks/useWindowSize.js +39 -0
  109. package/dist/cjs/utils/index.js +19 -0
  110. package/dist/es/a/Alert/Alert.js +118 -0
  111. package/dist/es/a/Alert/index.js +2 -0
  112. package/dist/es/a/Alert/styles.scss +74 -0
  113. package/dist/es/a/AppContext/Context.js +2 -0
  114. package/dist/es/a/AppContext/ContextProvider.js +78 -0
  115. package/dist/es/a/AppContext/index.js +5 -0
  116. package/dist/es/a/AppContext/useApp.js +3 -0
  117. package/dist/es/a/AppContext/useTheme.js +34 -0
  118. package/dist/es/a/BackgroundGradient/BackgroundGradient.js +55 -0
  119. package/dist/es/a/BackgroundGradient/index.js +2 -0
  120. package/dist/es/a/BackgroundGradient/styles.scss +16 -0
  121. package/dist/es/a/ContentTree/ContentTree.js +67 -0
  122. package/dist/es/a/ContentTree/common/Tree/Tree.js +98 -0
  123. package/dist/es/a/ContentTree/common/Tree/index.js +2 -0
  124. package/dist/es/a/ContentTree/common/index.js +3 -0
  125. package/dist/es/a/ContentTree/common/useContentTree.js +74 -0
  126. package/dist/es/a/ContentTree/common/useFirstVisibleNode.js +54 -0
  127. package/dist/es/a/ContentTree/index.js +2 -0
  128. package/dist/es/a/ContentTree/styles.scss +33 -0
  129. package/dist/es/a/Conversation/Conversation.js +14 -8
  130. package/dist/es/a/Conversation/common/Message/Message.js +32 -6
  131. package/dist/es/a/Conversation/styles.scss +132 -33
  132. package/dist/es/a/OvalIllustration/OvalIllustration.js +111 -0
  133. package/dist/es/a/OvalIllustration/index.js +2 -0
  134. package/dist/es/a/OvalIllustration/styles.scss +102 -0
  135. package/dist/es/a/Popover/Popover.js +118 -0
  136. package/dist/es/a/Popover/common/Divider/Divider.js +47 -0
  137. package/dist/es/a/Popover/common/Divider/index.js +2 -0
  138. package/dist/es/a/Popover/common/Item/Item.js +47 -0
  139. package/dist/es/a/Popover/common/Item/index.js +2 -0
  140. package/dist/es/a/Popover/common/index.js +2 -0
  141. package/dist/es/a/Popover/index.js +2 -0
  142. package/dist/es/a/Popover/styles.scss +33 -0
  143. package/dist/es/a/Shapes/Shapes.js +9 -1
  144. package/dist/es/a/Shapes/styles.scss +42 -9
  145. package/dist/es/a/SnapScroller/SnapScroller.js +61 -0
  146. package/dist/es/a/SnapScroller/index.js +2 -0
  147. package/dist/es/a/SnapScroller/styles.scss +38 -0
  148. package/dist/es/a/index.js +8 -2
  149. package/dist/es/b/Button/Button.js +8 -2
  150. package/dist/es/b/Button/styles.scss +55 -10
  151. package/dist/es/b/Logo/Logo.js +41 -41
  152. package/dist/es/b/Logo/styles.scss +0 -138
  153. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +2 -2
  154. package/dist/es/b/Page/common/Section/Section.js +17 -3
  155. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +5 -5
  156. package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -2
  157. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +16 -9
  158. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +4 -3
  159. package/dist/es/c/ContentSlides/styles.scss +10 -4
  160. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +95 -0
  161. package/dist/es/c/SocialMediaShareButton/index.js +2 -0
  162. package/dist/es/c/SocialMediaShareButton/styles.scss +39 -0
  163. package/dist/es/c/index.js +2 -1
  164. package/dist/es/f/FormInput/FormInput.js +26 -3
  165. package/dist/es/f/FormInput/styles.scss +11 -0
  166. package/dist/es/f/common/Debugger/Debugger.js +1 -1
  167. package/dist/es/f/common/Description/Description.js +19 -14
  168. package/dist/es/f/common/Label/Label.js +1 -1
  169. package/dist/es/f/common/Label/styles.scss +1 -1
  170. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +2 -2
  171. package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +5 -2
  172. package/dist/es/f/fields/ChoicesInput/styles.scss +17 -2
  173. package/dist/es/f/fields/IntlTelInput/IntlTelInput.js +152 -0
  174. package/dist/es/f/fields/IntlTelInput/index.js +2 -0
  175. package/dist/es/f/fields/IntlTelInput/styles.scss +37 -0
  176. package/dist/es/f/fields/PhoneIntlTelInput/PhoneIntlTelInput.js +163 -0
  177. package/dist/es/f/fields/PhoneIntlTelInput/index.js +2 -0
  178. package/dist/es/f/fields/PhoneIntlTelInput/styles.scss +43 -0
  179. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +212 -0
  180. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +188 -0
  181. package/dist/es/f/fields/QueryCombobox/common/Combobox/index.js +2 -0
  182. package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +77 -0
  183. package/dist/es/f/fields/QueryCombobox/common/Menu/index.js +2 -0
  184. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +279 -0
  185. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
  186. package/dist/es/f/fields/QueryCombobox/common/index.js +3 -0
  187. package/dist/es/f/fields/QueryCombobox/index.js +2 -0
  188. package/dist/es/f/fields/QueryCombobox/styles.scss +90 -0
  189. package/dist/es/f/fields/QuerySelect/QuerySelect.js +179 -0
  190. package/dist/es/f/fields/QuerySelect/index.js +2 -0
  191. package/dist/es/f/fields/QuerySelect/styles.scss +21 -0
  192. package/dist/es/f/fields/RatingsInput/RatingsInput.js +38 -6
  193. package/dist/es/f/fields/RatingsInput/styles.scss +29 -20
  194. package/dist/es/f/fields/SelectInput/SelectInput.js +58 -14
  195. package/dist/es/f/fields/SelectInput/styles.scss +33 -13
  196. package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +1 -1
  197. package/dist/es/f/fields/TextInput/TextInput.js +50 -13
  198. package/dist/es/f/fields/TextInput/styles.scss +16 -7
  199. package/dist/es/f/fields/TextareaInput/TextareaInput.js +41 -15
  200. package/dist/es/f/fields/TextareaInput/styles.scss +19 -6
  201. package/dist/es/f/fields/index.js +3 -4
  202. package/dist/es/form-reset.scss +1 -1
  203. package/dist/es/index.js +3 -1
  204. package/dist/es/test/QueryLoader/QueryLoader.js +29 -0
  205. package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +71 -0
  206. package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +31 -0
  207. package/dist/es/test/QueryLoader/common/PreloadedTestData/index.js +2 -0
  208. package/dist/es/test/QueryLoader/common/index.js +1 -0
  209. package/dist/es/test/QueryLoader/index.js +2 -0
  210. package/dist/es/test/QueryLoader/styles.scss +9 -0
  211. package/dist/es/test/index.js +1 -0
  212. package/dist/es/utils/hooks/index.js +2 -0
  213. package/dist/es/utils/hooks/useDynamicPosition.js +93 -0
  214. package/dist/es/utils/hooks/useWindowSize.js +27 -0
  215. package/dist/es/utils/index.js +1 -0
  216. package/package.json +18 -4
  217. package/relay.config.js +12 -0
  218. package/schema.graphql +4075 -0
  219. package/scripts/fetchSchema.js +74 -0
  220. package/src/__snapshots__/Storyshots.test.js.snap +10152 -5495
  221. package/src/local.scss +4 -2
  222. package/src/stories/StyleGuide/Sprites.stories.mdx +25 -0
  223. package/src/stories/StyleGuide/helpers.js +16 -0
  224. package/src/stories/a/Alert.stories.jsx +75 -0
  225. package/src/stories/a/{SiteContext.stories.jsx → AppContext.stories.jsx} +8 -8
  226. package/src/stories/a/BackgroundGradient.stories.jsx +38 -0
  227. package/src/stories/a/ContentTree.stories.jsx +662 -0
  228. package/src/stories/a/Conversation.stories.jsx +78 -1
  229. package/src/stories/a/DotInfo.stories.jsx +14 -13
  230. package/src/stories/a/OvalIllustration.stories.jsx +59 -0
  231. package/src/stories/a/Popover.stories.jsx +106 -0
  232. package/src/stories/a/ProgressBar.stories.jsx +16 -7
  233. package/src/stories/a/Shapes.stories.jsx +18 -0
  234. package/src/stories/a/SnapScroller.stories.jsx +98 -0
  235. package/src/stories/a/Timestamp.stories.jsx +35 -39
  236. package/src/stories/b/Button.stories.jsx +27 -4
  237. package/src/stories/b/Logo.stories.jsx +23 -14
  238. package/src/stories/b/Page.stories.jsx +25 -1
  239. package/src/stories/b/QuestionDropdown.stories.jsx +20 -30
  240. package/src/stories/b/SocialMediaButton.stories.jsx +36 -53
  241. package/src/stories/b/ThemeSelector.stories.jsx +5 -5
  242. package/src/stories/b/Title.stories.jsx +13 -15
  243. package/src/stories/c/ContentSlides.stories.jsx +35 -151
  244. package/src/stories/c/Shortener.stories.jsx +9 -3
  245. package/src/stories/c/SocialMediaShareButton.stories.jsx +33 -0
  246. package/src/stories/f/ChoicesInput.stories.jsx +91 -129
  247. package/src/stories/f/Description.stories.jsx +22 -4
  248. package/src/stories/f/FormInput.stories.jsx +259 -0
  249. package/src/stories/f/QueryCombobox.stories.jsx +273 -0
  250. package/src/stories/f/QuerySelect.stories.jsx +135 -0
  251. package/src/stories/f/RatingsInput.stories.jsx +29 -22
  252. package/src/stories/f/SelectInput.stories.jsx +41 -49
  253. package/src/stories/f/TextInput.stories.jsx +63 -43
  254. package/src/stories/f/TextareaInput.stories.jsx +63 -19
  255. package/src/stories/f/__generated__/FormInputAllTaskStatusesQuery.graphql.js +122 -0
  256. package/src/stories/f/__generated__/FormInputAllTeamsQuery.graphql.js +139 -0
  257. package/src/stories/f/__generated__/QueryComboboxAllTeamsQuery.graphql.js +139 -0
  258. package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +122 -0
  259. package/src/stories/test/QueryLoader.stories.jsx +36 -0
  260. package/src/stories/utils/generateNodeId.js +12 -0
  261. package/src/stories/utils/lorem.js +15 -0
  262. package/src/stories/utils/relay/EnvironmentProvider.jsx +14 -0
  263. package/src/stories/utils/relay/environment.js +5 -0
  264. package/src/stories/utils/relay/index.js +4 -0
  265. package/src/stories/utils/relay/mockRelayOperation.js +14 -0
  266. package/src/stories/utils/relay/mockResolvers.js +299 -0
  267. package/src/stories/utils/testData.js +63 -0
  268. package/src/ui/a/Alert/Alert.jsx +144 -0
  269. package/src/ui/a/Alert/index.js +2 -0
  270. package/src/ui/a/Alert/styles.scss +74 -0
  271. package/src/ui/a/{SiteContext → AppContext}/Context.js +0 -0
  272. package/src/ui/a/{SiteContext → AppContext}/ContextProvider.jsx +8 -7
  273. package/src/ui/a/AppContext/index.js +5 -0
  274. package/src/ui/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -0
  275. package/src/ui/a/{SiteContext → AppContext}/useTheme.js +0 -0
  276. package/src/ui/a/BackgroundGradient/BackgroundGradient.jsx +76 -0
  277. package/src/ui/a/BackgroundGradient/index.js +2 -0
  278. package/src/ui/a/BackgroundGradient/styles.scss +16 -0
  279. package/src/ui/a/ContentTree/ContentTree.jsx +88 -0
  280. package/src/ui/a/ContentTree/common/Tree/Tree.jsx +138 -0
  281. package/src/ui/a/ContentTree/common/Tree/index.js +2 -0
  282. package/src/ui/a/ContentTree/common/index.js +3 -0
  283. package/src/ui/a/ContentTree/common/useContentTree.js +83 -0
  284. package/src/ui/a/ContentTree/common/useFirstVisibleNode.js +59 -0
  285. package/src/ui/a/ContentTree/index.js +2 -0
  286. package/src/ui/a/ContentTree/styles.scss +33 -0
  287. package/src/ui/a/Conversation/Conversation.jsx +15 -7
  288. package/src/ui/a/Conversation/common/Message/Message.jsx +38 -6
  289. package/src/ui/a/Conversation/styles.scss +132 -33
  290. package/src/ui/a/OvalIllustration/OvalIllustration.jsx +134 -0
  291. package/src/ui/a/OvalIllustration/index.js +2 -0
  292. package/src/ui/a/OvalIllustration/styles.scss +102 -0
  293. package/src/ui/a/Popover/Popover.jsx +157 -0
  294. package/src/ui/a/Popover/index.js +2 -0
  295. package/src/ui/a/Popover/styles.scss +33 -0
  296. package/src/ui/a/Shapes/Shapes.jsx +10 -0
  297. package/src/ui/a/Shapes/styles.scss +42 -9
  298. package/src/ui/a/SnapScroller/SnapScroller.jsx +83 -0
  299. package/src/ui/a/SnapScroller/index.js +2 -0
  300. package/src/ui/a/SnapScroller/styles.scss +38 -0
  301. package/src/ui/a/index.js +10 -4
  302. package/src/ui/b/Button/Button.jsx +9 -1
  303. package/src/ui/b/Button/styles.scss +55 -10
  304. package/src/ui/b/Logo/Logo.jsx +41 -41
  305. package/src/ui/b/Logo/styles.scss +0 -138
  306. package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +2 -2
  307. package/src/ui/b/Page/common/Section/Section.jsx +19 -2
  308. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +4 -4
  309. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
  310. package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +12 -5
  311. package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +3 -2
  312. package/src/ui/c/ContentSlides/styles.scss +10 -4
  313. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +121 -0
  314. package/src/ui/c/SocialMediaShareButton/index.js +2 -0
  315. package/src/ui/c/SocialMediaShareButton/styles.scss +39 -0
  316. package/src/ui/c/index.js +1 -0
  317. package/src/ui/f/FormInput/FormInput.jsx +38 -1
  318. package/src/ui/f/FormInput/styles.scss +11 -0
  319. package/src/ui/f/common/Debugger/Debugger.jsx +1 -1
  320. package/src/ui/f/common/Description/Description.jsx +34 -29
  321. package/src/ui/f/common/Label/Label.jsx +1 -1
  322. package/src/ui/f/common/Label/styles.scss +1 -1
  323. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +2 -2
  324. package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +10 -2
  325. package/src/ui/f/fields/ChoicesInput/styles.scss +17 -2
  326. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +227 -0
  327. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +218 -0
  328. package/src/ui/f/fields/QueryCombobox/common/Combobox/index.js +2 -0
  329. package/src/ui/f/fields/QueryCombobox/common/Menu/Menu.jsx +103 -0
  330. package/src/ui/f/fields/QueryCombobox/common/Menu/index.js +2 -0
  331. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +314 -0
  332. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
  333. package/src/ui/f/fields/QueryCombobox/common/index.js +3 -0
  334. package/src/ui/f/fields/QueryCombobox/index.js +2 -0
  335. package/src/ui/f/fields/QueryCombobox/styles.scss +90 -0
  336. package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +200 -0
  337. package/src/ui/f/fields/QuerySelect/index.js +2 -0
  338. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +54 -19
  339. package/src/ui/f/fields/RatingsInput/styles.scss +29 -20
  340. package/src/ui/f/fields/SelectInput/SelectInput.jsx +66 -8
  341. package/src/ui/f/fields/SelectInput/styles.scss +33 -13
  342. package/src/ui/f/fields/TextInput/TextInput.jsx +44 -10
  343. package/src/ui/f/fields/TextInput/styles.scss +16 -7
  344. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +42 -21
  345. package/src/ui/f/fields/TextareaInput/styles.scss +19 -6
  346. package/src/ui/f/fields/index.js +2 -3
  347. package/src/ui/form-reset.scss +1 -1
  348. package/src/ui/index.js +2 -0
  349. package/src/ui/test/QueryLoader/QueryLoader.jsx +41 -0
  350. package/src/ui/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +68 -0
  351. package/src/ui/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.jsx +51 -0
  352. package/src/ui/test/QueryLoader/common/PreloadedTestData/index.js +2 -0
  353. package/src/ui/test/QueryLoader/common/index.js +1 -0
  354. package/src/ui/test/QueryLoader/index.js +2 -0
  355. package/src/ui/test/index.js +1 -0
  356. package/src/ui/utils/hooks/index.js +2 -0
  357. package/src/ui/utils/hooks/useDynamicPosition.js +104 -0
  358. package/src/ui/utils/hooks/useWindowSize.js +32 -0
  359. package/src/ui/utils/index.js +1 -0
  360. package/stylelint.config.js +13 -13
  361. package/src/stories/f/CheckboxInput.stories.jsx +0 -37
  362. package/src/stories/f/RadioInput.stories.jsx +0 -37
  363. package/src/stories/f/TaskRecommendationInput.stories.jsx +0 -38
  364. package/src/ui/a/SiteContext/index.js +0 -5
  365. package/src/ui/f/fields/CheckboxInput/CheckboxInput.jsx +0 -107
  366. package/src/ui/f/fields/CheckboxInput/index.js +0 -2
  367. package/src/ui/f/fields/CheckboxInput/styles.scss +0 -28
  368. package/src/ui/f/fields/RadioInput/RadioInput.jsx +0 -112
  369. package/src/ui/f/fields/RadioInput/index.js +0 -2
  370. package/src/ui/f/fields/RadioInput/styles.scss +0 -26
  371. package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +0 -130
  372. package/src/ui/f/fields/TaskRecommendationInput/index.js +0 -2
  373. package/src/ui/f/fields/TaskRecommendationInput/styles.scss +0 -41
@@ -13,11 +13,14 @@ export default {
13
13
  // storyfn => <div className="">{ storyfn() }</div>,
14
14
  ],
15
15
  argTypes:{
16
+ question :{ control: 'text' },
17
+ isFAQSchema :{ control: 'boolean' },
18
+ defaultIsOpen:{ control: 'boolean' },
16
19
  },
17
20
  }
18
21
 
19
- export const Base = () => (
20
- <QuestionDropdown question="What is Pareto?">
22
+ const Template = (args) => (
23
+ <QuestionDropdown question="What is Pareto?" {...args}>
21
24
  <p>
22
25
  Pareto is a female-owned and operated virtual workforce helping startups and
23
26
  small businesses automate day-to-day data processing, sales outreach,
@@ -31,32 +34,19 @@ export const Base = () => (
31
34
  </QuestionDropdown>
32
35
  )
33
36
 
34
- export const withSEO = () => (
35
- <QuestionDropdown question="What is Pareto?" isFAQSchema>
36
- <p>
37
- Pareto is a female-owned and operated virtual workforce helping startups and
38
- small businesses automate day-to-day data processing, sales outreach,
39
- product research, and admin operations. We combine the quality and care of
40
- real people with the efficiency of machine automation to get the job done.
41
- </p>
42
- <p>
43
- At the same time, we’re a WBENC-certified business,
44
- empowering women in developing countries with meaningful economic opportunities.
45
- </p>
46
- </QuestionDropdown>
47
- )
37
+ export const Base = Template.bind({})
38
+ Base.args = {
39
+ question:'What is Pareto?',
40
+ }
48
41
 
49
- export const OpenQuestionDropdown = () => (
50
- <QuestionDropdown question="What is Pareto?" defaultIsOpen>
51
- <p>
52
- Pareto is a female-owned and operated virtual workforce helping startups and
53
- small businesses automate day-to-day data processing, sales outreach,
54
- product research, and admin operations. We combine the quality and care of
55
- real people with the efficiency of machine automation to get the job done.
56
- </p>
57
- <p>
58
- At the same time, we’re a WBENC-certified business,
59
- empowering women in developing countries with meaningful economic opportunities.
60
- </p>
61
- </QuestionDropdown>
62
- )
42
+ export const withSEO = Template.bind({})
43
+ withSEO.args = {
44
+ ...Base.args,
45
+ isFAQSchema:true,
46
+ }
47
+
48
+ export const OpenQuestionDropdown = Template.bind({})
49
+ OpenQuestionDropdown.args = {
50
+ ...Base.args,
51
+ defaultIsOpen:true,
52
+ }
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { SiteContextProvider, SocialMediaButton } from 'ui'
4
+ import { AppContextProvider, SocialMediaButton } from 'ui'
5
5
 
6
6
  export default {
7
7
  title :'b/SocialMediaButton',
@@ -13,61 +13,44 @@ export default {
13
13
  // storyfn => <div className="">{ storyfn() }</div>,
14
14
  ],
15
15
  argTypes:{
16
- backgroundColor:{ control: 'color' },
16
+ // backgroundColor:{ control: 'color' },
17
+ isTransparent:{ control: 'boolean' },
17
18
  },
18
19
  }
19
20
 
20
- export const Base = () => (
21
- <SiteContextProvider
22
- config={{
23
- SITE:{
24
- NAME :'Pareto',
25
- CANONICAL :'https://hellopareto.com',
26
- SUPPORT_EMAIL:'support@hellopareto.com',
27
- TITLE_SUFFIX :'| Pareto',
28
- },
29
- SOCIAL:{
30
- FACEBOOK :'https://www.facebook.com/hellopareto',
31
- INSTAGRAM:'https://www.instagram.com/hellopareto',
32
- TWITTER :'https://www.twitter.com/hellopareto',
33
- LINKEDIN :'https://www.linkedin.com/company/hellopareto',
34
- },
35
- EXTRA:{
36
- SURVEY:'https://survey.hellopareto.com',
37
- },
38
- }}
39
-
40
- >
41
- <SocialMediaButton type="facebook" />
42
- <SocialMediaButton type="twitter" />
43
- <SocialMediaButton type="instagram" />
44
- <SocialMediaButton type="linkedin" />
45
- </SiteContextProvider>
21
+ // eslint-disable-next-line react/prop-types
22
+ const Template = ({ isTransparent = false, ...rest }) => (
23
+ <AppContextProvider {...rest}>
24
+ <SocialMediaButton type="facebook" isTransparent={isTransparent} />
25
+ <SocialMediaButton type="twitter" isTransparent={isTransparent} />
26
+ <SocialMediaButton type="instagram" isTransparent={isTransparent} />
27
+ <SocialMediaButton type="linkedin" isTransparent={isTransparent} />
28
+ </AppContextProvider>
46
29
  )
47
30
 
48
- export const Transparent = () => (
49
- <SiteContextProvider
50
- config={{
51
- SITE:{
52
- NAME :'Pareto',
53
- CANONICAL :'https://hellopareto.com',
54
- SUPPORT_EMAIL:'support@hellopareto.com',
55
- TITLE_SUFFIX :'| Pareto',
56
- },
57
- SOCIAL:{
58
- FACEBOOK :'https://www.facebook.com/hellopareto',
59
- INSTAGRAM:'https://www.instagram.com/hellopareto',
60
- TWITTER :'https://www.twitter.com/hellopareto',
61
- },
62
- EXTRA:{
63
- SURVEY:'https://survey.hellopareto.com',
64
- },
65
- }}
31
+ export const Base = Template.bind({})
32
+ Base.args = {
33
+ config:{
34
+ SITE:{
35
+ NAME :'Pareto',
36
+ CANONICAL :'https://hellopareto.com',
37
+ SUPPORT_EMAIL:'support@hellopareto.com',
38
+ TITLE_SUFFIX :'| Pareto',
39
+ },
40
+ SOCIAL:{
41
+ FACEBOOK :'https://www.facebook.com/hellopareto',
42
+ INSTAGRAM:'https://www.instagram.com/hellopareto',
43
+ TWITTER :'https://www.twitter.com/hellopareto',
44
+ LINKEDIN :'https://www.linkedin.com/company/hellopareto',
45
+ },
46
+ EXTRA:{
47
+ SURVEY:'https://survey.hellopareto.com',
48
+ },
49
+ },
50
+ }
66
51
 
67
- >
68
- <SocialMediaButton type="facebook" isTransparent />
69
- <SocialMediaButton type="twitter" isTransparent />
70
- <SocialMediaButton type="instagram" isTransparent />
71
- <SocialMediaButton type="linkedin" isTransparent />
72
- </SiteContextProvider>
73
- )
52
+ export const Transparent = Template.bind({})
53
+ Transparent.args = {
54
+ ...Base.args,
55
+ isTransparent:true,
56
+ }
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useSite, SiteContextProvider, ThemeSelector } from 'ui'
4
+ import { useApp, AppContextProvider, ThemeSelector } from 'ui'
5
5
 
6
6
  export default {
7
7
  title :'b/ThemeSelector',
@@ -11,15 +11,15 @@ export default {
11
11
  },
12
12
  decorators:[
13
13
  (storyfn) => (
14
- <SiteContextProvider config={{
15
- SITE:{
14
+ <AppContextProvider config={{
15
+ APP:{
16
16
  NAME :'name of my site',
17
17
  CANONICAL:'https://mysite.com',
18
18
  },
19
19
  }}
20
20
  >
21
21
  { storyfn() }
22
- </SiteContextProvider>
22
+ </AppContextProvider>
23
23
  ),
24
24
  ],
25
25
  argTypes:{
@@ -29,7 +29,7 @@ export default {
29
29
 
30
30
  export const Base = () => {
31
31
  const ChildCo = () => {
32
- const { userTheme } = useSite()
32
+ const { userTheme } = useApp()
33
33
  return (
34
34
  <div
35
35
  className={
@@ -13,25 +13,23 @@ export default {
13
13
  // storyfn => <div className="">{ storyfn() }</div>,
14
14
  ],
15
15
  argTypes:{
16
- // heading :{ control: 'string' },
17
- // subtitle:{ control: 'string' },
16
+ heading :{ control: 'text' },
17
+ subtitle:{ control: 'text' },
18
18
  },
19
19
  }
20
20
 
21
- export const Base = (props) => (
22
- <Title
23
- heading="Test"
24
- {...props}
25
- />
26
- )
21
+ const Template = (args) => <Title {...args} />
27
22
 
28
- export const WithSubtitle = (props) => (
29
- <Title
30
- heading="Test"
31
- subtitle="This will appear as the subtitle"
32
- {...props}
33
- />
34
- )
23
+ export const Base = Template.bind({})
24
+ Base.args = {
25
+ heading:'Test',
26
+ }
27
+
28
+ export const WithSubtitle = Template.bind({})
29
+ WithSubtitle.args = {
30
+ heading :'Test',
31
+ subtitle:'This will appear as the subtitle',
32
+ }
35
33
 
36
34
  export const Sizes = (props) => (
37
35
  ['h1', 'h2', 'h3', 'h4', 'h5'].map((size) => (
@@ -3,11 +3,12 @@ import * as React from 'react'
3
3
 
4
4
  import {
5
5
  ContentSlides,
6
- SiteContextProvider,
6
+ AppContextProvider,
7
+ Shapes,
7
8
  useContentSlides,
8
9
  Title,
9
10
  Logo,
10
- useSite,
11
+ useApp,
11
12
  } from 'ui'
12
13
 
13
14
  // import Router from 'stories/utils/Router'
@@ -25,25 +26,29 @@ export default {
25
26
  decorators:[
26
27
  (storyfn) => <Router>{ storyfn() }</Router>,
27
28
  (storyfn) => (
28
- <SiteContextProvider config={{
29
- SITE:{
29
+ <AppContextProvider config={{
30
+ APP:{
30
31
  NAME :'name of my site',
31
32
  CANONICAL:'https://mysite.com',
32
33
  },
33
34
  }}
34
35
  >
35
36
  { storyfn() }
36
- </SiteContextProvider>
37
+ </AppContextProvider>
37
38
  ),
38
39
  ],
39
40
  argTypes:{
40
- backgroundColor:{ control: 'color' },
41
+ // backgroundColor:{ control: 'color' },
42
+ isSimple :{ control: 'boolean' },
43
+ hasBackgroundShape:{ control: 'boolean' },
41
44
  },
42
45
  }
43
46
 
44
- export const Base = () => {
47
+ const Template = (args) => {
45
48
  const Main = () => {
46
- const { userTheme } = useSite()
49
+ const { isSimple, hasBackgroundShape } = args || {}
50
+ const { userTheme } = useApp()
51
+ const { isLastStep } = useContentSlides()
47
52
 
48
53
  const steps = [
49
54
  {
@@ -74,13 +79,24 @@ export const Base = () => {
74
79
 
75
80
  return (
76
81
  <div className={`ui-${userTheme}`} style={{ height: '100%' }}>
77
- <ContentSlides className="y-background1" steps={steps}>
82
+ <ContentSlides className="y-background1 b-dark-y" steps={steps} simple={isSimple}>
83
+ {!isSimple && (
78
84
  <ContentSlides.Sidebar
79
85
  header={(
80
86
  <Logo color="paragraph" />
81
87
  )}
82
88
  />
83
- <ContentSlides.HorizontalMenu />
89
+ )}
90
+ {hasBackgroundShape && (
91
+ <Shapes
92
+ className="y-background4 b-light-y"
93
+ height="65em"
94
+ verticalAlign="center"
95
+ horizontalAlign="flex-start"
96
+ shape="spiral"
97
+ />
98
+ )}
99
+ <ContentSlides.HorizontalMenu hideBackIcon={isLastStep} />
84
100
  <main>
85
101
  <ContentSlides.Slide
86
102
  index={0}
@@ -202,147 +218,15 @@ export const Base = () => {
202
218
  )
203
219
  }
204
220
 
205
- export const Simple = () => {
206
- const steps = [
207
- {
208
- id :'welcome',
209
- title :'Welcome',
210
- progress:40,
211
- location:'welcome',
212
- },
213
- {
214
- id :'plan',
215
- title :'Choose your plan',
216
- progress:60,
217
- location:'select-plan',
218
- },
219
- {
220
- id :'details',
221
- title :'Personal details',
222
- progress:70,
223
- location:'personal-details',
224
- },
225
- {
226
- id :'payment',
227
- title :'Payment',
228
- progress:90,
229
- location:'payment',
230
- },
231
- ]
232
-
233
- const Main = () => {
234
- const { isLastStep } = useContentSlides()
221
+ export const Base = Template.bind({})
235
222
 
236
- return (
237
- <>
238
- <ContentSlides.HorizontalMenu hideBackIcon={isLastStep} />
239
- {' '}
240
- <main>
241
- <ContentSlides.Slide
242
- index={0}
243
- >
244
- <Title
245
- heading="Welcome"
246
- headingAs="h1"
247
- headingClassName="small"
248
- subtitle="Welcome to this site. We hope you will have an amazing experience here."
249
- />
250
- <ContentSlides.Navigator />
251
- </ContentSlides.Slide
252
- >
253
- <ContentSlides.Slide
254
- index={1}
255
- >
256
- <Title
257
- heading="Part 2"
258
- headingAs="h1"
259
- headingClassName="small"
260
- subtitle="Welcome to this site. We hope you will have an amazing experience here."
261
- />
262
- <p>
263
- In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas,
264
- non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus,
265
- enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus.
266
- Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget,
267
- porta placerat leo.
268
- Donec scelerisque enim risus, in pharetra purus fringilla eu.
269
- Cras placerat ac enim viverra rhoncus.
270
- Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat.
271
- Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus.
272
- Nullam vel porttitor mi, ut vestibulum arcu.
273
- {' '}
274
- </p>
275
- <p>
276
- In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas,
277
- non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus,
278
- enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus.
279
- Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget,
280
- porta placerat leo.
281
- Donec scelerisque enim risus, in pharetra purus fringilla eu.
282
- Cras placerat ac enim viverra rhoncus.
283
- Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat.
284
- Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus.
285
- Nullam vel porttitor mi, ut vestibulum arcu.
286
- {' '}
287
- </p>
288
- <p>
289
- In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas,
290
- non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus,
291
- enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus.
292
- Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget,
293
- porta placerat leo.
294
- Donec scelerisque enim risus, in pharetra purus fringilla eu.
295
- Cras placerat ac enim viverra rhoncus.
296
- Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat.
297
- Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus.
298
- Nullam vel porttitor mi, ut vestibulum arcu.
299
- {' '}
300
- </p>
301
- <p>
302
- In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas,
303
- non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus,
304
- enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus.
305
- Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget,
306
- porta placerat leo.
307
- Donec scelerisque enim risus, in pharetra purus fringilla eu.
308
- Cras placerat ac enim viverra rhoncus.
309
- Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat.
310
- Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus.
311
- Nullam vel porttitor mi, ut vestibulum arcu.
312
- {' '}
313
- </p>
223
+ export const Simple = Template.bind({})
224
+ Simple.args = {
225
+ isSimple:true,
226
+ }
314
227
 
315
- <ContentSlides.Navigator />
316
- </ContentSlides.Slide>
317
- <ContentSlides.Slide
318
- index={2}
319
- >
320
- <Title
321
- heading="Part 3"
322
- headingAs="h1"
323
- headingClassName="small"
324
- subtitle="Welcome to this site. We hope you will have an amazing experience here."
325
- />
326
- <ContentSlides.Navigator />
327
- </ContentSlides.Slide>
328
- <ContentSlides.Slide
329
- index={3}
330
- >
331
- <Title
332
- heading="Part 4"
333
- headingAs="h1"
334
- headingClassName="small"
335
- subtitle="Welcome to this site. We hope you will have an amazing experience here."
336
- />
337
- <ContentSlides.Navigator />
338
- </ContentSlides.Slide>
339
- </main>
340
- </>
341
- )
342
- }
343
- return (
344
- <ContentSlides className="y-background1" steps={steps} simple>
345
- <Main />
346
- </ContentSlides>
347
- )
228
+ export const WithBackgroundShape = Template.bind({})
229
+ WithBackgroundShape.args = {
230
+ ...Simple.args,
231
+ hasBackgroundShape:true,
348
232
  }
@@ -13,16 +13,22 @@ export default {
13
13
  // storyfn => <div className="">{ storyfn() }</div>,
14
14
  ],
15
15
  argTypes:{
16
- backgroundColor:{ control: 'color' },
16
+ // backgroundColor:{ control: 'color' },
17
+ // limit:{ control: 'number' },
17
18
  },
18
19
  }
19
20
 
20
- export const Base = () => (
21
+ const Template = (args) => (
21
22
  <Shortener
22
- limit={10}
23
23
  style={{ maxWidth: '300px' }}
24
+ {...args}
24
25
  >
25
26
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
26
27
  incididunt ut labore et dolore magna aliqua.
27
28
  </Shortener>
28
29
  )
30
+
31
+ export const Base = Template.bind({})
32
+ Base.args = {
33
+ limit:10,
34
+ }
@@ -0,0 +1,33 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react'
3
+ import { SocialMediaShareButton } from 'ui'
4
+ import Router from '../utils/Router'
5
+
6
+ export default {
7
+ title :'c/SocialMediaShareButton',
8
+ component :SocialMediaShareButton,
9
+ subcomponents:{
10
+ // Item:SocialMediaShareButton.Item
11
+ },
12
+ decorators:[
13
+ (storyfn) => <Router>{storyfn()}</Router>,
14
+ ],
15
+ argTypes:{
16
+ // backgroundColor:{ control: 'color' },
17
+ type:{ control: 'select', options: ['twitter', 'facebook'] },
18
+ },
19
+ }
20
+
21
+ const Template = (args) => (
22
+ <SocialMediaShareButton {...args} />
23
+ )
24
+
25
+ export const Facebook = Template.bind({})
26
+ Facebook.args = {
27
+ type:'facebook',
28
+ }
29
+
30
+ export const Twitter = Template.bind({})
31
+ Twitter.args = {
32
+ type:'twitter',
33
+ }