@atlaskit/icon 22.6.0 → 22.8.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 +25 -0
- package/afm-post-office/tsconfig.json +27 -0
- package/build/index.tsx +21 -18
- package/dist/cjs/components/icon-facade.js +50 -0
- package/dist/cjs/components/icon-new.js +6 -2
- package/dist/cjs/components/icon-tile.js +1 -1
- package/dist/cjs/components/icon.js +9 -6
- package/dist/cjs/components/skeleton.js +1 -1
- package/dist/cjs/components/svg.js +1 -1
- package/dist/cjs/entry-points/base.js +7 -0
- package/dist/cjs/migration-map.js +63 -91
- package/dist/es2019/components/icon-facade.js +39 -0
- package/dist/es2019/components/icon-new.js +7 -2
- package/dist/es2019/components/icon-tile.js +1 -1
- package/dist/es2019/components/icon.js +10 -4
- package/dist/es2019/components/skeleton.js +1 -1
- package/dist/es2019/components/svg.js +1 -1
- package/dist/es2019/entry-points/base.js +2 -1
- package/dist/es2019/migration-map.js +63 -91
- package/dist/esm/components/icon-facade.js +40 -0
- package/dist/esm/components/icon-new.js +7 -2
- package/dist/esm/components/icon-tile.js +1 -1
- package/dist/esm/components/icon.js +9 -6
- package/dist/esm/components/skeleton.js +1 -1
- package/dist/esm/components/svg.js +1 -1
- package/dist/esm/entry-points/base.js +2 -1
- package/dist/esm/migration-map.js +63 -91
- package/dist/types/components/icon-facade.d.ts +15 -0
- package/dist/types/entry-points/base.d.ts +1 -0
- package/dist/types/types.d.ts +9 -1
- package/dist/types-ts4.5/components/icon-facade.d.ts +15 -0
- package/dist/types-ts4.5/entry-points/base.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +9 -1
- package/glyph/activity.js +7 -10
- package/glyph/add-circle.js +7 -10
- package/glyph/add-item.js +7 -10
- package/glyph/add.js +7 -10
- package/glyph/addon.js +7 -10
- package/glyph/app-access.js +7 -10
- package/glyph/app-switcher.js +3 -9
- package/glyph/archive.js +7 -10
- package/glyph/arrow-down-circle.js +7 -10
- package/glyph/arrow-down.js +7 -10
- package/glyph/arrow-left-circle.js +7 -10
- package/glyph/arrow-left.js +7 -10
- package/glyph/arrow-right-circle.js +7 -10
- package/glyph/arrow-right.js +7 -10
- package/glyph/arrow-up-circle.js +7 -10
- package/glyph/arrow-up.js +7 -10
- package/glyph/attachment.js +7 -10
- package/glyph/audio-circle.js +7 -10
- package/glyph/audio.js +7 -10
- package/glyph/backlog.js +7 -10
- package/glyph/billing-filled.js +3 -9
- package/glyph/billing.js +3 -9
- package/glyph/bitbucket/branches.js +7 -10
- package/glyph/bitbucket/builds.js +3 -9
- package/glyph/bitbucket/clone.js +3 -9
- package/glyph/bitbucket/commits.js +7 -10
- package/glyph/bitbucket/compare.js +3 -9
- package/glyph/bitbucket/forks.js +3 -9
- package/glyph/bitbucket/output.js +3 -9
- package/glyph/bitbucket/pipelines.js +3 -9
- package/glyph/bitbucket/pullrequests.js +7 -10
- package/glyph/bitbucket/repos.js +3 -9
- package/glyph/bitbucket/snippets.js +7 -10
- package/glyph/bitbucket/source.js +7 -10
- package/glyph/board.js +7 -10
- package/glyph/book.js +7 -10
- package/glyph/bullet-list.js +7 -10
- package/glyph/calendar-filled.js +7 -10
- package/glyph/calendar.js +7 -10
- package/glyph/camera-filled.js +7 -10
- package/glyph/camera-rotate.js +3 -9
- package/glyph/camera-take-picture.js +3 -9
- package/glyph/camera.js +7 -10
- package/glyph/canvas.js +3 -9
- package/glyph/check-circle-outline.js +3 -9
- package/glyph/check-circle.js +7 -10
- package/glyph/check.js +7 -10
- package/glyph/checkbox-indeterminate.js +7 -10
- package/glyph/checkbox.js +7 -10
- package/glyph/chevron-down-circle.js +8 -10
- package/glyph/chevron-down.js +8 -10
- package/glyph/chevron-left-circle.js +8 -10
- package/glyph/chevron-left-large.js +8 -10
- package/glyph/chevron-left.js +8 -10
- package/glyph/chevron-right-circle.js +8 -10
- package/glyph/chevron-right-large.js +8 -10
- package/glyph/chevron-right.js +8 -10
- package/glyph/chevron-up-circle.js +8 -10
- package/glyph/chevron-up.js +8 -10
- package/glyph/child-issues.js +7 -10
- package/glyph/code.js +7 -10
- package/glyph/comment.js +7 -10
- package/glyph/component.js +7 -10
- package/glyph/copy.js +7 -10
- package/glyph/creditcard-filled.js +7 -10
- package/glyph/creditcard.js +7 -10
- package/glyph/cross-circle.js +7 -10
- package/glyph/cross.js +7 -10
- package/glyph/dashboard.js +7 -10
- package/glyph/decision.js +7 -10
- package/glyph/department.js +7 -10
- package/glyph/detail-view.js +3 -9
- package/glyph/discover-filled.js +7 -10
- package/glyph/discover.js +7 -10
- package/glyph/document-filled.js +7 -10
- package/glyph/document.js +7 -10
- package/glyph/documents.js +7 -10
- package/glyph/download.js +3 -9
- package/glyph/drag-handler.js +6 -9
- package/glyph/dropbox.js +3 -9
- package/glyph/edit-filled.js +7 -10
- package/glyph/edit.js +7 -10
- package/glyph/editor/add.js +7 -10
- package/glyph/editor/addon.js +3 -9
- package/glyph/editor/advanced.js +3 -9
- package/glyph/editor/align-center.js +7 -10
- package/glyph/editor/align-image-center.js +3 -9
- package/glyph/editor/align-image-left.js +3 -9
- package/glyph/editor/align-image-right.js +3 -9
- package/glyph/editor/align-left.js +7 -10
- package/glyph/editor/align-right.js +7 -10
- package/glyph/editor/attachment.js +7 -10
- package/glyph/editor/background-color.js +3 -9
- package/glyph/editor/bold.js +3 -9
- package/glyph/editor/bullet-list.js +7 -10
- package/glyph/editor/close.js +7 -10
- package/glyph/editor/code.js +7 -10
- package/glyph/editor/collapse.js +7 -10
- package/glyph/editor/date.js +7 -10
- package/glyph/editor/decision.js +7 -10
- package/glyph/editor/divider.js +3 -9
- package/glyph/editor/done.js +7 -10
- package/glyph/editor/edit.js +7 -10
- package/glyph/editor/emoji.js +7 -10
- package/glyph/editor/error.js +7 -10
- package/glyph/editor/expand.js +7 -10
- package/glyph/editor/feedback.js +7 -10
- package/glyph/editor/file-preview.js +3 -9
- package/glyph/editor/file.js +3 -9
- package/glyph/editor/help.js +7 -10
- package/glyph/editor/hint.js +7 -10
- package/glyph/editor/horizontal-rule.js +3 -9
- package/glyph/editor/image-border.js +3 -9
- package/glyph/editor/image-resize.js +7 -10
- package/glyph/editor/image.js +7 -10
- package/glyph/editor/indent.js +3 -9
- package/glyph/editor/info.js +7 -10
- package/glyph/editor/italic.js +3 -9
- package/glyph/editor/layout-single.js +3 -9
- package/glyph/editor/layout-three-equal.js +3 -9
- package/glyph/editor/layout-three-with-sidebars.js +3 -9
- package/glyph/editor/layout-two-equal.js +3 -9
- package/glyph/editor/layout-two-left-sidebar.js +3 -9
- package/glyph/editor/layout-two-right-sidebar.js +3 -9
- package/glyph/editor/link.js +7 -10
- package/glyph/editor/media-center.js +3 -9
- package/glyph/editor/media-full-width.js +3 -9
- package/glyph/editor/media-wide.js +3 -9
- package/glyph/editor/media-wrap-left.js +3 -9
- package/glyph/editor/media-wrap-right.js +3 -9
- package/glyph/editor/mention.js +7 -10
- package/glyph/editor/more.js +7 -10
- package/glyph/editor/note.js +7 -10
- package/glyph/editor/number-list.js +3 -9
- package/glyph/editor/open.js +7 -10
- package/glyph/editor/outdent.js +3 -9
- package/glyph/editor/panel.js +7 -10
- package/glyph/editor/photo.js +7 -10
- package/glyph/editor/quote.js +7 -10
- package/glyph/editor/recent.js +7 -10
- package/glyph/editor/redo.js +7 -10
- package/glyph/editor/remove-emoji.js +3 -9
- package/glyph/editor/remove.js +7 -10
- package/glyph/editor/search.js +7 -10
- package/glyph/editor/settings.js +7 -10
- package/glyph/editor/strikethrough.js +3 -9
- package/glyph/editor/success.js +7 -10
- package/glyph/editor/table-display-options.js +3 -9
- package/glyph/editor/table.js +3 -9
- package/glyph/editor/task.js +7 -10
- package/glyph/editor/text-color.js +3 -9
- package/glyph/editor/text-style.js +7 -10
- package/glyph/editor/underline.js +3 -9
- package/glyph/editor/undo.js +7 -10
- package/glyph/editor/unlink.js +7 -10
- package/glyph/editor/warning.js +7 -10
- package/glyph/email.js +7 -10
- package/glyph/emoji/activity.js +3 -9
- package/glyph/emoji/atlassian.js +3 -9
- package/glyph/emoji/custom.js +7 -10
- package/glyph/emoji/emoji.js +7 -10
- package/glyph/emoji/flags.js +3 -9
- package/glyph/emoji/food.js +3 -9
- package/glyph/emoji/frequent.js +7 -10
- package/glyph/emoji/keyboard.js +7 -10
- package/glyph/emoji/nature.js +3 -9
- package/glyph/emoji/objects.js +7 -10
- package/glyph/emoji/people.js +3 -9
- package/glyph/emoji/productivity.js +3 -9
- package/glyph/emoji/symbols.js +7 -10
- package/glyph/emoji/travel.js +3 -9
- package/glyph/emoji-add.js +7 -10
- package/glyph/emoji.js +7 -10
- package/glyph/error.js +7 -10
- package/glyph/export.js +3 -9
- package/glyph/feedback.js +7 -10
- package/glyph/file.js +3 -9
- package/glyph/filter.js +7 -10
- package/glyph/flag-filled.js +3 -9
- package/glyph/folder-filled.js +3 -9
- package/glyph/folder.js +7 -10
- package/glyph/followers.js +7 -10
- package/glyph/following.js +3 -9
- package/glyph/googledrive.js +3 -9
- package/glyph/graph-bar.js +7 -10
- package/glyph/graph-line.js +7 -10
- package/glyph/gsuite.js +3 -9
- package/glyph/highlights.js +3 -9
- package/glyph/hipchat/audio-only.js +7 -10
- package/glyph/hipchat/chevron-double-down.js +3 -9
- package/glyph/hipchat/chevron-double-up.js +3 -9
- package/glyph/hipchat/chevron-down.js +8 -10
- package/glyph/hipchat/chevron-up.js +8 -10
- package/glyph/hipchat/dial-out.js +7 -10
- package/glyph/hipchat/lobby.js +7 -10
- package/glyph/hipchat/media-attachment-count.js +2 -8
- package/glyph/hipchat/outgoing-sound.js +7 -10
- package/glyph/hipchat/sd-video.js +7 -10
- package/glyph/home-circle.js +7 -10
- package/glyph/home.js +7 -10
- package/glyph/image-border.js +3 -9
- package/glyph/image-resize.js +7 -10
- package/glyph/image.js +7 -10
- package/glyph/info.js +7 -10
- package/glyph/invite-team.js +7 -10
- package/glyph/issue-raise.js +3 -9
- package/glyph/issue.js +7 -10
- package/glyph/issues.js +7 -10
- package/glyph/jira/capture.js +7 -10
- package/glyph/jira/failed-build-status.js +3 -9
- package/glyph/jira/labs.js +7 -10
- package/glyph/jira/test-session.js +7 -10
- package/glyph/label.js +7 -10
- package/glyph/lightbulb-filled.js +3 -9
- package/glyph/lightbulb.js +7 -10
- package/glyph/like.js +7 -10
- package/glyph/link-filled.js +3 -9
- package/glyph/link.js +7 -10
- package/glyph/list.js +3 -9
- package/glyph/location.js +7 -10
- package/glyph/lock-circle.js +7 -10
- package/glyph/lock-filled.js +7 -10
- package/glyph/lock.js +7 -10
- package/glyph/marketplace.js +7 -10
- package/glyph/media-services/actual-size.js +7 -10
- package/glyph/media-services/add-comment.js +7 -10
- package/glyph/media-services/annotate.js +3 -9
- package/glyph/media-services/arrow.js +3 -9
- package/glyph/media-services/audio.js +7 -10
- package/glyph/media-services/blur.js +3 -9
- package/glyph/media-services/brush.js +3 -9
- package/glyph/media-services/button-option.js +3 -9
- package/glyph/media-services/code.js +7 -10
- package/glyph/media-services/document.js +7 -10
- package/glyph/media-services/filter.js +7 -10
- package/glyph/media-services/fit-to-page.js +3 -9
- package/glyph/media-services/full-screen.js +7 -10
- package/glyph/media-services/grid.js +7 -10
- package/glyph/media-services/image.js +7 -10
- package/glyph/media-services/line-thickness.js +3 -9
- package/glyph/media-services/line.js +3 -9
- package/glyph/media-services/no-image.js +3 -9
- package/glyph/media-services/open-mediaviewer.js +3 -9
- package/glyph/media-services/oval.js +3 -9
- package/glyph/media-services/pdf.js +3 -9
- package/glyph/media-services/preselected.js +3 -9
- package/glyph/media-services/presentation.js +7 -10
- package/glyph/media-services/rectangle.js +3 -9
- package/glyph/media-services/scale-large.js +7 -10
- package/glyph/media-services/scale-small.js +7 -10
- package/glyph/media-services/spreadsheet.js +7 -10
- package/glyph/media-services/text.js +2 -8
- package/glyph/media-services/unknown.js +3 -9
- package/glyph/media-services/video.js +7 -10
- package/glyph/media-services/zip.js +3 -9
- package/glyph/media-services/zoom-in.js +7 -10
- package/glyph/media-services/zoom-out.js +7 -10
- package/glyph/mention.js +3 -9
- package/glyph/menu-expand.js +3 -9
- package/glyph/menu.js +3 -9
- package/glyph/mobile.js +7 -10
- package/glyph/more-vertical.js +6 -9
- package/glyph/more.js +6 -9
- package/glyph/notification-all.js +3 -9
- package/glyph/notification-direct.js +3 -9
- package/glyph/notification.js +3 -9
- package/glyph/office-building-filled.js +7 -10
- package/glyph/office-building.js +7 -10
- package/glyph/open.js +7 -10
- package/glyph/overview.js +7 -10
- package/glyph/page-filled.js +7 -10
- package/glyph/page.js +7 -10
- package/glyph/pdf.js +3 -9
- package/glyph/people-group.js +3 -9
- package/glyph/people.js +3 -9
- package/glyph/person-circle.js +7 -10
- package/glyph/person-with-circle.js +3 -9
- package/glyph/person-with-cross.js +3 -9
- package/glyph/person-with-tick.js +7 -10
- package/glyph/person.js +7 -10
- package/glyph/portfolio.js +3 -9
- package/glyph/preferences.js +7 -10
- package/glyph/premium.js +7 -10
- package/glyph/presence-active.js +2 -8
- package/glyph/presence-busy.js +3 -9
- package/glyph/presence-unavailable.js +3 -9
- package/glyph/question-circle.js +7 -10
- package/glyph/question.js +7 -10
- package/glyph/questions.js +7 -10
- package/glyph/queues.js +7 -10
- package/glyph/quote.js +7 -10
- package/glyph/radio.js +3 -9
- package/glyph/recent.js +7 -10
- package/glyph/redo.js +7 -10
- package/glyph/refresh.js +3 -9
- package/glyph/retry.js +7 -10
- package/glyph/roadmap.js +7 -10
- package/glyph/room-menu.js +3 -9
- package/glyph/schedule-filled.js +3 -9
- package/glyph/schedule.js +3 -9
- package/glyph/screen.js +7 -10
- package/glyph/search.js +7 -10
- package/glyph/select-clear.js +7 -10
- package/glyph/send.js +7 -10
- package/glyph/settings.js +7 -10
- package/glyph/share.js +7 -10
- package/glyph/ship.js +7 -10
- package/glyph/shortcut.js +7 -10
- package/glyph/sign-in.js +7 -10
- package/glyph/sign-out.js +7 -10
- package/glyph/sprint.js +7 -10
- package/glyph/star-filled.js +7 -10
- package/glyph/star-large.js +7 -10
- package/glyph/star.js +7 -10
- package/glyph/status.js +3 -9
- package/glyph/stopwatch.js +7 -10
- package/glyph/subtask.js +7 -10
- package/glyph/suitcase.js +7 -10
- package/glyph/switcher.js +3 -9
- package/glyph/table.js +7 -10
- package/glyph/task.js +7 -10
- package/glyph/teams.js +5 -2
- package/glyph/trash.js +7 -10
- package/glyph/tray.js +7 -10
- package/glyph/undo.js +7 -10
- package/glyph/unlink.js +7 -10
- package/glyph/unlock-circle.js +7 -10
- package/glyph/unlock-filled.js +7 -10
- package/glyph/unlock.js +7 -10
- package/glyph/upload.js +7 -10
- package/glyph/user-avatar-circle.js +7 -10
- package/glyph/vid-audio-muted.js +3 -9
- package/glyph/vid-audio-on.js +7 -10
- package/glyph/vid-backward.js +3 -9
- package/glyph/vid-camera-off.js +3 -9
- package/glyph/vid-camera-on.js +7 -10
- package/glyph/vid-connection-circle.js +3 -9
- package/glyph/vid-forward.js +3 -9
- package/glyph/vid-full-screen-off.js +7 -10
- package/glyph/vid-full-screen-on.js +7 -10
- package/glyph/vid-hang-up.js +3 -9
- package/glyph/vid-hd-circle.js +3 -9
- package/glyph/vid-pause.js +7 -10
- package/glyph/vid-play.js +7 -10
- package/glyph/vid-raised-hand.js +3 -9
- package/glyph/vid-share-screen.js +3 -9
- package/glyph/vid-speaking-circle.js +3 -9
- package/glyph/vid-volume-full.js +7 -10
- package/glyph/vid-volume-half.js +7 -10
- package/glyph/vid-volume-muted.js +7 -10
- package/glyph/video-circle.js +7 -10
- package/glyph/video-filled.js +7 -10
- package/glyph/warning.js +7 -10
- package/glyph/watch-filled.js +7 -10
- package/glyph/watch.js +7 -10
- package/glyph/world-small.js +7 -10
- package/glyph/world.js +7 -10
- package/package.json +7 -4
- package/svgs/activity.svg +1 -1
- package/svgs/add-circle.svg +1 -1
- package/svgs/add-item.svg +1 -1
- package/svgs/add.svg +1 -1
- package/svgs/addon.svg +1 -1
- package/svgs/app-access.svg +1 -1
- package/svgs/app-switcher.svg +1 -1
- package/svgs/archive.svg +1 -1
- package/svgs/arrow-down-circle.svg +1 -1
- package/svgs/arrow-down.svg +1 -1
- package/svgs/arrow-left-circle.svg +1 -1
- package/svgs/arrow-left.svg +1 -1
- package/svgs/arrow-right-circle.svg +1 -1
- package/svgs/arrow-right.svg +1 -1
- package/svgs/arrow-up-circle.svg +1 -1
- package/svgs/arrow-up.svg +1 -1
- package/svgs/attachment.svg +1 -1
- package/svgs/audio-circle.svg +1 -1
- package/svgs/audio.svg +1 -1
- package/svgs/backlog.svg +1 -1
- package/svgs/billing-filled.svg +1 -1
- package/svgs/billing.svg +1 -1
- package/svgs/bitbucket/branches.svg +1 -1
- package/svgs/bitbucket/builds.svg +1 -1
- package/svgs/bitbucket/clone.svg +1 -1
- package/svgs/bitbucket/commits.svg +1 -1
- package/svgs/bitbucket/compare.svg +1 -1
- package/svgs/bitbucket/forks.svg +1 -1
- package/svgs/bitbucket/output.svg +1 -1
- package/svgs/bitbucket/pipelines.svg +1 -1
- package/svgs/bitbucket/pullrequests.svg +1 -1
- package/svgs/bitbucket/repos.svg +1 -1
- package/svgs/bitbucket/snippets.svg +1 -1
- package/svgs/bitbucket/source.svg +1 -1
- package/svgs/board.svg +1 -1
- package/svgs/book.svg +1 -1
- package/svgs/bullet-list.svg +1 -1
- package/svgs/calendar-filled.svg +1 -1
- package/svgs/calendar.svg +1 -1
- package/svgs/camera-filled.svg +1 -1
- package/svgs/camera-rotate.svg +1 -1
- package/svgs/camera-take-picture.svg +1 -1
- package/svgs/camera.svg +1 -1
- package/svgs/canvas.svg +1 -1
- package/svgs/check-circle-outline.svg +1 -1
- package/svgs/check-circle.svg +1 -1
- package/svgs/check.svg +1 -1
- package/svgs/checkbox-indeterminate.svg +1 -1
- package/svgs/checkbox.svg +1 -1
- package/svgs/chevron-down-circle.svg +1 -1
- package/svgs/chevron-down.svg +1 -1
- package/svgs/chevron-left-circle.svg +1 -1
- package/svgs/chevron-left-large.svg +1 -1
- package/svgs/chevron-left.svg +1 -1
- package/svgs/chevron-right-circle.svg +1 -1
- package/svgs/chevron-right-large.svg +1 -1
- package/svgs/chevron-right.svg +1 -1
- package/svgs/chevron-up-circle.svg +1 -1
- package/svgs/chevron-up.svg +1 -1
- package/svgs/child-issues.svg +1 -1
- package/svgs/code.svg +1 -1
- package/svgs/comment.svg +1 -1
- package/svgs/component.svg +1 -1
- package/svgs/copy.svg +1 -1
- package/svgs/creditcard-filled.svg +1 -1
- package/svgs/creditcard.svg +1 -1
- package/svgs/cross-circle.svg +1 -1
- package/svgs/cross.svg +1 -1
- package/svgs/dashboard.svg +1 -1
- package/svgs/decision.svg +1 -1
- package/svgs/department.svg +1 -1
- package/svgs/detail-view.svg +1 -1
- package/svgs/discover-filled.svg +1 -1
- package/svgs/discover.svg +1 -1
- package/svgs/document-filled.svg +1 -1
- package/svgs/document.svg +1 -1
- package/svgs/documents.svg +1 -1
- package/svgs/download.svg +1 -1
- package/svgs/dropbox.svg +1 -1
- package/svgs/edit-filled.svg +1 -1
- package/svgs/edit.svg +1 -1
- package/svgs/editor/add.svg +1 -1
- package/svgs/editor/addon.svg +1 -1
- package/svgs/editor/advanced.svg +1 -1
- package/svgs/editor/align-center.svg +1 -1
- package/svgs/editor/align-image-center.svg +1 -1
- package/svgs/editor/align-image-left.svg +1 -1
- package/svgs/editor/align-image-right.svg +1 -1
- package/svgs/editor/align-left.svg +1 -1
- package/svgs/editor/align-right.svg +1 -1
- package/svgs/editor/attachment.svg +1 -1
- package/svgs/editor/background-color.svg +1 -1
- package/svgs/editor/bold.svg +1 -1
- package/svgs/editor/bullet-list.svg +1 -1
- package/svgs/editor/close.svg +1 -1
- package/svgs/editor/code.svg +1 -1
- package/svgs/editor/collapse.svg +1 -1
- package/svgs/editor/date.svg +1 -1
- package/svgs/editor/decision.svg +1 -1
- package/svgs/editor/divider.svg +1 -1
- package/svgs/editor/done.svg +1 -1
- package/svgs/editor/edit.svg +1 -1
- package/svgs/editor/emoji.svg +1 -1
- package/svgs/editor/error.svg +1 -1
- package/svgs/editor/expand.svg +1 -1
- package/svgs/editor/feedback.svg +1 -1
- package/svgs/editor/file-preview.svg +1 -1
- package/svgs/editor/file.svg +1 -1
- package/svgs/editor/help.svg +1 -1
- package/svgs/editor/hint.svg +1 -1
- package/svgs/editor/horizontal-rule.svg +1 -1
- package/svgs/editor/image-border.svg +1 -1
- package/svgs/editor/image-resize.svg +1 -1
- package/svgs/editor/image.svg +1 -1
- package/svgs/editor/indent.svg +1 -1
- package/svgs/editor/info.svg +1 -1
- package/svgs/editor/italic.svg +1 -1
- package/svgs/editor/layout-single.svg +1 -1
- package/svgs/editor/layout-three-equal.svg +1 -1
- package/svgs/editor/layout-three-with-sidebars.svg +1 -1
- package/svgs/editor/layout-two-equal.svg +1 -1
- package/svgs/editor/layout-two-left-sidebar.svg +1 -1
- package/svgs/editor/layout-two-right-sidebar.svg +1 -1
- package/svgs/editor/link.svg +1 -1
- package/svgs/editor/media-center.svg +1 -1
- package/svgs/editor/media-full-width.svg +1 -1
- package/svgs/editor/media-wide.svg +1 -1
- package/svgs/editor/media-wrap-left.svg +1 -1
- package/svgs/editor/media-wrap-right.svg +1 -1
- package/svgs/editor/mention.svg +1 -1
- package/svgs/editor/more.svg +1 -1
- package/svgs/editor/note.svg +1 -1
- package/svgs/editor/number-list.svg +1 -1
- package/svgs/editor/open.svg +1 -1
- package/svgs/editor/outdent.svg +1 -1
- package/svgs/editor/panel.svg +1 -1
- package/svgs/editor/photo.svg +1 -1
- package/svgs/editor/quote.svg +1 -1
- package/svgs/editor/recent.svg +1 -1
- package/svgs/editor/redo.svg +1 -1
- package/svgs/editor/remove-emoji.svg +1 -1
- package/svgs/editor/remove.svg +1 -1
- package/svgs/editor/search.svg +1 -1
- package/svgs/editor/settings.svg +1 -1
- package/svgs/editor/strikethrough.svg +1 -1
- package/svgs/editor/success.svg +1 -1
- package/svgs/editor/table-display-options.svg +1 -1
- package/svgs/editor/table.svg +1 -1
- package/svgs/editor/task.svg +1 -1
- package/svgs/editor/text-color.svg +1 -1
- package/svgs/editor/text-style.svg +1 -1
- package/svgs/editor/underline.svg +1 -1
- package/svgs/editor/undo.svg +1 -1
- package/svgs/editor/unlink.svg +1 -1
- package/svgs/editor/warning.svg +1 -1
- package/svgs/email.svg +1 -1
- package/svgs/emoji/activity.svg +1 -1
- package/svgs/emoji/atlassian.svg +1 -1
- package/svgs/emoji/custom.svg +1 -1
- package/svgs/emoji/emoji.svg +1 -1
- package/svgs/emoji/flags.svg +1 -1
- package/svgs/emoji/food.svg +1 -1
- package/svgs/emoji/frequent.svg +1 -1
- package/svgs/emoji/keyboard.svg +1 -1
- package/svgs/emoji/nature.svg +1 -1
- package/svgs/emoji/objects.svg +1 -1
- package/svgs/emoji/people.svg +1 -1
- package/svgs/emoji/productivity.svg +1 -1
- package/svgs/emoji/symbols.svg +1 -1
- package/svgs/emoji/travel.svg +1 -1
- package/svgs/emoji-add.svg +1 -1
- package/svgs/emoji.svg +1 -1
- package/svgs/error.svg +1 -1
- package/svgs/export.svg +1 -1
- package/svgs/feedback.svg +1 -1
- package/svgs/file.svg +1 -1
- package/svgs/filter.svg +1 -1
- package/svgs/flag-filled.svg +1 -1
- package/svgs/folder-filled.svg +1 -1
- package/svgs/folder.svg +1 -1
- package/svgs/followers.svg +1 -1
- package/svgs/following.svg +1 -1
- package/svgs/googledrive.svg +1 -1
- package/svgs/graph-bar.svg +1 -1
- package/svgs/graph-line.svg +1 -1
- package/svgs/gsuite.svg +1 -1
- package/svgs/highlights.svg +1 -1
- package/svgs/hipchat/audio-only.svg +1 -1
- package/svgs/hipchat/chevron-double-down.svg +1 -1
- package/svgs/hipchat/chevron-double-up.svg +1 -1
- package/svgs/hipchat/chevron-down.svg +1 -1
- package/svgs/hipchat/chevron-up.svg +1 -1
- package/svgs/hipchat/dial-out.svg +1 -1
- package/svgs/hipchat/lobby.svg +1 -1
- package/svgs/hipchat/outgoing-sound.svg +1 -1
- package/svgs/hipchat/sd-video.svg +1 -1
- package/svgs/home-circle.svg +1 -1
- package/svgs/home.svg +1 -1
- package/svgs/image-border.svg +1 -1
- package/svgs/image-resize.svg +1 -1
- package/svgs/image.svg +1 -1
- package/svgs/info.svg +1 -1
- package/svgs/invite-team.svg +1 -1
- package/svgs/issue-raise.svg +1 -1
- package/svgs/issue.svg +1 -1
- package/svgs/issues.svg +1 -1
- package/svgs/jira/capture.svg +1 -1
- package/svgs/jira/failed-build-status.svg +1 -1
- package/svgs/jira/labs.svg +1 -1
- package/svgs/jira/test-session.svg +1 -1
- package/svgs/label.svg +1 -1
- package/svgs/lightbulb-filled.svg +1 -1
- package/svgs/lightbulb.svg +1 -1
- package/svgs/like.svg +1 -1
- package/svgs/link-filled.svg +1 -1
- package/svgs/link.svg +1 -1
- package/svgs/list.svg +1 -1
- package/svgs/location.svg +1 -1
- package/svgs/lock-circle.svg +1 -1
- package/svgs/lock-filled.svg +1 -1
- package/svgs/lock.svg +1 -1
- package/svgs/marketplace.svg +1 -1
- package/svgs/media-services/actual-size.svg +1 -1
- package/svgs/media-services/add-comment.svg +1 -1
- package/svgs/media-services/annotate.svg +1 -1
- package/svgs/media-services/arrow.svg +1 -1
- package/svgs/media-services/audio.svg +1 -1
- package/svgs/media-services/blur.svg +1 -1
- package/svgs/media-services/brush.svg +1 -1
- package/svgs/media-services/button-option.svg +1 -1
- package/svgs/media-services/code.svg +1 -1
- package/svgs/media-services/document.svg +1 -1
- package/svgs/media-services/filter.svg +1 -1
- package/svgs/media-services/fit-to-page.svg +1 -1
- package/svgs/media-services/full-screen.svg +1 -1
- package/svgs/media-services/grid.svg +1 -1
- package/svgs/media-services/image.svg +1 -1
- package/svgs/media-services/line-thickness.svg +1 -1
- package/svgs/media-services/line.svg +1 -1
- package/svgs/media-services/no-image.svg +1 -1
- package/svgs/media-services/open-mediaviewer.svg +1 -1
- package/svgs/media-services/oval.svg +1 -1
- package/svgs/media-services/pdf.svg +1 -1
- package/svgs/media-services/preselected.svg +1 -1
- package/svgs/media-services/presentation.svg +1 -1
- package/svgs/media-services/rectangle.svg +1 -1
- package/svgs/media-services/scale-large.svg +1 -1
- package/svgs/media-services/scale-small.svg +1 -1
- package/svgs/media-services/spreadsheet.svg +1 -1
- package/svgs/media-services/unknown.svg +1 -1
- package/svgs/media-services/video.svg +1 -1
- package/svgs/media-services/zip.svg +1 -1
- package/svgs/media-services/zoom-in.svg +1 -1
- package/svgs/media-services/zoom-out.svg +1 -1
- package/svgs/mention.svg +1 -1
- package/svgs/menu-expand.svg +1 -1
- package/svgs/menu.svg +1 -1
- package/svgs/mobile.svg +1 -1
- package/svgs/notification-all.svg +1 -1
- package/svgs/notification-direct.svg +1 -1
- package/svgs/notification.svg +1 -1
- package/svgs/office-building-filled.svg +1 -1
- package/svgs/office-building.svg +1 -1
- package/svgs/open.svg +1 -1
- package/svgs/overview.svg +1 -1
- package/svgs/page-filled.svg +1 -1
- package/svgs/page.svg +1 -1
- package/svgs/pdf.svg +1 -1
- package/svgs/people-group.svg +1 -1
- package/svgs/people.svg +1 -1
- package/svgs/person-circle.svg +1 -1
- package/svgs/person-with-circle.svg +1 -1
- package/svgs/person-with-cross.svg +1 -1
- package/svgs/person-with-tick.svg +1 -1
- package/svgs/person.svg +1 -1
- package/svgs/portfolio.svg +1 -1
- package/svgs/preferences.svg +1 -1
- package/svgs/premium.svg +1 -1
- package/svgs/presence-busy.svg +1 -1
- package/svgs/presence-unavailable.svg +1 -1
- package/svgs/question-circle.svg +1 -1
- package/svgs/question.svg +1 -1
- package/svgs/questions.svg +1 -1
- package/svgs/queues.svg +1 -1
- package/svgs/quote.svg +1 -1
- package/svgs/radio.svg +1 -1
- package/svgs/recent.svg +1 -1
- package/svgs/redo.svg +1 -1
- package/svgs/refresh.svg +1 -1
- package/svgs/retry.svg +1 -1
- package/svgs/roadmap.svg +1 -1
- package/svgs/room-menu.svg +1 -1
- package/svgs/schedule-filled.svg +1 -1
- package/svgs/schedule.svg +1 -1
- package/svgs/screen.svg +1 -1
- package/svgs/search.svg +1 -1
- package/svgs/select-clear.svg +1 -1
- package/svgs/send.svg +1 -1
- package/svgs/settings.svg +1 -1
- package/svgs/share.svg +1 -1
- package/svgs/ship.svg +1 -1
- package/svgs/shortcut.svg +1 -1
- package/svgs/sign-in.svg +1 -1
- package/svgs/sign-out.svg +1 -1
- package/svgs/sprint.svg +1 -1
- package/svgs/star-filled.svg +1 -1
- package/svgs/star-large.svg +1 -1
- package/svgs/star.svg +1 -1
- package/svgs/status.svg +1 -1
- package/svgs/stopwatch.svg +1 -1
- package/svgs/subtask.svg +1 -1
- package/svgs/suitcase.svg +1 -1
- package/svgs/switcher.svg +1 -1
- package/svgs/table.svg +1 -1
- package/svgs/task.svg +1 -1
- package/svgs/trash.svg +1 -1
- package/svgs/tray.svg +1 -1
- package/svgs/undo.svg +1 -1
- package/svgs/unlink.svg +1 -1
- package/svgs/unlock-circle.svg +1 -1
- package/svgs/unlock-filled.svg +1 -1
- package/svgs/unlock.svg +1 -1
- package/svgs/upload.svg +1 -1
- package/svgs/user-avatar-circle.svg +1 -1
- package/svgs/vid-audio-muted.svg +1 -1
- package/svgs/vid-audio-on.svg +1 -1
- package/svgs/vid-backward.svg +1 -1
- package/svgs/vid-camera-off.svg +1 -1
- package/svgs/vid-camera-on.svg +1 -1
- package/svgs/vid-connection-circle.svg +1 -1
- package/svgs/vid-forward.svg +1 -1
- package/svgs/vid-full-screen-off.svg +1 -1
- package/svgs/vid-full-screen-on.svg +1 -1
- package/svgs/vid-hang-up.svg +1 -1
- package/svgs/vid-hd-circle.svg +1 -1
- package/svgs/vid-pause.svg +1 -1
- package/svgs/vid-play.svg +1 -1
- package/svgs/vid-raised-hand.svg +1 -1
- package/svgs/vid-share-screen.svg +1 -1
- package/svgs/vid-speaking-circle.svg +1 -1
- package/svgs/vid-volume-full.svg +1 -1
- package/svgs/vid-volume-half.svg +1 -1
- package/svgs/vid-volume-muted.svg +1 -1
- package/svgs/video-circle.svg +1 -1
- package/svgs/video-filled.svg +1 -1
- package/svgs/warning.svg +1 -1
- package/svgs/watch-filled.svg +1 -1
- package/svgs/watch.svg +1 -1
- package/svgs/world-small.svg +1 -1
- package/svgs/world.svg +1 -1
- package/dist/cjs/extract-react-types/custom-glyph.js +0 -9
- package/dist/cjs/extract-react-types/glyph-no-color-size.js +0 -7
- package/dist/cjs/extract-react-types/glyph-no-color.js +0 -7
- package/dist/cjs/extract-react-types/glyph.js +0 -7
- package/dist/cjs/extract-react-types/svg.js +0 -9
- package/dist/es2019/extract-react-types/custom-glyph.js +0 -3
- package/dist/es2019/extract-react-types/glyph-no-color-size.js +0 -1
- package/dist/es2019/extract-react-types/glyph-no-color.js +0 -1
- package/dist/es2019/extract-react-types/glyph.js +0 -1
- package/dist/es2019/extract-react-types/svg.js +0 -3
- package/dist/esm/extract-react-types/custom-glyph.js +0 -3
- package/dist/esm/extract-react-types/glyph-no-color-size.js +0 -1
- package/dist/esm/extract-react-types/glyph-no-color.js +0 -1
- package/dist/esm/extract-react-types/glyph.js +0 -1
- package/dist/esm/extract-react-types/svg.js +0 -3
- package/dist/types/extract-react-types/custom-glyph.d.ts +0 -2
- package/dist/types/extract-react-types/glyph-no-color-size.d.ts +0 -2
- package/dist/types/extract-react-types/glyph-no-color.d.ts +0 -2
- package/dist/types/extract-react-types/glyph.d.ts +0 -2
- package/dist/types/extract-react-types/svg.d.ts +0 -2
- package/dist/types-ts4.5/extract-react-types/custom-glyph.d.ts +0 -2
- package/dist/types-ts4.5/extract-react-types/glyph-no-color-size.d.ts +0 -2
- package/dist/types-ts4.5/extract-react-types/glyph-no-color.d.ts +0 -2
- package/dist/types-ts4.5/extract-react-types/glyph.d.ts +0 -2
- package/dist/types-ts4.5/extract-react-types/svg.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 22.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#124884](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124884)
|
|
8
|
+
[`3108a1a229e07`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3108a1a229e07) - -
|
|
9
|
+
Icons in `@atlaskit/icon/glyph` can now switch to updated designs behind a feature flag.
|
|
10
|
+
- SVGs in `/svgs`, used by icons in `@atlaskit/icon/glyph`, have been re-optimised with the latest
|
|
11
|
+
version of SVGO; some slight changes to SVG code or subpixel aliasing may occur
|
|
12
|
+
|
|
13
|
+
## 22.7.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#122612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122612)
|
|
18
|
+
[`0c9d2190a14f2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c9d2190a14f2) -
|
|
19
|
+
Adds a new prop, LEGACY_margin, to the new icon API to allow for spacing adjustments between old
|
|
20
|
+
and new icons API.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [#122977](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122977)
|
|
25
|
+
[`41748db2c12de`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/41748db2c12de) -
|
|
26
|
+
[ux]ED-24225 add wrap button inside editor-plugin-block
|
|
27
|
+
|
|
3
28
|
## 22.6.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__icon/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../tokens/afm-post-office/tsconfig.json"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
package/build/index.tsx
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import buildIcons, {
|
|
3
|
+
UNSAFE_buildNew as buildIconsNew,
|
|
4
|
+
UNSAFE_createIconDocsNew,
|
|
5
|
+
createIconDocs,
|
|
6
|
+
} from '@af/icon-build-process';
|
|
7
|
+
import type { UNSAFE_NewIconBuildConfig, IconBuildConfig } from '@af/icon-build-process';
|
|
4
8
|
import pkgDir from 'pkg-dir';
|
|
5
9
|
import fs from 'fs-extra';
|
|
6
10
|
import synonyms from '../utils/synonyms';
|
|
@@ -22,22 +26,21 @@ if (!root) {
|
|
|
22
26
|
* To avoid unnecessary churn, this step is switched off, and any updates to the old icon set can be done piecemeal.
|
|
23
27
|
*/
|
|
24
28
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// });
|
|
29
|
+
const config: IconBuildConfig = {
|
|
30
|
+
srcDir: path.resolve(root, 'svgs_raw'),
|
|
31
|
+
processedDir: path.resolve(root, 'svgs'),
|
|
32
|
+
destDir: path.resolve(root, 'glyph'),
|
|
33
|
+
maxWidth: 24,
|
|
34
|
+
maxHeight: 24,
|
|
35
|
+
glob: '**/*.svg',
|
|
36
|
+
baseIconEntryPoint: '@atlaskit/icon/base',
|
|
37
|
+
newIconsDir: path.resolve(root, 'icons_raw'),
|
|
38
|
+
migrationMap,
|
|
39
|
+
};
|
|
40
|
+
buildIcons(config).then((icons) => {
|
|
41
|
+
const iconDocs = createIconDocs(icons, '@atlaskit/icon', synonyms, ['icon', 'core']);
|
|
42
|
+
return fs.outputFile(path.resolve(root, 'src/metadata.tsx'), iconDocs);
|
|
43
|
+
});
|
|
41
44
|
|
|
42
45
|
/**
|
|
43
46
|
* The updated icon build process for the new icons under `@atlaskit/icon/core/*`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.IconFacade = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
+
var _icon = _interopRequireDefault(require("./icon"));
|
|
14
|
+
var _excluded = ["dangerouslySetGlyph"];
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
var sizesEligibleForNewIcons = ['small', 'medium'];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
21
|
+
*
|
|
22
|
+
* @param {IconFacadeProps} props - The props for the IconFacade component. Includes properties for configuring
|
|
23
|
+
* the icon such as `size`, `spacing`, `primaryColor`, `iconType`, and potentially others depending on the icon.
|
|
24
|
+
* `dangerouslySetGlyph` is a prop specific to the legacy icon component for setting the icon glyph directly.
|
|
25
|
+
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
26
|
+
*/
|
|
27
|
+
var IconFacade = exports.IconFacade = /*#__PURE__*/(0, _react.memo)(function IconFacade(_ref) {
|
|
28
|
+
var _props$size;
|
|
29
|
+
var dangerouslySetGlyph = _ref.dangerouslySetGlyph,
|
|
30
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
31
|
+
var NewIcon = props.newIcon;
|
|
32
|
+
|
|
33
|
+
// By default, the icon size will be medium and spacing will be none for small icons
|
|
34
|
+
var size = (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : 'medium';
|
|
35
|
+
var spacing = size === 'small' ? 'none' : 'spacious';
|
|
36
|
+
|
|
37
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
38
|
+
var useNewIcon = (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-legacy-facade') && sizesEligibleForNewIcons.includes(size);
|
|
39
|
+
if (useNewIcon && NewIcon) {
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(NewIcon, (0, _extends2.default)({}, props, {
|
|
41
|
+
spacing: spacing,
|
|
42
|
+
color: props.primaryColor || 'currentColor',
|
|
43
|
+
type: props.iconType
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({
|
|
47
|
+
dangerouslySetGlyph: dangerouslySetGlyph
|
|
48
|
+
}, props));
|
|
49
|
+
});
|
|
50
|
+
var _default = exports.default = IconFacade;
|
|
@@ -9,8 +9,8 @@ var _react2 = require("@emotion/react");
|
|
|
9
9
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
10
|
/**
|
|
11
11
|
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
12
13
|
*/
|
|
13
|
-
/** @jsx jsx */
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
|
|
@@ -107,7 +107,8 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
107
107
|
_ref$type = _ref.type,
|
|
108
108
|
type = _ref$type === void 0 ? 'global' : _ref$type,
|
|
109
109
|
dangerouslySetGlyph = _ref.dangerouslySetGlyph,
|
|
110
|
-
shouldScale = _ref.shouldScale
|
|
110
|
+
shouldScale = _ref.shouldScale,
|
|
111
|
+
LEGACY_margin = _ref.LEGACY_margin;
|
|
111
112
|
var dangerouslySetInnerHTML = dangerouslySetGlyph ? {
|
|
112
113
|
__html: dangerouslySetGlyph
|
|
113
114
|
} : undefined;
|
|
@@ -121,6 +122,9 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
121
122
|
size: LEGACY_size,
|
|
122
123
|
label: label,
|
|
123
124
|
testId: testId
|
|
125
|
+
// @ts-ignore-next-line
|
|
126
|
+
,
|
|
127
|
+
UNSAFE_margin: LEGACY_margin
|
|
124
128
|
});
|
|
125
129
|
}
|
|
126
130
|
|
|
@@ -9,12 +9,13 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var _utils = require("./utils");
|
|
13
12
|
var _styles = require("./styles");
|
|
13
|
+
var _utils = require("./utils");
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
16
16
|
* @jsxRuntime classic
|
|
17
|
-
|
|
17
|
+
* @jsx jsx
|
|
18
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
/**
|
|
19
20
|
* We are hiding these props from consumers as they're used to
|
|
20
21
|
* hack around icon sizing specifically for icon-file-type.
|
|
@@ -86,7 +87,8 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
86
87
|
testId = _ref.testId,
|
|
87
88
|
label = _ref.label,
|
|
88
89
|
width = _ref.width,
|
|
89
|
-
height = _ref.height
|
|
90
|
+
height = _ref.height,
|
|
91
|
+
UNSAFE_margin = _ref.UNSAFE_margin;
|
|
90
92
|
var glyphProps = dangerouslySetGlyph ? {
|
|
91
93
|
dangerouslySetInnerHTML: {
|
|
92
94
|
__html: dangerouslySetGlyph
|
|
@@ -108,12 +110,13 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
108
110
|
"aria-hidden": label ? undefined : true
|
|
109
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
110
112
|
,
|
|
111
|
-
style: {
|
|
113
|
+
style: _objectSpread({
|
|
112
114
|
'--icon-primary-color': primaryColor,
|
|
113
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
114
116
|
'--icon-secondary-color': secondaryColor || (0, _utils.getBackground)()
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
}, UNSAFE_margin ? {
|
|
118
|
+
margin: UNSAFE_margin
|
|
119
|
+
} : {})
|
|
117
120
|
}, glyphProps, {
|
|
118
121
|
css: [iconStyles, baseHcmStyles, primaryColor === secondaryColor && primaryEqualsSecondaryHcmStyles, secondaryColor === 'transparent' && secondaryTransparentHcmStyles,
|
|
119
122
|
// NB: This can be resolved if this component, composes base SVG / and/or skeleton
|
|
@@ -9,8 +9,8 @@ var _react2 = require("react");
|
|
|
9
9
|
var _styles = require("./styles");
|
|
10
10
|
/**
|
|
11
11
|
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
12
13
|
*/
|
|
13
|
-
/** @jsx jsx */
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
|
|
16
16
|
var skeletonStyles = (0, _react.css)({
|
|
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "Icon", {
|
|
|
10
10
|
return _icon.Icon;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(exports, "UNSAFE_IconFacade", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _iconFacade.IconFacade;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
13
19
|
Object.defineProperty(exports, "default", {
|
|
14
20
|
enumerable: true,
|
|
15
21
|
get: function get() {
|
|
@@ -17,5 +23,6 @@ Object.defineProperty(exports, "default", {
|
|
|
17
23
|
}
|
|
18
24
|
});
|
|
19
25
|
var _icon = _interopRequireWildcard(require("../components/icon"));
|
|
26
|
+
var _iconFacade = require("../components/icon-facade");
|
|
20
27
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -122,19 +122,15 @@ var migrationMap = {
|
|
|
122
122
|
xlarge: 'icon-tile'
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
|
-
'app-switcher': {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
large: 'top-nav',
|
|
135
|
-
xlarge: 'top-nav'
|
|
136
|
-
}
|
|
137
|
-
},
|
|
125
|
+
// 'app-switcher': {
|
|
126
|
+
// newIcon: { name: 'app-switcher', type: 'core', package: '@atlaskit/icon' },
|
|
127
|
+
// sizeGuidance: {
|
|
128
|
+
// small: 'top-nav',
|
|
129
|
+
// medium: 'top-nav',
|
|
130
|
+
// large: 'top-nav',
|
|
131
|
+
// xlarge: 'top-nav',
|
|
132
|
+
// },
|
|
133
|
+
// },
|
|
138
134
|
archive: {
|
|
139
135
|
newIcon: {
|
|
140
136
|
name: 'archive-box',
|
|
@@ -1043,19 +1039,15 @@ var migrationMap = {
|
|
|
1043
1039
|
xlarge: 'icon-tile'
|
|
1044
1040
|
}
|
|
1045
1041
|
},
|
|
1046
|
-
download: {
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
large: 'icon-tile',
|
|
1056
|
-
xlarge: 'icon-tile'
|
|
1057
|
-
}
|
|
1058
|
-
},
|
|
1042
|
+
// download: {
|
|
1043
|
+
// newIcon: { name: 'cloud-arrow-down', type: 'core', package: '@atlaskit/icon' },
|
|
1044
|
+
// sizeGuidance: {
|
|
1045
|
+
// small: 'swap',
|
|
1046
|
+
// medium: 'swap',
|
|
1047
|
+
// large: 'icon-tile',
|
|
1048
|
+
// xlarge: 'icon-tile',
|
|
1049
|
+
// },
|
|
1050
|
+
// },
|
|
1059
1051
|
'drag-handler': {
|
|
1060
1052
|
newIcon: {
|
|
1061
1053
|
name: 'drag-handle',
|
|
@@ -2878,32 +2870,24 @@ var migrationMap = {
|
|
|
2878
2870
|
xlarge: 'icon-lab'
|
|
2879
2871
|
}
|
|
2880
2872
|
},
|
|
2881
|
-
'menu-expand': {
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
},
|
|
2900
|
-
sizeGuidance: {
|
|
2901
|
-
small: 'swap',
|
|
2902
|
-
medium: 'swap',
|
|
2903
|
-
large: 'icon-tile',
|
|
2904
|
-
xlarge: 'icon-tile'
|
|
2905
|
-
}
|
|
2906
|
-
},
|
|
2873
|
+
// 'menu-expand': {
|
|
2874
|
+
// newIcon: { name: 'menu', type: 'core', package: '@atlaskit/icon' },
|
|
2875
|
+
// sizeGuidance: {
|
|
2876
|
+
// small: 'swap',
|
|
2877
|
+
// medium: 'swap',
|
|
2878
|
+
// large: 'icon-tile',
|
|
2879
|
+
// xlarge: 'icon-tile',
|
|
2880
|
+
// },
|
|
2881
|
+
// },
|
|
2882
|
+
// menu: {
|
|
2883
|
+
// newIcon: { name: 'menu', type: 'core', package: '@atlaskit/icon' },
|
|
2884
|
+
// sizeGuidance: {
|
|
2885
|
+
// small: 'swap',
|
|
2886
|
+
// medium: 'swap',
|
|
2887
|
+
// large: 'icon-tile',
|
|
2888
|
+
// xlarge: 'icon-tile',
|
|
2889
|
+
// },
|
|
2890
|
+
// },
|
|
2907
2891
|
mobile: {
|
|
2908
2892
|
newIcon: {
|
|
2909
2893
|
name: 'device-mobile',
|
|
@@ -2951,32 +2935,24 @@ var migrationMap = {
|
|
|
2951
2935
|
xlarge: 'icon-lab'
|
|
2952
2936
|
}
|
|
2953
2937
|
},
|
|
2954
|
-
'notification-direct': {
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
},
|
|
2973
|
-
sizeGuidance: {
|
|
2974
|
-
small: 'swap-visual-change',
|
|
2975
|
-
medium: 'swap-visual-change',
|
|
2976
|
-
large: 'icon-tile',
|
|
2977
|
-
xlarge: 'icon-tile'
|
|
2978
|
-
}
|
|
2979
|
-
},
|
|
2938
|
+
// 'notification-direct': {
|
|
2939
|
+
// newIcon: { name: 'notification', type: 'core', package: '@atlaskit/icon' },
|
|
2940
|
+
// sizeGuidance: {
|
|
2941
|
+
// small: 'swap-slight-visual-change',
|
|
2942
|
+
// medium: 'swap-slight-visual-change',
|
|
2943
|
+
// large: 'icon-tile',
|
|
2944
|
+
// xlarge: 'icon-tile',
|
|
2945
|
+
// },
|
|
2946
|
+
// },
|
|
2947
|
+
// notification: {
|
|
2948
|
+
// newIcon: { name: 'notification', type: 'core', package: '@atlaskit/icon' },
|
|
2949
|
+
// sizeGuidance: {
|
|
2950
|
+
// small: 'swap-visual-change',
|
|
2951
|
+
// medium: 'swap-visual-change',
|
|
2952
|
+
// large: 'icon-tile',
|
|
2953
|
+
// xlarge: 'icon-tile',
|
|
2954
|
+
// },
|
|
2955
|
+
// },
|
|
2980
2956
|
'office-building-filled': {
|
|
2981
2957
|
newIcon: {
|
|
2982
2958
|
name: 'office-building',
|
|
@@ -3604,19 +3580,15 @@ var migrationMap = {
|
|
|
3604
3580
|
xlarge: 'icon-tile'
|
|
3605
3581
|
}
|
|
3606
3582
|
},
|
|
3607
|
-
switcher: {
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
large: 'not-recommended',
|
|
3617
|
-
xlarge: 'not-recommended'
|
|
3618
|
-
}
|
|
3619
|
-
},
|
|
3583
|
+
// switcher: {
|
|
3584
|
+
// newIcon: { name: 'app-switcher', type: 'core', package: '@atlaskit/icon' },
|
|
3585
|
+
// sizeGuidance: {
|
|
3586
|
+
// small: 'swap-visual-change',
|
|
3587
|
+
// medium: 'swap-visual-change',
|
|
3588
|
+
// large: 'not-recommended',
|
|
3589
|
+
// xlarge: 'not-recommended',
|
|
3590
|
+
// },
|
|
3591
|
+
// },
|
|
3620
3592
|
table: {
|
|
3621
3593
|
newIcon: {
|
|
3622
3594
|
name: 'grid',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React, { memo } from 'react';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import LegacyIcon from './icon';
|
|
5
|
+
const sizesEligibleForNewIcons = ['small', 'medium'];
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
9
|
+
*
|
|
10
|
+
* @param {IconFacadeProps} props - The props for the IconFacade component. Includes properties for configuring
|
|
11
|
+
* the icon such as `size`, `spacing`, `primaryColor`, `iconType`, and potentially others depending on the icon.
|
|
12
|
+
* `dangerouslySetGlyph` is a prop specific to the legacy icon component for setting the icon glyph directly.
|
|
13
|
+
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
14
|
+
*/
|
|
15
|
+
export const IconFacade = /*#__PURE__*/memo(function IconFacade({
|
|
16
|
+
dangerouslySetGlyph,
|
|
17
|
+
...props
|
|
18
|
+
}) {
|
|
19
|
+
var _props$size;
|
|
20
|
+
const NewIcon = props.newIcon;
|
|
21
|
+
|
|
22
|
+
// By default, the icon size will be medium and spacing will be none for small icons
|
|
23
|
+
const size = (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : 'medium';
|
|
24
|
+
const spacing = size === 'small' ? 'none' : 'spacious';
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
27
|
+
const useNewIcon = fg('platform-visual-refresh-icons-legacy-facade') && sizesEligibleForNewIcons.includes(size);
|
|
28
|
+
if (useNewIcon && NewIcon) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(NewIcon, _extends({}, props, {
|
|
30
|
+
spacing: spacing,
|
|
31
|
+
color: props.primaryColor || 'currentColor',
|
|
32
|
+
type: props.iconType
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
|
|
36
|
+
dangerouslySetGlyph: dangerouslySetGlyph
|
|
37
|
+
}, props));
|
|
38
|
+
});
|
|
39
|
+
export default IconFacade;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
import { memo } from 'react';
|
|
6
|
+
|
|
6
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
8
|
import { css, jsx } from '@emotion/react';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -100,7 +101,8 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
100
101
|
// Used to set icon glyphs in codegen
|
|
101
102
|
dangerouslySetGlyph,
|
|
102
103
|
// Used with iconTile to scale icon up and down
|
|
103
|
-
shouldScale
|
|
104
|
+
shouldScale,
|
|
105
|
+
LEGACY_margin
|
|
104
106
|
} = props;
|
|
105
107
|
const dangerouslySetInnerHTML = dangerouslySetGlyph ? {
|
|
106
108
|
__html: dangerouslySetGlyph
|
|
@@ -115,6 +117,9 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
115
117
|
size: LEGACY_size,
|
|
116
118
|
label: label,
|
|
117
119
|
testId: testId
|
|
120
|
+
// @ts-ignore-next-line
|
|
121
|
+
,
|
|
122
|
+
UNSAFE_margin: LEGACY_margin
|
|
118
123
|
});
|
|
119
124
|
}
|
|
120
125
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
import { memo } from 'react';
|
|
7
|
+
|
|
7
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
9
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { getBackground } from './utils';
|
|
10
10
|
import { commonSVGStyles, getIconSize } from './styles';
|
|
11
|
+
import { getBackground } from './utils';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* We are hiding these props from consumers as they're used to
|
|
@@ -81,7 +82,8 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
81
82
|
testId,
|
|
82
83
|
label,
|
|
83
84
|
width,
|
|
84
|
-
height
|
|
85
|
+
height,
|
|
86
|
+
UNSAFE_margin
|
|
85
87
|
} = props;
|
|
86
88
|
const glyphProps = dangerouslySetGlyph ? {
|
|
87
89
|
dangerouslySetInnerHTML: {
|
|
@@ -107,7 +109,11 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
107
109
|
style: {
|
|
108
110
|
'--icon-primary-color': primaryColor,
|
|
109
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
110
|
-
'--icon-secondary-color': secondaryColor || getBackground()
|
|
112
|
+
'--icon-secondary-color': secondaryColor || getBackground(),
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
114
|
+
...(UNSAFE_margin ? {
|
|
115
|
+
margin: UNSAFE_margin
|
|
116
|
+
} : {})
|
|
111
117
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
112
118
|
}
|
|
113
119
|
}, glyphProps, {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default, Icon } from '../components/icon';
|
|
1
|
+
export { default, Icon } from '../components/icon';
|
|
2
|
+
export { IconFacade as UNSAFE_IconFacade } from '../components/icon-facade';
|