@atlaskit/progress-tracker 8.8.2 → 8.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/cjs/internal/stage.js +18 -7
- package/dist/cjs/internal/utils.js +1 -1
- package/dist/cjs/progress-tracker.js +1 -1
- package/dist/es2019/internal/stage.js +18 -7
- package/dist/es2019/internal/utils.js +1 -1
- package/dist/esm/internal/stage.js +19 -8
- package/dist/esm/internal/utils.js +1 -1
- package/dist/esm/progress-tracker.js +1 -1
- package/dist/types/internal/stage.d.ts +3 -0
- package/dist/types/internal/utils.d.ts +1 -1
- package/dist/types-ts4.5/internal/stage.d.ts +3 -0
- package/dist/types-ts4.5/internal/utils.d.ts +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/progress-tracker
|
|
2
2
|
|
|
3
|
+
## 8.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#142762](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142762)
|
|
8
|
+
[`2bbc16219edd2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2bbc16219edd2) -
|
|
9
|
+
[ux] Disabled, visited and current step indicator font weight change from semibold to bold.
|
|
10
|
+
|
|
11
|
+
## 8.9.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`2d1da097bd763`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d1da097bd763) -
|
|
16
|
+
DSP-20687 removing usage of findDOMNode in react-transition-group behind ff
|
|
17
|
+
|
|
3
18
|
## 8.8.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
11
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
@@ -15,6 +16,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
16
|
var _react = require("react");
|
|
16
17
|
var _react2 = require("@emotion/react");
|
|
17
18
|
var _reactTransitionGroup = require("react-transition-group");
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
20
|
var _primitives = require("@atlaskit/primitives");
|
|
19
21
|
var _bar = _interopRequireDefault(require("./bar"));
|
|
20
22
|
var _constants = require("./constants");
|
|
@@ -22,7 +24,7 @@ var _marker = _interopRequireDefault(require("./marker"));
|
|
|
22
24
|
var _utils = require("./utils");
|
|
23
25
|
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
26
|
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
|
-
function _createSuper(
|
|
27
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
26
28
|
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 */ /**
|
|
27
29
|
* @jsxRuntime classic
|
|
28
30
|
* @jsx jsx
|
|
@@ -58,6 +60,9 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
58
60
|
var _this;
|
|
59
61
|
(0, _classCallCheck2.default)(this, ProgressTrackerStage);
|
|
60
62
|
_this = _super.call(this, props);
|
|
63
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "nodeRefMarker", /*#__PURE__*/(0, _react.createRef)());
|
|
64
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "nodeRefBar", /*#__PURE__*/(0, _react.createRef)());
|
|
65
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "nodeRefTitle", /*#__PURE__*/(0, _react.createRef)());
|
|
61
66
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onEntered", function () {
|
|
62
67
|
_this.setState({
|
|
63
68
|
transitioning: false,
|
|
@@ -113,30 +118,36 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
113
118
|
"aria-current": ariaCurrent
|
|
114
119
|
}, (0, _react2.jsx)(_primitives.Box, {
|
|
115
120
|
xcss: listItemContentStyles
|
|
116
|
-
}, (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
121
|
+
}, (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, (0, _extends2.default)({
|
|
117
122
|
appear: true,
|
|
118
123
|
in: this.state.transitioning,
|
|
119
124
|
onEntered: this.onEntered,
|
|
120
125
|
timeout: transitionDelay + transitionSpeed,
|
|
121
126
|
classNames: "fade"
|
|
122
|
-
}, (0,
|
|
127
|
+
}, (0, _platformFeatureFlags.fg)('platform-design-system-dsp-20687-transition-group') && {
|
|
128
|
+
nodeRef: this.nodeRefMarker
|
|
129
|
+
}), (0, _react2.jsx)(_marker.default, {
|
|
123
130
|
testId: testId && "".concat(testId, "-marker")
|
|
124
|
-
})), (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
131
|
+
})), (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, (0, _extends2.default)({
|
|
125
132
|
appear: true,
|
|
126
133
|
in: this.state.transitioning,
|
|
127
134
|
onEntered: this.onEntered,
|
|
128
135
|
timeout: transitionDelay + transitionSpeed,
|
|
129
136
|
classNames: "fade"
|
|
130
|
-
}, (0,
|
|
137
|
+
}, (0, _platformFeatureFlags.fg)('platform-design-system-dsp-20687-transition-group') && {
|
|
138
|
+
nodeRef: this.nodeRefBar
|
|
139
|
+
}), (0, _react2.jsx)(_bar.default, {
|
|
131
140
|
testId: testId && "".concat(testId, "-bar"),
|
|
132
141
|
percentageComplete: item.percentageComplete
|
|
133
|
-
})), (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
142
|
+
})), (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, (0, _extends2.default)({
|
|
134
143
|
appear: true,
|
|
135
144
|
in: this.state.transitioning,
|
|
136
145
|
onEntered: this.onEntered,
|
|
137
146
|
timeout: transitionDelay + transitionSpeed,
|
|
138
147
|
classNames: "fade"
|
|
139
|
-
}, (0,
|
|
148
|
+
}, (0, _platformFeatureFlags.fg)('platform-design-system-dsp-20687-transition-group') && {
|
|
149
|
+
nodeRef: this.nodeRefTitle
|
|
150
|
+
}), (0, _react2.jsx)("div", {
|
|
140
151
|
css: titleStyles,
|
|
141
152
|
style: {
|
|
142
153
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -38,7 +38,7 @@ var getFontWeight = exports.getFontWeight = function getFontWeight(status) {
|
|
|
38
38
|
case 'current':
|
|
39
39
|
case 'visited':
|
|
40
40
|
case 'disabled':
|
|
41
|
-
return "var(--ds-font-weight-
|
|
41
|
+
return "var(--ds-font-weight-bold, 700)";
|
|
42
42
|
default:
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
@@ -20,7 +20,7 @@ var _link = _interopRequireDefault(require("./internal/link"));
|
|
|
20
20
|
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
|
-
function _createSuper(
|
|
23
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
24
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 */ /**
|
|
25
25
|
* @jsxRuntime classic
|
|
26
26
|
* @jsx jsx
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
3
4
|
/**
|
|
4
5
|
* @jsxRuntime classic
|
|
5
6
|
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
import { PureComponent } from 'react';
|
|
8
|
+
import { createRef, PureComponent } from 'react';
|
|
8
9
|
|
|
9
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
import { css, jsx } from '@emotion/react';
|
|
11
12
|
import { CSSTransition } from 'react-transition-group';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
14
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
13
15
|
import ProgressBar from './bar';
|
|
14
16
|
import { LABEL_TOP_SPACING, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
@@ -41,6 +43,9 @@ const titleStyles = css({
|
|
|
41
43
|
export default class ProgressTrackerStage extends PureComponent {
|
|
42
44
|
constructor(props) {
|
|
43
45
|
super(props);
|
|
46
|
+
_defineProperty(this, "nodeRefMarker", /*#__PURE__*/createRef());
|
|
47
|
+
_defineProperty(this, "nodeRefBar", /*#__PURE__*/createRef());
|
|
48
|
+
_defineProperty(this, "nodeRefTitle", /*#__PURE__*/createRef());
|
|
44
49
|
_defineProperty(this, "onEntered", () => {
|
|
45
50
|
this.setState({
|
|
46
51
|
transitioning: false,
|
|
@@ -96,30 +101,36 @@ export default class ProgressTrackerStage extends PureComponent {
|
|
|
96
101
|
"aria-current": ariaCurrent
|
|
97
102
|
}, jsx(Box, {
|
|
98
103
|
xcss: listItemContentStyles
|
|
99
|
-
}, jsx(CSSTransition, {
|
|
104
|
+
}, jsx(CSSTransition, _extends({
|
|
100
105
|
appear: true,
|
|
101
106
|
in: this.state.transitioning,
|
|
102
107
|
onEntered: this.onEntered,
|
|
103
108
|
timeout: transitionDelay + transitionSpeed,
|
|
104
109
|
classNames: "fade"
|
|
105
|
-
},
|
|
110
|
+
}, fg('platform-design-system-dsp-20687-transition-group') && {
|
|
111
|
+
nodeRef: this.nodeRefMarker
|
|
112
|
+
}), jsx(ProgressMarker, {
|
|
106
113
|
testId: testId && `${testId}-marker`
|
|
107
|
-
})), jsx(CSSTransition, {
|
|
114
|
+
})), jsx(CSSTransition, _extends({
|
|
108
115
|
appear: true,
|
|
109
116
|
in: this.state.transitioning,
|
|
110
117
|
onEntered: this.onEntered,
|
|
111
118
|
timeout: transitionDelay + transitionSpeed,
|
|
112
119
|
classNames: "fade"
|
|
113
|
-
},
|
|
120
|
+
}, fg('platform-design-system-dsp-20687-transition-group') && {
|
|
121
|
+
nodeRef: this.nodeRefBar
|
|
122
|
+
}), jsx(ProgressBar, {
|
|
114
123
|
testId: testId && `${testId}-bar`,
|
|
115
124
|
percentageComplete: item.percentageComplete
|
|
116
|
-
})), jsx(CSSTransition, {
|
|
125
|
+
})), jsx(CSSTransition, _extends({
|
|
117
126
|
appear: true,
|
|
118
127
|
in: this.state.transitioning,
|
|
119
128
|
onEntered: this.onEntered,
|
|
120
129
|
timeout: transitionDelay + transitionSpeed,
|
|
121
130
|
classNames: "fade"
|
|
122
|
-
},
|
|
131
|
+
}, fg('platform-design-system-dsp-20687-transition-group') && {
|
|
132
|
+
nodeRef: this.nodeRefTitle
|
|
133
|
+
}), jsx("div", {
|
|
123
134
|
css: titleStyles,
|
|
124
135
|
style: {
|
|
125
136
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
4
|
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
@@ -7,18 +8,19 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
9
|
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; }
|
|
9
10
|
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) { _defineProperty(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; }
|
|
10
|
-
function _createSuper(
|
|
11
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
13
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
13
14
|
/**
|
|
14
15
|
* @jsxRuntime classic
|
|
15
16
|
* @jsx jsx
|
|
16
17
|
*/
|
|
17
|
-
import { PureComponent } from 'react';
|
|
18
|
+
import { createRef, PureComponent } from 'react';
|
|
18
19
|
|
|
19
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
21
|
import { css, jsx } from '@emotion/react';
|
|
21
22
|
import { CSSTransition } from 'react-transition-group';
|
|
23
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
24
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
23
25
|
import ProgressBar from './bar';
|
|
24
26
|
import { LABEL_TOP_SPACING, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
@@ -55,6 +57,9 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
57
|
var _this;
|
|
56
58
|
_classCallCheck(this, ProgressTrackerStage);
|
|
57
59
|
_this = _super.call(this, props);
|
|
60
|
+
_defineProperty(_assertThisInitialized(_this), "nodeRefMarker", /*#__PURE__*/createRef());
|
|
61
|
+
_defineProperty(_assertThisInitialized(_this), "nodeRefBar", /*#__PURE__*/createRef());
|
|
62
|
+
_defineProperty(_assertThisInitialized(_this), "nodeRefTitle", /*#__PURE__*/createRef());
|
|
58
63
|
_defineProperty(_assertThisInitialized(_this), "onEntered", function () {
|
|
59
64
|
_this.setState({
|
|
60
65
|
transitioning: false,
|
|
@@ -110,30 +115,36 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
|
|
|
110
115
|
"aria-current": ariaCurrent
|
|
111
116
|
}, jsx(Box, {
|
|
112
117
|
xcss: listItemContentStyles
|
|
113
|
-
}, jsx(CSSTransition, {
|
|
118
|
+
}, jsx(CSSTransition, _extends({
|
|
114
119
|
appear: true,
|
|
115
120
|
in: this.state.transitioning,
|
|
116
121
|
onEntered: this.onEntered,
|
|
117
122
|
timeout: transitionDelay + transitionSpeed,
|
|
118
123
|
classNames: "fade"
|
|
119
|
-
},
|
|
124
|
+
}, fg('platform-design-system-dsp-20687-transition-group') && {
|
|
125
|
+
nodeRef: this.nodeRefMarker
|
|
126
|
+
}), jsx(ProgressMarker, {
|
|
120
127
|
testId: testId && "".concat(testId, "-marker")
|
|
121
|
-
})), jsx(CSSTransition, {
|
|
128
|
+
})), jsx(CSSTransition, _extends({
|
|
122
129
|
appear: true,
|
|
123
130
|
in: this.state.transitioning,
|
|
124
131
|
onEntered: this.onEntered,
|
|
125
132
|
timeout: transitionDelay + transitionSpeed,
|
|
126
133
|
classNames: "fade"
|
|
127
|
-
},
|
|
134
|
+
}, fg('platform-design-system-dsp-20687-transition-group') && {
|
|
135
|
+
nodeRef: this.nodeRefBar
|
|
136
|
+
}), jsx(ProgressBar, {
|
|
128
137
|
testId: testId && "".concat(testId, "-bar"),
|
|
129
138
|
percentageComplete: item.percentageComplete
|
|
130
|
-
})), jsx(CSSTransition, {
|
|
139
|
+
})), jsx(CSSTransition, _extends({
|
|
131
140
|
appear: true,
|
|
132
141
|
in: this.state.transitioning,
|
|
133
142
|
onEntered: this.onEntered,
|
|
134
143
|
timeout: transitionDelay + transitionSpeed,
|
|
135
144
|
classNames: "fade"
|
|
136
|
-
},
|
|
145
|
+
}, fg('platform-design-system-dsp-20687-transition-group') && {
|
|
146
|
+
nodeRef: this.nodeRefTitle
|
|
147
|
+
}), jsx("div", {
|
|
137
148
|
css: titleStyles,
|
|
138
149
|
style: {
|
|
139
150
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
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; }
|
|
9
9
|
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) { _defineProperty(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; }
|
|
10
|
-
function _createSuper(
|
|
10
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
13
13
|
/**
|
|
@@ -12,6 +12,9 @@ interface State {
|
|
|
12
12
|
}
|
|
13
13
|
export type { ProgressTrackerStageProps };
|
|
14
14
|
export default class ProgressTrackerStage extends PureComponent<ProgressTrackerStageProps, State> {
|
|
15
|
+
nodeRefMarker: import("react").RefObject<HTMLElement>;
|
|
16
|
+
nodeRefBar: import("react").RefObject<HTMLElement>;
|
|
17
|
+
nodeRefTitle: import("react").RefObject<HTMLElement>;
|
|
15
18
|
constructor(props: ProgressTrackerStageProps);
|
|
16
19
|
UNSAFE_componentWillMount(): void;
|
|
17
20
|
UNSAFE_componentWillReceiveProps(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Status } from '../types';
|
|
2
2
|
export declare const getMarkerColor: (status: Status) => "var(--ds-icon-subtle)" | "var(--ds-icon-brand)" | undefined;
|
|
3
3
|
export declare const getTextColor: (status: Status) => "var(--ds-text)" | "var(--ds-text-subtlest)" | "var(--ds-text-brand)" | "var(--ds-text-disabled)" | undefined;
|
|
4
|
-
export declare const getFontWeight: (status: Status) => "var(--ds-font-weight-regular)" | "var(--ds-font-weight-
|
|
4
|
+
export declare const getFontWeight: (status: Status) => "var(--ds-font-weight-regular)" | "var(--ds-font-weight-bold)" | undefined;
|
|
@@ -12,6 +12,9 @@ interface State {
|
|
|
12
12
|
}
|
|
13
13
|
export type { ProgressTrackerStageProps };
|
|
14
14
|
export default class ProgressTrackerStage extends PureComponent<ProgressTrackerStageProps, State> {
|
|
15
|
+
nodeRefMarker: import("react").RefObject<HTMLElement>;
|
|
16
|
+
nodeRefBar: import("react").RefObject<HTMLElement>;
|
|
17
|
+
nodeRefTitle: import("react").RefObject<HTMLElement>;
|
|
15
18
|
constructor(props: ProgressTrackerStageProps);
|
|
16
19
|
UNSAFE_componentWillMount(): void;
|
|
17
20
|
UNSAFE_componentWillReceiveProps(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Status } from '../types';
|
|
2
2
|
export declare const getMarkerColor: (status: Status) => "var(--ds-icon-subtle)" | "var(--ds-icon-brand)" | undefined;
|
|
3
3
|
export declare const getTextColor: (status: Status) => "var(--ds-text)" | "var(--ds-text-subtlest)" | "var(--ds-text-brand)" | "var(--ds-text-disabled)" | undefined;
|
|
4
|
-
export declare const getFontWeight: (status: Status) => "var(--ds-font-weight-regular)" | "var(--ds-font-weight-
|
|
4
|
+
export declare const getFontWeight: (status: Status) => "var(--ds-font-weight-regular)" | "var(--ds-font-weight-bold)" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/progress-tracker",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.9.1",
|
|
4
4
|
"description": "A progress tracker displays the steps and progress through a journey.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
27
27
|
"@atlaskit/primitives": "^12.1.0",
|
|
28
28
|
"@atlaskit/theme": "^13.0.0",
|
|
29
|
-
"@atlaskit/tokens": "^1.
|
|
29
|
+
"@atlaskit/tokens": "^1.60.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
31
31
|
"@emotion/react": "^11.7.1",
|
|
32
32
|
"react-transition-group": "^4.4.1"
|
|
@@ -85,6 +85,9 @@
|
|
|
85
85
|
"platform-feature-flags": {
|
|
86
86
|
"platform-progress-tracker-functional-facade": {
|
|
87
87
|
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"platform-design-system-dsp-20687-transition-group": {
|
|
90
|
+
"type": "boolean"
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
93
|
}
|