@atlaskit/progress-tracker 8.5.11 → 8.6.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/progress-tracker
2
2
 
3
+ ## 8.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#98707](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98707)
8
+ [`7cce9cbf2f08`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7cce9cbf2f08) -
9
+ Internal changes to how text is rendered. There is no expected visual change.
10
+
11
+ ## 8.6.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#99069](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99069)
16
+ [`609d5a37c656`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/609d5a37c656) -
17
+ Add support for React 18.
18
+
3
19
  ## 8.5.11
4
20
 
5
21
  ### Patch Changes
@@ -13,8 +13,8 @@ var varTransitionDelay = exports.varTransitionDelay = '--ds--pt--td';
13
13
  var varTransitionEasing = exports.varTransitionEasing = '--ds--pt--te';
14
14
  var varMarkerColor = exports.varMarkerColor = '--ds--pt--mc';
15
15
  var varBackgroundColor = exports.varBackgroundColor = '--ds--pt--bg';
16
- var SEMI_BOLD_FONT_WEIGHT = exports.SEMI_BOLD_FONT_WEIGHT = 'semibold';
17
- var REGULAR_FONT_WEIGHT = exports.REGULAR_FONT_WEIGHT = 'regular';
16
+ var REGULAR_FONT_WEIGHT = exports.REGULAR_FONT_WEIGHT = "var(--ds-font-weight-regular, 400)";
17
+ var SEMI_BOLD_FONT_WEIGHT = exports.SEMI_BOLD_FONT_WEIGHT = "var(--ds-font-weight-semibold, 600)";
18
18
  var HALF_GRID_SIZE = exports.HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
19
19
  var PROGRESS_BAR_HEIGHT = exports.PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
20
20
 
@@ -15,7 +15,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
15
15
  var _react = require("react");
16
16
  var _react2 = require("@emotion/react");
17
17
  var _reactTransitionGroup = require("react-transition-group");
18
- var _text = _interopRequireDefault(require("@atlaskit/ds-explorations/text"));
19
18
  var _primitives = require("@atlaskit/primitives");
20
19
  var _bar = _interopRequireDefault(require("./bar"));
21
20
  var _constants = require("./constants");
@@ -47,6 +46,10 @@ var titleStyles = (0, _react2.css)({
47
46
  transition: "opacity var(".concat(_constants.varTransitionSpeed, ") cubic-bezier(0.2, 0, 0, 1)")
48
47
  }
49
48
  });
49
+ var textStyles = (0, _react2.css)({
50
+ fontSize: '14px',
51
+ lineHeight: '16px'
52
+ });
50
53
  var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureComponent) {
51
54
  (0, _inherits2.default)(ProgressTrackerStage, _PureComponent);
52
55
  var _super = _createSuper(ProgressTrackerStage);
@@ -132,12 +135,13 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
132
135
  classNames: "fade"
133
136
  }, (0, _react2.jsx)("div", {
134
137
  css: titleStyles
135
- }, (0, _react2.jsx)(_text.default, {
136
- fontSize: "size.100",
137
- lineHeight: "lineHeight.100",
138
- testId: testId && "".concat(testId, "-title"),
139
- color: (0, _utils.getTextColor)(item.status),
140
- fontWeight: (0, _utils.getFontWeight)(item.status)
138
+ }, (0, _react2.jsx)("span", {
139
+ css: textStyles,
140
+ style: {
141
+ color: (0, _utils.getTextColor)(item.status),
142
+ fontWeight: (0, _utils.getFontWeight)(item.status)
143
+ },
144
+ "data-testid": testId && "".concat(testId, "-title")
141
145
  }, this.shouldShowLink() ? render.link({
142
146
  item: item
143
147
  }) : item.label)))));
@@ -21,13 +21,13 @@ var getMarkerColor = exports.getMarkerColor = function getMarkerColor(status) {
21
21
  var getTextColor = exports.getTextColor = function getTextColor(status) {
22
22
  switch (status) {
23
23
  case 'unvisited':
24
- return 'subtlest';
24
+ return "var(--ds-text-subtlest, #626F86)";
25
25
  case 'current':
26
- return 'brand';
26
+ return "var(--ds-text-brand, #0C66E4)";
27
27
  case 'visited':
28
- return 'color.text';
28
+ return "var(--ds-text, #172B4D)";
29
29
  case 'disabled':
30
- return 'disabled';
30
+ return "var(--ds-text-disabled, #091E424F)";
31
31
  default:
32
32
  return;
33
33
  }
@@ -7,8 +7,8 @@ export const varTransitionDelay = '--ds--pt--td';
7
7
  export const varTransitionEasing = '--ds--pt--te';
8
8
  export const varMarkerColor = '--ds--pt--mc';
9
9
  export const varBackgroundColor = '--ds--pt--bg';
10
- export const SEMI_BOLD_FONT_WEIGHT = 'semibold';
11
- export const REGULAR_FONT_WEIGHT = 'regular';
10
+ export const REGULAR_FONT_WEIGHT = "var(--ds-font-weight-regular, 400)";
11
+ export const SEMI_BOLD_FONT_WEIGHT = "var(--ds-font-weight-semibold, 600)";
12
12
  export const HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
13
13
  export const PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
14
14
 
@@ -4,7 +4,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import { PureComponent } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import { CSSTransition } from 'react-transition-group';
7
- import Text from '@atlaskit/ds-explorations/text';
8
7
  import { Box, xcss } from '@atlaskit/primitives';
9
8
  import ProgressBar from './bar';
10
9
  import { LABEL_TOP_SPACING, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
@@ -32,6 +31,10 @@ const titleStyles = css({
32
31
  transition: `opacity var(${varTransitionSpeed}) cubic-bezier(0.2, 0, 0, 1)`
33
32
  }
34
33
  });
34
+ const textStyles = css({
35
+ fontSize: '14px',
36
+ lineHeight: '16px'
37
+ });
35
38
  export default class ProgressTrackerStage extends PureComponent {
36
39
  constructor(props) {
37
40
  super(props);
@@ -112,12 +115,13 @@ export default class ProgressTrackerStage extends PureComponent {
112
115
  classNames: "fade"
113
116
  }, jsx("div", {
114
117
  css: titleStyles
115
- }, jsx(Text, {
116
- fontSize: "size.100",
117
- lineHeight: "lineHeight.100",
118
- testId: testId && `${testId}-title`,
119
- color: getTextColor(item.status),
120
- fontWeight: getFontWeight(item.status)
118
+ }, jsx("span", {
119
+ css: textStyles,
120
+ style: {
121
+ color: getTextColor(item.status),
122
+ fontWeight: getFontWeight(item.status)
123
+ },
124
+ "data-testid": testId && `${testId}-title`
121
125
  }, this.shouldShowLink() ? render.link({
122
126
  item
123
127
  }) : item.label)))));
@@ -15,13 +15,13 @@ export const getMarkerColor = status => {
15
15
  export const getTextColor = status => {
16
16
  switch (status) {
17
17
  case 'unvisited':
18
- return 'subtlest';
18
+ return "var(--ds-text-subtlest, #626F86)";
19
19
  case 'current':
20
- return 'brand';
20
+ return "var(--ds-text-brand, #0C66E4)";
21
21
  case 'visited':
22
- return 'color.text';
22
+ return "var(--ds-text, #172B4D)";
23
23
  case 'disabled':
24
- return 'disabled';
24
+ return "var(--ds-text-disabled, #091E424F)";
25
25
  default:
26
26
  return;
27
27
  }
@@ -7,8 +7,8 @@ export var varTransitionDelay = '--ds--pt--td';
7
7
  export var varTransitionEasing = '--ds--pt--te';
8
8
  export var varMarkerColor = '--ds--pt--mc';
9
9
  export var varBackgroundColor = '--ds--pt--bg';
10
- export var SEMI_BOLD_FONT_WEIGHT = 'semibold';
11
- export var REGULAR_FONT_WEIGHT = 'regular';
10
+ export var REGULAR_FONT_WEIGHT = "var(--ds-font-weight-regular, 400)";
11
+ export var SEMI_BOLD_FONT_WEIGHT = "var(--ds-font-weight-semibold, 600)";
12
12
  export var HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
13
13
  export var PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
14
14
 
@@ -14,7 +14,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
14
14
  import { PureComponent } from 'react';
15
15
  import { css, jsx } from '@emotion/react';
16
16
  import { CSSTransition } from 'react-transition-group';
17
- import Text from '@atlaskit/ds-explorations/text';
18
17
  import { Box, xcss } from '@atlaskit/primitives';
19
18
  import ProgressBar from './bar';
20
19
  import { LABEL_TOP_SPACING, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
@@ -42,6 +41,10 @@ var titleStyles = css({
42
41
  transition: "opacity var(".concat(varTransitionSpeed, ") cubic-bezier(0.2, 0, 0, 1)")
43
42
  }
44
43
  });
44
+ var textStyles = css({
45
+ fontSize: '14px',
46
+ lineHeight: '16px'
47
+ });
45
48
  var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
46
49
  _inherits(ProgressTrackerStage, _PureComponent);
47
50
  var _super = _createSuper(ProgressTrackerStage);
@@ -127,12 +130,13 @@ var ProgressTrackerStage = /*#__PURE__*/function (_PureComponent) {
127
130
  classNames: "fade"
128
131
  }, jsx("div", {
129
132
  css: titleStyles
130
- }, jsx(Text, {
131
- fontSize: "size.100",
132
- lineHeight: "lineHeight.100",
133
- testId: testId && "".concat(testId, "-title"),
134
- color: getTextColor(item.status),
135
- fontWeight: getFontWeight(item.status)
133
+ }, jsx("span", {
134
+ css: textStyles,
135
+ style: {
136
+ color: getTextColor(item.status),
137
+ fontWeight: getFontWeight(item.status)
138
+ },
139
+ "data-testid": testId && "".concat(testId, "-title")
136
140
  }, this.shouldShowLink() ? render.link({
137
141
  item: item
138
142
  }) : item.label)))));
@@ -15,13 +15,13 @@ export var getMarkerColor = function getMarkerColor(status) {
15
15
  export var getTextColor = function getTextColor(status) {
16
16
  switch (status) {
17
17
  case 'unvisited':
18
- return 'subtlest';
18
+ return "var(--ds-text-subtlest, #626F86)";
19
19
  case 'current':
20
- return 'brand';
20
+ return "var(--ds-text-brand, #0C66E4)";
21
21
  case 'visited':
22
- return 'color.text';
22
+ return "var(--ds-text, #172B4D)";
23
23
  case 'disabled':
24
- return 'disabled';
24
+ return "var(--ds-text-disabled, #091E424F)";
25
25
  default:
26
26
  return;
27
27
  }
@@ -7,8 +7,8 @@ export declare const varTransitionDelay = "--ds--pt--td";
7
7
  export declare const varTransitionEasing = "--ds--pt--te";
8
8
  export declare const varMarkerColor = "--ds--pt--mc";
9
9
  export declare const varBackgroundColor = "--ds--pt--bg";
10
- export declare const SEMI_BOLD_FONT_WEIGHT = "semibold";
11
- export declare const REGULAR_FONT_WEIGHT = "regular";
10
+ export declare const REGULAR_FONT_WEIGHT: "var(--ds-font-weight-regular)";
11
+ export declare const SEMI_BOLD_FONT_WEIGHT: "var(--ds-font-weight-semibold)";
12
12
  export declare const HALF_GRID_SIZE: "var(--ds-space-050)";
13
13
  export declare const PROGRESS_BAR_HEIGHT: "var(--ds-space-100)";
14
14
  export declare const LABEL_TOP_SPACING: "var(--ds-space-300)";
@@ -1,5 +1,4 @@
1
- import { TextColor } from '@atlaskit/ds-explorations/text';
2
1
  import type { Status } from '../types';
3
2
  export declare const getMarkerColor: (status: Status) => "var(--ds-icon-subtle)" | "var(--ds-icon-brand)" | undefined;
4
- export declare const getTextColor: (status: Status) => TextColor | undefined;
5
- export declare const getFontWeight: (status: Status) => "semibold" | "regular" | undefined;
3
+ export declare const getTextColor: (status: Status) => "var(--ds-text)" | "var(--ds-text-subtlest)" | "var(--ds-text-brand)" | "var(--ds-text-disabled)" | undefined;
4
+ export declare const getFontWeight: (status: Status) => "var(--ds-font-weight-regular)" | "var(--ds-font-weight-semibold)" | undefined;
@@ -7,8 +7,8 @@ export declare const varTransitionDelay = "--ds--pt--td";
7
7
  export declare const varTransitionEasing = "--ds--pt--te";
8
8
  export declare const varMarkerColor = "--ds--pt--mc";
9
9
  export declare const varBackgroundColor = "--ds--pt--bg";
10
- export declare const SEMI_BOLD_FONT_WEIGHT = "semibold";
11
- export declare const REGULAR_FONT_WEIGHT = "regular";
10
+ export declare const REGULAR_FONT_WEIGHT: "var(--ds-font-weight-regular)";
11
+ export declare const SEMI_BOLD_FONT_WEIGHT: "var(--ds-font-weight-semibold)";
12
12
  export declare const HALF_GRID_SIZE: "var(--ds-space-050)";
13
13
  export declare const PROGRESS_BAR_HEIGHT: "var(--ds-space-100)";
14
14
  export declare const LABEL_TOP_SPACING: "var(--ds-space-300)";
@@ -1,5 +1,4 @@
1
- import { TextColor } from '@atlaskit/ds-explorations/text';
2
1
  import type { Status } from '../types';
3
2
  export declare const getMarkerColor: (status: Status) => "var(--ds-icon-subtle)" | "var(--ds-icon-brand)" | undefined;
4
- export declare const getTextColor: (status: Status) => TextColor | undefined;
5
- export declare const getFontWeight: (status: Status) => "semibold" | "regular" | undefined;
3
+ export declare const getTextColor: (status: Status) => "var(--ds-text)" | "var(--ds-text-subtlest)" | "var(--ds-text-brand)" | "var(--ds-text-disabled)" | undefined;
4
+ export declare const getFontWeight: (status: Status) => "var(--ds-font-weight-regular)" | "var(--ds-font-weight-semibold)" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/progress-tracker",
3
- "version": "8.5.11",
3
+ "version": "8.6.1",
4
4
  "description": "A progress tracker displays the steps and progress through a journey.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -17,6 +17,7 @@
17
17
  "atlassian": {
18
18
  "team": "Design System Team",
19
19
  "releaseModel": "continuous",
20
+ "runReact18": true,
20
21
  "productPushConsumption": [
21
22
  "jira"
22
23
  ],
@@ -26,16 +27,15 @@
26
27
  }
27
28
  },
28
29
  "dependencies": {
29
- "@atlaskit/ds-explorations": "^3.5.0",
30
- "@atlaskit/primitives": "^6.0.0",
31
- "@atlaskit/theme": "^12.7.0",
32
- "@atlaskit/tokens": "^1.45.0",
30
+ "@atlaskit/primitives": "^6.2.0",
31
+ "@atlaskit/theme": "^12.8.0",
32
+ "@atlaskit/tokens": "^1.48.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "@emotion/react": "^11.7.1",
35
35
  "react-transition-group": "^4.4.1"
36
36
  },
37
37
  "peerDependencies": {
38
- "react": "^16.8.0"
38
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@af/accessibility-testing": "*",