diy-template-components 2.0.14 → 2.0.16

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