diy-template-components 2.0.13 → 2.0.14

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.js CHANGED
@@ -1097,6 +1097,7 @@ function OptionList({
1097
1097
  const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
1098
1098
  const renderDownloadAppButton = () => {
1099
1099
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, apkURL && /*#__PURE__*/React__default["default"].createElement("a", {
1100
+ download: true,
1100
1101
  href: headerData?.apkURL,
1101
1102
  target: "_blank",
1102
1103
  className: classes.socialBtnItems,
@@ -1411,7 +1412,7 @@ function MobileHeader({
1411
1412
  const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
1412
1413
  const apkURL = header?.apkURL;
1413
1414
  const isAndroidDelisted = header?.isAndroidDelisted;
1414
- const iosDownloadLink = header?.iosDownloadLink;
1415
+ const iosDownloadLink = header?.iosDownloadLink || header?.iosUrl;
1415
1416
  const androidDownloadLink = header?.androidDownloadLink;
1416
1417
 
1417
1418
  // console.log(header, 'sakshat header mobile');
@@ -1429,8 +1430,8 @@ function MobileHeader({
1429
1430
  rel: null,
1430
1431
  onClick: () => {
1431
1432
  let url = getAppDownloadLink(apkURL, iosDownloadLink);
1432
- window.open(url, "_blank");
1433
- if (url === apkURL && typeof onDownloadAppTriggered == "function") {
1433
+ window.open(url, '_blank');
1434
+ if (!header?.iosUrl && typeof onDownloadAppTriggered == 'function') {
1434
1435
  onDownloadAppTriggered(header?.isAndroidDelisted, header?.apkURL);
1435
1436
  }
1436
1437
  }
@@ -1464,8 +1465,8 @@ function MobileHeader({
1464
1465
  rel: null,
1465
1466
  onClick: () => {
1466
1467
  let url = getAppDownloadLink(apkURL, iosDownloadLink);
1467
- window.open(url, "_blank");
1468
- if (url === apkURL && typeof onDownloadAppTriggered == "function") {
1468
+ window.open(url, '_blank');
1469
+ if (!header?.iosUrl && typeof onDownloadAppTriggered == 'function') {
1469
1470
  onDownloadAppTriggered(header?.isAndroidDelisted, header?.apkURL);
1470
1471
  }
1471
1472
  }
@@ -1606,6 +1607,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1606
1607
 
1607
1608
  // '& img': { maxHeight: '55px' }
1608
1609
  },
1610
+
1609
1611
  upperContainerItem1Img: {
1610
1612
  maxHeight: '55px',
1611
1613
  paddingBottom: '84px',
@@ -2032,6 +2034,7 @@ const mobilePadding = {
2032
2034
  // 24px
2033
2035
  medium: baseFactor * 6 // 48px
2034
2036
  };
2037
+
2035
2038
  const padding = {
2036
2039
  minute: baseFactor * 2,
2037
2040
  // 16px
@@ -2497,6 +2500,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2497
2500
  // }
2498
2501
  // }
2499
2502
  },
2503
+
2500
2504
  sectionContainer: {
2501
2505
  margin: '0 auto',
2502
2506
  maxWidth: ({
@@ -3066,6 +3070,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
3066
3070
  // padding: '0'
3067
3071
  }
3068
3072
  },
3073
+
3069
3074
  '&:nth-child(2n+1)': {
3070
3075
  marginRight: '0',
3071
3076
  '& $contentText': {
@@ -3075,6 +3080,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
3075
3080
  }
3076
3081
  }
3077
3082
  },
3083
+
3078
3084
  contentNumber: {
3079
3085
  width: '100%',
3080
3086
  padding: '24px',
@@ -3467,6 +3473,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3467
3473
  // }
3468
3474
  // }
3469
3475
  },
3476
+
3470
3477
  sectionContainer: {
3471
3478
  margin: '0 auto',
3472
3479
  maxWidth: ({
@@ -3480,6 +3487,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3480
3487
 
3481
3488
  // padding: `${theme?.spacing?.padding?.regular}px ${theme?.spacing?.padding?.medium}px 0px ${theme?.spacing?.padding?.medium}px`
3482
3489
  },
3490
+
3483
3491
  imageContainerDiv: {
3484
3492
  width: '50%',
3485
3493
  position: 'relative'
@@ -3551,6 +3559,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3551
3559
  width: '100%'
3552
3560
  // padding: `${theme?.spacing?.padding?.medium}px ${theme?.spacing?.padding?.regular}px`
3553
3561
  },
3562
+
3554
3563
  imageContainer: {
3555
3564
  height: 'unset !important',
3556
3565
  '& img': {
@@ -4557,6 +4566,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4557
4566
  fontFamily: theme?.typography?.fontFamily
4558
4567
  // boxSizing: 'border-box'
4559
4568
  },
4569
+
4560
4570
  '& h2,& h3,& p': {
4561
4571
  marginTop: '0'
4562
4572
  }
@@ -4581,6 +4591,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4581
4591
  wordBreak: 'break-word'
4582
4592
  // marginBottom: '8px'
4583
4593
  },
4594
+
4584
4595
  videoTestimonialTitle: {
4585
4596
  fontSize: theme.typography.fontSize.h2,
4586
4597
  // lineHeight: '71px',
@@ -5021,6 +5032,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
5021
5032
  // }
5022
5033
  // }
5023
5034
  },
5035
+
5024
5036
  sectionContainer: {
5025
5037
  margin: '0 auto',
5026
5038
  maxWidth: ({
@@ -5378,6 +5390,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5378
5390
  // }
5379
5391
  // }
5380
5392
  },
5393
+
5381
5394
  sectionContainer: {
5382
5395
  margin: '0 auto',
5383
5396
  maxWidth: ({
@@ -5408,6 +5421,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5408
5421
  position: 'relative',
5409
5422
  paddingBottom: '59.83%' // keeping aspect ratio 585x350
5410
5423
  },
5424
+
5411
5425
  contentRow: {
5412
5426
  display: 'grid',
5413
5427
  gridTemplateColumns: ({
@@ -5954,6 +5968,7 @@ const useCourseStyles = createUseStyles(theme => {
5954
5968
  // }
5955
5969
  // }
5956
5970
  },
5971
+
5957
5972
  sectionContainer: {
5958
5973
  margin: '0 auto',
5959
5974
  maxWidth: ({
@@ -5986,12 +6001,13 @@ const useCourseStyles = createUseStyles(theme => {
5986
6001
  // textAlign: 'center',
5987
6002
  // wordBreak: 'break-word'
5988
6003
  },
6004
+
5989
6005
  slickContainer: {
5990
6006
  marginRight: '-20px'
5991
6007
  },
5992
6008
  singleCardContainer: {
5993
6009
  display: 'grid',
5994
- gridTemplateColumns: `repeat(3, minmax(0, 1fr))`
6010
+ gridTemplateColumns: `repeat(3, 320px)`
5995
6011
  },
5996
6012
  singleCard: {
5997
6013
  height: 'calc(100% - 12px)',
@@ -6033,6 +6049,7 @@ const useCourseStyles = createUseStyles(theme => {
6033
6049
  justifyContent: 'space-between'
6034
6050
  //alignItems: 'center',
6035
6051
  },
6052
+
6036
6053
  courseCardTags: {
6037
6054
  display: 'flex',
6038
6055
  justifyContent: 'flex-start',
@@ -6063,6 +6080,7 @@ const useCourseStyles = createUseStyles(theme => {
6063
6080
  // whiteSpace: 'nowrap',
6064
6081
  // textOverflow: 'ellipsis'
6065
6082
  },
6083
+
6066
6084
  courseCardDiscount: {
6067
6085
  display: 'flex',
6068
6086
  justifyContent: 'flex-start',
@@ -6169,6 +6187,7 @@ const useCourseStyles = createUseStyles(theme => {
6169
6187
  // whiteSpace: 'nowrap',
6170
6188
  // textOverflow: 'ellipsis'
6171
6189
  },
6190
+
6172
6191
  singleCard: {
6173
6192
  margin: '6px 2px'
6174
6193
  // width: 'calc(100% - 12px)'
@@ -6544,6 +6563,7 @@ const useTeamStyles = createUseStyles(theme => {
6544
6563
  margin: '20px 0 0'
6545
6564
  // overflowWrap: 'break-word'
6546
6565
  },
6566
+
6547
6567
  teamDetailsHeading: {
6548
6568
  fontSize: theme.typography.fontSize.h6,
6549
6569
  fontWeight: theme.typography.fontWeight.bold,
@@ -6587,6 +6607,7 @@ const useTeamStyles = createUseStyles(theme => {
6587
6607
  // margin: '15px 0 0',
6588
6608
  // paddingBottom: '0'
6589
6609
  },
6610
+
6590
6611
  teamDetailsHeading: {
6591
6612
  fontSize: '16px',
6592
6613
  lineHeight: '24px',
@@ -6719,6 +6740,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6719
6740
  // }
6720
6741
  // }
6721
6742
  },
6743
+
6722
6744
  formContainer: {
6723
6745
  margin: '0 auto',
6724
6746
  maxWidth: ({
@@ -6755,12 +6777,14 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6755
6777
  display: 'flex'
6756
6778
  // alignItems: 'flex-start',
6757
6779
  },
6780
+
6758
6781
  leftContainerForm: {
6759
6782
  width: '65%',
6760
6783
  display: 'flex',
6761
6784
  flexDirection: 'column'
6762
6785
  // justifyContent: 'space-between'
6763
6786
  },
6787
+
6764
6788
  subtitle: {
6765
6789
  // margin: '0 0 40px 0',
6766
6790
  fontSize: theme.typography.fontSize.h5,
@@ -6828,6 +6852,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6828
6852
  width: '100%'
6829
6853
  // padding: '0 16ox'
6830
6854
  },
6855
+
6831
6856
  rightContainer: {
6832
6857
  width: '100%',
6833
6858
  padding: '0'
@@ -7135,6 +7160,7 @@ const useSectionStyles = createUseStyles(theme => ({
7135
7160
  // }
7136
7161
  // }
7137
7162
  },
7163
+
7138
7164
  contactContainer: {
7139
7165
  width: '100%',
7140
7166
  margin: '0 auto',
@@ -7173,6 +7199,7 @@ const useSectionStyles = createUseStyles(theme => ({
7173
7199
  // justifyContent: 'space-between',
7174
7200
  // flex: 1
7175
7201
  },
7202
+
7176
7203
  subtitle: {
7177
7204
  // margin: '0 0 auto 0',
7178
7205
  fontSize: theme.typography.fontSize.h6,
@@ -7612,6 +7639,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7612
7639
  marginTop: '5%'
7613
7640
  // padding: '0px 5% 0px 5%'
7614
7641
  },
7642
+
7615
7643
  iframe: {
7616
7644
  position: 'absolute',
7617
7645
  width: '100%',
@@ -7959,6 +7987,7 @@ const SingleVideoSlide$1 = props => {
7959
7987
  value: data.isPaid ? buyNowText : registerNowText
7960
7988
  // isExternal: 1
7961
7989
  },
7990
+
7962
7991
  onClick: webinarCtaClick,
7963
7992
  type: 'primary',
7964
7993
  size: 'medium',
@@ -8027,6 +8056,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8027
8056
  // }
8028
8057
  // }
8029
8058
  },
8059
+
8030
8060
  sectionContainer: {
8031
8061
  margin: '0 auto',
8032
8062
  maxWidth: ({
@@ -8144,6 +8174,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8144
8174
  // paddingBottom: '10px',
8145
8175
  // paddingTop: '10px'
8146
8176
  },
8177
+
8147
8178
  bannerContainer: {
8148
8179
  width: '100%',
8149
8180
  background: theme?.colors?.bannerColor,
@@ -8158,6 +8189,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8158
8189
  clipPath: 'polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 calc(100% - 10px), 15px calc(50% - 10px/2))'
8159
8190
  // marginBottom: '16px'
8160
8191
  },
8192
+
8161
8193
  bannerContainerText: {
8162
8194
  transform: 'rotate(180deg)'
8163
8195
  },
@@ -8270,6 +8302,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8270
8302
  height: 'max-content'
8271
8303
  // paddingRight: '10px'
8272
8304
  },
8305
+
8273
8306
  videoDetails: {
8274
8307
  width: '100%'
8275
8308
  },
@@ -8528,6 +8561,7 @@ const SingleVideoSlide = props => {
8528
8561
  value: buyNowText
8529
8562
  // isExternal: 1
8530
8563
  },
8564
+
8531
8565
  onClick: courseBuyNow,
8532
8566
  type: 'primary',
8533
8567
  size: 'medium',
@@ -8632,6 +8666,7 @@ const useFormPageStyles = createUseStyles(theme => ({
8632
8666
  // border: '1px solid #D8E0F0',
8633
8667
  // borderRadius: '16px'
8634
8668
  },
8669
+
8635
8670
  inputFieldLabel: {
8636
8671
  color: theme?.colors?.lightblack,
8637
8672
  fontSize: theme.typography.fontSize.body,
@@ -8944,6 +8979,7 @@ const FormPage = ({
8944
8979
  value: countryCode === 'KR' ? '제출하기' : 'SUBMIT'
8945
8980
  // isExternal: 1
8946
8981
  },
8982
+
8947
8983
  type: 'primary',
8948
8984
  size: 'medium',
8949
8985
  target: null,
@@ -9126,6 +9162,7 @@ const useEmailStyles = createUseStyles(theme => ({
9126
9162
  height: '48px'
9127
9163
  /* margin: 18px 0px; */
9128
9164
  },
9165
+
9129
9166
  'p-young-guru-title': {
9130
9167
  fontFamily: theme?.typography?.fontFamily,
9131
9168
  fontStyle: 'normal',
@@ -9153,6 +9190,7 @@ const useEmailStyles = createUseStyles(theme => ({
9153
9190
  textAlign: 'center'
9154
9191
  /* padding:35px 0 40px */
9155
9192
  },
9193
+
9156
9194
  'two-columns .column': {
9157
9195
  width: '100%',
9158
9196
  maxWidth: '275px',