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.es.js CHANGED
@@ -1081,6 +1081,7 @@ function OptionList({
1081
1081
  const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
1082
1082
  const renderDownloadAppButton = () => {
1083
1083
  return /*#__PURE__*/React.createElement(React.Fragment, null, apkURL && /*#__PURE__*/React.createElement("a", {
1084
+ download: true,
1084
1085
  href: headerData?.apkURL,
1085
1086
  target: "_blank",
1086
1087
  className: classes.socialBtnItems,
@@ -1395,7 +1396,7 @@ function MobileHeader({
1395
1396
  const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
1396
1397
  const apkURL = header?.apkURL;
1397
1398
  const isAndroidDelisted = header?.isAndroidDelisted;
1398
- const iosDownloadLink = header?.iosDownloadLink;
1399
+ const iosDownloadLink = header?.iosDownloadLink || header?.iosUrl;
1399
1400
  const androidDownloadLink = header?.androidDownloadLink;
1400
1401
 
1401
1402
  // console.log(header, 'sakshat header mobile');
@@ -1413,8 +1414,8 @@ function MobileHeader({
1413
1414
  rel: null,
1414
1415
  onClick: () => {
1415
1416
  let url = getAppDownloadLink(apkURL, iosDownloadLink);
1416
- window.open(url, "_blank");
1417
- if (url === apkURL && typeof onDownloadAppTriggered == "function") {
1417
+ window.open(url, '_blank');
1418
+ if (!header?.iosUrl && typeof onDownloadAppTriggered == 'function') {
1418
1419
  onDownloadAppTriggered(header?.isAndroidDelisted, header?.apkURL);
1419
1420
  }
1420
1421
  }
@@ -1448,8 +1449,8 @@ function MobileHeader({
1448
1449
  rel: null,
1449
1450
  onClick: () => {
1450
1451
  let url = getAppDownloadLink(apkURL, iosDownloadLink);
1451
- window.open(url, "_blank");
1452
- if (url === apkURL && typeof onDownloadAppTriggered == "function") {
1452
+ window.open(url, '_blank');
1453
+ if (!header?.iosUrl && typeof onDownloadAppTriggered == 'function') {
1453
1454
  onDownloadAppTriggered(header?.isAndroidDelisted, header?.apkURL);
1454
1455
  }
1455
1456
  }
@@ -1590,6 +1591,7 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1590
1591
 
1591
1592
  // '& img': { maxHeight: '55px' }
1592
1593
  },
1594
+
1593
1595
  upperContainerItem1Img: {
1594
1596
  maxHeight: '55px',
1595
1597
  paddingBottom: '84px',
@@ -2016,6 +2018,7 @@ const mobilePadding = {
2016
2018
  // 24px
2017
2019
  medium: baseFactor * 6 // 48px
2018
2020
  };
2021
+
2019
2022
  const padding = {
2020
2023
  minute: baseFactor * 2,
2021
2024
  // 16px
@@ -2481,6 +2484,7 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2481
2484
  // }
2482
2485
  // }
2483
2486
  },
2487
+
2484
2488
  sectionContainer: {
2485
2489
  margin: '0 auto',
2486
2490
  maxWidth: ({
@@ -3050,6 +3054,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
3050
3054
  // padding: '0'
3051
3055
  }
3052
3056
  },
3057
+
3053
3058
  '&:nth-child(2n+1)': {
3054
3059
  marginRight: '0',
3055
3060
  '& $contentText': {
@@ -3059,6 +3064,7 @@ const useSectionStyles$7 = createUseStyles(theme => ({
3059
3064
  }
3060
3065
  }
3061
3066
  },
3067
+
3062
3068
  contentNumber: {
3063
3069
  width: '100%',
3064
3070
  padding: '24px',
@@ -3451,6 +3457,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3451
3457
  // }
3452
3458
  // }
3453
3459
  },
3460
+
3454
3461
  sectionContainer: {
3455
3462
  margin: '0 auto',
3456
3463
  maxWidth: ({
@@ -3464,6 +3471,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3464
3471
 
3465
3472
  // padding: `${theme?.spacing?.padding?.regular}px ${theme?.spacing?.padding?.medium}px 0px ${theme?.spacing?.padding?.medium}px`
3466
3473
  },
3474
+
3467
3475
  imageContainerDiv: {
3468
3476
  width: '50%',
3469
3477
  position: 'relative'
@@ -3535,6 +3543,7 @@ const useSectionStyles$5 = createUseStyles(theme => {
3535
3543
  width: '100%'
3536
3544
  // padding: `${theme?.spacing?.padding?.medium}px ${theme?.spacing?.padding?.regular}px`
3537
3545
  },
3546
+
3538
3547
  imageContainer: {
3539
3548
  height: 'unset !important',
3540
3549
  '& img': {
@@ -4541,6 +4550,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4541
4550
  fontFamily: theme?.typography?.fontFamily
4542
4551
  // boxSizing: 'border-box'
4543
4552
  },
4553
+
4544
4554
  '& h2,& h3,& p': {
4545
4555
  marginTop: '0'
4546
4556
  }
@@ -4565,6 +4575,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4565
4575
  wordBreak: 'break-word'
4566
4576
  // marginBottom: '8px'
4567
4577
  },
4578
+
4568
4579
  videoTestimonialTitle: {
4569
4580
  fontSize: theme.typography.fontSize.h2,
4570
4581
  // lineHeight: '71px',
@@ -5005,6 +5016,7 @@ const useSectionStyles$3 = createUseStyles(theme => ({
5005
5016
  // }
5006
5017
  // }
5007
5018
  },
5019
+
5008
5020
  sectionContainer: {
5009
5021
  margin: '0 auto',
5010
5022
  maxWidth: ({
@@ -5362,6 +5374,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5362
5374
  // }
5363
5375
  // }
5364
5376
  },
5377
+
5365
5378
  sectionContainer: {
5366
5379
  margin: '0 auto',
5367
5380
  maxWidth: ({
@@ -5392,6 +5405,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5392
5405
  position: 'relative',
5393
5406
  paddingBottom: '59.83%' // keeping aspect ratio 585x350
5394
5407
  },
5408
+
5395
5409
  contentRow: {
5396
5410
  display: 'grid',
5397
5411
  gridTemplateColumns: ({
@@ -5938,6 +5952,7 @@ const useCourseStyles = createUseStyles(theme => {
5938
5952
  // }
5939
5953
  // }
5940
5954
  },
5955
+
5941
5956
  sectionContainer: {
5942
5957
  margin: '0 auto',
5943
5958
  maxWidth: ({
@@ -5970,12 +5985,13 @@ const useCourseStyles = createUseStyles(theme => {
5970
5985
  // textAlign: 'center',
5971
5986
  // wordBreak: 'break-word'
5972
5987
  },
5988
+
5973
5989
  slickContainer: {
5974
5990
  marginRight: '-20px'
5975
5991
  },
5976
5992
  singleCardContainer: {
5977
5993
  display: 'grid',
5978
- gridTemplateColumns: `repeat(3, minmax(0, 1fr))`
5994
+ gridTemplateColumns: `repeat(3, 320px)`
5979
5995
  },
5980
5996
  singleCard: {
5981
5997
  height: 'calc(100% - 12px)',
@@ -6017,6 +6033,7 @@ const useCourseStyles = createUseStyles(theme => {
6017
6033
  justifyContent: 'space-between'
6018
6034
  //alignItems: 'center',
6019
6035
  },
6036
+
6020
6037
  courseCardTags: {
6021
6038
  display: 'flex',
6022
6039
  justifyContent: 'flex-start',
@@ -6047,6 +6064,7 @@ const useCourseStyles = createUseStyles(theme => {
6047
6064
  // whiteSpace: 'nowrap',
6048
6065
  // textOverflow: 'ellipsis'
6049
6066
  },
6067
+
6050
6068
  courseCardDiscount: {
6051
6069
  display: 'flex',
6052
6070
  justifyContent: 'flex-start',
@@ -6153,6 +6171,7 @@ const useCourseStyles = createUseStyles(theme => {
6153
6171
  // whiteSpace: 'nowrap',
6154
6172
  // textOverflow: 'ellipsis'
6155
6173
  },
6174
+
6156
6175
  singleCard: {
6157
6176
  margin: '6px 2px'
6158
6177
  // width: 'calc(100% - 12px)'
@@ -6528,6 +6547,7 @@ const useTeamStyles = createUseStyles(theme => {
6528
6547
  margin: '20px 0 0'
6529
6548
  // overflowWrap: 'break-word'
6530
6549
  },
6550
+
6531
6551
  teamDetailsHeading: {
6532
6552
  fontSize: theme.typography.fontSize.h6,
6533
6553
  fontWeight: theme.typography.fontWeight.bold,
@@ -6571,6 +6591,7 @@ const useTeamStyles = createUseStyles(theme => {
6571
6591
  // margin: '15px 0 0',
6572
6592
  // paddingBottom: '0'
6573
6593
  },
6594
+
6574
6595
  teamDetailsHeading: {
6575
6596
  fontSize: '16px',
6576
6597
  lineHeight: '24px',
@@ -6703,6 +6724,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6703
6724
  // }
6704
6725
  // }
6705
6726
  },
6727
+
6706
6728
  formContainer: {
6707
6729
  margin: '0 auto',
6708
6730
  maxWidth: ({
@@ -6739,12 +6761,14 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6739
6761
  display: 'flex'
6740
6762
  // alignItems: 'flex-start',
6741
6763
  },
6764
+
6742
6765
  leftContainerForm: {
6743
6766
  width: '65%',
6744
6767
  display: 'flex',
6745
6768
  flexDirection: 'column'
6746
6769
  // justifyContent: 'space-between'
6747
6770
  },
6771
+
6748
6772
  subtitle: {
6749
6773
  // margin: '0 0 40px 0',
6750
6774
  fontSize: theme.typography.fontSize.h5,
@@ -6812,6 +6836,7 @@ const useSectionStyles$1 = createUseStyles(theme => ({
6812
6836
  width: '100%'
6813
6837
  // padding: '0 16ox'
6814
6838
  },
6839
+
6815
6840
  rightContainer: {
6816
6841
  width: '100%',
6817
6842
  padding: '0'
@@ -7119,6 +7144,7 @@ const useSectionStyles = createUseStyles(theme => ({
7119
7144
  // }
7120
7145
  // }
7121
7146
  },
7147
+
7122
7148
  contactContainer: {
7123
7149
  width: '100%',
7124
7150
  margin: '0 auto',
@@ -7157,6 +7183,7 @@ const useSectionStyles = createUseStyles(theme => ({
7157
7183
  // justifyContent: 'space-between',
7158
7184
  // flex: 1
7159
7185
  },
7186
+
7160
7187
  subtitle: {
7161
7188
  // margin: '0 0 auto 0',
7162
7189
  fontSize: theme.typography.fontSize.h6,
@@ -7596,6 +7623,7 @@ const useWebinarPromotionPage = createUseStyles(theme => {
7596
7623
  marginTop: '5%'
7597
7624
  // padding: '0px 5% 0px 5%'
7598
7625
  },
7626
+
7599
7627
  iframe: {
7600
7628
  position: 'absolute',
7601
7629
  width: '100%',
@@ -7943,6 +7971,7 @@ const SingleVideoSlide$1 = props => {
7943
7971
  value: data.isPaid ? buyNowText : registerNowText
7944
7972
  // isExternal: 1
7945
7973
  },
7974
+
7946
7975
  onClick: webinarCtaClick,
7947
7976
  type: 'primary',
7948
7977
  size: 'medium',
@@ -8011,6 +8040,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8011
8040
  // }
8012
8041
  // }
8013
8042
  },
8043
+
8014
8044
  sectionContainer: {
8015
8045
  margin: '0 auto',
8016
8046
  maxWidth: ({
@@ -8128,6 +8158,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8128
8158
  // paddingBottom: '10px',
8129
8159
  // paddingTop: '10px'
8130
8160
  },
8161
+
8131
8162
  bannerContainer: {
8132
8163
  width: '100%',
8133
8164
  background: theme?.colors?.bannerColor,
@@ -8142,6 +8173,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8142
8173
  clipPath: 'polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 calc(100% - 10px), 15px calc(50% - 10px/2))'
8143
8174
  // marginBottom: '16px'
8144
8175
  },
8176
+
8145
8177
  bannerContainerText: {
8146
8178
  transform: 'rotate(180deg)'
8147
8179
  },
@@ -8254,6 +8286,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
8254
8286
  height: 'max-content'
8255
8287
  // paddingRight: '10px'
8256
8288
  },
8289
+
8257
8290
  videoDetails: {
8258
8291
  width: '100%'
8259
8292
  },
@@ -8512,6 +8545,7 @@ const SingleVideoSlide = props => {
8512
8545
  value: buyNowText
8513
8546
  // isExternal: 1
8514
8547
  },
8548
+
8515
8549
  onClick: courseBuyNow,
8516
8550
  type: 'primary',
8517
8551
  size: 'medium',
@@ -8616,6 +8650,7 @@ const useFormPageStyles = createUseStyles(theme => ({
8616
8650
  // border: '1px solid #D8E0F0',
8617
8651
  // borderRadius: '16px'
8618
8652
  },
8653
+
8619
8654
  inputFieldLabel: {
8620
8655
  color: theme?.colors?.lightblack,
8621
8656
  fontSize: theme.typography.fontSize.body,
@@ -8928,6 +8963,7 @@ const FormPage = ({
8928
8963
  value: countryCode === 'KR' ? '제출하기' : 'SUBMIT'
8929
8964
  // isExternal: 1
8930
8965
  },
8966
+
8931
8967
  type: 'primary',
8932
8968
  size: 'medium',
8933
8969
  target: null,
@@ -9110,6 +9146,7 @@ const useEmailStyles = createUseStyles(theme => ({
9110
9146
  height: '48px'
9111
9147
  /* margin: 18px 0px; */
9112
9148
  },
9149
+
9113
9150
  'p-young-guru-title': {
9114
9151
  fontFamily: theme?.typography?.fontFamily,
9115
9152
  fontStyle: 'normal',
@@ -9137,6 +9174,7 @@ const useEmailStyles = createUseStyles(theme => ({
9137
9174
  textAlign: 'center'
9138
9175
  /* padding:35px 0 40px */
9139
9176
  },
9177
+
9140
9178
  'two-columns .column': {
9141
9179
  width: '100%',
9142
9180
  maxWidth: '275px',