diy-template-components 0.2.56 → 0.2.58

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.
Binary file
Binary file
package/build/index.es.js CHANGED
@@ -1,12 +1,12 @@
1
- function ___$insertStyle(css) {
2
- if (!css || typeof window === 'undefined') {
3
- return;
4
- }
5
- const style = document.createElement('style');
6
- style.setAttribute('type', 'text/css');
7
- style.innerHTML = css;
8
- document.head.appendChild(style);
9
- return css;
1
+ function ___$insertStyle(css) {
2
+ if (!css || !window) {
3
+ return;
4
+ }
5
+ const style = document.createElement('style');
6
+ style.setAttribute('type', 'text/css');
7
+ style.innerHTML = css;
8
+ document.head.appendChild(style);
9
+ return css;
10
10
  }
11
11
 
12
12
  import React, { createContext, useContext, forwardRef, useRef, useEffect, useState, useMemo, useLayoutEffect, Suspense, memo, lazy, Fragment } from 'react';
@@ -1599,7 +1599,8 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1599
1599
  footerLogoImage: {
1600
1600
  objectFit: ({
1601
1601
  isCustomWebsite
1602
- }) => isCustomWebsite ? 'contain' : ''
1602
+ }) => isCustomWebsite ? 'contain' : '',
1603
+ maxHeight: '55px'
1603
1604
  },
1604
1605
  '@media screen and (max-width: 767px)': {
1605
1606
  section: {
@@ -6942,33 +6943,26 @@ const useWebinarPromotionPage = createUseStyles(theme => {
6942
6943
  borderRadius: '10px'
6943
6944
  },
6944
6945
  bannerContainer: {
6946
+ width: '100%',
6945
6947
  background: '#EB5757',
6946
6948
  color: '#fff',
6947
6949
  textAlign: 'center',
6948
- padding: '6.5px 18px',
6950
+ padding: '10px 10px 23px 40px',
6951
+ wordWrap: 'break-word',
6949
6952
  position: 'relative',
6950
- '&:after': {
6951
- width: '0',
6952
- height: '-webkit-fill-available',
6953
- border: '11.5px solid transparent',
6954
- position: 'absolute',
6955
- content: '""',
6956
- borderTopColor: '#EB5757',
6957
- right: '-23px',
6958
- top: '0px',
6959
- borderLeftColor: ' #EB5757'
6960
- },
6961
- '&:before': {
6962
- width: 0,
6963
- height: 0,
6964
- border: '22.5px solid transparent',
6965
- position: 'absolute',
6966
- content: '""',
6967
- borderBottomColor: '#EB5757',
6968
- right: '-23px',
6969
- top: '-10.5px'
6953
+ fontSize: '18px',
6954
+ transform: 'rotate(180deg)',
6955
+ clipPath: 'polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 calc(100% - 10px), 15px calc(50% - 10px/2))',
6956
+ marginBottom: '16px'
6957
+ },
6958
+ '@media screen and (max-width: 1024px)': {
6959
+ bannerContainer: {
6960
+ width: '400px'
6970
6961
  }
6971
6962
  },
6963
+ bannerContainerText: {
6964
+ transform: 'rotate(180deg)'
6965
+ },
6972
6966
  courseDetailsTags: {
6973
6967
  marginTop: '16px',
6974
6968
  display: 'flex'
@@ -7116,11 +7110,15 @@ const SingleVideoSlide$1 = props => {
7116
7110
  className: classes.iframeSuperContainer
7117
7111
  }, /*#__PURE__*/React.createElement("div", {
7118
7112
  className: classes.videoDetails
7119
- }, data?.isPaid !== 0 && (checkIfOfferIsValid() || data.offerPriceValidFor > 0) && data.offerPriceValidFor > conversions && /*#__PURE__*/React.createElement("div", null, data.offerPriceValidFor - conversions > 0 && data.discount && (data.offerPriceEndDate ? checkIfOfferIsValid() : true) ? /*#__PURE__*/React.createElement("h3", {
7113
+ }, data?.isPaid !== 0 && (checkIfOfferIsValid() || data.offerPriceValidFor > 0) && data.offerPriceValidFor > conversions && /*#__PURE__*/React.createElement("div", null, data.offerPriceValidFor - conversions > 0 && data.discount && (data.offerPriceEndDate ? checkIfOfferIsValid() : true) ? /*#__PURE__*/React.createElement("div", {
7120
7114
  className: classes.bannerContainer
7121
- }, "Hurry up! Offer left for", ' ', data.offerPriceValidFor - conversions, ' ', data.offerPriceValidFor - conversions > 1 ? 'users now' : 'user only') : checkIfOfferIsValid() && /*#__PURE__*/React.createElement("h3", {
7115
+ }, /*#__PURE__*/React.createElement("div", {
7116
+ className: classes.bannerContainerText
7117
+ }, "Hurry up! Offer left for", ' ', data.offerPriceValidFor - conversions, ' ', data.offerPriceValidFor - conversions > 1 ? 'users now' : 'user only')) : checkIfOfferIsValid() && /*#__PURE__*/React.createElement("div", {
7122
7118
  className: classes.bannerContainer
7123
- }, "Hurry up! Offer for limited period only")), /*#__PURE__*/React.createElement("h3", {
7119
+ }, /*#__PURE__*/React.createElement("div", {
7120
+ className: classes.bannerContainerText
7121
+ }, "Hurry up! Offer for limited period only"))), /*#__PURE__*/React.createElement("h3", {
7124
7122
  ref: data?.videoTextHeading?.refSetter,
7125
7123
  className: classes.videoDetailsHeading,
7126
7124
  dangerouslySetInnerHTML: {
@@ -7379,33 +7377,26 @@ const useCoursePromotionPage = createUseStyles(theme => {
7379
7377
  paddingTop: '10px'
7380
7378
  },
7381
7379
  bannerContainer: {
7380
+ width: '100%',
7382
7381
  background: '#EB5757',
7383
7382
  color: '#fff',
7384
7383
  textAlign: 'center',
7385
- padding: '6.5px 18px',
7384
+ padding: '10px 10px 23px 40px',
7385
+ wordWrap: 'break-word',
7386
7386
  position: 'relative',
7387
- '&:after': {
7388
- width: '0',
7389
- height: '0',
7390
- border: '11.5px solid transparent',
7391
- position: 'absolute',
7392
- content: '""',
7393
- borderTopColor: '#EB5757',
7394
- right: '-23px',
7395
- top: '0px',
7396
- borderLeftColor: ' #EB5757'
7397
- },
7398
- '&:before': {
7399
- width: 0,
7400
- height: 0,
7401
- border: '22.5px solid transparent',
7402
- position: 'absolute',
7403
- content: '""',
7404
- borderBottomColor: '#EB5757',
7405
- right: '-23px',
7406
- top: '-10.5px'
7387
+ fontSize: '18px',
7388
+ transform: 'rotate(180deg)',
7389
+ clipPath: 'polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 calc(100% - 10px), 15px calc(50% - 10px/2))',
7390
+ marginBottom: '16px'
7391
+ },
7392
+ '@media screen and (max-width: 1024px)': {
7393
+ bannerContainer: {
7394
+ width: '400px'
7407
7395
  }
7408
7396
  },
7397
+ bannerContainerText: {
7398
+ transform: 'rotate(180deg)'
7399
+ },
7409
7400
  emblemContainer: {
7410
7401
  display: 'flex',
7411
7402
  justifyContent: 'space-between',
@@ -7601,11 +7592,15 @@ const SingleVideoSlide = props => {
7601
7592
  className: classes.iframeSuperContainer
7602
7593
  }, /*#__PURE__*/React.createElement("div", {
7603
7594
  className: classes.videoDetails
7604
- }, (checkIfOfferIsValid() || data.offerPriceValidFor > 0) && data.offerPriceValidFor > conversions && /*#__PURE__*/React.createElement("div", null, data.offerPriceValidFor - conversions > 0 && data.discount && (data.endDate ? checkIfOfferIsValid() : true) ? /*#__PURE__*/React.createElement("h3", {
7595
+ }, (checkIfOfferIsValid() || data.offerPriceValidFor > 0) && data.offerPriceValidFor > conversions && /*#__PURE__*/React.createElement("div", null, data.offerPriceValidFor - conversions > 0 && data.discount && (data.endDate ? checkIfOfferIsValid() : true) ? /*#__PURE__*/React.createElement("div", {
7605
7596
  className: classes.bannerContainer
7606
- }, "Hurry up! Offer left for", ' ', data.offerPriceValidFor - conversions, " users now") : checkIfOfferIsValid() && /*#__PURE__*/React.createElement("h3", {
7597
+ }, /*#__PURE__*/React.createElement("div", {
7598
+ className: classes.bannerContainerText
7599
+ }, "Hurry up! Offer left for", ' ', data.offerPriceValidFor - conversions, " users now")) : checkIfOfferIsValid() && /*#__PURE__*/React.createElement("div", {
7607
7600
  className: classes.bannerContainer
7608
- }, "Hurry up! Offer for limited period only")), /*#__PURE__*/React.createElement("div", {
7601
+ }, /*#__PURE__*/React.createElement("div", {
7602
+ className: classes.bannerContainerText
7603
+ }, "Hurry up! Offer for limited period only"))), /*#__PURE__*/React.createElement("div", {
7609
7604
  className: classes.emblemContainer
7610
7605
  }, data?.courseOverviewData?.courseTagList.length && data?.courseOverviewData?.courseTagList?.map(data => {
7611
7606
  return /*#__PURE__*/React.createElement("div", {
@@ -8154,7 +8149,7 @@ const useTilesStyles = createUseStyles(theme => {
8154
8149
  left: '7%',
8155
8150
  color: 'white',
8156
8151
  fontWeight: '600',
8157
- fontSize: '28px',
8152
+ fontSize: '20px',
8158
8153
  width: '150px'
8159
8154
  },
8160
8155
  row: {