@cloudflare/component-card 3.5.83 → 4.0.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 +16 -0
- package/es/CardToolbarLink.js +0 -3
- package/lib/CardToolbarLink.js +0 -3
- package/package.json +4 -4
- package/src/CardToolbarLink.js +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.0.0](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-card@3.5.83...@cloudflare/component-card@4.0.0) (2021-11-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **component-card:** UI-574 Remove to prop ([0d66572](http://stash.cfops.it:7999/fe/stratus/commits/0d66572))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **component-card:** Removed to prop
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [3.5.83](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-card@3.5.80...@cloudflare/component-card@3.5.83) (2021-10-28)
|
|
7
23
|
|
|
8
24
|
|
package/es/CardToolbarLink.js
CHANGED
|
@@ -16,14 +16,12 @@ class CardToolbarLink extends React.Component {
|
|
|
16
16
|
render() {
|
|
17
17
|
const _this$props = this.props,
|
|
18
18
|
id = _this$props.id,
|
|
19
|
-
to = _this$props.to,
|
|
20
19
|
children = _this$props.children,
|
|
21
20
|
expandable = _this$props.expandable,
|
|
22
21
|
isActive = _this$props.isActive;
|
|
23
22
|
return /*#__PURE__*/React.createElement(Link, {
|
|
24
23
|
role: expandable ? 'tab' : 'link',
|
|
25
24
|
id: id,
|
|
26
|
-
to: to,
|
|
27
25
|
onClick: this.handleClick,
|
|
28
26
|
isActive: isActive,
|
|
29
27
|
expandable: expandable,
|
|
@@ -36,7 +34,6 @@ class CardToolbarLink extends React.Component {
|
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
CardToolbarLink.propTypes = {
|
|
39
|
-
to: PropTypes.string,
|
|
40
37
|
onClick: PropTypes.func.isRequired,
|
|
41
38
|
isActive: PropTypes.bool.isRequired,
|
|
42
39
|
id: PropTypes.string,
|
package/lib/CardToolbarLink.js
CHANGED
|
@@ -55,14 +55,12 @@ var CardToolbarLink = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
value: function render() {
|
|
56
56
|
var _this$props = this.props,
|
|
57
57
|
id = _this$props.id,
|
|
58
|
-
to = _this$props.to,
|
|
59
58
|
children = _this$props.children,
|
|
60
59
|
expandable = _this$props.expandable,
|
|
61
60
|
isActive = _this$props.isActive;
|
|
62
61
|
return /*#__PURE__*/_react.default.createElement(_componentLink.Link, {
|
|
63
62
|
role: expandable ? 'tab' : 'link',
|
|
64
63
|
id: id,
|
|
65
|
-
to: to,
|
|
66
64
|
onClick: this.handleClick,
|
|
67
65
|
isActive: isActive,
|
|
68
66
|
expandable: expandable,
|
|
@@ -77,7 +75,6 @@ var CardToolbarLink = /*#__PURE__*/function (_React$Component) {
|
|
|
77
75
|
}(_react.default.Component);
|
|
78
76
|
|
|
79
77
|
CardToolbarLink.propTypes = {
|
|
80
|
-
to: _propTypes.default.string,
|
|
81
78
|
onClick: _propTypes.default.func.isRequired,
|
|
82
79
|
isActive: _propTypes.default.bool.isRequired,
|
|
83
80
|
id: _propTypes.default.string,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/component-card",
|
|
3
3
|
"description": "Cloudflare Card Component",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"author": "James Kyle <jkyle@cloudflare.com>",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@cloudflare/component-link": "^
|
|
15
|
-
"@cloudflare/style-container": "^7.5.
|
|
14
|
+
"@cloudflare/component-link": "^4.0.0",
|
|
15
|
+
"@cloudflare/style-container": "^7.5.6",
|
|
16
16
|
"prop-types": "^15.6.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"test-coverage": "stratus test --coverage",
|
|
30
30
|
"test-watch": "stratus test --watch"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "6aca0d19de9e98ce2fd58663f14a19442df60334"
|
|
33
33
|
}
|
package/src/CardToolbarLink.js
CHANGED
|
@@ -14,12 +14,11 @@ class CardToolbarLink extends React.Component {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
render() {
|
|
17
|
-
const { id,
|
|
17
|
+
const { id, children, expandable, isActive } = this.props;
|
|
18
18
|
return (
|
|
19
19
|
<Link
|
|
20
20
|
role={expandable ? 'tab' : 'link'}
|
|
21
21
|
id={id}
|
|
22
|
-
to={to}
|
|
23
22
|
onClick={this.handleClick}
|
|
24
23
|
isActive={isActive}
|
|
25
24
|
expandable={expandable}
|
|
@@ -34,7 +33,6 @@ class CardToolbarLink extends React.Component {
|
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
CardToolbarLink.propTypes = {
|
|
37
|
-
to: PropTypes.string,
|
|
38
36
|
onClick: PropTypes.func.isRequired,
|
|
39
37
|
isActive: PropTypes.bool.isRequired,
|
|
40
38
|
id: PropTypes.string,
|