@atlaskit/tile 1.0.4 → 1.0.6
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 +15 -0
- package/constellation/index/usage.mdx +40 -36
- package/dist/cjs/tile.js +1 -1
- package/dist/es2019/tile.js +1 -1
- package/dist/esm/tile.js +1 -1
- package/package.json +13 -4
- package/tile.docs.tsx +30 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/tile
|
|
2
2
|
|
|
3
|
+
## 1.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`02483200273ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/02483200273ec) -
|
|
8
|
+
Enrol all Design System UI packages into the React Compiler with platform gating via
|
|
9
|
+
isReactCompilerActivePlatform.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.0.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.0.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -50,48 +50,52 @@ Use tiles to slot in elements such as:
|
|
|
50
50
|
- Non-inset variant: suited for full bleed assets as it allows for an end-to-end fill
|
|
51
51
|
- Inset variant: use for any other content
|
|
52
52
|
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
53
|
+
<DoDontGrid>
|
|
54
|
+
<DoDont
|
|
55
|
+
type="do"
|
|
56
|
+
image={{
|
|
57
|
+
url: tileVariantDo,
|
|
58
|
+
alt: '',
|
|
59
|
+
}}
|
|
60
|
+
>
|
|
61
|
+
Use the same variant when tiles are listed or grouped.
|
|
62
|
+
</DoDont>
|
|
63
|
+
<DoDont
|
|
64
|
+
type="dont"
|
|
65
|
+
image={{
|
|
66
|
+
url: tileVariantDont,
|
|
67
|
+
alt: '',
|
|
68
|
+
}}
|
|
69
|
+
>
|
|
70
|
+
Avoid mixing inset and non-inset variables in a group.
|
|
71
|
+
</DoDont>
|
|
72
|
+
</DoDontGrid>
|
|
71
73
|
|
|
72
74
|
### Reference height of adjacent content for size
|
|
73
75
|
|
|
74
76
|
Tiles support a range of sizes from 16px to 48px. As a general rule when selecting size, reference
|
|
75
77
|
the size of the tile to the height of its adjacent content for visual balance.
|
|
76
78
|
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
79
|
+
<DoDontGrid>
|
|
80
|
+
<DoDont
|
|
81
|
+
type="do"
|
|
82
|
+
image={{
|
|
83
|
+
url: tileReferenceDo,
|
|
84
|
+
alt: '',
|
|
85
|
+
}}
|
|
86
|
+
>
|
|
87
|
+
Align tile sizing to closely match the height of its adjacent content.
|
|
88
|
+
</DoDont>
|
|
89
|
+
<DoDont
|
|
90
|
+
type="dont"
|
|
91
|
+
image={{
|
|
92
|
+
url: tileReferenceDont,
|
|
93
|
+
alt: '',
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
Avoid selecting tile sizes smaller than the height of its adjacent content.
|
|
97
|
+
</DoDont>
|
|
98
|
+
</DoDontGrid>
|
|
95
99
|
|
|
96
100
|
## Related
|
|
97
101
|
|
package/dist/cjs/tile.js
CHANGED
package/dist/es2019/tile.js
CHANGED
package/dist/esm/tile.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"atlassian": {
|
|
3
|
+
"react-compiler": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"gating": {
|
|
6
|
+
"source": "@atlassian/react-compiler-gating",
|
|
7
|
+
"importSpecifierName": "isReactCompilerActivePlatform"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
3
10
|
"team": "Design System Team",
|
|
4
11
|
"website": {
|
|
5
12
|
"name": "Tile",
|
|
@@ -26,9 +33,9 @@
|
|
|
26
33
|
"atlaskit:src": "src/index.tsx",
|
|
27
34
|
"dependencies": {
|
|
28
35
|
"@atlaskit/skeleton": "^2.1.0",
|
|
29
|
-
"@atlaskit/tokens": "^
|
|
36
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
30
37
|
"@babel/runtime": "^7.0.0",
|
|
31
|
-
"@compiled/react": "^0.
|
|
38
|
+
"@compiled/react": "^0.20.0"
|
|
32
39
|
},
|
|
33
40
|
"peerDependencies": {
|
|
34
41
|
"react": "^18.2.0"
|
|
@@ -36,8 +43,10 @@
|
|
|
36
43
|
"devDependencies": {
|
|
37
44
|
"@af/accessibility-testing": "workspace:^",
|
|
38
45
|
"@af/visual-regression": "workspace:^",
|
|
39
|
-
"@atlaskit/ds-lib": "^
|
|
46
|
+
"@atlaskit/ds-lib": "^6.0.0",
|
|
40
47
|
"@atlaskit/ssr": "workspace:^",
|
|
48
|
+
"@atlassian/react-compiler-gating": "workspace:^",
|
|
49
|
+
"@atlassian/structured-docs-types": "workspace:^",
|
|
41
50
|
"@testing-library/react": "^16.3.0",
|
|
42
51
|
"react-dom": "^18.2.0"
|
|
43
52
|
},
|
|
@@ -79,7 +88,7 @@
|
|
|
79
88
|
}
|
|
80
89
|
},
|
|
81
90
|
"name": "@atlaskit/tile",
|
|
82
|
-
"version": "1.0.
|
|
91
|
+
"version": "1.0.6",
|
|
83
92
|
"description": "A tile is a rounded square that takes an asset and represents a noun.",
|
|
84
93
|
"author": "Atlassian Pty Ltd",
|
|
85
94
|
"license": "Apache-2.0",
|
package/tile.docs.tsx
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
|
|
3
|
+
import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
|
|
4
|
+
|
|
5
|
+
const documentation: ComponentStructuredContentSource[] = [
|
|
6
|
+
{
|
|
7
|
+
name: 'Tile',
|
|
8
|
+
description:
|
|
9
|
+
'A tile is a versatile, foundational container with baked-in sizing and radii properties for displaying elements in a tile shape.',
|
|
10
|
+
status: 'general-availability',
|
|
11
|
+
import: {
|
|
12
|
+
name: 'Tile',
|
|
13
|
+
package: '@atlaskit/tile',
|
|
14
|
+
type: 'default',
|
|
15
|
+
packagePath: path.resolve(__dirname),
|
|
16
|
+
packageJson: require('./package.json'),
|
|
17
|
+
},
|
|
18
|
+
examples: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Basic',
|
|
21
|
+
description: 'Basic tile example',
|
|
22
|
+
source: path.resolve(__dirname, './examples/basic.tsx'),
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
keywords: ['tile', 'icon', 'container', 'avatar', 'asset', 'emoji', 'logo', 'shape'],
|
|
26
|
+
categories: ['images and icons', 'layout'],
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
export default documentation;
|