northants-design-system 3.1.1 → 3.1.2
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.js
CHANGED
|
@@ -32447,16 +32447,15 @@ styled__default.default.img`
|
|
|
32447
32447
|
* Display a list of links for a section with optional images
|
|
32448
32448
|
*/
|
|
32449
32449
|
var SectionLinks = function (_a) {
|
|
32450
|
-
var sectionTitle = _a.sectionTitle, _b = _a.displayTitle, displayTitle = _b === void 0 ? true : _b, sectionSlug = _a.sectionSlug, pageLinksArray = _a.pageLinksArray, _c = _a.hasImages, hasImages = _c === void 0 ? false : _c;
|
|
32450
|
+
var sectionTitle = _a.sectionTitle, _b = _a.displayTitle, displayTitle = _b === void 0 ? true : _b, sectionSlug = _a.sectionSlug, pageLinksArray = _a.pageLinksArray, _c = _a.hasImages, hasImages = _c === void 0 ? false : _c, _d = _a.hasCards, hasCards = _d === void 0 ? false : _d;
|
|
32451
32451
|
return (React__namespace.default.createElement(Container$o, { id: sectionSlug, "data-testid": "SectionLinks" },
|
|
32452
32452
|
displayTitle ? React__namespace.default.createElement(SectionTitle$1, { text: sectionTitle }) : React__namespace.default.createElement("br", null),
|
|
32453
32453
|
React__namespace.default.createElement(Row$1, { isList: true }, pageLinksArray.map(function (link, i) {
|
|
32454
32454
|
var _a;
|
|
32455
|
-
return (React__namespace.default.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: i },
|
|
32456
|
-
React__namespace.default.createElement(
|
|
32457
|
-
|
|
32458
|
-
|
|
32459
|
-
React__namespace.default.createElement(Summary$1, null, link.summary))));
|
|
32455
|
+
return (React__namespace.default.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: i }, hasCards && hasImages ? (React__namespace.default.createElement(Card, { footerLink: link, imageAltText: link.imageAltText, imageLarge: link.imageLarge, imageSmall: link.imageSmall, content: link.summary })) : hasCards && !hasImages ? (React__namespace.default.createElement(Card, { footerLink: link, header: link.title, content: link.summary })) : (React__namespace.default.createElement(Pagelink, { href: link.url, title: link.title },
|
|
32456
|
+
hasImages && (React__namespace.default.createElement(React__namespace.default.Fragment, null, ((_a = link.imageLarge) === null || _a === void 0 ? void 0 : _a.trim()) ? (React__namespace.default.createElement(ResponsiveImage, { imageSmall: link.imageSmall, imageLarge: link.imageLarge, imageAltText: link.imageAltText, ratio: "16by9", smallWidth: "400", largeWidth: "800", objectFit: "cover" })) : (React__namespace.default.createElement(ImageContainer, null)))),
|
|
32457
|
+
React__namespace.default.createElement(Title$3, null, link.title),
|
|
32458
|
+
React__namespace.default.createElement(Summary$1, null, link.summary)))));
|
|
32460
32459
|
}))));
|
|
32461
32460
|
};
|
|
32462
32461
|
|
|
@@ -33897,12 +33896,11 @@ const ChatWidget = styled__default.default.div`
|
|
|
33897
33896
|
z-index: 1000;
|
|
33898
33897
|
background-color: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
33899
33898
|
|
|
33900
|
-
@media (
|
|
33901
|
-
bottom:
|
|
33899
|
+
@media screen and (min-height: 650px) and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
33900
|
+
bottom: ${(props) => props.theme.theme_vars.spacingSizes.xx_large};
|
|
33902
33901
|
}
|
|
33903
33902
|
|
|
33904
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.
|
|
33905
|
-
bottom: ${(props) => props.theme.theme_vars.spacingSizes.xx_large};
|
|
33903
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
33906
33904
|
right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
33907
33905
|
width: 380px;
|
|
33908
33906
|
height: 560px;
|