@atlaskit/progress-tracker 8.6.2 → 8.6.3
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 +9 -1
- package/README.md +2 -1
- package/dist/cjs/internal/bar.js +13 -5
- package/dist/cjs/internal/constants.js +4 -5
- package/dist/cjs/internal/link.js +2 -0
- package/dist/cjs/internal/marker.js +16 -2
- package/dist/cjs/internal/stage.js +8 -13
- package/dist/cjs/internal/utils.js +2 -3
- package/dist/cjs/progress-tracker.js +3 -2
- package/dist/es2019/internal/bar.js +13 -5
- package/dist/es2019/internal/constants.js +3 -4
- package/dist/es2019/internal/link.js +1 -0
- package/dist/es2019/internal/marker.js +15 -2
- package/dist/es2019/internal/stage.js +9 -12
- package/dist/es2019/internal/utils.js +2 -3
- package/dist/es2019/progress-tracker.js +4 -1
- package/dist/esm/internal/bar.js +13 -5
- package/dist/esm/internal/constants.js +3 -4
- package/dist/esm/internal/link.js +1 -0
- package/dist/esm/internal/marker.js +15 -2
- package/dist/esm/internal/stage.js +9 -12
- package/dist/esm/internal/utils.js +2 -3
- package/dist/esm/progress-tracker.js +4 -1
- package/dist/types/internal/constants.d.ts +1 -3
- package/dist/types-ts4.5/internal/constants.d.ts +1 -3
- package/package.json +88 -88
- package/report.api.md +59 -61
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/progress-tracker
|
|
2
2
|
|
|
3
|
+
## 8.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#102669](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102669)
|
|
8
|
+
[`57f9d0819e9e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57f9d0819e9e6) -
|
|
9
|
+
Internal change only. Update spacing to use logical properties and tokenise typography values.
|
|
10
|
+
|
|
3
11
|
## 8.6.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -20,7 +28,7 @@
|
|
|
20
28
|
|
|
21
29
|
- [#99069](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99069)
|
|
22
30
|
[`609d5a37c656`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/609d5a37c656) -
|
|
23
|
-
Add support for React 18.
|
|
31
|
+
Add support for React 18 in non-strict mode.
|
|
24
32
|
|
|
25
33
|
## 8.5.11
|
|
26
34
|
|
package/README.md
CHANGED
|
@@ -10,4 +10,5 @@ yarn add @atlaskit/progress-tracker
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Detailed docs and example usage can be found
|
|
13
|
+
Detailed docs and example usage can be found
|
|
14
|
+
[here](https://atlassian.design/components/progress-tracker/).
|
package/dist/cjs/internal/bar.js
CHANGED
|
@@ -9,17 +9,23 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
9
9
|
var _constants = require("../constants");
|
|
10
10
|
var _constants2 = require("./constants");
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
|
|
13
14
|
var progressBarStyles = (0, _react.css)({
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
16
|
height: _constants2.PROGRESS_BAR_HEIGHT,
|
|
15
17
|
position: 'absolute',
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
17
|
-
left: '50%',
|
|
18
18
|
backgroundColor: "var(--ds-background-brand-bold, ".concat(_colors.B300, ")"),
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
|
+
borderEndEndRadius: _constants2.PROGRESS_BAR_HEIGHT,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
borderStartEndRadius: _constants2.PROGRESS_BAR_HEIGHT,
|
|
23
|
+
insetInlineStart: '50%',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
25
|
transform: "translate(0, calc(-1 * ".concat(_constants2.LABEL_TOP_SPACING, "))"),
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
27
|
transition: "width var(".concat(_constants2.varTransitionSpeed, ") var(").concat(_constants2.varTransitionEasing, ")"),
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
29
|
transitionDelay: "var(".concat(_constants2.varTransitionDelay, ")")
|
|
24
30
|
});
|
|
25
31
|
|
|
@@ -35,7 +41,9 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
35
41
|
return (0, _react.jsx)("div", {
|
|
36
42
|
"data-testid": testId,
|
|
37
43
|
style: {
|
|
38
|
-
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
44
|
+
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
|
+
, " * calc(var(").concat(_constants2.varSpacing, ", ").concat(_constants.spacing.cosy, ") + ").concat(_constants2.HALF_GRID_SIZE, "))")
|
|
39
47
|
},
|
|
40
48
|
css: progressBarStyles
|
|
41
49
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.varTransitionSpeed = exports.varTransitionEasing = exports.varTransitionDelay = exports.varSpacing = exports.varMarkerColor = exports.varBackgroundColor = exports.TRANSITION_SPEED = exports.
|
|
6
|
+
exports.varTransitionSpeed = exports.varTransitionEasing = exports.varTransitionDelay = exports.varSpacing = exports.varMarkerColor = exports.varBackgroundColor = exports.TRANSITION_SPEED = exports.PROGRESS_BAR_HEIGHT = exports.LINEAR_TRANSITION_SPEED = exports.LABEL_TOP_SPACING = exports.HALF_GRID_SIZE = exports.ANIMATION_EASE_OUT = void 0;
|
|
7
7
|
var TRANSITION_SPEED = exports.TRANSITION_SPEED = 300;
|
|
8
8
|
var LINEAR_TRANSITION_SPEED = exports.LINEAR_TRANSITION_SPEED = 50;
|
|
9
9
|
var ANIMATION_EASE_OUT = exports.ANIMATION_EASE_OUT = 'cubic-bezier(0.15,1,0.3,1)';
|
|
@@ -13,10 +13,9 @@ var varTransitionDelay = exports.varTransitionDelay = '--ds--pt--td';
|
|
|
13
13
|
var varTransitionEasing = exports.varTransitionEasing = '--ds--pt--te';
|
|
14
14
|
var varMarkerColor = exports.varMarkerColor = '--ds--pt--mc';
|
|
15
15
|
var varBackgroundColor = exports.varBackgroundColor = '--ds--pt--bg';
|
|
16
|
-
var REGULAR_FONT_WEIGHT = exports.REGULAR_FONT_WEIGHT = "var(--ds-font-weight-regular, 400)";
|
|
17
|
-
var SEMI_BOLD_FONT_WEIGHT = exports.SEMI_BOLD_FONT_WEIGHT = "var(--ds-font-weight-semibold, 600)";
|
|
18
16
|
var HALF_GRID_SIZE = exports.HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
|
|
19
17
|
var PROGRESS_BAR_HEIGHT = exports.PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
|
|
20
18
|
|
|
21
|
-
// Labels sit 16px from bottom of progress bar
|
|
22
|
-
|
|
19
|
+
// Labels sit 16px from bottom of progress bar
|
|
20
|
+
// i.e. 8 (bar height) + 16 - 4 (line height 24->20 in PYX-695) = 20px
|
|
21
|
+
var LABEL_TOP_SPACING = exports.LABEL_TOP_SPACING = "var(--ds-space-250, 20px)";
|
|
@@ -8,6 +8,8 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
11
13
|
var linkStyles = (0, _react.css)({
|
|
12
14
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
13
15
|
cursor: 'pointer'
|
|
@@ -9,27 +9,41 @@ var _constants = require("./constants");
|
|
|
9
9
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
12
14
|
var progressMarkerStyles = (0, _react.css)({
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
16
|
width: _constants.PROGRESS_BAR_HEIGHT,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
18
|
height: _constants.PROGRESS_BAR_HEIGHT,
|
|
15
19
|
position: 'absolute',
|
|
16
|
-
// eslint-disable-next-line @atlaskit/
|
|
17
|
-
left: '50%',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
21
|
backgroundColor: "var(".concat(_constants.varBackgroundColor, ")"),
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
23
|
borderRadius: _constants.PROGRESS_BAR_HEIGHT,
|
|
24
|
+
insetInlineStart: '50%',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
26
|
transform: "translate(-50%, calc(-1 * ".concat(_constants.LABEL_TOP_SPACING, "))"),
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
28
|
transition: "opacity var(".concat(_constants.varTransitionSpeed, ") var(").concat(_constants.varTransitionEasing, "), background-color var(").concat(_constants.varTransitionSpeed, ") var(").concat(_constants.varTransitionEasing, ")"),
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
30
|
transitionDelay: "var(".concat(_constants.varTransitionDelay, ")"),
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
32
|
'&.fade-appear': {
|
|
24
33
|
opacity: 0.01
|
|
25
34
|
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
36
|
'&.fade-appear.fade-appear-active': {
|
|
27
37
|
opacity: 1
|
|
28
38
|
},
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
40
|
'&.fade-enter': {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
42
|
backgroundColor: "var(".concat(_constants.varMarkerColor, ")")
|
|
31
43
|
},
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
45
|
'&.fade-enter.fade-enter-active': {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
47
|
backgroundColor: "var(".concat(_constants.varBackgroundColor, ")")
|
|
34
48
|
}
|
|
35
49
|
});
|
|
@@ -23,7 +23,7 @@ var _utils = require("./utils");
|
|
|
23
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/no-nested-styles */ /** @jsx jsx */
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/no-nested-styles */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
27
|
var listItemContentStyles = (0, _primitives.xcss)({
|
|
28
28
|
width: '100%',
|
|
29
29
|
position: 'relative'
|
|
@@ -33,23 +33,20 @@ var listItemStyles = (0, _react2.css)({
|
|
|
33
33
|
overflowWrap: 'break-word'
|
|
34
34
|
});
|
|
35
35
|
var titleStyles = (0, _react2.css)({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
39
|
-
lineHeight: '16px',
|
|
36
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
37
|
+
marginBlockStart: _constants.LABEL_TOP_SPACING,
|
|
40
38
|
textAlign: 'center',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
40
|
'&.fade-appear': {
|
|
42
41
|
opacity: 0.01
|
|
43
42
|
},
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
44
|
'&.fade-appear.fade-appear-active': {
|
|
45
45
|
opacity: 1,
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
47
|
transition: "opacity var(".concat(_constants.varTransitionSpeed, ") cubic-bezier(0.2, 0, 0, 1)")
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
var textStyles = (0, _react2.css)({
|
|
50
|
-
fontSize: '14px',
|
|
51
|
-
lineHeight: '16px'
|
|
52
|
-
});
|
|
53
50
|
var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
54
51
|
(0, _inherits2.default)(ProgressTrackerStage, _PureComponent);
|
|
55
52
|
var _super = _createSuper(ProgressTrackerStage);
|
|
@@ -136,9 +133,7 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
136
133
|
timeout: transitionDelay + transitionSpeed,
|
|
137
134
|
classNames: "fade"
|
|
138
135
|
}, (0, _react2.jsx)("div", {
|
|
139
|
-
css: titleStyles
|
|
140
|
-
}, (0, _react2.jsx)("span", {
|
|
141
|
-
css: textStyles,
|
|
136
|
+
css: titleStyles,
|
|
142
137
|
style: {
|
|
143
138
|
color: (0, _utils.getTextColor)(item.status),
|
|
144
139
|
fontWeight: (0, _utils.getFontWeight)(item.status)
|
|
@@ -146,7 +141,7 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
146
141
|
"data-testid": testId && "".concat(testId, "-title")
|
|
147
142
|
}, this.shouldShowLink() ? render.link({
|
|
148
143
|
item: item
|
|
149
|
-
}) : item.label))))
|
|
144
|
+
}) : item.label))));
|
|
150
145
|
}
|
|
151
146
|
}]);
|
|
152
147
|
return ProgressTrackerStage;
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getTextColor = exports.getMarkerColor = exports.getFontWeight = void 0;
|
|
7
7
|
var _colors = require("@atlaskit/theme/colors");
|
|
8
|
-
var _constants = require("./constants");
|
|
9
8
|
var getMarkerColor = exports.getMarkerColor = function getMarkerColor(status) {
|
|
10
9
|
switch (status) {
|
|
11
10
|
case 'unvisited':
|
|
@@ -35,11 +34,11 @@ var getTextColor = exports.getTextColor = function getTextColor(status) {
|
|
|
35
34
|
var getFontWeight = exports.getFontWeight = function getFontWeight(status) {
|
|
36
35
|
switch (status) {
|
|
37
36
|
case 'unvisited':
|
|
38
|
-
return
|
|
37
|
+
return "var(--ds-font-weight-regular, 400)";
|
|
39
38
|
case 'current':
|
|
40
39
|
case 'visited':
|
|
41
40
|
case 'disabled':
|
|
42
|
-
return
|
|
41
|
+
return "var(--ds-font-weight-semibold, 600)";
|
|
43
42
|
default:
|
|
44
43
|
return undefined;
|
|
45
44
|
}
|
|
@@ -21,16 +21,17 @@ var _stage = _interopRequireDefault(require("./internal/stage"));
|
|
|
21
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/no-nested-styles */ /** @jsx jsx */
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/no-nested-styles */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var containerStyles = (0, _react2.css)({
|
|
26
26
|
display: 'grid',
|
|
27
27
|
width: '100%',
|
|
28
28
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
29
29
|
margin: '0 auto',
|
|
30
30
|
padding: "var(--ds-space-0, 0px)",
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
32
|
gap: "var(".concat(_constants2.varSpacing, ")"),
|
|
33
33
|
listStyleType: 'none',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
35
|
'&&': {
|
|
35
36
|
marginBlockStart: "var(--ds-space-500, 40px)"
|
|
36
37
|
}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { B300 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { spacing } from '../constants';
|
|
5
6
|
import { HALF_GRID_SIZE, LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varSpacing, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
6
7
|
const progressBarStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
height: PROGRESS_BAR_HEIGHT,
|
|
8
10
|
position: 'absolute',
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
10
|
-
left: '50%',
|
|
11
11
|
backgroundColor: `var(--ds-background-brand-bold, ${B300})`,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
+
borderEndEndRadius: PROGRESS_BAR_HEIGHT,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
+
borderStartEndRadius: PROGRESS_BAR_HEIGHT,
|
|
16
|
+
insetInlineStart: '50%',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
18
|
transform: `translate(0, calc(-1 * ${LABEL_TOP_SPACING}))`,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
20
|
transition: `width var(${varTransitionSpeed}) var(${varTransitionEasing})`,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
22
|
transitionDelay: `var(${varTransitionDelay})`
|
|
17
23
|
});
|
|
18
24
|
|
|
@@ -28,7 +34,9 @@ const ProgressBar = ({
|
|
|
28
34
|
}) => jsx("div", {
|
|
29
35
|
"data-testid": testId,
|
|
30
36
|
style: {
|
|
31
|
-
width: `calc(${percentageComplete}% + ${percentageComplete / 100
|
|
37
|
+
width: `calc(${percentageComplete}% + ${percentageComplete / 100
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
+
} * calc(var(${varSpacing}, ${spacing.cosy}) + ${HALF_GRID_SIZE}))`
|
|
32
40
|
},
|
|
33
41
|
css: progressBarStyles
|
|
34
42
|
});
|
|
@@ -7,10 +7,9 @@ export const varTransitionDelay = '--ds--pt--td';
|
|
|
7
7
|
export const varTransitionEasing = '--ds--pt--te';
|
|
8
8
|
export const varMarkerColor = '--ds--pt--mc';
|
|
9
9
|
export const varBackgroundColor = '--ds--pt--bg';
|
|
10
|
-
export const REGULAR_FONT_WEIGHT = "var(--ds-font-weight-regular, 400)";
|
|
11
|
-
export const SEMI_BOLD_FONT_WEIGHT = "var(--ds-font-weight-semibold, 600)";
|
|
12
10
|
export const HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
|
|
13
11
|
export const PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
|
|
14
12
|
|
|
15
|
-
// Labels sit 16px from bottom of progress bar
|
|
16
|
-
|
|
13
|
+
// Labels sit 16px from bottom of progress bar
|
|
14
|
+
// i.e. 8 (bar height) + 16 - 4 (line height 24->20 in PYX-695) = 20px
|
|
15
|
+
export const LABEL_TOP_SPACING = "var(--ds-space-250, 20px)";
|
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
6
7
|
const progressMarkerStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
width: PROGRESS_BAR_HEIGHT,
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
11
|
height: PROGRESS_BAR_HEIGHT,
|
|
9
12
|
position: 'absolute',
|
|
10
|
-
// eslint-disable-next-line @atlaskit/
|
|
11
|
-
left: '50%',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
14
|
backgroundColor: `var(${varBackgroundColor})`,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
16
|
borderRadius: PROGRESS_BAR_HEIGHT,
|
|
17
|
+
insetInlineStart: '50%',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
19
|
transform: `translate(-50%, calc(-1 * ${LABEL_TOP_SPACING}))`,
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
21
|
transition: `opacity var(${varTransitionSpeed}) var(${varTransitionEasing}), background-color var(${varTransitionSpeed}) var(${varTransitionEasing})`,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
23
|
transitionDelay: `var(${varTransitionDelay})`,
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
25
|
'&.fade-appear': {
|
|
18
26
|
opacity: 0.01
|
|
19
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
29
|
'&.fade-appear.fade-appear-active': {
|
|
21
30
|
opacity: 1
|
|
22
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
33
|
'&.fade-enter': {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
35
|
backgroundColor: `var(${varMarkerColor})`
|
|
25
36
|
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
38
|
'&.fade-enter.fade-enter-active': {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
40
|
backgroundColor: `var(${varBackgroundColor})`
|
|
28
41
|
}
|
|
29
42
|
});
|
|
@@ -2,6 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import { CSSTransition } from 'react-transition-group';
|
|
7
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -18,23 +20,20 @@ const listItemStyles = css({
|
|
|
18
20
|
overflowWrap: 'break-word'
|
|
19
21
|
});
|
|
20
22
|
const titleStyles = css({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
24
|
-
lineHeight: '16px',
|
|
23
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
24
|
+
marginBlockStart: LABEL_TOP_SPACING,
|
|
25
25
|
textAlign: 'center',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
27
|
'&.fade-appear': {
|
|
27
28
|
opacity: 0.01
|
|
28
29
|
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
31
|
'&.fade-appear.fade-appear-active': {
|
|
30
32
|
opacity: 1,
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
34
|
transition: `opacity var(${varTransitionSpeed}) cubic-bezier(0.2, 0, 0, 1)`
|
|
32
35
|
}
|
|
33
36
|
});
|
|
34
|
-
const textStyles = css({
|
|
35
|
-
fontSize: '14px',
|
|
36
|
-
lineHeight: '16px'
|
|
37
|
-
});
|
|
38
37
|
export default class ProgressTrackerStage extends PureComponent {
|
|
39
38
|
constructor(props) {
|
|
40
39
|
super(props);
|
|
@@ -116,9 +115,7 @@ export default class ProgressTrackerStage extends PureComponent {
|
|
|
116
115
|
timeout: transitionDelay + transitionSpeed,
|
|
117
116
|
classNames: "fade"
|
|
118
117
|
}, jsx("div", {
|
|
119
|
-
css: titleStyles
|
|
120
|
-
}, jsx("span", {
|
|
121
|
-
css: textStyles,
|
|
118
|
+
css: titleStyles,
|
|
122
119
|
style: {
|
|
123
120
|
color: getTextColor(item.status),
|
|
124
121
|
fontWeight: getFontWeight(item.status)
|
|
@@ -126,6 +123,6 @@ export default class ProgressTrackerStage extends PureComponent {
|
|
|
126
123
|
"data-testid": testId && `${testId}-title`
|
|
127
124
|
}, this.shouldShowLink() ? render.link({
|
|
128
125
|
item
|
|
129
|
-
}) : item.label))))
|
|
126
|
+
}) : item.label))));
|
|
130
127
|
}
|
|
131
128
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { B300, N70 } from '@atlaskit/theme/colors';
|
|
2
|
-
import { REGULAR_FONT_WEIGHT, SEMI_BOLD_FONT_WEIGHT } from './constants';
|
|
3
2
|
export const getMarkerColor = status => {
|
|
4
3
|
switch (status) {
|
|
5
4
|
case 'unvisited':
|
|
@@ -29,11 +28,11 @@ export const getTextColor = status => {
|
|
|
29
28
|
export const getFontWeight = status => {
|
|
30
29
|
switch (status) {
|
|
31
30
|
case 'unvisited':
|
|
32
|
-
return
|
|
31
|
+
return "var(--ds-font-weight-regular, 400)";
|
|
33
32
|
case 'current':
|
|
34
33
|
case 'visited':
|
|
35
34
|
case 'disabled':
|
|
36
|
-
return
|
|
35
|
+
return "var(--ds-font-weight-semibold, 600)";
|
|
37
36
|
default:
|
|
38
37
|
return undefined;
|
|
39
38
|
}
|
|
@@ -2,6 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import { spacing } from './constants';
|
|
7
9
|
import { ANIMATION_EASE_OUT, LINEAR_TRANSITION_SPEED, TRANSITION_SPEED, varSpacing } from './internal/constants';
|
|
@@ -13,9 +15,10 @@ const containerStyles = css({
|
|
|
13
15
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
14
16
|
margin: '0 auto',
|
|
15
17
|
padding: "var(--ds-space-0, 0px)",
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
19
|
gap: `var(${varSpacing})`,
|
|
18
20
|
listStyleType: 'none',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
19
22
|
'&&': {
|
|
20
23
|
marginBlockStart: "var(--ds-space-500, 40px)"
|
|
21
24
|
}
|
package/dist/esm/internal/bar.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { B300 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { spacing } from '../constants';
|
|
5
6
|
import { HALF_GRID_SIZE, LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varSpacing, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
6
7
|
var progressBarStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
height: PROGRESS_BAR_HEIGHT,
|
|
8
10
|
position: 'absolute',
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
10
|
-
left: '50%',
|
|
11
11
|
backgroundColor: "var(--ds-background-brand-bold, ".concat(B300, ")"),
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
+
borderEndEndRadius: PROGRESS_BAR_HEIGHT,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
+
borderStartEndRadius: PROGRESS_BAR_HEIGHT,
|
|
16
|
+
insetInlineStart: '50%',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
18
|
transform: "translate(0, calc(-1 * ".concat(LABEL_TOP_SPACING, "))"),
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
20
|
transition: "width var(".concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, ")"),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
22
|
transitionDelay: "var(".concat(varTransitionDelay, ")")
|
|
17
23
|
});
|
|
18
24
|
|
|
@@ -28,7 +34,9 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
28
34
|
return jsx("div", {
|
|
29
35
|
"data-testid": testId,
|
|
30
36
|
style: {
|
|
31
|
-
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
37
|
+
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
+
, " * calc(var(").concat(varSpacing, ", ").concat(spacing.cosy, ") + ").concat(HALF_GRID_SIZE, "))")
|
|
32
40
|
},
|
|
33
41
|
css: progressBarStyles
|
|
34
42
|
});
|
|
@@ -7,10 +7,9 @@ export var varTransitionDelay = '--ds--pt--td';
|
|
|
7
7
|
export var varTransitionEasing = '--ds--pt--te';
|
|
8
8
|
export var varMarkerColor = '--ds--pt--mc';
|
|
9
9
|
export var varBackgroundColor = '--ds--pt--bg';
|
|
10
|
-
export var REGULAR_FONT_WEIGHT = "var(--ds-font-weight-regular, 400)";
|
|
11
|
-
export var SEMI_BOLD_FONT_WEIGHT = "var(--ds-font-weight-semibold, 600)";
|
|
12
10
|
export var HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
|
|
13
11
|
export var PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
|
|
14
12
|
|
|
15
|
-
// Labels sit 16px from bottom of progress bar
|
|
16
|
-
|
|
13
|
+
// Labels sit 16px from bottom of progress bar
|
|
14
|
+
// i.e. 8 (bar height) + 16 - 4 (line height 24->20 in PYX-695) = 20px
|
|
15
|
+
export var LABEL_TOP_SPACING = "var(--ds-space-250, 20px)";
|
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
6
7
|
var progressMarkerStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
width: PROGRESS_BAR_HEIGHT,
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
11
|
height: PROGRESS_BAR_HEIGHT,
|
|
9
12
|
position: 'absolute',
|
|
10
|
-
// eslint-disable-next-line @atlaskit/
|
|
11
|
-
left: '50%',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
14
|
backgroundColor: "var(".concat(varBackgroundColor, ")"),
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
16
|
borderRadius: PROGRESS_BAR_HEIGHT,
|
|
17
|
+
insetInlineStart: '50%',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
19
|
transform: "translate(-50%, calc(-1 * ".concat(LABEL_TOP_SPACING, "))"),
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
21
|
transition: "opacity var(".concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, "), background-color var(").concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, ")"),
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
23
|
transitionDelay: "var(".concat(varTransitionDelay, ")"),
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
25
|
'&.fade-appear': {
|
|
18
26
|
opacity: 0.01
|
|
19
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
29
|
'&.fade-appear.fade-appear-active': {
|
|
21
30
|
opacity: 1
|
|
22
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
33
|
'&.fade-enter': {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
35
|
backgroundColor: "var(".concat(varMarkerColor, ")")
|
|
25
36
|
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
38
|
'&.fade-enter.fade-enter-active': {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
40
|
backgroundColor: "var(".concat(varBackgroundColor, ")")
|
|
28
41
|
}
|
|
29
42
|
});
|
|
@@ -12,6 +12,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
import { PureComponent } from 'react';
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
17
|
import { css, jsx } from '@emotion/react';
|
|
16
18
|
import { CSSTransition } from 'react-transition-group';
|
|
17
19
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -28,23 +30,20 @@ var listItemStyles = css({
|
|
|
28
30
|
overflowWrap: 'break-word'
|
|
29
31
|
});
|
|
30
32
|
var titleStyles = css({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
34
|
-
lineHeight: '16px',
|
|
33
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
34
|
+
marginBlockStart: LABEL_TOP_SPACING,
|
|
35
35
|
textAlign: 'center',
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
37
|
'&.fade-appear': {
|
|
37
38
|
opacity: 0.01
|
|
38
39
|
},
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
41
|
'&.fade-appear.fade-appear-active': {
|
|
40
42
|
opacity: 1,
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
44
|
transition: "opacity var(".concat(varTransitionSpeed, ") cubic-bezier(0.2, 0, 0, 1)")
|
|
42
45
|
}
|
|
43
46
|
});
|
|
44
|
-
var textStyles = css({
|
|
45
|
-
fontSize: '14px',
|
|
46
|
-
lineHeight: '16px'
|
|
47
|
-
});
|
|
48
47
|
var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
|
|
49
48
|
_inherits(ProgressTrackerStage, _PureComponent);
|
|
50
49
|
var _super = _createSuper(ProgressTrackerStage);
|
|
@@ -131,9 +130,7 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
|
|
|
131
130
|
timeout: transitionDelay + transitionSpeed,
|
|
132
131
|
classNames: "fade"
|
|
133
132
|
}, jsx("div", {
|
|
134
|
-
css: titleStyles
|
|
135
|
-
}, jsx("span", {
|
|
136
|
-
css: textStyles,
|
|
133
|
+
css: titleStyles,
|
|
137
134
|
style: {
|
|
138
135
|
color: getTextColor(item.status),
|
|
139
136
|
fontWeight: getFontWeight(item.status)
|
|
@@ -141,7 +138,7 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
|
|
|
141
138
|
"data-testid": testId && "".concat(testId, "-title")
|
|
142
139
|
}, this.shouldShowLink() ? render.link({
|
|
143
140
|
item: item
|
|
144
|
-
}) : item.label))))
|
|
141
|
+
}) : item.label))));
|
|
145
142
|
}
|
|
146
143
|
}]);
|
|
147
144
|
return ProgressTrackerStage;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { B300, N70 } from '@atlaskit/theme/colors';
|
|
2
|
-
import { REGULAR_FONT_WEIGHT, SEMI_BOLD_FONT_WEIGHT } from './constants';
|
|
3
2
|
export var getMarkerColor = function getMarkerColor(status) {
|
|
4
3
|
switch (status) {
|
|
5
4
|
case 'unvisited':
|
|
@@ -29,11 +28,11 @@ export var getTextColor = function getTextColor(status) {
|
|
|
29
28
|
export var getFontWeight = function getFontWeight(status) {
|
|
30
29
|
switch (status) {
|
|
31
30
|
case 'unvisited':
|
|
32
|
-
return
|
|
31
|
+
return "var(--ds-font-weight-regular, 400)";
|
|
33
32
|
case 'current':
|
|
34
33
|
case 'visited':
|
|
35
34
|
case 'disabled':
|
|
36
|
-
return
|
|
35
|
+
return "var(--ds-font-weight-semibold, 600)";
|
|
37
36
|
default:
|
|
38
37
|
return undefined;
|
|
39
38
|
}
|
|
@@ -12,6 +12,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
import { PureComponent } from 'react';
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
17
|
import { css, jsx } from '@emotion/react';
|
|
16
18
|
import { spacing } from './constants';
|
|
17
19
|
import { ANIMATION_EASE_OUT, LINEAR_TRANSITION_SPEED, TRANSITION_SPEED, varSpacing } from './internal/constants';
|
|
@@ -23,9 +25,10 @@ var containerStyles = css({
|
|
|
23
25
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
24
26
|
margin: '0 auto',
|
|
25
27
|
padding: "var(--ds-space-0, 0px)",
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
29
|
gap: "var(".concat(varSpacing, ")"),
|
|
28
30
|
listStyleType: 'none',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
29
32
|
'&&': {
|
|
30
33
|
marginBlockStart: "var(--ds-space-500, 40px)"
|
|
31
34
|
}
|
|
@@ -7,8 +7,6 @@ export declare const varTransitionDelay = "--ds--pt--td";
|
|
|
7
7
|
export declare const varTransitionEasing = "--ds--pt--te";
|
|
8
8
|
export declare const varMarkerColor = "--ds--pt--mc";
|
|
9
9
|
export declare const varBackgroundColor = "--ds--pt--bg";
|
|
10
|
-
export declare const REGULAR_FONT_WEIGHT: "var(--ds-font-weight-regular)";
|
|
11
|
-
export declare const SEMI_BOLD_FONT_WEIGHT: "var(--ds-font-weight-semibold)";
|
|
12
10
|
export declare const HALF_GRID_SIZE: "var(--ds-space-050)";
|
|
13
11
|
export declare const PROGRESS_BAR_HEIGHT: "var(--ds-space-100)";
|
|
14
|
-
export declare const LABEL_TOP_SPACING: "var(--ds-space-
|
|
12
|
+
export declare const LABEL_TOP_SPACING: "var(--ds-space-250)";
|
|
@@ -7,8 +7,6 @@ export declare const varTransitionDelay = "--ds--pt--td";
|
|
|
7
7
|
export declare const varTransitionEasing = "--ds--pt--te";
|
|
8
8
|
export declare const varMarkerColor = "--ds--pt--mc";
|
|
9
9
|
export declare const varBackgroundColor = "--ds--pt--bg";
|
|
10
|
-
export declare const REGULAR_FONT_WEIGHT: "var(--ds-font-weight-regular)";
|
|
11
|
-
export declare const SEMI_BOLD_FONT_WEIGHT: "var(--ds-font-weight-semibold)";
|
|
12
10
|
export declare const HALF_GRID_SIZE: "var(--ds-space-050)";
|
|
13
11
|
export declare const PROGRESS_BAR_HEIGHT: "var(--ds-space-100)";
|
|
14
|
-
export declare const LABEL_TOP_SPACING: "var(--ds-space-
|
|
12
|
+
export declare const LABEL_TOP_SPACING: "var(--ds-space-250)";
|
package/package.json
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
2
|
+
"name": "@atlaskit/progress-tracker",
|
|
3
|
+
"version": "8.6.3",
|
|
4
|
+
"description": "A progress tracker displays the steps and progress through a journey.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"atlaskit:src": "src/index.tsx",
|
|
17
|
+
"atlassian": {
|
|
18
|
+
"team": "Design System Team",
|
|
19
|
+
"releaseModel": "continuous",
|
|
20
|
+
"runReact18": true,
|
|
21
|
+
"productPushConsumption": [
|
|
22
|
+
"jira"
|
|
23
|
+
],
|
|
24
|
+
"website": {
|
|
25
|
+
"name": "Progress tracker",
|
|
26
|
+
"category": "Components"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@atlaskit/primitives": "^7.3.0",
|
|
31
|
+
"@atlaskit/theme": "^12.9.0",
|
|
32
|
+
"@atlaskit/tokens": "^1.50.0",
|
|
33
|
+
"@babel/runtime": "^7.0.0",
|
|
34
|
+
"@emotion/react": "^11.7.1",
|
|
35
|
+
"react-transition-group": "^4.4.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@af/accessibility-testing": "*",
|
|
42
|
+
"@af/visual-regression": "*",
|
|
43
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
44
|
+
"@atlaskit/ssr": "*",
|
|
45
|
+
"@atlaskit/visual-regression": "*",
|
|
46
|
+
"@testing-library/react": "^12.1.5",
|
|
47
|
+
"@testing-library/user-event": "^14.4.3",
|
|
48
|
+
"@types/react-transition-group": "^2.0.6",
|
|
49
|
+
"jest-in-case": "^1.0.2",
|
|
50
|
+
"react-dom": "^16.8.0",
|
|
51
|
+
"react-router-dom": "^4.2.2",
|
|
52
|
+
"react-test-renderer": "^16.8.0",
|
|
53
|
+
"typescript": "~5.4.2"
|
|
54
|
+
},
|
|
55
|
+
"techstack": {
|
|
56
|
+
"@atlassian/frontend": {
|
|
57
|
+
"import-structure": "atlassian-conventions"
|
|
58
|
+
},
|
|
59
|
+
"@repo/internal": {
|
|
60
|
+
"dom-events": "use-bind-event-listener",
|
|
61
|
+
"design-system": "v1",
|
|
62
|
+
"design-tokens": [
|
|
63
|
+
"color",
|
|
64
|
+
"spacing"
|
|
65
|
+
],
|
|
66
|
+
"styling": [
|
|
67
|
+
"static",
|
|
68
|
+
"emotion"
|
|
69
|
+
],
|
|
70
|
+
"analytics": "analytics-next",
|
|
71
|
+
"deprecation": "no-deprecated-imports",
|
|
72
|
+
"ui-components": "primitives"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"typesVersions": {
|
|
76
|
+
">=4.5 <4.9": {
|
|
77
|
+
"*": [
|
|
78
|
+
"dist/types-ts4.5/*",
|
|
79
|
+
"dist/types-ts4.5/index.d.ts"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"af:exports": {
|
|
84
|
+
"./constants": "./src/constants.tsx",
|
|
85
|
+
"./types": "./src/types.tsx",
|
|
86
|
+
".": "./src/index.tsx"
|
|
87
|
+
},
|
|
88
|
+
"homepage": "https://atlassian.design/components/progress-tracker/"
|
|
89
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/progress-tracker"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -22,57 +23,54 @@ import { PureComponent } from 'react';
|
|
|
22
23
|
|
|
23
24
|
// @public (undocumented)
|
|
24
25
|
interface LinkComponentProps {
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
// (undocumented)
|
|
27
|
+
item: Stage;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
// @public (undocumented)
|
|
30
|
-
export class ProgressTracker extends PureComponent<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
58
|
-
// (undocumented)
|
|
59
|
-
UNSAFE_componentWillReceiveProps(nextProps: ProgressTrackerProps): void;
|
|
31
|
+
export class ProgressTracker extends PureComponent<ProgressTrackerProps, State> {
|
|
32
|
+
// (undocumented)
|
|
33
|
+
static defaultProps: {
|
|
34
|
+
items: never[];
|
|
35
|
+
spacing: string;
|
|
36
|
+
render: {
|
|
37
|
+
link: ({ item }: LinkComponentProps) => jsx.JSX.Element;
|
|
38
|
+
};
|
|
39
|
+
animated: boolean;
|
|
40
|
+
label: string;
|
|
41
|
+
};
|
|
42
|
+
// (undocumented)
|
|
43
|
+
render(): jsx.JSX.Element;
|
|
44
|
+
// (undocumented)
|
|
45
|
+
state: {
|
|
46
|
+
prevStages: {
|
|
47
|
+
percentageComplete: number;
|
|
48
|
+
id: string;
|
|
49
|
+
label: string;
|
|
50
|
+
status: Status;
|
|
51
|
+
noLink?: boolean | undefined;
|
|
52
|
+
href?: string | undefined;
|
|
53
|
+
onClick?: (() => void) | undefined;
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
// (undocumented)
|
|
57
|
+
UNSAFE_componentWillReceiveProps(nextProps: ProgressTrackerProps): void;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
// @public (undocumented)
|
|
63
61
|
export interface ProgressTrackerProps {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
animated: boolean;
|
|
63
|
+
items: Stages;
|
|
64
|
+
label?: string;
|
|
65
|
+
render: ProgressTrackerStageRenderProp;
|
|
66
|
+
spacing: Spacing;
|
|
67
|
+
testId?: string;
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
// @public (undocumented)
|
|
73
71
|
interface ProgressTrackerStageRenderProp {
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
// (undocumented)
|
|
73
|
+
link: (props: LinkComponentProps) => JSX.Element;
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
// @public (undocumented)
|
|
@@ -80,27 +78,27 @@ type Spacing = keyof typeof spacing;
|
|
|
80
78
|
|
|
81
79
|
// @public
|
|
82
80
|
const spacing: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
readonly comfortable: 'var(--ds-space-500)';
|
|
82
|
+
readonly cosy: 'var(--ds-space-200)';
|
|
83
|
+
readonly compact: 'var(--ds-space-050)';
|
|
86
84
|
};
|
|
87
85
|
|
|
88
86
|
// @public (undocumented)
|
|
89
87
|
export interface Stage {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
88
|
+
// (undocumented)
|
|
89
|
+
href?: string;
|
|
90
|
+
// (undocumented)
|
|
91
|
+
id: string;
|
|
92
|
+
// (undocumented)
|
|
93
|
+
label: string;
|
|
94
|
+
// (undocumented)
|
|
95
|
+
noLink?: boolean;
|
|
96
|
+
// (undocumented)
|
|
97
|
+
onClick?: () => void;
|
|
98
|
+
// (undocumented)
|
|
99
|
+
percentageComplete: number;
|
|
100
|
+
// (undocumented)
|
|
101
|
+
status: Status;
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
// @public (undocumented)
|
|
@@ -108,8 +106,8 @@ export type Stages = Stage[];
|
|
|
108
106
|
|
|
109
107
|
// @public (undocumented)
|
|
110
108
|
interface State {
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
// (undocumented)
|
|
110
|
+
prevStages: Stages;
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
// @public (undocumented)
|
|
@@ -126,7 +124,7 @@ type Status = 'current' | 'disabled' | 'unvisited' | 'visited';
|
|
|
126
124
|
|
|
127
125
|
```json
|
|
128
126
|
{
|
|
129
|
-
|
|
127
|
+
"react": "^16.8.0"
|
|
130
128
|
}
|
|
131
129
|
```
|
|
132
130
|
|