@atlaskit/empty-state 7.4.7 → 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 CHANGED
@@ -1,5 +1,17 @@
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
+
9
+ ## 7.4.8
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 7.4.7
4
16
 
5
17
  ### Patch Changes
@@ -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, null))) : null;
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
  });
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.4.7",
3
+ "version": "7.4.9",
4
4
  "sideEffects": false
5
5
  }
@@ -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, null))) : null;
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
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.4.7",
3
+ "version": "7.4.9",
4
4
  "sideEffects": false
5
5
  }
@@ -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, null))) : null;
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
  });
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.4.7",
3
+ "version": "7.4.9",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.4.7",
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.3.0",
28
+ "@atlaskit/spinner": "^15.4.0",
30
29
  "@atlaskit/theme": "^12.2.0",
31
- "@atlaskit/tokens": "^0.13.0",
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": "spacing",
58
- "theming": "tokens",
55
+ "design-tokens": [
56
+ "color",
57
+ "spacing"
58
+ ],
59
59
  "styling": [
60
60
  "static",
61
61
  "emotion"