@twreporter/react-components 8.22.0-rc.1 → 8.22.0-rc.3

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.22.0-rc.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.22.0-rc.2...@twreporter/react-components@8.22.0-rc.3) (2023-12-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update listing item style ([da71d62](https://github.com/twreporter/twreporter-npm-packages/commit/da71d623641a92aa9a61dc5228ffb7a25a8ae484))
12
+
13
+
14
+
15
+
16
+
17
+ # [8.22.0-rc.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.22.0-rc.1...@twreporter/react-components@8.22.0-rc.2) (2023-12-05)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * link to category page for footer foundation ([40a8911](https://github.com/twreporter/twreporter-npm-packages/commit/40a8911681d4b846fb0c0a44a5cbb73edce92d2c))
23
+
24
+
25
+
26
+
27
+
6
28
  # [8.22.0-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.22.0-rc.0...@twreporter/react-components@8.22.0-rc.1) (2023-12-05)
7
29
 
8
30
 
@@ -33,6 +33,8 @@ var _font = require("@twreporter/core/lib/constants/font");
33
33
 
34
34
  var _color = require("@twreporter/core/lib/constants/color");
35
35
 
36
+ var _featureFlag = require("@twreporter/core/lib/constants/feature-flag");
37
+
36
38
  var _map = _interopRequireDefault(require("lodash/map"));
37
39
 
38
40
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25;
@@ -50,6 +52,7 @@ var _ = {
50
52
  };
51
53
 
52
54
  function getItemGroups(mainOrigin) {
55
+ var foundationUrl = _featureFlag.FOUNDATION_CATEGORY_SET ? "".concat(mainOrigin).concat(_entityPath["default"].categories, "foundation") : "".concat(mainOrigin).concat(_entityPath["default"].topics, "media-center");
53
56
  return [[{
54
57
  slug: 'about',
55
58
  text: '關於我們',
@@ -92,8 +95,8 @@ function getItemGroups(mainOrigin) {
92
95
  target: '_blank'
93
96
  }, {
94
97
  slug: 'media-center',
95
- text: '基金會新聞',
96
- link: "".concat(mainOrigin).concat(_entityPath["default"].topics, "media-center"),
98
+ text: '基金會消息',
99
+ link: foundationUrl,
97
100
  target: '_blank'
98
101
  }, {
99
102
  slug: 'impact-and-annual-report',
@@ -17,6 +17,8 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
17
17
 
18
18
  var _image = _interopRequireDefault(require("./image"));
19
19
 
20
+ var _paragraph = require("../../text/paragraph");
21
+
20
22
  var _mockupSpec = _interopRequireDefault(require("../constants/mockup-spec"));
21
23
 
22
24
  var _entityPath = _interopRequireDefault(require("@twreporter/core/lib/constants/entity-path"));
@@ -94,29 +96,29 @@ var Category = /*#__PURE__*/_styledComponents["default"].div.withConfig({
94
96
  var Title = /*#__PURE__*/_styledComponents["default"].div.withConfig({
95
97
  displayName: "list-item__Title",
96
98
  componentId: "sc-1dx5lew-5"
97
- })(["font-size:20px;font-weight:", ";font-family:", ";line-height:1.4;color:", ";margin-bottom:10px;"], _font.fontWeight.bold, _font.fontFamily.title, _color.colorGrayscale.gray900);
99
+ })(["font-size:20px;font-weight:", ";font-family:", ";line-height:1.4;color:", ";margin-bottom:10px;"], _font.fontWeight.bold, _font.fontFamily.title, _color.colorGrayscale.gray800);
98
100
 
99
101
  var Desc = /*#__PURE__*/_styledComponents["default"].div.withConfig({
100
102
  displayName: "list-item__Desc",
101
103
  componentId: "sc-1dx5lew-6"
102
- })(["position:relative;font-size:16px;line-height:1.5;text-align:justify;padding-bottom:30px;"]);
104
+ })(["position:relative;font-size:16px;line-height:1.5;text-align:justify;padding-bottom:16px;color:", ";"], _color.colorGrayscale.gray800);
103
105
 
104
- var Tags = /*#__PURE__*/_styledComponents["default"].ul.withConfig({
106
+ var Tags = /*#__PURE__*/_styledComponents["default"].div.withConfig({
105
107
  displayName: "list-item__Tags",
106
108
  componentId: "sc-1dx5lew-7"
107
- })(["list-style:none;width:", "%;margin-bottom:40px;padding-left:15px;line-height:1;", ""], _mockupSpec["default"].desktop.tagsWidth / _mockupSpec["default"].desktop.cardWidth * 100, _mediaQuery["default"].mobileOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: ", "%;\n padding-left: 0;\n "])), _mockupSpec["default"].mobile.tagsWidth / _mockupSpec["default"].mobile.cardWidth * 100));
109
+ })(["width:100%;margin-top:32px;margin-bottom:40px;padding-left:15px;line-height:1;", ""], _mediaQuery["default"].mobileOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n padding-left: 0;\n "]))));
108
110
 
109
111
  var PubDate = /*#__PURE__*/_styledComponents["default"].div.withConfig({
110
112
  displayName: "list-item__PubDate",
111
113
  componentId: "sc-1dx5lew-8"
112
114
  })(["position:absolute;bottom:-20px;font-size:12px;right:0;"]);
113
115
 
114
- var Tag = /*#__PURE__*/_styledComponents["default"].li.withConfig({
116
+ var Tag = /*#__PURE__*/(0, _styledComponents["default"])(_paragraph.P3).withConfig({
115
117
  displayName: "list-item__Tag",
116
118
  componentId: "sc-1dx5lew-9"
117
- })(["background-color:", ";border:2px solid ", ";border-radius:68px;color:", ";display:inline-block;text-decoration:none;line-height:1.45;font-size:12px;font-weight:", ";padding:2px 10px;margin-right:13px;margin-bottom:10px;"], function (props) {
119
+ })(["background-color:", ";border:1px solid ", ";border-radius:68px;color:", ";display:inline-block;text-decoration:none;line-height:1.45;font-size:12px;font-weight:", ";padding:2px 10px;margin-right:8px;margin-bottom:10px;"], function (props) {
118
120
  return props.selected ? _color.colorBrand.heavy : _color.colorGrayscale.gray100;
119
- }, _color.colorBrand.dark, function (props) {
121
+ }, _color.colorBrand.heavy, function (props) {
120
122
  return props.selected ? _color.colorGrayscale.white : _color.colorBrand.heavy;
121
123
  }, _font.fontWeight.bold);
122
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twreporter/react-components",
3
- "version": "8.22.0-rc.1",
3
+ "version": "8.22.0-rc.3",
4
4
  "main": "lib/index.js",
5
5
  "repository": "https://github.com/twreporter/twreporter-npm-packages.git",
6
6
  "author": "twreporter <developer@twreporter.org>",
@@ -51,5 +51,5 @@
51
51
  "react-dom": "^16.0.0",
52
52
  "storybook": "^7.5.2"
53
53
  },
54
- "gitHead": "80e49951ecff649c6a8048d53719e3c35c8c0ca8"
54
+ "gitHead": "0d528cb98215e64a0c0f46a25aaff29190f1bc11"
55
55
  }