@atlaskit/icon 27.12.0 → 28.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/base/package.json +1 -1
- package/base-new/package.json +1 -1
- package/build/index.tsx +1 -0
- package/constants/package.json +1 -1
- package/deprecated-map/package.json +1 -1
- package/dist/cjs/entry-points/base.js +0 -7
- package/dist/cjs/metadata-core.js +1 -6
- package/dist/es2019/entry-points/base.js +1 -2
- package/dist/es2019/metadata-core.js +1 -6
- package/dist/esm/entry-points/base.js +1 -2
- package/dist/esm/metadata-core.js +1 -6
- package/dist/types/entry-points/base.d.ts +0 -1
- package/dist/types/types.d.ts +0 -4
- package/dist/types-ts4.5/entry-points/base.d.ts +0 -1
- package/dist/types-ts4.5/types.d.ts +0 -4
- package/glyph/activity.js +2 -5
- package/glyph/add-circle.js +2 -5
- package/glyph/add-item.js +2 -5
- package/glyph/add.js +2 -5
- package/glyph/addon.js +2 -5
- package/glyph/app-access.js +2 -5
- package/glyph/app-switcher.js +2 -5
- package/glyph/archive.js +2 -5
- package/glyph/arrow-down-circle.js +2 -5
- package/glyph/arrow-down.js +2 -5
- package/glyph/arrow-left-circle.js +2 -5
- package/glyph/arrow-left.js +2 -5
- package/glyph/arrow-right-circle.js +2 -5
- package/glyph/arrow-right.js +2 -5
- package/glyph/arrow-up-circle.js +2 -5
- package/glyph/arrow-up.js +2 -5
- package/glyph/attachment.js +2 -5
- package/glyph/audio-circle.js +2 -5
- package/glyph/audio.js +2 -5
- package/glyph/backlog.js +2 -5
- package/glyph/billing-filled.js +1 -1
- package/glyph/billing.js +1 -1
- package/glyph/bitbucket/branches.js +2 -5
- package/glyph/bitbucket/builds.js +1 -1
- package/glyph/bitbucket/clone.js +1 -1
- package/glyph/bitbucket/commits.js +2 -5
- package/glyph/bitbucket/compare.js +1 -1
- package/glyph/bitbucket/forks.js +1 -1
- package/glyph/bitbucket/output.js +1 -1
- package/glyph/bitbucket/pipelines.js +1 -1
- package/glyph/bitbucket/pullrequests.js +2 -5
- package/glyph/bitbucket/repos.js +2 -5
- package/glyph/bitbucket/snippets.js +2 -5
- package/glyph/bitbucket/source.js +2 -5
- package/glyph/board.js +2 -5
- package/glyph/book.js +2 -5
- package/glyph/bullet-list.js +2 -5
- package/glyph/calendar-filled.js +2 -5
- package/glyph/calendar.js +2 -5
- package/glyph/camera-filled.js +2 -5
- package/glyph/camera-rotate.js +1 -1
- package/glyph/camera-take-picture.js +1 -1
- package/glyph/camera.js +2 -5
- package/glyph/canvas.js +1 -1
- package/glyph/check-circle-outline.js +2 -5
- package/glyph/check-circle.js +2 -5
- package/glyph/check.js +2 -5
- package/glyph/checkbox-indeterminate.js +2 -5
- package/glyph/checkbox.js +2 -5
- package/glyph/chevron-down-circle.js +2 -5
- package/glyph/chevron-down.js +2 -5
- package/glyph/chevron-left-circle.js +2 -5
- package/glyph/chevron-left-large.js +2 -5
- package/glyph/chevron-left.js +2 -5
- package/glyph/chevron-right-circle.js +2 -5
- package/glyph/chevron-right-large.js +2 -5
- package/glyph/chevron-right.js +2 -5
- package/glyph/chevron-up-circle.js +2 -5
- package/glyph/chevron-up.js +2 -5
- package/glyph/child-issues.js +2 -5
- package/glyph/code.js +2 -5
- package/glyph/comment.js +2 -5
- package/glyph/component.js +2 -5
- package/glyph/copy.js +2 -5
- package/glyph/creditcard-filled.js +2 -5
- package/glyph/creditcard.js +2 -5
- package/glyph/cross-circle.js +2 -5
- package/glyph/cross.js +2 -5
- package/glyph/dashboard.js +2 -5
- package/glyph/decision.js +2 -5
- package/glyph/department.js +2 -5
- package/glyph/detail-view.js +2 -5
- package/glyph/discover-filled.js +2 -5
- package/glyph/discover.js +2 -5
- package/glyph/document-filled.js +2 -5
- package/glyph/document.js +2 -5
- package/glyph/documents.js +2 -5
- package/glyph/download.js +2 -5
- package/glyph/drag-handler.js +2 -5
- package/glyph/dropbox.js +1 -1
- package/glyph/edit-filled.js +2 -5
- package/glyph/edit.js +2 -5
- package/glyph/editor/add.js +2 -5
- package/glyph/editor/addon.js +1 -1
- package/glyph/editor/advanced.js +1 -1
- package/glyph/editor/align-center.js +2 -5
- package/glyph/editor/align-image-center.js +2 -5
- package/glyph/editor/align-image-left.js +2 -5
- package/glyph/editor/align-image-right.js +2 -5
- package/glyph/editor/align-left.js +2 -5
- package/glyph/editor/align-right.js +2 -5
- package/glyph/editor/attachment.js +2 -5
- package/glyph/editor/background-color.js +2 -5
- package/glyph/editor/bold.js +2 -5
- package/glyph/editor/bullet-list.js +2 -5
- package/glyph/editor/close.js +2 -5
- package/glyph/editor/code.js +2 -5
- package/glyph/editor/collapse.js +2 -5
- package/glyph/editor/date.js +2 -5
- package/glyph/editor/decision.js +2 -5
- package/glyph/editor/divider.js +2 -5
- package/glyph/editor/done.js +2 -5
- package/glyph/editor/edit.js +2 -5
- package/glyph/editor/emoji.js +2 -5
- package/glyph/editor/error.js +2 -5
- package/glyph/editor/expand.js +2 -5
- package/glyph/editor/feedback.js +2 -5
- package/glyph/editor/file-preview.js +1 -1
- package/glyph/editor/file.js +2 -5
- package/glyph/editor/help.js +2 -5
- package/glyph/editor/hint.js +2 -5
- package/glyph/editor/horizontal-rule.js +2 -5
- package/glyph/editor/image-border.js +1 -1
- package/glyph/editor/image-resize.js +2 -5
- package/glyph/editor/image.js +2 -5
- package/glyph/editor/indent.js +2 -5
- package/glyph/editor/info.js +2 -5
- package/glyph/editor/italic.js +2 -5
- package/glyph/editor/layout-single.js +2 -5
- package/glyph/editor/layout-three-equal.js +2 -5
- package/glyph/editor/layout-three-with-sidebars.js +2 -5
- package/glyph/editor/layout-two-equal.js +2 -5
- package/glyph/editor/layout-two-left-sidebar.js +2 -5
- package/glyph/editor/layout-two-right-sidebar.js +2 -5
- package/glyph/editor/link.js +2 -5
- package/glyph/editor/media-center.js +2 -5
- package/glyph/editor/media-full-width.js +2 -5
- package/glyph/editor/media-wide.js +2 -5
- package/glyph/editor/media-wrap-left.js +2 -5
- package/glyph/editor/media-wrap-right.js +2 -5
- package/glyph/editor/mention.js +2 -5
- package/glyph/editor/more.js +2 -5
- package/glyph/editor/note.js +2 -5
- package/glyph/editor/number-list.js +2 -5
- package/glyph/editor/open.js +2 -5
- package/glyph/editor/outdent.js +2 -5
- package/glyph/editor/panel.js +2 -5
- package/glyph/editor/photo.js +2 -5
- package/glyph/editor/quote.js +2 -5
- package/glyph/editor/recent.js +2 -5
- package/glyph/editor/redo.js +2 -5
- package/glyph/editor/remove-emoji.js +1 -1
- package/glyph/editor/remove.js +2 -5
- package/glyph/editor/search.js +2 -5
- package/glyph/editor/settings.js +2 -5
- package/glyph/editor/strikethrough.js +1 -1
- package/glyph/editor/success.js +2 -5
- package/glyph/editor/table-display-options.js +1 -1
- package/glyph/editor/table.js +2 -5
- package/glyph/editor/task.js +2 -5
- package/glyph/editor/text-color.js +1 -1
- package/glyph/editor/text-style.js +2 -5
- package/glyph/editor/underline.js +1 -1
- package/glyph/editor/undo.js +2 -5
- package/glyph/editor/unlink.js +2 -5
- package/glyph/editor/warning.js +2 -5
- package/glyph/email.js +2 -5
- package/glyph/emoji/activity.js +2 -5
- package/glyph/emoji/atlassian.js +1 -1
- package/glyph/emoji/custom.js +2 -5
- package/glyph/emoji/emoji.js +2 -5
- package/glyph/emoji/flags.js +2 -5
- package/glyph/emoji/food.js +2 -5
- package/glyph/emoji/frequent.js +2 -5
- package/glyph/emoji/keyboard.js +2 -5
- package/glyph/emoji/nature.js +2 -5
- package/glyph/emoji/objects.js +2 -5
- package/glyph/emoji/people.js +2 -5
- package/glyph/emoji/productivity.js +2 -5
- package/glyph/emoji/symbols.js +2 -5
- package/glyph/emoji/travel.js +2 -5
- package/glyph/emoji-add.js +2 -5
- package/glyph/emoji.js +2 -5
- package/glyph/error.js +2 -5
- package/glyph/export.js +2 -5
- package/glyph/feedback.js +2 -5
- package/glyph/file.js +2 -5
- package/glyph/filter.js +2 -5
- package/glyph/flag-filled.js +2 -5
- package/glyph/folder-filled.js +1 -1
- package/glyph/folder.js +2 -5
- package/glyph/followers.js +2 -5
- package/glyph/following.js +1 -1
- package/glyph/googledrive.js +1 -1
- package/glyph/graph-bar.js +2 -5
- package/glyph/graph-line.js +2 -5
- package/glyph/gsuite.js +1 -1
- package/glyph/highlights.js +1 -1
- package/glyph/hipchat/audio-only.js +2 -5
- package/glyph/hipchat/chevron-double-down.js +1 -1
- package/glyph/hipchat/chevron-double-up.js +1 -1
- package/glyph/hipchat/chevron-down.js +2 -5
- package/glyph/hipchat/chevron-up.js +2 -5
- package/glyph/hipchat/dial-out.js +2 -5
- package/glyph/hipchat/lobby.js +2 -5
- package/glyph/hipchat/media-attachment-count.js +1 -1
- package/glyph/hipchat/outgoing-sound.js +2 -5
- package/glyph/hipchat/sd-video.js +2 -5
- package/glyph/home-circle.js +2 -5
- package/glyph/home.js +2 -5
- package/glyph/image-border.js +1 -1
- package/glyph/image-resize.js +2 -5
- package/glyph/image.js +2 -5
- package/glyph/info.js +2 -5
- package/glyph/invite-team.js +2 -5
- package/glyph/issue-raise.js +2 -5
- package/glyph/issue.js +2 -5
- package/glyph/issues.js +2 -5
- package/glyph/jira/capture.js +2 -5
- package/glyph/jira/failed-build-status.js +1 -1
- package/glyph/jira/labs.js +2 -5
- package/glyph/jira/test-session.js +2 -5
- package/glyph/label.js +2 -5
- package/glyph/lightbulb-filled.js +2 -5
- package/glyph/lightbulb.js +2 -5
- package/glyph/like.js +2 -5
- package/glyph/link-filled.js +2 -5
- package/glyph/link.js +2 -5
- package/glyph/list.js +1 -1
- package/glyph/location.js +2 -5
- package/glyph/lock-circle.js +2 -5
- package/glyph/lock-filled.js +2 -5
- package/glyph/lock.js +2 -5
- package/glyph/marketplace.js +2 -5
- package/glyph/media-services/actual-size.js +2 -5
- package/glyph/media-services/add-comment.js +2 -5
- package/glyph/media-services/annotate.js +1 -1
- package/glyph/media-services/arrow.js +1 -1
- package/glyph/media-services/audio.js +2 -5
- package/glyph/media-services/blur.js +1 -1
- package/glyph/media-services/brush.js +1 -1
- package/glyph/media-services/button-option.js +1 -1
- package/glyph/media-services/code.js +2 -5
- package/glyph/media-services/document.js +2 -5
- package/glyph/media-services/filter.js +2 -5
- package/glyph/media-services/fit-to-page.js +2 -5
- package/glyph/media-services/full-screen.js +2 -5
- package/glyph/media-services/grid.js +2 -5
- package/glyph/media-services/image.js +2 -5
- package/glyph/media-services/line-thickness.js +1 -1
- package/glyph/media-services/line.js +2 -5
- package/glyph/media-services/no-image.js +1 -1
- package/glyph/media-services/open-mediaviewer.js +1 -1
- package/glyph/media-services/oval.js +1 -1
- package/glyph/media-services/pdf.js +1 -1
- package/glyph/media-services/preselected.js +2 -5
- package/glyph/media-services/presentation.js +2 -5
- package/glyph/media-services/rectangle.js +1 -1
- package/glyph/media-services/scale-large.js +2 -5
- package/glyph/media-services/scale-small.js +2 -5
- package/glyph/media-services/spreadsheet.js +2 -5
- package/glyph/media-services/text.js +1 -1
- package/glyph/media-services/unknown.js +1 -1
- package/glyph/media-services/video.js +2 -5
- package/glyph/media-services/zip.js +1 -1
- package/glyph/media-services/zoom-in.js +2 -5
- package/glyph/media-services/zoom-out.js +2 -5
- package/glyph/mention.js +1 -1
- package/glyph/menu-expand.js +2 -5
- package/glyph/menu.js +2 -5
- package/glyph/mobile.js +2 -5
- package/glyph/more-vertical.js +2 -5
- package/glyph/more.js +2 -5
- package/glyph/notification-all.js +1 -1
- package/glyph/notification-direct.js +2 -5
- package/glyph/notification.js +2 -5
- package/glyph/office-building-filled.js +2 -5
- package/glyph/office-building.js +2 -5
- package/glyph/open.js +2 -5
- package/glyph/overview.js +2 -5
- package/glyph/page-filled.js +2 -5
- package/glyph/page.js +2 -5
- package/glyph/pdf.js +1 -1
- package/glyph/people-group.js +2 -5
- package/glyph/people.js +2 -5
- package/glyph/person-circle.js +2 -5
- package/glyph/person-with-circle.js +1 -1
- package/glyph/person-with-cross.js +1 -1
- package/glyph/person-with-tick.js +2 -5
- package/glyph/person.js +2 -5
- package/glyph/portfolio.js +1 -1
- package/glyph/preferences.js +2 -5
- package/glyph/premium.js +2 -5
- package/glyph/presence-active.js +1 -1
- package/glyph/presence-busy.js +1 -1
- package/glyph/presence-unavailable.js +1 -1
- package/glyph/question-circle.js +2 -5
- package/glyph/question.js +2 -5
- package/glyph/questions.js +2 -5
- package/glyph/queues.js +2 -5
- package/glyph/quote.js +2 -5
- package/glyph/radio.js +2 -5
- package/glyph/recent.js +2 -5
- package/glyph/redo.js +2 -5
- package/glyph/refresh.js +2 -5
- package/glyph/retry.js +2 -5
- package/glyph/roadmap.js +2 -5
- package/glyph/room-menu.js +2 -5
- package/glyph/schedule-filled.js +2 -5
- package/glyph/schedule.js +2 -5
- package/glyph/screen.js +2 -5
- package/glyph/search.js +2 -5
- package/glyph/select-clear.js +2 -5
- package/glyph/send.js +2 -5
- package/glyph/settings.js +2 -5
- package/glyph/share.js +2 -5
- package/glyph/ship.js +2 -5
- package/glyph/shortcut.js +2 -5
- package/glyph/sign-in.js +2 -5
- package/glyph/sign-out.js +2 -5
- package/glyph/sprint.js +2 -5
- package/glyph/star-filled.js +2 -5
- package/glyph/star-large.js +2 -5
- package/glyph/star.js +2 -5
- package/glyph/status.js +1 -1
- package/glyph/stopwatch.js +2 -5
- package/glyph/subtask.js +2 -5
- package/glyph/suitcase.js +2 -5
- package/glyph/switcher.js +2 -5
- package/glyph/table.js +2 -5
- package/glyph/task.js +2 -5
- package/glyph/teams.js +2 -5
- package/glyph/trash.js +2 -5
- package/glyph/tray.js +2 -5
- package/glyph/undo.js +2 -5
- package/glyph/unlink.js +2 -5
- package/glyph/unlock-circle.js +2 -5
- package/glyph/unlock-filled.js +2 -5
- package/glyph/unlock.js +2 -5
- package/glyph/upload.js +2 -5
- package/glyph/user-avatar-circle.js +2 -5
- package/glyph/vid-audio-muted.js +1 -1
- package/glyph/vid-audio-on.js +2 -5
- package/glyph/vid-backward.js +1 -1
- package/glyph/vid-camera-off.js +1 -1
- package/glyph/vid-camera-on.js +2 -5
- package/glyph/vid-connection-circle.js +1 -1
- package/glyph/vid-forward.js +1 -1
- package/glyph/vid-full-screen-off.js +2 -5
- package/glyph/vid-full-screen-on.js +2 -5
- package/glyph/vid-hang-up.js +1 -1
- package/glyph/vid-hd-circle.js +1 -1
- package/glyph/vid-pause.js +2 -5
- package/glyph/vid-play.js +2 -5
- package/glyph/vid-raised-hand.js +1 -1
- package/glyph/vid-share-screen.js +1 -1
- package/glyph/vid-speaking-circle.js +1 -1
- package/glyph/vid-volume-full.js +2 -5
- package/glyph/vid-volume-half.js +2 -5
- package/glyph/vid-volume-muted.js +2 -5
- package/glyph/video-circle.js +2 -5
- package/glyph/video-filled.js +2 -5
- package/glyph/warning.js +2 -5
- package/glyph/watch-filled.js +2 -5
- package/glyph/watch.js +2 -5
- package/glyph/world-small.js +2 -5
- package/glyph/world.js +2 -5
- package/metadata/package.json +1 -1
- package/migration-map/package.json +1 -1
- package/package.json +5 -77
- package/svg/package.json +1 -1
- package/types/package.json +1 -1
- package/dist/cjs/components/icon-facade.js +0 -68
- package/dist/es2019/components/icon-facade.js +0 -58
- package/dist/esm/components/icon-facade.js +0 -59
- package/dist/types/components/icon-facade.d.ts +0 -11
- package/dist/types-ts4.5/components/icon-facade.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"description": "An icon is a symbol representing a command, device, directory, or common action.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -17,79 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"atlaskit:src": "src/index.tsx",
|
|
19
19
|
"atlassian": {
|
|
20
|
-
"team": "Design System Team"
|
|
21
|
-
"website": {
|
|
22
|
-
"name": "Icon",
|
|
23
|
-
"category": "Images and icons",
|
|
24
|
-
"subPages": [
|
|
25
|
-
{
|
|
26
|
-
"title": "Icon (legacy)",
|
|
27
|
-
"id": "icon-legacy",
|
|
28
|
-
"sortKey": 1,
|
|
29
|
-
"status": {
|
|
30
|
-
"type": "deprecated",
|
|
31
|
-
"description": "Legacy icons (`@atlaskit/icon/glyph`) are deprecated. We recommend migrating to our new iconography system.",
|
|
32
|
-
"actions": [
|
|
33
|
-
{
|
|
34
|
-
"text": "View new icons",
|
|
35
|
-
"href": "/components/icon/"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"text": "Migration Guide",
|
|
39
|
-
"href": "/components/icon/migration-guide/"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"title": "Icon tile",
|
|
46
|
-
"id": "icon-tile",
|
|
47
|
-
"status": {
|
|
48
|
-
"type": "open-alpha",
|
|
49
|
-
"description": "This is an experiment. We may make frequent breaking changes with limited notice."
|
|
50
|
-
},
|
|
51
|
-
"sortKey": 2
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"title": "Custom icon (legacy)",
|
|
55
|
-
"id": "custom-icon",
|
|
56
|
-
"sortKey": 3,
|
|
57
|
-
"status": {
|
|
58
|
-
"type": "deprecated",
|
|
59
|
-
"description": "Custom icon is deprecated. We recommend using either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.",
|
|
60
|
-
"actions": [
|
|
61
|
-
{
|
|
62
|
-
"text": "View available icons",
|
|
63
|
-
"href": "/components/icon/"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"text": "Contribute an icon (Atlassians only)",
|
|
67
|
-
"href": "https://go.atlassian.com/ads-icon-contribution"
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"title": "Custom SVG",
|
|
74
|
-
"id": "custom-svg",
|
|
75
|
-
"sortKey": 4,
|
|
76
|
-
"status": {
|
|
77
|
-
"type": "deprecated",
|
|
78
|
-
"description": "Custom SVG is deprecated. We recommend using either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.",
|
|
79
|
-
"actions": [
|
|
80
|
-
{
|
|
81
|
-
"text": "View available icons",
|
|
82
|
-
"href": "/components/icon/"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"text": "Contribute an icon (Atlassians only)",
|
|
86
|
-
"href": "https://go.atlassian.com/ads-icon-contribution"
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
}
|
|
20
|
+
"team": "Design System Team"
|
|
93
21
|
},
|
|
94
22
|
"scripts": {
|
|
95
23
|
"build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
|
|
@@ -109,17 +37,17 @@
|
|
|
109
37
|
"@af/icon-build-process": "workspace:^",
|
|
110
38
|
"@af/integration-testing": "workspace:^",
|
|
111
39
|
"@af/visual-regression": "workspace:^",
|
|
112
|
-
"@atlaskit/button": "^23.
|
|
40
|
+
"@atlaskit/button": "^23.4.0",
|
|
113
41
|
"@atlaskit/code": "^17.2.0",
|
|
114
42
|
"@atlaskit/css": "^0.12.0",
|
|
115
43
|
"@atlaskit/docs": "^11.0.0",
|
|
116
44
|
"@atlaskit/ds-lib": "^5.0.0",
|
|
117
|
-
"@atlaskit/form": "^12.
|
|
45
|
+
"@atlaskit/form": "^12.1.0",
|
|
118
46
|
"@atlaskit/heading": "^5.2.0",
|
|
119
47
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
120
48
|
"@atlaskit/icon-object": "^7.2.0",
|
|
121
49
|
"@atlaskit/link": "^3.2.0",
|
|
122
|
-
"@atlaskit/logo": "^19.
|
|
50
|
+
"@atlaskit/logo": "^19.7.0",
|
|
123
51
|
"@atlaskit/menu": "^8.3.0",
|
|
124
52
|
"@atlaskit/modal-dialog": "^14.3.0",
|
|
125
53
|
"@atlaskit/primitives": "^14.11.0",
|
package/svg/package.json
CHANGED
package/types/package.json
CHANGED
|
@@ -1,68 +0,0 @@
|
|
|
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.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 = require("./icon");
|
|
14
|
-
var _excluded = ["dangerouslySetGlyph", "size"];
|
|
15
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
|
-
var sizeSpacingMap = {
|
|
17
|
-
utility: {
|
|
18
|
-
small: 'compact',
|
|
19
|
-
medium: 'spacious'
|
|
20
|
-
},
|
|
21
|
-
core: {
|
|
22
|
-
small: 'none',
|
|
23
|
-
medium: 'spacious'
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
29
|
-
*
|
|
30
|
-
* @param {IconFacadeProps} props - The props for the IconFacade component. Includes properties for configuring
|
|
31
|
-
* the icon such as `size`, `spacing`, `primaryColor`, `iconType`, and potentially others depending on the icon.
|
|
32
|
-
* `dangerouslySetGlyph` is a prop specific to the legacy icon component for setting the icon glyph directly.
|
|
33
|
-
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
34
|
-
*/
|
|
35
|
-
var IconFacade = exports.IconFacade = /*#__PURE__*/(0, _react.memo)(function IconFacade(_ref) {
|
|
36
|
-
var dangerouslySetGlyph = _ref.dangerouslySetGlyph,
|
|
37
|
-
size = _ref.size,
|
|
38
|
-
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
39
|
-
var NewIcon = props.newIcon;
|
|
40
|
-
|
|
41
|
-
// By default, the icon size will be medium for core icons and small for utility icons
|
|
42
|
-
var iconSize = size !== null && size !== void 0 ? size : 'medium';
|
|
43
|
-
var useNewIcon = !props.isFacadeDisabled &&
|
|
44
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
45
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-legacy-facade');
|
|
46
|
-
if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium') && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-facade-removal')) {
|
|
47
|
-
if (props.iconType === 'utility') {
|
|
48
|
-
var Icon = NewIcon;
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(Icon, (0, _extends2.default)({}, props, {
|
|
50
|
-
spacing: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][iconSize] : 'none',
|
|
51
|
-
color: props.primaryColor || 'currentColor',
|
|
52
|
-
type: props.iconType
|
|
53
|
-
}));
|
|
54
|
-
} else {
|
|
55
|
-
var _Icon = NewIcon;
|
|
56
|
-
return /*#__PURE__*/_react.default.createElement(_Icon, (0, _extends2.default)({}, props, {
|
|
57
|
-
size: iconSize,
|
|
58
|
-
spacing: sizeSpacingMap['core'][iconSize],
|
|
59
|
-
color: props.primaryColor || 'currentColor',
|
|
60
|
-
type: props.iconType
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return /*#__PURE__*/_react.default.createElement(_icon.Icon, (0, _extends2.default)({
|
|
65
|
-
dangerouslySetGlyph: dangerouslySetGlyph,
|
|
66
|
-
size: size
|
|
67
|
-
}, props));
|
|
68
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React, { memo } from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { Icon as LegacyIcon } from './icon';
|
|
5
|
-
const sizeSpacingMap = {
|
|
6
|
-
utility: {
|
|
7
|
-
small: 'compact',
|
|
8
|
-
medium: 'spacious'
|
|
9
|
-
},
|
|
10
|
-
core: {
|
|
11
|
-
small: 'none',
|
|
12
|
-
medium: 'spacious'
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
18
|
-
*
|
|
19
|
-
* @param {IconFacadeProps} props - The props for the IconFacade component. Includes properties for configuring
|
|
20
|
-
* the icon such as `size`, `spacing`, `primaryColor`, `iconType`, and potentially others depending on the icon.
|
|
21
|
-
* `dangerouslySetGlyph` is a prop specific to the legacy icon component for setting the icon glyph directly.
|
|
22
|
-
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
23
|
-
*/
|
|
24
|
-
export const IconFacade = /*#__PURE__*/memo(function IconFacade({
|
|
25
|
-
dangerouslySetGlyph,
|
|
26
|
-
size,
|
|
27
|
-
...props
|
|
28
|
-
}) {
|
|
29
|
-
const NewIcon = props.newIcon;
|
|
30
|
-
|
|
31
|
-
// By default, the icon size will be medium for core icons and small for utility icons
|
|
32
|
-
const iconSize = size !== null && size !== void 0 ? size : 'medium';
|
|
33
|
-
const useNewIcon = !props.isFacadeDisabled &&
|
|
34
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
35
|
-
fg('platform-visual-refresh-icons-legacy-facade');
|
|
36
|
-
if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium') && !fg('platform-visual-refresh-icons-facade-removal')) {
|
|
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'][iconSize] : '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
|
-
size: iconSize,
|
|
48
|
-
spacing: sizeSpacingMap['core'][iconSize],
|
|
49
|
-
color: props.primaryColor || 'currentColor',
|
|
50
|
-
type: props.iconType
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
|
|
55
|
-
dangerouslySetGlyph: dangerouslySetGlyph,
|
|
56
|
-
size: size
|
|
57
|
-
}, props));
|
|
58
|
-
});
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["dangerouslySetGlyph", "size"];
|
|
4
|
-
import React, { memo } from 'react';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
import { Icon as LegacyIcon } from './icon';
|
|
7
|
-
var sizeSpacingMap = {
|
|
8
|
-
utility: {
|
|
9
|
-
small: 'compact',
|
|
10
|
-
medium: 'spacious'
|
|
11
|
-
},
|
|
12
|
-
core: {
|
|
13
|
-
small: 'none',
|
|
14
|
-
medium: 'spacious'
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
20
|
-
*
|
|
21
|
-
* @param {IconFacadeProps} props - The props for the IconFacade component. Includes properties for configuring
|
|
22
|
-
* the icon such as `size`, `spacing`, `primaryColor`, `iconType`, and potentially others depending on the icon.
|
|
23
|
-
* `dangerouslySetGlyph` is a prop specific to the legacy icon component for setting the icon glyph directly.
|
|
24
|
-
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
25
|
-
*/
|
|
26
|
-
export var IconFacade = /*#__PURE__*/memo(function IconFacade(_ref) {
|
|
27
|
-
var dangerouslySetGlyph = _ref.dangerouslySetGlyph,
|
|
28
|
-
size = _ref.size,
|
|
29
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
-
var NewIcon = props.newIcon;
|
|
31
|
-
|
|
32
|
-
// By default, the icon size will be medium for core icons and small for utility icons
|
|
33
|
-
var iconSize = size !== null && size !== void 0 ? size : 'medium';
|
|
34
|
-
var useNewIcon = !props.isFacadeDisabled &&
|
|
35
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
36
|
-
fg('platform-visual-refresh-icons-legacy-facade');
|
|
37
|
-
if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium') && !fg('platform-visual-refresh-icons-facade-removal')) {
|
|
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'][iconSize] : '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
|
-
size: iconSize,
|
|
49
|
-
spacing: sizeSpacingMap['core'][iconSize],
|
|
50
|
-
color: props.primaryColor || 'currentColor',
|
|
51
|
-
type: props.iconType
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
|
|
56
|
-
dangerouslySetGlyph: dangerouslySetGlyph,
|
|
57
|
-
size: size
|
|
58
|
-
}, props));
|
|
59
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IconFacadeProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
5
|
-
*
|
|
6
|
-
* @param {IconFacadeProps} props - The props for the IconFacade component. Includes properties for configuring
|
|
7
|
-
* the icon such as `size`, `spacing`, `primaryColor`, `iconType`, and potentially others depending on the icon.
|
|
8
|
-
* `dangerouslySetGlyph` is a prop specific to the legacy icon component for setting the icon glyph directly.
|
|
9
|
-
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
10
|
-
*/
|
|
11
|
-
export declare const IconFacade: React.NamedExoticComponent<IconFacadeProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IconFacadeProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
|
|
5
|
-
*
|
|
6
|
-
* @param {IconFacadeProps} props - The props for the IconFacade component. Includes properties for configuring
|
|
7
|
-
* the icon such as `size`, `spacing`, `primaryColor`, `iconType`, and potentially others depending on the icon.
|
|
8
|
-
* `dangerouslySetGlyph` is a prop specific to the legacy icon component for setting the icon glyph directly.
|
|
9
|
-
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
10
|
-
*/
|
|
11
|
-
export declare const IconFacade: React.NamedExoticComponent<IconFacadeProps>;
|