@atlaskit/icon 22.2.0 → 22.3.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 +16 -0
- package/UNSAFE_base-new/package.json +15 -0
- package/afm-cc/tsconfig.json +3 -0
- package/build/index.tsx +79 -11
- package/core/add.d.ts +9 -0
- package/core/add.js +26 -0
- package/core/ai-agent.d.ts +9 -0
- package/core/ai-agent.js +26 -0
- package/core/ai-chat.d.ts +9 -0
- package/core/ai-chat.js +26 -0
- package/core/alert.d.ts +9 -0
- package/core/alert.js +26 -0
- package/core/align-center.d.ts +9 -0
- package/core/align-center.js +26 -0
- package/core/align-left.d.ts +9 -0
- package/core/align-left.js +26 -0
- package/core/align-right.d.ts +9 -0
- package/core/align-right.js +26 -0
- package/core/angle-brackets.d.ts +9 -0
- package/core/angle-brackets.js +26 -0
- package/core/app.d.ts +9 -0
- package/core/app.js +26 -0
- package/core/apps.d.ts +9 -0
- package/core/apps.js +26 -0
- package/core/archive-box.d.ts +9 -0
- package/core/archive-box.js +26 -0
- package/core/arrow-down.d.ts +9 -0
- package/core/arrow-down.js +26 -0
- package/core/arrow-left.d.ts +9 -0
- package/core/arrow-left.js +26 -0
- package/core/arrow-right.d.ts +9 -0
- package/core/arrow-right.js +26 -0
- package/core/arrow-up-right.d.ts +9 -0
- package/core/arrow-up-right.js +26 -0
- package/core/arrow-up.d.ts +9 -0
- package/core/arrow-up.js +26 -0
- package/core/atlassian-intelligence.d.ts +9 -0
- package/core/atlassian-intelligence.js +26 -0
- package/core/attachment.d.ts +9 -0
- package/core/attachment.js +26 -0
- package/core/audio.d.ts +9 -0
- package/core/audio.js +25 -0
- package/core/automation.d.ts +9 -0
- package/core/automation.js +26 -0
- package/core/backlog.d.ts +9 -0
- package/core/backlog.js +26 -0
- package/core/board.d.ts +9 -0
- package/core/board.js +26 -0
- package/core/boards.d.ts +9 -0
- package/core/boards.js +26 -0
- package/core/book-with-bookmark.d.ts +9 -0
- package/core/book-with-bookmark.js +26 -0
- package/core/branch.d.ts +9 -0
- package/core/branch.js +26 -0
- package/core/briefcase.d.ts +9 -0
- package/core/briefcase.js +26 -0
- package/core/bug.d.ts +9 -0
- package/core/bug.js +26 -0
- package/core/bulleted-list.d.ts +9 -0
- package/core/bulleted-list.js +26 -0
- package/core/calendar.d.ts +9 -0
- package/core/calendar.js +26 -0
- package/core/camera.d.ts +9 -0
- package/core/camera.js +26 -0
- package/core/capture.d.ts +9 -0
- package/core/capture.js +25 -0
- package/core/changes.d.ts +9 -0
- package/core/changes.js +26 -0
- package/core/chart-bar.d.ts +9 -0
- package/core/chart-bar.js +26 -0
- package/core/chart-matrix.d.ts +9 -0
- package/core/chart-matrix.js +26 -0
- package/core/chart-pie.d.ts +9 -0
- package/core/chart-pie.js +26 -0
- package/core/chart-trend.d.ts +9 -0
- package/core/chart-trend.js +26 -0
- package/core/check-circle.d.ts +9 -0
- package/core/check-circle.js +26 -0
- package/core/check-mark.d.ts +9 -0
- package/core/check-mark.js +26 -0
- package/core/checkbox-checked.d.ts +9 -0
- package/core/checkbox-checked.js +26 -0
- package/core/checkbox-indeterminate.d.ts +9 -0
- package/core/checkbox-indeterminate.js +26 -0
- package/core/checkbox-unchecked.d.ts +9 -0
- package/core/checkbox-unchecked.js +26 -0
- package/core/child-issues.d.ts +9 -0
- package/core/child-issues.js +26 -0
- package/core/clock.d.ts +9 -0
- package/core/clock.js +26 -0
- package/core/close.d.ts +9 -0
- package/core/close.js +26 -0
- package/core/cloud-arrow-up.d.ts +9 -0
- package/core/cloud-arrow-up.js +26 -0
- package/core/collapse.d.ts +9 -0
- package/core/collapse.js +26 -0
- package/core/comment-add.d.ts +9 -0
- package/core/comment-add.js +26 -0
- package/core/comment.d.ts +9 -0
- package/core/comment.js +26 -0
- package/core/commit.d.ts +9 -0
- package/core/commit.js +26 -0
- package/core/compass.d.ts +9 -0
- package/core/compass.js +26 -0
- package/core/component.d.ts +9 -0
- package/core/component.js +26 -0
- package/core/copy.d.ts +9 -0
- package/core/copy.js +26 -0
- package/core/credit-card.d.ts +9 -0
- package/core/credit-card.js +26 -0
- package/core/cross-circle.d.ts +9 -0
- package/core/cross-circle.js +26 -0
- package/core/customize.d.ts +9 -0
- package/core/customize.js +26 -0
- package/core/dashboard.d.ts +9 -0
- package/core/dashboard.js +26 -0
- package/core/database.d.ts +9 -0
- package/core/database.js +26 -0
- package/core/decision.d.ts +9 -0
- package/core/decision.js +26 -0
- package/core/delete.d.ts +9 -0
- package/core/delete.js +26 -0
- package/core/department.d.ts +9 -0
- package/core/department.js +26 -0
- package/core/device-mobile.d.ts +9 -0
- package/core/device-mobile.js +26 -0
- package/core/download.d.ts +9 -0
- package/core/download.js +26 -0
- package/core/drag-handle.d.ts +9 -0
- package/core/drag-handle.js +26 -0
- package/core/edit.d.ts +9 -0
- package/core/edit.js +26 -0
- package/core/email.d.ts +9 -0
- package/core/email.js +26 -0
- package/core/emoji-add.d.ts +9 -0
- package/core/emoji-add.js +26 -0
- package/core/emoji.d.ts +9 -0
- package/core/emoji.js +26 -0
- package/core/epic.d.ts +9 -0
- package/core/epic.js +26 -0
- package/core/error.d.ts +9 -0
- package/core/error.js +26 -0
- package/core/expand.d.ts +9 -0
- package/core/expand.js +26 -0
- package/core/eye-open-filled.d.ts +9 -0
- package/core/eye-open-filled.js +26 -0
- package/core/eye-open.d.ts +9 -0
- package/core/eye-open.js +26 -0
- package/core/feed.d.ts +9 -0
- package/core/feed.js +26 -0
- package/core/feedback.d.ts +9 -0
- package/core/feedback.js +26 -0
- package/core/filter.d.ts +9 -0
- package/core/filter.js +26 -0
- package/core/flag.d.ts +9 -0
- package/core/flag.js +26 -0
- package/core/flask.d.ts +9 -0
- package/core/flask.js +26 -0
- package/core/folder-closed.d.ts +9 -0
- package/core/folder-closed.js +26 -0
- package/core/folder-open.d.ts +9 -0
- package/core/folder-open.js +26 -0
- package/core/fullscreen-enter.d.ts +9 -0
- package/core/fullscreen-enter.js +26 -0
- package/core/fullscreen-exit.d.ts +9 -0
- package/core/fullscreen-exit.js +26 -0
- package/core/globe.d.ts +9 -0
- package/core/globe.js +26 -0
- package/core/goal.d.ts +9 -0
- package/core/goal.js +26 -0
- package/core/grid.d.ts +9 -0
- package/core/grid.js +26 -0
- package/core/hashtag.d.ts +9 -0
- package/core/hashtag.js +26 -0
- package/core/heart.d.ts +9 -0
- package/core/heart.js +26 -0
- package/core/home.d.ts +9 -0
- package/core/home.js +26 -0
- package/core/image.d.ts +9 -0
- package/core/image.js +26 -0
- package/core/inbox.d.ts +9 -0
- package/core/inbox.js +26 -0
- package/core/incident.d.ts +9 -0
- package/core/incident.js +26 -0
- package/core/information.d.ts +9 -0
- package/core/information.js +26 -0
- package/core/issue.d.ts +9 -0
- package/core/issue.js +26 -0
- package/core/issues.d.ts +9 -0
- package/core/issues.js +26 -0
- package/core/lightbulb.d.ts +9 -0
- package/core/lightbulb.js +26 -0
- package/core/link-broken.d.ts +9 -0
- package/core/link-broken.js +26 -0
- package/core/link-external.d.ts +9 -0
- package/core/link-external.js +26 -0
- package/core/link.d.ts +9 -0
- package/core/link.js +26 -0
- package/core/lobby-bell.d.ts +9 -0
- package/core/lobby-bell.js +26 -0
- package/core/location.d.ts +9 -0
- package/core/location.js +26 -0
- package/core/lock-locked.d.ts +9 -0
- package/core/lock-locked.js +26 -0
- package/core/lock-unlocked.d.ts +9 -0
- package/core/lock-unlocked.js +26 -0
- package/core/log-in.d.ts +9 -0
- package/core/log-in.js +26 -0
- package/core/log-out.d.ts +9 -0
- package/core/log-out.js +26 -0
- package/core/marketplace.d.ts +9 -0
- package/core/marketplace.js +26 -0
- package/core/maximize.d.ts +9 -0
- package/core/maximize.js +26 -0
- package/core/megaphone.d.ts +9 -0
- package/core/megaphone.js +26 -0
- package/core/mention.d.ts +9 -0
- package/core/mention.js +26 -0
- package/core/microphone.d.ts +9 -0
- package/core/microphone.js +26 -0
- package/core/minimize.d.ts +9 -0
- package/core/minimize.js +26 -0
- package/core/node.d.ts +9 -0
- package/core/node.js +26 -0
- package/core/office-building.d.ts +9 -0
- package/core/office-building.js +26 -0
- package/core/page.d.ts +9 -0
- package/core/page.js +26 -0
- package/core/pages.d.ts +9 -0
- package/core/pages.js +26 -0
- package/core/person-add.d.ts +9 -0
- package/core/person-add.js +26 -0
- package/core/person-added.d.ts +9 -0
- package/core/person-added.js +26 -0
- package/core/person-avatar.d.ts +9 -0
- package/core/person-avatar.js +26 -0
- package/core/person-offboard.d.ts +9 -0
- package/core/person-offboard.js +25 -0
- package/core/person.d.ts +9 -0
- package/core/person.js +26 -0
- package/core/phone.d.ts +9 -0
- package/core/phone.js +26 -0
- package/core/pin-filled.d.ts +9 -0
- package/core/pin-filled.js +26 -0
- package/core/pin.d.ts +9 -0
- package/core/pin.js +26 -0
- package/core/power-plug.d.ts +9 -0
- package/core/power-plug.js +26 -0
- package/core/premium.d.ts +9 -0
- package/core/premium.js +26 -0
- package/core/presenter-mode.d.ts +9 -0
- package/core/presenter-mode.js +26 -0
- package/core/printer.d.ts +9 -0
- package/core/printer.js +26 -0
- package/core/priority-blocker.d.ts +9 -0
- package/core/priority-blocker.js +26 -0
- package/core/priority-critical.d.ts +9 -0
- package/core/priority-critical.js +26 -0
- package/core/priority-high.d.ts +9 -0
- package/core/priority-high.js +26 -0
- package/core/priority-highest.d.ts +9 -0
- package/core/priority-highest.js +26 -0
- package/core/priority-low.d.ts +9 -0
- package/core/priority-low.js +26 -0
- package/core/priority-lowest.d.ts +9 -0
- package/core/priority-lowest.js +26 -0
- package/core/priority-major.d.ts +9 -0
- package/core/priority-major.js +26 -0
- package/core/priority-medium.d.ts +9 -0
- package/core/priority-medium.js +26 -0
- package/core/priority-minor.d.ts +9 -0
- package/core/priority-minor.js +26 -0
- package/core/priority-trivial.d.ts +9 -0
- package/core/priority-trivial.js +26 -0
- package/core/problem.d.ts +9 -0
- package/core/problem.js +26 -0
- package/core/project.d.ts +9 -0
- package/core/project.js +26 -0
- package/core/pull-request.d.ts +9 -0
- package/core/pull-request.js +26 -0
- package/core/question-circle.d.ts +9 -0
- package/core/question-circle.js +26 -0
- package/core/quotation-mark.d.ts +9 -0
- package/core/quotation-mark.js +26 -0
- package/core/redo.d.ts +9 -0
- package/core/redo.js +26 -0
- package/core/release.d.ts +9 -0
- package/core/release.js +26 -0
- package/core/retry.d.ts +9 -0
- package/core/retry.js +26 -0
- package/core/roadmap.d.ts +9 -0
- package/core/roadmap.js +26 -0
- package/core/scorecard.d.ts +9 -0
- package/core/scorecard.js +26 -0
- package/core/screen.d.ts +9 -0
- package/core/screen.js +26 -0
- package/core/search.d.ts +9 -0
- package/core/search.js +26 -0
- package/core/send.d.ts +9 -0
- package/core/send.js +26 -0
- package/core/settings.d.ts +9 -0
- package/core/settings.js +26 -0
- package/core/shapes.d.ts +9 -0
- package/core/shapes.js +26 -0
- package/core/share.d.ts +9 -0
- package/core/share.js +26 -0
- package/core/shield.d.ts +9 -0
- package/core/shield.js +26 -0
- package/core/shortcut.d.ts +9 -0
- package/core/shortcut.js +26 -0
- package/core/show-more-horizontal.d.ts +9 -0
- package/core/show-more-horizontal.js +26 -0
- package/core/show-more-vertical.d.ts +9 -0
- package/core/show-more-vertical.js +26 -0
- package/core/sidebar-collapse.d.ts +9 -0
- package/core/sidebar-collapse.js +26 -0
- package/core/sidebar-expand.d.ts +9 -0
- package/core/sidebar-expand.js +26 -0
- package/core/snippet.d.ts +9 -0
- package/core/snippet.js +26 -0
- package/core/spreadsheet.d.ts +9 -0
- package/core/spreadsheet.js +26 -0
- package/core/sprint.d.ts +9 -0
- package/core/sprint.js +26 -0
- package/core/star-starred.d.ts +9 -0
- package/core/star-starred.js +26 -0
- package/core/star-unstarred.d.ts +9 -0
- package/core/star-unstarred.js +26 -0
- package/core/stopwatch.d.ts +9 -0
- package/core/stopwatch.js +26 -0
- package/core/story.d.ts +9 -0
- package/core/story.js +26 -0
- package/core/subtasks.d.ts +9 -0
- package/core/subtasks.js +26 -0
- package/core/tag.d.ts +9 -0
- package/core/tag.js +26 -0
- package/core/task.d.ts +9 -0
- package/core/task.js +26 -0
- package/core/tasks.d.ts +9 -0
- package/core/tasks.js +26 -0
- package/core/teams.d.ts +9 -0
- package/core/teams.js +26 -0
- package/core/text-style.d.ts +9 -0
- package/core/text-style.js +26 -0
- package/core/thumbs-down.d.ts +9 -0
- package/core/thumbs-down.js +26 -0
- package/core/thumbs-up.d.ts +9 -0
- package/core/thumbs-up.js +26 -0
- package/core/timeline.d.ts +9 -0
- package/core/timeline.js +26 -0
- package/core/transition.d.ts +9 -0
- package/core/transition.js +26 -0
- package/core/undo.d.ts +9 -0
- package/core/undo.js +26 -0
- package/core/upload.d.ts +9 -0
- package/core/upload.js +26 -0
- package/core/video-next.d.ts +9 -0
- package/core/video-next.js +26 -0
- package/core/video-pause.d.ts +9 -0
- package/core/video-pause.js +26 -0
- package/core/video-play.d.ts +9 -0
- package/core/video-play.js +26 -0
- package/core/video-previous.d.ts +9 -0
- package/core/video-previous.js +26 -0
- package/core/video.d.ts +9 -0
- package/core/video.js +26 -0
- package/core/volume-high.d.ts +9 -0
- package/core/volume-high.js +25 -0
- package/core/volume-low.d.ts +9 -0
- package/core/volume-low.js +25 -0
- package/core/volume-muted.d.ts +9 -0
- package/core/volume-muted.js +25 -0
- package/core/warning.d.ts +9 -0
- package/core/warning.js +26 -0
- package/core/whiteboard.d.ts +9 -0
- package/core/whiteboard.js +26 -0
- package/core/zoom-in.d.ts +9 -0
- package/core/zoom-in.js +26 -0
- package/core/zoom-out.d.ts +9 -0
- package/core/zoom-out.js +26 -0
- package/dist/cjs/components/icon-new.js +155 -0
- package/dist/cjs/components/icon-tile.js +155 -0
- package/dist/cjs/components/icon.js +1 -1
- package/dist/cjs/entry-points/base-new.js +21 -0
- package/dist/cjs/index.js +15 -1
- package/dist/cjs/metadata-core.js +2019 -0
- package/dist/cjs/metadata-utility.js +214 -0
- package/dist/es2019/components/icon-new.js +156 -0
- package/dist/es2019/components/icon-tile.js +149 -0
- package/dist/es2019/components/icon.js +1 -1
- package/dist/es2019/entry-points/base-new.js +1 -0
- package/dist/es2019/index.js +3 -1
- package/dist/es2019/metadata-core.js +2013 -0
- package/dist/es2019/metadata-utility.js +208 -0
- package/dist/esm/components/icon-new.js +149 -0
- package/dist/esm/components/icon-tile.js +149 -0
- package/dist/esm/components/icon.js +1 -1
- package/dist/esm/entry-points/base-new.js +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/metadata-core.js +2013 -0
- package/dist/esm/metadata-utility.js +208 -0
- package/dist/types/components/icon-new.d.ts +23 -0
- package/dist/types/components/icon-tile.d.ts +12 -0
- package/dist/types/entry-points/base-new.d.ts +2 -0
- package/dist/types/entry-points/types.d.ts +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/metadata-core.d.ts +22 -0
- package/dist/types/metadata-utility.d.ts +22 -0
- package/dist/types/types.d.ts +75 -6
- package/dist/types-ts4.5/components/icon-new.d.ts +23 -0
- package/dist/types-ts4.5/components/icon-tile.d.ts +12 -0
- package/dist/types-ts4.5/entry-points/base-new.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +3 -1
- package/dist/types-ts4.5/metadata-core.d.ts +22 -0
- package/dist/types-ts4.5/metadata-utility.d.ts +22 -0
- package/dist/types-ts4.5/types.d.ts +75 -6
- package/package.json +17 -5
- package/utility/add.d.ts +9 -0
- package/utility/add.js +27 -0
- package/utility/check-circle.d.ts +9 -0
- package/utility/check-circle.js +27 -0
- package/utility/check-mark.d.ts +9 -0
- package/utility/check-mark.js +27 -0
- package/utility/chevron-down.d.ts +9 -0
- package/utility/chevron-down.js +27 -0
- package/utility/chevron-left.d.ts +9 -0
- package/utility/chevron-left.js +27 -0
- package/utility/chevron-right.d.ts +9 -0
- package/utility/chevron-right.js +27 -0
- package/utility/chevron-up.d.ts +9 -0
- package/utility/chevron-up.js +27 -0
- package/utility/cross-circle.d.ts +9 -0
- package/utility/cross-circle.js +27 -0
- package/utility/cross.d.ts +9 -0
- package/utility/cross.js +27 -0
- package/utility/error.d.ts +9 -0
- package/utility/error.js +27 -0
- package/utility/information.d.ts +9 -0
- package/utility/information.js +27 -0
- package/utility/link-external.d.ts +9 -0
- package/utility/link-external.js +27 -0
- package/utility/lock-locked.d.ts +9 -0
- package/utility/lock-locked.js +27 -0
- package/utility/lock-unlocked.d.ts +9 -0
- package/utility/lock-unlocked.js +27 -0
- package/utility/show-more-horizontal.d.ts +9 -0
- package/utility/show-more-horizontal.js +27 -0
- package/utility/show-more-vertical.d.ts +9 -0
- package/utility/show-more-vertical.js +27 -0
- package/utility/star-starred.d.ts +9 -0
- package/utility/star-starred.js +27 -0
- package/utility/star-unstarred.d.ts +9 -0
- package/utility/star-unstarred.js +27 -0
- package/utility/warning.d.ts +9 -0
- package/utility/warning.js +27 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* NOTE:
|
|
9
|
+
*
|
|
10
|
+
* This file is automatically generated by the build process.
|
|
11
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
12
|
+
*
|
|
13
|
+
* To change the format of this file, modify build/icon/createIconDocs.tsx.
|
|
14
|
+
* Add synonyms via the 'synonyms' parameter.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
var metadata = {
|
|
18
|
+
add: {
|
|
19
|
+
keywords: ['add', 'plus', 'create', 'new', 'icon', 'utility', 'create', 'plus'],
|
|
20
|
+
componentName: 'AddIcon',
|
|
21
|
+
package: '@atlaskit/icon/utility/add',
|
|
22
|
+
oldName: 'AddIcon',
|
|
23
|
+
categorization: 'Multi-purpose',
|
|
24
|
+
location: 'ADS',
|
|
25
|
+
team: 'ADS',
|
|
26
|
+
type: 'Utility',
|
|
27
|
+
usage: 'Reserved for creating and adding an object as a secondary action within a Menu Item.'
|
|
28
|
+
},
|
|
29
|
+
'check-circle': {
|
|
30
|
+
keywords: ['check-circle', 'checkcircle', 'tick', 'icon', 'utility', 'tick', 'yes', 'success', 'filled'],
|
|
31
|
+
componentName: 'CheckCircleIcon',
|
|
32
|
+
package: '@atlaskit/icon/utility/check-circle',
|
|
33
|
+
categorization: 'Multi-purpose',
|
|
34
|
+
location: 'ADS',
|
|
35
|
+
team: 'ADS',
|
|
36
|
+
type: 'Utility',
|
|
37
|
+
usage: 'Reserved for Helper Messages in Forms.'
|
|
38
|
+
},
|
|
39
|
+
'check-mark': {
|
|
40
|
+
keywords: ['check-mark', 'checkmark', 'icon', 'utility', 'Known uses: table cells', 'checkboxes.'],
|
|
41
|
+
componentName: 'CheckMarkIcon',
|
|
42
|
+
package: '@atlaskit/icon/utility/check-mark',
|
|
43
|
+
categorization: 'Multi-purpose',
|
|
44
|
+
location: 'ADS',
|
|
45
|
+
team: 'ADS',
|
|
46
|
+
type: 'Utility',
|
|
47
|
+
usage: 'TBD'
|
|
48
|
+
},
|
|
49
|
+
'chevron-down': {
|
|
50
|
+
keywords: ['chevron-down', 'chevrondown', 'expand', 'collapse', 'icon', 'utility', 'accordion', 'down'],
|
|
51
|
+
componentName: 'ChevronDownIcon',
|
|
52
|
+
package: '@atlaskit/icon/utility/chevron-down',
|
|
53
|
+
oldName: 'ChevronDownIcon',
|
|
54
|
+
categorization: 'Multi-purpose',
|
|
55
|
+
location: 'ADS',
|
|
56
|
+
team: 'ADS',
|
|
57
|
+
type: 'Utility',
|
|
58
|
+
usage: 'Reserved for dropdown menus, selects, accordions, and expands.'
|
|
59
|
+
},
|
|
60
|
+
'chevron-left': {
|
|
61
|
+
keywords: ['chevron-left', 'chevronleft', 'back', 'previous', 'icon', 'utility', 'less than', '<', 'previous'],
|
|
62
|
+
componentName: 'ChevronLeftIcon',
|
|
63
|
+
package: '@atlaskit/icon/utility/chevron-left',
|
|
64
|
+
oldName: 'ChevronLeftIcon',
|
|
65
|
+
categorization: 'Multi-purpose',
|
|
66
|
+
location: 'ADS',
|
|
67
|
+
team: 'ADS',
|
|
68
|
+
type: 'Utility',
|
|
69
|
+
usage: 'Reserved for collapse side nav and to indicate previous in dates.'
|
|
70
|
+
},
|
|
71
|
+
'chevron-right': {
|
|
72
|
+
keywords: ['chevron-right', 'chevronright', 'forward', 'next', 'icon', 'utility', 'greater than', '>', 'next'],
|
|
73
|
+
componentName: 'ChevronRightIcon',
|
|
74
|
+
package: '@atlaskit/icon/utility/chevron-right',
|
|
75
|
+
oldName: 'ChevronRightIcon',
|
|
76
|
+
categorization: 'Multi-purpose',
|
|
77
|
+
location: 'ADS',
|
|
78
|
+
team: 'ADS',
|
|
79
|
+
type: 'Utility',
|
|
80
|
+
usage: 'Reserved for menu fly-outs and to indicate next in dates.'
|
|
81
|
+
},
|
|
82
|
+
'chevron-up': {
|
|
83
|
+
keywords: ['chevron-up', 'chevronup', 'expand', 'collapse', 'icon', 'utility', 'up', 'accordion'],
|
|
84
|
+
componentName: 'ChevronUpIcon',
|
|
85
|
+
package: '@atlaskit/icon/utility/chevron-up',
|
|
86
|
+
oldName: 'ChevronUpIcon',
|
|
87
|
+
categorization: 'Multi-purpose',
|
|
88
|
+
location: 'ADS',
|
|
89
|
+
team: 'ADS',
|
|
90
|
+
type: 'Utility',
|
|
91
|
+
usage: 'Reserved for accordions.'
|
|
92
|
+
},
|
|
93
|
+
cross: {
|
|
94
|
+
keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
|
|
95
|
+
componentName: 'CrossIcon',
|
|
96
|
+
package: '@atlaskit/icon/utility/cross',
|
|
97
|
+
categorization: 'Multi-purpose',
|
|
98
|
+
location: 'ADS',
|
|
99
|
+
team: 'ADS',
|
|
100
|
+
type: 'Utility',
|
|
101
|
+
usage: 'Known uses: remove tag.'
|
|
102
|
+
},
|
|
103
|
+
'cross-circle': {
|
|
104
|
+
keywords: ['cross-circle', 'crosscircle', 'close', 'x', 'cancel', 'icon', 'utility', 'x', 'exit', 'clear', 'no', 'filled', 'form'],
|
|
105
|
+
componentName: 'CrossCircleIcon',
|
|
106
|
+
package: '@atlaskit/icon/utility/cross-circle',
|
|
107
|
+
categorization: 'Multi-purpose',
|
|
108
|
+
location: 'ADS',
|
|
109
|
+
team: 'ADS',
|
|
110
|
+
type: 'Utility',
|
|
111
|
+
usage: 'Reserved for Helper Messages in Forms.'
|
|
112
|
+
},
|
|
113
|
+
error: {
|
|
114
|
+
keywords: ['error', 'warning', 'alert', 'icon', 'utility', 'filled', 'status', 'form', 'helper'],
|
|
115
|
+
componentName: 'ErrorIcon',
|
|
116
|
+
package: '@atlaskit/icon/utility/error',
|
|
117
|
+
categorization: 'Multi-purpose',
|
|
118
|
+
location: 'ADS',
|
|
119
|
+
team: 'ADS',
|
|
120
|
+
type: 'Utility',
|
|
121
|
+
usage: 'Reserved for Helper Messages in Forms.'
|
|
122
|
+
},
|
|
123
|
+
information: {
|
|
124
|
+
keywords: ['information', 'icon', 'utility', 'info', 'filled', 'helper', 'tip', 'form'],
|
|
125
|
+
componentName: 'InformationIcon',
|
|
126
|
+
package: '@atlaskit/icon/utility/information',
|
|
127
|
+
categorization: 'Multi-purpose',
|
|
128
|
+
location: 'ADS',
|
|
129
|
+
team: 'ADS',
|
|
130
|
+
type: 'Utility',
|
|
131
|
+
usage: 'Reserved for Helper Messages in Forms.'
|
|
132
|
+
},
|
|
133
|
+
'link-external': {
|
|
134
|
+
keywords: ['link-external', 'linkexternal', 'icon', 'utility', 'new tab', 'new window', 'open in', 'url', 'hyperlink', 'www', 'http', 'https', 'website', 'external', 'shortcut', 'diagonal arrow', 'secondary', 'tertiary'],
|
|
135
|
+
componentName: 'LinkExternalIcon',
|
|
136
|
+
package: '@atlaskit/icon/utility/link-external',
|
|
137
|
+
categorization: 'Multi-purpose',
|
|
138
|
+
location: 'ADS',
|
|
139
|
+
team: 'ADS',
|
|
140
|
+
type: 'Utility',
|
|
141
|
+
usage: 'Reserved for links that open up a new tab as a secondary/tertiary action.'
|
|
142
|
+
},
|
|
143
|
+
'lock-locked': {
|
|
144
|
+
keywords: ['lock-locked', 'locklocked', 'icon', 'utility', 'secondary', 'tertiary', 'permissions', 'no access', 'restricted', 'security', 'secure', 'forbidden', 'authentication'],
|
|
145
|
+
componentName: 'LockLockedIcon',
|
|
146
|
+
package: '@atlaskit/icon/utility/lock-locked',
|
|
147
|
+
categorization: 'Multi-purpose',
|
|
148
|
+
location: 'ADS',
|
|
149
|
+
team: 'ADS',
|
|
150
|
+
type: 'Utility',
|
|
151
|
+
usage: 'Reserved for indicating something is locked in the side navigation Menu Item.'
|
|
152
|
+
},
|
|
153
|
+
'lock-unlocked': {
|
|
154
|
+
keywords: ['lock-unlocked', 'lockunlocked', 'icon', 'utility', 'secondary', 'tertiary', 'open permissions', 'unrestricted access', 'security', 'insecure', 'authentication'],
|
|
155
|
+
componentName: 'LockUnlockedIcon',
|
|
156
|
+
package: '@atlaskit/icon/utility/lock-unlocked',
|
|
157
|
+
categorization: 'Multi-purpose',
|
|
158
|
+
location: 'ADS',
|
|
159
|
+
team: 'ADS',
|
|
160
|
+
type: 'Utility',
|
|
161
|
+
usage: 'Reserved for indicating something is locked in the side navigation Menu Item.'
|
|
162
|
+
},
|
|
163
|
+
'show-more-horizontal': {
|
|
164
|
+
keywords: ['show-more-horizontal', 'showmorehorizontal', 'icon', 'utility', 'ellipses', 'three dots', 'meatball', 'more actions', 'secondary', 'tertiary'],
|
|
165
|
+
componentName: 'ShowMoreHorizontalIcon',
|
|
166
|
+
package: '@atlaskit/icon/utility/show-more-horizontal',
|
|
167
|
+
categorization: 'Multi-purpose',
|
|
168
|
+
location: 'ADS',
|
|
169
|
+
team: 'ADS',
|
|
170
|
+
type: 'Utility',
|
|
171
|
+
usage: 'Reserved for secondary/tertiary more action menus.'
|
|
172
|
+
},
|
|
173
|
+
'show-more-vertical': {
|
|
174
|
+
keywords: ['show-more-vertical', 'showmorevertical', 'icon', 'utility', 'three dots', 'kebab', 'more actions', 'secondary', 'tertiary'],
|
|
175
|
+
componentName: 'ShowMoreVerticalIcon',
|
|
176
|
+
package: '@atlaskit/icon/utility/show-more-vertical',
|
|
177
|
+
categorization: 'Multi-purpose',
|
|
178
|
+
location: 'ADS',
|
|
179
|
+
team: 'ADS',
|
|
180
|
+
type: 'Utility',
|
|
181
|
+
usage: 'Reserved for secondary/tertiary action menus, traditionally on mobile.'
|
|
182
|
+
},
|
|
183
|
+
'star-starred': {
|
|
184
|
+
keywords: ['star-starred', 'starstarred', 'icon', 'utility', 'favourite', 'star', 'starred', 'filled', 'menu', 'secondary', 'tertiary'],
|
|
185
|
+
componentName: 'StarStarredIcon',
|
|
186
|
+
package: '@atlaskit/icon/utility/star-starred',
|
|
187
|
+
categorization: 'Multi-purpose',
|
|
188
|
+
location: 'ADS',
|
|
189
|
+
team: 'ADS',
|
|
190
|
+
type: 'Utility',
|
|
191
|
+
usage: 'Reserved for starred or favourited objects as a secondary/tertiary action.'
|
|
192
|
+
},
|
|
193
|
+
'star-unstarred': {
|
|
194
|
+
keywords: ['star-unstarred', 'starunstarred', 'icon', 'utility', 'favourite', 'star', 'form', 'secondary', 'tertiary'],
|
|
195
|
+
componentName: 'StarUnstarredIcon',
|
|
196
|
+
package: '@atlaskit/icon/utility/star-unstarred',
|
|
197
|
+
categorization: 'Multi-purpose',
|
|
198
|
+
location: 'ADS',
|
|
199
|
+
team: 'ADS',
|
|
200
|
+
type: 'Utility',
|
|
201
|
+
usage: 'Reserved for starring or favoriting objects as a secondary/tertiary action.'
|
|
202
|
+
},
|
|
203
|
+
warning: {
|
|
204
|
+
keywords: ['warning', 'error', 'alert', 'icon', 'utility', 'alert', 'danger', 'triangle', 'filled', 'secondary', 'tertiary'],
|
|
205
|
+
componentName: 'WarningIcon',
|
|
206
|
+
package: '@atlaskit/icon/utility/warning',
|
|
207
|
+
categorization: 'Multi-purpose',
|
|
208
|
+
location: 'ADS',
|
|
209
|
+
team: 'ADS',
|
|
210
|
+
type: 'Utility',
|
|
211
|
+
usage: 'Reserved for Helper Messages in Forms.'
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
var _default = exports.default = metadata;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* We are hiding this props from consumers as it's reserved
|
|
8
|
+
* for use by Icon Tile.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const commonSVGStyles = css({
|
|
12
|
+
overflow: 'hidden',
|
|
13
|
+
pointerEvents: 'none',
|
|
14
|
+
/**
|
|
15
|
+
* Stop-color doesn't properly apply in chrome when the inherited/current color changes.
|
|
16
|
+
* We have to initially set stop-color to inherit (either via DOM attribute or an initial CSS
|
|
17
|
+
* rule) and then override it with currentColor for the color changes to be picked up.
|
|
18
|
+
*/
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
20
|
+
stop: {
|
|
21
|
+
stopColor: 'currentColor'
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const svgStyles = css({
|
|
25
|
+
color: 'currentColor',
|
|
26
|
+
verticalAlign: 'bottom'
|
|
27
|
+
});
|
|
28
|
+
const iconStyles = css({
|
|
29
|
+
display: 'inline-block',
|
|
30
|
+
boxSizing: 'border-box',
|
|
31
|
+
flexShrink: 0,
|
|
32
|
+
lineHeight: 1,
|
|
33
|
+
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
34
|
+
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
|
|
35
|
+
});
|
|
36
|
+
const utilityIconStyles = css({
|
|
37
|
+
lineHeight: "var(--ds-space-150, 12px)"
|
|
38
|
+
});
|
|
39
|
+
const scaleStyles = css({
|
|
40
|
+
width: 'inherit',
|
|
41
|
+
height: 'inherit'
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* For windows high contrast mode
|
|
46
|
+
*/
|
|
47
|
+
const baseHcmStyles = css({
|
|
48
|
+
'@media screen and (forced-colors: active)': {
|
|
49
|
+
color: 'CanvasText',
|
|
50
|
+
filter: 'grayscale(1)'
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const sizeMap = {
|
|
54
|
+
scale: css({
|
|
55
|
+
width: 'inherit',
|
|
56
|
+
height: 'inherit'
|
|
57
|
+
}),
|
|
58
|
+
utility: css({
|
|
59
|
+
width: "var(--ds-space-150, 12px)",
|
|
60
|
+
height: "var(--ds-space-150, 12px)"
|
|
61
|
+
}),
|
|
62
|
+
none: css({
|
|
63
|
+
width: "var(--ds-space-200, 16px)",
|
|
64
|
+
height: "var(--ds-space-200, 16px)"
|
|
65
|
+
}),
|
|
66
|
+
spacious: css({
|
|
67
|
+
width: "var(--ds-space-300, 24px)",
|
|
68
|
+
height: "var(--ds-space-300, 24px)"
|
|
69
|
+
})
|
|
70
|
+
};
|
|
71
|
+
const baseSizeMap = {
|
|
72
|
+
global: 16,
|
|
73
|
+
utility: 12
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* __Icon__
|
|
78
|
+
*
|
|
79
|
+
* An icon is used as a visual representation of common actions and commands to provide context.
|
|
80
|
+
*
|
|
81
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
82
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
83
|
+
*/
|
|
84
|
+
export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
85
|
+
const {
|
|
86
|
+
color = "var(--ds-icon, #44546F)",
|
|
87
|
+
spacing = 'none',
|
|
88
|
+
testId,
|
|
89
|
+
label,
|
|
90
|
+
LEGACY_secondaryColor,
|
|
91
|
+
LEGACY_size = 'medium',
|
|
92
|
+
LEGACY_fallbackIcon: FallbackIcon,
|
|
93
|
+
// Used to set icon dimensions/behaviour in codegen
|
|
94
|
+
type = 'global',
|
|
95
|
+
// Used to set icon glyphs in codegen
|
|
96
|
+
dangerouslySetGlyph,
|
|
97
|
+
// Used with iconTile to scale icon up and down
|
|
98
|
+
shouldScale
|
|
99
|
+
} = props;
|
|
100
|
+
const dangerouslySetInnerHTML = dangerouslySetGlyph ? {
|
|
101
|
+
__html: dangerouslySetGlyph
|
|
102
|
+
} : undefined;
|
|
103
|
+
|
|
104
|
+
// Fall back to old icon
|
|
105
|
+
if (FallbackIcon && !getBooleanFF('platform.design-system-team.enable-new-icons')) {
|
|
106
|
+
// parse out unnecessary props
|
|
107
|
+
return jsx(FallbackIcon, {
|
|
108
|
+
primaryColor: color,
|
|
109
|
+
secondaryColor: LEGACY_secondaryColor,
|
|
110
|
+
size: LEGACY_size,
|
|
111
|
+
label: label,
|
|
112
|
+
testId: testId
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
const baseSize = baseSizeMap[type];
|
|
116
|
+
const size = type === 'utility' ? 'utility' : shouldScale ? 'scale' : spacing;
|
|
117
|
+
const viewBoxPadding = spacing === 'spacious' ? 4 : 0;
|
|
118
|
+
const viewBoxSize = baseSize + 2 * viewBoxPadding;
|
|
119
|
+
|
|
120
|
+
// Workaround for the transparency in our disabled icon token.
|
|
121
|
+
// Because we have multiple strokes in icons, opacities overlap
|
|
122
|
+
// This filter has an impact on render performance, but this is
|
|
123
|
+
// acceptable as icons aren't commonly disabled en-masse
|
|
124
|
+
let iconColor = color;
|
|
125
|
+
if (dangerouslySetInnerHTML && color === "var(--ds-icon-disabled, #091E424F)") {
|
|
126
|
+
dangerouslySetInnerHTML.__html = `
|
|
127
|
+
<filter id="ds-newIconOpacityFilter">
|
|
128
|
+
<feFlood flood-color="var(--ds-icon-disabled)" />
|
|
129
|
+
<feComposite in2="SourceGraphic" operator="in" />
|
|
130
|
+
</filter>
|
|
131
|
+
<g filter="url(#ds-newIconOpacityFilter)">
|
|
132
|
+
${dangerouslySetInnerHTML.__html}
|
|
133
|
+
</g>`;
|
|
134
|
+
iconColor = "var(--ds-icon, #44546F)";
|
|
135
|
+
}
|
|
136
|
+
return jsx("span", {
|
|
137
|
+
"data-testid": testId,
|
|
138
|
+
role: label ? 'img' : undefined,
|
|
139
|
+
"aria-label": label ? label : undefined,
|
|
140
|
+
"aria-hidden": label ? undefined : true,
|
|
141
|
+
style: {
|
|
142
|
+
color: iconColor
|
|
143
|
+
},
|
|
144
|
+
css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, type === 'utility' && utilityIconStyles]
|
|
145
|
+
}, jsx("svg", {
|
|
146
|
+
fill: "none"
|
|
147
|
+
// Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
|
|
148
|
+
// we want for Icon Tile
|
|
149
|
+
,
|
|
150
|
+
viewBox: `${0 - viewBoxPadding} ${0 - viewBoxPadding} ${viewBoxSize} ${viewBoxSize}`,
|
|
151
|
+
role: "presentation",
|
|
152
|
+
css: [commonSVGStyles, svgStyles, sizeMap[size]],
|
|
153
|
+
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
154
|
+
}));
|
|
155
|
+
});
|
|
156
|
+
export default Icon;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
|
+
const sizeMap = {
|
|
5
|
+
'16': css({
|
|
6
|
+
width: '16px',
|
|
7
|
+
height: '16px'
|
|
8
|
+
}),
|
|
9
|
+
'24': css({
|
|
10
|
+
width: '24px',
|
|
11
|
+
height: '24px'
|
|
12
|
+
}),
|
|
13
|
+
'32': css({
|
|
14
|
+
width: '32px',
|
|
15
|
+
height: '32px'
|
|
16
|
+
}),
|
|
17
|
+
'40': css({
|
|
18
|
+
width: '40px',
|
|
19
|
+
height: '40px'
|
|
20
|
+
}),
|
|
21
|
+
'48': css({
|
|
22
|
+
width: '48px',
|
|
23
|
+
height: '48px'
|
|
24
|
+
})
|
|
25
|
+
};
|
|
26
|
+
const appearanceMap = {
|
|
27
|
+
grayBold: css({
|
|
28
|
+
backgroundColor: "var(--ds-background-accent-gray-bolder, #626F86)",
|
|
29
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
30
|
+
}),
|
|
31
|
+
limeBold: css({
|
|
32
|
+
backgroundColor: "var(--ds-background-accent-lime-bolder, #5B7F24)",
|
|
33
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
34
|
+
}),
|
|
35
|
+
greenBold: css({
|
|
36
|
+
backgroundColor: "var(--ds-background-accent-green-bolder, #1F845A)",
|
|
37
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
38
|
+
}),
|
|
39
|
+
blueBold: css({
|
|
40
|
+
backgroundColor: "var(--ds-background-accent-blue-bolder, #0C66E4)",
|
|
41
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
42
|
+
}),
|
|
43
|
+
redBold: css({
|
|
44
|
+
backgroundColor: "var(--ds-background-accent-red-bolder, #C9372C)",
|
|
45
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
46
|
+
}),
|
|
47
|
+
purpleBold: css({
|
|
48
|
+
backgroundColor: "var(--ds-background-accent-purple-bolder, #6E5DC6)",
|
|
49
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
50
|
+
}),
|
|
51
|
+
magentaBold: css({
|
|
52
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder, #AE4787)",
|
|
53
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
54
|
+
}),
|
|
55
|
+
tealBold: css({
|
|
56
|
+
backgroundColor: "var(--ds-background-accent-teal-bolder, #227D9B)",
|
|
57
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
58
|
+
}),
|
|
59
|
+
orangeBold: css({
|
|
60
|
+
backgroundColor: "var(--ds-background-accent-orange-bolder, #C25100)",
|
|
61
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
62
|
+
}),
|
|
63
|
+
yellowBold: css({
|
|
64
|
+
backgroundColor: "var(--ds-background-accent-yellow-bolder, #946F00)",
|
|
65
|
+
color: "var(--ds-icon-inverse, #FFFFFF)"
|
|
66
|
+
}),
|
|
67
|
+
gray: css({
|
|
68
|
+
backgroundColor: "var(--ds-background-accent-gray-subtler, #DCDFE4)",
|
|
69
|
+
color: "var(--ds-icon-accent-gray, #758195)"
|
|
70
|
+
}),
|
|
71
|
+
lime: css({
|
|
72
|
+
backgroundColor: "var(--ds-background-accent-lime-subtler, #D3F1A7)",
|
|
73
|
+
color: "var(--ds-icon-accent-lime, #6A9A23)"
|
|
74
|
+
}),
|
|
75
|
+
orange: css({
|
|
76
|
+
backgroundColor: "var(--ds-background-accent-orange-subtler, #FEDEC8)",
|
|
77
|
+
color: "var(--ds-icon-accent-orange, #E56910)"
|
|
78
|
+
}),
|
|
79
|
+
magenta: css({
|
|
80
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
81
|
+
color: "var(--ds-icon-accent-magenta, #CD519D)"
|
|
82
|
+
}),
|
|
83
|
+
green: css({
|
|
84
|
+
backgroundColor: "var(--ds-background-accent-green-subtler, #BAF3DB)",
|
|
85
|
+
color: "var(--ds-icon-accent-green, #22A06B)"
|
|
86
|
+
}),
|
|
87
|
+
blue: css({
|
|
88
|
+
backgroundColor: "var(--ds-background-accent-blue-subtler, #CCE0FF)",
|
|
89
|
+
color: "var(--ds-icon-accent-blue, #1D7AFC)"
|
|
90
|
+
}),
|
|
91
|
+
red: css({
|
|
92
|
+
backgroundColor: "var(--ds-background-accent-red-subtler, #FFD5D2)",
|
|
93
|
+
color: "var(--ds-icon-accent-red, #C9372C)"
|
|
94
|
+
}),
|
|
95
|
+
purple: css({
|
|
96
|
+
backgroundColor: "var(--ds-background-accent-purple-subtler, #DFD8FD)",
|
|
97
|
+
color: "var(--ds-icon-accent-purple, #8270DB)"
|
|
98
|
+
}),
|
|
99
|
+
teal: css({
|
|
100
|
+
backgroundColor: "var(--ds-background-accent-teal-subtler, #C6EDFB)",
|
|
101
|
+
color: "var(--ds-icon-accent-teal, #2898BD)"
|
|
102
|
+
}),
|
|
103
|
+
yellow: css({
|
|
104
|
+
backgroundColor: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
105
|
+
color: "var(--ds-icon-accent-yellow, #B38600)"
|
|
106
|
+
})
|
|
107
|
+
};
|
|
108
|
+
const shapeMap = {
|
|
109
|
+
square: css({
|
|
110
|
+
borderRadius: "var(--ds-border-radius-100, 4px)"
|
|
111
|
+
}),
|
|
112
|
+
circle: css({
|
|
113
|
+
borderRadius: "var(--ds-border-radius-circle, 32032px)"
|
|
114
|
+
})
|
|
115
|
+
};
|
|
116
|
+
const iconTileStyles = css({
|
|
117
|
+
display: 'inline-flex',
|
|
118
|
+
boxSizing: 'border-box',
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
justifyContent: 'center'
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* __IconTile__ -- ⚠️ Experimental ⚠️
|
|
125
|
+
*
|
|
126
|
+
* An icon tile is used to present an icon with a background color.
|
|
127
|
+
* Icon tiles, unlike standard icons, can scale up and down to provide greater emphasis.
|
|
128
|
+
*
|
|
129
|
+
* This component is currently in an experimental state and is subject to change in minor or patch releases.
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
export default function IconTile(props) {
|
|
133
|
+
const {
|
|
134
|
+
icon: Icon,
|
|
135
|
+
label,
|
|
136
|
+
appearance,
|
|
137
|
+
size = '24',
|
|
138
|
+
shape = 'square'
|
|
139
|
+
} = props;
|
|
140
|
+
const ExpandedIcon = Icon;
|
|
141
|
+
return jsx("span", {
|
|
142
|
+
css: [iconTileStyles, appearanceMap[appearance], sizeMap[size], shapeMap[shape]]
|
|
143
|
+
}, jsx(ExpandedIcon, {
|
|
144
|
+
color: "currentColor",
|
|
145
|
+
label: label,
|
|
146
|
+
spacing: "spacious",
|
|
147
|
+
shouldScale: true
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
@@ -104,7 +104,7 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
|
|
|
104
104
|
}, glyphProps, {
|
|
105
105
|
css: [iconStyles, baseHcmStyles, primaryColor === secondaryColor && primaryEqualsSecondaryHcmStyles, secondaryColor === 'transparent' && secondaryTransparentHcmStyles,
|
|
106
106
|
// NB: This can be resolved if this component, composes base SVG / and/or skeleton
|
|
107
|
-
// We could then simplify how common styles are dealt with simply by
|
|
107
|
+
// We could then simplify how common styles are dealt with simply by encapsulating them
|
|
108
108
|
// at their appropriate level and/or having a singular approach to css variables in the package
|
|
109
109
|
dimensions &&
|
|
110
110
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, Icon } from '../components/icon-new';
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default } from './components/icon';
|
|
2
|
+
export { default as UNSAFE_IconNew } from './components/icon-new';
|
|
2
3
|
export { default as SVG } from './components/svg';
|
|
3
4
|
export { sizeMap as size, sizes } from './constants';
|
|
4
|
-
export { default as Skeleton } from './components/skeleton';
|
|
5
|
+
export { default as Skeleton } from './components/skeleton';
|
|
6
|
+
export { default as IconTile } from './components/icon-tile';
|