@twreporter/react-article-components 1.10.0-rc.2 → 1.10.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,17 @@
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
+ # [1.10.0-rc.3](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.10.0-rc.2...@twreporter/react-article-components@1.10.0-rc.3) (2023-12-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * font family and font size for article title ([bbc51f0](https://github.com/twreporter/twreporter-npm-packages/commit/bbc51f03b7cac1b6e5d0f7958cc5d3eb12dd43c2))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.10.0-rc.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-article-components@1.10.0-rc.1...@twreporter/react-article-components@1.10.0-rc.2) (2023-12-05)
7
18
 
8
19
  **Note:** Version bump only for package @twreporter/react-article-components
@@ -29,7 +29,7 @@ var _headline = require("@twreporter/react-components/lib/text/headline");
29
29
 
30
30
  var _get = _interopRequireDefault(require("lodash/get"));
31
31
 
32
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
32
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
33
33
 
34
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
35
35
 
@@ -78,12 +78,12 @@ var TextBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
78
78
  var Title = /*#__PURE__*/(0, _styledComponents["default"])(_headline.H1).withConfig({
79
79
  displayName: "normal__Title",
80
80
  componentId: "qpgeb2-2"
81
- })(["margin:0 0 40px 0;", ""], _mediaQuery["default"].mobileOnly(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-bottom: 38px;\n "]))));
81
+ })(["margin:0 0 40px 0;", " ", ""], _mediaQuery["default"].desktopAndAbove(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: 40px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-bottom: 38px;\n "]))));
82
82
 
83
83
  var Subtitle = /*#__PURE__*/_styledComponents["default"].h2.withConfig({
84
84
  displayName: "normal__Subtitle",
85
85
  componentId: "qpgeb2-3"
86
- })(["font-weight:", ";margin:0 0 10px 0;", " ", ""], _typography["default"].font.weight.bold, _mediaQuery["default"].mobileOnly(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n font-size: 16px;\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n line-height: 2.1;\n font-size: 20px;\n "]))));
86
+ })(["font-weight:", ";margin:0 0 10px 0;", " ", ""], _typography["default"].font.weight.bold, _mediaQuery["default"].mobileOnly(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-size: 16px;\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n line-height: 2.1;\n font-size: 20px;\n "]))));
87
87
 
88
88
  var Topic = /*#__PURE__*/_styledComponents["default"].div.withConfig({
89
89
  displayName: "normal__Topic",
@@ -100,14 +100,14 @@ var Figure = /*#__PURE__*/_styledComponents["default"].figure.withConfig({
100
100
  var FigCaption = /*#__PURE__*/_styledComponents["default"].figcaption.withConfig({
101
101
  displayName: "normal__FigCaption",
102
102
  componentId: "qpgeb2-6"
103
- })(["margin-top:15px;", " ", " ", " ", ""], _mediaQuery["default"].tabletAndBelow(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: 14px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-left: calc(6/375*100%);\n margin-right: calc(6/375*100%);\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-left: calc(15/768*100%);\n margin-right: calc(15/768*100%);\n "]))), _mediaQuery["default"].hdOnly(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-top: 20px;\n "]))));
103
+ })(["margin-top:15px;", " ", " ", " ", ""], _mediaQuery["default"].tabletAndBelow(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-size: 14px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-left: calc(6/375*100%);\n margin-right: calc(6/375*100%);\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-left: calc(15/768*100%);\n margin-right: calc(15/768*100%);\n "]))), _mediaQuery["default"].hdOnly(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-top: 20px;\n "]))));
104
104
 
105
105
  var BackgroundBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
106
106
  displayName: "normal__BackgroundBlock",
107
107
  componentId: "qpgeb2-7"
108
108
  })(["", " ", " ", " ", " ", ""], function (props) {
109
109
  return getBackgroundBlockStyles(props.theme.name);
110
- }, _mediaQuery["default"].hdOnly(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding-top: 100px;\n "]))), _mediaQuery["default"].desktopOnly(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding-top: 48px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n padding-top: 32px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n padding-top: 30px;\n "]))));
110
+ }, _mediaQuery["default"].hdOnly(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding-top: 100px;\n "]))), _mediaQuery["default"].desktopOnly(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n padding-top: 48px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n padding-top: 32px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n padding-top: 30px;\n "]))));
111
111
 
112
112
  function getBackgroundBlockStyles(themeName) {
113
113
  switch (themeName) {
@@ -142,7 +142,7 @@ var NormalLeading = /*#__PURE__*/function (_React$PureComponent) {
142
142
  _createClass(NormalLeading, [{
143
143
  key: "getFigureCSS",
144
144
  value: function getFigureCSS() {
145
- return (0, _styledComponents.css)(["", " ", " ", " ", " ", ""], _mediaQuery["default"].mobileOnly(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 100%;\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin: 0 auto;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n width: calc(", "/768*100%);\n "])), this.figureWidth.tablet), _mediaQuery["default"].desktopOnly(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), this.figureWidth.desktop), _mediaQuery["default"].hdOnly(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), this.figureWidth.hd));
145
+ return (0, _styledComponents.css)(["", " ", " ", " ", " ", ""], _mediaQuery["default"].mobileOnly(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n width: 100%;\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin: 0 auto;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: calc(", "/768*100%);\n "])), this.figureWidth.tablet), _mediaQuery["default"].desktopOnly(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), this.figureWidth.desktop), _mediaQuery["default"].hdOnly(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), this.figureWidth.hd));
146
146
  }
147
147
  }, {
148
148
  key: "render",
@@ -160,6 +160,7 @@ var NormalLeading = /*#__PURE__*/function (_React$PureComponent) {
160
160
  to: topicHref
161
161
  }, /*#__PURE__*/_react["default"].createElement(Topic, null, shortTitle));
162
162
  }) : null, subtitle ? /*#__PURE__*/_react["default"].createElement(Subtitle, null, subtitle) : null, /*#__PURE__*/_react["default"].createElement(Title, {
163
+ type: _headline.H1.Type.ARTICLE,
163
164
  text: title
164
165
  })), /*#__PURE__*/_react["default"].createElement(_StyledFigure, {
165
166
  _css: this.getFigureCSS()
@@ -188,6 +189,6 @@ _defineProperty(NormalLeading, "defaultProps", {
188
189
  isTopicPublished: false
189
190
  });
190
191
 
191
- var _StyledFigure = (0, _styledComponents["default"])(Figure)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["", ""])), function (p) {
192
+ var _StyledFigure = (0, _styledComponents["default"])(Figure)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["", ""])), function (p) {
192
193
  return p._css;
193
194
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twreporter/react-article-components",
3
- "version": "1.10.0-rc.2",
3
+ "version": "1.10.0-rc.3",
4
4
  "description": "The Reporter react article components, which are used in article page",
5
5
  "main": "lib/components/article-page.js",
6
6
  "repository": "https://github.com/twreporter/twreporter-npm-packages.git",
@@ -40,5 +40,5 @@
40
40
  "files": [
41
41
  "lib"
42
42
  ],
43
- "gitHead": "6f64a22c549e4c15941adaba7de8868bf9dffc03"
43
+ "gitHead": "1fb54003ac95214fe59198efbc73c7fb91eeb809"
44
44
  }