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 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"`,
@@ -2152,7 +2151,6 @@ function PageRenderer$1({
2152
2151
  countryCode,
2153
2152
  currencySymbol
2154
2153
  }) {
2155
- const theme = useMemo(() => getTheme(color, font), [color, font]);
2156
2154
  const navList = header?.navs;
2157
2155
  const context = useMemo(() => ({
2158
2156
  isMobile,
@@ -2175,6 +2173,7 @@ function PageRenderer$1({
2175
2173
  countryCode,
2176
2174
  currencySymbol
2177
2175
  }), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
2176
+ const theme = useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
2178
2177
  const Wrapper = SectionWrapper || Fragment;
2179
2178
  return /*#__PURE__*/React.createElement(ThemeProvider, {
2180
2179
  theme: theme
@@ -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: '0 0 40px'
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: `${theme?.spacing?.padding?.regular}px 0px ${theme?.spacing?.padding?.regular}px ${theme?.spacing?.padding?.medium}px`,
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' : '60px 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: classes.buttonContainerClass
4870
+ settings: settings
4871
+ // buttonContainerClass={classes.buttonContainerClass}
4868
4872
  }, carouselContent) : /*#__PURE__*/React.createElement("div", {
4869
4873
  className: classes.contentRow
4870
4874
  }, carouselContent))));
@@ -7273,7 +7277,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7273
7277
  width: '100%'
7274
7278
  },
7275
7279
  videoDetailsHeading: {
7276
- lineHeight: '20px'
7280
+ lineHeight: 'normal'
7277
7281
  },
7278
7282
  videoTestimonialTitle: {
7279
7283
  // fontSize: '24px',
@@ -7765,7 +7769,8 @@ const useCoursePromotionPage = createUseStyles(theme => {
7765
7769
  videoDetailsHeading: {
7766
7770
  // fontSize: '20px',
7767
7771
  fontWeight: '600',
7768
- lineHeight: '20px'
7772
+ lineHeight: 'normal',
7773
+ letterSpacing: '0px'
7769
7774
  },
7770
7775
  videoTestimonialTitle: {
7771
7776
  // fontSize: '24px',