@atlaskit/icon 22.20.2 → 22.22.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 +23 -0
- package/core/add.d.ts +5 -4
- package/core/ai-agent.d.ts +5 -4
- package/core/ai-chat.d.ts +5 -4
- package/core/alert.d.ts +5 -4
- package/core/align-center.d.ts +5 -4
- package/core/align-left.d.ts +5 -4
- package/core/align-right.d.ts +5 -4
- package/core/angle-brackets.d.ts +5 -4
- package/core/api.d.ts +5 -4
- package/core/app-switcher-legacy.d.ts +5 -4
- package/core/app-switcher.d.ts +5 -4
- package/core/app.d.ts +5 -4
- package/core/apps.d.ts +5 -4
- package/core/archive-box.d.ts +5 -4
- package/core/arrow-down-left.d.ts +5 -4
- package/core/arrow-down-right.d.ts +5 -4
- package/core/arrow-down.d.ts +5 -4
- package/core/arrow-left.d.ts +5 -4
- package/core/arrow-right.d.ts +5 -4
- package/core/arrow-up-left.d.ts +5 -4
- package/core/arrow-up-right.d.ts +5 -4
- package/core/arrow-up.d.ts +5 -4
- package/core/assets.d.ts +5 -4
- package/core/atlassian-intelligence.d.ts +5 -4
- package/core/attachment.d.ts +5 -4
- package/core/audio.d.ts +5 -4
- package/core/automation.d.ts +5 -4
- package/core/backlog.d.ts +5 -4
- package/core/basketball.d.ts +5 -4
- package/core/board.d.ts +5 -4
- package/core/boards.d.ts +5 -4
- package/core/book-with-bookmark.d.ts +5 -4
- package/core/border-weight-medium.d.ts +5 -4
- package/core/border-weight-thick.d.ts +5 -4
- package/core/border-weight-thin.d.ts +5 -4
- package/core/border.d.ts +5 -4
- package/core/branch.d.ts +5 -4
- package/core/briefcase.d.ts +5 -4
- package/core/bug.d.ts +5 -4
- package/core/bulleted-list.d.ts +5 -4
- package/core/calendar-plus.d.ts +5 -4
- package/core/calendar.d.ts +5 -4
- package/core/camera.d.ts +5 -4
- package/core/capture.d.ts +5 -4
- package/core/card.d.ts +5 -4
- package/core/cash.d.ts +5 -4
- package/core/changes.d.ts +5 -4
- package/core/chart-bar.d.ts +5 -4
- package/core/chart-matrix.d.ts +5 -4
- package/core/chart-pie.d.ts +5 -4
- package/core/chart-trend.d.ts +5 -4
- package/core/chat-widget.d.ts +5 -4
- package/core/check-circle.d.ts +5 -4
- package/core/check-mark.d.ts +5 -4
- package/core/checkbox-checked.d.ts +5 -4
- package/core/checkbox-indeterminate.d.ts +5 -4
- package/core/checkbox-unchecked.d.ts +5 -4
- package/core/child-issues.d.ts +5 -4
- package/core/clipboard.d.ts +5 -4
- package/core/clock.d.ts +5 -4
- package/core/close.d.ts +5 -4
- package/core/cloud-arrow-up.d.ts +5 -4
- package/core/collapse-horizontal.d.ts +5 -4
- package/core/collapse-vertical.d.ts +5 -4
- package/core/collapse.d.ts +5 -4
- package/core/comment-add.d.ts +5 -4
- package/core/comment.d.ts +5 -4
- package/core/commit.d.ts +5 -4
- package/core/compass.d.ts +5 -4
- package/core/component.d.ts +5 -4
- package/core/content-align-center.d.ts +5 -4
- package/core/content-align-left.d.ts +5 -4
- package/core/content-align-right.d.ts +5 -4
- package/core/content-width-narrow.d.ts +5 -4
- package/core/content-width-wide.d.ts +5 -4
- package/core/content-wrap-left.d.ts +5 -4
- package/core/content-wrap-right.d.ts +5 -4
- package/core/copy.d.ts +5 -4
- package/core/credit-card.d.ts +5 -4
- package/core/cross-circle.d.ts +5 -4
- package/core/curly-brackets.d.ts +5 -4
- package/core/customize.d.ts +5 -4
- package/core/dashboard.d.ts +5 -4
- package/core/data-flow.d.ts +5 -4
- package/core/data-number.d.ts +5 -4
- package/core/data-string.d.ts +5 -4
- package/core/database.d.ts +5 -4
- package/core/decision.d.ts +5 -4
- package/core/defect.d.ts +5 -4
- package/core/delete.d.ts +5 -4
- package/core/department.d.ts +5 -4
- package/core/device-mobile.d.ts +5 -4
- package/core/devices.d.ts +5 -4
- package/core/discovery.d.ts +5 -4
- package/core/download.d.ts +5 -4
- package/core/drag-handle.d.ts +5 -4
- package/core/edit-bulk.d.ts +5 -4
- package/core/edit.d.ts +5 -4
- package/core/email.d.ts +5 -4
- package/core/emoji-add.d.ts +5 -4
- package/core/emoji-casual.d.ts +5 -4
- package/core/emoji-neutral.d.ts +5 -4
- package/core/emoji-remove.d.ts +5 -4
- package/core/emoji.d.ts +5 -4
- package/core/epic.d.ts +5 -4
- package/core/error.d.ts +5 -4
- package/core/expand-horizontal.d.ts +5 -4
- package/core/expand-vertical.d.ts +5 -4
- package/core/expand.d.ts +5 -4
- package/core/eye-open-filled.d.ts +5 -4
- package/core/eye-open-strikethrough.d.ts +5 -4
- package/core/eye-open.d.ts +5 -4
- package/core/feed.d.ts +5 -4
- package/core/feedback.d.ts +5 -4
- package/core/field-alert.d.ts +5 -4
- package/core/field-checkbox-group.d.ts +5 -4
- package/core/field-dropdown.d.ts +5 -4
- package/core/field-radio-group.d.ts +5 -4
- package/core/field.d.ts +5 -4
- package/core/file.d.ts +5 -4
- package/core/files.d.ts +5 -4
- package/core/filter.d.ts +5 -4
- package/core/flag-filled.d.ts +5 -4
- package/core/flag.d.ts +5 -4
- package/core/flask.d.ts +5 -4
- package/core/folder-closed.d.ts +5 -4
- package/core/folder-open.d.ts +5 -4
- package/core/form.d.ts +5 -4
- package/core/fullscreen-enter.d.ts +5 -4
- package/core/fullscreen-exit.d.ts +5 -4
- package/core/glasses.d.ts +5 -4
- package/core/globe.d.ts +5 -4
- package/core/goal.d.ts +5 -4
- package/core/grid.d.ts +5 -4
- package/core/grow-diagonal.d.ts +5 -4
- package/core/grow-horizontal.d.ts +5 -4
- package/core/grow-vertical.d.ts +5 -4
- package/core/hashtag.d.ts +5 -4
- package/core/headphones.d.ts +5 -4
- package/core/heart.d.ts +5 -4
- package/core/highlight.d.ts +5 -4
- package/core/home.d.ts +5 -4
- package/core/image-fullscreen.d.ts +5 -4
- package/core/image-inline.d.ts +5 -4
- package/core/image-scaled.d.ts +5 -4
- package/core/image.d.ts +5 -4
- package/core/inbox.d.ts +5 -4
- package/core/incident.d.ts +5 -4
- package/core/information.d.ts +5 -4
- package/core/issue.d.ts +5 -4
- package/core/issues.d.ts +5 -4
- package/core/key-result.d.ts +5 -4
- package/core/layout-one-column.d.ts +5 -4
- package/core/layout-three-columns-sidebars.d.ts +5 -4
- package/core/layout-three-columns.d.ts +5 -4
- package/core/layout-two-columns-sidebar-left.d.ts +5 -4
- package/core/layout-two-columns-sidebar-right.d.ts +5 -4
- package/core/layout-two-columns.d.ts +5 -4
- package/core/library.d.ts +5 -4
- package/core/lightbulb.d.ts +5 -4
- package/core/link-broken.d.ts +5 -4
- package/core/link-external.d.ts +5 -4
- package/core/link.d.ts +5 -4
- package/core/list-bulleted.d.ts +5 -4
- package/core/list-checklist.d.ts +5 -4
- package/core/list-numbered.d.ts +5 -4
- package/core/lobby-bell.d.ts +5 -4
- package/core/location.d.ts +5 -4
- package/core/lock-locked.d.ts +5 -4
- package/core/lock-unlocked.d.ts +5 -4
- package/core/log-in.d.ts +5 -4
- package/core/log-out.d.ts +5 -4
- package/core/magic-wand.d.ts +5 -4
- package/core/markdown.d.ts +5 -4
- package/core/marketplace.d.ts +5 -4
- package/core/maximize.d.ts +5 -4
- package/core/megaphone.d.ts +5 -4
- package/core/mention.d.ts +5 -4
- package/core/menu.d.ts +5 -4
- package/core/merge-failure.d.ts +5 -4
- package/core/merge-success.d.ts +5 -4
- package/core/microphone.d.ts +5 -4
- package/core/migration/add--add-circle.d.ts +3 -2
- package/core/migration/add--editor-add.d.ts +3 -2
- package/core/migration/add--emoji-custom.d.ts +3 -2
- package/core/migration/add.d.ts +3 -2
- package/core/migration/align-center--editor-align-center.d.ts +3 -2
- package/core/migration/align-left--editor-align-left.d.ts +3 -2
- package/core/migration/align-left--overview.d.ts +3 -2
- package/core/migration/align-right--editor-align-right.d.ts +3 -2
- package/core/migration/angle-brackets--bitbucket-repos.d.ts +3 -2
- package/core/migration/angle-brackets--bitbucket-source.d.ts +3 -2
- package/core/migration/angle-brackets--code.d.ts +3 -2
- package/core/migration/angle-brackets--editor-code.d.ts +3 -2
- package/core/migration/angle-brackets--media-services-code.d.ts +3 -2
- package/core/migration/app--addon.d.ts +3 -2
- package/core/migration/app-switcher--switcher.d.ts +3 -2
- package/core/migration/app-switcher.d.ts +3 -2
- package/core/migration/archive-box--archive.d.ts +3 -2
- package/core/migration/arrow-down--arrow-down-circle.d.ts +3 -2
- package/core/migration/arrow-down.d.ts +3 -2
- package/core/migration/arrow-left--arrow-left-circle.d.ts +3 -2
- package/core/migration/arrow-left.d.ts +3 -2
- package/core/migration/arrow-right--arrow-right-circle.d.ts +3 -2
- package/core/migration/arrow-right.d.ts +3 -2
- package/core/migration/arrow-up--arrow-up-circle.d.ts +3 -2
- package/core/migration/arrow-up-right--editor-open.d.ts +3 -2
- package/core/migration/arrow-up-right--open.d.ts +3 -2
- package/core/migration/arrow-up.d.ts +3 -2
- package/core/migration/attachment--editor-attachment.d.ts +3 -2
- package/core/migration/attachment.d.ts +3 -2
- package/core/migration/audio--audio-circle.d.ts +3 -2
- package/core/migration/audio--media-services-audio.d.ts +3 -2
- package/core/migration/audio.d.ts +3 -2
- package/core/migration/backlog.d.ts +3 -2
- package/core/migration/basketball--emoji-activity.d.ts +3 -2
- package/core/migration/board.d.ts +3 -2
- package/core/migration/boards--switcher.d.ts +3 -2
- package/core/migration/book-with-bookmark--book.d.ts +3 -2
- package/core/migration/border-weight-thin--media-services-line.d.ts +3 -2
- package/core/migration/branch--bitbucket-branches.d.ts +3 -2
- package/core/migration/briefcase--suitcase.d.ts +3 -2
- package/core/migration/bug--jira-test-session.d.ts +3 -2
- package/core/migration/bulleted-list--bullet-list.d.ts +3 -2
- package/core/migration/bulleted-list--editor-bullet-list.d.ts +3 -2
- package/core/migration/calendar--calendar-filled.d.ts +3 -2
- package/core/migration/calendar--editor-date.d.ts +3 -2
- package/core/migration/calendar-plus--schedule-filled.d.ts +3 -2
- package/core/migration/calendar-plus--schedule.d.ts +3 -2
- package/core/migration/calendar.d.ts +3 -2
- package/core/migration/camera--camera-filled.d.ts +3 -2
- package/core/migration/camera--editor-photo.d.ts +3 -2
- package/core/migration/camera.d.ts +3 -2
- package/core/migration/capture--jira-capture.d.ts +3 -2
- package/core/migration/chart-bar--graph-bar.d.ts +3 -2
- package/core/migration/chart-bar--media-services-presentation.d.ts +3 -2
- package/core/migration/chart-trend--graph-line.d.ts +3 -2
- package/core/migration/check-circle--check-circle-outline.d.ts +3 -2
- package/core/migration/check-circle--emoji-productivity.d.ts +3 -2
- package/core/migration/check-circle.d.ts +3 -2
- package/core/migration/check-mark--check.d.ts +3 -2
- package/core/migration/check-mark--editor-done.d.ts +3 -2
- package/core/migration/checkbox-checked--checkbox.d.ts +3 -2
- package/core/migration/checkbox-checked--editor-task.d.ts +3 -2
- package/core/migration/checkbox-indeterminate.d.ts +3 -2
- package/core/migration/child-issues.d.ts +3 -2
- package/core/migration/clock--editor-recent.d.ts +3 -2
- package/core/migration/clock--emoji-frequent.d.ts +3 -2
- package/core/migration/clock--recent.d.ts +3 -2
- package/core/migration/close--cross.d.ts +3 -2
- package/core/migration/close--editor-close.d.ts +3 -2
- package/core/migration/cloud-arrow-up--upload.d.ts +3 -2
- package/core/migration/collapse--editor-collapse.d.ts +3 -2
- package/core/migration/comment--questions.d.ts +3 -2
- package/core/migration/comment-add--media-services-add-comment.d.ts +3 -2
- package/core/migration/comment.d.ts +3 -2
- package/core/migration/commit--bitbucket-commits.d.ts +3 -2
- package/core/migration/compass--discover-filled.d.ts +3 -2
- package/core/migration/compass--discover.d.ts +3 -2
- package/core/migration/component.d.ts +3 -2
- package/core/migration/content-align-center--editor-align-image-center.d.ts +3 -2
- package/core/migration/content-align-left--editor-align-image-left.d.ts +3 -2
- package/core/migration/content-align-right--editor-align-image-right.d.ts +3 -2
- package/core/migration/content-width-narrow--editor-media-center.d.ts +3 -2
- package/core/migration/content-width-wide--editor-media-wide.d.ts +3 -2
- package/core/migration/copy.d.ts +3 -2
- package/core/migration/credit-card--creditcard-filled.d.ts +3 -2
- package/core/migration/credit-card--creditcard.d.ts +3 -2
- package/core/migration/cross-circle--editor-error.d.ts +3 -2
- package/core/migration/cross-circle--select-clear.d.ts +3 -2
- package/core/migration/cross-circle.d.ts +3 -2
- package/core/migration/customize--preferences.d.ts +3 -2
- package/core/migration/dashboard--activity.d.ts +3 -2
- package/core/migration/dashboard.d.ts +3 -2
- package/core/migration/decision--editor-decision.d.ts +3 -2
- package/core/migration/decision.d.ts +3 -2
- package/core/migration/delete--editor-remove.d.ts +3 -2
- package/core/migration/delete--trash.d.ts +3 -2
- package/core/migration/department.d.ts +3 -2
- package/core/migration/device-mobile--mobile.d.ts +3 -2
- package/core/migration/download.d.ts +3 -2
- package/core/migration/drag-handle--drag-handler.d.ts +3 -2
- package/core/migration/edit--edit-filled.d.ts +3 -2
- package/core/migration/edit--editor-edit.d.ts +3 -2
- package/core/migration/edit.d.ts +3 -2
- package/core/migration/email.d.ts +3 -2
- package/core/migration/emoji--editor-emoji.d.ts +3 -2
- package/core/migration/emoji--emoji-emoji.d.ts +3 -2
- package/core/migration/emoji--emoji-people.d.ts +3 -2
- package/core/migration/emoji-add.d.ts +3 -2
- package/core/migration/emoji.d.ts +3 -2
- package/core/migration/error.d.ts +3 -2
- package/core/migration/expand--editor-expand.d.ts +3 -2
- package/core/migration/expand--editor-image-resize.d.ts +3 -2
- package/core/migration/expand--image-resize.d.ts +3 -2
- package/core/migration/expand-horizontal--editor-media-full-width.d.ts +3 -2
- package/core/migration/eye-open--watch.d.ts +3 -2
- package/core/migration/eye-open-filled--hipchat-audio-only.d.ts +3 -2
- package/core/migration/eye-open-filled--watch-filled.d.ts +3 -2
- package/core/migration/feedback--editor-feedback.d.ts +3 -2
- package/core/migration/feedback.d.ts +3 -2
- package/core/migration/file--editor-file.d.ts +3 -2
- package/core/migration/file.d.ts +3 -2
- package/core/migration/filter--media-services-filter.d.ts +3 -2
- package/core/migration/filter.d.ts +3 -2
- package/core/migration/flag--emoji-flags.d.ts +3 -2
- package/core/migration/flag-filled.d.ts +3 -2
- package/core/migration/flask--jira-labs.d.ts +3 -2
- package/core/migration/folder-closed--folder.d.ts +3 -2
- package/core/migration/fullscreen-enter--vid-full-screen-on.d.ts +3 -2
- package/core/migration/fullscreen-exit--media-services-full-screen.d.ts +3 -2
- package/core/migration/globe--world-small.d.ts +3 -2
- package/core/migration/globe--world.d.ts +3 -2
- package/core/migration/grid--editor-table.d.ts +3 -2
- package/core/migration/grid--media-services-grid.d.ts +3 -2
- package/core/migration/grid--table.d.ts +3 -2
- package/core/migration/grow-diagonal--media-services-actual-size.d.ts +3 -2
- package/core/migration/grow-horizontal--editor-expand.d.ts +3 -2
- package/core/migration/heart--emoji-symbols.d.ts +3 -2
- package/core/migration/home--home-circle.d.ts +3 -2
- package/core/migration/home.d.ts +3 -2
- package/core/migration/image--editor-image.d.ts +3 -2
- package/core/migration/image--media-services-image.d.ts +3 -2
- package/core/migration/image--media-services-scale-large.d.ts +3 -2
- package/core/migration/image--media-services-scale-small.d.ts +3 -2
- package/core/migration/image.d.ts +3 -2
- package/core/migration/inbox--tray.d.ts +3 -2
- package/core/migration/information--editor-info.d.ts +3 -2
- package/core/migration/information--editor-panel.d.ts +3 -2
- package/core/migration/information--info.d.ts +3 -2
- package/core/migration/issue.d.ts +3 -2
- package/core/migration/issues.d.ts +3 -2
- package/core/migration/layout-one-column--editor-layout-single.d.ts +3 -2
- package/core/migration/layout-three-columns--editor-layout-three-equal.d.ts +3 -2
- package/core/migration/layout-three-columns-sidebars--editor-layout-three-with-sidebars.d.ts +3 -2
- package/core/migration/layout-two-columns--editor-layout-two-equal.d.ts +3 -2
- package/core/migration/layout-two-columns-sidebar-left--editor-layout-two-left-sidebar.d.ts +3 -2
- package/core/migration/layout-two-columns-sidebar-right--editor-layout-two-right-sidebar.d.ts +3 -2
- package/core/migration/lightbulb--editor-hint.d.ts +3 -2
- package/core/migration/lightbulb--emoji-objects.d.ts +3 -2
- package/core/migration/lightbulb--lightbulb-filled.d.ts +3 -2
- package/core/migration/lightbulb.d.ts +3 -2
- package/core/migration/link--editor-link.d.ts +3 -2
- package/core/migration/link--link-filled.d.ts +3 -2
- package/core/migration/link-broken--editor-unlink.d.ts +3 -2
- package/core/migration/link-broken--unlink.d.ts +3 -2
- package/core/migration/link-external--shortcut.d.ts +3 -2
- package/core/migration/link.d.ts +3 -2
- package/core/migration/list-bulleted--bullet-list.d.ts +3 -2
- package/core/migration/list-bulleted--editor-bullet-list.d.ts +3 -2
- package/core/migration/list-numbered--editor-number-list.d.ts +3 -2
- package/core/migration/lobby-bell--hipchat-lobby.d.ts +3 -2
- package/core/migration/location.d.ts +3 -2
- package/core/migration/lock-locked--lock-circle.d.ts +3 -2
- package/core/migration/lock-locked--lock-filled.d.ts +3 -2
- package/core/migration/lock-locked--lock.d.ts +3 -2
- package/core/migration/lock-locked--unlock-circle.d.ts +3 -2
- package/core/migration/lock-unlocked--unlock-filled.d.ts +3 -2
- package/core/migration/lock-unlocked--unlock.d.ts +3 -2
- package/core/migration/log-in--sign-in.d.ts +3 -2
- package/core/migration/log-out--sign-out.d.ts +3 -2
- package/core/migration/marketplace.d.ts +3 -2
- package/core/migration/maximize--editor-image-resize.d.ts +3 -2
- package/core/migration/maximize--image-resize.d.ts +3 -2
- package/core/migration/maximize--media-services-actual-size.d.ts +3 -2
- package/core/migration/mention--editor-mention.d.ts +3 -2
- package/core/migration/menu--menu-expand.d.ts +3 -2
- package/core/migration/menu.d.ts +3 -2
- package/core/migration/microphone--vid-audio-on.d.ts +3 -2
- package/core/migration/minimize--media-services-fit-to-page.d.ts +3 -2
- package/core/migration/minimize--vid-full-screen-off.d.ts +3 -2
- package/core/migration/minus--editor-horizontal-rule.d.ts +3 -2
- package/core/migration/notification--notification-direct.d.ts +3 -2
- package/core/migration/notification.d.ts +3 -2
- package/core/migration/office-building--office-building-filled.d.ts +3 -2
- package/core/migration/office-building.d.ts +3 -2
- package/core/migration/on-call--hipchat-dial-out.d.ts +3 -2
- package/core/migration/page--document-filled.d.ts +3 -2
- package/core/migration/page--document.d.ts +3 -2
- package/core/migration/page--editor-note.d.ts +3 -2
- package/core/migration/page--media-services-document.d.ts +3 -2
- package/core/migration/page--page-filled.d.ts +3 -2
- package/core/migration/page.d.ts +3 -2
- package/core/migration/pages--documents.d.ts +3 -2
- package/core/migration/pages--queues.d.ts +3 -2
- package/core/migration/paint-bucket--editor-background-color.d.ts +3 -2
- package/core/migration/people-group--people.d.ts +3 -2
- package/core/migration/people-group.d.ts +3 -2
- package/core/migration/person-add--invite-team.d.ts +3 -2
- package/core/migration/person-added--app-access.d.ts +3 -2
- package/core/migration/person-added--person-with-tick.d.ts +3 -2
- package/core/migration/person-avatar--person-circle.d.ts +3 -2
- package/core/migration/person-avatar--user-avatar-circle.d.ts +3 -2
- package/core/migration/person-offboard--followers.d.ts +3 -2
- package/core/migration/person.d.ts +3 -2
- package/core/migration/phone--hipchat-dial-out.d.ts +3 -2
- package/core/migration/premium.d.ts +3 -2
- package/core/migration/pull-request--bitbucket-pullrequests.d.ts +3 -2
- package/core/migration/question-circle--editor-help.d.ts +3 -2
- package/core/migration/question-circle--question.d.ts +3 -2
- package/core/migration/question-circle.d.ts +3 -2
- package/core/migration/quotation-mark--editor-quote.d.ts +3 -2
- package/core/migration/quotation-mark--quote.d.ts +3 -2
- package/core/migration/radio-checked--radio.d.ts +3 -2
- package/core/migration/radio-unchecked--media-services-preselected.d.ts +3 -2
- package/core/migration/redo--editor-redo.d.ts +3 -2
- package/core/migration/redo.d.ts +3 -2
- package/core/migration/refresh.d.ts +3 -2
- package/core/migration/release--ship.d.ts +3 -2
- package/core/migration/retry.d.ts +3 -2
- package/core/migration/roadmap.d.ts +3 -2
- package/core/migration/screen.d.ts +3 -2
- package/core/migration/search--editor-search.d.ts +3 -2
- package/core/migration/search.d.ts +3 -2
- package/core/migration/send.d.ts +3 -2
- package/core/migration/settings--editor-settings.d.ts +3 -2
- package/core/migration/settings.d.ts +3 -2
- package/core/migration/share.d.ts +3 -2
- package/core/migration/shortcut--add-item.d.ts +3 -2
- package/core/migration/show-more-horizontal--editor-more.d.ts +3 -2
- package/core/migration/show-more-horizontal--more.d.ts +3 -2
- package/core/migration/show-more-vertical--more-vertical.d.ts +3 -2
- package/core/migration/shrink-diagonal--media-services-fit-to-page.d.ts +3 -2
- package/core/migration/shrink-diagonal--vid-full-screen-off.d.ts +3 -2
- package/core/migration/shrink-horizontal--editor-collapse.d.ts +3 -2
- package/core/migration/sidebar-right--detail-view.d.ts +3 -2
- package/core/migration/sidebar-right--room-menu.d.ts +3 -2
- package/core/migration/snippet--bitbucket-snippets.d.ts +3 -2
- package/core/migration/spreadsheet--media-services-spreadsheet.d.ts +3 -2
- package/core/migration/sprint.d.ts +3 -2
- package/core/migration/star-starred--star-filled.d.ts +3 -2
- package/core/migration/star-unstarred--star-large.d.ts +3 -2
- package/core/migration/star-unstarred--star.d.ts +3 -2
- package/core/migration/stopwatch.d.ts +3 -2
- package/core/migration/subtasks--subtask.d.ts +3 -2
- package/core/migration/success--check-circle.d.ts +3 -2
- package/core/migration/success--editor-success.d.ts +3 -2
- package/core/migration/tag--label.d.ts +3 -2
- package/core/migration/takeout-food--emoji-food.d.ts +3 -2
- package/core/migration/task.d.ts +3 -2
- package/core/migration/teams.d.ts +3 -2
- package/core/migration/text-bold--editor-bold.d.ts +3 -2
- package/core/migration/text-indent-left--editor-outdent.d.ts +3 -2
- package/core/migration/text-indent-right--editor-indent.d.ts +3 -2
- package/core/migration/text-italic--editor-italic.d.ts +3 -2
- package/core/migration/text-style--editor-text-style.d.ts +3 -2
- package/core/migration/text-style--emoji-keyboard.d.ts +3 -2
- package/core/migration/thumbs-up--like.d.ts +3 -2
- package/core/migration/tree--emoji-nature.d.ts +3 -2
- package/core/migration/undo--editor-undo.d.ts +3 -2
- package/core/migration/undo.d.ts +3 -2
- package/core/migration/upload--export.d.ts +3 -2
- package/core/migration/vehicle-car--emoji-travel.d.ts +3 -2
- package/core/migration/video--hipchat-sd-video.d.ts +3 -2
- package/core/migration/video--media-services-video.d.ts +3 -2
- package/core/migration/video--vid-camera-on.d.ts +3 -2
- package/core/migration/video--video-circle.d.ts +3 -2
- package/core/migration/video--video-filled.d.ts +3 -2
- package/core/migration/video-pause--vid-pause.d.ts +3 -2
- package/core/migration/video-play--vid-play.d.ts +3 -2
- package/core/migration/volume-high--hipchat-outgoing-sound.d.ts +3 -2
- package/core/migration/volume-high--vid-volume-full.d.ts +3 -2
- package/core/migration/volume-low--vid-volume-half.d.ts +3 -2
- package/core/migration/volume-muted--vid-volume-muted.d.ts +3 -2
- package/core/migration/warning--editor-warning.d.ts +3 -2
- package/core/migration/warning.d.ts +3 -2
- package/core/migration/zoom-in--media-services-zoom-in.d.ts +3 -2
- package/core/migration/zoom-out--media-services-zoom-out.d.ts +3 -2
- package/core/minimize.d.ts +5 -4
- package/core/minus-square.d.ts +5 -4
- package/core/minus.d.ts +5 -4
- package/core/node.d.ts +5 -4
- package/core/note.d.ts +5 -4
- package/core/notification-muted.d.ts +5 -4
- package/core/notification.d.ts +5 -4
- package/core/objective.d.ts +5 -4
- package/core/office-building.d.ts +5 -4
- package/core/on-call.d.ts +5 -4
- package/core/operations.d.ts +5 -4
- package/core/page.d.ts +5 -4
- package/core/pages.d.ts +5 -4
- package/core/paint-bucket.d.ts +5 -4
- package/core/paint-palette.d.ts +5 -4
- package/core/pen.d.ts +5 -4
- package/core/people-group.d.ts +5 -4
- package/core/person-add.d.ts +5 -4
- package/core/person-added.d.ts +5 -4
- package/core/person-avatar.d.ts +5 -4
- package/core/person-offboard.d.ts +5 -4
- package/core/person-remove.d.ts +5 -4
- package/core/person-warning.d.ts +5 -4
- package/core/person.d.ts +5 -4
- package/core/phone.d.ts +5 -4
- package/core/pin-filled.d.ts +5 -4
- package/core/pin.d.ts +5 -4
- package/core/plus-square.d.ts +5 -4
- package/core/power-plug.d.ts +5 -4
- package/core/premium.d.ts +5 -4
- package/core/presenter-mode.d.ts +5 -4
- package/core/printer.d.ts +5 -4
- package/core/priority-blocker.d.ts +5 -4
- package/core/priority-critical.d.ts +5 -4
- package/core/priority-high.d.ts +5 -4
- package/core/priority-highest.d.ts +5 -4
- package/core/priority-low.d.ts +5 -4
- package/core/priority-lowest.d.ts +5 -4
- package/core/priority-major.d.ts +5 -4
- package/core/priority-medium.d.ts +5 -4
- package/core/priority-minor.d.ts +5 -4
- package/core/priority-trivial.d.ts +5 -4
- package/core/problem.d.ts +5 -4
- package/core/project-status.d.ts +5 -4
- package/core/project.d.ts +5 -4
- package/core/projection-screen.d.ts +5 -4
- package/core/pull-request.d.ts +5 -4
- package/core/pulse.d.ts +5 -4
- package/core/question-circle.d.ts +5 -4
- package/core/quotation-mark.d.ts +5 -4
- package/core/radio-checked.d.ts +5 -4
- package/core/radio-unchecked.d.ts +5 -4
- package/core/redo.d.ts +5 -4
- package/core/refresh.d.ts +5 -4
- package/core/release.d.ts +5 -4
- package/core/retry.d.ts +5 -4
- package/core/roadmap.d.ts +5 -4
- package/core/scales.d.ts +5 -4
- package/core/scorecard.d.ts +5 -4
- package/core/screen-plus.d.ts +5 -4
- package/core/screen.d.ts +5 -4
- package/core/search.d.ts +5 -4
- package/core/send.d.ts +5 -4
- package/core/settings.d.ts +5 -4
- package/core/shapes.d.ts +5 -4
- package/core/share.d.ts +5 -4
- package/core/shield.d.ts +5 -4
- package/core/shortcut.d.ts +5 -4
- package/core/show-more-horizontal.d.ts +5 -4
- package/core/show-more-vertical.d.ts +5 -4
- package/core/shrink-diagonal.d.ts +5 -4
- package/core/shrink-horizontal.d.ts +5 -4
- package/core/shrink-vertical.d.ts +5 -4
- package/core/sidebar-collapse.d.ts +5 -4
- package/core/sidebar-expand.d.ts +5 -4
- package/core/sidebar-left.d.ts +5 -4
- package/core/sidebar-right.d.ts +5 -4
- package/core/smart-link-card.d.ts +5 -4
- package/core/smart-link-embed.d.ts +5 -4
- package/core/smart-link-inline.d.ts +5 -4
- package/core/smart-link-list.d.ts +5 -4
- package/core/smart-link.d.ts +5 -4
- package/core/snippet.d.ts +5 -4
- package/core/sort-ascending.d.ts +5 -4
- package/core/sort-descending.d.ts +5 -4
- package/core/spreadsheet.d.ts +5 -4
- package/core/sprint.d.ts +5 -4
- package/core/star-starred.d.ts +5 -4
- package/core/star-unstarred.d.ts +5 -4
- package/core/status-verified.d.ts +5 -4
- package/core/stopwatch.d.ts +5 -4
- package/core/story.d.ts +5 -4
- package/core/subtasks.d.ts +5 -4
- package/core/success.d.ts +5 -4
- package/core/summarize.d.ts +5 -4
- package/core/support.d.ts +5 -4
- package/core/table-cell-clear.d.ts +5 -4
- package/core/table-cell-merge.d.ts +5 -4
- package/core/table-cell-split.d.ts +5 -4
- package/core/table-column-add-left.d.ts +5 -4
- package/core/table-column-add-right.d.ts +5 -4
- package/core/table-column-delete.d.ts +5 -4
- package/core/table-column-move-left.d.ts +5 -4
- package/core/table-column-move-right.d.ts +5 -4
- package/core/table-columns-distribute.d.ts +5 -4
- package/core/table-row-add-above.d.ts +5 -4
- package/core/table-row-add-below.d.ts +5 -4
- package/core/table-row-delete.d.ts +5 -4
- package/core/table-row-move-down.d.ts +5 -4
- package/core/table-row-move-up.d.ts +5 -4
- package/core/tag.d.ts +5 -4
- package/core/takeout-food.d.ts +5 -4
- package/core/target.d.ts +5 -4
- package/core/task-in-progress.d.ts +5 -4
- package/core/task-to-do.d.ts +5 -4
- package/core/task.d.ts +5 -4
- package/core/tasks.d.ts +5 -4
- package/core/teams.d.ts +5 -4
- package/core/text-bold.d.ts +5 -4
- package/core/text-indent-left.d.ts +5 -4
- package/core/text-indent-right.d.ts +5 -4
- package/core/text-italic.d.ts +5 -4
- package/core/text-shorten.d.ts +5 -4
- package/core/text-spellcheck.d.ts +5 -4
- package/core/text-style.d.ts +5 -4
- package/core/text-wrap.d.ts +5 -4
- package/core/text.d.ts +5 -4
- package/core/theme.d.ts +5 -4
- package/core/thumbs-down.d.ts +5 -4
- package/core/thumbs-up.d.ts +5 -4
- package/core/timeline.d.ts +5 -4
- package/core/tools.d.ts +5 -4
- package/core/transition.d.ts +5 -4
- package/core/translate.d.ts +5 -4
- package/core/tree.d.ts +5 -4
- package/core/undo.d.ts +5 -4
- package/core/upload.d.ts +5 -4
- package/core/vehicle-car.d.ts +5 -4
- package/core/video-next-overlay.d.ts +5 -4
- package/core/video-next.d.ts +5 -4
- package/core/video-pause-overlay.d.ts +5 -4
- package/core/video-pause.d.ts +5 -4
- package/core/video-play-overlay.d.ts +5 -4
- package/core/video-play.d.ts +5 -4
- package/core/video-previous-overlay.d.ts +5 -4
- package/core/video-previous.d.ts +5 -4
- package/core/video-skip-backward-ten.d.ts +5 -4
- package/core/video-skip-forward-ten.d.ts +5 -4
- package/core/video-stop-overlay.d.ts +5 -4
- package/core/video-stop.d.ts +5 -4
- package/core/video.d.ts +5 -4
- package/core/volume-high.d.ts +5 -4
- package/core/volume-low.d.ts +5 -4
- package/core/volume-muted.d.ts +5 -4
- package/core/warning.d.ts +5 -4
- package/core/whiteboard.d.ts +5 -4
- package/core/zoom-in.d.ts +5 -4
- package/core/zoom-out.d.ts +5 -4
- package/dist/cjs/components/icon-facade.js +28 -10
- package/dist/cjs/components/icon-new.js +54 -35
- package/dist/es2019/components/icon-facade.js +28 -10
- package/dist/es2019/components/icon-new.js +53 -33
- package/dist/esm/components/icon-facade.js +28 -10
- package/dist/esm/components/icon-new.js +54 -35
- package/dist/types/components/icon-facade.d.ts +3 -3
- package/dist/types/components/icon-new.d.ts +2 -2
- package/dist/types/entry-points/base-new.d.ts +1 -1
- package/dist/types/entry-points/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +28 -11
- package/dist/types-ts4.5/components/icon-facade.d.ts +3 -3
- package/dist/types-ts4.5/components/icon-new.d.ts +2 -2
- package/dist/types-ts4.5/entry-points/base-new.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +28 -11
- package/package.json +4 -7
- package/utility/add.d.ts +5 -4
- package/utility/arrow-down.d.ts +5 -4
- package/utility/arrow-left.d.ts +5 -4
- package/utility/arrow-right.d.ts +5 -4
- package/utility/arrow-up.d.ts +5 -4
- package/utility/check-circle.d.ts +5 -4
- package/utility/check-mark.d.ts +5 -4
- package/utility/chevron-down.d.ts +5 -4
- package/utility/chevron-left.d.ts +5 -4
- package/utility/chevron-right.d.ts +5 -4
- package/utility/chevron-up.d.ts +5 -4
- package/utility/cross-circle.d.ts +5 -4
- package/utility/cross.d.ts +5 -4
- package/utility/drag-handle.d.ts +5 -4
- package/utility/error.d.ts +5 -4
- package/utility/information.d.ts +5 -4
- package/utility/link-external.d.ts +5 -4
- package/utility/lock-locked.d.ts +5 -4
- package/utility/lock-unlocked.d.ts +5 -4
- package/utility/migration/add--add-circle.d.ts +3 -2
- package/utility/migration/add--editor-add.d.ts +3 -2
- package/utility/migration/add--emoji-custom.d.ts +3 -2
- package/utility/migration/add.d.ts +3 -2
- package/utility/migration/arrow-down--arrow-down-circle.d.ts +3 -2
- package/utility/migration/arrow-down.d.ts +3 -2
- package/utility/migration/arrow-left--arrow-left-circle.d.ts +3 -2
- package/utility/migration/arrow-left.d.ts +3 -2
- package/utility/migration/arrow-right--arrow-right-circle.d.ts +3 -2
- package/utility/migration/arrow-right.d.ts +3 -2
- package/utility/migration/arrow-up--arrow-up-circle.d.ts +3 -2
- package/utility/migration/arrow-up.d.ts +3 -2
- package/utility/migration/check-circle--check-circle-outline.d.ts +3 -2
- package/utility/migration/check-circle--emoji-productivity.d.ts +3 -2
- package/utility/migration/check-circle.d.ts +3 -2
- package/utility/migration/check-mark--check.d.ts +3 -2
- package/utility/migration/check-mark--editor-done.d.ts +3 -2
- package/utility/migration/chevron-down--chevron-down-circle.d.ts +3 -2
- package/utility/migration/chevron-down--hipchat-chevron-down.d.ts +3 -2
- package/utility/migration/chevron-down.d.ts +3 -2
- package/utility/migration/chevron-left--chevron-left-circle.d.ts +3 -2
- package/utility/migration/chevron-left--chevron-left-large.d.ts +3 -2
- package/utility/migration/chevron-left.d.ts +3 -2
- package/utility/migration/chevron-right--chevron-right-circle.d.ts +3 -2
- package/utility/migration/chevron-right--chevron-right-large.d.ts +3 -2
- package/utility/migration/chevron-right.d.ts +3 -2
- package/utility/migration/chevron-up--chevron-up-circle.d.ts +3 -2
- package/utility/migration/chevron-up--hipchat-chevron-up.d.ts +3 -2
- package/utility/migration/chevron-up.d.ts +3 -2
- package/utility/migration/cross--editor-close.d.ts +3 -2
- package/utility/migration/cross-circle--editor-error.d.ts +3 -2
- package/utility/migration/cross-circle--select-clear.d.ts +3 -2
- package/utility/migration/cross-circle.d.ts +3 -2
- package/utility/migration/drag-handle--drag-handler.d.ts +3 -2
- package/utility/migration/error.d.ts +3 -2
- package/utility/migration/information--editor-info.d.ts +3 -2
- package/utility/migration/information--editor-panel.d.ts +3 -2
- package/utility/migration/information--info.d.ts +3 -2
- package/utility/migration/link-external--shortcut.d.ts +3 -2
- package/utility/migration/lock-locked--lock-circle.d.ts +3 -2
- package/utility/migration/lock-locked--lock-filled.d.ts +3 -2
- package/utility/migration/lock-locked--lock.d.ts +3 -2
- package/utility/migration/lock-locked--unlock-circle.d.ts +3 -2
- package/utility/migration/lock-unlocked--unlock-filled.d.ts +3 -2
- package/utility/migration/lock-unlocked--unlock.d.ts +3 -2
- package/utility/migration/show-more-horizontal--editor-more.d.ts +3 -2
- package/utility/migration/show-more-horizontal--more.d.ts +3 -2
- package/utility/migration/show-more-vertical--more-vertical.d.ts +3 -2
- package/utility/migration/star-starred--star-filled.d.ts +3 -2
- package/utility/migration/star-unstarred--star-large.d.ts +3 -2
- package/utility/migration/star-unstarred--star.d.ts +3 -2
- package/utility/migration/success--check-circle.d.ts +3 -2
- package/utility/migration/success--editor-success.d.ts +3 -2
- package/utility/migration/warning--editor-warning.d.ts +3 -2
- package/utility/migration/warning.d.ts +3 -2
- package/utility/show-more-horizontal.d.ts +5 -4
- package/utility/show-more-vertical.d.ts +5 -4
- package/utility/star-starred.d.ts +5 -4
- package/utility/star-unstarred.d.ts +5 -4
- package/utility/success.d.ts +5 -4
- package/utility/warning.d.ts +5 -4
package/core/whiteboard.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::58d38edc49316d8197d729fa333814e7>>
|
|
4
4
|
* @codegenCommand yarn build:icon-glyphs
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import
|
|
7
|
+
import type React from 'react';
|
|
8
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/UNSAFE_base-new';
|
|
9
|
+
import type Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
9
10
|
|
|
10
11
|
declare const WhiteboardIcon: {
|
|
11
|
-
(props: Omit<
|
|
12
|
+
(props: Omit<NewCoreIconProps, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
|
|
12
13
|
displayName: string;
|
|
13
14
|
};
|
|
14
15
|
export default WhiteboardIcon;
|
package/core/zoom-in.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::24ebd0807fef0b223c5c94ed1168eee1>>
|
|
4
4
|
* @codegenCommand yarn build:icon-glyphs
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import
|
|
7
|
+
import type React from 'react';
|
|
8
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/UNSAFE_base-new';
|
|
9
|
+
import type Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
9
10
|
|
|
10
11
|
declare const ZoomInIcon: {
|
|
11
|
-
(props: Omit<
|
|
12
|
+
(props: Omit<NewCoreIconProps, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
|
|
12
13
|
displayName: string;
|
|
13
14
|
};
|
|
14
15
|
export default ZoomInIcon;
|
package/core/zoom-out.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::4b1c95268599ebcd76008f066d0043a6>>
|
|
4
4
|
* @codegenCommand yarn build:icon-glyphs
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import
|
|
7
|
+
import type React from 'react';
|
|
8
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/UNSAFE_base-new';
|
|
9
|
+
import type Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
9
10
|
|
|
10
11
|
declare const ZoomOutIcon: {
|
|
11
|
-
(props: Omit<
|
|
12
|
+
(props: Omit<NewCoreIconProps, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
|
|
12
13
|
displayName: string;
|
|
13
14
|
};
|
|
14
15
|
export default ZoomOutIcon;
|
|
@@ -14,7 +14,16 @@ var _icon = _interopRequireDefault(require("./icon"));
|
|
|
14
14
|
var _excluded = ["dangerouslySetGlyph"];
|
|
15
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
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 && {}.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
|
|
17
|
+
var sizeSpacingMap = {
|
|
18
|
+
utility: {
|
|
19
|
+
small: 'compact',
|
|
20
|
+
medium: 'spacious'
|
|
21
|
+
},
|
|
22
|
+
core: {
|
|
23
|
+
small: 'none',
|
|
24
|
+
medium: 'spacious'
|
|
25
|
+
}
|
|
26
|
+
};
|
|
18
27
|
|
|
19
28
|
/**
|
|
20
29
|
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
@@ -30,18 +39,27 @@ var IconFacade = exports.IconFacade = /*#__PURE__*/(0, _react.memo)(function Ico
|
|
|
30
39
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
31
40
|
var NewIcon = props.newIcon;
|
|
32
41
|
|
|
33
|
-
// By default, the icon size will be medium
|
|
42
|
+
// By default, the icon size will be medium for core icons and small for utility icons
|
|
34
43
|
var size = (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : 'medium';
|
|
35
|
-
var spacing = size === 'small' ? 'none' : 'spacious';
|
|
36
44
|
var useNewIcon = !props.isFacadeDisabled &&
|
|
37
45
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
38
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-legacy-facade')
|
|
39
|
-
if (useNewIcon && NewIcon) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-legacy-facade');
|
|
47
|
+
if (useNewIcon && NewIcon && (size === 'small' || size === 'medium')) {
|
|
48
|
+
if (props.iconType === 'utility') {
|
|
49
|
+
var Icon = NewIcon;
|
|
50
|
+
return /*#__PURE__*/_react.default.createElement(Icon, (0, _extends2.default)({}, props, {
|
|
51
|
+
spacing: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][size] : 'none',
|
|
52
|
+
color: props.primaryColor || 'currentColor',
|
|
53
|
+
type: props.iconType
|
|
54
|
+
}));
|
|
55
|
+
} else {
|
|
56
|
+
var _Icon = NewIcon;
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_Icon, (0, _extends2.default)({}, props, {
|
|
58
|
+
spacing: sizeSpacingMap['core'][size],
|
|
59
|
+
color: props.primaryColor || 'currentColor',
|
|
60
|
+
type: props.iconType
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
45
63
|
}
|
|
46
64
|
return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({
|
|
47
65
|
dangerouslySetGlyph: dangerouslySetGlyph
|
|
@@ -61,28 +61,51 @@ var baseHcmStyles = (0, _react2.css)({
|
|
|
61
61
|
filter: 'grayscale(1)'
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
+
var scaleSize = (0, _react2.css)({
|
|
65
|
+
width: 'inherit',
|
|
66
|
+
height: 'inherit'
|
|
67
|
+
});
|
|
64
68
|
var sizeMap = {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
69
|
+
core: {
|
|
70
|
+
none: (0, _react2.css)({
|
|
71
|
+
width: "var(--ds-space-200, 16px)",
|
|
72
|
+
height: "var(--ds-space-200, 16px)"
|
|
73
|
+
}),
|
|
74
|
+
spacious: (0, _react2.css)({
|
|
75
|
+
width: "var(--ds-space-300, 24px)",
|
|
76
|
+
height: "var(--ds-space-300, 24px)"
|
|
77
|
+
})
|
|
78
|
+
},
|
|
79
|
+
utility: {
|
|
80
|
+
none: (0, _react2.css)({
|
|
81
|
+
width: "var(--ds-space-150, 12px)",
|
|
82
|
+
height: "var(--ds-space-150, 12px)"
|
|
83
|
+
}),
|
|
84
|
+
compact: (0, _react2.css)({
|
|
85
|
+
width: "var(--ds-space-200, 16px)",
|
|
86
|
+
height: "var(--ds-space-200, 16px)"
|
|
87
|
+
}),
|
|
88
|
+
spacious: (0, _react2.css)({
|
|
89
|
+
width: "var(--ds-space-300, 24px)",
|
|
90
|
+
height: "var(--ds-space-300, 24px)"
|
|
91
|
+
})
|
|
92
|
+
}
|
|
81
93
|
};
|
|
82
94
|
var baseSizeMap = {
|
|
83
|
-
|
|
95
|
+
core: 16,
|
|
84
96
|
utility: 12
|
|
85
97
|
};
|
|
98
|
+
var paddingMap = {
|
|
99
|
+
core: {
|
|
100
|
+
none: 0,
|
|
101
|
+
spacious: 4
|
|
102
|
+
},
|
|
103
|
+
utility: {
|
|
104
|
+
none: 0,
|
|
105
|
+
compact: 2,
|
|
106
|
+
spacious: 6
|
|
107
|
+
}
|
|
108
|
+
};
|
|
86
109
|
|
|
87
110
|
/**
|
|
88
111
|
* __Icon__
|
|
@@ -93,26 +116,19 @@ var baseSizeMap = {
|
|
|
93
116
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
94
117
|
*/
|
|
95
118
|
var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
119
|
+
var _props$type, _props$spacing3, _props$spacing4;
|
|
96
120
|
var _ref = props,
|
|
97
|
-
|
|
98
|
-
_ref$
|
|
99
|
-
providedSpacing = _ref$spacing === void 0 ? 'none' : _ref$spacing,
|
|
121
|
+
_ref$color = _ref.color,
|
|
122
|
+
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
100
123
|
testId = _ref.testId,
|
|
101
124
|
label = _ref.label,
|
|
102
125
|
LEGACY_primaryColor = _ref.LEGACY_primaryColor,
|
|
103
126
|
LEGACY_secondaryColor = _ref.LEGACY_secondaryColor,
|
|
104
127
|
LEGACY_size = _ref.LEGACY_size,
|
|
105
128
|
FallbackIcon = _ref.LEGACY_fallbackIcon,
|
|
106
|
-
_ref$type = _ref.type,
|
|
107
|
-
type = _ref$type === void 0 ? 'global' : _ref$type,
|
|
108
129
|
dangerouslySetGlyph = _ref.dangerouslySetGlyph,
|
|
109
130
|
shouldScale = _ref.shouldScale,
|
|
110
131
|
LEGACY_margin = _ref.LEGACY_margin;
|
|
111
|
-
var fallbackColor = "var(--ds-icon, #44546F)";
|
|
112
|
-
if ((0, _platformFeatureFlags.fg)('platform-design-system-new-icon-default-color') || (0, _platformFeatureFlags.fg)('platform-design-system-new-icon-default-color-2')) {
|
|
113
|
-
fallbackColor = 'currentColor';
|
|
114
|
-
}
|
|
115
|
-
var color = providedColor !== null && providedColor !== void 0 ? providedColor : fallbackColor;
|
|
116
132
|
var dangerouslySetInnerHTML = dangerouslySetGlyph ? {
|
|
117
133
|
__html: dangerouslySetGlyph
|
|
118
134
|
} : undefined;
|
|
@@ -131,12 +147,15 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
131
147
|
UNSAFE_margin: LEGACY_margin
|
|
132
148
|
});
|
|
133
149
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
150
|
+
var baseSize = baseSizeMap[(_props$type = props.type) !== null && _props$type !== void 0 ? _props$type : 'core'];
|
|
151
|
+
var viewBoxPadding;
|
|
152
|
+
if (props.type === 'utility') {
|
|
153
|
+
var _props$spacing;
|
|
154
|
+
viewBoxPadding = paddingMap[props.type][(_props$spacing = props.spacing) !== null && _props$spacing !== void 0 ? _props$spacing : 'none'];
|
|
155
|
+
} else {
|
|
156
|
+
var _props$spacing2;
|
|
157
|
+
viewBoxPadding = paddingMap['core'][(_props$spacing2 = props.spacing) !== null && _props$spacing2 !== void 0 ? _props$spacing2 : 'none'];
|
|
158
|
+
}
|
|
140
159
|
var viewBoxSize = baseSize + 2 * viewBoxPadding;
|
|
141
160
|
|
|
142
161
|
// Workaround for the transparency in our disabled icon token.
|
|
@@ -156,7 +175,7 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
156
175
|
style: {
|
|
157
176
|
color: iconColor
|
|
158
177
|
},
|
|
159
|
-
css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, type === 'utility' && utilityIconStyles]
|
|
178
|
+
css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, props.type === 'utility' && utilityIconStyles]
|
|
160
179
|
}, (0, _react2.jsx)("svg", {
|
|
161
180
|
fill: "none"
|
|
162
181
|
// Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
|
|
@@ -164,7 +183,7 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
|
|
|
164
183
|
,
|
|
165
184
|
viewBox: "".concat(0 - viewBoxPadding, " ").concat(0 - viewBoxPadding, " ").concat(viewBoxSize, " ").concat(viewBoxSize),
|
|
166
185
|
role: "presentation",
|
|
167
|
-
css: [commonSVGStyles, svgStyles, sizeMap[
|
|
186
|
+
css: [commonSVGStyles, svgStyles, shouldScale ? scaleSize : props.type === 'utility' ? sizeMap[props.type][(_props$spacing3 = props.spacing) !== null && _props$spacing3 !== void 0 ? _props$spacing3 : 'none'] : sizeMap['core'][(_props$spacing4 = props.spacing) !== null && _props$spacing4 !== void 0 ? _props$spacing4 : 'none']],
|
|
168
187
|
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
169
188
|
}));
|
|
170
189
|
});
|
|
@@ -2,7 +2,16 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import LegacyIcon from './icon';
|
|
5
|
-
const
|
|
5
|
+
const sizeSpacingMap = {
|
|
6
|
+
utility: {
|
|
7
|
+
small: 'compact',
|
|
8
|
+
medium: 'spacious'
|
|
9
|
+
},
|
|
10
|
+
core: {
|
|
11
|
+
small: 'none',
|
|
12
|
+
medium: 'spacious'
|
|
13
|
+
}
|
|
14
|
+
};
|
|
6
15
|
|
|
7
16
|
/**
|
|
8
17
|
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
@@ -19,18 +28,27 @@ export const IconFacade = /*#__PURE__*/memo(function IconFacade({
|
|
|
19
28
|
var _props$size;
|
|
20
29
|
const NewIcon = props.newIcon;
|
|
21
30
|
|
|
22
|
-
// By default, the icon size will be medium
|
|
31
|
+
// By default, the icon size will be medium for core icons and small for utility icons
|
|
23
32
|
const size = (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : 'medium';
|
|
24
|
-
const spacing = size === 'small' ? 'none' : 'spacious';
|
|
25
33
|
const useNewIcon = !props.isFacadeDisabled &&
|
|
26
34
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
27
|
-
fg('platform-visual-refresh-icons-legacy-facade')
|
|
28
|
-
if (useNewIcon && NewIcon) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
fg('platform-visual-refresh-icons-legacy-facade');
|
|
36
|
+
if (useNewIcon && NewIcon && (size === 'small' || size === 'medium')) {
|
|
37
|
+
if (props.iconType === 'utility') {
|
|
38
|
+
const Icon = NewIcon;
|
|
39
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
40
|
+
spacing: fg('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][size] : 'none',
|
|
41
|
+
color: props.primaryColor || 'currentColor',
|
|
42
|
+
type: props.iconType
|
|
43
|
+
}));
|
|
44
|
+
} else {
|
|
45
|
+
const Icon = NewIcon;
|
|
46
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
47
|
+
spacing: sizeSpacingMap['core'][size],
|
|
48
|
+
color: props.primaryColor || 'currentColor',
|
|
49
|
+
type: props.iconType
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
34
52
|
}
|
|
35
53
|
return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
|
|
36
54
|
dangerouslySetGlyph: dangerouslySetGlyph
|
|
@@ -55,28 +55,51 @@ const baseHcmStyles = css({
|
|
|
55
55
|
filter: 'grayscale(1)'
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
+
const scaleSize = css({
|
|
59
|
+
width: 'inherit',
|
|
60
|
+
height: 'inherit'
|
|
61
|
+
});
|
|
58
62
|
const sizeMap = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
core: {
|
|
64
|
+
none: css({
|
|
65
|
+
width: "var(--ds-space-200, 16px)",
|
|
66
|
+
height: "var(--ds-space-200, 16px)"
|
|
67
|
+
}),
|
|
68
|
+
spacious: css({
|
|
69
|
+
width: "var(--ds-space-300, 24px)",
|
|
70
|
+
height: "var(--ds-space-300, 24px)"
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
utility: {
|
|
74
|
+
none: css({
|
|
75
|
+
width: "var(--ds-space-150, 12px)",
|
|
76
|
+
height: "var(--ds-space-150, 12px)"
|
|
77
|
+
}),
|
|
78
|
+
compact: css({
|
|
79
|
+
width: "var(--ds-space-200, 16px)",
|
|
80
|
+
height: "var(--ds-space-200, 16px)"
|
|
81
|
+
}),
|
|
82
|
+
spacious: css({
|
|
83
|
+
width: "var(--ds-space-300, 24px)",
|
|
84
|
+
height: "var(--ds-space-300, 24px)"
|
|
85
|
+
})
|
|
86
|
+
}
|
|
75
87
|
};
|
|
76
88
|
const baseSizeMap = {
|
|
77
|
-
|
|
89
|
+
core: 16,
|
|
78
90
|
utility: 12
|
|
79
91
|
};
|
|
92
|
+
const paddingMap = {
|
|
93
|
+
core: {
|
|
94
|
+
none: 0,
|
|
95
|
+
spacious: 4
|
|
96
|
+
},
|
|
97
|
+
utility: {
|
|
98
|
+
none: 0,
|
|
99
|
+
compact: 2,
|
|
100
|
+
spacious: 6
|
|
101
|
+
}
|
|
102
|
+
};
|
|
80
103
|
|
|
81
104
|
/**
|
|
82
105
|
* __Icon__
|
|
@@ -87,9 +110,9 @@ const baseSizeMap = {
|
|
|
87
110
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
88
111
|
*/
|
|
89
112
|
export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
113
|
+
var _props$type, _props$spacing3, _props$spacing4;
|
|
90
114
|
const {
|
|
91
|
-
color
|
|
92
|
-
spacing: providedSpacing = 'none',
|
|
115
|
+
color = 'currentColor',
|
|
93
116
|
testId,
|
|
94
117
|
label,
|
|
95
118
|
LEGACY_primaryColor,
|
|
@@ -97,18 +120,12 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
97
120
|
LEGACY_size,
|
|
98
121
|
LEGACY_fallbackIcon: FallbackIcon,
|
|
99
122
|
// Used to set icon dimensions/behaviour in codegen
|
|
100
|
-
type = 'global',
|
|
101
123
|
// Used to set icon glyphs in codegen
|
|
102
124
|
dangerouslySetGlyph,
|
|
103
125
|
// Used with iconTile to scale icon up and down
|
|
104
126
|
shouldScale,
|
|
105
127
|
LEGACY_margin
|
|
106
128
|
} = props;
|
|
107
|
-
let fallbackColor = "var(--ds-icon, #44546F)";
|
|
108
|
-
if (fg('platform-design-system-new-icon-default-color') || fg('platform-design-system-new-icon-default-color-2')) {
|
|
109
|
-
fallbackColor = 'currentColor';
|
|
110
|
-
}
|
|
111
|
-
const color = providedColor !== null && providedColor !== void 0 ? providedColor : fallbackColor;
|
|
112
129
|
const dangerouslySetInnerHTML = dangerouslySetGlyph ? {
|
|
113
130
|
__html: dangerouslySetGlyph
|
|
114
131
|
} : undefined;
|
|
@@ -127,12 +144,15 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
127
144
|
UNSAFE_margin: LEGACY_margin
|
|
128
145
|
});
|
|
129
146
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
147
|
+
const baseSize = baseSizeMap[(_props$type = props.type) !== null && _props$type !== void 0 ? _props$type : 'core'];
|
|
148
|
+
let viewBoxPadding;
|
|
149
|
+
if (props.type === 'utility') {
|
|
150
|
+
var _props$spacing;
|
|
151
|
+
viewBoxPadding = paddingMap[props.type][(_props$spacing = props.spacing) !== null && _props$spacing !== void 0 ? _props$spacing : 'none'];
|
|
152
|
+
} else {
|
|
153
|
+
var _props$spacing2;
|
|
154
|
+
viewBoxPadding = paddingMap['core'][(_props$spacing2 = props.spacing) !== null && _props$spacing2 !== void 0 ? _props$spacing2 : 'none'];
|
|
155
|
+
}
|
|
136
156
|
const viewBoxSize = baseSize + 2 * viewBoxPadding;
|
|
137
157
|
|
|
138
158
|
// Workaround for the transparency in our disabled icon token.
|
|
@@ -159,7 +179,7 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
159
179
|
style: {
|
|
160
180
|
color: iconColor
|
|
161
181
|
},
|
|
162
|
-
css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, type === 'utility' && utilityIconStyles]
|
|
182
|
+
css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, props.type === 'utility' && utilityIconStyles]
|
|
163
183
|
}, jsx("svg", {
|
|
164
184
|
fill: "none"
|
|
165
185
|
// Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
|
|
@@ -167,7 +187,7 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
167
187
|
,
|
|
168
188
|
viewBox: `${0 - viewBoxPadding} ${0 - viewBoxPadding} ${viewBoxSize} ${viewBoxSize}`,
|
|
169
189
|
role: "presentation",
|
|
170
|
-
css: [commonSVGStyles, svgStyles, sizeMap[
|
|
190
|
+
css: [commonSVGStyles, svgStyles, shouldScale ? scaleSize : props.type === 'utility' ? sizeMap[props.type][(_props$spacing3 = props.spacing) !== null && _props$spacing3 !== void 0 ? _props$spacing3 : 'none'] : sizeMap['core'][(_props$spacing4 = props.spacing) !== null && _props$spacing4 !== void 0 ? _props$spacing4 : 'none']],
|
|
171
191
|
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
172
192
|
}));
|
|
173
193
|
});
|
|
@@ -4,7 +4,16 @@ var _excluded = ["dangerouslySetGlyph"];
|
|
|
4
4
|
import React, { memo } from 'react';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import LegacyIcon from './icon';
|
|
7
|
-
var
|
|
7
|
+
var sizeSpacingMap = {
|
|
8
|
+
utility: {
|
|
9
|
+
small: 'compact',
|
|
10
|
+
medium: 'spacious'
|
|
11
|
+
},
|
|
12
|
+
core: {
|
|
13
|
+
small: 'none',
|
|
14
|
+
medium: 'spacious'
|
|
15
|
+
}
|
|
16
|
+
};
|
|
8
17
|
|
|
9
18
|
/**
|
|
10
19
|
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
@@ -20,18 +29,27 @@ export var IconFacade = /*#__PURE__*/memo(function IconFacade(_ref) {
|
|
|
20
29
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
30
|
var NewIcon = props.newIcon;
|
|
22
31
|
|
|
23
|
-
// By default, the icon size will be medium
|
|
32
|
+
// By default, the icon size will be medium for core icons and small for utility icons
|
|
24
33
|
var size = (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : 'medium';
|
|
25
|
-
var spacing = size === 'small' ? 'none' : 'spacious';
|
|
26
34
|
var useNewIcon = !props.isFacadeDisabled &&
|
|
27
35
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
28
|
-
fg('platform-visual-refresh-icons-legacy-facade')
|
|
29
|
-
if (useNewIcon && NewIcon) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
fg('platform-visual-refresh-icons-legacy-facade');
|
|
37
|
+
if (useNewIcon && NewIcon && (size === 'small' || size === 'medium')) {
|
|
38
|
+
if (props.iconType === 'utility') {
|
|
39
|
+
var Icon = NewIcon;
|
|
40
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
41
|
+
spacing: fg('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][size] : 'none',
|
|
42
|
+
color: props.primaryColor || 'currentColor',
|
|
43
|
+
type: props.iconType
|
|
44
|
+
}));
|
|
45
|
+
} else {
|
|
46
|
+
var _Icon = NewIcon;
|
|
47
|
+
return /*#__PURE__*/React.createElement(_Icon, _extends({}, props, {
|
|
48
|
+
spacing: sizeSpacingMap['core'][size],
|
|
49
|
+
color: props.primaryColor || 'currentColor',
|
|
50
|
+
type: props.iconType
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
35
53
|
}
|
|
36
54
|
return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
|
|
37
55
|
dangerouslySetGlyph: dangerouslySetGlyph
|
|
@@ -55,28 +55,51 @@ var baseHcmStyles = css({
|
|
|
55
55
|
filter: 'grayscale(1)'
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
+
var scaleSize = css({
|
|
59
|
+
width: 'inherit',
|
|
60
|
+
height: 'inherit'
|
|
61
|
+
});
|
|
58
62
|
var sizeMap = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
core: {
|
|
64
|
+
none: css({
|
|
65
|
+
width: "var(--ds-space-200, 16px)",
|
|
66
|
+
height: "var(--ds-space-200, 16px)"
|
|
67
|
+
}),
|
|
68
|
+
spacious: css({
|
|
69
|
+
width: "var(--ds-space-300, 24px)",
|
|
70
|
+
height: "var(--ds-space-300, 24px)"
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
utility: {
|
|
74
|
+
none: css({
|
|
75
|
+
width: "var(--ds-space-150, 12px)",
|
|
76
|
+
height: "var(--ds-space-150, 12px)"
|
|
77
|
+
}),
|
|
78
|
+
compact: css({
|
|
79
|
+
width: "var(--ds-space-200, 16px)",
|
|
80
|
+
height: "var(--ds-space-200, 16px)"
|
|
81
|
+
}),
|
|
82
|
+
spacious: css({
|
|
83
|
+
width: "var(--ds-space-300, 24px)",
|
|
84
|
+
height: "var(--ds-space-300, 24px)"
|
|
85
|
+
})
|
|
86
|
+
}
|
|
75
87
|
};
|
|
76
88
|
var baseSizeMap = {
|
|
77
|
-
|
|
89
|
+
core: 16,
|
|
78
90
|
utility: 12
|
|
79
91
|
};
|
|
92
|
+
var paddingMap = {
|
|
93
|
+
core: {
|
|
94
|
+
none: 0,
|
|
95
|
+
spacious: 4
|
|
96
|
+
},
|
|
97
|
+
utility: {
|
|
98
|
+
none: 0,
|
|
99
|
+
compact: 2,
|
|
100
|
+
spacious: 6
|
|
101
|
+
}
|
|
102
|
+
};
|
|
80
103
|
|
|
81
104
|
/**
|
|
82
105
|
* __Icon__
|
|
@@ -87,26 +110,19 @@ var baseSizeMap = {
|
|
|
87
110
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
88
111
|
*/
|
|
89
112
|
export var Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
113
|
+
var _props$type, _props$spacing3, _props$spacing4;
|
|
90
114
|
var _ref = props,
|
|
91
|
-
|
|
92
|
-
_ref$
|
|
93
|
-
providedSpacing = _ref$spacing === void 0 ? 'none' : _ref$spacing,
|
|
115
|
+
_ref$color = _ref.color,
|
|
116
|
+
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
94
117
|
testId = _ref.testId,
|
|
95
118
|
label = _ref.label,
|
|
96
119
|
LEGACY_primaryColor = _ref.LEGACY_primaryColor,
|
|
97
120
|
LEGACY_secondaryColor = _ref.LEGACY_secondaryColor,
|
|
98
121
|
LEGACY_size = _ref.LEGACY_size,
|
|
99
122
|
FallbackIcon = _ref.LEGACY_fallbackIcon,
|
|
100
|
-
_ref$type = _ref.type,
|
|
101
|
-
type = _ref$type === void 0 ? 'global' : _ref$type,
|
|
102
123
|
dangerouslySetGlyph = _ref.dangerouslySetGlyph,
|
|
103
124
|
shouldScale = _ref.shouldScale,
|
|
104
125
|
LEGACY_margin = _ref.LEGACY_margin;
|
|
105
|
-
var fallbackColor = "var(--ds-icon, #44546F)";
|
|
106
|
-
if (fg('platform-design-system-new-icon-default-color') || fg('platform-design-system-new-icon-default-color-2')) {
|
|
107
|
-
fallbackColor = 'currentColor';
|
|
108
|
-
}
|
|
109
|
-
var color = providedColor !== null && providedColor !== void 0 ? providedColor : fallbackColor;
|
|
110
126
|
var dangerouslySetInnerHTML = dangerouslySetGlyph ? {
|
|
111
127
|
__html: dangerouslySetGlyph
|
|
112
128
|
} : undefined;
|
|
@@ -125,12 +141,15 @@ export var Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
125
141
|
UNSAFE_margin: LEGACY_margin
|
|
126
142
|
});
|
|
127
143
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
144
|
+
var baseSize = baseSizeMap[(_props$type = props.type) !== null && _props$type !== void 0 ? _props$type : 'core'];
|
|
145
|
+
var viewBoxPadding;
|
|
146
|
+
if (props.type === 'utility') {
|
|
147
|
+
var _props$spacing;
|
|
148
|
+
viewBoxPadding = paddingMap[props.type][(_props$spacing = props.spacing) !== null && _props$spacing !== void 0 ? _props$spacing : 'none'];
|
|
149
|
+
} else {
|
|
150
|
+
var _props$spacing2;
|
|
151
|
+
viewBoxPadding = paddingMap['core'][(_props$spacing2 = props.spacing) !== null && _props$spacing2 !== void 0 ? _props$spacing2 : 'none'];
|
|
152
|
+
}
|
|
134
153
|
var viewBoxSize = baseSize + 2 * viewBoxPadding;
|
|
135
154
|
|
|
136
155
|
// Workaround for the transparency in our disabled icon token.
|
|
@@ -150,7 +169,7 @@ export var Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
150
169
|
style: {
|
|
151
170
|
color: iconColor
|
|
152
171
|
},
|
|
153
|
-
css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, type === 'utility' && utilityIconStyles]
|
|
172
|
+
css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, props.type === 'utility' && utilityIconStyles]
|
|
154
173
|
}, jsx("svg", {
|
|
155
174
|
fill: "none"
|
|
156
175
|
// Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
|
|
@@ -158,7 +177,7 @@ export var Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
158
177
|
,
|
|
159
178
|
viewBox: "".concat(0 - viewBoxPadding, " ").concat(0 - viewBoxPadding, " ").concat(viewBoxSize, " ").concat(viewBoxSize),
|
|
160
179
|
role: "presentation",
|
|
161
|
-
css: [commonSVGStyles, svgStyles, sizeMap[
|
|
180
|
+
css: [commonSVGStyles, svgStyles, shouldScale ? scaleSize : props.type === 'utility' ? sizeMap[props.type][(_props$spacing3 = props.spacing) !== null && _props$spacing3 !== void 0 ? _props$spacing3 : 'none'] : sizeMap['core'][(_props$spacing4 = props.spacing) !== null && _props$spacing4 !== void 0 ? _props$spacing4 : 'none']],
|
|
162
181
|
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
163
182
|
}));
|
|
164
183
|
});
|