@atlaskit/pagination 14.1.10 → 14.2.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/pagination
2
2
 
3
+ ## 14.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`2afcf534bad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2afcf534bad) - 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
  ## 14.1.10
4
14
 
5
15
  ### Patch Changes
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
 
14
- var _core = require("@emotion/core");
14
+ var _react2 = require("@emotion/react");
15
15
 
16
16
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
17
17
 
@@ -19,13 +19,13 @@ var _constants = require("@atlaskit/theme/constants");
19
19
 
20
20
  /** @jsx jsx */
21
21
  var gridSize = (0, _constants.gridSize)();
22
- var navigatorStyles = (0, _core.css)({
22
+ var navigatorStyles = (0, _react2.css)({
23
23
  paddingRight: gridSize / 2,
24
24
  paddingLeft: gridSize / 2
25
25
  });
26
26
 
27
27
  function Navigator(props) {
28
- return (0, _core.jsx)(_standardButton.default // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
28
+ return (0, _react2.jsx)(_standardButton.default // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
29
29
  , (0, _extends2.default)({}, props, {
30
30
  appearance: "subtle",
31
31
  spacing: "none",
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = renderEllipsis;
7
7
 
8
- var _core = require("@emotion/core");
8
+ var _react = require("@emotion/react");
9
9
 
10
10
  /** @jsx jsx */
11
- var ellipsisStyles = (0, _core.css)({
11
+ var ellipsisStyles = (0, _react.css)({
12
12
  display: 'inline-flex',
13
13
  padding: '0 8px',
14
14
  alignItems: 'center',
@@ -17,7 +17,7 @@ var ellipsisStyles = (0, _core.css)({
17
17
 
18
18
  function renderEllipsis(_ref) {
19
19
  var key = _ref.key;
20
- return (0, _core.jsx)("span", {
20
+ return (0, _react.jsx)("span", {
21
21
  key: key,
22
22
  css: ellipsisStyles
23
23
  }, "...");
@@ -13,7 +13,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
13
13
 
14
14
  var _react = require("react");
15
15
 
16
- var _core = require("@emotion/core");
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _analyticsNext = require("@atlaskit/analytics-next");
19
19
 
@@ -42,9 +42,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
42
42
  var analyticsAttributes = {
43
43
  componentName: 'pagination',
44
44
  packageName: "@atlaskit/pagination",
45
- packageVersion: "14.1.10"
45
+ packageVersion: "14.2.0"
46
46
  };
47
- var navStyles = (0, _core.css)({
47
+ var navStyles = (0, _react2.css)({
48
48
  display: 'flex'
49
49
  });
50
50
 
@@ -100,7 +100,7 @@ function InnerPagination(_ref, ref) {
100
100
 
101
101
  var transform = function transform(page, currPageIndex, testId) {
102
102
  var selectedPage = pages[selectedIndexValue];
103
- return (0, _core.jsx)(_page.default, {
103
+ return (0, _react2.jsx)(_page.default, {
104
104
  key: "page-".concat(getPageLabel ? getPageLabel(page, currPageIndex) : currPageIndex),
105
105
  component: components.Page,
106
106
  onClick: function onClick(event) {
@@ -115,13 +115,13 @@ function InnerPagination(_ref, ref) {
115
115
  }, getPageLabel ? getPageLabel(page, currPageIndex) : page);
116
116
  };
117
117
 
118
- return (0, _core.jsx)("nav", {
118
+ return (0, _react2.jsx)("nav", {
119
119
  "data-testid": testId,
120
120
  css: navStyles,
121
121
  style: style,
122
122
  ref: ref,
123
123
  "aria-label": label
124
- }, (0, _core.jsx)(_navigator.default, {
124
+ }, (0, _react2.jsx)(_navigator.default, {
125
125
  key: "left-navigator",
126
126
  component: components.Previous,
127
127
  onClick: function onClick(event) {
@@ -131,7 +131,7 @@ function InnerPagination(_ref, ref) {
131
131
  });
132
132
  },
133
133
  isDisabled: selectedIndexValue === 0,
134
- iconBefore: (0, _core.jsx)(_chevronLeftLarge.default, {
134
+ iconBefore: (0, _react2.jsx)(_chevronLeftLarge.default, {
135
135
  label: ""
136
136
  }),
137
137
  "aria-label": previousLabel,
@@ -141,7 +141,7 @@ function InnerPagination(_ref, ref) {
141
141
  max: max,
142
142
  ellipsis: renderEllipsis,
143
143
  transform: transform
144
- }, testId), (0, _core.jsx)(_navigator.default, {
144
+ }, testId), (0, _react2.jsx)(_navigator.default, {
145
145
  key: "right-navigator",
146
146
  component: components.Next,
147
147
  onClick: function onClick(event) {
@@ -151,7 +151,7 @@ function InnerPagination(_ref, ref) {
151
151
  });
152
152
  },
153
153
  isDisabled: selectedIndexValue === pages.length - 1,
154
- iconBefore: (0, _core.jsx)(_chevronRightLarge.default, {
154
+ iconBefore: (0, _react2.jsx)(_chevronRightLarge.default, {
155
155
  label: ""
156
156
  }),
157
157
  "aria-label": nextLabel,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/pagination",
3
- "version": "14.1.10",
3
+ "version": "14.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import React from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import Button from '@atlaskit/button/standard-button';
7
7
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
8
8
  const gridSize = getGridSize();
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  const ellipsisStyles = css({
4
4
  display: 'inline-flex',
5
5
  padding: '0 8px',
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { forwardRef, memo } from 'react';
3
- import { css, jsx } from '@emotion/core';
3
+ import { css, jsx } from '@emotion/react';
4
4
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
5
5
  import noop from '@atlaskit/ds-lib/noop';
6
6
  import useControlled from '@atlaskit/ds-lib/use-controlled';
@@ -14,7 +14,7 @@ import collapseRange from './internal/utils/collapse-range';
14
14
  const analyticsAttributes = {
15
15
  componentName: 'pagination',
16
16
  packageName: "@atlaskit/pagination",
17
- packageVersion: "14.1.10"
17
+ packageVersion: "14.2.0"
18
18
  };
19
19
  const navStyles = css({
20
20
  display: 'flex'
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/pagination",
3
- "version": "14.1.10",
3
+ "version": "14.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import React from 'react';
5
- import { css, jsx } from '@emotion/core';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import Button from '@atlaskit/button/standard-button';
7
7
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
8
8
  var gridSize = getGridSize();
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { css, jsx } from '@emotion/core';
2
+ import { css, jsx } from '@emotion/react';
3
3
  var ellipsisStyles = css({
4
4
  display: 'inline-flex',
5
5
  padding: '0 8px',
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
7
7
 
8
8
  /** @jsx jsx */
9
9
  import { forwardRef, memo } from 'react';
10
- import { css, jsx } from '@emotion/core';
10
+ import { css, jsx } from '@emotion/react';
11
11
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
12
12
  import noop from '@atlaskit/ds-lib/noop';
13
13
  import useControlled from '@atlaskit/ds-lib/use-controlled';
@@ -21,7 +21,7 @@ import collapseRange from './internal/utils/collapse-range';
21
21
  var analyticsAttributes = {
22
22
  componentName: 'pagination',
23
23
  packageName: "@atlaskit/pagination",
24
- packageVersion: "14.1.10"
24
+ packageVersion: "14.2.0"
25
25
  };
26
26
  var navStyles = css({
27
27
  display: 'flex'
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/pagination",
3
- "version": "14.1.10",
3
+ "version": "14.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React, { ReactElement, SyntheticEvent } from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  export declare type NavigatorProps<T> = {
4
5
  /**
5
6
  * This will be passed in as aria-label to button. This is what screen reader will read
@@ -18,4 +19,4 @@ export declare type NavigatorProps<T> = {
18
19
  onClick?: (event: SyntheticEvent) => void;
19
20
  component?: React.ElementType<any>;
20
21
  };
21
- export default function Navigator<T>(props: NavigatorProps<T>): JSX.Element;
22
+ export default function Navigator<T>(props: NavigatorProps<T>): jsx.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { jsx } from '@emotion/react';
2
3
  import { PaginationPropTypes } from './types';
3
- declare function InnerPagination<T>({ components, defaultSelectedIndex, selectedIndex, label, previousLabel, nextLabel, style, max, onChange, pages, getPageLabel, renderEllipsis, analyticsContext, testId, }: PaginationPropTypes<T>, ref: React.Ref<HTMLDivElement>): JSX.Element;
4
+ declare function InnerPagination<T>({ components, defaultSelectedIndex, selectedIndex, label, previousLabel, nextLabel, style, max, onChange, pages, getPageLabel, renderEllipsis, analyticsContext, testId, }: PaginationPropTypes<T>, ref: React.Ref<HTMLDivElement>): jsx.JSX.Element;
4
5
  declare const _default: typeof InnerPagination;
5
6
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/pagination",
3
- "version": "14.1.10",
3
+ "version": "14.2.0",
4
4
  "description": "Pagination allows you to divide large amounts of content into smaller chunks across multiple pages.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,9 +33,9 @@
33
33
  "@atlaskit/codemod-utils": "^4.1.0",
34
34
  "@atlaskit/ds-lib": "^2.1.0",
35
35
  "@atlaskit/icon": "^21.10.0",
36
- "@atlaskit/theme": "^12.1.0",
36
+ "@atlaskit/theme": "^12.2.0",
37
37
  "@babel/runtime": "^7.0.0",
38
- "@emotion/core": "^10.0.9",
38
+ "@emotion/react": "^11.7.1",
39
39
  "memoize-one": "^6.0.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -44,8 +44,8 @@
44
44
  "devDependencies": {
45
45
  "@atlaskit/docs": "*",
46
46
  "@atlaskit/ds-lib": "^2.1.0",
47
- "@atlaskit/dynamic-table": "^14.7.0",
48
- "@atlaskit/section-message": "^6.1.0",
47
+ "@atlaskit/dynamic-table": "^14.8.0",
48
+ "@atlaskit/section-message": "^6.2.0",
49
49
  "@atlaskit/ssr": "*",
50
50
  "@atlaskit/visual-regression": "*",
51
51
  "@atlaskit/webdriver-runner": "*",