@wise/art 0.0.3 → 0.0.5

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 (454) hide show
  1. package/README.md +26 -1
  2. package/dist/illustrations/Illustration.stories.d.ts +1 -1
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.modern.mjs +1 -1
  7. package/dist/index.modern.mjs.map +1 -1
  8. package/dist/index.module.js +1 -1
  9. package/dist/index.module.js.map +1 -1
  10. package/dist/index.umd.js +1 -1
  11. package/dist/index.umd.js.map +1 -1
  12. package/package.json +4 -4
  13. package/dist/Temp.d.ts +0 -3
  14. package/dist/illustrations/assets/bell-large@1x.webp +0 -0
  15. package/dist/illustrations/assets/bell-large@2x.webp +0 -0
  16. package/dist/illustrations/assets/bell-medium@1x.webp +0 -0
  17. package/dist/illustrations/assets/bell-medium@2x.webp +0 -0
  18. package/dist/illustrations/assets/bell-small@1.5x.webp +0 -0
  19. package/dist/illustrations/assets/bell-small@1x.webp +0 -0
  20. package/dist/illustrations/assets/bell-small@2x.webp +0 -0
  21. package/dist/illustrations/assets/bell-small@3x.webp +0 -0
  22. package/dist/illustrations/assets/bell-small@4x.webp +0 -0
  23. package/dist/illustrations/assets/briefcase-large@1x.webp +0 -0
  24. package/dist/illustrations/assets/briefcase-large@2x.webp +0 -0
  25. package/dist/illustrations/assets/briefcase-medium@1x.webp +0 -0
  26. package/dist/illustrations/assets/briefcase-medium@2x.webp +0 -0
  27. package/dist/illustrations/assets/briefcase-small@1.5x.webp +0 -0
  28. package/dist/illustrations/assets/briefcase-small@1x.webp +0 -0
  29. package/dist/illustrations/assets/briefcase-small@2x.webp +0 -0
  30. package/dist/illustrations/assets/briefcase-small@3x.webp +0 -0
  31. package/dist/illustrations/assets/briefcase-small@4x.webp +0 -0
  32. package/dist/illustrations/assets/calendar-large@1x.webp +0 -0
  33. package/dist/illustrations/assets/calendar-large@2x.webp +0 -0
  34. package/dist/illustrations/assets/calendar-medium@1x.webp +0 -0
  35. package/dist/illustrations/assets/calendar-medium@2x.webp +0 -0
  36. package/dist/illustrations/assets/calendar-small@1.5x.webp +0 -0
  37. package/dist/illustrations/assets/calendar-small@1x.webp +0 -0
  38. package/dist/illustrations/assets/calendar-small@2x.webp +0 -0
  39. package/dist/illustrations/assets/calendar-small@3x.webp +0 -0
  40. package/dist/illustrations/assets/calendar-small@4x.webp +0 -0
  41. package/dist/illustrations/assets/check-mark-large@1x.webp +0 -0
  42. package/dist/illustrations/assets/check-mark-large@2x.webp +0 -0
  43. package/dist/illustrations/assets/check-mark-medium@1x.webp +0 -0
  44. package/dist/illustrations/assets/check-mark-medium@2x.webp +0 -0
  45. package/dist/illustrations/assets/check-mark-small@1.5x.webp +0 -0
  46. package/dist/illustrations/assets/check-mark-small@1x.webp +0 -0
  47. package/dist/illustrations/assets/check-mark-small@2x.webp +0 -0
  48. package/dist/illustrations/assets/check-mark-small@3x.webp +0 -0
  49. package/dist/illustrations/assets/check-mark-small@4x.webp +0 -0
  50. package/dist/illustrations/assets/closed-window-large@1x.webp +0 -0
  51. package/dist/illustrations/assets/closed-window-large@2x.webp +0 -0
  52. package/dist/illustrations/assets/closed-window-medium@1x.webp +0 -0
  53. package/dist/illustrations/assets/closed-window-medium@2x.webp +0 -0
  54. package/dist/illustrations/assets/closed-window-small@1.5x.webp +0 -0
  55. package/dist/illustrations/assets/closed-window-small@1x.webp +0 -0
  56. package/dist/illustrations/assets/closed-window-small@2x.webp +0 -0
  57. package/dist/illustrations/assets/closed-window-small@3x.webp +0 -0
  58. package/dist/illustrations/assets/closed-window-small@4x.webp +0 -0
  59. package/dist/illustrations/assets/coin-pile-large@1x.webp +0 -0
  60. package/dist/illustrations/assets/coin-pile-large@2x.webp +0 -0
  61. package/dist/illustrations/assets/coin-pile-medium@1x.webp +0 -0
  62. package/dist/illustrations/assets/coin-pile-medium@2x.webp +0 -0
  63. package/dist/illustrations/assets/coin-pile-small@1.5x.webp +0 -0
  64. package/dist/illustrations/assets/coin-pile-small@1x.webp +0 -0
  65. package/dist/illustrations/assets/coin-pile-small@2x.webp +0 -0
  66. package/dist/illustrations/assets/coin-pile-small@3x.webp +0 -0
  67. package/dist/illustrations/assets/coin-pile-small@4x.webp +0 -0
  68. package/dist/illustrations/assets/confetti-large@1x.webp +0 -0
  69. package/dist/illustrations/assets/confetti-large@2x.webp +0 -0
  70. package/dist/illustrations/assets/confetti-medium@1x.webp +0 -0
  71. package/dist/illustrations/assets/confetti-medium@2x.webp +0 -0
  72. package/dist/illustrations/assets/confetti-small@1.5x.webp +0 -0
  73. package/dist/illustrations/assets/confetti-small@1x.webp +0 -0
  74. package/dist/illustrations/assets/confetti-small@2x.webp +0 -0
  75. package/dist/illustrations/assets/confetti-small@3x.webp +0 -0
  76. package/dist/illustrations/assets/confetti-small@4x.webp +0 -0
  77. package/dist/illustrations/assets/construction-fence-large@1x.webp +0 -0
  78. package/dist/illustrations/assets/construction-fence-large@2x.webp +0 -0
  79. package/dist/illustrations/assets/construction-fence-medium@1x.webp +0 -0
  80. package/dist/illustrations/assets/construction-fence-medium@2x.webp +0 -0
  81. package/dist/illustrations/assets/construction-fence-small@1.5x.webp +0 -0
  82. package/dist/illustrations/assets/construction-fence-small@1x.webp +0 -0
  83. package/dist/illustrations/assets/construction-fence-small@2x.webp +0 -0
  84. package/dist/illustrations/assets/construction-fence-small@3x.webp +0 -0
  85. package/dist/illustrations/assets/construction-fence-small@4x.webp +0 -0
  86. package/dist/illustrations/assets/convert-large@1x.webp +0 -0
  87. package/dist/illustrations/assets/convert-large@2x.webp +0 -0
  88. package/dist/illustrations/assets/convert-medium@1x.webp +0 -0
  89. package/dist/illustrations/assets/convert-medium@2x.webp +0 -0
  90. package/dist/illustrations/assets/convert-small@1.5x.webp +0 -0
  91. package/dist/illustrations/assets/convert-small@1x.webp +0 -0
  92. package/dist/illustrations/assets/convert-small@2x.webp +0 -0
  93. package/dist/illustrations/assets/convert-small@3x.webp +0 -0
  94. package/dist/illustrations/assets/convert-small@4x.webp +0 -0
  95. package/dist/illustrations/assets/cookie-large@1x.webp +0 -0
  96. package/dist/illustrations/assets/cookie-large@2x.webp +0 -0
  97. package/dist/illustrations/assets/cookie-medium@1x.webp +0 -0
  98. package/dist/illustrations/assets/cookie-medium@2x.webp +0 -0
  99. package/dist/illustrations/assets/cookie-small@1.5x.webp +0 -0
  100. package/dist/illustrations/assets/cookie-small@1x.webp +0 -0
  101. package/dist/illustrations/assets/cookie-small@2x.webp +0 -0
  102. package/dist/illustrations/assets/cookie-small@3x.webp +0 -0
  103. package/dist/illustrations/assets/cookie-small@4x.webp +0 -0
  104. package/dist/illustrations/assets/documents-large@1x.webp +0 -0
  105. package/dist/illustrations/assets/documents-large@2x.webp +0 -0
  106. package/dist/illustrations/assets/documents-medium@1x.webp +0 -0
  107. package/dist/illustrations/assets/documents-medium@2x.webp +0 -0
  108. package/dist/illustrations/assets/documents-small@1.5x.webp +0 -0
  109. package/dist/illustrations/assets/documents-small@1x.webp +0 -0
  110. package/dist/illustrations/assets/documents-small@2x.webp +0 -0
  111. package/dist/illustrations/assets/documents-small@3x.webp +0 -0
  112. package/dist/illustrations/assets/documents-small@4x.webp +0 -0
  113. package/dist/illustrations/assets/door-large@1x.webp +0 -0
  114. package/dist/illustrations/assets/door-large@2x.webp +0 -0
  115. package/dist/illustrations/assets/door-medium@1x.webp +0 -0
  116. package/dist/illustrations/assets/door-medium@2x.webp +0 -0
  117. package/dist/illustrations/assets/door-small@1.5x.webp +0 -0
  118. package/dist/illustrations/assets/door-small@1x.webp +0 -0
  119. package/dist/illustrations/assets/door-small@2x.webp +0 -0
  120. package/dist/illustrations/assets/door-small@3x.webp +0 -0
  121. package/dist/illustrations/assets/door-small@4x.webp +0 -0
  122. package/dist/illustrations/assets/electric-plug-large@1x.webp +0 -0
  123. package/dist/illustrations/assets/electric-plug-large@2x.webp +0 -0
  124. package/dist/illustrations/assets/electric-plug-medium@1x.webp +0 -0
  125. package/dist/illustrations/assets/electric-plug-medium@2x.webp +0 -0
  126. package/dist/illustrations/assets/electric-plug-small@1.5x.webp +0 -0
  127. package/dist/illustrations/assets/electric-plug-small@1x.webp +0 -0
  128. package/dist/illustrations/assets/electric-plug-small@2x.webp +0 -0
  129. package/dist/illustrations/assets/electric-plug-small@3x.webp +0 -0
  130. package/dist/illustrations/assets/electric-plug-small@4x.webp +0 -0
  131. package/dist/illustrations/assets/email-large@1x.webp +0 -0
  132. package/dist/illustrations/assets/email-large@2x.webp +0 -0
  133. package/dist/illustrations/assets/email-medium@1x.webp +0 -0
  134. package/dist/illustrations/assets/email-medium@2x.webp +0 -0
  135. package/dist/illustrations/assets/email-small@1.5x.webp +0 -0
  136. package/dist/illustrations/assets/email-small@1x.webp +0 -0
  137. package/dist/illustrations/assets/email-small@2x.webp +0 -0
  138. package/dist/illustrations/assets/email-small@3x.webp +0 -0
  139. package/dist/illustrations/assets/email-small@4x.webp +0 -0
  140. package/dist/illustrations/assets/exclamation-mark-large@1x.webp +0 -0
  141. package/dist/illustrations/assets/exclamation-mark-large@2x.webp +0 -0
  142. package/dist/illustrations/assets/exclamation-mark-medium@1x.webp +0 -0
  143. package/dist/illustrations/assets/exclamation-mark-medium@2x.webp +0 -0
  144. package/dist/illustrations/assets/exclamation-mark-small@1.5x.webp +0 -0
  145. package/dist/illustrations/assets/exclamation-mark-small@1x.webp +0 -0
  146. package/dist/illustrations/assets/exclamation-mark-small@2x.webp +0 -0
  147. package/dist/illustrations/assets/exclamation-mark-small@3x.webp +0 -0
  148. package/dist/illustrations/assets/exclamation-mark-small@4x.webp +0 -0
  149. package/dist/illustrations/assets/flag-large@1x.webp +0 -0
  150. package/dist/illustrations/assets/flag-large@2x.webp +0 -0
  151. package/dist/illustrations/assets/flag-medium@1x.webp +0 -0
  152. package/dist/illustrations/assets/flag-medium@2x.webp +0 -0
  153. package/dist/illustrations/assets/flag-small@1.5x.webp +0 -0
  154. package/dist/illustrations/assets/flag-small@1x.webp +0 -0
  155. package/dist/illustrations/assets/flag-small@2x.webp +0 -0
  156. package/dist/illustrations/assets/flag-small@3x.webp +0 -0
  157. package/dist/illustrations/assets/flag-small@4x.webp +0 -0
  158. package/dist/illustrations/assets/flower-large@1x.webp +0 -0
  159. package/dist/illustrations/assets/flower-large@2x.webp +0 -0
  160. package/dist/illustrations/assets/flower-medium@1x.webp +0 -0
  161. package/dist/illustrations/assets/flower-medium@2x.webp +0 -0
  162. package/dist/illustrations/assets/flower-small@1.5x.webp +0 -0
  163. package/dist/illustrations/assets/flower-small@1x.webp +0 -0
  164. package/dist/illustrations/assets/flower-small@2x.webp +0 -0
  165. package/dist/illustrations/assets/flower-small@3x.webp +0 -0
  166. package/dist/illustrations/assets/flower-small@4x.webp +0 -0
  167. package/dist/illustrations/assets/gear-large@1x.webp +0 -0
  168. package/dist/illustrations/assets/gear-large@2x.webp +0 -0
  169. package/dist/illustrations/assets/gear-medium@1x.webp +0 -0
  170. package/dist/illustrations/assets/gear-medium@2x.webp +0 -0
  171. package/dist/illustrations/assets/gear-small@1.5x.webp +0 -0
  172. package/dist/illustrations/assets/gear-small@1x.webp +0 -0
  173. package/dist/illustrations/assets/gear-small@2x.webp +0 -0
  174. package/dist/illustrations/assets/gear-small@3x.webp +0 -0
  175. package/dist/illustrations/assets/gear-small@4x.webp +0 -0
  176. package/dist/illustrations/assets/globe-large@1x.webp +0 -0
  177. package/dist/illustrations/assets/globe-large@2x.webp +0 -0
  178. package/dist/illustrations/assets/globe-medium@1x.webp +0 -0
  179. package/dist/illustrations/assets/globe-medium@2x.webp +0 -0
  180. package/dist/illustrations/assets/globe-small@1.5x.webp +0 -0
  181. package/dist/illustrations/assets/globe-small@1x.webp +0 -0
  182. package/dist/illustrations/assets/globe-small@2x.webp +0 -0
  183. package/dist/illustrations/assets/globe-small@3x.webp +0 -0
  184. package/dist/illustrations/assets/globe-small@4x.webp +0 -0
  185. package/dist/illustrations/assets/graph-large@1x.webp +0 -0
  186. package/dist/illustrations/assets/graph-large@2x.webp +0 -0
  187. package/dist/illustrations/assets/graph-medium@1x.webp +0 -0
  188. package/dist/illustrations/assets/graph-medium@2x.webp +0 -0
  189. package/dist/illustrations/assets/graph-small@1.5x.webp +0 -0
  190. package/dist/illustrations/assets/graph-small@1x.webp +0 -0
  191. package/dist/illustrations/assets/graph-small@2x.webp +0 -0
  192. package/dist/illustrations/assets/graph-small@3x.webp +0 -0
  193. package/dist/illustrations/assets/graph-small@4x.webp +0 -0
  194. package/dist/illustrations/assets/heart-large@1x.webp +0 -0
  195. package/dist/illustrations/assets/heart-large@2x.webp +0 -0
  196. package/dist/illustrations/assets/heart-medium@1x.webp +0 -0
  197. package/dist/illustrations/assets/heart-medium@2x.webp +0 -0
  198. package/dist/illustrations/assets/heart-small@1.5x.webp +0 -0
  199. package/dist/illustrations/assets/heart-small@1x.webp +0 -0
  200. package/dist/illustrations/assets/heart-small@2x.webp +0 -0
  201. package/dist/illustrations/assets/heart-small@3x.webp +0 -0
  202. package/dist/illustrations/assets/heart-small@4x.webp +0 -0
  203. package/dist/illustrations/assets/house-large@1x.webp +0 -0
  204. package/dist/illustrations/assets/house-large@2x.webp +0 -0
  205. package/dist/illustrations/assets/house-medium@1x.webp +0 -0
  206. package/dist/illustrations/assets/house-medium@2x.webp +0 -0
  207. package/dist/illustrations/assets/house-small@1.5x.webp +0 -0
  208. package/dist/illustrations/assets/house-small@1x.webp +0 -0
  209. package/dist/illustrations/assets/house-small@2x.webp +0 -0
  210. package/dist/illustrations/assets/house-small@3x.webp +0 -0
  211. package/dist/illustrations/assets/house-small@4x.webp +0 -0
  212. package/dist/illustrations/assets/id-card-large@1x.webp +0 -0
  213. package/dist/illustrations/assets/id-card-large@2x.webp +0 -0
  214. package/dist/illustrations/assets/id-card-medium@1x.webp +0 -0
  215. package/dist/illustrations/assets/id-card-medium@2x.webp +0 -0
  216. package/dist/illustrations/assets/id-card-small@1.5x.webp +0 -0
  217. package/dist/illustrations/assets/id-card-small@1x.webp +0 -0
  218. package/dist/illustrations/assets/id-card-small@2x.webp +0 -0
  219. package/dist/illustrations/assets/id-card-small@3x.webp +0 -0
  220. package/dist/illustrations/assets/id-card-small@4x.webp +0 -0
  221. package/dist/illustrations/assets/infinite-large@1x.webp +0 -0
  222. package/dist/illustrations/assets/infinite-large@2x.webp +0 -0
  223. package/dist/illustrations/assets/infinite-medium@1x.webp +0 -0
  224. package/dist/illustrations/assets/infinite-medium@2x.webp +0 -0
  225. package/dist/illustrations/assets/infinite-small@1.5x.webp +0 -0
  226. package/dist/illustrations/assets/infinite-small@1x.webp +0 -0
  227. package/dist/illustrations/assets/infinite-small@2x.webp +0 -0
  228. package/dist/illustrations/assets/infinite-small@3x.webp +0 -0
  229. package/dist/illustrations/assets/infinite-small@4x.webp +0 -0
  230. package/dist/illustrations/assets/invite-letter-large@1x.webp +0 -0
  231. package/dist/illustrations/assets/invite-letter-large@2x.webp +0 -0
  232. package/dist/illustrations/assets/invite-letter-medium@1x.webp +0 -0
  233. package/dist/illustrations/assets/invite-letter-medium@2x.webp +0 -0
  234. package/dist/illustrations/assets/invite-letter-small@1.5x.webp +0 -0
  235. package/dist/illustrations/assets/invite-letter-small@1x.webp +0 -0
  236. package/dist/illustrations/assets/invite-letter-small@2x.webp +0 -0
  237. package/dist/illustrations/assets/invite-letter-small@3x.webp +0 -0
  238. package/dist/illustrations/assets/invite-letter-small@4x.webp +0 -0
  239. package/dist/illustrations/assets/jars-large@1x.webp +0 -0
  240. package/dist/illustrations/assets/jars-large@2x.webp +0 -0
  241. package/dist/illustrations/assets/jars-medium@1x.webp +0 -0
  242. package/dist/illustrations/assets/jars-medium@2x.webp +0 -0
  243. package/dist/illustrations/assets/jars-small@1.5x.webp +0 -0
  244. package/dist/illustrations/assets/jars-small@1x.webp +0 -0
  245. package/dist/illustrations/assets/jars-small@2x.webp +0 -0
  246. package/dist/illustrations/assets/jars-small@3x.webp +0 -0
  247. package/dist/illustrations/assets/jars-small@4x.webp +0 -0
  248. package/dist/illustrations/assets/key-large@1x.webp +0 -0
  249. package/dist/illustrations/assets/key-large@2x.webp +0 -0
  250. package/dist/illustrations/assets/key-medium@1x.webp +0 -0
  251. package/dist/illustrations/assets/key-medium@2x.webp +0 -0
  252. package/dist/illustrations/assets/key-small@1.5x.webp +0 -0
  253. package/dist/illustrations/assets/key-small@1x.webp +0 -0
  254. package/dist/illustrations/assets/key-small@2x.webp +0 -0
  255. package/dist/illustrations/assets/key-small@3x.webp +0 -0
  256. package/dist/illustrations/assets/key-small@4x.webp +0 -0
  257. package/dist/illustrations/assets/light-bulb-large@1x.webp +0 -0
  258. package/dist/illustrations/assets/light-bulb-large@2x.webp +0 -0
  259. package/dist/illustrations/assets/light-bulb-medium@1x.webp +0 -0
  260. package/dist/illustrations/assets/light-bulb-medium@2x.webp +0 -0
  261. package/dist/illustrations/assets/light-bulb-small@1.5x.webp +0 -0
  262. package/dist/illustrations/assets/light-bulb-small@1x.webp +0 -0
  263. package/dist/illustrations/assets/light-bulb-small@2x.webp +0 -0
  264. package/dist/illustrations/assets/light-bulb-small@3x.webp +0 -0
  265. package/dist/illustrations/assets/light-bulb-small@4x.webp +0 -0
  266. package/dist/illustrations/assets/lock-large@1x.webp +0 -0
  267. package/dist/illustrations/assets/lock-large@2x.webp +0 -0
  268. package/dist/illustrations/assets/lock-medium@1x.webp +0 -0
  269. package/dist/illustrations/assets/lock-medium@2x.webp +0 -0
  270. package/dist/illustrations/assets/lock-small@1.5x.webp +0 -0
  271. package/dist/illustrations/assets/lock-small@1x.webp +0 -0
  272. package/dist/illustrations/assets/lock-small@2x.webp +0 -0
  273. package/dist/illustrations/assets/lock-small@3x.webp +0 -0
  274. package/dist/illustrations/assets/lock-small@4x.webp +0 -0
  275. package/dist/illustrations/assets/magnifying-glass-large@1x.webp +0 -0
  276. package/dist/illustrations/assets/magnifying-glass-large@2x.webp +0 -0
  277. package/dist/illustrations/assets/magnifying-glass-medium@1x.webp +0 -0
  278. package/dist/illustrations/assets/magnifying-glass-medium@2x.webp +0 -0
  279. package/dist/illustrations/assets/magnifying-glass-small@1.5x.webp +0 -0
  280. package/dist/illustrations/assets/magnifying-glass-small@1x.webp +0 -0
  281. package/dist/illustrations/assets/magnifying-glass-small@2x.webp +0 -0
  282. package/dist/illustrations/assets/magnifying-glass-small@3x.webp +0 -0
  283. package/dist/illustrations/assets/magnifying-glass-small@4x.webp +0 -0
  284. package/dist/illustrations/assets/map-large@1x.webp +0 -0
  285. package/dist/illustrations/assets/map-large@2x.webp +0 -0
  286. package/dist/illustrations/assets/map-medium@1x.webp +0 -0
  287. package/dist/illustrations/assets/map-medium@2x.webp +0 -0
  288. package/dist/illustrations/assets/map-small@1.5x.webp +0 -0
  289. package/dist/illustrations/assets/map-small@1x.webp +0 -0
  290. package/dist/illustrations/assets/map-small@2x.webp +0 -0
  291. package/dist/illustrations/assets/map-small@3x.webp +0 -0
  292. package/dist/illustrations/assets/map-small@4x.webp +0 -0
  293. package/dist/illustrations/assets/megaphone-large@1x.webp +0 -0
  294. package/dist/illustrations/assets/megaphone-large@2x.webp +0 -0
  295. package/dist/illustrations/assets/megaphone-medium@1x.webp +0 -0
  296. package/dist/illustrations/assets/megaphone-medium@2x.webp +0 -0
  297. package/dist/illustrations/assets/megaphone-small@1.5x.webp +0 -0
  298. package/dist/illustrations/assets/megaphone-small@1x.webp +0 -0
  299. package/dist/illustrations/assets/megaphone-small@2x.webp +0 -0
  300. package/dist/illustrations/assets/megaphone-small@3x.webp +0 -0
  301. package/dist/illustrations/assets/megaphone-small@4x.webp +0 -0
  302. package/dist/illustrations/assets/multi-currency-large@1x.webp +0 -0
  303. package/dist/illustrations/assets/multi-currency-large@2x.webp +0 -0
  304. package/dist/illustrations/assets/multi-currency-medium@1x.webp +0 -0
  305. package/dist/illustrations/assets/multi-currency-medium@2x.webp +0 -0
  306. package/dist/illustrations/assets/multi-currency-small@1.5x.webp +0 -0
  307. package/dist/illustrations/assets/multi-currency-small@1x.webp +0 -0
  308. package/dist/illustrations/assets/multi-currency-small@2x.webp +0 -0
  309. package/dist/illustrations/assets/multi-currency-small@3x.webp +0 -0
  310. package/dist/illustrations/assets/multi-currency-small@4x.webp +0 -0
  311. package/dist/illustrations/assets/one-invite-letter-opened-large@1x.webp +0 -0
  312. package/dist/illustrations/assets/one-invite-letter-opened-large@2x.webp +0 -0
  313. package/dist/illustrations/assets/one-invite-letter-opened-medium@1x.webp +0 -0
  314. package/dist/illustrations/assets/one-invite-letter-opened-medium@2x.webp +0 -0
  315. package/dist/illustrations/assets/one-invite-letter-opened-small@1.5x.webp +0 -0
  316. package/dist/illustrations/assets/one-invite-letter-opened-small@1x.webp +0 -0
  317. package/dist/illustrations/assets/one-invite-letter-opened-small@2x.webp +0 -0
  318. package/dist/illustrations/assets/one-invite-letter-opened-small@3x.webp +0 -0
  319. package/dist/illustrations/assets/one-invite-letter-opened-small@4x.webp +0 -0
  320. package/dist/illustrations/assets/palm-tree-large@1x.webp +0 -0
  321. package/dist/illustrations/assets/palm-tree-large@2x.webp +0 -0
  322. package/dist/illustrations/assets/palm-tree-medium@1x.webp +0 -0
  323. package/dist/illustrations/assets/palm-tree-medium@2x.webp +0 -0
  324. package/dist/illustrations/assets/palm-tree-small@1.5x.webp +0 -0
  325. package/dist/illustrations/assets/palm-tree-small@1x.webp +0 -0
  326. package/dist/illustrations/assets/palm-tree-small@2x.webp +0 -0
  327. package/dist/illustrations/assets/palm-tree-small@3x.webp +0 -0
  328. package/dist/illustrations/assets/palm-tree-small@4x.webp +0 -0
  329. package/dist/illustrations/assets/phones-large@1x.webp +0 -0
  330. package/dist/illustrations/assets/phones-large@2x.webp +0 -0
  331. package/dist/illustrations/assets/phones-medium@1x.webp +0 -0
  332. package/dist/illustrations/assets/phones-medium@2x.webp +0 -0
  333. package/dist/illustrations/assets/phones-small@1.5x.webp +0 -0
  334. package/dist/illustrations/assets/phones-small@1x.webp +0 -0
  335. package/dist/illustrations/assets/phones-small@2x.webp +0 -0
  336. package/dist/illustrations/assets/phones-small@3x.webp +0 -0
  337. package/dist/illustrations/assets/phones-small@4x.webp +0 -0
  338. package/dist/illustrations/assets/pie-chart-large@1x.webp +0 -0
  339. package/dist/illustrations/assets/pie-chart-large@2x.webp +0 -0
  340. package/dist/illustrations/assets/pie-chart-medium@1x.webp +0 -0
  341. package/dist/illustrations/assets/pie-chart-medium@2x.webp +0 -0
  342. package/dist/illustrations/assets/pie-chart-small@1.5x.webp +0 -0
  343. package/dist/illustrations/assets/pie-chart-small@1x.webp +0 -0
  344. package/dist/illustrations/assets/pie-chart-small@2x.webp +0 -0
  345. package/dist/illustrations/assets/pie-chart-small@3x.webp +0 -0
  346. package/dist/illustrations/assets/pie-chart-small@4x.webp +0 -0
  347. package/dist/illustrations/assets/plane-large@1x.webp +0 -0
  348. package/dist/illustrations/assets/plane-large@2x.webp +0 -0
  349. package/dist/illustrations/assets/plane-medium@1x.webp +0 -0
  350. package/dist/illustrations/assets/plane-medium@2x.webp +0 -0
  351. package/dist/illustrations/assets/plane-small@1.5x.webp +0 -0
  352. package/dist/illustrations/assets/plane-small@1x.webp +0 -0
  353. package/dist/illustrations/assets/plane-small@2x.webp +0 -0
  354. package/dist/illustrations/assets/plane-small@3x.webp +0 -0
  355. package/dist/illustrations/assets/plane-small@4x.webp +0 -0
  356. package/dist/illustrations/assets/puzzle-pieces-large@1x.webp +0 -0
  357. package/dist/illustrations/assets/puzzle-pieces-large@2x.webp +0 -0
  358. package/dist/illustrations/assets/puzzle-pieces-medium@1x.webp +0 -0
  359. package/dist/illustrations/assets/puzzle-pieces-medium@2x.webp +0 -0
  360. package/dist/illustrations/assets/puzzle-pieces-small@1.5x.webp +0 -0
  361. package/dist/illustrations/assets/puzzle-pieces-small@1x.webp +0 -0
  362. package/dist/illustrations/assets/puzzle-pieces-small@2x.webp +0 -0
  363. package/dist/illustrations/assets/puzzle-pieces-small@3x.webp +0 -0
  364. package/dist/illustrations/assets/puzzle-pieces-small@4x.webp +0 -0
  365. package/dist/illustrations/assets/question-mark-large@1x.webp +0 -0
  366. package/dist/illustrations/assets/question-mark-large@2x.webp +0 -0
  367. package/dist/illustrations/assets/question-mark-medium@1x.webp +0 -0
  368. package/dist/illustrations/assets/question-mark-medium@2x.webp +0 -0
  369. package/dist/illustrations/assets/question-mark-small@1.5x.webp +0 -0
  370. package/dist/illustrations/assets/question-mark-small@1x.webp +0 -0
  371. package/dist/illustrations/assets/question-mark-small@2x.webp +0 -0
  372. package/dist/illustrations/assets/question-mark-small@3x.webp +0 -0
  373. package/dist/illustrations/assets/question-mark-small@4x.webp +0 -0
  374. package/dist/illustrations/assets/receive-large@1x.webp +0 -0
  375. package/dist/illustrations/assets/receive-large@2x.webp +0 -0
  376. package/dist/illustrations/assets/receive-medium@1x.webp +0 -0
  377. package/dist/illustrations/assets/receive-medium@2x.webp +0 -0
  378. package/dist/illustrations/assets/receive-small@1.5x.webp +0 -0
  379. package/dist/illustrations/assets/receive-small@1x.webp +0 -0
  380. package/dist/illustrations/assets/receive-small@2x.webp +0 -0
  381. package/dist/illustrations/assets/receive-small@3x.webp +0 -0
  382. package/dist/illustrations/assets/receive-small@4x.webp +0 -0
  383. package/dist/illustrations/assets/reminder-letter-large@1x.webp +0 -0
  384. package/dist/illustrations/assets/reminder-letter-large@2x.webp +0 -0
  385. package/dist/illustrations/assets/reminder-letter-medium@1x.webp +0 -0
  386. package/dist/illustrations/assets/reminder-letter-medium@2x.webp +0 -0
  387. package/dist/illustrations/assets/reminder-letter-small@1.5x.webp +0 -0
  388. package/dist/illustrations/assets/reminder-letter-small@1x.webp +0 -0
  389. package/dist/illustrations/assets/reminder-letter-small@2x.webp +0 -0
  390. package/dist/illustrations/assets/reminder-letter-small@3x.webp +0 -0
  391. package/dist/illustrations/assets/reminder-letter-small@4x.webp +0 -0
  392. package/dist/illustrations/assets/sand-timer-large@1x.webp +0 -0
  393. package/dist/illustrations/assets/sand-timer-large@2x.webp +0 -0
  394. package/dist/illustrations/assets/sand-timer-medium@1x.webp +0 -0
  395. package/dist/illustrations/assets/sand-timer-medium@2x.webp +0 -0
  396. package/dist/illustrations/assets/sand-timer-small@1.5x.webp +0 -0
  397. package/dist/illustrations/assets/sand-timer-small@1x.webp +0 -0
  398. package/dist/illustrations/assets/sand-timer-small@2x.webp +0 -0
  399. package/dist/illustrations/assets/sand-timer-small@3x.webp +0 -0
  400. package/dist/illustrations/assets/sand-timer-small@4x.webp +0 -0
  401. package/dist/illustrations/assets/shopping-bag-large@1x.webp +0 -0
  402. package/dist/illustrations/assets/shopping-bag-large@2x.webp +0 -0
  403. package/dist/illustrations/assets/shopping-bag-medium@1x.webp +0 -0
  404. package/dist/illustrations/assets/shopping-bag-medium@2x.webp +0 -0
  405. package/dist/illustrations/assets/shopping-bag-small@1.5x.webp +0 -0
  406. package/dist/illustrations/assets/shopping-bag-small@1x.webp +0 -0
  407. package/dist/illustrations/assets/shopping-bag-small@2x.webp +0 -0
  408. package/dist/illustrations/assets/shopping-bag-small@3x.webp +0 -0
  409. package/dist/illustrations/assets/shopping-bag-small@4x.webp +0 -0
  410. package/dist/illustrations/assets/skip-authentication-large@1x.webp +0 -0
  411. package/dist/illustrations/assets/skip-authentication-large@2x.webp +0 -0
  412. package/dist/illustrations/assets/skip-authentication-medium@1x.webp +0 -0
  413. package/dist/illustrations/assets/skip-authentication-medium@2x.webp +0 -0
  414. package/dist/illustrations/assets/skip-authentication-small@1.5x.webp +0 -0
  415. package/dist/illustrations/assets/skip-authentication-small@1x.webp +0 -0
  416. package/dist/illustrations/assets/skip-authentication-small@2x.webp +0 -0
  417. package/dist/illustrations/assets/skip-authentication-small@3x.webp +0 -0
  418. package/dist/illustrations/assets/skip-authentication-small@4x.webp +0 -0
  419. package/dist/illustrations/assets/speech-bubble-large@1x.webp +0 -0
  420. package/dist/illustrations/assets/speech-bubble-large@2x.webp +0 -0
  421. package/dist/illustrations/assets/speech-bubble-medium@1x.webp +0 -0
  422. package/dist/illustrations/assets/speech-bubble-medium@2x.webp +0 -0
  423. package/dist/illustrations/assets/speech-bubble-small@1.5x.webp +0 -0
  424. package/dist/illustrations/assets/speech-bubble-small@1x.webp +0 -0
  425. package/dist/illustrations/assets/speech-bubble-small@2x.webp +0 -0
  426. package/dist/illustrations/assets/speech-bubble-small@3x.webp +0 -0
  427. package/dist/illustrations/assets/speech-bubble-small@4x.webp +0 -0
  428. package/dist/illustrations/assets/tool-large@1x.webp +0 -0
  429. package/dist/illustrations/assets/tool-large@2x.webp +0 -0
  430. package/dist/illustrations/assets/tool-medium@1x.webp +0 -0
  431. package/dist/illustrations/assets/tool-medium@2x.webp +0 -0
  432. package/dist/illustrations/assets/tool-small@1.5x.webp +0 -0
  433. package/dist/illustrations/assets/tool-small@1x.webp +0 -0
  434. package/dist/illustrations/assets/tool-small@2x.webp +0 -0
  435. package/dist/illustrations/assets/tool-small@3x.webp +0 -0
  436. package/dist/illustrations/assets/tool-small@4x.webp +0 -0
  437. package/dist/illustrations/assets/two-invite-letters-opened-large@1x.webp +0 -0
  438. package/dist/illustrations/assets/two-invite-letters-opened-large@2x.webp +0 -0
  439. package/dist/illustrations/assets/two-invite-letters-opened-medium@1x.webp +0 -0
  440. package/dist/illustrations/assets/two-invite-letters-opened-medium@2x.webp +0 -0
  441. package/dist/illustrations/assets/two-invite-letters-opened-small@1.5x.webp +0 -0
  442. package/dist/illustrations/assets/two-invite-letters-opened-small@1x.webp +0 -0
  443. package/dist/illustrations/assets/two-invite-letters-opened-small@2x.webp +0 -0
  444. package/dist/illustrations/assets/two-invite-letters-opened-small@3x.webp +0 -0
  445. package/dist/illustrations/assets/two-invite-letters-opened-small@4x.webp +0 -0
  446. package/dist/illustrations/assets/wallet-large@1x.webp +0 -0
  447. package/dist/illustrations/assets/wallet-large@2x.webp +0 -0
  448. package/dist/illustrations/assets/wallet-medium@1x.webp +0 -0
  449. package/dist/illustrations/assets/wallet-medium@2x.webp +0 -0
  450. package/dist/illustrations/assets/wallet-small@1.5x.webp +0 -0
  451. package/dist/illustrations/assets/wallet-small@1x.webp +0 -0
  452. package/dist/illustrations/assets/wallet-small@2x.webp +0 -0
  453. package/dist/illustrations/assets/wallet-small@3x.webp +0 -0
  454. package/dist/illustrations/assets/wallet-small@4x.webp +0 -0
package/README.md CHANGED
@@ -1 +1,26 @@
1
- ### `@wise/art`
1
+ # `@wise/art`
2
+
3
+
4
+ ### Usage in Angular Environment
5
+
6
+ This package don't provide support for Angular.
7
+
8
+ Consider use [`react2angular`](https://www.npmjs.com/package/react2angular) or alike wrappers:
9
+
10
+ ```js
11
+ import { react2angular } from 'react2angular';
12
+ import { Illustration } from '@wise/art';
13
+
14
+ angular
15
+ .module('tw.someModule', [ ... ])
16
+ .component('twIllustration', react2angular(Illustration))
17
+ ```
18
+
19
+ in Angular HTML template file
20
+ ```html
21
+ <tw-illustration
22
+ id="'test-id'"
23
+ alt="'Image of briefcase'"
24
+ name="'briefcase'">
25
+ </tw-illustration>
26
+ ```
@@ -8,8 +8,8 @@ declare const _default: {
8
8
  size?: import("./Illustration").IllustrationSizes | undefined;
9
9
  loading?: "eager" | "lazy" | undefined;
10
10
  } & {
11
- className?: string | undefined;
12
11
  id?: string | undefined;
12
+ className?: string | undefined;
13
13
  } & React.RefAttributes<HTMLImageElement>>;
14
14
  title: string;
15
15
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export { default as Illustration } from './illustrations';
2
- export { default as Temp } from './Temp';
3
2
  export { Assets } from './illustrations';
4
3
  export { Sizes } from './common';
5
4
  export type { IllustrationNames, IllustrationProps } from './illustrations';
package/dist/index.js CHANGED
@@ -1,2 +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 s,a=/*#__PURE__*/r(e),l=/*#__PURE__*/r(t);exports.Sizes=void 0,(s=exports.Sizes||(exports.Sizes={})).SMALL="small",s.MEDIUM="medium",s.LARGE="large",s.AUTO="auto";var i,E=t.forwardRef(function(e,t){var r=e.name,s=e.alt,i=e.loading,E=void 0===i?"lazy":i,o=e.size,c=void 0===o?exports.Sizes.AUTO:o,u=exports.Sizes.SMALL,d=exports.Sizes.MEDIUM,p=exports.Sizes.LARGE,A=c===exports.Sizes.AUTO;return r?/*#__PURE__*/l.default.createElement("picture",{id:e.id,className:a.default("wds-illustration","wds-illustration-"+r,e.className)},A?/*#__PURE__*/l.default.createElement(l.default.Fragment,null,/*#__PURE__*/l.default.createElement("source",{media:"(max-width: 575px)",srcSet:n(r,u,"1x")+", "+n(r,u,"2x")+" 2x"}),/*#__PURE__*/l.default.createElement("source",{media:"(max-width: 991px)",srcSet:n(r,d,"1x")+", "+n(r,d,"2x")+" 2x"})):null,/*#__PURE__*/l.default.createElement("img",{ref:t,alt:s,loading:E,src:n(r,A?p:c,"1x"),srcSet:n(r,A?p:c,"2x")+" 2x"})):null});function n(e,t,r){return"illustrations/assets/"+e+"-"+t+"@"+r+".webp"}exports.Assets=void 0,(i=exports.Assets||(exports.Assets={})).BELL="bell",i.BRIEFCASE="briefcase",i.CALENDAR="calendar",i.CHECK_MARK="check-mark",i.CLOSED_WINDOW="closed-window",i.COIN_PILE="coin-pile",i.CONFETTI="confetti",i.CONSTRUCTION_FENCE="construction-fence",i.CONVERT="convert",i.COOKIE="cookie",i.DOCUMENTS="documents",i.DOOR="door",i.ELECTRIC_PLUG="electric-plug",i.EMAIL="email",i.EXCLAMATION_MARK="exclamation-mark",i.FLAG="flag",i.FLOWER="flower",i.GEAR="gear",i.GLOBE="globe",i.GRAPH="graph",i.HEART="heart",i.HOUSE="house",i.ID_CARD="id-card",i.INFINITE="infinite",i.INVITE_LETTER="invite-letter",i.JARS="jars",i.KEY="key",i.LIGHT_BULB="light-bulb",i.LOCK="lock",i.MAGNIFYING_GLASS="magnifying-glass",i.MAP="map",i.MEGAPHONE="megaphone",i.MULTI_CURRENCY="multi-currency",i.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",i.PALM_TREE="palm-tree",i.PHONES="phones",i.PIE_CHART="pie-chart",i.PLANE="plane",i.PUZZLE_PIECES="puzzle-pieces",i.QUESTION_MARK="question-mark",i.RECEIVE="receive",i.REMINDER_LETTER="reminder-letter",i.SAND_TIMER="sand-timer",i.SHOPPING_BAG="shopping-bag",i.SKIP_AUTHENTICATION="skip-authentication",i.SPEECH_BUBBLE="speech-bubble",i.TOOL="tool",i.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",i.WALLET="wallet",exports.Illustration=E,exports.Temp=function(){/*#__PURE__*/return l.default.createElement("img",{className:"wds-temp",src:"illustrations/assets/bell-large@1x.webp",alt:"test"})};
1
+ var e=require("classnames"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a,i=/*#__PURE__*/r(e),s=/*#__PURE__*/r(t);exports.Sizes=void 0,(a=exports.Sizes||(exports.Sizes={})).SMALL="small",a.MEDIUM="medium",a.LARGE="large",a.AUTO="auto";var E,l=t.forwardRef(function(e,t){var r=e.name,a=e.alt,E=e.loading,l=void 0===E?"lazy":E,n=e.size,c=void 0===n?exports.Sizes.AUTO:n,u=exports.Sizes.SMALL,A=exports.Sizes.MEDIUM,I=exports.Sizes.LARGE,d=c===exports.Sizes.AUTO;return r?/*#__PURE__*/s.default.createElement("picture",{id:e.id,className:i.default("wds-illustration","wds-illustration-"+r,e.className)},d?/*#__PURE__*/s.default.createElement(s.default.Fragment,null,/*#__PURE__*/s.default.createElement("source",{media:"(max-width: 575px)",srcSet:o(r,u,"1x")+", "+o(r,u,"2x")+" 2x"}),/*#__PURE__*/s.default.createElement("source",{media:"(max-width: 991px)",srcSet:o(r,A,"1x")+", "+o(r,A,"2x")+" 2x"})):null,/*#__PURE__*/s.default.createElement("img",{ref:t,alt:a,loading:l,src:o(r,d?I:c,"1x"),srcSet:o(r,d?I:c,"2x")+" 2x"})):null});function o(e,t,r){return"https://wise.com/web-art/assets/illustrations/"+e+"-"+t+"@"+r+".webp"}exports.Assets=void 0,(E=exports.Assets||(exports.Assets={})).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",exports.Illustration=l;
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts","../src/Temp.tsx"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n AUTO = 'auto',\n}\n\nexport type LargeSize = 'large';\nexport type MediumSize = 'medium';\nexport type SmallSize = 'small';\nexport type AutoSize = 'auto';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { LargeSize, MediumSize, SmallSize, AutoSize, 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'>;\n\nexport type IllustrationSizes = LargeSize | MediumSize | SmallSize | AutoSize;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n size?: IllustrationSizes;\n loading?: 'eager' | 'lazy';\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className, size = Sizes.AUTO }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n const autoSize: boolean = size === Sizes.AUTO;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {autoSize ? (\n <>\n {/* Mobile Screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n </>\n ) : null}\n\n <img\n ref={ref}\n alt={alt}\n loading={loading}\n src={defineSrc(name, autoSize ? LARGE : size, '1x')}\n srcSet={`${defineSrc(name, autoSize ? LARGE : size, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: IllustrationSizes, 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","import React from 'react';\n\nconst Temp = () => {\n return <img className=\"wds-temp\" src=\"illustrations/assets/bell-large@1x.webp\" alt=\"test\" />;\n};\n\nexport default Temp;\n"],"names":["Sizes","Illustration","Assets","forwardRef","ref","name","alt","_ref$loading","_ref","loading","className","size","AUTO","_ref$size","SMALL","MEDIUM","LARGE","autoSize","React","createElement","id","classNames","Fragment","media","srcSet","defineSrc","src","illustration","descriptor"],"mappings":"2HAAYA,gEAAAA,EAAAA,QAAKA,QAALA,cAKX,CAAA,IAJC,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,KAAA,OCeIC,ICZMC,EDYMD,EAAGE,EAAUA,WAC7B,SAA2EC,EAAAA,GAAO,IAA3EC,EAAAA,EAAAA,KAAMC,IAAAA,IAAGC,EAAAC,EAAEC,QAAAA,OAAO,IAAAF,EAAG,OAAQG,EAAWC,EAAAA,EAAAA,KAAAA,OAAOX,IAAAA,EAAAA,cAAMY,KAC1DC,IAAiCb,QAAAA,MAAzBc,MAAOC,EAAkBf,QAAKA,MAAvBe,OAAQC,EAAUhB,QAAKA,MAAfgB,MACTC,EAAYN,IAASX,QAAKA,MAACY,KACzC,OAAOP,eACLa,UACEC,cAAA,UAAA,CAAAC,GALDZ,EAAFY,GAMGV,UAAWW,EAAAA,QAAW,mBAAwChB,oBAAAA,EANhCK,EAAAA,YAQ7BO,eACCC,EAAA,QAAAC,cAAAD,EAAA,QAAAI,SAAA,kBAEEJ,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMS,EAAO,MAAUW,KAAAA,EAAUpB,EAAMS,EAAO,2BAGrEI,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMU,EAAQ,MAAUU,KAAAA,EAAUpB,EAAMU,EAAQ,MAAK,SAG5E,kBAEJG,EACE,QAAAC,cAAA,MAAA,CAAAf,IAAKA,EACLE,IAAKA,EACLG,QAASA,EACTiB,IAAKD,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAC9Ca,OAAWC,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAAW,SAGjE,IACN,GAGF,SAASc,EAAUE,EAAsBhB,EAAyBiB,GAChE,MAAA,wBAA+BD,EAAY,IAAIhB,EAAI,IAAIiB,EAAU,OACnE,CCAC1B,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,6CCtDW,wBACX,OAAOgB,EAAK,QAAAC,cAAA,MAAA,CAAAT,UAAU,WAAWgB,IAAI,0CAA0CpB,IAAI,QACrF"}
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 AUTO = 'auto',\n}\n\nexport type LargeSize = 'large';\nexport type MediumSize = 'medium';\nexport type SmallSize = 'small';\nexport type AutoSize = 'auto';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { LargeSize, MediumSize, SmallSize, AutoSize, 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'>;\n\nexport type IllustrationSizes = LargeSize | MediumSize | SmallSize | AutoSize;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n size?: IllustrationSizes;\n loading?: 'eager' | 'lazy';\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className, size = Sizes.AUTO }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n const autoSize: boolean = size === Sizes.AUTO;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {autoSize ? (\n <>\n {/* Mobile Screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n </>\n ) : null}\n\n <img\n ref={ref}\n alt={alt}\n loading={loading}\n src={defineSrc(name, autoSize ? LARGE : size, '1x')}\n srcSet={`${defineSrc(name, autoSize ? LARGE : size, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: IllustrationSizes, descriptor: Descriptors) {\n return `https://wise.com/web-art/assets/illustrations/${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","name","alt","_ref$loading","_ref","loading","className","size","AUTO","_ref$size","SMALL","MEDIUM","LARGE","autoSize","React","createElement","id","classNames","Fragment","media","srcSet","defineSrc","src","illustration","descriptor"],"mappings":"2HAAYA,gEAAAA,EAAAA,QAAKA,QAALA,cAKX,CAAA,IAJC,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,KAAA,OCeIC,ICZMC,EDYMD,EAAGE,EAAUA,WAC7B,SAA2EC,EAAAA,GAAO,IAA3EC,EAAAA,EAAAA,KAAMC,IAAAA,IAAGC,EAAAC,EAAEC,QAAAA,OAAO,IAAAF,EAAG,OAAQG,EAAWC,EAAAA,EAAAA,KAAAA,OAAOX,IAAAA,EAAAA,cAAMY,KAC1DC,IAAiCb,QAAAA,MAAzBc,MAAOC,EAAkBf,QAAKA,MAAvBe,OAAQC,EAAUhB,QAAKA,MAAfgB,MACTC,EAAYN,IAASX,QAAKA,MAACY,KACzC,OAAOP,eACLa,UACEC,cAAA,UAAA,CAAAC,GALDZ,EAAFY,GAMGV,UAAWW,EAAAA,QAAW,mBAAwChB,oBAAAA,EANhCK,EAAAA,YAQ7BO,eACCC,EAAA,QAAAC,cAAAD,EAAA,QAAAI,SAAA,kBAEEJ,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMS,EAAO,MAAUW,KAAAA,EAAUpB,EAAMS,EAAO,2BAGrEI,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMU,EAAQ,MAAUU,KAAAA,EAAUpB,EAAMU,EAAQ,MAAK,SAG5E,kBAEJG,EACE,QAAAC,cAAA,MAAA,CAAAf,IAAKA,EACLE,IAAKA,EACLG,QAASA,EACTiB,IAAKD,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAC9Ca,OAAWC,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAAW,SAGjE,IACN,GAGF,SAASc,EAAUE,EAAsBhB,EAAyBiB,GAChE,MAAA,iDAAwDD,EAAY,IAAIhB,EAAI,IAAIiB,EAAU,OAC5F,CCAC1B,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"}
@@ -1,2 +1,2 @@
1
- import e from"classnames";import t,{forwardRef as E}from"react";var a;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.AUTO="auto"}(a||(a={}));const l=E(({id:E,name:l,alt:i,loading:n="lazy",className:s,size:c=a.AUTO},o)=>{const{SMALL:m,MEDIUM:I,LARGE:T}=a,A=c===a.AUTO;return l?/*#__PURE__*/t.createElement("picture",{id:E,className:e("wds-illustration",`wds-illustration-${l}`,s)},A?/*#__PURE__*/t.createElement(t.Fragment,null,/*#__PURE__*/t.createElement("source",{media:"(max-width: 575px)",srcSet:`${r(l,m,"1x")}, ${r(l,m,"2x")} 2x`}),/*#__PURE__*/t.createElement("source",{media:"(max-width: 991px)",srcSet:`${r(l,I,"1x")}, ${r(l,I,"2x")} 2x`})):null,/*#__PURE__*/t.createElement("img",{ref:o,alt:i,loading:n,src:r(l,A?T:c,"1x"),srcSet:`${r(l,A?T:c,"2x")} 2x`})):null});function r(e,t,E){return`illustrations/assets/${e}-${t}@${E}.webp`}var i;!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"}(i||(i={}));const n=()=>/*#__PURE__*/t.createElement("img",{className:"wds-temp",src:"illustrations/assets/bell-large@1x.webp",alt:"test"});export{i as Assets,l as Illustration,a as Sizes,n as Temp};
1
+ import e from"classnames";import t,{forwardRef as E}from"react";var a;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.AUTO="auto"}(a||(a={}));const i=E(({id:E,name:i,alt:l,loading:n="lazy",className:c,size:o=a.AUTO},s)=>{const{SMALL:m,MEDIUM:I,LARGE:T}=a,A=o===a.AUTO;return i?/*#__PURE__*/t.createElement("picture",{id:E,className:e("wds-illustration",`wds-illustration-${i}`,c)},A?/*#__PURE__*/t.createElement(t.Fragment,null,/*#__PURE__*/t.createElement("source",{media:"(max-width: 575px)",srcSet:`${r(i,m,"1x")}, ${r(i,m,"2x")} 2x`}),/*#__PURE__*/t.createElement("source",{media:"(max-width: 991px)",srcSet:`${r(i,I,"1x")}, ${r(i,I,"2x")} 2x`})):null,/*#__PURE__*/t.createElement("img",{ref:s,alt:l,loading:n,src:r(i,A?T:o,"1x"),srcSet:`${r(i,A?T:o,"2x")} 2x`})):null});function r(e,t,E){return`https://wise.com/web-art/assets/illustrations/${e}-${t}@${E}.webp`}var l;!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"}(l||(l={}));export{l as Assets,i as Illustration,a as Sizes};
2
2
  //# sourceMappingURL=index.modern.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.modern.mjs","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts","../src/Temp.tsx"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n AUTO = 'auto',\n}\n\nexport type LargeSize = 'large';\nexport type MediumSize = 'medium';\nexport type SmallSize = 'small';\nexport type AutoSize = 'auto';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { LargeSize, MediumSize, SmallSize, AutoSize, 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'>;\n\nexport type IllustrationSizes = LargeSize | MediumSize | SmallSize | AutoSize;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n size?: IllustrationSizes;\n loading?: 'eager' | 'lazy';\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className, size = Sizes.AUTO }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n const autoSize: boolean = size === Sizes.AUTO;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {autoSize ? (\n <>\n {/* Mobile Screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n </>\n ) : null}\n\n <img\n ref={ref}\n alt={alt}\n loading={loading}\n src={defineSrc(name, autoSize ? LARGE : size, '1x')}\n srcSet={`${defineSrc(name, autoSize ? LARGE : size, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: IllustrationSizes, 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","import React from 'react';\n\nconst Temp = () => {\n return <img className=\"wds-temp\" src=\"illustrations/assets/bell-large@1x.webp\" alt=\"test\" />;\n};\n\nexport default Temp;\n"],"names":["Sizes","Illustration","forwardRef","id","name","alt","loading","className","size","AUTO","ref","SMALL","MEDIUM","LARGE","React","createElement","classNames","autoSize","Fragment","media","srcSet","defineSrc","src","illustration","descriptor","Assets","Temp"],"mappings":"gEAAYA,OAAZ,SAAYA,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,KAAA,MACD,CALD,CAAYA,IAAAA,EAKX,CAAA,ICcKC,MAAYA,EAAGC,EACnB,EAAGC,KAAIC,OAAMC,MAAKC,QAAAA,EAAU,OAAQC,YAAWC,KAAAA,EAAOR,EAAMS,MAAeC,KACzE,MAAMC,MAAEA,EAAKC,OAAEA,EAAMC,MAAEA,GAAUb,IACPQ,IAASR,EAAMS,KACzC,OAAOL,eACLU,EAAAC,cAAA,UAAA,CACEZ,GAAIA,EACJI,UAAWS,EAAW,mBAAoB,oBAAoBZ,IAAQG,IAErEU,eACCH,EAEEC,cAAAD,EAAAI,SAAA,kBAAAJ,EAAAC,cAAA,SAAA,CACEI,MAAM,qBACNC,OAAQ,GAAGC,EAAUjB,EAAMO,EAAO,UAAUU,EAAUjB,EAAMO,EAAO,0BAGrEG,EACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAQ,GAAGC,EAAUjB,EAAMQ,EAAQ,UAAUS,EAAUjB,EAAMQ,EAAQ,cAGvE,kBAEJE,EAAAC,cAAA,MAAA,CACEL,IAAKA,EACLL,IAAKA,EACLC,QAASA,EACTgB,IAAKD,EAAUjB,EAAMa,EAAWJ,EAAQL,EAAM,MAC9CY,OAAQ,GAAGC,EAAUjB,EAAMa,EAAWJ,EAAQL,EAAM,cAGtD,OAIR,SAAkBa,EAACE,EAAsBf,EAAyBgB,GAChE,8BAA+BD,KAAgBf,KAAQgB,QACzD,CClDYC,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,ICvDKC,MAAIA,EAAG,iBACJZ,EAAAC,cAAA,MAAA,CAAKR,UAAU,WAAWe,IAAI,0CAA0CjB,IAAI"}
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 AUTO = 'auto',\n}\n\nexport type LargeSize = 'large';\nexport type MediumSize = 'medium';\nexport type SmallSize = 'small';\nexport type AutoSize = 'auto';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { LargeSize, MediumSize, SmallSize, AutoSize, 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'>;\n\nexport type IllustrationSizes = LargeSize | MediumSize | SmallSize | AutoSize;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n size?: IllustrationSizes;\n loading?: 'eager' | 'lazy';\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className, size = Sizes.AUTO }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n const autoSize: boolean = size === Sizes.AUTO;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {autoSize ? (\n <>\n {/* Mobile Screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n </>\n ) : null}\n\n <img\n ref={ref}\n alt={alt}\n loading={loading}\n src={defineSrc(name, autoSize ? LARGE : size, '1x')}\n srcSet={`${defineSrc(name, autoSize ? LARGE : size, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: IllustrationSizes, descriptor: Descriptors) {\n return `https://wise.com/web-art/assets/illustrations/${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","size","AUTO","ref","SMALL","MEDIUM","LARGE","React","createElement","classNames","autoSize","Fragment","media","srcSet","defineSrc","src","illustration","descriptor","Assets"],"mappings":"gEAAYA,OAAZ,SAAYA,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,KAAA,MACD,CALD,CAAYA,IAAAA,EAKX,CAAA,ICcKC,MAAYA,EAAGC,EACnB,EAAGC,KAAIC,OAAMC,MAAKC,QAAAA,EAAU,OAAQC,YAAWC,KAAAA,EAAOR,EAAMS,MAAeC,KACzE,MAAMC,MAAEA,EAAKC,OAAEA,EAAMC,MAAEA,GAAUb,IACPQ,IAASR,EAAMS,KACzC,OAAOL,eACLU,EAAAC,cAAA,UAAA,CACEZ,GAAIA,EACJI,UAAWS,EAAW,mBAAoB,oBAAoBZ,IAAQG,IAErEU,eACCH,EAEEC,cAAAD,EAAAI,SAAA,kBAAAJ,EAAAC,cAAA,SAAA,CACEI,MAAM,qBACNC,OAAQ,GAAGC,EAAUjB,EAAMO,EAAO,UAAUU,EAAUjB,EAAMO,EAAO,0BAGrEG,EACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAQ,GAAGC,EAAUjB,EAAMQ,EAAQ,UAAUS,EAAUjB,EAAMQ,EAAQ,cAGvE,kBAEJE,EAAAC,cAAA,MAAA,CACEL,IAAKA,EACLL,IAAKA,EACLC,QAASA,EACTgB,IAAKD,EAAUjB,EAAMa,EAAWJ,EAAQL,EAAM,MAC9CY,OAAQ,GAAGC,EAAUjB,EAAMa,EAAWJ,EAAQL,EAAM,cAGtD,OAIR,SAAkBa,EAACE,EAAsBf,EAAyBgB,GAChE,uDAAwDD,KAAgBf,KAAQgB,QAClF,CClDYC,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"}
@@ -1,2 +1,2 @@
1
- import e from"classnames";import t,{forwardRef as E}from"react";var a;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.AUTO="auto"}(a||(a={}));var r,i=E(function(E,r){var i=E.name,n=E.alt,s=E.loading,c=void 0===s?"lazy":s,o=E.size,m=void 0===o?a.AUTO:o,I=a.SMALL,T=a.MEDIUM,A=a.LARGE,L=m===a.AUTO;return i?/*#__PURE__*/t.createElement("picture",{id:E.id,className:e("wds-illustration","wds-illustration-"+i,E.className)},L?/*#__PURE__*/t.createElement(t.Fragment,null,/*#__PURE__*/t.createElement("source",{media:"(max-width: 575px)",srcSet:l(i,I,"1x")+", "+l(i,I,"2x")+" 2x"}),/*#__PURE__*/t.createElement("source",{media:"(max-width: 991px)",srcSet:l(i,T,"1x")+", "+l(i,T,"2x")+" 2x"})):null,/*#__PURE__*/t.createElement("img",{ref:r,alt:n,loading:c,src:l(i,L?A:m,"1x"),srcSet:l(i,L?A:m,"2x")+" 2x"})):null});function l(e,t,E){return"illustrations/assets/"+e+"-"+t+"@"+E+".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"}(r||(r={}));var n=function(){/*#__PURE__*/return t.createElement("img",{className:"wds-temp",src:"illustrations/assets/bell-large@1x.webp",alt:"test"})};export{r as Assets,i as Illustration,a as Sizes,n as Temp};
1
+ import e from"classnames";import t,{forwardRef as E}from"react";var a;!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.AUTO="auto"}(a||(a={}));var i,r=E(function(E,i){var r=E.name,n=E.alt,o=E.loading,c=void 0===o?"lazy":o,s=E.size,m=void 0===s?a.AUTO:s,I=a.SMALL,T=a.MEDIUM,A=a.LARGE,L=m===a.AUTO;return r?/*#__PURE__*/t.createElement("picture",{id:E.id,className:e("wds-illustration","wds-illustration-"+r,E.className)},L?/*#__PURE__*/t.createElement(t.Fragment,null,/*#__PURE__*/t.createElement("source",{media:"(max-width: 575px)",srcSet:l(r,I,"1x")+", "+l(r,I,"2x")+" 2x"}),/*#__PURE__*/t.createElement("source",{media:"(max-width: 991px)",srcSet:l(r,T,"1x")+", "+l(r,T,"2x")+" 2x"})):null,/*#__PURE__*/t.createElement("img",{ref:i,alt:n,loading:c,src:l(r,L?A:m,"1x"),srcSet:l(r,L?A:m,"2x")+" 2x"})):null});function l(e,t,E){return"https://wise.com/web-art/assets/illustrations/"+e+"-"+t+"@"+E+".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"}(i||(i={}));export{i as Assets,r as Illustration,a as Sizes};
2
2
  //# sourceMappingURL=index.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts","../src/Temp.tsx"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n AUTO = 'auto',\n}\n\nexport type LargeSize = 'large';\nexport type MediumSize = 'medium';\nexport type SmallSize = 'small';\nexport type AutoSize = 'auto';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { LargeSize, MediumSize, SmallSize, AutoSize, 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'>;\n\nexport type IllustrationSizes = LargeSize | MediumSize | SmallSize | AutoSize;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n size?: IllustrationSizes;\n loading?: 'eager' | 'lazy';\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className, size = Sizes.AUTO }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n const autoSize: boolean = size === Sizes.AUTO;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {autoSize ? (\n <>\n {/* Mobile Screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n </>\n ) : null}\n\n <img\n ref={ref}\n alt={alt}\n loading={loading}\n src={defineSrc(name, autoSize ? LARGE : size, '1x')}\n srcSet={`${defineSrc(name, autoSize ? LARGE : size, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: IllustrationSizes, 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","import React from 'react';\n\nconst Temp = () => {\n return <img className=\"wds-temp\" src=\"illustrations/assets/bell-large@1x.webp\" alt=\"test\" />;\n};\n\nexport default Temp;\n"],"names":["Sizes","Illustration","Assets","forwardRef","ref","name","alt","_ref$loading","_ref","loading","className","size","AUTO","_ref$size","SMALL","MEDIUM","LARGE","autoSize","React","createElement","id","classNames","Fragment","media","srcSet","defineSrc","src","illustration","descriptor","Temp"],"mappings":"gEAAYA,OAAZ,SAAYA,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,KAAA,MACD,CALD,CAAYA,IAAAA,EAKX,CAAA,ICcKC,ICsCLC,EDtCiBD,EAAGE,EACnB,SAA2EC,EAAAA,GAAO,IAA3EC,EAAAA,EAAAA,KAAMC,IAAAA,IAAGC,EAAAC,EAAEC,QAAAA,OAAO,IAAAF,EAAG,OAAQG,EAAWC,EAAAA,EAAAA,KAAAA,OAAOX,IAAAA,EAAAA,EAAMY,KAC1DC,IAAiCb,EAAzBc,MAAOC,EAAkBf,EAAlBe,OAAQC,EAAUhB,EAAVgB,MACTC,EAAYN,IAASX,EAAMY,KACzC,OAAOP,eACLa,EACEC,cAAA,UAAA,CAAAC,GALDZ,EAAFY,GAMGV,UAAWW,EAAW,mBAAwChB,oBAAAA,EANhCK,EAAAA,YAQ7BO,eACCC,EAAAC,cAAAD,EAAAI,SAAA,kBAEEJ,EACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMS,EAAO,MAAUW,KAAAA,EAAUpB,EAAMS,EAAO,2BAGrEI,EACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMU,EAAQ,MAAUU,KAAAA,EAAUpB,EAAMU,EAAQ,MAAK,SAG5E,kBAEJG,EACEC,cAAA,MAAA,CAAAf,IAAKA,EACLE,IAAKA,EACLG,QAASA,EACTiB,IAAKD,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAC9Ca,OAAWC,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAAW,SAGjE,IACN,GAGF,SAASc,EAAUE,EAAsBhB,EAAyBiB,GAChE,MAAA,wBAA+BD,EAAY,IAAIhB,EAAI,IAAIiB,EAAU,OACnE,EClDA,SAAY1B,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,ICvDK2B,IAAAA,EAAO,wBACX,OAAOX,EAAKC,cAAA,MAAA,CAAAT,UAAU,WAAWgB,IAAI,0CAA0CpB,IAAI,QACrF"}
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 AUTO = 'auto',\n}\n\nexport type LargeSize = 'large';\nexport type MediumSize = 'medium';\nexport type SmallSize = 'small';\nexport type AutoSize = 'auto';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { LargeSize, MediumSize, SmallSize, AutoSize, 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'>;\n\nexport type IllustrationSizes = LargeSize | MediumSize | SmallSize | AutoSize;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n size?: IllustrationSizes;\n loading?: 'eager' | 'lazy';\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className, size = Sizes.AUTO }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n const autoSize: boolean = size === Sizes.AUTO;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {autoSize ? (\n <>\n {/* Mobile Screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n </>\n ) : null}\n\n <img\n ref={ref}\n alt={alt}\n loading={loading}\n src={defineSrc(name, autoSize ? LARGE : size, '1x')}\n srcSet={`${defineSrc(name, autoSize ? LARGE : size, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: IllustrationSizes, descriptor: Descriptors) {\n return `https://wise.com/web-art/assets/illustrations/${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","name","alt","_ref$loading","_ref","loading","className","size","AUTO","_ref$size","SMALL","MEDIUM","LARGE","autoSize","React","createElement","id","classNames","Fragment","media","srcSet","defineSrc","src","illustration","descriptor"],"mappings":"gEAAYA,OAAZ,SAAYA,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,KAAA,MACD,CALD,CAAYA,IAAAA,EAKX,CAAA,ICcKC,ICsCLC,EDtCiBD,EAAGE,EACnB,SAA2EC,EAAAA,GAAO,IAA3EC,EAAAA,EAAAA,KAAMC,IAAAA,IAAGC,EAAAC,EAAEC,QAAAA,OAAO,IAAAF,EAAG,OAAQG,EAAWC,EAAAA,EAAAA,KAAAA,OAAOX,IAAAA,EAAAA,EAAMY,KAC1DC,IAAiCb,EAAzBc,MAAOC,EAAkBf,EAAlBe,OAAQC,EAAUhB,EAAVgB,MACTC,EAAYN,IAASX,EAAMY,KACzC,OAAOP,eACLa,EACEC,cAAA,UAAA,CAAAC,GALDZ,EAAFY,GAMGV,UAAWW,EAAW,mBAAwChB,oBAAAA,EANhCK,EAAAA,YAQ7BO,eACCC,EAAAC,cAAAD,EAAAI,SAAA,kBAEEJ,EACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMS,EAAO,MAAUW,KAAAA,EAAUpB,EAAMS,EAAO,2BAGrEI,EACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMU,EAAQ,MAAUU,KAAAA,EAAUpB,EAAMU,EAAQ,MAAK,SAG5E,kBAEJG,EACEC,cAAA,MAAA,CAAAf,IAAKA,EACLE,IAAKA,EACLG,QAASA,EACTiB,IAAKD,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAC9Ca,OAAWC,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAAW,SAGjE,IACN,GAGF,SAASc,EAAUE,EAAsBhB,EAAyBiB,GAChE,MAAA,iDAAwDD,EAAY,IAAIhB,EAAI,IAAIiB,EAAU,OAC5F,EClDA,SAAY1B,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"}
package/dist/index.umd.js CHANGED
@@ -1,2 +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,a){function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l,s=/*#__PURE__*/i(t),n=/*#__PURE__*/i(a);e.Sizes=void 0,(l=e.Sizes||(e.Sizes={})).SMALL="small",l.MEDIUM="medium",l.LARGE="large",l.AUTO="auto";var r,E=a.forwardRef(function(t,a){var i=t.name,l=t.alt,r=t.loading,E=void 0===r?"lazy":r,c=t.size,u=void 0===c?e.Sizes.AUTO:c,d=e.Sizes.SMALL,m=e.Sizes.MEDIUM,T=e.Sizes.LARGE,f=u===e.Sizes.AUTO;return i?/*#__PURE__*/n.default.createElement("picture",{id:t.id,className:s.default("wds-illustration","wds-illustration-"+i,t.className)},f?/*#__PURE__*/n.default.createElement(n.default.Fragment,null,/*#__PURE__*/n.default.createElement("source",{media:"(max-width: 575px)",srcSet:o(i,d,"1x")+", "+o(i,d,"2x")+" 2x"}),/*#__PURE__*/n.default.createElement("source",{media:"(max-width: 991px)",srcSet:o(i,m,"1x")+", "+o(i,m,"2x")+" 2x"})):null,/*#__PURE__*/n.default.createElement("img",{ref:a,alt:l,loading:E,src:o(i,f?T:u,"1x"),srcSet:o(i,f?T:u,"2x")+" 2x"})):null});function o(e,t,a){return"illustrations/assets/"+e+"-"+t+"@"+a+".webp"}e.Assets=void 0,(r=e.Assets||(e.Assets={})).BELL="bell",r.BRIEFCASE="briefcase",r.CALENDAR="calendar",r.CHECK_MARK="check-mark",r.CLOSED_WINDOW="closed-window",r.COIN_PILE="coin-pile",r.CONFETTI="confetti",r.CONSTRUCTION_FENCE="construction-fence",r.CONVERT="convert",r.COOKIE="cookie",r.DOCUMENTS="documents",r.DOOR="door",r.ELECTRIC_PLUG="electric-plug",r.EMAIL="email",r.EXCLAMATION_MARK="exclamation-mark",r.FLAG="flag",r.FLOWER="flower",r.GEAR="gear",r.GLOBE="globe",r.GRAPH="graph",r.HEART="heart",r.HOUSE="house",r.ID_CARD="id-card",r.INFINITE="infinite",r.INVITE_LETTER="invite-letter",r.JARS="jars",r.KEY="key",r.LIGHT_BULB="light-bulb",r.LOCK="lock",r.MAGNIFYING_GLASS="magnifying-glass",r.MAP="map",r.MEGAPHONE="megaphone",r.MULTI_CURRENCY="multi-currency",r.ONE_INVITE_LETTER_OPENED="one-invite-letter-opened",r.PALM_TREE="palm-tree",r.PHONES="phones",r.PIE_CHART="pie-chart",r.PLANE="plane",r.PUZZLE_PIECES="puzzle-pieces",r.QUESTION_MARK="question-mark",r.RECEIVE="receive",r.REMINDER_LETTER="reminder-letter",r.SAND_TIMER="sand-timer",r.SHOPPING_BAG="shopping-bag",r.SKIP_AUTHENTICATION="skip-authentication",r.SPEECH_BUBBLE="speech-bubble",r.TOOL="tool",r.TWO_INVITE_LETTERS_OPENED="two-invite-letters-opened",r.WALLET="wallet",e.Illustration=E,e.Temp=function(){/*#__PURE__*/return n.default.createElement("img",{className:"wds-temp",src:"illustrations/assets/bell-large@1x.webp",alt:"test"})}});
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 l,s=/*#__PURE__*/a(t),n=/*#__PURE__*/a(i);e.Sizes=void 0,(l=e.Sizes||(e.Sizes={})).SMALL="small",l.MEDIUM="medium",l.LARGE="large",l.AUTO="auto";var E,r=i.forwardRef(function(t,i){var a=t.name,l=t.alt,E=t.loading,r=void 0===E?"lazy":E,c=t.size,u=void 0===c?e.Sizes.AUTO:c,d=e.Sizes.SMALL,T=e.Sizes.MEDIUM,A=e.Sizes.LARGE,I=u===e.Sizes.AUTO;return a?/*#__PURE__*/n.default.createElement("picture",{id:t.id,className:s.default("wds-illustration","wds-illustration-"+a,t.className)},I?/*#__PURE__*/n.default.createElement(n.default.Fragment,null,/*#__PURE__*/n.default.createElement("source",{media:"(max-width: 575px)",srcSet:o(a,d,"1x")+", "+o(a,d,"2x")+" 2x"}),/*#__PURE__*/n.default.createElement("source",{media:"(max-width: 991px)",srcSet:o(a,T,"1x")+", "+o(a,T,"2x")+" 2x"})):null,/*#__PURE__*/n.default.createElement("img",{ref:i,alt:l,loading:r,src:o(a,I?A:u,"1x"),srcSet:o(a,I?A:u,"2x")+" 2x"})):null});function o(e,t,i){return"https://wise.com/web-art/assets/illustrations/"+e+"-"+t+"@"+i+".webp"}e.Assets=void 0,(E=e.Assets||(e.Assets={})).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",e.Illustration=r});
2
2
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/common.ts","../src/illustrations/Illustration.tsx","../src/illustrations/metadata.ts","../src/Temp.tsx"],"sourcesContent":["export enum Sizes {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n AUTO = 'auto',\n}\n\nexport type LargeSize = 'large';\nexport type MediumSize = 'medium';\nexport type SmallSize = 'small';\nexport type AutoSize = 'auto';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { LargeSize, MediumSize, SmallSize, AutoSize, 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'>;\n\nexport type IllustrationSizes = LargeSize | MediumSize | SmallSize | AutoSize;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n size?: IllustrationSizes;\n loading?: 'eager' | 'lazy';\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className, size = Sizes.AUTO }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n const autoSize: boolean = size === Sizes.AUTO;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {autoSize ? (\n <>\n {/* Mobile Screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n </>\n ) : null}\n\n <img\n ref={ref}\n alt={alt}\n loading={loading}\n src={defineSrc(name, autoSize ? LARGE : size, '1x')}\n srcSet={`${defineSrc(name, autoSize ? LARGE : size, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: IllustrationSizes, 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","import React from 'react';\n\nconst Temp = () => {\n return <img className=\"wds-temp\" src=\"illustrations/assets/bell-large@1x.webp\" alt=\"test\" />;\n};\n\nexport default Temp;\n"],"names":["Sizes","Illustration","Assets","forwardRef","ref","name","alt","_ref$loading","_ref","loading","className","size","AUTO","_ref$size","SMALL","MEDIUM","LARGE","autoSize","React","createElement","id","classNames","Fragment","media","srcSet","defineSrc","src","illustration","descriptor"],"mappings":"8XAAYA,0DAAAA,EAAAA,EAAKA,QAALA,QAKX,CAAA,IAJC,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,KAAA,OCeIC,ICZMC,EDYMD,EAAGE,EAAUA,WAC7B,SAA2EC,EAAAA,GAAO,IAA3EC,EAAAA,EAAAA,KAAMC,IAAAA,IAAGC,EAAAC,EAAEC,QAAAA,OAAO,IAAAF,EAAG,OAAQG,EAAWC,EAAAA,EAAAA,KAAAA,OAAOX,IAAAA,EAAAA,QAAMY,KAC1DC,IAAiCb,EAAAA,MAAzBc,MAAOC,EAAkBf,EAAKA,MAAvBe,OAAQC,EAAUhB,EAAKA,MAAfgB,MACTC,EAAYN,IAASX,EAAKA,MAACY,KACzC,OAAOP,eACLa,UACEC,cAAA,UAAA,CAAAC,GALDZ,EAAFY,GAMGV,UAAWW,EAAAA,QAAW,mBAAwChB,oBAAAA,EANhCK,EAAAA,YAQ7BO,eACCC,EAAA,QAAAC,cAAAD,EAAA,QAAAI,SAAA,kBAEEJ,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMS,EAAO,MAAUW,KAAAA,EAAUpB,EAAMS,EAAO,2BAGrEI,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMU,EAAQ,MAAUU,KAAAA,EAAUpB,EAAMU,EAAQ,MAAK,SAG5E,kBAEJG,EACE,QAAAC,cAAA,MAAA,CAAAf,IAAKA,EACLE,IAAKA,EACLG,QAASA,EACTiB,IAAKD,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAC9Ca,OAAWC,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAAW,SAGjE,IACN,GAGF,SAASc,EAAUE,EAAsBhB,EAAyBiB,GAChE,MAAA,wBAA+BD,EAAY,IAAIhB,EAAI,IAAIiB,EAAU,OACnE,CCAC1B,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,iCCtDW,wBACX,OAAOgB,EAAK,QAAAC,cAAA,MAAA,CAAAT,UAAU,WAAWgB,IAAI,0CAA0CpB,IAAI,QACrF"}
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 AUTO = 'auto',\n}\n\nexport type LargeSize = 'large';\nexport type MediumSize = 'medium';\nexport type SmallSize = 'small';\nexport type AutoSize = 'auto';\n\nexport type Descriptors = '1x' | '1.5x' | '2x' | '3x' | '4x';\n","import classNames from 'classnames';\nimport React, { forwardRef, ImgHTMLAttributes } from 'react';\n\nimport { LargeSize, MediumSize, SmallSize, AutoSize, 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'>;\n\nexport type IllustrationSizes = LargeSize | MediumSize | SmallSize | AutoSize;\n\nexport type Props = {\n name: IllustrationNames;\n alt: string;\n size?: IllustrationSizes;\n loading?: 'eager' | 'lazy';\n} & ImgProps;\n\nconst Illustration = forwardRef<HTMLImageElement, Props>(\n ({ id, name, alt, loading = 'lazy', className, size = Sizes.AUTO }: Props, ref) => {\n const { SMALL, MEDIUM, LARGE } = Sizes;\n const autoSize: boolean = size === Sizes.AUTO;\n return name ? (\n <picture\n id={id}\n className={classNames('wds-illustration', `wds-illustration-${name}`, className)}\n >\n {autoSize ? (\n <>\n {/* Mobile Screens */}\n <source\n media=\"(max-width: 575px)\"\n srcSet={`${defineSrc(name, SMALL, '1x')}, ${defineSrc(name, SMALL, '2x')} 2x`}\n />\n {/* Tablets */}\n <source\n media=\"(max-width: 991px)\"\n srcSet={`${defineSrc(name, MEDIUM, '1x')}, ${defineSrc(name, MEDIUM, '2x')} 2x`}\n />\n </>\n ) : null}\n\n <img\n ref={ref}\n alt={alt}\n loading={loading}\n src={defineSrc(name, autoSize ? LARGE : size, '1x')}\n srcSet={`${defineSrc(name, autoSize ? LARGE : size, '2x')} 2x`}\n />\n </picture>\n ) : null;\n },\n);\n\nfunction defineSrc(illustration: string, size: IllustrationSizes, descriptor: Descriptors) {\n return `https://wise.com/web-art/assets/illustrations/${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","name","alt","_ref$loading","_ref","loading","className","size","AUTO","_ref$size","SMALL","MEDIUM","LARGE","autoSize","React","createElement","id","classNames","Fragment","media","srcSet","defineSrc","src","illustration","descriptor"],"mappings":"8XAAYA,0DAAAA,EAAAA,EAAKA,QAALA,QAKX,CAAA,IAJC,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,KAAA,OCeIC,ICZMC,EDYMD,EAAGE,EAAUA,WAC7B,SAA2EC,EAAAA,GAAO,IAA3EC,EAAAA,EAAAA,KAAMC,IAAAA,IAAGC,EAAAC,EAAEC,QAAAA,OAAO,IAAAF,EAAG,OAAQG,EAAWC,EAAAA,EAAAA,KAAAA,OAAOX,IAAAA,EAAAA,QAAMY,KAC1DC,IAAiCb,EAAAA,MAAzBc,MAAOC,EAAkBf,EAAKA,MAAvBe,OAAQC,EAAUhB,EAAKA,MAAfgB,MACTC,EAAYN,IAASX,EAAKA,MAACY,KACzC,OAAOP,eACLa,UACEC,cAAA,UAAA,CAAAC,GALDZ,EAAFY,GAMGV,UAAWW,EAAAA,QAAW,mBAAwChB,oBAAAA,EANhCK,EAAAA,YAQ7BO,eACCC,EAAA,QAAAC,cAAAD,EAAA,QAAAI,SAAA,kBAEEJ,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMS,EAAO,MAAUW,KAAAA,EAAUpB,EAAMS,EAAO,2BAGrEI,EAAAA,QACEC,cAAA,SAAA,CAAAI,MAAM,qBACNC,OAAWC,EAAUpB,EAAMU,EAAQ,MAAUU,KAAAA,EAAUpB,EAAMU,EAAQ,MAAK,SAG5E,kBAEJG,EACE,QAAAC,cAAA,MAAA,CAAAf,IAAKA,EACLE,IAAKA,EACLG,QAASA,EACTiB,IAAKD,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAC9Ca,OAAWC,EAAUpB,EAAMY,EAAWD,EAAQL,EAAM,MAAW,SAGjE,IACN,GAGF,SAASc,EAAUE,EAAsBhB,EAAyBiB,GAChE,MAAA,iDAAwDD,EAAY,IAAIhB,EAAI,IAAIiB,EAAU,OAC5F,CCAC1B,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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/art",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "license": "MIT",
5
5
  "description": "React library for art elements in UI",
6
6
  "homepage": "https://github.com/transferwise/web-art#readme",
@@ -19,14 +19,14 @@
19
19
  "scripts": {
20
20
  "setup": "yarn && yarn build",
21
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",
22
+ "convert-i10s-png-to-webp": "rm -rf s3-bucket/illustrations/ && node ./scripts/convert-png-to-webp.mjs",
23
23
  "generate-i10s-metadata": "node ./scripts/generate-i10s-metadata.mjs && eslint 'src/illustrations/metadata.ts' --fix",
24
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
25
  "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",
26
+ "build": "yarn load-i10s && yarn convert-i10s-png-to-webp && yarn generate-i10s-metadata && yarn bundle && yarn cleanup",
28
27
  "start": "start-storybook -p 3001",
29
28
  "dev": "yarn start",
29
+ "test": "release-to-github-with-changelog-pre-release-checks",
30
30
  "lint-fix": "eslint 'src/**/*.{js,ts,tsx}' 'scripts/*.{mjs,js,ts,tsx}' --fix"
31
31
  },
32
32
  "devDependencies": {
package/dist/Temp.d.ts DELETED
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Temp: () => JSX.Element;
3
- export default Temp;