@times-components/article-paragraph 1.8.70 → 1.9.0

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.9.0](https://github.com/newsuk/times-components/compare/@times-components/article-paragraph@1.8.70...@times-components/article-paragraph@1.9.0) (2023-03-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * **TDP-3084:** updated fallback font settings for overrides ([#3292](https://github.com/newsuk/times-components/issues/3292)) ([12f9c6c](https://github.com/newsuk/times-components/commit/12f9c6c06fdfaf52b7b28bbcc2bbeb8b39d29d57))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.8.70](https://github.com/newsuk/times-components/compare/@times-components/article-paragraph@1.8.69...@times-components/article-paragraph@1.8.70) (2023-03-20)
7
18
 
8
19
  **Note:** Version bump only for package @times-components/article-paragraph
@@ -35,7 +35,7 @@ const dropCapMargins = {
35
35
  const Paragraph = _styledComponents.default.p.withConfig({
36
36
  displayName: "responsive__Paragraph",
37
37
  componentId: "sc-1pktst5-0"
38
- })(["color:", ";display:block;font-family:\"", "\";line-height:26px;font-size:", "px;margin:0 auto ", ";padding-right:", ";padding-left:", ";&:first-of-type:after{content:\"\";clear:both;display:table;}@media (min-width:", "px){font-size:", "px;line-height:30px;padding-left:0;padding-right:0;width:80.8%;}@media (min-width:", "px){width:56.2%;}"], _tsStyleguide.colours.functional.primary, _tsStyleguide.fonts.bodyRegular, _tsStyleguide.fontSizes.bodyMobile, (0, _tsStyleguide.spacing)(5), (0, _tsStyleguide.spacing)(2), (0, _tsStyleguide.spacing)(2), _tsStyleguide.breakpoints.medium, _tsStyleguide.fontSizes.body, _tsStyleguide.breakpoints.wide);
38
+ })(["color:", ";display:block;font-family:", ";line-height:26px;font-size:", "px;margin:0 auto ", ";padding-right:", ";padding-left:", ";&:first-of-type:after{content:\"\";clear:both;display:table;}@media (min-width:", "px){font-size:", "px;line-height:30px;padding-left:0;padding-right:0;width:80.8%;}@media (min-width:", "px){width:56.2%;}"], _tsStyleguide.colours.functional.primary, _tsStyleguide.fontsWithFallback.bodyRegular, _tsStyleguide.fontSizes.bodyMobile, (0, _tsStyleguide.spacing)(5), (0, _tsStyleguide.spacing)(2), (0, _tsStyleguide.spacing)(2), _tsStyleguide.breakpoints.medium, _tsStyleguide.fontSizes.body, _tsStyleguide.breakpoints.wide);
39
39
 
40
40
  exports.Paragraph = Paragraph;
41
41
 
@@ -45,7 +45,7 @@ const DropCap = _styledComponents.default.span.withConfig({
45
45
  })(["float:left;color:", ";padding-right:10px;line-height:1em;", ";"], _tsStyleguide.colours.functional.primary, _ref => {
46
46
  let _ref$font = _ref.font,
47
47
  font = _ref$font === void 0 ? "dropCap" : _ref$font;
48
- return (0, _styledComponents.css)(["margin-top:", "em;line-height:", "em;font-size:", "px;font-family:\"", "\";"], dropCapMargins[font], lineHeights[font], dropCapFontSizes[font], _tsStyleguide.fonts[font]);
48
+ return (0, _styledComponents.css)(["margin-top:", "em;line-height:", "em;font-size:", "px;font-family:", ";"], dropCapMargins[font], lineHeights[font], dropCapFontSizes[font], _tsStyleguide.fontsWithFallback[font]);
49
49
  });
50
50
 
51
51
  exports.DropCap = DropCap;
@@ -54,7 +54,7 @@ const sharedStyles = function sharedStyles() {
54
54
  },
55
55
  dropCapTextElement: {
56
56
  color: colours.functional.primary,
57
- fontFamily: _tsStyleguide.fonts[dropCapFont],
57
+ fontFamily: _tsStyleguide.fontsWithFallback[dropCapFont],
58
58
  fontSize: dropCapFontSize,
59
59
  marginBottom: dropCapMargins.bottom,
60
60
  marginRight: spacing(1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-components/article-paragraph",
3
- "version": "1.8.70",
3
+ "version": "1.9.0",
4
4
  "description": "Article Paragraph",
5
5
  "main": "dist/index",
6
6
  "dev": "src/index",
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "homepage": "https://github.com/newsuk/times-components#readme",
34
34
  "dependencies": {
35
- "@times-components/article-skeleton": "1.95.18",
36
- "@times-components/context": "1.10.19",
35
+ "@times-components/article-skeleton": "1.96.0",
36
+ "@times-components/context": "1.10.20",
37
37
  "@times-components/markup-forest": "1.9.1",
38
- "@times-components/ts-styleguide": "1.40.4",
38
+ "@times-components/ts-styleguide": "1.41.0",
39
39
  "prop-types": "15.7.2",
40
40
  "styled-components": "4.3.2"
41
41
  },
@@ -43,9 +43,9 @@
43
43
  "@babel/core": "7.4.4",
44
44
  "@times-components/eslint-config-thetimes": "0.8.18",
45
45
  "@times-components/jest-configurator-web": "0.8.1",
46
- "@times-components/jest-serializer": "3.7.2",
47
- "@times-components/markup": "3.7.21",
48
- "@times-components/storybook": "4.7.2",
46
+ "@times-components/jest-serializer": "3.8.0",
47
+ "@times-components/markup": "3.8.0",
48
+ "@times-components/storybook": "4.8.0",
49
49
  "@times-components/test-utils": "2.4.1",
50
50
  "@times-components/webpack-configurator": "2.1.0",
51
51
  "babel-jest": "24.8.0",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "b66092e71653e0d25fd131fb1ac747d810313e3b"
72
+ "gitHead": "c26e915d900f103440c55fbf3806a4db4b274a12"
73
73
  }
package/rnw.js CHANGED
@@ -1 +1 @@
1
- module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("react")},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(0);const a={cultureMagazine:104,dropCap:110,stMagazine:105,styleMagazine:103},p={cultureMagazine:.85,dropCap:.55,stMagazine:.7,styleMagazine:.8},l={cultureMagazine:-.06,dropCap:.2,stMagazine:.065,styleMagazine:-.01},u=o.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-1pktst5-0"})(["color:",';display:block;font-family:"','";line-height:26px;font-size:',"px;margin:0 auto ",";padding-right:",";padding-left:",';&:first-of-type:after{content:"";clear:both;display:table;}@media (min-width:',"px){font-size:","px;line-height:30px;padding-left:0;padding-right:0;width:80.8%;}@media (min-width:","px){width:56.2%;}"],i.colours.functional.primary,i.fonts.bodyRegular,i.fontSizes.bodyMobile,Object(i.spacing)(5),Object(i.spacing)(2),Object(i.spacing)(2),i.breakpoints.medium,i.fontSizes.body,i.breakpoints.wide),s=o.a.span.withConfig({displayName:"responsive__DropCap",componentId:"sc-1pktst5-1"})(["float:left;color:",";padding-right:10px;line-height:1em;",";"],i.colours.functional.primary,e=>{let t=e.font,n=void 0===t?"dropCap":t;return Object(r.css)(["margin-top:","em;line-height:","em;font-size:",'px;font-family:"','";'],l[n],p[n],a[n],i.fonts[n])});var c=u,f=n(3),d=n.n(f),g=n(1),y=n.n(g);y.a.string,y.a.string;function m(e){let t=e.colour,n=e.children,r=e.font;return d.a.createElement(s,{font:r,style:{color:t}},n)}m.defaultProps={colour:"black",font:"dropCap"};var b=m;n.d(t,"DropCapView",(function(){return b}));t.default=c}]);
1
+ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("react")},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(0);const a={cultureMagazine:104,dropCap:110,stMagazine:105,styleMagazine:103},p={cultureMagazine:.85,dropCap:.55,stMagazine:.7,styleMagazine:.8},l={cultureMagazine:-.06,dropCap:.2,stMagazine:.065,styleMagazine:-.01},u=o.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-1pktst5-0"})(["color:",";display:block;font-family:",";line-height:26px;font-size:","px;margin:0 auto ",";padding-right:",";padding-left:",';&:first-of-type:after{content:"";clear:both;display:table;}@media (min-width:',"px){font-size:","px;line-height:30px;padding-left:0;padding-right:0;width:80.8%;}@media (min-width:","px){width:56.2%;}"],i.colours.functional.primary,i.fontsWithFallback.bodyRegular,i.fontSizes.bodyMobile,Object(i.spacing)(5),Object(i.spacing)(2),Object(i.spacing)(2),i.breakpoints.medium,i.fontSizes.body,i.breakpoints.wide),s=o.a.span.withConfig({displayName:"responsive__DropCap",componentId:"sc-1pktst5-1"})(["float:left;color:",";padding-right:10px;line-height:1em;",";"],i.colours.functional.primary,e=>{let t=e.font,n=void 0===t?"dropCap":t;return Object(r.css)(["margin-top:","em;line-height:","em;font-size:","px;font-family:",";"],l[n],p[n],a[n],i.fontsWithFallback[n])});var c=u,f=n(3),d=n.n(f),g=n(1),y=n.n(g);y.a.string,y.a.string;function m(e){let t=e.colour,n=e.children,r=e.font;return d.a.createElement(s,{font:r,style:{color:t}},n)}m.defaultProps={colour:"black",font:"dropCap"};var b=m;n.d(t,"DropCapView",(function(){return b}));t.default=c}]);