@atlaskit/progress-tracker 8.2.5 → 8.3.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/progress-tracker
2
2
 
3
+ ## 8.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`099a8b4949e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/099a8b4949e) - 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
  ## 8.2.5
4
14
 
5
15
  ### Patch Changes
@@ -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 _colors = require("@atlaskit/theme/colors");
11
11
 
@@ -14,7 +14,7 @@ var _constants = require("../constants");
14
14
  var _constants2 = require("./constants");
15
15
 
16
16
  /** @jsx jsx */
17
- var progressBarStyles = (0, _core.css)({
17
+ var progressBarStyles = (0, _react.css)({
18
18
  height: _constants2.PROGRESS_BAR_HEIGHT,
19
19
  position: 'absolute',
20
20
  left: '50%',
@@ -35,7 +35,7 @@ var progressBarStyles = (0, _core.css)({
35
35
  var ProgressBar = function ProgressBar(_ref) {
36
36
  var percentageComplete = _ref.percentageComplete,
37
37
  testId = _ref.testId;
38
- return (0, _core.jsx)("div", {
38
+ return (0, _react.jsx)("div", {
39
39
  "data-testid": testId,
40
40
  style: {
41
41
  width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100, " * calc(var(").concat(_constants2.varSpacing, ", ").concat(_constants.spacing.cosy, "px) + ").concat(_constants2.HALF_GRID_SIZE, "px))")
@@ -5,12 +5,12 @@ 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
  /** @jsx jsx */
13
- var linkStyles = (0, _core.css)({
13
+ var linkStyles = (0, _react.css)({
14
14
  color: "var(--ds-text, ".concat(_colors.N800, ")"),
15
15
  cursor: 'pointer'
16
16
  });
@@ -23,7 +23,7 @@ var Link = function Link(_ref) {
23
23
  onClick = _ref.onClick,
24
24
  label = _ref.label,
25
25
  testId = _ref.testId;
26
- return (0, _core.jsx)("a", {
26
+ return (0, _react.jsx)("a", {
27
27
  css: linkStyles,
28
28
  href: href,
29
29
  onClick: onClick,
@@ -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 _constants = require("./constants");
11
11
 
12
12
  /* eslint-disable @repo/internal/styles/no-nested-styles */
13
13
 
14
14
  /** @jsx jsx */
15
- var progressMarkerStyles = (0, _core.css)({
15
+ var progressMarkerStyles = (0, _react.css)({
16
16
  width: _constants.PROGRESS_BAR_HEIGHT,
17
17
  height: _constants.PROGRESS_BAR_HEIGHT,
18
18
  position: 'absolute',
@@ -43,7 +43,7 @@ var progressMarkerStyles = (0, _core.css)({
43
43
 
44
44
  var ProgressMarker = function ProgressMarker(_ref) {
45
45
  var testId = _ref.testId;
46
- return (0, _core.jsx)("div", {
46
+ return (0, _react.jsx)("div", {
47
47
  "data-testid": testId,
48
48
  css: progressMarkerStyles
49
49
  });
@@ -23,7 +23,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
23
23
 
24
24
  var _react = require("react");
25
25
 
26
- var _core = require("@emotion/core");
26
+ var _react2 = require("@emotion/react");
27
27
 
28
28
  var _reactTransitionGroup = require("react-transition-group");
29
29
 
@@ -45,15 +45,15 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
45
45
 
46
46
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
47
 
48
- var containerStyles = (0, _core.css)({
48
+ var containerStyles = (0, _react2.css)({
49
49
  width: '100%',
50
50
  position: 'relative'
51
51
  });
52
- var listItemStyles = (0, _core.css)({
52
+ var listItemStyles = (0, _react2.css)({
53
53
  margin: 0,
54
54
  overflowWrap: 'break-word'
55
55
  });
56
- var titleStyles = (0, _core.css)({
56
+ var titleStyles = (0, _react2.css)({
57
57
  marginTop: _constants2.LABEL_TOP_SPACING,
58
58
  marginRight: 'auto',
59
59
  marginLeft: 'auto',
@@ -126,37 +126,37 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
126
126
  transitionEasing = _this$props.transitionEasing,
127
127
  testId = _this$props.testId;
128
128
  var ariaCurrent = item.status === 'current' ? 'step' : 'false';
129
- return (0, _core.jsx)("li", {
129
+ return (0, _react2.jsx)("li", {
130
130
  "data-testid": testId,
131
131
  style: (_ref = {}, (0, _defineProperty2.default)(_ref, _constants2.varTransitionSpeed, "".concat(transitionSpeed, "ms")), (0, _defineProperty2.default)(_ref, _constants2.varTransitionDelay, "".concat(transitionDelay, "ms")), (0, _defineProperty2.default)(_ref, _constants2.varTransitionEasing, transitionEasing), (0, _defineProperty2.default)(_ref, _constants2.varMarkerColor, this.state.oldMarkerColor), (0, _defineProperty2.default)(_ref, _constants2.varBackgroundColor, (0, _utils.getMarkerColor)(item.status)), _ref),
132
132
  css: listItemStyles,
133
133
  "aria-current": ariaCurrent
134
- }, (0, _core.jsx)("div", {
134
+ }, (0, _react2.jsx)("div", {
135
135
  css: containerStyles
136
- }, (0, _core.jsx)(_reactTransitionGroup.CSSTransition, {
136
+ }, (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, {
137
137
  appear: true,
138
138
  in: this.state.transitioning,
139
139
  onEntered: this.onEntered,
140
140
  timeout: transitionDelay + transitionSpeed,
141
141
  classNames: "fade"
142
- }, (0, _core.jsx)(_marker.default, {
142
+ }, (0, _react2.jsx)(_marker.default, {
143
143
  testId: testId && "".concat(testId, "-marker")
144
- })), (0, _core.jsx)(_reactTransitionGroup.CSSTransition, {
144
+ })), (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, {
145
145
  appear: true,
146
146
  in: this.state.transitioning,
147
147
  onEntered: this.onEntered,
148
148
  timeout: transitionDelay + transitionSpeed,
149
149
  classNames: "fade"
150
- }, (0, _core.jsx)(_bar.default, {
150
+ }, (0, _react2.jsx)(_bar.default, {
151
151
  testId: testId && "".concat(testId, "-bar"),
152
152
  percentageComplete: item.percentageComplete
153
- })), (0, _core.jsx)(_reactTransitionGroup.CSSTransition, {
153
+ })), (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, {
154
154
  appear: true,
155
155
  in: this.state.transitioning,
156
156
  onEntered: this.onEntered,
157
157
  timeout: transitionDelay + transitionSpeed,
158
158
  classNames: "fade"
159
- }, (0, _core.jsx)("div", {
159
+ }, (0, _react2.jsx)("div", {
160
160
  css: titleStyles,
161
161
  "data-testid": testId && "".concat(testId, "-title"),
162
162
  style: {
@@ -23,7 +23,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
23
23
 
24
24
  var _react = require("react");
25
25
 
26
- var _core = require("@emotion/core");
26
+ var _react2 = require("@emotion/react");
27
27
 
28
28
  var _constants = require("./constants");
29
29
 
@@ -41,7 +41,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
41
41
 
42
42
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
43
43
 
44
- var containerStyles = (0, _core.css)({
44
+ var containerStyles = (0, _react2.css)({
45
45
  display: 'grid',
46
46
  width: '100%',
47
47
  margin: '0 auto',
@@ -137,7 +137,7 @@ var ProgressTracker = /*#__PURE__*/function (_PureComponent) {
137
137
  }
138
138
  }
139
139
 
140
- return (0, _core.jsx)(_stage.default, {
140
+ return (0, _react2.jsx)(_stage.default, {
141
141
  transitionSpeed: transitionSpeed,
142
142
  transitionDelay: transitionDelay,
143
143
  transitionEasing: transitionEasing,
@@ -146,7 +146,7 @@ var ProgressTracker = /*#__PURE__*/function (_PureComponent) {
146
146
  render: _this3.props.render
147
147
  });
148
148
  });
149
- return (0, _core.jsx)("ul", {
149
+ return (0, _react2.jsx)("ul", {
150
150
  "data-testid": testId,
151
151
  style: (_ref = {
152
152
  gridTemplateColumns: "repeat(".concat(items.length, ", 1fr)")
@@ -166,7 +166,7 @@ exports.default = ProgressTracker;
166
166
  render: {
167
167
  link: function link(_ref2) {
168
168
  var item = _ref2.item;
169
- return (0, _core.jsx)(_link.default, item);
169
+ return (0, _react2.jsx)(_link.default, item);
170
170
  }
171
171
  },
172
172
  animated: true,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-tracker",
3
- "version": "8.2.5",
3
+ "version": "8.3.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 { B300 } from '@atlaskit/theme/colors';
4
4
  import { spacing } from '../constants';
5
5
  import { HALF_GRID_SIZE, LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varSpacing, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
@@ -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
  const linkStyles = css({
5
5
  color: `var(--ds-text, ${N800})`,
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @repo/internal/styles/no-nested-styles */
2
2
 
3
3
  /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
4
+ import { css, jsx } from '@emotion/react';
5
5
  import { LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
6
6
  const progressMarkerStyles = css({
7
7
  width: PROGRESS_BAR_HEIGHT,
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
 
5
5
  /** @jsx jsx */
6
6
  import { PureComponent } from 'react';
7
- import { css, jsx } from '@emotion/core';
7
+ import { css, jsx } from '@emotion/react';
8
8
  import { CSSTransition } from 'react-transition-group';
9
9
  import { fontSize } from '@atlaskit/theme/constants';
10
10
  import ProgressBar from './bar';
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
 
5
5
  /** @jsx jsx */
6
6
  import { PureComponent } from 'react';
7
- import { css, jsx } from '@emotion/core';
7
+ import { css, jsx } from '@emotion/react';
8
8
  import { defaultGridSize, spacing } from './constants';
9
9
  import { ANIMATION_EASE_OUT, LINEAR_TRANSITION_SPEED, TRANSITION_SPEED, varSpacing } from './internal/constants';
10
10
  import Link from './internal/link';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-tracker",
3
- "version": "8.2.5",
3
+ "version": "8.3.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 { B300 } from '@atlaskit/theme/colors';
4
4
  import { spacing } from '../constants';
5
5
  import { HALF_GRID_SIZE, LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varSpacing, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
@@ -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
  var linkStyles = css({
5
5
  color: "var(--ds-text, ".concat(N800, ")"),
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @repo/internal/styles/no-nested-styles */
2
2
 
3
3
  /** @jsx jsx */
4
- import { css, jsx } from '@emotion/core';
4
+ import { css, jsx } from '@emotion/react';
5
5
  import { LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
6
6
  var progressMarkerStyles = css({
7
7
  width: PROGRESS_BAR_HEIGHT,
@@ -18,7 +18,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
18
18
 
19
19
  /** @jsx jsx */
20
20
  import { PureComponent } from 'react';
21
- import { css, jsx } from '@emotion/core';
21
+ import { css, jsx } from '@emotion/react';
22
22
  import { CSSTransition } from 'react-transition-group';
23
23
  import { fontSize } from '@atlaskit/theme/constants';
24
24
  import ProgressBar from './bar';
@@ -18,7 +18,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
18
18
 
19
19
  /** @jsx jsx */
20
20
  import { PureComponent } from 'react';
21
- import { css, jsx } from '@emotion/core';
21
+ import { css, jsx } from '@emotion/react';
22
22
  import { defaultGridSize, spacing } from './constants';
23
23
  import { ANIMATION_EASE_OUT, LINEAR_TRANSITION_SPEED, TRANSITION_SPEED, varSpacing } from './internal/constants';
24
24
  import Link from './internal/link';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-tracker",
3
- "version": "8.2.5",
3
+ "version": "8.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { jsx } from '@emotion/react';
2
2
  interface StageBarProps {
3
3
  testId?: string;
4
4
  percentageComplete: number;
@@ -9,5 +9,5 @@ interface StageBarProps {
9
9
  * A progress bar describes the horizontal tracking bar that traverses each individual step.
10
10
  *
11
11
  */
12
- declare const ProgressBar: ({ percentageComplete, testId }: StageBarProps) => JSX.Element;
12
+ declare const ProgressBar: ({ percentageComplete, testId }: StageBarProps) => jsx.JSX.Element;
13
13
  export default ProgressBar;
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { PureComponent } from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  import type { ProgressTrackerStageProps } from './types';
4
5
  interface State {
5
6
  transitioning: boolean;
@@ -13,5 +14,5 @@ export default class ProgressTrackerStage extends PureComponent<ProgressTrackerS
13
14
  UNSAFE_componentWillReceiveProps(): void;
14
15
  shouldShowLink(): boolean;
15
16
  onEntered: () => void;
16
- render(): JSX.Element;
17
+ render(): jsx.JSX.Element;
17
18
  }
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { PureComponent } from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  import type { LinkComponentProps, ProgressTrackerStageRenderProp, Spacing, Stages } from './types';
4
5
  export interface ProgressTrackerProps {
5
6
  /**
@@ -35,7 +36,7 @@ export default class ProgressTracker extends PureComponent<ProgressTrackerProps,
35
36
  items: never[];
36
37
  spacing: string;
37
38
  render: {
38
- link: ({ item }: LinkComponentProps) => JSX.Element;
39
+ link: ({ item }: LinkComponentProps) => jsx.JSX.Element;
39
40
  };
40
41
  animated: boolean;
41
42
  label: string;
@@ -52,6 +53,6 @@ export default class ProgressTracker extends PureComponent<ProgressTrackerProps,
52
53
  }[];
53
54
  };
54
55
  UNSAFE_componentWillReceiveProps(nextProps: ProgressTrackerProps): void;
55
- render(): JSX.Element;
56
+ render(): jsx.JSX.Element;
56
57
  }
57
58
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-tracker",
3
- "version": "8.2.5",
3
+ "version": "8.3.0",
4
4
  "description": "A progress tracker displays the steps and progress through a journey.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,10 +23,10 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/theme": "^12.1.0",
26
+ "@atlaskit/theme": "^12.2.0",
27
27
  "@atlaskit/tokens": "^0.10.0",
28
28
  "@babel/runtime": "^7.0.0",
29
- "@emotion/core": "^10.0.9",
29
+ "@emotion/react": "^11.7.1",
30
30
  "react-transition-group": "^4.4.1"
31
31
  },
32
32
  "peerDependencies": {
@@ -35,8 +35,9 @@
35
35
  "devDependencies": {
36
36
  "@atlaskit/button": "^16.3.0",
37
37
  "@atlaskit/docs": "*",
38
+ "@atlaskit/ds-lib": "^2.0.1",
38
39
  "@atlaskit/icon": "^21.10.0",
39
- "@atlaskit/section-message": "^6.0.0",
40
+ "@atlaskit/section-message": "^6.2.0",
40
41
  "@atlaskit/ssr": "*",
41
42
  "@atlaskit/visual-regression": "*",
42
43
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",