@atlaskit/progress-tracker 8.0.3 → 8.2.0

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 (65) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/constants.js +4 -2
  3. package/dist/cjs/index.js +2 -2
  4. package/dist/cjs/internal/bar.js +48 -0
  5. package/dist/cjs/internal/constants.js +38 -0
  6. package/dist/cjs/internal/link.js +35 -0
  7. package/dist/cjs/internal/marker.js +53 -0
  8. package/dist/cjs/internal/stage.js +174 -0
  9. package/dist/cjs/internal/types.js +5 -0
  10. package/dist/cjs/internal/utils.js +65 -0
  11. package/dist/cjs/{ProgressTracker/index.js → progress-tracker.js} +46 -44
  12. package/dist/cjs/version.json +1 -1
  13. package/dist/es2019/constants.js +6 -4
  14. package/dist/es2019/index.js +1 -1
  15. package/dist/es2019/internal/bar.js +35 -0
  16. package/dist/es2019/internal/constants.js +16 -0
  17. package/dist/es2019/internal/link.js +24 -0
  18. package/dist/es2019/internal/marker.js +42 -0
  19. package/dist/es2019/internal/stage.js +130 -0
  20. package/dist/es2019/internal/types.js +1 -0
  21. package/dist/es2019/internal/utils.js +48 -0
  22. package/dist/es2019/{ProgressTracker/index.js → progress-tracker.js} +47 -32
  23. package/dist/es2019/version.json +1 -1
  24. package/dist/esm/constants.js +6 -4
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/internal/bar.js +36 -0
  27. package/dist/esm/internal/constants.js +16 -0
  28. package/dist/esm/internal/link.js +25 -0
  29. package/dist/esm/internal/marker.js +43 -0
  30. package/dist/esm/{ProgressTrackerStage/index.js → internal/stage.js} +72 -91
  31. package/dist/esm/internal/types.js +1 -0
  32. package/dist/esm/internal/utils.js +48 -0
  33. package/dist/esm/{ProgressTracker/index.js → progress-tracker.js} +48 -38
  34. package/dist/esm/version.json +1 -1
  35. package/dist/types/constants.d.ts +9 -2
  36. package/dist/types/index.d.ts +2 -2
  37. package/dist/types/internal/bar.d.ts +13 -0
  38. package/dist/types/internal/constants.d.ts +14 -0
  39. package/dist/types/internal/link.d.ts +10 -0
  40. package/dist/types/internal/marker.d.ts +11 -0
  41. package/dist/types/internal/stage.d.ts +17 -0
  42. package/dist/types/internal/types.d.ts +27 -0
  43. package/dist/types/internal/utils.d.ts +4 -0
  44. package/dist/types/{ProgressTracker/index.d.ts → progress-tracker.d.ts} +22 -13
  45. package/dist/types/types.d.ts +11 -4
  46. package/package.json +23 -11
  47. package/dist/cjs/ProgressTracker/styled.js +0 -20
  48. package/dist/cjs/ProgressTrackerLink/index.js +0 -60
  49. package/dist/cjs/ProgressTrackerLink/styled.js +0 -22
  50. package/dist/cjs/ProgressTrackerStage/index.js +0 -199
  51. package/dist/cjs/ProgressTrackerStage/styled.js +0 -133
  52. package/dist/es2019/ProgressTracker/styled.js +0 -13
  53. package/dist/es2019/ProgressTrackerLink/index.js +0 -16
  54. package/dist/es2019/ProgressTrackerLink/styled.js +0 -7
  55. package/dist/es2019/ProgressTrackerStage/index.js +0 -143
  56. package/dist/es2019/ProgressTrackerStage/styled.js +0 -140
  57. package/dist/esm/ProgressTracker/styled.js +0 -7
  58. package/dist/esm/ProgressTrackerLink/index.js +0 -42
  59. package/dist/esm/ProgressTrackerLink/styled.js +0 -8
  60. package/dist/esm/ProgressTrackerStage/styled.js +0 -107
  61. package/dist/types/ProgressTracker/styled.d.ts +0 -3
  62. package/dist/types/ProgressTrackerLink/index.d.ts +0 -10
  63. package/dist/types/ProgressTrackerLink/styled.d.ts +0 -3
  64. package/dist/types/ProgressTrackerStage/index.d.ts +0 -27
  65. package/dist/types/ProgressTrackerStage/styled.d.ts +0 -28
@@ -1,143 +0,0 @@
1
- import React, { PureComponent } from 'react';
2
- import { CSSTransition } from 'react-transition-group';
3
- import * as colors from '@atlaskit/theme/colors';
4
- import { ProgressTrackerListItem, ProgressTrackerStageBar, ProgressTrackerStageContainer, ProgressTrackerStageMarker, ProgressTrackerStageTitle } from './styled';
5
- const semibold = '600';
6
- const regular = '400';
7
-
8
- const getMarkerColor = status => {
9
- switch (status) {
10
- case 'unvisited':
11
- return colors.N70;
12
-
13
- case 'current':
14
- case 'visited':
15
- case 'disabled':
16
- return colors.B300;
17
-
18
- default:
19
- return;
20
- }
21
- };
22
-
23
- const getTextColor = status => {
24
- switch (status) {
25
- case 'unvisited':
26
- return colors.N300;
27
-
28
- case 'current':
29
- return colors.B300;
30
-
31
- case 'visited':
32
- return colors.N800;
33
-
34
- case 'disabled':
35
- return colors.N70;
36
-
37
- default:
38
- return;
39
- }
40
- };
41
-
42
- const getFontWeight = status => {
43
- switch (status) {
44
- case 'unvisited':
45
- return regular;
46
-
47
- case 'current':
48
- case 'visited':
49
- case 'disabled':
50
- return semibold;
51
-
52
- default:
53
- return;
54
- }
55
- };
56
-
57
- export default class ProgressTrackerStage extends PureComponent {
58
- constructor(props) {
59
- super(props);
60
- this.state = {
61
- transitioning: false,
62
- oldMarkerColor: getMarkerColor(this.props.item.status),
63
- oldPercentageComplete: 0
64
- };
65
- }
66
-
67
- UNSAFE_componentWillMount() {
68
- this.setState({ ...this.state,
69
- transitioning: true
70
- });
71
- }
72
-
73
- UNSAFE_componentWillReceiveProps() {
74
- this.setState({ ...this.state,
75
- transitioning: true
76
- });
77
- }
78
-
79
- shouldShowLink() {
80
- return this.props.item.status === 'visited' && !this.props.item.noLink;
81
- }
82
-
83
- render() {
84
- const {
85
- item,
86
- render,
87
- transitionDelay,
88
- transitionSpeed,
89
- transitionEasing
90
- } = this.props;
91
-
92
- const onEntered = () => {
93
- this.setState({
94
- transitioning: false,
95
- oldMarkerColor: getMarkerColor(item.status),
96
- oldPercentageComplete: item.percentageComplete
97
- });
98
- };
99
-
100
- const ariaCurrent = item.status === 'current' ? 'step' : 'false';
101
- return /*#__PURE__*/React.createElement(ProgressTrackerListItem, {
102
- "aria-current": ariaCurrent
103
- }, /*#__PURE__*/React.createElement(ProgressTrackerStageContainer, null, /*#__PURE__*/React.createElement(CSSTransition, {
104
- appear: true,
105
- in: this.state.transitioning,
106
- onEntered: onEntered,
107
- timeout: transitionDelay + transitionSpeed,
108
- classNames: "fade"
109
- }, /*#__PURE__*/React.createElement(ProgressTrackerStageMarker, {
110
- oldMarkerColor: this.state.oldMarkerColor,
111
- color: getMarkerColor(item.status),
112
- transitionSpeed: transitionSpeed,
113
- transitionDelay: transitionDelay,
114
- transitionEasing: transitionEasing
115
- })), /*#__PURE__*/React.createElement(CSSTransition, {
116
- appear: true,
117
- in: this.state.transitioning,
118
- onEntered: onEntered,
119
- timeout: transitionDelay + transitionSpeed,
120
- classNames: "fade"
121
- }, /*#__PURE__*/React.createElement(ProgressTrackerStageBar, {
122
- oldPercentageComplete: this.state.oldPercentageComplete,
123
- percentageComplete: item.percentageComplete,
124
- transitionSpeed: transitionSpeed,
125
- transitionDelay: transitionDelay,
126
- transitionEasing: transitionEasing
127
- })), /*#__PURE__*/React.createElement(CSSTransition, {
128
- appear: true,
129
- in: this.state.transitioning,
130
- onEntered: onEntered,
131
- timeout: transitionDelay + transitionSpeed,
132
- classNames: "fade"
133
- }, /*#__PURE__*/React.createElement(ProgressTrackerStageTitle, {
134
- color: getTextColor(item.status),
135
- fontweight: getFontWeight(item.status),
136
- transitionSpeed: transitionSpeed,
137
- transitionDelay: transitionDelay
138
- }, this.shouldShowLink() ? render.link({
139
- item
140
- }) : item.label))));
141
- }
142
-
143
- }
@@ -1,140 +0,0 @@
1
- import styled from 'styled-components';
2
- import { B300 } from '@atlaskit/theme/colors';
3
- import { fontSize, gridSize } from '@atlaskit/theme/constants';
4
- import { spacing } from '../constants';
5
- const halfGridSize = gridSize() / 2;
6
- const progressBarHeight = gridSize();
7
- const labelTopSpacing = gridSize() + 20; // Labels sit 20px from bottom of progress bar.
8
-
9
- export const ProgressTrackerStageContainer = styled.div`
10
- position: relative;
11
- width: 100%;
12
- `;
13
- export const ProgressTrackerStageMarker = styled.div`
14
- position: absolute;
15
- left: 50%;
16
- transform: translate(-50%, -${labelTopSpacing}px);
17
- background-color: ${props => props.color};
18
- height: ${progressBarHeight}px;
19
- width: ${progressBarHeight}px;
20
- border-radius: ${progressBarHeight}px;
21
-
22
- &.fade-appear {
23
- opacity: 0.01;
24
- }
25
-
26
- &.fade-appear.fade-appear-active {
27
- opacity: 1;
28
- transition: opacity ${props => props.transitionSpeed}ms
29
- ${props => props.transitionEasing};
30
- transition-delay: ${props => props.transitionDelay}ms;
31
- }
32
-
33
- &.fade-enter {
34
- background-color: ${props => props.oldMarkerColor};
35
- }
36
-
37
- &.fade-enter.fade-enter-active {
38
- background-color: ${props => props.color};
39
- transition: background-color ${props => props.transitionSpeed}ms
40
- ${props => props.transitionEasing};
41
- transition-delay: ${props => props.transitionDelay}ms;
42
- }
43
- `;
44
- export const ProgressTrackerStageBar = styled.div`
45
- position: absolute;
46
- left: 50%;
47
- transform: translate(0, -${labelTopSpacing}px);
48
- background-color: ${B300};
49
- height: ${progressBarHeight}px;
50
- width: calc(
51
- ${props => props.percentageComplete}% +
52
- ${props => props.percentageComplete} / 100 *
53
- ${props => halfGridSize + spacing[props.theme.spacing]}px
54
- ); /* account for spacing and radius of marker */
55
- border-top-right-radius: ${gridSize}px;
56
- border-bottom-right-radius: ${gridSize}px;
57
-
58
- &.fade-appear {
59
- width: calc(
60
- ${props => props.oldPercentageComplete}% +
61
- ${props => props.oldPercentageComplete} / 100 *
62
- ${props => halfGridSize + spacing[props.theme.spacing]}px
63
- ); /* account for spacing and radius of marker */
64
- }
65
-
66
- &.fade-appear.fade-appear-active {
67
- width: calc(
68
- ${props => props.percentageComplete}% +
69
- ${props => props.percentageComplete} / 100 *
70
- ${props => halfGridSize + spacing[props.theme.spacing]}px
71
- ); /* account for spacing and radius of marker */
72
- transition: width ${props => props.transitionSpeed}ms
73
- ${props => props.transitionEasing};
74
- transition-delay: ${props => props.transitionDelay}ms;
75
- }
76
-
77
- &.fade-enter {
78
- width: calc(
79
- ${props => props.oldPercentageComplete}% +
80
- ${props => props.oldPercentageComplete} / 100 *
81
- ${props => halfGridSize + spacing[props.theme.spacing]}px
82
- ); /* account for spacing and radius of marker */
83
- }
84
-
85
- &.fade-enter.fade-enter-active {
86
- width: calc(
87
- ${props => props.percentageComplete}% +
88
- ${props => props.percentageComplete} / 100 *
89
- ${props => halfGridSize + spacing[props.theme.spacing]}px
90
- ); /* account for spacing and radius of marker */
91
- transition: width ${props => props.transitionSpeed}ms
92
- ${props => props.transitionEasing};
93
- transition-delay: ${props => props.transitionDelay}ms;
94
- }
95
- `;
96
- export const ProgressTrackerStageTitle = styled.div`
97
- font-weight: ${props => props.fontweight};
98
- line-height: 16px;
99
- color: ${props => props.color};
100
- text-align: center;
101
- font-size: ${fontSize}px;
102
- margin-left: auto;
103
- margin-right: auto;
104
- margin-top: ${labelTopSpacing}px;
105
-
106
- &.fade-appear {
107
- opacity: 0.01;
108
- }
109
-
110
- &.fade-appear.fade-appear-active {
111
- opacity: 1;
112
- transition: opacity ${props => props.transitionSpeed}ms
113
- cubic-bezier(0.2, 0, 0, 1);
114
- }
115
- `;
116
-
117
- // Copied styles of GridColumn from @atlaskit/page
118
- const availableColumns = props => props.theme.columns;
119
-
120
- const columns = props => Math.min(availableColumns(props), 2);
121
-
122
- const gridSpacing = props => spacing[props.theme.spacing];
123
-
124
- const getMaxWidthColumnRatio = props => {
125
- if (columns(props) >= availableColumns(props)) {
126
- return '100%';
127
- }
128
-
129
- return `99.9999% / ${availableColumns(props)} * ${columns(props)}`;
130
- };
131
-
132
- export const ProgressTrackerListItem = styled.li`
133
- flex-grow: 1;
134
- flex-shrink: 0;
135
- margin: 0 ${props => spacing[props.theme.spacing] / 2}px;
136
- word-wrap: break-word;
137
-
138
- max-width: calc(${getMaxWidthColumnRatio} - ${gridSpacing}px);
139
- min-width: calc(99.9999% / ${availableColumns} - ${gridSpacing}px);
140
- `;
@@ -1,7 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
- var _templateObject;
4
-
5
- import styled from 'styled-components';
6
- export var ProgressTrackerContainer = styled.ul(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n\n && {\n margin-top: 40px;\n }\n\n list-style-type: none;\n padding: 0px;\n"])));
7
- export default ProgressTrackerContainer;
@@ -1,42 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/createClass";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
-
7
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
-
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
-
11
- import React, { PureComponent } from 'react';
12
- import { Link } from './styled';
13
-
14
- var ProgressTrackerLink = /*#__PURE__*/function (_PureComponent) {
15
- _inherits(ProgressTrackerLink, _PureComponent);
16
-
17
- var _super = _createSuper(ProgressTrackerLink);
18
-
19
- function ProgressTrackerLink() {
20
- _classCallCheck(this, ProgressTrackerLink);
21
-
22
- return _super.apply(this, arguments);
23
- }
24
-
25
- _createClass(ProgressTrackerLink, [{
26
- key: "render",
27
- value: function render() {
28
- var _this$props$item = this.props.item,
29
- href = _this$props$item.href,
30
- onClick = _this$props$item.onClick,
31
- label = _this$props$item.label;
32
- return /*#__PURE__*/React.createElement(Link, {
33
- href: href,
34
- onClick: onClick
35
- }, label);
36
- }
37
- }]);
38
-
39
- return ProgressTrackerLink;
40
- }(PureComponent);
41
-
42
- export { ProgressTrackerLink as default };
@@ -1,8 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
- var _templateObject;
4
-
5
- import styled from 'styled-components';
6
- import { N800 } from '@atlaskit/theme/colors';
7
- export var Link = styled.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n color: ", ";\n"])), N800);
8
- export default Link;
@@ -1,107 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
4
-
5
- import styled from 'styled-components';
6
- import { B300 } from '@atlaskit/theme/colors';
7
- import { fontSize, gridSize } from '@atlaskit/theme/constants';
8
- import { spacing } from '../constants';
9
- var halfGridSize = gridSize() / 2;
10
- var progressBarHeight = gridSize();
11
- var labelTopSpacing = gridSize() + 20; // Labels sit 20px from bottom of progress bar.
12
-
13
- export var ProgressTrackerStageContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n"])));
14
- export var ProgressTrackerStageMarker = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n left: 50%;\n transform: translate(-50%, -", "px);\n background-color: ", ";\n height: ", "px;\n width: ", "px;\n border-radius: ", "px;\n\n &.fade-appear {\n opacity: 0.01;\n }\n\n &.fade-appear.fade-appear-active {\n opacity: 1;\n transition: opacity ", "ms\n ", ";\n transition-delay: ", "ms;\n }\n\n &.fade-enter {\n background-color: ", ";\n }\n\n &.fade-enter.fade-enter-active {\n background-color: ", ";\n transition: background-color ", "ms\n ", ";\n transition-delay: ", "ms;\n }\n"])), labelTopSpacing, function (props) {
15
- return props.color;
16
- }, progressBarHeight, progressBarHeight, progressBarHeight, function (props) {
17
- return props.transitionSpeed;
18
- }, function (props) {
19
- return props.transitionEasing;
20
- }, function (props) {
21
- return props.transitionDelay;
22
- }, function (props) {
23
- return props.oldMarkerColor;
24
- }, function (props) {
25
- return props.color;
26
- }, function (props) {
27
- return props.transitionSpeed;
28
- }, function (props) {
29
- return props.transitionEasing;
30
- }, function (props) {
31
- return props.transitionDelay;
32
- });
33
- export var ProgressTrackerStageBar = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n left: 50%;\n transform: translate(0, -", "px);\n background-color: ", ";\n height: ", "px;\n width: calc(\n ", "% +\n ", " / 100 *\n ", "px\n ); /* account for spacing and radius of marker */\n border-top-right-radius: ", "px;\n border-bottom-right-radius: ", "px;\n\n &.fade-appear {\n width: calc(\n ", "% +\n ", " / 100 *\n ", "px\n ); /* account for spacing and radius of marker */\n }\n\n &.fade-appear.fade-appear-active {\n width: calc(\n ", "% +\n ", " / 100 *\n ", "px\n ); /* account for spacing and radius of marker */\n transition: width ", "ms\n ", ";\n transition-delay: ", "ms;\n }\n\n &.fade-enter {\n width: calc(\n ", "% +\n ", " / 100 *\n ", "px\n ); /* account for spacing and radius of marker */\n }\n\n &.fade-enter.fade-enter-active {\n width: calc(\n ", "% +\n ", " / 100 *\n ", "px\n ); /* account for spacing and radius of marker */\n transition: width ", "ms\n ", ";\n transition-delay: ", "ms;\n }\n"])), labelTopSpacing, B300, progressBarHeight, function (props) {
34
- return props.percentageComplete;
35
- }, function (props) {
36
- return props.percentageComplete;
37
- }, function (props) {
38
- return halfGridSize + spacing[props.theme.spacing];
39
- }, gridSize, gridSize, function (props) {
40
- return props.oldPercentageComplete;
41
- }, function (props) {
42
- return props.oldPercentageComplete;
43
- }, function (props) {
44
- return halfGridSize + spacing[props.theme.spacing];
45
- }, function (props) {
46
- return props.percentageComplete;
47
- }, function (props) {
48
- return props.percentageComplete;
49
- }, function (props) {
50
- return halfGridSize + spacing[props.theme.spacing];
51
- }, function (props) {
52
- return props.transitionSpeed;
53
- }, function (props) {
54
- return props.transitionEasing;
55
- }, function (props) {
56
- return props.transitionDelay;
57
- }, function (props) {
58
- return props.oldPercentageComplete;
59
- }, function (props) {
60
- return props.oldPercentageComplete;
61
- }, function (props) {
62
- return halfGridSize + spacing[props.theme.spacing];
63
- }, function (props) {
64
- return props.percentageComplete;
65
- }, function (props) {
66
- return props.percentageComplete;
67
- }, function (props) {
68
- return halfGridSize + spacing[props.theme.spacing];
69
- }, function (props) {
70
- return props.transitionSpeed;
71
- }, function (props) {
72
- return props.transitionEasing;
73
- }, function (props) {
74
- return props.transitionDelay;
75
- });
76
- export var ProgressTrackerStageTitle = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-weight: ", ";\n line-height: 16px;\n color: ", ";\n text-align: center;\n font-size: ", "px;\n margin-left: auto;\n margin-right: auto;\n margin-top: ", "px;\n\n &.fade-appear {\n opacity: 0.01;\n }\n\n &.fade-appear.fade-appear-active {\n opacity: 1;\n transition: opacity ", "ms\n cubic-bezier(0.2, 0, 0, 1);\n }\n"])), function (props) {
77
- return props.fontweight;
78
- }, function (props) {
79
- return props.color;
80
- }, fontSize, labelTopSpacing, function (props) {
81
- return props.transitionSpeed;
82
- });
83
-
84
- // Copied styles of GridColumn from @atlaskit/page
85
- var availableColumns = function availableColumns(props) {
86
- return props.theme.columns;
87
- };
88
-
89
- var columns = function columns(props) {
90
- return Math.min(availableColumns(props), 2);
91
- };
92
-
93
- var gridSpacing = function gridSpacing(props) {
94
- return spacing[props.theme.spacing];
95
- };
96
-
97
- var getMaxWidthColumnRatio = function getMaxWidthColumnRatio(props) {
98
- if (columns(props) >= availableColumns(props)) {
99
- return '100%';
100
- }
101
-
102
- return "99.9999% / ".concat(availableColumns(props), " * ").concat(columns(props));
103
- };
104
-
105
- export var ProgressTrackerListItem = styled.li(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex-grow: 1;\n flex-shrink: 0;\n margin: 0 ", "px;\n word-wrap: break-word;\n\n max-width: calc(", " - ", "px);\n min-width: calc(99.9999% / ", " - ", "px);\n"])), function (props) {
106
- return spacing[props.theme.spacing] / 2;
107
- }, getMaxWidthColumnRatio, gridSpacing, availableColumns, gridSpacing);
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ProgressTrackerContainer: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>>;
3
- export default ProgressTrackerContainer;
@@ -1,10 +0,0 @@
1
- import { PureComponent } from 'react';
2
- import { Stage } from '../types';
3
- interface Props {
4
- /** stage data passed to each `ProgressTrackerStage` component */
5
- item: Stage;
6
- }
7
- export default class ProgressTrackerLink extends PureComponent<Props> {
8
- render(): JSX.Element;
9
- }
10
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Link: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, any, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>;
3
- export default Link;
@@ -1,27 +0,0 @@
1
- import { PureComponent } from 'react';
2
- import { ProgressTrackerStageRenderProp, Stage } from '../types';
3
- export interface ProgressTrackerStageProps {
4
- /** stage data passed to each `ProgressTrackerStage` component */
5
- item: Stage;
6
- /** render prop to specify how to render components */
7
- render: ProgressTrackerStageRenderProp;
8
- /** delay before transitioning in ms */
9
- transitionDelay: number;
10
- /** speed at which to transition in ms */
11
- transitionSpeed: number;
12
- /** interface of easing for transition */
13
- transitionEasing: string;
14
- }
15
- interface State {
16
- transitioning: boolean;
17
- oldMarkerColor?: string;
18
- oldPercentageComplete: number;
19
- }
20
- export default class ProgressTrackerStage extends PureComponent<ProgressTrackerStageProps, State> {
21
- constructor(props: ProgressTrackerStageProps);
22
- UNSAFE_componentWillMount(): void;
23
- UNSAFE_componentWillReceiveProps(): void;
24
- shouldShowLink(): boolean;
25
- render(): JSX.Element;
26
- }
27
- export {};
@@ -1,28 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ProgressTrackerStageContainer: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
3
- interface BaseStageProps {
4
- transitionDelay: number;
5
- transitionSpeed: number;
6
- transitionEasing?: string;
7
- }
8
- interface StageMarkerProps extends BaseStageProps {
9
- oldMarkerColor?: string;
10
- }
11
- export declare const ProgressTrackerStageMarker: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & StageMarkerProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & StageMarkerProps>;
12
- interface StageBarProps extends BaseStageProps {
13
- percentageComplete: number;
14
- oldPercentageComplete: number;
15
- }
16
- export declare const ProgressTrackerStageBar: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & StageBarProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & StageBarProps>;
17
- interface StageTitleProps extends BaseStageProps {
18
- fontweight?: string;
19
- }
20
- export declare const ProgressTrackerStageTitle: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & StageTitleProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & StageTitleProps>;
21
- interface ListItemProps {
22
- theme: {
23
- columns: number;
24
- spacing: string;
25
- };
26
- }
27
- export declare const ProgressTrackerListItem: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & Partial<ListItemProps>, any, import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & Partial<ListItemProps>>;
28
- export {};