@atlaskit/progress-tracker 8.6.1 → 8.6.3
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 +376 -364
- package/README.md +2 -1
- package/dist/cjs/internal/bar.js +13 -5
- package/dist/cjs/internal/constants.js +4 -5
- package/dist/cjs/internal/link.js +2 -0
- package/dist/cjs/internal/marker.js +16 -2
- package/dist/cjs/internal/stage.js +11 -14
- package/dist/cjs/internal/utils.js +2 -3
- package/dist/cjs/progress-tracker.js +6 -3
- package/dist/es2019/internal/bar.js +13 -5
- package/dist/es2019/internal/constants.js +3 -4
- package/dist/es2019/internal/link.js +1 -0
- package/dist/es2019/internal/marker.js +15 -2
- package/dist/es2019/internal/stage.js +12 -13
- package/dist/es2019/internal/utils.js +2 -3
- package/dist/es2019/progress-tracker.js +7 -2
- package/dist/esm/internal/bar.js +13 -5
- package/dist/esm/internal/constants.js +3 -4
- package/dist/esm/internal/link.js +1 -0
- package/dist/esm/internal/marker.js +15 -2
- package/dist/esm/internal/stage.js +12 -13
- package/dist/esm/internal/utils.js +2 -3
- package/dist/esm/progress-tracker.js +7 -2
- package/dist/types/internal/constants.d.ts +1 -3
- package/dist/types/internal/link.d.ts +2 -2
- package/dist/types/internal/marker.d.ts +1 -1
- package/dist/types-ts4.5/internal/constants.d.ts +1 -3
- package/dist/types-ts4.5/internal/link.d.ts +2 -2
- package/dist/types-ts4.5/internal/marker.d.ts +1 -1
- package/package.json +88 -90
- package/report.api.md +59 -61
package/README.md
CHANGED
|
@@ -10,4 +10,5 @@ yarn add @atlaskit/progress-tracker
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Detailed docs and example usage can be found
|
|
13
|
+
Detailed docs and example usage can be found
|
|
14
|
+
[here](https://atlassian.design/components/progress-tracker/).
|
package/dist/cjs/internal/bar.js
CHANGED
|
@@ -9,17 +9,23 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
9
9
|
var _constants = require("../constants");
|
|
10
10
|
var _constants2 = require("./constants");
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
|
|
13
14
|
var progressBarStyles = (0, _react.css)({
|
|
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
|
|
14
16
|
height: _constants2.PROGRESS_BAR_HEIGHT,
|
|
15
17
|
position: 'absolute',
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
17
|
-
left: '50%',
|
|
18
18
|
backgroundColor: "var(--ds-background-brand-bold, ".concat(_colors.B300, ")"),
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
|
+
borderEndEndRadius: _constants2.PROGRESS_BAR_HEIGHT,
|
|
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
|
+
borderStartEndRadius: _constants2.PROGRESS_BAR_HEIGHT,
|
|
23
|
+
insetInlineStart: '50%',
|
|
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
|
|
21
25
|
transform: "translate(0, calc(-1 * ".concat(_constants2.LABEL_TOP_SPACING, "))"),
|
|
26
|
+
// 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
27
|
transition: "width var(".concat(_constants2.varTransitionSpeed, ") var(").concat(_constants2.varTransitionEasing, ")"),
|
|
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
|
|
23
29
|
transitionDelay: "var(".concat(_constants2.varTransitionDelay, ")")
|
|
24
30
|
});
|
|
25
31
|
|
|
@@ -35,7 +41,9 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
35
41
|
return (0, _react.jsx)("div", {
|
|
36
42
|
"data-testid": testId,
|
|
37
43
|
style: {
|
|
38
|
-
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
44
|
+
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
|
+
, " * calc(var(").concat(_constants2.varSpacing, ", ").concat(_constants.spacing.cosy, ") + ").concat(_constants2.HALF_GRID_SIZE, "))")
|
|
39
47
|
},
|
|
40
48
|
css: progressBarStyles
|
|
41
49
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.varTransitionSpeed = exports.varTransitionEasing = exports.varTransitionDelay = exports.varSpacing = exports.varMarkerColor = exports.varBackgroundColor = exports.TRANSITION_SPEED = exports.
|
|
6
|
+
exports.varTransitionSpeed = exports.varTransitionEasing = exports.varTransitionDelay = exports.varSpacing = exports.varMarkerColor = exports.varBackgroundColor = exports.TRANSITION_SPEED = exports.PROGRESS_BAR_HEIGHT = exports.LINEAR_TRANSITION_SPEED = exports.LABEL_TOP_SPACING = exports.HALF_GRID_SIZE = exports.ANIMATION_EASE_OUT = void 0;
|
|
7
7
|
var TRANSITION_SPEED = exports.TRANSITION_SPEED = 300;
|
|
8
8
|
var LINEAR_TRANSITION_SPEED = exports.LINEAR_TRANSITION_SPEED = 50;
|
|
9
9
|
var ANIMATION_EASE_OUT = exports.ANIMATION_EASE_OUT = 'cubic-bezier(0.15,1,0.3,1)';
|
|
@@ -13,10 +13,9 @@ 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 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
16
|
var HALF_GRID_SIZE = exports.HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
|
|
19
17
|
var PROGRESS_BAR_HEIGHT = exports.PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
|
|
20
18
|
|
|
21
|
-
// Labels sit 16px from bottom of progress bar
|
|
22
|
-
|
|
19
|
+
// Labels sit 16px from bottom of progress bar
|
|
20
|
+
// i.e. 8 (bar height) + 16 - 4 (line height 24->20 in PYX-695) = 20px
|
|
21
|
+
var LABEL_TOP_SPACING = exports.LABEL_TOP_SPACING = "var(--ds-space-250, 20px)";
|
|
@@ -8,6 +8,8 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
11
13
|
var linkStyles = (0, _react.css)({
|
|
12
14
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
13
15
|
cursor: 'pointer'
|
|
@@ -9,27 +9,41 @@ var _constants = require("./constants");
|
|
|
9
9
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
12
14
|
var progressMarkerStyles = (0, _react.css)({
|
|
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
|
|
13
16
|
width: _constants.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
|
|
14
18
|
height: _constants.PROGRESS_BAR_HEIGHT,
|
|
15
19
|
position: 'absolute',
|
|
16
|
-
// eslint-disable-next-line @atlaskit/
|
|
17
|
-
left: '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
|
|
18
21
|
backgroundColor: "var(".concat(_constants.varBackgroundColor, ")"),
|
|
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
|
|
19
23
|
borderRadius: _constants.PROGRESS_BAR_HEIGHT,
|
|
24
|
+
insetInlineStart: '50%',
|
|
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
|
|
20
26
|
transform: "translate(-50%, calc(-1 * ".concat(_constants.LABEL_TOP_SPACING, "))"),
|
|
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
|
|
21
28
|
transition: "opacity var(".concat(_constants.varTransitionSpeed, ") var(").concat(_constants.varTransitionEasing, "), background-color var(").concat(_constants.varTransitionSpeed, ") var(").concat(_constants.varTransitionEasing, ")"),
|
|
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
|
|
22
30
|
transitionDelay: "var(".concat(_constants.varTransitionDelay, ")"),
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
32
|
'&.fade-appear': {
|
|
24
33
|
opacity: 0.01
|
|
25
34
|
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
36
|
'&.fade-appear.fade-appear-active': {
|
|
27
37
|
opacity: 1
|
|
28
38
|
},
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
40
|
'&.fade-enter': {
|
|
41
|
+
// 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
42
|
backgroundColor: "var(".concat(_constants.varMarkerColor, ")")
|
|
31
43
|
},
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
45
|
'&.fade-enter.fade-enter-active': {
|
|
46
|
+
// 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
47
|
backgroundColor: "var(".concat(_constants.varBackgroundColor, ")")
|
|
34
48
|
}
|
|
35
49
|
});
|
|
@@ -23,7 +23,7 @@ var _utils = require("./utils");
|
|
|
23
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
26
|
-
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 */ /** @jsx jsx */
|
|
26
|
+
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 */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
27
|
var listItemContentStyles = (0, _primitives.xcss)({
|
|
28
28
|
width: '100%',
|
|
29
29
|
position: 'relative'
|
|
@@ -33,23 +33,20 @@ var listItemStyles = (0, _react2.css)({
|
|
|
33
33
|
overflowWrap: 'break-word'
|
|
34
34
|
});
|
|
35
35
|
var titleStyles = (0, _react2.css)({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
39
|
-
lineHeight: '16px',
|
|
36
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
37
|
+
marginBlockStart: _constants.LABEL_TOP_SPACING,
|
|
40
38
|
textAlign: 'center',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
40
|
'&.fade-appear': {
|
|
42
41
|
opacity: 0.01
|
|
43
42
|
},
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
44
|
'&.fade-appear.fade-appear-active': {
|
|
45
45
|
opacity: 1,
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
47
|
transition: "opacity var(".concat(_constants.varTransitionSpeed, ") cubic-bezier(0.2, 0, 0, 1)")
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
var textStyles = (0, _react2.css)({
|
|
50
|
-
fontSize: '14px',
|
|
51
|
-
lineHeight: '16px'
|
|
52
|
-
});
|
|
53
50
|
var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
54
51
|
(0, _inherits2.default)(ProgressTrackerStage, _PureComponent);
|
|
55
52
|
var _super = _createSuper(ProgressTrackerStage);
|
|
@@ -104,7 +101,9 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
104
101
|
var ariaCurrent = item.status === 'current' ? 'step' : 'false';
|
|
105
102
|
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)), _listInlineStyles);
|
|
106
103
|
return (0, _react2.jsx)("li", {
|
|
107
|
-
"data-testid": testId
|
|
104
|
+
"data-testid": testId
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
106
|
+
,
|
|
108
107
|
style: listInlineStyles,
|
|
109
108
|
css: listItemStyles,
|
|
110
109
|
"aria-current": ariaCurrent
|
|
@@ -134,9 +133,7 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
134
133
|
timeout: transitionDelay + transitionSpeed,
|
|
135
134
|
classNames: "fade"
|
|
136
135
|
}, (0, _react2.jsx)("div", {
|
|
137
|
-
css: titleStyles
|
|
138
|
-
}, (0, _react2.jsx)("span", {
|
|
139
|
-
css: textStyles,
|
|
136
|
+
css: titleStyles,
|
|
140
137
|
style: {
|
|
141
138
|
color: (0, _utils.getTextColor)(item.status),
|
|
142
139
|
fontWeight: (0, _utils.getFontWeight)(item.status)
|
|
@@ -144,7 +141,7 @@ var ProgressTrackerStage = exports.default = /*#__PURE__*/function (_PureCompone
|
|
|
144
141
|
"data-testid": testId && "".concat(testId, "-title")
|
|
145
142
|
}, this.shouldShowLink() ? render.link({
|
|
146
143
|
item: item
|
|
147
|
-
}) : item.label))))
|
|
144
|
+
}) : item.label))));
|
|
148
145
|
}
|
|
149
146
|
}]);
|
|
150
147
|
return ProgressTrackerStage;
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getTextColor = exports.getMarkerColor = exports.getFontWeight = void 0;
|
|
7
7
|
var _colors = require("@atlaskit/theme/colors");
|
|
8
|
-
var _constants = require("./constants");
|
|
9
8
|
var getMarkerColor = exports.getMarkerColor = function getMarkerColor(status) {
|
|
10
9
|
switch (status) {
|
|
11
10
|
case 'unvisited':
|
|
@@ -35,11 +34,11 @@ var getTextColor = exports.getTextColor = function getTextColor(status) {
|
|
|
35
34
|
var getFontWeight = exports.getFontWeight = function getFontWeight(status) {
|
|
36
35
|
switch (status) {
|
|
37
36
|
case 'unvisited':
|
|
38
|
-
return
|
|
37
|
+
return "var(--ds-font-weight-regular, 400)";
|
|
39
38
|
case 'current':
|
|
40
39
|
case 'visited':
|
|
41
40
|
case 'disabled':
|
|
42
|
-
return
|
|
41
|
+
return "var(--ds-font-weight-semibold, 600)";
|
|
43
42
|
default:
|
|
44
43
|
return undefined;
|
|
45
44
|
}
|
|
@@ -21,16 +21,17 @@ var _stage = _interopRequireDefault(require("./internal/stage"));
|
|
|
21
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/no-nested-styles */ /** @jsx jsx */
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/no-nested-styles */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var containerStyles = (0, _react2.css)({
|
|
26
26
|
display: 'grid',
|
|
27
27
|
width: '100%',
|
|
28
28
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
29
29
|
margin: '0 auto',
|
|
30
30
|
padding: "var(--ds-space-0, 0px)",
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
31
|
+
// 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
|
|
32
32
|
gap: "var(".concat(_constants2.varSpacing, ")"),
|
|
33
33
|
listStyleType: 'none',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
35
|
'&&': {
|
|
35
36
|
marginBlockStart: "var(--ds-space-500, 40px)"
|
|
36
37
|
}
|
|
@@ -120,7 +121,9 @@ var ProgressTracker = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
120
121
|
gridTemplateColumns: "repeat(".concat(items.length, ", 1fr)")
|
|
121
122
|
}, (0, _defineProperty2.default)(_listInlineStyles, _constants2.varSpacing, _constants.spacing[this.props.spacing]), (0, _defineProperty2.default)(_listInlineStyles, "maxWidth", 8 * 10 * items.length * 2), _listInlineStyles);
|
|
122
123
|
return (0, _react2.jsx)("ul", {
|
|
123
|
-
"data-testid": testId
|
|
124
|
+
"data-testid": testId
|
|
125
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
126
|
+
,
|
|
124
127
|
style: listInlineStyles,
|
|
125
128
|
css: containerStyles,
|
|
126
129
|
"aria-label": label
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { B300 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { spacing } from '../constants';
|
|
5
6
|
import { HALF_GRID_SIZE, LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varSpacing, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
6
7
|
const progressBarStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
height: PROGRESS_BAR_HEIGHT,
|
|
8
10
|
position: 'absolute',
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
10
|
-
left: '50%',
|
|
11
11
|
backgroundColor: `var(--ds-background-brand-bold, ${B300})`,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
+
borderEndEndRadius: PROGRESS_BAR_HEIGHT,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
+
borderStartEndRadius: PROGRESS_BAR_HEIGHT,
|
|
16
|
+
insetInlineStart: '50%',
|
|
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
|
|
14
18
|
transform: `translate(0, calc(-1 * ${LABEL_TOP_SPACING}))`,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
20
|
transition: `width var(${varTransitionSpeed}) var(${varTransitionEasing})`,
|
|
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
|
|
16
22
|
transitionDelay: `var(${varTransitionDelay})`
|
|
17
23
|
});
|
|
18
24
|
|
|
@@ -28,7 +34,9 @@ const ProgressBar = ({
|
|
|
28
34
|
}) => jsx("div", {
|
|
29
35
|
"data-testid": testId,
|
|
30
36
|
style: {
|
|
31
|
-
width: `calc(${percentageComplete}% + ${percentageComplete / 100
|
|
37
|
+
width: `calc(${percentageComplete}% + ${percentageComplete / 100
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
+
} * calc(var(${varSpacing}, ${spacing.cosy}) + ${HALF_GRID_SIZE}))`
|
|
32
40
|
},
|
|
33
41
|
css: progressBarStyles
|
|
34
42
|
});
|
|
@@ -7,10 +7,9 @@ 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 REGULAR_FONT_WEIGHT = "var(--ds-font-weight-regular, 400)";
|
|
11
|
-
export const SEMI_BOLD_FONT_WEIGHT = "var(--ds-font-weight-semibold, 600)";
|
|
12
10
|
export const HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
|
|
13
11
|
export const PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
|
|
14
12
|
|
|
15
|
-
// Labels sit 16px from bottom of progress bar
|
|
16
|
-
|
|
13
|
+
// Labels sit 16px from bottom of progress bar
|
|
14
|
+
// i.e. 8 (bar height) + 16 - 4 (line height 24->20 in PYX-695) = 20px
|
|
15
|
+
export const LABEL_TOP_SPACING = "var(--ds-space-250, 20px)";
|
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
6
7
|
const progressMarkerStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
width: PROGRESS_BAR_HEIGHT,
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
11
|
height: PROGRESS_BAR_HEIGHT,
|
|
9
12
|
position: 'absolute',
|
|
10
|
-
// eslint-disable-next-line @atlaskit/
|
|
11
|
-
left: '50%',
|
|
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
|
|
12
14
|
backgroundColor: `var(${varBackgroundColor})`,
|
|
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
|
|
13
16
|
borderRadius: PROGRESS_BAR_HEIGHT,
|
|
17
|
+
insetInlineStart: '50%',
|
|
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
|
|
14
19
|
transform: `translate(-50%, calc(-1 * ${LABEL_TOP_SPACING}))`,
|
|
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
|
|
15
21
|
transition: `opacity var(${varTransitionSpeed}) var(${varTransitionEasing}), background-color var(${varTransitionSpeed}) var(${varTransitionEasing})`,
|
|
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
|
|
16
23
|
transitionDelay: `var(${varTransitionDelay})`,
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
25
|
'&.fade-appear': {
|
|
18
26
|
opacity: 0.01
|
|
19
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
29
|
'&.fade-appear.fade-appear-active': {
|
|
21
30
|
opacity: 1
|
|
22
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
33
|
'&.fade-enter': {
|
|
34
|
+
// 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
35
|
backgroundColor: `var(${varMarkerColor})`
|
|
25
36
|
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
38
|
'&.fade-enter.fade-enter-active': {
|
|
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
|
|
27
40
|
backgroundColor: `var(${varBackgroundColor})`
|
|
28
41
|
}
|
|
29
42
|
});
|
|
@@ -2,6 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import { CSSTransition } from 'react-transition-group';
|
|
7
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -18,23 +20,20 @@ const listItemStyles = css({
|
|
|
18
20
|
overflowWrap: 'break-word'
|
|
19
21
|
});
|
|
20
22
|
const titleStyles = css({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
24
|
-
lineHeight: '16px',
|
|
23
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
24
|
+
marginBlockStart: LABEL_TOP_SPACING,
|
|
25
25
|
textAlign: 'center',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
27
|
'&.fade-appear': {
|
|
27
28
|
opacity: 0.01
|
|
28
29
|
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
31
|
'&.fade-appear.fade-appear-active': {
|
|
30
32
|
opacity: 1,
|
|
33
|
+
// 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
34
|
transition: `opacity var(${varTransitionSpeed}) cubic-bezier(0.2, 0, 0, 1)`
|
|
32
35
|
}
|
|
33
36
|
});
|
|
34
|
-
const textStyles = css({
|
|
35
|
-
fontSize: '14px',
|
|
36
|
-
lineHeight: '16px'
|
|
37
|
-
});
|
|
38
37
|
export default class ProgressTrackerStage extends PureComponent {
|
|
39
38
|
constructor(props) {
|
|
40
39
|
super(props);
|
|
@@ -84,7 +83,9 @@ export default class ProgressTrackerStage extends PureComponent {
|
|
|
84
83
|
[varBackgroundColor]: getMarkerColor(item.status)
|
|
85
84
|
};
|
|
86
85
|
return jsx("li", {
|
|
87
|
-
"data-testid": testId
|
|
86
|
+
"data-testid": testId
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
88
|
+
,
|
|
88
89
|
style: listInlineStyles,
|
|
89
90
|
css: listItemStyles,
|
|
90
91
|
"aria-current": ariaCurrent
|
|
@@ -114,9 +115,7 @@ export default class ProgressTrackerStage extends PureComponent {
|
|
|
114
115
|
timeout: transitionDelay + transitionSpeed,
|
|
115
116
|
classNames: "fade"
|
|
116
117
|
}, jsx("div", {
|
|
117
|
-
css: titleStyles
|
|
118
|
-
}, jsx("span", {
|
|
119
|
-
css: textStyles,
|
|
118
|
+
css: titleStyles,
|
|
120
119
|
style: {
|
|
121
120
|
color: getTextColor(item.status),
|
|
122
121
|
fontWeight: getFontWeight(item.status)
|
|
@@ -124,6 +123,6 @@ export default class ProgressTrackerStage extends PureComponent {
|
|
|
124
123
|
"data-testid": testId && `${testId}-title`
|
|
125
124
|
}, this.shouldShowLink() ? render.link({
|
|
126
125
|
item
|
|
127
|
-
}) : item.label))))
|
|
126
|
+
}) : item.label))));
|
|
128
127
|
}
|
|
129
128
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { B300, N70 } from '@atlaskit/theme/colors';
|
|
2
|
-
import { REGULAR_FONT_WEIGHT, SEMI_BOLD_FONT_WEIGHT } from './constants';
|
|
3
2
|
export const getMarkerColor = status => {
|
|
4
3
|
switch (status) {
|
|
5
4
|
case 'unvisited':
|
|
@@ -29,11 +28,11 @@ export const getTextColor = status => {
|
|
|
29
28
|
export const getFontWeight = status => {
|
|
30
29
|
switch (status) {
|
|
31
30
|
case 'unvisited':
|
|
32
|
-
return
|
|
31
|
+
return "var(--ds-font-weight-regular, 400)";
|
|
33
32
|
case 'current':
|
|
34
33
|
case 'visited':
|
|
35
34
|
case 'disabled':
|
|
36
|
-
return
|
|
35
|
+
return "var(--ds-font-weight-semibold, 600)";
|
|
37
36
|
default:
|
|
38
37
|
return undefined;
|
|
39
38
|
}
|
|
@@ -2,6 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import { spacing } from './constants';
|
|
7
9
|
import { ANIMATION_EASE_OUT, LINEAR_TRANSITION_SPEED, TRANSITION_SPEED, varSpacing } from './internal/constants';
|
|
@@ -13,9 +15,10 @@ const containerStyles = css({
|
|
|
13
15
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
14
16
|
margin: '0 auto',
|
|
15
17
|
padding: "var(--ds-space-0, 0px)",
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
18
|
+
// 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
|
|
17
19
|
gap: `var(${varSpacing})`,
|
|
18
20
|
listStyleType: 'none',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
19
22
|
'&&': {
|
|
20
23
|
marginBlockStart: "var(--ds-space-500, 40px)"
|
|
21
24
|
}
|
|
@@ -84,7 +87,9 @@ export default class ProgressTracker extends PureComponent {
|
|
|
84
87
|
maxWidth: 8 * 10 * items.length * 2
|
|
85
88
|
};
|
|
86
89
|
return jsx("ul", {
|
|
87
|
-
"data-testid": testId
|
|
90
|
+
"data-testid": testId
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
92
|
+
,
|
|
88
93
|
style: listInlineStyles,
|
|
89
94
|
css: containerStyles,
|
|
90
95
|
"aria-label": label
|
package/dist/esm/internal/bar.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { B300 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { spacing } from '../constants';
|
|
5
6
|
import { HALF_GRID_SIZE, LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varSpacing, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
6
7
|
var progressBarStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
height: PROGRESS_BAR_HEIGHT,
|
|
8
10
|
position: 'absolute',
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
10
|
-
left: '50%',
|
|
11
11
|
backgroundColor: "var(--ds-background-brand-bold, ".concat(B300, ")"),
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
+
borderEndEndRadius: PROGRESS_BAR_HEIGHT,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
+
borderStartEndRadius: PROGRESS_BAR_HEIGHT,
|
|
16
|
+
insetInlineStart: '50%',
|
|
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
|
|
14
18
|
transform: "translate(0, calc(-1 * ".concat(LABEL_TOP_SPACING, "))"),
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
20
|
transition: "width var(".concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, ")"),
|
|
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
|
|
16
22
|
transitionDelay: "var(".concat(varTransitionDelay, ")")
|
|
17
23
|
});
|
|
18
24
|
|
|
@@ -28,7 +34,9 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
28
34
|
return jsx("div", {
|
|
29
35
|
"data-testid": testId,
|
|
30
36
|
style: {
|
|
31
|
-
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
37
|
+
width: "calc(".concat(percentageComplete, "% + ").concat(percentageComplete / 100
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
+
, " * calc(var(").concat(varSpacing, ", ").concat(spacing.cosy, ") + ").concat(HALF_GRID_SIZE, "))")
|
|
32
40
|
},
|
|
33
41
|
css: progressBarStyles
|
|
34
42
|
});
|
|
@@ -7,10 +7,9 @@ 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 REGULAR_FONT_WEIGHT = "var(--ds-font-weight-regular, 400)";
|
|
11
|
-
export var SEMI_BOLD_FONT_WEIGHT = "var(--ds-font-weight-semibold, 600)";
|
|
12
10
|
export var HALF_GRID_SIZE = "var(--ds-space-050, 4px)";
|
|
13
11
|
export var PROGRESS_BAR_HEIGHT = "var(--ds-space-100, 8px)";
|
|
14
12
|
|
|
15
|
-
// Labels sit 16px from bottom of progress bar
|
|
16
|
-
|
|
13
|
+
// Labels sit 16px from bottom of progress bar
|
|
14
|
+
// i.e. 8 (bar height) + 16 - 4 (line height 24->20 in PYX-695) = 20px
|
|
15
|
+
export var LABEL_TOP_SPACING = "var(--ds-space-250, 20px)";
|
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { LABEL_TOP_SPACING, PROGRESS_BAR_HEIGHT, varBackgroundColor, varMarkerColor, varTransitionDelay, varTransitionEasing, varTransitionSpeed } from './constants';
|
|
6
7
|
var progressMarkerStyles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
width: PROGRESS_BAR_HEIGHT,
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
11
|
height: PROGRESS_BAR_HEIGHT,
|
|
9
12
|
position: 'absolute',
|
|
10
|
-
// eslint-disable-next-line @atlaskit/
|
|
11
|
-
left: '50%',
|
|
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
|
|
12
14
|
backgroundColor: "var(".concat(varBackgroundColor, ")"),
|
|
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
|
|
13
16
|
borderRadius: PROGRESS_BAR_HEIGHT,
|
|
17
|
+
insetInlineStart: '50%',
|
|
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
|
|
14
19
|
transform: "translate(-50%, calc(-1 * ".concat(LABEL_TOP_SPACING, "))"),
|
|
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
|
|
15
21
|
transition: "opacity var(".concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, "), background-color var(").concat(varTransitionSpeed, ") var(").concat(varTransitionEasing, ")"),
|
|
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
|
|
16
23
|
transitionDelay: "var(".concat(varTransitionDelay, ")"),
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
25
|
'&.fade-appear': {
|
|
18
26
|
opacity: 0.01
|
|
19
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
29
|
'&.fade-appear.fade-appear-active': {
|
|
21
30
|
opacity: 1
|
|
22
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
33
|
'&.fade-enter': {
|
|
34
|
+
// 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
35
|
backgroundColor: "var(".concat(varMarkerColor, ")")
|
|
25
36
|
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
38
|
'&.fade-enter.fade-enter-active': {
|
|
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
|
|
27
40
|
backgroundColor: "var(".concat(varBackgroundColor, ")")
|
|
28
41
|
}
|
|
29
42
|
});
|