@atlaskit/empty-state 7.7.2 → 7.9.0
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 +271 -104
- package/README.md +4 -4
- package/dist/cjs/styled/actions-container.js +8 -3
- package/dist/cjs/styled/container.js +7 -0
- package/dist/cjs/styled/description.js +8 -3
- package/dist/cjs/styled/header.js +9 -2
- package/dist/cjs/styled/image.js +6 -0
- package/dist/cjs/styled/spinner-container.js +6 -1
- package/dist/es2019/styled/actions-container.js +7 -3
- package/dist/es2019/styled/container.js +6 -0
- package/dist/es2019/styled/description.js +7 -3
- package/dist/es2019/styled/header.js +8 -2
- package/dist/es2019/styled/image.js +5 -0
- package/dist/es2019/styled/spinner-container.js +5 -1
- package/dist/esm/styled/actions-container.js +7 -3
- package/dist/esm/styled/container.js +6 -0
- package/dist/esm/styled/description.js +7 -3
- package/dist/esm/styled/header.js +8 -2
- package/dist/esm/styled/image.js +5 -0
- package/dist/esm/styled/spinner-container.js +5 -1
- package/dist/types/styled/actions-container.d.ts +4 -1
- package/dist/types/styled/container.d.ts +4 -1
- package/dist/types/styled/description.d.ts +4 -1
- package/dist/types/styled/header.d.ts +4 -1
- package/dist/types/styled/image.d.ts +4 -1
- package/dist/types/styled/spinner-container.d.ts +4 -1
- package/dist/types-ts4.5/styled/actions-container.d.ts +4 -1
- package/dist/types-ts4.5/styled/container.d.ts +4 -1
- package/dist/types-ts4.5/styled/description.d.ts +4 -1
- package/dist/types-ts4.5/styled/header.d.ts +4 -1
- package/dist/types-ts4.5/styled/image.d.ts +4 -1
- package/dist/types-ts4.5/styled/spinner-container.d.ts +4 -1
- package/package.json +82 -83
- package/report.api.md +44 -43
package/package.json
CHANGED
|
@@ -1,84 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
2
|
+
"name": "@atlaskit/empty-state",
|
|
3
|
+
"version": "7.9.0",
|
|
4
|
+
"description": "An empty state appears when there is no data to display and describes what the user can do next.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"atlaskit:src": "src/index.tsx",
|
|
17
|
+
"atlassian": {
|
|
18
|
+
"team": "Design System Team",
|
|
19
|
+
"releaseModel": "continuous",
|
|
20
|
+
"runReact18": true,
|
|
21
|
+
"productPushConsumption": [
|
|
22
|
+
"jira"
|
|
23
|
+
],
|
|
24
|
+
"website": {
|
|
25
|
+
"name": "Empty state",
|
|
26
|
+
"category": "Components"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@atlaskit/button": "^17.19.0",
|
|
31
|
+
"@atlaskit/spinner": "^16.2.0",
|
|
32
|
+
"@atlaskit/theme": "^12.10.0",
|
|
33
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
34
|
+
"@babel/runtime": "^7.0.0",
|
|
35
|
+
"@emotion/react": "^11.7.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@af/accessibility-testing": "*",
|
|
42
|
+
"@af/visual-regression": "*",
|
|
43
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
44
|
+
"@atlaskit/ssr": "*",
|
|
45
|
+
"@atlaskit/visual-regression": "*",
|
|
46
|
+
"@testing-library/react": "^12.1.5",
|
|
47
|
+
"react-dom": "^16.8.0",
|
|
48
|
+
"typescript": "~5.4.2",
|
|
49
|
+
"wait-for-expect": "^1.2.0"
|
|
50
|
+
},
|
|
51
|
+
"techstack": {
|
|
52
|
+
"@atlassian/frontend": {
|
|
53
|
+
"import-structure": "atlassian-conventions"
|
|
54
|
+
},
|
|
55
|
+
"@repo/internal": {
|
|
56
|
+
"dom-events": "use-bind-event-listener",
|
|
57
|
+
"analytics": "analytics-next",
|
|
58
|
+
"design-tokens": [
|
|
59
|
+
"color",
|
|
60
|
+
"spacing"
|
|
61
|
+
],
|
|
62
|
+
"styling": [
|
|
63
|
+
"static",
|
|
64
|
+
"emotion"
|
|
65
|
+
],
|
|
66
|
+
"design-system": "v1",
|
|
67
|
+
"deprecation": "no-deprecated-imports"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"homepage": "https://atlassian.design/components/empty-state/",
|
|
71
|
+
"typesVersions": {
|
|
72
|
+
">=4.5 <4.9": {
|
|
73
|
+
"*": [
|
|
74
|
+
"dist/types-ts4.5/*",
|
|
75
|
+
"dist/types-ts4.5/index.d.ts"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"af:exports": {
|
|
80
|
+
"./types": "./src/types.tsx",
|
|
81
|
+
".": "./src/index.tsx"
|
|
82
|
+
}
|
|
83
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/empty-state"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -21,56 +22,56 @@ import type { ReactNode } from 'react';
|
|
|
21
22
|
|
|
22
23
|
// @public
|
|
23
24
|
const EmptyState: ({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
description,
|
|
26
|
+
header,
|
|
27
|
+
headingLevel,
|
|
28
|
+
imageHeight,
|
|
29
|
+
imageUrl,
|
|
30
|
+
imageWidth,
|
|
31
|
+
isLoading,
|
|
32
|
+
maxImageHeight,
|
|
33
|
+
maxImageWidth,
|
|
34
|
+
primaryAction,
|
|
35
|
+
renderImage,
|
|
36
|
+
secondaryAction,
|
|
37
|
+
width,
|
|
38
|
+
size,
|
|
39
|
+
tertiaryAction,
|
|
40
|
+
testId,
|
|
40
41
|
}: EmptyStateProps) => JSX.Element;
|
|
41
42
|
export default EmptyState;
|
|
42
43
|
|
|
43
44
|
// @public (undocumented)
|
|
44
45
|
export interface EmptyStateProps {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
description?: ReactNode;
|
|
47
|
+
header: string;
|
|
48
|
+
headingLevel?: number;
|
|
49
|
+
imageHeight?: number;
|
|
50
|
+
imageUrl?: string;
|
|
51
|
+
imageWidth?: number;
|
|
52
|
+
isLoading?: boolean;
|
|
53
|
+
maxImageHeight?: number;
|
|
54
|
+
maxImageWidth?: number;
|
|
55
|
+
primaryAction?: ReactNode;
|
|
56
|
+
renderImage?: (props: RenderImageProps) => React.ReactNode;
|
|
57
|
+
secondaryAction?: ReactNode;
|
|
58
|
+
// @deprecated (undocumented)
|
|
59
|
+
size?: Width;
|
|
60
|
+
tertiaryAction?: ReactNode;
|
|
61
|
+
testId?: string;
|
|
62
|
+
width?: Width;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
// @public (undocumented)
|
|
65
66
|
export interface RenderImageProps {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
// (undocumented)
|
|
68
|
+
imageHeight?: number;
|
|
69
|
+
// (undocumented)
|
|
70
|
+
imageWidth?: number;
|
|
71
|
+
// (undocumented)
|
|
72
|
+
maxImageHeight?: number;
|
|
73
|
+
// (undocumented)
|
|
74
|
+
maxImageWidth?: number;
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
// @public (undocumented)
|
|
@@ -90,7 +91,7 @@ export type Width = Sizes;
|
|
|
90
91
|
|
|
91
92
|
```json
|
|
92
93
|
{
|
|
93
|
-
|
|
94
|
+
"react": "^16.8.0"
|
|
94
95
|
}
|
|
95
96
|
```
|
|
96
97
|
|