@twreporter/react-components 8.23.1-rc.0 → 8.24.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/lib/empty-state/index.js +9 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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
|
+
# [8.24.0-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.24.0-rc.0...@twreporter/react-components@8.24.0-rc.1) (2024-01-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [8.24.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.23.1...@twreporter/react-components@8.24.0-rc.0) (2024-01-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add `buttonOnclick` props for `EmptyState` component ([25af2dc](https://github.com/twreporter/twreporter-npm-packages/commit/25af2dca4de781b6889a8e4c99d16b55d04aed24))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [8.23.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.23.1-rc.0...@twreporter/react-components@8.23.1) (2024-01-03)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @twreporter/react-components
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [8.23.1-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.23.0...@twreporter/react-components@8.23.1-rc.0) (2024-01-03)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @twreporter/react-components
|
package/lib/empty-state/index.js
CHANGED
|
@@ -52,6 +52,8 @@ var GuideContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
52
52
|
componentId: "sc-4ba2ko-4"
|
|
53
53
|
})(["display:flex;align-items:baseline;text-align:center;color:", ";svg{background-color:", ";width:18px;height:18px;margin:0 4px;transform:translateY(3px);}"], _color.colorGrayscale.gray600, _color.colorGrayscale.gray600);
|
|
54
54
|
|
|
55
|
+
var defaultFunc = function defaultFunc() {};
|
|
56
|
+
|
|
55
57
|
var EmptyState = function EmptyState(_ref) {
|
|
56
58
|
var _ref$releaseBranch = _ref.releaseBranch,
|
|
57
59
|
releaseBranch = _ref$releaseBranch === void 0 ? _releaseBranch.BRANCH.master : _ref$releaseBranch,
|
|
@@ -68,7 +70,9 @@ var EmptyState = function EmptyState(_ref) {
|
|
|
68
70
|
_ref$buttonText = _ref.buttonText,
|
|
69
71
|
buttonText = _ref$buttonText === void 0 ? '' : _ref$buttonText,
|
|
70
72
|
_ref$buttonUrl = _ref.buttonUrl,
|
|
71
|
-
buttonUrl = _ref$buttonUrl === void 0 ? '/' : _ref$buttonUrl
|
|
73
|
+
buttonUrl = _ref$buttonUrl === void 0 ? '/' : _ref$buttonUrl,
|
|
74
|
+
_ref$buttonOnclick = _ref.buttonOnclick,
|
|
75
|
+
buttonOnclick = _ref$buttonOnclick === void 0 ? defaultFunc : _ref$buttonOnclick;
|
|
72
76
|
var imageUrl = '';
|
|
73
77
|
var imageWidth = '';
|
|
74
78
|
|
|
@@ -99,7 +103,8 @@ var EmptyState = function EmptyState(_ref) {
|
|
|
99
103
|
}), showGuide && /*#__PURE__*/_react["default"].createElement(GuideContainer, null, typeof guide === 'string' ? /*#__PURE__*/_react["default"].createElement(_paragraph.P2, {
|
|
100
104
|
text: guide
|
|
101
105
|
}) : guide)), showButton && /*#__PURE__*/_react["default"].createElement(ButtonContainer, {
|
|
102
|
-
href: buttonUrl
|
|
106
|
+
href: buttonUrl,
|
|
107
|
+
onClick: buttonOnclick
|
|
103
108
|
}, /*#__PURE__*/_react["default"].createElement(_button.PillButton, {
|
|
104
109
|
text: buttonText,
|
|
105
110
|
size: _sharedEnum.Size.L
|
|
@@ -114,7 +119,8 @@ EmptyState.propTypes = {
|
|
|
114
119
|
guide: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].string]),
|
|
115
120
|
showButton: _propTypes["default"].bool,
|
|
116
121
|
buttonText: _propTypes["default"].string,
|
|
117
|
-
buttonUrl: _propTypes["default"].string
|
|
122
|
+
buttonUrl: _propTypes["default"].string,
|
|
123
|
+
buttonOnclick: _propTypes["default"].func
|
|
118
124
|
};
|
|
119
125
|
EmptyState.Style = _enums.Style;
|
|
120
126
|
var _default = EmptyState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.24.0-rc.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@twreporter/core": "^1.16.0",
|
|
19
|
-
"@twreporter/redux": "^7.
|
|
19
|
+
"@twreporter/redux": "^7.10.0-rc.0",
|
|
20
20
|
"fontfaceobserver-es": "^3.3.3",
|
|
21
21
|
"hoist-non-react-statics": "^2.3.1",
|
|
22
22
|
"lodash": "^4.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react-dom": "^16.0.0",
|
|
52
52
|
"storybook": "^7.5.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "101e7eefd114f9d586d1882490c1742426b1e40d"
|
|
55
55
|
}
|