@nnc-digital/nnc-design-system 1.0.0-alpha12 → 1.0.0-alpha13
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.mjs.js
CHANGED
|
@@ -25788,13 +25788,13 @@ const VideoBackground = styled.video`
|
|
|
25788
25788
|
* For optional use at the top of a service landing page, if set in the CMS.
|
|
25789
25789
|
*/
|
|
25790
25790
|
var HeroImage = function (_a) {
|
|
25791
|
-
var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText,
|
|
25791
|
+
var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, heroVideoUrl = _a.heroVideoUrl, breadcrumb = _a.breadcrumb, customSearch = _a.customSearch;
|
|
25792
25792
|
return (React.createElement(React.Fragment, null,
|
|
25793
25793
|
React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
|
|
25794
25794
|
partialVisibility: true,
|
|
25795
25795
|
} }, function (src) { return (React.createElement(Container$u, { "$image": src, "$backgroundBox": backgroundBox, "data-testid": "HeroImage" },
|
|
25796
|
-
|
|
25797
|
-
React.createElement("source", { src:
|
|
25796
|
+
heroVideoUrl && (React.createElement(VideoBackground, { autoPlay: true, loop: true, muted: true },
|
|
25797
|
+
React.createElement("source", { src: heroVideoUrl, type: "video/mp4" }),
|
|
25798
25798
|
"Your browser does not support the video tag.")),
|
|
25799
25799
|
React.createElement(InnerContainer, null,
|
|
25800
25800
|
React.createElement(Overlay, { "$backgroundBox": backgroundBox, "data-testid": "HeroImageOverlay" },
|