diy-template-components 0.1.30 → 0.1.31
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 +30 -18
- package/build/index.es.js.map +1 -1
- package/build/index.js +30 -18
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -561,7 +561,7 @@ var menu = "data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20v
|
|
|
561
561
|
|
|
562
562
|
var clpLogo = "478367302082f28d.svg";
|
|
563
563
|
|
|
564
|
-
var videoPlay = "data:image/svg+xml,%3Csvg%20width%3D%
|
|
564
|
+
var videoPlay = "data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8%200.5C3.86%200.5%200.5%203.86%200.5%208C0.5%2012.14%203.86%2015.5%208%2015.5C12.14%2015.5%2015.5%2012.14%2015.5%208C15.5%203.86%2012.14%200.5%208%200.5ZM6.5%2011.375V4.625L11%208L6.5%2011.375Z%22%20fill%3D%22%234E93FF%22%2F%3E%3C%2Fsvg%3E";
|
|
565
565
|
|
|
566
566
|
var stockGrowth = "data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M44%205.5H4C3.18%205.5%202.5%204.82%202.5%204C2.5%203.18%203.18%202.5%204%202.5H44C44.82%202.5%2045.5%203.18%2045.5%204C45.5%204.82%2044.82%205.5%2044%205.5Z%22%20fill%3D%22%23549BF6%22%2F%3E%3Cpath%20d%3D%22M33.34%2044.68C33.08%2045.2%2032.54%2045.5%2032%2045.5C31.78%2045.5%2031.54%2045.44%2031.34%2045.34L24%2041.68L16.66%2045.34C16.46%2045.44%2016.22%2045.5%2016%2045.5C15.46%2045.5%2014.92%2045.2%2014.66%2044.68C14.28%2043.92%2014.58%2043.02%2015.34%2042.66L22.5%2039.08V34H25.5V39.08L32.66%2042.66C33.42%2043.02%2033.72%2043.92%2033.34%2044.68Z%22%20fill%3D%22%23549BF6%22%2F%3E%3Cpath%20d%3D%22M6%204V28.2C6%2032%208%2034%2011.8%2034H36.2C40%2034%2042%2032%2042%2028.2V4H6ZM33.96%2017.16L27.66%2022.42C27.08%2022.9%2026.34%2023.1%2025.64%2022.98C24.92%2022.86%2024.3%2022.42%2023.92%2021.78L21.82%2018.28L15.96%2023.16C15.68%2023.4%2015.34%2023.5%2015%2023.5C14.58%2023.5%2014.14%2023.32%2013.84%2022.96C13.3%2022.32%2013.4%2021.38%2014.04%2020.84L20.34%2015.58C20.92%2015.1%2021.66%2014.9%2022.36%2015.02C23.08%2015.14%2023.7%2015.58%2024.08%2016.22L26.18%2019.72L32.04%2014.84C32.68%2014.3%2033.62%2014.4%2034.16%2015.04C34.68%2015.68%2034.6%2016.62%2033.96%2017.16Z%22%20fill%3D%22%23549BF6%22%2F%3E%3C%2Fsvg%3E";
|
|
567
567
|
|
|
@@ -623,11 +623,11 @@ var success = "data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2248%22%
|
|
|
623
623
|
|
|
624
624
|
var quote = "data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%2221%22%20viewBox%3D%220%200%2028%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.352%2020.88H3.384L0%2010.584V0H11.736V10.584L8.352%2020.88ZM24.0476%2020.88H19.1516L15.7676%2010.584V0H27.5036V10.584L24.0476%2020.88Z%22%20fill%3D%22%236269C9%22%2F%3E%3C%2Fsvg%3E";
|
|
625
625
|
|
|
626
|
-
var clock = "data:image/svg+xml,%3Csvg%20width%3D%
|
|
626
|
+
var clock = "data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.00016%201.3335C4.32683%201.3335%201.3335%204.32683%201.3335%208.00016C1.3335%2011.6735%204.32683%2014.6668%208.00016%2014.6668C11.6735%2014.6668%2014.6668%2011.6735%2014.6668%208.00016C14.6668%204.32683%2011.6735%201.3335%208.00016%201.3335ZM10.9002%2010.3802C10.8068%2010.5402%2010.6402%2010.6268%2010.4668%2010.6268C10.3802%2010.6268%2010.2935%2010.6068%2010.2135%2010.5535L8.14683%209.32016C7.6335%209.0135%207.2535%208.34016%207.2535%207.74683V5.0135C7.2535%204.74016%207.48016%204.5135%207.7535%204.5135C8.02683%204.5135%208.2535%204.74016%208.2535%205.0135V7.74683C8.2535%207.98683%208.4535%208.34016%208.66016%208.46016L10.7268%209.6935C10.9668%209.8335%2011.0468%2010.1402%2010.9002%2010.3802Z%22%20fill%3D%22%234E93FF%22%2F%3E%3C%2Fsvg%3E";
|
|
627
627
|
|
|
628
|
-
var bookSaved = "data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.4375%204.
|
|
628
|
+
var bookSaved = "data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.4375%204.50006V14.9326C8.4375%2015.4651%207.8975%2015.8326%207.41%2015.6301C6.015%2015.0451%204.2825%2014.5351%203.0525%2014.3701L2.82%2014.3401C2.0925%2014.2501%201.5%2013.5826%201.5%2012.8551V3.93756C1.5%203.03756%202.2275%202.31006%203.1275%202.31006H3.18C4.59%202.43006%206.6675%203.09006%208.04%203.83256C8.2875%203.96756%208.4375%204.21506%208.4375%204.50006Z%22%20fill%3D%22%234E93FF%22%2F%3E%3Cpath%20d%3D%22M14.8725%202.31006H14.8275C14.6475%202.32506%2014.4525%202.34756%2014.25%202.38506C13.3275%202.53506%2012.2325%202.85006%2011.25%203.24006C10.785%203.42756%2010.35%203.63006%209.9675%203.83256C9.72%203.96756%209.5625%204.22256%209.5625%204.50006V14.9326C9.5625%2015.4651%2010.1025%2015.8326%2010.59%2015.6301C11.985%2015.0451%2013.7175%2014.5351%2014.9475%2014.3701L15.18%2014.3401C15.9075%2014.2501%2016.5%2013.5826%2016.5%2012.8551V3.93756C16.5%203.03756%2015.7725%202.31006%2014.8725%202.31006ZM14.4525%2010.2976C14.4525%2010.5901%2014.2425%2010.7176%2013.9875%2010.5751L13.1925%2010.1326C13.11%2010.0876%2012.975%2010.0876%2012.885%2010.1326L12.09%2010.5751C11.835%2010.7176%2011.625%2010.5901%2011.625%2010.2976V7.99506C11.625%207.65006%2011.91%207.36506%2012.255%207.36506H13.83C14.175%207.36506%2014.46%207.65006%2014.46%207.99506V10.2976H14.4525Z%22%20fill%3D%22%234E93FF%22%2F%3E%3C%2Fsvg%3E";
|
|
629
629
|
|
|
630
|
-
var certificate = "data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2214%22%20viewBox%3D%220%200%2012%2014%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%
|
|
630
|
+
var certificate = "data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2214%22%20viewBox%3D%220%200%2012%2014%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%200H1.5C0.675%200%200%200.63%200%201.4V12.6C0%2013.37%200.675%2014%201.5%2014H10.5C11.325%2014%2012%2013.37%2012%2012.6V1.4C12%200.63%2011.325%200%2010.5%200ZM1.5%201.4H5.25V7L3.375%205.95L1.5%207V1.4Z%22%20fill%3D%22%234E93FF%22%2F%3E%3C%2Fsvg%3E";
|
|
631
631
|
|
|
632
632
|
var calendar = "data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.5627%202.67V1.5C12.5627%201.1925%2012.3077%200.9375%2012.0002%200.9375C11.6927%200.9375%2011.4377%201.1925%2011.4377%201.5V2.625H6.56267V1.5C6.56267%201.1925%206.30767%200.9375%206.00017%200.9375C5.69267%200.9375%205.43767%201.1925%205.43767%201.5V2.67C3.41267%202.8575%202.43017%204.065%202.28017%205.8575C2.26517%206.075%202.44517%206.255%202.65517%206.255H15.3452C15.5627%206.255%2015.7427%206.0675%2015.7202%205.8575C15.5702%204.065%2014.5877%202.8575%2012.5627%202.67Z%22%20fill%3D%22%234E93FF%22%2F%3E%3Cpath%20d%3D%22M15%207.38086H3C2.5875%207.38086%202.25%207.71836%202.25%208.13086V12.7509C2.25%2015.0009%203.375%2016.5009%206%2016.5009H12C14.625%2016.5009%2015.75%2015.0009%2015.75%2012.7509V8.13086C15.75%207.71836%2015.4125%207.38086%2015%207.38086ZM6.9075%2013.6584C6.87%2013.6884%206.8325%2013.7259%206.795%2013.7484C6.75%2013.7784%206.705%2013.8009%206.66%2013.8159C6.615%2013.8384%206.57%2013.8534%206.525%2013.8609C6.4725%2013.8684%206.4275%2013.8759%206.375%2013.8759C6.2775%2013.8759%206.18%2013.8534%206.09%2013.8159C5.9925%2013.7784%205.9175%2013.7259%205.8425%2013.6584C5.7075%2013.5159%205.625%2013.3209%205.625%2013.1259C5.625%2012.9309%205.7075%2012.7359%205.8425%2012.5934C5.9175%2012.5259%205.9925%2012.4734%206.09%2012.4359C6.225%2012.3759%206.375%2012.3609%206.525%2012.3909C6.57%2012.3984%206.615%2012.4134%206.66%2012.4359C6.705%2012.4509%206.75%2012.4734%206.795%2012.5034C6.8325%2012.5334%206.87%2012.5634%206.9075%2012.5934C7.0425%2012.7359%207.125%2012.9309%207.125%2013.1259C7.125%2013.3209%207.0425%2013.5159%206.9075%2013.6584ZM6.9075%2011.0334C6.765%2011.1684%206.57%2011.2509%206.375%2011.2509C6.18%2011.2509%205.985%2011.1684%205.8425%2011.0334C5.7075%2010.8909%205.625%2010.6959%205.625%2010.5009C5.625%2010.3059%205.7075%2010.1109%205.8425%209.96836C6.0525%209.75836%206.3825%209.69086%206.66%209.81086C6.7575%209.84836%206.84%209.90086%206.9075%209.96836C7.0425%2010.1109%207.125%2010.3059%207.125%2010.5009C7.125%2010.6959%207.0425%2010.8909%206.9075%2011.0334ZM9.5325%2013.6584C9.39%2013.7934%209.195%2013.8759%209%2013.8759C8.805%2013.8759%208.61%2013.7934%208.4675%2013.6584C8.3325%2013.5159%208.25%2013.3209%208.25%2013.1259C8.25%2012.9309%208.3325%2012.7359%208.4675%2012.5934C8.745%2012.3159%209.255%2012.3159%209.5325%2012.5934C9.6675%2012.7359%209.75%2012.9309%209.75%2013.1259C9.75%2013.3209%209.6675%2013.5159%209.5325%2013.6584ZM9.5325%2011.0334C9.495%2011.0634%209.4575%2011.0934%209.42%2011.1234C9.375%2011.1534%209.33%2011.1759%209.285%2011.1909C9.24%2011.2134%209.195%2011.2284%209.15%2011.2359C9.0975%2011.2434%209.0525%2011.2509%209%2011.2509C8.805%2011.2509%208.61%2011.1684%208.4675%2011.0334C8.3325%2010.8909%208.25%2010.6959%208.25%2010.5009C8.25%2010.3059%208.3325%2010.1109%208.4675%209.96836C8.535%209.90086%208.6175%209.84836%208.715%209.81086C8.9925%209.69086%209.3225%209.75836%209.5325%209.96836C9.6675%2010.1109%209.75%2010.3059%209.75%2010.5009C9.75%2010.6959%209.6675%2010.8909%209.5325%2011.0334ZM12.1575%2013.6584C12.015%2013.7934%2011.82%2013.8759%2011.625%2013.8759C11.43%2013.8759%2011.235%2013.7934%2011.0925%2013.6584C10.9575%2013.5159%2010.875%2013.3209%2010.875%2013.1259C10.875%2012.9309%2010.9575%2012.7359%2011.0925%2012.5934C11.37%2012.3159%2011.88%2012.3159%2012.1575%2012.5934C12.2925%2012.7359%2012.375%2012.9309%2012.375%2013.1259C12.375%2013.3209%2012.2925%2013.5159%2012.1575%2013.6584ZM12.1575%2011.0334C12.12%2011.0634%2012.0825%2011.0934%2012.045%2011.1234C12%2011.1534%2011.955%2011.1759%2011.91%2011.1909C11.865%2011.2134%2011.82%2011.2284%2011.775%2011.2359C11.7225%2011.2434%2011.67%2011.2509%2011.625%2011.2509C11.43%2011.2509%2011.235%2011.1684%2011.0925%2011.0334C10.9575%2010.8909%2010.875%2010.6959%2010.875%2010.5009C10.875%2010.3059%2010.9575%2010.1109%2011.0925%209.96836C11.1675%209.90086%2011.2425%209.84836%2011.34%209.81086C11.475%209.75086%2011.625%209.73586%2011.775%209.76586C11.82%209.77336%2011.865%209.78836%2011.91%209.81086C11.955%209.82586%2012%209.84836%2012.045%209.87836C12.0825%209.90836%2012.12%209.93836%2012.1575%209.96836C12.2925%2010.1109%2012.375%2010.3059%2012.375%2010.5009C12.375%2010.6959%2012.2925%2010.8909%2012.1575%2011.0334Z%22%20fill%3D%22%234E93FF%22%2F%3E%3C%2Fsvg%3E";
|
|
633
633
|
|
|
@@ -1104,7 +1104,7 @@ function DesktopHeader({
|
|
|
1104
1104
|
header,
|
|
1105
1105
|
navData,
|
|
1106
1106
|
isTutorWebsite,
|
|
1107
|
-
|
|
1107
|
+
isLandingPage = false
|
|
1108
1108
|
}) {
|
|
1109
1109
|
const {
|
|
1110
1110
|
isFixed = true
|
|
@@ -1151,7 +1151,11 @@ function DesktopHeader({
|
|
|
1151
1151
|
className: classes.imageDiv
|
|
1152
1152
|
}, header?.websiteLogo ? /*#__PURE__*/React.createElement("a", {
|
|
1153
1153
|
href: logoUrl,
|
|
1154
|
-
className: classes.imageAnchor
|
|
1154
|
+
className: classes.imageAnchor,
|
|
1155
|
+
style: {
|
|
1156
|
+
pointerEvents: isLandingPage ? 'none' : 'auto',
|
|
1157
|
+
cursor: isLandingPage ? 'not-allowed' : 'default'
|
|
1158
|
+
}
|
|
1155
1159
|
}, /*#__PURE__*/React.createElement("img", {
|
|
1156
1160
|
src: header?.websiteLogo
|
|
1157
1161
|
})) : null, isTutorWebsite && header?.appName ? /*#__PURE__*/React.createElement("a", {
|
|
@@ -1163,7 +1167,7 @@ function DesktopHeader({
|
|
|
1163
1167
|
navDataCount: navData?.length,
|
|
1164
1168
|
headerData: header,
|
|
1165
1169
|
isMobile: false,
|
|
1166
|
-
isLandingPages:
|
|
1170
|
+
isLandingPages: isLandingPage,
|
|
1167
1171
|
moreContent: moreContentFn(),
|
|
1168
1172
|
isTutorWebsite: isTutorWebsite
|
|
1169
1173
|
}))));
|
|
@@ -1177,7 +1181,7 @@ function MobileHeader({
|
|
|
1177
1181
|
header,
|
|
1178
1182
|
navData,
|
|
1179
1183
|
isTutorWebsite,
|
|
1180
|
-
|
|
1184
|
+
isLandingPage = false
|
|
1181
1185
|
}) {
|
|
1182
1186
|
const {
|
|
1183
1187
|
isFixed = true
|
|
@@ -1319,7 +1323,11 @@ function MobileHeader({
|
|
|
1319
1323
|
width: '24px'
|
|
1320
1324
|
})), header?.websiteLogo ? /*#__PURE__*/React.createElement("a", {
|
|
1321
1325
|
href: logoUrl,
|
|
1322
|
-
className: classes.imageAnchor
|
|
1326
|
+
className: classes.imageAnchor,
|
|
1327
|
+
style: {
|
|
1328
|
+
pointerEvents: isLandingPage ? 'none' : 'auto',
|
|
1329
|
+
cursor: isLandingPage ? 'not-allowed' : 'default'
|
|
1330
|
+
}
|
|
1323
1331
|
}, /*#__PURE__*/React.createElement("img", {
|
|
1324
1332
|
src: header?.websiteLogo
|
|
1325
1333
|
})) : null, isTutorWebsite && header?.appName ? /*#__PURE__*/React.createElement("p", {
|
|
@@ -1344,12 +1352,12 @@ function MobileHeader({
|
|
|
1344
1352
|
}
|
|
1345
1353
|
|
|
1346
1354
|
function Header({
|
|
1347
|
-
data
|
|
1355
|
+
data,
|
|
1356
|
+
isLandingPage
|
|
1348
1357
|
}) {
|
|
1349
1358
|
const {
|
|
1350
1359
|
isMobile,
|
|
1351
|
-
isTutorWebsite
|
|
1352
|
-
isLandingPages
|
|
1360
|
+
isTutorWebsite
|
|
1353
1361
|
} = useContext(PageContext);
|
|
1354
1362
|
|
|
1355
1363
|
const filterHiddenNavs = () => {
|
|
@@ -1360,12 +1368,12 @@ function Header({
|
|
|
1360
1368
|
navData: filterHiddenNavs(),
|
|
1361
1369
|
header: data,
|
|
1362
1370
|
isTutorWebsite: isTutorWebsite,
|
|
1363
|
-
|
|
1371
|
+
isLandingPage: isLandingPage
|
|
1364
1372
|
}) : /*#__PURE__*/React.createElement(DesktopHeader, {
|
|
1365
1373
|
navData: filterHiddenNavs(),
|
|
1366
1374
|
header: data,
|
|
1367
1375
|
isTutorWebsite: isTutorWebsite,
|
|
1368
|
-
|
|
1376
|
+
isLandingPage: isLandingPage
|
|
1369
1377
|
});
|
|
1370
1378
|
}
|
|
1371
1379
|
|
|
@@ -1898,7 +1906,8 @@ function PageRenderer$1({
|
|
|
1898
1906
|
header,
|
|
1899
1907
|
footer,
|
|
1900
1908
|
validations = {},
|
|
1901
|
-
_id
|
|
1909
|
+
_id,
|
|
1910
|
+
isLandingPage = false
|
|
1902
1911
|
},
|
|
1903
1912
|
isMobile = false,
|
|
1904
1913
|
isLandingPages = false,
|
|
@@ -1947,7 +1956,8 @@ function PageRenderer$1({
|
|
|
1947
1956
|
isHeader: true,
|
|
1948
1957
|
hideLogin
|
|
1949
1958
|
}, /*#__PURE__*/React.createElement(Header, {
|
|
1950
|
-
data: header
|
|
1959
|
+
data: header,
|
|
1960
|
+
isLandingPage: isLandingPage
|
|
1951
1961
|
})), sections?.length ? sections?.map((sectionData, sectionIndex) => /*#__PURE__*/React.createElement(Wrapper, _extends({}, !!SectionWrapper && {
|
|
1952
1962
|
sectionData,
|
|
1953
1963
|
sectionIndex
|
|
@@ -7830,7 +7840,8 @@ function PageRenderer({
|
|
|
7830
7840
|
header,
|
|
7831
7841
|
footer,
|
|
7832
7842
|
validations = {},
|
|
7833
|
-
_id
|
|
7843
|
+
_id,
|
|
7844
|
+
isLandingPage = false
|
|
7834
7845
|
},
|
|
7835
7846
|
isMobile = false,
|
|
7836
7847
|
isLandingPages = false,
|
|
@@ -7878,7 +7889,8 @@ function PageRenderer({
|
|
|
7878
7889
|
sectionData: header,
|
|
7879
7890
|
isHeader: true
|
|
7880
7891
|
}, /*#__PURE__*/React.createElement(Header, {
|
|
7881
|
-
data: header
|
|
7892
|
+
data: header,
|
|
7893
|
+
isLandingPage: isLandingPage
|
|
7882
7894
|
})), sections?.length ? sections?.map((sectionData, sectionIndex) => /*#__PURE__*/React.createElement(Wrapper, _extends({}, !!SectionWrapper && {
|
|
7883
7895
|
sectionData,
|
|
7884
7896
|
sectionIndex
|