@atlaskit/object 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/LICENSE.md +11 -0
- package/README.md +18 -0
- package/dist/cjs/components/object/all-objects.js +35 -0
- package/dist/cjs/components/object/components/blog.js +29 -0
- package/dist/cjs/components/object/components/branch.js +29 -0
- package/dist/cjs/components/object/components/bug.js +29 -0
- package/dist/cjs/components/object/components/calendar.js +29 -0
- package/dist/cjs/components/object/components/changes.js +29 -0
- package/dist/cjs/components/object/components/code.js +29 -0
- package/dist/cjs/components/object/components/commit.js +29 -0
- package/dist/cjs/components/object/components/epic.js +29 -0
- package/dist/cjs/components/object/components/improvement.js +29 -0
- package/dist/cjs/components/object/components/incident.js +29 -0
- package/dist/cjs/components/object/components/issue.js +29 -0
- package/dist/cjs/components/object/components/new-feature.js +29 -0
- package/dist/cjs/components/object/components/page-live-doc.js +29 -0
- package/dist/cjs/components/object/components/page.js +29 -0
- package/dist/cjs/components/object/components/problem.js +29 -0
- package/dist/cjs/components/object/components/pull-request.js +29 -0
- package/dist/cjs/components/object/components/question.js +29 -0
- package/dist/cjs/components/object/components/story.js +29 -0
- package/dist/cjs/components/object/components/subtask.js +29 -0
- package/dist/cjs/components/object/components/task.js +29 -0
- package/dist/cjs/components/object/components/whiteboard.js +29 -0
- package/dist/cjs/components/object/object-base.js +29 -0
- package/dist/cjs/components/object/types.js +1 -0
- package/dist/cjs/components/object-tile/all-object-tiles.js +35 -0
- package/dist/cjs/components/object-tile/components/blog.js +32 -0
- package/dist/cjs/components/object-tile/components/branch.js +32 -0
- package/dist/cjs/components/object-tile/components/bug.js +32 -0
- package/dist/cjs/components/object-tile/components/calendar.js +32 -0
- package/dist/cjs/components/object-tile/components/changes.js +32 -0
- package/dist/cjs/components/object-tile/components/code.js +32 -0
- package/dist/cjs/components/object-tile/components/commit.js +32 -0
- package/dist/cjs/components/object-tile/components/epic.js +32 -0
- package/dist/cjs/components/object-tile/components/improvement.js +32 -0
- package/dist/cjs/components/object-tile/components/incident.js +32 -0
- package/dist/cjs/components/object-tile/components/issue.js +32 -0
- package/dist/cjs/components/object-tile/components/new-feature.js +32 -0
- package/dist/cjs/components/object-tile/components/page-live-doc.js +32 -0
- package/dist/cjs/components/object-tile/components/page.js +32 -0
- package/dist/cjs/components/object-tile/components/problem.js +32 -0
- package/dist/cjs/components/object-tile/components/pull-request.js +32 -0
- package/dist/cjs/components/object-tile/components/question.js +32 -0
- package/dist/cjs/components/object-tile/components/story.js +32 -0
- package/dist/cjs/components/object-tile/components/subtask.js +32 -0
- package/dist/cjs/components/object-tile/components/task.js +32 -0
- package/dist/cjs/components/object-tile/components/whiteboard.js +32 -0
- package/dist/cjs/components/object-tile/object-tile-base.js +41 -0
- package/dist/cjs/components/object-tile/types.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/es2019/components/object/all-objects.js +27 -0
- package/dist/es2019/components/object/components/blog.js +21 -0
- package/dist/es2019/components/object/components/branch.js +21 -0
- package/dist/es2019/components/object/components/bug.js +21 -0
- package/dist/es2019/components/object/components/calendar.js +21 -0
- package/dist/es2019/components/object/components/changes.js +21 -0
- package/dist/es2019/components/object/components/code.js +21 -0
- package/dist/es2019/components/object/components/commit.js +21 -0
- package/dist/es2019/components/object/components/epic.js +21 -0
- package/dist/es2019/components/object/components/improvement.js +21 -0
- package/dist/es2019/components/object/components/incident.js +21 -0
- package/dist/es2019/components/object/components/issue.js +21 -0
- package/dist/es2019/components/object/components/new-feature.js +21 -0
- package/dist/es2019/components/object/components/page-live-doc.js +21 -0
- package/dist/es2019/components/object/components/page.js +21 -0
- package/dist/es2019/components/object/components/problem.js +21 -0
- package/dist/es2019/components/object/components/pull-request.js +21 -0
- package/dist/es2019/components/object/components/question.js +21 -0
- package/dist/es2019/components/object/components/story.js +21 -0
- package/dist/es2019/components/object/components/subtask.js +21 -0
- package/dist/es2019/components/object/components/task.js +21 -0
- package/dist/es2019/components/object/components/whiteboard.js +21 -0
- package/dist/es2019/components/object/object-base.js +21 -0
- package/dist/es2019/components/object/types.js +0 -0
- package/dist/es2019/components/object-tile/all-object-tiles.js +27 -0
- package/dist/es2019/components/object-tile/components/blog.js +24 -0
- package/dist/es2019/components/object-tile/components/branch.js +24 -0
- package/dist/es2019/components/object-tile/components/bug.js +24 -0
- package/dist/es2019/components/object-tile/components/calendar.js +24 -0
- package/dist/es2019/components/object-tile/components/changes.js +24 -0
- package/dist/es2019/components/object-tile/components/code.js +24 -0
- package/dist/es2019/components/object-tile/components/commit.js +24 -0
- package/dist/es2019/components/object-tile/components/epic.js +24 -0
- package/dist/es2019/components/object-tile/components/improvement.js +24 -0
- package/dist/es2019/components/object-tile/components/incident.js +24 -0
- package/dist/es2019/components/object-tile/components/issue.js +24 -0
- package/dist/es2019/components/object-tile/components/new-feature.js +24 -0
- package/dist/es2019/components/object-tile/components/page-live-doc.js +24 -0
- package/dist/es2019/components/object-tile/components/page.js +24 -0
- package/dist/es2019/components/object-tile/components/problem.js +24 -0
- package/dist/es2019/components/object-tile/components/pull-request.js +24 -0
- package/dist/es2019/components/object-tile/components/question.js +24 -0
- package/dist/es2019/components/object-tile/components/story.js +24 -0
- package/dist/es2019/components/object-tile/components/subtask.js +24 -0
- package/dist/es2019/components/object-tile/components/task.js +24 -0
- package/dist/es2019/components/object-tile/components/whiteboard.js +24 -0
- package/dist/es2019/components/object-tile/object-tile-base.js +33 -0
- package/dist/es2019/components/object-tile/types.js +0 -0
- package/dist/es2019/index.js +0 -0
- package/dist/esm/components/object/all-objects.js +27 -0
- package/dist/esm/components/object/components/blog.js +21 -0
- package/dist/esm/components/object/components/branch.js +21 -0
- package/dist/esm/components/object/components/bug.js +21 -0
- package/dist/esm/components/object/components/calendar.js +21 -0
- package/dist/esm/components/object/components/changes.js +21 -0
- package/dist/esm/components/object/components/code.js +21 -0
- package/dist/esm/components/object/components/commit.js +21 -0
- package/dist/esm/components/object/components/epic.js +21 -0
- package/dist/esm/components/object/components/improvement.js +21 -0
- package/dist/esm/components/object/components/incident.js +21 -0
- package/dist/esm/components/object/components/issue.js +21 -0
- package/dist/esm/components/object/components/new-feature.js +21 -0
- package/dist/esm/components/object/components/page-live-doc.js +21 -0
- package/dist/esm/components/object/components/page.js +21 -0
- package/dist/esm/components/object/components/problem.js +21 -0
- package/dist/esm/components/object/components/pull-request.js +21 -0
- package/dist/esm/components/object/components/question.js +21 -0
- package/dist/esm/components/object/components/story.js +21 -0
- package/dist/esm/components/object/components/subtask.js +21 -0
- package/dist/esm/components/object/components/task.js +21 -0
- package/dist/esm/components/object/components/whiteboard.js +21 -0
- package/dist/esm/components/object/object-base.js +22 -0
- package/dist/esm/components/object/types.js +0 -0
- package/dist/esm/components/object-tile/all-object-tiles.js +27 -0
- package/dist/esm/components/object-tile/components/blog.js +24 -0
- package/dist/esm/components/object-tile/components/branch.js +24 -0
- package/dist/esm/components/object-tile/components/bug.js +24 -0
- package/dist/esm/components/object-tile/components/calendar.js +24 -0
- package/dist/esm/components/object-tile/components/changes.js +24 -0
- package/dist/esm/components/object-tile/components/code.js +24 -0
- package/dist/esm/components/object-tile/components/commit.js +24 -0
- package/dist/esm/components/object-tile/components/epic.js +24 -0
- package/dist/esm/components/object-tile/components/improvement.js +24 -0
- package/dist/esm/components/object-tile/components/incident.js +24 -0
- package/dist/esm/components/object-tile/components/issue.js +24 -0
- package/dist/esm/components/object-tile/components/new-feature.js +24 -0
- package/dist/esm/components/object-tile/components/page-live-doc.js +24 -0
- package/dist/esm/components/object-tile/components/page.js +24 -0
- package/dist/esm/components/object-tile/components/problem.js +24 -0
- package/dist/esm/components/object-tile/components/pull-request.js +24 -0
- package/dist/esm/components/object-tile/components/question.js +24 -0
- package/dist/esm/components/object-tile/components/story.js +24 -0
- package/dist/esm/components/object-tile/components/subtask.js +24 -0
- package/dist/esm/components/object-tile/components/task.js +24 -0
- package/dist/esm/components/object-tile/components/whiteboard.js +24 -0
- package/dist/esm/components/object-tile/object-tile-base.js +34 -0
- package/dist/esm/components/object-tile/types.js +0 -0
- package/dist/esm/index.js +0 -0
- package/dist/types/components/object/all-objects.d.ts +7 -0
- package/dist/types/components/object/components/blog.d.ts +8 -0
- package/dist/types/components/object/components/branch.d.ts +8 -0
- package/dist/types/components/object/components/bug.d.ts +8 -0
- package/dist/types/components/object/components/calendar.d.ts +8 -0
- package/dist/types/components/object/components/changes.d.ts +8 -0
- package/dist/types/components/object/components/code.d.ts +8 -0
- package/dist/types/components/object/components/commit.d.ts +8 -0
- package/dist/types/components/object/components/epic.d.ts +8 -0
- package/dist/types/components/object/components/improvement.d.ts +8 -0
- package/dist/types/components/object/components/incident.d.ts +8 -0
- package/dist/types/components/object/components/issue.d.ts +8 -0
- package/dist/types/components/object/components/new-feature.d.ts +8 -0
- package/dist/types/components/object/components/page-live-doc.d.ts +8 -0
- package/dist/types/components/object/components/page.d.ts +8 -0
- package/dist/types/components/object/components/problem.d.ts +8 -0
- package/dist/types/components/object/components/pull-request.d.ts +8 -0
- package/dist/types/components/object/components/question.d.ts +8 -0
- package/dist/types/components/object/components/story.d.ts +8 -0
- package/dist/types/components/object/components/subtask.d.ts +8 -0
- package/dist/types/components/object/components/task.d.ts +8 -0
- package/dist/types/components/object/components/whiteboard.d.ts +8 -0
- package/dist/types/components/object/object-base.d.ts +15 -0
- package/dist/types/components/object/types.d.ts +24 -0
- package/dist/types/components/object-tile/all-object-tiles.d.ts +7 -0
- package/dist/types/components/object-tile/components/blog.d.ts +8 -0
- package/dist/types/components/object-tile/components/branch.d.ts +8 -0
- package/dist/types/components/object-tile/components/bug.d.ts +8 -0
- package/dist/types/components/object-tile/components/calendar.d.ts +8 -0
- package/dist/types/components/object-tile/components/changes.d.ts +8 -0
- package/dist/types/components/object-tile/components/code.d.ts +8 -0
- package/dist/types/components/object-tile/components/commit.d.ts +8 -0
- package/dist/types/components/object-tile/components/epic.d.ts +8 -0
- package/dist/types/components/object-tile/components/improvement.d.ts +8 -0
- package/dist/types/components/object-tile/components/incident.d.ts +8 -0
- package/dist/types/components/object-tile/components/issue.d.ts +8 -0
- package/dist/types/components/object-tile/components/new-feature.d.ts +8 -0
- package/dist/types/components/object-tile/components/page-live-doc.d.ts +8 -0
- package/dist/types/components/object-tile/components/page.d.ts +8 -0
- package/dist/types/components/object-tile/components/problem.d.ts +8 -0
- package/dist/types/components/object-tile/components/pull-request.d.ts +8 -0
- package/dist/types/components/object-tile/components/question.d.ts +8 -0
- package/dist/types/components/object-tile/components/story.d.ts +8 -0
- package/dist/types/components/object-tile/components/subtask.d.ts +8 -0
- package/dist/types/components/object-tile/components/task.d.ts +8 -0
- package/dist/types/components/object-tile/components/whiteboard.d.ts +8 -0
- package/dist/types/components/object-tile/object-tile-base.d.ts +17 -0
- package/dist/types/components/object-tile/types.d.ts +35 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types-ts4.5/components/object/all-objects.d.ts +7 -0
- package/dist/types-ts4.5/components/object/components/blog.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/branch.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/bug.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/calendar.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/changes.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/code.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/commit.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/epic.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/improvement.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/incident.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/issue.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/new-feature.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/page-live-doc.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/page.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/problem.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/pull-request.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/question.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/story.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/subtask.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/task.d.ts +8 -0
- package/dist/types-ts4.5/components/object/components/whiteboard.d.ts +8 -0
- package/dist/types-ts4.5/components/object/object-base.d.ts +15 -0
- package/dist/types-ts4.5/components/object/types.d.ts +24 -0
- package/dist/types-ts4.5/components/object-tile/all-object-tiles.d.ts +7 -0
- package/dist/types-ts4.5/components/object-tile/components/blog.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/branch.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/bug.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/calendar.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/changes.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/code.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/commit.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/epic.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/improvement.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/incident.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/issue.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/new-feature.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/page-live-doc.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/page.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/problem.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/pull-request.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/question.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/story.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/subtask.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/task.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/components/whiteboard.d.ts +8 -0
- package/dist/types-ts4.5/components/object-tile/object-tile-base.d.ts +17 -0
- package/dist/types-ts4.5/components/object-tile/types.d.ts +35 -0
- package/dist/types-ts4.5/index.d.ts +2 -0
- package/package.json +107 -0
- package/tile/package.json +9 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::73a43f884601d59ce479af50839edfbd>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/task';
|
|
8
|
+
import ObjectBase from '../object-base';
|
|
9
|
+
export default function TaskObject({
|
|
10
|
+
label = 'Task',
|
|
11
|
+
size,
|
|
12
|
+
testId
|
|
13
|
+
}) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(ObjectBase, {
|
|
15
|
+
label: label,
|
|
16
|
+
size: size,
|
|
17
|
+
testId: testId,
|
|
18
|
+
icon: IconComponent,
|
|
19
|
+
color: "var(--ds-icon-accent-blue, #1D7AFC)"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::fc3b89075fa82725eb4c0ecc4e869643>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/whiteboard';
|
|
8
|
+
import ObjectBase from '../object-base';
|
|
9
|
+
export default function WhiteboardObject({
|
|
10
|
+
label = 'Whiteboard',
|
|
11
|
+
size,
|
|
12
|
+
testId
|
|
13
|
+
}) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(ObjectBase, {
|
|
15
|
+
label: label,
|
|
16
|
+
size: size,
|
|
17
|
+
testId: testId,
|
|
18
|
+
icon: IconComponent,
|
|
19
|
+
color: "var(--ds-icon-accent-teal, #2898BD)"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* __Object base__
|
|
4
|
+
*
|
|
5
|
+
* An object represents an Atlassian-specific content type.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export default function ObjectBase({
|
|
9
|
+
label = '',
|
|
10
|
+
size = 'medium',
|
|
11
|
+
testId,
|
|
12
|
+
color,
|
|
13
|
+
icon: Icon
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size === 'medium' ? 'medium' : 'small',
|
|
18
|
+
color: color,
|
|
19
|
+
testId: testId
|
|
20
|
+
});
|
|
21
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::4f53ba8f6538a6998c1bf17cb66183f4>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import BlogObjectTile from './components/blog';
|
|
7
|
+
import BranchObjectTile from './components/branch';
|
|
8
|
+
import BugObjectTile from './components/bug';
|
|
9
|
+
import CalendarObjectTile from './components/calendar';
|
|
10
|
+
import ChangesObjectTile from './components/changes';
|
|
11
|
+
import CodeObjectTile from './components/code';
|
|
12
|
+
import CommitObjectTile from './components/commit';
|
|
13
|
+
import EpicObjectTile from './components/epic';
|
|
14
|
+
import ImprovementObjectTile from './components/improvement';
|
|
15
|
+
import IncidentObjectTile from './components/incident';
|
|
16
|
+
import IssueObjectTile from './components/issue';
|
|
17
|
+
import NewFeatureObjectTile from './components/new-feature';
|
|
18
|
+
import PageObjectTile from './components/page';
|
|
19
|
+
import PageLiveDocObjectTile from './components/page-live-doc';
|
|
20
|
+
import ProblemObjectTile from './components/problem';
|
|
21
|
+
import PullRequestObjectTile from './components/pull-request';
|
|
22
|
+
import QuestionObjectTile from './components/question';
|
|
23
|
+
import StoryObjectTile from './components/story';
|
|
24
|
+
import SubtaskObjectTile from './components/subtask';
|
|
25
|
+
import TaskObjectTile from './components/task';
|
|
26
|
+
import WhiteboardObjectTile from './components/whiteboard';
|
|
27
|
+
export const allObjectTiles = [BlogObjectTile, BranchObjectTile, BugObjectTile, CalendarObjectTile, ChangesObjectTile, CodeObjectTile, CommitObjectTile, EpicObjectTile, ImprovementObjectTile, IncidentObjectTile, IssueObjectTile, NewFeatureObjectTile, PageLiveDocObjectTile, PageObjectTile, ProblemObjectTile, PullRequestObjectTile, QuestionObjectTile, StoryObjectTile, SubtaskObjectTile, TaskObjectTile, WhiteboardObjectTile];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::ed137347af138f8bf5eba5e0d72ca8db>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/quotation-mark';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function BlogObjectTile({
|
|
10
|
+
label = 'Blog',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-blue, #1D7AFC)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.blue.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::8490609520f1254c5fa6f8b9f4798964>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/branch';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function BranchObjectTile({
|
|
10
|
+
label = 'Branch',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-blue, #1D7AFC)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.blue.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::936d2ab97325f6a3b11257713a1a9b51>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/bug';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function BugObjectTile({
|
|
10
|
+
label = 'Bug',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-red, #C9372C)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.red.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::5da7d3b7a8bbf2ef910a4a9f048950fe>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/calendar';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function CalendarObjectTile({
|
|
10
|
+
label = 'Calendar',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-red, #C9372C)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.red.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::f42fce59eb0e764a273601e1315115f0>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/changes';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function ChangesObjectTile({
|
|
10
|
+
label = 'Changes',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-yellow, #B38600)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.yellow.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::016bd773c428d9cd111bcf1f84a78a85>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/angle-brackets';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function CodeObjectTile({
|
|
10
|
+
label = 'Code',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-purple, #8270DB)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.purple.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::eabe6fffcc54955926bd4c8aeb572a99>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/commit';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function CommitObjectTile({
|
|
10
|
+
label = 'Commit',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-yellow, #B38600)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.yellow.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::22b0f03727afe0eb4bd6c84b8db8d139>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/epic';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function EpicObjectTile({
|
|
10
|
+
label = 'Epic',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-purple, #8270DB)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.purple.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::bbe2678be641ef4927b2edd795d3b99a>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/arrow-up';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function ImprovementObjectTile({
|
|
10
|
+
label = 'Improvement',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-green, #22A06B)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.green.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::17a5c5adbcacd774fe1f29834c5b7092>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/incident';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function IncidentObjectTile({
|
|
10
|
+
label = 'Incident',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-red, #C9372C)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.red.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::285fc8d755070ab26e6841c82b7e4332>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/work-item';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function IssueObjectTile({
|
|
10
|
+
label = 'Issue',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-blue, #1D7AFC)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.blue.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::4c0efa7f96a0b8feeba5faa90e75f70b>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/add';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function NewFeatureObjectTile({
|
|
10
|
+
label = 'New Feature',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-green, #22A06B)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.green.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::a352b4655dfdb9527886d577a3440c64>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon-lab/core/page-live-doc';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function PageLiveDocObjectTile({
|
|
10
|
+
label = 'Page Live Doc',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-magenta, #CD519D)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.magenta.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::3c738bff4bd14e0dc6a4c5c2ebecf10b>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/page';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function PageObjectTile({
|
|
10
|
+
label = 'Page',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-blue, #1D7AFC)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.blue.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::9c597341a531e9c902eab31cb273de4f>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/problem';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function ProblemObjectTile({
|
|
10
|
+
label = 'Problem',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-red, #C9372C)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.red.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::bb612b6d38bf62d2ab8fe6da1e4b1ef7>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/pull-request';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function PullRequestObjectTile({
|
|
10
|
+
label = 'Pull Request',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-green, #22A06B)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.green.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::95bf1caf442e1d8f4f2fc8c4becc45cb>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/question-circle';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function QuestionObjectTile({
|
|
10
|
+
label = 'Question',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-purple, #8270DB)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.purple.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::11645dcfcd04d3a0c68e0e7e80e940e9>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/story';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function StoryObjectTile({
|
|
10
|
+
label = 'Story',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-green, #22A06B)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.green.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::4670d53594bd7203f411b5317bd4753b>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/subtasks';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function SubtaskObjectTile({
|
|
10
|
+
label = 'Subtask',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-blue, #1D7AFC)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.blue.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::51c042113355bfc978517ff99d7a7e77>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/task';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function TaskObjectTile({
|
|
10
|
+
label = 'Task',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-blue, #1D7AFC)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.blue.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::22c25157f6ecfe525f8a4a12a7c72516>>
|
|
4
|
+
* @codegenCommand yarn build-glyphs
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import IconComponent from '@atlaskit/icon/core/whiteboard';
|
|
8
|
+
import ObjectTileBase from '../object-tile-base';
|
|
9
|
+
export default function WhiteboardObjectTile({
|
|
10
|
+
label = 'Whiteboard',
|
|
11
|
+
size,
|
|
12
|
+
testId,
|
|
13
|
+
isBold
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ObjectTileBase, {
|
|
16
|
+
label: label,
|
|
17
|
+
size: size,
|
|
18
|
+
testId: testId,
|
|
19
|
+
isBold: isBold,
|
|
20
|
+
icon: IconComponent,
|
|
21
|
+
color: isBold ? "var(--ds-icon, #44546F)" : "var(--ds-icon-accent-teal, #2898BD)",
|
|
22
|
+
backgroundColor: isBold ? 'color.background.accent.teal.subtle' : undefined
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import invariant from 'tiny-invariant';
|
|
3
|
+
import Tile from '@atlaskit/tile';
|
|
4
|
+
/**
|
|
5
|
+
* __Object tile base__
|
|
6
|
+
*
|
|
7
|
+
* An object tile represents an Atlassian-specific content type.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export default function ObjectTileBase({
|
|
11
|
+
label = '',
|
|
12
|
+
size = 'medium',
|
|
13
|
+
testId,
|
|
14
|
+
color,
|
|
15
|
+
backgroundColor,
|
|
16
|
+
icon: Icon
|
|
17
|
+
}) {
|
|
18
|
+
// Validate that size is a valid `ObjectTileSize` (and won't allow Tile's `xxsmall` size to be passed)
|
|
19
|
+
const validSizes = ['xsmall', 'small', 'medium', 'large', 'xlarge'];
|
|
20
|
+
invariant(validSizes.includes(size), `ObjectTile: size "${size}" is not valid. Valid sizes are: ${validSizes.join(', ')}`);
|
|
21
|
+
return /*#__PURE__*/React.createElement(Tile, {
|
|
22
|
+
label: "",
|
|
23
|
+
backgroundColor: backgroundColor,
|
|
24
|
+
size: size
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
26
|
+
label: label,
|
|
27
|
+
color: color,
|
|
28
|
+
testId: testId
|
|
29
|
+
// @ts-expect-error - Internal, undocumented prop
|
|
30
|
+
,
|
|
31
|
+
shouldScale: true
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
File without changes
|