@atlaskit/progress-tracker 8.2.3 → 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 +22 -0
- package/constants/package.json +1 -0
- package/dist/cjs/internal/bar.js +3 -3
- package/dist/cjs/internal/link.js +3 -3
- package/dist/cjs/internal/marker.js +3 -3
- package/dist/cjs/internal/stage.js +12 -12
- package/dist/cjs/progress-tracker.js +5 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/internal/bar.js +1 -1
- package/dist/es2019/internal/link.js +1 -1
- package/dist/es2019/internal/marker.js +1 -1
- package/dist/es2019/internal/stage.js +1 -1
- package/dist/es2019/progress-tracker.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/internal/bar.js +1 -1
- package/dist/esm/internal/link.js +1 -1
- package/dist/esm/internal/marker.js +1 -1
- package/dist/esm/internal/stage.js +1 -1
- package/dist/esm/progress-tracker.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/internal/bar.d.ts +2 -2
- package/dist/types/internal/stage.d.ts +2 -1
- package/dist/types/progress-tracker.d.ts +3 -2
- package/package.json +11 -8
- package/report.api.md +103 -0
- package/types/package.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
13
|
+
## 8.2.5
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
18
|
+
|
|
19
|
+
## 8.2.4
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 8.2.3
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/constants/package.json
CHANGED
package/dist/cjs/internal/bar.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
48
|
+
var containerStyles = (0, _react2.css)({
|
|
49
49
|
width: '100%',
|
|
50
50
|
position: 'relative'
|
|
51
51
|
});
|
|
52
|
-
var listItemStyles = (0,
|
|
52
|
+
var listItemStyles = (0, _react2.css)({
|
|
53
53
|
margin: 0,
|
|
54
54
|
overflowWrap: 'break-word'
|
|
55
55
|
});
|
|
56
|
-
var titleStyles = (0,
|
|
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,
|
|
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,
|
|
134
|
+
}, (0, _react2.jsx)("div", {
|
|
135
135
|
css: containerStyles
|
|
136
|
-
}, (0,
|
|
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,
|
|
142
|
+
}, (0, _react2.jsx)(_marker.default, {
|
|
143
143
|
testId: testId && "".concat(testId, "-marker")
|
|
144
|
-
})), (0,
|
|
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,
|
|
150
|
+
}, (0, _react2.jsx)(_bar.default, {
|
|
151
151
|
testId: testId && "".concat(testId, "-bar"),
|
|
152
152
|
percentageComplete: item.percentageComplete
|
|
153
|
-
})), (0,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
169
|
+
return (0, _react2.jsx)(_link.default, item);
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
animated: true,
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
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,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/
|
|
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/
|
|
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/
|
|
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';
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/internal/bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
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,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/
|
|
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/
|
|
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/
|
|
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';
|
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/progress-tracker",
|
|
3
|
-
"version": "8.
|
|
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/"
|
|
7
7
|
},
|
|
8
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
9
|
"author": "Atlassian Pty Ltd",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "dist/cjs/index.js",
|
|
@@ -18,14 +18,15 @@
|
|
|
18
18
|
"team": "Design System Team",
|
|
19
19
|
"releaseModel": "scheduled",
|
|
20
20
|
"website": {
|
|
21
|
-
"name": "Progress tracker"
|
|
21
|
+
"name": "Progress tracker",
|
|
22
|
+
"category": "Components"
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@atlaskit/theme": "^12.
|
|
26
|
-
"@atlaskit/tokens": "^0.
|
|
26
|
+
"@atlaskit/theme": "^12.2.0",
|
|
27
|
+
"@atlaskit/tokens": "^0.10.0",
|
|
27
28
|
"@babel/runtime": "^7.0.0",
|
|
28
|
-
"@emotion/
|
|
29
|
+
"@emotion/react": "^11.7.1",
|
|
29
30
|
"react-transition-group": "^4.4.1"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
@@ -34,8 +35,9 @@
|
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@atlaskit/button": "^16.3.0",
|
|
36
37
|
"@atlaskit/docs": "*",
|
|
38
|
+
"@atlaskit/ds-lib": "^2.0.1",
|
|
37
39
|
"@atlaskit/icon": "^21.10.0",
|
|
38
|
-
"@atlaskit/section-message": "^6.
|
|
40
|
+
"@atlaskit/section-message": "^6.2.0",
|
|
39
41
|
"@atlaskit/ssr": "*",
|
|
40
42
|
"@atlaskit/visual-regression": "*",
|
|
41
43
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -44,13 +46,14 @@
|
|
|
44
46
|
"react-dom": "^16.8.0",
|
|
45
47
|
"react-router-dom": "^4.2.2",
|
|
46
48
|
"react-test-renderer": "^16.8.0",
|
|
47
|
-
"typescript": "4.
|
|
49
|
+
"typescript": "4.3.5"
|
|
48
50
|
},
|
|
49
51
|
"techstack": {
|
|
50
52
|
"@atlassian/frontend": {
|
|
51
53
|
"import-structure": "atlassian-conventions"
|
|
52
54
|
},
|
|
53
55
|
"@repo/internal": {
|
|
56
|
+
"dom-events": "use-bind-event-listener",
|
|
54
57
|
"design-system": "v1",
|
|
55
58
|
"theming": "tokens",
|
|
56
59
|
"styling": [
|
package/report.api.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/progress-tracker"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
/// <reference types="react" />
|
|
7
|
+
|
|
8
|
+
import { PureComponent } from 'react';
|
|
9
|
+
|
|
10
|
+
declare interface LinkComponentProps {
|
|
11
|
+
item: Stage;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare class ProgressTracker extends PureComponent<
|
|
15
|
+
ProgressTrackerProps,
|
|
16
|
+
State
|
|
17
|
+
> {
|
|
18
|
+
static defaultProps: {
|
|
19
|
+
items: never[];
|
|
20
|
+
spacing: string;
|
|
21
|
+
render: {
|
|
22
|
+
link: ({ item }: LinkComponentProps) => JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
animated: boolean;
|
|
25
|
+
label: string;
|
|
26
|
+
};
|
|
27
|
+
state: {
|
|
28
|
+
prevStages: {
|
|
29
|
+
percentageComplete: number;
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
status: Status;
|
|
33
|
+
noLink?: boolean | undefined;
|
|
34
|
+
href?: string | undefined;
|
|
35
|
+
onClick?: (() => void) | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
UNSAFE_componentWillReceiveProps(nextProps: ProgressTrackerProps): void;
|
|
39
|
+
render(): JSX.Element;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export declare interface ProgressTrackerProps {
|
|
43
|
+
/**
|
|
44
|
+
* Ordered list of stage data
|
|
45
|
+
*/
|
|
46
|
+
items: Stages;
|
|
47
|
+
/**
|
|
48
|
+
* Margin spacing type between steps
|
|
49
|
+
*/
|
|
50
|
+
spacing: Spacing;
|
|
51
|
+
/**
|
|
52
|
+
* Render prop to specify custom implementations of components
|
|
53
|
+
*/
|
|
54
|
+
render: ProgressTrackerStageRenderProp;
|
|
55
|
+
/**
|
|
56
|
+
* Turns off transition animations if set to false
|
|
57
|
+
*/
|
|
58
|
+
animated: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
|
|
61
|
+
*/
|
|
62
|
+
testId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Text to be used as an aria-label of progress tracker
|
|
65
|
+
*/
|
|
66
|
+
label?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare interface ProgressTrackerStageRenderProp {
|
|
70
|
+
link: (props: LinkComponentProps) => JSX.Element;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare type Spacing = keyof typeof spacing;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Ideally these are exported by @atlaskit/page
|
|
77
|
+
*/
|
|
78
|
+
declare const spacing: {
|
|
79
|
+
readonly comfortable: number;
|
|
80
|
+
readonly cosy: number;
|
|
81
|
+
readonly compact: number;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export declare interface Stage {
|
|
85
|
+
id: string;
|
|
86
|
+
label: string;
|
|
87
|
+
percentageComplete: number;
|
|
88
|
+
status: Status;
|
|
89
|
+
noLink?: boolean;
|
|
90
|
+
href?: string;
|
|
91
|
+
onClick?: () => void;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export declare type Stages = Stage[];
|
|
95
|
+
|
|
96
|
+
declare interface State {
|
|
97
|
+
prevStages: Stages;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare type Status = 'unvisited' | 'visited' | 'current' | 'disabled';
|
|
101
|
+
|
|
102
|
+
export {};
|
|
103
|
+
```
|