@xaypay/tui 0.2.25 → 0.2.27

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
@@ -48,7 +48,7 @@ var native = {
48
48
  };
49
49
 
50
50
  function v4(options, buf, offset) {
51
- if (native.randomUUID && true && !options) {
51
+ if (native.randomUUID && !buf && !options) {
52
52
  return native.randomUUID();
53
53
  }
54
54
 
@@ -58,6 +58,16 @@ function v4(options, buf, offset) {
58
58
  rnds[6] = rnds[6] & 0x0f | 0x40;
59
59
  rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
60
60
 
61
+ if (buf) {
62
+ offset = offset || 0;
63
+
64
+ for (let i = 0; i < 16; ++i) {
65
+ buf[offset + i] = rnds[i];
66
+ }
67
+
68
+ return buf;
69
+ }
70
+
61
71
  return unsafeStringify(rnds);
62
72
  }
63
73
 
@@ -487,22 +497,19 @@ var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16
487
497
  var img$2 = "data:image/svg+xml,%3csvg width='16' height='2' viewBox='0 0 16 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1H15' stroke='%23009B8B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
488
498
 
489
499
  // import React from 'react'
490
- // import info from './src/assetsTMP/info.png';
491
- // import error from './src/assetsTMP/error.png';
492
- // import close from './src/assetsTMP/close.svg';
493
- // import warn from './src/assetsTMP/warning.png';
494
- // import success from './src/assetsTMP/success.png';
495
500
  const boxSizing = 'border-box';
496
501
  const fontStyle = 'normal';
497
502
  const fontFamily = 'Arial';
498
503
  const fontWeight = 500;
499
504
  const transparent = 'transparent';
500
505
  const presetColors = {
506
+ info: '#F24C4C',
501
507
  dark: '#3C393E',
502
508
  light: '#EEEEEE',
503
509
  extraLight: '#FBFBFB',
504
510
  danger: '#EE0000',
505
511
  success: '#0DA574',
512
+ warning: '#FECD29',
506
513
  secondary: '#D1D1D1',
507
514
  primary: '#051942',
508
515
  primarySecond: '#00236A'
@@ -1070,6 +1077,7 @@ var packageResult = {
1070
1077
  timeForRemoveError: 4000,
1071
1078
  extentionsRowMarginTop: '40px',
1072
1079
  extentionsTextColor: 'black',
1080
+ extentionsTextDots: false,
1073
1081
  border: {
1074
1082
  width: '2px',
1075
1083
  style: 'dashed',
@@ -1083,7 +1091,9 @@ var packageResult = {
1083
1091
  backgroundHidden: 'rgba(60, 57, 62, 0.4)'
1084
1092
  },
1085
1093
  label: {
1094
+ showMore: false,
1086
1095
  useTooltip: false,
1096
+ showMoreTextColor: '#2C46C1',
1087
1097
  color: '#4A4A4D',
1088
1098
  font: {
1089
1099
  ...fontObject
@@ -1178,6 +1188,7 @@ var packageResult = {
1178
1188
  maxHeight: '95vh',
1179
1189
  minHeight: '200px',
1180
1190
  radius: '14px',
1191
+ noScroll: false,
1181
1192
  padding: '20px 20px 20px',
1182
1193
  className: '',
1183
1194
  alignItems: 'center',
@@ -1232,6 +1243,7 @@ var packageResult = {
1232
1243
  SWIPEMODAL: {
1233
1244
  width: '300px',
1234
1245
  height: '100vh',
1246
+ noScroll: false,
1235
1247
  titleStyle: {
1236
1248
  color: '#1C212D',
1237
1249
  textAlign: 'left',
@@ -1810,8 +1822,8 @@ function styleInject(css, ref) {
1810
1822
  }
1811
1823
  }
1812
1824
 
1813
- var css_248z$c = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}";
1814
- var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW"};
1825
+ var css_248z$c = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}.file-module_show-more-text__WIGLx{align-self:self-end;cursor:pointer}";
1826
+ var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW","show-more-text":"file-module_show-more-text__WIGLx"};
1815
1827
  styleInject(css_248z$c);
1816
1828
 
1817
1829
  // eslint-disable-next-line react/display-name
@@ -1845,6 +1857,10 @@ const File = /*#__PURE__*/forwardRef(({
1845
1857
  labelStyle,
1846
1858
  labelWeight,
1847
1859
  labelFamily,
1860
+ lableShowMore,
1861
+ labelShowLessText,
1862
+ labelShowMoreText,
1863
+ showMoreTextColor,
1848
1864
  useLabelTooltip,
1849
1865
  labelTooltipColor,
1850
1866
  labelTooltipPadding,
@@ -1923,6 +1939,7 @@ const File = /*#__PURE__*/forwardRef(({
1923
1939
  maxCHoosenLengthErrorHideTime,
1924
1940
  textAlignLeftInSmallComponent,
1925
1941
  showPreviewIconInSmallComponent,
1942
+ extentionsTextDots,
1926
1943
  extentionsTextColor,
1927
1944
  maxSize = 10,
1928
1945
  preview = true,
@@ -1936,6 +1953,7 @@ const File = /*#__PURE__*/forwardRef(({
1936
1953
  const [error, setError] = useState('');
1937
1954
  const [removeID, setRemoveID] = useState('');
1938
1955
  const [isHover, setIsHover] = useState(false);
1956
+ const [showMore, setShowMore] = useState(false);
1939
1957
  const [classProps, setClassProps] = useState({});
1940
1958
  const [singleFile, setSingleFile] = useState(null);
1941
1959
  const [configStyles, setConfigStyles] = useState({});
@@ -2291,6 +2309,21 @@ const File = /*#__PURE__*/forwardRef(({
2291
2309
  }
2292
2310
  setRemoveID(() => '');
2293
2311
  };
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';
2321
+ }
2322
+ }
2323
+ };
2324
+ const handleChangeShowMore = () => {
2325
+ setShowMore(() => !showMore);
2326
+ };
2294
2327
  useImperativeHandle(ref, () => ({
2295
2328
  handleReset() {
2296
2329
  setError('');
@@ -2346,6 +2379,15 @@ const File = /*#__PURE__*/forwardRef(({
2346
2379
  useEffect(() => {
2347
2380
  className && setClassProps(() => classnames(className ?? configStyles.FILE.className));
2348
2381
  }, [className]);
2382
+ useEffect(() => {
2383
+ if ((useLabelTooltip || configStyles.FILE?.label?.useTooltip) && (lableShowMore || configStyles.FILE?.label?.showMore)) {
2384
+ alert(`
2385
+ Please use one of this props or config,
2386
+ use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
2387
+ or ( lableShowMore / configStyles.FILE.label.showMore )
2388
+ `);
2389
+ }
2390
+ }, [lableShowMore, useLabelTooltip, configStyles.FILE?.label?.useTooltip, configStyles.FILE?.label?.showMore]);
2349
2391
  useEffect(() => {
2350
2392
  configStylesPromise.then(data => {
2351
2393
  setClassProps(() => classnames(className ?? data.FILE.className));
@@ -2375,14 +2417,15 @@ const File = /*#__PURE__*/forwardRef(({
2375
2417
  display: 'flex',
2376
2418
  marginBottom: '6px',
2377
2419
  alignItems: 'center',
2378
- justifyContent: label ? 'space-between' : 'flex-end'
2420
+ justifyContent: label ? 'space-between' : 'flex-end',
2421
+ width: deleteComponent && useLabelTooltip && handleCheckTextWidth() === 'more' ? 'calc(100% - 26px)' : '100%'
2379
2422
  }
2380
2423
  }, label && /*#__PURE__*/React__default.createElement("div", {
2381
2424
  style: {
2382
2425
  display: 'flex',
2383
2426
  maxWidth: '100%',
2384
- width: 'fit-content',
2385
2427
  columnGap: '4px',
2428
+ width: 'fit-content',
2386
2429
  justifyContent: 'flex-start'
2387
2430
  }
2388
2431
  }, /*#__PURE__*/React__default.createElement("label", {
@@ -2394,13 +2437,23 @@ const File = /*#__PURE__*/forwardRef(({
2394
2437
  fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
2395
2438
  fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
2396
2439
  fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
2397
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'nowrap' : 'normal',
2398
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'hidden' : 'visible',
2399
- textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'ellipsis' : ''
2440
+ whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'nowrap' : 'normal',
2441
+ overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'hidden' : 'visible',
2442
+ textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'ellipsis' : ''
2400
2443
  },
2401
- onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
2402
- onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? handleLabelMouseLeave : _ => _
2403
- }, label), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
2444
+ onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) && !lableShowMore && !configStyles.FILE.label.showMore ? handleLabelMouseEnter : _ => _,
2445
+ onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) && !lableShowMore && !configStyles.FILE.label.showMore ? handleLabelMouseLeave : _ => _
2446
+ }, label), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null)), lableShowMore || configStyles.FILE.label.showMore ? /*#__PURE__*/React__default.createElement("span", {
2447
+ className: styles$b['show-more-text'],
2448
+ style: {
2449
+ fontSize: labelSize ?? configStyles.FILE.label.font.size,
2450
+ fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
2451
+ fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
2452
+ fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
2453
+ color: showMoreTextColor ?? configStyles.FILE.label.showMoreTextColor
2454
+ },
2455
+ onClick: handleChangeShowMore
2456
+ }, showMore ? labelShowLessText ? labelShowLessText : '' : labelShowMoreText ? labelShowMoreText : '') : ''), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
2404
2457
  style: {
2405
2458
  cursor: 'pointer'
2406
2459
  },
@@ -2470,15 +2523,23 @@ const File = /*#__PURE__*/forwardRef(({
2470
2523
  }
2471
2524
  }, upload ?? configStyles.FILE.upload))), /*#__PURE__*/React__default.createElement("div", {
2472
2525
  style: {
2526
+ maxWidth: '100%',
2473
2527
  marginTop: extentionsRowMarginTop ?? configStyles.FILE.extentionsRowMarginTop
2474
2528
  }
2475
2529
  }, /*#__PURE__*/React__default.createElement("p", {
2476
2530
  style: {
2477
2531
  margin: '0px',
2478
2532
  padding: '0px 10px',
2533
+ color: color ?? configStyles.FILE.color,
2534
+ whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
2535
+ overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
2536
+ textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
2537
+ }
2538
+ }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532", /*#__PURE__*/React__default.createElement("span", {
2539
+ style: {
2479
2540
  color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
2480
2541
  }
2481
- }, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2542
+ }, "(", ' ', " ", fileExtensions.toString().split(',').join(', '), ")"))))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2482
2543
  className: styles$b['small-file-component'],
2483
2544
  style: {
2484
2545
  width: '100%',
@@ -2518,13 +2579,16 @@ const File = /*#__PURE__*/forwardRef(({
2518
2579
  style: {
2519
2580
  margin: '0px',
2520
2581
  padding: '0px 10px',
2521
- color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
2582
+ color: color ?? configStyles.FILE.color,
2583
+ whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
2584
+ overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
2585
+ textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
2522
2586
  }
2523
- }, singleFile && singleFile[`${0}`] ? singleFile[`${0}`].name : /*#__PURE__*/React__default.createElement("span", {
2587
+ }, singleFile && singleFile[`${0}`] ? singleFile[`${0}`].name : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532", /*#__PURE__*/React__default.createElement("span", {
2524
2588
  style: {
2525
- color: color ?? configStyles.FILE.color
2589
+ color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
2526
2590
  }
2527
- }, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default.createElement("div", {
2591
+ }, "(", ' ', " ", fileExtensions.toString().split(',').join(', '), ")")))))), /*#__PURE__*/React__default.createElement("div", {
2528
2592
  style: {
2529
2593
  position: 'absolute',
2530
2594
  top: '0px',
@@ -2632,6 +2696,10 @@ File.propTypes = {
2632
2696
  labelWeight: PropTypes.string,
2633
2697
  labelFamily: PropTypes.string,
2634
2698
  labelColor: PropTypes.string,
2699
+ lableShowMore: PropTypes.bool,
2700
+ labelShowLessText: PropTypes.string,
2701
+ labelShowMoreText: PropTypes.string,
2702
+ showMoreTextColor: PropTypes.string,
2635
2703
  useLabelTooltip: PropTypes.bool,
2636
2704
  labelTooltipColor: PropTypes.string,
2637
2705
  labelTooltipPadding: PropTypes.string,
@@ -2711,6 +2779,7 @@ File.propTypes = {
2711
2779
  textAlignLeftInSmallComponent: PropTypes.bool,
2712
2780
  showPreviewIconInSmallComponent: PropTypes.bool,
2713
2781
  fileExtensions: PropTypes.arrayOf(PropTypes.string),
2782
+ extentionsTextDots: PropTypes.bool,
2714
2783
  extentionsTextColor: PropTypes.string
2715
2784
  };
2716
2785
 
@@ -2748,7 +2817,11 @@ const handleUtilsCheckTypeTel = (val, prevVal) => {
2748
2817
  return val;
2749
2818
  };
2750
2819
  const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength, cardNumber) => {
2751
- {
2820
+ if (maxLength && maxLength > 0) {
2821
+ if (val.length > maxLength) {
2822
+ val = val.substr(0, maxLength);
2823
+ }
2824
+ } else {
2752
2825
  const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.|\․|\.|\,)?(\d+)?$/ : /^\d+$/;
2753
2826
  if (cardNumber) {
2754
2827
  if (val.length > 19 && !val.includes('.')) {
@@ -4259,7 +4332,7 @@ const Table = ({
4259
4332
  }, body.map((item, index) => {
4260
4333
  return /*#__PURE__*/React__default.createElement("tr", {
4261
4334
  onDragOver: e => e.preventDefault(),
4262
- onDrop: e => handleDrop(e, index),
4335
+ onDrop: draggable ? e => handleDrop(e, index) : _ => _,
4263
4336
  key: `${item}_${index}`,
4264
4337
  style: {
4265
4338
  backgroundColor: tableRowBGColor ?? configStyles.TABLE.body.row.colors.background,
@@ -4272,12 +4345,12 @@ const Table = ({
4272
4345
  return /*#__PURE__*/React__default.createElement(TD, {
4273
4346
  index: index,
4274
4347
  item: innerItem,
4275
- dragged: handleDrag,
4348
+ dragged: draggable ? handleDrag : _ => _,
4276
4349
  hideBorder: hideBorder,
4277
4350
  innerIndex: innerIndex,
4278
- dragEnd: handleDragEnd,
4351
+ dragEnd: draggable ? handleDragEnd : _ => _,
4279
4352
  row: Object.values(item),
4280
- dragStart: handleDragStart,
4353
+ dragStart: draggable ? handleDragStart : _ => _,
4281
4354
  id: item.id ? item.id : '',
4282
4355
  handleCheckDots: handleCheckDots,
4283
4356
  key: `${innerItem}_${index}_${innerIndex}`,
@@ -4329,11 +4402,11 @@ const Table = ({
4329
4402
  }, draggedItem.map((innerItem, innerIndex) => {
4330
4403
  return /*#__PURE__*/React__default.createElement(TD, {
4331
4404
  item: innerItem,
4332
- dragged: handleDrag,
4405
+ dragged: draggable ? handleDrag : _ => _,
4333
4406
  hideBorder: hideBorder,
4334
4407
  innerIndex: innerIndex,
4335
4408
  row: Object.values(draggedItem),
4336
- dragStart: handleDragStart,
4409
+ dragStart: draggable ? handleDragStart : _ => _,
4337
4410
  handleCheckDots: handleCheckDots,
4338
4411
  key: `${innerItem}__${innerIndex}`,
4339
4412
  openListColor: openListColor ?? configStyles.TABLE.openList.color,
@@ -4411,8 +4484,8 @@ Table.propTypes = {
4411
4484
  clickableRowColumnTd: PropTypes.bool
4412
4485
  };
4413
4486
 
4414
- var css_248z$a = ".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)}}";
4415
- var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48"};
4487
+ 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)}}";
4488
+ 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"};
4416
4489
  styleInject(css_248z$a);
4417
4490
 
4418
4491
  const SvgNext = ({
@@ -4661,11 +4734,22 @@ const Modal = ({
4661
4734
  className && setClassProps(() => classnames(className ?? configStyles.MODAL.className));
4662
4735
  }, [className]);
4663
4736
  useEffect(() => {
4737
+ let newConfigStyles = {};
4738
+ const style = document.createElement('style');
4664
4739
  document.addEventListener('keydown', e => {
4665
4740
  handleESC(e);
4666
4741
  handleNavigateArrow(e);
4667
4742
  }, false);
4668
4743
  configStylesPromise.then(data => {
4744
+ newConfigStyles = {
4745
+ ...data
4746
+ };
4747
+ if (newConfigStyles.MODAL && hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
4748
+ style.textContent = `.tui-no-srcoll-class{overflow:hidden!important;}`;
4749
+ document.head.appendChild(style);
4750
+ document.body.classList.add('tui-no-srcoll-class');
4751
+ document.documentElement.classList.add('tui-no-srcoll-class');
4752
+ }
4669
4753
  setClassProps(() => classnames(className ?? data.MODAL.className));
4670
4754
  setConfigStyles(() => {
4671
4755
  return {
@@ -4678,6 +4762,14 @@ const Modal = ({
4678
4762
  return () => {
4679
4763
  setSelect(0);
4680
4764
  setInnerData([]);
4765
+ if (newConfigStyles.MODAL && hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
4766
+ const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
4767
+ if (noScrllable) {
4768
+ style.remove();
4769
+ document.body.classList.remove('tui-no-srcoll-class');
4770
+ document.documentElement.classList.remove('tui-no-srcoll-class');
4771
+ }
4772
+ }
4681
4773
  document.removeEventListener('keydown', e => {
4682
4774
  handleESC(e);
4683
4775
  handleNavigateArrow(e);
@@ -4711,14 +4803,14 @@ const Modal = ({
4711
4803
  style: {
4712
4804
  position: 'relative',
4713
4805
  boxSizing: 'border-box',
4714
- display: type === 'content' ? 'grid' : 'block',
4715
4806
  width: width ?? configStyles.MODAL.width,
4716
- overflow: type === 'content' ? 'auto' : 'hidden',
4717
4807
  height: height ?? configStyles.MODAL.height,
4718
- gridTemplateRows: type === 'content' ? 'auto 10fr' : '',
4808
+ display: type === 'content' ? 'grid' : 'block',
4809
+ overflow: type === 'content' ? 'auto' : 'hidden',
4719
4810
  borderRadius: radius ?? configStyles.MODAL.radius,
4720
4811
  maxWidth: mMaxWidth ?? configStyles.MODAL.maxWidth,
4721
4812
  maxHeight: mMaxHeight ?? configStyles.MODAL.maxHeight,
4813
+ gridTemplateRows: type === 'content' ? 'auto 10fr' : '',
4722
4814
  minWidth: type === 'content' ? minWidth ?? configStyles.MODAL.minWidth : '',
4723
4815
  backgroundColor: backgroundColor ?? configStyles.MODAL.colors.background,
4724
4816
  minHeight: type === 'content' ? minHeight ?? configStyles.MODAL.minHeight : ''
@@ -5290,7 +5382,7 @@ const NumberInput = ({
5290
5382
  };
5291
5383
 
5292
5384
  var css_248z$9 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{appearance:none!important;-webkit-appearance:none!important;display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}input::-ms-clear,input::-ms-reveal{display:none}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
5293
- var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","inp-num":"input-module_inp-num__vH7HL"};
5385
+ var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k","inp-num":"input-module_inp-num__vH7HL"};
5294
5386
  styleInject(css_248z$9);
5295
5387
 
5296
5388
  const InputTypes = {
@@ -6078,7 +6170,7 @@ const SvgArrow = ({
6078
6170
  }));
6079
6171
 
6080
6172
  var css_248z$8 = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;display:flex;flex-direction:row;flex-wrap:nowrap}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:99999999999}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:fit-content;justify-content:center;max-height:30px;max-width:30px;min-height:14px;min-width:14px;width:fit-content}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
6081
- var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L","ellipsis":"select-module_ellipsis__uNgol"};
6173
+ var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L","ellipsis":"select-module_ellipsis__uNgol"};
6082
6174
  styleInject(css_248z$8);
6083
6175
 
6084
6176
  const Select = ({
@@ -8293,7 +8385,6 @@ Accordion.propTypes = {
8293
8385
  };
8294
8386
 
8295
8387
  // import React from 'react';
8296
-
8297
8388
  const Swipe = ({
8298
8389
  id,
8299
8390
  title,
@@ -8371,14 +8462,11 @@ const Swipe = ({
8371
8462
  }, child));
8372
8463
  };
8373
8464
 
8374
- var css_248z$2 = ".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%}}";
8375
- var styles$2 = {"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","move-left":"swipe-module_move-left__4TDLs","move-right":"swipe-module_move-right__FrYo0","move-bottom":"swipe-module_move-bottom__eYDx6","back-top":"swipe-module_back-top__gJZv0","back-left":"swipe-module_back-left__Wd3aY","back-right":"swipe-module_back-right__Lgwz7","back-bottom":"swipe-module_back-bottom__JRN-7"};
8465
+ 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}.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%}}";
8466
+ 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"};
8376
8467
  styleInject(css_248z$2);
8377
8468
 
8378
8469
  // import React, { useEffect, useRef } from 'react';
8379
- // import ReactDOM from 'react-dom/client';
8380
- // import PropTypes from 'prop-types';
8381
-
8382
8470
  let swipeCount = 0;
8383
8471
  const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
8384
8472
  const {
@@ -8477,22 +8565,45 @@ const handleNavigationChange = () => {
8477
8565
  return result;
8478
8566
  };
8479
8567
  })(window.history);
8568
+ const style = document.createElement('style');
8480
8569
  const swipe = {
8481
8570
  open: (title = '', id, child, props) => {
8482
- if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
8483
- alert('Please pass valid id prop (string / number) when call swipe.open function');
8484
- return;
8485
- }
8486
- if (swipeCount === 0) {
8487
- window.addEventListener('popstate', handleNavigationChange);
8488
- window.addEventListener('navigationchange', handleNavigationChange);
8489
- }
8490
- let swipable = document.getElementById('swipable');
8491
- swipeCount += 1;
8492
- createSwipe(id, title, child, props, swipable);
8493
- return Promise.resolve(id);
8571
+ let newConfigStyles = {};
8572
+ configStylesPromise.then(data => {
8573
+ newConfigStyles = {
8574
+ ...data
8575
+ };
8576
+ if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
8577
+ alert('Please pass valid id prop (string / number) when call swipe.open function');
8578
+ return;
8579
+ }
8580
+ if (swipeCount === 0) {
8581
+ if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
8582
+ style.textContent = `.tui-no-srcoll-class{overflow:hidden!important;}`;
8583
+ document.head.appendChild(style);
8584
+ document.body.classList.add('tui-no-srcoll-class');
8585
+ document.documentElement.classList.add('tui-no-srcoll-class');
8586
+ }
8587
+ window.addEventListener('popstate', handleNavigationChange);
8588
+ window.addEventListener('navigationchange', handleNavigationChange);
8589
+ }
8590
+ let swipable = document.getElementById('swipable');
8591
+ swipeCount += 1;
8592
+ createSwipe(id, title, child, props, swipable);
8593
+ return Promise.resolve(id);
8594
+ }, error => {
8595
+ console.error(error);
8596
+ });
8494
8597
  },
8495
8598
  close: id => {
8599
+ let newConfigStyles = {};
8600
+ configStylesPromise.then(data => {
8601
+ newConfigStyles = {
8602
+ ...data
8603
+ };
8604
+ }, error => {
8605
+ console.error(error);
8606
+ });
8496
8607
  if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
8497
8608
  alert('Please pass valid id prop (string / number) when call swipe.close function');
8498
8609
  return;
@@ -8511,6 +8622,14 @@ const swipe = {
8511
8622
  window.removeEventListener('popstate', handleNavigationChange);
8512
8623
  window.removeEventListener('navigationchange', handleNavigationChange);
8513
8624
  document.body.removeChild(swipable);
8625
+ if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
8626
+ const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
8627
+ if (noScrllable) {
8628
+ style.remove();
8629
+ document.body.classList.remove('tui-no-srcoll-class');
8630
+ document.documentElement.classList.remove('tui-no-srcoll-class');
8631
+ }
8632
+ }
8514
8633
  }
8515
8634
  }, 200);
8516
8635
  } else {
@@ -8519,6 +8638,25 @@ const swipe = {
8519
8638
  window.removeEventListener('popstate', handleNavigationChange);
8520
8639
  window.removeEventListener('navigationchange', handleNavigationChange);
8521
8640
  document.body.removeChild(swipable);
8641
+ if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
8642
+ const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
8643
+ if (noScrllable) {
8644
+ style.remove();
8645
+ document.body.classList.remove('tui-no-srcoll-class');
8646
+ document.documentElement.classList.remove('tui-no-srcoll-class');
8647
+ }
8648
+ }
8649
+ }
8650
+ }
8651
+ }
8652
+ },
8653
+ updateTitle: (title, id) => {
8654
+ const elem = document.getElementById(id);
8655
+ const titleElem = elem.querySelector('h1');
8656
+ if (elem) {
8657
+ if (titleElem) {
8658
+ if (title) {
8659
+ titleElem.innerText = title;
8522
8660
  }
8523
8661
  }
8524
8662
  }
@@ -8716,7 +8854,7 @@ const SvgNextarrow = ({
8716
8854
  }));
8717
8855
 
8718
8856
  var css_248z$1 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT>ul{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{align-items:center;border:none;cursor:pointer;display:flex;justify-content:center;outline:none}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;cursor:pointer;display:flex;flex:0 0 auto;justify-content:center;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}.pagination-module_show-offset-block__ksPGm{height:34px;margin-left:10px!important;margin-right:4px!important;width:91px}i{color:#3c393e;font-size:12px;line-height:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}";
8719
- var styles$1 = {"pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
8857
+ var styles$1 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8","show-offset-block":"pagination-module_show-offset-block__ksPGm"};
8720
8858
  styleInject(css_248z$1);
8721
8859
 
8722
8860
  const Pagination = ({