diy-template-components 1.0.43 → 1.0.45

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 CHANGED
@@ -3084,12 +3084,13 @@ const useSectionStyles$6 = createUseStyles(theme => {
3084
3084
  objectPosition: '50% 50%'
3085
3085
  },
3086
3086
  overlay: {
3087
+ zIndex: 1,
3087
3088
  position: 'absolute',
3088
3089
  top: 0,
3089
3090
  left: 0,
3090
3091
  width: '100%',
3091
3092
  height: '100%',
3092
- backgroundColor: 'rgba(0, 0, 0, 0.5)'
3093
+ backgroundColor: 'rgba(0, 0, 0, 0.4)'
3093
3094
  },
3094
3095
  '@media screen and (max-width: 767px)': {
3095
3096
  heading: {
@@ -3147,7 +3148,7 @@ const Section$3 = ({
3147
3148
  isCustomWebsite,
3148
3149
  countryCode
3149
3150
  } = useContext(PageContext);
3150
- const hasContent = nodeData.cardHeading.metadata.value.length || nodeData.title.metadata.valu.length || nodeData.description.metadata.value.length;
3151
+ const hasContent = Boolean(nodeData.cardHeading.metadata.value || nodeData.title.metadata.valu || nodeData.description.metadata.value);
3151
3152
  const classes = useSectionStyles$6({
3152
3153
  wordBreakValue: wordBreakValue(countryCode),
3153
3154
  imageUrl: nodeData.image.metadata.value,
@@ -3155,6 +3156,8 @@ const Section$3 = ({
3155
3156
  isCustomWebsite,
3156
3157
  hasContent
3157
3158
  });
3159
+ const mobileImageSrc = isMobile && nodeData?.mobileImage?.metadata?.value;
3160
+ const desktopImageSrc = nodeData?.image?.metadata?.value;
3158
3161
  return /*#__PURE__*/React.createElement("section", {
3159
3162
  className: classes.bannerCarouselCenterSection
3160
3163
  }, /*#__PURE__*/React.createElement("div", {
@@ -3195,7 +3198,7 @@ const Section$3 = ({
3195
3198
  }, /*#__PURE__*/React.createElement("div", {
3196
3199
  className: hasContent && classes?.overlay
3197
3200
  }), /*#__PURE__*/React.createElement(NextImageRenderer, {
3198
- src: nodeData.image.metadata.value,
3201
+ src: mobileImageSrc ? mobileImageSrc : desktopImageSrc,
3199
3202
  className: classes?.centerBgImage,
3200
3203
  sectionIndex: sectionIndex
3201
3204
  }))));
@@ -4370,7 +4373,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4370
4373
  marginBottom: '8px'
4371
4374
  },
4372
4375
  videoTestimonialTitle: {
4373
- fontSize: theme.typography.fontSize.h1,
4376
+ fontSize: theme.typography.fontSize.h2,
4374
4377
  // lineHeight: '71px',
4375
4378
  letterSpacing: '-3px',
4376
4379
  fontWeight: theme.typography.fontWeight.bold,
@@ -4380,15 +4383,16 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4380
4383
  },
4381
4384
  videoCarousel: {
4382
4385
  display: 'flex',
4383
- alignItems: 'center',
4384
4386
  justifyContent: 'flex-start',
4385
- gap: theme.spacing.margin.small
4387
+ gap: '40px'
4386
4388
  },
4387
4389
  iframeSuperContainer: {
4388
4390
  height: '100%',
4389
4391
  width: '100%',
4390
4392
  display: 'flex',
4391
- alignItems: 'center'
4393
+ alignItems: 'center',
4394
+ marginTop: '16px',
4395
+ borderRadius: '8px'
4392
4396
  },
4393
4397
  iframeContainer: {
4394
4398
  width: '100%',
@@ -4418,13 +4422,13 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4418
4422
  fontWeight: theme.typography.fontWeight.bold
4419
4423
  },
4420
4424
  videoDetailsContent: {
4421
- fontSize: theme.typography.fontSize.subHead,
4425
+ fontSize: theme.typography.fontSize.body,
4422
4426
  lineHeight: '24px',
4423
4427
  wordBreak: 'break-word',
4424
4428
  color: theme.palette.font.primary
4425
4429
  },
4426
4430
  videoDetailsSubContent: {
4427
- fontSize: theme.typography.fontSize.subHead,
4431
+ fontSize: theme.typography.fontSize.h6,
4428
4432
  lineHeight: '24px',
4429
4433
  margin: '0',
4430
4434
  color: theme.palette.font.primary,