northants-design-system 0.2.25 → 0.2.26
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
CHANGED
|
@@ -20566,10 +20566,8 @@ const Container$A = styled.figure`
|
|
|
20566
20566
|
: props.theme.theme_vars.colours.grey_light};
|
|
20567
20567
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
20568
20568
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
20569
|
-
|
|
20570
|
-
width: ${(props) => (props.wrapText === true ? '30%' : '100%')};
|
|
20569
|
+
width: 100%;
|
|
20571
20570
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
20572
|
-
margin-right: ${(props) => (props.wrapText === true ? '1.5rem' : '0')};
|
|
20573
20571
|
|
|
20574
20572
|
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
20575
20573
|
float: none;
|
|
@@ -21199,8 +21197,8 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib);
|
|
|
21199
21197
|
* with an optional caption.
|
|
21200
21198
|
*/
|
|
21201
21199
|
var Image$2 = function (_a) {
|
|
21202
|
-
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption
|
|
21203
|
-
return (React.createElement(Container$A, { "data-testid": "Image"
|
|
21200
|
+
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption;
|
|
21201
|
+
return (React.createElement(Container$A, { "data-testid": "Image" },
|
|
21204
21202
|
React.createElement(ImageContainer$4, { "data-testid": "ImageContainer", ratio: ratio },
|
|
21205
21203
|
React.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
|
|
21206
21204
|
partialVisibility: true,
|
|
@@ -21232,10 +21230,12 @@ var ImageAndText = function (_a) {
|
|
|
21232
21230
|
heading && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
21233
21231
|
React.createElement(HeadingContainer, null,
|
|
21234
21232
|
React.createElement(Heading, { text: heading, level: 3 })))),
|
|
21235
|
-
React.createElement(
|
|
21236
|
-
React.createElement(
|
|
21237
|
-
|
|
21238
|
-
React.createElement(
|
|
21233
|
+
image ? (React.createElement(React.Fragment, null,
|
|
21234
|
+
React.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
21235
|
+
React.createElement(Image$2, __assign$2({}, image))),
|
|
21236
|
+
React.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
|
|
21237
|
+
React.createElement(Content$3, { dangerouslySetInnerHTML: { __html: sanitizeHtml_1(textContent) } })))) : (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
21238
|
+
React.createElement(Content$3, { dangerouslySetInnerHTML: { __html: sanitizeHtml_1(textContent) } }))))));
|
|
21239
21239
|
};
|
|
21240
21240
|
|
|
21241
21241
|
const Container$y = styled.div`
|