@xaypay/tui 0.2.29 → 0.2.30

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/dist/index.es.js CHANGED
@@ -1949,6 +1949,7 @@ const File = /*#__PURE__*/forwardRef(({
1949
1949
  const inpRef = useRef(null);
1950
1950
  const labelRef = useRef(null);
1951
1951
  const parentRef = useRef(null);
1952
+ const fileNameRef = useRef(null);
1952
1953
  const memoizedItems = useMemo(() => filesArray, [filesArray]);
1953
1954
  const [error, setError] = useState('');
1954
1955
  const [removeID, setRemoveID] = useState('');
@@ -2309,15 +2310,28 @@ const File = /*#__PURE__*/forwardRef(({
2309
2310
  }
2310
2311
  setRemoveID(() => '');
2311
2312
  };
2312
- const handleCheckTextWidth = () => {
2313
- if (labelRef.current) {
2314
- const rect = labelRef.current.getBoundingClientRect();
2315
- const elementWidth = rect.width;
2316
- const textWidth = getRenderedTextWidth(labelRef.current);
2317
- if (textWidth > Math.ceil(elementWidth)) {
2318
- return 'more';
2319
- } else {
2320
- return 'less';
2313
+ const handleCheckTextWidth = type => {
2314
+ if (type === 'label') {
2315
+ if (labelRef.current) {
2316
+ const rect = labelRef.current.getBoundingClientRect();
2317
+ const elementWidth = rect.width;
2318
+ const textWidth = getRenderedTextWidth(labelRef.current);
2319
+ if (textWidth > Math.ceil(elementWidth)) {
2320
+ return 'more';
2321
+ } else {
2322
+ return 'less';
2323
+ }
2324
+ }
2325
+ } else {
2326
+ if (fileNameRef.current) {
2327
+ const rect = fileNameRef.current.getBoundingClientRect();
2328
+ const elementWidth = rect.width;
2329
+ const textWidth = getRenderedTextWidth(fileNameRef.current);
2330
+ if (textWidth > Math.ceil(elementWidth)) {
2331
+ return 'more';
2332
+ } else {
2333
+ return 'less';
2334
+ }
2321
2335
  }
2322
2336
  }
2323
2337
  };
@@ -2579,19 +2593,21 @@ const File = /*#__PURE__*/forwardRef(({
2579
2593
  style: {
2580
2594
  margin: '0px',
2581
2595
  padding: '0px 10px',
2596
+ width: 'calc(100% - 120px)',
2597
+ maxWidth: 'calc(100% - 120px)',
2582
2598
  color: color ?? configStyles.FILE.color,
2583
2599
  whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
2584
2600
  overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
2585
2601
  textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
2586
2602
  }
2587
2603
  }, singleFile && singleFile[`${0}`] ? /*#__PURE__*/React__default.createElement("span", {
2604
+ ref: fileNameRef,
2588
2605
  style: {
2606
+ width: '100%',
2589
2607
  display: 'inline-block',
2590
- width: `calc(${maxWidth ?? configStyles.FILE.maxWidth} - 140px)`,
2591
2608
  whiteSpace: 'nowrap',
2592
2609
  overflow: 'hidden',
2593
- textOverflow: 'ellipsis',
2594
- textAlign: 'right'
2610
+ textOverflow: 'ellipsis'
2595
2611
  }
2596
2612
  }, singleFile[`${0}`].name) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 ", ' ', /*#__PURE__*/React__default.createElement("span", {
2597
2613
  style: {
@@ -4493,8 +4509,8 @@ Table.propTypes = {
4493
4509
  clickableRowColumnTd: PropTypes.bool
4494
4510
  };
4495
4511
 
4496
- var css_248z$a = "body.modal-module_tui-no-srcoll-class__gZjNK,html.modal-module_tui-no-srcoll-class__gZjNK{height:100%;overflow:hidden!important}.modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
4497
- var styles$9 = {"tui-no-srcoll-class":"modal-module_tui-no-srcoll-class__gZjNK","animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
4512
+ var css_248z$a = "body.modal-module_tui-no-srcoll-class__gZjNK,html.modal-module_tui-no-srcoll-class__gZjNK{height:100%;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}#modal-module_tui-modal-id-for-no-scroll-area__s79-a{touch-action:auto}.modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
4513
+ var styles$9 = {"tui-no-srcoll-class":"modal-module_tui-no-srcoll-class__gZjNK","tui-modal-id-for-no-scroll-area":"modal-module_tui-modal-id-for-no-scroll-area__s79-a","animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
4498
4514
  styleInject(css_248z$a);
4499
4515
 
4500
4516
  const SvgNext = ({
@@ -4716,6 +4732,7 @@ const Modal = ({
4716
4732
  setIsHover(false);
4717
4733
  };
4718
4734
  function ResetTouchRemove(e) {
4735
+ if (e.target.closest('#tui-modal-id-for-no-scroll-area')) return;
4719
4736
  e.preventDefault();
4720
4737
  }
4721
4738
  useEffect(() => {
@@ -4793,6 +4810,7 @@ const Modal = ({
4793
4810
  };
4794
4811
  }, []);
4795
4812
  return configStyles.MODAL && /*#__PURE__*/React__default.createElement("div", {
4813
+ id: "tui-modal-id-for-no-scroll-area",
4796
4814
  className: classProps,
4797
4815
  onClick: handleCloseModal,
4798
4816
  style: {
@@ -8478,8 +8496,8 @@ const Swipe = ({
8478
8496
  }, child));
8479
8497
  };
8480
8498
 
8481
- var css_248z$2 = "body.swipe-module_tui-no-srcoll-class__YS9cI,html.swipe-module_tui-no-srcoll-class__YS9cI{height:100%;overflow:hidden!important;overscroll-behavior:none!important}.swipe-module_to-top__lrHfG{bottom:0}.swipe-module_to-left__kgLsE{right:0}.swipe-module_to-right__Xu3Ul{left:0}.swipe-module_to-bottom__94M7H{top:0}.swipe-module_visible__---aC{visibility:visible!important}.swipe-module_swipe-block__Yv1B3{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.swipe-module_move-top__m6t2O{-webkit-animation-name:swipe-module_slideTop__-Bbap;animation-name:swipe-module_slideTop__-Bbap}.swipe-module_move-left__4TDLs{-webkit-animation-name:swipe-module_slideLeft__i24cS;animation-name:swipe-module_slideLeft__i24cS}.swipe-module_move-right__FrYo0{-webkit-animation-name:swipe-module_slideRight__swgSY;animation-name:swipe-module_slideRight__swgSY}.swipe-module_move-bottom__eYDx6{-webkit-animation-name:swipe-module_slideBottom__TBoZo;animation-name:swipe-module_slideBottom__TBoZo}.swipe-module_back-top__gJZv0{-webkit-animation-name:swipe-module_backTop__32loc;animation-name:swipe-module_backTop__32loc}.swipe-module_back-left__Wd3aY{-webkit-animation-name:swipe-module_backLeft__q89ub;animation-name:swipe-module_backLeft__q89ub}.swipe-module_back-right__Lgwz7{-webkit-animation-name:swipe-module_backRight__8t5Dm;animation-name:swipe-module_backRight__8t5Dm}.swipe-module_back-bottom__JRN-7{-webkit-animation-name:swipe-module_backBottom__lwR8B;animation-name:swipe-module_backBottom__lwR8B}@keyframes swipe-module_slideTop__-Bbap{0%{bottom:-100%}to{bottom:0}}@keyframes swipe-module_slideLeft__i24cS{0%{right:-100%}to{right:0}}@keyframes swipe-module_slideRight__swgSY{0%{left:-100%}to{left:0}}@keyframes swipe-module_slideBottom__TBoZo{0%{top:-100%}to{top:0}}@keyframes swipe-module_backTop__32loc{0%{bottom:0}to{bottom:-100%}}@keyframes swipe-module_backLeft__q89ub{0%{right:0}to{right:-100%}}@keyframes swipe-module_backRight__8t5Dm{0%{left:0}to{left:-100%}}@keyframes swipe-module_backBottom__lwR8B{0%{top:0}to{top:-100%}}";
8482
- var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","to-top":"swipe-module_to-top__lrHfG","to-left":"swipe-module_to-left__kgLsE","to-right":"swipe-module_to-right__Xu3Ul","to-bottom":"swipe-module_to-bottom__94M7H","visible":"swipe-module_visible__---aC","swipe-block":"swipe-module_swipe-block__Yv1B3","move-top":"swipe-module_move-top__m6t2O","slideTop":"swipe-module_slideTop__-Bbap","move-left":"swipe-module_move-left__4TDLs","slideLeft":"swipe-module_slideLeft__i24cS","move-right":"swipe-module_move-right__FrYo0","slideRight":"swipe-module_slideRight__swgSY","move-bottom":"swipe-module_move-bottom__eYDx6","slideBottom":"swipe-module_slideBottom__TBoZo","back-top":"swipe-module_back-top__gJZv0","backTop":"swipe-module_backTop__32loc","back-left":"swipe-module_back-left__Wd3aY","backLeft":"swipe-module_backLeft__q89ub","back-right":"swipe-module_back-right__Lgwz7","backRight":"swipe-module_backRight__8t5Dm","back-bottom":"swipe-module_back-bottom__JRN-7","backBottom":"swipe-module_backBottom__lwR8B"};
8499
+ var css_248z$2 = "body.swipe-module_tui-no-srcoll-class__YS9cI,html.swipe-module_tui-no-srcoll-class__YS9cI{height:100%;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}#swipe-module_tui-swipe-modal-id-for-no-scroll-area__vRP59{touch-action:auto}.swipe-module_to-top__lrHfG{bottom:0}.swipe-module_to-left__kgLsE{right:0}.swipe-module_to-right__Xu3Ul{left:0}.swipe-module_to-bottom__94M7H{top:0}.swipe-module_visible__---aC{visibility:visible!important}.swipe-module_swipe-block__Yv1B3{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.swipe-module_move-top__m6t2O{-webkit-animation-name:swipe-module_slideTop__-Bbap;animation-name:swipe-module_slideTop__-Bbap}.swipe-module_move-left__4TDLs{-webkit-animation-name:swipe-module_slideLeft__i24cS;animation-name:swipe-module_slideLeft__i24cS}.swipe-module_move-right__FrYo0{-webkit-animation-name:swipe-module_slideRight__swgSY;animation-name:swipe-module_slideRight__swgSY}.swipe-module_move-bottom__eYDx6{-webkit-animation-name:swipe-module_slideBottom__TBoZo;animation-name:swipe-module_slideBottom__TBoZo}.swipe-module_back-top__gJZv0{-webkit-animation-name:swipe-module_backTop__32loc;animation-name:swipe-module_backTop__32loc}.swipe-module_back-left__Wd3aY{-webkit-animation-name:swipe-module_backLeft__q89ub;animation-name:swipe-module_backLeft__q89ub}.swipe-module_back-right__Lgwz7{-webkit-animation-name:swipe-module_backRight__8t5Dm;animation-name:swipe-module_backRight__8t5Dm}.swipe-module_back-bottom__JRN-7{-webkit-animation-name:swipe-module_backBottom__lwR8B;animation-name:swipe-module_backBottom__lwR8B}@keyframes swipe-module_slideTop__-Bbap{0%{bottom:-100%}to{bottom:0}}@keyframes swipe-module_slideLeft__i24cS{0%{right:-100%}to{right:0}}@keyframes swipe-module_slideRight__swgSY{0%{left:-100%}to{left:0}}@keyframes swipe-module_slideBottom__TBoZo{0%{top:-100%}to{top:0}}@keyframes swipe-module_backTop__32loc{0%{bottom:0}to{bottom:-100%}}@keyframes swipe-module_backLeft__q89ub{0%{right:0}to{right:-100%}}@keyframes swipe-module_backRight__8t5Dm{0%{left:0}to{left:-100%}}@keyframes swipe-module_backBottom__lwR8B{0%{top:0}to{top:-100%}}";
8500
+ var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","tui-swipe-modal-id-for-no-scroll-area":"swipe-module_tui-swipe-modal-id-for-no-scroll-area__vRP59","to-top":"swipe-module_to-top__lrHfG","to-left":"swipe-module_to-left__kgLsE","to-right":"swipe-module_to-right__Xu3Ul","to-bottom":"swipe-module_to-bottom__94M7H","visible":"swipe-module_visible__---aC","swipe-block":"swipe-module_swipe-block__Yv1B3","move-top":"swipe-module_move-top__m6t2O","slideTop":"swipe-module_slideTop__-Bbap","move-left":"swipe-module_move-left__4TDLs","slideLeft":"swipe-module_slideLeft__i24cS","move-right":"swipe-module_move-right__FrYo0","slideRight":"swipe-module_slideRight__swgSY","move-bottom":"swipe-module_move-bottom__eYDx6","slideBottom":"swipe-module_slideBottom__TBoZo","back-top":"swipe-module_back-top__gJZv0","backTop":"swipe-module_backTop__32loc","back-left":"swipe-module_back-left__Wd3aY","backLeft":"swipe-module_backLeft__q89ub","back-right":"swipe-module_back-right__Lgwz7","backRight":"swipe-module_backRight__8t5Dm","back-bottom":"swipe-module_back-bottom__JRN-7","backBottom":"swipe-module_backBottom__lwR8B"};
8483
8501
  styleInject(css_248z$2);
8484
8502
 
8485
8503
  // import React, { useEffect, useRef } from 'react';
@@ -8583,6 +8601,7 @@ const handleNavigationChange = () => {
8583
8601
  })(window.history);
8584
8602
  const style = document.createElement('style');
8585
8603
  function ResetTouchRemove(e) {
8604
+ if (e.target.closest('#tui-swipe-modal-id-for-no-scroll-area')) return;
8586
8605
  e.preventDefault();
8587
8606
  }
8588
8607
  const swipe = {
package/dist/index.js CHANGED
@@ -1980,6 +1980,7 @@ const File = /*#__PURE__*/React.forwardRef(({
1980
1980
  const inpRef = React.useRef(null);
1981
1981
  const labelRef = React.useRef(null);
1982
1982
  const parentRef = React.useRef(null);
1983
+ const fileNameRef = React.useRef(null);
1983
1984
  const memoizedItems = React.useMemo(() => filesArray, [filesArray]);
1984
1985
  const [error, setError] = React.useState('');
1985
1986
  const [removeID, setRemoveID] = React.useState('');
@@ -2340,15 +2341,28 @@ const File = /*#__PURE__*/React.forwardRef(({
2340
2341
  }
2341
2342
  setRemoveID(() => '');
2342
2343
  };
2343
- const handleCheckTextWidth = () => {
2344
- if (labelRef.current) {
2345
- const rect = labelRef.current.getBoundingClientRect();
2346
- const elementWidth = rect.width;
2347
- const textWidth = getRenderedTextWidth(labelRef.current);
2348
- if (textWidth > Math.ceil(elementWidth)) {
2349
- return 'more';
2350
- } else {
2351
- return 'less';
2344
+ const handleCheckTextWidth = type => {
2345
+ if (type === 'label') {
2346
+ if (labelRef.current) {
2347
+ const rect = labelRef.current.getBoundingClientRect();
2348
+ const elementWidth = rect.width;
2349
+ const textWidth = getRenderedTextWidth(labelRef.current);
2350
+ if (textWidth > Math.ceil(elementWidth)) {
2351
+ return 'more';
2352
+ } else {
2353
+ return 'less';
2354
+ }
2355
+ }
2356
+ } else {
2357
+ if (fileNameRef.current) {
2358
+ const rect = fileNameRef.current.getBoundingClientRect();
2359
+ const elementWidth = rect.width;
2360
+ const textWidth = getRenderedTextWidth(fileNameRef.current);
2361
+ if (textWidth > Math.ceil(elementWidth)) {
2362
+ return 'more';
2363
+ } else {
2364
+ return 'less';
2365
+ }
2352
2366
  }
2353
2367
  }
2354
2368
  };
@@ -2610,19 +2624,21 @@ const File = /*#__PURE__*/React.forwardRef(({
2610
2624
  style: {
2611
2625
  margin: '0px',
2612
2626
  padding: '0px 10px',
2627
+ width: 'calc(100% - 120px)',
2628
+ maxWidth: 'calc(100% - 120px)',
2613
2629
  color: color ?? configStyles.FILE.color,
2614
2630
  whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
2615
2631
  overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
2616
2632
  textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
2617
2633
  }
2618
2634
  }, singleFile && singleFile[`${0}`] ? /*#__PURE__*/React__default["default"].createElement("span", {
2635
+ ref: fileNameRef,
2619
2636
  style: {
2637
+ width: '100%',
2620
2638
  display: 'inline-block',
2621
- width: `calc(${maxWidth ?? configStyles.FILE.maxWidth} - 140px)`,
2622
2639
  whiteSpace: 'nowrap',
2623
2640
  overflow: 'hidden',
2624
- textOverflow: 'ellipsis',
2625
- textAlign: 'right'
2641
+ textOverflow: 'ellipsis'
2626
2642
  }
2627
2643
  }, singleFile[`${0}`].name) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 ", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
2628
2644
  style: {
@@ -4524,8 +4540,8 @@ Table.propTypes = {
4524
4540
  clickableRowColumnTd: PropTypes__default["default"].bool
4525
4541
  };
4526
4542
 
4527
- var css_248z$a = "body.modal-module_tui-no-srcoll-class__gZjNK,html.modal-module_tui-no-srcoll-class__gZjNK{height:100%;overflow:hidden!important}.modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
4528
- var styles$9 = {"tui-no-srcoll-class":"modal-module_tui-no-srcoll-class__gZjNK","animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
4543
+ var css_248z$a = "body.modal-module_tui-no-srcoll-class__gZjNK,html.modal-module_tui-no-srcoll-class__gZjNK{height:100%;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}#modal-module_tui-modal-id-for-no-scroll-area__s79-a{touch-action:auto}.modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
4544
+ var styles$9 = {"tui-no-srcoll-class":"modal-module_tui-no-srcoll-class__gZjNK","tui-modal-id-for-no-scroll-area":"modal-module_tui-modal-id-for-no-scroll-area__s79-a","animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
4529
4545
  styleInject(css_248z$a);
4530
4546
 
4531
4547
  const SvgNext = ({
@@ -4747,6 +4763,7 @@ const Modal = ({
4747
4763
  setIsHover(false);
4748
4764
  };
4749
4765
  function ResetTouchRemove(e) {
4766
+ if (e.target.closest('#tui-modal-id-for-no-scroll-area')) return;
4750
4767
  e.preventDefault();
4751
4768
  }
4752
4769
  React.useEffect(() => {
@@ -4824,6 +4841,7 @@ const Modal = ({
4824
4841
  };
4825
4842
  }, []);
4826
4843
  return configStyles.MODAL && /*#__PURE__*/React__default["default"].createElement("div", {
4844
+ id: "tui-modal-id-for-no-scroll-area",
4827
4845
  className: classProps,
4828
4846
  onClick: handleCloseModal,
4829
4847
  style: {
@@ -8509,8 +8527,8 @@ const Swipe = ({
8509
8527
  }, child));
8510
8528
  };
8511
8529
 
8512
- var css_248z$2 = "body.swipe-module_tui-no-srcoll-class__YS9cI,html.swipe-module_tui-no-srcoll-class__YS9cI{height:100%;overflow:hidden!important;overscroll-behavior:none!important}.swipe-module_to-top__lrHfG{bottom:0}.swipe-module_to-left__kgLsE{right:0}.swipe-module_to-right__Xu3Ul{left:0}.swipe-module_to-bottom__94M7H{top:0}.swipe-module_visible__---aC{visibility:visible!important}.swipe-module_swipe-block__Yv1B3{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.swipe-module_move-top__m6t2O{-webkit-animation-name:swipe-module_slideTop__-Bbap;animation-name:swipe-module_slideTop__-Bbap}.swipe-module_move-left__4TDLs{-webkit-animation-name:swipe-module_slideLeft__i24cS;animation-name:swipe-module_slideLeft__i24cS}.swipe-module_move-right__FrYo0{-webkit-animation-name:swipe-module_slideRight__swgSY;animation-name:swipe-module_slideRight__swgSY}.swipe-module_move-bottom__eYDx6{-webkit-animation-name:swipe-module_slideBottom__TBoZo;animation-name:swipe-module_slideBottom__TBoZo}.swipe-module_back-top__gJZv0{-webkit-animation-name:swipe-module_backTop__32loc;animation-name:swipe-module_backTop__32loc}.swipe-module_back-left__Wd3aY{-webkit-animation-name:swipe-module_backLeft__q89ub;animation-name:swipe-module_backLeft__q89ub}.swipe-module_back-right__Lgwz7{-webkit-animation-name:swipe-module_backRight__8t5Dm;animation-name:swipe-module_backRight__8t5Dm}.swipe-module_back-bottom__JRN-7{-webkit-animation-name:swipe-module_backBottom__lwR8B;animation-name:swipe-module_backBottom__lwR8B}@keyframes swipe-module_slideTop__-Bbap{0%{bottom:-100%}to{bottom:0}}@keyframes swipe-module_slideLeft__i24cS{0%{right:-100%}to{right:0}}@keyframes swipe-module_slideRight__swgSY{0%{left:-100%}to{left:0}}@keyframes swipe-module_slideBottom__TBoZo{0%{top:-100%}to{top:0}}@keyframes swipe-module_backTop__32loc{0%{bottom:0}to{bottom:-100%}}@keyframes swipe-module_backLeft__q89ub{0%{right:0}to{right:-100%}}@keyframes swipe-module_backRight__8t5Dm{0%{left:0}to{left:-100%}}@keyframes swipe-module_backBottom__lwR8B{0%{top:0}to{top:-100%}}";
8513
- var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","to-top":"swipe-module_to-top__lrHfG","to-left":"swipe-module_to-left__kgLsE","to-right":"swipe-module_to-right__Xu3Ul","to-bottom":"swipe-module_to-bottom__94M7H","visible":"swipe-module_visible__---aC","swipe-block":"swipe-module_swipe-block__Yv1B3","move-top":"swipe-module_move-top__m6t2O","slideTop":"swipe-module_slideTop__-Bbap","move-left":"swipe-module_move-left__4TDLs","slideLeft":"swipe-module_slideLeft__i24cS","move-right":"swipe-module_move-right__FrYo0","slideRight":"swipe-module_slideRight__swgSY","move-bottom":"swipe-module_move-bottom__eYDx6","slideBottom":"swipe-module_slideBottom__TBoZo","back-top":"swipe-module_back-top__gJZv0","backTop":"swipe-module_backTop__32loc","back-left":"swipe-module_back-left__Wd3aY","backLeft":"swipe-module_backLeft__q89ub","back-right":"swipe-module_back-right__Lgwz7","backRight":"swipe-module_backRight__8t5Dm","back-bottom":"swipe-module_back-bottom__JRN-7","backBottom":"swipe-module_backBottom__lwR8B"};
8530
+ var css_248z$2 = "body.swipe-module_tui-no-srcoll-class__YS9cI,html.swipe-module_tui-no-srcoll-class__YS9cI{height:100%;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}#swipe-module_tui-swipe-modal-id-for-no-scroll-area__vRP59{touch-action:auto}.swipe-module_to-top__lrHfG{bottom:0}.swipe-module_to-left__kgLsE{right:0}.swipe-module_to-right__Xu3Ul{left:0}.swipe-module_to-bottom__94M7H{top:0}.swipe-module_visible__---aC{visibility:visible!important}.swipe-module_swipe-block__Yv1B3{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.swipe-module_move-top__m6t2O{-webkit-animation-name:swipe-module_slideTop__-Bbap;animation-name:swipe-module_slideTop__-Bbap}.swipe-module_move-left__4TDLs{-webkit-animation-name:swipe-module_slideLeft__i24cS;animation-name:swipe-module_slideLeft__i24cS}.swipe-module_move-right__FrYo0{-webkit-animation-name:swipe-module_slideRight__swgSY;animation-name:swipe-module_slideRight__swgSY}.swipe-module_move-bottom__eYDx6{-webkit-animation-name:swipe-module_slideBottom__TBoZo;animation-name:swipe-module_slideBottom__TBoZo}.swipe-module_back-top__gJZv0{-webkit-animation-name:swipe-module_backTop__32loc;animation-name:swipe-module_backTop__32loc}.swipe-module_back-left__Wd3aY{-webkit-animation-name:swipe-module_backLeft__q89ub;animation-name:swipe-module_backLeft__q89ub}.swipe-module_back-right__Lgwz7{-webkit-animation-name:swipe-module_backRight__8t5Dm;animation-name:swipe-module_backRight__8t5Dm}.swipe-module_back-bottom__JRN-7{-webkit-animation-name:swipe-module_backBottom__lwR8B;animation-name:swipe-module_backBottom__lwR8B}@keyframes swipe-module_slideTop__-Bbap{0%{bottom:-100%}to{bottom:0}}@keyframes swipe-module_slideLeft__i24cS{0%{right:-100%}to{right:0}}@keyframes swipe-module_slideRight__swgSY{0%{left:-100%}to{left:0}}@keyframes swipe-module_slideBottom__TBoZo{0%{top:-100%}to{top:0}}@keyframes swipe-module_backTop__32loc{0%{bottom:0}to{bottom:-100%}}@keyframes swipe-module_backLeft__q89ub{0%{right:0}to{right:-100%}}@keyframes swipe-module_backRight__8t5Dm{0%{left:0}to{left:-100%}}@keyframes swipe-module_backBottom__lwR8B{0%{top:0}to{top:-100%}}";
8531
+ var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","tui-swipe-modal-id-for-no-scroll-area":"swipe-module_tui-swipe-modal-id-for-no-scroll-area__vRP59","to-top":"swipe-module_to-top__lrHfG","to-left":"swipe-module_to-left__kgLsE","to-right":"swipe-module_to-right__Xu3Ul","to-bottom":"swipe-module_to-bottom__94M7H","visible":"swipe-module_visible__---aC","swipe-block":"swipe-module_swipe-block__Yv1B3","move-top":"swipe-module_move-top__m6t2O","slideTop":"swipe-module_slideTop__-Bbap","move-left":"swipe-module_move-left__4TDLs","slideLeft":"swipe-module_slideLeft__i24cS","move-right":"swipe-module_move-right__FrYo0","slideRight":"swipe-module_slideRight__swgSY","move-bottom":"swipe-module_move-bottom__eYDx6","slideBottom":"swipe-module_slideBottom__TBoZo","back-top":"swipe-module_back-top__gJZv0","backTop":"swipe-module_backTop__32loc","back-left":"swipe-module_back-left__Wd3aY","backLeft":"swipe-module_backLeft__q89ub","back-right":"swipe-module_back-right__Lgwz7","backRight":"swipe-module_backRight__8t5Dm","back-bottom":"swipe-module_back-bottom__JRN-7","backBottom":"swipe-module_backBottom__lwR8B"};
8514
8532
  styleInject(css_248z$2);
8515
8533
 
8516
8534
  // import React, { useEffect, useRef } from 'react';
@@ -8614,6 +8632,7 @@ const handleNavigationChange = () => {
8614
8632
  })(window.history);
8615
8633
  const style = document.createElement('style');
8616
8634
  function ResetTouchRemove(e) {
8635
+ if (e.target.closest('#tui-swipe-modal-id-for-no-scroll-area')) return;
8617
8636
  e.preventDefault();
8618
8637
  }
8619
8638
  const swipe = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",