@atlaskit/empty-state 7.6.0 → 7.6.1

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,11 @@
1
1
  # @atlaskit/empty-state
2
2
 
3
+ ## 7.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
8
+
3
9
  ## 7.6.0
4
10
 
5
11
  ### Minor Changes
@@ -15,7 +15,7 @@ var verticalMarginSize = "var(--ds-space-600, 48px)";
15
15
  var columnWidth = gridSize * 8;
16
16
  var gutter = gridSize * 2;
17
17
  var containerStyles = (0, _react.css)({
18
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
18
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
19
19
  margin: "".concat(verticalMarginSize, " auto"),
20
20
  textAlign: 'center'
21
21
  });
@@ -15,7 +15,7 @@ var imageStyles = (0, _react.css)({
15
15
  display: 'block',
16
16
  maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
17
17
  maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
18
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
18
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
19
19
  margin: "0 auto ".concat("var(--ds-space-300, 24px)")
20
20
  });
21
21
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.6.0",
3
+ "version": "7.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import ButtonGroup from '@atlaskit/button/button-group';
3
3
  import Spinner from '@atlaskit/spinner';
4
- import { ActionsContainer, Container, Description, Header, Image, SpinnerContainer } from './styled';
4
+ import { ActionsContainer, Container, Description, Header, Image as HeaderImage, SpinnerContainer } from './styled';
5
5
  /**
6
6
  * __Empty state__
7
7
  *
@@ -48,7 +48,7 @@ const EmptyState = ({
48
48
  return /*#__PURE__*/React.createElement(Container, {
49
49
  testId: testId,
50
50
  width: width || size || 'wide'
51
- }, imageUrl ? /*#__PURE__*/React.createElement(Image, {
51
+ }, imageUrl ? /*#__PURE__*/React.createElement(HeaderImage, {
52
52
  src: imageUrl,
53
53
  maxWidth: maxImageWidth,
54
54
  maxHeight: maxImageHeight,
@@ -9,7 +9,7 @@ const verticalMarginSize = "var(--ds-space-600, 48px)";
9
9
  const columnWidth = gridSize * 8;
10
10
  const gutter = gridSize * 2;
11
11
  const containerStyles = css({
12
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
12
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
13
13
  margin: `${verticalMarginSize} auto`,
14
14
  textAlign: 'center'
15
15
  });
@@ -7,7 +7,7 @@ const imageStyles = css({
7
7
  display: 'block',
8
8
  maxWidth: `var(${CSS_VAR_MAX_WIDTH})`,
9
9
  maxHeight: `var(${CSS_VAR_MAX_HEIGHT})`,
10
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
10
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
11
11
  margin: `0 auto ${"var(--ds-space-300, 24px)"}`
12
12
  });
13
13
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.6.0",
3
+ "version": "7.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import ButtonGroup from '@atlaskit/button/button-group';
3
3
  import Spinner from '@atlaskit/spinner';
4
- import { ActionsContainer, Container, Description, Header, Image, SpinnerContainer } from './styled';
4
+ import { ActionsContainer, Container, Description, Header, Image as HeaderImage, SpinnerContainer } from './styled';
5
5
  /**
6
6
  * __Empty state__
7
7
  *
@@ -50,7 +50,7 @@ var EmptyState = function EmptyState(_ref) {
50
50
  return /*#__PURE__*/React.createElement(Container, {
51
51
  testId: testId,
52
52
  width: width || size || 'wide'
53
- }, imageUrl ? /*#__PURE__*/React.createElement(Image, {
53
+ }, imageUrl ? /*#__PURE__*/React.createElement(HeaderImage, {
54
54
  src: imageUrl,
55
55
  maxWidth: maxImageWidth,
56
56
  maxHeight: maxImageHeight,
@@ -9,7 +9,7 @@ var verticalMarginSize = "var(--ds-space-600, 48px)";
9
9
  var columnWidth = gridSize * 8;
10
10
  var gutter = gridSize * 2;
11
11
  var containerStyles = css({
12
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
12
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
13
13
  margin: "".concat(verticalMarginSize, " auto"),
14
14
  textAlign: 'center'
15
15
  });
@@ -8,7 +8,7 @@ var imageStyles = css({
8
8
  display: 'block',
9
9
  maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
10
10
  maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
11
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
12
12
  margin: "0 auto ".concat("var(--ds-space-300, 24px)")
13
13
  });
14
14
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/empty-state",
3
- "version": "7.6.0",
3
+ "version": "7.6.1",
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.6.0",
3
+ "version": "7.6.1",
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/"
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/button": "^16.8.0",
36
36
  "@atlaskit/spinner": "^15.5.0",
37
37
  "@atlaskit/theme": "^12.5.0",
38
- "@atlaskit/tokens": "^1.9.0",
38
+ "@atlaskit/tokens": "^1.11.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "@emotion/react": "^11.7.1"
41
41
  },
@@ -43,13 +43,12 @@
43
43
  "react": "^16.8.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@atlaskit/docs": "*",
46
+ "@af/accessibility-testing": "*",
47
47
  "@atlaskit/ds-lib": "^2.2.0",
48
48
  "@atlaskit/ssr": "*",
49
49
  "@atlaskit/visual-regression": "*",
50
50
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
51
51
  "@testing-library/react": "^12.1.5",
52
- "jest-axe": "^4.0.0",
53
52
  "react-dom": "^16.8.0",
54
53
  "typescript": "~4.9.5",
55
54
  "wait-for-expect": "^1.2.0"
@@ -1,56 +0,0 @@
1
- ## API Report File for "@atlaskit/empty-state"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- /// <reference types="react" />
8
-
9
- import type { ReactNode } from 'react';
10
-
11
- // @public
12
- const EmptyState: ({ description, header, headingLevel, imageHeight, imageUrl, imageWidth, isLoading, maxImageHeight, maxImageWidth, primaryAction, renderImage, secondaryAction, width, size, tertiaryAction, testId, }: EmptyStateProps) => JSX.Element;
13
- export default EmptyState;
14
-
15
- // @public (undocumented)
16
- export interface EmptyStateProps {
17
- description?: ReactNode;
18
- header: string;
19
- headingLevel?: number;
20
- imageHeight?: number;
21
- imageUrl?: string;
22
- imageWidth?: number;
23
- isLoading?: boolean;
24
- maxImageHeight?: number;
25
- maxImageWidth?: number;
26
- primaryAction?: ReactNode;
27
- renderImage?: (props: RenderImageProps) => React.ReactNode;
28
- secondaryAction?: ReactNode;
29
- // @deprecated (undocumented)
30
- size?: Width;
31
- tertiaryAction?: ReactNode;
32
- testId?: string;
33
- width?: Width;
34
- }
35
-
36
- // @public (undocumented)
37
- export interface RenderImageProps {
38
- // (undocumented)
39
- imageHeight?: number;
40
- // (undocumented)
41
- imageWidth?: number;
42
- // (undocumented)
43
- maxImageHeight?: number;
44
- // (undocumented)
45
- maxImageWidth?: number;
46
- }
47
-
48
- // @public (undocumented)
49
- export type Sizes = 'narrow' | 'wide';
50
-
51
- // @public (undocumented)
52
- export type Width = Sizes;
53
-
54
- // (No @packageDocumentation comment for this package)
55
-
56
- ```