@atlaskit/icon-object 6.2.4 → 6.2.7
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 +18 -0
- package/__tests__/visual-regression/__image_snapshots__/icon-object-snapshots-test-tsx-icon-priority-snapshots-should-match-dark-mode-icons-1-snap.png +3 -0
- package/__tests__/visual-regression/__image_snapshots__/{icon-object-snapshots-test-ts-icon-priority-snapshots-should-match-light-mode-icons-1-snap.png → icon-object-snapshots-test-tsx-icon-priority-snapshots-should-match-light-mode-icons-1-snap.png} +0 -0
- package/__tests__/visual-regression/{icon-object-snapshots.test.ts → icon-object-snapshots.test.tsx} +0 -0
- package/build/index.tsx +45 -0
- package/build/tsconfig.json +6 -2
- package/codemods/{6.1.0-metadata-entry.ts → 6.1.0-metadata-entry.tsx} +0 -0
- package/codemods/__tests__/{6.1.0-metadata-entry.ts → 6.1.0-metadata-entry.tsx} +0 -0
- package/constellation/index/examples.mdx +26 -0
- package/constellation/index/icon-explorer.mdx +11 -0
- package/constellation/index/images/icon-object-anatomy.png +0 -0
- package/constellation/index/images/icon-object-tooltip.png +0 -0
- package/constellation/index/props.mdx +5 -0
- package/constellation/index/usage.mdx +39 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/docs/0-intro.tsx +11 -18
- package/metadata/package.json +1 -0
- package/package.json +28 -16
- package/report.api.md +11 -0
- package/__tests__/visual-regression/__image_snapshots__/icon-object-snapshots-test-ts-icon-priority-snapshots-should-match-dark-mode-icons-1-snap.png +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/icon-object
|
|
2
2
|
|
|
3
|
+
## 6.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f0be7593aa3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0be7593aa3) - Internal code change turning on new linting rules.
|
|
8
|
+
|
|
9
|
+
## 6.2.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`b3e5a62a9e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3e5a62a9e3) - Adds `static` techstack to package, enforcing stricter style linting. In this case the package already satisfied this requirement so there have been no changes to styles.
|
|
14
|
+
|
|
15
|
+
## 6.2.5
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
20
|
+
|
|
3
21
|
## 6.2.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
File without changes
|
package/__tests__/visual-regression/{icon-object-snapshots.test.ts → icon-object-snapshots.test.tsx}
RENAMED
|
File without changes
|
package/build/index.tsx
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { build, createIconDocs, tidy } from '@af/icon-build-process';
|
|
3
|
+
import type { IconBuildConfig } from '@af/icon-build-process';
|
|
4
|
+
import pkgDir from 'pkg-dir';
|
|
5
|
+
import fs from 'fs-extra';
|
|
6
|
+
|
|
7
|
+
const root = pkgDir.sync();
|
|
8
|
+
|
|
9
|
+
const config16: IconBuildConfig = {
|
|
10
|
+
srcDir: path.resolve(root!, 'svgs_raw'),
|
|
11
|
+
processedDir: path.resolve(root!, 'svgs'),
|
|
12
|
+
destDir: path.resolve(root!, 'glyph'),
|
|
13
|
+
maxWidth: 16,
|
|
14
|
+
maxHeight: 16,
|
|
15
|
+
glob: '**/16.svg',
|
|
16
|
+
size: 'small',
|
|
17
|
+
baseIconEntryPoint: '@atlaskit/icon/base',
|
|
18
|
+
isColorsDisabled: true,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const config24: IconBuildConfig = {
|
|
22
|
+
srcDir: path.resolve(root!, 'svgs_raw'),
|
|
23
|
+
processedDir: path.resolve(root!, 'svgs'),
|
|
24
|
+
destDir: path.resolve(root!, 'glyph'),
|
|
25
|
+
maxWidth: 24,
|
|
26
|
+
maxHeight: 24,
|
|
27
|
+
glob: '**/24.svg',
|
|
28
|
+
size: 'medium',
|
|
29
|
+
baseIconEntryPoint: '@atlaskit/icon/base',
|
|
30
|
+
isColorsDisabled: true,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
tidy(config16)
|
|
34
|
+
.then(() => Promise.all([build(config16), build(config24)]))
|
|
35
|
+
.then(([sixteen, twentyfour]) => {
|
|
36
|
+
const allIcons = [...sixteen, ...twentyfour];
|
|
37
|
+
const iconDocs = createIconDocs(allIcons, '@atlaskit/icon-object', {}, [
|
|
38
|
+
'object',
|
|
39
|
+
'icon-object',
|
|
40
|
+
]);
|
|
41
|
+
|
|
42
|
+
console.log('@atlaskit-icon-object built');
|
|
43
|
+
|
|
44
|
+
return fs.outputFile(path.resolve(root!, 'src/metadata.ts'), iconDocs);
|
|
45
|
+
});
|
package/build/tsconfig.json
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
import IconObject16 from '../../examples/constellation/icon-object-16.tsx'
|
|
6
|
+
import IconObject24 from '../../examples/constellation/icon-object-24.tsx'
|
|
7
|
+
|
|
8
|
+
## Sizing
|
|
9
|
+
|
|
10
|
+
### Small
|
|
11
|
+
|
|
12
|
+
Use the small size when space is at a premium.
|
|
13
|
+
|
|
14
|
+
Elements in this icon are simplified, rearranged or filled in because there is significantly less space.
|
|
15
|
+
|
|
16
|
+
This icon is designed on a 16px grid and uses 1px strokes.
|
|
17
|
+
|
|
18
|
+
<Example Component={IconObject16} packageName='@atlaskit/icon-object'/>
|
|
19
|
+
|
|
20
|
+
### Medium
|
|
21
|
+
|
|
22
|
+
The medium size (24px) is used in common interfaces.
|
|
23
|
+
|
|
24
|
+
This icon is designed on a 20px grid (on 24px artboard) and uses 2px strokes.
|
|
25
|
+
|
|
26
|
+
<Example Component={IconObject24} packageName='@atlaskit/icon-object'/>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 3
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Object icons represent an Atlassian-specific content type. They can trigger actions such as opening a page in Confluence, an issue in Jira, or a pull request in Bitbucket.
|
|
8
|
+
|
|
9
|
+
Unlike a standard icon, object icons help people identify the content type fast. This reduces cognitive load for people across products and platforms.
|
|
10
|
+
|
|
11
|
+
Object icons can be in:
|
|
12
|
+
- Search
|
|
13
|
+
- Media cards
|
|
14
|
+
- Smart cards
|
|
15
|
+
- Attachment uploads
|
|
16
|
+
- Activity feeds
|
|
17
|
+
- Inline links
|
|
18
|
+
|
|
19
|
+
## Anatomy
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
## Best practices
|
|
24
|
+
|
|
25
|
+
### Color
|
|
26
|
+
|
|
27
|
+
Object icons are assigned specific colors. For cross-product and platform consistency, don’t change the color of the object icon.
|
|
28
|
+
|
|
29
|
+
## Accessibility
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
- Use object icons in combination with a title and meta-information, such as author, creation date, or sub-heading.
|
|
34
|
+
- Pair object icons with [tooltips](/components/tooltip). On hover, the tooltip reveals the specific content type of the icon.
|
|
35
|
+
|
|
36
|
+
## Related
|
|
37
|
+
|
|
38
|
+
- [Icon](/components/icon)
|
|
39
|
+
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/docs/0-intro.tsx
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { md, Props } from '@atlaskit/docs';
|
|
3
|
-
import IconExplorer from '../examples/icon-explorer';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
${(
|
|
9
|
-
<p>
|
|
10
|
-
<IconExplorer />
|
|
11
|
-
</p>
|
|
12
|
-
)}
|
|
3
|
+
import { md } from '@atlaskit/docs';
|
|
4
|
+
import SectionMessage from '@atlaskit/section-message';
|
|
13
5
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
export default md`
|
|
7
|
+
${(
|
|
8
|
+
<SectionMessage appearance="information">
|
|
9
|
+
This component is now documented on{' '}
|
|
10
|
+
<a href="https://atlassian.design/components/icon-object">
|
|
11
|
+
atlassian.design
|
|
12
|
+
</a>
|
|
13
|
+
</SectionMessage>
|
|
14
|
+
)}
|
|
22
15
|
`;
|
package/metadata/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon-object",
|
|
3
|
-
"version": "6.2.
|
|
4
|
-
"description": "An object icon is used to represent an
|
|
3
|
+
"version": "6.2.7",
|
|
4
|
+
"description": "An object icon is used to represent an Atlassian-specific content type.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"homepage": "https://atlassian.design/components/icon-object/",
|
|
9
10
|
"author": "Atlassian Pty Ltd",
|
|
10
11
|
"license": "Apache-2.0",
|
|
11
|
-
"atlaskit:src": "src/index.
|
|
12
|
+
"atlaskit:src": "src/index.tsx",
|
|
12
13
|
"main": "dist/cjs/index.js",
|
|
13
14
|
"module": "dist/esm/index.js",
|
|
14
15
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -16,22 +17,22 @@
|
|
|
16
17
|
"sideEffects": false,
|
|
17
18
|
"atlassian": {
|
|
18
19
|
"team": "Design System Team",
|
|
19
|
-
"inPublicMirror": true,
|
|
20
20
|
"releaseModel": "scheduled",
|
|
21
21
|
"website": {
|
|
22
|
-
"name": "Icon
|
|
22
|
+
"name": "Icon object",
|
|
23
|
+
"category": "Components"
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
26
|
"af:exports": {
|
|
26
|
-
"./metadata": "./src/entry-points/metadata.
|
|
27
|
+
"./metadata": "./src/entry-points/metadata.tsx",
|
|
27
28
|
"./glyph": "./glyph",
|
|
28
|
-
".": "./src/index.
|
|
29
|
+
".": "./src/index.tsx"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
|
-
"build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.
|
|
32
|
+
"build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@atlaskit/icon": "^21.
|
|
35
|
+
"@atlaskit/icon": "^21.10.0",
|
|
35
36
|
"@babel/runtime": "^7.0.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
@@ -39,20 +40,21 @@
|
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@af/icon-build-process": "^0.3.0",
|
|
42
|
-
"@
|
|
43
|
-
"@atlaskit/button": "^
|
|
43
|
+
"@af/icon-explorer": "^0.0.5",
|
|
44
|
+
"@atlaskit/button": "^16.3.0",
|
|
44
45
|
"@atlaskit/docs": "*",
|
|
45
|
-
"@atlaskit/modal-dialog": "^
|
|
46
|
+
"@atlaskit/modal-dialog": "^12.2.0",
|
|
47
|
+
"@atlaskit/section-message": "^6.1.0",
|
|
46
48
|
"@atlaskit/ssr": "*",
|
|
47
49
|
"@atlaskit/textfield": "^5.0.0",
|
|
48
|
-
"@atlaskit/theme": "^
|
|
49
|
-
"@atlaskit/tooltip": "^17.
|
|
50
|
+
"@atlaskit/theme": "^12.1.0",
|
|
51
|
+
"@atlaskit/tooltip": "^17.5.0",
|
|
50
52
|
"@atlaskit/visual-regression": "*",
|
|
51
53
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
52
54
|
"@emotion/styled": "^10.0.7",
|
|
53
55
|
"enzyme": "^3.10.0",
|
|
54
56
|
"fs-extra": "^4.0.2",
|
|
55
|
-
"jscodeshift": "^0.
|
|
57
|
+
"jscodeshift": "^0.13.0",
|
|
56
58
|
"pkg-dir": "^4.2.0",
|
|
57
59
|
"react-dom": "^16.8.0"
|
|
58
60
|
},
|
|
@@ -60,5 +62,15 @@
|
|
|
60
62
|
"atlaskit",
|
|
61
63
|
"ui"
|
|
62
64
|
],
|
|
65
|
+
"techstack": {
|
|
66
|
+
"@repo/internal": {
|
|
67
|
+
"design-system": "v1",
|
|
68
|
+
"dom-events": "use-bind-event-listener",
|
|
69
|
+
"theming": "tokens",
|
|
70
|
+
"styling": [
|
|
71
|
+
"static"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
63
75
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
64
76
|
}
|
package/report.api.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/icon-object"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { default as default_2 } from '@atlaskit/icon/base';
|
|
7
|
+
|
|
8
|
+
export default default_2;
|
|
9
|
+
|
|
10
|
+
export {};
|
|
11
|
+
```
|