@atlaskit/empty-state 7.3.12 → 7.4.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/empty-state
2
2
 
3
+ ## 7.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`645ec6a64a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/645ec6a64a8) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 7.3.12
4
14
 
5
15
  ### Patch Changes
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _core = require("@emotion/core");
8
+ var _react = require("@emotion/react");
9
9
 
10
10
  var _constants = require("@atlaskit/theme/constants");
11
11
 
12
12
  /** @jsx jsx */
13
13
  var gridSize = (0, _constants.gridSize)();
14
- var actionsStyles = (0, _core.css)({
14
+ var actionsStyles = (0, _react.css)({
15
15
  display: 'flex',
16
16
  marginBottom: "".concat(gridSize, "px"),
17
17
  paddingLeft: "".concat(5 * gridSize, "px"),
@@ -28,7 +28,7 @@ var actionsStyles = (0, _core.css)({
28
28
 
29
29
  var ActionsContainer = function ActionsContainer(_ref) {
30
30
  var children = _ref.children;
31
- return (0, _core.jsx)("div", {
31
+ return (0, _react.jsx)("div", {
32
32
  css: actionsStyles
33
33
  }, children);
34
34
  };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _core = require("@emotion/core");
8
+ var _react = require("@emotion/react");
9
9
 
10
10
  var _constants = require("@atlaskit/theme/constants");
11
11
 
@@ -14,16 +14,16 @@ var gridSize = (0, _constants.gridSize)();
14
14
  var verticalMarginSize = gridSize * 6;
15
15
  var columnWidth = gridSize * 8;
16
16
  var gutter = gridSize * 2;
17
- var containerStyles = (0, _core.css)({
17
+ var containerStyles = (0, _react.css)({
18
18
  margin: "".concat(verticalMarginSize, "px auto"),
19
19
  textAlign: 'center'
20
20
  });
21
21
  /* Use max-width so the component can shrink on smaller viewports. */
22
22
 
23
- var wideContainerStyles = (0, _core.css)({
23
+ var wideContainerStyles = (0, _react.css)({
24
24
  maxWidth: "".concat(columnWidth * 6 + gutter * 5, "px")
25
25
  });
26
- var narrowContainerStyles = (0, _core.css)({
26
+ var narrowContainerStyles = (0, _react.css)({
27
27
  maxWidth: "".concat(columnWidth * 4 + gutter * 3, "px")
28
28
  });
29
29
  /**
@@ -38,7 +38,7 @@ var Container = function Container(_ref) {
38
38
  var children = _ref.children,
39
39
  width = _ref.width,
40
40
  testId = _ref.testId;
41
- return (0, _core.jsx)("div", {
41
+ return (0, _react.jsx)("div", {
42
42
  "data-testid": testId,
43
43
  css: [containerStyles, width === 'narrow' ? narrowContainerStyles : wideContainerStyles]
44
44
  }, children);
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _core = require("@emotion/core");
8
+ var _react = require("@emotion/react");
9
9
 
10
10
  var _colors = require("@atlaskit/theme/colors");
11
11
 
12
12
  var _constants = require("@atlaskit/theme/constants");
13
13
 
14
14
  /** @jsx jsx */
15
- var descriptionStyles = (0, _core.css)({
15
+ var descriptionStyles = (0, _react.css)({
16
16
  marginTop: 0,
17
17
  marginBottom: "".concat((0, _constants.gridSize)() * 3, "px"),
18
18
  color: "var(--ds-text, ".concat(_colors.N800, ")")
@@ -27,7 +27,7 @@ var descriptionStyles = (0, _core.css)({
27
27
 
28
28
  var Description = function Description(_ref) {
29
29
  var children = _ref.children;
30
- return (0, _core.jsx)("p", {
30
+ return (0, _react.jsx)("p", {
31
31
  css: descriptionStyles
32
32
  }, children);
33
33
  };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _core = require("@emotion/core");
8
+ var _react = require("@emotion/react");
9
9
 
10
10
  var _constants = require("@atlaskit/theme/constants");
11
11
 
@@ -13,7 +13,7 @@ var _typography = require("@atlaskit/theme/typography");
13
13
 
14
14
  /** @jsx jsx */
15
15
  // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
16
- var headerStyles = (0, _core.css)([(0, _typography.h600)(), {
16
+ var headerStyles = (0, _react.css)([(0, _typography.h600)(), {
17
17
  marginTop: 0,
18
18
  marginBottom: "".concat((0, _constants.gridSize)() * 2, "px")
19
19
  }]);
@@ -27,7 +27,7 @@ var headerStyles = (0, _core.css)([(0, _typography.h600)(), {
27
27
 
28
28
  var EmptyStateHeader = function EmptyStateHeader(_ref) {
29
29
  var children = _ref.children;
30
- return (0, _core.jsx)("h4", {
30
+ return (0, _react.jsx)("h4", {
31
31
  css: headerStyles
32
32
  }, children);
33
33
  };
@@ -9,14 +9,14 @@ exports.default = void 0;
9
9
 
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
 
12
- var _core = require("@emotion/core");
12
+ var _react = require("@emotion/react");
13
13
 
14
14
  var _constants = require("@atlaskit/theme/constants");
15
15
 
16
16
  /** @jsx jsx */
17
17
  var CSS_VAR_MAX_WIDTH = '--max-width';
18
18
  var CSS_VAR_MAX_HEIGHT = '--max-height';
19
- var imageStyles = (0, _core.css)({
19
+ var imageStyles = (0, _react.css)({
20
20
  display: 'block',
21
21
  maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
22
22
  maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
@@ -40,7 +40,7 @@ var Image = function Image(_ref) {
40
40
  _ref$width = _ref.width,
41
41
  width = _ref$width === void 0 ? 'auto' : _ref$width,
42
42
  src = _ref.src;
43
- return (0, _core.jsx)("img", {
43
+ return (0, _react.jsx)("img", {
44
44
  style: (_ref2 = {}, (0, _defineProperty2.default)(_ref2, CSS_VAR_MAX_WIDTH, "".concat(maxWidth, "px")), (0, _defineProperty2.default)(_ref2, CSS_VAR_MAX_HEIGHT, "".concat(maxHeight, "px")), _ref2),
45
45
  width: width,
46
46
  height: height,
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _core = require("@emotion/core");
8
+ var _react = require("@emotion/react");
9
9
 
10
10
  var _constants = require("@atlaskit/theme/constants");
11
11
 
12
12
  /** @jsx jsx */
13
13
  var gridSize = (0, _constants.gridSize)();
14
- var spinnerContainerStyles = (0, _core.css)({
14
+ var spinnerContainerStyles = (0, _react.css)({
15
15
  width: "".concat(3 * gridSize, "px"),
16
16
  marginLeft: "".concat(2 * gridSize, "px")
17
17
  });
@@ -25,7 +25,7 @@ var spinnerContainerStyles = (0, _core.css)({
25
25
 
26
26
  var SpinnerContainer = function SpinnerContainer(_ref) {
27
27
  var children = _ref.children;
28
- return (0, _core.jsx)("div", {
28
+ return (0, _react.jsx)("div", {
29
29
  css: spinnerContainerStyles
30
30
  }, children);
31
31
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.3.12",
3
+ "version": "7.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  const gridSize = getGridSize();
5
5
  const actionsStyles = css({
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  const gridSize = getGridSize();
5
5
  const verticalMarginSize = gridSize * 6;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { N800 } from '@atlaskit/theme/colors';
4
4
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
5
  const descriptionStyles = css({
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  import { h600 } from '@atlaskit/theme/typography'; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
5
5
 
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  const CSS_VAR_MAX_WIDTH = '--max-width';
5
5
  const CSS_VAR_MAX_HEIGHT = '--max-height';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  const gridSize = getGridSize();
5
5
  const spinnerContainerStyles = css({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.3.12",
3
+ "version": "7.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  var gridSize = getGridSize();
5
5
  var actionsStyles = css({
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  var gridSize = getGridSize();
5
5
  var verticalMarginSize = gridSize * 6;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { N800 } from '@atlaskit/theme/colors';
4
4
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
5
  var descriptionStyles = css({
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  import { h600 } from '@atlaskit/theme/typography'; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
5
5
 
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
 
3
3
  /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
4
+ import { css, jsx } from '@emotion/react';
5
5
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
6
6
  var CSS_VAR_MAX_WIDTH = '--max-width';
7
7
  var CSS_VAR_MAX_HEIGHT = '--max-height';
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
4
4
  var gridSize = getGridSize();
5
5
  var spinnerContainerStyles = css({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.3.12",
3
+ "version": "7.4.0",
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.3.12",
3
+ "version": "7.4.0",
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/"
@@ -26,16 +26,17 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/button": "^16.3.0",
28
28
  "@atlaskit/spinner": "^15.1.0",
29
- "@atlaskit/theme": "^12.1.0",
29
+ "@atlaskit/theme": "^12.2.0",
30
30
  "@atlaskit/tokens": "^0.10.0",
31
31
  "@babel/runtime": "^7.0.0",
32
- "@emotion/core": "^10.0.9"
32
+ "@emotion/react": "^11.7.1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^16.8.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@atlaskit/docs": "^9.0.0",
38
+ "@atlaskit/docs": "*",
39
+ "@atlaskit/ds-lib": "^2.0.1",
39
40
  "@atlaskit/ssr": "*",
40
41
  "@atlaskit/visual-regression": "*",
41
42
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",