@xaypay/tui 0.2.28 → 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
  };
@@ -2400,7 +2414,6 @@ const File = /*#__PURE__*/forwardRef(({
2400
2414
  console.error(error);
2401
2415
  });
2402
2416
  return () => {
2403
- setCheckTextLength(() => false);
2404
2417
  if (tooltipElem) {
2405
2418
  document.body.removeChild(tooltipElem);
2406
2419
  }
@@ -2580,19 +2593,21 @@ const File = /*#__PURE__*/forwardRef(({
2580
2593
  style: {
2581
2594
  margin: '0px',
2582
2595
  padding: '0px 10px',
2596
+ width: 'calc(100% - 120px)',
2597
+ maxWidth: 'calc(100% - 120px)',
2583
2598
  color: color ?? configStyles.FILE.color,
2584
2599
  whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
2585
2600
  overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
2586
2601
  textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
2587
2602
  }
2588
2603
  }, singleFile && singleFile[`${0}`] ? /*#__PURE__*/React__default.createElement("span", {
2604
+ ref: fileNameRef,
2589
2605
  style: {
2606
+ width: '100%',
2590
2607
  display: 'inline-block',
2591
- width: `calc(${maxWidth ?? configStyles.FILE.maxWidth} - 140px)`,
2592
2608
  whiteSpace: 'nowrap',
2593
2609
  overflow: 'hidden',
2594
- textOverflow: 'ellipsis',
2595
- textAlign: 'right'
2610
+ textOverflow: 'ellipsis'
2596
2611
  }
2597
2612
  }, singleFile[`${0}`].name) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 ", ' ', /*#__PURE__*/React__default.createElement("span", {
2598
2613
  style: {
@@ -4494,8 +4509,8 @@ Table.propTypes = {
4494
4509
  clickableRowColumnTd: PropTypes.bool
4495
4510
  };
4496
4511
 
4497
- 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)}}";
4498
- 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"};
4499
4514
  styleInject(css_248z$a);
4500
4515
 
4501
4516
  const SvgNext = ({
@@ -4717,6 +4732,7 @@ const Modal = ({
4717
4732
  setIsHover(false);
4718
4733
  };
4719
4734
  function ResetTouchRemove(e) {
4735
+ if (e.target.closest('#tui-modal-id-for-no-scroll-area')) return;
4720
4736
  e.preventDefault();
4721
4737
  }
4722
4738
  useEffect(() => {
@@ -4794,6 +4810,7 @@ const Modal = ({
4794
4810
  };
4795
4811
  }, []);
4796
4812
  return configStyles.MODAL && /*#__PURE__*/React__default.createElement("div", {
4813
+ id: "tui-modal-id-for-no-scroll-area",
4797
4814
  className: classProps,
4798
4815
  onClick: handleCloseModal,
4799
4816
  style: {
@@ -8479,8 +8496,8 @@ const Swipe = ({
8479
8496
  }, child));
8480
8497
  };
8481
8498
 
8482
- 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%}}";
8483
- 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"};
8484
8501
  styleInject(css_248z$2);
8485
8502
 
8486
8503
  // import React, { useEffect, useRef } from 'react';
@@ -8584,6 +8601,7 @@ const handleNavigationChange = () => {
8584
8601
  })(window.history);
8585
8602
  const style = document.createElement('style');
8586
8603
  function ResetTouchRemove(e) {
8604
+ if (e.target.closest('#tui-swipe-modal-id-for-no-scroll-area')) return;
8587
8605
  e.preventDefault();
8588
8606
  }
8589
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
  };
@@ -2431,7 +2445,6 @@ const File = /*#__PURE__*/React.forwardRef(({
2431
2445
  console.error(error);
2432
2446
  });
2433
2447
  return () => {
2434
- setCheckTextLength(() => false);
2435
2448
  if (tooltipElem) {
2436
2449
  document.body.removeChild(tooltipElem);
2437
2450
  }
@@ -2611,19 +2624,21 @@ const File = /*#__PURE__*/React.forwardRef(({
2611
2624
  style: {
2612
2625
  margin: '0px',
2613
2626
  padding: '0px 10px',
2627
+ width: 'calc(100% - 120px)',
2628
+ maxWidth: 'calc(100% - 120px)',
2614
2629
  color: color ?? configStyles.FILE.color,
2615
2630
  whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
2616
2631
  overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
2617
2632
  textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
2618
2633
  }
2619
2634
  }, singleFile && singleFile[`${0}`] ? /*#__PURE__*/React__default["default"].createElement("span", {
2635
+ ref: fileNameRef,
2620
2636
  style: {
2637
+ width: '100%',
2621
2638
  display: 'inline-block',
2622
- width: `calc(${maxWidth ?? configStyles.FILE.maxWidth} - 140px)`,
2623
2639
  whiteSpace: 'nowrap',
2624
2640
  overflow: 'hidden',
2625
- textOverflow: 'ellipsis',
2626
- textAlign: 'right'
2641
+ textOverflow: 'ellipsis'
2627
2642
  }
2628
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", {
2629
2644
  style: {
@@ -4525,8 +4540,8 @@ Table.propTypes = {
4525
4540
  clickableRowColumnTd: PropTypes__default["default"].bool
4526
4541
  };
4527
4542
 
4528
- 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)}}";
4529
- 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"};
4530
4545
  styleInject(css_248z$a);
4531
4546
 
4532
4547
  const SvgNext = ({
@@ -4748,6 +4763,7 @@ const Modal = ({
4748
4763
  setIsHover(false);
4749
4764
  };
4750
4765
  function ResetTouchRemove(e) {
4766
+ if (e.target.closest('#tui-modal-id-for-no-scroll-area')) return;
4751
4767
  e.preventDefault();
4752
4768
  }
4753
4769
  React.useEffect(() => {
@@ -4825,6 +4841,7 @@ const Modal = ({
4825
4841
  };
4826
4842
  }, []);
4827
4843
  return configStyles.MODAL && /*#__PURE__*/React__default["default"].createElement("div", {
4844
+ id: "tui-modal-id-for-no-scroll-area",
4828
4845
  className: classProps,
4829
4846
  onClick: handleCloseModal,
4830
4847
  style: {
@@ -8510,8 +8527,8 @@ const Swipe = ({
8510
8527
  }, child));
8511
8528
  };
8512
8529
 
8513
- 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%}}";
8514
- 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"};
8515
8532
  styleInject(css_248z$2);
8516
8533
 
8517
8534
  // import React, { useEffect, useRef } from 'react';
@@ -8615,6 +8632,7 @@ const handleNavigationChange = () => {
8615
8632
  })(window.history);
8616
8633
  const style = document.createElement('style');
8617
8634
  function ResetTouchRemove(e) {
8635
+ if (e.target.closest('#tui-swipe-modal-id-for-no-scroll-area')) return;
8618
8636
  e.preventDefault();
8619
8637
  }
8620
8638
  const swipe = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",