@atlaskit/empty-state 10.1.12 → 10.1.13
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 +7 -0
- package/dist/cjs/empty-state.js +8 -5
- package/dist/es2019/empty-state.js +4 -1
- package/dist/esm/empty-state.js +4 -1
- package/package.json +3 -3
- package/dist/cjs/styled/index.js +0 -34
- package/dist/es2019/styled/index.js +0 -4
- package/dist/esm/styled/index.js +0 -4
- package/dist/types/styled/index.d.ts +0 -4
- package/dist/types-ts4.5/styled/index.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/empty-state
|
|
2
2
|
|
|
3
|
+
## 10.1.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3752ebde7865b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3752ebde7865b) -
|
|
8
|
+
Removes redundant internal barrel file in favour of directly importing modules
|
|
9
|
+
|
|
3
10
|
## 10.1.12
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/empty-state.js
CHANGED
|
@@ -10,7 +10,10 @@ var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group
|
|
|
10
10
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
11
11
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
12
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
13
|
-
var
|
|
13
|
+
var _actionsContainer = _interopRequireDefault(require("./styled/actions-container"));
|
|
14
|
+
var _container = _interopRequireDefault(require("./styled/container"));
|
|
15
|
+
var _image = _interopRequireDefault(require("./styled/image"));
|
|
16
|
+
var _spinnerContainer = _interopRequireDefault(require("./styled/spinner-container"));
|
|
14
17
|
/**
|
|
15
18
|
* __Empty state__
|
|
16
19
|
*
|
|
@@ -55,17 +58,17 @@ var EmptyState = function EmptyState(_ref) {
|
|
|
55
58
|
width = _ref.width,
|
|
56
59
|
tertiaryAction = _ref.tertiaryAction,
|
|
57
60
|
testId = _ref.testId;
|
|
58
|
-
var actionsContainer = primaryAction || secondaryAction || isLoading ? /*#__PURE__*/_react.default.createElement(
|
|
61
|
+
var actionsContainer = primaryAction || secondaryAction || isLoading ? /*#__PURE__*/_react.default.createElement(_actionsContainer.default, null, primaryAction && secondaryAction ? /*#__PURE__*/_react.default.createElement(_buttonGroup.default, {
|
|
59
62
|
label: buttonGroupLabel || 'Button group',
|
|
60
63
|
testId: testId && "".concat(testId, "-button-group")
|
|
61
|
-
}, secondaryAction, primaryAction) : primaryAction || secondaryAction, /*#__PURE__*/_react.default.createElement(
|
|
64
|
+
}, secondaryAction, primaryAction) : primaryAction || secondaryAction, /*#__PURE__*/_react.default.createElement(_spinnerContainer.default, null, isLoading && /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
62
65
|
testId: "empty-state-spinner"
|
|
63
66
|
}))) : null;
|
|
64
67
|
var tag = "h".concat(headingLevel > 0 && headingLevel < 7 ? headingLevel : headingLevel > 6 ? 6 : 4);
|
|
65
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
68
|
+
return /*#__PURE__*/_react.default.createElement(_container.default, {
|
|
66
69
|
testId: testId,
|
|
67
70
|
width: width || 'wide'
|
|
68
|
-
}, imageUrl ? /*#__PURE__*/_react.default.createElement(
|
|
71
|
+
}, imageUrl ? /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
69
72
|
src: imageUrl,
|
|
70
73
|
maxWidth: maxImageWidth,
|
|
71
74
|
maxHeight: maxImageHeight,
|
|
@@ -3,7 +3,10 @@ import ButtonGroup from '@atlaskit/button/button-group';
|
|
|
3
3
|
import Heading from '@atlaskit/heading';
|
|
4
4
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
5
5
|
import Spinner from '@atlaskit/spinner';
|
|
6
|
-
import
|
|
6
|
+
import ActionsContainer from './styled/actions-container';
|
|
7
|
+
import Container from './styled/container';
|
|
8
|
+
import HeaderImage from './styled/image';
|
|
9
|
+
import SpinnerContainer from './styled/spinner-container';
|
|
7
10
|
/**
|
|
8
11
|
* __Empty state__
|
|
9
12
|
*
|
package/dist/esm/empty-state.js
CHANGED
|
@@ -3,7 +3,10 @@ import ButtonGroup from '@atlaskit/button/button-group';
|
|
|
3
3
|
import Heading from '@atlaskit/heading';
|
|
4
4
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
5
5
|
import Spinner from '@atlaskit/spinner';
|
|
6
|
-
import
|
|
6
|
+
import ActionsContainer from './styled/actions-container';
|
|
7
|
+
import Container from './styled/container';
|
|
8
|
+
import HeaderImage from './styled/image';
|
|
9
|
+
import SpinnerContainer from './styled/spinner-container';
|
|
7
10
|
/**
|
|
8
11
|
* __Empty state__
|
|
9
12
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/empty-state",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.13",
|
|
4
4
|
"description": "An empty state appears when there is no data to display and describes what the user can do next.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/button": "^23.9.0",
|
|
28
|
-
"@atlaskit/heading": "^5.
|
|
28
|
+
"@atlaskit/heading": "^5.3.0",
|
|
29
29
|
"@atlaskit/primitives": "^18.0.0",
|
|
30
30
|
"@atlaskit/spinner": "^19.0.0",
|
|
31
31
|
"@atlaskit/tokens": "^11.0.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@af/accessibility-testing": "workspace:^",
|
|
40
40
|
"@af/integration-testing": "workspace:^",
|
|
41
41
|
"@af/visual-regression": "workspace:^",
|
|
42
|
-
"@atlaskit/docs": "^11.
|
|
42
|
+
"@atlaskit/docs": "^11.4.0",
|
|
43
43
|
"@atlaskit/link": "^3.3.0",
|
|
44
44
|
"@atlaskit/section-message": "^8.12.0",
|
|
45
45
|
"@atlassian/ssr-tests": "workspace:^",
|
package/dist/cjs/styled/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "ActionsContainer", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _actionsContainer.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "Container", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _container.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "Image", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _image.default;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "SpinnerContainer", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _spinnerContainer.default;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
var _actionsContainer = _interopRequireDefault(require("./actions-container"));
|
|
32
|
-
var _container = _interopRequireDefault(require("./container"));
|
|
33
|
-
var _image = _interopRequireDefault(require("./image"));
|
|
34
|
-
var _spinnerContainer = _interopRequireDefault(require("./spinner-container"));
|
package/dist/esm/styled/index.js
DELETED