@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.
Files changed (54) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/internal/bar.compiled.css +9 -0
  3. package/dist/cjs/internal/bar.js +19 -32
  4. package/dist/cjs/internal/link-new.js +4 -4
  5. package/dist/cjs/internal/link.compiled.css +2 -0
  6. package/dist/cjs/internal/link.js +14 -15
  7. package/dist/cjs/internal/marker.compiled.css +13 -0
  8. package/dist/cjs/internal/marker.js +16 -54
  9. package/dist/cjs/internal/stage.compiled.css +17 -0
  10. package/dist/cjs/internal/stage.js +67 -75
  11. package/dist/cjs/progress-tracker.compiled.css +10 -0
  12. package/dist/cjs/progress-tracker.js +24 -31
  13. package/dist/es2019/internal/bar.compiled.css +9 -0
  14. package/dist/es2019/internal/bar.js +13 -30
  15. package/dist/es2019/internal/link-new.js +3 -3
  16. package/dist/es2019/internal/link.compiled.css +2 -0
  17. package/dist/es2019/internal/link.js +8 -14
  18. package/dist/es2019/internal/marker.compiled.css +13 -0
  19. package/dist/es2019/internal/marker.js +7 -49
  20. package/dist/es2019/internal/stage.compiled.css +17 -0
  21. package/dist/es2019/internal/stage.js +55 -66
  22. package/dist/es2019/progress-tracker.compiled.css +10 -0
  23. package/dist/es2019/progress-tracker.js +18 -31
  24. package/dist/esm/internal/bar.compiled.css +9 -0
  25. package/dist/esm/internal/bar.js +16 -31
  26. package/dist/esm/internal/link-new.js +3 -3
  27. package/dist/esm/internal/link.compiled.css +2 -0
  28. package/dist/esm/internal/link.js +11 -14
  29. package/dist/esm/internal/marker.compiled.css +13 -0
  30. package/dist/esm/internal/marker.js +12 -52
  31. package/dist/esm/internal/stage.compiled.css +17 -0
  32. package/dist/esm/internal/stage.js +60 -75
  33. package/dist/esm/progress-tracker.compiled.css +10 -0
  34. package/dist/esm/progress-tracker.js +19 -33
  35. package/dist/types/internal/bar.d.ts +2 -6
  36. package/dist/types/internal/stage.d.ts +1 -2
  37. package/dist/types/progress-tracker.d.ts +2 -2
  38. package/dist/types/types.d.ts +1 -1
  39. package/dist/types-ts4.5/internal/bar.d.ts +2 -6
  40. package/dist/types-ts4.5/internal/stage.d.ts +1 -2
  41. package/dist/types-ts4.5/progress-tracker.d.ts +2 -2
  42. package/dist/types-ts4.5/types.d.ts +1 -1
  43. package/package.json +3 -7
  44. package/constants/package.json +0 -17
  45. package/dist/cjs/constants.js +0 -14
  46. package/dist/cjs/internal/constants.js +0 -21
  47. package/dist/es2019/constants.js +0 -8
  48. package/dist/es2019/internal/constants.js +0 -15
  49. package/dist/esm/constants.js +0 -8
  50. package/dist/esm/internal/constants.js +0 -15
  51. package/dist/types/constants.d.ts +0 -9
  52. package/dist/types/internal/constants.d.ts +0 -12
  53. package/dist/types-ts4.5/constants.d.ts +0 -9
  54. 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)}
@@ -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
- var _react = require("@emotion/react");
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
- var _constants = require("../constants");
10
- var _constants2 = require("./constants");
11
- /**
12
- * @jsxRuntime classic
13
- * @jsx jsx
14
- */
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
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 (0, _react.jsx)("div", {
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
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
49
- , " * calc(var(").concat(_constants2.varSpacing, ", ").concat(_constants.spacing.cosy, ") + ").concat(_constants2.HALF_GRID_SIZE, "))")
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 _anchor = _interopRequireDefault(require("@atlaskit/primitives/anchor"));
12
+ var _compiled = require("@atlaskit/primitives/compiled");
13
13
  var styles = {
14
- root: "_4bfu18uv _1hmsglyw _ajmmnqa1 _syaz1fxt _11c81kw7 _9oik18uv _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
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(_anchor.default, {
26
- xcss: styles.root
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 || '',
@@ -0,0 +1,2 @@
1
+ ._80omtlke{cursor:pointer}
2
+ ._syaz1o8f{color:var(--_ggxzyp)}
@@ -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
- var _react = require("@emotion/react");
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
- * @jsxRuntime classic
11
- * @jsx jsx
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 (0, _react.jsx)("a", {
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
- var _react = require("@emotion/react");
8
- var _constants = require("./constants");
9
- /* eslint-disable @atlaskit/design-system/no-nested-styles */
10
- /**
11
- * @jsxRuntime classic
12
- * @jsx jsx
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
- // too many props that would go in UNSAFE_style + css transition prop having issues
63
-
64
- (0, _react.jsx)("div", {
65
- "data-testid": testId,
66
- css: progressMarkerStyles
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
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
- var _primitives = require("@atlaskit/primitives");
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
- var _utils = require("./utils");
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 _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); }; }
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 */ /**
29
- * @jsxRuntime classic
30
- * @jsx jsx
31
- */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
32
- var listItemContentStyles = (0, _primitives.xcss)({
33
- width: '100%',
34
- position: 'relative'
35
- });
36
- var listItemStyles = (0, _react2.css)({
37
- margin: "var(--ds-space-0, 0px)",
38
- overflowWrap: 'break-word'
39
- });
40
- var titleStyles = (0, _react2.css)({
41
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
42
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
43
- marginBlockStart: _constants.LABEL_TOP_SPACING,
44
- textAlign: 'center',
45
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
46
- '&.fade-appear': {
47
- opacity: 0.01
48
- },
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
50
- '&.fade-appear.fade-appear-active': {
51
- opacity: 1,
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
- transition: "opacity var(".concat(_constants.varTransitionSpeed, ") cubic-bezier(0.2, 0, 0, 1)")
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 = _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)());
66
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onEntered", function () {
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: (0, _utils.getMarkerColor)(_this.props.item.status),
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: (0, _utils.getMarkerColor)(_this.props.item.status),
77
+ oldMarkerColor: getMarkerColor(_this.props.item.status),
76
78
  oldPercentageComplete: 0
77
79
  };
78
80
  return _this;
79
81
  }
80
- (0, _createClass2.default)(ProgressTrackerStage, [{
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 = (_listInlineStyles = {}, (0, _defineProperty2.default)(_listInlineStyles, _constants.varTransitionSpeed, "".concat(transitionSpeed, "ms")), (0, _defineProperty2.default)(_listInlineStyles, _constants.varTransitionDelay, "".concat(transitionDelay, "ms")), (0, _defineProperty2.default)(_listInlineStyles, _constants.varTransitionEasing, transitionEasing), (0, _defineProperty2.default)(_listInlineStyles, _constants.varMarkerColor, this.state.oldMarkerColor), (0, _defineProperty2.default)(_listInlineStyles, _constants.varBackgroundColor, (0, _utils.getMarkerColor)(item.status)), (0, _defineProperty2.default)(_listInlineStyles, "listStyleType", 'none'), _listInlineStyles);
114
- return (0, _react2.jsx)("li", {
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
- css: listItemStyles,
120
- "aria-current": ariaCurrent
121
- }, (0, _react2.jsx)(_primitives.Box, {
122
- xcss: listItemContentStyles
123
- }, (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, (0, _extends2.default)({
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
- }), (0, _react2.jsx)(_marker.default, {
132
+ }, /*#__PURE__*/React.createElement(_marker.default, {
132
133
  testId: testId && "".concat(testId, "-marker")
133
- })), (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, (0, _extends2.default)({
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
- }), (0, _react2.jsx)(_bar.default, {
141
+ }, /*#__PURE__*/React.createElement(_bar.default, {
142
142
  testId: testId && "".concat(testId, "-bar"),
143
143
  percentageComplete: item.percentageComplete
144
- })), (0, _react2.jsx)(_reactTransitionGroup.CSSTransition, (0, _extends2.default)({
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
- }), (0, _react2.jsx)("div", {
153
- css: titleStyles,
154
- style: {
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)}