@wise/art 0.0.1

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 (458) hide show
  1. package/README.md +1 -0
  2. package/dist/Illustration.css +4 -0
  3. package/dist/common.d.ts +7 -0
  4. package/dist/illustrations/Illustration.d.ts +12 -0
  5. package/dist/illustrations/Illustration.stories.d.ts +18 -0
  6. package/dist/illustrations/assets/bell-large@1x.webp +0 -0
  7. package/dist/illustrations/assets/bell-large@2x.webp +0 -0
  8. package/dist/illustrations/assets/bell-medium@1x.webp +0 -0
  9. package/dist/illustrations/assets/bell-medium@2x.webp +0 -0
  10. package/dist/illustrations/assets/bell-small@1.5x.webp +0 -0
  11. package/dist/illustrations/assets/bell-small@1x.webp +0 -0
  12. package/dist/illustrations/assets/bell-small@2x.webp +0 -0
  13. package/dist/illustrations/assets/bell-small@3x.webp +0 -0
  14. package/dist/illustrations/assets/bell-small@4x.webp +0 -0
  15. package/dist/illustrations/assets/briefcase-large@1x.webp +0 -0
  16. package/dist/illustrations/assets/briefcase-large@2x.webp +0 -0
  17. package/dist/illustrations/assets/briefcase-medium@1x.webp +0 -0
  18. package/dist/illustrations/assets/briefcase-medium@2x.webp +0 -0
  19. package/dist/illustrations/assets/briefcase-small@1.5x.webp +0 -0
  20. package/dist/illustrations/assets/briefcase-small@1x.webp +0 -0
  21. package/dist/illustrations/assets/briefcase-small@2x.webp +0 -0
  22. package/dist/illustrations/assets/briefcase-small@3x.webp +0 -0
  23. package/dist/illustrations/assets/briefcase-small@4x.webp +0 -0
  24. package/dist/illustrations/assets/calendar-large@1x.webp +0 -0
  25. package/dist/illustrations/assets/calendar-large@2x.webp +0 -0
  26. package/dist/illustrations/assets/calendar-medium@1x.webp +0 -0
  27. package/dist/illustrations/assets/calendar-medium@2x.webp +0 -0
  28. package/dist/illustrations/assets/calendar-small@1.5x.webp +0 -0
  29. package/dist/illustrations/assets/calendar-small@1x.webp +0 -0
  30. package/dist/illustrations/assets/calendar-small@2x.webp +0 -0
  31. package/dist/illustrations/assets/calendar-small@3x.webp +0 -0
  32. package/dist/illustrations/assets/calendar-small@4x.webp +0 -0
  33. package/dist/illustrations/assets/check-mark-large@1x.webp +0 -0
  34. package/dist/illustrations/assets/check-mark-large@2x.webp +0 -0
  35. package/dist/illustrations/assets/check-mark-medium@1x.webp +0 -0
  36. package/dist/illustrations/assets/check-mark-medium@2x.webp +0 -0
  37. package/dist/illustrations/assets/check-mark-small@1.5x.webp +0 -0
  38. package/dist/illustrations/assets/check-mark-small@1x.webp +0 -0
  39. package/dist/illustrations/assets/check-mark-small@2x.webp +0 -0
  40. package/dist/illustrations/assets/check-mark-small@3x.webp +0 -0
  41. package/dist/illustrations/assets/check-mark-small@4x.webp +0 -0
  42. package/dist/illustrations/assets/closed-window-large@1x.webp +0 -0
  43. package/dist/illustrations/assets/closed-window-large@2x.webp +0 -0
  44. package/dist/illustrations/assets/closed-window-medium@1x.webp +0 -0
  45. package/dist/illustrations/assets/closed-window-medium@2x.webp +0 -0
  46. package/dist/illustrations/assets/closed-window-small@1.5x.webp +0 -0
  47. package/dist/illustrations/assets/closed-window-small@1x.webp +0 -0
  48. package/dist/illustrations/assets/closed-window-small@2x.webp +0 -0
  49. package/dist/illustrations/assets/closed-window-small@3x.webp +0 -0
  50. package/dist/illustrations/assets/closed-window-small@4x.webp +0 -0
  51. package/dist/illustrations/assets/coin-pile-large@1x.webp +0 -0
  52. package/dist/illustrations/assets/coin-pile-large@2x.webp +0 -0
  53. package/dist/illustrations/assets/coin-pile-medium@1x.webp +0 -0
  54. package/dist/illustrations/assets/coin-pile-medium@2x.webp +0 -0
  55. package/dist/illustrations/assets/coin-pile-small@1.5x.webp +0 -0
  56. package/dist/illustrations/assets/coin-pile-small@1x.webp +0 -0
  57. package/dist/illustrations/assets/coin-pile-small@2x.webp +0 -0
  58. package/dist/illustrations/assets/coin-pile-small@3x.webp +0 -0
  59. package/dist/illustrations/assets/coin-pile-small@4x.webp +0 -0
  60. package/dist/illustrations/assets/confetti-large@1x.webp +0 -0
  61. package/dist/illustrations/assets/confetti-large@2x.webp +0 -0
  62. package/dist/illustrations/assets/confetti-medium@1x.webp +0 -0
  63. package/dist/illustrations/assets/confetti-medium@2x.webp +0 -0
  64. package/dist/illustrations/assets/confetti-small@1.5x.webp +0 -0
  65. package/dist/illustrations/assets/confetti-small@1x.webp +0 -0
  66. package/dist/illustrations/assets/confetti-small@2x.webp +0 -0
  67. package/dist/illustrations/assets/confetti-small@3x.webp +0 -0
  68. package/dist/illustrations/assets/confetti-small@4x.webp +0 -0
  69. package/dist/illustrations/assets/construction-fence-large@1x.webp +0 -0
  70. package/dist/illustrations/assets/construction-fence-large@2x.webp +0 -0
  71. package/dist/illustrations/assets/construction-fence-medium@1x.webp +0 -0
  72. package/dist/illustrations/assets/construction-fence-medium@2x.webp +0 -0
  73. package/dist/illustrations/assets/construction-fence-small@1.5x.webp +0 -0
  74. package/dist/illustrations/assets/construction-fence-small@1x.webp +0 -0
  75. package/dist/illustrations/assets/construction-fence-small@2x.webp +0 -0
  76. package/dist/illustrations/assets/construction-fence-small@3x.webp +0 -0
  77. package/dist/illustrations/assets/construction-fence-small@4x.webp +0 -0
  78. package/dist/illustrations/assets/convert-large@1x.webp +0 -0
  79. package/dist/illustrations/assets/convert-large@2x.webp +0 -0
  80. package/dist/illustrations/assets/convert-medium@1x.webp +0 -0
  81. package/dist/illustrations/assets/convert-medium@2x.webp +0 -0
  82. package/dist/illustrations/assets/convert-small@1.5x.webp +0 -0
  83. package/dist/illustrations/assets/convert-small@1x.webp +0 -0
  84. package/dist/illustrations/assets/convert-small@2x.webp +0 -0
  85. package/dist/illustrations/assets/convert-small@3x.webp +0 -0
  86. package/dist/illustrations/assets/convert-small@4x.webp +0 -0
  87. package/dist/illustrations/assets/cookie-large@1x.webp +0 -0
  88. package/dist/illustrations/assets/cookie-large@2x.webp +0 -0
  89. package/dist/illustrations/assets/cookie-medium@1x.webp +0 -0
  90. package/dist/illustrations/assets/cookie-medium@2x.webp +0 -0
  91. package/dist/illustrations/assets/cookie-small@1.5x.webp +0 -0
  92. package/dist/illustrations/assets/cookie-small@1x.webp +0 -0
  93. package/dist/illustrations/assets/cookie-small@2x.webp +0 -0
  94. package/dist/illustrations/assets/cookie-small@3x.webp +0 -0
  95. package/dist/illustrations/assets/cookie-small@4x.webp +0 -0
  96. package/dist/illustrations/assets/documents-large@1x.webp +0 -0
  97. package/dist/illustrations/assets/documents-large@2x.webp +0 -0
  98. package/dist/illustrations/assets/documents-medium@1x.webp +0 -0
  99. package/dist/illustrations/assets/documents-medium@2x.webp +0 -0
  100. package/dist/illustrations/assets/documents-small@1.5x.webp +0 -0
  101. package/dist/illustrations/assets/documents-small@1x.webp +0 -0
  102. package/dist/illustrations/assets/documents-small@2x.webp +0 -0
  103. package/dist/illustrations/assets/documents-small@3x.webp +0 -0
  104. package/dist/illustrations/assets/documents-small@4x.webp +0 -0
  105. package/dist/illustrations/assets/door-large@1x.webp +0 -0
  106. package/dist/illustrations/assets/door-large@2x.webp +0 -0
  107. package/dist/illustrations/assets/door-medium@1x.webp +0 -0
  108. package/dist/illustrations/assets/door-medium@2x.webp +0 -0
  109. package/dist/illustrations/assets/door-small@1.5x.webp +0 -0
  110. package/dist/illustrations/assets/door-small@1x.webp +0 -0
  111. package/dist/illustrations/assets/door-small@2x.webp +0 -0
  112. package/dist/illustrations/assets/door-small@3x.webp +0 -0
  113. package/dist/illustrations/assets/door-small@4x.webp +0 -0
  114. package/dist/illustrations/assets/electric-plug-large@1x.webp +0 -0
  115. package/dist/illustrations/assets/electric-plug-large@2x.webp +0 -0
  116. package/dist/illustrations/assets/electric-plug-medium@1x.webp +0 -0
  117. package/dist/illustrations/assets/electric-plug-medium@2x.webp +0 -0
  118. package/dist/illustrations/assets/electric-plug-small@1.5x.webp +0 -0
  119. package/dist/illustrations/assets/electric-plug-small@1x.webp +0 -0
  120. package/dist/illustrations/assets/electric-plug-small@2x.webp +0 -0
  121. package/dist/illustrations/assets/electric-plug-small@3x.webp +0 -0
  122. package/dist/illustrations/assets/electric-plug-small@4x.webp +0 -0
  123. package/dist/illustrations/assets/email-large@1x.webp +0 -0
  124. package/dist/illustrations/assets/email-large@2x.webp +0 -0
  125. package/dist/illustrations/assets/email-medium@1x.webp +0 -0
  126. package/dist/illustrations/assets/email-medium@2x.webp +0 -0
  127. package/dist/illustrations/assets/email-small@1.5x.webp +0 -0
  128. package/dist/illustrations/assets/email-small@1x.webp +0 -0
  129. package/dist/illustrations/assets/email-small@2x.webp +0 -0
  130. package/dist/illustrations/assets/email-small@3x.webp +0 -0
  131. package/dist/illustrations/assets/email-small@4x.webp +0 -0
  132. package/dist/illustrations/assets/exclamation-mark-large@1x.webp +0 -0
  133. package/dist/illustrations/assets/exclamation-mark-large@2x.webp +0 -0
  134. package/dist/illustrations/assets/exclamation-mark-medium@1x.webp +0 -0
  135. package/dist/illustrations/assets/exclamation-mark-medium@2x.webp +0 -0
  136. package/dist/illustrations/assets/exclamation-mark-small@1.5x.webp +0 -0
  137. package/dist/illustrations/assets/exclamation-mark-small@1x.webp +0 -0
  138. package/dist/illustrations/assets/exclamation-mark-small@2x.webp +0 -0
  139. package/dist/illustrations/assets/exclamation-mark-small@3x.webp +0 -0
  140. package/dist/illustrations/assets/exclamation-mark-small@4x.webp +0 -0
  141. package/dist/illustrations/assets/flag-large@1x.webp +0 -0
  142. package/dist/illustrations/assets/flag-large@2x.webp +0 -0
  143. package/dist/illustrations/assets/flag-medium@1x.webp +0 -0
  144. package/dist/illustrations/assets/flag-medium@2x.webp +0 -0
  145. package/dist/illustrations/assets/flag-small@1.5x.webp +0 -0
  146. package/dist/illustrations/assets/flag-small@1x.webp +0 -0
  147. package/dist/illustrations/assets/flag-small@2x.webp +0 -0
  148. package/dist/illustrations/assets/flag-small@3x.webp +0 -0
  149. package/dist/illustrations/assets/flag-small@4x.webp +0 -0
  150. package/dist/illustrations/assets/flower-large@1x.webp +0 -0
  151. package/dist/illustrations/assets/flower-large@2x.webp +0 -0
  152. package/dist/illustrations/assets/flower-medium@1x.webp +0 -0
  153. package/dist/illustrations/assets/flower-medium@2x.webp +0 -0
  154. package/dist/illustrations/assets/flower-small@1.5x.webp +0 -0
  155. package/dist/illustrations/assets/flower-small@1x.webp +0 -0
  156. package/dist/illustrations/assets/flower-small@2x.webp +0 -0
  157. package/dist/illustrations/assets/flower-small@3x.webp +0 -0
  158. package/dist/illustrations/assets/flower-small@4x.webp +0 -0
  159. package/dist/illustrations/assets/gear-large@1x.webp +0 -0
  160. package/dist/illustrations/assets/gear-large@2x.webp +0 -0
  161. package/dist/illustrations/assets/gear-medium@1x.webp +0 -0
  162. package/dist/illustrations/assets/gear-medium@2x.webp +0 -0
  163. package/dist/illustrations/assets/gear-small@1.5x.webp +0 -0
  164. package/dist/illustrations/assets/gear-small@1x.webp +0 -0
  165. package/dist/illustrations/assets/gear-small@2x.webp +0 -0
  166. package/dist/illustrations/assets/gear-small@3x.webp +0 -0
  167. package/dist/illustrations/assets/gear-small@4x.webp +0 -0
  168. package/dist/illustrations/assets/globe-large@1x.webp +0 -0
  169. package/dist/illustrations/assets/globe-large@2x.webp +0 -0
  170. package/dist/illustrations/assets/globe-medium@1x.webp +0 -0
  171. package/dist/illustrations/assets/globe-medium@2x.webp +0 -0
  172. package/dist/illustrations/assets/globe-small@1.5x.webp +0 -0
  173. package/dist/illustrations/assets/globe-small@1x.webp +0 -0
  174. package/dist/illustrations/assets/globe-small@2x.webp +0 -0
  175. package/dist/illustrations/assets/globe-small@3x.webp +0 -0
  176. package/dist/illustrations/assets/globe-small@4x.webp +0 -0
  177. package/dist/illustrations/assets/graph-large@1x.webp +0 -0
  178. package/dist/illustrations/assets/graph-large@2x.webp +0 -0
  179. package/dist/illustrations/assets/graph-medium@1x.webp +0 -0
  180. package/dist/illustrations/assets/graph-medium@2x.webp +0 -0
  181. package/dist/illustrations/assets/graph-small@1.5x.webp +0 -0
  182. package/dist/illustrations/assets/graph-small@1x.webp +0 -0
  183. package/dist/illustrations/assets/graph-small@2x.webp +0 -0
  184. package/dist/illustrations/assets/graph-small@3x.webp +0 -0
  185. package/dist/illustrations/assets/graph-small@4x.webp +0 -0
  186. package/dist/illustrations/assets/heart-large@1x.webp +0 -0
  187. package/dist/illustrations/assets/heart-large@2x.webp +0 -0
  188. package/dist/illustrations/assets/heart-medium@1x.webp +0 -0
  189. package/dist/illustrations/assets/heart-medium@2x.webp +0 -0
  190. package/dist/illustrations/assets/heart-small@1.5x.webp +0 -0
  191. package/dist/illustrations/assets/heart-small@1x.webp +0 -0
  192. package/dist/illustrations/assets/heart-small@2x.webp +0 -0
  193. package/dist/illustrations/assets/heart-small@3x.webp +0 -0
  194. package/dist/illustrations/assets/heart-small@4x.webp +0 -0
  195. package/dist/illustrations/assets/house-large@1x.webp +0 -0
  196. package/dist/illustrations/assets/house-large@2x.webp +0 -0
  197. package/dist/illustrations/assets/house-medium@1x.webp +0 -0
  198. package/dist/illustrations/assets/house-medium@2x.webp +0 -0
  199. package/dist/illustrations/assets/house-small@1.5x.webp +0 -0
  200. package/dist/illustrations/assets/house-small@1x.webp +0 -0
  201. package/dist/illustrations/assets/house-small@2x.webp +0 -0
  202. package/dist/illustrations/assets/house-small@3x.webp +0 -0
  203. package/dist/illustrations/assets/house-small@4x.webp +0 -0
  204. package/dist/illustrations/assets/id-card-large@1x.webp +0 -0
  205. package/dist/illustrations/assets/id-card-large@2x.webp +0 -0
  206. package/dist/illustrations/assets/id-card-medium@1x.webp +0 -0
  207. package/dist/illustrations/assets/id-card-medium@2x.webp +0 -0
  208. package/dist/illustrations/assets/id-card-small@1.5x.webp +0 -0
  209. package/dist/illustrations/assets/id-card-small@1x.webp +0 -0
  210. package/dist/illustrations/assets/id-card-small@2x.webp +0 -0
  211. package/dist/illustrations/assets/id-card-small@3x.webp +0 -0
  212. package/dist/illustrations/assets/id-card-small@4x.webp +0 -0
  213. package/dist/illustrations/assets/infinite-large@1x.webp +0 -0
  214. package/dist/illustrations/assets/infinite-large@2x.webp +0 -0
  215. package/dist/illustrations/assets/infinite-medium@1x.webp +0 -0
  216. package/dist/illustrations/assets/infinite-medium@2x.webp +0 -0
  217. package/dist/illustrations/assets/infinite-small@1.5x.webp +0 -0
  218. package/dist/illustrations/assets/infinite-small@1x.webp +0 -0
  219. package/dist/illustrations/assets/infinite-small@2x.webp +0 -0
  220. package/dist/illustrations/assets/infinite-small@3x.webp +0 -0
  221. package/dist/illustrations/assets/infinite-small@4x.webp +0 -0
  222. package/dist/illustrations/assets/invite-letter-large@1x.webp +0 -0
  223. package/dist/illustrations/assets/invite-letter-large@2x.webp +0 -0
  224. package/dist/illustrations/assets/invite-letter-medium@1x.webp +0 -0
  225. package/dist/illustrations/assets/invite-letter-medium@2x.webp +0 -0
  226. package/dist/illustrations/assets/invite-letter-small@1.5x.webp +0 -0
  227. package/dist/illustrations/assets/invite-letter-small@1x.webp +0 -0
  228. package/dist/illustrations/assets/invite-letter-small@2x.webp +0 -0
  229. package/dist/illustrations/assets/invite-letter-small@3x.webp +0 -0
  230. package/dist/illustrations/assets/invite-letter-small@4x.webp +0 -0
  231. package/dist/illustrations/assets/jars-large@1x.webp +0 -0
  232. package/dist/illustrations/assets/jars-large@2x.webp +0 -0
  233. package/dist/illustrations/assets/jars-medium@1x.webp +0 -0
  234. package/dist/illustrations/assets/jars-medium@2x.webp +0 -0
  235. package/dist/illustrations/assets/jars-small@1.5x.webp +0 -0
  236. package/dist/illustrations/assets/jars-small@1x.webp +0 -0
  237. package/dist/illustrations/assets/jars-small@2x.webp +0 -0
  238. package/dist/illustrations/assets/jars-small@3x.webp +0 -0
  239. package/dist/illustrations/assets/jars-small@4x.webp +0 -0
  240. package/dist/illustrations/assets/key-large@1x.webp +0 -0
  241. package/dist/illustrations/assets/key-large@2x.webp +0 -0
  242. package/dist/illustrations/assets/key-medium@1x.webp +0 -0
  243. package/dist/illustrations/assets/key-medium@2x.webp +0 -0
  244. package/dist/illustrations/assets/key-small@1.5x.webp +0 -0
  245. package/dist/illustrations/assets/key-small@1x.webp +0 -0
  246. package/dist/illustrations/assets/key-small@2x.webp +0 -0
  247. package/dist/illustrations/assets/key-small@3x.webp +0 -0
  248. package/dist/illustrations/assets/key-small@4x.webp +0 -0
  249. package/dist/illustrations/assets/light-bulb-large@1x.webp +0 -0
  250. package/dist/illustrations/assets/light-bulb-large@2x.webp +0 -0
  251. package/dist/illustrations/assets/light-bulb-medium@1x.webp +0 -0
  252. package/dist/illustrations/assets/light-bulb-medium@2x.webp +0 -0
  253. package/dist/illustrations/assets/light-bulb-small@1.5x.webp +0 -0
  254. package/dist/illustrations/assets/light-bulb-small@1x.webp +0 -0
  255. package/dist/illustrations/assets/light-bulb-small@2x.webp +0 -0
  256. package/dist/illustrations/assets/light-bulb-small@3x.webp +0 -0
  257. package/dist/illustrations/assets/light-bulb-small@4x.webp +0 -0
  258. package/dist/illustrations/assets/lock-large@1x.webp +0 -0
  259. package/dist/illustrations/assets/lock-large@2x.webp +0 -0
  260. package/dist/illustrations/assets/lock-medium@1x.webp +0 -0
  261. package/dist/illustrations/assets/lock-medium@2x.webp +0 -0
  262. package/dist/illustrations/assets/lock-small@1.5x.webp +0 -0
  263. package/dist/illustrations/assets/lock-small@1x.webp +0 -0
  264. package/dist/illustrations/assets/lock-small@2x.webp +0 -0
  265. package/dist/illustrations/assets/lock-small@3x.webp +0 -0
  266. package/dist/illustrations/assets/lock-small@4x.webp +0 -0
  267. package/dist/illustrations/assets/magnifying-glass-large@1x.webp +0 -0
  268. package/dist/illustrations/assets/magnifying-glass-large@2x.webp +0 -0
  269. package/dist/illustrations/assets/magnifying-glass-medium@1x.webp +0 -0
  270. package/dist/illustrations/assets/magnifying-glass-medium@2x.webp +0 -0
  271. package/dist/illustrations/assets/magnifying-glass-small@1.5x.webp +0 -0
  272. package/dist/illustrations/assets/magnifying-glass-small@1x.webp +0 -0
  273. package/dist/illustrations/assets/magnifying-glass-small@2x.webp +0 -0
  274. package/dist/illustrations/assets/magnifying-glass-small@3x.webp +0 -0
  275. package/dist/illustrations/assets/magnifying-glass-small@4x.webp +0 -0
  276. package/dist/illustrations/assets/map-large@1x.webp +0 -0
  277. package/dist/illustrations/assets/map-large@2x.webp +0 -0
  278. package/dist/illustrations/assets/map-medium@1x.webp +0 -0
  279. package/dist/illustrations/assets/map-medium@2x.webp +0 -0
  280. package/dist/illustrations/assets/map-small@1.5x.webp +0 -0
  281. package/dist/illustrations/assets/map-small@1x.webp +0 -0
  282. package/dist/illustrations/assets/map-small@2x.webp +0 -0
  283. package/dist/illustrations/assets/map-small@3x.webp +0 -0
  284. package/dist/illustrations/assets/map-small@4x.webp +0 -0
  285. package/dist/illustrations/assets/megaphone-large@1x.webp +0 -0
  286. package/dist/illustrations/assets/megaphone-large@2x.webp +0 -0
  287. package/dist/illustrations/assets/megaphone-medium@1x.webp +0 -0
  288. package/dist/illustrations/assets/megaphone-medium@2x.webp +0 -0
  289. package/dist/illustrations/assets/megaphone-small@1.5x.webp +0 -0
  290. package/dist/illustrations/assets/megaphone-small@1x.webp +0 -0
  291. package/dist/illustrations/assets/megaphone-small@2x.webp +0 -0
  292. package/dist/illustrations/assets/megaphone-small@3x.webp +0 -0
  293. package/dist/illustrations/assets/megaphone-small@4x.webp +0 -0
  294. package/dist/illustrations/assets/multi-currency-large@1x.webp +0 -0
  295. package/dist/illustrations/assets/multi-currency-large@2x.webp +0 -0
  296. package/dist/illustrations/assets/multi-currency-medium@1x.webp +0 -0
  297. package/dist/illustrations/assets/multi-currency-medium@2x.webp +0 -0
  298. package/dist/illustrations/assets/multi-currency-small@1.5x.webp +0 -0
  299. package/dist/illustrations/assets/multi-currency-small@1x.webp +0 -0
  300. package/dist/illustrations/assets/multi-currency-small@2x.webp +0 -0
  301. package/dist/illustrations/assets/multi-currency-small@3x.webp +0 -0
  302. package/dist/illustrations/assets/multi-currency-small@4x.webp +0 -0
  303. package/dist/illustrations/assets/one-invite-letter-opened-large@1x.webp +0 -0
  304. package/dist/illustrations/assets/one-invite-letter-opened-large@2x.webp +0 -0
  305. package/dist/illustrations/assets/one-invite-letter-opened-medium@1x.webp +0 -0
  306. package/dist/illustrations/assets/one-invite-letter-opened-medium@2x.webp +0 -0
  307. package/dist/illustrations/assets/one-invite-letter-opened-small@1.5x.webp +0 -0
  308. package/dist/illustrations/assets/one-invite-letter-opened-small@1x.webp +0 -0
  309. package/dist/illustrations/assets/one-invite-letter-opened-small@2x.webp +0 -0
  310. package/dist/illustrations/assets/one-invite-letter-opened-small@3x.webp +0 -0
  311. package/dist/illustrations/assets/one-invite-letter-opened-small@4x.webp +0 -0
  312. package/dist/illustrations/assets/palm-tree-large@1x.webp +0 -0
  313. package/dist/illustrations/assets/palm-tree-large@2x.webp +0 -0
  314. package/dist/illustrations/assets/palm-tree-medium@1x.webp +0 -0
  315. package/dist/illustrations/assets/palm-tree-medium@2x.webp +0 -0
  316. package/dist/illustrations/assets/palm-tree-small@1.5x.webp +0 -0
  317. package/dist/illustrations/assets/palm-tree-small@1x.webp +0 -0
  318. package/dist/illustrations/assets/palm-tree-small@2x.webp +0 -0
  319. package/dist/illustrations/assets/palm-tree-small@3x.webp +0 -0
  320. package/dist/illustrations/assets/palm-tree-small@4x.webp +0 -0
  321. package/dist/illustrations/assets/phones-large@1x.webp +0 -0
  322. package/dist/illustrations/assets/phones-large@2x.webp +0 -0
  323. package/dist/illustrations/assets/phones-medium@1x.webp +0 -0
  324. package/dist/illustrations/assets/phones-medium@2x.webp +0 -0
  325. package/dist/illustrations/assets/phones-small@1.5x.webp +0 -0
  326. package/dist/illustrations/assets/phones-small@1x.webp +0 -0
  327. package/dist/illustrations/assets/phones-small@2x.webp +0 -0
  328. package/dist/illustrations/assets/phones-small@3x.webp +0 -0
  329. package/dist/illustrations/assets/phones-small@4x.webp +0 -0
  330. package/dist/illustrations/assets/pie-chart-large@1x.webp +0 -0
  331. package/dist/illustrations/assets/pie-chart-large@2x.webp +0 -0
  332. package/dist/illustrations/assets/pie-chart-medium@1x.webp +0 -0
  333. package/dist/illustrations/assets/pie-chart-medium@2x.webp +0 -0
  334. package/dist/illustrations/assets/pie-chart-small@1.5x.webp +0 -0
  335. package/dist/illustrations/assets/pie-chart-small@1x.webp +0 -0
  336. package/dist/illustrations/assets/pie-chart-small@2x.webp +0 -0
  337. package/dist/illustrations/assets/pie-chart-small@3x.webp +0 -0
  338. package/dist/illustrations/assets/pie-chart-small@4x.webp +0 -0
  339. package/dist/illustrations/assets/plane-large@1x.webp +0 -0
  340. package/dist/illustrations/assets/plane-large@2x.webp +0 -0
  341. package/dist/illustrations/assets/plane-medium@1x.webp +0 -0
  342. package/dist/illustrations/assets/plane-medium@2x.webp +0 -0
  343. package/dist/illustrations/assets/plane-small@1.5x.webp +0 -0
  344. package/dist/illustrations/assets/plane-small@1x.webp +0 -0
  345. package/dist/illustrations/assets/plane-small@2x.webp +0 -0
  346. package/dist/illustrations/assets/plane-small@3x.webp +0 -0
  347. package/dist/illustrations/assets/plane-small@4x.webp +0 -0
  348. package/dist/illustrations/assets/puzzle-pieces-large@1x.webp +0 -0
  349. package/dist/illustrations/assets/puzzle-pieces-large@2x.webp +0 -0
  350. package/dist/illustrations/assets/puzzle-pieces-medium@1x.webp +0 -0
  351. package/dist/illustrations/assets/puzzle-pieces-medium@2x.webp +0 -0
  352. package/dist/illustrations/assets/puzzle-pieces-small@1.5x.webp +0 -0
  353. package/dist/illustrations/assets/puzzle-pieces-small@1x.webp +0 -0
  354. package/dist/illustrations/assets/puzzle-pieces-small@2x.webp +0 -0
  355. package/dist/illustrations/assets/puzzle-pieces-small@3x.webp +0 -0
  356. package/dist/illustrations/assets/puzzle-pieces-small@4x.webp +0 -0
  357. package/dist/illustrations/assets/question-mark-large@1x.webp +0 -0
  358. package/dist/illustrations/assets/question-mark-large@2x.webp +0 -0
  359. package/dist/illustrations/assets/question-mark-medium@1x.webp +0 -0
  360. package/dist/illustrations/assets/question-mark-medium@2x.webp +0 -0
  361. package/dist/illustrations/assets/question-mark-small@1.5x.webp +0 -0
  362. package/dist/illustrations/assets/question-mark-small@1x.webp +0 -0
  363. package/dist/illustrations/assets/question-mark-small@2x.webp +0 -0
  364. package/dist/illustrations/assets/question-mark-small@3x.webp +0 -0
  365. package/dist/illustrations/assets/question-mark-small@4x.webp +0 -0
  366. package/dist/illustrations/assets/receive-large@1x.webp +0 -0
  367. package/dist/illustrations/assets/receive-large@2x.webp +0 -0
  368. package/dist/illustrations/assets/receive-medium@1x.webp +0 -0
  369. package/dist/illustrations/assets/receive-medium@2x.webp +0 -0
  370. package/dist/illustrations/assets/receive-small@1.5x.webp +0 -0
  371. package/dist/illustrations/assets/receive-small@1x.webp +0 -0
  372. package/dist/illustrations/assets/receive-small@2x.webp +0 -0
  373. package/dist/illustrations/assets/receive-small@3x.webp +0 -0
  374. package/dist/illustrations/assets/receive-small@4x.webp +0 -0
  375. package/dist/illustrations/assets/reminder-letter-large@1x.webp +0 -0
  376. package/dist/illustrations/assets/reminder-letter-large@2x.webp +0 -0
  377. package/dist/illustrations/assets/reminder-letter-medium@1x.webp +0 -0
  378. package/dist/illustrations/assets/reminder-letter-medium@2x.webp +0 -0
  379. package/dist/illustrations/assets/reminder-letter-small@1.5x.webp +0 -0
  380. package/dist/illustrations/assets/reminder-letter-small@1x.webp +0 -0
  381. package/dist/illustrations/assets/reminder-letter-small@2x.webp +0 -0
  382. package/dist/illustrations/assets/reminder-letter-small@3x.webp +0 -0
  383. package/dist/illustrations/assets/reminder-letter-small@4x.webp +0 -0
  384. package/dist/illustrations/assets/sand-timer-large@1x.webp +0 -0
  385. package/dist/illustrations/assets/sand-timer-large@2x.webp +0 -0
  386. package/dist/illustrations/assets/sand-timer-medium@1x.webp +0 -0
  387. package/dist/illustrations/assets/sand-timer-medium@2x.webp +0 -0
  388. package/dist/illustrations/assets/sand-timer-small@1.5x.webp +0 -0
  389. package/dist/illustrations/assets/sand-timer-small@1x.webp +0 -0
  390. package/dist/illustrations/assets/sand-timer-small@2x.webp +0 -0
  391. package/dist/illustrations/assets/sand-timer-small@3x.webp +0 -0
  392. package/dist/illustrations/assets/sand-timer-small@4x.webp +0 -0
  393. package/dist/illustrations/assets/shopping-bag-large@1x.webp +0 -0
  394. package/dist/illustrations/assets/shopping-bag-large@2x.webp +0 -0
  395. package/dist/illustrations/assets/shopping-bag-medium@1x.webp +0 -0
  396. package/dist/illustrations/assets/shopping-bag-medium@2x.webp +0 -0
  397. package/dist/illustrations/assets/shopping-bag-small@1.5x.webp +0 -0
  398. package/dist/illustrations/assets/shopping-bag-small@1x.webp +0 -0
  399. package/dist/illustrations/assets/shopping-bag-small@2x.webp +0 -0
  400. package/dist/illustrations/assets/shopping-bag-small@3x.webp +0 -0
  401. package/dist/illustrations/assets/shopping-bag-small@4x.webp +0 -0
  402. package/dist/illustrations/assets/skip-authentication-large@1x.webp +0 -0
  403. package/dist/illustrations/assets/skip-authentication-large@2x.webp +0 -0
  404. package/dist/illustrations/assets/skip-authentication-medium@1x.webp +0 -0
  405. package/dist/illustrations/assets/skip-authentication-medium@2x.webp +0 -0
  406. package/dist/illustrations/assets/skip-authentication-small@1.5x.webp +0 -0
  407. package/dist/illustrations/assets/skip-authentication-small@1x.webp +0 -0
  408. package/dist/illustrations/assets/skip-authentication-small@2x.webp +0 -0
  409. package/dist/illustrations/assets/skip-authentication-small@3x.webp +0 -0
  410. package/dist/illustrations/assets/skip-authentication-small@4x.webp +0 -0
  411. package/dist/illustrations/assets/speech-bubble-large@1x.webp +0 -0
  412. package/dist/illustrations/assets/speech-bubble-large@2x.webp +0 -0
  413. package/dist/illustrations/assets/speech-bubble-medium@1x.webp +0 -0
  414. package/dist/illustrations/assets/speech-bubble-medium@2x.webp +0 -0
  415. package/dist/illustrations/assets/speech-bubble-small@1.5x.webp +0 -0
  416. package/dist/illustrations/assets/speech-bubble-small@1x.webp +0 -0
  417. package/dist/illustrations/assets/speech-bubble-small@2x.webp +0 -0
  418. package/dist/illustrations/assets/speech-bubble-small@3x.webp +0 -0
  419. package/dist/illustrations/assets/speech-bubble-small@4x.webp +0 -0
  420. package/dist/illustrations/assets/tool-large@1x.webp +0 -0
  421. package/dist/illustrations/assets/tool-large@2x.webp +0 -0
  422. package/dist/illustrations/assets/tool-medium@1x.webp +0 -0
  423. package/dist/illustrations/assets/tool-medium@2x.webp +0 -0
  424. package/dist/illustrations/assets/tool-small@1.5x.webp +0 -0
  425. package/dist/illustrations/assets/tool-small@1x.webp +0 -0
  426. package/dist/illustrations/assets/tool-small@2x.webp +0 -0
  427. package/dist/illustrations/assets/tool-small@3x.webp +0 -0
  428. package/dist/illustrations/assets/tool-small@4x.webp +0 -0
  429. package/dist/illustrations/assets/two-invite-letters-opened-large@1x.webp +0 -0
  430. package/dist/illustrations/assets/two-invite-letters-opened-large@2x.webp +0 -0
  431. package/dist/illustrations/assets/two-invite-letters-opened-medium@1x.webp +0 -0
  432. package/dist/illustrations/assets/two-invite-letters-opened-medium@2x.webp +0 -0
  433. package/dist/illustrations/assets/two-invite-letters-opened-small@1.5x.webp +0 -0
  434. package/dist/illustrations/assets/two-invite-letters-opened-small@1x.webp +0 -0
  435. package/dist/illustrations/assets/two-invite-letters-opened-small@2x.webp +0 -0
  436. package/dist/illustrations/assets/two-invite-letters-opened-small@3x.webp +0 -0
  437. package/dist/illustrations/assets/two-invite-letters-opened-small@4x.webp +0 -0
  438. package/dist/illustrations/assets/wallet-large@1x.webp +0 -0
  439. package/dist/illustrations/assets/wallet-large@2x.webp +0 -0
  440. package/dist/illustrations/assets/wallet-medium@1x.webp +0 -0
  441. package/dist/illustrations/assets/wallet-medium@2x.webp +0 -0
  442. package/dist/illustrations/assets/wallet-small@1.5x.webp +0 -0
  443. package/dist/illustrations/assets/wallet-small@1x.webp +0 -0
  444. package/dist/illustrations/assets/wallet-small@2x.webp +0 -0
  445. package/dist/illustrations/assets/wallet-small@3x.webp +0 -0
  446. package/dist/illustrations/assets/wallet-small@4x.webp +0 -0
  447. package/dist/illustrations/index.d.ts +4 -0
  448. package/dist/illustrations/metadata.d.ts +58 -0
  449. package/dist/index.d.ts +4 -0
  450. package/dist/index.js +2 -0
  451. package/dist/index.js.map +1 -0
  452. package/dist/index.modern.mjs +2 -0
  453. package/dist/index.modern.mjs.map +1 -0
  454. package/dist/index.module.js +2 -0
  455. package/dist/index.module.js.map +1 -0
  456. package/dist/index.umd.js +2 -0
  457. package/dist/index.umd.js.map +1 -0
  458. package/package.json +69 -0
@@ -0,0 +1,4 @@
1
+ export { default } from './Illustration';
2
+ export type { Props as IllustrationProps } from './Illustration';
3
+ export { Assets } from './metadata';
4
+ export type { IllustrationNames } from './metadata';
@@ -0,0 +1,58 @@
1
+ /**
2
+ *
3
+ * DON'T MODIFY THIS FILE IT'S AUTO GENERATED
4
+ * See: `scripts/generate-i10s-metadata.mjs`
5
+ *
6
+ */
7
+ export declare enum Assets {
8
+ BELL = "bell",
9
+ BRIEFCASE = "briefcase",
10
+ CALENDAR = "calendar",
11
+ CHECK_MARK = "check-mark",
12
+ CLOSED_WINDOW = "closed-window",
13
+ COIN_PILE = "coin-pile",
14
+ CONFETTI = "confetti",
15
+ CONSTRUCTION_FENCE = "construction-fence",
16
+ CONVERT = "convert",
17
+ COOKIE = "cookie",
18
+ DOCUMENTS = "documents",
19
+ DOOR = "door",
20
+ ELECTRIC_PLUG = "electric-plug",
21
+ EMAIL = "email",
22
+ EXCLAMATION_MARK = "exclamation-mark",
23
+ FLAG = "flag",
24
+ FLOWER = "flower",
25
+ GEAR = "gear",
26
+ GLOBE = "globe",
27
+ GRAPH = "graph",
28
+ HEART = "heart",
29
+ HOUSE = "house",
30
+ ID_CARD = "id-card",
31
+ INFINITE = "infinite",
32
+ INVITE_LETTER = "invite-letter",
33
+ JARS = "jars",
34
+ KEY = "key",
35
+ LIGHT_BULB = "light-bulb",
36
+ LOCK = "lock",
37
+ MAGNIFYING_GLASS = "magnifying-glass",
38
+ MAP = "map",
39
+ MEGAPHONE = "megaphone",
40
+ MULTI_CURRENCY = "multi-currency",
41
+ ONE_INVITE_LETTER_OPENED = "one-invite-letter-opened",
42
+ PALM_TREE = "palm-tree",
43
+ PHONES = "phones",
44
+ PIE_CHART = "pie-chart",
45
+ PLANE = "plane",
46
+ PUZZLE_PIECES = "puzzle-pieces",
47
+ QUESTION_MARK = "question-mark",
48
+ RECEIVE = "receive",
49
+ REMINDER_LETTER = "reminder-letter",
50
+ SAND_TIMER = "sand-timer",
51
+ SHOPPING_BAG = "shopping-bag",
52
+ SKIP_AUTHENTICATION = "skip-authentication",
53
+ SPEECH_BUBBLE = "speech-bubble",
54
+ TOOL = "tool",
55
+ TWO_INVITE_LETTERS_OPENED = "two-invite-letters-opened",
56
+ WALLET = "wallet"
57
+ }
58
+ export declare type IllustrationNames = 'bell' | 'briefcase' | 'calendar' | 'check-mark' | 'closed-window' | 'coin-pile' | 'confetti' | 'construction-fence' | 'convert' | 'cookie' | 'documents' | 'door' | 'electric-plug' | 'email' | 'exclamation-mark' | 'flag' | 'flower' | 'gear' | 'globe' | 'graph' | 'heart' | 'house' | 'id-card' | 'infinite' | 'invite-letter' | 'jars' | 'key' | 'light-bulb' | 'lock' | 'magnifying-glass' | 'map' | 'megaphone' | 'multi-currency' | 'one-invite-letter-opened' | 'palm-tree' | 'phones' | 'pie-chart' | 'plane' | 'puzzle-pieces' | 'question-mark' | 'receive' | 'reminder-letter' | 'sand-timer' | 'shopping-bag' | 'skip-authentication' | 'speech-bubble' | 'tool' | 'two-invite-letters-opened' | 'wallet';
@@ -0,0 +1,4 @@
1
+ export { default as Illustration } from './illustrations';
2
+ export { Assets } from './illustrations';
3
+ export { Sizes } from './common';
4
+ export type { IllustrationNames, IllustrationProps } from './illustrations';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ var e=require("classnames"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E,a=/*#__PURE__*/r(e),i=/*#__PURE__*/r(t);exports.Sizes=void 0,(E=exports.Sizes||(exports.Sizes={})).SMALL="small",E.MEDIUM="medium",E.LARGE="large";var s,l=t.forwardRef(function(e,t){var r=e.name,E=e.alt,s=e.loading,l=void 0===s?"lazy":s,n=exports.Sizes.SMALL,c=exports.Sizes.MEDIUM,I=exports.Sizes.LARGE;return r?/*#__PURE__*/i.default.createElement("picture",{id:e.id,className:a.default("wds-illustration","wds-illustration-"+r,e.className)},/*#__PURE__*/i.default.createElement("source",{media:"(max-width: 575px)",srcSet:o(r,n,"1x")+", "+o(r,n,"2x")+" 2x"}),/*#__PURE__*/i.default.createElement("source",{media:"(max-width: 991px)",srcSet:o(r,c,"1x")+", "+o(r,c,"2x")+" 2x"}),/*#__PURE__*/i.default.createElement("img",{ref:t,src:o(r,I,"1x"),alt:E,loading:l,srcSet:o(r,I,"2x")+" 2x"})):null});function o(e,t,r){return"illustrations/assets/"+e+"-"+t+"@"+r+".webp"}exports.Assets=void 0,(s=exports.Assets||(exports.Assets={})).BELL="bell",s.BRIEFCASE="briefcase",s.CALENDAR="calendar",s.CHECK_MARK="check-mark",s.CLOSED_WINDOW="closed-window",s.COIN_PILE="coin-pile",s.CONFETTI="confetti",s.CONSTRUCTION_FENCE="construction-fence",s.CONVERT="convert",s.COOKIE="cookie",s.DOCUMENTS="documents",s.DOOR="door",s.ELECTRIC_PLUG="electric-plug",s.EMAIL="email",s.EXCLAMATION_MARK="exclamation-mark",s.FLAG="flag",s.FLOWER="flower",s.GEAR="gear",s.GLOBE="globe",s.GRAPH="graph",s.HEART="heart",s.HOUSE="house",s.ID_CARD="id-card",s.INFINITE="infinite",s.INVITE_LETTER="invite-letter",s.JARS="jars",s.KEY="key",s.LIGHT_BULB="light-bulb",s.LOCK="lock",s.MAGNIFYING_GLASS="magnifying-glass",s.MAP="map",s.MEGAPHONE="megaphone",s.MULTI_CURRENCY="multi-currency",s.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",s.PALM_TREE="palm-tree",s.PHONES="phones",s.PIE_CHART="pie-chart",s.PLANE="plane",s.PUZZLE_PIECES="puzzle-pieces",s.QUESTION_MARK="question-mark",s.RECEIVE="receive",s.REMINDER_LETTER="reminder-letter",s.SAND_TIMER="sand-timer",s.SHOPPING_BAG="shopping-bag",s.SKIP_AUTHENTICATION="skip-authentication",s.SPEECH_BUBBLE="speech-bubble",s.TOOL="tool",s.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",s.WALLET="wallet",exports.Illustration=l;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\nexport type SizeType = 'large' | 'medium' | 'small';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { SizeType, Descriptors, Sizes } from './../common';\nimport { IllustrationNames } from './metadata';\n\n// Picking only a few props from Image element to avoid breaking change\n// as in future underlying element might change\ntype ImgProps = Pick<ImgHTMLAttributes<HTMLImageElement>, 'id' | 'className' | 'loading'>;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {/* Mobile screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n\n <img\n ref={ref}\n src={defineSrc(name, LARGE, '1x')}\n alt={alt}\n loading={loading}\n srcSet={`${defineSrc(name, LARGE, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: SizeType, descriptor: Descriptors) {\n return `illustrations/assets/${illustration}-${size}@${descriptor}.webp`;\n}\n\nexport default Illustration;\n","/**\n *\n * DON'T MODIFY THIS FILE IT'S AUTO GENERATED\n * See: `scripts/generate-i10s-metadata.mjs`\n *\n */\n\nexport enum Assets {\n BELL = 'bell',\n BRIEFCASE = 'briefcase',\n CALENDAR = 'calendar',\n CHECK_MARK = 'check-mark',\n CLOSED_WINDOW = 'closed-window',\n COIN_PILE = 'coin-pile',\n CONFETTI = 'confetti',\n CONSTRUCTION_FENCE = 'construction-fence',\n CONVERT = 'convert',\n COOKIE = 'cookie',\n DOCUMENTS = 'documents',\n DOOR = 'door',\n ELECTRIC_PLUG = 'electric-plug',\n EMAIL = 'email',\n EXCLAMATION_MARK = 'exclamation-mark',\n FLAG = 'flag',\n FLOWER = 'flower',\n GEAR = 'gear',\n GLOBE = 'globe',\n GRAPH = 'graph',\n HEART = 'heart',\n HOUSE = 'house',\n ID_CARD = 'id-card',\n INFINITE = 'infinite',\n INVITE_LETTER = 'invite-letter',\n JARS = 'jars',\n KEY = 'key',\n LIGHT_BULB = 'light-bulb',\n LOCK = 'lock',\n MAGNIFYING_GLASS = 'magnifying-glass',\n MAP = 'map',\n MEGAPHONE = 'megaphone',\n MULTI_CURRENCY = 'multi-currency',\n ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',\n PALM_TREE = 'palm-tree',\n PHONES = 'phones',\n PIE_CHART = 'pie-chart',\n PLANE = 'plane',\n PUZZLE_PIECES = 'puzzle-pieces',\n QUESTION_MARK = 'question-mark',\n RECEIVE = 'receive',\n REMINDER_LETTER = 'reminder-letter',\n SAND_TIMER = 'sand-timer',\n SHOPPING_BAG = 'shopping-bag',\n SKIP_AUTHENTICATION = 'skip-authentication',\n SPEECH_BUBBLE = 'speech-bubble',\n TOOL = 'tool',\n TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',\n WALLET = 'wallet',\n}\n\nexport type IllustrationNames =\n | 'bell'\n | 'briefcase'\n | 'calendar'\n | 'check-mark'\n | 'closed-window'\n | 'coin-pile'\n | 'confetti'\n | 'construction-fence'\n | 'convert'\n | 'cookie'\n | 'documents'\n | 'door'\n | 'electric-plug'\n | 'email'\n | 'exclamation-mark'\n | 'flag'\n | 'flower'\n | 'gear'\n | 'globe'\n | 'graph'\n | 'heart'\n | 'house'\n | 'id-card'\n | 'infinite'\n | 'invite-letter'\n | 'jars'\n | 'key'\n | 'light-bulb'\n | 'lock'\n | 'magnifying-glass'\n | 'map'\n | 'megaphone'\n | 'multi-currency'\n | 'one-invite-letter-opened'\n | 'palm-tree'\n | 'phones'\n | 'pie-chart'\n | 'plane'\n | 'puzzle-pieces'\n | 'question-mark'\n | 'receive'\n | 'reminder-letter'\n | 'sand-timer'\n | 'shopping-bag'\n | 'skip-authentication'\n | 'speech-bubble'\n | 'tool'\n | 'two-invite-letters-opened'\n | 'wallet';\n"],"names":["Sizes","Illustration","Assets","forwardRef","ref","id","name","alt","loading","_ref$loading","SMALL","MEDIUM","LARGE","React","createElement","className","classNames","_ref","media","srcSet","defineSrc","src","illustration","size","descriptor"],"mappings":"2HAAYA,0CAIXA,QAAAA,WAAAA,GAJWA,EAAAA,gBAAAA,QAAAA,MAIX,CAAA,IAHC,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QCYIC,ICRMC,EDQMD,EAAGE,EAAAA,WACnB,SAAwDC,EAAAA,GAArDC,IAAIC,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,QAAKC,QAAAA,OAAU,IAAAC,EAAA,SAClBC,EAAyBV,QAAAA,MAAzBU,MAAOC,EAAkBX,QAAKA,MAAvBW,OAAQC,EAAUZ,QAAKA,MAAfY,MACvB,sBACEC,EAAAA,QAAAC,cAAA,UAAA,CACET,KAJHA,GAKGU,UAAWC,EAAU,QAAC,mBAAkB,oBAAsBV,EALvBW,EAATF,yBAQ9BF,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUd,EAAMI,EAAO,WAAUU,EAAUd,EAAMI,EAAO,2BAIrEG,EAAAA,gCACEK,MAAM,qBACNC,OAAWC,EAAUd,EAAMK,EAAQ,MAAK,KAAKS,EAAUd,EAAMK,EAAQ,MAAW,qBAGlFE,EAAAA,QACEC,cAAA,MAAA,CAAAV,IAAKA,EACLiB,IAAKD,EAAUd,EAAMM,EAAO,MAC5BL,IAAKA,EACLC,QAASA,EACTW,OAAWC,EAAUd,EAAMM,EAAO,MAAK,SAGzC,IACN,GAGF,WAAmBU,EAAsBC,EAAgBC,GACvD,MAAA,wBAA+BF,EAAgBC,IAAAA,MAAQC,EAAU,OACnE,CCQCtB,QAAAA,YAAAA,GAlDWA,EAAAA,QAAMA,SAANA,eAkDX,CAAA,IAjDC,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,mBAAA,qBACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,IAAA,MACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,yBAAA,2BACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,QAAA,UACAA,EAAA,gBAAA,kBACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,0BAAA,4BACAA,EAAA,OAAA"}
@@ -0,0 +1,2 @@
1
+ import e from"classnames";import E,{forwardRef as t}from"react";var a;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(a||(a={}));const i=t(({id:t,name:i,alt:n,loading:l="lazy",className:c},o)=>{const{SMALL:s,MEDIUM:I,LARGE:L}=a;return i?/*#__PURE__*/E.createElement("picture",{id:t,className:e("wds-illustration",`wds-illustration-${i}`,c)},/*#__PURE__*/E.createElement("source",{media:"(max-width: 575px)",srcSet:`${r(i,s,"1x")}, ${r(i,s,"2x")} 2x`}),/*#__PURE__*/E.createElement("source",{media:"(max-width: 991px)",srcSet:`${r(i,I,"1x")}, ${r(i,I,"2x")} 2x`}),/*#__PURE__*/E.createElement("img",{ref:o,src:r(i,L,"1x"),alt:n,loading:l,srcSet:`${r(i,L,"2x")} 2x`})):null});function r(e,E,t){return`illustrations/assets/${e}-${E}@${t}.webp`}var n;!function(e){e.BELL="bell",e.BRIEFCASE="briefcase",e.CALENDAR="calendar",e.CHECK_MARK="check-mark",e.CLOSED_WINDOW="closed-window",e.COIN_PILE="coin-pile",e.CONFETTI="confetti",e.CONSTRUCTION_FENCE="construction-fence",e.CONVERT="convert",e.COOKIE="cookie",e.DOCUMENTS="documents",e.DOOR="door",e.ELECTRIC_PLUG="electric-plug",e.EMAIL="email",e.EXCLAMATION_MARK="exclamation-mark",e.FLAG="flag",e.FLOWER="flower",e.GEAR="gear",e.GLOBE="globe",e.GRAPH="graph",e.HEART="heart",e.HOUSE="house",e.ID_CARD="id-card",e.INFINITE="infinite",e.INVITE_LETTER="invite-letter",e.JARS="jars",e.KEY="key",e.LIGHT_BULB="light-bulb",e.LOCK="lock",e.MAGNIFYING_GLASS="magnifying-glass",e.MAP="map",e.MEGAPHONE="megaphone",e.MULTI_CURRENCY="multi-currency",e.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",e.PALM_TREE="palm-tree",e.PHONES="phones",e.PIE_CHART="pie-chart",e.PLANE="plane",e.PUZZLE_PIECES="puzzle-pieces",e.QUESTION_MARK="question-mark",e.RECEIVE="receive",e.REMINDER_LETTER="reminder-letter",e.SAND_TIMER="sand-timer",e.SHOPPING_BAG="shopping-bag",e.SKIP_AUTHENTICATION="skip-authentication",e.SPEECH_BUBBLE="speech-bubble",e.TOOL="tool",e.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",e.WALLET="wallet"}(n||(n={}));export{n as Assets,i as Illustration,a as Sizes};
2
+ //# sourceMappingURL=index.modern.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.modern.mjs","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\nexport type SizeType = 'large' | 'medium' | 'small';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { SizeType, Descriptors, Sizes } from './../common';\nimport { IllustrationNames } from './metadata';\n\n// Picking only a few props from Image element to avoid breaking change\n// as in future underlying element might change\ntype ImgProps = Pick<ImgHTMLAttributes<HTMLImageElement>, 'id' | 'className' | 'loading'>;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {/* Mobile screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n\n <img\n ref={ref}\n src={defineSrc(name, LARGE, '1x')}\n alt={alt}\n loading={loading}\n srcSet={`${defineSrc(name, LARGE, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: SizeType, descriptor: Descriptors) {\n return `illustrations/assets/${illustration}-${size}@${descriptor}.webp`;\n}\n\nexport default Illustration;\n","/**\n *\n * DON'T MODIFY THIS FILE IT'S AUTO GENERATED\n * See: `scripts/generate-i10s-metadata.mjs`\n *\n */\n\nexport enum Assets {\n BELL = 'bell',\n BRIEFCASE = 'briefcase',\n CALENDAR = 'calendar',\n CHECK_MARK = 'check-mark',\n CLOSED_WINDOW = 'closed-window',\n COIN_PILE = 'coin-pile',\n CONFETTI = 'confetti',\n CONSTRUCTION_FENCE = 'construction-fence',\n CONVERT = 'convert',\n COOKIE = 'cookie',\n DOCUMENTS = 'documents',\n DOOR = 'door',\n ELECTRIC_PLUG = 'electric-plug',\n EMAIL = 'email',\n EXCLAMATION_MARK = 'exclamation-mark',\n FLAG = 'flag',\n FLOWER = 'flower',\n GEAR = 'gear',\n GLOBE = 'globe',\n GRAPH = 'graph',\n HEART = 'heart',\n HOUSE = 'house',\n ID_CARD = 'id-card',\n INFINITE = 'infinite',\n INVITE_LETTER = 'invite-letter',\n JARS = 'jars',\n KEY = 'key',\n LIGHT_BULB = 'light-bulb',\n LOCK = 'lock',\n MAGNIFYING_GLASS = 'magnifying-glass',\n MAP = 'map',\n MEGAPHONE = 'megaphone',\n MULTI_CURRENCY = 'multi-currency',\n ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',\n PALM_TREE = 'palm-tree',\n PHONES = 'phones',\n PIE_CHART = 'pie-chart',\n PLANE = 'plane',\n PUZZLE_PIECES = 'puzzle-pieces',\n QUESTION_MARK = 'question-mark',\n RECEIVE = 'receive',\n REMINDER_LETTER = 'reminder-letter',\n SAND_TIMER = 'sand-timer',\n SHOPPING_BAG = 'shopping-bag',\n SKIP_AUTHENTICATION = 'skip-authentication',\n SPEECH_BUBBLE = 'speech-bubble',\n TOOL = 'tool',\n TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',\n WALLET = 'wallet',\n}\n\nexport type IllustrationNames =\n | 'bell'\n | 'briefcase'\n | 'calendar'\n | 'check-mark'\n | 'closed-window'\n | 'coin-pile'\n | 'confetti'\n | 'construction-fence'\n | 'convert'\n | 'cookie'\n | 'documents'\n | 'door'\n | 'electric-plug'\n | 'email'\n | 'exclamation-mark'\n | 'flag'\n | 'flower'\n | 'gear'\n | 'globe'\n | 'graph'\n | 'heart'\n | 'house'\n | 'id-card'\n | 'infinite'\n | 'invite-letter'\n | 'jars'\n | 'key'\n | 'light-bulb'\n | 'lock'\n | 'magnifying-glass'\n | 'map'\n | 'megaphone'\n | 'multi-currency'\n | 'one-invite-letter-opened'\n | 'palm-tree'\n | 'phones'\n | 'pie-chart'\n | 'plane'\n | 'puzzle-pieces'\n | 'question-mark'\n | 'receive'\n | 'reminder-letter'\n | 'sand-timer'\n | 'shopping-bag'\n | 'skip-authentication'\n | 'speech-bubble'\n | 'tool'\n | 'two-invite-letters-opened'\n | 'wallet';\n"],"names":["Sizes","Illustration","forwardRef","id","name","alt","loading","className","ref","SMALL","MEDIUM","LARGE","React","createElement","classNames","media","srcSet","defineSrc","src","illustration","size","descriptor","Assets"],"mappings":"gEAAYA,IAIXA,GAJD,SAAYA,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,OACD,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICWKC,MAAYA,EAAGC,EACnB,EAAGC,KAAIC,OAAMC,MAAKC,QAAAA,EAAU,OAAQC,aAAoBC,KACtD,MAAMC,MAAEA,EAAKC,OAAEA,EAAMC,MAAEA,GAAUX,EACjC,sBACEY,EAAAC,cAAA,UAAA,CACEV,GAAIA,EACJI,UAAWO,EAAW,mBAAoB,oBAAoBV,IAAQG,iBAGtEK,EAAAC,cAAA,SAAA,CACEE,MAAM,qBACNC,OAAQ,GAAGC,EAAUb,EAAMK,EAAO,UAAUQ,EAAUb,EAAMK,EAAO,0BAIrEG,EAAAC,cAAA,SAAA,CACEE,MAAM,qBACNC,OAAQ,GAAGC,EAAUb,EAAMM,EAAQ,UAAUO,EAAUb,EAAMM,EAAQ,0BAGvEE,uBACEJ,IAAKA,EACLU,IAAKD,EAAUb,EAAMO,EAAO,MAC5BN,IAAKA,EACLC,QAASA,EACTU,UAAWC,EAAUb,EAAMO,EAAO,cAGpC,OAIR,SAAkBM,EAACE,EAAsBC,EAAgBC,GACvD,8BAA+BF,KAAgBC,KAAQC,QACzD,CC1CYC,IAkDXA,GAlDD,SAAYA,GACVA,EAAA,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,mBAAA,qBACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,IAAA,MACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,yBAAA,2BACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,QAAA,UACAA,EAAA,gBAAA,kBACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,0BAAA,4BACAA,EAAA,OAAA,QACD,CAlDD,CAAYA,IAAAA,EAkDX,CAAA"}
@@ -0,0 +1,2 @@
1
+ import e from"classnames";import E,{forwardRef as t}from"react";var i;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(i||(i={}));var a,r=t(function(t,a){var r=t.name,l=t.alt,o=t.loading,c=void 0===o?"lazy":o,s=i.SMALL,I=i.MEDIUM,L=i.LARGE;return r?/*#__PURE__*/E.createElement("picture",{id:t.id,className:e("wds-illustration","wds-illustration-"+r,t.className)},/*#__PURE__*/E.createElement("source",{media:"(max-width: 575px)",srcSet:n(r,s,"1x")+", "+n(r,s,"2x")+" 2x"}),/*#__PURE__*/E.createElement("source",{media:"(max-width: 991px)",srcSet:n(r,I,"1x")+", "+n(r,I,"2x")+" 2x"}),/*#__PURE__*/E.createElement("img",{ref:a,src:n(r,L,"1x"),alt:l,loading:c,srcSet:n(r,L,"2x")+" 2x"})):null});function n(e,E,t){return"illustrations/assets/"+e+"-"+E+"@"+t+".webp"}!function(e){e.BELL="bell",e.BRIEFCASE="briefcase",e.CALENDAR="calendar",e.CHECK_MARK="check-mark",e.CLOSED_WINDOW="closed-window",e.COIN_PILE="coin-pile",e.CONFETTI="confetti",e.CONSTRUCTION_FENCE="construction-fence",e.CONVERT="convert",e.COOKIE="cookie",e.DOCUMENTS="documents",e.DOOR="door",e.ELECTRIC_PLUG="electric-plug",e.EMAIL="email",e.EXCLAMATION_MARK="exclamation-mark",e.FLAG="flag",e.FLOWER="flower",e.GEAR="gear",e.GLOBE="globe",e.GRAPH="graph",e.HEART="heart",e.HOUSE="house",e.ID_CARD="id-card",e.INFINITE="infinite",e.INVITE_LETTER="invite-letter",e.JARS="jars",e.KEY="key",e.LIGHT_BULB="light-bulb",e.LOCK="lock",e.MAGNIFYING_GLASS="magnifying-glass",e.MAP="map",e.MEGAPHONE="megaphone",e.MULTI_CURRENCY="multi-currency",e.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",e.PALM_TREE="palm-tree",e.PHONES="phones",e.PIE_CHART="pie-chart",e.PLANE="plane",e.PUZZLE_PIECES="puzzle-pieces",e.QUESTION_MARK="question-mark",e.RECEIVE="receive",e.REMINDER_LETTER="reminder-letter",e.SAND_TIMER="sand-timer",e.SHOPPING_BAG="shopping-bag",e.SKIP_AUTHENTICATION="skip-authentication",e.SPEECH_BUBBLE="speech-bubble",e.TOOL="tool",e.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",e.WALLET="wallet"}(a||(a={}));export{a as Assets,r as Illustration,i as Sizes};
2
+ //# sourceMappingURL=index.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.module.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\nexport type SizeType = 'large' | 'medium' | 'small';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { SizeType, Descriptors, Sizes } from './../common';\nimport { IllustrationNames } from './metadata';\n\n// Picking only a few props from Image element to avoid breaking change\n// as in future underlying element might change\ntype ImgProps = Pick<ImgHTMLAttributes<HTMLImageElement>, 'id' | 'className' | 'loading'>;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {/* Mobile screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n\n <img\n ref={ref}\n src={defineSrc(name, LARGE, '1x')}\n alt={alt}\n loading={loading}\n srcSet={`${defineSrc(name, LARGE, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: SizeType, descriptor: Descriptors) {\n return `illustrations/assets/${illustration}-${size}@${descriptor}.webp`;\n}\n\nexport default Illustration;\n","/**\n *\n * DON'T MODIFY THIS FILE IT'S AUTO GENERATED\n * See: `scripts/generate-i10s-metadata.mjs`\n *\n */\n\nexport enum Assets {\n BELL = 'bell',\n BRIEFCASE = 'briefcase',\n CALENDAR = 'calendar',\n CHECK_MARK = 'check-mark',\n CLOSED_WINDOW = 'closed-window',\n COIN_PILE = 'coin-pile',\n CONFETTI = 'confetti',\n CONSTRUCTION_FENCE = 'construction-fence',\n CONVERT = 'convert',\n COOKIE = 'cookie',\n DOCUMENTS = 'documents',\n DOOR = 'door',\n ELECTRIC_PLUG = 'electric-plug',\n EMAIL = 'email',\n EXCLAMATION_MARK = 'exclamation-mark',\n FLAG = 'flag',\n FLOWER = 'flower',\n GEAR = 'gear',\n GLOBE = 'globe',\n GRAPH = 'graph',\n HEART = 'heart',\n HOUSE = 'house',\n ID_CARD = 'id-card',\n INFINITE = 'infinite',\n INVITE_LETTER = 'invite-letter',\n JARS = 'jars',\n KEY = 'key',\n LIGHT_BULB = 'light-bulb',\n LOCK = 'lock',\n MAGNIFYING_GLASS = 'magnifying-glass',\n MAP = 'map',\n MEGAPHONE = 'megaphone',\n MULTI_CURRENCY = 'multi-currency',\n ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',\n PALM_TREE = 'palm-tree',\n PHONES = 'phones',\n PIE_CHART = 'pie-chart',\n PLANE = 'plane',\n PUZZLE_PIECES = 'puzzle-pieces',\n QUESTION_MARK = 'question-mark',\n RECEIVE = 'receive',\n REMINDER_LETTER = 'reminder-letter',\n SAND_TIMER = 'sand-timer',\n SHOPPING_BAG = 'shopping-bag',\n SKIP_AUTHENTICATION = 'skip-authentication',\n SPEECH_BUBBLE = 'speech-bubble',\n TOOL = 'tool',\n TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',\n WALLET = 'wallet',\n}\n\nexport type IllustrationNames =\n | 'bell'\n | 'briefcase'\n | 'calendar'\n | 'check-mark'\n | 'closed-window'\n | 'coin-pile'\n | 'confetti'\n | 'construction-fence'\n | 'convert'\n | 'cookie'\n | 'documents'\n | 'door'\n | 'electric-plug'\n | 'email'\n | 'exclamation-mark'\n | 'flag'\n | 'flower'\n | 'gear'\n | 'globe'\n | 'graph'\n | 'heart'\n | 'house'\n | 'id-card'\n | 'infinite'\n | 'invite-letter'\n | 'jars'\n | 'key'\n | 'light-bulb'\n | 'lock'\n | 'magnifying-glass'\n | 'map'\n | 'megaphone'\n | 'multi-currency'\n | 'one-invite-letter-opened'\n | 'palm-tree'\n | 'phones'\n | 'pie-chart'\n | 'plane'\n | 'puzzle-pieces'\n | 'question-mark'\n | 'receive'\n | 'reminder-letter'\n | 'sand-timer'\n | 'shopping-bag'\n | 'skip-authentication'\n | 'speech-bubble'\n | 'tool'\n | 'two-invite-letters-opened'\n | 'wallet';\n"],"names":["Sizes","Illustration","Assets","forwardRef","ref","id","name","alt","loading","_ref$loading","SMALL","MEDIUM","LARGE","React","createElement","className","classNames","_ref","media","srcSet","defineSrc","src","illustration","size","descriptor"],"mappings":"gEAAYA,IAIXA,GAJD,SAAYA,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,OACD,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICWKC,IC0CLC,ED1CiBD,EAAGE,EACnB,SAAwDC,EAAAA,GAArDC,IAAIC,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,QAAKC,QAAAA,OAAU,IAAAC,EAAA,SAClBC,EAAyBV,EAAzBU,MAAOC,EAAkBX,EAAlBW,OAAQC,EAAUZ,EAAVY,MACvB,sBACEC,EAAAC,cAAA,UAAA,CACET,KAJHA,GAKGU,UAAWC,EAAW,mBAAkB,oBAAsBV,EALvBW,EAATF,yBAQ9BF,EACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUd,EAAMI,EAAO,WAAUU,EAAUd,EAAMI,EAAO,2BAIrEG,0BACEK,MAAM,qBACNC,OAAWC,EAAUd,EAAMK,EAAQ,MAAK,KAAKS,EAAUd,EAAMK,EAAQ,MAAW,qBAGlFE,EACEC,cAAA,MAAA,CAAAV,IAAKA,EACLiB,IAAKD,EAAUd,EAAMM,EAAO,MAC5BL,IAAKA,EACLC,QAASA,EACTW,OAAWC,EAAUd,EAAMM,EAAO,MAAK,SAGzC,IACN,GAGF,WAAmBU,EAAsBC,EAAgBC,GACvD,MAAA,wBAA+BF,EAAgBC,IAAAA,MAAQC,EAAU,OACnE,EC1CA,SAAYtB,GACVA,EAAA,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,mBAAA,qBACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,IAAA,MACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,yBAAA,2BACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,QAAA,UACAA,EAAA,gBAAA,kBACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,0BAAA,4BACAA,EAAA,OAAA,QACD,CAlDD,CAAYA,IAAAA,EAkDX,CAAA"}
@@ -0,0 +1,2 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("classnames"),require("react")):"function"==typeof define&&define.amd?define(["exports","classnames","react"],t):t((e||self).art={},e.classnames,e.react)}(this,function(e,t,i){function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E,l=/*#__PURE__*/a(t),n=/*#__PURE__*/a(i);e.Sizes=void 0,(E=e.Sizes||(e.Sizes={})).SMALL="small",E.MEDIUM="medium",E.LARGE="large";var s,r=i.forwardRef(function(t,i){var a=t.name,E=t.alt,s=t.loading,r=void 0===s?"lazy":s,c=e.Sizes.SMALL,d=e.Sizes.MEDIUM,u=e.Sizes.LARGE;return a?/*#__PURE__*/n.default.createElement("picture",{id:t.id,className:l.default("wds-illustration","wds-illustration-"+a,t.className)},/*#__PURE__*/n.default.createElement("source",{media:"(max-width: 575px)",srcSet:o(a,c,"1x")+", "+o(a,c,"2x")+" 2x"}),/*#__PURE__*/n.default.createElement("source",{media:"(max-width: 991px)",srcSet:o(a,d,"1x")+", "+o(a,d,"2x")+" 2x"}),/*#__PURE__*/n.default.createElement("img",{ref:i,src:o(a,u,"1x"),alt:E,loading:r,srcSet:o(a,u,"2x")+" 2x"})):null});function o(e,t,i){return"illustrations/assets/"+e+"-"+t+"@"+i+".webp"}e.Assets=void 0,(s=e.Assets||(e.Assets={})).BELL="bell",s.BRIEFCASE="briefcase",s.CALENDAR="calendar",s.CHECK_MARK="check-mark",s.CLOSED_WINDOW="closed-window",s.COIN_PILE="coin-pile",s.CONFETTI="confetti",s.CONSTRUCTION_FENCE="construction-fence",s.CONVERT="convert",s.COOKIE="cookie",s.DOCUMENTS="documents",s.DOOR="door",s.ELECTRIC_PLUG="electric-plug",s.EMAIL="email",s.EXCLAMATION_MARK="exclamation-mark",s.FLAG="flag",s.FLOWER="flower",s.GEAR="gear",s.GLOBE="globe",s.GRAPH="graph",s.HEART="heart",s.HOUSE="house",s.ID_CARD="id-card",s.INFINITE="infinite",s.INVITE_LETTER="invite-letter",s.JARS="jars",s.KEY="key",s.LIGHT_BULB="light-bulb",s.LOCK="lock",s.MAGNIFYING_GLASS="magnifying-glass",s.MAP="map",s.MEGAPHONE="megaphone",s.MULTI_CURRENCY="multi-currency",s.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",s.PALM_TREE="palm-tree",s.PHONES="phones",s.PIE_CHART="pie-chart",s.PLANE="plane",s.PUZZLE_PIECES="puzzle-pieces",s.QUESTION_MARK="question-mark",s.RECEIVE="receive",s.REMINDER_LETTER="reminder-letter",s.SAND_TIMER="sand-timer",s.SHOPPING_BAG="shopping-bag",s.SKIP_AUTHENTICATION="skip-authentication",s.SPEECH_BUBBLE="speech-bubble",s.TOOL="tool",s.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",s.WALLET="wallet",e.Illustration=r});
2
+ //# sourceMappingURL=index.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.umd.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\nexport type SizeType = 'large' | 'medium' | 'small';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { SizeType, Descriptors, Sizes } from './../common';\nimport { IllustrationNames } from './metadata';\n\n// Picking only a few props from Image element to avoid breaking change\n// as in future underlying element might change\ntype ImgProps = Pick<ImgHTMLAttributes<HTMLImageElement>, 'id' | 'className' | 'loading'>;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {/* Mobile screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n\n <img\n ref={ref}\n src={defineSrc(name, LARGE, '1x')}\n alt={alt}\n loading={loading}\n srcSet={`${defineSrc(name, LARGE, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: SizeType, descriptor: Descriptors) {\n return `illustrations/assets/${illustration}-${size}@${descriptor}.webp`;\n}\n\nexport default Illustration;\n","/**\n *\n * DON'T MODIFY THIS FILE IT'S AUTO GENERATED\n * See: `scripts/generate-i10s-metadata.mjs`\n *\n */\n\nexport enum Assets {\n BELL = 'bell',\n BRIEFCASE = 'briefcase',\n CALENDAR = 'calendar',\n CHECK_MARK = 'check-mark',\n CLOSED_WINDOW = 'closed-window',\n COIN_PILE = 'coin-pile',\n CONFETTI = 'confetti',\n CONSTRUCTION_FENCE = 'construction-fence',\n CONVERT = 'convert',\n COOKIE = 'cookie',\n DOCUMENTS = 'documents',\n DOOR = 'door',\n ELECTRIC_PLUG = 'electric-plug',\n EMAIL = 'email',\n EXCLAMATION_MARK = 'exclamation-mark',\n FLAG = 'flag',\n FLOWER = 'flower',\n GEAR = 'gear',\n GLOBE = 'globe',\n GRAPH = 'graph',\n HEART = 'heart',\n HOUSE = 'house',\n ID_CARD = 'id-card',\n INFINITE = 'infinite',\n INVITE_LETTER = 'invite-letter',\n JARS = 'jars',\n KEY = 'key',\n LIGHT_BULB = 'light-bulb',\n LOCK = 'lock',\n MAGNIFYING_GLASS = 'magnifying-glass',\n MAP = 'map',\n MEGAPHONE = 'megaphone',\n MULTI_CURRENCY = 'multi-currency',\n ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',\n PALM_TREE = 'palm-tree',\n PHONES = 'phones',\n PIE_CHART = 'pie-chart',\n PLANE = 'plane',\n PUZZLE_PIECES = 'puzzle-pieces',\n QUESTION_MARK = 'question-mark',\n RECEIVE = 'receive',\n REMINDER_LETTER = 'reminder-letter',\n SAND_TIMER = 'sand-timer',\n SHOPPING_BAG = 'shopping-bag',\n SKIP_AUTHENTICATION = 'skip-authentication',\n SPEECH_BUBBLE = 'speech-bubble',\n TOOL = 'tool',\n TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',\n WALLET = 'wallet',\n}\n\nexport type IllustrationNames =\n | 'bell'\n | 'briefcase'\n | 'calendar'\n | 'check-mark'\n | 'closed-window'\n | 'coin-pile'\n | 'confetti'\n | 'construction-fence'\n | 'convert'\n | 'cookie'\n | 'documents'\n | 'door'\n | 'electric-plug'\n | 'email'\n | 'exclamation-mark'\n | 'flag'\n | 'flower'\n | 'gear'\n | 'globe'\n | 'graph'\n | 'heart'\n | 'house'\n | 'id-card'\n | 'infinite'\n | 'invite-letter'\n | 'jars'\n | 'key'\n | 'light-bulb'\n | 'lock'\n | 'magnifying-glass'\n | 'map'\n | 'megaphone'\n | 'multi-currency'\n | 'one-invite-letter-opened'\n | 'palm-tree'\n | 'phones'\n | 'pie-chart'\n | 'plane'\n | 'puzzle-pieces'\n | 'question-mark'\n | 'receive'\n | 'reminder-letter'\n | 'sand-timer'\n | 'shopping-bag'\n | 'skip-authentication'\n | 'speech-bubble'\n | 'tool'\n | 'two-invite-letters-opened'\n | 'wallet';\n"],"names":["Sizes","Assets","Illustration","forwardRef","ref","id","name","alt","loading","_ref$loading","SMALL","MEDIUM","LARGE","React","createElement","className","classNames","_ref","media","srcSet","defineSrc","src","illustration","size","descriptor"],"mappings":"8XAAYA,0CAIXA,EAAAA,WAAAA,GAJWA,EAAAA,UAAAA,EAAAA,MAIX,CAAA,IAHC,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QCYgB,ICRNC,EDQMC,EAAGC,EAAAA,WACnB,SAAwDC,EAAAA,GAArDC,IAAIC,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,QAAKC,QAAAA,OAAU,IAAAC,EAAA,SAClBC,EAAyBV,EAAAA,MAAzBU,MAAOC,EAAkBX,EAAKA,MAAvBW,OAAQC,EAAUZ,EAAKA,MAAfY,MACvB,sBACEC,EAAAA,QAAAC,cAAA,UAAA,CACET,KAJHA,GAKGU,UAAWC,EAAU,QAAC,mBAAkB,oBAAsBV,EALvBW,EAATF,yBAQ9BF,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUd,EAAMI,EAAO,WAAUU,EAAUd,EAAMI,EAAO,2BAIrEG,EAAAA,gCACEK,MAAM,qBACNC,OAAWC,EAAUd,EAAMK,EAAQ,MAAK,KAAKS,EAAUd,EAAMK,EAAQ,MAAW,qBAGlFE,EAAAA,QACEC,cAAA,MAAA,CAAAV,IAAKA,EACLiB,IAAKD,EAAUd,EAAMM,EAAO,MAC5BL,IAAKA,EACLC,QAASA,EACTW,OAAWC,EAAUd,EAAMM,EAAO,MAAK,SAGzC,IACN,GAGF,WAAmBU,EAAsBC,EAAgBC,GACvD,MAAA,wBAA+BF,EAAgBC,IAAAA,MAAQC,EAAU,OACnE,CCQCvB,EAAAA,YAAAA,GAlDWA,EAAAA,EAAMA,SAANA,SAkDX,CAAA,IAjDC,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,mBAAA,qBACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,IAAA,MACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,yBAAA,2BACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,QAAA,UACAA,EAAA,gBAAA,kBACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,KAAA,OACAA,EAAA,0BAAA,4BACAA,EAAA,OAAA"}
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@wise/art",
3
+ "version": "0.0.1",
4
+ "license": "MIT",
5
+ "description": "React library for art elements in UI",
6
+ "homepage": "https://github.com/transferwise/web-art#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/transferwise/web-art.git"
10
+ },
11
+ "source": "src/index.ts",
12
+ "main": "dist/index.js",
13
+ "module": "./dist/index.module.js",
14
+ "unpkg": "./dist/index.umd.js",
15
+ "types": "dist/index.d.ts",
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "setup": "yarn && yarn build",
21
+ "load-i10s": "cpx 'node_modules/wise-atoms/illustrations/**/*.png' temp",
22
+ "convert-i10s-png-to-webp": "rm -rf src/illustrations/assets && node ./scripts/convert-png-to-webp.mjs",
23
+ "generate-i10s-metadata": "node ./scripts/generate-i10s-metadata.mjs && eslint 'src/illustrations/metadata.ts' --fix",
24
+ "bundle": "rm -rf dist && microbundle --jsxFragment React.Fragment --jsx React.createElement && cpx src/illustrations/Illustration.css dist/",
25
+ "copy-i10s": "cpx 'src/illustrations/assets/*' dist/illustrations/assets",
26
+ "cleanup": "rm -rf temp",
27
+ "build": "yarn load-i10s && yarn convert-i10s-png-to-webp && yarn generate-i10s-metadata && yarn bundle && yarn copy-i10s && yarn cleanup",
28
+ "start": "start-storybook -p 3001",
29
+ "dev": "yarn start",
30
+ "lint-fix": "eslint 'src/**/*.{js,ts,tsx}' 'scripts/*.{mjs,js,ts,tsx}' --fix"
31
+ },
32
+ "devDependencies": {
33
+ "wise-atoms": "git+ssh://git@github.com:transferwise/wise-atoms.git#e16d86e7d741bd56e4a17ab9ec39d6de479eb0f9",
34
+ "imagemin": "^8.0.1",
35
+ "imagemin-webp": "^7.0.0",
36
+ "@types/imagemin": "^8.0.0",
37
+ "@types/imagemin-webp": "^7.0.0",
38
+ "@types/jest": "^28.1.6",
39
+ "@types/react": "^18.0.15",
40
+ "@types/react-dom": "^18.0.6",
41
+ "react": "^18.2.0",
42
+ "react-dom": "^18.2.0",
43
+ "@babel/preset-env": "^7.18.9",
44
+ "@babel/preset-react": "^7.18.6",
45
+ "@babel/preset-typescript": "^7.18.6",
46
+ "@transferwise/eslint-config": "^8.0.0",
47
+ "classnames": "^2.3.1",
48
+ "eslint": "^8.21.0",
49
+ "jest": "^28.1.3",
50
+ "jest-environment-jsdom": "^28.1.3",
51
+ "prettier": "^2.7.1",
52
+ "release-to-github-with-changelog": "^1.2.4",
53
+ "ts-node": "10.9.1",
54
+ "typescript": "^4.7.4",
55
+ "@tsconfig/node16": "^1.0.3",
56
+ "cpx": "^1.5.0",
57
+ "glob": "^8.0.3",
58
+ "@types/glob": "^8.0.0",
59
+ "@storybook/addon-essentials": "^6.5.13",
60
+ "@storybook/react": "^6.5.13",
61
+ "microbundle": "^0.15.1"
62
+ },
63
+ "peerDependencies": {
64
+ "react": "^18",
65
+ "react-dom": "^18",
66
+ "classnames": "^2.3"
67
+ },
68
+ "prettier": "@transferwise/eslint-config/.prettierrc.js"
69
+ }