@xaypay/tui 0.2.29 → 0.2.32

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,23 @@ const File = /*#__PURE__*/forwardRef(({
2579
2593
  style: {
2580
2594
  margin: '0px',
2581
2595
  padding: '0px 10px',
2596
+ textAlign: 'left',
2597
+ width: 'calc(100% - 120px)',
2598
+ maxWidth: 'calc(100% - 120px)',
2582
2599
  color: color ?? configStyles.FILE.color,
2583
2600
  whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
2584
2601
  overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
2585
2602
  textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
2586
2603
  }
2587
2604
  }, singleFile && singleFile[`${0}`] ? /*#__PURE__*/React__default.createElement("span", {
2605
+ ref: fileNameRef,
2588
2606
  style: {
2607
+ width: '100%',
2589
2608
  display: 'inline-block',
2590
- width: `calc(${maxWidth ?? configStyles.FILE.maxWidth} - 140px)`,
2591
2609
  whiteSpace: 'nowrap',
2592
2610
  overflow: 'hidden',
2593
2611
  textOverflow: 'ellipsis',
2594
- textAlign: 'right'
2612
+ textAlign: 'left'
2595
2613
  }
2596
2614
  }, singleFile[`${0}`].name) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 ", ' ', /*#__PURE__*/React__default.createElement("span", {
2597
2615
  style: {
@@ -4493,8 +4511,8 @@ Table.propTypes = {
4493
4511
  clickableRowColumnTd: PropTypes.bool
4494
4512
  };
4495
4513
 
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"};
4514
+ 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)}}";
4515
+ 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
4516
  styleInject(css_248z$a);
4499
4517
 
4500
4518
  const SvgNext = ({
@@ -4716,6 +4734,7 @@ const Modal = ({
4716
4734
  setIsHover(false);
4717
4735
  };
4718
4736
  function ResetTouchRemove(e) {
4737
+ if (e.target.closest('#tui-modal-id-for-no-scroll-area')) return;
4719
4738
  e.preventDefault();
4720
4739
  }
4721
4740
  useEffect(() => {
@@ -4793,6 +4812,7 @@ const Modal = ({
4793
4812
  };
4794
4813
  }, []);
4795
4814
  return configStyles.MODAL && /*#__PURE__*/React__default.createElement("div", {
4815
+ id: "tui-modal-id-for-no-scroll-area",
4796
4816
  className: classProps,
4797
4817
  onClick: handleCloseModal,
4798
4818
  style: {
@@ -8478,8 +8498,8 @@ const Swipe = ({
8478
8498
  }, child));
8479
8499
  };
8480
8500
 
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"};
8501
+ 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_swipable__MWZC4{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%}}";
8502
+ var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","swipable":"swipe-module_swipable__MWZC4","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
8503
  styleInject(css_248z$2);
8484
8504
 
8485
8505
  // import React, { useEffect, useRef } from 'react';
@@ -8583,6 +8603,7 @@ const handleNavigationChange = () => {
8583
8603
  })(window.history);
8584
8604
  const style = document.createElement('style');
8585
8605
  function ResetTouchRemove(e) {
8606
+ if (e.target.closest('#swipable')) return;
8586
8607
  e.preventDefault();
8587
8608
  }
8588
8609
  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,23 @@ const File = /*#__PURE__*/React.forwardRef(({
2610
2624
  style: {
2611
2625
  margin: '0px',
2612
2626
  padding: '0px 10px',
2627
+ textAlign: 'left',
2628
+ width: 'calc(100% - 120px)',
2629
+ maxWidth: 'calc(100% - 120px)',
2613
2630
  color: color ?? configStyles.FILE.color,
2614
2631
  whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
2615
2632
  overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
2616
2633
  textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
2617
2634
  }
2618
2635
  }, singleFile && singleFile[`${0}`] ? /*#__PURE__*/React__default["default"].createElement("span", {
2636
+ ref: fileNameRef,
2619
2637
  style: {
2638
+ width: '100%',
2620
2639
  display: 'inline-block',
2621
- width: `calc(${maxWidth ?? configStyles.FILE.maxWidth} - 140px)`,
2622
2640
  whiteSpace: 'nowrap',
2623
2641
  overflow: 'hidden',
2624
2642
  textOverflow: 'ellipsis',
2625
- textAlign: 'right'
2643
+ textAlign: 'left'
2626
2644
  }
2627
2645
  }, 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
2646
  style: {
@@ -4524,8 +4542,8 @@ Table.propTypes = {
4524
4542
  clickableRowColumnTd: PropTypes__default["default"].bool
4525
4543
  };
4526
4544
 
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"};
4545
+ 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)}}";
4546
+ 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
4547
  styleInject(css_248z$a);
4530
4548
 
4531
4549
  const SvgNext = ({
@@ -4747,6 +4765,7 @@ const Modal = ({
4747
4765
  setIsHover(false);
4748
4766
  };
4749
4767
  function ResetTouchRemove(e) {
4768
+ if (e.target.closest('#tui-modal-id-for-no-scroll-area')) return;
4750
4769
  e.preventDefault();
4751
4770
  }
4752
4771
  React.useEffect(() => {
@@ -4824,6 +4843,7 @@ const Modal = ({
4824
4843
  };
4825
4844
  }, []);
4826
4845
  return configStyles.MODAL && /*#__PURE__*/React__default["default"].createElement("div", {
4846
+ id: "tui-modal-id-for-no-scroll-area",
4827
4847
  className: classProps,
4828
4848
  onClick: handleCloseModal,
4829
4849
  style: {
@@ -8509,8 +8529,8 @@ const Swipe = ({
8509
8529
  }, child));
8510
8530
  };
8511
8531
 
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"};
8532
+ 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_swipable__MWZC4{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%}}";
8533
+ var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","swipable":"swipe-module_swipable__MWZC4","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
8534
  styleInject(css_248z$2);
8515
8535
 
8516
8536
  // import React, { useEffect, useRef } from 'react';
@@ -8614,6 +8634,7 @@ const handleNavigationChange = () => {
8614
8634
  })(window.history);
8615
8635
  const style = document.createElement('style');
8616
8636
  function ResetTouchRemove(e) {
8637
+ if (e.target.closest('#swipable')) return;
8617
8638
  e.preventDefault();
8618
8639
  }
8619
8640
  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.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",