diy-template-components 0.2.53 → 0.2.54
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.es.js +13 -15
- package/build/index.es.js.map +1 -1
- package/build/index.js +13 -15
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1141,7 +1141,7 @@ const NextImageRenderer = ({
|
|
|
1141
1141
|
refSetter,
|
|
1142
1142
|
className
|
|
1143
1143
|
} = props;
|
|
1144
|
-
if (isCustomWebsite && typeof Image !== undefined) {
|
|
1144
|
+
if (isCustomWebsite && typeof Image !== 'undefined') {
|
|
1145
1145
|
const classes = nextImageRendererStyles();
|
|
1146
1146
|
const imageLoader = ({
|
|
1147
1147
|
src,
|
|
@@ -1156,9 +1156,8 @@ const NextImageRenderer = ({
|
|
|
1156
1156
|
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${dynamicWidth}`;
|
|
1157
1157
|
};
|
|
1158
1158
|
const NextImage = require('next/image').default;
|
|
1159
|
-
console.log('next image succes');
|
|
1160
1159
|
return /*#__PURE__*/React.createElement(NextImage, _extends({
|
|
1161
|
-
priority: sectionIndex ===
|
|
1160
|
+
priority: sectionIndex === 0 ? true : false,
|
|
1162
1161
|
loader: imageLoader,
|
|
1163
1162
|
src: src,
|
|
1164
1163
|
layout: 'fill',
|
|
@@ -1168,7 +1167,6 @@ const NextImageRenderer = ({
|
|
|
1168
1167
|
alt: "image"
|
|
1169
1168
|
}));
|
|
1170
1169
|
} else {
|
|
1171
|
-
console.log('next image failed image tag');
|
|
1172
1170
|
return /*#__PURE__*/React.createElement("img", {
|
|
1173
1171
|
ref: refSetter,
|
|
1174
1172
|
className: className,
|
|
@@ -1652,7 +1650,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1652
1650
|
width: '28%',
|
|
1653
1651
|
paddingBottom: ({
|
|
1654
1652
|
isCustomWebsite
|
|
1655
|
-
}) => isCustomWebsite ?
|
|
1653
|
+
}) => isCustomWebsite ? '8%' : '0%'
|
|
1656
1654
|
},
|
|
1657
1655
|
socialMediaCta: {
|
|
1658
1656
|
margin: '0 8px 16px 8px'
|
|
@@ -2223,7 +2221,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2223
2221
|
height: 'undefined',
|
|
2224
2222
|
paddingBottom: ({
|
|
2225
2223
|
isCustomWebsite
|
|
2226
|
-
}) => isCustomWebsite ?
|
|
2224
|
+
}) => isCustomWebsite ? '100%' : 'unset'
|
|
2227
2225
|
}
|
|
2228
2226
|
}
|
|
2229
2227
|
}));
|
|
@@ -2840,13 +2838,13 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2840
2838
|
// paddingBottom: '35rem',
|
|
2841
2839
|
paddingBottom: ({
|
|
2842
2840
|
isCustomWebsite
|
|
2843
|
-
}) => isCustomWebsite ? '45%' :
|
|
2841
|
+
}) => isCustomWebsite ? '45%' : 'unset',
|
|
2844
2842
|
backgroundSize: 'cover',
|
|
2845
2843
|
backgroundPosition: 'center center'
|
|
2846
2844
|
},
|
|
2847
2845
|
centerBgImage: {
|
|
2848
2846
|
objectFit: 'cover',
|
|
2849
|
-
width:
|
|
2847
|
+
width: '100%',
|
|
2850
2848
|
backgroundSize: 'cover',
|
|
2851
2849
|
backgroundPosition: 'center center'
|
|
2852
2850
|
},
|
|
@@ -2905,15 +2903,15 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2905
2903
|
centerBgImageContainer: {
|
|
2906
2904
|
width: ({
|
|
2907
2905
|
isCustomWebsite
|
|
2908
|
-
}) => isCustomWebsite ?
|
|
2906
|
+
}) => isCustomWebsite ? '100%' : 'unset',
|
|
2909
2907
|
position: 'relative',
|
|
2910
2908
|
height: '34rem',
|
|
2911
2909
|
paddingBottom: '0'
|
|
2912
2910
|
},
|
|
2913
2911
|
centerBgImage: {
|
|
2914
|
-
objectFit:
|
|
2915
|
-
width:
|
|
2916
|
-
height:
|
|
2912
|
+
objectFit: 'cover',
|
|
2913
|
+
width: '100%',
|
|
2914
|
+
height: 'inherit'
|
|
2917
2915
|
}
|
|
2918
2916
|
}
|
|
2919
2917
|
}));
|
|
@@ -3101,7 +3099,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3101
3099
|
height: 'unset !important',
|
|
3102
3100
|
'& img': {
|
|
3103
3101
|
height: 'unset !important',
|
|
3104
|
-
objectFit:
|
|
3102
|
+
objectFit: 'cover'
|
|
3105
3103
|
}
|
|
3106
3104
|
},
|
|
3107
3105
|
imageContainerDiv: {
|
|
@@ -3989,7 +3987,7 @@ const useVideoStyles$1 = createUseStyles(theme => {
|
|
|
3989
3987
|
},
|
|
3990
3988
|
icon: {
|
|
3991
3989
|
zIndex: '999',
|
|
3992
|
-
position:
|
|
3990
|
+
position: 'absolute'
|
|
3993
3991
|
},
|
|
3994
3992
|
imgContainer: {
|
|
3995
3993
|
position: 'absolute',
|
|
@@ -3998,7 +3996,7 @@ const useVideoStyles$1 = createUseStyles(theme => {
|
|
|
3998
3996
|
borderRadius: theme.shape.borderRadius.small,
|
|
3999
3997
|
// backgroundImage: ({ imageUrl } = {}) =>
|
|
4000
3998
|
// `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
|
|
4001
|
-
background:
|
|
3999
|
+
background: 'linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%)',
|
|
4002
4000
|
backgroundSize: 'cover',
|
|
4003
4001
|
display: 'flex',
|
|
4004
4002
|
justifyContent: 'center',
|