@toptal/picasso-lab 9.3.1 → 10.0.0

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 (366) hide show
  1. package/{dist-package/Calendar → Calendar}/Calendar.d.ts +0 -0
  2. package/{dist-package/Calendar → Calendar}/Calendar.js +0 -0
  3. package/{dist-package/Calendar → Calendar}/Calendar.js.map +0 -0
  4. package/{dist-package/Calendar → Calendar}/index.d.ts +0 -0
  5. package/{dist-package/Calendar → Calendar}/index.js +0 -0
  6. package/{dist-package/Calendar → Calendar}/index.js.map +0 -0
  7. package/{dist-package/Calendar → Calendar}/styles.d.ts +0 -0
  8. package/{dist-package/Calendar → Calendar}/styles.js +0 -0
  9. package/{dist-package/Calendar → Calendar}/styles.js.map +0 -0
  10. package/{dist-package/Calendar → Calendar}/types.d.ts +0 -0
  11. package/{dist-package/Calendar → Calendar}/types.js +0 -0
  12. package/{dist-package/Calendar → Calendar}/types.js.map +0 -0
  13. package/{dist-package/DatePicker → DatePicker}/DatePicker.d.ts +0 -0
  14. package/{dist-package/DatePicker → DatePicker}/DatePicker.js +0 -0
  15. package/{dist-package/DatePicker → DatePicker}/DatePicker.js.map +0 -0
  16. package/{dist-package/DatePicker → DatePicker}/constants.d.ts +0 -0
  17. package/{dist-package/DatePicker → DatePicker}/constants.js +0 -0
  18. package/{dist-package/DatePicker → DatePicker}/constants.js.map +0 -0
  19. package/{dist-package/DatePicker → DatePicker}/index.d.ts +0 -0
  20. package/{dist-package/DatePicker → DatePicker}/index.js +0 -0
  21. package/{dist-package/DatePicker → DatePicker}/index.js.map +0 -0
  22. package/{dist-package/DatePicker → DatePicker}/styles.d.ts +0 -0
  23. package/{dist-package/DatePicker → DatePicker}/styles.js +0 -0
  24. package/{dist-package/DatePicker → DatePicker}/styles.js.map +0 -0
  25. package/{dist-package/DatePicker → DatePicker}/types.d.ts +0 -0
  26. package/{dist-package/DatePicker → DatePicker}/types.js +0 -0
  27. package/{dist-package/DatePicker → DatePicker}/types.js.map +0 -0
  28. package/{dist-package/DatePicker → DatePicker}/utils.d.ts +0 -0
  29. package/{dist-package/DatePicker → DatePicker}/utils.js +0 -0
  30. package/{dist-package/DatePicker → DatePicker}/utils.js.map +0 -0
  31. package/{dist-package/Drawer → Drawer}/Drawer.d.ts +0 -0
  32. package/{dist-package/Drawer → Drawer}/Drawer.js +0 -0
  33. package/{dist-package/Drawer → Drawer}/Drawer.js.map +0 -0
  34. package/{dist-package/Drawer → Drawer}/index.d.ts +0 -0
  35. package/{dist-package/Drawer → Drawer}/index.js +0 -0
  36. package/{dist-package/Drawer → Drawer}/index.js.map +0 -0
  37. package/{dist-package/Drawer → Drawer}/styles.d.ts +0 -0
  38. package/{dist-package/Drawer → Drawer}/styles.js +0 -0
  39. package/{dist-package/Drawer → Drawer}/styles.js.map +0 -0
  40. package/{dist-package/DrawerTitle → DrawerTitle}/DrawerTitle.d.ts +0 -0
  41. package/{dist-package/DrawerTitle → DrawerTitle}/DrawerTitle.js +0 -0
  42. package/{dist-package/DrawerTitle → DrawerTitle}/DrawerTitle.js.map +0 -0
  43. package/{dist-package/DrawerTitle → DrawerTitle}/index.d.ts +0 -0
  44. package/{dist-package/DrawerTitle → DrawerTitle}/index.js +0 -0
  45. package/{dist-package/DrawerTitle → DrawerTitle}/index.js.map +0 -0
  46. package/{dist-package/DrawerTitle → DrawerTitle}/styles.d.ts +0 -0
  47. package/{dist-package/DrawerTitle → DrawerTitle}/styles.js +0 -0
  48. package/{dist-package/DrawerTitle → DrawerTitle}/styles.js.map +0 -0
  49. package/{dist-package/Dropzone → Dropzone}/Dropzone.d.ts +0 -0
  50. package/{dist-package/Dropzone → Dropzone}/Dropzone.js +0 -0
  51. package/{dist-package/Dropzone → Dropzone}/Dropzone.js.map +0 -0
  52. package/{dist-package/Dropzone → Dropzone}/index.d.ts +0 -0
  53. package/{dist-package/Dropzone → Dropzone}/index.js +0 -0
  54. package/{dist-package/Dropzone → Dropzone}/index.js.map +0 -0
  55. package/{dist-package/Dropzone → Dropzone}/styles.d.ts +0 -0
  56. package/{dist-package/Dropzone → Dropzone}/styles.js +0 -0
  57. package/{dist-package/Dropzone → Dropzone}/styles.js.map +0 -0
  58. package/{dist-package/Dropzone → Dropzone}/types.d.ts +0 -0
  59. package/{dist-package/Dropzone → Dropzone}/types.js +0 -0
  60. package/{dist-package/Dropzone → Dropzone}/types.js.map +0 -0
  61. package/{dist-package/EmptyState → EmptyState}/EmptyState.d.ts +0 -0
  62. package/{dist-package/EmptyState → EmptyState}/EmptyState.js +0 -0
  63. package/{dist-package/EmptyState → EmptyState}/EmptyState.js.map +0 -0
  64. package/{dist-package/EmptyState → EmptyState}/index.d.ts +0 -0
  65. package/{dist-package/EmptyState → EmptyState}/index.js +0 -0
  66. package/{dist-package/EmptyState → EmptyState}/index.js.map +0 -0
  67. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/EmptyStateCollection.d.ts +0 -0
  68. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/EmptyStateCollection.js +0 -0
  69. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/EmptyStateCollection.js.map +0 -0
  70. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/index.d.ts +0 -0
  71. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/index.js +0 -0
  72. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/index.js.map +0 -0
  73. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/styles.d.ts +0 -0
  74. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/styles.js +0 -0
  75. package/{dist-package/EmptyStateCollection → EmptyStateCollection}/styles.js.map +0 -0
  76. package/{dist-package/EmptyStatePage → EmptyStatePage}/EmptyStatePage.d.ts +0 -0
  77. package/{dist-package/EmptyStatePage → EmptyStatePage}/EmptyStatePage.js +0 -0
  78. package/{dist-package/EmptyStatePage → EmptyStatePage}/EmptyStatePage.js.map +0 -0
  79. package/{dist-package/EmptyStatePage → EmptyStatePage}/index.d.ts +0 -0
  80. package/{dist-package/EmptyStatePage → EmptyStatePage}/index.js +0 -0
  81. package/{dist-package/EmptyStatePage → EmptyStatePage}/index.js.map +0 -0
  82. package/{dist-package/EmptyStatePage → EmptyStatePage}/styles.d.ts +0 -0
  83. package/{dist-package/EmptyStatePage → EmptyStatePage}/styles.js +0 -0
  84. package/{dist-package/EmptyStatePage → EmptyStatePage}/styles.js.map +0 -0
  85. package/{dist-package/Note → Note}/Note.d.ts +0 -0
  86. package/{dist-package/Note → Note}/Note.js +0 -0
  87. package/{dist-package/Note → Note}/Note.js.map +0 -0
  88. package/{dist-package/Note → Note}/index.d.ts +0 -0
  89. package/{dist-package/Note → Note}/index.js +0 -0
  90. package/{dist-package/Note → Note}/index.js.map +0 -0
  91. package/{dist-package/Note → Note}/styles.d.ts +0 -0
  92. package/{dist-package/Note → Note}/styles.js +0 -0
  93. package/{dist-package/Note → Note}/styles.js.map +0 -0
  94. package/{dist-package/NoteContent → NoteContent}/NoteContent.d.ts +0 -0
  95. package/{dist-package/NoteContent → NoteContent}/NoteContent.js +0 -0
  96. package/{dist-package/NoteContent → NoteContent}/NoteContent.js.map +0 -0
  97. package/{dist-package/NoteContent → NoteContent}/index.d.ts +0 -0
  98. package/{dist-package/NoteContent → NoteContent}/index.js +0 -0
  99. package/{dist-package/NoteContent → NoteContent}/index.js.map +0 -0
  100. package/{dist-package/NoteSubtitle → NoteSubtitle}/NoteSubtitle.d.ts +0 -0
  101. package/{dist-package/NoteSubtitle → NoteSubtitle}/NoteSubtitle.js +0 -0
  102. package/{dist-package/NoteSubtitle → NoteSubtitle}/NoteSubtitle.js.map +0 -0
  103. package/{dist-package/NoteSubtitle → NoteSubtitle}/index.d.ts +0 -0
  104. package/{dist-package/NoteSubtitle → NoteSubtitle}/index.js +0 -0
  105. package/{dist-package/NoteSubtitle → NoteSubtitle}/index.js.map +0 -0
  106. package/{dist-package/NoteTitle → NoteTitle}/NoteTitle.d.ts +0 -0
  107. package/{dist-package/NoteTitle → NoteTitle}/NoteTitle.js +0 -0
  108. package/{dist-package/NoteTitle → NoteTitle}/NoteTitle.js.map +0 -0
  109. package/{dist-package/NoteTitle → NoteTitle}/index.d.ts +0 -0
  110. package/{dist-package/NoteTitle → NoteTitle}/index.js +0 -0
  111. package/{dist-package/NoteTitle → NoteTitle}/index.js.map +0 -0
  112. package/{dist-package/NoteTitle → NoteTitle}/styles.d.ts +0 -0
  113. package/{dist-package/NoteTitle → NoteTitle}/styles.js +0 -0
  114. package/{dist-package/NoteTitle → NoteTitle}/styles.js.map +0 -0
  115. package/{dist-package/OverviewBlock → OverviewBlock}/OverviewBlock.d.ts +0 -0
  116. package/{dist-package/OverviewBlock → OverviewBlock}/OverviewBlock.js +0 -0
  117. package/{dist-package/OverviewBlock → OverviewBlock}/OverviewBlock.js.map +0 -0
  118. package/{dist-package/OverviewBlock → OverviewBlock}/index.d.ts +0 -0
  119. package/{dist-package/OverviewBlock → OverviewBlock}/index.js +0 -0
  120. package/{dist-package/OverviewBlock → OverviewBlock}/index.js.map +0 -0
  121. package/{dist-package/OverviewBlock → OverviewBlock}/styles.d.ts +0 -0
  122. package/{dist-package/OverviewBlock → OverviewBlock}/styles.js +0 -0
  123. package/{dist-package/OverviewBlock → OverviewBlock}/styles.js.map +0 -0
  124. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroup.d.ts +0 -0
  125. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroup.js +0 -0
  126. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroup.js.map +0 -0
  127. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroupContext.d.ts +0 -0
  128. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroupContext.js +0 -0
  129. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/OverviewBlockGroupContext.js.map +0 -0
  130. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/index.d.ts +0 -0
  131. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/index.js +0 -0
  132. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/index.js.map +0 -0
  133. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/settings.d.ts +0 -0
  134. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/settings.js +0 -0
  135. package/{dist-package/OverviewBlockGroup → OverviewBlockGroup}/settings.js.map +0 -0
  136. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/OverviewBlockRow.d.ts +0 -0
  137. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/OverviewBlockRow.js +0 -0
  138. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/OverviewBlockRow.js.map +0 -0
  139. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/index.d.ts +0 -0
  140. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/index.js +0 -0
  141. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/index.js.map +0 -0
  142. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/styles.d.ts +0 -0
  143. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/styles.js +0 -0
  144. package/{dist-package/OverviewBlockRow → OverviewBlockRow}/styles.js.map +0 -0
  145. package/{dist-package/Section → Section}/Section.d.ts +0 -0
  146. package/{dist-package/Section → Section}/Section.js +0 -0
  147. package/{dist-package/Section → Section}/Section.js.map +0 -0
  148. package/{dist-package/Section → Section}/index.d.ts +0 -0
  149. package/{dist-package/Section → Section}/index.js +0 -0
  150. package/{dist-package/Section → Section}/index.js.map +0 -0
  151. package/{dist-package/Section → Section}/styles.d.ts +0 -0
  152. package/{dist-package/Section → Section}/styles.js +0 -0
  153. package/{dist-package/Section → Section}/styles.js.map +0 -0
  154. package/{dist-package/Timeline → Timeline}/Timeline.d.ts +0 -0
  155. package/{dist-package/Timeline → Timeline}/Timeline.js +0 -0
  156. package/{dist-package/Timeline → Timeline}/Timeline.js.map +0 -0
  157. package/{dist-package/Timeline → Timeline}/index.d.ts +0 -0
  158. package/{dist-package/Timeline → Timeline}/index.js +0 -0
  159. package/{dist-package/Timeline → Timeline}/index.js.map +0 -0
  160. package/{dist-package/TimelineRow → TimelineRow}/TimelineRow.d.ts +0 -0
  161. package/{dist-package/TimelineRow → TimelineRow}/TimelineRow.js +0 -0
  162. package/{dist-package/TimelineRow → TimelineRow}/TimelineRow.js.map +0 -0
  163. package/{dist-package/TimelineRow → TimelineRow}/index.d.ts +0 -0
  164. package/{dist-package/TimelineRow → TimelineRow}/index.js +0 -0
  165. package/{dist-package/TimelineRow → TimelineRow}/index.js.map +0 -0
  166. package/{dist-package/TimelineRow → TimelineRow}/styles.d.ts +0 -0
  167. package/{dist-package/TimelineRow → TimelineRow}/styles.js +0 -0
  168. package/{dist-package/TimelineRow → TimelineRow}/styles.js.map +0 -0
  169. package/{dist-package/TypographyOverflow → TypographyOverflow}/TypographyOverflow.d.ts +0 -0
  170. package/{dist-package/TypographyOverflow → TypographyOverflow}/TypographyOverflow.js +0 -0
  171. package/{dist-package/TypographyOverflow → TypographyOverflow}/TypographyOverflow.js.map +0 -0
  172. package/{dist-package/TypographyOverflow → TypographyOverflow}/index.d.ts +0 -0
  173. package/{dist-package/TypographyOverflow → TypographyOverflow}/index.js +0 -0
  174. package/{dist-package/TypographyOverflow → TypographyOverflow}/index.js.map +0 -0
  175. package/{dist-package/TypographyOverflow → TypographyOverflow}/styles.d.ts +0 -0
  176. package/{dist-package/TypographyOverflow → TypographyOverflow}/styles.js +0 -0
  177. package/{dist-package/TypographyOverflow → TypographyOverflow}/styles.js.map +0 -0
  178. package/{dist-package/index.d.ts → index.d.ts} +0 -0
  179. package/{dist-package/index.js → index.js} +0 -0
  180. package/{dist-package/index.js.map → index.js.map} +0 -0
  181. package/package.json +5 -5
  182. package/CHANGELOG.md +0 -1385
  183. package/dist-package/README.md +0 -26
  184. package/dist-package/package.json +0 -53
  185. package/src/Calendar/Calendar.tsx +0 -215
  186. package/src/Calendar/__snapshots__/test.tsx.snap +0 -447
  187. package/src/Calendar/index.ts +0 -2
  188. package/src/Calendar/styles.ts +0 -104
  189. package/src/Calendar/test.tsx +0 -20
  190. package/src/Calendar/types.ts +0 -42
  191. package/src/DatePicker/DatePicker.tsx +0 -366
  192. package/src/DatePicker/__image_snapshots__/datepicker-full-width-snap.png +0 -0
  193. package/src/DatePicker/__image_snapshots__/datepicker-with-custom-day-rendering-snap.png +0 -0
  194. package/src/DatePicker/__snapshots__/test.tsx.snap +0 -51
  195. package/src/DatePicker/constants.ts +0 -2
  196. package/src/DatePicker/index.ts +0 -5
  197. package/src/DatePicker/story/AllowCustomValue.example.tsx +0 -33
  198. package/src/DatePicker/story/Autocomplete.example.tsx +0 -47
  199. package/src/DatePicker/story/Default.example.tsx +0 -19
  200. package/src/DatePicker/story/Error.example.tsx +0 -26
  201. package/src/DatePicker/story/Range.example.tsx +0 -22
  202. package/src/DatePicker/story/WithCustomDayRendering.example.tsx +0 -47
  203. package/src/DatePicker/story/WithInitialValue.example.tsx +0 -19
  204. package/src/DatePicker/story/WithInputProps.example.tsx +0 -24
  205. package/src/DatePicker/story/WithNoHideOnSelect.example.tsx +0 -20
  206. package/src/DatePicker/story/WithOnBlurHandler.example.tsx +0 -22
  207. package/src/DatePicker/story/WithSelectionLimits.example.tsx +0 -32
  208. package/src/DatePicker/story/WithTimezone.example.tsx +0 -25
  209. package/src/DatePicker/story/index.jsx +0 -50
  210. package/src/DatePicker/styles.ts +0 -8
  211. package/src/DatePicker/test.tsx +0 -370
  212. package/src/DatePicker/types.ts +0 -13
  213. package/src/DatePicker/utils.ts +0 -123
  214. package/src/Drawer/Drawer.tsx +0 -105
  215. package/src/Drawer/__image_snapshots__/drawer-custom-title-effect-1-snap.png +0 -0
  216. package/src/Drawer/__image_snapshots__/drawer-custom-title-snap.png +0 -0
  217. package/src/Drawer/__image_snapshots__/drawer-default-effect-1-snap.png +0 -0
  218. package/src/Drawer/__image_snapshots__/drawer-default-snap.png +0 -0
  219. package/src/Drawer/__image_snapshots__/drawer-width-effect-1-snap.png +0 -0
  220. package/src/Drawer/__image_snapshots__/drawer-width-effect-2-snap.png +0 -0
  221. package/src/Drawer/__image_snapshots__/drawer-width-effect-3-snap.png +0 -0
  222. package/src/Drawer/__image_snapshots__/drawer-width-effect-4-snap.png +0 -0
  223. package/src/Drawer/__image_snapshots__/drawer-width-effect-5-snap.png +0 -0
  224. package/src/Drawer/__image_snapshots__/drawer-width-snap.png +0 -0
  225. package/src/Drawer/__image_snapshots__/drawer-without-title-effect-1-snap.png +0 -0
  226. package/src/Drawer/__image_snapshots__/drawer-without-title-snap.png +0 -0
  227. package/src/Drawer/index.ts +0 -6
  228. package/src/Drawer/story/CustomTitle.example.tsx +0 -32
  229. package/src/Drawer/story/Default.example.tsx +0 -29
  230. package/src/Drawer/story/DrawerAndNotification.example.tsx +0 -34
  231. package/src/Drawer/story/Widths.example.tsx +0 -46
  232. package/src/Drawer/story/WithoutTitle.example.tsx +0 -22
  233. package/src/Drawer/story/index.jsx +0 -80
  234. package/src/Drawer/styles.ts +0 -42
  235. package/src/DrawerTitle/DrawerTitle.tsx +0 -35
  236. package/src/DrawerTitle/index.ts +0 -1
  237. package/src/DrawerTitle/styles.ts +0 -12
  238. package/src/Dropzone/Dropzone.tsx +0 -146
  239. package/src/Dropzone/__snapshots__/test.tsx.snap +0 -40
  240. package/src/Dropzone/index.ts +0 -7
  241. package/src/Dropzone/story/Default.example.tsx +0 -8
  242. package/src/Dropzone/story/Disabled.example.tsx +0 -25
  243. package/src/Dropzone/story/Error.example.tsx +0 -16
  244. package/src/Dropzone/story/Multiple.example.tsx +0 -30
  245. package/src/Dropzone/story/Uploader.example.tsx +0 -116
  246. package/src/Dropzone/story/Uploading.example.tsx +0 -16
  247. package/src/Dropzone/story/index.jsx +0 -85
  248. package/src/Dropzone/styles.ts +0 -43
  249. package/src/Dropzone/test.tsx +0 -33
  250. package/src/Dropzone/types.ts +0 -56
  251. package/src/EmptyState/EmptyState.tsx +0 -7
  252. package/src/EmptyState/index.tsx +0 -1
  253. package/src/EmptyState/story/index.jsx +0 -13
  254. package/src/EmptyStateCollection/EmptyStateCollection.tsx +0 -56
  255. package/src/EmptyStateCollection/__image_snapshots__/emptystate-collection-emptystatecollection-snap.png +0 -0
  256. package/src/EmptyStateCollection/index.tsx +0 -1
  257. package/src/EmptyStateCollection/story/Default.example.tsx +0 -11
  258. package/src/EmptyStateCollection/story/index.jsx +0 -20
  259. package/src/EmptyStateCollection/styles.ts +0 -10
  260. package/src/EmptyStatePage/EmptyStatePage.tsx +0 -65
  261. package/src/EmptyStatePage/__image_snapshots__/emptystate-page-emptystatepage-snap.png +0 -0
  262. package/src/EmptyStatePage/index.tsx +0 -1
  263. package/src/EmptyStatePage/story/Default.example.tsx +0 -21
  264. package/src/EmptyStatePage/story/index.jsx +0 -21
  265. package/src/EmptyStatePage/styles.ts +0 -9
  266. package/src/Note/Note.tsx +0 -36
  267. package/src/Note/__snapshots__/test.tsx.snap +0 -37
  268. package/src/Note/index.ts +0 -6
  269. package/src/Note/story/Default.example.tsx +0 -14
  270. package/src/Note/story/index.jsx +0 -23
  271. package/src/Note/styles.ts +0 -27
  272. package/src/Note/test.tsx +0 -22
  273. package/src/NoteContent/NoteContent.tsx +0 -23
  274. package/src/NoteContent/index.ts +0 -1
  275. package/src/NoteContent/story/index.jsx +0 -12
  276. package/src/NoteSubtitle/NoteSubtitle.tsx +0 -25
  277. package/src/NoteSubtitle/index.ts +0 -1
  278. package/src/NoteSubtitle/story/index.jsx +0 -12
  279. package/src/NoteTitle/NoteTitle.tsx +0 -34
  280. package/src/NoteTitle/index.ts +0 -1
  281. package/src/NoteTitle/story/index.jsx +0 -12
  282. package/src/NoteTitle/styles.ts +0 -8
  283. package/src/OverviewBlock/OverviewBlock.tsx +0 -125
  284. package/src/OverviewBlock/__image_snapshots__/overviewblock-default-snap.png +0 -0
  285. package/src/OverviewBlock/__image_snapshots__/overviewblock-multi-line-snap.png +0 -0
  286. package/src/OverviewBlock/__image_snapshots__/overviewblock-number-snap.png +0 -0
  287. package/src/OverviewBlock/__image_snapshots__/overviewblock-routing-snap.png +0 -0
  288. package/src/OverviewBlock/__image_snapshots__/overviewblock-text-snap.png +0 -0
  289. package/src/OverviewBlock/index.ts +0 -6
  290. package/src/OverviewBlock/story/Default.example.tsx +0 -35
  291. package/src/OverviewBlock/story/Multiline.example.tsx +0 -51
  292. package/src/OverviewBlock/story/Number.example.tsx +0 -20
  293. package/src/OverviewBlock/story/Routing.example.tsx +0 -40
  294. package/src/OverviewBlock/story/Text.example.tsx +0 -15
  295. package/src/OverviewBlock/story/index.jsx +0 -100
  296. package/src/OverviewBlock/styles.ts +0 -44
  297. package/src/OverviewBlock/test.tsx +0 -111
  298. package/src/OverviewBlockGroup/OverviewBlockGroup.tsx +0 -56
  299. package/src/OverviewBlockGroup/OverviewBlockGroupContext.tsx +0 -21
  300. package/src/OverviewBlockGroup/__image_snapshots__/visual-variants-of-the-groups-block-width-snap.png +0 -0
  301. package/src/OverviewBlockGroup/__image_snapshots__/visual-variants-of-the-groups-center-aligned-snap.png +0 -0
  302. package/src/OverviewBlockGroup/index.ts +0 -1
  303. package/src/OverviewBlockGroup/settings.ts +0 -2
  304. package/src/OverviewBlockGroup/story/BlockWidth.example.tsx +0 -38
  305. package/src/OverviewBlockGroup/story/CenterAligned.example.tsx +0 -17
  306. package/src/OverviewBlockGroup/story/index.jsx +0 -25
  307. package/src/OverviewBlockGroup/test.tsx +0 -17
  308. package/src/OverviewBlockRow/OverviewBlockRow.tsx +0 -22
  309. package/src/OverviewBlockRow/index.ts +0 -1
  310. package/src/OverviewBlockRow/story/index.jsx +0 -11
  311. package/src/OverviewBlockRow/styles.ts +0 -27
  312. package/src/Section/Section.tsx +0 -163
  313. package/src/Section/__snapshots__/test.tsx.snap +0 -186
  314. package/src/Section/index.ts +0 -6
  315. package/src/Section/story/Actions.example.tsx +0 -85
  316. package/src/Section/story/Collapsible.example.tsx +0 -113
  317. package/src/Section/story/Default.example.tsx +0 -77
  318. package/src/Section/story/TitleSize.example.tsx +0 -34
  319. package/src/Section/story/Variant.example.tsx +0 -108
  320. package/src/Section/story/index.jsx +0 -35
  321. package/src/Section/styles.ts +0 -65
  322. package/src/Section/test.tsx +0 -115
  323. package/src/Timeline/Timeline.tsx +0 -25
  324. package/src/Timeline/__snapshots__/test.tsx.snap +0 -332
  325. package/src/Timeline/index.ts +0 -6
  326. package/src/Timeline/story/Dates.example.tsx +0 -52
  327. package/src/Timeline/story/Default.example.tsx +0 -34
  328. package/src/Timeline/story/TrimLastConnector.example.tsx +0 -29
  329. package/src/Timeline/story/index.jsx +0 -27
  330. package/src/Timeline/test.tsx +0 -101
  331. package/src/TimelineRow/TimelineRow.tsx +0 -83
  332. package/src/TimelineRow/index.ts +0 -6
  333. package/src/TimelineRow/story/index.jsx +0 -11
  334. package/src/TimelineRow/styles.ts +0 -47
  335. package/src/TypographyOverflow/TypographyOverflow.tsx +0 -153
  336. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-checkbox-label-effect-1-snap.png +0 -0
  337. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-checkbox-label-snap.png +0 -0
  338. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-custom-tooltip-content-effect-1-snap.png +0 -0
  339. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-custom-tooltip-content-snap.png +0 -0
  340. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-default-effect-1-snap.png +0 -0
  341. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-default-effect-2-snap.png +0 -0
  342. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-default-snap.png +0 -0
  343. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-delay-effect-1-snap.png +0 -0
  344. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-delay-effect-2-snap.png +0 -0
  345. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-delay-snap.png +0 -0
  346. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-light-tooltip-background-effect-1-snap.png +0 -0
  347. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-light-tooltip-background-effect-2-snap.png +0 -0
  348. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-light-tooltip-background-snap.png +0 -0
  349. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-1-snap.png +0 -0
  350. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-2-snap.png +0 -0
  351. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-effect-3-snap.png +0 -0
  352. package/src/TypographyOverflow/__image_snapshots__/typographyoverflow-multiline-snap.png +0 -0
  353. package/src/TypographyOverflow/index.ts +0 -6
  354. package/src/TypographyOverflow/story/CheckboxLabel.example.tsx +0 -21
  355. package/src/TypographyOverflow/story/CustomTooltip.example.tsx +0 -22
  356. package/src/TypographyOverflow/story/Default.example.tsx +0 -32
  357. package/src/TypographyOverflow/story/Delay.example.tsx +0 -29
  358. package/src/TypographyOverflow/story/GridWithControls.example.tsx +0 -64
  359. package/src/TypographyOverflow/story/Multiline.example.tsx +0 -59
  360. package/src/TypographyOverflow/story/TooltipVariants.example.tsx +0 -23
  361. package/src/TypographyOverflow/story/index.jsx +0 -83
  362. package/src/TypographyOverflow/styles.ts +0 -29
  363. package/src/TypographyOverflow/test.tsx +0 -60
  364. package/src/index.ts +0 -35
  365. package/src/story/index.jsx +0 -10
  366. package/tsconfig.build.json +0 -7
@@ -1,8 +0,0 @@
1
- import React from 'react'
2
- import { Dropzone } from '@toptal/picasso-lab'
3
-
4
- const Example = () => {
5
- return <Dropzone />
6
- }
7
-
8
- export default Example
@@ -1,25 +0,0 @@
1
- import React from 'react'
2
- import { Dropzone } from '@toptal/picasso-lab'
3
-
4
- const value = [
5
- {
6
- uploading: false,
7
- progress: 0,
8
- file: new File(['resume.pdf'], 'resume.pdf')
9
- }
10
- ]
11
-
12
- const Example = () => {
13
- return (
14
- <Dropzone
15
- disabled
16
- value={value}
17
- onDrop={() => alert('onDrop callback triggered')}
18
- onRemove={() => alert('onRemove callback triggered')}
19
- hint='Max file size: 25MB'
20
- accept='image/*'
21
- />
22
- )
23
- }
24
-
25
- export default Example
@@ -1,16 +0,0 @@
1
- import React from 'react'
2
- import { Dropzone } from '@toptal/picasso-lab'
3
-
4
- const errorMessages = ['resume.pdf: File is too large']
5
-
6
- const Example = () => {
7
- return (
8
- <Dropzone
9
- hint='Max file size: 25MB'
10
- accept='image/*'
11
- errorMessages={errorMessages}
12
- />
13
- )
14
- }
15
-
16
- export default Example
@@ -1,30 +0,0 @@
1
- import React from 'react'
2
- import { Dropzone } from '@toptal/picasso-lab'
3
-
4
- const value = [
5
- {
6
- uploading: false,
7
- progress: 0,
8
- file: new File(['resume.pdf'], 'resume.pdf')
9
- },
10
- {
11
- uploading: false,
12
- progress: 0,
13
- file: new File(['portfolio.pdf'], 'portfolio.pdf')
14
- }
15
- ]
16
-
17
- const Example = () => {
18
- return (
19
- <Dropzone
20
- value={value}
21
- onDrop={() => alert('onDrop callback triggered')}
22
- onRemove={() => alert('onRemove callback triggered')}
23
- hint='Files allowed: 2. Max file size: 25MB'
24
- accept='image/*'
25
- disabled
26
- />
27
- )
28
- }
29
-
30
- export default Example
@@ -1,116 +0,0 @@
1
- import React, { useEffect, useState } from 'react'
2
- import {
3
- Dropzone,
4
- DropzoneErrorCode,
5
- DropzoneFileUpload,
6
- DropzoneFileError,
7
- DropzoneFileRejection
8
- } from '@toptal/picasso-lab'
9
-
10
- const MAX_SIZE = 600 * 1000
11
-
12
- const customSizeValidator = (file: File): DropzoneFileError[] | null => {
13
- if (file.size > MAX_SIZE) {
14
- return [
15
- {
16
- code: DropzoneErrorCode.FileTooLarge,
17
- message: `File size exceeds the ${MAX_SIZE / 1000 / 1000}MB.`
18
- }
19
- ]
20
- }
21
-
22
- return null
23
- }
24
-
25
- const useFiles = ({ maxFiles }: { maxFiles: number }) => {
26
- const [files, setFiles] = useState<DropzoneFileUpload[]>([])
27
- const [errorMessages, setError] = useState<string[]>([])
28
- const [disabled, setDisabled] = useState<boolean>(false)
29
-
30
- useEffect(() => {
31
- if (files.length >= maxFiles) {
32
- setDisabled(true)
33
- } else {
34
- setDisabled(false)
35
- }
36
- }, [maxFiles, files.length])
37
-
38
- const addFiles = (
39
- acceptedFiles: File[],
40
- rejectedFiles: DropzoneFileRejection[]
41
- ): void => {
42
- if (files.length + acceptedFiles.length + rejectedFiles.length > maxFiles) {
43
- return setError(['Too many files'])
44
- }
45
- if (acceptedFiles.length > 0) {
46
- const previousFiles = files
47
- const newFiles = acceptedFiles.map(file => ({
48
- file,
49
- uploading: true
50
- }))
51
-
52
- setFiles([...previousFiles, ...newFiles])
53
- let progress = 0
54
- const interval = setInterval(() => {
55
- if (progress === 100) {
56
- setFiles([
57
- ...previousFiles,
58
- ...newFiles.map(file => ({ ...file, uploading: false }))
59
- ])
60
- clearInterval(interval)
61
- } else {
62
- setFiles([
63
- ...previousFiles,
64
- ...newFiles.map(file => ({ ...file, progress }))
65
- ])
66
- progress += 10
67
- }
68
- }, 250)
69
- }
70
-
71
- if (rejectedFiles.length) {
72
- setError(
73
- rejectedFiles.map(
74
- ({ errors, file }) =>
75
- `${file.name}: ${errors.map(error => error.message).join(', ')}`
76
- )
77
- )
78
- } else {
79
- setError([])
80
- }
81
- }
82
-
83
- const removeFile = (fileName: string, fileIndex: number) => {
84
- const updatedFiles = files.filter((_, index) => index !== fileIndex)
85
-
86
- setFiles(updatedFiles)
87
- }
88
-
89
- return {
90
- files,
91
- addFiles,
92
- removeFile,
93
- errorMessages,
94
- disabled
95
- }
96
- }
97
- const Example = () => {
98
- const { files, addFiles, removeFile, errorMessages, disabled } = useFiles({
99
- maxFiles: 2
100
- })
101
-
102
- return (
103
- <Dropzone
104
- value={files}
105
- onDrop={addFiles}
106
- onRemove={removeFile}
107
- hint={`Files allowed 2. Max file size: ${MAX_SIZE / 1000}KB`}
108
- accept='image/*'
109
- validator={customSizeValidator}
110
- errorMessages={errorMessages}
111
- disabled={disabled}
112
- />
113
- )
114
- }
115
-
116
- export default Example
@@ -1,16 +0,0 @@
1
- import React from 'react'
2
- import { Dropzone } from '@toptal/picasso-lab'
3
-
4
- const value = [
5
- {
6
- uploading: true,
7
- progress: 30,
8
- file: new File(['resume.pdf'], 'resume.pdf')
9
- }
10
- ]
11
-
12
- const Example = () => {
13
- return <Dropzone value={value} hint='Max file size: 25MB' accept='image/*' />
14
- }
15
-
16
- export default Example
@@ -1,85 +0,0 @@
1
- import { Dropzone } from '../Dropzone'
2
- import PicassoBook from '~/.storybook/components/PicassoBook'
3
-
4
- const page = PicassoBook.section('Picasso Lab').createPage(
5
- 'Dropzone',
6
- `
7
- ${PicassoBook.createBaseDocsLink(
8
- 'https://app.abstract.com/projects/1b06c884-06af-482a-bf12-a82f521a19a1/branches/master/commits/58ee1df911f7d6ca2d9214171088a69bdff23401/files/13531207-e094-44ec-ae1f-f27628c1aea5/layers/27C9F1FA-E469-4AA4-936C-DD752F77ADE3?mode=build&selected=root-8BD3C500-A858-4CC4-8CE8-02E0453C0C4D&sha=58ee1df911f7d6ca2d9214171088a69bdff23401'
9
- )}
10
- `
11
- )
12
-
13
- page.createTabChapter('Props').addComponentDocs({
14
- component: Dropzone,
15
- name: 'Dropzone',
16
- additionalDocs: {
17
- accept: {
18
- name: 'accept',
19
- type: 'string | string[]',
20
- description:
21
- 'Set accepted file types. See https://github.com/okonet/attr-accept for more information. Keep in mind that mime type determination is not reliable across platforms. CSV files, for example, are reported as text/plain under macOS but as application/vnd.ms-excel under Windows. In some cases there might not be a mime type set at all. See: https://github.com/react-dropzone/react-dropzone/issues/276'
22
- },
23
- onDropAccepted: {
24
- name: 'onDropAccepted',
25
- type: {
26
- name: 'function',
27
- description: '(files: File[], event) => void'
28
- },
29
- description:
30
- 'Callback for when the drop event occurs. Note that if no files are accepted, this callback is not invoked.'
31
- },
32
- onDropRejected: {
33
- name: 'onDropRejected',
34
- type: {
35
- name: 'function',
36
- description: '(fileRejections: FileRejection[], event) => void'
37
- },
38
- description:
39
- 'Callback for when the drop event occurs. Note that if no files are rejected, this callback is not invoked.'
40
- },
41
- validator: {
42
- name: 'validator',
43
- type: {
44
- name: 'function',
45
- description: '(file:File) => FileError | FileError[] | null'
46
- },
47
- description: 'Custom validation function',
48
- defaultvalue: 'null'
49
- },
50
- onDrop: {
51
- name: 'onDrop',
52
- type: {
53
- name: 'function',
54
- description:
55
- '(acceptedFiles: File[], fileRejections: FileRejection[], event:DragEvent | Event) => void'
56
- },
57
- description: `
58
- Callback for when the drop event occurs. Note that this callback is invoked after the getFilesFromEvent callback is done.
59
-
60
- Files are accepted or rejected based on the accept, multiple, minSize and maxSize props. accept must be a valid MIME type according to input element specification or a valid file extension. If multiple is set to false and additional files are dropped, all files besides the first will be rejected. Any file which does not have a size in the minSize, maxSize range, will be rejected as well.
61
-
62
- Note that the onDrop callback will always be invoked regardless if the dropped files were accepted or rejected. If you'd like to react to a specific scenario, use the onDropAccepted/onDropRejected props.
63
-
64
- onDrop will provide you with an array of File objects which you can then process and send to a server. For example, with SuperAgent as a http/ajax library:
65
-
66
- function onDrop(acceptedFiles) {
67
- const req = request.post('/upload')
68
- acceptedFiles.forEach(file => {
69
- req.attach(file.name, file)
70
- })
71
- req.end(callback)
72
- }
73
- `
74
- }
75
- }
76
- })
77
-
78
- page
79
- .createChapter()
80
- .addExample('Dropzone/story/Default.example.tsx', 'Default') // picasso-skip-visuals
81
- .addExample('Dropzone/story/Uploader.example.tsx', 'With upload') // picasso-skip-visuals
82
- .addExample('Dropzone/story/Uploading.example.tsx', 'Uploading') // picasso-skip-visuals
83
- .addExample('Dropzone/story/Disabled.example.tsx', 'Completed') // picasso-skip-visuals
84
- .addExample('Dropzone/story/Multiple.example.tsx', 'Completed Multiple files') // picasso-skip-visuals
85
- .addExample('Dropzone/story/Error.example.tsx', 'Upload Failed') // picasso-skip-visuals
@@ -1,43 +0,0 @@
1
- import { createStyles, Theme } from '@material-ui/core/styles'
2
-
3
- export default ({ palette, sizes, transitions }: Theme) =>
4
- createStyles({
5
- root: {
6
- padding: '20px',
7
- borderWidth: sizes.borderWidth,
8
- borderRadius: sizes.borderRadius.medium,
9
- borderColor: palette.grey.light2,
10
- borderStyle: 'dashed',
11
- backgroundColor: palette.common.white,
12
- color: palette.grey.dark,
13
- outline: 'none',
14
- transition: `all ${transitions.duration.short}ms ${transitions.easing.easeOut}`,
15
- transitionProperty: 'border, background-color',
16
- gap: '0.5rem',
17
- '&:hover, &$hovered, &:focus, &$focused, &$dragActive': {
18
- borderColor: palette.blue.main,
19
- cursor: 'pointer'
20
- },
21
- '&$disabled': {
22
- backgroundColor: palette.grey.lighter,
23
- '&:hover': {
24
- cursor: 'no-drop',
25
- borderColor: palette.grey.light2
26
- }
27
- }
28
- },
29
- hint: {
30
- margin: 0,
31
- '& > *': {
32
- lineHeight: '1rem'
33
- }
34
- },
35
- completed: {},
36
- error: {
37
- margin: 0
38
- },
39
- dragActive: {},
40
- hovered: {},
41
- disabled: {},
42
- focused: {}
43
- })
@@ -1,33 +0,0 @@
1
- import React from 'react'
2
- import { render } from '@toptal/picasso/test-utils'
3
- import { OmitInternalProps } from '@toptal/picasso-shared'
4
-
5
- import Dropzone, { Props } from './Dropzone'
6
-
7
- const renderDropzone = (props: OmitInternalProps<Props>) =>
8
- render(<Dropzone {...props} />)
9
-
10
- describe('Dropzone', () => {
11
- it('renders', () => {
12
- const { queryByText, container } = renderDropzone({})
13
-
14
- expect(queryByText('Click or drag file to upload')).toBeVisible()
15
- expect(container).toMatchSnapshot()
16
- })
17
-
18
- it('shows error', () => {
19
- const { queryByText } = renderDropzone({
20
- errorMessages: ['error example'],
21
- hint: 'hint example'
22
- })
23
-
24
- expect(queryByText('hint example')).not.toBeInTheDocument()
25
- expect(queryByText('error example')).toBeVisible()
26
- })
27
-
28
- it('renders hint', () => {
29
- const { queryByText } = renderDropzone({ hint: 'hint example' })
30
-
31
- expect(queryByText('hint example')).toBeVisible()
32
- })
33
- })
@@ -1,56 +0,0 @@
1
- export interface FileUpload {
2
- uploading?: boolean
3
- progress?: number
4
- error?: string
5
- file: File
6
- }
7
-
8
- export type DropzoneOptions = {
9
- /**
10
- * Set accepted file types. See https://github.com/okonet/attr-accept for more information.
11
- */
12
- accept?: string | string[]
13
- /** Enable/disable the dropzone */
14
- disabled?: boolean
15
- /** Maximum file size (in bytes) */
16
- maxSize?: number
17
- /** Minimum file size (in bytes) */
18
- minSize?: number
19
- /** Callback for when the drop event occurs */
20
- onDrop?: <T extends File>(
21
- acceptedFiles: T[],
22
- fileRejections: FileRejection[],
23
- event: DropEvent
24
- ) => void
25
- /** Callback for when the drop event occurs */
26
- onDropAccepted?: <T extends File>(files: T[], event: DropEvent) => void
27
- /** Callback for when the drop event occurs */
28
- onDropRejected?: (fileRejections: FileRejection[], event: DropEvent) => void
29
- /** Custom validation function */
30
- validator?: <T extends File>(file: T) => FileError | FileError[] | null
31
- }
32
-
33
- export type DropEvent =
34
- | React.DragEvent<HTMLElement>
35
- | React.ChangeEvent<HTMLInputElement>
36
- | DragEvent
37
- | Event
38
-
39
- export const ErrorCode = {
40
- FileInvalidType: 'file-invalid-type',
41
- FileTooLarge: 'file-too-large',
42
- FileTooSmall: 'file-too-small',
43
- TooManyFiles: 'too-many-files'
44
- } as const
45
-
46
- type ErrorCodeType = typeof ErrorCode[keyof typeof ErrorCode]
47
-
48
- export interface FileError {
49
- message: string
50
- code: ErrorCodeType | string
51
- }
52
-
53
- export interface FileRejection {
54
- file: File
55
- errors: FileError[]
56
- }
@@ -1,7 +0,0 @@
1
- import EmptyStatePage from '../EmptyStatePage'
2
- import EmptyStateCollection from '../EmptyStateCollection'
3
-
4
- export default {
5
- Page: EmptyStatePage,
6
- Collection: EmptyStateCollection
7
- }
@@ -1 +0,0 @@
1
- export { default } from './EmptyState'
@@ -1,13 +0,0 @@
1
- import PicassoBook from '~/.storybook/components/PicassoBook'
2
- import emptyStatePageStory from '../../EmptyStatePage/story'
3
- import emptyStateCollectionStory from '../../EmptyStateCollection/story'
4
-
5
- const page = PicassoBook.section('Picasso Lab').createPage('EmptyState')
6
-
7
- page
8
- .createTabChapter('Props')
9
- .addComponentDocs(emptyStatePageStory.componentDocs)
10
- .addComponentDocs(emptyStateCollectionStory.componentDocs)
11
-
12
- page.connect(emptyStatePageStory.chapter)
13
- page.connect(emptyStateCollectionStory.chapter)
@@ -1,56 +0,0 @@
1
- import { Container, Typography } from '@toptal/picasso'
2
- import React, {
3
- forwardRef,
4
- HTMLAttributes,
5
- ReactElement,
6
- cloneElement
7
- } from 'react'
8
- import { makeStyles, Theme } from '@material-ui/core/styles'
9
- import { Search16 as Search } from '@toptal/picasso/Icon'
10
-
11
- import styles from './styles'
12
-
13
- export interface Props extends HTMLAttributes<HTMLDivElement> {
14
- /** Adds <Icon /> before EmptyStateCollection content */
15
- icon?: ReactElement
16
- }
17
-
18
- const useStyles = makeStyles<Theme>(styles, {
19
- name: 'PicassoEmptyStateCollection'
20
- })
21
-
22
- export const EmptyStateCollection = forwardRef<HTMLDivElement, Props>(
23
- function EmptyStateCollection(props, ref) {
24
- const classes = useStyles()
25
- const { icon, children, style, ...rest } = props
26
- const iconProps = {
27
- className: classes.icon,
28
- color: 'dark-grey' as const
29
- }
30
- const iconElement = icon ? (
31
- cloneElement(icon, iconProps)
32
- ) : (
33
- <Search {...iconProps} />
34
- )
35
-
36
- return (
37
- <Container {...rest} alignItems='center' flex ref={ref} style={style}>
38
- <Container
39
- alignItems='center'
40
- className={classes.iconWrapper}
41
- flex
42
- right='xsmall'
43
- >
44
- {iconElement}
45
- </Container>
46
- <Container>
47
- <Typography size='small'>{children}</Typography>
48
- </Container>
49
- </Container>
50
- )
51
- }
52
- )
53
-
54
- EmptyStateCollection.displayName = 'EmptyStateCollection'
55
-
56
- export default EmptyStateCollection
@@ -1 +0,0 @@
1
- export { default } from './EmptyStateCollection'
@@ -1,11 +0,0 @@
1
- import React from 'react'
2
- import { EmptyState } from '@toptal/picasso-lab'
3
- import { Container } from '@toptal/picasso'
4
-
5
- const DefaultExample = () => (
6
- <Container>
7
- <EmptyState.Collection>No memorandums were added yet</EmptyState.Collection>
8
- </Container>
9
- )
10
-
11
- export default DefaultExample
@@ -1,20 +0,0 @@
1
- import { EmptyStateCollection } from '../EmptyStateCollection'
2
- import PicassoBook from '~/.storybook/components/PicassoBook'
3
-
4
- const componentDocs = PicassoBook.createComponentDocs(
5
- EmptyStateCollection,
6
- 'EmptyState.Collection'
7
- )
8
-
9
- const chapter = PicassoBook.connectToPage(page =>
10
- page
11
- .createChapter('EmptyState.Collection')
12
- .addExample('EmptyStateCollection/story/Default.example.tsx', {
13
- id: 'EmptyStateCollection'
14
- })
15
- )
16
-
17
- export default {
18
- componentDocs,
19
- chapter
20
- }
@@ -1,10 +0,0 @@
1
- import { createStyles } from '@material-ui/core/styles'
2
-
3
- export default () =>
4
- createStyles({
5
- icon: {
6
- flexBasis: '1rem',
7
- minWidth: '1rem',
8
- height: '1rem'
9
- }
10
- })
@@ -1,65 +0,0 @@
1
- import { Container, Typography } from '@toptal/picasso'
2
- import React, {
3
- forwardRef,
4
- HTMLAttributes,
5
- ReactElement,
6
- cloneElement
7
- } from 'react'
8
- import { makeStyles, Theme } from '@material-ui/core/styles'
9
-
10
- import styles from './styles'
11
-
12
- export interface Props extends HTMLAttributes<HTMLDivElement> {
13
- /** Adds <Icon /> above EmptyStatePage content */
14
- image: ReactElement
15
- /** Adds Title string below the main image */
16
- title?: string
17
- }
18
-
19
- const useStyles = makeStyles<Theme>(styles, {
20
- name: 'PicassoEmptyStatePage'
21
- })
22
-
23
- export const EmptyStatePage = forwardRef<HTMLDivElement, Props>(
24
- function EmptyStatePage(props, ref) {
25
- const classes = useStyles()
26
- const { image, title, children, style, ...rest } = props
27
-
28
- return (
29
- <Container
30
- {...rest}
31
- direction='column'
32
- alignItems='center'
33
- flex
34
- ref={ref}
35
- style={style}
36
- >
37
- <Container
38
- alignItems='center'
39
- justifyContent='center'
40
- bottom='small'
41
- flex
42
- >
43
- {cloneElement(image, { className: classes.image })}
44
- </Container>
45
- {title && (
46
- <Container bottom='xsmall'>
47
- <Typography variant='heading' size='medium'>
48
- {title}
49
- </Typography>
50
- </Container>
51
- )}
52
- <Typography
53
- size='small'
54
- as={typeof children === 'string' ? 'p' : 'div'}
55
- >
56
- {children}
57
- </Typography>
58
- </Container>
59
- )
60
- }
61
- )
62
-
63
- EmptyStatePage.displayName = 'EmptyStatePage'
64
-
65
- export default EmptyStatePage
@@ -1 +0,0 @@
1
- export { default } from './EmptyStatePage'
@@ -1,21 +0,0 @@
1
- import React from 'react'
2
- import { EmptyState } from '@toptal/picasso-lab'
3
- import { Container, Image } from '@toptal/picasso'
4
-
5
- const DefaultExample = () => (
6
- <Container>
7
- <EmptyState.Page
8
- title='Memorandums page is empty'
9
- image={
10
- <Image
11
- src='./jacqueline-with-flowers-1954-square.jpg'
12
- alt='Placeholder image'
13
- />
14
- }
15
- >
16
- No memorandums were added yet
17
- </EmptyState.Page>
18
- </Container>
19
- )
20
-
21
- export default DefaultExample