@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.
- package/CHANGELOG.md +29 -0
- package/__flow__/EnumLogoNames.flow.js +1 -1
- package/__flow__/Icon/Icon.flow.js +5 -5
- package/__flow__/Icon/index.flow.js +2 -0
- package/__flow__/LogoViewBoxes.js +2 -4
- package/__flow__/index.flow.js +2 -3
- package/bin/racine-codemod.js +3 -5
- package/codemods/__tests__/icon-library.test.js +17 -2
- package/codemods/artifacts/deprecated-icon-map.json +38 -0
- package/codemods/artifacts/icon-map.json +343 -0
- package/codemods/codemod-docs.js +9 -3
- package/codemods/icon-library.js +17 -12
- package/codemods/icon-name-substitution.js +4 -5
- package/commonjs/Badge/Badge.js +1 -1
- package/commonjs/Banner/Banner.js +8 -8
- package/commonjs/Breadcrumb/Breadcrumb.js +1 -1
- package/commonjs/Card/subComponents.js +8 -2
- package/commonjs/Checkbox/Checkbox.js +1 -1
- package/commonjs/DatePicker/common.js +2 -2
- package/commonjs/Drawer/Drawer.js +1 -1
- package/commonjs/Icon/Icon.flow.js +0 -2
- package/commonjs/Icon/Icon.js +24 -13
- package/commonjs/Icon/index.flow.js +15 -2
- package/commonjs/Indicator/Indicator.js +1 -1
- package/commonjs/Input/Input.js +2 -2
- package/commonjs/Listbox/Listbox.js +1 -1
- package/commonjs/LogoViewBoxes.js +2 -4
- package/commonjs/Menu/Menu.js +2 -2
- package/commonjs/Modal/Modal.js +1 -1
- package/commonjs/Select/Select.js +2 -2
- package/commonjs/Select/styles.js +3 -4
- package/commonjs/Switch/Switch.js +1 -1
- package/commonjs/TableHeaderCell/TableHeaderCell.js +3 -3
- package/commonjs/TableRowAccordion/TableRowAccordion.js +1 -1
- package/commonjs/Toast/Toast.js +5 -5
- package/commonjs/ToggleHint/ToggleHint.js +2 -2
- package/commonjs/Token/Token.js +2 -2
- package/commonjs/index.flow.js +12 -8
- package/commonjs/index.js +0 -8
- package/commonjs/logoNames.js +1 -1
- package/commonjs/utils/mixins.js +1 -1
- package/dist/logo.svg +1 -1
- package/dist/logoList.js +1 -1
- package/dist/types/Badge/BadgeTypes.d.ts +1 -1
- package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
- package/dist/types/Card/Card.d.ts.map +1 -1
- package/dist/types/Card/subComponents.d.ts.map +1 -1
- package/dist/types/Card/utils.d.ts +1 -0
- package/dist/types/Card/utils.d.ts.map +1 -1
- package/dist/types/DatePicker/common.d.ts +4 -2
- package/dist/types/DatePicker/common.d.ts.map +1 -1
- package/dist/types/EnumLogoNames.d.ts +1 -1
- package/dist/types/EnumLogoNames.d.ts.map +1 -1
- package/dist/types/Icon/Icon.d.ts +2 -2
- package/dist/types/Icon/Icon.d.ts.map +1 -1
- package/dist/types/Icon/IconTypes.d.ts +5 -7
- package/dist/types/Icon/IconTypes.d.ts.map +1 -1
- package/dist/types/Menu/utils/hooks.d.ts +1 -0
- package/dist/types/Menu/utils/hooks.d.ts.map +1 -1
- package/dist/types/Message/styles.d.ts +1 -0
- package/dist/types/Message/styles.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
- package/dist/types/Select/styles.d.ts.map +1 -1
- package/dist/types/StatefulStory.d.ts +1 -0
- package/dist/types/StatefulStory.d.ts.map +1 -1
- package/dist/types/TableRowAccordion/TableRowAccordion.d.ts.map +1 -1
- package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
- package/dist/types/Token/Token.d.ts.map +1 -1
- package/dist/types/TokenInput/TokenInputTypes.d.ts +1 -1
- package/dist/types/TokenInput/TokenInputTypes.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logoNames.d.ts +1 -1
- package/dist/types/logoNames.d.ts.map +1 -1
- package/lib/Badge/Badge.js +1 -1
- package/lib/Banner/Banner.js +8 -8
- package/lib/Breadcrumb/Breadcrumb.js +1 -1
- package/lib/Card/subComponents.js +8 -2
- package/lib/Checkbox/Checkbox.js +1 -1
- package/lib/DatePicker/common.js +2 -2
- package/lib/Drawer/Drawer.js +1 -1
- package/lib/Icon/Icon.flow.js +1 -2
- package/lib/Icon/Icon.js +24 -15
- package/lib/Icon/index.flow.js +2 -0
- package/lib/Indicator/Indicator.js +1 -1
- package/lib/Input/Input.js +2 -2
- package/lib/Listbox/Listbox.js +1 -1
- package/lib/LogoViewBoxes.js +2 -4
- package/lib/Menu/Menu.js +2 -2
- package/lib/Modal/Modal.js +1 -1
- package/lib/Select/Select.js +2 -2
- package/lib/Select/styles.js +3 -4
- package/lib/Switch/Switch.js +1 -1
- package/lib/TableHeaderCell/TableHeaderCell.js +3 -3
- package/lib/TableRowAccordion/TableRowAccordion.js +1 -1
- package/lib/Toast/Toast.js +5 -5
- package/lib/ToggleHint/ToggleHint.js +2 -2
- package/lib/Token/Token.js +2 -2
- package/lib/index.flow.js +1 -1
- package/lib/index.js +0 -1
- package/lib/logoNames.js +1 -1
- package/lib/utils/mixins.js +1 -1
- package/package.json +20 -18
- package/__flow__/EnumIconNames.flow.js +0 -2
- package/__flow__/Icon/deprecatedIcons.flow.js +0 -40
- package/__flow__/IconViewBoxes.js +0 -387
- package/commonjs/EnumIconNames.js +0 -5
- package/commonjs/Icon/deprecatedIcons.flow.js +0 -46
- package/commonjs/Icon/deprecatedIcons.js +0 -46
- package/commonjs/IconViewBoxes.d.js +0 -5
- package/commonjs/IconViewBoxes.js +0 -389
- package/commonjs/iconNames.js +0 -8
- package/dist/icon.svg +0 -1
- package/dist/iconList.js +0 -1
- package/dist/types/EnumIconNames.d.ts +0 -2
- package/dist/types/EnumIconNames.d.ts.map +0 -1
- package/dist/types/Icon/deprecatedIcons.d.ts +0 -40
- package/dist/types/Icon/deprecatedIcons.d.ts.map +0 -1
- package/dist/types/iconNames.d.ts +0 -3
- package/dist/types/iconNames.d.ts.map +0 -1
- package/icons/active-listener.svg +0 -3
- package/icons/add-item.svg +0 -3
- package/icons/add-keyword.svg +0 -3
- package/icons/add-team-member.svg +0 -3
- package/icons/add-variable.svg +0 -3
- package/icons/address-card-outline.svg +0 -3
- package/icons/address-card-solid.svg +0 -3
- package/icons/adobe-experience-manager.svg +0 -3
- package/icons/ads.svg +0 -3
- package/icons/advocacy-outline.svg +0 -5
- package/icons/advocacy.svg +0 -3
- package/icons/android.svg +0 -3
- package/icons/apple.svg +0 -3
- package/icons/approval-indicator-outline.svg +0 -3
- package/icons/approval-indicator.svg +0 -3
- package/icons/archive.svg +0 -3
- package/icons/arrow-down-line.svg +0 -3
- package/icons/arrow-down.svg +0 -3
- package/icons/arrow-left-line.svg +0 -3
- package/icons/arrow-left.svg +0 -3
- package/icons/arrow-right-line.svg +0 -3
- package/icons/arrow-right.svg +0 -3
- package/icons/arrow-up-line.svg +0 -3
- package/icons/arrow-up.svg +0 -3
- package/icons/arrows.svg +0 -3
- package/icons/asset-library-outline.svg +0 -3
- package/icons/asset-library.svg +0 -3
- package/icons/assign.svg +0 -3
- package/icons/atom.svg +0 -3
- package/icons/audio.svg +0 -3
- package/icons/back-to-top.svg +0 -3
- package/icons/bambu-icon-outline.svg +0 -3
- package/icons/bambu-icon.svg +0 -3
- package/icons/barcode.svg +0 -3
- package/icons/basketball.svg +0 -3
- package/icons/bell-outline.svg +0 -3
- package/icons/bigcommerce.svg +0 -3
- package/icons/bitly.svg +0 -3
- package/icons/bold.svg +0 -3
- package/icons/book.svg +0 -3
- package/icons/bookmark.svg +0 -3
- package/icons/bot.svg +0 -3
- package/icons/browser.svg +0 -3
- package/icons/business.svg +0 -3
- package/icons/calendar-outline.svg +0 -3
- package/icons/calendar.svg +0 -3
- package/icons/camera-outline.svg +0 -3
- package/icons/camera-story.svg +0 -3
- package/icons/camera.svg +0 -3
- package/icons/campaign.svg +0 -3
- package/icons/canva.svg +0 -3
- package/icons/carousel.svg +0 -3
- package/icons/cart-plus-outline.svg +0 -3
- package/icons/cart-plus.svg +0 -3
- package/icons/check.svg +0 -3
- package/icons/chevron-down-filled.svg +0 -3
- package/icons/chevron-down.svg +0 -3
- package/icons/chevron-left.svg +0 -3
- package/icons/chevron-right.svg +0 -3
- package/icons/chevron-up-down-filled.svg +0 -3
- package/icons/chevron-up-filled.svg +0 -3
- package/icons/chevron-up.svg +0 -3
- package/icons/circle+.svg +0 -3
- package/icons/circle-check-outline.svg +0 -3
- package/icons/circle-check.svg +0 -3
- package/icons/circle.svg +0 -3
- package/icons/circles.svg +0 -3
- package/icons/circlex.svg +0 -3
- package/icons/click-to-view.svg +0 -3
- package/icons/clicks.svg +0 -3
- package/icons/clipboard-outline.svg +0 -3
- package/icons/clipboard.svg +0 -3
- package/icons/clock.svg +0 -3
- package/icons/closed-captioning.svg +0 -3
- package/icons/cloud.svg +0 -3
- package/icons/code.svg +0 -3
- package/icons/columns.svg +0 -3
- package/icons/comment-ai-outline.svg +0 -5
- package/icons/comment-ai.svg +0 -4
- package/icons/comment-alt-outline.svg +0 -3
- package/icons/comment-alt.svg +0 -3
- package/icons/comment-lines-alt-outline.svg +0 -3
- package/icons/comment.svg +0 -3
- package/icons/compact-density.svg +0 -3
- package/icons/compact-indicator.svg +0 -3
- package/icons/comparison.svg +0 -3
- package/icons/competitor.svg +0 -3
- package/icons/compose.svg +0 -3
- package/icons/content-suggestions.svg +0 -3
- package/icons/credit-card.svg +0 -3
- package/icons/crop.svg +0 -3
- package/icons/crown.svg +0 -3
- package/icons/dashboard.svg +0 -3
- package/icons/deconstructed-negative-sentiment.svg +0 -3
- package/icons/deconstructed-neutral-sentiment.svg +0 -3
- package/icons/deconstructed-positive-sentiment.svg +0 -3
- package/icons/discovery.svg +0 -3
- package/icons/dislike-outline.svg +0 -3
- package/icons/dislike.svg +0 -3
- package/icons/dm-link-outline.svg +0 -3
- package/icons/dm-link.svg +0 -3
- package/icons/dotdotdot.svg +0 -3
- package/icons/download.svg +0 -3
- package/icons/drafts-outline.svg +0 -3
- package/icons/drafts.svg +0 -3
- package/icons/dropbox.svg +0 -3
- package/icons/duplicate-outline.svg +0 -3
- package/icons/duplicate.svg +0 -3
- package/icons/emoji-outline.svg +0 -3
- package/icons/emoji.svg +0 -3
- package/icons/empty-image.svg +0 -3
- package/icons/engagement-per-post.svg +0 -3
- package/icons/engagements.svg +0 -3
- package/icons/error.svg +0 -3
- package/icons/exchange-alt.svg +0 -3
- package/icons/expanded-indicator.svg +0 -3
- package/icons/export.svg +0 -3
- package/icons/extended-circles.svg +0 -3
- package/icons/external-link-alt.svg +0 -3
- package/icons/external-link.svg +0 -3
- package/icons/extreme-negative-sentiment.svg +0 -12
- package/icons/eye-outline.svg +0 -3
- package/icons/eye-slash-outline.svg +0 -3
- package/icons/eye-slash.svg +0 -3
- package/icons/eye.svg +0 -3
- package/icons/facebook-audience-network.svg +0 -3
- package/icons/facebook-branded-content-outline.svg +0 -3
- package/icons/facebook-branded-content.svg +0 -3
- package/icons/facebook-groups.svg +0 -3
- package/icons/facebook.svg +0 -3
- package/icons/fb-reactions-angry.svg +0 -19
- package/icons/fb-reactions-haha.svg +0 -13
- package/icons/fb-reactions-like.svg +0 -11
- package/icons/fb-reactions-love.svg +0 -11
- package/icons/fb-reactions-sad.svg +0 -12
- package/icons/fb-reactions-wow.svg +0 -11
- package/icons/feedly.svg +0 -3
- package/icons/feeds.svg +0 -3
- package/icons/female.svg +0 -3
- package/icons/file-chart-line.svg +0 -3
- package/icons/file-edit.svg +0 -3
- package/icons/file-times-solid.svg +0 -3
- package/icons/filter.svg +0 -3
- package/icons/flag-outline.svg +0 -3
- package/icons/flag.svg +0 -3
- package/icons/flat-negative-sentiment-outline.svg +0 -4
- package/icons/flat-negative-sentiment.svg +0 -3
- package/icons/flat-neutral-sentiment-outline.svg +0 -4
- package/icons/flat-neutral-sentiment.svg +0 -3
- package/icons/flat-positive-sentiment-outline.svg +0 -4
- package/icons/flat-positive-sentiment.svg +0 -3
- package/icons/folder-open.svg +0 -3
- package/icons/folder.svg +0 -3
- package/icons/follow-outline.svg +0 -3
- package/icons/follow.svg +0 -3
- package/icons/follower-increase.svg +0 -3
- package/icons/following.svg +0 -3
- package/icons/font.svg +0 -3
- package/icons/full-access.svg +0 -3
- package/icons/gear.svg +0 -3
- package/icons/gears.svg +0 -10
- package/icons/github.svg +0 -3
- package/icons/glassdoor.svg +0 -3
- package/icons/glasses.svg +0 -3
- package/icons/globe.svg +0 -3
- package/icons/google-analytics-color.svg +0 -11
- package/icons/google-business-messages.svg +0 -3
- package/icons/google-drive.svg +0 -3
- package/icons/google-my-business.svg +0 -20
- package/icons/grip.svg +0 -3
- package/icons/h1.svg +0 -3
- package/icons/h2.svg +0 -3
- package/icons/h3.svg +0 -3
- package/icons/h4.svg +0 -3
- package/icons/hamburger.svg +0 -3
- package/icons/hand-sparkle-outline.svg +0 -6
- package/icons/hand-sparkle.svg +0 -3
- package/icons/hashtag.svg +0 -3
- package/icons/headset.svg +0 -3
- package/icons/heart-outline.svg +0 -3
- package/icons/heart.svg +0 -3
- package/icons/heartbeat.svg +0 -3
- package/icons/help-alt.svg +0 -3
- package/icons/help.svg +0 -3
- package/icons/hiking.svg +0 -3
- package/icons/history.svg +0 -3
- package/icons/home.svg +0 -3
- package/icons/hourglass.svg +0 -3
- package/icons/hubspot.svg +0 -10
- package/icons/image-caption.svg +0 -3
- package/icons/image.svg +0 -3
- package/icons/images.svg +0 -3
- package/icons/impressions-per-post.svg +0 -3
- package/icons/impressions.svg +0 -3
- package/icons/inactive-listener.svg +0 -3
- package/icons/inbox-action.svg +0 -3
- package/icons/inbox-views.svg +0 -3
- package/icons/inbox.svg +0 -3
- package/icons/indicator.svg +0 -3
- package/icons/industry.svg +0 -3
- package/icons/info.svg +0 -3
- package/icons/instagram.svg +0 -3
- package/icons/internal-activity-outline.svg +0 -3
- package/icons/internal-activity.svg +0 -3
- package/icons/italic.svg +0 -3
- package/icons/key.svg +0 -3
- package/icons/keyboard.svg +0 -3
- package/icons/laptop-phone.svg +0 -3
- package/icons/large-density.svg +0 -3
- package/icons/lift.svg +0 -3
- package/icons/like-outline.svg +0 -3
- package/icons/like.svg +0 -3
- package/icons/link.svg +0 -3
- package/icons/linkedin-audience-network.svg +0 -3
- package/icons/linkedin.svg +0 -3
- package/icons/list-ol.svg +0 -3
- package/icons/listening.svg +0 -3
- package/icons/lists.svg +0 -3
- package/icons/location-outline.svg +0 -3
- package/icons/location.svg +0 -3
- package/icons/lock.svg +0 -3
- package/icons/magic-wand.svg +0 -3
- package/icons/male.svg +0 -3
- package/icons/marketo.svg +0 -3
- package/icons/mention.svg +0 -3
- package/icons/message-preview-outline.svg +0 -3
- package/icons/message-preview.svg +0 -3
- package/icons/message.svg +0 -3
- package/icons/messages-outline.svg +0 -3
- package/icons/messages.svg +0 -3
- package/icons/messenger.svg +0 -11
- package/icons/metric-table.svg +0 -3
- package/icons/microsoft-dynamics.svg +0 -4
- package/icons/minus.svg +0 -3
- package/icons/mobile.svg +0 -3
- package/icons/monitor.svg +0 -3
- package/icons/moon.svg +0 -3
- package/icons/negative-sentiment.svg +0 -11
- package/icons/neutral-positive-sentiment.svg +0 -13
- package/icons/neutral-sentiment.svg +0 -11
- package/icons/new-trend.svg +0 -3
- package/icons/newspaper.svg +0 -3
- package/icons/no-access.svg +0 -3
- package/icons/notepad.svg +0 -3
- package/icons/notifications-publishing-outline.svg +0 -3
- package/icons/notifications-publishing.svg +0 -3
- package/icons/notifications.svg +0 -3
- package/icons/offline.svg +0 -3
- package/icons/online.svg +0 -3
- package/icons/paid-promotion-outline.svg +0 -3
- package/icons/paid-promotion.svg +0 -3
- package/icons/paid.svg +0 -3
- package/icons/paint.svg +0 -3
- package/icons/palette.svg +0 -3
- package/icons/paperclip.svg +0 -3
- package/icons/pause.svg +0 -3
- package/icons/pencil-outline.svg +0 -3
- package/icons/pencil.svg +0 -3
- package/icons/person.svg +0 -3
- package/icons/phone.svg +0 -3
- package/icons/pinterest-boards-outline.svg +0 -3
- package/icons/pinterest-boards.svg +0 -3
- package/icons/pinterest.svg +0 -3
- package/icons/play-circle.svg +0 -3
- package/icons/play.svg +0 -3
- package/icons/plug.svg +0 -3
- package/icons/plus.svg +0 -3
- package/icons/positive-sentiment.svg +0 -12
- package/icons/power-up-outline.svg +0 -3
- package/icons/power-up.svg +0 -3
- package/icons/profile-connect.svg +0 -3
- package/icons/profile-disconnect.svg +0 -3
- package/icons/publishing-outline.svg +0 -3
- package/icons/publishing.svg +0 -3
- package/icons/puzzle-piece.svg +0 -3
- package/icons/qr-code.svg +0 -3
- package/icons/queue.svg +0 -3
- package/icons/quotes-solid.svg +0 -3
- package/icons/recommendation.svg +0 -3
- package/icons/reddit-alien.svg +0 -3
- package/icons/reddit.svg +0 -3
- package/icons/reels-outline.svg +0 -4
- package/icons/reels.svg +0 -3
- package/icons/referrals.svg +0 -3
- package/icons/refresh.svg +0 -3
- package/icons/rejected.svg +0 -3
- package/icons/reply-outline.svg +0 -3
- package/icons/reply.svg +0 -3
- package/icons/reporting-period.svg +0 -3
- package/icons/reporting.svg +0 -3
- package/icons/reports-home.svg +0 -3
- package/icons/reports.svg +0 -3
- package/icons/retweet.svg +0 -3
- package/icons/route.svg +0 -3
- package/icons/rss.svg +0 -3
- package/icons/sales.svg +0 -3
- package/icons/salesforce-cloud.svg +0 -3
- package/icons/salesforce.svg +0 -3
- package/icons/save-assets.svg +0 -3
- package/icons/saved-messages.svg +0 -3
- package/icons/saved-reply-outline.svg +0 -3
- package/icons/saved-reply.svg +0 -3
- package/icons/search.svg +0 -3
- package/icons/send-again-outline.svg +0 -4
- package/icons/send-again.svg +0 -4
- package/icons/sent-message-outline.svg +0 -3
- package/icons/sent-message.svg +0 -3
- package/icons/share.svg +0 -3
- package/icons/shopify.svg +0 -5
- package/icons/shopping-bag-outline.svg +0 -3
- package/icons/shopping-bag.svg +0 -3
- package/icons/show-navigation.svg +0 -3
- package/icons/slack.svg +0 -3
- package/icons/small-density.svg +0 -3
- package/icons/smiley.svg +0 -3
- package/icons/some-access.svg +0 -3
- package/icons/sparkles.svg +0 -3
- package/icons/spike-alert.svg +0 -3
- package/icons/star-half-alt-solid.svg +0 -3
- package/icons/star-of-life.svg +0 -3
- package/icons/star-outline.svg +0 -3
- package/icons/star.svg +0 -3
- package/icons/sticky-note-outline.svg +0 -3
- package/icons/sticky-note.svg +0 -3
- package/icons/stories.svg +0 -3
- package/icons/story.svg +0 -3
- package/icons/suggestions.svg +0 -3
- package/icons/sun.svg +0 -3
- package/icons/tag-outline.svg +0 -3
- package/icons/tag.svg +0 -3
- package/icons/targeting-outline.svg +0 -3
- package/icons/targeting.svg +0 -3
- package/icons/tasks-check.svg +0 -4
- package/icons/tasks-outline.svg +0 -3
- package/icons/tasks.svg +0 -3
- package/icons/team-conversation-outline.svg +0 -3
- package/icons/team-conversation.svg +0 -3
- package/icons/team-sprout-outline.svg +0 -5
- package/icons/team-sprout.svg +0 -4
- package/icons/team.svg +0 -3
- package/icons/text-asset.svg +0 -3
- package/icons/text.svg +0 -3
- package/icons/tiktok.svg +0 -5
- package/icons/times.svg +0 -3
- package/icons/tools.svg +0 -3
- package/icons/trash-can-outline.svg +0 -3
- package/icons/trash-can.svg +0 -3
- package/icons/trend-down.svg +0 -3
- package/icons/trend-neutral.svg +0 -3
- package/icons/trend-up.svg +0 -3
- package/icons/trends.svg +0 -3
- package/icons/triangle-black.svg +0 -3
- package/icons/triangle.svg +0 -3
- package/icons/tripadvisor-circle-outline.svg +0 -3
- package/icons/tripadvisor-circle.svg +0 -11
- package/icons/tripadvisor.svg +0 -11
- package/icons/trophy-outline.svg +0 -3
- package/icons/tumblr.svg +0 -3
- package/icons/twitter-audience-network.svg +0 -3
- package/icons/twitter.svg +0 -3
- package/icons/underline.svg +0 -3
- package/icons/unfollow-outline.svg +0 -3
- package/icons/unfollow.svg +0 -3
- package/icons/unlink.svg +0 -3
- package/icons/unlock.svg +0 -3
- package/icons/upload.svg +0 -3
- package/icons/user-circle.svg +0 -3
- package/icons/users.svg +0 -3
- package/icons/verified.svg +0 -3
- package/icons/video-camera-story.svg +0 -3
- package/icons/video-camera.svg +0 -3
- package/icons/vip.svg +0 -3
- package/icons/weight.svg +0 -3
- package/icons/whatsapp.svg +0 -20
- package/icons/window-maximize.svg +0 -3
- package/icons/window-minimize.svg +0 -3
- package/icons/window-regular.svg +0 -3
- package/icons/window-restore.svg +0 -3
- package/icons/woocommerce.svg +0 -3
- package/icons/x.svg +0 -3
- package/icons/yelp-full-star.svg +0 -3
- package/icons/yelp-half-star.svg +0 -4
- package/icons/yelp.svg +0 -10
- package/icons/youtube.svg +0 -3
- package/icons/zendesk.svg +0 -3
- package/lib/EnumIconNames.js +0 -1
- package/lib/Icon/deprecatedIcons.flow.js +0 -39
- package/lib/Icon/deprecatedIcons.js +0 -39
- package/lib/IconViewBoxes.d.js +0 -1
- package/lib/IconViewBoxes.js +0 -387
- package/lib/iconNames.js +0 -1
- /package/commonjs/{EnumIconNames.flow.js → react.d.js} +0 -0
- /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
|
|
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
|
|
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
|
|
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:
|
|
31
|
+
activeName: TypeIconName,
|
|
32
32
|
/** Name of the icon to be shown in the inactive state */
|
|
33
|
-
inactiveName:
|
|
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 */
|
|
@@ -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-
|
|
67
|
-
"reddit
|
|
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",
|
package/__flow__/index.flow.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
|
|
3
3
|
/* Asset types */
|
|
4
|
-
export type { EnumIconNames } from
|
|
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
|
|
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";
|
package/bin/racine-codemod.js
CHANGED
|
@@ -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
|
-
//
|
|
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
|
+
}
|
package/codemods/codemod-docs.js
CHANGED
|
@@ -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
|
};
|