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 +41 -20
- package/build/index.es.js.map +1 -1
- package/build/index.js +41 -20
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/build/650233e8e2d7dfee.png +0 -0
- package/build/d15660fcfffcc0c8.png +0 -0
package/build/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
function ___$insertStyle(css) {
|
|
6
|
-
if (!css ||
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
const style = document.createElement('style');
|
|
10
|
-
style.setAttribute('type', 'text/css');
|
|
11
|
-
style.innerHTML = css;
|
|
12
|
-
document.head.appendChild(style);
|
|
13
|
-
return css;
|
|
5
|
+
function ___$insertStyle(css) {
|
|
6
|
+
if (!css || typeof window === 'undefined') {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const style = document.createElement('style');
|
|
10
|
+
style.setAttribute('type', 'text/css');
|
|
11
|
+
style.innerHTML = css;
|
|
12
|
+
document.head.appendChild(style);
|
|
13
|
+
return css;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1198,6 +1198,8 @@ const NextImageRenderer = ({
|
|
|
1198
1198
|
}
|
|
1199
1199
|
};
|
|
1200
1200
|
|
|
1201
|
+
const DEFAULT_HEADER_IMAGE_LP = 'https://cdn-diy-public.classplus.co/assets/icons/landing-pages-default-logo.png';
|
|
1202
|
+
|
|
1201
1203
|
function DesktopHeader({
|
|
1202
1204
|
header,
|
|
1203
1205
|
navData,
|
|
@@ -1238,7 +1240,7 @@ function DesktopHeader({
|
|
|
1238
1240
|
};
|
|
1239
1241
|
return /*#__PURE__*/React__default["default"].createElement("nav", {
|
|
1240
1242
|
className: classes.section
|
|
1241
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1243
|
+
}, !(header?.websiteLogo === DEFAULT_HEADER_IMAGE_LP && isCustomWebsite) ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1242
1244
|
className: classes.headerSection
|
|
1243
1245
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1244
1246
|
className: classes.headerContainer
|
|
@@ -1269,7 +1271,11 @@ function DesktopHeader({
|
|
|
1269
1271
|
isLandingPages: isLandingPage,
|
|
1270
1272
|
moreContent: moreContentFn(),
|
|
1271
1273
|
isTutorWebsite: isTutorWebsite
|
|
1272
|
-
})))
|
|
1274
|
+
}))) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1275
|
+
style: {
|
|
1276
|
+
paddingTop: '30px'
|
|
1277
|
+
}
|
|
1278
|
+
}));
|
|
1273
1279
|
}
|
|
1274
1280
|
|
|
1275
1281
|
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";
|
|
@@ -1404,7 +1410,7 @@ function MobileHeader({
|
|
|
1404
1410
|
return /*#__PURE__*/React__default["default"].createElement("nav", {
|
|
1405
1411
|
ref: navEl,
|
|
1406
1412
|
className: classes.section
|
|
1407
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1413
|
+
}, !(header?.websiteLogo === DEFAULT_HEADER_IMAGE_LP && isCustomWebsite) ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1408
1414
|
className: classes.headerSection
|
|
1409
1415
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1410
1416
|
className: classes.mobileHeader
|
|
@@ -1450,7 +1456,11 @@ function MobileHeader({
|
|
|
1450
1456
|
navDataCount: navData?.length,
|
|
1451
1457
|
headerData: header,
|
|
1452
1458
|
isMobile: true
|
|
1453
|
-
})))) : null)
|
|
1459
|
+
})))) : null) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1460
|
+
style: {
|
|
1461
|
+
paddingTop: '30px'
|
|
1462
|
+
}
|
|
1463
|
+
}));
|
|
1454
1464
|
}
|
|
1455
1465
|
|
|
1456
1466
|
function Header({
|
|
@@ -2907,23 +2917,34 @@ const useSectionStyles$6 = createUseStyles(theme => ({
|
|
|
2907
2917
|
padding: '0px'
|
|
2908
2918
|
},
|
|
2909
2919
|
textContainer: {
|
|
2910
|
-
padding: '
|
|
2911
|
-
height: '100%'
|
|
2920
|
+
padding: '20px 20px',
|
|
2921
|
+
height: '100%',
|
|
2922
|
+
width: '100%',
|
|
2923
|
+
backgroundColor: theme?.palette?.background?.primary
|
|
2924
|
+
},
|
|
2925
|
+
subTitleHeading: {
|
|
2926
|
+
color: theme?.palette?.font?.tertiary
|
|
2912
2927
|
},
|
|
2913
2928
|
heading: {
|
|
2914
|
-
fontSize: '40px'
|
|
2929
|
+
fontSize: '40px',
|
|
2930
|
+
color: theme?.palette?.font?.default
|
|
2915
2931
|
},
|
|
2916
2932
|
description: {
|
|
2917
|
-
margin: '16px 0'
|
|
2933
|
+
margin: '16px 0',
|
|
2934
|
+
color: theme?.palette?.font?.primary
|
|
2918
2935
|
},
|
|
2919
2936
|
centerBgImageContainer: {
|
|
2920
2937
|
width: ({
|
|
2921
2938
|
isCustomWebsite
|
|
2922
2939
|
}) => isCustomWebsite ? '100%' : 'unset',
|
|
2923
|
-
position: 'relative',
|
|
2924
|
-
height: '34rem',
|
|
2940
|
+
// position: 'relative',
|
|
2941
|
+
// height: '34rem',
|
|
2942
|
+
minHeight: '200px',
|
|
2925
2943
|
paddingBottom: '0'
|
|
2926
2944
|
},
|
|
2945
|
+
sectionContainer: {
|
|
2946
|
+
position: 'unset'
|
|
2947
|
+
},
|
|
2927
2948
|
centerBgImage: {
|
|
2928
2949
|
objectFit: 'cover',
|
|
2929
2950
|
width: '100%',
|
|
@@ -5096,7 +5117,7 @@ const useFaqListStyles = createUseStyles(theme => ({
|
|
|
5096
5117
|
lineHeight: '24px',
|
|
5097
5118
|
maxHeight: ({
|
|
5098
5119
|
isSelected
|
|
5099
|
-
} = {}) => isSelected ? '
|
|
5120
|
+
} = {}) => isSelected ? 'unset' : '0',
|
|
5100
5121
|
transition: 'all 0.7s',
|
|
5101
5122
|
overflow: 'hidden'
|
|
5102
5123
|
},
|