@times-components/key-facts 2.11.43 → 2.12.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.js +2 -2
- package/package.json +12 -12
- 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
|
+
# [2.12.0](https://github.com/newsuk/times-components/compare/@times-components/key-facts@2.11.44...@times-components/key-facts@2.12.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
|
+
## [2.11.44](https://github.com/newsuk/times-components/compare/@times-components/key-facts@2.11.43...@times-components/key-facts@2.11.44) (2023-03-20)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @times-components/key-facts
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.11.43](https://github.com/newsuk/times-components/compare/@times-components/key-facts@2.11.42...@times-components/key-facts@2.11.43) (2023-03-08)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @times-components/key-facts
|
package/dist/styles.js
CHANGED
|
@@ -35,14 +35,14 @@ exports.Bullet = Bullet;
|
|
|
35
35
|
const KeyFactsTitle = _styledComponents.default.h2.withConfig({
|
|
36
36
|
displayName: "styles__KeyFactsTitle",
|
|
37
37
|
componentId: "sc-1shod7b-3"
|
|
38
|
-
})(["font-family:", ";font-size:", "px;font-weight:400;margin:0px 0px 20px 0px;color:", ";"], _tsStyleguide.
|
|
38
|
+
})(["font-family:", ";font-size:", "px;font-weight:400;margin:0px 0px 20px 0px;color:", ";"], _tsStyleguide.fontsWithFallback.headline, _tsStyleguide.fontSizes.keyFactsTitle, _tsStyleguide.colours.functional.brandColour);
|
|
39
39
|
|
|
40
40
|
exports.KeyFactsTitle = KeyFactsTitle;
|
|
41
41
|
|
|
42
42
|
const Text = _styledComponents.default.span.withConfig({
|
|
43
43
|
displayName: "styles__Text",
|
|
44
44
|
componentId: "sc-1shod7b-4"
|
|
45
|
-
})(["color:", ";font-family:", ";font-size:", "px;margin-top:-8px;padding-left:", ";width:95%;line-height:28px;"], _tsStyleguide.colours.functional.primary, _tsStyleguide.
|
|
45
|
+
})(["color:", ";font-family:", ";font-size:", "px;margin-top:-8px;padding-left:", ";width:95%;line-height:28px;"], _tsStyleguide.colours.functional.primary, _tsStyleguide.fontsWithFallback.bodyRegular, _tsStyleguide.fontSizes.infoSubText, (0, _tsStyleguide.spacing)(3));
|
|
46
46
|
|
|
47
47
|
exports.Text = Text;
|
|
48
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/key-facts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "Bulleted list of text data",
|
|
5
5
|
"main": "dist/key-facts",
|
|
6
6
|
"dev": "src/key-facts",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "7.4.4",
|
|
37
37
|
"@times-components/eslint-config-thetimes": "0.8.18",
|
|
38
|
-
"@times-components/jest-configurator-web": "0.8.
|
|
39
|
-
"@times-components/jest-serializer": "3.
|
|
40
|
-
"@times-components/storybook": "4.
|
|
41
|
-
"@times-components/tealium-utils": "0.8.
|
|
38
|
+
"@times-components/jest-configurator-web": "0.8.1",
|
|
39
|
+
"@times-components/jest-serializer": "3.8.0",
|
|
40
|
+
"@times-components/storybook": "4.8.0",
|
|
41
|
+
"@times-components/tealium-utils": "0.8.3",
|
|
42
42
|
"@times-components/webpack-configurator": "2.1.0",
|
|
43
43
|
"babel-jest": "24.8.0",
|
|
44
44
|
"depcheck": "0.6.9",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"webpack": "4.30.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@times-components/markup": "3.
|
|
57
|
-
"@times-components/markup-forest": "1.9.
|
|
58
|
-
"@times-components/responsive": "0.14.
|
|
59
|
-
"@times-components/ts-components": "1.
|
|
60
|
-
"@times-components/ts-styleguide": "1.
|
|
61
|
-
"@times-components/utils": "6.
|
|
56
|
+
"@times-components/markup": "3.8.0",
|
|
57
|
+
"@times-components/markup-forest": "1.9.1",
|
|
58
|
+
"@times-components/responsive": "0.14.20",
|
|
59
|
+
"@times-components/ts-components": "1.66.0",
|
|
60
|
+
"@times-components/ts-styleguide": "1.41.0",
|
|
61
|
+
"@times-components/utils": "6.16.0",
|
|
62
62
|
"prop-types": "15.7.2",
|
|
63
63
|
"styled-components": "4.3.2"
|
|
64
64
|
},
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c26e915d900f103440c55fbf3806a4db4b274a12"
|
|
77
77
|
}
|
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=8)}([function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(5),a=n(6),c=n(7),l=n.n(c),s=n(4),u=n(2),p=n.n(u),d=(p.a.number.isRequired,p.a.object.isRequired,p.a.func.isRequired,n(3)),f=n.n(d),m=n(0);const b=f.a.a.withConfig({displayName:"styles__KeyFactTextLink",componentId:"sc-1shod7b-0"})(["color:inherit;cursor:pointer;text-decoration:underline;&:hover{color:",";}&:active{color:",";}"],m.colours.functional.brandColour,m.colours.functional.brandColour),y=f.a.div.withConfig({displayName:"styles__BulletContainer",componentId:"sc-1shod7b-1"})(["display:flex;flex-direction:row;margin-bottom:",";padding-left:",";width:100%;:last-of-type{margin-bottom:0px;}"],Object(m.spacing)(4),Object(m.spacing)(1)),g=f.a.div.withConfig({displayName:"styles__Bullet",componentId:"sc-1shod7b-2"})(["height:6px;width:6px;margin-top:2px;background-color:#9f0000;"]),h=f.a.h2.withConfig({displayName:"styles__KeyFactsTitle",componentId:"sc-1shod7b-3"})(["font-family:",";font-size:","px;font-weight:400;margin:0px 0px 20px 0px;color:",";"],m.
|
|
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=8)}([function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(5),a=n(6),c=n(7),l=n.n(c),s=n(4),u=n(2),p=n.n(u),d=(p.a.number.isRequired,p.a.object.isRequired,p.a.func.isRequired,n(3)),f=n.n(d),m=n(0);const b=f.a.a.withConfig({displayName:"styles__KeyFactTextLink",componentId:"sc-1shod7b-0"})(["color:inherit;cursor:pointer;text-decoration:underline;&:hover{color:",";}&:active{color:",";}"],m.colours.functional.brandColour,m.colours.functional.brandColour),y=f.a.div.withConfig({displayName:"styles__BulletContainer",componentId:"sc-1shod7b-1"})(["display:flex;flex-direction:row;margin-bottom:",";padding-left:",";width:100%;:last-of-type{margin-bottom:0px;}"],Object(m.spacing)(4),Object(m.spacing)(1)),g=f.a.div.withConfig({displayName:"styles__Bullet",componentId:"sc-1shod7b-2"})(["height:6px;width:6px;margin-top:2px;background-color:#9f0000;"]),h=f.a.h2.withConfig({displayName:"styles__KeyFactsTitle",componentId:"sc-1shod7b-3"})(["font-family:",";font-size:","px;font-weight:400;margin:0px 0px 20px 0px;color:",";"],m.fontsWithFallback.headline,m.fontSizes.keyFactsTitle,m.colours.functional.brandColour),x=f.a.span.withConfig({displayName:"styles__Text",componentId:"sc-1shod7b-4"})(["color:",";font-family:",";font-size:","px;margin-top:-8px;padding-left:",";width:95%;line-height:28px;"],m.colours.functional.primary,m.fontsWithFallback.bodyRegular,m.fontSizes.infoSubText,Object(m.spacing)(3)),v=f.a.div.withConfig({displayName:"styles__KeyFactsContainer",componentId:"sc-1shod7b-5"})(["margin:0 auto 20px auto;padding:16px 20px;background-color:",";border-top:2px solid #9f0000;@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],m.colours.functional.backgroundPrimary,m.breakpoints.medium,m.breakpoints.wide);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=e=>{let t=e.listIndex,n=e.keyFactItem,r=e.fireAnalyticsEvent,i=e.articleFlag;return o.a.createElement(y,{key:"key-facts-".concat(t)},o.a.createElement(g,null),o.a.createElement(x,null,n.children.map((e,n)=>Object(a.renderTree)(e,O(O({},l.a),{},{link(t,n,a){const c=n.href,l=(e=>{if(1===e.children.length&&e.children[0].attributes)return e.children[0].attributes.value;const t=e.children.map(e=>e.attributes?e.attributes.value:e.attributes).join(" ");return t.length>0?t:" "})(e);return o.a.createElement(b,{key:t,onClick:e=>{Object(s.handleOnClickScrollTo)(e,c),((e,t,n)=>{e&&e({action:"Clicked",attrs:{event_navigation_name:"in-article component clicked : key moments",event_navigation_browsing_method:"click",article_parent_name:t,article_flag:n}})})(r,l,i)},href:Object(s.handleHrefScrollTo)(c)},a)}}),"key-facts-".concat(t,"-").concat(n)))))};p.a.object.isRequired,p.a.string,p.a.string,p.a.string;t.default=e=>{let t=e.ast,n=e.section,r=e.headline,a=e.isLiveOrBreaking;const c=t.children,l=t.attributes.title,s=c[0].children,u=a?a.toLowerCase():"no flag";return o.a.createElement(i.TrackingContextProvider,{context:{object:"KeyMoments",attrs:{component_type:"in-article component: key moments: interactive",event_navigation_action:"navigation",component_name:l,section_details:"section : ".concat(n),article_name:r,article_flag:u}},scrolledEvent:{action:"Scrolled",attrs:{event_navigation_name:"in-article component displayed : key moments",event_navigation_browsing_method:"scroll"}}},e=>{let t=e.fireAnalyticsEvent,n=e.intersectObserverRef;return o.a.createElement(v,{ref:n},l&&o.a.createElement(h,null,l),s.map((e,n)=>o.a.createElement(j,{listIndex:n,keyFactItem:e,fireAnalyticsEvent:t,articleFlag:u})))})}}]);
|