@atlaskit/skeleton 0.2.1 → 0.2.3
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,17 @@
|
|
|
1
1
|
# @atlaskit/skeleton
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
|
|
8
|
+
|
|
9
|
+
## 0.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
14
|
+
|
|
3
15
|
## 0.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ui';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
type SkeletonProps = {
|
|
4
|
+
width: string | number;
|
|
5
|
+
height: string | number;
|
|
6
|
+
/**
|
|
7
|
+
* Defaults to 100px to allow for any reasonable size skeleton having rounded corners.
|
|
8
|
+
*/
|
|
9
|
+
borderRadius?: string | number;
|
|
10
|
+
/**
|
|
11
|
+
* Enables the shimmering animation.
|
|
12
|
+
*/
|
|
13
|
+
isShimmering?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Applied as a data-attribute. Use this to target groups of skeletons with the same name (e.g. for applying custom styles)
|
|
16
|
+
* ```
|
|
17
|
+
* groupName="my-skeleton" -> <div data-my-skeleton>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
groupName?: string;
|
|
21
|
+
testId?: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* __Skeleton__
|
|
25
|
+
*
|
|
26
|
+
* A skeleton acts as a placeholder for content, usually while the content loads.
|
|
27
|
+
*
|
|
28
|
+
* - [Examples](https://atlassian.design/components/skeleton/examples)
|
|
29
|
+
* - [Code](https://atlassian.design/components/skeleton/code)
|
|
30
|
+
*/
|
|
31
|
+
declare const Skeleton: ({ width, height, borderRadius, isShimmering, groupName, testId, }: SkeletonProps) => jsx.JSX.Element;
|
|
32
|
+
export default Skeleton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/skeleton",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "A skeleton acts as a placeholder for content, usually while the content loads.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,11 +48,9 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@atlaskit/docs": "*",
|
|
51
|
-
"@atlaskit/ds-explorations": "^2.
|
|
51
|
+
"@atlaskit/ds-explorations": "^2.2.0",
|
|
52
52
|
"@atlaskit/primitives": "^0.9.0",
|
|
53
|
-
"@atlaskit/ssr": "*",
|
|
54
53
|
"@atlaskit/visual-regression": "*",
|
|
55
|
-
"@atlaskit/webdriver-runner": "*",
|
|
56
54
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
57
55
|
"@testing-library/react": "^12.1.5",
|
|
58
56
|
"react-dom": "^16.8.0",
|