@nnc-digital/nnc-design-system 1.0.0-beta21 → 1.0.0-beta22
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/build/index.esm.js +40 -23
- package/build/index.esm.js.map +1 -1
- package/build/index.js +40 -23
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +40 -23
- package/build/index.mjs.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -6426,8 +6426,8 @@ var PromoBanner = function (_a) {
|
|
|
6426
6426
|
React__default.default.createElement(CTA, { href: ctaUrl }, ctaText))));
|
|
6427
6427
|
};
|
|
6428
6428
|
|
|
6429
|
-
const imageHeightMobile$
|
|
6430
|
-
const imageHeightDesktop$
|
|
6429
|
+
const imageHeightMobile$2 = 150;
|
|
6430
|
+
const imageHeightDesktop$2 = 200;
|
|
6431
6431
|
|
|
6432
6432
|
/**
|
|
6433
6433
|
* Container for the 1-3 promo tiles
|
|
@@ -6504,7 +6504,7 @@ const PromoTile = styled__default.default.a`
|
|
|
6504
6504
|
const PromoImage = styled__default.default.span`
|
|
6505
6505
|
display: block;
|
|
6506
6506
|
width: 100%;
|
|
6507
|
-
height: ${imageHeightMobile$
|
|
6507
|
+
height: ${imageHeightMobile$2}px;
|
|
6508
6508
|
overflow: hidden;
|
|
6509
6509
|
background-image: url('${(props) => props.$background}');
|
|
6510
6510
|
background-size: cover;
|
|
@@ -6512,11 +6512,11 @@ const PromoImage = styled__default.default.span`
|
|
|
6512
6512
|
justify-self: center;
|
|
6513
6513
|
|
|
6514
6514
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
6515
|
-
min-height: ${imageHeightDesktop$
|
|
6515
|
+
min-height: ${imageHeightDesktop$2}px;
|
|
6516
6516
|
}
|
|
6517
6517
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
6518
6518
|
flex: none;
|
|
6519
|
-
height: ${imageHeightDesktop$
|
|
6519
|
+
height: ${imageHeightDesktop$2}px;
|
|
6520
6520
|
}
|
|
6521
6521
|
`;
|
|
6522
6522
|
|
|
@@ -6525,11 +6525,11 @@ const PromoImage = styled__default.default.span`
|
|
|
6525
6525
|
*/
|
|
6526
6526
|
const PromoText = styled__default.default.div`
|
|
6527
6527
|
padding: 15px;
|
|
6528
|
-
height: calc(100% - ${imageHeightMobile$
|
|
6528
|
+
height: calc(100% - ${imageHeightMobile$2 + 30}px);
|
|
6529
6529
|
${(props) => props.theme.fontStyles};
|
|
6530
6530
|
|
|
6531
6531
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
6532
|
-
height: calc(100% - ${imageHeightDesktop$
|
|
6532
|
+
height: calc(100% - ${imageHeightDesktop$2 + 30}px);
|
|
6533
6533
|
}
|
|
6534
6534
|
`;
|
|
6535
6535
|
|
|
@@ -9028,8 +9028,8 @@ var NewsArticleDate = function (_a) {
|
|
|
9028
9028
|
React__default.default.createElement(DisplayDate, { text: text, format: format })));
|
|
9029
9029
|
};
|
|
9030
9030
|
|
|
9031
|
-
const imageHeightMobile = 150;
|
|
9032
|
-
const imageHeightDesktop = 200;
|
|
9031
|
+
const imageHeightMobile$1 = 150;
|
|
9032
|
+
const imageHeightDesktop$1 = 200;
|
|
9033
9033
|
|
|
9034
9034
|
const Container$r = styled__default.default.div`
|
|
9035
9035
|
${(props) => props.theme.fontStyles};
|
|
@@ -9130,7 +9130,7 @@ const ArticleContent$1 = styled__default.default.div`
|
|
|
9130
9130
|
const ImageContainer$3 = styled__default.default.span`
|
|
9131
9131
|
display: block;
|
|
9132
9132
|
width: 100%;
|
|
9133
|
-
height: ${imageHeightMobile}px;
|
|
9133
|
+
height: ${imageHeightMobile$1}px;
|
|
9134
9134
|
overflow: hidden;
|
|
9135
9135
|
background-image: url('${(props) => props.$background}');
|
|
9136
9136
|
background-size: contain;
|
|
@@ -9141,11 +9141,11 @@ const ImageContainer$3 = styled__default.default.span`
|
|
|
9141
9141
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
9142
9142
|
flex: 0 0 40%;
|
|
9143
9143
|
height: 100%;
|
|
9144
|
-
min-height: ${imageHeightMobile}px;
|
|
9144
|
+
min-height: ${imageHeightMobile$1}px;
|
|
9145
9145
|
}
|
|
9146
9146
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
9147
9147
|
flex: none;
|
|
9148
|
-
height: ${imageHeightDesktop}px;
|
|
9148
|
+
height: ${imageHeightDesktop$1}px;
|
|
9149
9149
|
}
|
|
9150
9150
|
`;
|
|
9151
9151
|
|
|
@@ -9431,6 +9431,9 @@ var NewsArticleImage = function (_a) {
|
|
|
9431
9431
|
imageCaption && React__default.default.createElement(Small, { itemProp: "copyrightHolder" }, imageCaption))); })));
|
|
9432
9432
|
};
|
|
9433
9433
|
|
|
9434
|
+
const imageHeightMobile = 150;
|
|
9435
|
+
const imageHeightDesktop = 200;
|
|
9436
|
+
|
|
9434
9437
|
const Container$o = styled__default.default.div`
|
|
9435
9438
|
${(props) => props.theme.fontStyles};
|
|
9436
9439
|
`;
|
|
@@ -9510,10 +9513,28 @@ const ArticleContent = styled__default.default.div`
|
|
|
9510
9513
|
}
|
|
9511
9514
|
`;
|
|
9512
9515
|
|
|
9516
|
+
const ImageWrapper = styled__default.default.div`
|
|
9517
|
+
width: 100%;
|
|
9518
|
+
|
|
9519
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
9520
|
+
width: 180px;
|
|
9521
|
+
flex: 0 0 180px;
|
|
9522
|
+
}
|
|
9523
|
+
|
|
9524
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
9525
|
+
width: 50%;
|
|
9526
|
+
flex: none;
|
|
9527
|
+
}
|
|
9528
|
+
|
|
9529
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
9530
|
+
width: 33%;
|
|
9531
|
+
}
|
|
9532
|
+
`;
|
|
9533
|
+
|
|
9513
9534
|
const ImageContainer$1 = styled__default.default.span`
|
|
9514
9535
|
display: block;
|
|
9515
9536
|
width: 100%;
|
|
9516
|
-
height:
|
|
9537
|
+
height: ${imageHeightMobile}px;
|
|
9517
9538
|
overflow: hidden;
|
|
9518
9539
|
background-image: url('${(props) => props.$background}');
|
|
9519
9540
|
background-size: contain;
|
|
@@ -9522,15 +9543,10 @@ const ImageContainer$1 = styled__default.default.span`
|
|
|
9522
9543
|
justify-self: center;
|
|
9523
9544
|
|
|
9524
9545
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
9525
|
-
|
|
9526
|
-
height: auto;
|
|
9527
|
-
min-width: 180px;
|
|
9546
|
+
height: ${imageHeightMobile}px;
|
|
9528
9547
|
}
|
|
9529
9548
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
9530
|
-
|
|
9531
|
-
}
|
|
9532
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
9533
|
-
width: 33%;
|
|
9549
|
+
height: ${imageHeightDesktop}px;
|
|
9534
9550
|
}
|
|
9535
9551
|
`;
|
|
9536
9552
|
|
|
@@ -9555,9 +9571,10 @@ var NewsArticleList = function (_a) {
|
|
|
9555
9571
|
return (React__default.default.createElement(Container$o, { "data-testid": "NewsArticleList" },
|
|
9556
9572
|
React__default.default.createElement(Row$1, { isList: true }, results.map(function (article) { return (React__default.default.createElement(Column, { isList: true, small: "full", medium: "full", large: "full", key: article.id },
|
|
9557
9573
|
React__default.default.createElement(ArticleContainer, { href: article.url, title: article.title },
|
|
9558
|
-
article.image720x405 && (React__default.default.createElement(
|
|
9559
|
-
|
|
9560
|
-
|
|
9574
|
+
article.image720x405 && (React__default.default.createElement(ImageWrapper, null,
|
|
9575
|
+
React__default.default.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
|
|
9576
|
+
partialVisibility: true,
|
|
9577
|
+
} }, function (src) { return (React__default.default.createElement(ImageContainer$1, { className: "news-article-list__image", "$background": src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : 'News article' })); }))),
|
|
9561
9578
|
React__default.default.createElement(ArticleContent, { "$withImage": article.image720x405 ? true : false },
|
|
9562
9579
|
React__default.default.createElement(Title$4, { className: "news-article-list__title" }, article.title),
|
|
9563
9580
|
article.excerpt.length > extractLength
|