diy-template-components 0.2.26 → 0.2.28
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 +21 -13
- package/build/index.es.js.map +1 -1
- package/build/index.js +21 -13
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1360,6 +1360,9 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1360
1360
|
boxSizing: 'border-box'
|
|
1361
1361
|
}
|
|
1362
1362
|
},
|
|
1363
|
+
sectionNoBranding: {
|
|
1364
|
+
paddingBottom: '0px'
|
|
1365
|
+
},
|
|
1363
1366
|
upperContainer: {
|
|
1364
1367
|
display: 'flex',
|
|
1365
1368
|
justifyContent: 'space-between',
|
|
@@ -1368,6 +1371,9 @@ const useSectionStyles$9 = createUseStyles(theme => ({
|
|
|
1368
1371
|
borderBottom: '1px solid #E1EAF6',
|
|
1369
1372
|
alignItems: 'flex-start'
|
|
1370
1373
|
},
|
|
1374
|
+
upperContainerNoBranding: {
|
|
1375
|
+
borderBottom: '0px'
|
|
1376
|
+
},
|
|
1371
1377
|
upperContainerItem1: {
|
|
1372
1378
|
width: '33%',
|
|
1373
1379
|
display: 'flex',
|
|
@@ -1514,9 +1520,9 @@ function Footer({
|
|
|
1514
1520
|
const theme = useTheme();
|
|
1515
1521
|
const classes = useSectionStyles$9();
|
|
1516
1522
|
return /*#__PURE__*/React.createElement("footer", {
|
|
1517
|
-
className: classes.section
|
|
1523
|
+
className: data.metadata.isCpBranding ? `${classes.section}` : `${classes.section} ${classes.sectionNoBranding}`
|
|
1518
1524
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1519
|
-
className: classes.upperContainer
|
|
1525
|
+
className: data.metadata.isCpBranding ? `${classes.upperContainer}` : `${classes.upperContainer} ${classes.upperContainerNoBranding}`
|
|
1520
1526
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1521
1527
|
className: classes.upperContainerItem1
|
|
1522
1528
|
}, /*#__PURE__*/React.createElement("img", {
|
|
@@ -1524,7 +1530,7 @@ function Footer({
|
|
|
1524
1530
|
ref: data?.logo?.refSetter
|
|
1525
1531
|
})), /*#__PURE__*/React.createElement("div", {
|
|
1526
1532
|
className: classes.upperContainerItem2
|
|
1527
|
-
}, data?.address?.metadata.value ? /*#__PURE__*/React.createElement("p", {
|
|
1533
|
+
}, data?.address?.metadata.value && data?.address?.metadata.value !== '<br>' ? /*#__PURE__*/React.createElement("p", {
|
|
1528
1534
|
className: classes.addressContainer
|
|
1529
1535
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1530
1536
|
className: classes.addressImg
|
|
@@ -1538,7 +1544,7 @@ function Footer({
|
|
|
1538
1544
|
dangerouslySetInnerHTML: {
|
|
1539
1545
|
__html: data?.address?.metadata.value
|
|
1540
1546
|
}
|
|
1541
|
-
})) : null, data?.phone?.metadata.value ? /*#__PURE__*/React.createElement("p", {
|
|
1547
|
+
})) : null, data?.phone?.metadata.value && data?.phone?.metadata.value !== '<br>' ? /*#__PURE__*/React.createElement("p", {
|
|
1542
1548
|
className: classes.addressContainer
|
|
1543
1549
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1544
1550
|
className: classes.addressImg
|
|
@@ -1552,7 +1558,7 @@ function Footer({
|
|
|
1552
1558
|
dangerouslySetInnerHTML: {
|
|
1553
1559
|
__html: data?.phone?.metadata.value
|
|
1554
1560
|
}
|
|
1555
|
-
})) : null, data?.email?.metadata.value ? /*#__PURE__*/React.createElement("p", {
|
|
1561
|
+
})) : null, data?.email?.metadata.value && data?.email?.metadata.value !== '<br>' ? /*#__PURE__*/React.createElement("p", {
|
|
1556
1562
|
className: classes.addressContainer
|
|
1557
1563
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1558
1564
|
className: classes.addressImg
|
|
@@ -3368,7 +3374,8 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3368
3374
|
color: theme?.palette?.font?.default,
|
|
3369
3375
|
margin: '10px 0 40px 10px',
|
|
3370
3376
|
overflow: 'hidden',
|
|
3371
|
-
|
|
3377
|
+
wordBreak: 'break-word',
|
|
3378
|
+
// whiteSpace: 'nowrap',
|
|
3372
3379
|
textOverflow: 'ellipsis'
|
|
3373
3380
|
},
|
|
3374
3381
|
sliderContainer: {
|
|
@@ -3451,7 +3458,8 @@ const useTestimonialStyles = createUseStyles(theme => {
|
|
|
3451
3458
|
color: theme?.palette?.font?.default,
|
|
3452
3459
|
margin: '4px 0 12px 0',
|
|
3453
3460
|
overflow: 'hidden',
|
|
3454
|
-
whiteSpace: 'nowrap',
|
|
3461
|
+
// whiteSpace: 'nowrap',
|
|
3462
|
+
wordBreak: 'break-word',
|
|
3455
3463
|
textOverflow: 'ellipsis'
|
|
3456
3464
|
},
|
|
3457
3465
|
userImageDummy: {
|
|
@@ -5337,9 +5345,9 @@ function CourseCard({
|
|
|
5337
5345
|
className: classes.courseCardPriceContainer
|
|
5338
5346
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5339
5347
|
className: classes.courseCardPrice
|
|
5340
|
-
}, '₹', card?.finalPrice), /*#__PURE__*/React.createElement("div", {
|
|
5348
|
+
}, '₹', card?.finalPrice), card?.price !== card?.finalPrice ? /*#__PURE__*/React.createElement("div", {
|
|
5341
5349
|
className: classes.courseCardStrikePrice
|
|
5342
|
-
}, /*#__PURE__*/React.createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF')), /*#__PURE__*/React.createElement("a", {
|
|
5350
|
+
}, /*#__PURE__*/React.createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF') : null), /*#__PURE__*/React.createElement("a", {
|
|
5343
5351
|
className: classes.coursesAnchorTag,
|
|
5344
5352
|
href: isEdit ? null : card?.shareableLink
|
|
5345
5353
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -5769,7 +5777,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
|
|
|
5769
5777
|
marginTop: '32px'
|
|
5770
5778
|
},
|
|
5771
5779
|
leftContainer: {
|
|
5772
|
-
width: '
|
|
5780
|
+
width: '65%'
|
|
5773
5781
|
},
|
|
5774
5782
|
subtitle: {
|
|
5775
5783
|
margin: '0 0 40px 0',
|
|
@@ -6074,7 +6082,7 @@ function FormEnquiry({
|
|
|
6074
6082
|
messageValid: 1
|
|
6075
6083
|
});
|
|
6076
6084
|
}
|
|
6077
|
-
})), /*#__PURE__*/React.createElement(Button, {
|
|
6085
|
+
})), nodeData?.cta?.metadata?.value !== '' && /*#__PURE__*/React.createElement(Button, {
|
|
6078
6086
|
ref: nodeData?.cta?.refSetter,
|
|
6079
6087
|
data: btnDisabled && validData?.messageValid && validData?.emailValid && validData?.nameValid && validData?.phoneValid ? {
|
|
6080
6088
|
value: 'Submitted'
|
|
@@ -6646,10 +6654,10 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
6646
6654
|
courseDetailContent: {
|
|
6647
6655
|
marginTop: '16px',
|
|
6648
6656
|
fontSize: '16px',
|
|
6649
|
-
lineHeight: '24px',
|
|
6650
6657
|
wordBreak: 'break-word',
|
|
6651
6658
|
color: theme.palette.font.primary,
|
|
6652
|
-
margin: '10px 0 20px'
|
|
6659
|
+
margin: '10px 0 20px',
|
|
6660
|
+
whiteSpace: 'pre-wrap'
|
|
6653
6661
|
},
|
|
6654
6662
|
courseDetailViewFullDetails: {
|
|
6655
6663
|
cursor: 'pointer',
|