diy-template-components 0.2.84 → 0.2.86
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 +22 -17
- package/build/index.es.js.map +1 -1
- package/build/index.js +22 -17
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2000,7 +2000,6 @@ const fontWeight = {
|
|
|
2000
2000
|
};
|
|
2001
2001
|
|
|
2002
2002
|
function getTheme(colorTheme = 'blue', fontFamily = 'Arial', isMobile) {
|
|
2003
|
-
console.log(isMobile, "isMobileisMobile");
|
|
2004
2003
|
const palette = palettes[colorTheme] || palettes['blue'];
|
|
2005
2004
|
const typography = {
|
|
2006
2005
|
fontFamily: `"${fontFamily}", "Roboto", "Helvetica", "Arial", "sans-serif"`,
|
|
@@ -2167,7 +2166,6 @@ function PageRenderer$1({
|
|
|
2167
2166
|
countryCode,
|
|
2168
2167
|
currencySymbol
|
|
2169
2168
|
}) {
|
|
2170
|
-
const theme = React.useMemo(() => getTheme(color, font), [color, font]);
|
|
2171
2169
|
const navList = header?.navs;
|
|
2172
2170
|
const context = React.useMemo(() => ({
|
|
2173
2171
|
isMobile,
|
|
@@ -2190,6 +2188,7 @@ function PageRenderer$1({
|
|
|
2190
2188
|
countryCode,
|
|
2191
2189
|
currencySymbol
|
|
2192
2190
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
|
|
2191
|
+
const theme = React.useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
2193
2192
|
const Wrapper = SectionWrapper || React.Fragment;
|
|
2194
2193
|
return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
|
|
2195
2194
|
theme: theme
|
|
@@ -3143,9 +3142,7 @@ var index$j = /*#__PURE__*/Object.freeze({
|
|
|
3143
3142
|
const useSectionStyles$5 = createUseStyles(theme => {
|
|
3144
3143
|
return {
|
|
3145
3144
|
section: {
|
|
3146
|
-
padding:
|
|
3147
|
-
isMobile
|
|
3148
|
-
} = {}) => isMobile ? `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px` : `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
|
|
3145
|
+
padding: `${theme.spacing.padding.regular}px ${theme.spacing.padding.medium}px`,
|
|
3149
3146
|
'&, & *, & *:before, & *:after': {
|
|
3150
3147
|
fontFamily: theme?.typography?.fontFamily,
|
|
3151
3148
|
boxSizing: 'border-box'
|
|
@@ -3207,7 +3204,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3207
3204
|
textContainer: {
|
|
3208
3205
|
marginLeft: '72px',
|
|
3209
3206
|
textAlign: 'left',
|
|
3210
|
-
margin: '0 auto',
|
|
3207
|
+
// margin: '0 auto',
|
|
3211
3208
|
width: '50%'
|
|
3212
3209
|
},
|
|
3213
3210
|
subTitleHeading: {
|
|
@@ -3233,13 +3230,14 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3233
3230
|
},
|
|
3234
3231
|
'@media screen and (max-width: 767px)': {
|
|
3235
3232
|
section: {
|
|
3236
|
-
padding:
|
|
3233
|
+
padding: `${theme.spacing.padding.medium}px ${theme.spacing.padding.regular}px`
|
|
3237
3234
|
},
|
|
3238
3235
|
centerData: {
|
|
3239
3236
|
flexDirection: 'column-reverse',
|
|
3240
|
-
width: '100%'
|
|
3241
|
-
padding: `${theme?.spacing?.padding?.medium}px ${theme?.spacing?.padding?.regular}px`
|
|
3237
|
+
width: '100%'
|
|
3238
|
+
// padding: `${theme?.spacing?.padding?.medium}px ${theme?.spacing?.padding?.regular}px`
|
|
3242
3239
|
},
|
|
3240
|
+
|
|
3243
3241
|
imageContainer: {
|
|
3244
3242
|
height: 'unset !important',
|
|
3245
3243
|
'& img': {
|
|
@@ -3259,7 +3257,9 @@ const useSectionStyles$5 = createUseStyles(theme => {
|
|
|
3259
3257
|
},
|
|
3260
3258
|
textContainer: {
|
|
3261
3259
|
padding: `${theme?.spacing?.padding?.regular}px 0px`,
|
|
3262
|
-
width: 'unset'
|
|
3260
|
+
width: 'unset',
|
|
3261
|
+
margin: '0px',
|
|
3262
|
+
textAlign: 'center'
|
|
3263
3263
|
},
|
|
3264
3264
|
heading: {
|
|
3265
3265
|
fontSize: `${theme?.typography?.fontSize?.h3}px`
|
|
@@ -4666,7 +4666,9 @@ var index$e = /*#__PURE__*/Object.freeze({
|
|
|
4666
4666
|
const useSectionStyles$3 = createUseStyles(theme => ({
|
|
4667
4667
|
section: {
|
|
4668
4668
|
position: 'relative',
|
|
4669
|
-
padding:
|
|
4669
|
+
padding: ({
|
|
4670
|
+
isMobile
|
|
4671
|
+
} = {}) => 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`,
|
|
4670
4672
|
backgroundColor: theme?.palette?.background?.default,
|
|
4671
4673
|
'&, & *, & *:before, & *:after': {
|
|
4672
4674
|
fontFamily: theme?.typography?.fontFamily,
|
|
@@ -4701,6 +4703,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
|
|
|
4701
4703
|
width: '100%',
|
|
4702
4704
|
fontSize: theme.typography.fontSize.subHead,
|
|
4703
4705
|
color: theme?.palette?.font?.default,
|
|
4706
|
+
textTransform: 'uppercase',
|
|
4704
4707
|
textAlign: 'left',
|
|
4705
4708
|
lineHeight: '20px',
|
|
4706
4709
|
letterSpacing: '3px',
|
|
@@ -4816,13 +4819,14 @@ function Info({
|
|
|
4816
4819
|
const classes = useSectionStyles$3({
|
|
4817
4820
|
cardsCount,
|
|
4818
4821
|
containerWidth,
|
|
4819
|
-
slidesToShow
|
|
4822
|
+
slidesToShow,
|
|
4823
|
+
isMobile
|
|
4820
4824
|
});
|
|
4821
4825
|
const settings = {
|
|
4822
4826
|
className: classes.sliderContainer,
|
|
4823
4827
|
slidesToShow,
|
|
4824
4828
|
centerMode: true,
|
|
4825
|
-
centerPadding: isMobile ? '40px 0 0' : '
|
|
4829
|
+
centerPadding: isMobile ? '40px 0 0' : '0px 0 0'
|
|
4826
4830
|
};
|
|
4827
4831
|
const carouselContent = carouselList.map((dt, ind) =>
|
|
4828
4832
|
/*#__PURE__*/
|
|
@@ -4878,8 +4882,8 @@ function Info({
|
|
|
4878
4882
|
}
|
|
4879
4883
|
})), cardsCount > slidesToShow ? /*#__PURE__*/React__default["default"].createElement(Carousel, {
|
|
4880
4884
|
hideArrow: isMobile,
|
|
4881
|
-
settings: settings
|
|
4882
|
-
buttonContainerClass
|
|
4885
|
+
settings: settings
|
|
4886
|
+
// buttonContainerClass={classes.buttonContainerClass}
|
|
4883
4887
|
}, carouselContent) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4884
4888
|
className: classes.contentRow
|
|
4885
4889
|
}, carouselContent))));
|
|
@@ -7288,7 +7292,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
|
|
|
7288
7292
|
width: '100%'
|
|
7289
7293
|
},
|
|
7290
7294
|
videoDetailsHeading: {
|
|
7291
|
-
lineHeight: '
|
|
7295
|
+
lineHeight: 'normal'
|
|
7292
7296
|
},
|
|
7293
7297
|
videoTestimonialTitle: {
|
|
7294
7298
|
// fontSize: '24px',
|
|
@@ -7780,7 +7784,8 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
7780
7784
|
videoDetailsHeading: {
|
|
7781
7785
|
// fontSize: '20px',
|
|
7782
7786
|
fontWeight: '600',
|
|
7783
|
-
lineHeight: '
|
|
7787
|
+
lineHeight: 'normal',
|
|
7788
|
+
letterSpacing: '0px'
|
|
7784
7789
|
},
|
|
7785
7790
|
videoTestimonialTitle: {
|
|
7786
7791
|
// fontSize: '24px',
|