@twreporter/react-components 8.21.0-rc.5 → 8.21.0-rc.7
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
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.21.0-rc.7](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.21.0-rc.6...@twreporter/react-components@8.21.0-rc.7) (2023-11-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* mobile role card text style ([f197cb7](https://github.com/twreporter/twreporter-npm-packages/commit/f197cb7711ee1b9f5120996e65382fa4e22aef76))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [8.21.0-rc.6](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.21.0-rc.5...@twreporter/react-components@8.21.0-rc.6) (2023-11-15)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* `InheritLinkButton` cannot set link & style ([a1b1a64](https://github.com/twreporter/twreporter-npm-packages/commit/a1b1a6466f288e435b8bcc28c9c1cea2a2e667fc))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [8.21.0-rc.5](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.21.0-rc.4...@twreporter/react-components@8.21.0-rc.5) (2023-11-14)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -41,7 +41,7 @@ var style = {
|
|
|
41
41
|
var BaseContainer = /*#__PURE__*/(0, _styledComponents["default"])(_customizedLink["default"]).withConfig({
|
|
42
42
|
displayName: "link__BaseContainer",
|
|
43
43
|
componentId: "g5z7t5-0"
|
|
44
|
-
})(["text-underline-offset:4px;text-decoration-line:", ";color:", ";&:hover{text-decoration-line:underline;}"], function (props) {
|
|
44
|
+
})(["text-underline-offset:4px;text-decoration-line:", "!important;color:", ";&:hover{text-decoration-line:underline;}"], function (props) {
|
|
45
45
|
return style.decoration[props.type];
|
|
46
46
|
}, function (props) {
|
|
47
47
|
return style.color[props.type];
|
|
@@ -107,7 +107,7 @@ var InheritLinkButton = function InheritLinkButton(_ref2) {
|
|
|
107
107
|
|
|
108
108
|
return /*#__PURE__*/_react["default"].createElement(InheritLinkContainer, _extends({
|
|
109
109
|
type: type
|
|
110
|
-
}, props), text);
|
|
110
|
+
}, link, props), text);
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
exports.InheritLinkButton = InheritLinkButton;
|
|
@@ -85,7 +85,7 @@ var MarkImgs = /*#__PURE__*/_styledComponents["default"].img.withConfig({
|
|
|
85
85
|
var InfoContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
86
86
|
displayName: "mobile-member-role-card__InfoContainer",
|
|
87
87
|
componentId: "sc-1n1fg2v-7"
|
|
88
|
-
})(["display:flex;flex-direction:column;gap:
|
|
88
|
+
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
89
89
|
|
|
90
90
|
var TextContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
91
91
|
displayName: "mobile-member-role-card__TextContainer",
|
|
@@ -95,17 +95,17 @@ var TextContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
95
95
|
var TitleContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
96
96
|
displayName: "mobile-member-role-card__TitleContainer",
|
|
97
97
|
componentId: "sc-1n1fg2v-9"
|
|
98
|
-
})(["height:100%;display:flex;flex-direction:column;justify-content:space-between;"]);
|
|
98
|
+
})(["width:42px;height:100%;display:flex;flex-direction:column;justify-content:space-between;"]);
|
|
99
99
|
|
|
100
100
|
var TitleImg = /*#__PURE__*/_styledComponents["default"].img.withConfig({
|
|
101
101
|
displayName: "mobile-member-role-card__TitleImg",
|
|
102
102
|
componentId: "sc-1n1fg2v-10"
|
|
103
103
|
})(["width:100%;"]);
|
|
104
104
|
|
|
105
|
-
var
|
|
106
|
-
displayName: "mobile-member-role-
|
|
105
|
+
var StyledP3 = /*#__PURE__*/(0, _styledComponents["default"])(_paragraph.P3).withConfig({
|
|
106
|
+
displayName: "mobile-member-role-card__StyledP3",
|
|
107
107
|
componentId: "sc-1n1fg2v-11"
|
|
108
|
-
})(["color:", ";"], _color.colorGrayscale.gray500);
|
|
108
|
+
})(["color:", ";letter-spacing:0px;"], _color.colorGrayscale.gray500);
|
|
109
109
|
|
|
110
110
|
var Gray500BottomLine = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
111
111
|
displayName: "mobile-member-role-card__Gray500BottomLine",
|
|
@@ -122,7 +122,7 @@ var P2TextContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
122
122
|
var StyledP1 = /*#__PURE__*/(0, _styledComponents["default"])(_paragraph.P1).withConfig({
|
|
123
123
|
displayName: "mobile-member-role-card__StyledP1",
|
|
124
124
|
componentId: "sc-1n1fg2v-14"
|
|
125
|
-
})(["color:", ";line-height:125%;letter-spacing:
|
|
125
|
+
})(["color:", ";line-height:125%;letter-spacing:1.6px;"], function (props) {
|
|
126
126
|
return props.color;
|
|
127
127
|
});
|
|
128
128
|
|
|
@@ -144,7 +144,7 @@ var MobileMemberRoleCard = function MobileMemberRoleCard(_ref) {
|
|
|
144
144
|
_ref$articleReadingTi2 = _ref.articleReadingTime,
|
|
145
145
|
articleReadingTime = _ref$articleReadingTi2 === void 0 ? 0 : _ref$articleReadingTi2,
|
|
146
146
|
_ref$hideInfo = _ref.hideInfo,
|
|
147
|
-
hideInfo = _ref$hideInfo === void 0 ?
|
|
147
|
+
hideInfo = _ref$hideInfo === void 0 ? true : _ref$hideInfo;
|
|
148
148
|
var logoUrl = "https://www.twreporter.org/assets/user-role-card/".concat(releaseBranch, "/").concat(role, "_logo.png");
|
|
149
149
|
var titleUrl = "https://www.twreporter.org/assets/user-role-card/".concat(releaseBranch, "/").concat(role, "_title.svg");
|
|
150
150
|
var markUrl = "https://www.twreporter.org/assets/user-role-card/".concat(releaseBranch, "/").concat(role, "_mark.png");
|
|
@@ -159,19 +159,19 @@ var MobileMemberRoleCard = function MobileMemberRoleCard(_ref) {
|
|
|
159
159
|
text: name
|
|
160
160
|
}), /*#__PURE__*/_react["default"].createElement(_paragraph.P2, {
|
|
161
161
|
text: email
|
|
162
|
-
})), /*#__PURE__*/_react["default"].createElement(InfoContainer, null, !hideInfo && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(TextContainer, null, /*#__PURE__*/_react["default"].createElement(
|
|
162
|
+
})), /*#__PURE__*/_react["default"].createElement(InfoContainer, null, !hideInfo && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(TextContainer, null, /*#__PURE__*/_react["default"].createElement(StyledP3, {
|
|
163
163
|
text: '閱讀篇數'
|
|
164
164
|
}), /*#__PURE__*/_react["default"].createElement(Gray500BottomLine, null), /*#__PURE__*/_react["default"].createElement(StyledP1, {
|
|
165
165
|
color: CardP1TextColor[role],
|
|
166
166
|
weight: _paragraph.P1.Weight.BOLD,
|
|
167
167
|
text: articleReadCount.toLocaleString('en-US')
|
|
168
|
-
})), /*#__PURE__*/_react["default"].createElement(TextContainer, null, /*#__PURE__*/_react["default"].createElement(
|
|
169
|
-
text: "\u95B1\u8B80".concat(_readingTimeUnit.
|
|
168
|
+
})), /*#__PURE__*/_react["default"].createElement(TextContainer, null, /*#__PURE__*/_react["default"].createElement(StyledP3, {
|
|
169
|
+
text: "\u95B1\u8B80".concat(_readingTimeUnit.READING_TIME_UNIT_CARD_TEXT[articleReadingTimeUnit])
|
|
170
170
|
}), /*#__PURE__*/_react["default"].createElement(Gray500BottomLine, null), /*#__PURE__*/_react["default"].createElement(StyledP1, {
|
|
171
171
|
color: CardP1TextColor[role],
|
|
172
172
|
weight: _paragraph.P1.Weight.BOLD,
|
|
173
173
|
text: articleReadingTime > 99999 ? '99,999+' : articleReadingTime.toLocaleString('en-US')
|
|
174
|
-
}))), /*#__PURE__*/_react["default"].createElement(TextContainer, null, /*#__PURE__*/_react["default"].createElement(
|
|
174
|
+
}))), /*#__PURE__*/_react["default"].createElement(TextContainer, null, /*#__PURE__*/_react["default"].createElement(StyledP3, {
|
|
175
175
|
text: '加入日期'
|
|
176
176
|
}), /*#__PURE__*/_react["default"].createElement(Gray500BottomLine, null), /*#__PURE__*/_react["default"].createElement(StyledP1, {
|
|
177
177
|
color: CardP1TextColor[role],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-components",
|
|
3
|
-
"version": "8.21.0-rc.
|
|
3
|
+
"version": "8.21.0-rc.7",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"chromatic": "npx chromatic --exit-zero-on-changes"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@twreporter/core": "^1.14.0-rc.
|
|
19
|
-
"@twreporter/redux": "^7.8.1-rc.
|
|
18
|
+
"@twreporter/core": "^1.14.0-rc.1",
|
|
19
|
+
"@twreporter/redux": "^7.8.1-rc.2",
|
|
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": "354f5891534c2dcac55e42f1fcca4d327d49ba71"
|
|
55
55
|
}
|