@atlaskit/skeleton 0.2.0 → 0.2.2
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 +12 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/ui/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/index.d.ts +32 -0
- package/package.json +10 -2
- package/tmp/api-report-tmp.d.ts +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/skeleton
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
8
|
+
|
|
9
|
+
## 0.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
14
|
+
|
|
3
15
|
## 0.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/dist/types/ui/index.d.ts
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.2",
|
|
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",
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
"module": "dist/esm/index.js",
|
|
26
26
|
"module:es2019": "dist/es2019/index.js",
|
|
27
27
|
"types": "dist/types/index.d.ts",
|
|
28
|
+
"typesVersions": {
|
|
29
|
+
">=4.5 <4.9": {
|
|
30
|
+
"*": [
|
|
31
|
+
"dist/types-ts4.5/*",
|
|
32
|
+
"dist/types-ts4.5/index.d.ts"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
28
36
|
"sideEffects": false,
|
|
29
37
|
"atlaskit:src": "src/index.tsx",
|
|
30
38
|
"af:exports": {
|
|
@@ -48,7 +56,7 @@
|
|
|
48
56
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
49
57
|
"@testing-library/react": "^12.1.5",
|
|
50
58
|
"react-dom": "^16.8.0",
|
|
51
|
-
"typescript": "4.
|
|
59
|
+
"typescript": "~4.9.5",
|
|
52
60
|
"wait-for-expect": "^1.2.0"
|
|
53
61
|
},
|
|
54
62
|
"techstack": {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/skeleton"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
|
+
|
|
9
|
+
// @public
|
|
10
|
+
const Skeleton: ({ width, height, borderRadius, isShimmering, groupName, testId, }: SkeletonProps) => jsx.JSX.Element;
|
|
11
|
+
export default Skeleton;
|
|
12
|
+
|
|
13
|
+
// @public (undocumented)
|
|
14
|
+
type SkeletonProps = {
|
|
15
|
+
width: number | string;
|
|
16
|
+
height: number | string;
|
|
17
|
+
borderRadius?: number | string;
|
|
18
|
+
isShimmering?: boolean;
|
|
19
|
+
groupName?: string;
|
|
20
|
+
testId?: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// (No @packageDocumentation comment for this package)
|
|
24
|
+
|
|
25
|
+
```
|