diy-template-components 0.2.63 → 0.2.65

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
@@ -1153,7 +1153,11 @@ const NextImageRenderer = ({
1153
1153
  desktop: 1200
1154
1154
  };
1155
1155
  const dynamicWidth = isMobile ? breakpoints.mobile : breakpoints?.desktop;
1156
- return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&q=${quality || 75}&w=${dynamicWidth}`;
1156
+ if (process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX !== undefined) {
1157
+ return `${process.env.NEXT_PUBLIC_ENV_ASSET_PREFIX}/_next/image?url=${src}&w=${width}&q=${quality || 75}`;
1158
+ } else {
1159
+ return `/_next/image?url=${src}&w=${width}&q=${quality || 75}`;
1160
+ }
1157
1161
  };
1158
1162
  const NextImage = require('next/image').default;
1159
1163
  return /*#__PURE__*/React.createElement(NextImage, _extends({
@@ -1690,9 +1694,9 @@ function Footer({
1690
1694
  isCustomWebsite
1691
1695
  });
1692
1696
  return /*#__PURE__*/React.createElement("footer", {
1693
- className: data?.metadata?.isCpBranding ? `${classes.section}` : `${classes.section} ${classes.sectionNoBranding}`
1697
+ className: data.metadata.isCpBranding ? `${classes.section}` : `${classes.section} ${classes.sectionNoBranding}`
1694
1698
  }, /*#__PURE__*/React.createElement("div", {
1695
- className: data?.metadata?.isCpBranding ? `${classes.upperContainer}` : `${classes.upperContainer} ${classes.upperContainerNoBranding}`
1699
+ className: data.metadata.isCpBranding ? `${classes.upperContainer}` : `${classes.upperContainer} ${classes.upperContainerNoBranding}`
1696
1700
  }, /*#__PURE__*/React.createElement("div", {
1697
1701
  className: classes.upperContainerItem1
1698
1702
  }, /*#__PURE__*/React.createElement("div", {
@@ -1802,7 +1806,7 @@ function Footer({
1802
1806
  color: theme.palette.background.default,
1803
1807
  width: '16px',
1804
1808
  height: '16px'
1805
- })) : null)), data?.metadata?.isCpBranding ? /*#__PURE__*/React.createElement("div", {
1809
+ })) : null)), data.metadata.isCpBranding ? /*#__PURE__*/React.createElement("div", {
1806
1810
  className: classes.lowerContainer
1807
1811
  }, /*#__PURE__*/React.createElement("div", {
1808
1812
  className: classes.bottomLeftText
@@ -1889,8 +1893,7 @@ const generateThemePalette = themeColors => ({
1889
1893
  primary: colors.lightGrey,
1890
1894
  secondary: colors.grey,
1891
1895
  tertiary: colors.blueGrey
1892
- },
1893
- fontColor: themeColors.colorCode
1896
+ }
1894
1897
  });
1895
1898
  const bluePalette = generateThemePalette(blueTheme);
1896
1899
  const redPalette = generateThemePalette(redTheme);
@@ -2903,23 +2906,34 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2903
2906
  padding: '0px'
2904
2907
  },
2905
2908
  textContainer: {
2906
- padding: '0px 20px',
2907
- height: '100%'
2909
+ padding: '20px 20px',
2910
+ height: '100%',
2911
+ width: '100%',
2912
+ backgroundColor: theme?.palette?.background?.primary
2913
+ },
2914
+ subTitleHeading: {
2915
+ color: theme?.palette?.font?.tertiary
2908
2916
  },
2909
2917
  heading: {
2910
- fontSize: '40px'
2918
+ fontSize: '40px',
2919
+ color: theme?.palette?.font?.default
2911
2920
  },
2912
2921
  description: {
2913
- margin: '16px 0'
2922
+ margin: '16px 0',
2923
+ color: theme?.palette?.font?.primary
2914
2924
  },
2915
2925
  centerBgImageContainer: {
2916
2926
  width: ({
2917
2927
  isCustomWebsite
2918
2928
  }) => isCustomWebsite ? '100%' : 'unset',
2919
- position: 'relative',
2920
- height: '34rem',
2929
+ // position: 'relative',
2930
+ // height: '34rem',
2931
+ minHeight: '200px',
2921
2932
  paddingBottom: '0'
2922
2933
  },
2934
+ sectionContainer: {
2935
+ position: 'unset'
2936
+ },
2923
2937
  centerBgImage: {
2924
2938
  objectFit: 'cover',
2925
2939
  width: '100%',
@@ -5092,7 +5106,7 @@ const useFaqListStyles = createUseStyles(theme => ({
5092
5106
  lineHeight: '24px',
5093
5107
  maxHeight: ({
5094
5108
  isSelected
5095
- } = {}) => isSelected ? '100px' : '0',
5109
+ } = {}) => isSelected ? 'unset' : '0',
5096
5110
  transition: 'all 0.7s',
5097
5111
  overflow: 'hidden'
5098
5112
  },