@twreporter/react-components 8.21.1-rc.1 → 8.22.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 +23 -0
- package/lib/bookmark-list/bookmark.js +9 -9
- package/lib/confirmation/index.js +13 -12
- package/lib/error/message.js +3 -3
- package/lib/footer/content.js +7 -7
- package/lib/footer/index.js +5 -5
- package/lib/listing-page/components/image.js +2 -2
- package/lib/listing-page/components/list-item.js +8 -8
- package/lib/listing-page/components/topics/index.js +3 -3
- package/lib/listing-page/components/topics/post-item.js +4 -4
- package/lib/listing-page/components/topics/posts.js +2 -2
- package/lib/listing-page/components/topics/section.js +3 -3
- package/lib/listing-page/components/topics/topic-item.js +3 -3
- package/lib/pagination/index.js +8 -8
- package/lib/text/headline.js +5 -5
- package/package.json +2 -2
- package/lib/bookmark-list/constants/color.js +0 -14
- package/lib/confirmation/constants/color.js +0 -13
- package/lib/error/constants/color.js +0 -11
- package/lib/footer/constants/color.js +0 -15
- package/lib/listing-page/constants/color.js +0 -17
- package/lib/pagination/constants/color.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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.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
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* `react-components` use design guideline color ([8715b02](https://github.com/twreporter/twreporter-npm-packages/commit/8715b026c5acda328f465f6985288ff4d5e07639))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [8.22.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.21.1-rc.1...@twreporter/react-components@8.22.0-rc.0) (2023-12-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* change article content h1 h2 ([9912503](https://github.com/twreporter/twreporter-npm-packages/commit/99125037d81eef23fd66140d93e87ddd3cb13ab7))
|
|
23
|
+
* change h1 tablet and mobile font size ([6a6a3be](https://github.com/twreporter/twreporter-npm-packages/commit/6a6a3be5f8888d03a03c3a90b715c197be8126f7))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## [8.21.1-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.21.1-rc.0...@twreporter/react-components@8.21.1-rc.1) (2023-12-05)
|
|
7
30
|
|
|
8
31
|
**Note:** Version bump only for package @twreporter/react-components
|
|
@@ -23,12 +23,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
23
23
|
|
|
24
24
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
25
25
|
|
|
26
|
-
var _color = _interopRequireDefault(require("./constants/color"));
|
|
27
|
-
|
|
28
26
|
var _propTypes2 = _interopRequireDefault(require("@twreporter/core/lib/constants/prop-types"));
|
|
29
27
|
|
|
30
28
|
var _truncate = _interopRequireDefault(require("@twreporter/core/lib/utils/truncate"));
|
|
31
29
|
|
|
30
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
31
|
+
|
|
32
32
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
33
33
|
|
|
34
34
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
@@ -109,7 +109,7 @@ var styles = {
|
|
|
109
109
|
var BookmarkIconComp = /*#__PURE__*/(0, _styledComponents["default"])(BookmarkIcon).withConfig({
|
|
110
110
|
displayName: "bookmark__BookmarkIconComp",
|
|
111
111
|
componentId: "sc-1y8p1w5-0"
|
|
112
|
-
})(["&:hover{path{fill:", ";transition:fill 200ms linear;}}"], _color
|
|
112
|
+
})(["&:hover{path{fill:", ";transition:fill 200ms linear;}}"], _color.colorBrand.dark);
|
|
113
113
|
|
|
114
114
|
var BookmarkFrame = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
115
115
|
displayName: "bookmark__BookmarkFrame",
|
|
@@ -119,7 +119,7 @@ var BookmarkFrame = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
119
119
|
var BookmarkContentContainer = /*#__PURE__*/_styledComponents["default"].li.withConfig({
|
|
120
120
|
displayName: "bookmark__BookmarkContentContainer",
|
|
121
121
|
componentId: "sc-1y8p1w5-2"
|
|
122
|
-
})(["position:relative;width:100%;background-color:", ";display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:flex-start;", " margin:0;:last-of-type{margin-bottom:0;}"], _color
|
|
122
|
+
})(["position:relative;width:100%;background-color:", ";display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:flex-start;", " margin:0;:last-of-type{margin-bottom:0;}"], _color.colorGrayscale.white, _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex-direction: column;\n align-items: center;\n "]))));
|
|
123
123
|
|
|
124
124
|
var ImageBox = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
125
125
|
displayName: "bookmark__ImageBox",
|
|
@@ -151,7 +151,7 @@ var TextBox = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
151
151
|
var Category = /*#__PURE__*/_styledComponents["default"].span.withConfig({
|
|
152
152
|
displayName: "bookmark__Category",
|
|
153
153
|
componentId: "sc-1y8p1w5-6"
|
|
154
|
-
})(["font-size:16px;", " line-height:1;color:", ";"], _mediaQuery["default"].mobileOnly(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: 14px;\n "]))), _color
|
|
154
|
+
})(["font-size:16px;", " line-height:1;color:", ";"], _mediaQuery["default"].mobileOnly(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: 14px;\n "]))), _color.colorBrand.heavy);
|
|
155
155
|
|
|
156
156
|
var FirstRow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
157
157
|
displayName: "bookmark__FirstRow",
|
|
@@ -161,12 +161,12 @@ var FirstRow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
161
161
|
var Title = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
162
162
|
displayName: "bookmark__Title",
|
|
163
163
|
componentId: "sc-1y8p1w5-8"
|
|
164
|
-
})(["font-size:27px;line-height:1.41;margin-bottom:18px;", " font-weight:", ";color:", ";flex-basis:auto;flex-grow:0;"], _mediaQuery["default"].mobileOnly(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-size: 20px;\n line-height: 1.55;\n margin-bottom: 0;\n "]))), _font.fontWeight.bold, _color
|
|
164
|
+
})(["font-size:27px;line-height:1.41;margin-bottom:18px;", " font-weight:", ";color:", ";flex-basis:auto;flex-grow:0;"], _mediaQuery["default"].mobileOnly(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-size: 20px;\n line-height: 1.55;\n margin-bottom: 0;\n "]))), _font.fontWeight.bold, _color.colorGrayscale.gray800);
|
|
165
165
|
|
|
166
166
|
var Description = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
167
167
|
displayName: "bookmark__Description",
|
|
168
168
|
componentId: "sc-1y8p1w5-9"
|
|
169
|
-
})(["width:98%;color:", ";font-size:18px;", ";flex-basis:auto;flex-grow:0;", ""], _color
|
|
169
|
+
})(["width:98%;color:", ";font-size:18px;", ";flex-basis:auto;flex-grow:0;", ""], _color.colorGrayscale.gray800, (0, _truncate["default"])('relative', 1.57, 2, _color.colorGrayscale.white, 'justify'), _mediaQuery["default"].mobileOnly(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n flex-basis: 0;\n display: none;\n "]))));
|
|
170
170
|
|
|
171
171
|
var LastRow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
172
172
|
displayName: "bookmark__LastRow",
|
|
@@ -176,12 +176,12 @@ var LastRow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
176
176
|
var ReadMore = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
177
177
|
displayName: "bookmark__ReadMore",
|
|
178
178
|
componentId: "sc-1y8p1w5-11"
|
|
179
|
-
})(["font-size:14px;text-align:left;color:", ";cursor:pointer;display:inline-block;"], _color
|
|
179
|
+
})(["font-size:14px;text-align:left;color:", ";cursor:pointer;display:inline-block;"], _color.colorGrayscale.gray500);
|
|
180
180
|
|
|
181
181
|
var Date = /*#__PURE__*/_styledComponents["default"].span.withConfig({
|
|
182
182
|
displayName: "bookmark__Date",
|
|
183
183
|
componentId: "sc-1y8p1w5-12"
|
|
184
|
-
})(["vertical-align:top;font-size:16px;font-weight:", ";color:", ";float:right;"], _font.fontWeight["default"], _color
|
|
184
|
+
})(["vertical-align:top;font-size:16px;font-weight:", ";color:", ";float:right;"], _font.fontWeight["default"], _color.colorGrayscale.gray500);
|
|
185
185
|
|
|
186
186
|
var RemoveBookMarkBtn = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
187
187
|
displayName: "bookmark__RemoveBookMarkBtn",
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
|
|
8
|
-
var _font = require("@twreporter/core/lib/constants/font");
|
|
9
|
-
|
|
10
|
-
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
9
|
|
|
14
10
|
var _react = _interopRequireDefault(require("react"));
|
|
15
11
|
|
|
16
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
13
|
|
|
18
|
-
var
|
|
14
|
+
var _font = require("@twreporter/core/lib/constants/font");
|
|
15
|
+
|
|
16
|
+
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
17
|
+
|
|
18
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
19
19
|
|
|
20
20
|
var _templateObject, _templateObject2, _templateObject3;
|
|
21
21
|
|
|
@@ -23,6 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
23
23
|
|
|
24
24
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
25
25
|
|
|
26
|
+
// assets
|
|
26
27
|
var WarningSign = function WarningSign(props) {
|
|
27
28
|
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("title", null, "deletebm"), /*#__PURE__*/_react["default"].createElement("g", {
|
|
28
29
|
fill: "none",
|
|
@@ -41,19 +42,19 @@ WarningSign.defaultProps = {
|
|
|
41
42
|
height: "30",
|
|
42
43
|
viewBox: "0 0 32 30",
|
|
43
44
|
xmlns: "http://www.w3.org/2000/svg"
|
|
44
|
-
};
|
|
45
|
+
}; // @twreporter
|
|
45
46
|
|
|
46
47
|
var Container = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
47
48
|
displayName: "confirmation__Container",
|
|
48
49
|
componentId: "ypuqpw-0"
|
|
49
|
-
})(["width:100%;height:100vh;position:fixed;top:0;left:0;z-index:5;background-color:", ";"], _color
|
|
50
|
+
})(["width:100%;height:100vh;position:fixed;top:0;left:0;z-index:5;background-color:", ";"], _color.colorGrayscale.gray600);
|
|
50
51
|
|
|
51
52
|
var Dialog = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
52
53
|
displayName: "confirmation__Dialog",
|
|
53
54
|
componentId: "ypuqpw-1"
|
|
54
|
-
})(["width:", ";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:75px 60px 58px 60px;background-color:
|
|
55
|
+
})(["width:", ";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:75px 60px 58px 60px;background-color:", ";text-align:center;", ""], function (props) {
|
|
55
56
|
return props.width;
|
|
56
|
-
}, _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n padding: 47px 17px 37px 17px;\n "]))));
|
|
57
|
+
}, _color.colorGrayscale.white, _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n padding: 47px 17px 37px 17px;\n "]))));
|
|
57
58
|
|
|
58
59
|
var Content = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
59
60
|
displayName: "confirmation__Content",
|
|
@@ -68,16 +69,16 @@ var FuncitonArea = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
68
69
|
var FunctionButton = /*#__PURE__*/_styledComponents["default"].button.withConfig({
|
|
69
70
|
displayName: "confirmation__FunctionButton",
|
|
70
71
|
componentId: "ypuqpw-4"
|
|
71
|
-
})(["cursor:pointer;font-weight:", ";font-size:18px;width:127px;height:46.7px;border-radius:40px;background-color:
|
|
72
|
+
})(["cursor:pointer;font-weight:", ";font-size:18px;width:127px;height:46.7px;border-radius:40px;background-color:transparent;outline:0;", " letter-spacing:1.6px;"], _font.fontWeight.bold, _mediaQuery["default"].mobileOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 16px;\n "]))));
|
|
72
73
|
|
|
73
74
|
var Cancel = /*#__PURE__*/(0, _styledComponents["default"])(FunctionButton).withConfig({
|
|
74
75
|
displayName: "confirmation__Cancel",
|
|
75
76
|
componentId: "ypuqpw-5"
|
|
76
|
-
})(["border:solid 2px ", ";margin-right:25px;"], _color
|
|
77
|
+
})(["border:solid 2px ", ";margin-right:25px;"], _color.colorGrayscale.gray900);
|
|
77
78
|
var Confirm = /*#__PURE__*/(0, _styledComponents["default"])(FunctionButton).withConfig({
|
|
78
79
|
displayName: "confirmation__Confirm",
|
|
79
80
|
componentId: "ypuqpw-6"
|
|
80
|
-
})(["border:solid 2px
|
|
81
|
+
})(["border:solid 2px currentcolor;color:", ";"], _color.colorBrand.heavy);
|
|
81
82
|
|
|
82
83
|
var IconContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
83
84
|
displayName: "confirmation__IconContainer",
|
package/lib/error/message.js
CHANGED
|
@@ -15,7 +15,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
15
15
|
|
|
16
16
|
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
17
17
|
|
|
18
|
-
var _color =
|
|
18
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
19
19
|
|
|
20
20
|
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, _templateObject26;
|
|
21
21
|
|
|
@@ -465,7 +465,7 @@ var ErrorMessageBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig
|
|
|
465
465
|
var ChineseText = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
466
466
|
displayName: "message__ChineseText",
|
|
467
467
|
componentId: "sc-14dhvpe-2"
|
|
468
|
-
})(["position:absolute;", " ", ""], _mediaQuery["default"].mobileOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n width: 13px;\n font-size: 13px;\n line-height: 1.62;\n text-align: left;\n color: ", ";\n font-weight: 900;\n ::after {\n content: \"\";\n display: block;\n width: 14px;\n height: 1px;\n background-color: ", ";\n position: relative;\n top: 6px;\n left: 7px;\n }\n "])), _color
|
|
468
|
+
})(["position:absolute;", " ", ""], _mediaQuery["default"].mobileOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n width: 13px;\n font-size: 13px;\n line-height: 1.62;\n text-align: left;\n color: ", ";\n font-weight: 900;\n ::after {\n content: \"\";\n display: block;\n width: 14px;\n height: 1px;\n background-color: ", ";\n position: relative;\n top: 6px;\n left: 7px;\n }\n "])), _color.colorGrayscale.black, _color.colorGrayscale.black), _mediaQuery["default"].tabletAndAbove(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n width: 18px;\n font-size: 18px;\n line-height: 1.5;\n text-align: left;\n color: ", ";\n font-weight: 900;\n ::after {\n content: \"\";\n display: block;\n width: 20px;\n height: 1px;\n background-color: ", ";\n position: relative;\n top: 19px;\n left: 11px;\n }\n "])), _color.colorGrayscale.black, _color.colorGrayscale.black));
|
|
469
469
|
|
|
470
470
|
var BuildingStyled = /*#__PURE__*/(0, _styledComponents["default"])(Building).withConfig({
|
|
471
471
|
displayName: "message__BuildingStyled",
|
|
@@ -484,7 +484,7 @@ var EngishWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
484
484
|
var BackToHomeBtn = /*#__PURE__*/_styledComponents["default"].a.withConfig({
|
|
485
485
|
displayName: "message__BackToHomeBtn",
|
|
486
486
|
componentId: "sc-14dhvpe-6"
|
|
487
|
-
})(["display:block;cursor:pointer;text-align:center;background-color:", ";color:", ";text-decoration:none;&:hover,&:active,&:focus,&:visited{color:", ";text-decoration:none;}", " ", " ", " ", ""], _color
|
|
487
|
+
})(["display:block;cursor:pointer;text-align:center;background-color:", ";color:", ";text-decoration:none;&:hover,&:active,&:focus,&:visited{color:", ";text-decoration:none;}", " ", " ", " ", ""], _color.colorGrayscale.black, _color.colorGrayscale.white, _color.colorGrayscale.white, _mediaQuery["default"].mobileOnly(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin: 35px auto;\n width: 87.5%;\n height: 76px;\n line-height: 76px;\n position: relative;\n font-size: 14px;\n font-weight: 700;\n letter-spacing: 0.2px;\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: 229px;\n height: 76px;\n line-height: 76px; \n position: absolute;\n bottom: 0;\n left: 55px;\n font-size: 14px;\n font-weight: 700;\n letter-spacing: 0.2px;\n "]))), _mediaQuery["default"].desktopOnly(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n left: 120px;\n "]))), _mediaQuery["default"].hdOnly(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n left: 19%;\n "]))));
|
|
488
488
|
|
|
489
489
|
var NumberImageWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
490
490
|
displayName: "message__NumberImageWrapper",
|
package/lib/footer/content.js
CHANGED
|
@@ -17,8 +17,6 @@ var _logo = _interopRequireDefault(require("./logo"));
|
|
|
17
17
|
|
|
18
18
|
var _styles = _interopRequireDefault(require("./constants/styles"));
|
|
19
19
|
|
|
20
|
-
var _color = _interopRequireDefault(require("./constants/color"));
|
|
21
|
-
|
|
22
20
|
var _siteMeta = require("@twreporter/core/lib/constants/site-meta");
|
|
23
21
|
|
|
24
22
|
var _entityPath = _interopRequireDefault(require("@twreporter/core/lib/constants/entity-path"));
|
|
@@ -33,6 +31,8 @@ var _releaseBranch = _interopRequireDefault(require("@twreporter/core/lib/consta
|
|
|
33
31
|
|
|
34
32
|
var _font = require("@twreporter/core/lib/constants/font");
|
|
35
33
|
|
|
34
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
35
|
+
|
|
36
36
|
var _map = _interopRequireDefault(require("lodash/map"));
|
|
37
37
|
|
|
38
38
|
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;
|
|
@@ -126,7 +126,7 @@ function getItemGroups(mainOrigin) {
|
|
|
126
126
|
var Intro = /*#__PURE__*/_styledComponents["default"].p.withConfig({
|
|
127
127
|
displayName: "content__Intro",
|
|
128
128
|
componentId: "sc-12bve65-0"
|
|
129
|
-
})(["width:100%;font-size:12px;font-weight:", ";line-height:1.5;letter-spacing:0.4px;color:", ";", ""], _font.fontWeight.normal, _color
|
|
129
|
+
})(["width:100%;font-size:12px;font-weight:", ";line-height:1.5;letter-spacing:0.4px;color:", ";", ""], _font.fontWeight.normal, _color.colorGrayscale.gray500, _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 16px;\n line-height: 1.63;\n letter-spacing: 0.6px;\n "]))));
|
|
130
130
|
|
|
131
131
|
var ContentRow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
132
132
|
displayName: "content__ContentRow",
|
|
@@ -145,7 +145,7 @@ var IntroColumn = /*#__PURE__*/(0, _styledComponents["default"])(Column).withCon
|
|
|
145
145
|
var LinksColumn = /*#__PURE__*/(0, _styledComponents["default"])(Column).withConfig({
|
|
146
146
|
displayName: "content__LinksColumn",
|
|
147
147
|
componentId: "sc-12bve65-4"
|
|
148
|
-
})(["padding-left:40px;", " ", " ", " ", " ", " ", ""], _mediaQuery["default"].hdOnly(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: 397px;\n "]))), _mediaQuery["default"].desktopOnly(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: 392px;\n "]))), _mediaQuery["default"].desktopAndAbove(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding-left: 80px;\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n float: right;\n border-left: solid 0.25px ", ";\n margin-bottom: 50px;\n "])), _color
|
|
148
|
+
})(["padding-left:40px;", " ", " ", " ", " ", " ", ""], _mediaQuery["default"].hdOnly(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: 397px;\n "]))), _mediaQuery["default"].desktopOnly(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: 392px;\n "]))), _mediaQuery["default"].desktopAndAbove(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding-left: 80px;\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n float: right;\n border-left: solid 0.25px ", ";\n margin-bottom: 50px;\n "])), _color.colorGrayscale.gray300), _mediaQuery["default"].tabletOnly(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n width: 270px;\n padding-left: 31px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-top: 60px;\n padding-left: 0;\n "]))));
|
|
149
149
|
|
|
150
150
|
var ItemList = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
151
151
|
displayName: "content__ItemList",
|
|
@@ -162,14 +162,14 @@ var flickerAnimation = /*#__PURE__*/(0, _styledComponents.keyframes)(["0%,100%{o
|
|
|
162
162
|
var Item = /*#__PURE__*/_styledComponents["default"].a.withConfig({
|
|
163
163
|
displayName: "content__Item",
|
|
164
164
|
componentId: "sc-12bve65-7"
|
|
165
|
-
})(["text-decoration:none !important;display:block;width:100%;p{display:inline;font-size:14px;font-family:", ";font-weight:", ";letter-spacing:1.3px;color:", ";}span{visibility:", ";background:", ";color:", ";font-size:9px;font-family:", ";margin-left:5px;padding:2px 5px;vertical-align:middle;animation:", " 0.7s infinite;}&:hover{p{color:", ";}}", " ", ""], _font.fontFamily["default"], _font.fontWeight.normal, _color
|
|
165
|
+
})(["text-decoration:none !important;display:block;width:100%;p{display:inline;font-size:14px;font-family:", ";font-weight:", ";letter-spacing:1.3px;color:", ";}span{visibility:", ";background:", ";color:", ";font-size:9px;font-family:", ";margin-left:5px;padding:2px 5px;vertical-align:middle;animation:", " 0.7s infinite;}&:hover{p{color:", ";}}", " ", ""], _font.fontFamily["default"], _font.fontWeight.normal, _color.colorGrayscale.gray500, function (props) {
|
|
166
166
|
return props.visible ? 'visible' : 'hidden';
|
|
167
|
-
}, _color
|
|
167
|
+
}, _color.colorBrand.heavy, _color.colorGrayscale.white, _font.fontFamily["default"], flickerAnimation, _color.colorGrayscale.gray900, _mediaQuery["default"].desktopAndAbove(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n height: calc(", "px / 3);\n "])), _styles["default"].contentRow.height.hd), _mediaQuery["default"].mobileOnly(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n p {\n font-size: 18px;\n letter-spacing: 1.6px;\n line-height: 2;\n }\n "]))));
|
|
168
168
|
|
|
169
169
|
var DonateButton = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
170
170
|
displayName: "content__DonateButton",
|
|
171
171
|
componentId: "sc-12bve65-8"
|
|
172
|
-
})(["a{text-decoration:none !important;width:140px;height:55px;background-color:", ";border:solid 0.5px ", ";display:table;&:hover{background-color:", ";}p{display:table-cell;text-align:center;vertical-align:middle;color:", ";font-size:14px;font-weight:", ";letter-spacing:1.3px;&:hover{color:", ";}}", " ", " ", " ", "}"], _color
|
|
172
|
+
})(["a{text-decoration:none !important;width:140px;height:55px;background-color:", ";border:solid 0.5px ", ";display:table;&:hover{background-color:", ";}p{display:table-cell;text-align:center;vertical-align:middle;color:", ";font-size:14px;font-weight:", ";letter-spacing:1.3px;&:hover{color:", ";}}", " ", " ", " ", "}"], _color.colorGrayscale.white, _color.colorSupportive.heavy, _color.colorSupportive.heavy, _color.colorSupportive.heavy, _font.fontWeight.normal, _color.colorGrayscale.white, _mediaQuery["default"].tabletAndAbove(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n top: 0;\n "]))), _mediaQuery["default"].desktopAndAbove(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n margin-right: ", "px;\n "])), _styles["default"].footerContentPadding.desktop[0], _styles["default"].footerContentPadding.desktop[1]), _mediaQuery["default"].tabletOnly(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n margin-right: ", "px;\n "])), _styles["default"].footerContentPadding.tablet[0], _styles["default"].footerContentPadding.tablet[1]), _mediaQuery["default"].mobileOnly(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n width: 100%;\n margin: 60px auto 40px auto;\n "]))));
|
|
173
173
|
|
|
174
174
|
var buildList = function buildList(itemGroups) {
|
|
175
175
|
return _.map(itemGroups, function (items, indexofGroup) {
|
package/lib/footer/index.js
CHANGED
|
@@ -19,8 +19,6 @@ var _iconList = _interopRequireDefault(require("./icon-list"));
|
|
|
19
19
|
|
|
20
20
|
var _styles = _interopRequireDefault(require("./constants/styles"));
|
|
21
21
|
|
|
22
|
-
var _color = _interopRequireDefault(require("./constants/color"));
|
|
23
|
-
|
|
24
22
|
var _css = require("@twreporter/core/lib/utils/css");
|
|
25
23
|
|
|
26
24
|
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
@@ -33,6 +31,8 @@ var _font = require("@twreporter/core/lib/constants/font");
|
|
|
33
31
|
|
|
34
32
|
var _fundraising = _interopRequireDefault(require("@twreporter/core/lib/constants/fundraising"));
|
|
35
33
|
|
|
34
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
35
|
+
|
|
36
36
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
37
37
|
|
|
38
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -62,7 +62,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
62
62
|
var FooterContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
63
63
|
displayName: "footer__FooterContainer",
|
|
64
64
|
componentId: "d1uef9-0"
|
|
65
|
-
})(["border-top:solid 0.5px ", ";width:100%;background-color:", ";padding:0;", " *{box-sizing:border-box;}"], _color
|
|
65
|
+
})(["border-top:solid 0.5px ", ";width:100%;background-color:", ";padding:0;", " *{box-sizing:border-box;}"], _color.colorGrayscale.gray300, function (props) {
|
|
66
66
|
return props.bgColor;
|
|
67
67
|
}, _mediaQuery["default"].tabletAndAbove(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: ", "px;\n "])), _styles["default"].footerHeight.desktop));
|
|
68
68
|
|
|
@@ -79,7 +79,7 @@ var CompanyInfo = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
79
79
|
var InfoContainer = /*#__PURE__*/_styledComponents["default"].p.withConfig({
|
|
80
80
|
displayName: "footer__InfoContainer",
|
|
81
81
|
componentId: "d1uef9-3"
|
|
82
|
-
})(["font-size:12px;font-weight:", ";letter-spacing:0.4px;color:", ";", ""], _font.fontWeight.normal, _color
|
|
82
|
+
})(["font-size:12px;font-weight:", ";letter-spacing:0.4px;color:", ";", ""], _font.fontWeight.normal, _color.colorGrayscale.gray500, _mediaQuery["default"].mobileOnly(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n text-align: center;\n "]))));
|
|
83
83
|
|
|
84
84
|
var Copyright = function Copyright() {
|
|
85
85
|
var currentYear = new Date().getFullYear();
|
|
@@ -130,7 +130,7 @@ Footer.propTypes = {
|
|
|
130
130
|
pathname: _propTypes["default"].string
|
|
131
131
|
};
|
|
132
132
|
Footer.defaultProps = {
|
|
133
|
-
bgColor: _color
|
|
133
|
+
bgColor: _color.colorGrayscale.white,
|
|
134
134
|
releaseBranch: _releaseBranch["default"].release,
|
|
135
135
|
host: '',
|
|
136
136
|
pathname: ''
|
|
@@ -15,7 +15,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
15
15
|
|
|
16
16
|
var _storageUrlProcessor = require("@twreporter/core/lib/utils/storage-url-processor");
|
|
17
17
|
|
|
18
|
-
var _color =
|
|
18
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
19
19
|
|
|
20
20
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
21
21
|
|
|
@@ -83,7 +83,7 @@ var ImgFallback = /*#__PURE__*/(0, _styledComponents["default"])(ImgContainer).w
|
|
|
83
83
|
var LogoCenteringBlock = /*#__PURE__*/(0, _styledComponents["default"])(ImgContainer).withConfig({
|
|
84
84
|
displayName: "image__LogoCenteringBlock",
|
|
85
85
|
componentId: "iof1ou-3"
|
|
86
|
-
})(["position:absolute;justify-content:center;align-items:center;background-color:", ";display:", ";"], _color
|
|
86
|
+
})(["position:absolute;justify-content:center;align-items:center;background-color:", ";display:", ";"], _color.colorGrayscale.white, function (props) {
|
|
87
87
|
return props.display;
|
|
88
88
|
});
|
|
89
89
|
|
|
@@ -19,14 +19,14 @@ var _image = _interopRequireDefault(require("./image"));
|
|
|
19
19
|
|
|
20
20
|
var _mockupSpec = _interopRequireDefault(require("../constants/mockup-spec"));
|
|
21
21
|
|
|
22
|
-
var _color = _interopRequireDefault(require("../constants/color"));
|
|
23
|
-
|
|
24
22
|
var _entityPath = _interopRequireDefault(require("@twreporter/core/lib/constants/entity-path"));
|
|
25
23
|
|
|
26
24
|
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
27
25
|
|
|
28
26
|
var _font = require("@twreporter/core/lib/constants/font");
|
|
29
27
|
|
|
28
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
29
|
+
|
|
30
30
|
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
31
31
|
|
|
32
32
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
@@ -69,7 +69,7 @@ var _ = {
|
|
|
69
69
|
var Container = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
70
70
|
displayName: "list-item__Container",
|
|
71
71
|
componentId: "sc-1dx5lew-0"
|
|
72
|
-
})(["width:", "px;", " ", " ", " a{color:", ";}"], _mockupSpec["default"].hd.cardWidth, _mediaQuery["default"].desktopOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n "])), _mockupSpec["default"].desktop.cardWidth), _mediaQuery["default"].tabletOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), _mockupSpec["default"].tablet.cardWidth), _mediaQuery["default"].mobileOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n "]))), _color
|
|
72
|
+
})(["width:", "px;", " ", " ", " a{color:", ";}"], _mockupSpec["default"].hd.cardWidth, _mediaQuery["default"].desktopOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n "])), _mockupSpec["default"].desktop.cardWidth), _mediaQuery["default"].tabletOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), _mockupSpec["default"].tablet.cardWidth), _mediaQuery["default"].mobileOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n "]))), _color.colorGrayscale.gray900);
|
|
73
73
|
|
|
74
74
|
var HoverEffect = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
75
75
|
displayName: "list-item__HoverEffect",
|
|
@@ -89,12 +89,12 @@ var TextBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
89
89
|
var Category = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
90
90
|
displayName: "list-item__Category",
|
|
91
91
|
componentId: "sc-1dx5lew-4"
|
|
92
|
-
})(["color:", ";font-size:12px;line-height:1.33;margin-bottom:10px;"], _color
|
|
92
|
+
})(["color:", ";font-size:12px;line-height:1.33;margin-bottom:10px;"], _color.colorBrand.heavy);
|
|
93
93
|
|
|
94
94
|
var Title = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
95
95
|
displayName: "list-item__Title",
|
|
96
96
|
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
|
|
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);
|
|
98
98
|
|
|
99
99
|
var Desc = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
100
100
|
displayName: "list-item__Desc",
|
|
@@ -115,9 +115,9 @@ var Tag = /*#__PURE__*/_styledComponents["default"].li.withConfig({
|
|
|
115
115
|
displayName: "list-item__Tag",
|
|
116
116
|
componentId: "sc-1dx5lew-9"
|
|
117
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) {
|
|
118
|
-
return props.selected ? _color
|
|
119
|
-
}, _color
|
|
120
|
-
return props.selected ? _color
|
|
118
|
+
return props.selected ? _color.colorBrand.heavy : _color.colorGrayscale.gray100;
|
|
119
|
+
}, _color.colorBrand.dark, function (props) {
|
|
120
|
+
return props.selected ? _color.colorGrayscale.white : _color.colorBrand.heavy;
|
|
121
121
|
}, _font.fontWeight.bold);
|
|
122
122
|
|
|
123
123
|
var ListItem = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -25,12 +25,12 @@ var _section = require("./section");
|
|
|
25
25
|
|
|
26
26
|
var _topics = require("../../constants/topics");
|
|
27
27
|
|
|
28
|
-
var _color = _interopRequireDefault(require("../../constants/color"));
|
|
29
|
-
|
|
30
28
|
var _font = require("@twreporter/core/lib/constants/font");
|
|
31
29
|
|
|
32
30
|
var _titleBar = require("@twreporter/react-components/lib/title-bar");
|
|
33
31
|
|
|
32
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
33
|
+
|
|
34
34
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
35
35
|
|
|
36
36
|
var _map = _interopRequireDefault(require("lodash/map"));
|
|
@@ -71,7 +71,7 @@ var _ = {
|
|
|
71
71
|
var NoData = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
72
72
|
displayName: "topics__NoData",
|
|
73
73
|
componentId: "sc-1n6udj1-0"
|
|
74
|
-
})(["width:100%;font-size:16px;color:", ";font-weight:", ";text-align:center;"], _color
|
|
74
|
+
})(["width:100%;font-size:16px;color:", ";font-weight:", ";text-align:center;"], _color.colorGrayscale.gray900, _font.fontWeight.normal);
|
|
75
75
|
|
|
76
76
|
var Topics = /*#__PURE__*/function (_Component) {
|
|
77
77
|
_inherits(Topics, _Component);
|
|
@@ -19,14 +19,14 @@ var _image = _interopRequireDefault(require("../image"));
|
|
|
19
19
|
|
|
20
20
|
var _predefinedCss = require("../../constants/predefined-css");
|
|
21
21
|
|
|
22
|
-
var _color = _interopRequireDefault(require("../../constants/color"));
|
|
23
|
-
|
|
24
22
|
var _css = require("@twreporter/core/lib/utils/css");
|
|
25
23
|
|
|
26
24
|
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
27
25
|
|
|
28
26
|
var _font = require("@twreporter/core/lib/constants/font");
|
|
29
27
|
|
|
28
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
29
|
+
|
|
30
30
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
31
31
|
|
|
32
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -84,7 +84,7 @@ var styles = {
|
|
|
84
84
|
var PostBox = /*#__PURE__*/(0, _styledComponents["default"])(_reactRouterDom.Link).withConfig({
|
|
85
85
|
displayName: "post-item__PostBox",
|
|
86
86
|
componentId: "d3t92f-0"
|
|
87
|
-
})(["display:flex;", " ", " ", " ", " ", " ", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", ";\n width: 100%;\n "])), (0, _css.arrayToCssShorthand)(styles.postBoxPadding.mobile)), _mediaQuery["default"].tabletOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), styles.imgLandscape.tablet.width), _mediaQuery["default"].desktopAndAbove(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), styles.imgLandscape.desktop.width), _mediaQuery["default"].tabletAndAbove(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border: solid .5px ", ";\n overflow: hidden;\n flex-direction: column;\n "])), _color
|
|
87
|
+
})(["display:flex;", " ", " ", " ", " ", " ", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", ";\n width: 100%;\n "])), (0, _css.arrayToCssShorthand)(styles.postBoxPadding.mobile)), _mediaQuery["default"].tabletOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), styles.imgLandscape.tablet.width), _mediaQuery["default"].desktopAndAbove(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), styles.imgLandscape.desktop.width), _mediaQuery["default"].tabletAndAbove(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border: solid .5px ", ";\n overflow: hidden;\n flex-direction: column;\n "])), _color.colorGrayscale.gray300), _predefinedCss.resetLinkStyle, _predefinedCss.linkHoverFadeOut);
|
|
88
88
|
|
|
89
89
|
var PostImage = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
90
90
|
displayName: "post-item__PostImage",
|
|
@@ -94,7 +94,7 @@ var PostImage = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
94
94
|
var PostText = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
95
95
|
displayName: "post-item__PostText",
|
|
96
96
|
componentId: "d3t92f-2"
|
|
97
|
-
})(["color:", ";font-weight:", ";font-family:", ";font-size:16px;line-height:1.5;flex:1 1 auto;white-space:normal;order:2;", " padding:", ";", " ", ""], _color
|
|
97
|
+
})(["color:", ";font-weight:", ";font-family:", ";font-size:16px;line-height:1.5;flex:1 1 auto;white-space:normal;order:2;", " padding:", ";", " ", ""], _color.colorGrayscale.gray900, _font.fontWeight.bold, _font.fontFamily.title, _mediaQuery["default"].tabletAndAbove(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n order: 1;\n "]))), (0, _css.arrayToCssShorthand)(styles.textBlockPadding.mobile), _mediaQuery["default"].tabletOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n padding: ", ";\n line-height: 1.33;\n "])), (0, _css.arrayToCssShorthand)(styles.textBlockPadding.tablet)), _mediaQuery["default"].desktopAndAbove(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n padding: ", ";\n line-height: 1.25;\n "])), (0, _css.arrayToCssShorthand)(styles.textBlockPadding.desktop)));
|
|
98
98
|
|
|
99
99
|
var PostItem = /*#__PURE__*/function (_PureComponent) {
|
|
100
100
|
_inherits(PostItem, _PureComponent);
|
|
@@ -9,7 +9,7 @@ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/med
|
|
|
9
9
|
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
|
|
12
|
-
var _color =
|
|
12
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
20
20
|
var PostsContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
21
21
|
displayName: "posts__PostsContainer",
|
|
22
22
|
componentId: "sc-16za9fh-0"
|
|
23
|
-
})(["display:flex;justify-content:space-between;align-items:stretch;", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex-direction: column;\n justify-content: flex-start;\n a {\n border-bottom: solid 1px ", ";\n }\n a:last-child {\n border-bottom: medium none currentcolor;\n }\n "])), _color
|
|
23
|
+
})(["display:flex;justify-content:space-between;align-items:stretch;", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex-direction: column;\n justify-content: flex-start;\n a {\n border-bottom: solid 1px ", ";\n }\n a:last-child {\n border-bottom: medium none currentcolor;\n }\n "])), _color.colorGrayscale.gray300));
|
|
24
24
|
|
|
25
25
|
var _default = PostsContainer;
|
|
26
26
|
exports["default"] = _default;
|
|
@@ -15,14 +15,14 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
15
15
|
|
|
16
16
|
var _predefinedCss = require("../../constants/predefined-css");
|
|
17
17
|
|
|
18
|
-
var _color = _interopRequireDefault(require("../../constants/color"));
|
|
19
|
-
|
|
20
18
|
var _css = require("@twreporter/core/lib/utils/css");
|
|
21
19
|
|
|
22
20
|
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
23
21
|
|
|
24
22
|
var _font = require("@twreporter/core/lib/constants/font");
|
|
25
23
|
|
|
24
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
25
|
+
|
|
26
26
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -74,7 +74,7 @@ var SectionContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
74
74
|
var GoToTopic = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
75
75
|
displayName: "section__GoToTopic",
|
|
76
76
|
componentId: "sc-125nvxn-2"
|
|
77
|
-
})(["color:", ";text-align:center;line-height:1;padding:", ";span{display:inline-block;max-width:400px;", " white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0.1px;font-size:16px;font-weight:", ";}svg{height:16px;vertical-align:baseline;margin-left:0.5em;}"], _color
|
|
77
|
+
})(["color:", ";text-align:center;line-height:1;padding:", ";span{display:inline-block;max-width:400px;", " white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0.1px;font-size:16px;font-weight:", ";}svg{height:16px;vertical-align:baseline;margin-left:0.5em;path{stroke:currentcolor;}}"], _color.colorSupportive.heavy, (0, _css.arrayToCssShorthand)(styles.goToTopicPadding), _mediaQuery["default"].mobileOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: 290px;\n "]))), _font.fontWeight.normal);
|
|
78
78
|
|
|
79
79
|
var TopSectionContent = function TopSectionContent(props) {
|
|
80
80
|
return /*#__PURE__*/_react["default"].createElement(SectionContent, null, props.children, !props.topicName ? null : /*#__PURE__*/_react["default"].createElement(StyledLink, {
|
|
@@ -21,12 +21,12 @@ var _predefinedCss = require("../../constants/predefined-css");
|
|
|
21
21
|
|
|
22
22
|
var _topics = require("../../constants/topics");
|
|
23
23
|
|
|
24
|
-
var _color = _interopRequireDefault(require("../../constants/color"));
|
|
25
|
-
|
|
26
24
|
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
27
25
|
|
|
28
26
|
var _font = require("@twreporter/core/lib/constants/font");
|
|
29
27
|
|
|
28
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
29
|
+
|
|
30
30
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
31
31
|
|
|
32
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -130,7 +130,7 @@ var ImageBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
130
130
|
var TextBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
131
131
|
displayName: "topic-item__TextBlock",
|
|
132
132
|
componentId: "sc-1tffa4f-4"
|
|
133
|
-
})(["padding-left:", "px;", " ", " flex:1 1 auto;display:flex;flex-direction:column;color:", ";"], styles.textBlock.mobile.paddingLeft, _mediaQuery["default"].tabletOnly(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-left: ", "px;\n padding-bottom: ", "px;\n "])), styles.textBlock.tablet.paddingLeft, styles.textBlock.tablet.paddingBottom), _mediaQuery["default"].desktopAndAbove(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding-left: ", "px;\n padding-bottom: ", "px;\n "])), styles.textBlock.desktop.paddingLeft, styles.textBlock.desktop.paddingBottom), _color
|
|
133
|
+
})(["padding-left:", "px;", " ", " flex:1 1 auto;display:flex;flex-direction:column;color:", ";"], styles.textBlock.mobile.paddingLeft, _mediaQuery["default"].tabletOnly(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-left: ", "px;\n padding-bottom: ", "px;\n "])), styles.textBlock.tablet.paddingLeft, styles.textBlock.tablet.paddingBottom), _mediaQuery["default"].desktopAndAbove(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding-left: ", "px;\n padding-bottom: ", "px;\n "])), styles.textBlock.desktop.paddingLeft, styles.textBlock.desktop.paddingBottom), _color.colorGrayscale.gray900);
|
|
134
134
|
|
|
135
135
|
var TopicTitle = /*#__PURE__*/_styledComponents["default"].h2.withConfig({
|
|
136
136
|
displayName: "topic-item__TopicTitle",
|
package/lib/pagination/index.js
CHANGED
|
@@ -15,12 +15,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
17
|
|
|
18
|
-
var _color = _interopRequireDefault(require("./constants/color"));
|
|
19
|
-
|
|
20
18
|
var _predefinedCss = require("@twreporter/core/lib/constants/predefined-css");
|
|
21
19
|
|
|
22
20
|
var _css = require("@twreporter/core/lib/utils/css");
|
|
23
21
|
|
|
22
|
+
var _color = require("@twreporter/core/lib/constants/color");
|
|
23
|
+
|
|
24
24
|
var _concat = _interopRequireDefault(require("lodash/concat"));
|
|
25
25
|
|
|
26
26
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
@@ -84,7 +84,7 @@ PageUpIcon.defaultProps = {
|
|
|
84
84
|
height: "11",
|
|
85
85
|
viewBox: "0 0 9 11",
|
|
86
86
|
xmlns: "http://www.w3.org/2000/svg"
|
|
87
|
-
}; //
|
|
87
|
+
}; // @twreporter
|
|
88
88
|
|
|
89
89
|
var _ = {
|
|
90
90
|
concat: _concat["default"],
|
|
@@ -116,15 +116,15 @@ var Boxes = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
116
116
|
var Box = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
117
117
|
displayName: "pagination__Box",
|
|
118
118
|
componentId: "sc-17bqftr-2"
|
|
119
|
-
})(["margin:0 5px 0 5px;width:", "px;height:", "px;box-sizing:border-box;user-select:none;display:inline-block;font-size:14px;cursor:pointer;color:", ";position:relative;>:first-child{", "}"], styles.btnBoxSize.desktop, styles.btnBoxSize.desktop, _color
|
|
119
|
+
})(["margin:0 5px 0 5px;width:", "px;height:", "px;box-sizing:border-box;user-select:none;display:inline-block;font-size:14px;cursor:pointer;color:", ";position:relative;>:first-child{", "}"], styles.btnBoxSize.desktop, styles.btnBoxSize.desktop, _color.colorSupportive.heavy, _predefinedCss.absoluteCentering);
|
|
120
120
|
|
|
121
121
|
var PageNumberBox = /*#__PURE__*/(0, _styledComponents["default"])(Box).withConfig({
|
|
122
122
|
displayName: "pagination__PageNumberBox",
|
|
123
123
|
componentId: "sc-17bqftr-3"
|
|
124
|
-
})(["border:solid 1px ", ";border-radius:50%;line-height:", "px;background-color:", ";> span{color:", ";}", ""], _color
|
|
125
|
-
return props.isCurrent ? _color
|
|
124
|
+
})(["border:solid 1px ", ";border-radius:50%;line-height:", "px;background-color:", ";> span{color:", ";}", ""], _color.colorSupportive.heavy, styles.btnBoxSize.desktop, function (props) {
|
|
125
|
+
return props.isCurrent ? _color.colorSupportive.heavy : 'transparent';
|
|
126
126
|
}, function (props) {
|
|
127
|
-
return props.isCurrent ? _color
|
|
127
|
+
return props.isCurrent ? _color.colorGrayscale.white : _color.colorSupportive.heavy;
|
|
128
128
|
}, _mediaQuery["default"].mobileOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: ", ";\n "])), function (props) {
|
|
129
129
|
return props.isCurrent ? '' : 'none';
|
|
130
130
|
}));
|
|
@@ -135,7 +135,7 @@ var EllipsisBox = /*#__PURE__*/(0, _styledComponents["default"])(Box).withConfig
|
|
|
135
135
|
var PrevNextBtn = /*#__PURE__*/(0, _styledComponents["default"])(Box).withConfig({
|
|
136
136
|
displayName: "pagination__PrevNextBtn",
|
|
137
137
|
componentId: "sc-17bqftr-5"
|
|
138
|
-
})(["padding:", ";cursor:pointer;path{stroke:", ";}"], (0, _css.arrayToCssShorthand)(styles.prevNextBtnPadding), _color
|
|
138
|
+
})(["padding:", ";cursor:pointer;path{stroke:", ";}"], (0, _css.arrayToCssShorthand)(styles.prevNextBtnPadding), _color.colorSupportive.heavy);
|
|
139
139
|
/*
|
|
140
140
|
Pages Array:
|
|
141
141
|
|
package/lib/text/headline.js
CHANGED
|
@@ -43,7 +43,7 @@ var H1Container = /*#__PURE__*/(0, _styledComponents["default"])(DefaultContaine
|
|
|
43
43
|
componentId: "axdp97-1"
|
|
44
44
|
})(["line-height:125%;font-size:36px;font-family:", ";", ""], function (props) {
|
|
45
45
|
return props.fontFamily;
|
|
46
|
-
}, _mediaQuery["default"].tabletAndBelow(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size:
|
|
46
|
+
}, _mediaQuery["default"].tabletAndBelow(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 28px;\n "]))));
|
|
47
47
|
var H2Container = /*#__PURE__*/(0, _styledComponents["default"])(DefaultContainer).withConfig({
|
|
48
48
|
displayName: "headline__H2Container",
|
|
49
49
|
componentId: "axdp97-2"
|
|
@@ -55,25 +55,25 @@ var H3Container = /*#__PURE__*/(0, _styledComponents["default"])(DefaultContaine
|
|
|
55
55
|
componentId: "axdp97-3"
|
|
56
56
|
})(["line-height:150%;font-size:28px;font-family:", ";", ""], function (props) {
|
|
57
57
|
return props.fontFamily;
|
|
58
|
-
}, _mediaQuery["default"].tabletAndBelow(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size:
|
|
58
|
+
}, _mediaQuery["default"].tabletAndBelow(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 22px;\n "]))));
|
|
59
59
|
var H4Container = /*#__PURE__*/(0, _styledComponents["default"])(DefaultContainer).withConfig({
|
|
60
60
|
displayName: "headline__H4Container",
|
|
61
61
|
componentId: "axdp97-4"
|
|
62
62
|
})(["line-height:150%;font-size:22px;font-family:", ";", ""], function (props) {
|
|
63
63
|
return props.fontFamily;
|
|
64
|
-
}, _mediaQuery["default"].tabletAndBelow(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size:
|
|
64
|
+
}, _mediaQuery["default"].tabletAndBelow(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: 20px;\n "]))));
|
|
65
65
|
var H5Container = /*#__PURE__*/(0, _styledComponents["default"])(DefaultContainer).withConfig({
|
|
66
66
|
displayName: "headline__H5Container",
|
|
67
67
|
componentId: "axdp97-5"
|
|
68
68
|
})(["line-height:150%;font-size:18px;font-family:", ";", ""], function (props) {
|
|
69
69
|
return props.fontFamily;
|
|
70
|
-
}, _mediaQuery["default"].tabletAndBelow(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size:
|
|
70
|
+
}, _mediaQuery["default"].tabletAndBelow(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: 18px;\n "]))));
|
|
71
71
|
var H6Container = /*#__PURE__*/(0, _styledComponents["default"])(DefaultContainer).withConfig({
|
|
72
72
|
displayName: "headline__H6Container",
|
|
73
73
|
componentId: "axdp97-6"
|
|
74
74
|
})(["line-height:150%;font-size:16px;font-family:", ";", ""], function (props) {
|
|
75
75
|
return props.fontFamily;
|
|
76
|
-
}, _mediaQuery["default"].tabletAndBelow(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n font-size:
|
|
76
|
+
}, _mediaQuery["default"].tabletAndBelow(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n font-size: 16px;\n "]))));
|
|
77
77
|
|
|
78
78
|
var withContainer = function withContainer(HeadlineContainer) {
|
|
79
79
|
var headline = function headline(_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.22.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>",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react-dom": "^16.0.0",
|
|
52
52
|
"storybook": "^7.5.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "80e49951ecff649c6a8048d53719e3c35c8c0ca8"
|
|
55
55
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
white: '#ffffff',
|
|
9
|
-
red: '#c40c23',
|
|
10
|
-
darkRed: '#99000a',
|
|
11
|
-
gray: '#9c9c9c',
|
|
12
|
-
darkGray: '#404040'
|
|
13
|
-
};
|
|
14
|
-
exports["default"] = _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
gray: 'rgba(115, 115, 115, 0.8)',
|
|
9
|
-
darkGray: '#3e3f3f',
|
|
10
|
-
lightRed: '#e60013',
|
|
11
|
-
red: '#c40c23'
|
|
12
|
-
};
|
|
13
|
-
exports["default"] = _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
white: '#ffffff',
|
|
9
|
-
red: '#c40c23',
|
|
10
|
-
lightGray: '#d8d8d8',
|
|
11
|
-
gray: '#9c9c9c',
|
|
12
|
-
notSoBlack: '#262626',
|
|
13
|
-
gold: '#a67a44'
|
|
14
|
-
};
|
|
15
|
-
exports["default"] = _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
white: '#ffffff',
|
|
9
|
-
red: '#c40c23',
|
|
10
|
-
drakRed: '#c4333e',
|
|
11
|
-
lightGray: '#f1f1f1',
|
|
12
|
-
gray: '#d8d8d8',
|
|
13
|
-
darkGray: '#4a4949',
|
|
14
|
-
darkDarkGray: '#404040',
|
|
15
|
-
blue: '#5eb2fd'
|
|
16
|
-
};
|
|
17
|
-
exports["default"] = _default;
|