@atlaskit/tile 0.2.2 → 1.0.1
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 +13 -0
- package/constellation/index/examples.mdx +14 -0
- package/constellation/index/props.mdx +7 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/skeleton.js +2 -2
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/skeleton.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/skeleton.js +2 -2
- package/dist/types/entry-point/skeleton.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/skeleton.d.ts +4 -4
- package/dist/types/types.d.ts +2 -2
- package/dist/types-ts4.5/entry-point/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/skeleton.d.ts +4 -4
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/tile
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [`951d5982db119`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/951d5982db119) -
|
|
14
|
+
Released for general availability
|
|
15
|
+
|
|
3
16
|
## 0.2.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -10,6 +10,7 @@ import TileBorder from '../../examples/constellation/tile-border';
|
|
|
10
10
|
import TileInset from '../../examples/constellation/tile-inset';
|
|
11
11
|
import TileLabelling from '../../examples/constellation/tile-labelling';
|
|
12
12
|
import TileThemed from '../../examples/constellation/tile-themed';
|
|
13
|
+
import TileSkeletonExample from '../../examples/constellation/tile-skeleton';
|
|
13
14
|
|
|
14
15
|
## Default
|
|
15
16
|
|
|
@@ -80,3 +81,16 @@ tile's <inlineCode>color</inlineCode>, which is already themed using the design
|
|
|
80
81
|
<inlineCode>color.text</inlineCode>.
|
|
81
82
|
|
|
82
83
|
<Example Component={TileThemed} packageName="@atlaskit/tile" appearance="source-only" />
|
|
84
|
+
|
|
85
|
+
## Loading skeleton
|
|
86
|
+
|
|
87
|
+
A loading skeleton is provided called <inlineCode>TileSkeleton</inlineCode>. This can be used in
|
|
88
|
+
conjunction with the [Skeleton component](/components/skeleton), which
|
|
89
|
+
|
|
90
|
+
<inlineCode>TileSkeleton</inlineCode> utilizes internally – with added consistent sizing for tiles
|
|
91
|
+
to prevent layout shift.
|
|
92
|
+
|
|
93
|
+
This is useful for when you need to display a loading state for a tile, such as when fetching data
|
|
94
|
+
or waiting for an API response.
|
|
95
|
+
|
|
96
|
+
<Example Component={TileSkeletonExample} packageName="@atlaskit/tile/skeleton" />
|
|
@@ -5,10 +5,15 @@ props:
|
|
|
5
5
|
includeInternal: true
|
|
6
6
|
exports:
|
|
7
7
|
- default
|
|
8
|
+
- TileSkeleton
|
|
8
9
|
---
|
|
9
10
|
|
|
10
|
-
import Tile from '@atlaskit/tile';
|
|
11
|
-
|
|
12
11
|
## Props
|
|
13
12
|
|
|
13
|
+
### Tile props
|
|
14
|
+
|
|
14
15
|
<TSMorphProps exportName="default" packageName="@atlaskit/tile" />
|
|
16
|
+
|
|
17
|
+
### TileSkeleton props
|
|
18
|
+
|
|
19
|
+
<TSMorphProps exportName="TileSkeleton" packageName="@atlaskit/tile" />
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "TileSkeleton", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
10
|
return _skeleton.default;
|
package/dist/cjs/skeleton.js
CHANGED
|
@@ -9,9 +9,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
|
|
10
10
|
var _tile = _interopRequireDefault(require("./tile"));
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* __Tile Skeleton__
|
|
13
13
|
*
|
|
14
|
-
* A skeleton is the loading state for the tile component.
|
|
14
|
+
* A tile skeleton is the loading state for the tile component.
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
function TileSkeleton(_ref) {
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './tile';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as TileSkeleton } from './entry-point/skeleton';
|
package/dist/es2019/skeleton.js
CHANGED
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import Skeleton from '@atlaskit/skeleton';
|
|
3
3
|
import Tile from './tile';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* __Tile Skeleton__
|
|
6
6
|
*
|
|
7
|
-
* A skeleton is the loading state for the tile component.
|
|
7
|
+
* A tile skeleton is the loading state for the tile component.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export default function TileSkeleton({
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './tile';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as TileSkeleton } from './entry-point/skeleton';
|
package/dist/esm/skeleton.js
CHANGED
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import Skeleton from '@atlaskit/skeleton';
|
|
3
3
|
import Tile from './tile';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* __Tile Skeleton__
|
|
6
6
|
*
|
|
7
|
-
* A skeleton is the loading state for the tile component.
|
|
7
|
+
* A tile skeleton is the loading state for the tile component.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export default function TileSkeleton(_ref) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from '../skeleton';
|
|
2
|
-
export { type
|
|
2
|
+
export { type TileSkeletonProps } from '../types';
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/skeleton.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TileSkeletonProps } from './types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* __Tile Skeleton__
|
|
5
5
|
*
|
|
6
|
-
* A skeleton is the loading state for the tile component.
|
|
6
|
+
* A tile skeleton is the loading state for the tile component.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
export default function TileSkeleton({ color, isShimmering, shimmeringEndColor, size, testId, }:
|
|
9
|
+
export default function TileSkeleton({ color, isShimmering, shimmeringEndColor, size, testId, }: TileSkeletonProps): React.JSX.Element;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -47,9 +47,9 @@ export type TileProps = {
|
|
|
47
47
|
*/
|
|
48
48
|
testId?: string;
|
|
49
49
|
};
|
|
50
|
-
export type
|
|
50
|
+
export type TileSkeletonProps = {
|
|
51
51
|
/**
|
|
52
|
-
* Overrides the default color of skeleton, and overrides the default shimmering start color if
|
|
52
|
+
* Overrides the default color of skeleton, and overrides the default shimmering start color if `shimmeringEndColor` is also provided.
|
|
53
53
|
*/
|
|
54
54
|
color?: string;
|
|
55
55
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from '../skeleton';
|
|
2
|
-
export { type
|
|
2
|
+
export { type TileSkeletonProps } from '../types';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TileSkeletonProps } from './types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* __Tile Skeleton__
|
|
5
5
|
*
|
|
6
|
-
* A skeleton is the loading state for the tile component.
|
|
6
|
+
* A tile skeleton is the loading state for the tile component.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
export default function TileSkeleton({ color, isShimmering, shimmeringEndColor, size, testId, }:
|
|
9
|
+
export default function TileSkeleton({ color, isShimmering, shimmeringEndColor, size, testId, }: TileSkeletonProps): React.JSX.Element;
|
|
@@ -47,9 +47,9 @@ export type TileProps = {
|
|
|
47
47
|
*/
|
|
48
48
|
testId?: string;
|
|
49
49
|
};
|
|
50
|
-
export type
|
|
50
|
+
export type TileSkeletonProps = {
|
|
51
51
|
/**
|
|
52
|
-
* Overrides the default color of skeleton, and overrides the default shimmering start color if
|
|
52
|
+
* Overrides the default color of skeleton, and overrides the default shimmering start color if `shimmeringEndColor` is also provided.
|
|
53
53
|
*/
|
|
54
54
|
color?: string;
|
|
55
55
|
/**
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"atlaskit:src": "src/index.tsx",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@atlaskit/skeleton": "^2.1.0",
|
|
29
|
-
"@atlaskit/tokens": "^
|
|
29
|
+
"@atlaskit/tokens": "^8.0.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
31
31
|
"@compiled/react": "^0.18.6"
|
|
32
32
|
},
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@af/accessibility-testing": "workspace:^",
|
|
38
38
|
"@af/integration-testing": "workspace:^",
|
|
39
39
|
"@af/visual-regression": "workspace:^",
|
|
40
|
-
"@atlaskit/ds-lib": "^5.
|
|
40
|
+
"@atlaskit/ds-lib": "^5.2.0",
|
|
41
41
|
"@atlaskit/ssr": "workspace:^",
|
|
42
42
|
"@testing-library/react": "^13.4.0",
|
|
43
43
|
"react-dom": "^18.2.0"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"name": "@atlaskit/tile",
|
|
83
|
-
"version": "0.
|
|
83
|
+
"version": "1.0.1",
|
|
84
84
|
"description": "A tile is a rounded square that takes an asset and represents a noun.",
|
|
85
85
|
"author": "Atlassian Pty Ltd",
|
|
86
86
|
"license": "Apache-2.0",
|