northants-design-system 0.2.27 → 0.2.28

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.
@@ -20578,8 +20578,10 @@ const Container$A = styled.figure`
20578
20578
  : props.theme.theme_vars.colours.grey_light};
20579
20579
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
20580
20580
  margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
20581
- width: 100%;
20581
+ float: ${(props) => (props.wrapText === true ? 'left' : 'none')};
20582
+ width: ${(props) => (props.wrapText === true ? '30%' : '100%')};
20582
20583
  margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
20584
+ margin-right: ${(props) => (props.wrapText === true ? '1.5rem' : '0')};
20583
20585
 
20584
20586
  @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
20585
20587
  float: none;
@@ -21209,8 +21211,8 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib);
21209
21211
  * with an optional caption.
21210
21212
  */
21211
21213
  var Image$2 = function (_a) {
21212
- var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption;
21213
- return (React.createElement(Container$A, { "data-testid": "Image" },
21214
+ var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption, wrapText = _a.wrapText;
21215
+ return (React.createElement(Container$A, { "data-testid": "Image", wrapText: wrapText },
21214
21216
  React.createElement(ImageContainer$4, { "data-testid": "ImageContainer", ratio: ratio },
21215
21217
  React.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
21216
21218
  partialVisibility: true,