@sproutsocial/racine 19.0.0 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/__flow__/EnumLogoNames.flow.js +1 -1
  3. package/__flow__/Icon/Icon.flow.js +5 -5
  4. package/__flow__/Icon/index.flow.js +2 -0
  5. package/__flow__/LogoViewBoxes.js +2 -4
  6. package/__flow__/index.flow.js +2 -3
  7. package/bin/racine-codemod.js +3 -5
  8. package/codemods/__tests__/icon-library.test.js +17 -2
  9. package/codemods/artifacts/deprecated-icon-map.json +38 -0
  10. package/codemods/artifacts/icon-map.json +343 -0
  11. package/codemods/codemod-docs.js +9 -3
  12. package/codemods/icon-library.js +17 -12
  13. package/codemods/icon-name-substitution.js +4 -5
  14. package/commonjs/Badge/Badge.js +1 -1
  15. package/commonjs/Banner/Banner.js +8 -8
  16. package/commonjs/Breadcrumb/Breadcrumb.js +1 -1
  17. package/commonjs/Card/subComponents.js +8 -2
  18. package/commonjs/Checkbox/Checkbox.js +1 -1
  19. package/commonjs/DatePicker/common.js +2 -2
  20. package/commonjs/Drawer/Drawer.js +1 -1
  21. package/commonjs/Icon/Icon.flow.js +0 -2
  22. package/commonjs/Icon/Icon.js +24 -13
  23. package/commonjs/Icon/index.flow.js +15 -2
  24. package/commonjs/Indicator/Indicator.js +1 -1
  25. package/commonjs/Input/Input.js +2 -2
  26. package/commonjs/Listbox/Listbox.js +1 -1
  27. package/commonjs/LogoViewBoxes.js +2 -4
  28. package/commonjs/Menu/Menu.js +2 -2
  29. package/commonjs/Modal/Modal.js +1 -1
  30. package/commonjs/Select/Select.js +2 -2
  31. package/commonjs/Select/styles.js +3 -4
  32. package/commonjs/Switch/Switch.js +1 -1
  33. package/commonjs/TableHeaderCell/TableHeaderCell.js +3 -3
  34. package/commonjs/TableRowAccordion/TableRowAccordion.js +1 -1
  35. package/commonjs/Toast/Toast.js +5 -5
  36. package/commonjs/ToggleHint/ToggleHint.js +2 -2
  37. package/commonjs/Token/Token.js +2 -2
  38. package/commonjs/index.flow.js +12 -8
  39. package/commonjs/index.js +0 -8
  40. package/commonjs/logoNames.js +1 -1
  41. package/commonjs/utils/mixins.js +1 -1
  42. package/dist/logo.svg +1 -1
  43. package/dist/logoList.js +1 -1
  44. package/dist/types/Badge/BadgeTypes.d.ts +1 -1
  45. package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
  46. package/dist/types/Card/Card.d.ts.map +1 -1
  47. package/dist/types/Card/subComponents.d.ts.map +1 -1
  48. package/dist/types/Card/utils.d.ts +1 -0
  49. package/dist/types/Card/utils.d.ts.map +1 -1
  50. package/dist/types/DatePicker/common.d.ts +4 -2
  51. package/dist/types/DatePicker/common.d.ts.map +1 -1
  52. package/dist/types/EnumLogoNames.d.ts +1 -1
  53. package/dist/types/EnumLogoNames.d.ts.map +1 -1
  54. package/dist/types/Icon/Icon.d.ts +2 -2
  55. package/dist/types/Icon/Icon.d.ts.map +1 -1
  56. package/dist/types/Icon/IconTypes.d.ts +5 -7
  57. package/dist/types/Icon/IconTypes.d.ts.map +1 -1
  58. package/dist/types/Menu/utils/hooks.d.ts +1 -0
  59. package/dist/types/Menu/utils/hooks.d.ts.map +1 -1
  60. package/dist/types/Message/styles.d.ts +1 -0
  61. package/dist/types/Message/styles.d.ts.map +1 -1
  62. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +1 -1
  63. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
  64. package/dist/types/Select/styles.d.ts.map +1 -1
  65. package/dist/types/StatefulStory.d.ts +1 -0
  66. package/dist/types/StatefulStory.d.ts.map +1 -1
  67. package/dist/types/TableRowAccordion/TableRowAccordion.d.ts.map +1 -1
  68. package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
  69. package/dist/types/Token/Token.d.ts.map +1 -1
  70. package/dist/types/TokenInput/TokenInputTypes.d.ts +1 -1
  71. package/dist/types/TokenInput/TokenInputTypes.d.ts.map +1 -1
  72. package/dist/types/index.d.ts +1 -2
  73. package/dist/types/index.d.ts.map +1 -1
  74. package/dist/types/logoNames.d.ts +1 -1
  75. package/dist/types/logoNames.d.ts.map +1 -1
  76. package/lib/Badge/Badge.js +1 -1
  77. package/lib/Banner/Banner.js +8 -8
  78. package/lib/Breadcrumb/Breadcrumb.js +1 -1
  79. package/lib/Card/subComponents.js +8 -2
  80. package/lib/Checkbox/Checkbox.js +1 -1
  81. package/lib/DatePicker/common.js +2 -2
  82. package/lib/Drawer/Drawer.js +1 -1
  83. package/lib/Icon/Icon.flow.js +1 -2
  84. package/lib/Icon/Icon.js +24 -15
  85. package/lib/Icon/index.flow.js +2 -0
  86. package/lib/Indicator/Indicator.js +1 -1
  87. package/lib/Input/Input.js +2 -2
  88. package/lib/Listbox/Listbox.js +1 -1
  89. package/lib/LogoViewBoxes.js +2 -4
  90. package/lib/Menu/Menu.js +2 -2
  91. package/lib/Modal/Modal.js +1 -1
  92. package/lib/Select/Select.js +2 -2
  93. package/lib/Select/styles.js +3 -4
  94. package/lib/Switch/Switch.js +1 -1
  95. package/lib/TableHeaderCell/TableHeaderCell.js +3 -3
  96. package/lib/TableRowAccordion/TableRowAccordion.js +1 -1
  97. package/lib/Toast/Toast.js +5 -5
  98. package/lib/ToggleHint/ToggleHint.js +2 -2
  99. package/lib/Token/Token.js +2 -2
  100. package/lib/index.flow.js +1 -1
  101. package/lib/index.js +0 -1
  102. package/lib/logoNames.js +1 -1
  103. package/lib/utils/mixins.js +1 -1
  104. package/package.json +20 -18
  105. package/__flow__/EnumIconNames.flow.js +0 -2
  106. package/__flow__/Icon/deprecatedIcons.flow.js +0 -40
  107. package/__flow__/IconViewBoxes.js +0 -387
  108. package/commonjs/EnumIconNames.js +0 -5
  109. package/commonjs/Icon/deprecatedIcons.flow.js +0 -46
  110. package/commonjs/Icon/deprecatedIcons.js +0 -46
  111. package/commonjs/IconViewBoxes.d.js +0 -5
  112. package/commonjs/IconViewBoxes.js +0 -389
  113. package/commonjs/iconNames.js +0 -8
  114. package/dist/icon.svg +0 -1
  115. package/dist/iconList.js +0 -1
  116. package/dist/types/EnumIconNames.d.ts +0 -2
  117. package/dist/types/EnumIconNames.d.ts.map +0 -1
  118. package/dist/types/Icon/deprecatedIcons.d.ts +0 -40
  119. package/dist/types/Icon/deprecatedIcons.d.ts.map +0 -1
  120. package/dist/types/iconNames.d.ts +0 -3
  121. package/dist/types/iconNames.d.ts.map +0 -1
  122. package/icons/active-listener.svg +0 -3
  123. package/icons/add-item.svg +0 -3
  124. package/icons/add-keyword.svg +0 -3
  125. package/icons/add-team-member.svg +0 -3
  126. package/icons/add-variable.svg +0 -3
  127. package/icons/address-card-outline.svg +0 -3
  128. package/icons/address-card-solid.svg +0 -3
  129. package/icons/adobe-experience-manager.svg +0 -3
  130. package/icons/ads.svg +0 -3
  131. package/icons/advocacy-outline.svg +0 -5
  132. package/icons/advocacy.svg +0 -3
  133. package/icons/android.svg +0 -3
  134. package/icons/apple.svg +0 -3
  135. package/icons/approval-indicator-outline.svg +0 -3
  136. package/icons/approval-indicator.svg +0 -3
  137. package/icons/archive.svg +0 -3
  138. package/icons/arrow-down-line.svg +0 -3
  139. package/icons/arrow-down.svg +0 -3
  140. package/icons/arrow-left-line.svg +0 -3
  141. package/icons/arrow-left.svg +0 -3
  142. package/icons/arrow-right-line.svg +0 -3
  143. package/icons/arrow-right.svg +0 -3
  144. package/icons/arrow-up-line.svg +0 -3
  145. package/icons/arrow-up.svg +0 -3
  146. package/icons/arrows.svg +0 -3
  147. package/icons/asset-library-outline.svg +0 -3
  148. package/icons/asset-library.svg +0 -3
  149. package/icons/assign.svg +0 -3
  150. package/icons/atom.svg +0 -3
  151. package/icons/audio.svg +0 -3
  152. package/icons/back-to-top.svg +0 -3
  153. package/icons/bambu-icon-outline.svg +0 -3
  154. package/icons/bambu-icon.svg +0 -3
  155. package/icons/barcode.svg +0 -3
  156. package/icons/basketball.svg +0 -3
  157. package/icons/bell-outline.svg +0 -3
  158. package/icons/bigcommerce.svg +0 -3
  159. package/icons/bitly.svg +0 -3
  160. package/icons/bold.svg +0 -3
  161. package/icons/book.svg +0 -3
  162. package/icons/bookmark.svg +0 -3
  163. package/icons/bot.svg +0 -3
  164. package/icons/browser.svg +0 -3
  165. package/icons/business.svg +0 -3
  166. package/icons/calendar-outline.svg +0 -3
  167. package/icons/calendar.svg +0 -3
  168. package/icons/camera-outline.svg +0 -3
  169. package/icons/camera-story.svg +0 -3
  170. package/icons/camera.svg +0 -3
  171. package/icons/campaign.svg +0 -3
  172. package/icons/canva.svg +0 -3
  173. package/icons/carousel.svg +0 -3
  174. package/icons/cart-plus-outline.svg +0 -3
  175. package/icons/cart-plus.svg +0 -3
  176. package/icons/check.svg +0 -3
  177. package/icons/chevron-down-filled.svg +0 -3
  178. package/icons/chevron-down.svg +0 -3
  179. package/icons/chevron-left.svg +0 -3
  180. package/icons/chevron-right.svg +0 -3
  181. package/icons/chevron-up-down-filled.svg +0 -3
  182. package/icons/chevron-up-filled.svg +0 -3
  183. package/icons/chevron-up.svg +0 -3
  184. package/icons/circle+.svg +0 -3
  185. package/icons/circle-check-outline.svg +0 -3
  186. package/icons/circle-check.svg +0 -3
  187. package/icons/circle.svg +0 -3
  188. package/icons/circles.svg +0 -3
  189. package/icons/circlex.svg +0 -3
  190. package/icons/click-to-view.svg +0 -3
  191. package/icons/clicks.svg +0 -3
  192. package/icons/clipboard-outline.svg +0 -3
  193. package/icons/clipboard.svg +0 -3
  194. package/icons/clock.svg +0 -3
  195. package/icons/closed-captioning.svg +0 -3
  196. package/icons/cloud.svg +0 -3
  197. package/icons/code.svg +0 -3
  198. package/icons/columns.svg +0 -3
  199. package/icons/comment-ai-outline.svg +0 -5
  200. package/icons/comment-ai.svg +0 -4
  201. package/icons/comment-alt-outline.svg +0 -3
  202. package/icons/comment-alt.svg +0 -3
  203. package/icons/comment-lines-alt-outline.svg +0 -3
  204. package/icons/comment.svg +0 -3
  205. package/icons/compact-density.svg +0 -3
  206. package/icons/compact-indicator.svg +0 -3
  207. package/icons/comparison.svg +0 -3
  208. package/icons/competitor.svg +0 -3
  209. package/icons/compose.svg +0 -3
  210. package/icons/content-suggestions.svg +0 -3
  211. package/icons/credit-card.svg +0 -3
  212. package/icons/crop.svg +0 -3
  213. package/icons/crown.svg +0 -3
  214. package/icons/dashboard.svg +0 -3
  215. package/icons/deconstructed-negative-sentiment.svg +0 -3
  216. package/icons/deconstructed-neutral-sentiment.svg +0 -3
  217. package/icons/deconstructed-positive-sentiment.svg +0 -3
  218. package/icons/discovery.svg +0 -3
  219. package/icons/dislike-outline.svg +0 -3
  220. package/icons/dislike.svg +0 -3
  221. package/icons/dm-link-outline.svg +0 -3
  222. package/icons/dm-link.svg +0 -3
  223. package/icons/dotdotdot.svg +0 -3
  224. package/icons/download.svg +0 -3
  225. package/icons/drafts-outline.svg +0 -3
  226. package/icons/drafts.svg +0 -3
  227. package/icons/dropbox.svg +0 -3
  228. package/icons/duplicate-outline.svg +0 -3
  229. package/icons/duplicate.svg +0 -3
  230. package/icons/emoji-outline.svg +0 -3
  231. package/icons/emoji.svg +0 -3
  232. package/icons/empty-image.svg +0 -3
  233. package/icons/engagement-per-post.svg +0 -3
  234. package/icons/engagements.svg +0 -3
  235. package/icons/error.svg +0 -3
  236. package/icons/exchange-alt.svg +0 -3
  237. package/icons/expanded-indicator.svg +0 -3
  238. package/icons/export.svg +0 -3
  239. package/icons/extended-circles.svg +0 -3
  240. package/icons/external-link-alt.svg +0 -3
  241. package/icons/external-link.svg +0 -3
  242. package/icons/extreme-negative-sentiment.svg +0 -12
  243. package/icons/eye-outline.svg +0 -3
  244. package/icons/eye-slash-outline.svg +0 -3
  245. package/icons/eye-slash.svg +0 -3
  246. package/icons/eye.svg +0 -3
  247. package/icons/facebook-audience-network.svg +0 -3
  248. package/icons/facebook-branded-content-outline.svg +0 -3
  249. package/icons/facebook-branded-content.svg +0 -3
  250. package/icons/facebook-groups.svg +0 -3
  251. package/icons/facebook.svg +0 -3
  252. package/icons/fb-reactions-angry.svg +0 -19
  253. package/icons/fb-reactions-haha.svg +0 -13
  254. package/icons/fb-reactions-like.svg +0 -11
  255. package/icons/fb-reactions-love.svg +0 -11
  256. package/icons/fb-reactions-sad.svg +0 -12
  257. package/icons/fb-reactions-wow.svg +0 -11
  258. package/icons/feedly.svg +0 -3
  259. package/icons/feeds.svg +0 -3
  260. package/icons/female.svg +0 -3
  261. package/icons/file-chart-line.svg +0 -3
  262. package/icons/file-edit.svg +0 -3
  263. package/icons/file-times-solid.svg +0 -3
  264. package/icons/filter.svg +0 -3
  265. package/icons/flag-outline.svg +0 -3
  266. package/icons/flag.svg +0 -3
  267. package/icons/flat-negative-sentiment-outline.svg +0 -4
  268. package/icons/flat-negative-sentiment.svg +0 -3
  269. package/icons/flat-neutral-sentiment-outline.svg +0 -4
  270. package/icons/flat-neutral-sentiment.svg +0 -3
  271. package/icons/flat-positive-sentiment-outline.svg +0 -4
  272. package/icons/flat-positive-sentiment.svg +0 -3
  273. package/icons/folder-open.svg +0 -3
  274. package/icons/folder.svg +0 -3
  275. package/icons/follow-outline.svg +0 -3
  276. package/icons/follow.svg +0 -3
  277. package/icons/follower-increase.svg +0 -3
  278. package/icons/following.svg +0 -3
  279. package/icons/font.svg +0 -3
  280. package/icons/full-access.svg +0 -3
  281. package/icons/gear.svg +0 -3
  282. package/icons/gears.svg +0 -10
  283. package/icons/github.svg +0 -3
  284. package/icons/glassdoor.svg +0 -3
  285. package/icons/glasses.svg +0 -3
  286. package/icons/globe.svg +0 -3
  287. package/icons/google-analytics-color.svg +0 -11
  288. package/icons/google-business-messages.svg +0 -3
  289. package/icons/google-drive.svg +0 -3
  290. package/icons/google-my-business.svg +0 -20
  291. package/icons/grip.svg +0 -3
  292. package/icons/h1.svg +0 -3
  293. package/icons/h2.svg +0 -3
  294. package/icons/h3.svg +0 -3
  295. package/icons/h4.svg +0 -3
  296. package/icons/hamburger.svg +0 -3
  297. package/icons/hand-sparkle-outline.svg +0 -6
  298. package/icons/hand-sparkle.svg +0 -3
  299. package/icons/hashtag.svg +0 -3
  300. package/icons/headset.svg +0 -3
  301. package/icons/heart-outline.svg +0 -3
  302. package/icons/heart.svg +0 -3
  303. package/icons/heartbeat.svg +0 -3
  304. package/icons/help-alt.svg +0 -3
  305. package/icons/help.svg +0 -3
  306. package/icons/hiking.svg +0 -3
  307. package/icons/history.svg +0 -3
  308. package/icons/home.svg +0 -3
  309. package/icons/hourglass.svg +0 -3
  310. package/icons/hubspot.svg +0 -10
  311. package/icons/image-caption.svg +0 -3
  312. package/icons/image.svg +0 -3
  313. package/icons/images.svg +0 -3
  314. package/icons/impressions-per-post.svg +0 -3
  315. package/icons/impressions.svg +0 -3
  316. package/icons/inactive-listener.svg +0 -3
  317. package/icons/inbox-action.svg +0 -3
  318. package/icons/inbox-views.svg +0 -3
  319. package/icons/inbox.svg +0 -3
  320. package/icons/indicator.svg +0 -3
  321. package/icons/industry.svg +0 -3
  322. package/icons/info.svg +0 -3
  323. package/icons/instagram.svg +0 -3
  324. package/icons/internal-activity-outline.svg +0 -3
  325. package/icons/internal-activity.svg +0 -3
  326. package/icons/italic.svg +0 -3
  327. package/icons/key.svg +0 -3
  328. package/icons/keyboard.svg +0 -3
  329. package/icons/laptop-phone.svg +0 -3
  330. package/icons/large-density.svg +0 -3
  331. package/icons/lift.svg +0 -3
  332. package/icons/like-outline.svg +0 -3
  333. package/icons/like.svg +0 -3
  334. package/icons/link.svg +0 -3
  335. package/icons/linkedin-audience-network.svg +0 -3
  336. package/icons/linkedin.svg +0 -3
  337. package/icons/list-ol.svg +0 -3
  338. package/icons/listening.svg +0 -3
  339. package/icons/lists.svg +0 -3
  340. package/icons/location-outline.svg +0 -3
  341. package/icons/location.svg +0 -3
  342. package/icons/lock.svg +0 -3
  343. package/icons/magic-wand.svg +0 -3
  344. package/icons/male.svg +0 -3
  345. package/icons/marketo.svg +0 -3
  346. package/icons/mention.svg +0 -3
  347. package/icons/message-preview-outline.svg +0 -3
  348. package/icons/message-preview.svg +0 -3
  349. package/icons/message.svg +0 -3
  350. package/icons/messages-outline.svg +0 -3
  351. package/icons/messages.svg +0 -3
  352. package/icons/messenger.svg +0 -11
  353. package/icons/metric-table.svg +0 -3
  354. package/icons/microsoft-dynamics.svg +0 -4
  355. package/icons/minus.svg +0 -3
  356. package/icons/mobile.svg +0 -3
  357. package/icons/monitor.svg +0 -3
  358. package/icons/moon.svg +0 -3
  359. package/icons/negative-sentiment.svg +0 -11
  360. package/icons/neutral-positive-sentiment.svg +0 -13
  361. package/icons/neutral-sentiment.svg +0 -11
  362. package/icons/new-trend.svg +0 -3
  363. package/icons/newspaper.svg +0 -3
  364. package/icons/no-access.svg +0 -3
  365. package/icons/notepad.svg +0 -3
  366. package/icons/notifications-publishing-outline.svg +0 -3
  367. package/icons/notifications-publishing.svg +0 -3
  368. package/icons/notifications.svg +0 -3
  369. package/icons/offline.svg +0 -3
  370. package/icons/online.svg +0 -3
  371. package/icons/paid-promotion-outline.svg +0 -3
  372. package/icons/paid-promotion.svg +0 -3
  373. package/icons/paid.svg +0 -3
  374. package/icons/paint.svg +0 -3
  375. package/icons/palette.svg +0 -3
  376. package/icons/paperclip.svg +0 -3
  377. package/icons/pause.svg +0 -3
  378. package/icons/pencil-outline.svg +0 -3
  379. package/icons/pencil.svg +0 -3
  380. package/icons/person.svg +0 -3
  381. package/icons/phone.svg +0 -3
  382. package/icons/pinterest-boards-outline.svg +0 -3
  383. package/icons/pinterest-boards.svg +0 -3
  384. package/icons/pinterest.svg +0 -3
  385. package/icons/play-circle.svg +0 -3
  386. package/icons/play.svg +0 -3
  387. package/icons/plug.svg +0 -3
  388. package/icons/plus.svg +0 -3
  389. package/icons/positive-sentiment.svg +0 -12
  390. package/icons/power-up-outline.svg +0 -3
  391. package/icons/power-up.svg +0 -3
  392. package/icons/profile-connect.svg +0 -3
  393. package/icons/profile-disconnect.svg +0 -3
  394. package/icons/publishing-outline.svg +0 -3
  395. package/icons/publishing.svg +0 -3
  396. package/icons/puzzle-piece.svg +0 -3
  397. package/icons/qr-code.svg +0 -3
  398. package/icons/queue.svg +0 -3
  399. package/icons/quotes-solid.svg +0 -3
  400. package/icons/recommendation.svg +0 -3
  401. package/icons/reddit-alien.svg +0 -3
  402. package/icons/reddit.svg +0 -3
  403. package/icons/reels-outline.svg +0 -4
  404. package/icons/reels.svg +0 -3
  405. package/icons/referrals.svg +0 -3
  406. package/icons/refresh.svg +0 -3
  407. package/icons/rejected.svg +0 -3
  408. package/icons/reply-outline.svg +0 -3
  409. package/icons/reply.svg +0 -3
  410. package/icons/reporting-period.svg +0 -3
  411. package/icons/reporting.svg +0 -3
  412. package/icons/reports-home.svg +0 -3
  413. package/icons/reports.svg +0 -3
  414. package/icons/retweet.svg +0 -3
  415. package/icons/route.svg +0 -3
  416. package/icons/rss.svg +0 -3
  417. package/icons/sales.svg +0 -3
  418. package/icons/salesforce-cloud.svg +0 -3
  419. package/icons/salesforce.svg +0 -3
  420. package/icons/save-assets.svg +0 -3
  421. package/icons/saved-messages.svg +0 -3
  422. package/icons/saved-reply-outline.svg +0 -3
  423. package/icons/saved-reply.svg +0 -3
  424. package/icons/search.svg +0 -3
  425. package/icons/send-again-outline.svg +0 -4
  426. package/icons/send-again.svg +0 -4
  427. package/icons/sent-message-outline.svg +0 -3
  428. package/icons/sent-message.svg +0 -3
  429. package/icons/share.svg +0 -3
  430. package/icons/shopify.svg +0 -5
  431. package/icons/shopping-bag-outline.svg +0 -3
  432. package/icons/shopping-bag.svg +0 -3
  433. package/icons/show-navigation.svg +0 -3
  434. package/icons/slack.svg +0 -3
  435. package/icons/small-density.svg +0 -3
  436. package/icons/smiley.svg +0 -3
  437. package/icons/some-access.svg +0 -3
  438. package/icons/sparkles.svg +0 -3
  439. package/icons/spike-alert.svg +0 -3
  440. package/icons/star-half-alt-solid.svg +0 -3
  441. package/icons/star-of-life.svg +0 -3
  442. package/icons/star-outline.svg +0 -3
  443. package/icons/star.svg +0 -3
  444. package/icons/sticky-note-outline.svg +0 -3
  445. package/icons/sticky-note.svg +0 -3
  446. package/icons/stories.svg +0 -3
  447. package/icons/story.svg +0 -3
  448. package/icons/suggestions.svg +0 -3
  449. package/icons/sun.svg +0 -3
  450. package/icons/tag-outline.svg +0 -3
  451. package/icons/tag.svg +0 -3
  452. package/icons/targeting-outline.svg +0 -3
  453. package/icons/targeting.svg +0 -3
  454. package/icons/tasks-check.svg +0 -4
  455. package/icons/tasks-outline.svg +0 -3
  456. package/icons/tasks.svg +0 -3
  457. package/icons/team-conversation-outline.svg +0 -3
  458. package/icons/team-conversation.svg +0 -3
  459. package/icons/team-sprout-outline.svg +0 -5
  460. package/icons/team-sprout.svg +0 -4
  461. package/icons/team.svg +0 -3
  462. package/icons/text-asset.svg +0 -3
  463. package/icons/text.svg +0 -3
  464. package/icons/tiktok.svg +0 -5
  465. package/icons/times.svg +0 -3
  466. package/icons/tools.svg +0 -3
  467. package/icons/trash-can-outline.svg +0 -3
  468. package/icons/trash-can.svg +0 -3
  469. package/icons/trend-down.svg +0 -3
  470. package/icons/trend-neutral.svg +0 -3
  471. package/icons/trend-up.svg +0 -3
  472. package/icons/trends.svg +0 -3
  473. package/icons/triangle-black.svg +0 -3
  474. package/icons/triangle.svg +0 -3
  475. package/icons/tripadvisor-circle-outline.svg +0 -3
  476. package/icons/tripadvisor-circle.svg +0 -11
  477. package/icons/tripadvisor.svg +0 -11
  478. package/icons/trophy-outline.svg +0 -3
  479. package/icons/tumblr.svg +0 -3
  480. package/icons/twitter-audience-network.svg +0 -3
  481. package/icons/twitter.svg +0 -3
  482. package/icons/underline.svg +0 -3
  483. package/icons/unfollow-outline.svg +0 -3
  484. package/icons/unfollow.svg +0 -3
  485. package/icons/unlink.svg +0 -3
  486. package/icons/unlock.svg +0 -3
  487. package/icons/upload.svg +0 -3
  488. package/icons/user-circle.svg +0 -3
  489. package/icons/users.svg +0 -3
  490. package/icons/verified.svg +0 -3
  491. package/icons/video-camera-story.svg +0 -3
  492. package/icons/video-camera.svg +0 -3
  493. package/icons/vip.svg +0 -3
  494. package/icons/weight.svg +0 -3
  495. package/icons/whatsapp.svg +0 -20
  496. package/icons/window-maximize.svg +0 -3
  497. package/icons/window-minimize.svg +0 -3
  498. package/icons/window-regular.svg +0 -3
  499. package/icons/window-restore.svg +0 -3
  500. package/icons/woocommerce.svg +0 -3
  501. package/icons/x.svg +0 -3
  502. package/icons/yelp-full-star.svg +0 -3
  503. package/icons/yelp-half-star.svg +0 -4
  504. package/icons/yelp.svg +0 -10
  505. package/icons/youtube.svg +0 -3
  506. package/icons/zendesk.svg +0 -3
  507. package/lib/EnumIconNames.js +0 -1
  508. package/lib/Icon/deprecatedIcons.flow.js +0 -39
  509. package/lib/Icon/deprecatedIcons.js +0 -39
  510. package/lib/IconViewBoxes.d.js +0 -1
  511. package/lib/IconViewBoxes.js +0 -387
  512. package/lib/iconNames.js +0 -1
  513. /package/commonjs/{EnumIconNames.flow.js → react.d.js} +0 -0
  514. /package/lib/{EnumIconNames.flow.js → react.d.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Change Log
2
2
 
3
+ ## 20.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - d3b6122f: **Breaking Change**: Uses @sproutsocial/seeds-icons for Icon assets
8
+
9
+ - Icon assets are now stored in a new package called @sproutsocial/seeds-icons.
10
+ - @sproutsocial/seeds-icons is now a peer and dev dependency of Racine.
11
+ - All icons now have solid and outline variants, with outline being the default. Variants are specified as a part of the icon name (e.g., `bell-solid`); if omitted, the outline version will be rendered by default.
12
+
13
+ To recap the migration steps from our announcement of these changes:
14
+
15
+ - Sprites: Instead of using icon.svg from Racine’s dist/ directory, the sprites should be imported from @sproutsocial/seeds-icons for each category of icons you want to include. Attach these spritesheets to the DOM in the same way you do icon.svg.
16
+ - Dependencies: Add @sproutsocial/seeds-icons to your application’s dependencies.
17
+ - Icons: Most icon names are changing as a part of this refactor. Run the 'icon-library' codemod to automatically update as many icon names as possible. The codemod cannot fix Icon components where the name prop is not a string, but the codemod will (by default) add a code comment when this occurs, to help you find cases where you need to manually update icon names.
18
+ - Icon variants: The codemod may not always map to the correct variant for your use case. In these cases, manually update the variant by updating the icon `name` prop.
19
+
20
+ - d3b6122f: Removes reddit-alien PartnerLogo in favor of reddit
21
+ - The `reddit` PartnerLogo is also updated to look like the `reddit-alien` PartnerLogo did
22
+
23
+ ## 19.0.1
24
+
25
+ ### Patch Changes
26
+
27
+ - 52e76ee2: Overriding the type for `React.HTMLAttributes` so that it included `data-*` attributes
28
+ - This fixes a bug which did not allow passing data attributes on `Input.inputProps`
29
+ - Also updates `React.ComponentProps` since it consumed `React.HTMLAttributes`
30
+ - d9df9d52: Fixing a bug in CardLink component that opened two tabs when clicked
31
+
3
32
  ## 19.0.0
4
33
 
5
34
  ### Major Changes
@@ -1,2 +1,2 @@
1
1
  // @flow
2
- export type EnumLogoNames = "adobe-experience-manager" | "android" | "apple-app-store" | "apple" | "bigcommerce" | "bitly" | "bynder" | "canva" | "dropbox" | "facebook-audience-network" | "facebook" | "facebook-groups" | "facebook-shops" | "feedly" | "github" | "glassdoor" | "google-analytics" | "google-business-messages" | "google-drive" | "google-my-business" | "google-play-store" | "hubspot" | "instagram" | "linkedin-audience-network" | "linkedin" | "marketo" | "messenger" | "microsoft-dynamics" | "pinterest" | "reddit-alien" | "reddit" | "salesforce-cloud" | "salesforce" | "shopify" | "slack" | "sproutsocial" | "tableau" | "tiktok" | "tripadvisor" | "tumblr" | "twitter-audience-network" | "twitter" | "whatsapp" | "woocommerce" | "yelp" | "youtube" | "zendesk";
2
+ export type EnumLogoNames = "adobe-experience-manager" | "android" | "apple-app-store" | "apple" | "bigcommerce" | "bitly" | "bynder" | "canva" | "dropbox" | "facebook-audience-network" | "facebook" | "facebook-groups" | "facebook-shops" | "feedly" | "github" | "glassdoor" | "google-analytics" | "google-business-messages" | "google-drive" | "google-my-business" | "google-play-store" | "hubspot" | "instagram" | "linkedin-audience-network" | "linkedin" | "marketo" | "messenger" | "microsoft-dynamics" | "pinterest" | "reddit" | "salesforce-cloud" | "salesforce" | "shopify" | "slack" | "sproutsocial" | "tableau" | "tiktok" | "tripadvisor" | "tumblr" | "twitter-audience-network" | "twitter" | "whatsapp" | "woocommerce" | "yelp" | "youtube" | "zendesk";
@@ -1,11 +1,10 @@
1
1
  // @flow
2
2
  import * as React from 'react';
3
3
  import type { StyledComponent } from 'styled-components';
4
- import type { EnumIconNames } from "../EnumIconNames.flow";
4
+ import type { EnumIconNames } from '@sproutsocial/seeds-icons';
5
5
  import type { EnumLogoNames } from "../EnumLogoNames.flow";
6
6
  import type { TypeWithDisplayName } from "../types/shared.flow";
7
7
  import type { TypeTheme } from "../types/theme.flow";
8
- import deprecatedIcons from "./deprecatedIcons.flow";
9
8
  export type TypeIconSize = 'mini' // 12x12
10
9
  // TODO: deprecate default in favor of small in future release
11
10
  | 'default' // 16x16
@@ -14,7 +13,8 @@ export type TypeIconSize = 'mini' // 12x12
14
13
  | 'large' // 32x32
15
14
  | 'jumbo'; // 64x64
16
15
 
17
- export type TypeIconName = EnumIconNames | $Keys<typeof deprecatedIcons> | EnumLogoNames;
16
+ export type TypeIconNames = EnumIconNames;
17
+ export type TypeIconName = TypeIconNames | EnumLogoNames;
18
18
  export type TypeIconProps = {
19
19
  /** Name of the icon in the svg sprite */
20
20
  name: TypeIconName,
@@ -28,9 +28,9 @@ export type TypeIconProps = {
28
28
  };
29
29
  export type TypeToggleProps = {
30
30
  /** Name of the icon to be shown in the active state */
31
- activeName: EnumIconNames,
31
+ activeName: TypeIconName,
32
32
  /** Name of the icon to be shown in the inactive state */
33
- inactiveName: EnumIconNames,
33
+ inactiveName: TypeIconName,
34
34
  /** Whether the active icon should be shown or not */
35
35
  isActive: boolean,
36
36
  /** The size of the icon. `small` is the default */
@@ -1,2 +1,4 @@
1
1
  // @flow
2
+ import Icon from "./Icon.flow";
3
+ export { Icon };
2
4
  export * from "./Icon.flow";
@@ -63,10 +63,8 @@ module.exports = {
63
63
  "microsoft-dynamics": "0 0 140 227",
64
64
  "pinterest-dark": "0 0 140 141",
65
65
  "pinterest": "0 0 140 141",
66
- "reddit-alien-dark": "0 0 18 18",
67
- "reddit-alien": "0 0 18 18",
68
- "reddit-dark": "0 0 140 140",
69
- "reddit": "0 0 140 140",
66
+ "reddit-dark": "0 0 18 17",
67
+ "reddit": "0 0 18 17",
70
68
  "salesforce-cloud-dark": "0 0 20 18",
71
69
  "salesforce-cloud": "0 0 20 18",
72
70
  "salesforce-dark": "0 0 140 99",
@@ -1,7 +1,7 @@
1
1
  // @flow
2
2
 
3
3
  /* Asset types */
4
- export type { EnumIconNames } from "./EnumIconNames.flow";
4
+ export type { EnumIconNames } from '@sproutsocial/seeds-icons';
5
5
  export type { EnumIllustrationNames } from "./EnumIllustrationNames.flow";
6
6
  export type { EnumLogoNames } from "./EnumLogoNames.flow";
7
7
 
@@ -35,7 +35,7 @@ export { default as Drawer } from "./Drawer/index.flow";
35
35
  export { default as EmptyState } from "./EmptyState/index.flow";
36
36
  export { default as Fieldset } from "./Fieldset/index.flow";
37
37
  export { default as FormField } from "./FormField/index.flow";
38
- export { default as Icon } from "./Icon/index.flow";
38
+ export * from "./Icon/index.flow";
39
39
  export { default as Image } from "./Image/index.flow";
40
40
  export { default as Indicator } from "./Indicator/index.flow";
41
41
  export { default as Input } from "./Input/index.flow";
@@ -89,7 +89,6 @@ export type { TypeDrawerProps, TypeDrawerCloseButtonProps, TypeDrawerHeaderProps
89
89
  export type { TypeEmptyStateProps } from "./EmptyState/index.flow";
90
90
  export type { TypeFieldsetProps } from "./Fieldset/index.flow";
91
91
  export type { TypeFormFieldProps } from "./FormField/index.flow";
92
- export type { TypeIconProps, TypeIconName, TypeToggleProps } from "./Icon/index.flow";
93
92
  export type { TypeImageProps } from "./Image/index.flow";
94
93
  export type { TypeIndicatorProps } from "./Indicator/index.flow";
95
94
  export type { TypeInputProps } from "./Input/index.flow";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // racine-codemod name-of-transform path/to/src
3
+ // to run codemod: node bin/racine-codemod name-of-transform path/to/src
4
4
  // Respectfully adapted from https://github.com/reactjs/react-codemod/blob/master/bin/react-codemod.js
5
5
 
6
6
  const childProcess = require('child_process');
@@ -61,18 +61,16 @@ const filePath = path.join('../codemods', transform + '.js');
61
61
  const relativePath = path.join(currentDir, dest);
62
62
  const userArgs = [...process.argv]
63
63
  .slice(4)
64
- .map((arg) => arg.replace(/\s/g, ''))
65
- .join(' ');
64
+ .map((arg) => arg.replace(/\s/g, ''));
66
65
 
67
66
  const args = [
68
67
  'jscodeshift',
69
68
  '--',
70
- '--parser=flow',
71
69
  '-t',
72
70
  filePath,
73
71
  relativePath,
74
72
  '--ignore-pattern=**/node_modules/**',
75
- userArgs,
73
+ ...userArgs,
76
74
  ];
77
75
 
78
76
  childProcess.execFileSync('npx', args, {stdio: 'inherit'});
@@ -38,7 +38,7 @@ describe('icon-library codemod', () => {
38
38
  );
39
39
 
40
40
  createTest(
41
- 'ssiconsvg regex replacements',
41
+ 'ssiconsvg icon regex replacements',
42
42
  `<use
43
43
  xlink:href="#ssiconsvg-rejected"
44
44
  xmlns:xlink="http://www.w3.org/1999/xlink"
@@ -49,6 +49,18 @@ describe('icon-library codemod', () => {
49
49
  />`
50
50
  );
51
51
 
52
+ createTest(
53
+ 'ssiconsvg logo regex replacements',
54
+ `<use
55
+ xlink:href="#ssiconsvg-facebook"
56
+ xmlns:xlink="http://www.w3.org/1999/xlink"
57
+ />`,
58
+ `<use
59
+ xlink:href="#sslogosvg-facebook"
60
+ xmlns:xlink="http://www.w3.org/1999/xlink"
61
+ />`
62
+ );
63
+
52
64
  createTest(
53
65
  'icon/iconName regex replacements',
54
66
  `expect(queryByDataQaLabel({icon: 'dashboard'})).toBeFalsy();
@@ -82,7 +94,8 @@ import { Badge, Icon } from '@sproutsocial/racine';
82
94
  // Test shim component adding behavior with a mix of cases.
83
95
  // The valid name Icon is migrated.
84
96
  // The invalid string name Icon prompts a comment. The shim would not help map an invalid string name.
85
- // The variable name Icon is converted to IconShim and does not contribute to the count of issues in the comment.
97
+ // A partner name is left as-is and does not contribute to the count of issues.
98
+ // The variable name Icon is converted to IconShim and does not contribute to the count of issues.
86
99
  createTest(
87
100
  'Add shim component and add comments',
88
101
  `import { Icon } from '@sproutsocial/racine';
@@ -90,6 +103,7 @@ import { Badge, Icon } from '@sproutsocial/racine';
90
103
  <>
91
104
  <Icon name='dashboard' />
92
105
  <Icon name='not-a-real-name' />
106
+ <Icon name='facebook' />
93
107
  <Icon name={iconName} />
94
108
  </>`,
95
109
  `/*TODO (icon-library codemod): Please manually migrate icon names passed to 1 component(s) in this file.
@@ -101,6 +115,7 @@ import { IconShim } from 'script/core/react/IconShim';
101
115
  <>
102
116
  <Icon name='gauge-outline' />
103
117
  <Icon name='not-a-real-name' />
118
+ <Icon name='facebook' />
104
119
  <IconShim name={iconName} />
105
120
  </>`,
106
121
  {
@@ -0,0 +1,38 @@
1
+ {
2
+ "backtotop": "back-to-top",
3
+ "circle-check-filled": "circle-check",
4
+ "circle-check-no-fill": "circle-check",
5
+ "circle-check-inverse-outline": "circle-check-outline",
6
+ "circle-check-inverse": "circle-check-outline",
7
+ "circle+-filled": "plus-outline",
8
+ "circlex-filled": "circle-x-outline",
9
+ "circle+-nofill": "plus-outline",
10
+ "circlex-nofill": "circle-x-outline",
11
+ "creditcard": "credit-card",
12
+ "direct-message": "messages",
13
+ "facebook-nofill": "facebook",
14
+ "googleanalytics": "google-analytics",
15
+ "instagram-brand-keyword": "hashtag",
16
+ "help-white": "help",
17
+ "info-white": "info",
18
+ "instagram-nofill": "instagram",
19
+ "key-circle": "key",
20
+ "key-square": "key",
21
+ "linkedin-nofill": "linkedin",
22
+ "listening-home": "listening",
23
+ "location-pub": "location",
24
+ "location-pub-outline": "location-outline",
25
+ "publishing-calendar": "calendar",
26
+ "qrcode": "qr-code",
27
+ "sparkles-solid": "sparkles",
28
+ "star-inverse": "star-outline",
29
+ "triangle-white": "triangle",
30
+ "triangle-nofill": "triangle",
31
+ "tripadvisor-circle-filled": "tripadvisor-circle",
32
+ "tripadvisor-circle-empty": "tripadvisor-circle-outline",
33
+ "tumblr-square": "tumblr",
34
+ "tumblr-nofill": "tumblr",
35
+ "twitter-business-mention": "search",
36
+ "verified-nofill": "verified",
37
+ "window-maximize-solid": "window-maximize"
38
+ }
@@ -0,0 +1,343 @@
1
+ {
2
+ "active-listener": "listening-outline",
3
+ "add-item": "plus-outline",
4
+ "add-keyword": "plus-outline",
5
+ "add-team-member": "user-plus-outline",
6
+ "add-variable": "curly-brackets-plus-outline",
7
+ "address-card-outline": "profile-card-outline",
8
+ "address-card-solid": "profile-card-solid",
9
+ "ads": "dollar-outline",
10
+ "advocacy-outline": "advocacy-outline",
11
+ "advocacy": "advocacy-solid",
12
+ "approval-indicator-outline": "stamp-outline",
13
+ "approval-indicator": "stamp-solid",
14
+ "archive": "file-box-outline",
15
+ "arrow-down-line": "arrow-down-to-line-outline",
16
+ "arrow-down": "arrow-down-outline",
17
+ "arrow-left-line": "arrow-left-to-line-outline",
18
+ "arrow-left": "arrow-left-outline",
19
+ "arrow-right-line": "arrow-right-to-line-outline",
20
+ "arrow-right": "arrow-right-outline",
21
+ "arrow-up-line": "arrow-up-to-line-outline",
22
+ "arrow-up": "arrow-up-outline",
23
+ "arrows": "arrows-up-down-left-right-outline",
24
+ "asset-library-outline": "asset-library-outline",
25
+ "asset-library": "asset-library-solid",
26
+ "assign": "sitemap-outline",
27
+ "atom": "atom-outline",
28
+ "audio": "audio-outline",
29
+ "back-to-top": "arrow-up-outline",
30
+ "bambu-icon-outline": "bambu-outline",
31
+ "bambu-icon": "bambu-solid",
32
+ "barcode": "barcode-outline",
33
+ "basketball": "basketball-outline",
34
+ "bell-outline": "bell-outline",
35
+ "bold": "bold-outline",
36
+ "book": "book-outline",
37
+ "bookmark-filled": "bookmark-solid",
38
+ "bookmark": "bookmark-outline",
39
+ "bot": "robot-outline",
40
+ "browser": "window-full-outline",
41
+ "bulk-select": "square-check-outline",
42
+ "business": "briefcase-outline",
43
+ "calendar-outline": "calendar-outline",
44
+ "calendar": "calendar-solid",
45
+ "camera-outline": "camera-outline",
46
+ "camera-story": "camera-story-solid",
47
+ "camera": "camera-solid",
48
+ "campaign": "megaphone-outline",
49
+ "carousel": "carousel-outline",
50
+ "cart-plus": "cart-plus-outline",
51
+ "check": "check-outline",
52
+ "chevron-down-filled": "caret-down-outline",
53
+ "chevron-down": "chevron-down-outline",
54
+ "chevron-left": "chevron-left-outline",
55
+ "chevron-right": "chevron-right-outline",
56
+ "chevron-up-down-filled": "caret-up-down-outline",
57
+ "chevron-up-filled": "caret-up-outline",
58
+ "chevron-up": "chevron-up-outline",
59
+ "circle-check-outline": "circle-check-outline",
60
+ "circle-check": "circle-check-solid",
61
+ "circle": "circle-no-fill-outline",
62
+ "circle+": "plus-outline",
63
+ "circles": "large-circle-small-circle-outline",
64
+ "circleX": "circle-x-outline",
65
+ "circlex": "circle-x-outline",
66
+ "click-to-view": "hand-pointer-clicking-outline",
67
+ "clicks": "pointer-outline",
68
+ "clipboard-outline": "clipboard-outline",
69
+ "clipboard": "clipboard-solid",
70
+ "clock": "clock-outline",
71
+ "closed-captioning": "closed-caption-outline",
72
+ "cloud": "cloud-outline",
73
+ "code": "code-outline",
74
+ "columns": "columns-outline",
75
+ "comment-alt-outline": "comments-outline",
76
+ "comment-alt": "comment-solid",
77
+ "comment-lines-alt-outline": "comment-outline",
78
+ "comment": "comments-outline",
79
+ "compact-density": "bars-density-small-outline",
80
+ "compact-indicator": "bars-density-small-outline",
81
+ "comparison": "diamond-vs-outline",
82
+ "competitor": "office-building-outline",
83
+ "compose": "pencil-to-square-outline",
84
+ "content-suggestions": "comment-sparkle-outline",
85
+ "credit-card": "credit-card-outline",
86
+ "crop": "crop-outline",
87
+ "crown": "crown-outline",
88
+ "dashboard": "gauge-outline",
89
+ "deconstructed-negative-sentiment": "expression-frown-outline",
90
+ "deconstructed-neutral-sentiment": "expression-neutral-outline",
91
+ "deconstructed-positive-sentiment": "expression-smile-open-outline",
92
+ "discovery": "compass-outline",
93
+ "dislike-outline": "thumbs-down-outline",
94
+ "dislike": "thumbs-down-solid",
95
+ "dm-link-outline": "comment-plus-outline",
96
+ "dm-link": "comment-plus-solid",
97
+ "doesnt-recommend": "comment-star-slash-outline",
98
+ "dotdotdot": "ellipsis-horizontal-outline",
99
+ "download": "arrow-down-to-bracket-outline",
100
+ "drafts-outline": "paper-outline",
101
+ "drafts": "paper-solid",
102
+ "duplicate-outline": "papers-outline",
103
+ "duplicate": "papers-solid",
104
+ "emoji-outline": "face-smile-outline",
105
+ "emoji": "face-smile-solid",
106
+ "empty-image": "camera-x-outline",
107
+ "engagement-per-post": "comment-outline",
108
+ "engagements": "comments-outline",
109
+ "error": "circle-exclamation-outline",
110
+ "exchange-alt": "arrows-left-right-outline",
111
+ "expanded-indicator": "bars-density-large-outline",
112
+ "export": "square-round-arrow-up-right-outline",
113
+ "extended-circles": "large-circle-small-circle-outline",
114
+ "external-link-alt": "squares-arrow-up-right-outline",
115
+ "external-link": "square-round-arrow-up-right-outline",
116
+ "extreme-negative-sentiment": "face-frown-open-outline",
117
+ "eye-outline": "eye-outline",
118
+ "eye-slash-outline": "eye-slash-outline",
119
+ "eye-slash": "eye-slash-solid",
120
+ "eye": "eye-solid",
121
+ "facebook-branded-content-outline": "handshake-outline",
122
+ "facebook-branded-content": "handshake-solid",
123
+ "feeds": "unordered-list-outline",
124
+ "female": "symbol-venus-outline",
125
+ "file-chart-line": "paper-bars-outline",
126
+ "file-edit": "paper-pencil-outline",
127
+ "file-times-solid": "paper-x-outline",
128
+ "filter": "filter-outline",
129
+ "flag-outline": "flag-outline",
130
+ "flag": "flag-solid",
131
+ "flat-positive-sentiment": "face-smile-outline",
132
+ "flat-positive-sentiment-outline": "face-smile-outline",
133
+ "flat-negative-sentiment": "face-frown-outline",
134
+ "flat-negative-sentiment-outline": "face-frown-outline",
135
+ "flat-neutral-sentiment": "face-neutral-outline",
136
+ "flat-neutral-sentiment-outline": "face-neutral-outline",
137
+ "folder-open": "folder-open-outline",
138
+ "folder": "folder-outline",
139
+ "follow-outline": "user-plus-outline",
140
+ "follow": "user-plus-solid",
141
+ "follower-increase": "user-arrow-up-outline",
142
+ "following": "user-check-outline",
143
+ "font": "font-case-outline",
144
+ "full-access": "circle-fill-outline",
145
+ "gear": "gear-outline",
146
+ "gears": "gear-outline",
147
+ "glasses": "glasses-outline",
148
+ "globe": "globe-outline",
149
+ "google-analytics-color": "google-analytics",
150
+ "grip": "grip-lines-vertical-outline",
151
+ "h1": "h1-outline",
152
+ "h2": "h2-outline",
153
+ "h3": "h3-outline",
154
+ "h4": "h3-outline",
155
+ "hamburger": "horizontal-lines-outline",
156
+ "hand-sparkle-outline": "hand-sparkle-outline",
157
+ "hand-sparkle": "hand-sparkle-solid",
158
+ "hashtag": "hashtag-outline",
159
+ "headset": "headset-outline",
160
+ "heart-outline": "heart-outline",
161
+ "heart": "heart-solid",
162
+ "heartbeat": "heart-pulse-outline",
163
+ "help-alt": "question-mark-outline",
164
+ "help": "circle-question-outline",
165
+ "hiking": "person-hiking-outline",
166
+ "history": "clock-rotate-left-outline",
167
+ "home": "house-outline",
168
+ "hourglass": "hourglass-outline",
169
+ "image-caption": "rectangle-caption-outline",
170
+ "image": "image-outline",
171
+ "images": "images-outline",
172
+ "impressions-per-post": "comment-eye-outline",
173
+ "impressions": "eye-outline",
174
+ "inactive-listener": "file-box-outline",
175
+ "inbox-action": "inbox-check-outline",
176
+ "inbox-views": "inboxes-outline",
177
+ "inbox": "inbox-outline",
178
+ "indicator": "circle-fill-outline",
179
+ "industry": "office-building-outline",
180
+ "info": "circle-i-outline",
181
+ "internal-activity-outline": "clock-rotate-left-outline",
182
+ "internal-activity": "clock-rotate-left-solid",
183
+ "italic": "italics-outline",
184
+ "key": "key-outline",
185
+ "keyboard": "keyboard-outline",
186
+ "laptop-phone": "laptop-mobile-outline",
187
+ "large-density": "bars-density-large-outline",
188
+ "lift": "circle-dollar-arrow-up-outline",
189
+ "like-outline": "thumbs-up-outline",
190
+ "like": "thumbs-up-solid",
191
+ "link": "link-outline",
192
+ "list-ol": "ordered-list-outline",
193
+ "listening": "listening-outline",
194
+ "lists": "unordered-list-outline",
195
+ "location-outline": "location-pin-outline",
196
+ "location": "location-pin-solid",
197
+ "lock": "lock-outline",
198
+ "magic-wand": "magic-wand-outline",
199
+ "male": "symbol-mars-outline",
200
+ "mention": "symbol-at-outline",
201
+ "message-preview-outline": "eye-outline",
202
+ "message-preview": "eye-solid",
203
+ "message": "comment-outline",
204
+ "messages-outline": "envelope-outline",
205
+ "messages": "envelope-solid",
206
+ "metric-table": "metric-table-outline",
207
+ "minus": "minus-outline",
208
+ "mobile": "mobile-outline",
209
+ "monitor": "pulse-outline",
210
+ "moon": "moon-crescent-outline",
211
+ "negative-sentiment": "face-frown-outline",
212
+ "neutral-positive-sentiment": "face-smile-outline",
213
+ "neutral-sentiment": "face-neutral-outline",
214
+ "new-trend": "fire-outline",
215
+ "newspaper": "newspaper-outline",
216
+ "no-access": "circle-minus-outline",
217
+ "no-notifications-filled": "bell-slash-solid",
218
+ "no-notifications": "bell-slash-outline",
219
+ "notepad": "clipboard-outline",
220
+ "notifications-publishing-outline": "alarm-clock-outline",
221
+ "notifications-publishing": "alarm-clock-solid",
222
+ "notifications": "bell-outline",
223
+ "offline": "wifi-slash-outline",
224
+ "online": "wifi-outline",
225
+ "paid-promotion-outline": "circle-dollar-outline",
226
+ "paid-promotion": "circle-dollar-solid",
227
+ "paid": "calculator-outline",
228
+ "paint": "paint-can-outline",
229
+ "palette": "art-palette-outline",
230
+ "paperclip": "paperclip-outline",
231
+ "pause": "pause-outline",
232
+ "pencil-outline": "pencil-outline",
233
+ "pencil": "pencil-solid",
234
+ "person": "user-outline",
235
+ "phone": "phone-outline",
236
+ "pinterest-boards-outline": "mood-boards-outline",
237
+ "pinterest-boards": "mood-boards-solid",
238
+ "play-circle": "play-outline",
239
+ "play": "play-outline",
240
+ "plug": "plug-outline",
241
+ "plus": "plus-outline",
242
+ "positive-sentiment": "face-smile-open-outline",
243
+ "power-up-outline": "lightning-bolt-outline",
244
+ "power-up": "lightning-bolt-solid",
245
+ "profile-connect": "leaf-plus-outline",
246
+ "profile-disconnect": "leaf-minus-outline",
247
+ "publishing-outline": "paper-plane-outline",
248
+ "publishing": "paper-plane-outline",
249
+ "puzzle-piece": "puzzle-piece-outline",
250
+ "qr-code": "qr-code-outline",
251
+ "queue": "queue-outline",
252
+ "recommendation": "comment-star-outline",
253
+ "reels-outline": "reels-outline",
254
+ "reels": "reels-solid",
255
+ "referrals": "star-full-outline",
256
+ "refresh": "arrows-rotate-outline",
257
+ "rejected": "ban-outline",
258
+ "reply-outline": "reply-outline",
259
+ "reply": "reply-solid",
260
+ "reporting-period": "calendar-range-outline",
261
+ "reporting": "chart-bar-simple-outline",
262
+ "reports-home": "four-squares-outline",
263
+ "reports": "chart-pie-outline",
264
+ "retweet": "repost-outline",
265
+ "route": "route-outline",
266
+ "rss": "rss-outline",
267
+ "sales": "dollar-outline",
268
+ "save-assets": "asset-library-plus-outline",
269
+ "saved-messages": "comment-bookmark-outline",
270
+ "saved-reply-outline": "bookmark-reply-outline",
271
+ "saved-reply": "bookmark-reply-solid",
272
+ "search": "magnifying-glass-outline",
273
+ "send-again": "paper-plane-arrows-rotate-solid",
274
+ "send-again-outline": "paper-plane-arrows-rotate-outline",
275
+ "sent-message-outline": "inbox-arrow-up-outline",
276
+ "sent-message": "inbox-arrow-up-solid",
277
+ "share": "square-round-arrow-up-right-outline",
278
+ "shopping-bag-outline": "shopping-bag-outline",
279
+ "shopping-bag": "shopping-bag-solid",
280
+ "show-navigation": "browser-nav-bar-outline",
281
+ "small-density": "bars-density-medium-outline",
282
+ "smiley": "face-smile-outline",
283
+ "some-access": "circle-half-outline",
284
+ "sparkles": "sparkle-outline",
285
+ "spike-alert": "comment-exclamation-outline",
286
+ "star-half-alt-solid": "star-half-outline",
287
+ "star-of-life": "star-of-life-outline",
288
+ "star-outline": "star-outline",
289
+ "star": "star-full-outline",
290
+ "sticky-note-outline": "note-outline",
291
+ "sticky-note": "note-solid",
292
+ "story": "camera-story-outline",
293
+ "stories": "story-outline",
294
+ "suggestions": "comment-light-bulb-outline",
295
+ "sun": "sun-outline",
296
+ "tag-outline": "tag-outline",
297
+ "tag": "tag-solid",
298
+ "targeting-outline": "bullseye-arrow-outline",
299
+ "targeting": "bullseye-arrow-solid",
300
+ "tasks-check-outline": "thumbtack-check-outline",
301
+ "tasks-check": "thumbtack-check-solid",
302
+ "tasks-outline": "thumbtack-outline",
303
+ "tasks": "thumbtack-solid",
304
+ "team-conversation-outline": "sprout-leaf-lightning-bolt-outline",
305
+ "team-conversation": "sprout-leaf-lightning-bolt-solid",
306
+ "team": "users-outline",
307
+ "text-asset": "text-serif-outline",
308
+ "text": "text-serif-outline",
309
+ "times": "x-outline",
310
+ "tools": "screwdriver-hammer-outline",
311
+ "trash-can-outline": "trash-outline",
312
+ "trash-can": "trash-solid",
313
+ "trend-down": "arrow-right-down-outline",
314
+ "trend-up": "arrow-right-up-outline",
315
+ "trend-neutral": "arrow-right-outline",
316
+ "trends": "fire-outline",
317
+ "triangle-black": "triangle-outline",
318
+ "triangle": "triangle-exclamation-outline",
319
+ "trophy-outline": "trophy-outline",
320
+ "underline": "underline-outline",
321
+ "unfollow-outline": "user-x-outline",
322
+ "unfollow": "user-x-solid",
323
+ "unlink": "link-slash-outline",
324
+ "unlock": "unlock-outline",
325
+ "upload": "arrow-up-from-bracket-outline",
326
+ "user-circle": "user-sprout-outline",
327
+ "users": "users-outline",
328
+ "video-camera-story": "video-camera-story-outline",
329
+ "video-camera": "video-camera-outline",
330
+ "vip": "gem-outline",
331
+ "weight": "weight-outline",
332
+ "window-maximize": "window-modal-outline",
333
+ "window-minimize": "window-minimize-outline",
334
+ "window-regular": "browser-outline",
335
+ "window-restore": "browser-restore-outline",
336
+ "x": "x-outline",
337
+ "team-sprout-outline": "team-sprout-outline",
338
+ "team-sprout": "team-sprout-solid",
339
+ "tripadvisor-circle-filled": "tripadvisor-circle-solid",
340
+ "tripadvisor-circle-empty": "tripadvisor-circle-outline",
341
+ "tripadvisor-circle-outline": "tripadvisor-circle-outline",
342
+ "tripadvisor-circle": "tripadvisor-circle-solid"
343
+ }
@@ -8,15 +8,21 @@ const quote = {
8
8
  description:
9
9
  'What kind of quotation marks should be preferred when converting updated files back to JS?',
10
10
  };
11
+ const parser = {
12
+ default: 'babel',
13
+ options: 'babel|babylon|flow|ts|tsx',
14
+ description: 'Which parser should be used to parse files to AST?',
15
+ };
11
16
 
12
17
  module.exports = {
13
18
  'icon-library': {
14
19
  description:
15
20
  'Assists in migrating Icon names and usages. Due to abstraction such as using variables and mappings to define icon names, the codemod cannot automatically migrate every icon name. To help you identify these cases, the codemod can add comments or shim component usages.',
16
21
  example:
17
- "racine-codemod icon-library src --components=\"{IconButton:['name'],MessageMeta:['iconNameLeft','iconNameRight']}\" --shimComponent=IconShim --shimImportPath=src/components/IconShim --quote=double --addComments=false",
22
+ "racine-codemod icon-library src --parser=tsx --components=\"{IconButton:['name'],MessageMeta:['iconNameLeft','iconNameRight']}\" --shimComponent=IconShim --shimImportPath=src/components/IconShim --quote=double --addComments=false",
18
23
  arguments: {
19
24
  quote,
25
+ parser,
20
26
  addComments: {
21
27
  default: 'true',
22
28
  options: 'true|false',
@@ -48,7 +54,7 @@ module.exports = {
48
54
  description:
49
55
  'Replaces string literals that are deprecated icon names with their updated names. Please note that this codemod will change any strings that happen to match a deprecated icon name, even if they are unrelated to icons, so we recommend running it against specific files (not your entire codebase) and carefully checking the results.',
50
56
  example:
51
- 'racine-codemod icon-name-substitution src/constants.js --quote=double',
52
- arguments: {quote},
57
+ 'racine-codemod icon-name-substitution src/constants.js --quote=double --parser=tsx',
58
+ arguments: {quote, parser},
53
59
  },
54
60
  };