diy-template-components 0.2.85 → 0.2.87
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 +26 -20
- package/build/index.es.js.map +1 -1
- package/build/index.js +26 -20
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1985,7 +1985,6 @@ const fontWeight = {
|
|
|
1985
1985
|
};
|
|
1986
1986
|
|
|
1987
1987
|
function getTheme(colorTheme = 'blue', fontFamily = 'Arial', isMobile) {
|
|
1988
|
-
console.log(isMobile, "isMobileisMobile");
|
|
1989
1988
|
const palette = palettes[colorTheme] || palettes['blue'];
|
|
1990
1989
|
const typography = {
|
|
1991
1990
|
fontFamily: `"${fontFamily}", "Roboto", "Helvetica", "Arial", "sans-serif"`,
|
|
@@ -3128,9 +3127,7 @@ var index$j = /*#__PURE__*/Object.freeze({
|
|
|
3128
3127
|
const useSectionStyles$5 = createUseStyles(theme => {
|
|
3129
3128
|
return {
|
|
3130
3129
|
section: {
|
|
3131
|
-
padding:
|
|
3132
|
-
isMobile
|
|
3133
|
-
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
|
|
3130
|
+
padding: `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
|
|
3134
3131
|
'&, & *, & *:before, & *:after': {
|
|
3135
3132
|
fontFamily: theme?.typography?.fontFamily,
|
|
3136
3133
|
boxSizing: 'border-box'
|
|
@@ -3192,7 +3189,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3192
3189
|
textContainer: {
|
|
3193
3190
|
marginLeft: '72px',
|
|
3194
3191
|
textAlign: 'left',
|
|
3195
|
-
margin: '0 auto',
|
|
3192
|
+
// margin: '0 auto',
|
|
3196
3193
|
width: '50%'
|
|
3197
3194
|
},
|
|
3198
3195
|
subTitleHeading: {
|
|
@@ -3218,13 +3215,14 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3218
3215
|
},
|
|
3219
3216
|
'@media screen and (max-width: 767px)': {
|
|
3220
3217
|
section: {
|
|
3221
|
-
padding:
|
|
3218
|
+
padding: `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px`
|
|
3222
3219
|
},
|
|
3223
3220
|
centerData: {
|
|
3224
3221
|
flexDirection: 'column-reverse',
|
|
3225
|
-
width: '100%'
|
|
3226
|
-
padding: `${theme?.spacing?.padding?.medium}px ${theme?.spacing?.padding?.regular}px`
|
|
3222
|
+
width: '100%'
|
|
3223
|
+
// padding: `${theme?.spacing?.padding?.medium}px ${theme?.spacing?.padding?.regular}px`
|
|
3227
3224
|
},
|
|
3225
|
+
|
|
3228
3226
|
imageContainer: {
|
|
3229
3227
|
height: 'unset !important',
|
|
3230
3228
|
'& img': {
|
|
@@ -3244,7 +3242,9 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3244
3242
|
},
|
|
3245
3243
|
textContainer: {
|
|
3246
3244
|
padding: `${theme?.spacing?.padding?.regular}px 0px`,
|
|
3247
|
-
width: 'unset'
|
|
3245
|
+
width: 'unset',
|
|
3246
|
+
margin: '0px',
|
|
3247
|
+
textAlign: 'center'
|
|
3248
3248
|
},
|
|
3249
3249
|
heading: {
|
|
3250
3250
|
fontSize: `${theme?.typography?.fontSize?.h3}px`
|
|
@@ -4651,7 +4651,9 @@ var index$e = /*#__PURE__*/Object.freeze({
|
|
|
4651
4651
|
const useSectionStyles$3 = createUseStyles(theme => ({
|
|
4652
4652
|
section: {
|
|
4653
4653
|
position: 'relative',
|
|
4654
|
-
padding:
|
|
4654
|
+
padding: ({
|
|
4655
|
+
isMobile
|
|
4656
|
+
} = {}) => isMobile ? `${theme.spacing.padding.medium}px 0px ${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
|
|
4655
4657
|
backgroundColor: theme?.palette?.background?.default,
|
|
4656
4658
|
'&, & *, & *:before, & *:after': {
|
|
4657
4659
|
fontFamily: theme?.typography?.fontFamily,
|
|
@@ -4686,6 +4688,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4686
4688
|
width: '100%',
|
|
4687
4689
|
fontSize: theme.typography.fontSize.subHead,
|
|
4688
4690
|
color: theme?.palette?.font?.default,
|
|
4691
|
+
textTransform: 'uppercase',
|
|
4689
4692
|
textAlign: 'left',
|
|
4690
4693
|
lineHeight: '20px',
|
|
4691
4694
|
letterSpacing: '3px',
|
|
@@ -4801,13 +4804,14 @@ function Info({
|
|
|
4801
4804
|
const classes = useSectionStyles$3({
|
|
4802
4805
|
cardsCount,
|
|
4803
4806
|
containerWidth,
|
|
4804
|
-
slidesToShow
|
|
4807
|
+
slidesToShow,
|
|
4808
|
+
isMobile
|
|
4805
4809
|
});
|
|
4806
4810
|
const settings = {
|
|
4807
4811
|
className: classes.sliderContainer,
|
|
4808
4812
|
slidesToShow,
|
|
4809
4813
|
centerMode: true,
|
|
4810
|
-
centerPadding: isMobile ? '40px 0 0' : '
|
|
4814
|
+
centerPadding: isMobile ? '40px 0 0' : '0px 0 0'
|
|
4811
4815
|
};
|
|
4812
4816
|
const carouselContent = carouselList.map((dt, ind) =>
|
|
4813
4817
|
/*#__PURE__*/
|
|
@@ -4863,8 +4867,8 @@ function Info({
|
|
|
4863
4867
|
}
|
|
4864
4868
|
})), cardsCount > slidesToShow ? /*#__PURE__*/React.createElement(Carousel, {
|
|
4865
4869
|
hideArrow: isMobile,
|
|
4866
|
-
settings: settings
|
|
4867
|
-
buttonContainerClass
|
|
4870
|
+
settings: settings
|
|
4871
|
+
// buttonContainerClass={classes.buttonContainerClass}
|
|
4868
4872
|
}, carouselContent) : /*#__PURE__*/React.createElement("div", {
|
|
4869
4873
|
className: classes.contentRow
|
|
4870
4874
|
}, carouselContent))));
|
|
@@ -6084,7 +6088,8 @@ const useTeamStyles = createUseStyles(theme => {
|
|
|
6084
6088
|
border: '3px solid #D8E0F0',
|
|
6085
6089
|
borderRadius: theme?.shape?.borderRadius?.regular,
|
|
6086
6090
|
padding: theme.spacing.padding.tiny,
|
|
6087
|
-
boxShadow: theme?.shadows?.primary
|
|
6091
|
+
boxShadow: theme?.shadows?.primary,
|
|
6092
|
+
minHeight: "390px"
|
|
6088
6093
|
},
|
|
6089
6094
|
imageContainer: {
|
|
6090
6095
|
minWidth: '100%',
|
|
@@ -6301,7 +6306,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
|
|
|
6301
6306
|
title: {
|
|
6302
6307
|
margin: '0',
|
|
6303
6308
|
fontSize: theme.typography.fontSize.h2,
|
|
6304
|
-
color: theme?.palette?.font?.
|
|
6309
|
+
color: theme?.palette?.font?.default,
|
|
6305
6310
|
fontWeight: theme.typography.fontWeight.bold,
|
|
6306
6311
|
lineHeight: '71px',
|
|
6307
6312
|
letterSpacing: '-3px',
|
|
@@ -6323,7 +6328,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
|
|
|
6323
6328
|
subtitle: {
|
|
6324
6329
|
// margin: '0 0 40px 0',
|
|
6325
6330
|
fontSize: theme.typography.fontSize.h6,
|
|
6326
|
-
color: theme?.palette?.font?.
|
|
6331
|
+
color: theme?.palette?.font?.default,
|
|
6327
6332
|
lineHeight: '32px',
|
|
6328
6333
|
wordBreak: 'break-word'
|
|
6329
6334
|
},
|
|
@@ -7273,7 +7278,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
7273
7278
|
width: '100%'
|
|
7274
7279
|
},
|
|
7275
7280
|
videoDetailsHeading: {
|
|
7276
|
-
lineHeight: '
|
|
7281
|
+
lineHeight: 'normal'
|
|
7277
7282
|
},
|
|
7278
7283
|
videoTestimonialTitle: {
|
|
7279
7284
|
// fontSize: '24px',
|
|
@@ -7765,7 +7770,8 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
7765
7770
|
videoDetailsHeading: {
|
|
7766
7771
|
// fontSize: '20px',
|
|
7767
7772
|
fontWeight: '600',
|
|
7768
|
-
lineHeight: '
|
|
7773
|
+
lineHeight: 'normal',
|
|
7774
|
+
letterSpacing: '0px'
|
|
7769
7775
|
},
|
|
7770
7776
|
videoTestimonialTitle: {
|
|
7771
7777
|
// fontSize: '24px',
|
|
@@ -9089,7 +9095,6 @@ function PageRenderer({
|
|
|
9089
9095
|
extraProps,
|
|
9090
9096
|
hideLogin
|
|
9091
9097
|
}) {
|
|
9092
|
-
const theme = useMemo(() => getTheme(color, font), [color, font]);
|
|
9093
9098
|
const navList = header?.navs;
|
|
9094
9099
|
const context = useMemo(() => ({
|
|
9095
9100
|
isMobile,
|
|
@@ -9112,6 +9117,7 @@ function PageRenderer({
|
|
|
9112
9117
|
countryCode,
|
|
9113
9118
|
currencySymbol
|
|
9114
9119
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
|
|
9120
|
+
const theme = useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
9115
9121
|
const Wrapper = SectionWrapper || Fragment;
|
|
9116
9122
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
9117
9123
|
theme: theme
|