@atlaskit/forge-react-types 0.49.0 → 0.49.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 +14 -0
- package/dist/cjs/components/__generated__/BoxProps.codegen.js +2 -1
- package/dist/es2019/components/__generated__/BoxProps.codegen.js +2 -1
- package/dist/esm/components/__generated__/BoxProps.codegen.js +2 -1
- package/dist/types/components/__generated__/BoxProps.codegen.d.ts +1 -1
- package/dist/types/components/__generated__/IconProps.codegen.d.ts +14 -14
- package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/IconProps.codegen.d.ts +14 -14
- package/package.json +4 -4
- package/scripts/codegen/codeGenerator.ts +11 -11
- package/scripts/typechecker.ts +5 -0
- package/src/components/__generated__/BoxProps.codegen.tsx +2 -1
- package/src/components/__generated__/IconProps.codegen.tsx +670 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.49.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`891214b90e1f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/891214b90e1f9) -
|
|
8
|
+
Add eslint-warn rule to codegen components with XCSS
|
|
9
|
+
|
|
10
|
+
## 0.49.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`088c1edf2e05e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/088c1edf2e05e) -
|
|
15
|
+
Fix icon type definition to re-sync exported icon types
|
|
16
|
+
|
|
3
17
|
## 0.49.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -8,10 +8,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
*
|
|
9
9
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
10
10
|
*
|
|
11
|
-
* @codegen <<SignedSource::
|
|
11
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
12
12
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
13
13
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
14
14
|
*/
|
|
15
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
15
16
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
10
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
10
11
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
10
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
10
11
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
@@ -3,32 +3,27 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - IconProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::42b00fe4bc342f0e5c0e6a6bf7b96357>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::3be966703b2c67904c3555642b31a72d>>
|
|
9
9
|
*/
|
|
10
10
|
import type { ActiveTokens } from '@atlaskit/tokens';
|
|
11
|
-
export type IconNext = 'add' | 'app-switcher' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'attachment' | 'audio' | 'backlog' | 'board' | 'calendar' | 'camera' | 'checkbox-indeterminate' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | '
|
|
11
|
+
export type IconNext = 'add' | 'app-switcher' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'attachment' | 'audio' | 'backlog' | 'board' | 'calendar' | 'camera' | 'checkbox-indeterminate' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'comment' | 'component' | 'copy' | 'cross-circle' | 'cross' | 'dashboard' | 'decision' | 'department' | 'download' | 'edit' | 'email' | 'emoji-add' | 'emoji' | 'feedback' | 'file' | 'filter' | 'flag-filled' | 'home' | 'image' | 'lightbulb' | 'link' | 'location' | 'marketplace' | 'menu' | 'notification' | 'office-building' | 'page' | 'people-group' | 'person' | 'premium' | 'question-circle' | 'redo' | 'refresh' | 'retry' | 'roadmap' | 'screen' | 'search' | 'send' | 'settings' | 'share' | 'sprint' | 'stopwatch' | 'task' | 'teams' | 'undo' | 'accessibility' | 'ai-agent' | 'ai-chat' | 'ai-generative-text-summary' | 'alert' | 'align-image-center' | 'align-image-left' | 'align-image-right' | 'align-text-center' | 'align-text-left' | 'align-text-right' | 'angle-brackets' | 'api' | 'app' | 'app-switcher-legacy' | 'apps' | 'archive-box' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-up-left' | 'arrow-up-right' | 'assets' | 'atlassian-intelligence' | 'automation' | 'basketball' | 'boards' | 'book-with-bookmark' | 'border' | 'branch' | 'briefcase' | 'bug' | 'calendar-plus' | 'capture' | 'card' | 'cash' | 'changes' | 'chart-bar' | 'chart-bubble' | 'chart-matrix' | 'chart-pie' | 'chart-trend' | 'chart-trend-down' | 'chart-trend-up' | 'chat-widget' | 'check-circle-unchecked' | 'check-mark' | 'checkbox-checked' | 'checkbox-unchecked' | 'chevron-double-left' | 'chevron-double-right' | 'child-work-items' | 'clipboard' | 'clock' | 'close' | 'cloud-arrow-up' | 'collapse-horizontal' | 'collapse-vertical' | 'comment-add' | 'commit' | 'compass' | 'content-width-narrow' | 'content-width-wide' | 'content-wrap-left' | 'content-wrap-right' | 'credit-card' | 'curly-brackets' | 'customize' | 'data-flow' | 'data-number' | 'data-string' | 'database' | 'defect' | 'delete' | 'device-mobile' | 'devices' | 'discovery' | 'drag-handle-horizontal' | 'drag-handle-vertical' | 'edit-bulk' | 'emoji-casual' | 'emoji-neutral' | 'emoji-remove' | 'epic' | 'exclamation-square' | 'expand-horizontal' | 'expand-vertical' | 'eye-open' | 'eye-open-filled' | 'eye-open-strikethrough' | 'feed' | 'field' | 'field-alert' | 'field-checkbox-group' | 'field-dropdown' | 'field-radio-group' | 'files' | 'flag' | 'flask' | 'focus-area' | 'folder-closed' | 'folder-open' | 'form' | 'fullscreen-enter' | 'fullscreen-exit' | 'glasses' | 'globe' | 'goal' | 'grid' | 'grow-diagonal' | 'grow-horizontal' | 'grow-vertical' | 'hashtag' | 'headphones' | 'heart' | 'highlight' | 'image-fullscreen' | 'image-inline' | 'image-scaled' | 'inbox' | 'incident' | 'information' | 'information-circle' | 'key-result' | 'layout-one-column' | 'layout-three-columns' | 'layout-three-columns-sidebars' | 'layout-two-columns' | 'layout-two-columns-sidebar-left' | 'layout-two-columns-sidebar-right' | 'library' | 'link-broken' | 'link-external' | 'list-bulleted' | 'list-checklist' | 'list-numbered' | 'lobby-bell' | 'lock-locked' | 'lock-unlocked' | 'log-in' | 'log-out' | 'magic-wand' | 'markdown' | 'maximize' | 'megaphone' | 'merge-failure' | 'merge-success' | 'microphone' | 'minimize' | 'minus' | 'minus-square' | 'node' | 'note' | 'notification-muted' | 'objective' | 'on-call' | 'operations' | 'pages' | 'paint-bucket' | 'paint-palette' | 'panel-left' | 'panel-right' | 'pen' | 'person-add' | 'person-added' | 'person-avatar' | 'person-offboard' | 'person-remove' | 'person-warning' | 'phone' | 'pin' | 'pin-filled' | 'plus-square' | 'power-plug' | 'presenter-mode' | 'printer' | 'priority-blocker' | 'priority-critical' | 'priority-high' | 'priority-highest' | 'priority-low' | 'priority-lowest' | 'priority-major' | 'priority-medium' | 'priority-minor' | 'priority-trivial' | 'problem' | 'project' | 'project-status' | 'projection-screen' | 'pull-request' | 'pulse' | 'quotation-mark' | 'radio-checked' | 'radio-unchecked' | 'release' | 'rovo-chat' | 'scales' | 'scorecard' | 'screen-plus' | 'shapes' | 'shield' | 'shield-strikethrough' | 'show-more-horizontal' | 'show-more-vertical' | 'shrink-diagonal' | 'shrink-horizontal' | 'shrink-vertical' | 'sidebar-collapse' | 'sidebar-expand' | 'smart-link' | 'smart-link-card' | 'smart-link-embed' | 'smart-link-inline' | 'smart-link-list' | 'snippet' | 'sort-ascending' | 'sort-descending' | 'spreadsheet' | 'star-starred' | 'star-unstarred' | 'status-discovery' | 'status-error' | 'status-information' | 'status-success' | 'status-verified' | 'status-warning' | 'story' | 'stroke-weight-extra-large' | 'stroke-weight-large' | 'stroke-weight-medium' | 'stroke-weight-small' | 'subtasks' | 'success' | 'support' | 'table-cell-clear' | 'table-cell-merge' | 'table-cell-split' | 'table-column-add-left' | 'table-column-add-right' | 'table-column-delete' | 'table-column-move-left' | 'table-column-move-right' | 'table-columns-distribute' | 'table-row-add-above' | 'table-row-add-below' | 'table-row-delete' | 'table-row-move-down' | 'table-row-move-up' | 'tag' | 'takeout-food' | 'target' | 'task-in-progress' | 'task-to-do' | 'tasks' | 'text' | 'text-bold' | 'text-heading' | 'text-indent-left' | 'text-indent-right' | 'text-italic' | 'text-shorten' | 'text-spellcheck' | 'text-strikethrough' | 'text-style' | 'text-underline' | 'text-wrap' | 'theme' | 'thumbs-down' | 'thumbs-up' | 'timeline' | 'tools' | 'transition' | 'translate' | 'tree' | 'vehicle-car' | 'video' | 'video-next' | 'video-next-overlay' | 'video-pause' | 'video-pause-overlay' | 'video-play' | 'video-play-overlay' | 'video-previous' | 'video-previous-overlay' | 'video-skip-backward-fifteen' | 'video-skip-backward-ten' | 'video-skip-forward-fifteen' | 'video-skip-forward-ten' | 'video-stop' | 'video-stop-overlay' | 'volume-high' | 'volume-low' | 'volume-muted' | 'whiteboard' | 'work-item' | 'work-items' | 'zoom-in' | 'zoom-out';
|
|
12
12
|
export type IconRemoved = 'billing-filled' | 'billing' | 'bitbucket-builds' | 'bitbucket-clone' | 'bitbucket-compare' | 'bitbucket-forks' | 'bitbucket-output' | 'bitbucket-pipelines' | 'camera-rotate' | 'camera-take-picture' | 'canvas' | 'hipchat-chevron-double-down' | 'hipchat-chevron-double-up' | 'dropbox' | 'editor-addon' | 'editor-advanced' | 'editor-file-preview' | 'editor-image-border' | 'editor-remove-emoji' | 'editor-strikethrough' | 'editor-table-display-options' | 'editor-text-color' | 'editor-underline' | 'emoji-atlassian' | 'folder-filled' | 'following' | 'googledrive' | 'gsuite' | 'highlights' | 'image-border' | 'jira-failed-build-status' | 'list' | 'hipchat-media-attachment-count' | 'media-services-annotate' | 'media-services-arrow' | 'media-services-blur' | 'media-services-brush' | 'media-services-button-option' | 'media-services-line-thickness' | 'media-services-no-image' | 'media-services-open-mediaviewer' | 'media-services-oval' | 'media-services-pdf' | 'media-services-rectangle' | 'media-services-text' | 'media-services-unknown' | 'media-services-zip' | 'mention' | 'notification-all' | 'pdf' | 'person-with-circle' | 'person-with-cross' | 'portfolio' | 'presence-active' | 'presence-busy' | 'presence-unavailable' | 'status' | 'vid-audio-muted' | 'vid-backward' | 'vid-camera-off' | 'vid-connection-circle' | 'vid-forward' | 'vid-hang-up' | 'vid-hd-circle' | 'vid-raised-hand' | 'vid-share-screen' | 'vid-speaking-circle';
|
|
13
|
-
export type IconReplaced = 'activity' | 'add-circle' | 'add-item' | 'addon' | 'editor-align-center' | 'editor-align-left' | 'editor-align-right' | 'app-access' | 'archive' | 'arrow-down-circle' | 'arrow-left-circle' | 'arrow-right-circle' | 'arrow-up-circle' | 'audio-circle' | 'hipchat-audio-only' | 'bitbucket-branches' | 'bitbucket-commits' | 'bitbucket-pullrequests' | 'bitbucket-repos' | 'bitbucket-snippets' | 'bitbucket-source' | 'book' | 'bullet-list' | 'calendar-filled' | 'camera-filled' | 'checkbox' | 'check-circle' | 'check-circle-outline' | 'check' | 'chevron-down-circle' | 'hipchat-chevron-down' | 'chevron-left-circle' | 'chevron-left-large' | 'chevron-right-circle' | 'chevron-right-large' | 'chevron-up-circle' | 'hipchat-chevron-up' | '
|
|
13
|
+
export type IconReplaced = 'activity' | 'add-circle' | 'add-item' | 'addon' | 'editor-align-center' | 'editor-align-left' | 'editor-align-right' | 'app-access' | 'archive' | 'arrow-down-circle' | 'arrow-left-circle' | 'arrow-right-circle' | 'arrow-up-circle' | 'audio-circle' | 'hipchat-audio-only' | 'bitbucket-branches' | 'bitbucket-commits' | 'bitbucket-pullrequests' | 'bitbucket-repos' | 'bitbucket-snippets' | 'bitbucket-source' | 'book' | 'bullet-list' | 'calendar-filled' | 'camera-filled' | 'checkbox' | 'check-circle' | 'check-circle-outline' | 'check' | 'chevron-down-circle' | 'hipchat-chevron-down' | 'chevron-left-circle' | 'chevron-left-large' | 'chevron-right-circle' | 'chevron-right-large' | 'chevron-up-circle' | 'hipchat-chevron-up' | 'child-issues' | 'code' | 'creditcard-filled' | 'creditcard' | 'detail-view' | 'hipchat-dial-out' | 'discover-filled' | 'discover' | 'document-filled' | 'document' | 'documents' | 'drag-handler' | 'edit-filled' | 'editor-add' | 'editor-align-image-center' | 'editor-align-image-left' | 'editor-align-image-right' | 'editor-attachment' | 'editor-background-color' | 'editor-bold' | 'editor-bullet-list' | 'editor-close' | 'editor-code' | 'editor-collapse' | 'editor-date' | 'editor-decision' | 'editor-divider' | 'editor-done' | 'editor-edit' | 'editor-emoji' | 'editor-error' | 'editor-expand' | 'editor-feedback' | 'editor-file' | 'editor-help' | 'editor-hint' | 'editor-horizontal-rule' | 'editor-image' | 'editor-image-resize' | 'editor-indent' | 'editor-info' | 'editor-italic' | 'editor-layout-single' | 'editor-layout-three-equal' | 'editor-layout-three-with-sidebars' | 'editor-layout-two-equal' | 'editor-layout-two-left-sidebar' | 'editor-layout-two-right-sidebar' | 'editor-link' | 'editor-media-center' | 'editor-media-full-width' | 'editor-media-wide' | 'editor-media-wrap-left' | 'editor-media-wrap-right' | 'editor-mention' | 'editor-more' | 'editor-note' | 'editor-number-list' | 'editor-open' | 'editor-outdent' | 'editor-panel' | 'editor-photo' | 'editor-quote' | 'editor-recent' | 'editor-redo' | 'editor-remove' | 'editor-search' | 'editor-settings' | 'editor-success' | 'editor-table' | 'editor-task' | 'editor-text-style' | 'editor-undo' | 'editor-unlink' | 'editor-warning' | 'emoji-activity' | 'emoji-custom' | 'emoji-emoji' | 'emoji-flags' | 'emoji-food' | 'emoji-frequent' | 'emoji-keyboard' | 'emoji-nature' | 'emoji-objects' | 'emoji-people' | 'emoji-productivity' | 'emoji-symbols' | 'emoji-travel' | 'error' | 'export' | 'folder' | 'followers' | 'graph-bar' | 'graph-line' | 'home-circle' | 'image-resize' | 'info' | 'invite-team' | 'issue' | 'issue-raise' | 'issues' | 'jira-capture' | 'jira-labs' | 'jira-test-session' | 'label' | 'lightbulb-filled' | 'like' | 'link-filled' | 'hipchat-lobby' | 'lock-circle' | 'lock-filled' | 'lock' | 'media-services-actual-size' | 'media-services-add-comment' | 'media-services-audio' | 'media-services-code' | 'media-services-document' | 'media-services-filter' | 'media-services-fit-to-page' | 'media-services-full-screen' | 'media-services-grid' | 'media-services-image' | 'media-services-line' | 'media-services-preselected' | 'media-services-presentation' | 'media-services-scale-large' | 'media-services-scale-small' | 'media-services-spreadsheet' | 'media-services-video' | 'media-services-zoom-in' | 'media-services-zoom-out' | 'menu-expand' | 'mobile' | 'more' | 'more-vertical' | 'notification-direct' | 'office-building-filled' | 'open' | 'hipchat-outgoing-sound' | 'overview' | 'page-filled' | 'people' | 'person-circle' | 'person-with-tick' | 'preferences' | 'question' | 'questions' | 'queues' | 'quote' | 'radio' | 'recent' | 'room-menu' | 'schedule-filled' | 'schedule' | 'hipchat-sd-video' | 'select-clear' | 'ship' | 'shortcut' | 'sign-in' | 'sign-out' | 'star-filled' | 'star' | 'star-large' | 'subtask' | 'suitcase' | 'switcher' | 'table' | 'trash' | 'tray' | 'unlink' | 'unlock-circle' | 'unlock-filled' | 'unlock' | 'upload' | 'user-avatar-circle' | 'vid-audio-on' | 'vid-camera-on' | 'video-circle' | 'video-filled' | 'vid-full-screen-off' | 'vid-full-screen-on' | 'vid-pause' | 'vid-play' | 'vid-volume-full' | 'vid-volume-half' | 'vid-volume-muted' | 'warning' | 'watch-filled' | 'watch' | 'world' | 'world-small';
|
|
14
14
|
type Glyph = IconNext | IconRemoved | IconReplaced;
|
|
15
15
|
export type IconColor = Extract<ActiveTokens, `color.${string}`>;
|
|
16
|
-
export
|
|
16
|
+
export type IconProps = {
|
|
17
|
+
color?: IconColor;
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
-
* This pixel size refers to the canvas the icon sits on, not the size of the icon shape itself.
|
|
19
|
+
* Name of the icon to be rendered.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
glyph: Glyph;
|
|
22
22
|
/**
|
|
23
23
|
* Text used to describe what the icon is in context. A label is needed when there is no pairing visible text next to the icon.
|
|
24
24
|
* An empty string marks the icon as presentation only.
|
|
25
25
|
*/
|
|
26
26
|
label: string;
|
|
27
|
-
/**
|
|
28
|
-
* Name of the icon to be rendered.
|
|
29
|
-
*/
|
|
30
|
-
glyph: Glyph;
|
|
31
|
-
color?: IconColor;
|
|
32
27
|
/**
|
|
33
28
|
* @deprecated the "primaryColor" prop is deprecated and will be removed on the 22nd of December 2025. Please use the "color" prop instead. For more information, visit: https://developer.atlassian.com/platform/forge/ui-kit/components/icon/.
|
|
34
29
|
*/
|
|
@@ -38,7 +33,12 @@ export interface IconProps {
|
|
|
38
33
|
* @deprecated the "secondaryColor" prop is deprecated and will be removed on the 22nd of December 2025. Please refactor your code to avoid using this prop.
|
|
39
34
|
*/
|
|
40
35
|
secondaryColor?: IconColor;
|
|
41
|
-
|
|
36
|
+
/**
|
|
37
|
+
* There are three icon sizes: `small` (16px), `medium` (24px), and `large` (32px). However "large" is now deprecated and will be removed on the 22nd of December 2025.
|
|
38
|
+
* This pixel size refers to the canvas the icon sits on, not the size of the icon shape itself.
|
|
39
|
+
*/
|
|
40
|
+
size?: 'small' | 'medium' | 'large';
|
|
41
|
+
};
|
|
42
42
|
/**
|
|
43
43
|
* An icon is a visual representation of a command, device, directory, or common action.
|
|
44
44
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
@@ -3,32 +3,27 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - IconProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::42b00fe4bc342f0e5c0e6a6bf7b96357>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::3be966703b2c67904c3555642b31a72d>>
|
|
9
9
|
*/
|
|
10
10
|
import type { ActiveTokens } from '@atlaskit/tokens';
|
|
11
|
-
export type IconNext = 'add' | 'app-switcher' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'attachment' | 'audio' | 'backlog' | 'board' | 'calendar' | 'camera' | 'checkbox-indeterminate' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | '
|
|
11
|
+
export type IconNext = 'add' | 'app-switcher' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'attachment' | 'audio' | 'backlog' | 'board' | 'calendar' | 'camera' | 'checkbox-indeterminate' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'comment' | 'component' | 'copy' | 'cross-circle' | 'cross' | 'dashboard' | 'decision' | 'department' | 'download' | 'edit' | 'email' | 'emoji-add' | 'emoji' | 'feedback' | 'file' | 'filter' | 'flag-filled' | 'home' | 'image' | 'lightbulb' | 'link' | 'location' | 'marketplace' | 'menu' | 'notification' | 'office-building' | 'page' | 'people-group' | 'person' | 'premium' | 'question-circle' | 'redo' | 'refresh' | 'retry' | 'roadmap' | 'screen' | 'search' | 'send' | 'settings' | 'share' | 'sprint' | 'stopwatch' | 'task' | 'teams' | 'undo' | 'accessibility' | 'ai-agent' | 'ai-chat' | 'ai-generative-text-summary' | 'alert' | 'align-image-center' | 'align-image-left' | 'align-image-right' | 'align-text-center' | 'align-text-left' | 'align-text-right' | 'angle-brackets' | 'api' | 'app' | 'app-switcher-legacy' | 'apps' | 'archive-box' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-up-left' | 'arrow-up-right' | 'assets' | 'atlassian-intelligence' | 'automation' | 'basketball' | 'boards' | 'book-with-bookmark' | 'border' | 'branch' | 'briefcase' | 'bug' | 'calendar-plus' | 'capture' | 'card' | 'cash' | 'changes' | 'chart-bar' | 'chart-bubble' | 'chart-matrix' | 'chart-pie' | 'chart-trend' | 'chart-trend-down' | 'chart-trend-up' | 'chat-widget' | 'check-circle-unchecked' | 'check-mark' | 'checkbox-checked' | 'checkbox-unchecked' | 'chevron-double-left' | 'chevron-double-right' | 'child-work-items' | 'clipboard' | 'clock' | 'close' | 'cloud-arrow-up' | 'collapse-horizontal' | 'collapse-vertical' | 'comment-add' | 'commit' | 'compass' | 'content-width-narrow' | 'content-width-wide' | 'content-wrap-left' | 'content-wrap-right' | 'credit-card' | 'curly-brackets' | 'customize' | 'data-flow' | 'data-number' | 'data-string' | 'database' | 'defect' | 'delete' | 'device-mobile' | 'devices' | 'discovery' | 'drag-handle-horizontal' | 'drag-handle-vertical' | 'edit-bulk' | 'emoji-casual' | 'emoji-neutral' | 'emoji-remove' | 'epic' | 'exclamation-square' | 'expand-horizontal' | 'expand-vertical' | 'eye-open' | 'eye-open-filled' | 'eye-open-strikethrough' | 'feed' | 'field' | 'field-alert' | 'field-checkbox-group' | 'field-dropdown' | 'field-radio-group' | 'files' | 'flag' | 'flask' | 'focus-area' | 'folder-closed' | 'folder-open' | 'form' | 'fullscreen-enter' | 'fullscreen-exit' | 'glasses' | 'globe' | 'goal' | 'grid' | 'grow-diagonal' | 'grow-horizontal' | 'grow-vertical' | 'hashtag' | 'headphones' | 'heart' | 'highlight' | 'image-fullscreen' | 'image-inline' | 'image-scaled' | 'inbox' | 'incident' | 'information' | 'information-circle' | 'key-result' | 'layout-one-column' | 'layout-three-columns' | 'layout-three-columns-sidebars' | 'layout-two-columns' | 'layout-two-columns-sidebar-left' | 'layout-two-columns-sidebar-right' | 'library' | 'link-broken' | 'link-external' | 'list-bulleted' | 'list-checklist' | 'list-numbered' | 'lobby-bell' | 'lock-locked' | 'lock-unlocked' | 'log-in' | 'log-out' | 'magic-wand' | 'markdown' | 'maximize' | 'megaphone' | 'merge-failure' | 'merge-success' | 'microphone' | 'minimize' | 'minus' | 'minus-square' | 'node' | 'note' | 'notification-muted' | 'objective' | 'on-call' | 'operations' | 'pages' | 'paint-bucket' | 'paint-palette' | 'panel-left' | 'panel-right' | 'pen' | 'person-add' | 'person-added' | 'person-avatar' | 'person-offboard' | 'person-remove' | 'person-warning' | 'phone' | 'pin' | 'pin-filled' | 'plus-square' | 'power-plug' | 'presenter-mode' | 'printer' | 'priority-blocker' | 'priority-critical' | 'priority-high' | 'priority-highest' | 'priority-low' | 'priority-lowest' | 'priority-major' | 'priority-medium' | 'priority-minor' | 'priority-trivial' | 'problem' | 'project' | 'project-status' | 'projection-screen' | 'pull-request' | 'pulse' | 'quotation-mark' | 'radio-checked' | 'radio-unchecked' | 'release' | 'rovo-chat' | 'scales' | 'scorecard' | 'screen-plus' | 'shapes' | 'shield' | 'shield-strikethrough' | 'show-more-horizontal' | 'show-more-vertical' | 'shrink-diagonal' | 'shrink-horizontal' | 'shrink-vertical' | 'sidebar-collapse' | 'sidebar-expand' | 'smart-link' | 'smart-link-card' | 'smart-link-embed' | 'smart-link-inline' | 'smart-link-list' | 'snippet' | 'sort-ascending' | 'sort-descending' | 'spreadsheet' | 'star-starred' | 'star-unstarred' | 'status-discovery' | 'status-error' | 'status-information' | 'status-success' | 'status-verified' | 'status-warning' | 'story' | 'stroke-weight-extra-large' | 'stroke-weight-large' | 'stroke-weight-medium' | 'stroke-weight-small' | 'subtasks' | 'success' | 'support' | 'table-cell-clear' | 'table-cell-merge' | 'table-cell-split' | 'table-column-add-left' | 'table-column-add-right' | 'table-column-delete' | 'table-column-move-left' | 'table-column-move-right' | 'table-columns-distribute' | 'table-row-add-above' | 'table-row-add-below' | 'table-row-delete' | 'table-row-move-down' | 'table-row-move-up' | 'tag' | 'takeout-food' | 'target' | 'task-in-progress' | 'task-to-do' | 'tasks' | 'text' | 'text-bold' | 'text-heading' | 'text-indent-left' | 'text-indent-right' | 'text-italic' | 'text-shorten' | 'text-spellcheck' | 'text-strikethrough' | 'text-style' | 'text-underline' | 'text-wrap' | 'theme' | 'thumbs-down' | 'thumbs-up' | 'timeline' | 'tools' | 'transition' | 'translate' | 'tree' | 'vehicle-car' | 'video' | 'video-next' | 'video-next-overlay' | 'video-pause' | 'video-pause-overlay' | 'video-play' | 'video-play-overlay' | 'video-previous' | 'video-previous-overlay' | 'video-skip-backward-fifteen' | 'video-skip-backward-ten' | 'video-skip-forward-fifteen' | 'video-skip-forward-ten' | 'video-stop' | 'video-stop-overlay' | 'volume-high' | 'volume-low' | 'volume-muted' | 'whiteboard' | 'work-item' | 'work-items' | 'zoom-in' | 'zoom-out';
|
|
12
12
|
export type IconRemoved = 'billing-filled' | 'billing' | 'bitbucket-builds' | 'bitbucket-clone' | 'bitbucket-compare' | 'bitbucket-forks' | 'bitbucket-output' | 'bitbucket-pipelines' | 'camera-rotate' | 'camera-take-picture' | 'canvas' | 'hipchat-chevron-double-down' | 'hipchat-chevron-double-up' | 'dropbox' | 'editor-addon' | 'editor-advanced' | 'editor-file-preview' | 'editor-image-border' | 'editor-remove-emoji' | 'editor-strikethrough' | 'editor-table-display-options' | 'editor-text-color' | 'editor-underline' | 'emoji-atlassian' | 'folder-filled' | 'following' | 'googledrive' | 'gsuite' | 'highlights' | 'image-border' | 'jira-failed-build-status' | 'list' | 'hipchat-media-attachment-count' | 'media-services-annotate' | 'media-services-arrow' | 'media-services-blur' | 'media-services-brush' | 'media-services-button-option' | 'media-services-line-thickness' | 'media-services-no-image' | 'media-services-open-mediaviewer' | 'media-services-oval' | 'media-services-pdf' | 'media-services-rectangle' | 'media-services-text' | 'media-services-unknown' | 'media-services-zip' | 'mention' | 'notification-all' | 'pdf' | 'person-with-circle' | 'person-with-cross' | 'portfolio' | 'presence-active' | 'presence-busy' | 'presence-unavailable' | 'status' | 'vid-audio-muted' | 'vid-backward' | 'vid-camera-off' | 'vid-connection-circle' | 'vid-forward' | 'vid-hang-up' | 'vid-hd-circle' | 'vid-raised-hand' | 'vid-share-screen' | 'vid-speaking-circle';
|
|
13
|
-
export type IconReplaced = 'activity' | 'add-circle' | 'add-item' | 'addon' | 'editor-align-center' | 'editor-align-left' | 'editor-align-right' | 'app-access' | 'archive' | 'arrow-down-circle' | 'arrow-left-circle' | 'arrow-right-circle' | 'arrow-up-circle' | 'audio-circle' | 'hipchat-audio-only' | 'bitbucket-branches' | 'bitbucket-commits' | 'bitbucket-pullrequests' | 'bitbucket-repos' | 'bitbucket-snippets' | 'bitbucket-source' | 'book' | 'bullet-list' | 'calendar-filled' | 'camera-filled' | 'checkbox' | 'check-circle' | 'check-circle-outline' | 'check' | 'chevron-down-circle' | 'hipchat-chevron-down' | 'chevron-left-circle' | 'chevron-left-large' | 'chevron-right-circle' | 'chevron-right-large' | 'chevron-up-circle' | 'hipchat-chevron-up' | '
|
|
13
|
+
export type IconReplaced = 'activity' | 'add-circle' | 'add-item' | 'addon' | 'editor-align-center' | 'editor-align-left' | 'editor-align-right' | 'app-access' | 'archive' | 'arrow-down-circle' | 'arrow-left-circle' | 'arrow-right-circle' | 'arrow-up-circle' | 'audio-circle' | 'hipchat-audio-only' | 'bitbucket-branches' | 'bitbucket-commits' | 'bitbucket-pullrequests' | 'bitbucket-repos' | 'bitbucket-snippets' | 'bitbucket-source' | 'book' | 'bullet-list' | 'calendar-filled' | 'camera-filled' | 'checkbox' | 'check-circle' | 'check-circle-outline' | 'check' | 'chevron-down-circle' | 'hipchat-chevron-down' | 'chevron-left-circle' | 'chevron-left-large' | 'chevron-right-circle' | 'chevron-right-large' | 'chevron-up-circle' | 'hipchat-chevron-up' | 'child-issues' | 'code' | 'creditcard-filled' | 'creditcard' | 'detail-view' | 'hipchat-dial-out' | 'discover-filled' | 'discover' | 'document-filled' | 'document' | 'documents' | 'drag-handler' | 'edit-filled' | 'editor-add' | 'editor-align-image-center' | 'editor-align-image-left' | 'editor-align-image-right' | 'editor-attachment' | 'editor-background-color' | 'editor-bold' | 'editor-bullet-list' | 'editor-close' | 'editor-code' | 'editor-collapse' | 'editor-date' | 'editor-decision' | 'editor-divider' | 'editor-done' | 'editor-edit' | 'editor-emoji' | 'editor-error' | 'editor-expand' | 'editor-feedback' | 'editor-file' | 'editor-help' | 'editor-hint' | 'editor-horizontal-rule' | 'editor-image' | 'editor-image-resize' | 'editor-indent' | 'editor-info' | 'editor-italic' | 'editor-layout-single' | 'editor-layout-three-equal' | 'editor-layout-three-with-sidebars' | 'editor-layout-two-equal' | 'editor-layout-two-left-sidebar' | 'editor-layout-two-right-sidebar' | 'editor-link' | 'editor-media-center' | 'editor-media-full-width' | 'editor-media-wide' | 'editor-media-wrap-left' | 'editor-media-wrap-right' | 'editor-mention' | 'editor-more' | 'editor-note' | 'editor-number-list' | 'editor-open' | 'editor-outdent' | 'editor-panel' | 'editor-photo' | 'editor-quote' | 'editor-recent' | 'editor-redo' | 'editor-remove' | 'editor-search' | 'editor-settings' | 'editor-success' | 'editor-table' | 'editor-task' | 'editor-text-style' | 'editor-undo' | 'editor-unlink' | 'editor-warning' | 'emoji-activity' | 'emoji-custom' | 'emoji-emoji' | 'emoji-flags' | 'emoji-food' | 'emoji-frequent' | 'emoji-keyboard' | 'emoji-nature' | 'emoji-objects' | 'emoji-people' | 'emoji-productivity' | 'emoji-symbols' | 'emoji-travel' | 'error' | 'export' | 'folder' | 'followers' | 'graph-bar' | 'graph-line' | 'home-circle' | 'image-resize' | 'info' | 'invite-team' | 'issue' | 'issue-raise' | 'issues' | 'jira-capture' | 'jira-labs' | 'jira-test-session' | 'label' | 'lightbulb-filled' | 'like' | 'link-filled' | 'hipchat-lobby' | 'lock-circle' | 'lock-filled' | 'lock' | 'media-services-actual-size' | 'media-services-add-comment' | 'media-services-audio' | 'media-services-code' | 'media-services-document' | 'media-services-filter' | 'media-services-fit-to-page' | 'media-services-full-screen' | 'media-services-grid' | 'media-services-image' | 'media-services-line' | 'media-services-preselected' | 'media-services-presentation' | 'media-services-scale-large' | 'media-services-scale-small' | 'media-services-spreadsheet' | 'media-services-video' | 'media-services-zoom-in' | 'media-services-zoom-out' | 'menu-expand' | 'mobile' | 'more' | 'more-vertical' | 'notification-direct' | 'office-building-filled' | 'open' | 'hipchat-outgoing-sound' | 'overview' | 'page-filled' | 'people' | 'person-circle' | 'person-with-tick' | 'preferences' | 'question' | 'questions' | 'queues' | 'quote' | 'radio' | 'recent' | 'room-menu' | 'schedule-filled' | 'schedule' | 'hipchat-sd-video' | 'select-clear' | 'ship' | 'shortcut' | 'sign-in' | 'sign-out' | 'star-filled' | 'star' | 'star-large' | 'subtask' | 'suitcase' | 'switcher' | 'table' | 'trash' | 'tray' | 'unlink' | 'unlock-circle' | 'unlock-filled' | 'unlock' | 'upload' | 'user-avatar-circle' | 'vid-audio-on' | 'vid-camera-on' | 'video-circle' | 'video-filled' | 'vid-full-screen-off' | 'vid-full-screen-on' | 'vid-pause' | 'vid-play' | 'vid-volume-full' | 'vid-volume-half' | 'vid-volume-muted' | 'warning' | 'watch-filled' | 'watch' | 'world' | 'world-small';
|
|
14
14
|
type Glyph = IconNext | IconRemoved | IconReplaced;
|
|
15
15
|
export type IconColor = Extract<ActiveTokens, `color.${string}`>;
|
|
16
|
-
export
|
|
16
|
+
export type IconProps = {
|
|
17
|
+
color?: IconColor;
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
-
* This pixel size refers to the canvas the icon sits on, not the size of the icon shape itself.
|
|
19
|
+
* Name of the icon to be rendered.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
glyph: Glyph;
|
|
22
22
|
/**
|
|
23
23
|
* Text used to describe what the icon is in context. A label is needed when there is no pairing visible text next to the icon.
|
|
24
24
|
* An empty string marks the icon as presentation only.
|
|
25
25
|
*/
|
|
26
26
|
label: string;
|
|
27
|
-
/**
|
|
28
|
-
* Name of the icon to be rendered.
|
|
29
|
-
*/
|
|
30
|
-
glyph: Glyph;
|
|
31
|
-
color?: IconColor;
|
|
32
27
|
/**
|
|
33
28
|
* @deprecated the "primaryColor" prop is deprecated and will be removed on the 22nd of December 2025. Please use the "color" prop instead. For more information, visit: https://developer.atlassian.com/platform/forge/ui-kit/components/icon/.
|
|
34
29
|
*/
|
|
@@ -38,7 +33,12 @@ export interface IconProps {
|
|
|
38
33
|
* @deprecated the "secondaryColor" prop is deprecated and will be removed on the 22nd of December 2025. Please refactor your code to avoid using this prop.
|
|
39
34
|
*/
|
|
40
35
|
secondaryColor?: IconColor;
|
|
41
|
-
|
|
36
|
+
/**
|
|
37
|
+
* There are three icon sizes: `small` (16px), `medium` (24px), and `large` (32px). However "large" is now deprecated and will be removed on the 22nd of December 2025.
|
|
38
|
+
* This pixel size refers to the canvas the icon sits on, not the size of the icon shape itself.
|
|
39
|
+
*/
|
|
40
|
+
size?: 'small' | 'medium' | 'large';
|
|
41
|
+
};
|
|
42
42
|
/**
|
|
43
43
|
* An icon is a visual representation of a command, device, directory, or common action.
|
|
44
44
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/forge-react-types",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.2",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/form": "^14.3.0",
|
|
29
29
|
"@atlaskit/inline-edit": "^15.3.0",
|
|
30
30
|
"@atlaskit/modal-dialog": "^14.7.0",
|
|
31
|
-
"@atlaskit/navigation-system": "^5.
|
|
31
|
+
"@atlaskit/navigation-system": "^5.10.0",
|
|
32
32
|
"@atlaskit/popup": "^4.6.0",
|
|
33
33
|
"@atlaskit/primitives": "^16.4.0",
|
|
34
34
|
"@atlaskit/progress-bar": "^4.0.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/textarea": "^8.1.0",
|
|
44
44
|
"@atlaskit/textfield": "^8.1.0",
|
|
45
45
|
"@atlaskit/toggle": "^15.1.0",
|
|
46
|
-
"@atlaskit/tokens": "^8.
|
|
46
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
47
47
|
"@atlaskit/tooltip": "^20.10.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0"
|
|
49
49
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@atlassian/codegen": "^0.1.0",
|
|
55
|
-
"@atlassian/forge-ui": "^32.
|
|
55
|
+
"@atlassian/forge-ui": "^32.52.0",
|
|
56
56
|
"@types/node": "~22.17.1",
|
|
57
57
|
"lodash": "^4.17.21",
|
|
58
58
|
"react": "^18.2.0",
|
|
@@ -958,17 +958,17 @@ const handleXCSSProp: CodeConsolidator = ({
|
|
|
958
958
|
.filter((code) => !!code)
|
|
959
959
|
.join('\n');
|
|
960
960
|
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
961
|
+
return [
|
|
962
|
+
'/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */\n/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */',
|
|
963
|
+
importCode,
|
|
964
|
+
xcssValidatorVariableDeclarationCode,
|
|
965
|
+
externalTypesCode,
|
|
966
|
+
dependentTypeCode,
|
|
967
|
+
componentPropCode,
|
|
968
|
+
componentTypeCode,
|
|
969
|
+
]
|
|
970
|
+
.filter((code) => !!code)
|
|
971
|
+
.join('\n\n');
|
|
972
972
|
} finally {
|
|
973
973
|
sourceFile.getProject().removeSourceFile(utilsFile);
|
|
974
974
|
}
|
package/scripts/typechecker.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
type HeadingProps,
|
|
11
11
|
type LozengeProps,
|
|
12
12
|
type RangeProps,
|
|
13
|
+
type IconProps,
|
|
13
14
|
} from '@atlassian/forge-ui/src/components/UIKit';
|
|
14
15
|
import { type BadgeProps as GeneratedBadgeProps } from '../src/components/__generated__/BadgeProps.codegen';
|
|
15
16
|
import { type CalendarProps as GeneratedCalendarProps } from '../src/components/__generated__/CalendarProps.codegen';
|
|
@@ -21,6 +22,7 @@ import { type ErrorMessageProps as GeneratedErrorMessageProps } from '../src/com
|
|
|
21
22
|
import { type HeadingProps as GeneratedHeadingProps } from '../src/components/__generated__/HeadingProps.codegen';
|
|
22
23
|
import { type LozengeProps as GeneratedLozengeProps } from '../src/components/__generated__/LozengeProps.codegen';
|
|
23
24
|
import { type RangeProps as GeneratedRangeProps } from '../src/components/__generated__/RangeProps.codegen';
|
|
25
|
+
import { type IconProps as GeneratedIconProps } from '../src/components/__generated__/IconProps.codegen';
|
|
24
26
|
|
|
25
27
|
const assertAssignable = <A, B extends A>() => {};
|
|
26
28
|
|
|
@@ -53,3 +55,6 @@ assertAssignable<ErrorMessageProps, GeneratedErrorMessageProps>();
|
|
|
53
55
|
|
|
54
56
|
assertAssignable<GeneratedLozengeProps, LozengeProps>();
|
|
55
57
|
assertAssignable<LozengeProps, GeneratedLozengeProps>();
|
|
58
|
+
|
|
59
|
+
assertAssignable<GeneratedIconProps, IconProps>();
|
|
60
|
+
assertAssignable<IconProps, GeneratedIconProps>();
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
10
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
10
11
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
12
|
|
|
12
13
|
import React from 'react';
|
|
@@ -3,37 +3,687 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - IconProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::42b00fe4bc342f0e5c0e6a6bf7b96357>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::3be966703b2c67904c3555642b31a72d>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
12
12
|
import type { ActiveTokens } from '@atlaskit/tokens';
|
|
13
13
|
|
|
14
|
-
export type IconNext =
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
export type IconNext =
|
|
15
|
+
| 'add'
|
|
16
|
+
| 'app-switcher'
|
|
17
|
+
| 'arrow-down'
|
|
18
|
+
| 'arrow-left'
|
|
19
|
+
| 'arrow-right'
|
|
20
|
+
| 'arrow-up'
|
|
21
|
+
| 'attachment'
|
|
22
|
+
| 'audio'
|
|
23
|
+
| 'backlog'
|
|
24
|
+
| 'board'
|
|
25
|
+
| 'calendar'
|
|
26
|
+
| 'camera'
|
|
27
|
+
| 'checkbox-indeterminate'
|
|
28
|
+
| 'chevron-down'
|
|
29
|
+
| 'chevron-left'
|
|
30
|
+
| 'chevron-right'
|
|
31
|
+
| 'chevron-up'
|
|
32
|
+
| 'comment'
|
|
33
|
+
| 'component'
|
|
34
|
+
| 'copy'
|
|
35
|
+
| 'cross-circle'
|
|
36
|
+
| 'cross'
|
|
37
|
+
| 'dashboard'
|
|
38
|
+
| 'decision'
|
|
39
|
+
| 'department'
|
|
40
|
+
| 'download'
|
|
41
|
+
| 'edit'
|
|
42
|
+
| 'email'
|
|
43
|
+
| 'emoji-add'
|
|
44
|
+
| 'emoji'
|
|
45
|
+
| 'feedback'
|
|
46
|
+
| 'file'
|
|
47
|
+
| 'filter'
|
|
48
|
+
| 'flag-filled'
|
|
49
|
+
| 'home'
|
|
50
|
+
| 'image'
|
|
51
|
+
| 'lightbulb'
|
|
52
|
+
| 'link'
|
|
53
|
+
| 'location'
|
|
54
|
+
| 'marketplace'
|
|
55
|
+
| 'menu'
|
|
56
|
+
| 'notification'
|
|
57
|
+
| 'office-building'
|
|
58
|
+
| 'page'
|
|
59
|
+
| 'people-group'
|
|
60
|
+
| 'person'
|
|
61
|
+
| 'premium'
|
|
62
|
+
| 'question-circle'
|
|
63
|
+
| 'redo'
|
|
64
|
+
| 'refresh'
|
|
65
|
+
| 'retry'
|
|
66
|
+
| 'roadmap'
|
|
67
|
+
| 'screen'
|
|
68
|
+
| 'search'
|
|
69
|
+
| 'send'
|
|
70
|
+
| 'settings'
|
|
71
|
+
| 'share'
|
|
72
|
+
| 'sprint'
|
|
73
|
+
| 'stopwatch'
|
|
74
|
+
| 'task'
|
|
75
|
+
| 'teams'
|
|
76
|
+
| 'undo'
|
|
77
|
+
| 'accessibility'
|
|
78
|
+
| 'ai-agent'
|
|
79
|
+
| 'ai-chat'
|
|
80
|
+
| 'ai-generative-text-summary'
|
|
81
|
+
| 'alert'
|
|
82
|
+
| 'align-image-center'
|
|
83
|
+
| 'align-image-left'
|
|
84
|
+
| 'align-image-right'
|
|
85
|
+
| 'align-text-center'
|
|
86
|
+
| 'align-text-left'
|
|
87
|
+
| 'align-text-right'
|
|
88
|
+
| 'angle-brackets'
|
|
89
|
+
| 'api'
|
|
90
|
+
| 'app'
|
|
91
|
+
| 'app-switcher-legacy'
|
|
92
|
+
| 'apps'
|
|
93
|
+
| 'archive-box'
|
|
94
|
+
| 'arrow-down-left'
|
|
95
|
+
| 'arrow-down-right'
|
|
96
|
+
| 'arrow-up-left'
|
|
97
|
+
| 'arrow-up-right'
|
|
98
|
+
| 'assets'
|
|
99
|
+
| 'atlassian-intelligence'
|
|
100
|
+
| 'automation'
|
|
101
|
+
| 'basketball'
|
|
102
|
+
| 'boards'
|
|
103
|
+
| 'book-with-bookmark'
|
|
104
|
+
| 'border'
|
|
105
|
+
| 'branch'
|
|
106
|
+
| 'briefcase'
|
|
107
|
+
| 'bug'
|
|
108
|
+
| 'calendar-plus'
|
|
109
|
+
| 'capture'
|
|
110
|
+
| 'card'
|
|
111
|
+
| 'cash'
|
|
112
|
+
| 'changes'
|
|
113
|
+
| 'chart-bar'
|
|
114
|
+
| 'chart-bubble'
|
|
115
|
+
| 'chart-matrix'
|
|
116
|
+
| 'chart-pie'
|
|
117
|
+
| 'chart-trend'
|
|
118
|
+
| 'chart-trend-down'
|
|
119
|
+
| 'chart-trend-up'
|
|
120
|
+
| 'chat-widget'
|
|
121
|
+
| 'check-circle-unchecked'
|
|
122
|
+
| 'check-mark'
|
|
123
|
+
| 'checkbox-checked'
|
|
124
|
+
| 'checkbox-unchecked'
|
|
125
|
+
| 'chevron-double-left'
|
|
126
|
+
| 'chevron-double-right'
|
|
127
|
+
| 'child-work-items'
|
|
128
|
+
| 'clipboard'
|
|
129
|
+
| 'clock'
|
|
130
|
+
| 'close'
|
|
131
|
+
| 'cloud-arrow-up'
|
|
132
|
+
| 'collapse-horizontal'
|
|
133
|
+
| 'collapse-vertical'
|
|
134
|
+
| 'comment-add'
|
|
135
|
+
| 'commit'
|
|
136
|
+
| 'compass'
|
|
137
|
+
| 'content-width-narrow'
|
|
138
|
+
| 'content-width-wide'
|
|
139
|
+
| 'content-wrap-left'
|
|
140
|
+
| 'content-wrap-right'
|
|
141
|
+
| 'credit-card'
|
|
142
|
+
| 'curly-brackets'
|
|
143
|
+
| 'customize'
|
|
144
|
+
| 'data-flow'
|
|
145
|
+
| 'data-number'
|
|
146
|
+
| 'data-string'
|
|
147
|
+
| 'database'
|
|
148
|
+
| 'defect'
|
|
149
|
+
| 'delete'
|
|
150
|
+
| 'device-mobile'
|
|
151
|
+
| 'devices'
|
|
152
|
+
| 'discovery'
|
|
153
|
+
| 'drag-handle-horizontal'
|
|
154
|
+
| 'drag-handle-vertical'
|
|
155
|
+
| 'edit-bulk'
|
|
156
|
+
| 'emoji-casual'
|
|
157
|
+
| 'emoji-neutral'
|
|
158
|
+
| 'emoji-remove'
|
|
159
|
+
| 'epic'
|
|
160
|
+
| 'exclamation-square'
|
|
161
|
+
| 'expand-horizontal'
|
|
162
|
+
| 'expand-vertical'
|
|
163
|
+
| 'eye-open'
|
|
164
|
+
| 'eye-open-filled'
|
|
165
|
+
| 'eye-open-strikethrough'
|
|
166
|
+
| 'feed'
|
|
167
|
+
| 'field'
|
|
168
|
+
| 'field-alert'
|
|
169
|
+
| 'field-checkbox-group'
|
|
170
|
+
| 'field-dropdown'
|
|
171
|
+
| 'field-radio-group'
|
|
172
|
+
| 'files'
|
|
173
|
+
| 'flag'
|
|
174
|
+
| 'flask'
|
|
175
|
+
| 'focus-area'
|
|
176
|
+
| 'folder-closed'
|
|
177
|
+
| 'folder-open'
|
|
178
|
+
| 'form'
|
|
179
|
+
| 'fullscreen-enter'
|
|
180
|
+
| 'fullscreen-exit'
|
|
181
|
+
| 'glasses'
|
|
182
|
+
| 'globe'
|
|
183
|
+
| 'goal'
|
|
184
|
+
| 'grid'
|
|
185
|
+
| 'grow-diagonal'
|
|
186
|
+
| 'grow-horizontal'
|
|
187
|
+
| 'grow-vertical'
|
|
188
|
+
| 'hashtag'
|
|
189
|
+
| 'headphones'
|
|
190
|
+
| 'heart'
|
|
191
|
+
| 'highlight'
|
|
192
|
+
| 'image-fullscreen'
|
|
193
|
+
| 'image-inline'
|
|
194
|
+
| 'image-scaled'
|
|
195
|
+
| 'inbox'
|
|
196
|
+
| 'incident'
|
|
197
|
+
| 'information'
|
|
198
|
+
| 'information-circle'
|
|
199
|
+
| 'key-result'
|
|
200
|
+
| 'layout-one-column'
|
|
201
|
+
| 'layout-three-columns'
|
|
202
|
+
| 'layout-three-columns-sidebars'
|
|
203
|
+
| 'layout-two-columns'
|
|
204
|
+
| 'layout-two-columns-sidebar-left'
|
|
205
|
+
| 'layout-two-columns-sidebar-right'
|
|
206
|
+
| 'library'
|
|
207
|
+
| 'link-broken'
|
|
208
|
+
| 'link-external'
|
|
209
|
+
| 'list-bulleted'
|
|
210
|
+
| 'list-checklist'
|
|
211
|
+
| 'list-numbered'
|
|
212
|
+
| 'lobby-bell'
|
|
213
|
+
| 'lock-locked'
|
|
214
|
+
| 'lock-unlocked'
|
|
215
|
+
| 'log-in'
|
|
216
|
+
| 'log-out'
|
|
217
|
+
| 'magic-wand'
|
|
218
|
+
| 'markdown'
|
|
219
|
+
| 'maximize'
|
|
220
|
+
| 'megaphone'
|
|
221
|
+
| 'merge-failure'
|
|
222
|
+
| 'merge-success'
|
|
223
|
+
| 'microphone'
|
|
224
|
+
| 'minimize'
|
|
225
|
+
| 'minus'
|
|
226
|
+
| 'minus-square'
|
|
227
|
+
| 'node'
|
|
228
|
+
| 'note'
|
|
229
|
+
| 'notification-muted'
|
|
230
|
+
| 'objective'
|
|
231
|
+
| 'on-call'
|
|
232
|
+
| 'operations'
|
|
233
|
+
| 'pages'
|
|
234
|
+
| 'paint-bucket'
|
|
235
|
+
| 'paint-palette'
|
|
236
|
+
| 'panel-left'
|
|
237
|
+
| 'panel-right'
|
|
238
|
+
| 'pen'
|
|
239
|
+
| 'person-add'
|
|
240
|
+
| 'person-added'
|
|
241
|
+
| 'person-avatar'
|
|
242
|
+
| 'person-offboard'
|
|
243
|
+
| 'person-remove'
|
|
244
|
+
| 'person-warning'
|
|
245
|
+
| 'phone'
|
|
246
|
+
| 'pin'
|
|
247
|
+
| 'pin-filled'
|
|
248
|
+
| 'plus-square'
|
|
249
|
+
| 'power-plug'
|
|
250
|
+
| 'presenter-mode'
|
|
251
|
+
| 'printer'
|
|
252
|
+
| 'priority-blocker'
|
|
253
|
+
| 'priority-critical'
|
|
254
|
+
| 'priority-high'
|
|
255
|
+
| 'priority-highest'
|
|
256
|
+
| 'priority-low'
|
|
257
|
+
| 'priority-lowest'
|
|
258
|
+
| 'priority-major'
|
|
259
|
+
| 'priority-medium'
|
|
260
|
+
| 'priority-minor'
|
|
261
|
+
| 'priority-trivial'
|
|
262
|
+
| 'problem'
|
|
263
|
+
| 'project'
|
|
264
|
+
| 'project-status'
|
|
265
|
+
| 'projection-screen'
|
|
266
|
+
| 'pull-request'
|
|
267
|
+
| 'pulse'
|
|
268
|
+
| 'quotation-mark'
|
|
269
|
+
| 'radio-checked'
|
|
270
|
+
| 'radio-unchecked'
|
|
271
|
+
| 'release'
|
|
272
|
+
| 'rovo-chat'
|
|
273
|
+
| 'scales'
|
|
274
|
+
| 'scorecard'
|
|
275
|
+
| 'screen-plus'
|
|
276
|
+
| 'shapes'
|
|
277
|
+
| 'shield'
|
|
278
|
+
| 'shield-strikethrough'
|
|
279
|
+
| 'show-more-horizontal'
|
|
280
|
+
| 'show-more-vertical'
|
|
281
|
+
| 'shrink-diagonal'
|
|
282
|
+
| 'shrink-horizontal'
|
|
283
|
+
| 'shrink-vertical'
|
|
284
|
+
| 'sidebar-collapse'
|
|
285
|
+
| 'sidebar-expand'
|
|
286
|
+
| 'smart-link'
|
|
287
|
+
| 'smart-link-card'
|
|
288
|
+
| 'smart-link-embed'
|
|
289
|
+
| 'smart-link-inline'
|
|
290
|
+
| 'smart-link-list'
|
|
291
|
+
| 'snippet'
|
|
292
|
+
| 'sort-ascending'
|
|
293
|
+
| 'sort-descending'
|
|
294
|
+
| 'spreadsheet'
|
|
295
|
+
| 'star-starred'
|
|
296
|
+
| 'star-unstarred'
|
|
297
|
+
| 'status-discovery'
|
|
298
|
+
| 'status-error'
|
|
299
|
+
| 'status-information'
|
|
300
|
+
| 'status-success'
|
|
301
|
+
| 'status-verified'
|
|
302
|
+
| 'status-warning'
|
|
303
|
+
| 'story'
|
|
304
|
+
| 'stroke-weight-extra-large'
|
|
305
|
+
| 'stroke-weight-large'
|
|
306
|
+
| 'stroke-weight-medium'
|
|
307
|
+
| 'stroke-weight-small'
|
|
308
|
+
| 'subtasks'
|
|
309
|
+
| 'success'
|
|
310
|
+
| 'support'
|
|
311
|
+
| 'table-cell-clear'
|
|
312
|
+
| 'table-cell-merge'
|
|
313
|
+
| 'table-cell-split'
|
|
314
|
+
| 'table-column-add-left'
|
|
315
|
+
| 'table-column-add-right'
|
|
316
|
+
| 'table-column-delete'
|
|
317
|
+
| 'table-column-move-left'
|
|
318
|
+
| 'table-column-move-right'
|
|
319
|
+
| 'table-columns-distribute'
|
|
320
|
+
| 'table-row-add-above'
|
|
321
|
+
| 'table-row-add-below'
|
|
322
|
+
| 'table-row-delete'
|
|
323
|
+
| 'table-row-move-down'
|
|
324
|
+
| 'table-row-move-up'
|
|
325
|
+
| 'tag'
|
|
326
|
+
| 'takeout-food'
|
|
327
|
+
| 'target'
|
|
328
|
+
| 'task-in-progress'
|
|
329
|
+
| 'task-to-do'
|
|
330
|
+
| 'tasks'
|
|
331
|
+
| 'text'
|
|
332
|
+
| 'text-bold'
|
|
333
|
+
| 'text-heading'
|
|
334
|
+
| 'text-indent-left'
|
|
335
|
+
| 'text-indent-right'
|
|
336
|
+
| 'text-italic'
|
|
337
|
+
| 'text-shorten'
|
|
338
|
+
| 'text-spellcheck'
|
|
339
|
+
| 'text-strikethrough'
|
|
340
|
+
| 'text-style'
|
|
341
|
+
| 'text-underline'
|
|
342
|
+
| 'text-wrap'
|
|
343
|
+
| 'theme'
|
|
344
|
+
| 'thumbs-down'
|
|
345
|
+
| 'thumbs-up'
|
|
346
|
+
| 'timeline'
|
|
347
|
+
| 'tools'
|
|
348
|
+
| 'transition'
|
|
349
|
+
| 'translate'
|
|
350
|
+
| 'tree'
|
|
351
|
+
| 'vehicle-car'
|
|
352
|
+
| 'video'
|
|
353
|
+
| 'video-next'
|
|
354
|
+
| 'video-next-overlay'
|
|
355
|
+
| 'video-pause'
|
|
356
|
+
| 'video-pause-overlay'
|
|
357
|
+
| 'video-play'
|
|
358
|
+
| 'video-play-overlay'
|
|
359
|
+
| 'video-previous'
|
|
360
|
+
| 'video-previous-overlay'
|
|
361
|
+
| 'video-skip-backward-fifteen'
|
|
362
|
+
| 'video-skip-backward-ten'
|
|
363
|
+
| 'video-skip-forward-fifteen'
|
|
364
|
+
| 'video-skip-forward-ten'
|
|
365
|
+
| 'video-stop'
|
|
366
|
+
| 'video-stop-overlay'
|
|
367
|
+
| 'volume-high'
|
|
368
|
+
| 'volume-low'
|
|
369
|
+
| 'volume-muted'
|
|
370
|
+
| 'whiteboard'
|
|
371
|
+
| 'work-item'
|
|
372
|
+
| 'work-items'
|
|
373
|
+
| 'zoom-in'
|
|
374
|
+
| 'zoom-out';
|
|
375
|
+
export type IconRemoved =
|
|
376
|
+
| 'billing-filled'
|
|
377
|
+
| 'billing'
|
|
378
|
+
| 'bitbucket-builds'
|
|
379
|
+
| 'bitbucket-clone'
|
|
380
|
+
| 'bitbucket-compare'
|
|
381
|
+
| 'bitbucket-forks'
|
|
382
|
+
| 'bitbucket-output'
|
|
383
|
+
| 'bitbucket-pipelines'
|
|
384
|
+
| 'camera-rotate'
|
|
385
|
+
| 'camera-take-picture'
|
|
386
|
+
| 'canvas'
|
|
387
|
+
| 'hipchat-chevron-double-down'
|
|
388
|
+
| 'hipchat-chevron-double-up'
|
|
389
|
+
| 'dropbox'
|
|
390
|
+
| 'editor-addon'
|
|
391
|
+
| 'editor-advanced'
|
|
392
|
+
| 'editor-file-preview'
|
|
393
|
+
| 'editor-image-border'
|
|
394
|
+
| 'editor-remove-emoji'
|
|
395
|
+
| 'editor-strikethrough'
|
|
396
|
+
| 'editor-table-display-options'
|
|
397
|
+
| 'editor-text-color'
|
|
398
|
+
| 'editor-underline'
|
|
399
|
+
| 'emoji-atlassian'
|
|
400
|
+
| 'folder-filled'
|
|
401
|
+
| 'following'
|
|
402
|
+
| 'googledrive'
|
|
403
|
+
| 'gsuite'
|
|
404
|
+
| 'highlights'
|
|
405
|
+
| 'image-border'
|
|
406
|
+
| 'jira-failed-build-status'
|
|
407
|
+
| 'list'
|
|
408
|
+
| 'hipchat-media-attachment-count'
|
|
409
|
+
| 'media-services-annotate'
|
|
410
|
+
| 'media-services-arrow'
|
|
411
|
+
| 'media-services-blur'
|
|
412
|
+
| 'media-services-brush'
|
|
413
|
+
| 'media-services-button-option'
|
|
414
|
+
| 'media-services-line-thickness'
|
|
415
|
+
| 'media-services-no-image'
|
|
416
|
+
| 'media-services-open-mediaviewer'
|
|
417
|
+
| 'media-services-oval'
|
|
418
|
+
| 'media-services-pdf'
|
|
419
|
+
| 'media-services-rectangle'
|
|
420
|
+
| 'media-services-text'
|
|
421
|
+
| 'media-services-unknown'
|
|
422
|
+
| 'media-services-zip'
|
|
423
|
+
| 'mention'
|
|
424
|
+
| 'notification-all'
|
|
425
|
+
| 'pdf'
|
|
426
|
+
| 'person-with-circle'
|
|
427
|
+
| 'person-with-cross'
|
|
428
|
+
| 'portfolio'
|
|
429
|
+
| 'presence-active'
|
|
430
|
+
| 'presence-busy'
|
|
431
|
+
| 'presence-unavailable'
|
|
432
|
+
| 'status'
|
|
433
|
+
| 'vid-audio-muted'
|
|
434
|
+
| 'vid-backward'
|
|
435
|
+
| 'vid-camera-off'
|
|
436
|
+
| 'vid-connection-circle'
|
|
437
|
+
| 'vid-forward'
|
|
438
|
+
| 'vid-hang-up'
|
|
439
|
+
| 'vid-hd-circle'
|
|
440
|
+
| 'vid-raised-hand'
|
|
441
|
+
| 'vid-share-screen'
|
|
442
|
+
| 'vid-speaking-circle';
|
|
443
|
+
export type IconReplaced =
|
|
444
|
+
| 'activity'
|
|
445
|
+
| 'add-circle'
|
|
446
|
+
| 'add-item'
|
|
447
|
+
| 'addon'
|
|
448
|
+
| 'editor-align-center'
|
|
449
|
+
| 'editor-align-left'
|
|
450
|
+
| 'editor-align-right'
|
|
451
|
+
| 'app-access'
|
|
452
|
+
| 'archive'
|
|
453
|
+
| 'arrow-down-circle'
|
|
454
|
+
| 'arrow-left-circle'
|
|
455
|
+
| 'arrow-right-circle'
|
|
456
|
+
| 'arrow-up-circle'
|
|
457
|
+
| 'audio-circle'
|
|
458
|
+
| 'hipchat-audio-only'
|
|
459
|
+
| 'bitbucket-branches'
|
|
460
|
+
| 'bitbucket-commits'
|
|
461
|
+
| 'bitbucket-pullrequests'
|
|
462
|
+
| 'bitbucket-repos'
|
|
463
|
+
| 'bitbucket-snippets'
|
|
464
|
+
| 'bitbucket-source'
|
|
465
|
+
| 'book'
|
|
466
|
+
| 'bullet-list'
|
|
467
|
+
| 'calendar-filled'
|
|
468
|
+
| 'camera-filled'
|
|
469
|
+
| 'checkbox'
|
|
470
|
+
| 'check-circle'
|
|
471
|
+
| 'check-circle-outline'
|
|
472
|
+
| 'check'
|
|
473
|
+
| 'chevron-down-circle'
|
|
474
|
+
| 'hipchat-chevron-down'
|
|
475
|
+
| 'chevron-left-circle'
|
|
476
|
+
| 'chevron-left-large'
|
|
477
|
+
| 'chevron-right-circle'
|
|
478
|
+
| 'chevron-right-large'
|
|
479
|
+
| 'chevron-up-circle'
|
|
480
|
+
| 'hipchat-chevron-up'
|
|
481
|
+
| 'child-issues'
|
|
482
|
+
| 'code'
|
|
483
|
+
| 'creditcard-filled'
|
|
484
|
+
| 'creditcard'
|
|
485
|
+
| 'detail-view'
|
|
486
|
+
| 'hipchat-dial-out'
|
|
487
|
+
| 'discover-filled'
|
|
488
|
+
| 'discover'
|
|
489
|
+
| 'document-filled'
|
|
490
|
+
| 'document'
|
|
491
|
+
| 'documents'
|
|
492
|
+
| 'drag-handler'
|
|
493
|
+
| 'edit-filled'
|
|
494
|
+
| 'editor-add'
|
|
495
|
+
| 'editor-align-image-center'
|
|
496
|
+
| 'editor-align-image-left'
|
|
497
|
+
| 'editor-align-image-right'
|
|
498
|
+
| 'editor-attachment'
|
|
499
|
+
| 'editor-background-color'
|
|
500
|
+
| 'editor-bold'
|
|
501
|
+
| 'editor-bullet-list'
|
|
502
|
+
| 'editor-close'
|
|
503
|
+
| 'editor-code'
|
|
504
|
+
| 'editor-collapse'
|
|
505
|
+
| 'editor-date'
|
|
506
|
+
| 'editor-decision'
|
|
507
|
+
| 'editor-divider'
|
|
508
|
+
| 'editor-done'
|
|
509
|
+
| 'editor-edit'
|
|
510
|
+
| 'editor-emoji'
|
|
511
|
+
| 'editor-error'
|
|
512
|
+
| 'editor-expand'
|
|
513
|
+
| 'editor-feedback'
|
|
514
|
+
| 'editor-file'
|
|
515
|
+
| 'editor-help'
|
|
516
|
+
| 'editor-hint'
|
|
517
|
+
| 'editor-horizontal-rule'
|
|
518
|
+
| 'editor-image'
|
|
519
|
+
| 'editor-image-resize'
|
|
520
|
+
| 'editor-indent'
|
|
521
|
+
| 'editor-info'
|
|
522
|
+
| 'editor-italic'
|
|
523
|
+
| 'editor-layout-single'
|
|
524
|
+
| 'editor-layout-three-equal'
|
|
525
|
+
| 'editor-layout-three-with-sidebars'
|
|
526
|
+
| 'editor-layout-two-equal'
|
|
527
|
+
| 'editor-layout-two-left-sidebar'
|
|
528
|
+
| 'editor-layout-two-right-sidebar'
|
|
529
|
+
| 'editor-link'
|
|
530
|
+
| 'editor-media-center'
|
|
531
|
+
| 'editor-media-full-width'
|
|
532
|
+
| 'editor-media-wide'
|
|
533
|
+
| 'editor-media-wrap-left'
|
|
534
|
+
| 'editor-media-wrap-right'
|
|
535
|
+
| 'editor-mention'
|
|
536
|
+
| 'editor-more'
|
|
537
|
+
| 'editor-note'
|
|
538
|
+
| 'editor-number-list'
|
|
539
|
+
| 'editor-open'
|
|
540
|
+
| 'editor-outdent'
|
|
541
|
+
| 'editor-panel'
|
|
542
|
+
| 'editor-photo'
|
|
543
|
+
| 'editor-quote'
|
|
544
|
+
| 'editor-recent'
|
|
545
|
+
| 'editor-redo'
|
|
546
|
+
| 'editor-remove'
|
|
547
|
+
| 'editor-search'
|
|
548
|
+
| 'editor-settings'
|
|
549
|
+
| 'editor-success'
|
|
550
|
+
| 'editor-table'
|
|
551
|
+
| 'editor-task'
|
|
552
|
+
| 'editor-text-style'
|
|
553
|
+
| 'editor-undo'
|
|
554
|
+
| 'editor-unlink'
|
|
555
|
+
| 'editor-warning'
|
|
556
|
+
| 'emoji-activity'
|
|
557
|
+
| 'emoji-custom'
|
|
558
|
+
| 'emoji-emoji'
|
|
559
|
+
| 'emoji-flags'
|
|
560
|
+
| 'emoji-food'
|
|
561
|
+
| 'emoji-frequent'
|
|
562
|
+
| 'emoji-keyboard'
|
|
563
|
+
| 'emoji-nature'
|
|
564
|
+
| 'emoji-objects'
|
|
565
|
+
| 'emoji-people'
|
|
566
|
+
| 'emoji-productivity'
|
|
567
|
+
| 'emoji-symbols'
|
|
568
|
+
| 'emoji-travel'
|
|
569
|
+
| 'error'
|
|
570
|
+
| 'export'
|
|
571
|
+
| 'folder'
|
|
572
|
+
| 'followers'
|
|
573
|
+
| 'graph-bar'
|
|
574
|
+
| 'graph-line'
|
|
575
|
+
| 'home-circle'
|
|
576
|
+
| 'image-resize'
|
|
577
|
+
| 'info'
|
|
578
|
+
| 'invite-team'
|
|
579
|
+
| 'issue'
|
|
580
|
+
| 'issue-raise'
|
|
581
|
+
| 'issues'
|
|
582
|
+
| 'jira-capture'
|
|
583
|
+
| 'jira-labs'
|
|
584
|
+
| 'jira-test-session'
|
|
585
|
+
| 'label'
|
|
586
|
+
| 'lightbulb-filled'
|
|
587
|
+
| 'like'
|
|
588
|
+
| 'link-filled'
|
|
589
|
+
| 'hipchat-lobby'
|
|
590
|
+
| 'lock-circle'
|
|
591
|
+
| 'lock-filled'
|
|
592
|
+
| 'lock'
|
|
593
|
+
| 'media-services-actual-size'
|
|
594
|
+
| 'media-services-add-comment'
|
|
595
|
+
| 'media-services-audio'
|
|
596
|
+
| 'media-services-code'
|
|
597
|
+
| 'media-services-document'
|
|
598
|
+
| 'media-services-filter'
|
|
599
|
+
| 'media-services-fit-to-page'
|
|
600
|
+
| 'media-services-full-screen'
|
|
601
|
+
| 'media-services-grid'
|
|
602
|
+
| 'media-services-image'
|
|
603
|
+
| 'media-services-line'
|
|
604
|
+
| 'media-services-preselected'
|
|
605
|
+
| 'media-services-presentation'
|
|
606
|
+
| 'media-services-scale-large'
|
|
607
|
+
| 'media-services-scale-small'
|
|
608
|
+
| 'media-services-spreadsheet'
|
|
609
|
+
| 'media-services-video'
|
|
610
|
+
| 'media-services-zoom-in'
|
|
611
|
+
| 'media-services-zoom-out'
|
|
612
|
+
| 'menu-expand'
|
|
613
|
+
| 'mobile'
|
|
614
|
+
| 'more'
|
|
615
|
+
| 'more-vertical'
|
|
616
|
+
| 'notification-direct'
|
|
617
|
+
| 'office-building-filled'
|
|
618
|
+
| 'open'
|
|
619
|
+
| 'hipchat-outgoing-sound'
|
|
620
|
+
| 'overview'
|
|
621
|
+
| 'page-filled'
|
|
622
|
+
| 'people'
|
|
623
|
+
| 'person-circle'
|
|
624
|
+
| 'person-with-tick'
|
|
625
|
+
| 'preferences'
|
|
626
|
+
| 'question'
|
|
627
|
+
| 'questions'
|
|
628
|
+
| 'queues'
|
|
629
|
+
| 'quote'
|
|
630
|
+
| 'radio'
|
|
631
|
+
| 'recent'
|
|
632
|
+
| 'room-menu'
|
|
633
|
+
| 'schedule-filled'
|
|
634
|
+
| 'schedule'
|
|
635
|
+
| 'hipchat-sd-video'
|
|
636
|
+
| 'select-clear'
|
|
637
|
+
| 'ship'
|
|
638
|
+
| 'shortcut'
|
|
639
|
+
| 'sign-in'
|
|
640
|
+
| 'sign-out'
|
|
641
|
+
| 'star-filled'
|
|
642
|
+
| 'star'
|
|
643
|
+
| 'star-large'
|
|
644
|
+
| 'subtask'
|
|
645
|
+
| 'suitcase'
|
|
646
|
+
| 'switcher'
|
|
647
|
+
| 'table'
|
|
648
|
+
| 'trash'
|
|
649
|
+
| 'tray'
|
|
650
|
+
| 'unlink'
|
|
651
|
+
| 'unlock-circle'
|
|
652
|
+
| 'unlock-filled'
|
|
653
|
+
| 'unlock'
|
|
654
|
+
| 'upload'
|
|
655
|
+
| 'user-avatar-circle'
|
|
656
|
+
| 'vid-audio-on'
|
|
657
|
+
| 'vid-camera-on'
|
|
658
|
+
| 'video-circle'
|
|
659
|
+
| 'video-filled'
|
|
660
|
+
| 'vid-full-screen-off'
|
|
661
|
+
| 'vid-full-screen-on'
|
|
662
|
+
| 'vid-pause'
|
|
663
|
+
| 'vid-play'
|
|
664
|
+
| 'vid-volume-full'
|
|
665
|
+
| 'vid-volume-half'
|
|
666
|
+
| 'vid-volume-muted'
|
|
667
|
+
| 'warning'
|
|
668
|
+
| 'watch-filled'
|
|
669
|
+
| 'watch'
|
|
670
|
+
| 'world'
|
|
671
|
+
| 'world-small';
|
|
17
672
|
|
|
18
673
|
type Glyph = IconNext | IconRemoved | IconReplaced;
|
|
19
674
|
export type IconColor = Extract<ActiveTokens, `color.${string}`>;
|
|
20
675
|
|
|
21
|
-
export
|
|
676
|
+
export type IconProps = {
|
|
677
|
+
color?: IconColor;
|
|
22
678
|
/**
|
|
23
|
-
*
|
|
24
|
-
* This pixel size refers to the canvas the icon sits on, not the size of the icon shape itself.
|
|
679
|
+
* Name of the icon to be rendered.
|
|
25
680
|
*/
|
|
26
|
-
|
|
681
|
+
glyph: Glyph;
|
|
27
682
|
/**
|
|
28
683
|
* Text used to describe what the icon is in context. A label is needed when there is no pairing visible text next to the icon.
|
|
29
684
|
* An empty string marks the icon as presentation only.
|
|
30
685
|
*/
|
|
31
686
|
label: string;
|
|
32
|
-
/**
|
|
33
|
-
* Name of the icon to be rendered.
|
|
34
|
-
*/
|
|
35
|
-
glyph: Glyph;
|
|
36
|
-
color?: IconColor;
|
|
37
687
|
/**
|
|
38
688
|
* @deprecated the "primaryColor" prop is deprecated and will be removed on the 22nd of December 2025. Please use the "color" prop instead. For more information, visit: https://developer.atlassian.com/platform/forge/ui-kit/components/icon/.
|
|
39
689
|
*/
|
|
@@ -43,6 +693,11 @@ export interface IconProps {
|
|
|
43
693
|
* @deprecated the "secondaryColor" prop is deprecated and will be removed on the 22nd of December 2025. Please refactor your code to avoid using this prop.
|
|
44
694
|
*/
|
|
45
695
|
secondaryColor?: IconColor;
|
|
696
|
+
/**
|
|
697
|
+
* There are three icon sizes: `small` (16px), `medium` (24px), and `large` (32px). However "large" is now deprecated and will be removed on the 22nd of December 2025.
|
|
698
|
+
* This pixel size refers to the canvas the icon sits on, not the size of the icon shape itself.
|
|
699
|
+
*/
|
|
700
|
+
size?: 'small' | 'medium' | 'large';
|
|
46
701
|
}
|
|
47
702
|
|
|
48
703
|
/**
|
|
@@ -50,4 +705,4 @@ export interface IconProps {
|
|
|
50
705
|
*
|
|
51
706
|
* @see [Icon](https://developer.atlassian.com/platform/forge/ui-kit/components/icon/) in UI Kit documentation for more information
|
|
52
707
|
*/
|
|
53
|
-
export type TIcon<T> = (props: IconProps) => T;
|
|
708
|
+
export type TIcon<T> = (props: IconProps) => T;
|