@times-components/article-paragraph 1.8.69 → 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 +19 -0
- package/dist/styles/responsive.js +2 -2
- package/dist/styles/shared.js +1 -1
- package/package.json +11 -11
- package/rnw.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
|
|
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)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @times-components/article-paragraph
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.8.69](https://github.com/newsuk/times-components/compare/@times-components/article-paragraph@1.8.68...@times-components/article-paragraph@1.8.69) (2023-03-14)
|
|
7
26
|
|
|
8
27
|
**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
|
|
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
|
|
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;
|
package/dist/styles/shared.js
CHANGED
|
@@ -54,7 +54,7 @@ const sharedStyles = function sharedStyles() {
|
|
|
54
54
|
},
|
|
55
55
|
dropCapTextElement: {
|
|
56
56
|
color: colours.functional.primary,
|
|
57
|
-
fontFamily: _tsStyleguide.
|
|
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.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Article Paragraph",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"dev": "src/index",
|
|
@@ -32,21 +32,21 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/newsuk/times-components#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@times-components/article-skeleton": "1.
|
|
36
|
-
"@times-components/context": "1.10.
|
|
37
|
-
"@times-components/markup-forest": "1.9.
|
|
38
|
-
"@times-components/ts-styleguide": "1.
|
|
35
|
+
"@times-components/article-skeleton": "1.96.0",
|
|
36
|
+
"@times-components/context": "1.10.20",
|
|
37
|
+
"@times-components/markup-forest": "1.9.1",
|
|
38
|
+
"@times-components/ts-styleguide": "1.41.0",
|
|
39
39
|
"prop-types": "15.7.2",
|
|
40
40
|
"styled-components": "4.3.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/core": "7.4.4",
|
|
44
44
|
"@times-components/eslint-config-thetimes": "0.8.18",
|
|
45
|
-
"@times-components/jest-configurator-web": "0.8.
|
|
46
|
-
"@times-components/jest-serializer": "3.
|
|
47
|
-
"@times-components/markup": "3.
|
|
48
|
-
"@times-components/storybook": "4.
|
|
49
|
-
"@times-components/test-utils": "2.4.
|
|
45
|
+
"@times-components/jest-configurator-web": "0.8.1",
|
|
46
|
+
"@times-components/jest-serializer": "3.8.0",
|
|
47
|
+
"@times-components/markup": "3.8.0",
|
|
48
|
+
"@times-components/storybook": "4.8.0",
|
|
49
|
+
"@times-components/test-utils": "2.4.1",
|
|
50
50
|
"@times-components/webpack-configurator": "2.1.0",
|
|
51
51
|
"babel-jest": "24.8.0",
|
|
52
52
|
"eslint": "5.9.0",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
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:",
|
|
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}]);
|