@nnc-digital/nnc-design-system 1.0.0-alpha59 → 1.0.0-alpha60
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 +13 -3
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +13 -3
- package/build/index.mjs.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -25757,9 +25757,19 @@ var Header = function (_a) {
|
|
|
25757
25757
|
* Optimised for an image in 16:5 ratio on all but small width screens
|
|
25758
25758
|
*/
|
|
25759
25759
|
const Container$u = styled__default.default.div`
|
|
25760
|
-
background-image: ${(props) =>
|
|
25761
|
-
|
|
25762
|
-
url('${
|
|
25760
|
+
background-image: ${(props) => {
|
|
25761
|
+
const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
|
|
25762
|
+
const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
|
|
25763
|
+
if (gradient && imageUrl) {
|
|
25764
|
+
return `${gradient}, ${imageUrl}`;
|
|
25765
|
+
} else if (gradient) {
|
|
25766
|
+
return gradient;
|
|
25767
|
+
} else if (imageUrl) {
|
|
25768
|
+
return imageUrl;
|
|
25769
|
+
} else {
|
|
25770
|
+
return 'none';
|
|
25771
|
+
}
|
|
25772
|
+
}};
|
|
25763
25773
|
|
|
25764
25774
|
padding-bottom: 10px;
|
|
25765
25775
|
background-position: center;
|