@atlaskit/progress-tracker 10.1.2 → 10.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.
- package/CHANGELOG.md +19 -0
- package/dist/cjs/internal/link.compiled.css +10 -2
- package/dist/cjs/internal/link.js +12 -12
- package/dist/cjs/progress-tracker.js +2 -3
- package/dist/es2019/internal/link.compiled.css +10 -2
- package/dist/es2019/internal/link.js +15 -9
- package/dist/es2019/progress-tracker.js +2 -3
- package/dist/esm/internal/link.compiled.css +10 -2
- package/dist/esm/internal/link.js +11 -10
- package/dist/esm/progress-tracker.js +2 -3
- package/dist/types/internal/link.d.ts +0 -4
- package/dist/types/progress-tracker.d.ts +5 -0
- package/dist/types-ts4.5/internal/link.d.ts +0 -4
- package/dist/types-ts4.5/progress-tracker.d.ts +5 -0
- package/package.json +7 -14
- package/dist/cjs/internal/link-new.compiled.css +0 -10
- package/dist/cjs/internal/link-new.js +0 -34
- package/dist/es2019/internal/link-new.compiled.css +0 -10
- package/dist/es2019/internal/link-new.js +0 -28
- package/dist/esm/internal/link-new.compiled.css +0 -10
- package/dist/esm/internal/link-new.js +0 -27
- package/dist/types/internal/link-new.d.ts +0 -9
- package/dist/types-ts4.5/internal/link-new.d.ts +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/progress-tracker
|
|
2
2
|
|
|
3
|
+
## 10.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#175003](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175003)
|
|
8
|
+
[`0d715469b8a4d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d715469b8a4d) -
|
|
9
|
+
This release enables functionality previously tested and rolled out under a feature flag. Progress
|
|
10
|
+
tracker links are now rendered using the Anchor primitive by default, allowing automatic router
|
|
11
|
+
link configuration with App Provider.
|
|
12
|
+
|
|
13
|
+
The `render` prop, which only supported overriding links, has been deprecated. To migrate,
|
|
14
|
+
configure router links using [App Provider](https://atlassian.design/components/app-provider).
|
|
15
|
+
|
|
16
|
+
## 10.1.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 10.1.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
._11c81kw7{font:inherit}
|
|
2
|
+
._1hmsglyw{text-decoration-line:none}
|
|
3
|
+
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
+
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
6
|
+
._1bnx8stv:hover{text-decoration-line:underline}
|
|
7
|
+
._30l314q2:hover{color:var(--ds-link,#0c66e4)}
|
|
8
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
9
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
10
|
+
._9h8h16c2:active{color:var(--ds-link-pressed,#05c)}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/* link.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
require("./link.compiled.css");
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
|
+
var styles = {
|
|
14
|
+
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81kw7 _syaz1fxt _9oik1r31 _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
|
|
15
|
+
};
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* __Progress tracker link__
|
|
@@ -21,14 +22,13 @@ var Link = function Link(_ref) {
|
|
|
21
22
|
onClick = _ref.onClick,
|
|
22
23
|
label = _ref.label,
|
|
23
24
|
testId = _ref.testId;
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
-
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Anchor, {
|
|
26
|
+
xcss: styles.anchor
|
|
27
|
+
// TODO: We should not be rendering empty hrefs on anchors. This should be plain text or a button/pressable if `onClick` is provided.
|
|
28
|
+
,
|
|
29
|
+
href: href || '',
|
|
26
30
|
onClick: onClick,
|
|
27
|
-
|
|
28
|
-
className: (0, _runtime.ax)(["_syaz1o8f _80omtlke"]),
|
|
29
|
-
style: {
|
|
30
|
-
"--_ggxzyp": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N800, ")"))
|
|
31
|
-
}
|
|
31
|
+
testId: testId
|
|
32
32
|
}, label);
|
|
33
33
|
};
|
|
34
34
|
var _default = exports.default = Link;
|
|
@@ -12,9 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _link = _interopRequireDefault(require("./internal/link"));
|
|
17
|
-
var _linkNew = _interopRequireDefault(require("./internal/link-new"));
|
|
18
16
|
var _stage = _interopRequireDefault(require("./internal/stage"));
|
|
19
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
18
|
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; }
|
|
@@ -44,9 +42,10 @@ var ProgressTracker = function ProgressTracker(_ref) {
|
|
|
44
42
|
link: function link(_ref2) {
|
|
45
43
|
var item = _ref2.item;
|
|
46
44
|
return (
|
|
45
|
+
/*#__PURE__*/
|
|
47
46
|
// Anchor content is coming from another location
|
|
48
47
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
49
|
-
|
|
48
|
+
React.createElement(_link.default, item)
|
|
50
49
|
);
|
|
51
50
|
}
|
|
52
51
|
} : _ref$render,
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
._11c81kw7{font:inherit}
|
|
2
|
+
._1hmsglyw{text-decoration-line:none}
|
|
3
|
+
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
+
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
6
|
+
._1bnx8stv:hover{text-decoration-line:underline}
|
|
7
|
+
._30l314q2:hover{color:var(--ds-link,#0c66e4)}
|
|
8
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
9
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
10
|
+
._9h8h16c2:active{color:var(--ds-link-pressed,#05c)}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/* link.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./link.compiled.css";
|
|
3
|
-
import * as React from 'react';
|
|
4
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import
|
|
6
|
-
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
6
|
+
const styles = {
|
|
7
|
+
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81kw7 _syaz1fxt _9oik1r31 _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
|
|
8
|
+
};
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* __Progress tracker link__
|
|
@@ -13,10 +15,14 @@ const Link = ({
|
|
|
13
15
|
onClick,
|
|
14
16
|
label,
|
|
15
17
|
testId
|
|
16
|
-
}) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
}) => {
|
|
19
|
+
return /*#__PURE__*/React.createElement(Anchor, {
|
|
20
|
+
xcss: styles.anchor
|
|
21
|
+
// TODO: We should not be rendering empty hrefs on anchors. This should be plain text or a button/pressable if `onClick` is provided.
|
|
22
|
+
,
|
|
23
|
+
href: href || '',
|
|
24
|
+
onClick: onClick,
|
|
25
|
+
testId: testId
|
|
26
|
+
}, label);
|
|
27
|
+
};
|
|
22
28
|
export default Link;
|
|
@@ -3,9 +3,7 @@ import "./progress-tracker.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useEffect, useRef } from 'react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import Link from './internal/link';
|
|
8
|
-
import LinkNew from './internal/link-new';
|
|
9
7
|
import Stage from './internal/stage';
|
|
10
8
|
const containerStyles = null;
|
|
11
9
|
const spacingOptions = {
|
|
@@ -29,9 +27,10 @@ const ProgressTracker = ({
|
|
|
29
27
|
link: ({
|
|
30
28
|
item
|
|
31
29
|
}) =>
|
|
30
|
+
/*#__PURE__*/
|
|
32
31
|
// Anchor content is coming from another location
|
|
33
32
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
34
|
-
|
|
33
|
+
React.createElement(Link, item)
|
|
35
34
|
},
|
|
36
35
|
animated = true,
|
|
37
36
|
testId,
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
._11c81kw7{font:inherit}
|
|
2
|
+
._1hmsglyw{text-decoration-line:none}
|
|
3
|
+
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
+
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
6
|
+
._1bnx8stv:hover{text-decoration-line:underline}
|
|
7
|
+
._30l314q2:hover{color:var(--ds-link,#0c66e4)}
|
|
8
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
9
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
10
|
+
._9h8h16c2:active{color:var(--ds-link-pressed,#05c)}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/* link.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import "./link.compiled.css";
|
|
3
|
-
import * as React from 'react';
|
|
4
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import
|
|
6
|
-
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
6
|
+
var styles = {
|
|
7
|
+
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81kw7 _syaz1fxt _9oik1r31 _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
|
|
8
|
+
};
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* __Progress tracker link__
|
|
@@ -13,14 +15,13 @@ var Link = function Link(_ref) {
|
|
|
13
15
|
onClick = _ref.onClick,
|
|
14
16
|
label = _ref.label,
|
|
15
17
|
testId = _ref.testId;
|
|
16
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
-
|
|
18
|
+
return /*#__PURE__*/React.createElement(Anchor, {
|
|
19
|
+
xcss: styles.anchor
|
|
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
|
+
,
|
|
22
|
+
href: href || '',
|
|
18
23
|
onClick: onClick,
|
|
19
|
-
|
|
20
|
-
className: ax(["_syaz1o8f _80omtlke"]),
|
|
21
|
-
style: {
|
|
22
|
-
"--_ggxzyp": ix("var(--ds-text, ".concat(N800, ")"))
|
|
23
|
-
}
|
|
24
|
+
testId: testId
|
|
24
25
|
}, label);
|
|
25
26
|
};
|
|
26
27
|
export default Link;
|
|
@@ -6,9 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
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; }
|
|
7
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; }
|
|
8
8
|
import { useEffect, useRef } from 'react';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import Link from './internal/link';
|
|
11
|
-
import LinkNew from './internal/link-new';
|
|
12
10
|
import Stage from './internal/stage';
|
|
13
11
|
var containerStyles = null;
|
|
14
12
|
var spacingOptions = {
|
|
@@ -35,9 +33,10 @@ var ProgressTracker = function ProgressTracker(_ref) {
|
|
|
35
33
|
link: function link(_ref2) {
|
|
36
34
|
var item = _ref2.item;
|
|
37
35
|
return (
|
|
36
|
+
/*#__PURE__*/
|
|
38
37
|
// Anchor content is coming from another location
|
|
39
38
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
40
|
-
|
|
39
|
+
React.createElement(Link, item)
|
|
41
40
|
);
|
|
42
41
|
}
|
|
43
42
|
} : _ref$render,
|
|
@@ -10,7 +10,12 @@ export interface ProgressTrackerProps {
|
|
|
10
10
|
*/
|
|
11
11
|
spacing?: Spacing;
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*
|
|
13
15
|
* Render prop to specify custom implementations of components.
|
|
16
|
+
*
|
|
17
|
+
* Note this is deprecated and will be removed in a future version.
|
|
18
|
+
* Links inside progress tracker can be configured using [App Provider](https://atlassian.design/components/app-provider) instead.
|
|
14
19
|
*/
|
|
15
20
|
render?: ProgressTrackerStageRenderProp;
|
|
16
21
|
/**
|
|
@@ -10,7 +10,12 @@ export interface ProgressTrackerProps {
|
|
|
10
10
|
*/
|
|
11
11
|
spacing?: Spacing;
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*
|
|
13
15
|
* Render prop to specify custom implementations of components.
|
|
16
|
+
*
|
|
17
|
+
* Note this is deprecated and will be removed in a future version.
|
|
18
|
+
* Links inside progress tracker can be configured using [App Provider](https://atlassian.design/components/app-provider) instead.
|
|
14
19
|
*/
|
|
15
20
|
render?: ProgressTrackerStageRenderProp;
|
|
16
21
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/progress-tracker",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "A progress tracker displays the steps and progress through a journey.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,11 +25,10 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atlaskit/css": "^0.
|
|
29
|
-
"@atlaskit/
|
|
30
|
-
"@atlaskit/primitives": "^14.8.0",
|
|
28
|
+
"@atlaskit/css": "^0.11.0",
|
|
29
|
+
"@atlaskit/primitives": "^14.9.0",
|
|
31
30
|
"@atlaskit/theme": "^18.0.0",
|
|
32
|
-
"@atlaskit/tokens": "^5.
|
|
31
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
33
32
|
"@babel/runtime": "^7.0.0",
|
|
34
33
|
"@compiled/react": "^0.18.3",
|
|
35
34
|
"react-transition-group": "^4.4.1"
|
|
@@ -42,9 +41,9 @@
|
|
|
42
41
|
"@af/integration-testing": "workspace:^",
|
|
43
42
|
"@af/visual-regression": "workspace:^",
|
|
44
43
|
"@atlaskit/button": "^23.2.0",
|
|
45
|
-
"@atlaskit/docs": "^
|
|
44
|
+
"@atlaskit/docs": "^11.0.0",
|
|
46
45
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
47
|
-
"@atlaskit/icon": "^
|
|
46
|
+
"@atlaskit/icon": "^27.1.0",
|
|
48
47
|
"@atlaskit/link": "^3.2.0",
|
|
49
48
|
"@atlaskit/section-message": "^8.2.0",
|
|
50
49
|
"@atlaskit/ssr": "workspace:^",
|
|
@@ -89,11 +88,5 @@
|
|
|
89
88
|
"./types": "./src/types.tsx",
|
|
90
89
|
".": "./src/index.tsx"
|
|
91
90
|
},
|
|
92
|
-
"homepage": "https://atlassian.design/components/progress-tracker/"
|
|
93
|
-
"platform-feature-flags": {
|
|
94
|
-
"platform_progress_tracker_link_migration": {
|
|
95
|
-
"type": "boolean",
|
|
96
|
-
"showOnWebsiteForTransitiveDependencies": true
|
|
97
|
-
}
|
|
98
|
-
}
|
|
91
|
+
"homepage": "https://atlassian.design/components/progress-tracker/"
|
|
99
92
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
._11c81kw7{font:inherit}
|
|
2
|
-
._1hmsglyw{text-decoration-line:none}
|
|
3
|
-
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
-
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
-
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
6
|
-
._1bnx8stv:hover{text-decoration-line:underline}
|
|
7
|
-
._30l314q2:hover{color:var(--ds-link,#0c66e4)}
|
|
8
|
-
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
9
|
-
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
10
|
-
._9h8h16c2:active{color:var(--ds-link-pressed,#05c)}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* link-new.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
require("./link-new.compiled.css");
|
|
10
|
-
var _runtime = require("@compiled/react/runtime");
|
|
11
|
-
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
|
-
var styles = {
|
|
14
|
-
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81kw7 _syaz1fxt _9oik1r31 _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* __Progress tracker link__
|
|
19
|
-
*/
|
|
20
|
-
var Link = function Link(_ref) {
|
|
21
|
-
var href = _ref.href,
|
|
22
|
-
onClick = _ref.onClick,
|
|
23
|
-
label = _ref.label,
|
|
24
|
-
testId = _ref.testId;
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement(_compiled.Anchor, {
|
|
26
|
-
xcss: styles.anchor
|
|
27
|
-
// TODO: We should not be rendering empty hrefs on anchors. This should be plain text or a button/pressable if `onClick` is provided.
|
|
28
|
-
,
|
|
29
|
-
href: href || '',
|
|
30
|
-
onClick: onClick,
|
|
31
|
-
testId: testId
|
|
32
|
-
}, label);
|
|
33
|
-
};
|
|
34
|
-
var _default = exports.default = Link;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
._11c81kw7{font:inherit}
|
|
2
|
-
._1hmsglyw{text-decoration-line:none}
|
|
3
|
-
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
-
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
-
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
6
|
-
._1bnx8stv:hover{text-decoration-line:underline}
|
|
7
|
-
._30l314q2:hover{color:var(--ds-link,#0c66e4)}
|
|
8
|
-
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
9
|
-
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
10
|
-
._9h8h16c2:active{color:var(--ds-link-pressed,#05c)}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* link-new.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
import "./link-new.compiled.css";
|
|
3
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
6
|
-
const styles = {
|
|
7
|
-
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81kw7 _syaz1fxt _9oik1r31 _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* __Progress tracker link__
|
|
12
|
-
*/
|
|
13
|
-
const Link = ({
|
|
14
|
-
href,
|
|
15
|
-
onClick,
|
|
16
|
-
label,
|
|
17
|
-
testId
|
|
18
|
-
}) => {
|
|
19
|
-
return /*#__PURE__*/React.createElement(Anchor, {
|
|
20
|
-
xcss: styles.anchor
|
|
21
|
-
// TODO: We should not be rendering empty hrefs on anchors. This should be plain text or a button/pressable if `onClick` is provided.
|
|
22
|
-
,
|
|
23
|
-
href: href || '',
|
|
24
|
-
onClick: onClick,
|
|
25
|
-
testId: testId
|
|
26
|
-
}, label);
|
|
27
|
-
};
|
|
28
|
-
export default Link;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
._11c81kw7{font:inherit}
|
|
2
|
-
._1hmsglyw{text-decoration-line:none}
|
|
3
|
-
._4bfu1r31{text-decoration-color:currentColor}
|
|
4
|
-
._ajmmnqa1{text-decoration-style:solid}
|
|
5
|
-
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
6
|
-
._1bnx8stv:hover{text-decoration-line:underline}
|
|
7
|
-
._30l314q2:hover{color:var(--ds-link,#0c66e4)}
|
|
8
|
-
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
9
|
-
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
10
|
-
._9h8h16c2:active{color:var(--ds-link-pressed,#05c)}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/* link-new.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
import "./link-new.compiled.css";
|
|
3
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
6
|
-
var styles = {
|
|
7
|
-
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81kw7 _syaz1fxt _9oik1r31 _1bnx8stv _jf4cnqa1 _30l314q2 _9h8h16c2"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* __Progress tracker link__
|
|
12
|
-
*/
|
|
13
|
-
var Link = function Link(_ref) {
|
|
14
|
-
var href = _ref.href,
|
|
15
|
-
onClick = _ref.onClick,
|
|
16
|
-
label = _ref.label,
|
|
17
|
-
testId = _ref.testId;
|
|
18
|
-
return /*#__PURE__*/React.createElement(Anchor, {
|
|
19
|
-
xcss: styles.anchor
|
|
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
|
-
,
|
|
22
|
-
href: href || '',
|
|
23
|
-
onClick: onClick,
|
|
24
|
-
testId: testId
|
|
25
|
-
}, label);
|
|
26
|
-
};
|
|
27
|
-
export default Link;
|