@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
@@ -1,29 +1,14 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { css, jsx } from '@emotion/react';
1
+ /* bar.tsx generated by @compiled/babel-plugin v0.32.2 */
2
+ import "./bar.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
7
5
  import { B300 } from '@atlaskit/theme/colors';
8
- import { spacing } from '../constants';
9
- import { HALF_GRID_SIZE, LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varSpacing, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
10
- var progressBarStyles = css({
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
12
- height: PROGRESS_BAR_HEIGHT,
13
- position: 'absolute',
14
- backgroundColor: "var(--ds-background-brand-bold, ".concat(B300, ")"),
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
16
- borderEndEndRadius: PROGRESS_BAR_HEIGHT,
17
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
18
- borderStartEndRadius: PROGRESS_BAR_HEIGHT,
19
- insetInlineStart: '50%',
20
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
21
- transform: "translate(0, calc(-1 * ".concat(LABEL_TOP_SPACING, "))"),
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
- transition: "width var(".concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, ")"),
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
- transitionDelay: "var(".concat(varTransitionDelay, ")")
26
- });
6
+ var spacing = {
7
+ comfortable: "var(--ds-space-500, 40px)",
8
+ cosy: "var(--ds-space-200, 16px)",
9
+ compact: "var(--ds-space-050, 4px)"
10
+ };
11
+ var progressBarStyles = null;
27
12
 
28
13
  /**
29
14
  * __Progress bar__
@@ -34,14 +19,14 @@ var progressBarStyles = css({
34
19
  var ProgressBar = function ProgressBar(_ref) {
35
20
  var percentageComplete = _ref.percentageComplete,
36
21
  testId = _ref.testId;
37
- return jsx("div", {
22
+ return /*#__PURE__*/React.createElement("div", {
38
23
  "data-testid": testId,
24
+ className: ax(["_4t3iu2gc _kqswstnw _bfhk1j1x _1einu2gc _5fbcu2gc _1e021ssb _t9ec5ihf _v564d86a _1lww1oqq"]),
39
25
  style: {
40
- width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
42
- , " * calc(var(").concat(varSpacing, ", ").concat(spacing.cosy, ") + ").concat(HALF_GRID_SIZE, "))")
43
- },
44
- css: progressBarStyles
26
+ width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100, " * calc(var(--ds--pt--sp, ").concat(spacing.cosy, ") + ", "var(--ds-space-050, 4px)", "))"),
27
+ "--_vcj3ew": ix("var(--ds-background-brand-bold, ".concat(B300, ")")),
28
+ "--_22xnfg": ix("translate(0, calc(-1 * ".concat("var(--ds-space-250, 20px)", "))"))
29
+ }
45
30
  });
46
31
  };
47
32
  export default ProgressBar;
@@ -2,9 +2,9 @@
2
2
  import "./link-new.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
- import Anchor from '@atlaskit/primitives/anchor';
5
+ import { Anchor } from '@atlaskit/primitives/compiled';
6
6
  var styles = {
7
- root: "_4bfu18uv _1hmsglyw _ajmmnqa1 _syaz1fxt _11c81kw7 _9oik18uv _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
7
+ anchor: "_4bfu18uv _1hmsglyw _ajmmnqa1 _syaz1fxt _11c81kw7 _9oik18uv _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
8
8
  };
9
9
 
10
10
  /**
@@ -16,7 +16,7 @@ var Link = function Link(_ref) {
16
16
  label = _ref.label,
17
17
  testId = _ref.testId;
18
18
  return /*#__PURE__*/React.createElement(Anchor, {
19
- xcss: styles.root
19
+ xcss: styles.anchor
20
20
  // TODO: We should not be rendering empty hrefs on anchors. This should be plain text or a button/pressable if `onClick` is provided.
21
21
  ,
22
22
  href: href || '',
@@ -0,0 +1,2 @@
1
+ ._80omtlke{cursor:pointer}
2
+ ._syaz1o8f{color:var(--_ggxzyp)}
@@ -1,15 +1,9 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
1
+ /* link.tsx generated by @compiled/babel-plugin v0.32.2 */
2
+ import "./link.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
8
5
  import { N800 } from '@atlaskit/theme/colors';
9
- var linkStyles = css({
10
- color: "var(--ds-text, ".concat(N800, ")"),
11
- cursor: 'pointer'
12
- });
6
+ var linkStyles = null;
13
7
 
14
8
  /**
15
9
  * __Progress tracker link__
@@ -19,11 +13,14 @@ var Link = function Link(_ref) {
19
13
  onClick = _ref.onClick,
20
14
  label = _ref.label,
21
15
  testId = _ref.testId;
22
- return jsx("a", {
23
- css: linkStyles,
16
+ return /*#__PURE__*/React.createElement("a", {
24
17
  href: href,
25
18
  onClick: onClick,
26
- "data-testid": testId
19
+ "data-testid": testId,
20
+ className: ax(["_syaz1o8f _80omtlke"]),
21
+ style: {
22
+ "--_ggxzyp": ix("var(--ds-text, ".concat(N800, ")"))
23
+ }
27
24
  }, label);
28
25
  };
29
26
  export 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,48 +1,9 @@
1
+ /* marker.tsx generated by @compiled/babel-plugin v0.32.2 */
1
2
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
9
- import { LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
10
- var progressMarkerStyles = css({
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
12
- width: PROGRESS_BAR_HEIGHT,
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
14
- height: PROGRESS_BAR_HEIGHT,
15
- position: 'absolute',
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
17
- backgroundColor: "var(".concat(varBackgroundColor, ")"),
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
- borderRadius: PROGRESS_BAR_HEIGHT,
20
- insetInlineStart: '50%',
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
- transform: "translate(-50%, calc(-1 * ".concat(LABEL_TOP_SPACING, "))"),
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
- transition: "opacity var(".concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, "), background-color var(").concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, ")"),
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
- transitionDelay: "var(".concat(varTransitionDelay, ")"),
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
28
- '&.fade-appear': {
29
- opacity: 0.01
30
- },
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
32
- '&.fade-appear.fade-appear-active': {
33
- opacity: 1
34
- },
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
36
- '&.fade-enter': {
37
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
38
- backgroundColor: "var(".concat(varMarkerColor, ")")
39
- },
40
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
41
- '&.fade-enter.fade-enter-active': {
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
- backgroundColor: "var(".concat(varBackgroundColor, ")")
44
- }
45
- });
3
+ import "./marker.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ var progressMarkerStyles = null;
46
7
 
47
8
  /**
48
9
  * __Progress marker__
@@ -51,13 +12,12 @@ var progressMarkerStyles = css({
51
12
  */
52
13
  var ProgressMarker = function ProgressMarker(_ref) {
53
14
  var testId = _ref.testId;
54
- return (
55
- // too many props that would go in UNSAFE_style + css transition prop having issues
56
-
57
- jsx("div", {
58
- "data-testid": testId,
59
- css: progressMarkerStyles
60
- })
61
- );
15
+ return /*#__PURE__*/React.createElement("div", {
16
+ "data-testid": testId,
17
+ className: ax(["_1bsbu2gc _4t3iu2gc _kqswstnw _bfhkr3ku _2rkou2gc _1e021ssb _t9ec17h2 _v5645rui _1lww1oqq _1uuw17dr _1ez2kb7n _1190pbrw _1ia8r3ku"]),
18
+ style: {
19
+ "--_nsjg4d": ix("translate(-50%, calc(-1 * ".concat("var(--ds-space-250, 20px)", "))"))
20
+ }
21
+ });
62
22
  };
63
23
  export 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,66 +1,61 @@
1
- import _extends from "@babel/runtime/helpers/extends";
1
+ /* stage.tsx generated by @compiled/babel-plugin v0.32.2 */
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
+ import "./stage.compiled.css";
9
+ import * as React from 'react';
10
+ import { ax, ix } from "@compiled/react/runtime";
9
11
  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; }
10
12
  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; }
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); }; }
13
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
14
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
- /* eslint-disable @atlaskit/design-system/no-nested-styles */
14
- /**
15
- * @jsxRuntime classic
16
- * @jsx jsx
17
- */
18
15
  import { createRef, PureComponent } from 'react';
19
-
20
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
21
- import { css, jsx } from '@emotion/react';
22
16
  import { CSSTransition } from 'react-transition-group';
23
- import { fg } from '@atlaskit/platform-feature-flags';
24
- import { Box, xcss } from '@atlaskit/primitives';
17
+ import { Box } from '@atlaskit/primitives/compiled';
18
+ import { B300, N70 } from '@atlaskit/theme/colors';
25
19
  import ProgressBar from './bar';
26
- import { LABEL_TOP_SPACING, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
27
20
  import ProgressMarker from './marker';
28
- import { getFontWeight, getMarkerColor, getTextColor } from './utils';
29
- var listItemContentStyles = xcss({
30
- width: '100%',
31
- position: 'relative'
32
- });
33
- var listItemStyles = css({
34
- margin: "var(--ds-space-0, 0px)",
35
- overflowWrap: 'break-word'
36
- });
37
- var titleStyles = css({
38
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
40
- marginBlockStart: LABEL_TOP_SPACING,
41
- textAlign: 'center',
42
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
43
- '&.fade-appear': {
44
- opacity: 0.01
45
- },
46
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
47
- '&.fade-appear.fade-appear-active': {
48
- opacity: 1,
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
- transition: "opacity var(".concat(varTransitionSpeed, ") cubic-bezier(0.2, 0, 0, 1)")
21
+ var styles = {
22
+ listItemContent: "_1bsb1osq _kqswh2mm"
23
+ };
24
+ var textColor = {
25
+ unvisited: "_syaz131l",
26
+ current: "_syaz1e6v",
27
+ visited: "_syaz1fxt",
28
+ disabled: "_syaz1lh4"
29
+ };
30
+ var fontWeight = {
31
+ unvisited: "_k48pi7a9",
32
+ current: "_k48pmoej",
33
+ visited: "_k48pmoej",
34
+ disabled: "_k48pmoej"
35
+ };
36
+ var getMarkerColor = function getMarkerColor(status) {
37
+ switch (status) {
38
+ case 'unvisited':
39
+ return "var(--ds-icon-subtle, ".concat(N70, ")");
40
+ case 'current':
41
+ case 'visited':
42
+ case 'disabled':
43
+ return "var(--ds-icon-brand, ".concat(B300, ")");
44
+ default:
45
+ return;
51
46
  }
52
- });
47
+ };
48
+ var listItemStyles = null;
49
+ var titleStyles = null;
53
50
  var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
54
- _inherits(ProgressTrackerStage, _PureComponent);
55
- var _super = _createSuper(ProgressTrackerStage);
56
51
  function ProgressTrackerStage(props) {
57
52
  var _this;
58
53
  _classCallCheck(this, ProgressTrackerStage);
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());
63
- _defineProperty(_assertThisInitialized(_this), "onEntered", function () {
54
+ _this = _callSuper(this, ProgressTrackerStage, [props]);
55
+ _defineProperty(_this, "nodeRefMarker", /*#__PURE__*/createRef());
56
+ _defineProperty(_this, "nodeRefBar", /*#__PURE__*/createRef());
57
+ _defineProperty(_this, "nodeRefTitle", /*#__PURE__*/createRef());
58
+ _defineProperty(_this, "onEntered", function () {
64
59
  _this.setState({
65
60
  transitioning: false,
66
61
  oldMarkerColor: getMarkerColor(_this.props.item.status),
@@ -74,7 +69,8 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
74
69
  };
75
70
  return _this;
76
71
  }
77
- _createClass(ProgressTrackerStage, [{
72
+ _inherits(ProgressTrackerStage, _PureComponent);
73
+ return _createClass(ProgressTrackerStage, [{
78
74
  key: "UNSAFE_componentWillMount",
79
75
  value: function UNSAFE_componentWillMount() {
80
76
  this.setState(_objectSpread(_objectSpread({}, this.state), {}, {
@@ -98,7 +94,6 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
98
94
  }, {
99
95
  key: "render",
100
96
  value: function render() {
101
- var _listInlineStyles;
102
97
  var _this$props = this.props,
103
98
  item = _this$props.item,
104
99
  render = _this$props.render,
@@ -107,59 +102,49 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
107
102
  transitionEasing = _this$props.transitionEasing,
108
103
  testId = _this$props.testId;
109
104
  var ariaCurrent = item.status === 'current' ? 'step' : 'false';
110
- var listInlineStyles = (_listInlineStyles = {}, _defineProperty(_listInlineStyles, varTransitionSpeed, "".concat(transitionSpeed, "ms")), _defineProperty(_listInlineStyles, varTransitionDelay, "".concat(transitionDelay, "ms")), _defineProperty(_listInlineStyles, varTransitionEasing, transitionEasing), _defineProperty(_listInlineStyles, varMarkerColor, this.state.oldMarkerColor), _defineProperty(_listInlineStyles, varBackgroundColor, getMarkerColor(item.status)), _defineProperty(_listInlineStyles, "listStyleType", 'none'), _listInlineStyles);
111
- return jsx("li", {
105
+ var listInlineStyles = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '--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');
106
+ return /*#__PURE__*/React.createElement("li", {
112
107
  "data-testid": testId
113
108
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
114
109
  ,
115
110
  style: listInlineStyles,
116
- css: listItemStyles,
117
- "aria-current": ariaCurrent
118
- }, jsx(Box, {
119
- xcss: listItemContentStyles
120
- }, jsx(CSSTransition, _extends({
111
+ "aria-current": ariaCurrent,
112
+ className: ax(["_18s8ze3t _1i4q1hna"])
113
+ }, /*#__PURE__*/React.createElement(Box, {
114
+ xcss: styles.listItemContent
115
+ }, /*#__PURE__*/React.createElement(CSSTransition, {
121
116
  appear: true,
122
117
  in: this.state.transitioning,
123
118
  onEntered: this.onEntered,
124
119
  timeout: transitionDelay + transitionSpeed,
125
- classNames: "fade"
126
- }, fg('platform_design_system_team_transition_group_r18') && {
120
+ classNames: "fade",
127
121
  nodeRef: this.nodeRefMarker
128
- }), jsx(ProgressMarker, {
122
+ }, /*#__PURE__*/React.createElement(ProgressMarker, {
129
123
  testId: testId && "".concat(testId, "-marker")
130
- })), jsx(CSSTransition, _extends({
124
+ })), /*#__PURE__*/React.createElement(CSSTransition, {
131
125
  appear: true,
132
126
  in: this.state.transitioning,
133
127
  onEntered: this.onEntered,
134
128
  timeout: transitionDelay + transitionSpeed,
135
- classNames: "fade"
136
- }, fg('platform_design_system_team_transition_group_r18') && {
129
+ classNames: "fade",
137
130
  nodeRef: this.nodeRefBar
138
- }), jsx(ProgressBar, {
131
+ }, /*#__PURE__*/React.createElement(ProgressBar, {
139
132
  testId: testId && "".concat(testId, "-bar"),
140
133
  percentageComplete: item.percentageComplete
141
- })), jsx(CSSTransition, _extends({
134
+ })), /*#__PURE__*/React.createElement(CSSTransition, {
142
135
  appear: true,
143
136
  in: this.state.transitioning,
144
137
  onEntered: this.onEntered,
145
138
  timeout: transitionDelay + transitionSpeed,
146
- classNames: "fade"
147
- }, fg('platform_design_system_team_transition_group_r18') && {
139
+ classNames: "fade",
148
140
  nodeRef: this.nodeRefTitle
149
- }), jsx("div", {
150
- css: titleStyles,
151
- style: {
152
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
153
- color: getTextColor(item.status),
154
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
155
- fontWeight: getFontWeight(item.status)
156
- },
157
- "data-testid": testId && "".concat(testId, "-title")
141
+ }, /*#__PURE__*/React.createElement("div", {
142
+ "data-testid": testId && "".concat(testId, "-title"),
143
+ className: ax(["_11c81oud _1pfhv47k _y3gn1h6o _v564ph28 _1uuw17dr _1ez2kb7n _1t9yph28", textColor[item.status], fontWeight[item.status]])
158
144
  }, this.shouldShowLink() ? render.link({
159
145
  item: item
160
146
  }) : item.label))));
161
147
  }
162
148
  }]);
163
- return ProgressTrackerStage;
164
149
  }(PureComponent);
165
150
  export { ProgressTrackerStage as default };
@@ -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)}
@@ -1,34 +1,21 @@
1
+ /* progress-tracker.tsx generated by @compiled/babel-plugin v0.32.2 */
1
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import "./progress-tracker.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
2
6
  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; }
3
7
  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; }
4
- /* eslint-disable @atlaskit/design-system/no-nested-styles */
5
- /**
6
- * @jsxRuntime classic
7
- * @jsx jsx
8
- */
9
8
  import { useEffect, useRef } from 'react';
10
-
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
- import { css, jsx } from '@emotion/react';
13
9
  import { fg } from '@atlaskit/platform-feature-flags';
14
- import { spacing as spacingOptions } from './constants';
15
- import { ANIMATION_EASE_OUT, LINEAR_TRANSITION_SPEED, TRANSITION_SPEED, varSpacing } from './internal/constants';
16
10
  import Link from './internal/link';
17
11
  import LinkNew from './internal/link-new';
18
12
  import Stage from './internal/stage';
19
- var containerStyles = css({
20
- display: 'grid',
21
- width: '100%',
22
- margin: '0 auto',
23
- padding: "var(--ds-space-0, 0px)",
24
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
- gap: "var(".concat(varSpacing, ")"),
26
- listStyleType: 'none',
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
28
- '&&': {
29
- marginBlockStart: "var(--ds-space-500, 40px)"
30
- }
31
- });
13
+ var containerStyles = null;
14
+ var spacingOptions = {
15
+ comfortable: "var(--ds-space-500, 40px)",
16
+ cosy: "var(--ds-space-200, 16px)",
17
+ compact: "var(--ds-space-050, 4px)"
18
+ };
32
19
  /**
33
20
  * __Progress tracker__
34
21
  *
@@ -39,7 +26,6 @@ var containerStyles = css({
39
26
  * - [Usage](https://atlassian.design/components/progress-tracker/usage)
40
27
  */
41
28
  var ProgressTracker = function ProgressTracker(_ref) {
42
- var _listInlineStyles;
43
29
  var _ref$items = _ref.items,
44
30
  items = _ref$items === void 0 ? [] : _ref$items,
45
31
  _ref$spacing = _ref.spacing,
@@ -51,7 +37,7 @@ var ProgressTracker = function ProgressTracker(_ref) {
51
37
  return (
52
38
  // Anchor content is coming from another location
53
39
  // eslint-disable-next-line jsx-a11y/anchor-has-content
54
- fg('platform_progress_tracker_link_migration') ? jsx(LinkNew, item) : jsx(Link, item)
40
+ fg('platform_progress_tracker_link_migration') ? /*#__PURE__*/React.createElement(LinkNew, item) : /*#__PURE__*/React.createElement(Link, item)
55
41
  );
56
42
  }
57
43
  } : _ref$render,
@@ -89,9 +75,9 @@ var ProgressTracker = function ProgressTracker(_ref) {
89
75
  var progressItems = items.map(function (stage, index) {
90
76
  var transitionSpeed = 0;
91
77
  var transitionDelay = 0;
92
- var transitionEasing = progressChanges > 1 ? 'linear' : ANIMATION_EASE_OUT;
78
+ var transitionEasing = progressChanges > 1 ? 'linear' : 'cubic-bezier(0.15,1,0.3,1)';
93
79
  if (animated) {
94
- transitionSpeed = progressChanges > 1 ? LINEAR_TRANSITION_SPEED : TRANSITION_SPEED;
80
+ transitionSpeed = progressChanges > 1 ? 50 : 300;
95
81
  if (stage.percentageComplete < previousStages[index].percentageComplete) {
96
82
  /**
97
83
  * Load each transition sequentially in reverse.
@@ -106,7 +92,7 @@ var ProgressTracker = function ProgressTracker(_ref) {
106
92
  stepsForward -= 1;
107
93
  }
108
94
  }
109
- return jsx(Stage, {
95
+ return /*#__PURE__*/React.createElement(Stage, {
110
96
  transitionSpeed: transitionSpeed,
111
97
  transitionDelay: transitionDelay,
112
98
  transitionEasing: transitionEasing,
@@ -115,16 +101,16 @@ var ProgressTracker = function ProgressTracker(_ref) {
115
101
  render: render
116
102
  });
117
103
  });
118
- var listInlineStyles = (_listInlineStyles = {
104
+ var listInlineStyles = _defineProperty(_defineProperty({
119
105
  gridTemplateColumns: "repeat(".concat(items.length, ", 1fr)")
120
- }, _defineProperty(_listInlineStyles, varSpacing, spacingOptions[spacing]), _defineProperty(_listInlineStyles, "maxWidth", 8 * 10 * items.length * 2), _listInlineStyles);
121
- return jsx("ul", {
106
+ }, '--ds--pt--sp', spacingOptions[spacing]), "maxWidth", 8 * 10 * items.length * 2);
107
+ return /*#__PURE__*/React.createElement("ul", {
122
108
  "data-testid": testId
123
109
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
124
110
  ,
125
111
  style: listInlineStyles,
126
- css: containerStyles,
127
- "aria-label": label
112
+ "aria-label": label,
113
+ className: ax(["_1e0c11p5 _1bsb1osq _19pkidpf _2hwx1wug _otyridpf _18u01wug _1yt4ze3t _zulp6odm _2mzuglyw _rxvc1jfw"])
128
114
  }, progressItems);
129
115
  };
130
116
  export default ProgressTracker;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  interface StageBarProps {
7
3
  testId?: string;
8
4
  percentageComplete: number;
@@ -13,5 +9,5 @@ interface StageBarProps {
13
9
  * A progress bar describes the horizontal tracking bar that traverses each individual step.
14
10
  *
15
11
  */
16
- declare const ProgressBar: ({ percentageComplete, testId }: StageBarProps) => jsx.JSX.Element;
12
+ declare const ProgressBar: ({ percentageComplete, testId }: StageBarProps) => JSX.Element;
17
13
  export default ProgressBar;
@@ -3,7 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { PureComponent } from 'react';
6
- import { jsx } from '@emotion/react';
7
6
  import type { ProgressTrackerStageProps } from './types';
8
7
  interface State {
9
8
  transitioning: boolean;
@@ -20,5 +19,5 @@ export default class ProgressTrackerStage extends PureComponent<ProgressTrackerS
20
19
  UNSAFE_componentWillReceiveProps(): void;
21
20
  shouldShowLink(): boolean;
22
21
  onEntered: () => void;
23
- render(): jsx.JSX.Element;
22
+ render(): JSX.Element;
24
23
  }
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
2
2
  import type { ProgressTrackerStageRenderProp, Spacing, Stages } from './types';
3
3
  export interface ProgressTrackerProps {
4
4
  /**
@@ -35,5 +35,5 @@ export interface ProgressTrackerProps {
35
35
  * - [Code](https://atlassian.design/components/progress-tracker/code)
36
36
  * - [Usage](https://atlassian.design/components/progress-tracker/usage)
37
37
  */
38
- declare const ProgressTracker: ({ items, spacing, render, animated, testId, label, }: ProgressTrackerProps) => jsx.JSX.Element;
38
+ declare const ProgressTracker: ({ items, spacing, render, animated, testId, label, }: ProgressTrackerProps) => JSX.Element;
39
39
  export default ProgressTracker;
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Ideally these are exported by @atlaskit/page
4
4
  */
5
- export type { Spacing } from './constants';
5
+ export type Spacing = 'comfortable' | 'cosy' | 'compact';
6
6
  export type Status = 'unvisited' | 'visited' | 'current' | 'disabled';
7
7
  /**
8
8
  * @deprecated
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
6
2
  interface StageBarProps {
7
3
  testId?: string;
8
4
  percentageComplete: number;
@@ -13,5 +9,5 @@ interface StageBarProps {
13
9
  * A progress bar describes the horizontal tracking bar that traverses each individual step.
14
10
  *
15
11
  */
16
- declare const ProgressBar: ({ percentageComplete, testId }: StageBarProps) => jsx.JSX.Element;
12
+ declare const ProgressBar: ({ percentageComplete, testId }: StageBarProps) => JSX.Element;
17
13
  export default ProgressBar;