diy-template-components 0.2.53 → 0.2.55
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 +14 -15
- package/build/index.es.js.map +1 -1
- package/build/index.js +14 -15
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -1156,7 +1156,7 @@ const NextImageRenderer = ({
|
|
|
1156
1156
|
refSetter,
|
|
1157
1157
|
className
|
|
1158
1158
|
} = props;
|
|
1159
|
-
if (isCustomWebsite && typeof Image !== undefined) {
|
|
1159
|
+
if (isCustomWebsite && typeof Image !== 'undefined') {
|
|
1160
1160
|
const classes = nextImageRendererStyles();
|
|
1161
1161
|
const imageLoader = ({
|
|
1162
1162
|
src,
|
|
@@ -1171,9 +1171,8 @@ const NextImageRenderer = ({
|
|
|
1171
1171
|
return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${dynamicWidth}`;
|
|
1172
1172
|
};
|
|
1173
1173
|
const NextImage = require('next/image').default;
|
|
1174
|
-
console.log('next image succes');
|
|
1175
1174
|
return /*#__PURE__*/React__default["default"].createElement(NextImage, _extends({
|
|
1176
|
-
priority: sectionIndex ===
|
|
1175
|
+
priority: sectionIndex === 0 ? true : false,
|
|
1177
1176
|
loader: imageLoader,
|
|
1178
1177
|
src: src,
|
|
1179
1178
|
layout: 'fill',
|
|
@@ -1183,7 +1182,6 @@ const NextImageRenderer = ({
|
|
|
1183
1182
|
alt: "image"
|
|
1184
1183
|
}));
|
|
1185
1184
|
} else {
|
|
1186
|
-
console.log('next image failed image tag');
|
|
1187
1185
|
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
1188
1186
|
ref: refSetter,
|
|
1189
1187
|
className: className,
|
|
@@ -1667,7 +1665,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1667
1665
|
width: '28%',
|
|
1668
1666
|
paddingBottom: ({
|
|
1669
1667
|
isCustomWebsite
|
|
1670
|
-
}) => isCustomWebsite ?
|
|
1668
|
+
}) => isCustomWebsite ? '8%' : '0%'
|
|
1671
1669
|
},
|
|
1672
1670
|
socialMediaCta: {
|
|
1673
1671
|
margin: '0 8px 16px 8px'
|
|
@@ -2238,7 +2236,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
|
|
|
2238
2236
|
height: 'undefined',
|
|
2239
2237
|
paddingBottom: ({
|
|
2240
2238
|
isCustomWebsite
|
|
2241
|
-
}) => isCustomWebsite ?
|
|
2239
|
+
}) => isCustomWebsite ? '100%' : 'unset'
|
|
2242
2240
|
}
|
|
2243
2241
|
}
|
|
2244
2242
|
}));
|
|
@@ -2855,13 +2853,13 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2855
2853
|
// paddingBottom: '35rem',
|
|
2856
2854
|
paddingBottom: ({
|
|
2857
2855
|
isCustomWebsite
|
|
2858
|
-
}) => isCustomWebsite ? '45%' :
|
|
2856
|
+
}) => isCustomWebsite ? '45%' : 'unset',
|
|
2859
2857
|
backgroundSize: 'cover',
|
|
2860
2858
|
backgroundPosition: 'center center'
|
|
2861
2859
|
},
|
|
2862
2860
|
centerBgImage: {
|
|
2863
2861
|
objectFit: 'cover',
|
|
2864
|
-
width:
|
|
2862
|
+
width: '100%',
|
|
2865
2863
|
backgroundSize: 'cover',
|
|
2866
2864
|
backgroundPosition: 'center center'
|
|
2867
2865
|
},
|
|
@@ -2920,15 +2918,15 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2920
2918
|
centerBgImageContainer: {
|
|
2921
2919
|
width: ({
|
|
2922
2920
|
isCustomWebsite
|
|
2923
|
-
}) => isCustomWebsite ?
|
|
2921
|
+
}) => isCustomWebsite ? '100%' : 'unset',
|
|
2924
2922
|
position: 'relative',
|
|
2925
2923
|
height: '34rem',
|
|
2926
2924
|
paddingBottom: '0'
|
|
2927
2925
|
},
|
|
2928
2926
|
centerBgImage: {
|
|
2929
|
-
objectFit:
|
|
2930
|
-
width:
|
|
2931
|
-
height:
|
|
2927
|
+
objectFit: 'cover',
|
|
2928
|
+
width: '100%',
|
|
2929
|
+
height: 'inherit'
|
|
2932
2930
|
}
|
|
2933
2931
|
}
|
|
2934
2932
|
}));
|
|
@@ -3010,6 +3008,7 @@ function BannerCarouselCenter({
|
|
|
3010
3008
|
className: classes.bannerCarouselCenterSection
|
|
3011
3009
|
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, wrapperProps, bannerCarousel.components.map((node, idx) => /*#__PURE__*/React__default["default"].createElement(Section$3, {
|
|
3012
3010
|
nodeData: node,
|
|
3011
|
+
isCustomWebsite: isCustomWebsite,
|
|
3013
3012
|
key: idx /* or some other unique property */,
|
|
3014
3013
|
sectionIndex: sectionIndex
|
|
3015
3014
|
}))));
|
|
@@ -3116,7 +3115,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3116
3115
|
height: 'unset !important',
|
|
3117
3116
|
'& img': {
|
|
3118
3117
|
height: 'unset !important',
|
|
3119
|
-
objectFit:
|
|
3118
|
+
objectFit: 'cover'
|
|
3120
3119
|
}
|
|
3121
3120
|
},
|
|
3122
3121
|
imageContainerDiv: {
|
|
@@ -4004,7 +4003,7 @@ const useVideoStyles$1 = createUseStyles(theme => {
|
|
|
4004
4003
|
},
|
|
4005
4004
|
icon: {
|
|
4006
4005
|
zIndex: '999',
|
|
4007
|
-
position:
|
|
4006
|
+
position: 'absolute'
|
|
4008
4007
|
},
|
|
4009
4008
|
imgContainer: {
|
|
4010
4009
|
position: 'absolute',
|
|
@@ -4013,7 +4012,7 @@ const useVideoStyles$1 = createUseStyles(theme => {
|
|
|
4013
4012
|
borderRadius: theme.shape.borderRadius.small,
|
|
4014
4013
|
// backgroundImage: ({ imageUrl } = {}) =>
|
|
4015
4014
|
// `linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%), url("${imageUrl}")`,
|
|
4016
|
-
background:
|
|
4015
|
+
background: 'linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%)',
|
|
4017
4016
|
backgroundSize: 'cover',
|
|
4018
4017
|
display: 'flex',
|
|
4019
4018
|
justifyContent: 'center',
|