@atlaskit/empty-state 7.3.12 → 7.4.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/styled/actions-container.js +3 -3
  3. package/dist/cjs/styled/container.js +5 -5
  4. package/dist/cjs/styled/description.js +3 -3
  5. package/dist/cjs/styled/header.js +3 -3
  6. package/dist/cjs/styled/image.js +3 -3
  7. package/dist/cjs/styled/spinner-container.js +3 -3
  8. package/dist/cjs/version.json +1 -1
  9. package/dist/es2019/styled/actions-container.js +1 -1
  10. package/dist/es2019/styled/container.js +1 -1
  11. package/dist/es2019/styled/description.js +1 -1
  12. package/dist/es2019/styled/header.js +1 -1
  13. package/dist/es2019/styled/image.js +1 -1
  14. package/dist/es2019/styled/spinner-container.js +1 -1
  15. package/dist/es2019/version.json +1 -1
  16. package/dist/esm/styled/actions-container.js +1 -1
  17. package/dist/esm/styled/container.js +1 -1
  18. package/dist/esm/styled/description.js +1 -1
  19. package/dist/esm/styled/header.js +1 -1
  20. package/dist/esm/styled/image.js +1 -1
  21. package/dist/esm/styled/spinner-container.js +1 -1
  22. package/dist/esm/version.json +1 -1
  23. package/dist/types-ts4.0/empty-state.d.ts +26 -0
  24. package/dist/types-ts4.0/index.d.ts +2 -0
  25. package/dist/types-ts4.0/styled/actions-container.d.ts +11 -0
  26. package/dist/types-ts4.0/styled/container.d.ts +15 -0
  27. package/dist/types-ts4.0/styled/description.d.ts +11 -0
  28. package/dist/types-ts4.0/styled/header.d.ts +11 -0
  29. package/dist/types-ts4.0/styled/image.d.ts +18 -0
  30. package/dist/types-ts4.0/styled/index.d.ts +6 -0
  31. package/dist/types-ts4.0/styled/spinner-container.d.ts +11 -0
  32. package/dist/types-ts4.0/types.d.ts +76 -0
  33. package/package.json +14 -6
  34. package/types/package.json +8 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/empty-state
2
2
 
3
+ ## 7.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+
9
+ ## 7.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`645ec6a64a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/645ec6a64a8) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 7.3.12
4
20
 
5
21
  ### 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.1",
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.1",
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.1",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import type { EmptyStateProps } from './types';
3
+ /**
4
+ * __Empty state__
5
+ *
6
+ * A component used for presenting various empty states.
7
+ * e.g. (no items, empty search, broken link, welcome screen etc.)
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * import EmptyState from '@atlaskit/empty-state';
12
+ *
13
+ * // An example of a 404 state
14
+ * export default () => {
15
+ * <EmptyState
16
+ * header="Page not found"
17
+ * imageUrl="https://cdn.io/images/404"
18
+ * description="Looks like you've stumbled off track. Sorry about that! This page either doesn't exist or has been removed."
19
+ * primaryAction={<Button appearance="primary">Home Page</Button>}
20
+ * secondaryAction={<Button>Report a problem</Button>}
21
+ * />;
22
+ * };
23
+ * ```
24
+ */
25
+ declare const EmptyState: ({ description, header, imageHeight, imageUrl, imageWidth, isLoading, maxImageHeight, maxImageWidth, primaryAction, renderImage, secondaryAction, width, size, tertiaryAction, testId, }: EmptyStateProps) => JSX.Element;
26
+ export default EmptyState;
@@ -0,0 +1,2 @@
1
+ export { default } from './empty-state';
2
+ export type { Sizes, Width, RenderImageProps, EmptyStateProps } from './types';
@@ -0,0 +1,11 @@
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ /**
4
+ * __Actions container__
5
+ *
6
+ * A container for actions: primary action, secondary action, and tertiary action.
7
+ *
8
+ * @internal
9
+ */
10
+ declare const ActionsContainer: FC;
11
+ export default ActionsContainer;
@@ -0,0 +1,15 @@
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ import type { Width } from '../index';
4
+ /**
5
+ * __Container__
6
+ *
7
+ * Upper level container for Empty State.
8
+ *
9
+ * @internal
10
+ */
11
+ declare const Container: FC<{
12
+ testId?: string;
13
+ width: Width;
14
+ }>;
15
+ export default Container;
@@ -0,0 +1,11 @@
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ /**
4
+ * __Description__
5
+ *
6
+ * Description of Empty State.
7
+ *
8
+ * @internal
9
+ */
10
+ declare const Description: FC;
11
+ export default Description;
@@ -0,0 +1,11 @@
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ /**
4
+ * __Header__
5
+ *
6
+ * Header of Empty State.
7
+ *
8
+ * @internal
9
+ */
10
+ declare const EmptyStateHeader: FC;
11
+ export default EmptyStateHeader;
@@ -0,0 +1,18 @@
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ declare type ImageProps = {
4
+ height?: number;
5
+ maxHeight: number;
6
+ maxWidth: number;
7
+ width?: number;
8
+ src: string;
9
+ };
10
+ /**
11
+ * __Image__
12
+ *
13
+ * Image in Empty State.
14
+ *
15
+ * @internal
16
+ */
17
+ declare const Image: FC<ImageProps>;
18
+ export default Image;
@@ -0,0 +1,6 @@
1
+ export { default as ActionsContainer } from './actions-container';
2
+ export { default as Container } from './container';
3
+ export { default as Description } from './description';
4
+ export { default as Header } from './header';
5
+ export { default as Image } from './image';
6
+ export { default as SpinnerContainer } from './spinner-container';
@@ -0,0 +1,11 @@
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ /**
4
+ * __Spinner container__
5
+ *
6
+ * A spinner container for loading state of Empty State.
7
+ *
8
+ * @internal
9
+ */
10
+ declare const SpinnerContainer: FC;
11
+ export default SpinnerContainer;
@@ -0,0 +1,76 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface RenderImageProps {
3
+ maxImageWidth?: number;
4
+ maxImageHeight?: number;
5
+ imageWidth?: number;
6
+ imageHeight?: number;
7
+ }
8
+ export declare type Sizes = 'narrow' | 'wide';
9
+ export declare type Width = Sizes;
10
+ export interface EmptyStateProps {
11
+ /**
12
+ * Title that briefly describes the page to the user.
13
+ */
14
+ header: string;
15
+ /**
16
+ * The main block of text that holds additional supporting information.
17
+ */
18
+ description?: ReactNode;
19
+ /**
20
+ * Controls how much horizontal space the component fills. Defaults to "wide".
21
+ */
22
+ width?: Width;
23
+ /**
24
+ * @deprecated
25
+ * Duplicates the `width` prop. Use `width instead`.
26
+ */
27
+ size?: Width;
28
+ /**
29
+ * The url of image that will be shown above the title, fed directly into the `src` prop of an <img> element.
30
+ * Note, this image will be constrained by the `maxWidth` and `maxHeight` props.
31
+ */
32
+ imageUrl?: string;
33
+ /**
34
+ * Maximum width (in pixels) of the image, default value is 160.
35
+ */
36
+ maxImageWidth?: number;
37
+ /**
38
+ * Maximum height (in pixels) of the image, default value is 160.
39
+ */
40
+ maxImageHeight?: number;
41
+ /**
42
+ * Primary action button for the page, usually it will be something like "Create" (or "Retry" for error pages).
43
+ */
44
+ primaryAction?: ReactNode;
45
+ /**
46
+ * An alternative API to supply an image using a render prop. Only rendered if no `imageUrl` is supplied.
47
+ */
48
+ renderImage?: (props: RenderImageProps) => React.ReactNode;
49
+ /**
50
+ * Secondary action button for the page.
51
+ */
52
+ secondaryAction?: ReactNode;
53
+ /**
54
+ * Button with link to some external resource like documentation or tutorial, it will be opened in a new tab.
55
+ */
56
+ tertiaryAction?: ReactNode;
57
+ /**
58
+ * A hook for automated testing
59
+ */
60
+ testId?: string;
61
+ /**
62
+ * Used to indicate a loading state. Will show a spinner next to the action buttons when true.
63
+ */
64
+ isLoading?: boolean;
65
+ /**
66
+ * Width of the image that is rendered in EmptyState component.
67
+ * Useful when you want image to be of exact width to stop it bouncing around when loading in.
68
+ */
69
+ imageWidth?: number;
70
+ /**
71
+ * Height of the image that is rendered in EmptyState component.
72
+ * Useful when you want image to be of exact height to stop it bouncing around when loading in.
73
+ * Only set `height` if you want the image to resize down on smaller devices.
74
+ */
75
+ imageHeight?: number;
76
+ }
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.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/"
@@ -13,6 +13,13 @@
13
13
  "module": "dist/esm/index.js",
14
14
  "module:es2019": "dist/es2019/index.js",
15
15
  "types": "dist/types/index.d.ts",
16
+ "typesVersions": {
17
+ ">=4.0 <4.5": {
18
+ "*": [
19
+ "dist/types-ts4.0/*"
20
+ ]
21
+ }
22
+ },
16
23
  "sideEffects": false,
17
24
  "atlaskit:src": "src/index.tsx",
18
25
  "atlassian": {
@@ -26,23 +33,24 @@
26
33
  "dependencies": {
27
34
  "@atlaskit/button": "^16.3.0",
28
35
  "@atlaskit/spinner": "^15.1.0",
29
- "@atlaskit/theme": "^12.1.0",
36
+ "@atlaskit/theme": "^12.2.0",
30
37
  "@atlaskit/tokens": "^0.10.0",
31
38
  "@babel/runtime": "^7.0.0",
32
- "@emotion/core": "^10.0.9"
39
+ "@emotion/react": "^11.7.1"
33
40
  },
34
41
  "peerDependencies": {
35
42
  "react": "^16.8.0"
36
43
  },
37
44
  "devDependencies": {
38
- "@atlaskit/docs": "^9.0.0",
45
+ "@atlaskit/docs": "*",
46
+ "@atlaskit/ds-lib": "^2.0.1",
39
47
  "@atlaskit/ssr": "*",
40
48
  "@atlaskit/visual-regression": "*",
41
49
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
42
- "@testing-library/react": "^8.0.1",
50
+ "@testing-library/react": "^12.1.5",
43
51
  "enzyme": "^3.10.0",
44
52
  "react-dom": "^16.8.0",
45
- "typescript": "4.3.5",
53
+ "typescript": "4.5.5",
46
54
  "wait-for-expect": "^1.2.0"
47
55
  },
48
56
  "techstack": {
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types.d.ts"
7
+ "types": "../dist/types/types.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/types.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }