@atlaskit/empty-state 7.4.9 → 7.4.11

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,18 @@
1
1
  # @atlaskit/empty-state
2
2
 
3
+ ## 7.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
8
+ - Updated dependencies
9
+
10
+ ## 7.4.10
11
+
12
+ ### Patch Changes
13
+
14
+ - [`74c1b81a476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74c1b81a476) - Replaces use of `gridSize` with space tokens. There is no expected visual change.
15
+
3
16
  ## 7.4.9
4
17
 
5
18
  ### Patch Changes
@@ -8,13 +8,15 @@ var _react = require("@emotion/react");
8
8
  var _constants = require("@atlaskit/theme/constants");
9
9
  /** @jsx jsx */
10
10
 
11
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
12
+
11
13
  var gridSize = (0, _constants.gridSize)();
12
- var verticalMarginSize = gridSize * 6;
14
+ var verticalMarginSize = "var(--ds-space-600, 48px)";
13
15
  var columnWidth = gridSize * 8;
14
16
  var gutter = gridSize * 2;
15
17
  var containerStyles = (0, _react.css)({
16
18
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
17
- margin: "".concat(verticalMarginSize, "px auto"),
19
+ margin: "".concat(verticalMarginSize, " auto"),
18
20
  textAlign: 'center'
19
21
  });
20
22
 
@@ -25,7 +27,6 @@ var wideContainerStyles = (0, _react.css)({
25
27
  var narrowContainerStyles = (0, _react.css)({
26
28
  maxWidth: "".concat(columnWidth * 4 + gutter * 3, "px")
27
29
  });
28
-
29
30
  /**
30
31
  * __Container__
31
32
  *
@@ -5,14 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _constants = require("@atlaskit/theme/constants");
9
8
  var _typography = require("@atlaskit/theme/typography");
10
9
  /** @jsx jsx */
11
10
 
12
11
  // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
13
12
  var headerStyles = (0, _react.css)([(0, _typography.h600)(), {
14
- marginTop: 0,
15
- marginBottom: "".concat((0, _constants.gridSize)() * 2, "px")
13
+ marginTop: "var(--ds-space-0, 0px)",
14
+ marginBottom: "var(--ds-space-200, 16px)"
16
15
  }]);
17
16
 
18
17
  /**
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
- var _constants = require("@atlaskit/theme/constants");
11
10
  /** @jsx jsx */
12
11
 
13
12
  var CSS_VAR_MAX_WIDTH = '--max-width';
@@ -17,7 +16,7 @@ var imageStyles = (0, _react.css)({
17
16
  maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
18
17
  maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
19
18
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
20
- margin: "0 auto ".concat((0, _constants.gridSize)() * 3, "px")
19
+ margin: "0 auto ".concat("var(--ds-space-300, 24px)")
21
20
  });
22
21
 
23
22
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.4.9",
3
+ "version": "7.4.11",
4
4
  "sideEffects": false
5
5
  }
@@ -1,14 +1,16 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { css, jsx } from '@emotion/react';
4
+
5
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
4
6
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
7
  const gridSize = getGridSize();
6
- const verticalMarginSize = gridSize * 6;
8
+ const verticalMarginSize = "var(--ds-space-600, 48px)";
7
9
  const columnWidth = gridSize * 8;
8
10
  const gutter = gridSize * 2;
9
11
  const containerStyles = css({
10
12
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
11
- margin: `${verticalMarginSize}px auto`,
13
+ margin: `${verticalMarginSize} auto`,
12
14
  textAlign: 'center'
13
15
  });
14
16
 
@@ -19,7 +21,6 @@ const wideContainerStyles = css({
19
21
  const narrowContainerStyles = css({
20
22
  maxWidth: `${columnWidth * 4 + gutter * 3}px`
21
23
  });
22
-
23
24
  /**
24
25
  * __Container__
25
26
  *
@@ -1,13 +1,11 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { css, jsx } from '@emotion/react';
4
- import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
4
  import { h600 } from '@atlaskit/theme/typography';
6
-
7
5
  // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
8
6
  const headerStyles = css([h600(), {
9
- marginTop: 0,
10
- marginBottom: `${getGridSize() * 2}px`
7
+ marginTop: "var(--ds-space-0, 0px)",
8
+ marginBottom: "var(--ds-space-200, 16px)"
11
9
  }]);
12
10
 
13
11
  /**
@@ -1,7 +1,6 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { css, jsx } from '@emotion/react';
4
- import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
4
  const CSS_VAR_MAX_WIDTH = '--max-width';
6
5
  const CSS_VAR_MAX_HEIGHT = '--max-height';
7
6
  const imageStyles = css({
@@ -9,7 +8,7 @@ const imageStyles = css({
9
8
  maxWidth: `var(${CSS_VAR_MAX_WIDTH})`,
10
9
  maxHeight: `var(${CSS_VAR_MAX_HEIGHT})`,
11
10
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
12
- margin: `0 auto ${getGridSize() * 3}px`
11
+ margin: `0 auto ${"var(--ds-space-300, 24px)"}`
13
12
  });
14
13
 
15
14
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.4.9",
3
+ "version": "7.4.11",
4
4
  "sideEffects": false
5
5
  }
@@ -1,14 +1,16 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { css, jsx } from '@emotion/react';
4
+
5
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
4
6
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
7
  var gridSize = getGridSize();
6
- var verticalMarginSize = gridSize * 6;
8
+ var verticalMarginSize = "var(--ds-space-600, 48px)";
7
9
  var columnWidth = gridSize * 8;
8
10
  var gutter = gridSize * 2;
9
11
  var containerStyles = css({
10
12
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
11
- margin: "".concat(verticalMarginSize, "px auto"),
13
+ margin: "".concat(verticalMarginSize, " auto"),
12
14
  textAlign: 'center'
13
15
  });
14
16
 
@@ -19,7 +21,6 @@ var wideContainerStyles = css({
19
21
  var narrowContainerStyles = css({
20
22
  maxWidth: "".concat(columnWidth * 4 + gutter * 3, "px")
21
23
  });
22
-
23
24
  /**
24
25
  * __Container__
25
26
  *
@@ -1,13 +1,11 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import { css, jsx } from '@emotion/react';
4
- import { gridSize as getGridSize } from '@atlaskit/theme/constants';
5
4
  import { h600 } from '@atlaskit/theme/typography';
6
-
7
5
  // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
8
6
  var headerStyles = css([h600(), {
9
- marginTop: 0,
10
- marginBottom: "".concat(getGridSize() * 2, "px")
7
+ marginTop: "var(--ds-space-0, 0px)",
8
+ marginBottom: "var(--ds-space-200, 16px)"
11
9
  }]);
12
10
 
13
11
  /**
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /** @jsx jsx */
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
- import { gridSize as getGridSize } from '@atlaskit/theme/constants';
6
5
  var CSS_VAR_MAX_WIDTH = '--max-width';
7
6
  var CSS_VAR_MAX_HEIGHT = '--max-height';
8
7
  var imageStyles = css({
@@ -10,7 +9,7 @@ var imageStyles = css({
10
9
  maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
11
10
  maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
12
11
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
13
- margin: "0 auto ".concat(getGridSize() * 3, "px")
12
+ margin: "0 auto ".concat("var(--ds-space-300, 24px)")
14
13
  });
15
14
 
16
15
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.4.9",
3
+ "version": "7.4.11",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { FC } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  /**
4
4
  * __Actions container__
5
5
  *
@@ -7,5 +7,7 @@ import { FC } from 'react';
7
7
  *
8
8
  * @internal
9
9
  */
10
- declare const ActionsContainer: FC;
10
+ declare const ActionsContainer: FC<{
11
+ children: ReactNode;
12
+ }>;
11
13
  export default ActionsContainer;
@@ -1,6 +1,11 @@
1
1
  /** @jsx jsx */
2
- import { FC } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  import type { Width } from '../index';
4
+ declare type ContainerProps = {
5
+ testId?: string;
6
+ width: Width;
7
+ children: ReactNode;
8
+ };
4
9
  /**
5
10
  * __Container__
6
11
  *
@@ -8,8 +13,5 @@ import type { Width } from '../index';
8
13
  *
9
14
  * @internal
10
15
  */
11
- declare const Container: FC<{
12
- testId?: string;
13
- width: Width;
14
- }>;
16
+ declare const Container: FC<ContainerProps>;
15
17
  export default Container;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { FC } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  /**
4
4
  * __Description__
5
5
  *
@@ -7,5 +7,7 @@ import { FC } from 'react';
7
7
  *
8
8
  * @internal
9
9
  */
10
- declare const Description: FC;
10
+ declare const Description: FC<{
11
+ children: ReactNode;
12
+ }>;
11
13
  export default Description;
@@ -7,5 +7,7 @@ import { FC } from 'react';
7
7
  *
8
8
  * @internal
9
9
  */
10
- declare const EmptyStateHeader: FC;
10
+ declare const EmptyStateHeader: FC<{
11
+ children: string;
12
+ }>;
11
13
  export default EmptyStateHeader;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { FC } from 'react';
2
+ import { FC, ReactNode } from 'react';
3
3
  /**
4
4
  * __Spinner container__
5
5
  *
@@ -7,5 +7,7 @@ import { FC } from 'react';
7
7
  *
8
8
  * @internal
9
9
  */
10
- declare const SpinnerContainer: FC;
10
+ declare const SpinnerContainer: FC<{
11
+ children?: ReactNode;
12
+ }>;
11
13
  export default SpinnerContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.4.9",
3
+ "version": "7.4.11",
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,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/button": "^16.5.0",
28
28
  "@atlaskit/spinner": "^15.4.0",
29
- "@atlaskit/theme": "^12.2.0",
29
+ "@atlaskit/theme": "^12.3.0",
30
30
  "@atlaskit/tokens": "^1.2.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@emotion/react": "^11.7.1"