@atlaskit/empty-state 7.4.8 → 7.4.9
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 +6 -0
- package/dist/cjs/empty-state.js +3 -1
- package/dist/cjs/styled/container.js +1 -0
- package/dist/cjs/styled/image.js +1 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/empty-state.js +3 -1
- package/dist/es2019/styled/container.js +1 -0
- package/dist/es2019/styled/image.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/empty-state.js +3 -1
- package/dist/esm/styled/container.js +1 -0
- package/dist/esm/styled/image.js +1 -0
- package/dist/esm/version.json +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/empty-state
|
|
2
2
|
|
|
3
|
+
## 7.4.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`24f81932945`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24f81932945) - Migrates unit tests from enzyme to RTL. Adds testId to Spinner component.
|
|
8
|
+
|
|
3
9
|
## 7.4.8
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/empty-state.js
CHANGED
|
@@ -49,7 +49,9 @@ var EmptyState = function EmptyState(_ref) {
|
|
|
49
49
|
size = _ref.size,
|
|
50
50
|
tertiaryAction = _ref.tertiaryAction,
|
|
51
51
|
testId = _ref.testId;
|
|
52
|
-
var actionsContainer = primaryAction || secondaryAction || isLoading ? /*#__PURE__*/_react.default.createElement(_styled.ActionsContainer, null, /*#__PURE__*/_react.default.createElement(_buttonGroup.default, null, secondaryAction, primaryAction), /*#__PURE__*/_react.default.createElement(_styled.SpinnerContainer, null, isLoading && /*#__PURE__*/_react.default.createElement(_spinner.default,
|
|
52
|
+
var actionsContainer = primaryAction || secondaryAction || isLoading ? /*#__PURE__*/_react.default.createElement(_styled.ActionsContainer, null, /*#__PURE__*/_react.default.createElement(_buttonGroup.default, null, secondaryAction, primaryAction), /*#__PURE__*/_react.default.createElement(_styled.SpinnerContainer, null, isLoading && /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
53
|
+
testId: "empty-state-spinner"
|
|
54
|
+
}))) : null;
|
|
53
55
|
return /*#__PURE__*/_react.default.createElement(_styled.Container, {
|
|
54
56
|
testId: testId,
|
|
55
57
|
width: width || size || 'wide'
|
|
@@ -13,6 +13,7 @@ var verticalMarginSize = gridSize * 6;
|
|
|
13
13
|
var columnWidth = gridSize * 8;
|
|
14
14
|
var gutter = gridSize * 2;
|
|
15
15
|
var containerStyles = (0, _react.css)({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
16
17
|
margin: "".concat(verticalMarginSize, "px auto"),
|
|
17
18
|
textAlign: 'center'
|
|
18
19
|
});
|
package/dist/cjs/styled/image.js
CHANGED
|
@@ -16,6 +16,7 @@ var imageStyles = (0, _react.css)({
|
|
|
16
16
|
display: 'block',
|
|
17
17
|
maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
|
|
18
18
|
maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
20
|
margin: "0 auto ".concat((0, _constants.gridSize)() * 3, "px")
|
|
20
21
|
});
|
|
21
22
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -41,7 +41,9 @@ const EmptyState = ({
|
|
|
41
41
|
tertiaryAction,
|
|
42
42
|
testId
|
|
43
43
|
}) => {
|
|
44
|
-
const actionsContainer = primaryAction || secondaryAction || isLoading ? /*#__PURE__*/React.createElement(ActionsContainer, null, /*#__PURE__*/React.createElement(ButtonGroup, null, secondaryAction, primaryAction), /*#__PURE__*/React.createElement(SpinnerContainer, null, isLoading && /*#__PURE__*/React.createElement(Spinner,
|
|
44
|
+
const actionsContainer = primaryAction || secondaryAction || isLoading ? /*#__PURE__*/React.createElement(ActionsContainer, null, /*#__PURE__*/React.createElement(ButtonGroup, null, secondaryAction, primaryAction), /*#__PURE__*/React.createElement(SpinnerContainer, null, isLoading && /*#__PURE__*/React.createElement(Spinner, {
|
|
45
|
+
testId: "empty-state-spinner"
|
|
46
|
+
}))) : null;
|
|
45
47
|
return /*#__PURE__*/React.createElement(Container, {
|
|
46
48
|
testId: testId,
|
|
47
49
|
width: width || size || 'wide'
|
|
@@ -7,6 +7,7 @@ const verticalMarginSize = gridSize * 6;
|
|
|
7
7
|
const columnWidth = gridSize * 8;
|
|
8
8
|
const gutter = gridSize * 2;
|
|
9
9
|
const containerStyles = css({
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
10
11
|
margin: `${verticalMarginSize}px auto`,
|
|
11
12
|
textAlign: 'center'
|
|
12
13
|
});
|
|
@@ -8,6 +8,7 @@ const imageStyles = css({
|
|
|
8
8
|
display: 'block',
|
|
9
9
|
maxWidth: `var(${CSS_VAR_MAX_WIDTH})`,
|
|
10
10
|
maxHeight: `var(${CSS_VAR_MAX_HEIGHT})`,
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
11
12
|
margin: `0 auto ${getGridSize() * 3}px`
|
|
12
13
|
});
|
|
13
14
|
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/empty-state.js
CHANGED
|
@@ -42,7 +42,9 @@ var EmptyState = function EmptyState(_ref) {
|
|
|
42
42
|
size = _ref.size,
|
|
43
43
|
tertiaryAction = _ref.tertiaryAction,
|
|
44
44
|
testId = _ref.testId;
|
|
45
|
-
var actionsContainer = primaryAction || secondaryAction || isLoading ? /*#__PURE__*/React.createElement(ActionsContainer, null, /*#__PURE__*/React.createElement(ButtonGroup, null, secondaryAction, primaryAction), /*#__PURE__*/React.createElement(SpinnerContainer, null, isLoading && /*#__PURE__*/React.createElement(Spinner,
|
|
45
|
+
var actionsContainer = primaryAction || secondaryAction || isLoading ? /*#__PURE__*/React.createElement(ActionsContainer, null, /*#__PURE__*/React.createElement(ButtonGroup, null, secondaryAction, primaryAction), /*#__PURE__*/React.createElement(SpinnerContainer, null, isLoading && /*#__PURE__*/React.createElement(Spinner, {
|
|
46
|
+
testId: "empty-state-spinner"
|
|
47
|
+
}))) : null;
|
|
46
48
|
return /*#__PURE__*/React.createElement(Container, {
|
|
47
49
|
testId: testId,
|
|
48
50
|
width: width || size || 'wide'
|
|
@@ -7,6 +7,7 @@ var verticalMarginSize = gridSize * 6;
|
|
|
7
7
|
var columnWidth = gridSize * 8;
|
|
8
8
|
var gutter = gridSize * 2;
|
|
9
9
|
var containerStyles = css({
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
10
11
|
margin: "".concat(verticalMarginSize, "px auto"),
|
|
11
12
|
textAlign: 'center'
|
|
12
13
|
});
|
package/dist/esm/styled/image.js
CHANGED
|
@@ -9,6 +9,7 @@ var imageStyles = css({
|
|
|
9
9
|
display: 'block',
|
|
10
10
|
maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
|
|
11
11
|
maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
12
13
|
margin: "0 auto ".concat(getGridSize() * 3, "px")
|
|
13
14
|
});
|
|
14
15
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/empty-state",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.9",
|
|
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/"
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"atlaskit:src": "src/index.tsx",
|
|
18
18
|
"atlassian": {
|
|
19
|
-
"disableProductCI": true,
|
|
20
19
|
"team": "Design System Team",
|
|
21
20
|
"releaseModel": "scheduled",
|
|
22
21
|
"website": {
|
|
@@ -26,9 +25,9 @@
|
|
|
26
25
|
},
|
|
27
26
|
"dependencies": {
|
|
28
27
|
"@atlaskit/button": "^16.5.0",
|
|
29
|
-
"@atlaskit/spinner": "^15.
|
|
28
|
+
"@atlaskit/spinner": "^15.4.0",
|
|
30
29
|
"@atlaskit/theme": "^12.2.0",
|
|
31
|
-
"@atlaskit/tokens": "^1.
|
|
30
|
+
"@atlaskit/tokens": "^1.2.0",
|
|
32
31
|
"@babel/runtime": "^7.0.0",
|
|
33
32
|
"@emotion/react": "^11.7.1"
|
|
34
33
|
},
|
|
@@ -42,7 +41,6 @@
|
|
|
42
41
|
"@atlaskit/visual-regression": "*",
|
|
43
42
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
44
43
|
"@testing-library/react": "^12.1.5",
|
|
45
|
-
"enzyme": "^3.10.0",
|
|
46
44
|
"react-dom": "^16.8.0",
|
|
47
45
|
"typescript": "4.5.5",
|
|
48
46
|
"wait-for-expect": "^1.2.0"
|
|
@@ -54,8 +52,10 @@
|
|
|
54
52
|
"@repo/internal": {
|
|
55
53
|
"dom-events": "use-bind-event-listener",
|
|
56
54
|
"analytics": "analytics-next",
|
|
57
|
-
"design-tokens":
|
|
58
|
-
|
|
55
|
+
"design-tokens": [
|
|
56
|
+
"color",
|
|
57
|
+
"spacing"
|
|
58
|
+
],
|
|
59
59
|
"styling": [
|
|
60
60
|
"static",
|
|
61
61
|
"emotion"
|