diy-template-components 0.2.62 → 0.2.64

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
@@ -1,12 +1,12 @@
1
- function ___$insertStyle(css) {
2
- if (!css || !window) {
3
- return;
4
- }
5
- const style = document.createElement('style');
6
- style.setAttribute('type', 'text/css');
7
- style.innerHTML = css;
8
- document.head.appendChild(style);
9
- return css;
1
+ function ___$insertStyle(css) {
2
+ if (!css || typeof window === 'undefined') {
3
+ return;
4
+ }
5
+ const style = document.createElement('style');
6
+ style.setAttribute('type', 'text/css');
7
+ style.innerHTML = css;
8
+ document.head.appendChild(style);
9
+ return css;
10
10
  }
11
11
 
12
12
  import React, { createContext, useContext, forwardRef, useRef, useEffect, useState, useMemo, useLayoutEffect, Suspense, memo, lazy, Fragment } from 'react';
@@ -1183,6 +1183,8 @@ const NextImageRenderer = ({
1183
1183
  }
1184
1184
  };
1185
1185
 
1186
+ const DEFAULT_HEADER_IMAGE_LP = 'https://cdn-diy-public.classplus.co/assets/icons/landing-pages-default-logo.png';
1187
+
1186
1188
  function DesktopHeader({
1187
1189
  header,
1188
1190
  navData,
@@ -1223,7 +1225,7 @@ function DesktopHeader({
1223
1225
  };
1224
1226
  return /*#__PURE__*/React.createElement("nav", {
1225
1227
  className: classes.section
1226
- }, /*#__PURE__*/React.createElement("div", {
1228
+ }, !(header?.websiteLogo === DEFAULT_HEADER_IMAGE_LP && isCustomWebsite) ? /*#__PURE__*/React.createElement("div", {
1227
1229
  className: classes.headerSection
1228
1230
  }, /*#__PURE__*/React.createElement("div", {
1229
1231
  className: classes.headerContainer
@@ -1254,7 +1256,11 @@ function DesktopHeader({
1254
1256
  isLandingPages: isLandingPage,
1255
1257
  moreContent: moreContentFn(),
1256
1258
  isTutorWebsite: isTutorWebsite
1257
- }))));
1259
+ }))) : /*#__PURE__*/React.createElement("div", {
1260
+ style: {
1261
+ paddingTop: '30px'
1262
+ }
1263
+ }));
1258
1264
  }
1259
1265
 
1260
1266
  var phoneIos = "data:image/svg+xml,%3Csvg%20width%3D%2244%22%20height%3D%2244%22%20viewBox%3D%220%200%2044%2044%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20filter%3D%22url%28%23filter0_d_3094_7439%29%22%3E%3Crect%20x%3D%222%22%20y%3D%221%22%20width%3D%2240%22%20height%3D%2240%22%20rx%3D%224%22%20fill%3D%22%23F0F4F8%22%2F%3E%3Cpath%20d%3D%22M30.4539%2016.8288C30.3555%2016.8912%2028.0131%2018.1908%2028.0131%2021.0732C28.1235%2024.3612%2030.9687%2025.5132%2031.0179%2025.5132C30.9699%2025.5744%2030.5883%2027.084%2029.4603%2028.6656C28.5651%2030.0276%2027.5715%2031.4016%2026.0631%2031.4016C24.6279%2031.4016%2024.1119%2030.4932%2022.4559%2030.4932C20.6775%2030.4932%2020.1747%2031.4016%2018.8127%2031.4016C17.3043%2031.4016%2016.2375%2029.9544%2015.2931%2028.6044C14.0667%2026.838%2013.0251%2024.066%2012.9879%2021.4044C12.9627%2019.9944%2013.2327%2018.6084%2013.9191%2017.43C14.8887%2015.786%2016.6179%2014.67%2018.5067%2014.634C19.9539%2014.5848%2021.2427%2015.6264%2022.1247%2015.6264C22.9719%2015.6264%2024.5535%2014.6328%2026.3439%2014.6328C27.1167%2014.634%2029.1783%2014.8668%2030.4539%2016.8288ZM22.0023%2014.352C21.7455%2013.0632%2022.4559%2011.7756%2023.1183%2010.9536C23.9655%209.95998%2025.3023%209.28558%2026.4543%209.28558C26.5287%2010.5744%2026.0619%2011.8368%2025.2279%2012.7572C24.4803%2013.7508%2023.1927%2014.4984%2022.0023%2014.352Z%22%20fill%3D%22%234D4D4D%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3Cfilter%20id%3D%22filter0_d_3094_7439%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2244%22%20height%3D%2244%22%20filterUnits%3D%22userSpaceOnUse%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeFlood%20flood-opacity%3D%220%22%20result%3D%22BackgroundImageFix%22%2F%3E%3CfeColorMatrix%20in%3D%22SourceAlpha%22%20type%3D%22matrix%22%20values%3D%220%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200%22%20result%3D%22hardAlpha%22%2F%3E%3CfeOffset%20dy%3D%221%22%2F%3E%3CfeGaussianBlur%20stdDeviation%3D%221%22%2F%3E%3CfeComposite%20in2%3D%22hardAlpha%22%20operator%3D%22out%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200.4%200%200%200%200%200.4%200%200%200%200%200.4%200%200%200%200.16%200%22%2F%3E%3CfeBlend%20mode%3D%22normal%22%20in2%3D%22BackgroundImageFix%22%20result%3D%22effect1_dropShadow_3094_7439%22%2F%3E%3CfeBlend%20mode%3D%22normal%22%20in%3D%22SourceGraphic%22%20in2%3D%22effect1_dropShadow_3094_7439%22%20result%3D%22shape%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";
@@ -1389,7 +1395,7 @@ function MobileHeader({
1389
1395
  return /*#__PURE__*/React.createElement("nav", {
1390
1396
  ref: navEl,
1391
1397
  className: classes.section
1392
- }, /*#__PURE__*/React.createElement("div", {
1398
+ }, !(header?.websiteLogo === DEFAULT_HEADER_IMAGE_LP && isCustomWebsite) ? /*#__PURE__*/React.createElement("div", {
1393
1399
  className: classes.headerSection
1394
1400
  }, /*#__PURE__*/React.createElement("div", {
1395
1401
  className: classes.mobileHeader
@@ -1435,7 +1441,11 @@ function MobileHeader({
1435
1441
  navDataCount: navData?.length,
1436
1442
  headerData: header,
1437
1443
  isMobile: true
1438
- })))) : null));
1444
+ })))) : null) : /*#__PURE__*/React.createElement("div", {
1445
+ style: {
1446
+ paddingTop: '30px'
1447
+ }
1448
+ }));
1439
1449
  }
1440
1450
 
1441
1451
  function Header({
@@ -2892,23 +2902,34 @@ const useSectionStyles$6 = createUseStyles(theme => ({
2892
2902
  padding: '0px'
2893
2903
  },
2894
2904
  textContainer: {
2895
- padding: '0px 20px',
2896
- height: '100%'
2905
+ padding: '20px 20px',
2906
+ height: '100%',
2907
+ width: '100%',
2908
+ backgroundColor: theme?.palette?.background?.primary
2909
+ },
2910
+ subTitleHeading: {
2911
+ color: theme?.palette?.font?.tertiary
2897
2912
  },
2898
2913
  heading: {
2899
- fontSize: '40px'
2914
+ fontSize: '40px',
2915
+ color: theme?.palette?.font?.default
2900
2916
  },
2901
2917
  description: {
2902
- margin: '16px 0'
2918
+ margin: '16px 0',
2919
+ color: theme?.palette?.font?.primary
2903
2920
  },
2904
2921
  centerBgImageContainer: {
2905
2922
  width: ({
2906
2923
  isCustomWebsite
2907
2924
  }) => isCustomWebsite ? '100%' : 'unset',
2908
- position: 'relative',
2909
- height: '34rem',
2925
+ // position: 'relative',
2926
+ // height: '34rem',
2927
+ minHeight: '200px',
2910
2928
  paddingBottom: '0'
2911
2929
  },
2930
+ sectionContainer: {
2931
+ position: 'unset'
2932
+ },
2912
2933
  centerBgImage: {
2913
2934
  objectFit: 'cover',
2914
2935
  width: '100%',
@@ -5081,7 +5102,7 @@ const useFaqListStyles = createUseStyles(theme => ({
5081
5102
  lineHeight: '24px',
5082
5103
  maxHeight: ({
5083
5104
  isSelected
5084
- } = {}) => isSelected ? '100px' : '0',
5105
+ } = {}) => isSelected ? 'unset' : '0',
5085
5106
  transition: 'all 0.7s',
5086
5107
  overflow: 'hidden'
5087
5108
  },