@atlaskit/icon 32.0.0 → 32.0.2
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 +16 -0
- package/build/index.tsx +31 -1
- package/codemods/32.0.2-icon-spacing-to-flex-primitive/index.tsx +428 -0
- package/codemods/__tests__/icon-spacing-to-box-primitive.test.tsx +310 -0
- package/dist/cjs/components/icon-new.js +1 -1
- package/dist/cjs/components/icon-tile/icon-tile-new.js +1 -1
- package/dist/cjs/components/icon-tile/icon-tile-old.js +1 -1
- package/dist/cjs/components/icon.js +1 -1
- package/dist/cjs/components/skeleton.js +1 -1
- package/dist/cjs/components/svg.js +1 -1
- package/dist/cjs/entry-points/metadata.js +2 -1
- package/dist/cjs/metadata-core.js +192 -0
- package/dist/cjs/metadata.js +3960 -0
- package/dist/es2019/components/icon-new.js +1 -1
- package/dist/es2019/components/icon-tile/icon-tile-new.js +1 -1
- package/dist/es2019/components/icon-tile/icon-tile-old.js +1 -1
- package/dist/es2019/components/icon.js +1 -1
- package/dist/es2019/components/skeleton.js +1 -1
- package/dist/es2019/components/svg.js +1 -1
- package/dist/es2019/entry-points/metadata.js +1 -1
- package/dist/es2019/metadata-core.js +192 -0
- package/dist/es2019/metadata.js +2516 -0
- package/dist/esm/components/icon-new.js +1 -1
- package/dist/esm/components/icon-tile/icon-tile-new.js +1 -1
- package/dist/esm/components/icon-tile/icon-tile-old.js +1 -1
- package/dist/esm/components/icon.js +1 -1
- package/dist/esm/components/skeleton.js +1 -1
- package/dist/esm/components/svg.js +1 -1
- package/dist/esm/entry-points/metadata.js +1 -1
- package/dist/esm/metadata-core.js +192 -0
- package/dist/esm/metadata.js +3237 -0
- package/dist/types/entry-points/metadata.d.ts +1 -1
- package/dist/types/metadata-core.d.ts +4 -0
- package/dist/types/metadata.d.ts +19 -0
- package/dist/types-ts4.5/entry-points/metadata.d.ts +1 -1
- package/dist/types-ts4.5/metadata-core.d.ts +4 -0
- package/dist/types-ts4.5/metadata.d.ts +19 -0
- package/docs/ai/icon-instructions.md +3 -3
- package/glyph/activity.d.ts +9 -0
- package/glyph/activity.js +14 -0
- package/glyph/add-circle.d.ts +9 -0
- package/glyph/add-circle.js +14 -0
- package/glyph/add-item.d.ts +9 -0
- package/glyph/add-item.js +14 -0
- package/glyph/add.d.ts +9 -0
- package/glyph/add.js +14 -0
- package/glyph/addon.d.ts +9 -0
- package/glyph/addon.js +14 -0
- package/glyph/app-access.d.ts +9 -0
- package/glyph/app-access.js +14 -0
- package/glyph/app-switcher.d.ts +9 -0
- package/glyph/app-switcher.js +14 -0
- package/glyph/archive.d.ts +9 -0
- package/glyph/archive.js +14 -0
- package/glyph/arrow-down-circle.d.ts +9 -0
- package/glyph/arrow-down-circle.js +14 -0
- package/glyph/arrow-down.d.ts +9 -0
- package/glyph/arrow-down.js +14 -0
- package/glyph/arrow-left-circle.d.ts +9 -0
- package/glyph/arrow-left-circle.js +14 -0
- package/glyph/arrow-left.d.ts +9 -0
- package/glyph/arrow-left.js +14 -0
- package/glyph/arrow-right-circle.d.ts +9 -0
- package/glyph/arrow-right-circle.js +14 -0
- package/glyph/arrow-right.d.ts +9 -0
- package/glyph/arrow-right.js +14 -0
- package/glyph/arrow-up-circle.d.ts +9 -0
- package/glyph/arrow-up-circle.js +14 -0
- package/glyph/arrow-up.d.ts +9 -0
- package/glyph/arrow-up.js +14 -0
- package/glyph/attachment.d.ts +9 -0
- package/glyph/attachment.js +14 -0
- package/glyph/audio-circle.d.ts +9 -0
- package/glyph/audio-circle.js +14 -0
- package/glyph/audio.d.ts +9 -0
- package/glyph/audio.js +14 -0
- package/glyph/backlog.d.ts +9 -0
- package/glyph/backlog.js +14 -0
- package/glyph/billing-filled.d.ts +9 -0
- package/glyph/billing-filled.js +14 -0
- package/glyph/billing.d.ts +9 -0
- package/glyph/billing.js +14 -0
- package/glyph/bitbucket/branches.d.ts +9 -0
- package/glyph/bitbucket/branches.js +14 -0
- package/glyph/bitbucket/builds.d.ts +9 -0
- package/glyph/bitbucket/builds.js +14 -0
- package/glyph/bitbucket/clone.d.ts +9 -0
- package/glyph/bitbucket/clone.js +14 -0
- package/glyph/bitbucket/commits.d.ts +9 -0
- package/glyph/bitbucket/commits.js +14 -0
- package/glyph/bitbucket/compare.d.ts +9 -0
- package/glyph/bitbucket/compare.js +14 -0
- package/glyph/bitbucket/forks.d.ts +9 -0
- package/glyph/bitbucket/forks.js +14 -0
- package/glyph/bitbucket/output.d.ts +9 -0
- package/glyph/bitbucket/output.js +14 -0
- package/glyph/bitbucket/pipelines.d.ts +9 -0
- package/glyph/bitbucket/pipelines.js +14 -0
- package/glyph/bitbucket/pullrequests.d.ts +9 -0
- package/glyph/bitbucket/pullrequests.js +14 -0
- package/glyph/bitbucket/repos.d.ts +9 -0
- package/glyph/bitbucket/repos.js +14 -0
- package/glyph/bitbucket/snippets.d.ts +9 -0
- package/glyph/bitbucket/snippets.js +14 -0
- package/glyph/bitbucket/source.d.ts +9 -0
- package/glyph/bitbucket/source.js +14 -0
- package/glyph/board.d.ts +9 -0
- package/glyph/board.js +14 -0
- package/glyph/book.d.ts +9 -0
- package/glyph/book.js +14 -0
- package/glyph/bullet-list.d.ts +9 -0
- package/glyph/bullet-list.js +14 -0
- package/glyph/calendar-filled.d.ts +9 -0
- package/glyph/calendar-filled.js +14 -0
- package/glyph/calendar.d.ts +9 -0
- package/glyph/calendar.js +14 -0
- package/glyph/camera-filled.d.ts +9 -0
- package/glyph/camera-filled.js +14 -0
- package/glyph/camera-rotate.d.ts +9 -0
- package/glyph/camera-rotate.js +14 -0
- package/glyph/camera-take-picture.d.ts +9 -0
- package/glyph/camera-take-picture.js +14 -0
- package/glyph/camera.d.ts +9 -0
- package/glyph/camera.js +14 -0
- package/glyph/canvas.d.ts +9 -0
- package/glyph/canvas.js +14 -0
- package/glyph/check-circle-outline.d.ts +9 -0
- package/glyph/check-circle-outline.js +14 -0
- package/glyph/check-circle.d.ts +9 -0
- package/glyph/check-circle.js +14 -0
- package/glyph/check.d.ts +9 -0
- package/glyph/check.js +14 -0
- package/glyph/checkbox-indeterminate.d.ts +9 -0
- package/glyph/checkbox-indeterminate.js +14 -0
- package/glyph/checkbox.d.ts +9 -0
- package/glyph/checkbox.js +14 -0
- package/glyph/chevron-down-circle.d.ts +9 -0
- package/glyph/chevron-down-circle.js +14 -0
- package/glyph/chevron-down.d.ts +9 -0
- package/glyph/chevron-down.js +14 -0
- package/glyph/chevron-left-circle.d.ts +9 -0
- package/glyph/chevron-left-circle.js +14 -0
- package/glyph/chevron-left-large.d.ts +9 -0
- package/glyph/chevron-left-large.js +14 -0
- package/glyph/chevron-left.d.ts +9 -0
- package/glyph/chevron-left.js +14 -0
- package/glyph/chevron-right-circle.d.ts +9 -0
- package/glyph/chevron-right-circle.js +14 -0
- package/glyph/chevron-right-large.d.ts +9 -0
- package/glyph/chevron-right-large.js +14 -0
- package/glyph/chevron-right.d.ts +9 -0
- package/glyph/chevron-right.js +14 -0
- package/glyph/chevron-up-circle.d.ts +9 -0
- package/glyph/chevron-up-circle.js +14 -0
- package/glyph/chevron-up.d.ts +9 -0
- package/glyph/chevron-up.js +14 -0
- package/glyph/child-issues.d.ts +9 -0
- package/glyph/child-issues.js +14 -0
- package/glyph/code.d.ts +9 -0
- package/glyph/code.js +14 -0
- package/glyph/comment.d.ts +9 -0
- package/glyph/comment.js +14 -0
- package/glyph/component.d.ts +9 -0
- package/glyph/component.js +14 -0
- package/glyph/copy.d.ts +9 -0
- package/glyph/copy.js +14 -0
- package/glyph/creditcard-filled.d.ts +9 -0
- package/glyph/creditcard-filled.js +14 -0
- package/glyph/creditcard.d.ts +9 -0
- package/glyph/creditcard.js +14 -0
- package/glyph/cross-circle.d.ts +9 -0
- package/glyph/cross-circle.js +14 -0
- package/glyph/cross.d.ts +9 -0
- package/glyph/cross.js +14 -0
- package/glyph/dashboard.d.ts +9 -0
- package/glyph/dashboard.js +14 -0
- package/glyph/decision.d.ts +9 -0
- package/glyph/decision.js +14 -0
- package/glyph/department.d.ts +9 -0
- package/glyph/department.js +14 -0
- package/glyph/detail-view.d.ts +9 -0
- package/glyph/detail-view.js +14 -0
- package/glyph/discover-filled.d.ts +9 -0
- package/glyph/discover-filled.js +14 -0
- package/glyph/discover.d.ts +9 -0
- package/glyph/discover.js +14 -0
- package/glyph/document-filled.d.ts +9 -0
- package/glyph/document-filled.js +14 -0
- package/glyph/document.d.ts +9 -0
- package/glyph/document.js +14 -0
- package/glyph/documents.d.ts +9 -0
- package/glyph/documents.js +14 -0
- package/glyph/download.d.ts +9 -0
- package/glyph/download.js +14 -0
- package/glyph/drag-handler.d.ts +9 -0
- package/glyph/drag-handler.js +14 -0
- package/glyph/dropbox.d.ts +9 -0
- package/glyph/dropbox.js +14 -0
- package/glyph/edit-filled.d.ts +9 -0
- package/glyph/edit-filled.js +14 -0
- package/glyph/edit.d.ts +9 -0
- package/glyph/edit.js +14 -0
- package/glyph/editor/add.d.ts +9 -0
- package/glyph/editor/add.js +14 -0
- package/glyph/editor/addon.d.ts +9 -0
- package/glyph/editor/addon.js +14 -0
- package/glyph/editor/advanced.d.ts +9 -0
- package/glyph/editor/advanced.js +14 -0
- package/glyph/editor/align-center.d.ts +9 -0
- package/glyph/editor/align-center.js +14 -0
- package/glyph/editor/align-image-center.d.ts +9 -0
- package/glyph/editor/align-image-center.js +14 -0
- package/glyph/editor/align-image-left.d.ts +9 -0
- package/glyph/editor/align-image-left.js +14 -0
- package/glyph/editor/align-image-right.d.ts +9 -0
- package/glyph/editor/align-image-right.js +14 -0
- package/glyph/editor/align-left.d.ts +9 -0
- package/glyph/editor/align-left.js +14 -0
- package/glyph/editor/align-right.d.ts +9 -0
- package/glyph/editor/align-right.js +14 -0
- package/glyph/editor/attachment.d.ts +9 -0
- package/glyph/editor/attachment.js +14 -0
- package/glyph/editor/background-color.d.ts +9 -0
- package/glyph/editor/background-color.js +14 -0
- package/glyph/editor/bold.d.ts +9 -0
- package/glyph/editor/bold.js +14 -0
- package/glyph/editor/bullet-list.d.ts +9 -0
- package/glyph/editor/bullet-list.js +14 -0
- package/glyph/editor/close.d.ts +9 -0
- package/glyph/editor/close.js +14 -0
- package/glyph/editor/code.d.ts +9 -0
- package/glyph/editor/code.js +14 -0
- package/glyph/editor/collapse.d.ts +9 -0
- package/glyph/editor/collapse.js +14 -0
- package/glyph/editor/date.d.ts +9 -0
- package/glyph/editor/date.js +14 -0
- package/glyph/editor/decision.d.ts +9 -0
- package/glyph/editor/decision.js +14 -0
- package/glyph/editor/divider.d.ts +9 -0
- package/glyph/editor/divider.js +14 -0
- package/glyph/editor/done.d.ts +9 -0
- package/glyph/editor/done.js +14 -0
- package/glyph/editor/edit.d.ts +9 -0
- package/glyph/editor/edit.js +14 -0
- package/glyph/editor/emoji.d.ts +9 -0
- package/glyph/editor/emoji.js +14 -0
- package/glyph/editor/error.d.ts +9 -0
- package/glyph/editor/error.js +14 -0
- package/glyph/editor/expand.d.ts +9 -0
- package/glyph/editor/expand.js +14 -0
- package/glyph/editor/feedback.d.ts +9 -0
- package/glyph/editor/feedback.js +14 -0
- package/glyph/editor/file-preview.d.ts +9 -0
- package/glyph/editor/file-preview.js +14 -0
- package/glyph/editor/file.d.ts +9 -0
- package/glyph/editor/file.js +14 -0
- package/glyph/editor/help.d.ts +9 -0
- package/glyph/editor/help.js +14 -0
- package/glyph/editor/hint.d.ts +9 -0
- package/glyph/editor/hint.js +14 -0
- package/glyph/editor/horizontal-rule.d.ts +9 -0
- package/glyph/editor/horizontal-rule.js +14 -0
- package/glyph/editor/image-border.d.ts +9 -0
- package/glyph/editor/image-border.js +14 -0
- package/glyph/editor/image-resize.d.ts +9 -0
- package/glyph/editor/image-resize.js +14 -0
- package/glyph/editor/image.d.ts +9 -0
- package/glyph/editor/image.js +14 -0
- package/glyph/editor/indent.d.ts +9 -0
- package/glyph/editor/indent.js +14 -0
- package/glyph/editor/info.d.ts +9 -0
- package/glyph/editor/info.js +14 -0
- package/glyph/editor/italic.d.ts +9 -0
- package/glyph/editor/italic.js +14 -0
- package/glyph/editor/layout-single.d.ts +9 -0
- package/glyph/editor/layout-single.js +14 -0
- package/glyph/editor/layout-three-equal.d.ts +9 -0
- package/glyph/editor/layout-three-equal.js +14 -0
- package/glyph/editor/layout-three-with-sidebars.d.ts +9 -0
- package/glyph/editor/layout-three-with-sidebars.js +14 -0
- package/glyph/editor/layout-two-equal.d.ts +9 -0
- package/glyph/editor/layout-two-equal.js +14 -0
- package/glyph/editor/layout-two-left-sidebar.d.ts +9 -0
- package/glyph/editor/layout-two-left-sidebar.js +14 -0
- package/glyph/editor/layout-two-right-sidebar.d.ts +9 -0
- package/glyph/editor/layout-two-right-sidebar.js +14 -0
- package/glyph/editor/link.d.ts +9 -0
- package/glyph/editor/link.js +14 -0
- package/glyph/editor/media-center.d.ts +9 -0
- package/glyph/editor/media-center.js +14 -0
- package/glyph/editor/media-full-width.d.ts +9 -0
- package/glyph/editor/media-full-width.js +14 -0
- package/glyph/editor/media-wide.d.ts +9 -0
- package/glyph/editor/media-wide.js +14 -0
- package/glyph/editor/media-wrap-left.d.ts +9 -0
- package/glyph/editor/media-wrap-left.js +14 -0
- package/glyph/editor/media-wrap-right.d.ts +9 -0
- package/glyph/editor/media-wrap-right.js +14 -0
- package/glyph/editor/mention.d.ts +9 -0
- package/glyph/editor/mention.js +14 -0
- package/glyph/editor/more.d.ts +9 -0
- package/glyph/editor/more.js +14 -0
- package/glyph/editor/note.d.ts +9 -0
- package/glyph/editor/note.js +14 -0
- package/glyph/editor/number-list.d.ts +9 -0
- package/glyph/editor/number-list.js +14 -0
- package/glyph/editor/open.d.ts +9 -0
- package/glyph/editor/open.js +14 -0
- package/glyph/editor/outdent.d.ts +9 -0
- package/glyph/editor/outdent.js +14 -0
- package/glyph/editor/panel.d.ts +9 -0
- package/glyph/editor/panel.js +14 -0
- package/glyph/editor/photo.d.ts +9 -0
- package/glyph/editor/photo.js +14 -0
- package/glyph/editor/quote.d.ts +9 -0
- package/glyph/editor/quote.js +14 -0
- package/glyph/editor/recent.d.ts +9 -0
- package/glyph/editor/recent.js +14 -0
- package/glyph/editor/redo.d.ts +9 -0
- package/glyph/editor/redo.js +14 -0
- package/glyph/editor/remove-emoji.d.ts +9 -0
- package/glyph/editor/remove-emoji.js +14 -0
- package/glyph/editor/remove.d.ts +9 -0
- package/glyph/editor/remove.js +14 -0
- package/glyph/editor/search.d.ts +9 -0
- package/glyph/editor/search.js +14 -0
- package/glyph/editor/settings.d.ts +9 -0
- package/glyph/editor/settings.js +14 -0
- package/glyph/editor/strikethrough.d.ts +9 -0
- package/glyph/editor/strikethrough.js +14 -0
- package/glyph/editor/success.d.ts +9 -0
- package/glyph/editor/success.js +14 -0
- package/glyph/editor/table-display-options.d.ts +9 -0
- package/glyph/editor/table-display-options.js +14 -0
- package/glyph/editor/table.d.ts +9 -0
- package/glyph/editor/table.js +14 -0
- package/glyph/editor/task.d.ts +9 -0
- package/glyph/editor/task.js +14 -0
- package/glyph/editor/text-color.d.ts +9 -0
- package/glyph/editor/text-color.js +14 -0
- package/glyph/editor/text-style.d.ts +9 -0
- package/glyph/editor/text-style.js +14 -0
- package/glyph/editor/underline.d.ts +9 -0
- package/glyph/editor/underline.js +14 -0
- package/glyph/editor/undo.d.ts +9 -0
- package/glyph/editor/undo.js +14 -0
- package/glyph/editor/unlink.d.ts +9 -0
- package/glyph/editor/unlink.js +14 -0
- package/glyph/editor/warning.d.ts +9 -0
- package/glyph/editor/warning.js +14 -0
- package/glyph/email.d.ts +9 -0
- package/glyph/email.js +14 -0
- package/glyph/emoji/activity.d.ts +9 -0
- package/glyph/emoji/activity.js +14 -0
- package/glyph/emoji/atlassian.d.ts +9 -0
- package/glyph/emoji/atlassian.js +14 -0
- package/glyph/emoji/custom.d.ts +9 -0
- package/glyph/emoji/custom.js +14 -0
- package/glyph/emoji/emoji.d.ts +9 -0
- package/glyph/emoji/emoji.js +14 -0
- package/glyph/emoji/flags.d.ts +9 -0
- package/glyph/emoji/flags.js +14 -0
- package/glyph/emoji/food.d.ts +9 -0
- package/glyph/emoji/food.js +14 -0
- package/glyph/emoji/frequent.d.ts +9 -0
- package/glyph/emoji/frequent.js +14 -0
- package/glyph/emoji/keyboard.d.ts +9 -0
- package/glyph/emoji/keyboard.js +14 -0
- package/glyph/emoji/nature.d.ts +9 -0
- package/glyph/emoji/nature.js +14 -0
- package/glyph/emoji/objects.d.ts +9 -0
- package/glyph/emoji/objects.js +14 -0
- package/glyph/emoji/people.d.ts +9 -0
- package/glyph/emoji/people.js +14 -0
- package/glyph/emoji/productivity.d.ts +9 -0
- package/glyph/emoji/productivity.js +14 -0
- package/glyph/emoji/symbols.d.ts +9 -0
- package/glyph/emoji/symbols.js +14 -0
- package/glyph/emoji/travel.d.ts +9 -0
- package/glyph/emoji/travel.js +14 -0
- package/glyph/emoji-add.d.ts +9 -0
- package/glyph/emoji-add.js +14 -0
- package/glyph/emoji.d.ts +9 -0
- package/glyph/emoji.js +14 -0
- package/glyph/error.d.ts +9 -0
- package/glyph/error.js +14 -0
- package/glyph/export.d.ts +9 -0
- package/glyph/export.js +14 -0
- package/glyph/feedback.d.ts +9 -0
- package/glyph/feedback.js +14 -0
- package/glyph/file.d.ts +9 -0
- package/glyph/file.js +14 -0
- package/glyph/filter.d.ts +9 -0
- package/glyph/filter.js +14 -0
- package/glyph/flag-filled.d.ts +9 -0
- package/glyph/flag-filled.js +14 -0
- package/glyph/folder-filled.d.ts +9 -0
- package/glyph/folder-filled.js +14 -0
- package/glyph/folder.d.ts +9 -0
- package/glyph/folder.js +14 -0
- package/glyph/followers.d.ts +9 -0
- package/glyph/followers.js +14 -0
- package/glyph/following.d.ts +9 -0
- package/glyph/following.js +14 -0
- package/glyph/googledrive.d.ts +9 -0
- package/glyph/googledrive.js +14 -0
- package/glyph/graph-bar.d.ts +9 -0
- package/glyph/graph-bar.js +14 -0
- package/glyph/graph-line.d.ts +9 -0
- package/glyph/graph-line.js +14 -0
- package/glyph/gsuite.d.ts +9 -0
- package/glyph/gsuite.js +14 -0
- package/glyph/highlights.d.ts +9 -0
- package/glyph/highlights.js +14 -0
- package/glyph/hipchat/audio-only.d.ts +9 -0
- package/glyph/hipchat/audio-only.js +14 -0
- package/glyph/hipchat/chevron-double-down.d.ts +9 -0
- package/glyph/hipchat/chevron-double-down.js +14 -0
- package/glyph/hipchat/chevron-double-up.d.ts +9 -0
- package/glyph/hipchat/chevron-double-up.js +14 -0
- package/glyph/hipchat/chevron-down.d.ts +9 -0
- package/glyph/hipchat/chevron-down.js +14 -0
- package/glyph/hipchat/chevron-up.d.ts +9 -0
- package/glyph/hipchat/chevron-up.js +14 -0
- package/glyph/hipchat/dial-out.d.ts +9 -0
- package/glyph/hipchat/dial-out.js +14 -0
- package/glyph/hipchat/lobby.d.ts +9 -0
- package/glyph/hipchat/lobby.js +14 -0
- package/glyph/hipchat/media-attachment-count.d.ts +9 -0
- package/glyph/hipchat/media-attachment-count.js +14 -0
- package/glyph/hipchat/outgoing-sound.d.ts +9 -0
- package/glyph/hipchat/outgoing-sound.js +14 -0
- package/glyph/hipchat/sd-video.d.ts +9 -0
- package/glyph/hipchat/sd-video.js +14 -0
- package/glyph/home-circle.d.ts +9 -0
- package/glyph/home-circle.js +14 -0
- package/glyph/home.d.ts +9 -0
- package/glyph/home.js +14 -0
- package/glyph/image-border.d.ts +9 -0
- package/glyph/image-border.js +14 -0
- package/glyph/image-resize.d.ts +9 -0
- package/glyph/image-resize.js +14 -0
- package/glyph/image.d.ts +9 -0
- package/glyph/image.js +14 -0
- package/glyph/info.d.ts +9 -0
- package/glyph/info.js +14 -0
- package/glyph/invite-team.d.ts +9 -0
- package/glyph/invite-team.js +14 -0
- package/glyph/issue-raise.d.ts +9 -0
- package/glyph/issue-raise.js +14 -0
- package/glyph/issue.d.ts +9 -0
- package/glyph/issue.js +14 -0
- package/glyph/issues.d.ts +9 -0
- package/glyph/issues.js +14 -0
- package/glyph/jira/capture.d.ts +9 -0
- package/glyph/jira/capture.js +14 -0
- package/glyph/jira/failed-build-status.d.ts +9 -0
- package/glyph/jira/failed-build-status.js +14 -0
- package/glyph/jira/labs.d.ts +9 -0
- package/glyph/jira/labs.js +14 -0
- package/glyph/jira/test-session.d.ts +9 -0
- package/glyph/jira/test-session.js +14 -0
- package/glyph/label.d.ts +9 -0
- package/glyph/label.js +14 -0
- package/glyph/lightbulb-filled.d.ts +9 -0
- package/glyph/lightbulb-filled.js +14 -0
- package/glyph/lightbulb.d.ts +9 -0
- package/glyph/lightbulb.js +14 -0
- package/glyph/like.d.ts +9 -0
- package/glyph/like.js +14 -0
- package/glyph/link-filled.d.ts +9 -0
- package/glyph/link-filled.js +14 -0
- package/glyph/link.d.ts +9 -0
- package/glyph/link.js +14 -0
- package/glyph/list.d.ts +9 -0
- package/glyph/list.js +14 -0
- package/glyph/location.d.ts +9 -0
- package/glyph/location.js +14 -0
- package/glyph/lock-circle.d.ts +9 -0
- package/glyph/lock-circle.js +14 -0
- package/glyph/lock-filled.d.ts +9 -0
- package/glyph/lock-filled.js +14 -0
- package/glyph/lock.d.ts +9 -0
- package/glyph/lock.js +14 -0
- package/glyph/marketplace.d.ts +9 -0
- package/glyph/marketplace.js +14 -0
- package/glyph/media-services/actual-size.d.ts +9 -0
- package/glyph/media-services/actual-size.js +14 -0
- package/glyph/media-services/add-comment.d.ts +9 -0
- package/glyph/media-services/add-comment.js +14 -0
- package/glyph/media-services/annotate.d.ts +9 -0
- package/glyph/media-services/annotate.js +14 -0
- package/glyph/media-services/arrow.d.ts +9 -0
- package/glyph/media-services/arrow.js +14 -0
- package/glyph/media-services/audio.d.ts +9 -0
- package/glyph/media-services/audio.js +14 -0
- package/glyph/media-services/blur.d.ts +9 -0
- package/glyph/media-services/blur.js +14 -0
- package/glyph/media-services/brush.d.ts +9 -0
- package/glyph/media-services/brush.js +14 -0
- package/glyph/media-services/button-option.d.ts +9 -0
- package/glyph/media-services/button-option.js +14 -0
- package/glyph/media-services/code.d.ts +9 -0
- package/glyph/media-services/code.js +14 -0
- package/glyph/media-services/document.d.ts +9 -0
- package/glyph/media-services/document.js +14 -0
- package/glyph/media-services/filter.d.ts +9 -0
- package/glyph/media-services/filter.js +14 -0
- package/glyph/media-services/fit-to-page.d.ts +9 -0
- package/glyph/media-services/fit-to-page.js +14 -0
- package/glyph/media-services/full-screen.d.ts +9 -0
- package/glyph/media-services/full-screen.js +14 -0
- package/glyph/media-services/grid.d.ts +9 -0
- package/glyph/media-services/grid.js +14 -0
- package/glyph/media-services/image.d.ts +9 -0
- package/glyph/media-services/image.js +14 -0
- package/glyph/media-services/line-thickness.d.ts +9 -0
- package/glyph/media-services/line-thickness.js +14 -0
- package/glyph/media-services/line.d.ts +9 -0
- package/glyph/media-services/line.js +14 -0
- package/glyph/media-services/no-image.d.ts +9 -0
- package/glyph/media-services/no-image.js +14 -0
- package/glyph/media-services/open-mediaviewer.d.ts +9 -0
- package/glyph/media-services/open-mediaviewer.js +14 -0
- package/glyph/media-services/oval.d.ts +9 -0
- package/glyph/media-services/oval.js +14 -0
- package/glyph/media-services/pdf.d.ts +9 -0
- package/glyph/media-services/pdf.js +14 -0
- package/glyph/media-services/preselected.d.ts +9 -0
- package/glyph/media-services/preselected.js +14 -0
- package/glyph/media-services/presentation.d.ts +9 -0
- package/glyph/media-services/presentation.js +14 -0
- package/glyph/media-services/rectangle.d.ts +9 -0
- package/glyph/media-services/rectangle.js +14 -0
- package/glyph/media-services/scale-large.d.ts +9 -0
- package/glyph/media-services/scale-large.js +14 -0
- package/glyph/media-services/scale-small.d.ts +9 -0
- package/glyph/media-services/scale-small.js +14 -0
- package/glyph/media-services/spreadsheet.d.ts +9 -0
- package/glyph/media-services/spreadsheet.js +14 -0
- package/glyph/media-services/text.d.ts +9 -0
- package/glyph/media-services/text.js +14 -0
- package/glyph/media-services/unknown.d.ts +9 -0
- package/glyph/media-services/unknown.js +14 -0
- package/glyph/media-services/video.d.ts +9 -0
- package/glyph/media-services/video.js +14 -0
- package/glyph/media-services/zip.d.ts +9 -0
- package/glyph/media-services/zip.js +14 -0
- package/glyph/media-services/zoom-in.d.ts +9 -0
- package/glyph/media-services/zoom-in.js +14 -0
- package/glyph/media-services/zoom-out.d.ts +9 -0
- package/glyph/media-services/zoom-out.js +14 -0
- package/glyph/mention.d.ts +9 -0
- package/glyph/mention.js +14 -0
- package/glyph/menu-expand.d.ts +9 -0
- package/glyph/menu-expand.js +14 -0
- package/glyph/menu.d.ts +9 -0
- package/glyph/menu.js +14 -0
- package/glyph/mobile.d.ts +9 -0
- package/glyph/mobile.js +14 -0
- package/glyph/more-vertical.d.ts +9 -0
- package/glyph/more-vertical.js +14 -0
- package/glyph/more.d.ts +9 -0
- package/glyph/more.js +14 -0
- package/glyph/notification-all.d.ts +9 -0
- package/glyph/notification-all.js +14 -0
- package/glyph/notification-direct.d.ts +9 -0
- package/glyph/notification-direct.js +14 -0
- package/glyph/notification.d.ts +9 -0
- package/glyph/notification.js +14 -0
- package/glyph/office-building-filled.d.ts +9 -0
- package/glyph/office-building-filled.js +14 -0
- package/glyph/office-building.d.ts +9 -0
- package/glyph/office-building.js +14 -0
- package/glyph/open.d.ts +9 -0
- package/glyph/open.js +14 -0
- package/glyph/overview.d.ts +9 -0
- package/glyph/overview.js +14 -0
- package/glyph/page-filled.d.ts +9 -0
- package/glyph/page-filled.js +14 -0
- package/glyph/page.d.ts +9 -0
- package/glyph/page.js +14 -0
- package/glyph/pdf.d.ts +9 -0
- package/glyph/pdf.js +14 -0
- package/glyph/people-group.d.ts +9 -0
- package/glyph/people-group.js +14 -0
- package/glyph/people.d.ts +9 -0
- package/glyph/people.js +14 -0
- package/glyph/person-circle.d.ts +9 -0
- package/glyph/person-circle.js +14 -0
- package/glyph/person-with-circle.d.ts +9 -0
- package/glyph/person-with-circle.js +14 -0
- package/glyph/person-with-cross.d.ts +9 -0
- package/glyph/person-with-cross.js +14 -0
- package/glyph/person-with-tick.d.ts +9 -0
- package/glyph/person-with-tick.js +14 -0
- package/glyph/person.d.ts +9 -0
- package/glyph/person.js +14 -0
- package/glyph/portfolio.d.ts +9 -0
- package/glyph/portfolio.js +14 -0
- package/glyph/preferences.d.ts +9 -0
- package/glyph/preferences.js +14 -0
- package/glyph/premium.d.ts +9 -0
- package/glyph/premium.js +14 -0
- package/glyph/presence-active.d.ts +9 -0
- package/glyph/presence-active.js +14 -0
- package/glyph/presence-busy.d.ts +9 -0
- package/glyph/presence-busy.js +14 -0
- package/glyph/presence-unavailable.d.ts +9 -0
- package/glyph/presence-unavailable.js +14 -0
- package/glyph/question-circle.d.ts +9 -0
- package/glyph/question-circle.js +14 -0
- package/glyph/question.d.ts +9 -0
- package/glyph/question.js +14 -0
- package/glyph/questions.d.ts +9 -0
- package/glyph/questions.js +14 -0
- package/glyph/queues.d.ts +9 -0
- package/glyph/queues.js +14 -0
- package/glyph/quote.d.ts +9 -0
- package/glyph/quote.js +14 -0
- package/glyph/radio.d.ts +9 -0
- package/glyph/radio.js +14 -0
- package/glyph/recent.d.ts +9 -0
- package/glyph/recent.js +14 -0
- package/glyph/redo.d.ts +9 -0
- package/glyph/redo.js +14 -0
- package/glyph/refresh.d.ts +9 -0
- package/glyph/refresh.js +14 -0
- package/glyph/retry.d.ts +9 -0
- package/glyph/retry.js +14 -0
- package/glyph/roadmap.d.ts +9 -0
- package/glyph/roadmap.js +14 -0
- package/glyph/room-menu.d.ts +9 -0
- package/glyph/room-menu.js +14 -0
- package/glyph/schedule-filled.d.ts +9 -0
- package/glyph/schedule-filled.js +14 -0
- package/glyph/schedule.d.ts +9 -0
- package/glyph/schedule.js +14 -0
- package/glyph/screen.d.ts +9 -0
- package/glyph/screen.js +14 -0
- package/glyph/search.d.ts +9 -0
- package/glyph/search.js +14 -0
- package/glyph/select-clear.d.ts +9 -0
- package/glyph/select-clear.js +14 -0
- package/glyph/send.d.ts +9 -0
- package/glyph/send.js +14 -0
- package/glyph/settings.d.ts +9 -0
- package/glyph/settings.js +14 -0
- package/glyph/share.d.ts +9 -0
- package/glyph/share.js +14 -0
- package/glyph/ship.d.ts +9 -0
- package/glyph/ship.js +14 -0
- package/glyph/shortcut.d.ts +9 -0
- package/glyph/shortcut.js +14 -0
- package/glyph/sign-in.d.ts +9 -0
- package/glyph/sign-in.js +14 -0
- package/glyph/sign-out.d.ts +9 -0
- package/glyph/sign-out.js +14 -0
- package/glyph/sprint.d.ts +9 -0
- package/glyph/sprint.js +14 -0
- package/glyph/star-filled.d.ts +9 -0
- package/glyph/star-filled.js +14 -0
- package/glyph/star-large.d.ts +9 -0
- package/glyph/star-large.js +14 -0
- package/glyph/star.d.ts +9 -0
- package/glyph/star.js +14 -0
- package/glyph/status.d.ts +9 -0
- package/glyph/status.js +14 -0
- package/glyph/stopwatch.d.ts +9 -0
- package/glyph/stopwatch.js +14 -0
- package/glyph/subtask.d.ts +9 -0
- package/glyph/subtask.js +14 -0
- package/glyph/suitcase.d.ts +9 -0
- package/glyph/suitcase.js +14 -0
- package/glyph/switcher.d.ts +9 -0
- package/glyph/switcher.js +14 -0
- package/glyph/table.d.ts +9 -0
- package/glyph/table.js +14 -0
- package/glyph/task.d.ts +9 -0
- package/glyph/task.js +14 -0
- package/glyph/teams.d.ts +9 -0
- package/glyph/teams.js +14 -0
- package/glyph/trash.d.ts +9 -0
- package/glyph/trash.js +14 -0
- package/glyph/tray.d.ts +9 -0
- package/glyph/tray.js +14 -0
- package/glyph/undo.d.ts +9 -0
- package/glyph/undo.js +14 -0
- package/glyph/unlink.d.ts +9 -0
- package/glyph/unlink.js +14 -0
- package/glyph/unlock-circle.d.ts +9 -0
- package/glyph/unlock-circle.js +14 -0
- package/glyph/unlock-filled.d.ts +9 -0
- package/glyph/unlock-filled.js +14 -0
- package/glyph/unlock.d.ts +9 -0
- package/glyph/unlock.js +14 -0
- package/glyph/upload.d.ts +9 -0
- package/glyph/upload.js +14 -0
- package/glyph/user-avatar-circle.d.ts +9 -0
- package/glyph/user-avatar-circle.js +14 -0
- package/glyph/vid-audio-muted.d.ts +9 -0
- package/glyph/vid-audio-muted.js +14 -0
- package/glyph/vid-audio-on.d.ts +9 -0
- package/glyph/vid-audio-on.js +14 -0
- package/glyph/vid-backward.d.ts +9 -0
- package/glyph/vid-backward.js +14 -0
- package/glyph/vid-camera-off.d.ts +9 -0
- package/glyph/vid-camera-off.js +14 -0
- package/glyph/vid-camera-on.d.ts +9 -0
- package/glyph/vid-camera-on.js +14 -0
- package/glyph/vid-connection-circle.d.ts +9 -0
- package/glyph/vid-connection-circle.js +14 -0
- package/glyph/vid-forward.d.ts +9 -0
- package/glyph/vid-forward.js +14 -0
- package/glyph/vid-full-screen-off.d.ts +9 -0
- package/glyph/vid-full-screen-off.js +14 -0
- package/glyph/vid-full-screen-on.d.ts +9 -0
- package/glyph/vid-full-screen-on.js +14 -0
- package/glyph/vid-hang-up.d.ts +9 -0
- package/glyph/vid-hang-up.js +14 -0
- package/glyph/vid-hd-circle.d.ts +9 -0
- package/glyph/vid-hd-circle.js +14 -0
- package/glyph/vid-pause.d.ts +9 -0
- package/glyph/vid-pause.js +14 -0
- package/glyph/vid-play.d.ts +9 -0
- package/glyph/vid-play.js +14 -0
- package/glyph/vid-raised-hand.d.ts +9 -0
- package/glyph/vid-raised-hand.js +14 -0
- package/glyph/vid-share-screen.d.ts +9 -0
- package/glyph/vid-share-screen.js +14 -0
- package/glyph/vid-speaking-circle.d.ts +9 -0
- package/glyph/vid-speaking-circle.js +14 -0
- package/glyph/vid-volume-full.d.ts +9 -0
- package/glyph/vid-volume-full.js +14 -0
- package/glyph/vid-volume-half.d.ts +9 -0
- package/glyph/vid-volume-half.js +14 -0
- package/glyph/vid-volume-muted.d.ts +9 -0
- package/glyph/vid-volume-muted.js +14 -0
- package/glyph/video-circle.d.ts +9 -0
- package/glyph/video-circle.js +14 -0
- package/glyph/video-filled.d.ts +9 -0
- package/glyph/video-filled.js +14 -0
- package/glyph/warning.d.ts +9 -0
- package/glyph/warning.js +14 -0
- package/glyph/watch-filled.d.ts +9 -0
- package/glyph/watch-filled.js +14 -0
- package/glyph/watch.d.ts +9 -0
- package/glyph/watch.js +14 -0
- package/glyph/world-small.d.ts +9 -0
- package/glyph/world-small.js +14 -0
- package/glyph/world.d.ts +9 -0
- package/glyph/world.js +14 -0
- package/package.json +7 -7
- package/svgs_raw/activity.svg +13 -0
- package/svgs_raw/add-circle.svg +13 -0
- package/svgs_raw/add-item.svg +13 -0
- package/svgs_raw/add.svg +12 -0
- package/svgs_raw/addon.svg +13 -0
- package/svgs_raw/app-access.svg +15 -0
- package/svgs_raw/app-switcher.svg +3 -0
- package/svgs_raw/archive.svg +3 -0
- package/svgs_raw/arrow-down-circle.svg +13 -0
- package/svgs_raw/arrow-down.svg +12 -0
- package/svgs_raw/arrow-left-circle.svg +13 -0
- package/svgs_raw/arrow-left.svg +3 -0
- package/svgs_raw/arrow-right-circle.svg +13 -0
- package/svgs_raw/arrow-right.svg +12 -0
- package/svgs_raw/arrow-up-circle.svg +13 -0
- package/svgs_raw/arrow-up.svg +12 -0
- package/svgs_raw/attachment.svg +12 -0
- package/svgs_raw/audio-circle.svg +13 -0
- package/svgs_raw/audio.svg +12 -0
- package/svgs_raw/backlog.svg +15 -0
- package/svgs_raw/billing-filled.svg +19 -0
- package/svgs_raw/billing.svg +19 -0
- package/svgs_raw/bitbucket/branches.svg +12 -0
- package/svgs_raw/bitbucket/builds.svg +16 -0
- package/svgs_raw/bitbucket/clone.svg +16 -0
- package/svgs_raw/bitbucket/commits.svg +12 -0
- package/svgs_raw/bitbucket/compare.svg +15 -0
- package/svgs_raw/bitbucket/forks.svg +16 -0
- package/svgs_raw/bitbucket/output.svg +15 -0
- package/svgs_raw/bitbucket/pipelines.svg +13 -0
- package/svgs_raw/bitbucket/pullrequests.svg +13 -0
- package/svgs_raw/bitbucket/repos.svg +14 -0
- package/svgs_raw/bitbucket/snippets.svg +13 -0
- package/svgs_raw/bitbucket/source.svg +13 -0
- package/svgs_raw/board.svg +14 -0
- package/svgs_raw/book.svg +16 -0
- package/svgs_raw/bullet-list.svg +17 -0
- package/svgs_raw/calendar-filled.svg +20 -0
- package/svgs_raw/calendar.svg +12 -0
- package/svgs_raw/camera-filled.svg +14 -0
- package/svgs_raw/camera-rotate.svg +16 -0
- package/svgs_raw/camera-take-picture.svg +13 -0
- package/svgs_raw/camera.svg +15 -0
- package/svgs_raw/canvas.svg +17 -0
- package/svgs_raw/check-circle-outline.svg +11 -0
- package/svgs_raw/check-circle.svg +13 -0
- package/svgs_raw/check.svg +12 -0
- package/svgs_raw/checkbox-indeterminate.svg +13 -0
- package/svgs_raw/checkbox.svg +13 -0
- package/svgs_raw/chevron-down-circle.svg +13 -0
- package/svgs_raw/chevron-down.svg +12 -0
- package/svgs_raw/chevron-left-circle.svg +13 -0
- package/svgs_raw/chevron-left-large.svg +3 -0
- package/svgs_raw/chevron-left.svg +12 -0
- package/svgs_raw/chevron-right-circle.svg +13 -0
- package/svgs_raw/chevron-right-large.svg +3 -0
- package/svgs_raw/chevron-right.svg +12 -0
- package/svgs_raw/chevron-up-circle.svg +13 -0
- package/svgs_raw/chevron-up.svg +12 -0
- package/svgs_raw/child-issues.svg +16 -0
- package/svgs_raw/code.svg +14 -0
- package/svgs_raw/comment.svg +14 -0
- package/svgs_raw/component.svg +14 -0
- package/svgs_raw/copy.svg +13 -0
- package/svgs_raw/creditcard-filled.svg +13 -0
- package/svgs_raw/creditcard.svg +13 -0
- package/svgs_raw/cross-circle.svg +14 -0
- package/svgs_raw/cross.svg +12 -0
- package/svgs_raw/dashboard.svg +14 -0
- package/svgs_raw/decision.svg +14 -0
- package/svgs_raw/department.svg +3 -0
- package/svgs_raw/detail-view.svg +16 -0
- package/svgs_raw/discover-filled.svg +12 -0
- package/svgs_raw/discover.svg +13 -0
- package/svgs_raw/document-filled.svg +12 -0
- package/svgs_raw/document.svg +12 -0
- package/svgs_raw/documents.svg +13 -0
- package/svgs_raw/download.svg +14 -0
- package/svgs_raw/drag-handler.svg +14 -0
- package/svgs_raw/dropbox.svg +3 -0
- package/svgs_raw/edit-filled.svg +13 -0
- package/svgs_raw/edit.svg +13 -0
- package/svgs_raw/editor/add.svg +12 -0
- package/svgs_raw/editor/addon.svg +12 -0
- package/svgs_raw/editor/advanced.svg +12 -0
- package/svgs_raw/editor/align-center.svg +12 -0
- package/svgs_raw/editor/align-image-center.svg +1 -0
- package/svgs_raw/editor/align-image-left.svg +1 -0
- package/svgs_raw/editor/align-image-right.svg +1 -0
- package/svgs_raw/editor/align-left.svg +12 -0
- package/svgs_raw/editor/align-right.svg +12 -0
- package/svgs_raw/editor/attachment.svg +12 -0
- package/svgs_raw/editor/background-color.svg +10 -0
- package/svgs_raw/editor/bold.svg +12 -0
- package/svgs_raw/editor/bullet-list.svg +12 -0
- package/svgs_raw/editor/close.svg +12 -0
- package/svgs_raw/editor/code.svg +12 -0
- package/svgs_raw/editor/collapse.svg +9 -0
- package/svgs_raw/editor/date.svg +12 -0
- package/svgs_raw/editor/decision.svg +12 -0
- package/svgs_raw/editor/divider.svg +12 -0
- package/svgs_raw/editor/done.svg +12 -0
- package/svgs_raw/editor/edit.svg +12 -0
- package/svgs_raw/editor/emoji.svg +12 -0
- package/svgs_raw/editor/error.svg +12 -0
- package/svgs_raw/editor/expand.svg +9 -0
- package/svgs_raw/editor/feedback.svg +12 -0
- package/svgs_raw/editor/file-preview.svg +4 -0
- package/svgs_raw/editor/file.svg +12 -0
- package/svgs_raw/editor/help.svg +12 -0
- package/svgs_raw/editor/hint.svg +12 -0
- package/svgs_raw/editor/horizontal-rule.svg +10 -0
- package/svgs_raw/editor/image-border.svg +12 -0
- package/svgs_raw/editor/image-resize.svg +12 -0
- package/svgs_raw/editor/image.svg +12 -0
- package/svgs_raw/editor/indent.svg +12 -0
- package/svgs_raw/editor/info.svg +12 -0
- package/svgs_raw/editor/italic.svg +12 -0
- package/svgs_raw/editor/layout-single.svg +3 -0
- package/svgs_raw/editor/layout-three-equal.svg +10 -0
- package/svgs_raw/editor/layout-three-with-sidebars.svg +10 -0
- package/svgs_raw/editor/layout-two-equal.svg +10 -0
- package/svgs_raw/editor/layout-two-left-sidebar.svg +10 -0
- package/svgs_raw/editor/layout-two-right-sidebar.svg +10 -0
- package/svgs_raw/editor/link.svg +12 -0
- package/svgs_raw/editor/media-center.svg +12 -0
- package/svgs_raw/editor/media-full-width.svg +12 -0
- package/svgs_raw/editor/media-wide.svg +12 -0
- package/svgs_raw/editor/media-wrap-left.svg +12 -0
- package/svgs_raw/editor/media-wrap-right.svg +12 -0
- package/svgs_raw/editor/mention.svg +12 -0
- package/svgs_raw/editor/more.svg +12 -0
- package/svgs_raw/editor/note.svg +12 -0
- package/svgs_raw/editor/number-list.svg +12 -0
- package/svgs_raw/editor/open.svg +12 -0
- package/svgs_raw/editor/outdent.svg +12 -0
- package/svgs_raw/editor/panel.svg +12 -0
- package/svgs_raw/editor/photo.svg +12 -0
- package/svgs_raw/editor/quote.svg +12 -0
- package/svgs_raw/editor/recent.svg +12 -0
- package/svgs_raw/editor/redo.svg +12 -0
- package/svgs_raw/editor/remove-emoji.svg +4 -0
- package/svgs_raw/editor/remove.svg +12 -0
- package/svgs_raw/editor/search.svg +12 -0
- package/svgs_raw/editor/settings.svg +9 -0
- package/svgs_raw/editor/strikethrough.svg +12 -0
- package/svgs_raw/editor/success.svg +12 -0
- package/svgs_raw/editor/table-display-options.svg +10 -0
- package/svgs_raw/editor/table.svg +12 -0
- package/svgs_raw/editor/task.svg +12 -0
- package/svgs_raw/editor/text-color.svg +12 -0
- package/svgs_raw/editor/text-style.svg +12 -0
- package/svgs_raw/editor/underline.svg +12 -0
- package/svgs_raw/editor/undo.svg +12 -0
- package/svgs_raw/editor/unlink.svg +12 -0
- package/svgs_raw/editor/warning.svg +12 -0
- package/svgs_raw/email.svg +13 -0
- package/svgs_raw/emoji/activity.svg +12 -0
- package/svgs_raw/emoji/atlassian.svg +15 -0
- package/svgs_raw/emoji/custom.svg +12 -0
- package/svgs_raw/emoji/emoji.svg +12 -0
- package/svgs_raw/emoji/flags.svg +12 -0
- package/svgs_raw/emoji/food.svg +12 -0
- package/svgs_raw/emoji/frequent.svg +12 -0
- package/svgs_raw/emoji/keyboard.svg +13 -0
- package/svgs_raw/emoji/nature.svg +12 -0
- package/svgs_raw/emoji/objects.svg +12 -0
- package/svgs_raw/emoji/people.svg +12 -0
- package/svgs_raw/emoji/productivity.svg +1 -0
- package/svgs_raw/emoji/symbols.svg +12 -0
- package/svgs_raw/emoji/travel.svg +12 -0
- package/svgs_raw/emoji-add.svg +12 -0
- package/svgs_raw/emoji.svg +12 -0
- package/svgs_raw/error.svg +14 -0
- package/svgs_raw/export.svg +12 -0
- package/svgs_raw/feedback.svg +15 -0
- package/svgs_raw/file.svg +14 -0
- package/svgs_raw/filter.svg +14 -0
- package/svgs_raw/flag-filled.svg +12 -0
- package/svgs_raw/folder-filled.svg +12 -0
- package/svgs_raw/folder.svg +12 -0
- package/svgs_raw/followers.svg +14 -0
- package/svgs_raw/following.svg +14 -0
- package/svgs_raw/googledrive.svg +12 -0
- package/svgs_raw/graph-bar.svg +15 -0
- package/svgs_raw/graph-line.svg +14 -0
- package/svgs_raw/gsuite.svg +12 -0
- package/svgs_raw/highlights.svg +13 -0
- package/svgs_raw/hipchat/audio-only.svg +13 -0
- package/svgs_raw/hipchat/chevron-double-down.svg +13 -0
- package/svgs_raw/hipchat/chevron-double-up.svg +13 -0
- package/svgs_raw/hipchat/chevron-down.svg +12 -0
- package/svgs_raw/hipchat/chevron-up.svg +12 -0
- package/svgs_raw/hipchat/dial-out.svg +12 -0
- package/svgs_raw/hipchat/lobby.svg +15 -0
- package/svgs_raw/hipchat/media-attachment-count.svg +12 -0
- package/svgs_raw/hipchat/outgoing-sound.svg +15 -0
- package/svgs_raw/hipchat/sd-video.svg +12 -0
- package/svgs_raw/home-circle.svg +9 -0
- package/svgs_raw/home.svg +9 -0
- package/svgs_raw/image-border.svg +16 -0
- package/svgs_raw/image-resize.svg +15 -0
- package/svgs_raw/image.svg +12 -0
- package/svgs_raw/info.svg +14 -0
- package/svgs_raw/invite-team.svg +15 -0
- package/svgs_raw/issue-raise.svg +14 -0
- package/svgs_raw/issue.svg +13 -0
- package/svgs_raw/issues.svg +15 -0
- package/svgs_raw/jira/capture.svg +12 -0
- package/svgs_raw/jira/failed-build-status.svg +14 -0
- package/svgs_raw/jira/labs.svg +14 -0
- package/svgs_raw/jira/test-session.svg +21 -0
- package/svgs_raw/label.svg +10 -0
- package/svgs_raw/lightbulb-filled.svg +12 -0
- package/svgs_raw/lightbulb.svg +12 -0
- package/svgs_raw/like.svg +10 -0
- package/svgs_raw/link-filled.svg +14 -0
- package/svgs_raw/link.svg +13 -0
- package/svgs_raw/list.svg +15 -0
- package/svgs_raw/location.svg +12 -0
- package/svgs_raw/lock-circle.svg +16 -0
- package/svgs_raw/lock-filled.svg +3 -0
- package/svgs_raw/lock.svg +13 -0
- package/svgs_raw/marketplace.svg +19 -0
- package/svgs_raw/media-services/actual-size.svg +10 -0
- package/svgs_raw/media-services/add-comment.svg +14 -0
- package/svgs_raw/media-services/annotate.svg +12 -0
- package/svgs_raw/media-services/arrow.svg +12 -0
- package/svgs_raw/media-services/audio.svg +13 -0
- package/svgs_raw/media-services/blur.svg +15 -0
- package/svgs_raw/media-services/brush.svg +12 -0
- package/svgs_raw/media-services/button-option.svg +12 -0
- package/svgs_raw/media-services/code.svg +13 -0
- package/svgs_raw/media-services/document.svg +15 -0
- package/svgs_raw/media-services/filter.svg +14 -0
- package/svgs_raw/media-services/fit-to-page.svg +10 -0
- package/svgs_raw/media-services/full-screen.svg +10 -0
- package/svgs_raw/media-services/grid.svg +15 -0
- package/svgs_raw/media-services/image.svg +15 -0
- package/svgs_raw/media-services/line-thickness.svg +12 -0
- package/svgs_raw/media-services/line.svg +12 -0
- package/svgs_raw/media-services/no-image.svg +12 -0
- package/svgs_raw/media-services/open-mediaviewer.svg +13 -0
- package/svgs_raw/media-services/oval.svg +12 -0
- package/svgs_raw/media-services/pdf.svg +16 -0
- package/svgs_raw/media-services/preselected.svg +12 -0
- package/svgs_raw/media-services/presentation.svg +15 -0
- package/svgs_raw/media-services/rectangle.svg +12 -0
- package/svgs_raw/media-services/scale-large.svg +14 -0
- package/svgs_raw/media-services/scale-small.svg +14 -0
- package/svgs_raw/media-services/spreadsheet.svg +18 -0
- package/svgs_raw/media-services/text.svg +16 -0
- package/svgs_raw/media-services/unknown.svg +13 -0
- package/svgs_raw/media-services/video.svg +14 -0
- package/svgs_raw/media-services/zip.svg +16 -0
- package/svgs_raw/media-services/zoom-in.svg +10 -0
- package/svgs_raw/media-services/zoom-out.svg +10 -0
- package/svgs_raw/mention.svg +14 -0
- package/svgs_raw/menu-expand.svg +9 -0
- package/svgs_raw/menu.svg +14 -0
- package/svgs_raw/mobile.svg +3 -0
- package/svgs_raw/more-vertical.svg +14 -0
- package/svgs_raw/more.svg +14 -0
- package/svgs_raw/notification-all.svg +17 -0
- package/svgs_raw/notification-direct.svg +13 -0
- package/svgs_raw/notification.svg +13 -0
- package/svgs_raw/office-building-filled.svg +22 -0
- package/svgs_raw/office-building.svg +22 -0
- package/svgs_raw/open.svg +13 -0
- package/svgs_raw/overview.svg +12 -0
- package/svgs_raw/page-filled.svg +15 -0
- package/svgs_raw/page.svg +15 -0
- package/svgs_raw/pdf.svg +16 -0
- package/svgs_raw/people-group.svg +17 -0
- package/svgs_raw/people.svg +15 -0
- package/svgs_raw/person-circle.svg +14 -0
- package/svgs_raw/person-with-circle.svg +9 -0
- package/svgs_raw/person-with-cross.svg +9 -0
- package/svgs_raw/person-with-tick.svg +9 -0
- package/svgs_raw/person.svg +13 -0
- package/svgs_raw/portfolio.svg +12 -0
- package/svgs_raw/preferences.svg +17 -0
- package/svgs_raw/premium.svg +3 -0
- package/svgs_raw/presence-active.svg +12 -0
- package/svgs_raw/presence-busy.svg +13 -0
- package/svgs_raw/presence-unavailable.svg +13 -0
- package/svgs_raw/question-circle.svg +14 -0
- package/svgs_raw/question.svg +14 -0
- package/svgs_raw/questions.svg +12 -0
- package/svgs_raw/queues.svg +12 -0
- package/svgs_raw/quote.svg +12 -0
- package/svgs_raw/radio.svg +13 -0
- package/svgs_raw/recent.svg +12 -0
- package/svgs_raw/redo.svg +13 -0
- package/svgs_raw/refresh.svg +15 -0
- package/svgs_raw/retry.svg +11 -0
- package/svgs_raw/roadmap.svg +10 -0
- package/svgs_raw/room-menu.svg +16 -0
- package/svgs_raw/schedule-filled.svg +15 -0
- package/svgs_raw/schedule.svg +16 -0
- package/svgs_raw/screen.svg +14 -0
- package/svgs_raw/search.svg +12 -0
- package/svgs_raw/select-clear.svg +12 -0
- package/svgs_raw/send.svg +13 -0
- package/svgs_raw/settings.svg +12 -0
- package/svgs_raw/share.svg +16 -0
- package/svgs_raw/ship.svg +14 -0
- package/svgs_raw/shortcut.svg +14 -0
- package/svgs_raw/sign-in.svg +14 -0
- package/svgs_raw/sign-out.svg +14 -0
- package/svgs_raw/sprint.svg +9 -0
- package/svgs_raw/star-filled.svg +10 -0
- package/svgs_raw/star-large.svg +10 -0
- package/svgs_raw/star.svg +12 -0
- package/svgs_raw/status.svg +9 -0
- package/svgs_raw/stopwatch.svg +9 -0
- package/svgs_raw/subtask.svg +13 -0
- package/svgs_raw/suitcase.svg +3 -0
- package/svgs_raw/switcher.svg +13 -0
- package/svgs_raw/table.svg +15 -0
- package/svgs_raw/task.svg +13 -0
- package/svgs_raw/teams.svg +3 -0
- package/svgs_raw/trash.svg +14 -0
- package/svgs_raw/tray.svg +15 -0
- package/svgs_raw/undo.svg +13 -0
- package/svgs_raw/unlink.svg +17 -0
- package/svgs_raw/unlock-circle.svg +16 -0
- package/svgs_raw/unlock-filled.svg +13 -0
- package/svgs_raw/unlock.svg +14 -0
- package/svgs_raw/upload.svg +14 -0
- package/svgs_raw/user-avatar-circle.svg +14 -0
- package/svgs_raw/vid-audio-muted.svg +10 -0
- package/svgs_raw/vid-audio-on.svg +13 -0
- package/svgs_raw/vid-backward.svg +3 -0
- package/svgs_raw/vid-camera-off.svg +10 -0
- package/svgs_raw/vid-camera-on.svg +10 -0
- package/svgs_raw/vid-connection-circle.svg +15 -0
- package/svgs_raw/vid-forward.svg +10 -0
- package/svgs_raw/vid-full-screen-off.svg +15 -0
- package/svgs_raw/vid-full-screen-on.svg +10 -0
- package/svgs_raw/vid-hang-up.svg +12 -0
- package/svgs_raw/vid-hd-circle.svg +13 -0
- package/svgs_raw/vid-pause.svg +10 -0
- package/svgs_raw/vid-play.svg +10 -0
- package/svgs_raw/vid-raised-hand.svg +14 -0
- package/svgs_raw/vid-share-screen.svg +16 -0
- package/svgs_raw/vid-speaking-circle.svg +14 -0
- package/svgs_raw/vid-volume-full.svg +10 -0
- package/svgs_raw/vid-volume-half.svg +10 -0
- package/svgs_raw/vid-volume-muted.svg +10 -0
- package/svgs_raw/video-circle.svg +14 -0
- package/svgs_raw/video-filled.svg +13 -0
- package/svgs_raw/warning.svg +14 -0
- package/svgs_raw/watch-filled.svg +13 -0
- package/svgs_raw/watch.svg +13 -0
- package/svgs_raw/world-small.svg +12 -0
- package/svgs_raw/world.svg +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 32.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5e06fddfce409`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e06fddfce409) -
|
|
8
|
+
Rename codemod to `next-icon-spacing-to-flex-primitive` (now discoverable via
|
|
9
|
+
`npx @atlaskit/codemod-cli`) and update `no-icon-spacing-prop` ESLint rule to generate `Flex`
|
|
10
|
+
wrapper instead of `Box`.
|
|
11
|
+
|
|
12
|
+
## 32.0.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`a788a4cabea12`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a788a4cabea12) -
|
|
17
|
+
Add codemod to migrate icon spacing prop to Box primitive
|
|
18
|
+
|
|
3
19
|
## 32.0.0
|
|
4
20
|
|
|
5
21
|
### Major Changes
|
package/build/index.tsx
CHANGED
|
@@ -3,15 +3,18 @@ import path from 'path';
|
|
|
3
3
|
import fs from 'fs-extra';
|
|
4
4
|
import pkgDir from 'pkg-dir';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import buildIcons, {
|
|
7
7
|
buildNew as buildIconsNew,
|
|
8
8
|
createDeprecatedIconDocs,
|
|
9
|
+
createIconDocs,
|
|
9
10
|
createIconDocsNew,
|
|
10
11
|
createVRTest,
|
|
12
|
+
type IconBuildConfig,
|
|
11
13
|
type NewIconBuildConfig,
|
|
12
14
|
} from '@af/icon-build-process';
|
|
13
15
|
|
|
14
16
|
import coreIconMetadata from '../icons_raw/metadata-core';
|
|
17
|
+
import legacyMetadata from '../src/metadata';
|
|
15
18
|
import migrationMap from '../src/migration-map';
|
|
16
19
|
import { recommendedSmallIcons } from '../src/recommended-small';
|
|
17
20
|
import synonyms from '../utils/synonyms';
|
|
@@ -23,6 +26,30 @@ async function main() {
|
|
|
23
26
|
throw new Error('Root directory was not found');
|
|
24
27
|
}
|
|
25
28
|
|
|
29
|
+
/**
|
|
30
|
+
* The legacy icon build process. A past SVGO update disabled this process and slightly changed the SVG output.
|
|
31
|
+
* Re-running this step re-generates all icons and triggers a large number of platform/app snapshot tests.
|
|
32
|
+
*
|
|
33
|
+
* To avoid unnecessary churn, this step is switched off, and any updates to the old icon set can be done piecemeal.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
const config: IconBuildConfig = {
|
|
37
|
+
srcDir: path.resolve(root, 'svgs_raw'),
|
|
38
|
+
processedDir: path.resolve(root, 'svgs'),
|
|
39
|
+
destDir: path.resolve(root, 'glyph'),
|
|
40
|
+
maxWidth: 24,
|
|
41
|
+
maxHeight: 24,
|
|
42
|
+
glob: '**/*.svg',
|
|
43
|
+
baseIconEntryPoint: '@atlaskit/icon/base',
|
|
44
|
+
newIconsDir: path.resolve(root, 'icons_raw'),
|
|
45
|
+
migrationMap,
|
|
46
|
+
isDeprecated: true,
|
|
47
|
+
};
|
|
48
|
+
await buildIcons(config).then((icons) => {
|
|
49
|
+
const iconDocs = createIconDocs(icons, '@atlaskit/icon', synonyms, ['icon', 'core']);
|
|
50
|
+
return fs.outputFile(path.resolve(root, 'src/metadata.tsx'), iconDocs);
|
|
51
|
+
});
|
|
52
|
+
|
|
26
53
|
/**
|
|
27
54
|
* The updated icon build process for the new icons under `@atlaskit/icon/core/*`
|
|
28
55
|
*/
|
|
@@ -36,6 +63,8 @@ async function main() {
|
|
|
36
63
|
packageName: '@atlaskit/icon',
|
|
37
64
|
baseIconEntryPoint: '@atlaskit/icon/base-new',
|
|
38
65
|
metadata: coreIconMetadata,
|
|
66
|
+
legacyMetadata: legacyMetadata,
|
|
67
|
+
migrationMap: migrationMap,
|
|
39
68
|
};
|
|
40
69
|
|
|
41
70
|
await buildIconsNew(configCore).then((icons) => {
|
|
@@ -45,6 +74,7 @@ async function main() {
|
|
|
45
74
|
synonyms,
|
|
46
75
|
['icon'],
|
|
47
76
|
coreIconMetadata,
|
|
77
|
+
migrationMap,
|
|
48
78
|
recommendedSmallIcons,
|
|
49
79
|
);
|
|
50
80
|
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
import type { API, ASTPath, Collection, FileInfo, JSXElement, default as core } from 'jscodeshift';
|
|
2
|
+
|
|
3
|
+
const ICON_PACKAGES = ['@atlaskit/icon/core', '@atlaskit/icon-lab/core'];
|
|
4
|
+
const FLEX_COMPILED_PACKAGE = '@atlaskit/primitives/compiled';
|
|
5
|
+
const FLEX_NON_COMPILED_PACKAGE = '@atlaskit/primitives';
|
|
6
|
+
const TOKEN_PACKAGE = '@atlaskit/tokens';
|
|
7
|
+
const CSS_PACKAGE = '@atlaskit/css';
|
|
8
|
+
const CSSMAP_VARIABLE_NAME = 'iconSpacingStyles';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Spacing → Flex padding token mapping.
|
|
12
|
+
*
|
|
13
|
+
* medium/unspecified:
|
|
14
|
+
* compact → space.050 (4px)
|
|
15
|
+
* spacious → space.050 (4px)
|
|
16
|
+
*
|
|
17
|
+
* small:
|
|
18
|
+
* compact → space.025 (2px) — NOTE: 2.66px doesn't map cleanly; confirm with designer
|
|
19
|
+
* spacious → space.075 (6px)
|
|
20
|
+
*/
|
|
21
|
+
const SPACING_TO_PADDING: Record<string, Record<string, string>> = {
|
|
22
|
+
medium: {
|
|
23
|
+
compact: 'space.050',
|
|
24
|
+
spacious: 'space.050',
|
|
25
|
+
},
|
|
26
|
+
small: {
|
|
27
|
+
compact: 'space.025',
|
|
28
|
+
spacious: 'space.075',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Maps a padding token to a cssMap key name.
|
|
34
|
+
* e.g. 'space.050' → 'space050'
|
|
35
|
+
*/
|
|
36
|
+
function getCssMapKey(paddingToken: string): string {
|
|
37
|
+
return paddingToken.replace('space.', 'space');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function getIconImportSpecifiers(j: core.JSCodeshift, source: Collection<any>): string[] {
|
|
41
|
+
const specifiers: string[] = [];
|
|
42
|
+
for (const pkg of ICON_PACKAGES) {
|
|
43
|
+
source
|
|
44
|
+
.find(j.ImportDeclaration)
|
|
45
|
+
.filter(
|
|
46
|
+
(path) =>
|
|
47
|
+
typeof path.node.source.value === 'string' && path.node.source.value.startsWith(pkg),
|
|
48
|
+
)
|
|
49
|
+
.forEach((importDecl) => {
|
|
50
|
+
for (const specifier of importDecl.value.specifiers || []) {
|
|
51
|
+
if (specifier.local?.name) {
|
|
52
|
+
specifiers.push(specifier.local.name);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return specifiers;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function ensureNamedImport(j: core.JSCodeshift, specifiers: any[], name: string): void {
|
|
61
|
+
const alreadyImported = specifiers.some(
|
|
62
|
+
(s) => s.type === 'ImportSpecifier' && s.imported?.name === name,
|
|
63
|
+
);
|
|
64
|
+
if (!alreadyImported) {
|
|
65
|
+
specifiers.push(j.importSpecifier(j.identifier(name)));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Ensures `Flex` is imported from `@atlaskit/primitives/compiled`.
|
|
71
|
+
* - If `/compiled` already exists → add `Flex` if missing
|
|
72
|
+
* - If `@atlaskit/primitives` (non-compiled) exists → migrate path to `/compiled`, add `Flex`
|
|
73
|
+
* - Otherwise → insert new import
|
|
74
|
+
*/
|
|
75
|
+
function insertFlexImport(j: core.JSCodeshift, source: Collection<any>): void {
|
|
76
|
+
const compiledImports = source
|
|
77
|
+
.find(j.ImportDeclaration)
|
|
78
|
+
.filter((path) => path.node.source.value === FLEX_COMPILED_PACKAGE);
|
|
79
|
+
|
|
80
|
+
if (compiledImports.length > 0) {
|
|
81
|
+
compiledImports.forEach((path) => {
|
|
82
|
+
ensureNamedImport(j, path.node.specifiers || [], 'Flex');
|
|
83
|
+
});
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const nonCompiledImports = source
|
|
88
|
+
.find(j.ImportDeclaration)
|
|
89
|
+
.filter((path) => path.node.source.value === FLEX_NON_COMPILED_PACKAGE);
|
|
90
|
+
|
|
91
|
+
if (nonCompiledImports.length > 0) {
|
|
92
|
+
nonCompiledImports.forEach((path) => {
|
|
93
|
+
path.node.source = j.stringLiteral(FLEX_COMPILED_PACKAGE);
|
|
94
|
+
ensureNamedImport(j, path.node.specifiers || [], 'Flex');
|
|
95
|
+
});
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const newImport = j.importDeclaration(
|
|
100
|
+
[j.importSpecifier(j.identifier('Flex'))],
|
|
101
|
+
j.stringLiteral(FLEX_COMPILED_PACKAGE),
|
|
102
|
+
);
|
|
103
|
+
source.get().node.program.body.unshift(newImport);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Ensures `cssMap` is imported from `@atlaskit/css`.
|
|
108
|
+
* Note: `jsx` import and JSX pragma are NOT needed for cssMap — only for cx().
|
|
109
|
+
* - If `@atlaskit/css` already exists → add `cssMap` if missing
|
|
110
|
+
* - Otherwise → insert new import
|
|
111
|
+
*/
|
|
112
|
+
function insertCssMapImport(j: core.JSCodeshift, source: Collection<any>): void {
|
|
113
|
+
const cssImports = source
|
|
114
|
+
.find(j.ImportDeclaration)
|
|
115
|
+
.filter((path) => path.node.source.value === CSS_PACKAGE);
|
|
116
|
+
|
|
117
|
+
if (cssImports.length > 0) {
|
|
118
|
+
cssImports.forEach((path) => {
|
|
119
|
+
ensureNamedImport(j, path.node.specifiers || [], 'cssMap');
|
|
120
|
+
});
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const newImport = j.importDeclaration(
|
|
125
|
+
[j.importSpecifier(j.identifier('cssMap'))],
|
|
126
|
+
j.stringLiteral(CSS_PACKAGE),
|
|
127
|
+
);
|
|
128
|
+
source.get().node.program.body.unshift(newImport);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Ensures `token` is imported from `@atlaskit/tokens`.
|
|
133
|
+
*/
|
|
134
|
+
function insertTokenImport(j: core.JSCodeshift, source: Collection<any>): void {
|
|
135
|
+
const tokenImports = source
|
|
136
|
+
.find(j.ImportDeclaration)
|
|
137
|
+
.filter((path) => path.node.source.value === TOKEN_PACKAGE);
|
|
138
|
+
|
|
139
|
+
if (tokenImports.length > 0) {
|
|
140
|
+
tokenImports.forEach((path) => {
|
|
141
|
+
ensureNamedImport(j, path.node.specifiers || [], 'token');
|
|
142
|
+
});
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const newImport = j.importDeclaration(
|
|
147
|
+
[j.importSpecifier(j.identifier('token'))],
|
|
148
|
+
j.stringLiteral(TOKEN_PACKAGE),
|
|
149
|
+
);
|
|
150
|
+
source.get().node.program.body.unshift(newImport);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Inserts or updates a single `const iconSpacingStyles = cssMap({...})` declaration
|
|
155
|
+
* at module level (after the last import), with one key per padding token used.
|
|
156
|
+
*
|
|
157
|
+
* If the variable already exists, adds missing keys to the existing cssMap object.
|
|
158
|
+
*/
|
|
159
|
+
function insertOrUpdateCssMapVariable(
|
|
160
|
+
j: core.JSCodeshift,
|
|
161
|
+
source: Collection<any>,
|
|
162
|
+
paddingTokens: Set<string>,
|
|
163
|
+
): void {
|
|
164
|
+
// Check if iconSpacingStyles already exists
|
|
165
|
+
const existing = source.find(j.VariableDeclaration).filter((path) => {
|
|
166
|
+
const decl = path.node.declarations[0];
|
|
167
|
+
return decl?.type === 'VariableDeclarator' && (decl.id as any)?.name === CSSMAP_VARIABLE_NAME;
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
if (existing.length > 0) {
|
|
171
|
+
// Add missing keys to the existing cssMap object
|
|
172
|
+
existing.forEach((path) => {
|
|
173
|
+
const decl = path.node.declarations[0] as any;
|
|
174
|
+
const cssMapCall = decl?.init;
|
|
175
|
+
if (cssMapCall?.type !== 'CallExpression') {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const objExpr = cssMapCall.arguments[0];
|
|
179
|
+
if (objExpr?.type !== 'ObjectExpression') {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const existingKeys = new Set(
|
|
184
|
+
objExpr.properties.filter((p: any) => p.key).map((p: any) => p.key.name || p.key.value),
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
for (const paddingToken of Array.from(paddingTokens).sort()) {
|
|
188
|
+
const key = getCssMapKey(paddingToken);
|
|
189
|
+
if (!existingKeys.has(key)) {
|
|
190
|
+
const tokenCall = () =>
|
|
191
|
+
j.callExpression(j.identifier('token'), [j.stringLiteral(paddingToken)]);
|
|
192
|
+
objExpr.properties.push(
|
|
193
|
+
j.objectProperty(
|
|
194
|
+
j.identifier(key),
|
|
195
|
+
j.objectExpression([
|
|
196
|
+
j.objectProperty(j.identifier('paddingBlock'), tokenCall()),
|
|
197
|
+
j.objectProperty(j.identifier('paddingInline'), tokenCall()),
|
|
198
|
+
]),
|
|
199
|
+
),
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// Build new cssMap variable declaration with all keys
|
|
208
|
+
const properties = Array.from(paddingTokens)
|
|
209
|
+
.sort()
|
|
210
|
+
.map((paddingToken) => {
|
|
211
|
+
const tokenCall = () =>
|
|
212
|
+
j.callExpression(j.identifier('token'), [j.stringLiteral(paddingToken)]);
|
|
213
|
+
return j.objectProperty(
|
|
214
|
+
j.identifier(getCssMapKey(paddingToken)),
|
|
215
|
+
j.objectExpression([
|
|
216
|
+
j.objectProperty(j.identifier('paddingBlock'), tokenCall()),
|
|
217
|
+
j.objectProperty(j.identifier('paddingInline'), tokenCall()),
|
|
218
|
+
]),
|
|
219
|
+
);
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
const cssMapCall = j.callExpression(j.identifier('cssMap'), [j.objectExpression(properties)]);
|
|
223
|
+
|
|
224
|
+
const variableDecl = j.variableDeclaration('const', [
|
|
225
|
+
j.variableDeclarator(j.identifier(CSSMAP_VARIABLE_NAME), cssMapCall),
|
|
226
|
+
]);
|
|
227
|
+
|
|
228
|
+
// Insert after the last import
|
|
229
|
+
const body = source.get().node.program.body;
|
|
230
|
+
let insertIndex = 0;
|
|
231
|
+
for (let i = body.length - 1; i >= 0; i--) {
|
|
232
|
+
if (body[i].type === 'ImportDeclaration') {
|
|
233
|
+
insertIndex = i + 1;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
body.splice(insertIndex, 0, variableDecl);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Wraps a JSXElement in <Flex xcss={iconSpacingStyles.spaceXXX}>...</Flex>.
|
|
242
|
+
*/
|
|
243
|
+
function wrapWithFlex(j: core.JSCodeshift, iconElement: JSXElement, paddingToken: string) {
|
|
244
|
+
const key = getCssMapKey(paddingToken);
|
|
245
|
+
return j.jsxElement(
|
|
246
|
+
j.jsxOpeningElement(j.jsxIdentifier('Flex'), [
|
|
247
|
+
j.jsxAttribute(
|
|
248
|
+
j.jsxIdentifier('xcss'),
|
|
249
|
+
j.jsxExpressionContainer(
|
|
250
|
+
j.memberExpression(j.identifier(CSSMAP_VARIABLE_NAME), j.identifier(key)),
|
|
251
|
+
),
|
|
252
|
+
),
|
|
253
|
+
]),
|
|
254
|
+
j.jsxClosingElement(j.jsxIdentifier('Flex')),
|
|
255
|
+
[iconElement],
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function addEslintDisableComment(
|
|
260
|
+
j: core.JSCodeshift,
|
|
261
|
+
path: ASTPath<JSXElement>,
|
|
262
|
+
reason: string,
|
|
263
|
+
): void {
|
|
264
|
+
const comment = j.line(
|
|
265
|
+
` eslint-disable-next-line @atlaskit/design-system/no-icon-spacing-prop -- TODO: ${reason}`,
|
|
266
|
+
);
|
|
267
|
+
const node = path.value as any;
|
|
268
|
+
node.comments = [comment, ...(node.comments || [])];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function getStaticPropValue(attributes: any[], propName: string): string | null {
|
|
272
|
+
const prop = attributes.find(
|
|
273
|
+
(attr: any) => attr.type === 'JSXAttribute' && attr.name?.name === propName,
|
|
274
|
+
);
|
|
275
|
+
if (!prop) {
|
|
276
|
+
return null;
|
|
277
|
+
}
|
|
278
|
+
if (prop.value?.type === 'StringLiteral' || prop.value?.type === 'Literal') {
|
|
279
|
+
return prop.value.value;
|
|
280
|
+
}
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function hasSpreadAttributes(attributes: any[]): boolean {
|
|
285
|
+
return attributes.some((attr: any) => attr.type === 'JSXSpreadAttribute');
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function isSpacingDynamic(attributes: any[]): boolean {
|
|
289
|
+
const prop = attributes.find(
|
|
290
|
+
(attr: any) => attr.type === 'JSXAttribute' && attr.name?.name === 'spacing',
|
|
291
|
+
);
|
|
292
|
+
if (!prop) {
|
|
293
|
+
return false;
|
|
294
|
+
}
|
|
295
|
+
return prop.value?.type !== 'StringLiteral' && prop.value?.type !== 'Literal';
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
function removeSpacingProp(attributes: any[]): any[] {
|
|
299
|
+
return attributes.filter(
|
|
300
|
+
(attr: any) => !(attr.type === 'JSXAttribute' && attr.name?.name === 'spacing'),
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function replaceWithWrapped(
|
|
305
|
+
j: core.JSCodeshift,
|
|
306
|
+
path: ASTPath<JSXElement>,
|
|
307
|
+
wrappedElement: JSXElement,
|
|
308
|
+
): void {
|
|
309
|
+
const node = path.value as any;
|
|
310
|
+
|
|
311
|
+
const leadingComments = node.comments?.filter((c: any) => c.leading) || [];
|
|
312
|
+
if (leadingComments.length) {
|
|
313
|
+
node.comments = node.comments?.filter((c: any) => !c.leading);
|
|
314
|
+
(wrappedElement as any).comments = [
|
|
315
|
+
...leadingComments,
|
|
316
|
+
...((wrappedElement as any).comments || []),
|
|
317
|
+
];
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const parentNode = path.parent?.node;
|
|
321
|
+
const isInsideJSX =
|
|
322
|
+
parentNode?.type === 'JSXElement' ||
|
|
323
|
+
parentNode?.type === 'JSXFragment' ||
|
|
324
|
+
parentNode?.type === 'JSXExpressionContainer';
|
|
325
|
+
|
|
326
|
+
const isParenthesized =
|
|
327
|
+
!isInsideJSX &&
|
|
328
|
+
parentNode &&
|
|
329
|
+
(parentNode.type === 'ParenthesizedExpression' || parentNode.extra?.parenthesized);
|
|
330
|
+
|
|
331
|
+
if (isParenthesized) {
|
|
332
|
+
j(path.parent).replaceWith(wrappedElement);
|
|
333
|
+
} else {
|
|
334
|
+
j(path).replaceWith(wrappedElement);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export default function transformer(file: FileInfo, api: API): string {
|
|
339
|
+
const j = api.jscodeshift;
|
|
340
|
+
const source = j(file.source);
|
|
341
|
+
|
|
342
|
+
const iconSpecifiers = getIconImportSpecifiers(j, source);
|
|
343
|
+
if (!iconSpecifiers.length) {
|
|
344
|
+
return file.source;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const iconJSXWithSpacing = source
|
|
348
|
+
.find(j.JSXElement)
|
|
349
|
+
.filter((path) => {
|
|
350
|
+
const name = path.value.openingElement.name;
|
|
351
|
+
return name.type === 'JSXIdentifier' && iconSpecifiers.includes(name.name);
|
|
352
|
+
})
|
|
353
|
+
.filter((path) =>
|
|
354
|
+
(path.value.openingElement.attributes || []).some(
|
|
355
|
+
(attr: any) => attr.type === 'JSXAttribute' && attr.name?.name === 'spacing',
|
|
356
|
+
),
|
|
357
|
+
);
|
|
358
|
+
|
|
359
|
+
if (!iconJSXWithSpacing.length) {
|
|
360
|
+
return file.source;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
const paddingTokensUsed = new Set<string>();
|
|
364
|
+
let needsFlexImport = false;
|
|
365
|
+
|
|
366
|
+
iconJSXWithSpacing.forEach((path) => {
|
|
367
|
+
const attrs = path.value.openingElement.attributes || [];
|
|
368
|
+
|
|
369
|
+
if (hasSpreadAttributes(attrs)) {
|
|
370
|
+
addEslintDisableComment(
|
|
371
|
+
j,
|
|
372
|
+
path,
|
|
373
|
+
'Manually migrate spacing prop to Flex primitive (spread props detected)',
|
|
374
|
+
);
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
if (isSpacingDynamic(attrs)) {
|
|
379
|
+
addEslintDisableComment(
|
|
380
|
+
j,
|
|
381
|
+
path,
|
|
382
|
+
'Manually migrate spacing prop to Flex primitive (dynamic spacing value detected)',
|
|
383
|
+
);
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
const spacingValue = getStaticPropValue(attrs, 'spacing')!;
|
|
388
|
+
path.value.openingElement.attributes = removeSpacingProp(attrs);
|
|
389
|
+
|
|
390
|
+
if (spacingValue === 'none') {
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
const sizeValue = getStaticPropValue(attrs, 'size') ?? 'medium';
|
|
395
|
+
const sizeKey = sizeValue === 'small' ? 'small' : 'medium';
|
|
396
|
+
const paddingToken = SPACING_TO_PADDING[sizeKey]?.[spacingValue];
|
|
397
|
+
|
|
398
|
+
if (!paddingToken) {
|
|
399
|
+
addEslintDisableComment(
|
|
400
|
+
j,
|
|
401
|
+
path,
|
|
402
|
+
`Manually migrate spacing="${spacingValue}" prop to Flex primitive (unknown spacing value)`,
|
|
403
|
+
);
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if ((path.value as any).extra) {
|
|
408
|
+
(path.value as any).extra.parenthesized = false;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
const wrappedElement = wrapWithFlex(j, path.value, paddingToken);
|
|
412
|
+
replaceWithWrapped(j, path, wrappedElement);
|
|
413
|
+
|
|
414
|
+
needsFlexImport = true;
|
|
415
|
+
paddingTokensUsed.add(paddingToken);
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
if (needsFlexImport) {
|
|
419
|
+
// Insert in reverse order since each unshift prepends — last inserted appears first
|
|
420
|
+
// Desired order: @atlaskit/css, @atlaskit/primitives/compiled, @atlaskit/tokens
|
|
421
|
+
insertTokenImport(j, source);
|
|
422
|
+
insertFlexImport(j, source);
|
|
423
|
+
insertCssMapImport(j, source);
|
|
424
|
+
insertOrUpdateCssMapVariable(j, source, paddingTokensUsed);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return source.toSource();
|
|
428
|
+
}
|