@atlaskit/progress-tracker 8.11.1 → 9.0.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 +27 -0
- package/dist/cjs/internal/bar.compiled.css +9 -0
- package/dist/cjs/internal/bar.js +19 -32
- package/dist/cjs/internal/link-new.js +4 -4
- package/dist/cjs/internal/link.compiled.css +2 -0
- package/dist/cjs/internal/link.js +14 -15
- package/dist/cjs/internal/marker.compiled.css +13 -0
- package/dist/cjs/internal/marker.js +16 -54
- package/dist/cjs/internal/stage.compiled.css +17 -0
- package/dist/cjs/internal/stage.js +67 -75
- package/dist/cjs/progress-tracker.compiled.css +10 -0
- package/dist/cjs/progress-tracker.js +24 -31
- package/dist/es2019/internal/bar.compiled.css +9 -0
- package/dist/es2019/internal/bar.js +13 -30
- package/dist/es2019/internal/link-new.js +3 -3
- package/dist/es2019/internal/link.compiled.css +2 -0
- package/dist/es2019/internal/link.js +8 -14
- package/dist/es2019/internal/marker.compiled.css +13 -0
- package/dist/es2019/internal/marker.js +7 -49
- package/dist/es2019/internal/stage.compiled.css +17 -0
- package/dist/es2019/internal/stage.js +55 -66
- package/dist/es2019/progress-tracker.compiled.css +10 -0
- package/dist/es2019/progress-tracker.js +18 -31
- package/dist/esm/internal/bar.compiled.css +9 -0
- package/dist/esm/internal/bar.js +16 -31
- package/dist/esm/internal/link-new.js +3 -3
- package/dist/esm/internal/link.compiled.css +2 -0
- package/dist/esm/internal/link.js +11 -14
- package/dist/esm/internal/marker.compiled.css +13 -0
- package/dist/esm/internal/marker.js +12 -52
- package/dist/esm/internal/stage.compiled.css +17 -0
- package/dist/esm/internal/stage.js +60 -75
- package/dist/esm/progress-tracker.compiled.css +10 -0
- package/dist/esm/progress-tracker.js +19 -33
- package/dist/types/internal/bar.d.ts +2 -6
- package/dist/types/internal/stage.d.ts +1 -2
- package/dist/types/progress-tracker.d.ts +2 -2
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/internal/bar.d.ts +2 -6
- package/dist/types-ts4.5/internal/stage.d.ts +1 -2
- package/dist/types-ts4.5/progress-tracker.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +3 -7
- package/constants/package.json +0 -17
- package/dist/cjs/constants.js +0 -14
- package/dist/cjs/internal/constants.js +0 -21
- package/dist/es2019/constants.js +0 -8
- package/dist/es2019/internal/constants.js +0 -15
- package/dist/esm/constants.js +0 -8
- package/dist/esm/internal/constants.js +0 -15
- package/dist/types/constants.d.ts +0 -9
- package/dist/types/internal/constants.d.ts +0 -12
- package/dist/types-ts4.5/constants.d.ts +0 -9
- package/dist/types-ts4.5/internal/constants.d.ts +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/progress-tracker
|
|
2
2
|
|
|
3
|
+
## 9.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#180713](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/180713)
|
|
8
|
+
[`103e97b52f101`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/103e97b52f101) -
|
|
9
|
+
Removes feature flag removing internal use of the legacy NodeResolver package in favor of react
|
|
10
|
+
refs
|
|
11
|
+
|
|
12
|
+
## 9.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- [#171836](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171836)
|
|
17
|
+
[`30eff06f3753e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/30eff06f3753e) -
|
|
18
|
+
Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
|
|
19
|
+
the rest of the Atlaskit techstack, and support React 18 Streaming SSR.
|
|
20
|
+
|
|
21
|
+
Please note, in order to use this version of `@atlaskit/progress-tracker`, you will need to ensure
|
|
22
|
+
that your bundler is configured to handle `.css` imports correctly. Most bundlers come with
|
|
23
|
+
built-in support for `.css` imports, so you may not need to do anything. If you are using a
|
|
24
|
+
different bundler, please refer to the documentation for that bundler to understand how to handle
|
|
25
|
+
`.css` imports.
|
|
26
|
+
|
|
27
|
+
For more information on the migration, please refer to
|
|
28
|
+
[RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953).
|
|
29
|
+
|
|
3
30
|
## 8.11.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
._v564d86a{transition:width var(--ds--pt--ts) var(--ds--pt--te)}._1e021ssb{inset-inline-start:50%}
|
|
3
|
+
._1einu2gc{border-end-end-radius:var(--ds-space-100,8px)}
|
|
4
|
+
._1lww1oqq{transition-delay:var(--ds--pt--td)}
|
|
5
|
+
._4t3iu2gc{height:var(--ds-space-100,8px)}
|
|
6
|
+
._5fbcu2gc{border-start-end-radius:var(--ds-space-100,8px)}
|
|
7
|
+
._bfhk1j1x{background-color:var(--_vcj3ew)}
|
|
8
|
+
._kqswstnw{position:absolute}
|
|
9
|
+
._t9ec5ihf{transform:var(--_22xnfg)}
|
package/dist/cjs/internal/bar.js
CHANGED
|
@@ -1,36 +1,23 @@
|
|
|
1
|
+
/* bar.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
9
|
+
require("./bar.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var progressBarStyles = (0, _react.css)({
|
|
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
|
|
19
|
-
height: _constants2.PROGRESS_BAR_HEIGHT,
|
|
20
|
-
position: 'absolute',
|
|
21
|
-
backgroundColor: "var(--ds-background-brand-bold, ".concat(_colors.B300, ")"),
|
|
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
|
|
23
|
-
borderEndEndRadius: _constants2.PROGRESS_BAR_HEIGHT,
|
|
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
|
|
25
|
-
borderStartEndRadius: _constants2.PROGRESS_BAR_HEIGHT,
|
|
26
|
-
insetInlineStart: '50%',
|
|
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
|
|
28
|
-
transform: "translate(0, calc(-1 * ".concat(_constants2.LABEL_TOP_SPACING, "))"),
|
|
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
|
|
30
|
-
transition: "width var(".concat(_constants2.varTransitionSpeed, ") var(").concat(_constants2.varTransitionEasing, ")"),
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
-
transitionDelay: "var(".concat(_constants2.varTransitionDelay, ")")
|
|
33
|
-
});
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var spacing = {
|
|
16
|
+
comfortable: "var(--ds-space-500, 40px)",
|
|
17
|
+
cosy: "var(--ds-space-200, 16px)",
|
|
18
|
+
compact: "var(--ds-space-050, 4px)"
|
|
19
|
+
};
|
|
20
|
+
var progressBarStyles = null;
|
|
34
21
|
|
|
35
22
|
/**
|
|
36
23
|
* __Progress bar__
|
|
@@ -41,14 +28,14 @@ var progressBarStyles = (0, _react.css)({
|
|
|
41
28
|
var ProgressBar = function ProgressBar(_ref) {
|
|
42
29
|
var percentageComplete = _ref.percentageComplete,
|
|
43
30
|
testId = _ref.testId;
|
|
44
|
-
return
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
45
32
|
"data-testid": testId,
|
|
33
|
+
className: (0, _runtime.ax)(["_4t3iu2gc _kqswstnw _bfhk1j1x _1einu2gc _5fbcu2gc _1e021ssb _t9ec5ihf _v564d86a _1lww1oqq"]),
|
|
46
34
|
style: {
|
|
47
|
-
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
css: progressBarStyles
|
|
35
|
+
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100, " * calc(var(--ds--pt--sp, ").concat(spacing.cosy, ") + ", "var(--ds-space-050, 4px)", "))"),
|
|
36
|
+
"--_vcj3ew": (0, _runtime.ix)("var(--ds-background-brand-bold, ".concat(_colors.B300, ")")),
|
|
37
|
+
"--_22xnfg": (0, _runtime.ix)("translate(0, calc(-1 * ".concat("var(--ds-space-250, 20px)", "))"))
|
|
38
|
+
}
|
|
52
39
|
});
|
|
53
40
|
};
|
|
54
41
|
var _default = exports.default = ProgressBar;
|
|
@@ -9,9 +9,9 @@ exports.default = void 0;
|
|
|
9
9
|
require("./link-new.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
13
|
var styles = {
|
|
14
|
-
|
|
14
|
+
anchor: "_4bfu18uv _1hmsglyw _ajmmnqa1 _syaz1fxt _11c81kw7 _9oik18uv _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -22,8 +22,8 @@ var Link = function Link(_ref) {
|
|
|
22
22
|
onClick = _ref.onClick,
|
|
23
23
|
label = _ref.label,
|
|
24
24
|
testId = _ref.testId;
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
26
|
-
xcss: styles.
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Anchor, {
|
|
26
|
+
xcss: styles.anchor
|
|
27
27
|
// TODO: We should not be rendering empty hrefs on anchors. This should be plain text or a button/pressable if `onClick` is provided.
|
|
28
28
|
,
|
|
29
29
|
href: href || '',
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
+
/* link.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
9
|
+
require("./link.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
var linkStyles = (0, _react.css)({
|
|
17
|
-
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
18
|
-
cursor: 'pointer'
|
|
19
|
-
});
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var linkStyles = null;
|
|
20
16
|
|
|
21
17
|
/**
|
|
22
18
|
* __Progress tracker link__
|
|
@@ -26,11 +22,14 @@ var Link = function Link(_ref) {
|
|
|
26
22
|
onClick = _ref.onClick,
|
|
27
23
|
label = _ref.label,
|
|
28
24
|
testId = _ref.testId;
|
|
29
|
-
return
|
|
30
|
-
css: linkStyles,
|
|
25
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
31
26
|
href: href,
|
|
32
27
|
onClick: onClick,
|
|
33
|
-
"data-testid": testId
|
|
28
|
+
"data-testid": testId,
|
|
29
|
+
className: (0, _runtime.ax)(["_syaz1o8f _80omtlke"]),
|
|
30
|
+
style: {
|
|
31
|
+
"--_ggxzyp": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N800, ")"))
|
|
32
|
+
}
|
|
34
33
|
}, label);
|
|
35
34
|
};
|
|
36
35
|
var _default = exports.default = Link;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkou2gc{border-radius:var(--ds-space-100,8px)}
|
|
3
|
+
._v5645rui{transition:opacity var(--ds--pt--ts) var(--ds--pt--te),background-color var(--ds--pt--ts) var(--ds--pt--te)}._1190pbrw.fade-enter{background-color:var(--ds--pt--mc)}
|
|
4
|
+
._1bsbu2gc{width:var(--ds-space-100,8px)}
|
|
5
|
+
._1e021ssb{inset-inline-start:50%}
|
|
6
|
+
._1ez2kb7n.fade-appear.fade-appear-active{opacity:1}
|
|
7
|
+
._1ia8r3ku.fade-enter.fade-enter-active{background-color:var(--ds--pt--bg)}
|
|
8
|
+
._1lww1oqq{transition-delay:var(--ds--pt--td)}
|
|
9
|
+
._1uuw17dr.fade-appear{opacity:.01}
|
|
10
|
+
._4t3iu2gc{height:var(--ds-space-100,8px)}
|
|
11
|
+
._bfhkr3ku{background-color:var(--ds--pt--bg)}
|
|
12
|
+
._kqswstnw{position:absolute}
|
|
13
|
+
._t9ec17h2{transform:var(--_nsjg4d)}
|
|
@@ -1,55 +1,18 @@
|
|
|
1
|
+
/* marker.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
1
3
|
"use strict";
|
|
2
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
6
|
Object.defineProperty(exports, "__esModule", {
|
|
4
7
|
value: true
|
|
5
8
|
});
|
|
6
9
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
|
|
17
|
-
var progressMarkerStyles = (0, _react.css)({
|
|
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
|
|
19
|
-
width: _constants.PROGRESS_BAR_HEIGHT,
|
|
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
|
|
21
|
-
height: _constants.PROGRESS_BAR_HEIGHT,
|
|
22
|
-
position: 'absolute',
|
|
23
|
-
// 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
|
-
backgroundColor: "var(".concat(_constants.varBackgroundColor, ")"),
|
|
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
|
|
26
|
-
borderRadius: _constants.PROGRESS_BAR_HEIGHT,
|
|
27
|
-
insetInlineStart: '50%',
|
|
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
|
|
29
|
-
transform: "translate(-50%, calc(-1 * ".concat(_constants.LABEL_TOP_SPACING, "))"),
|
|
30
|
-
// 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
|
-
transition: "opacity var(".concat(_constants.varTransitionSpeed, ") var(").concat(_constants.varTransitionEasing, "), background-color var(").concat(_constants.varTransitionSpeed, ") var(").concat(_constants.varTransitionEasing, ")"),
|
|
32
|
-
// 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
|
-
transitionDelay: "var(".concat(_constants.varTransitionDelay, ")"),
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
|
-
'&.fade-appear': {
|
|
36
|
-
opacity: 0.01
|
|
37
|
-
},
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
|
-
'&.fade-appear.fade-appear-active': {
|
|
40
|
-
opacity: 1
|
|
41
|
-
},
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
|
-
'&.fade-enter': {
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
-
backgroundColor: "var(".concat(_constants.varMarkerColor, ")")
|
|
46
|
-
},
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
48
|
-
'&.fade-enter.fade-enter-active': {
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
|
-
backgroundColor: "var(".concat(_constants.varBackgroundColor, ")")
|
|
51
|
-
}
|
|
52
|
-
});
|
|
10
|
+
require("./marker.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var progressMarkerStyles = null;
|
|
53
16
|
|
|
54
17
|
/**
|
|
55
18
|
* __Progress marker__
|
|
@@ -58,13 +21,12 @@ var progressMarkerStyles = (0, _react.css)({
|
|
|
58
21
|
*/
|
|
59
22
|
var ProgressMarker = function ProgressMarker(_ref) {
|
|
60
23
|
var testId = _ref.testId;
|
|
61
|
-
return (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
);
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
"data-testid": testId,
|
|
26
|
+
className: (0, _runtime.ax)(["_1bsbu2gc _4t3iu2gc _kqswstnw _bfhkr3ku _2rkou2gc _1e021ssb _t9ec17h2 _v5645rui _1lww1oqq _1uuw17dr _1ez2kb7n _1190pbrw _1ia8r3ku"]),
|
|
27
|
+
style: {
|
|
28
|
+
"--_nsjg4d": (0, _runtime.ix)("translate(-50%, calc(-1 * ".concat("var(--ds-space-250, 20px)", "))"))
|
|
29
|
+
}
|
|
30
|
+
});
|
|
69
31
|
};
|
|
70
32
|
var _default = exports.default = ProgressMarker;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
._11c81oud{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18s8ze3t{margin:var(--ds-space-0,0)}
|
|
3
|
+
._1t9yph28.fade-appear.fade-appear-active{transition:opacity var(--ds--pt--ts) cubic-bezier(.2,0,0,1)}
|
|
4
|
+
._v564ph28{transition:opacity var(--ds--pt--ts) cubic-bezier(.2,0,0,1)}
|
|
5
|
+
._1bsb1osq{width:100%}
|
|
6
|
+
._1ez2kb7n.fade-appear.fade-appear-active{opacity:1}
|
|
7
|
+
._1i4q1hna{overflow-wrap:break-word}
|
|
8
|
+
._1pfhv47k{margin-block-start:var(--ds-space-250,20px)}
|
|
9
|
+
._1uuw17dr.fade-appear{opacity:.01}
|
|
10
|
+
._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
|
|
11
|
+
._k48pmoej{font-weight:var(--ds-font-weight-bold,700)}
|
|
12
|
+
._kqswh2mm{position:relative}
|
|
13
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
14
|
+
._syaz1e6v{color:var(--ds-text-brand,#0c66e4)}
|
|
15
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
16
|
+
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
17
|
+
._y3gn1h6o{text-align:center}
|
|
@@ -1,83 +1,86 @@
|
|
|
1
|
+
/* stage.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
8
|
-
|
|
10
|
+
require("./stage.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
14
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
15
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
16
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
17
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
18
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
19
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
-
var _react = require("react");
|
|
17
|
-
var _react2 = require("@emotion/react");
|
|
18
20
|
var _reactTransitionGroup = require("react-transition-group");
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
21
23
|
var _bar = _interopRequireDefault(require("./bar"));
|
|
22
|
-
var _constants = require("./constants");
|
|
23
24
|
var _marker = _interopRequireDefault(require("./marker"));
|
|
24
|
-
|
|
25
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
27
|
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; }
|
|
26
28
|
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; }
|
|
27
|
-
function
|
|
28
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
30
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
31
|
+
var styles = {
|
|
32
|
+
listItemContent: "_1bsb1osq _kqswh2mm"
|
|
33
|
+
};
|
|
34
|
+
var textColor = {
|
|
35
|
+
unvisited: "_syaz131l",
|
|
36
|
+
current: "_syaz1e6v",
|
|
37
|
+
visited: "_syaz1fxt",
|
|
38
|
+
disabled: "_syaz1lh4"
|
|
39
|
+
};
|
|
40
|
+
var fontWeight = {
|
|
41
|
+
unvisited: "_k48pi7a9",
|
|
42
|
+
current: "_k48pmoej",
|
|
43
|
+
visited: "_k48pmoej",
|
|
44
|
+
disabled: "_k48pmoej"
|
|
45
|
+
};
|
|
46
|
+
var getMarkerColor = function getMarkerColor(status) {
|
|
47
|
+
switch (status) {
|
|
48
|
+
case 'unvisited':
|
|
49
|
+
return "var(--ds-icon-subtle, ".concat(_colors.N70, ")");
|
|
50
|
+
case 'current':
|
|
51
|
+
case 'visited':
|
|
52
|
+
case 'disabled':
|
|
53
|
+
return "var(--ds-icon-brand, ".concat(_colors.B300, ")");
|
|
54
|
+
default:
|
|
55
|
+
return;
|
|
54
56
|
}
|
|
55
|
-
}
|
|
57
|
+
};
|
|
58
|
+
var listItemStyles = null;
|
|
59
|
+
var titleStyles = null;
|
|
56
60
|
var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
57
|
-
(0, _inherits2.default)(ProgressTrackerStage, _PureComponent);
|
|
58
|
-
var _super = _createSuper(ProgressTrackerStage);
|
|
59
61
|
function ProgressTrackerStage(props) {
|
|
60
62
|
var _this;
|
|
61
63
|
(0, _classCallCheck2.default)(this, ProgressTrackerStage);
|
|
62
|
-
_this =
|
|
63
|
-
(0, _defineProperty2.default)(
|
|
64
|
-
(0, _defineProperty2.default)(
|
|
65
|
-
(0, _defineProperty2.default)(
|
|
66
|
-
(0, _defineProperty2.default)(
|
|
64
|
+
_this = _callSuper(this, ProgressTrackerStage, [props]);
|
|
65
|
+
(0, _defineProperty2.default)(_this, "nodeRefMarker", /*#__PURE__*/(0, _react.createRef)());
|
|
66
|
+
(0, _defineProperty2.default)(_this, "nodeRefBar", /*#__PURE__*/(0, _react.createRef)());
|
|
67
|
+
(0, _defineProperty2.default)(_this, "nodeRefTitle", /*#__PURE__*/(0, _react.createRef)());
|
|
68
|
+
(0, _defineProperty2.default)(_this, "onEntered", function () {
|
|
67
69
|
_this.setState({
|
|
68
70
|
transitioning: false,
|
|
69
|
-
oldMarkerColor:
|
|
71
|
+
oldMarkerColor: getMarkerColor(_this.props.item.status),
|
|
70
72
|
oldPercentageComplete: _this.props.item.percentageComplete
|
|
71
73
|
});
|
|
72
74
|
});
|
|
73
75
|
_this.state = {
|
|
74
76
|
transitioning: false,
|
|
75
|
-
oldMarkerColor:
|
|
77
|
+
oldMarkerColor: getMarkerColor(_this.props.item.status),
|
|
76
78
|
oldPercentageComplete: 0
|
|
77
79
|
};
|
|
78
80
|
return _this;
|
|
79
81
|
}
|
|
80
|
-
(0,
|
|
82
|
+
(0, _inherits2.default)(ProgressTrackerStage, _PureComponent);
|
|
83
|
+
return (0, _createClass2.default)(ProgressTrackerStage, [{
|
|
81
84
|
key: "UNSAFE_componentWillMount",
|
|
82
85
|
value: function UNSAFE_componentWillMount() {
|
|
83
86
|
this.setState(_objectSpread(_objectSpread({}, this.state), {}, {
|
|
@@ -101,7 +104,6 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
101
104
|
}, {
|
|
102
105
|
key: "render",
|
|
103
106
|
value: function render() {
|
|
104
|
-
var _listInlineStyles;
|
|
105
107
|
var _this$props = this.props,
|
|
106
108
|
item = _this$props.item,
|
|
107
109
|
render = _this$props.render,
|
|
@@ -110,58 +112,48 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
110
112
|
transitionEasing = _this$props.transitionEasing,
|
|
111
113
|
testId = _this$props.testId;
|
|
112
114
|
var ariaCurrent = item.status === 'current' ? 'step' : 'false';
|
|
113
|
-
var listInlineStyles = (
|
|
114
|
-
return
|
|
115
|
+
var listInlineStyles = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, '--ds--pt--ts', "".concat(transitionSpeed, "ms")), '--ds--pt--td', "".concat(transitionDelay, "ms")), '--ds--pt--te', transitionEasing), '--ds--pt--mc', this.state.oldMarkerColor), '--ds--pt--bg', getMarkerColor(item.status)), "listStyleType", 'none');
|
|
116
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
115
117
|
"data-testid": testId
|
|
116
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
117
119
|
,
|
|
118
120
|
style: listInlineStyles,
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
},
|
|
122
|
-
xcss:
|
|
123
|
-
},
|
|
121
|
+
"aria-current": ariaCurrent,
|
|
122
|
+
className: (0, _runtime.ax)(["_18s8ze3t _1i4q1hna"])
|
|
123
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
124
|
+
xcss: styles.listItemContent
|
|
125
|
+
}, /*#__PURE__*/React.createElement(_reactTransitionGroup.CSSTransition, {
|
|
124
126
|
appear: true,
|
|
125
127
|
in: this.state.transitioning,
|
|
126
128
|
onEntered: this.onEntered,
|
|
127
129
|
timeout: transitionDelay + transitionSpeed,
|
|
128
|
-
classNames: "fade"
|
|
129
|
-
}, (0, _platformFeatureFlags.fg)('platform_design_system_team_transition_group_r18') && {
|
|
130
|
+
classNames: "fade",
|
|
130
131
|
nodeRef: this.nodeRefMarker
|
|
131
|
-
}
|
|
132
|
+
}, /*#__PURE__*/React.createElement(_marker.default, {
|
|
132
133
|
testId: testId && "".concat(testId, "-marker")
|
|
133
|
-
})),
|
|
134
|
+
})), /*#__PURE__*/React.createElement(_reactTransitionGroup.CSSTransition, {
|
|
134
135
|
appear: true,
|
|
135
136
|
in: this.state.transitioning,
|
|
136
137
|
onEntered: this.onEntered,
|
|
137
138
|
timeout: transitionDelay + transitionSpeed,
|
|
138
|
-
classNames: "fade"
|
|
139
|
-
}, (0, _platformFeatureFlags.fg)('platform_design_system_team_transition_group_r18') && {
|
|
139
|
+
classNames: "fade",
|
|
140
140
|
nodeRef: this.nodeRefBar
|
|
141
|
-
}
|
|
141
|
+
}, /*#__PURE__*/React.createElement(_bar.default, {
|
|
142
142
|
testId: testId && "".concat(testId, "-bar"),
|
|
143
143
|
percentageComplete: item.percentageComplete
|
|
144
|
-
})),
|
|
144
|
+
})), /*#__PURE__*/React.createElement(_reactTransitionGroup.CSSTransition, {
|
|
145
145
|
appear: true,
|
|
146
146
|
in: this.state.transitioning,
|
|
147
147
|
onEntered: this.onEntered,
|
|
148
148
|
timeout: transitionDelay + transitionSpeed,
|
|
149
|
-
classNames: "fade"
|
|
150
|
-
}, (0, _platformFeatureFlags.fg)('platform_design_system_team_transition_group_r18') && {
|
|
149
|
+
classNames: "fade",
|
|
151
150
|
nodeRef: this.nodeRefTitle
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
156
|
-
color: (0, _utils.getTextColor)(item.status),
|
|
157
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
158
|
-
fontWeight: (0, _utils.getFontWeight)(item.status)
|
|
159
|
-
},
|
|
160
|
-
"data-testid": testId && "".concat(testId, "-title")
|
|
151
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
"data-testid": testId && "".concat(testId, "-title"),
|
|
153
|
+
className: (0, _runtime.ax)(["_11c81oud _1pfhv47k _y3gn1h6o _v564ph28 _1uuw17dr _1ez2kb7n _1t9yph28", textColor[item.status], fontWeight[item.status]])
|
|
161
154
|
}, this.shouldShowLink() ? render.link({
|
|
162
155
|
item: item
|
|
163
156
|
}) : item.label))));
|
|
164
157
|
}
|
|
165
158
|
}]);
|
|
166
|
-
return ProgressTrackerStage;
|
|
167
159
|
}(_react.PureComponent);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
._1yt4ze3t{padding:var(--ds-space-0,0)}
|
|
3
|
+
._zulp6odm{gap:var(--ds--pt--sp)}._18u01wug{margin-left:auto}
|
|
4
|
+
._19pkidpf{margin-top:0}
|
|
5
|
+
._1bsb1osq{width:100%}
|
|
6
|
+
._1e0c11p5{display:grid}
|
|
7
|
+
._2hwx1wug{margin-right:auto}
|
|
8
|
+
._2mzuglyw{list-style-type:none}
|
|
9
|
+
._otyridpf{margin-bottom:0}
|
|
10
|
+
._rxvc1jfw._rxvc1jfw{margin-block-start:var(--ds-space-500,40px)}
|