@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 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, "Skeleton", {
7
+ Object.defineProperty(exports, "TileSkeleton", {
8
8
  enumerable: true,
9
9
  get: function get() {
10
10
  return _skeleton.default;
@@ -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
- * __Skeleton__
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) {
@@ -1,2 +1,2 @@
1
1
  export { default } from './tile';
2
- export { default as Skeleton } from './entry-point/skeleton';
2
+ export { default as TileSkeleton } from './entry-point/skeleton';
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import Skeleton from '@atlaskit/skeleton';
3
3
  import Tile from './tile';
4
4
  /**
5
- * __Skeleton__
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 Skeleton } from './entry-point/skeleton';
2
+ export { default as TileSkeleton } from './entry-point/skeleton';
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import Skeleton from '@atlaskit/skeleton';
3
3
  import Tile from './tile';
4
4
  /**
5
- * __Skeleton__
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 SkeletonProps } from '../types';
2
+ export { type TileSkeletonProps } from '../types';
@@ -1,3 +1,3 @@
1
1
  export { default } from './tile';
2
2
  export { type TileProps } from './types';
3
- export { default as Skeleton, type SkeletonProps } from './entry-point/skeleton';
3
+ export { default as TileSkeleton, type TileSkeletonProps } from './entry-point/skeleton';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import type { SkeletonProps } from './types';
2
+ import type { TileSkeletonProps } from './types';
3
3
  /**
4
- * __Skeleton__
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, }: SkeletonProps): React.JSX.Element;
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 SkeletonProps = {
50
+ export type TileSkeletonProps = {
51
51
  /**
52
- * Overrides the default color of skeleton, and overrides the default shimmering start color if ShimmeringEndColor also provided.
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 SkeletonProps } from '../types';
2
+ export { type TileSkeletonProps } from '../types';
@@ -1,3 +1,3 @@
1
1
  export { default } from './tile';
2
2
  export { type TileProps } from './types';
3
- export { default as Skeleton, type SkeletonProps } from './entry-point/skeleton';
3
+ export { default as TileSkeleton, type TileSkeletonProps } from './entry-point/skeleton';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import type { SkeletonProps } from './types';
2
+ import type { TileSkeletonProps } from './types';
3
3
  /**
4
- * __Skeleton__
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, }: SkeletonProps): React.JSX.Element;
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 SkeletonProps = {
50
+ export type TileSkeletonProps = {
51
51
  /**
52
- * Overrides the default color of skeleton, and overrides the default shimmering start color if ShimmeringEndColor also provided.
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": "^7.0.0",
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.1.0",
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.2.2",
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",