@pushwoosh/kit-icons 2.0.6 → 2.0.8

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 (395) hide show
  1. package/arrow-icon/arrow-icon.component.js +21 -9
  2. package/arrow-icon/arrow-icon.types.js +1 -1
  3. package/arrow-icon/assets/index.js +1 -1
  4. package/arrow-icon/index.js +1 -1
  5. package/arrow-round-icon/arrow-round-icon.component.js +22 -9
  6. package/arrow-round-icon/arrow-round-icon.types.js +1 -1
  7. package/arrow-round-icon/assets/index.js +1 -1
  8. package/arrow-round-icon/index.js +1 -1
  9. package/attachment-icon/assets/index.js +1 -1
  10. package/attachment-icon/attachment-icon.component.js +21 -9
  11. package/attachment-icon/attachment-icon.types.js +1 -1
  12. package/attachment-icon/index.js +1 -1
  13. package/backup-icon/assets/index.js +1 -1
  14. package/backup-icon/backup-icon.component.js +21 -9
  15. package/backup-icon/backup-icon.types.js +1 -1
  16. package/backup-icon/index.js +1 -1
  17. package/billing-icon/assets/index.js +1 -1
  18. package/billing-icon/billing-icon.component.js +21 -9
  19. package/billing-icon/billing-icon.types.js +1 -1
  20. package/billing-icon/index.js +1 -1
  21. package/bookmark-icon/assets/index.js +1 -1
  22. package/bookmark-icon/bookmark-icon.component.js +21 -9
  23. package/bookmark-icon/bookmark-icon.types.js +1 -1
  24. package/bookmark-icon/index.js +1 -1
  25. package/box-icon/assets/index.js +1 -1
  26. package/box-icon/box-icon.component.js +21 -9
  27. package/box-icon/box-icon.types.js +1 -1
  28. package/box-icon/index.js +1 -1
  29. package/bullet-icon/assets/index.js +1 -1
  30. package/bullet-icon/bullet-icon.component.js +22 -9
  31. package/bullet-icon/bullet-icon.types.js +1 -1
  32. package/bullet-icon/index.js +1 -1
  33. package/calendar-icon/assets/index.js +1 -1
  34. package/calendar-icon/calendar-icon.component.js +21 -9
  35. package/calendar-icon/calendar-icon.types.js +1 -1
  36. package/calendar-icon/index.js +1 -1
  37. package/certificate-icon/assets/index.js +1 -1
  38. package/certificate-icon/certificate-icon.component.js +21 -9
  39. package/certificate-icon/certificate-icon.types.js +1 -1
  40. package/certificate-icon/index.js +1 -1
  41. package/change-icon/assets/index.js +1 -1
  42. package/change-icon/change-icon.component.js +21 -9
  43. package/change-icon/change-icon.types.js +1 -1
  44. package/change-icon/index.js +1 -1
  45. package/check-icon/assets/index.js +1 -1
  46. package/check-icon/check-icon.component.js +20 -9
  47. package/check-icon/check-icon.types.js +1 -1
  48. package/check-icon/index.js +1 -1
  49. package/check-round-icon/assets/index.js +1 -1
  50. package/check-round-icon/check-round-icon.component.js +22 -9
  51. package/check-round-icon/check-round-icon.types.js +1 -1
  52. package/check-round-icon/index.js +1 -1
  53. package/chevron-icon/assets/index.js +1 -1
  54. package/chevron-icon/chevron-icon.component.js +21 -9
  55. package/chevron-icon/chevron-icon.types.js +1 -1
  56. package/chevron-icon/index.js +1 -1
  57. package/close-icon/assets/index.js +1 -1
  58. package/close-icon/close-icon.component.js +20 -9
  59. package/close-icon/close-icon.types.js +1 -1
  60. package/close-icon/index.js +1 -1
  61. package/close-round-icon/assets/index.js +1 -1
  62. package/close-round-icon/close-round-icon.component.js +21 -9
  63. package/close-round-icon/close-round-icon.types.js +1 -1
  64. package/close-round-icon/index.js +1 -1
  65. package/cloud-icon/assets/index.js +1 -1
  66. package/cloud-icon/cloud-icon.component.js +21 -9
  67. package/cloud-icon/cloud-icon.types.js +1 -1
  68. package/cloud-icon/index.js +1 -1
  69. package/collapse-icon/assets/index.js +1 -1
  70. package/collapse-icon/collapse-icon.component.js +21 -9
  71. package/collapse-icon/collapse-icon.types.js +1 -1
  72. package/collapse-icon/index.js +1 -1
  73. package/color-icon/assets/index.js +1 -1
  74. package/color-icon/color-icon.component.js +21 -9
  75. package/color-icon/color-icon.types.js +1 -1
  76. package/color-icon/index.js +1 -1
  77. package/comment-icon/assets/index.js +1 -1
  78. package/comment-icon/comment-icon.component.js +21 -9
  79. package/comment-icon/comment-icon.types.js +1 -1
  80. package/comment-icon/index.js +1 -1
  81. package/copy-icon/assets/index.js +1 -1
  82. package/copy-icon/copy-icon.component.js +21 -9
  83. package/copy-icon/copy-icon.types.js +1 -1
  84. package/copy-icon/index.js +1 -1
  85. package/danger-triangle-icon/assets/index.js +1 -1
  86. package/danger-triangle-icon/danger-triangle-icon.component.js +21 -9
  87. package/danger-triangle-icon/danger-triangle-icon.types.js +1 -1
  88. package/danger-triangle-icon/index.js +1 -1
  89. package/device-icon/assets/index.js +1 -1
  90. package/device-icon/device-icon.component.js +22 -9
  91. package/device-icon/device-icon.types.js +1 -1
  92. package/device-icon/index.js +1 -1
  93. package/docs-icon/assets/index.js +1 -1
  94. package/docs-icon/docs-icon.component.js +21 -9
  95. package/docs-icon/docs-icon.types.js +1 -1
  96. package/docs-icon/index.js +1 -1
  97. package/document-icon/assets/index.js +1 -1
  98. package/document-icon/document-icon.component.js +21 -9
  99. package/document-icon/document-icon.types.js +1 -1
  100. package/document-icon/index.js +1 -1
  101. package/double-chevron-icon/assets/index.js +1 -1
  102. package/double-chevron-icon/double-chevron-icon.component.js +21 -9
  103. package/double-chevron-icon/double-chevron-icon.types.js +1 -1
  104. package/double-chevron-icon/index.js +1 -1
  105. package/download-icon/assets/index.js +1 -1
  106. package/download-icon/download-icon.component.js +21 -9
  107. package/download-icon/download-icon.types.js +1 -1
  108. package/download-icon/index.js +1 -1
  109. package/drag-icon/assets/index.js +1 -1
  110. package/drag-icon/drag-icon.component.js +20 -9
  111. package/drag-icon/drag-icon.types.js +1 -1
  112. package/drag-icon/index.js +1 -1
  113. package/dropdown-icon/assets/index.js +1 -1
  114. package/dropdown-icon/dropdown-icon.component.js +21 -9
  115. package/dropdown-icon/dropdown-icon.types.js +1 -1
  116. package/dropdown-icon/index.js +1 -1
  117. package/edit-icon/assets/index.js +1 -1
  118. package/edit-icon/edit-icon.component.js +21 -9
  119. package/edit-icon/edit-icon.types.js +1 -1
  120. package/edit-icon/index.js +1 -1
  121. package/email-icon/assets/index.js +1 -1
  122. package/email-icon/email-icon.component.js +21 -9
  123. package/email-icon/email-icon.types.js +1 -1
  124. package/email-icon/index.js +1 -1
  125. package/emoji-icon/assets/index.js +1 -1
  126. package/emoji-icon/emoji-icon.component.js +21 -9
  127. package/emoji-icon/emoji-icon.types.js +1 -1
  128. package/emoji-icon/index.js +1 -1
  129. package/expand-icon/assets/index.js +1 -1
  130. package/expand-icon/expand-icon.component.js +21 -9
  131. package/expand-icon/expand-icon.types.js +1 -1
  132. package/expand-icon/index.js +1 -1
  133. package/filter-icon/assets/index.js +1 -1
  134. package/filter-icon/filter-icon.component.js +21 -9
  135. package/filter-icon/filter-icon.types.js +1 -1
  136. package/filter-icon/index.js +1 -1
  137. package/finish-icon/assets/index.js +1 -1
  138. package/finish-icon/finish-icon.component.js +21 -9
  139. package/finish-icon/finish-icon.types.js +1 -1
  140. package/finish-icon/index.js +1 -1
  141. package/flash-icon/assets/index.js +1 -1
  142. package/flash-icon/flash-icon.component.js +21 -9
  143. package/flash-icon/flash-icon.types.js +1 -1
  144. package/flash-icon/index.js +1 -1
  145. package/folder-icon/assets/index.js +1 -1
  146. package/folder-icon/folder-icon.component.js +21 -9
  147. package/folder-icon/folder-icon.types.js +1 -1
  148. package/folder-icon/index.js +1 -1
  149. package/funnel-icon/assets/index.js +1 -1
  150. package/funnel-icon/funnel-icon.component.js +21 -9
  151. package/funnel-icon/funnel-icon.types.js +1 -1
  152. package/funnel-icon/index.js +1 -1
  153. package/help-round-icon/assets/index.js +1 -1
  154. package/help-round-icon/help-round-icon.component.js +21 -9
  155. package/help-round-icon/help-round-icon.types.js +1 -1
  156. package/help-round-icon/index.js +1 -1
  157. package/history-icon/assets/index.js +1 -1
  158. package/history-icon/history-icon.component.js +21 -9
  159. package/history-icon/history-icon.types.js +1 -1
  160. package/history-icon/index.js +1 -1
  161. package/home-icon/assets/index.js +1 -1
  162. package/home-icon/home-icon.component.js +21 -9
  163. package/home-icon/home-icon.types.js +1 -1
  164. package/home-icon/index.js +1 -1
  165. package/icon.styles.js +14 -15
  166. package/image-icon/assets/index.js +1 -1
  167. package/image-icon/image-icon.component.js +21 -9
  168. package/image-icon/image-icon.types.js +1 -1
  169. package/image-icon/index.js +1 -1
  170. package/index.js +1 -1
  171. package/industry-icon/assets/index.js +1 -1
  172. package/industry-icon/index.js +1 -1
  173. package/industry-icon/industry-icon.component.js +21 -9
  174. package/industry-icon/industry-icon.types.js +1 -1
  175. package/infinity-icon/assets/index.js +1 -1
  176. package/infinity-icon/index.js +1 -1
  177. package/infinity-icon/infinity-icon.component.js +21 -9
  178. package/infinity-icon/infinity-icon.types.js +1 -1
  179. package/info-round-icon/assets/index.js +1 -1
  180. package/info-round-icon/index.js +1 -1
  181. package/info-round-icon/info-round-icon.component.js +21 -9
  182. package/info-round-icon/info-round-icon.types.js +1 -1
  183. package/journey-icon/assets/index.js +1 -1
  184. package/journey-icon/index.js +1 -1
  185. package/journey-icon/journey-icon.component.js +21 -9
  186. package/journey-icon/journey-icon.types.js +1 -1
  187. package/kebab-icon/assets/index.js +1 -1
  188. package/kebab-icon/index.js +1 -1
  189. package/kebab-icon/kebab-icon.component.js +20 -9
  190. package/kebab-icon/kebab-icon.types.js +1 -1
  191. package/key-icon/assets/index.js +1 -1
  192. package/key-icon/index.js +1 -1
  193. package/key-icon/key-icon.component.js +21 -9
  194. package/key-icon/key-icon.types.js +1 -1
  195. package/language-icon/assets/index.js +1 -1
  196. package/language-icon/index.js +1 -1
  197. package/language-icon/language-icon.component.js +21 -9
  198. package/language-icon/language-icon.types.js +1 -1
  199. package/layers-icon/assets/index.js +1 -1
  200. package/layers-icon/index.js +1 -1
  201. package/layers-icon/layers-icon.component.js +21 -9
  202. package/layers-icon/layers-icon.types.js +1 -1
  203. package/limit-icon/assets/index.js +1 -1
  204. package/limit-icon/index.js +1 -1
  205. package/limit-icon/limit-icon.component.js +21 -9
  206. package/limit-icon/limit-icon.types.js +1 -1
  207. package/link-icon/assets/index.js +1 -1
  208. package/link-icon/index.js +1 -1
  209. package/link-icon/link-icon.component.js +21 -9
  210. package/link-icon/link-icon.types.js +1 -1
  211. package/list-icon/assets/index.js +1 -1
  212. package/list-icon/index.js +1 -1
  213. package/list-icon/list-icon.component.js +21 -9
  214. package/list-icon/list-icon.types.js +1 -1
  215. package/lock-icon/assets/index.js +1 -1
  216. package/lock-icon/index.js +1 -1
  217. package/lock-icon/lock-icon.component.js +21 -9
  218. package/lock-icon/lock-icon.types.js +1 -1
  219. package/login-icon/assets/index.js +1 -1
  220. package/login-icon/index.js +1 -1
  221. package/login-icon/login-icon.component.js +21 -9
  222. package/login-icon/login-icon.types.js +1 -1
  223. package/logout-icon/assets/index.js +1 -1
  224. package/logout-icon/index.js +1 -1
  225. package/logout-icon/logout-icon.component.js +21 -9
  226. package/logout-icon/logout-icon.types.js +1 -1
  227. package/menu-icon/assets/index.js +1 -1
  228. package/menu-icon/index.js +1 -1
  229. package/menu-icon/menu-icon.component.js +20 -9
  230. package/menu-icon/menu-icon.types.js +1 -1
  231. package/minus-icon/assets/index.js +1 -1
  232. package/minus-icon/index.js +1 -1
  233. package/minus-icon/minus-icon.component.js +20 -9
  234. package/minus-icon/minus-icon.types.js +1 -1
  235. package/minus-round-icon/assets/index.js +1 -1
  236. package/minus-round-icon/index.js +1 -1
  237. package/minus-round-icon/minus-round-icon.component.js +21 -9
  238. package/minus-round-icon/minus-round-icon.types.js +1 -1
  239. package/more-icon/assets/index.js +1 -1
  240. package/more-icon/index.js +1 -1
  241. package/more-icon/more-icon.component.js +20 -9
  242. package/more-icon/more-icon.types.js +1 -1
  243. package/notes-list-icon/assets/index.js +1 -1
  244. package/notes-list-icon/index.js +1 -1
  245. package/notes-list-icon/notes-list-icon.component.js +21 -9
  246. package/notes-list-icon/notes-list-icon.types.js +1 -1
  247. package/notification-icon/assets/index.js +1 -1
  248. package/notification-icon/index.js +1 -1
  249. package/notification-icon/notification-icon.component.js +22 -9
  250. package/notification-icon/notification-icon.types.js +1 -1
  251. package/open-icon/assets/index.js +1 -1
  252. package/open-icon/index.js +1 -1
  253. package/open-icon/open-icon.component.js +21 -9
  254. package/open-icon/open-icon.types.js +1 -1
  255. package/package.json +8 -40
  256. package/pause-round-icon/assets/index.js +1 -1
  257. package/pause-round-icon/index.js +1 -1
  258. package/pause-round-icon/pause-round-icon.component.js +21 -9
  259. package/pause-round-icon/pause-round-icon.types.js +1 -1
  260. package/photo-icon/assets/index.js +1 -1
  261. package/photo-icon/index.js +1 -1
  262. package/photo-icon/photo-icon.component.js +21 -9
  263. package/photo-icon/photo-icon.types.js +1 -1
  264. package/place-icon/assets/index.js +1 -1
  265. package/place-icon/index.js +1 -1
  266. package/place-icon/place-icon.component.js +21 -9
  267. package/place-icon/place-icon.types.js +1 -1
  268. package/platform-logo-icon/assets/index.js +1 -1
  269. package/platform-logo-icon/index.js +1 -1
  270. package/platform-logo-icon/platform-logo-icon.component.js +26 -10
  271. package/platform-logo-icon/platform-logo-icon.types.js +1 -1
  272. package/play-round-icon/assets/index.js +1 -1
  273. package/play-round-icon/index.js +1 -1
  274. package/play-round-icon/play-round-icon.component.js +21 -9
  275. package/play-round-icon/play-round-icon.types.js +1 -1
  276. package/plugin-icon/assets/index.js +1 -1
  277. package/plugin-icon/index.js +1 -1
  278. package/plugin-icon/plugin-icon.component.js +21 -9
  279. package/plugin-icon/plugin-icon.types.js +1 -1
  280. package/plus-icon/assets/index.js +1 -1
  281. package/plus-icon/index.js +1 -1
  282. package/plus-icon/plus-icon.component.js +20 -9
  283. package/plus-icon/plus-icon.types.js +1 -1
  284. package/plus-round-icon/assets/index.js +1 -1
  285. package/plus-round-icon/index.js +1 -1
  286. package/plus-round-icon/plus-round-icon.component.js +21 -9
  287. package/plus-round-icon/plus-round-icon.types.js +1 -1
  288. package/profile-icon/assets/index.js +1 -1
  289. package/profile-icon/index.js +1 -1
  290. package/profile-icon/profile-icon.component.js +21 -9
  291. package/profile-icon/profile-icon.types.js +1 -1
  292. package/pulse-icon/assets/index.js +1 -1
  293. package/pulse-icon/index.js +1 -1
  294. package/pulse-icon/pulse-icon.component.js +21 -9
  295. package/pulse-icon/pulse-icon.types.js +1 -1
  296. package/push-icon/assets/index.js +1 -1
  297. package/push-icon/index.js +1 -1
  298. package/push-icon/push-icon.component.js +21 -9
  299. package/push-icon/push-icon.types.js +1 -1
  300. package/refresh-icon/assets/index.js +1 -1
  301. package/refresh-icon/index.js +1 -1
  302. package/refresh-icon/refresh-icon.component.js +21 -9
  303. package/refresh-icon/refresh-icon.types.js +1 -1
  304. package/reload-icon/assets/index.js +1 -1
  305. package/reload-icon/index.js +1 -1
  306. package/reload-icon/reload-icon.component.js +21 -9
  307. package/reload-icon/reload-icon.types.js +1 -1
  308. package/reward-icon/assets/index.js +1 -1
  309. package/reward-icon/index.js +1 -1
  310. package/reward-icon/reward-icon.component.js +21 -9
  311. package/reward-icon/reward-icon.types.js +1 -1
  312. package/search-icon/assets/index.js +1 -1
  313. package/search-icon/index.js +1 -1
  314. package/search-icon/search-icon.component.js +21 -9
  315. package/search-icon/search-icon.types.js +1 -1
  316. package/secure-icon/assets/index.js +1 -1
  317. package/secure-icon/index.js +1 -1
  318. package/secure-icon/secure-icon.component.js +21 -9
  319. package/secure-icon/secure-icon.types.js +1 -1
  320. package/send-icon/assets/index.js +1 -1
  321. package/send-icon/index.js +1 -1
  322. package/send-icon/send-icon.component.js +21 -9
  323. package/send-icon/send-icon.types.js +1 -1
  324. package/settings-icon/assets/index.js +1 -1
  325. package/settings-icon/index.js +1 -1
  326. package/settings-icon/settings-icon.component.js +21 -9
  327. package/settings-icon/settings-icon.types.js +1 -1
  328. package/social-logo-icon/assets/index.js +1 -1
  329. package/social-logo-icon/index.js +1 -1
  330. package/social-logo-icon/social-logo-icon.component.js +22 -9
  331. package/social-logo-icon/social-logo-icon.types.js +1 -1
  332. package/sort-icon/assets/index.js +1 -1
  333. package/sort-icon/index.js +1 -1
  334. package/sort-icon/sort-icon.component.js +21 -9
  335. package/sort-icon/sort-icon.types.js +1 -1
  336. package/stats-icon/assets/index.js +1 -1
  337. package/stats-icon/index.js +1 -1
  338. package/stats-icon/stats-icon.component.js +21 -9
  339. package/stats-icon/stats-icon.types.js +1 -1
  340. package/stop-icon/assets/index.js +1 -1
  341. package/stop-icon/index.js +1 -1
  342. package/stop-icon/stop-icon.component.js +21 -9
  343. package/stop-icon/stop-icon.types.js +1 -1
  344. package/super-user-icon/assets/index.js +1 -1
  345. package/super-user-icon/index.js +1 -1
  346. package/super-user-icon/super-user-icon.component.js +21 -9
  347. package/super-user-icon/super-user-icon.types.js +1 -1
  348. package/tag-icon/assets/index.js +1 -1
  349. package/tag-icon/index.js +1 -1
  350. package/tag-icon/tag-icon.component.js +21 -9
  351. package/tag-icon/tag-icon.types.js +1 -1
  352. package/tiles-icon/assets/index.js +1 -1
  353. package/tiles-icon/index.js +1 -1
  354. package/tiles-icon/tiles-icon.component.js +21 -9
  355. package/tiles-icon/tiles-icon.types.js +1 -1
  356. package/time-icon/assets/index.js +1 -1
  357. package/time-icon/index.js +1 -1
  358. package/time-icon/time-icon.component.js +21 -9
  359. package/time-icon/time-icon.types.js +1 -1
  360. package/trash-icon/assets/index.js +1 -1
  361. package/trash-icon/index.js +1 -1
  362. package/trash-icon/trash-icon.component.js +21 -9
  363. package/trash-icon/trash-icon.types.js +1 -1
  364. package/trophy-icon/assets/index.js +1 -1
  365. package/trophy-icon/index.js +1 -1
  366. package/trophy-icon/trophy-icon.component.js +21 -9
  367. package/trophy-icon/trophy-icon.types.js +1 -1
  368. package/tutorial-icon/assets/index.js +1 -1
  369. package/tutorial-icon/index.js +1 -1
  370. package/tutorial-icon/tutorial-icon.component.js +21 -9
  371. package/tutorial-icon/tutorial-icon.types.js +1 -1
  372. package/upload-icon/assets/index.js +1 -1
  373. package/upload-icon/index.js +1 -1
  374. package/upload-icon/upload-icon.component.js +21 -9
  375. package/upload-icon/upload-icon.types.js +1 -1
  376. package/user-icon/assets/index.js +1 -1
  377. package/user-icon/index.js +1 -1
  378. package/user-icon/user-icon.component.js +21 -9
  379. package/user-icon/user-icon.types.js +1 -1
  380. package/visibility-icon/assets/index.js +1 -1
  381. package/visibility-icon/index.js +1 -1
  382. package/visibility-icon/visibility-icon.component.js +22 -9
  383. package/visibility-icon/visibility-icon.types.js +1 -1
  384. package/warning-round-icon/assets/index.js +1 -1
  385. package/warning-round-icon/index.js +1 -1
  386. package/warning-round-icon/warning-round-icon.component.js +21 -9
  387. package/warning-round-icon/warning-round-icon.types.js +1 -1
  388. package/wizard-icon/assets/index.js +1 -1
  389. package/wizard-icon/index.js +1 -1
  390. package/wizard-icon/wizard-icon.component.js +21 -9
  391. package/wizard-icon/wizard-icon.types.js +1 -1
  392. package/zoom-icon/assets/index.js +1 -1
  393. package/zoom-icon/index.js +1 -1
  394. package/zoom-icon/zoom-icon.component.js +22 -9
  395. package/zoom-icon/zoom-icon.types.js +1 -1
@@ -2,12 +2,23 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function MenuIcon(props) {
5
- const { boxRef, size, ...rest } = props;
6
- const Icon = AssetMap[size];
7
- if (Icon == null) {
8
- console.error('[MenuIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ ...rest
9
+ } = props;
10
+ const Icon = AssetMap[size];
11
+ if (Icon == null) {
12
+ console.error('[MenuIcon]: Icon not found!');
13
+ return React.createElement(IconBox, {
14
+ ...rest,
15
+ size: size,
16
+ ref: boxRef
17
+ });
18
+ }
19
+ return React.createElement(IconBox, {
20
+ ...rest,
21
+ size: size,
22
+ ref: boxRef
23
+ }, React.createElement(Icon, null));
24
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -3,7 +3,7 @@
3
3
 
4
4
  import MinusMediumIcon from "./name_minus_size_medium.js";
5
5
  import MinusSmallIcon from "./name_minus_size_small.js";
6
- export var AssetMap = {
6
+ export const AssetMap = {
7
7
  'medium': MinusMediumIcon,
8
8
  'small': MinusSmallIcon
9
9
  };
@@ -1,2 +1,2 @@
1
1
  export * from './minus-icon.component';
2
- export * from './minus-icon.types';
2
+ export * from './minus-icon.types';
@@ -2,12 +2,23 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function MinusIcon(props) {
5
- const { boxRef, size, ...rest } = props;
6
- const Icon = AssetMap[size];
7
- if (Icon == null) {
8
- console.error('[MinusIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ ...rest
9
+ } = props;
10
+ const Icon = AssetMap[size];
11
+ if (Icon == null) {
12
+ console.error('[MinusIcon]: Icon not found!');
13
+ return React.createElement(IconBox, {
14
+ ...rest,
15
+ size: size,
16
+ ref: boxRef
17
+ });
18
+ }
19
+ return React.createElement(IconBox, {
20
+ ...rest,
21
+ size: size,
22
+ ref: boxRef
23
+ }, React.createElement(Icon, null));
24
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -5,7 +5,7 @@ import MinusRoundMediumFilledIcon from "./name_minus_round_size_medium_view_fill
5
5
  import MinusRoundMediumLinedIcon from "./name_minus_round_size_medium_view_lined.js";
6
6
  import MinusRoundSmallFilledIcon from "./name_minus_round_size_small_view_filled.js";
7
7
  import MinusRoundSmallLinedIcon from "./name_minus_round_size_small_view_lined.js";
8
- export var AssetMap = {
8
+ export const AssetMap = {
9
9
  'medium': {
10
10
  'filled': MinusRoundMediumFilledIcon,
11
11
  'lined': MinusRoundMediumLinedIcon
@@ -1,2 +1,2 @@
1
1
  export * from './minus-round-icon.component';
2
- export * from './minus-round-icon.types';
2
+ export * from './minus-round-icon.types';
@@ -2,12 +2,24 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function MinusRoundIcon(props) {
5
- const { boxRef, size, view, ...rest } = props;
6
- const Icon = AssetMap[size][view];
7
- if (Icon == null) {
8
- console.error('[MinusRoundIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ view,
9
+ ...rest
10
+ } = props;
11
+ const Icon = AssetMap[size][view];
12
+ if (Icon == null) {
13
+ console.error('[MinusRoundIcon]: Icon not found!');
14
+ return React.createElement(IconBox, {
15
+ ...rest,
16
+ size: size,
17
+ ref: boxRef
18
+ });
19
+ }
20
+ return React.createElement(IconBox, {
21
+ ...rest,
22
+ size: size,
23
+ ref: boxRef
24
+ }, React.createElement(Icon, null));
25
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -3,7 +3,7 @@
3
3
 
4
4
  import MoreMediumIcon from "./name_more_size_medium.js";
5
5
  import MoreSmallIcon from "./name_more_size_small.js";
6
- export var AssetMap = {
6
+ export const AssetMap = {
7
7
  'medium': MoreMediumIcon,
8
8
  'small': MoreSmallIcon
9
9
  };
@@ -1,2 +1,2 @@
1
1
  export * from './more-icon.component';
2
- export * from './more-icon.types';
2
+ export * from './more-icon.types';
@@ -2,12 +2,23 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function MoreIcon(props) {
5
- const { boxRef, size, ...rest } = props;
6
- const Icon = AssetMap[size];
7
- if (Icon == null) {
8
- console.error('[MoreIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ ...rest
9
+ } = props;
10
+ const Icon = AssetMap[size];
11
+ if (Icon == null) {
12
+ console.error('[MoreIcon]: Icon not found!');
13
+ return React.createElement(IconBox, {
14
+ ...rest,
15
+ size: size,
16
+ ref: boxRef
17
+ });
18
+ }
19
+ return React.createElement(IconBox, {
20
+ ...rest,
21
+ size: size,
22
+ ref: boxRef
23
+ }, React.createElement(Icon, null));
24
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -2,7 +2,7 @@
2
2
  /* eslint @typescript-eslint/comma-dangle: off */
3
3
 
4
4
  import NotesListMediumLinedIcon from "./name_notes_list_size_medium_view_lined.js";
5
- export var AssetMap = {
5
+ export const AssetMap = {
6
6
  'medium': {
7
7
  'lined': NotesListMediumLinedIcon
8
8
  }
@@ -1,2 +1,2 @@
1
1
  export * from './notes-list-icon.component';
2
- export * from './notes-list-icon.types';
2
+ export * from './notes-list-icon.types';
@@ -2,12 +2,24 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function NotesListIcon(props) {
5
- const { boxRef, size, view, ...rest } = props;
6
- const Icon = AssetMap[size][view];
7
- if (Icon == null) {
8
- console.error('[NotesListIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ view,
9
+ ...rest
10
+ } = props;
11
+ const Icon = AssetMap[size][view];
12
+ if (Icon == null) {
13
+ console.error('[NotesListIcon]: Icon not found!');
14
+ return React.createElement(IconBox, {
15
+ ...rest,
16
+ size: size,
17
+ ref: boxRef
18
+ });
19
+ }
20
+ return React.createElement(IconBox, {
21
+ ...rest,
22
+ size: size,
23
+ ref: boxRef
24
+ }, React.createElement(Icon, null));
25
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -13,7 +13,7 @@ import NotificationSmallEnabledFilledIcon from "./name_notification_size_small_t
13
13
  import NotificationSmallEnabledLinedIcon from "./name_notification_size_small_type_enabled_view_lined.js";
14
14
  import NotificationSmallSilentFilledIcon from "./name_notification_size_small_type_silent_view_filled.js";
15
15
  import NotificationSmallSilentLinedIcon from "./name_notification_size_small_type_silent_view_lined.js";
16
- export var AssetMap = {
16
+ export const AssetMap = {
17
17
  'medium': {
18
18
  'disabled': {
19
19
  'filled': NotificationMediumDisabledFilledIcon,
@@ -1,2 +1,2 @@
1
1
  export * from './notification-icon.component';
2
- export * from './notification-icon.types';
2
+ export * from './notification-icon.types';
@@ -2,12 +2,25 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function NotificationIcon(props) {
5
- const { boxRef, size, type, view, ...rest } = props;
6
- const Icon = AssetMap[size][type][view];
7
- if (Icon == null) {
8
- console.error('[NotificationIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ type,
9
+ view,
10
+ ...rest
11
+ } = props;
12
+ const Icon = AssetMap[size][type][view];
13
+ if (Icon == null) {
14
+ console.error('[NotificationIcon]: Icon not found!');
15
+ return React.createElement(IconBox, {
16
+ ...rest,
17
+ size: size,
18
+ ref: boxRef
19
+ });
20
+ }
21
+ return React.createElement(IconBox, {
22
+ ...rest,
23
+ size: size,
24
+ ref: boxRef
25
+ }, React.createElement(Icon, null));
26
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -4,7 +4,7 @@
4
4
  import OpenMediumFilledIcon from "./name_open_size_medium_view_filled.js";
5
5
  import OpenMediumLinedIcon from "./name_open_size_medium_view_lined.js";
6
6
  import OpenSmallLinedIcon from "./name_open_size_small_view_lined.js";
7
- export var AssetMap = {
7
+ export const AssetMap = {
8
8
  'medium': {
9
9
  'filled': OpenMediumFilledIcon,
10
10
  'lined': OpenMediumLinedIcon
@@ -1,2 +1,2 @@
1
1
  export * from './open-icon.component';
2
- export * from './open-icon.types';
2
+ export * from './open-icon.types';
@@ -2,12 +2,24 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function OpenIcon(props) {
5
- const { boxRef, size, view, ...rest } = props;
6
- const Icon = AssetMap[size][view];
7
- if (Icon == null) {
8
- console.error('[OpenIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ view,
9
+ ...rest
10
+ } = props;
11
+ const Icon = AssetMap[size][view];
12
+ if (Icon == null) {
13
+ console.error('[OpenIcon]: Icon not found!');
14
+ return React.createElement(IconBox, {
15
+ ...rest,
16
+ size: size,
17
+ ref: boxRef
18
+ });
19
+ }
20
+ return React.createElement(IconBox, {
21
+ ...rest,
22
+ size: size,
23
+ ref: boxRef
24
+ }, React.createElement(Icon, null));
25
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-icons",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -8,23 +8,15 @@
8
8
  "sideEffects": false,
9
9
  "scripts": {
10
10
  "start": "npm run playground",
11
- "build": "npm run production:library && npm run production:icons && npm run copy:pckg",
12
- "playground": "cross-env NODE_ENV=development webpack-dev-server --config webpack.playground.config.js",
13
- "production:library": "tsc --project tsconfig.library.json",
14
- "production:icons": "cross-env NODE_ENV=production node ./scripts/bundleSVG.js",
15
- "copy:pckg": "cp package.json dist/ && cp .npmrc dist/",
16
- "check": "npm run check:css && npm run check:lint && npm run check:types",
17
- "check:css": "stylelint './**/*.(js|jsx|ts|tsx)'",
11
+ "build": "pushwoosh-engine lib:build && node ./scripts/bundleSVG.js",
12
+ "playground": "pushwoosh-engine lib:playground",
13
+ "check": "npm run check:lint && npm run check:types",
18
14
  "check:lint": "echo \"Run check:lint\" && eslint .",
19
- "check:types": "echo \"Run check:types\" && tsc --project tsconfig.json --noEmit"
15
+ "check:types": "echo \"Run check:types\" && pushwoosh-engine lib:check-types"
20
16
  },
21
17
  "pre-commit": "check",
22
18
  "devDependencies": {
23
- "@babel/core": "^7.16.5",
24
- "@babel/plugin-transform-runtime": "^7.16.5",
25
- "@babel/preset-env": "^7.16.5",
26
- "@babel/preset-react": "^7.24.1",
27
- "@babel/runtime-corejs3": "^7.16.5",
19
+ "@pushwoosh/frontend-builder-engine": "^0.1.4",
28
20
  "@pushwoosh/kit-typography": "^1.0.0",
29
21
  "@svgr/cli": "^8.1.0",
30
22
  "@svgr/core": "^8.1.0",
@@ -32,16 +24,9 @@
32
24
  "@types/react": "^16.14.21",
33
25
  "@types/react-dom": "^16.9.14",
34
26
  "@types/styled-components": "^5.1.18",
35
- "@types/webpack-env": "^1.16.3",
36
27
  "@typescript-eslint/eslint-plugin": "^7.3.1",
37
28
  "@typescript-eslint/parser": "^7.3.1",
38
- "babel-loader": "^9.1.3",
39
- "babel-plugin-styled-components": "^2.0.2",
40
- "clean-webpack-plugin": "^4.0.0",
41
29
  "colors": "^1.4.0",
42
- "commander": "^7.2.0",
43
- "core-js": "^3.20.0",
44
- "cross-env": "^7.0.3",
45
30
  "ejs": "^3.1.6",
46
31
  "eslint": "^8.57.0",
47
32
  "eslint-config-airbnb": "^19.0.4",
@@ -52,36 +37,19 @@
52
37
  "eslint-plugin-jsx-a11y": "^6.5.1",
53
38
  "eslint-plugin-react": "^7.27.1",
54
39
  "eslint-plugin-react-hooks": "^4.3.0",
55
- "glob": "8.1.0",
56
- "html-webpack-plugin": "^5.6.0",
57
40
  "lodash": "^4.17.21",
58
41
  "pre-commit": "^1.2.2",
59
42
  "react": "^16.14.0",
60
43
  "react-dom": "^16.14.0",
61
- "react-refresh": "^0.14.0",
62
44
  "styled-components": "^5.3.3",
63
- "stylelint": "^13.13.1",
64
- "stylelint-config-standard": "^22.0.0",
65
- "stylelint-config-styled-components": "^0.1.1",
66
- "stylelint-processor-styled-components": "^1.10.0",
67
- "ts-loader": "^9.5.1",
68
- "tslib": "^2.3.1",
69
- "typescript": "^5.4.2",
70
- "webpack": "^5.90.3",
71
- "webpack-cli": "^5.1.4",
72
- "webpack-dev-server": "^5.0.4",
73
- "webpack-merge": "^5.8.0"
45
+ "webpack-merge": "^5.10.0"
74
46
  },
75
47
  "peerDependencies": {
76
48
  "react": ">= 16.14.0",
77
49
  "styled-components": ">=5.3.3"
78
50
  },
79
- "overrides": {
80
- "minimatch": "5.1.2",
81
- "glob": "8.1.0"
82
- },
83
51
  "engines": {
84
- "node": ">= 14"
52
+ "node": ">= 18"
85
53
  },
86
54
  "dependencies": {
87
55
  "@pushwoosh/kit-constants": "^1.5.1"
@@ -5,7 +5,7 @@ import PauseRoundMediumFilledIcon from "./name_pause_round_size_medium_view_fill
5
5
  import PauseRoundMediumLinedIcon from "./name_pause_round_size_medium_view_lined.js";
6
6
  import PauseRoundSmallFilledIcon from "./name_pause_round_size_small_view_filled.js";
7
7
  import PauseRoundSmallLinedIcon from "./name_pause_round_size_small_view_lined.js";
8
- export var AssetMap = {
8
+ export const AssetMap = {
9
9
  'medium': {
10
10
  'filled': PauseRoundMediumFilledIcon,
11
11
  'lined': PauseRoundMediumLinedIcon
@@ -1,2 +1,2 @@
1
1
  export * from './pause-round-icon.component';
2
- export * from './pause-round-icon.types';
2
+ export * from './pause-round-icon.types';
@@ -2,12 +2,24 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function PauseRoundIcon(props) {
5
- const { boxRef, size, view, ...rest } = props;
6
- const Icon = AssetMap[size][view];
7
- if (Icon == null) {
8
- console.error('[PauseRoundIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ view,
9
+ ...rest
10
+ } = props;
11
+ const Icon = AssetMap[size][view];
12
+ if (Icon == null) {
13
+ console.error('[PauseRoundIcon]: Icon not found!');
14
+ return React.createElement(IconBox, {
15
+ ...rest,
16
+ size: size,
17
+ ref: boxRef
18
+ });
19
+ }
20
+ return React.createElement(IconBox, {
21
+ ...rest,
22
+ size: size,
23
+ ref: boxRef
24
+ }, React.createElement(Icon, null));
25
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -3,7 +3,7 @@
3
3
 
4
4
  import PhotoMediumFilledIcon from "./name_photo_size_medium_view_filled.js";
5
5
  import PhotoMediumLinedIcon from "./name_photo_size_medium_view_lined.js";
6
- export var AssetMap = {
6
+ export const AssetMap = {
7
7
  'medium': {
8
8
  'filled': PhotoMediumFilledIcon,
9
9
  'lined': PhotoMediumLinedIcon
@@ -1,2 +1,2 @@
1
1
  export * from './photo-icon.component';
2
- export * from './photo-icon.types';
2
+ export * from './photo-icon.types';
@@ -2,12 +2,24 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function PhotoIcon(props) {
5
- const { boxRef, size, view, ...rest } = props;
6
- const Icon = AssetMap[size][view];
7
- if (Icon == null) {
8
- console.error('[PhotoIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ view,
9
+ ...rest
10
+ } = props;
11
+ const Icon = AssetMap[size][view];
12
+ if (Icon == null) {
13
+ console.error('[PhotoIcon]: Icon not found!');
14
+ return React.createElement(IconBox, {
15
+ ...rest,
16
+ size: size,
17
+ ref: boxRef
18
+ });
19
+ }
20
+ return React.createElement(IconBox, {
21
+ ...rest,
22
+ size: size,
23
+ ref: boxRef
24
+ }, React.createElement(Icon, null));
25
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -4,7 +4,7 @@
4
4
  import PlaceMediumLinedIcon from "./name_place_size_medium_view_lined.js";
5
5
  import PlaceSmallFilledIcon from "./name_place_size_small_view_filled.js";
6
6
  import PlaceSmallLinedIcon from "./name_place_size_small_view_lined.js";
7
- export var AssetMap = {
7
+ export const AssetMap = {
8
8
  'medium': {
9
9
  'filled': null,
10
10
  'lined': PlaceMediumLinedIcon
@@ -1,2 +1,2 @@
1
1
  export * from './place-icon.component';
2
- export * from './place-icon.types';
2
+ export * from './place-icon.types';
@@ -2,12 +2,24 @@ import React from 'react';
2
2
  import { IconBox } from '../icon.styles';
3
3
  import { AssetMap } from './assets';
4
4
  export function PlaceIcon(props) {
5
- const { boxRef, size, view, ...rest } = props;
6
- const Icon = AssetMap[size][view];
7
- if (Icon == null) {
8
- console.error('[PlaceIcon]: Icon not found!');
9
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef }));
10
- }
11
- return (React.createElement(IconBox, { ...rest, size: size, ref: boxRef },
12
- React.createElement(Icon, null)));
13
- }
5
+ const {
6
+ boxRef,
7
+ size,
8
+ view,
9
+ ...rest
10
+ } = props;
11
+ const Icon = AssetMap[size][view];
12
+ if (Icon == null) {
13
+ console.error('[PlaceIcon]: Icon not found!');
14
+ return React.createElement(IconBox, {
15
+ ...rest,
16
+ size: size,
17
+ ref: boxRef
18
+ });
19
+ }
20
+ return React.createElement(IconBox, {
21
+ ...rest,
22
+ size: size,
23
+ ref: boxRef
24
+ }, React.createElement(Icon, null));
25
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -14,7 +14,7 @@ import OSXFilledIcon from "./osx_filled.js";
14
14
  import SafariFilledIcon from "./safari_filled.js";
15
15
  import WindowsFilledIcon from "./windows_filled.js";
16
16
  import XiaomiFilledIcon from "./xiaomi_filled.js";
17
- export var AssetMap = {
17
+ export const AssetMap = {
18
18
  amazon: {
19
19
  filled: AmazonFilledIcon,
20
20
  lined: null
@@ -1,2 +1,2 @@
1
1
  export * from './platform-logo-icon.component';
2
- export * from './platform-logo-icon.types';
2
+ export * from './platform-logo-icon.types';