@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 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
- <DoDont
54
- type="do"
55
- image={{
56
- url: tileVariantDo,
57
- alt: '',
58
- }}
59
- >
60
- Use the same variant when tiles are listed or grouped.
61
- </DoDont>
62
- <DoDont
63
- type="dont"
64
- image={{
65
- url: tileVariantDont,
66
- alt: '',
67
- }}
68
- >
69
- Avoid mixing inset and non-inset variables in a group.
70
- </DoDont>
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
- <DoDont
78
- type="do"
79
- image={{
80
- url: tileReferenceDo,
81
- alt: '',
82
- }}
83
- >
84
- Align tile sizing to closely match the height of its adjacent content.
85
- </DoDont>
86
- <DoDont
87
- type="dont"
88
- image={{
89
- url: tileReferenceDont,
90
- alt: '',
91
- }}
92
- >
93
- Avoid selecting tile sizes smaller than the height of its adjacent content.
94
- </DoDont>
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
@@ -1,4 +1,4 @@
1
- /* tile.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tile.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-important-styles */
3
3
  "use strict";
4
4
 
@@ -1,4 +1,4 @@
1
- /* tile.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tile.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-important-styles */
3
3
  import "./tile.compiled.css";
4
4
  import * as React from 'react';
package/dist/esm/tile.js CHANGED
@@ -1,4 +1,4 @@
1
- /* tile.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tile.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-important-styles */
3
3
  import "./tile.compiled.css";
4
4
  import * as React from 'react';
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": "^10.0.0",
36
+ "@atlaskit/tokens": "^11.4.0",
30
37
  "@babel/runtime": "^7.0.0",
31
- "@compiled/react": "^0.18.6"
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": "^5.3.0",
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.4",
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;