diy-template-components 2.0.88 → 2.0.90

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
@@ -16,6 +16,7 @@ import moment from 'moment';
16
16
  import Countdown from 'react-countdown';
17
17
  import koreanLocale from 'moment/locale/ko';
18
18
  import ReactDOMServer from 'react-dom/server';
19
+ import { useEffect as useEffect$1 } from '@storybook/addons';
19
20
  import { createTheming, createUseStyles as createUseStyles$1, useTheme as useTheme$1 } from 'react-jss';
20
21
 
21
22
  function _extends() {
@@ -240,7 +241,8 @@ const useSectionStyles$a = createUseStyles(theme => ({
240
241
  },
241
242
  rightNav: {
242
243
  marginRight: '120px',
243
- display: 'flex'
244
+ display: 'flex',
245
+ alignItems: "center"
244
246
  },
245
247
  priceBox: {
246
248
  marginRight: '16px'
@@ -281,7 +283,8 @@ const useSectionStyles$a = createUseStyles(theme => ({
281
283
  BottomSheetPriceContainer: {
282
284
  display: 'flex',
283
285
  justifyContent: 'space-between',
284
- padding: '16px 16px 24px'
286
+ padding: '16px 16px 24px',
287
+ alignItems: "center"
285
288
  },
286
289
  BottomSheetOfferContainer: {
287
290
  padding: '12px 0 ',
@@ -1508,7 +1511,6 @@ function DesktopHeader({
1508
1511
  value: 'BUY NOW'
1509
1512
  // isExternal: 1
1510
1513
  },
1511
-
1512
1514
  onClick: extraProps?.courseBuyNow,
1513
1515
  type: 'primary',
1514
1516
  size: 'small',
@@ -1524,7 +1526,6 @@ function DesktopHeader({
1524
1526
  value: 'BUY NOW'
1525
1527
  // isExternal: 1
1526
1528
  },
1527
-
1528
1529
  onClick: extraProps?.courseBuyNow,
1529
1530
  type: 'primary',
1530
1531
  size: 'medium',
@@ -1534,7 +1535,6 @@ function DesktopHeader({
1534
1535
  // styling={isMobile ? { margin: '0 40px' } : {}}
1535
1536
  });
1536
1537
  };
1537
-
1538
1538
  return /*#__PURE__*/React.createElement("nav", {
1539
1539
  className: classes.section
1540
1540
  }, !(header?.websiteLogo === DEFAULT_HEADER_IMAGE_LP && isCustomWebsite) ? /*#__PURE__*/React.createElement("div", {
@@ -1612,6 +1612,16 @@ function MobileHeader({
1612
1612
  body?.removeAttribute('style');
1613
1613
  }
1614
1614
  }, [sideMenu]);
1615
+ useEffect$1(() => {
1616
+ if (header?.effectivePrice) {
1617
+ const body = navEl?.current?.ownerDocument?.body;
1618
+ console.log("body", body);
1619
+ console.log("body 1", document?.getElementsByClassName(classes.section)?.closest('body'));
1620
+ if (body) {
1621
+ body.style.marginBottom = '130px';
1622
+ }
1623
+ }
1624
+ }, []);
1615
1625
  let downloadLink = null;
1616
1626
  const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
1617
1627
  const apkURL = header?.apkURL;
@@ -1683,10 +1693,6 @@ function MobileHeader({
1683
1693
  if (!header?.effectivePrice) {
1684
1694
  return null;
1685
1695
  }
1686
- // const body = document?.body;
1687
- // if (body) {
1688
- // body.style.marginBottom = '130px';
1689
- // }
1690
1696
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1691
1697
  className: classes.BottomSheetContainer
1692
1698
  }, OfferDetailsJSX(), /*#__PURE__*/React.createElement("div", {
@@ -1710,7 +1716,6 @@ function MobileHeader({
1710
1716
  value: 'BUY NOW'
1711
1717
  // isExternal: 1
1712
1718
  },
1713
-
1714
1719
  onClick: extraProps?.courseBuyNow,
1715
1720
  type: 'primary',
1716
1721
  size: 'medium',
@@ -1720,7 +1725,6 @@ function MobileHeader({
1720
1725
  // styling={isMobile ? { margin: '0 40px' } : {}}
1721
1726
  }))));
1722
1727
  };
1723
-
1724
1728
  if (isTutorWebsite) {
1725
1729
  if (isAndroidDelisted && apkURL) {
1726
1730
  downloadLink = /*#__PURE__*/React.createElement(Button, {
@@ -1913,7 +1917,6 @@ const useSectionStyles$9 = createUseStyles(theme => ({
1913
1917
 
1914
1918
  // '& img': { maxHeight: '55px' }
1915
1919
  },
1916
-
1917
1920
  upperContainerItem1Img: {
1918
1921
  maxHeight: '55px',
1919
1922
  paddingBottom: '84px',
@@ -2354,7 +2357,6 @@ const mobilePadding = {
2354
2357
  // 24px
2355
2358
  medium: baseFactor * 6 // 48px
2356
2359
  };
2357
-
2358
2360
  const padding = {
2359
2361
  minute: baseFactor * 2,
2360
2362
  // 16px
@@ -2824,7 +2826,6 @@ const useSectionStyles$8 = createUseStyles(theme => ({
2824
2826
  // }
2825
2827
  // }
2826
2828
  },
2827
-
2828
2829
  sectionContainer: {
2829
2830
  margin: '0 auto',
2830
2831
  maxWidth: ({
@@ -3394,7 +3395,6 @@ const useSectionStyles$7 = createUseStyles(theme => ({
3394
3395
  // padding: '0'
3395
3396
  }
3396
3397
  },
3397
-
3398
3398
  '&:nth-child(2n+1)': {
3399
3399
  marginRight: '0',
3400
3400
  '& $contentText': {
@@ -3404,7 +3404,6 @@ const useSectionStyles$7 = createUseStyles(theme => ({
3404
3404
  }
3405
3405
  }
3406
3406
  },
3407
-
3408
3407
  contentNumber: {
3409
3408
  width: '100%',
3410
3409
  padding: '24px',
@@ -3811,7 +3810,6 @@ const useSectionStyles$5 = createUseStyles(theme => {
3811
3810
  // }
3812
3811
  // }
3813
3812
  },
3814
-
3815
3813
  sectionContainer: {
3816
3814
  margin: '0 auto',
3817
3815
  maxWidth: ({
@@ -3825,7 +3823,6 @@ const useSectionStyles$5 = createUseStyles(theme => {
3825
3823
 
3826
3824
  // padding: `${theme?.spacing?.padding?.regular}px ${theme?.spacing?.padding?.medium}px 0px ${theme?.spacing?.padding?.medium}px`
3827
3825
  },
3828
-
3829
3826
  imageContainerDiv: {
3830
3827
  width: '50%',
3831
3828
  position: 'relative'
@@ -3897,7 +3894,6 @@ const useSectionStyles$5 = createUseStyles(theme => {
3897
3894
  width: '100%'
3898
3895
  // padding: `${theme?.spacing?.padding?.medium}px ${theme?.spacing?.padding?.regular}px`
3899
3896
  },
3900
-
3901
3897
  imageContainer: {
3902
3898
  height: 'unset !important',
3903
3899
  '& img': {
@@ -4904,7 +4900,6 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4904
4900
  fontFamily: theme?.typography?.fontFamily
4905
4901
  // boxSizing: 'border-box'
4906
4902
  },
4907
-
4908
4903
  '& h2,& h3,& p': {
4909
4904
  marginTop: '0'
4910
4905
  }
@@ -4929,7 +4924,6 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
4929
4924
  wordBreak: 'break-word'
4930
4925
  // marginBottom: '8px'
4931
4926
  },
4932
-
4933
4927
  videoTestimonialTitle: {
4934
4928
  fontSize: theme.typography.fontSize.h2,
4935
4929
  // lineHeight: '71px',
@@ -5370,7 +5364,6 @@ const useSectionStyles$3 = createUseStyles(theme => ({
5370
5364
  // }
5371
5365
  // }
5372
5366
  },
5373
-
5374
5367
  sectionContainer: {
5375
5368
  margin: '0 auto',
5376
5369
  maxWidth: ({
@@ -5728,7 +5721,6 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5728
5721
  // }
5729
5722
  // }
5730
5723
  },
5731
-
5732
5724
  sectionContainer: {
5733
5725
  margin: '0 auto',
5734
5726
  maxWidth: ({
@@ -5759,7 +5751,6 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
5759
5751
  position: 'relative',
5760
5752
  paddingBottom: '59.83%' // keeping aspect ratio 585x350
5761
5753
  },
5762
-
5763
5754
  contentRow: {
5764
5755
  display: 'grid',
5765
5756
  gridTemplateColumns: ({
@@ -6306,7 +6297,6 @@ const useCourseStyles = createUseStyles(theme => {
6306
6297
  // }
6307
6298
  // }
6308
6299
  },
6309
-
6310
6300
  sectionContainer: {
6311
6301
  margin: '0 auto',
6312
6302
  maxWidth: ({
@@ -6339,7 +6329,6 @@ const useCourseStyles = createUseStyles(theme => {
6339
6329
  // textAlign: 'center',
6340
6330
  // wordBreak: 'break-word'
6341
6331
  },
6342
-
6343
6332
  slickContainer: {
6344
6333
  marginRight: '-20px'
6345
6334
  },
@@ -6387,7 +6376,6 @@ const useCourseStyles = createUseStyles(theme => {
6387
6376
  justifyContent: 'space-between'
6388
6377
  //alignItems: 'center',
6389
6378
  },
6390
-
6391
6379
  courseCardTags: {
6392
6380
  display: 'flex',
6393
6381
  justifyContent: 'flex-start',
@@ -6418,7 +6406,6 @@ const useCourseStyles = createUseStyles(theme => {
6418
6406
  // whiteSpace: 'nowrap',
6419
6407
  // textOverflow: 'ellipsis'
6420
6408
  },
6421
-
6422
6409
  courseCardDiscount: {
6423
6410
  display: 'flex',
6424
6411
  justifyContent: 'flex-start',
@@ -6525,7 +6512,6 @@ const useCourseStyles = createUseStyles(theme => {
6525
6512
  // whiteSpace: 'nowrap',
6526
6513
  // textOverflow: 'ellipsis'
6527
6514
  },
6528
-
6529
6515
  singleCard: {
6530
6516
  margin: '6px 2px'
6531
6517
  // width: 'calc(100% - 12px)'
@@ -6873,7 +6859,6 @@ const useTeamStyles = createUseStyles(theme => {
6873
6859
  // gridTemplateColumns: ({ slidesToShow } = {}) =>
6874
6860
  // `repeat(${slidesToShow},minmax(0, 1fr))`
6875
6861
  },
6876
-
6877
6862
  singleSlideContainer: {
6878
6863
  backgroundColor: theme?.palette?.background?.default,
6879
6864
  margin: '20px 0',
@@ -6899,7 +6884,6 @@ const useTeamStyles = createUseStyles(theme => {
6899
6884
  padding: '24px'
6900
6885
  // overflowWrap: 'break-word'
6901
6886
  },
6902
-
6903
6887
  teamDetailsHeading: {
6904
6888
  fontSize: theme.typography.fontSize.h6,
6905
6889
  fontWeight: theme.typography.fontWeight.bold,
@@ -7162,7 +7146,6 @@ const useSectionStyles$1 = createUseStyles(theme => ({
7162
7146
  // }
7163
7147
  // }
7164
7148
  },
7165
-
7166
7149
  formContainer: {
7167
7150
  margin: '0 auto',
7168
7151
  maxWidth: ({
@@ -7199,14 +7182,12 @@ const useSectionStyles$1 = createUseStyles(theme => ({
7199
7182
  display: 'flex'
7200
7183
  // alignItems: 'flex-start',
7201
7184
  },
7202
-
7203
7185
  leftContainerForm: {
7204
7186
  width: '65%',
7205
7187
  display: 'flex',
7206
7188
  flexDirection: 'column'
7207
7189
  // justifyContent: 'space-between'
7208
7190
  },
7209
-
7210
7191
  subtitle: {
7211
7192
  // margin: '0 0 40px 0',
7212
7193
  fontSize: theme.typography.fontSize.h5,
@@ -7274,7 +7255,6 @@ const useSectionStyles$1 = createUseStyles(theme => ({
7274
7255
  width: '100%'
7275
7256
  // padding: '0 16ox'
7276
7257
  },
7277
-
7278
7258
  rightContainer: {
7279
7259
  width: '100%',
7280
7260
  padding: '0'
@@ -7587,7 +7567,6 @@ const useSectionStyles = createUseStyles(theme => ({
7587
7567
  // }
7588
7568
  // }
7589
7569
  },
7590
-
7591
7570
  contactContainer: {
7592
7571
  width: '100%',
7593
7572
  margin: '0 auto',
@@ -7626,7 +7605,6 @@ const useSectionStyles = createUseStyles(theme => ({
7626
7605
  // justifyContent: 'space-between',
7627
7606
  // flex: 1
7628
7607
  },
7629
-
7630
7608
  subtitle: {
7631
7609
  // margin: '0 0 auto 0',
7632
7610
  fontSize: theme.typography.fontSize.h6,
@@ -8071,7 +8049,6 @@ const useWebinarPromotionPage = createUseStyles(theme => {
8071
8049
  marginTop: '5%'
8072
8050
  // padding: '0px 5% 0px 5%'
8073
8051
  },
8074
-
8075
8052
  iframe: {
8076
8053
  position: 'absolute',
8077
8054
  width: '100%',
@@ -8419,7 +8396,6 @@ const SingleVideoSlide$1 = props => {
8419
8396
  value: data.isPaid ? buyNowText : registerNowText
8420
8397
  // isExternal: 1
8421
8398
  },
8422
-
8423
8399
  onClick: webinarCtaClick,
8424
8400
  type: 'primary',
8425
8401
  size: 'medium',
@@ -8488,7 +8464,6 @@ const useCoursePromotionPage = createUseStyles(theme => {
8488
8464
  // }
8489
8465
  // }
8490
8466
  },
8491
-
8492
8467
  sectionContainer: {
8493
8468
  margin: '0 auto',
8494
8469
  maxWidth: ({
@@ -8606,7 +8581,6 @@ const useCoursePromotionPage = createUseStyles(theme => {
8606
8581
  // paddingBottom: '10px',
8607
8582
  // paddingTop: '10px'
8608
8583
  },
8609
-
8610
8584
  bannerContainer: {
8611
8585
  width: '100%',
8612
8586
  background: theme?.colors?.bannerColor,
@@ -8621,7 +8595,6 @@ const useCoursePromotionPage = createUseStyles(theme => {
8621
8595
  clipPath: 'polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 calc(100% - 10px), 15px calc(50% - 10px/2))'
8622
8596
  // marginBottom: '16px'
8623
8597
  },
8624
-
8625
8598
  bannerContainerText: {
8626
8599
  transform: 'rotate(180deg)'
8627
8600
  },
@@ -8734,7 +8707,6 @@ const useCoursePromotionPage = createUseStyles(theme => {
8734
8707
  height: 'max-content'
8735
8708
  // paddingRight: '10px'
8736
8709
  },
8737
-
8738
8710
  videoDetails: {
8739
8711
  width: '100%'
8740
8712
  },
@@ -8993,7 +8965,6 @@ const SingleVideoSlide = props => {
8993
8965
  value: buyNowText
8994
8966
  // isExternal: 1
8995
8967
  },
8996
-
8997
8968
  onClick: courseBuyNow,
8998
8969
  type: 'primary',
8999
8970
  size: 'medium',
@@ -9098,7 +9069,6 @@ const useFormPageStyles = createUseStyles(theme => ({
9098
9069
  // border: '1px solid #D8E0F0',
9099
9070
  // borderRadius: '16px'
9100
9071
  },
9101
-
9102
9072
  inputFieldLabel: {
9103
9073
  color: theme?.colors?.lightblack,
9104
9074
  fontSize: theme.typography.fontSize.body,
@@ -9411,7 +9381,6 @@ const FormPage = ({
9411
9381
  value: countryCode === 'KR' ? '제출하기' : 'SUBMIT'
9412
9382
  // isExternal: 1
9413
9383
  },
9414
-
9415
9384
  type: 'primary',
9416
9385
  size: 'medium',
9417
9386
  target: null,
@@ -9594,7 +9563,6 @@ const useEmailStyles = createUseStyles(theme => ({
9594
9563
  height: '48px'
9595
9564
  /* margin: 18px 0px; */
9596
9565
  },
9597
-
9598
9566
  'p-young-guru-title': {
9599
9567
  fontFamily: theme?.typography?.fontFamily,
9600
9568
  fontStyle: 'normal',
@@ -9622,7 +9590,6 @@ const useEmailStyles = createUseStyles(theme => ({
9622
9590
  textAlign: 'center'
9623
9591
  /* padding:35px 0 40px */
9624
9592
  },
9625
-
9626
9593
  'two-columns .column': {
9627
9594
  width: '100%',
9628
9595
  maxWidth: '275px',
@@ -10092,7 +10059,6 @@ const useAboutInstituteStyles = createUseStyles(theme => ({
10092
10059
  // borderRadius: '16px',
10093
10060
  // border: '1px solid var(--stroke, #D8E0F0)',
10094
10061
  },
10095
-
10096
10062
  image: {
10097
10063
  width: '100%',
10098
10064
  height: '100%',
@@ -10571,7 +10537,6 @@ const TimerAndCall = ({
10571
10537
  value: nodeData.timerButton.metadata.value
10572
10538
  // isExternal: 1
10573
10539
  },
10574
-
10575
10540
  onClick: extraProps?.courseBuyNow,
10576
10541
  type: 'primary',
10577
10542
  size: 'medium',