@atlaskit/icon 22.2.0 → 22.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/UNSAFE_base-new/package.json +15 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +28 -0
- package/build/index.tsx +79 -11
- package/codemods/21.2.0-metadata-entry.tsx +3 -2
- 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 +158 -0
- package/dist/cjs/components/icon-tile.js +155 -0
- package/dist/cjs/components/icon.js +4 -2
- 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 +159 -0
- package/dist/es2019/components/icon-tile.js +149 -0
- package/dist/es2019/components/icon.js +4 -2
- 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 +152 -0
- package/dist/esm/components/icon-tile.js +149 -0
- package/dist/esm/components/icon.js +4 -2
- 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/components/styles.d.ts +1 -1
- 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/components/styles.d.ts +1 -1
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, SVGProps as ReactSVGProps, ReactNode } from 'react';
|
|
2
|
+
import type { IconColor } from '@atlaskit/tokens/css-type-schema';
|
|
2
3
|
export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
4
|
export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
|
|
4
5
|
/**
|
|
@@ -26,6 +27,17 @@ export interface GlyphColorProps {
|
|
|
26
27
|
*/
|
|
27
28
|
secondaryColor?: string;
|
|
28
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* NOTE: we want to move away from icons using text colors and make the icon tokens darker - so currentColor will eventually go away, and
|
|
32
|
+
* we will be shifting existing usages down (`color.text` -> `color.icon` -> `color.icon.`) via a codemod.
|
|
33
|
+
* For now, icon defaults to `color.text` under the hood to emulate the darker appearance.
|
|
34
|
+
*/
|
|
35
|
+
export interface NewGlyphColorProps {
|
|
36
|
+
/**
|
|
37
|
+
* Color for the icon. Supports any icon design token, or 'currentColor' to inherit the current text color.
|
|
38
|
+
*/
|
|
39
|
+
color?: IconColor | 'currentColor';
|
|
40
|
+
}
|
|
29
41
|
export interface GlyphSizeProps {
|
|
30
42
|
/**
|
|
31
43
|
* There are three icon sizes – small (16px), medium (24px), and large (32px).
|
|
@@ -34,6 +46,14 @@ export interface GlyphSizeProps {
|
|
|
34
46
|
*/
|
|
35
47
|
size?: Size;
|
|
36
48
|
}
|
|
49
|
+
export interface NewGlyphSpacingProps {
|
|
50
|
+
/**
|
|
51
|
+
* Icons have only one available size, but can be displayed with additional spacing.
|
|
52
|
+
* "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
|
|
53
|
+
* "spacious" provides accessible spacing between the icon and other elements.
|
|
54
|
+
*/
|
|
55
|
+
spacing?: 'none' | 'spacious';
|
|
56
|
+
}
|
|
37
57
|
export interface OtherGlyphProps {
|
|
38
58
|
/**
|
|
39
59
|
* Text used to describe what the icon is in context.
|
|
@@ -48,21 +68,69 @@ export interface OtherGlyphProps {
|
|
|
48
68
|
*/
|
|
49
69
|
testId?: string;
|
|
50
70
|
}
|
|
71
|
+
interface IconInternalGlyphProps {
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated
|
|
74
|
+
* Custom icon string that should contain an SVG element with set `viewBox`,
|
|
75
|
+
* `width`, and `height` attributes.
|
|
76
|
+
* It's recommended to use the `glyph` prop instead.
|
|
77
|
+
*/
|
|
78
|
+
dangerouslySetGlyph?: string;
|
|
79
|
+
}
|
|
51
80
|
export interface GlyphProps extends OtherGlyphProps, GlyphSizeProps, GlyphColorProps {
|
|
52
81
|
}
|
|
53
|
-
export interface
|
|
82
|
+
export interface NewGlyphProps extends OtherGlyphProps, NewGlyphSpacingProps, NewGlyphColorProps {
|
|
83
|
+
}
|
|
84
|
+
export interface IconProps extends GlyphProps, IconInternalGlyphProps {
|
|
54
85
|
/**
|
|
55
86
|
* Custom icon component that returns an SVG element with set `viewBox`,
|
|
56
87
|
* `width`, and `height` props.
|
|
57
88
|
*/
|
|
58
89
|
glyph?: ComponentType<CustomGlyphProps>;
|
|
90
|
+
}
|
|
91
|
+
export interface NewIconProps extends NewGlyphProps, IconInternalGlyphProps {
|
|
59
92
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* `width`, and `height` attributes.
|
|
63
|
-
* It's recommended to use the `glyph` prop instead.
|
|
93
|
+
* Legacy icon component to render when feature flag turned off.
|
|
94
|
+
* The legacy icon defaults to "medium" size, with `primaryColor` set to the value of the `color` prop.
|
|
64
95
|
*/
|
|
65
|
-
|
|
96
|
+
LEGACY_fallbackIcon?: ComponentType<IconProps>;
|
|
97
|
+
/**
|
|
98
|
+
* Secondary color to be rendered by the legacy fallback icon
|
|
99
|
+
*/
|
|
100
|
+
LEGACY_secondaryColor?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Size of the legacy fallback icon. Legacy icons default to "medium".
|
|
103
|
+
*/
|
|
104
|
+
LEGACY_size?: 'small' | 'medium';
|
|
105
|
+
/**
|
|
106
|
+
* Icon type. Used in icon build process.
|
|
107
|
+
*/
|
|
108
|
+
type?: 'utility' | 'global';
|
|
109
|
+
}
|
|
110
|
+
export type IconTileAppearance = 'gray' | 'blue' | 'teal' | 'green' | 'lime' | 'yellow' | 'orange' | 'red' | 'magenta' | 'purple' | 'grayBold' | 'blueBold' | 'tealBold' | 'greenBold' | 'limeBold' | 'yellowBold' | 'orangeBold' | 'redBold' | 'magentaBold' | 'purpleBold';
|
|
111
|
+
export type IconTileSize = '16' | '24' | '32' | '40' | '48';
|
|
112
|
+
export interface IconTileProps {
|
|
113
|
+
/**
|
|
114
|
+
* The icon to display
|
|
115
|
+
*/
|
|
116
|
+
icon: ComponentType<NewIconProps>;
|
|
117
|
+
/**
|
|
118
|
+
* The label for the icon
|
|
119
|
+
*/
|
|
120
|
+
label: string;
|
|
121
|
+
/**
|
|
122
|
+
* The appearance of the tile
|
|
123
|
+
*/
|
|
124
|
+
appearance: IconTileAppearance;
|
|
125
|
+
/**
|
|
126
|
+
* Size of the tile, in pixels. Defaults to "24".
|
|
127
|
+
* In a future release, semantic names will be introduced, and number values will be deprecated.
|
|
128
|
+
*/
|
|
129
|
+
size?: IconTileSize;
|
|
130
|
+
/**
|
|
131
|
+
* Shape of the tile background. Defaults to "square"
|
|
132
|
+
*/
|
|
133
|
+
shape?: 'square' | 'circle';
|
|
66
134
|
}
|
|
67
135
|
export interface SkeletonProps {
|
|
68
136
|
color?: string;
|
|
@@ -80,3 +148,4 @@ export interface SVGProps extends GlyphProps {
|
|
|
80
148
|
*/
|
|
81
149
|
children?: ReactNode;
|
|
82
150
|
}
|
|
151
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.3.1",
|
|
4
4
|
"description": "An icon is a visual representation of a command, device, directory, or common action.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/
|
|
33
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
34
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
34
35
|
"@babel/runtime": "^7.0.0",
|
|
35
36
|
"@emotion/react": "^11.7.1"
|
|
36
37
|
},
|
|
@@ -39,10 +40,12 @@
|
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@af/accessibility-testing": "*",
|
|
42
|
-
"@af/icon-build-process": "^0.
|
|
43
|
+
"@af/icon-build-process": "^0.6.0",
|
|
43
44
|
"@af/visual-regression": "*",
|
|
45
|
+
"@atlaskit/code": "^15.2.0",
|
|
44
46
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
45
|
-
"@atlaskit/logo": "^13.
|
|
47
|
+
"@atlaskit/logo": "^13.17.0",
|
|
48
|
+
"@atlaskit/primitives": "^6.3.0",
|
|
46
49
|
"@atlaskit/ssr": "*",
|
|
47
50
|
"@atlaskit/textfield": "^6.3.0",
|
|
48
51
|
"@atlaskit/theme": "^12.8.0",
|
|
@@ -50,6 +53,7 @@
|
|
|
50
53
|
"@atlaskit/tooltip": "^18.4.0",
|
|
51
54
|
"@atlaskit/visual-regression": "*",
|
|
52
55
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
56
|
+
"@atlassian/icon-lab": "^0.0.1",
|
|
53
57
|
"@babel/core": "^7.20.0",
|
|
54
58
|
"@emotion/babel-preset-css-prop": "^10.0.7",
|
|
55
59
|
"@testing-library/react": "^12.1.5",
|
|
@@ -96,12 +100,20 @@
|
|
|
96
100
|
"homepage": "https://atlassian.design/components/icon/",
|
|
97
101
|
"af:exports": {
|
|
98
102
|
"./base": "./src/entry-points/base.tsx",
|
|
103
|
+
"./UNSAFE_base-new": "./src/entry-points/base-new.tsx",
|
|
99
104
|
"./constants": "./src/entry-points/constants.tsx",
|
|
100
105
|
"./metadata": "./src/entry-points/metadata.tsx",
|
|
101
106
|
"./svg": "./src/entry-points/svg.tsx",
|
|
102
107
|
"./types": "./src/entry-points/types.tsx",
|
|
103
108
|
"./glyph": "./glyph",
|
|
109
|
+
"./core": "./core",
|
|
110
|
+
"./utility": "./utility",
|
|
104
111
|
".": "./src/index.tsx"
|
|
105
112
|
},
|
|
106
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
113
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
114
|
+
"platform-feature-flags": {
|
|
115
|
+
"platform.design-system-team.enable-new-icons": {
|
|
116
|
+
"type": "boolean"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
107
119
|
}
|
package/utility/add.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const AddIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default AddIcon;
|
package/utility/add.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "Add".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for creating and adding an object as a secondary action within a Menu Item.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const AddIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path stroke="currentColor" stroke-width="1.5" d="M6 6h5M6 6H1m5 0V1m0 5v5"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
AddIcon.displayName = 'AddIcon';
|
|
27
|
+
var _default = exports.default = AddIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const CheckCircleIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default CheckCircleIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "CheckCircle".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for Helper Messages in Forms.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const CheckCircleIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path fill="currentColor" fill-rule="evenodd" d="M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12m-.652-3.238 4.2-4.5-1.096-1.024L4.79 7.161 3.54 5.867 2.46 6.909l1.8 1.862a.75.75 0 0 0 1.088-.01" clip-rule="evenodd"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
CheckCircleIcon.displayName = 'CheckCircleIcon';
|
|
27
|
+
var _default = exports.default = CheckCircleIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const CheckMarkIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default CheckMarkIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "CheckMark".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: TBD
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const CheckMarkIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="M1.125 6.75 4 9.75l6.875-7.25"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
CheckMarkIcon.displayName = 'CheckMarkIcon';
|
|
27
|
+
var _default = exports.default = CheckMarkIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const ChevronDownIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default ChevronDownIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "ChevronDown".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for dropdown menus, selects, accordions, and expands.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const ChevronDownIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="M10.5 4 6 8.5 1.5 4"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
ChevronDownIcon.displayName = 'ChevronDownIcon';
|
|
27
|
+
var _default = exports.default = ChevronDownIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const ChevronLeftIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default ChevronLeftIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "ChevronLeft".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for collapse side nav and to indicate previous in dates.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const ChevronLeftIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="m8 10.75-4.5-4.5L8 1.75"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
ChevronLeftIcon.displayName = 'ChevronLeftIcon';
|
|
27
|
+
var _default = exports.default = ChevronLeftIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const ChevronRightIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default ChevronRightIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "ChevronRight".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for menu fly-outs and to indicate next in dates.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const ChevronRightIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="m4 10.75 4.5-4.5L4 1.75"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
ChevronRightIcon.displayName = 'ChevronRightIcon';
|
|
27
|
+
var _default = exports.default = ChevronRightIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const ChevronUpIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default ChevronUpIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "ChevronUp".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for accordions.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const ChevronUpIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="M10.5 8 6 3.5 1.5 8"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
ChevronUpIcon.displayName = 'ChevronUpIcon';
|
|
27
|
+
var _default = exports.default = ChevronUpIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const CrossCircleIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default CrossCircleIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "CrossCircle".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for Helper Messages in Forms.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const CrossCircleIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path fill="currentColor" fill-rule="evenodd" d="M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12m3.28-8.22L7.06 6l2.22 2.22-1.06 1.06L6 7.06 3.78 9.28 2.72 8.22 4.94 6 2.72 3.78l1.06-1.06L6 4.94l2.22-2.22z" clip-rule="evenodd"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
CrossCircleIcon.displayName = 'CrossCircleIcon';
|
|
27
|
+
var _default = exports.default = CrossCircleIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const CrossIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default CrossIcon;
|
package/utility/cross.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "Cross".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Known uses: remove tag.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const CrossIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path fill="currentColor" fill-rule="evenodd" d="m7.06 6 3.47-3.47-1.06-1.06L6 4.94 2.53 1.47 1.47 2.53 4.94 6 1.47 9.47l1.06 1.06L6 7.06l3.47 3.47 1.06-1.06z" clip-rule="evenodd"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
CrossIcon.displayName = 'CrossIcon';
|
|
27
|
+
var _default = exports.default = CrossIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const ErrorIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default ErrorIcon;
|
package/utility/error.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "Error".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for Helper Messages in Forms.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const ErrorIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path fill="currentColor" fill-rule="evenodd" d="M.384 5.116 5.116.384a1.25 1.25 0 0 1 1.768 0l4.732 4.732a1.25 1.25 0 0 1 0 1.768l-4.732 4.732a1.25 1.25 0 0 1-1.768 0L.384 6.884a1.25 1.25 0 0 1 0-1.768M6.75 2.5v4h-1.5v-4zM6 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2" clip-rule="evenodd"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
ErrorIcon.displayName = 'ErrorIcon';
|
|
27
|
+
var _default = exports.default = ErrorIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const InformationIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default InformationIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "Information".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for Helper Messages in Forms.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const InformationIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path fill="currentColor" fill-rule="evenodd" d="M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0m-7.5-.75H6a.75.75 0 0 1 .75.75v4h-1.5V6.75H4.5zM6 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2" clip-rule="evenodd"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
InformationIcon.displayName = 'InformationIcon';
|
|
27
|
+
var _default = exports.default = InformationIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@atlaskit/icon/UNSAFE_base-new';
|
|
4
|
+
|
|
5
|
+
declare const LinkExternalIcon: {
|
|
6
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'spacing' | 'type'>): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default LinkExternalIcon;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
/**
|
|
11
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
|
|
12
|
+
* Please reach out in #help-design-system before using these in production.
|
|
13
|
+
*
|
|
14
|
+
* Icon: "LinkExternal".
|
|
15
|
+
* Category: Multi-purpose
|
|
16
|
+
* Location: ADS
|
|
17
|
+
* Usage guidance: Reserved for links that open up a new tab as a secondary/tertiary action.
|
|
18
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
19
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
20
|
+
*/
|
|
21
|
+
const LinkExternalIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
22
|
+
dangerouslySetGlyph: `<path stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="M10.25 6.25v-4.5h-4.5m-2.25 0h-.81a.94.94 0 0 0-.94.94v6.62c0 .52.42.94.94.94h6.62c.52 0 .94-.42.94-.94V8.5M5 7l5.25-5.25"/>`,
|
|
23
|
+
type: 'utility'
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
25
|
+
}, props));
|
|
26
|
+
LinkExternalIcon.displayName = 'LinkExternalIcon';
|
|
27
|
+
var _default = exports.default = LinkExternalIcon;
|