@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.esm.js
CHANGED
|
@@ -6415,8 +6415,8 @@ var PromoBanner = function (_a) {
|
|
|
6415
6415
|
React.createElement(CTA, { href: ctaUrl }, ctaText))));
|
|
6416
6416
|
};
|
|
6417
6417
|
|
|
6418
|
-
const imageHeightMobile$
|
|
6419
|
-
const imageHeightDesktop$
|
|
6418
|
+
const imageHeightMobile$2 = 150;
|
|
6419
|
+
const imageHeightDesktop$2 = 200;
|
|
6420
6420
|
|
|
6421
6421
|
/**
|
|
6422
6422
|
* Container for the 1-3 promo tiles
|
|
@@ -6493,7 +6493,7 @@ const PromoTile = styled.a`
|
|
|
6493
6493
|
const PromoImage = styled.span`
|
|
6494
6494
|
display: block;
|
|
6495
6495
|
width: 100%;
|
|
6496
|
-
height: ${imageHeightMobile$
|
|
6496
|
+
height: ${imageHeightMobile$2}px;
|
|
6497
6497
|
overflow: hidden;
|
|
6498
6498
|
background-image: url('${(props) => props.$background}');
|
|
6499
6499
|
background-size: cover;
|
|
@@ -6501,11 +6501,11 @@ const PromoImage = styled.span`
|
|
|
6501
6501
|
justify-self: center;
|
|
6502
6502
|
|
|
6503
6503
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
6504
|
-
min-height: ${imageHeightDesktop$
|
|
6504
|
+
min-height: ${imageHeightDesktop$2}px;
|
|
6505
6505
|
}
|
|
6506
6506
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
6507
6507
|
flex: none;
|
|
6508
|
-
height: ${imageHeightDesktop$
|
|
6508
|
+
height: ${imageHeightDesktop$2}px;
|
|
6509
6509
|
}
|
|
6510
6510
|
`;
|
|
6511
6511
|
|
|
@@ -6514,11 +6514,11 @@ const PromoImage = styled.span`
|
|
|
6514
6514
|
*/
|
|
6515
6515
|
const PromoText = styled.div`
|
|
6516
6516
|
padding: 15px;
|
|
6517
|
-
height: calc(100% - ${imageHeightMobile$
|
|
6517
|
+
height: calc(100% - ${imageHeightMobile$2 + 30}px);
|
|
6518
6518
|
${(props) => props.theme.fontStyles};
|
|
6519
6519
|
|
|
6520
6520
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
6521
|
-
height: calc(100% - ${imageHeightDesktop$
|
|
6521
|
+
height: calc(100% - ${imageHeightDesktop$2 + 30}px);
|
|
6522
6522
|
}
|
|
6523
6523
|
`;
|
|
6524
6524
|
|
|
@@ -9017,8 +9017,8 @@ var NewsArticleDate = function (_a) {
|
|
|
9017
9017
|
React.createElement(DisplayDate, { text: text, format: format })));
|
|
9018
9018
|
};
|
|
9019
9019
|
|
|
9020
|
-
const imageHeightMobile = 150;
|
|
9021
|
-
const imageHeightDesktop = 200;
|
|
9020
|
+
const imageHeightMobile$1 = 150;
|
|
9021
|
+
const imageHeightDesktop$1 = 200;
|
|
9022
9022
|
|
|
9023
9023
|
const Container$r = styled.div`
|
|
9024
9024
|
${(props) => props.theme.fontStyles};
|
|
@@ -9119,7 +9119,7 @@ const ArticleContent$1 = styled.div`
|
|
|
9119
9119
|
const ImageContainer$3 = styled.span`
|
|
9120
9120
|
display: block;
|
|
9121
9121
|
width: 100%;
|
|
9122
|
-
height: ${imageHeightMobile}px;
|
|
9122
|
+
height: ${imageHeightMobile$1}px;
|
|
9123
9123
|
overflow: hidden;
|
|
9124
9124
|
background-image: url('${(props) => props.$background}');
|
|
9125
9125
|
background-size: contain;
|
|
@@ -9130,11 +9130,11 @@ const ImageContainer$3 = styled.span`
|
|
|
9130
9130
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
9131
9131
|
flex: 0 0 40%;
|
|
9132
9132
|
height: 100%;
|
|
9133
|
-
min-height: ${imageHeightMobile}px;
|
|
9133
|
+
min-height: ${imageHeightMobile$1}px;
|
|
9134
9134
|
}
|
|
9135
9135
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
9136
9136
|
flex: none;
|
|
9137
|
-
height: ${imageHeightDesktop}px;
|
|
9137
|
+
height: ${imageHeightDesktop$1}px;
|
|
9138
9138
|
}
|
|
9139
9139
|
`;
|
|
9140
9140
|
|
|
@@ -9420,6 +9420,9 @@ var NewsArticleImage = function (_a) {
|
|
|
9420
9420
|
imageCaption && React.createElement(Small, { itemProp: "copyrightHolder" }, imageCaption))); })));
|
|
9421
9421
|
};
|
|
9422
9422
|
|
|
9423
|
+
const imageHeightMobile = 150;
|
|
9424
|
+
const imageHeightDesktop = 200;
|
|
9425
|
+
|
|
9423
9426
|
const Container$o = styled.div`
|
|
9424
9427
|
${(props) => props.theme.fontStyles};
|
|
9425
9428
|
`;
|
|
@@ -9499,10 +9502,28 @@ const ArticleContent = styled.div`
|
|
|
9499
9502
|
}
|
|
9500
9503
|
`;
|
|
9501
9504
|
|
|
9505
|
+
const ImageWrapper = styled.div`
|
|
9506
|
+
width: 100%;
|
|
9507
|
+
|
|
9508
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
9509
|
+
width: 180px;
|
|
9510
|
+
flex: 0 0 180px;
|
|
9511
|
+
}
|
|
9512
|
+
|
|
9513
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
9514
|
+
width: 50%;
|
|
9515
|
+
flex: none;
|
|
9516
|
+
}
|
|
9517
|
+
|
|
9518
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
9519
|
+
width: 33%;
|
|
9520
|
+
}
|
|
9521
|
+
`;
|
|
9522
|
+
|
|
9502
9523
|
const ImageContainer$1 = styled.span`
|
|
9503
9524
|
display: block;
|
|
9504
9525
|
width: 100%;
|
|
9505
|
-
height:
|
|
9526
|
+
height: ${imageHeightMobile}px;
|
|
9506
9527
|
overflow: hidden;
|
|
9507
9528
|
background-image: url('${(props) => props.$background}');
|
|
9508
9529
|
background-size: contain;
|
|
@@ -9511,15 +9532,10 @@ const ImageContainer$1 = styled.span`
|
|
|
9511
9532
|
justify-self: center;
|
|
9512
9533
|
|
|
9513
9534
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
9514
|
-
|
|
9515
|
-
height: auto;
|
|
9516
|
-
min-width: 180px;
|
|
9535
|
+
height: ${imageHeightMobile}px;
|
|
9517
9536
|
}
|
|
9518
9537
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
9519
|
-
|
|
9520
|
-
}
|
|
9521
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
9522
|
-
width: 33%;
|
|
9538
|
+
height: ${imageHeightDesktop}px;
|
|
9523
9539
|
}
|
|
9524
9540
|
`;
|
|
9525
9541
|
|
|
@@ -9544,9 +9560,10 @@ var NewsArticleList = function (_a) {
|
|
|
9544
9560
|
return (React.createElement(Container$o, { "data-testid": "NewsArticleList" },
|
|
9545
9561
|
React.createElement(Row$1, { isList: true }, results.map(function (article) { return (React.createElement(Column, { isList: true, small: "full", medium: "full", large: "full", key: article.id },
|
|
9546
9562
|
React.createElement(ArticleContainer, { href: article.url, title: article.title },
|
|
9547
|
-
article.image720x405 && (React.createElement(
|
|
9548
|
-
|
|
9549
|
-
|
|
9563
|
+
article.image720x405 && (React.createElement(ImageWrapper, null,
|
|
9564
|
+
React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
|
|
9565
|
+
partialVisibility: true,
|
|
9566
|
+
} }, function (src) { return (React.createElement(ImageContainer$1, { className: "news-article-list__image", "$background": src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : 'News article' })); }))),
|
|
9550
9567
|
React.createElement(ArticleContent, { "$withImage": article.image720x405 ? true : false },
|
|
9551
9568
|
React.createElement(Title$4, { className: "news-article-list__title" }, article.title),
|
|
9552
9569
|
article.excerpt.length > extractLength
|