@xaypay/tui 0.0.70 → 0.0.71

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.
Files changed (56) hide show
  1. package/dist/index.es.js +685 -85
  2. package/dist/index.js +685 -84
  3. package/package.json +3 -2
  4. package/src/components/captcha/captcha.module.css +3 -3
  5. package/src/components/captcha/index.js +10 -7
  6. package/src/components/file/index.js +2 -3
  7. package/src/components/icon/Arrow.js +2 -2
  8. package/src/components/icon/CheckboxChecked.js +2 -2
  9. package/src/components/icon/CheckboxUnchecked.js +2 -2
  10. package/src/components/icon/CloseIcon.js +2 -2
  11. package/src/components/icon/DeleteComponent.js +20 -0
  12. package/src/components/icon/Dots.js +6 -6
  13. package/src/components/icon/ListItemDelete.js +19 -0
  14. package/src/components/icon/ListItemJpg.js +21 -0
  15. package/src/components/icon/ListItemPdf.js +21 -0
  16. package/src/components/icon/Nextarrow.js +19 -0
  17. package/src/components/icon/RangeArrowDefault.js +54 -0
  18. package/src/components/icon/RangeArrowError.js +54 -0
  19. package/src/components/icon/RangeArrowSuccess.js +54 -0
  20. package/src/components/icon/RemoveFile.js +20 -0
  21. package/src/components/icon/ToasterClose.js +2 -2
  22. package/src/components/icon/ToasterError.js +2 -2
  23. package/src/components/icon/ToasterInfo.js +2 -2
  24. package/src/components/icon/ToasterSuccess.js +2 -2
  25. package/src/components/icon/ToasterWarning.js +2 -2
  26. package/src/components/icon/Tooltip.js +2 -2
  27. package/src/components/icon/Upload.js +25 -0
  28. package/src/components/icon/index.js +1 -15
  29. package/src/components/input/index.js +36 -31
  30. package/src/components/newFile/index.js +463 -0
  31. package/src/components/newFile/newFile.stories.js +41 -0
  32. package/src/components/pagination/index.js +5 -5
  33. package/src/components/textarea/index.js +63 -27
  34. package/src/components/textarea/textarea.stories.js +3 -3
  35. package/src/components/toaster/Toast.js +1 -1
  36. package/src/components/tooltip/index.js +2 -2
  37. package/src/index.js +1 -0
  38. package/src/stories/configuration.stories.mdx +1 -0
  39. package/tui.config.js +23 -0
  40. package/src/assets/icons/arrow.svg +0 -3
  41. package/src/assets/icons/checkbox-checked.svg +0 -3
  42. package/src/assets/icons/checkbox-unchecked.svg +0 -3
  43. package/src/assets/icons/close-icon.svg +0 -3
  44. package/src/assets/icons/dots.svg +0 -3
  45. package/src/assets/icons/nextarrow.svg +0 -3
  46. package/src/assets/icons/toaster-close.svg +0 -3
  47. package/src/assets/icons/toaster-error.svg +0 -3
  48. package/src/assets/icons/toaster-info.svg +0 -3
  49. package/src/assets/icons/toaster-success.svg +0 -3
  50. package/src/assets/icons/toaster-warning.svg +0 -3
  51. package/src/assets/icons/tooltip.svg +0 -3
  52. package/src/assets/upload.svg +0 -4
  53. package/src/components/icon/NextArrow.js +0 -19
  54. /package/src/assets/{icons/range-arrow-default.svg → range-arrow-default.svg} +0 -0
  55. /package/src/assets/{icons/range-arrow-error.svg → range-arrow-error.svg} +0 -0
  56. /package/src/assets/{icons/range-arrow-success.svg → range-arrow-success.svg} +0 -0
package/dist/index.es.js CHANGED
@@ -137,8 +137,7 @@ const File = ({
137
137
  }, "*")), /*#__PURE__*/React__default.createElement("div", {
138
138
  className: classnames(`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
139
139
  }, /*#__PURE__*/React__default.createElement("div", {
140
- onChange: e => console.log(e),
141
- className: `${styles$c['file-form']} file-form-rem ${errorMessage ? styles$c['error'] : ''}`,
140
+ className: `${styles$c['file-form']} file-form-rem ${error || errorMessage ? styles$c['error'] : ''}`,
142
141
  onClick: () => document.querySelector(`.${name}`).click()
143
142
  }, /*#__PURE__*/React__default.createElement("input", {
144
143
  hidden: true,
@@ -167,11 +166,11 @@ const File = ({
167
166
  onClick: handleRemoveFile
168
167
  }, /*#__PURE__*/React__default.createElement("i", {
169
168
  className: "icon-delete"
170
- })), errorMessage || error ? /*#__PURE__*/React__default.createElement("span", {
169
+ })), error || errorMessage ? /*#__PURE__*/React__default.createElement("span", {
171
170
  style: {
172
171
  color: 'red'
173
172
  }
174
- }, errorMessage || error) : null));
173
+ }, error || errorMessage) : null));
175
174
  };
176
175
  File.propTypes = {
177
176
  label: PropTypes.string,
@@ -627,7 +626,7 @@ const Input = ({
627
626
  errorAnimationDuration,
628
627
  ...props
629
628
  }) => {
630
- const phoneNumberRegex = /^\d{8}$/;
629
+ const phoneNumberRegex = /^\d+$/;
631
630
  const [show, setShow] = useState(false);
632
631
  const [isHover, setIsHover] = useState(false);
633
632
  const [innerValue, setInnerValue] = useState('');
@@ -655,28 +654,34 @@ const Input = ({
655
654
  const currentValue = event.target.value;
656
655
  setInnerValue(currentValue);
657
656
  if (type === 'tel') {
658
- if (currentValue.length > 8) {
659
- setInnerValue(currentValue.substr(0, 8));
660
- }
661
- if (!phoneNumberRegex.test(currentValue) && telErrorMessage) {
662
- setInnerErrorMessage(telErrorMessage);
657
+ if (!phoneNumberRegex.test(currentValue)) {
658
+ telErrorMessage && setInnerErrorMessage(telErrorMessage);
659
+ setInnerValue('');
663
660
  } else {
664
661
  setInnerErrorMessage('');
662
+ if (currentValue.length > 8) {
663
+ setInnerValue(currentValue.substr(0, 8));
664
+ if (onChange) {
665
+ onChange(currentValue.substr(0, 8));
666
+ }
667
+ } else {
668
+ setInnerValue(currentValue);
669
+ if (onChange) {
670
+ onChange(currentValue);
671
+ }
672
+ }
665
673
  }
666
674
  }
667
675
  if (maxLength && currentValue.length > maxLength && type !== 'tel') {
668
676
  setInnerValue(currentValue.substr(0, maxLength));
677
+ if (onChange) {
678
+ onChange(currentValue.substr(0, maxLength));
679
+ }
669
680
  }
670
681
  if (regexp && regexpErrorMessage && !maxLength && type !== 'tel') {
671
682
  !regexp.test(currentValue) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
672
- }
673
- if (onChange) {
674
- onChange(currentValue);
675
- if (type === 'tel' && currentValue.length > 8) {
676
- onChange(currentValue.substr(0, 8));
677
- }
678
- if (maxLength && currentValue.length > maxLength && type !== 'tel') {
679
- onChange(currentValue.substr(0, maxLength));
683
+ if (onChange) {
684
+ onChange(currentValue);
680
685
  }
681
686
  }
682
687
  };
@@ -687,16 +692,24 @@ const Input = ({
687
692
  setIsHover(false);
688
693
  };
689
694
  useEffect(() => {
695
+ if (errorMessage) {
696
+ setInnerErrorMessage(errorMessage);
697
+ } else {
698
+ setInnerErrorMessage('');
699
+ }
690
700
  if (value !== undefined && value !== null) {
691
701
  setInnerValue(value);
692
702
  if (type === 'tel') {
693
- if (value.length > 8) {
694
- setInnerValue(value.substr(0, 8));
695
- }
696
- if (!phoneNumberRegex.test(value) && telErrorMessage) {
697
- setInnerErrorMessage(telErrorMessage);
703
+ if (!phoneNumberRegex.test(currentValue)) {
704
+ telErrorMessage && setInnerErrorMessage(telErrorMessage);
705
+ setInnerValue('');
698
706
  } else {
699
707
  setInnerErrorMessage('');
708
+ if (value.length > 8) {
709
+ setInnerValue(value.substr(0, 8));
710
+ } else {
711
+ setInnerValue(value);
712
+ }
700
713
  }
701
714
  }
702
715
  if (maxLength && value.length > maxLength && type !== 'tel') {
@@ -706,11 +719,6 @@ const Input = ({
706
719
  !regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
707
720
  }
708
721
  }
709
- if (errorMessage) {
710
- setInnerErrorMessage(errorMessage);
711
- } else {
712
- setInnerErrorMessage('');
713
- }
714
722
  }, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage]);
715
723
  return /*#__PURE__*/React__default.createElement("div", {
716
724
  className: `${styles$8["input-wrap"]}`
@@ -1024,8 +1032,8 @@ const SvgCheckboxUnchecked = ({
1024
1032
  titleId,
1025
1033
  ...props
1026
1034
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1027
- width: "1em",
1028
- height: "1em",
1035
+ width: "16",
1036
+ height: "16",
1029
1037
  viewBox: "0 0 16 16",
1030
1038
  fill: "none",
1031
1039
  xmlns: "http://www.w3.org/2000/svg",
@@ -1044,8 +1052,8 @@ const SvgCheckboxChecked = ({
1044
1052
  titleId,
1045
1053
  ...props
1046
1054
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1047
- width: "1em",
1048
- height: "1em",
1055
+ width: "16",
1056
+ height: "16",
1049
1057
  viewBox: "0 0 16 16",
1050
1058
  fill: "none",
1051
1059
  xmlns: "http://www.w3.org/2000/svg",
@@ -1077,8 +1085,8 @@ const SvgArrow = ({
1077
1085
  titleId,
1078
1086
  ...props
1079
1087
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1080
- width: "1em",
1081
- height: "1em",
1088
+ width: "15",
1089
+ height: "9",
1082
1090
  viewBox: "0 0 15 9",
1083
1091
  fill: "none",
1084
1092
  xmlns: "http://www.w3.org/2000/svg",
@@ -1095,8 +1103,8 @@ const SvgCloseIcon = ({
1095
1103
  titleId,
1096
1104
  ...props
1097
1105
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1098
- width: "1em",
1099
- height: "1em",
1106
+ width: "14",
1107
+ height: "14",
1100
1108
  viewBox: "0 0 14 14",
1101
1109
  fill: "none",
1102
1110
  xmlns: "http://www.w3.org/2000/svg",
@@ -1429,8 +1437,8 @@ const SvgToasterInfo = ({
1429
1437
  titleId,
1430
1438
  ...props
1431
1439
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1432
- width: "1em",
1433
- height: "1em",
1440
+ width: "24",
1441
+ height: "24",
1434
1442
  viewBox: "0 0 24 24",
1435
1443
  fill: "none",
1436
1444
  xmlns: "http://www.w3.org/2000/svg",
@@ -1447,8 +1455,8 @@ const SvgToasterError = ({
1447
1455
  titleId,
1448
1456
  ...props
1449
1457
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1450
- width: "1em",
1451
- height: "1em",
1458
+ width: "24",
1459
+ height: "24",
1452
1460
  viewBox: "0 0 24 24",
1453
1461
  fill: "none",
1454
1462
  xmlns: "http://www.w3.org/2000/svg",
@@ -1465,8 +1473,8 @@ const SvgToasterClose = ({
1465
1473
  titleId,
1466
1474
  ...props
1467
1475
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1468
- width: "1em",
1469
- height: "1em",
1476
+ width: "18",
1477
+ height: "18",
1470
1478
  viewBox: "0 0 18 18",
1471
1479
  fill: "none",
1472
1480
  xmlns: "http://www.w3.org/2000/svg",
@@ -1483,8 +1491,8 @@ const SvgToasterWarning = ({
1483
1491
  titleId,
1484
1492
  ...props
1485
1493
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1486
- width: "1em",
1487
- height: "1em",
1494
+ width: "24",
1495
+ height: "24",
1488
1496
  viewBox: "0 0 24 21",
1489
1497
  fill: "none",
1490
1498
  xmlns: "http://www.w3.org/2000/svg",
@@ -1501,8 +1509,8 @@ const SvgToasterSuccess = ({
1501
1509
  titleId,
1502
1510
  ...props
1503
1511
  }) => /*#__PURE__*/React.createElement("svg", _extends({
1504
- width: "1em",
1505
- height: "1em",
1512
+ width: "24",
1513
+ height: "24",
1506
1514
  viewBox: "0 0 24 24",
1507
1515
  fill: "none",
1508
1516
  xmlns: "http://www.w3.org/2000/svg",
@@ -1601,12 +1609,12 @@ const Toast = ({
1601
1609
  }
1602
1610
  }, /*#__PURE__*/React__default.createElement("p", {
1603
1611
  style: {
1612
+ margin: '0px',
1604
1613
  fontWeight: 600,
1605
1614
  color: '#3C393E',
1606
1615
  fontSize: '16px',
1607
1616
  lineHeight: '22px',
1608
- fontStyle: 'normal',
1609
- fontFamily: ''
1617
+ fontStyle: 'normal'
1610
1618
  }
1611
1619
  }, title ? title.length > 25 ? title.substr(0, 25) + '...' : title : ''), /*#__PURE__*/React__default.createElement("span", {
1612
1620
  style: {
@@ -1770,7 +1778,23 @@ const Toaster = () => {
1770
1778
  });
1771
1779
  };
1772
1780
 
1773
- var ReactInfoIcon = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8 0C3.58214 0 0 3.58214 0 8C0 12.4179 3.58214 16 8 16C12.4179 16 16 12.4179 16 8C16 3.58214 12.4179 0 8 0ZM8.57143 11.8571C8.57143 11.9357 8.50714 12 8.42857 12H7.57143C7.49286 12 7.42857 11.9357 7.42857 11.8571V7C7.42857 6.92143 7.49286 6.85714 7.57143 6.85714H8.42857C8.50714 6.85714 8.57143 6.92143 8.57143 7V11.8571ZM8 5.71429C7.7757 5.70971 7.56213 5.61739 7.40513 5.45714C7.24812 5.2969 7.16018 5.08149 7.16018 4.85714C7.16018 4.6328 7.24812 4.41739 7.40513 4.25714C7.56213 4.0969 7.7757 4.00458 8 4C8.2243 4.00458 8.43787 4.0969 8.59488 4.25714C8.75189 4.41739 8.83982 4.6328 8.83982 4.85714C8.83982 5.08149 8.75189 5.2969 8.59488 5.45714C8.43787 5.61739 8.2243 5.70971 8 5.71429Z\" fill=\"#D1D1D1\"/>\n</svg>";
1781
+ const SvgTooltip = ({
1782
+ title,
1783
+ titleId,
1784
+ ...props
1785
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
1786
+ width: "16",
1787
+ height: "16",
1788
+ viewBox: "0 0 16 16",
1789
+ fill: "none",
1790
+ xmlns: "http://www.w3.org/2000/svg",
1791
+ "aria-labelledby": titleId
1792
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
1793
+ id: titleId
1794
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
1795
+ d: "M8 0a8 8 0 1 0 .001 16.001A8 8 0 0 0 8 0Zm.571 11.857A.143.143 0 0 1 8.43 12H7.57a.143.143 0 0 1-.142-.143V7c0-.079.064-.143.142-.143h.858c.078 0 .142.064.142.143v4.857ZM8 5.714A.857.857 0 0 1 8 4a.857.857 0 0 1 0 1.714Z",
1796
+ fill: "#D1D1D1"
1797
+ }));
1774
1798
 
1775
1799
  var css_248z$5 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
1776
1800
  var styles$4 = {"tooltip-block":"tooltip-module_tooltip-block__v8U9u","tooltip":"tooltip-module_tooltip__emM6A","tooltip-rel":"tooltip-module_tooltip-rel__to9gq","tooltip-decor":"tooltip-module_tooltip-decor__qvt7t"};
@@ -1846,9 +1870,7 @@ const Tooltip = ({
1846
1870
  cursor: 'pointer'
1847
1871
  },
1848
1872
  onClick: handleShow
1849
- }, tooltipIcon ? tooltipIcon : /*#__PURE__*/React__default.createElement("img", {
1850
- src: ReactInfoIcon
1851
- })));
1873
+ }, tooltipIcon ? tooltipIcon : /*#__PURE__*/React__default.createElement(SvgTooltip, null)));
1852
1874
  };
1853
1875
  Tooltip.propTypes = {
1854
1876
  type: PropTypes.string,
@@ -1906,7 +1928,7 @@ const SvgCaptchaArrowDown = ({
1906
1928
  fill: "#00236A"
1907
1929
  }));
1908
1930
 
1909
- var css_248z$4 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/icons/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/icons/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/icons/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
1931
+ var css_248z$4 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
1910
1932
  var styles$3 = {"start-point":"captcha-module_start-point__LkOqy","range":"captcha-module_range__k24I2","range-default":"captcha-module_range-default__-O0QD","range-error":"captcha-module_range-error__FKMfG","range-success":"captcha-module_range-success__VzLPq"};
1911
1933
  styleInject(css_248z$4);
1912
1934
 
@@ -1932,12 +1954,13 @@ const Captcha = ({
1932
1954
  if (!getRange) {
1933
1955
  alert('Please add getRange property on Captcha component');
1934
1956
  }
1935
- if (range > 100) {
1957
+ if (range >= 100) {
1936
1958
  setRangeNumber(100);
1937
- } else if (range < 0) {
1959
+ } else if (range <= 0) {
1938
1960
  setRangeNumber(0);
1939
1961
  } else {
1940
- setRangeNumber(range);
1962
+ const roundedRange = Math.ceil(range / 5) * 5;
1963
+ setRangeNumber(Math.min(roundedRange, 100));
1941
1964
  }
1942
1965
  }, [range, getRange]);
1943
1966
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement("p", {
@@ -1985,6 +2008,7 @@ const Captcha = ({
1985
2008
  }
1986
2009
  }), /*#__PURE__*/React__default.createElement("input", {
1987
2010
  min: 0,
2011
+ step: 5,
1988
2012
  max: 100,
1989
2013
  type: "range",
1990
2014
  value: rangeProgress,
@@ -1997,7 +2021,7 @@ const Captcha = ({
1997
2021
  },
1998
2022
  className: `
1999
2023
  ${styles$3['range']}
2000
- ${rangeProgress >= rangeNumber ? styles$3['range-success'] : rangeProgress < rangeNumber && rangeProgress > 0 ? styles$3['range-error'] : styles$3['range-default']}
2024
+ ${+rangeProgress === rangeNumber ? styles$3['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$3['range-error'] : styles$3['range-default']}
2001
2025
  `,
2002
2026
  onInput: handleRange
2003
2027
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -2008,7 +2032,7 @@ const Captcha = ({
2008
2032
  width: rangeProgress + '%',
2009
2033
  height: '4px',
2010
2034
  borderRadius: '2px',
2011
- backgroundColor: rangeProgress >= rangeNumber ? '#0DA574' : rangeProgress < rangeNumber && rangeProgress > 0 ? '#EE0000' : 'transparent',
2035
+ backgroundColor: +rangeProgress === rangeNumber ? '#0DA574' : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? '#EE0000' : 'transparent',
2012
2036
  borderRadius: '2px',
2013
2037
  zIndex: -1
2014
2038
  }
@@ -2017,7 +2041,8 @@ const Captcha = ({
2017
2041
  position: 'absolute',
2018
2042
  bottom: '0px',
2019
2043
  height: '15px',
2020
- left: `calc(${rangeNumber}% - 6px)`
2044
+ left: `calc(${rangeNumber}% - 6px)`,
2045
+ transform: 'translate(-50% -50%)'
2021
2046
  }
2022
2047
  }, /*#__PURE__*/React__default.createElement(SvgCaptchaArrowUp, null))));
2023
2048
  };
@@ -2060,6 +2085,549 @@ Stepper.propTypes = {
2060
2085
  activeSteps: PropTypes.number
2061
2086
  };
2062
2087
 
2088
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
2089
+ // require the crypto API and do not support built-in fallback to lower quality random number
2090
+ // generators (like Math.random()).
2091
+ var getRandomValues;
2092
+ var rnds8 = new Uint8Array(16);
2093
+ function rng() {
2094
+ // lazy load so that environments that need to polyfill have a chance to do so
2095
+ if (!getRandomValues) {
2096
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
2097
+ // find the complete implementation of crypto (msCrypto) on IE11.
2098
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
2099
+
2100
+ if (!getRandomValues) {
2101
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
2102
+ }
2103
+ }
2104
+
2105
+ return getRandomValues(rnds8);
2106
+ }
2107
+
2108
+ var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
2109
+
2110
+ function validate(uuid) {
2111
+ return typeof uuid === 'string' && REGEX.test(uuid);
2112
+ }
2113
+
2114
+ /**
2115
+ * Convert array of 16 byte values to UUID string format of the form:
2116
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
2117
+ */
2118
+
2119
+ var byteToHex = [];
2120
+
2121
+ for (var i = 0; i < 256; ++i) {
2122
+ byteToHex.push((i + 0x100).toString(16).substr(1));
2123
+ }
2124
+
2125
+ function stringify(arr) {
2126
+ var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
2127
+ // Note: Be careful editing this code! It's been tuned for performance
2128
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
2129
+ var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
2130
+ // of the following:
2131
+ // - One or more input array values don't map to a hex octet (leading to
2132
+ // "undefined" in the uuid)
2133
+ // - Invalid input values for the RFC `version` or `variant` fields
2134
+
2135
+ if (!validate(uuid)) {
2136
+ throw TypeError('Stringified UUID is invalid');
2137
+ }
2138
+
2139
+ return uuid;
2140
+ }
2141
+
2142
+ function v4(options, buf, offset) {
2143
+ options = options || {};
2144
+ var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
2145
+
2146
+ rnds[6] = rnds[6] & 0x0f | 0x40;
2147
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
2148
+
2149
+ if (buf) {
2150
+ offset = offset || 0;
2151
+
2152
+ for (var i = 0; i < 16; ++i) {
2153
+ buf[offset + i] = rnds[i];
2154
+ }
2155
+
2156
+ return buf;
2157
+ }
2158
+
2159
+ return stringify(rnds);
2160
+ }
2161
+
2162
+ const SvgUpload = ({
2163
+ title,
2164
+ titleId,
2165
+ ...props
2166
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2167
+ width: "51",
2168
+ height: "35",
2169
+ viewBox: "0 0 51 35",
2170
+ fill: "none",
2171
+ xmlns: "http://www.w3.org/2000/svg",
2172
+ "aria-labelledby": titleId
2173
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2174
+ id: titleId
2175
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
2176
+ d: "M41.54 11.842h-.017c-.23-3.225-2.902-5.772-6.167-5.772-1.08 0-2.095.28-2.979.77C30.267 2.774 26.041 0 21.167 0 14.318 0 8.742 5.483 8.534 12.326 3.758 12.708 0 16.726 0 21.63c0 5.155 4.153 9.334 9.277 9.334h22.625a10.987 10.987 0 0 1-.888-4.334c0-6.059 4.899-10.987 10.918-10.987 3.773 0 7.106 1.938 9.068 4.875-.444-4.864-4.508-8.675-9.46-8.675ZM15.654 6.975c-.072.06-.144.12-.211.185-.266.259-.512.53-.705.849-.741 1.218-.882 2.523-.72 3.927.156 1.35-1.942 1.334-2.095 0-.289-2.493.504-5.307 2.664-6.775 1.12-.763 2.164 1.052 1.067 1.814Zm-.022.015c-.047.035-.111.093 0 0Z",
2177
+ fill: "#D1D1D1"
2178
+ }), /*#__PURE__*/React.createElement("path", {
2179
+ fillRule: "evenodd",
2180
+ clipRule: "evenodd",
2181
+ d: "M41.822 17.245c-4.864 0-8.822 3.982-8.822 8.878C33 31.018 36.958 35 41.822 35c4.864 0 8.822-3.982 8.822-8.877 0-4.896-3.959-8.878-8.822-8.878Zm-.536 13.005v-6.689l-3.067 3.22a.69.69 0 0 1-1.01 0 .777.777 0 0 1 0-1.06l4.286-4.5A.71.71 0 0 1 42 21a.684.684 0 0 1 .505.22l4.286 4.5a.777.777 0 0 1 0 1.06.69.69 0 0 1-1.01 0l-3.067-3.22v6.69c0 .414-.32.75-.714.75-.395 0-.714-.336-.714-.75Z",
2182
+ fill: "#0DA574"
2183
+ }));
2184
+
2185
+ const SvgRemoveFile = ({
2186
+ title,
2187
+ titleId,
2188
+ ...props
2189
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2190
+ width: "26",
2191
+ height: "26",
2192
+ viewBox: "0 0 26 26",
2193
+ fill: "none",
2194
+ xmlns: "http://www.w3.org/2000/svg",
2195
+ "aria-labelledby": titleId
2196
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2197
+ id: titleId
2198
+ }, title) : null, /*#__PURE__*/React.createElement("rect", {
2199
+ width: 26,
2200
+ height: 26,
2201
+ rx: 6,
2202
+ fill: "#FBFBFB"
2203
+ }), /*#__PURE__*/React.createElement("path", {
2204
+ d: "M13 4c.822 0 1.611.296 2.206.826s.95 1.255.99 2.024l.005.15h4c.204 0 .4.073.548.205.148.13.238.31.25.501a.72.72 0 0 1-.185.525.817.817 0 0 1-.52.264l-.093.005h-.68l-.943 10.915a2.75 2.75 0 0 1-.957 1.84 3.114 3.114 0 0 1-2.034.745h-5.173c-.754 0-1.48-.266-2.034-.745a2.75 2.75 0 0 1-.957-1.84L6.478 8.5H5.8a.831.831 0 0 1-.531-.19.736.736 0 0 1-.263-.472L5 7.75c0-.184.072-.361.202-.498a.818.818 0 0 1 .504-.247L5.8 7h4c0-.796.337-1.559.938-2.121A3.312 3.312 0 0 1 13 4Zm-1.8 6.938a.623.623 0 0 0-.394.138.553.553 0 0 0-.2.348l-.006.076v6l.006.076c.02.135.09.258.2.348.11.09.25.138.394.138.145 0 .285-.049.395-.138.109-.09.18-.213.2-.348l.005-.076v-6l-.005-.076a.553.553 0 0 0-.2-.348.624.624 0 0 0-.395-.139Zm3.6 0a.623.623 0 0 0-.394.138.553.553 0 0 0-.2.348l-.005.076v6l.005.076c.02.135.091.258.2.348.11.09.25.138.394.138.145 0 .286-.049.395-.138.11-.09.18-.213.2-.348l.006-.076v-6l-.006-.076a.553.553 0 0 0-.2-.348.624.624 0 0 0-.395-.139ZM13 5.5a1.66 1.66 0 0 0-1.088.4c-.296.257-.477.61-.508.987L11.4 7h3.2l-.003-.112a1.465 1.465 0 0 0-.508-.988A1.66 1.66 0 0 0 13 5.5Z",
2205
+ fill: "#00236A"
2206
+ }));
2207
+
2208
+ const SvgListItemPdf = ({
2209
+ title,
2210
+ titleId,
2211
+ ...props
2212
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2213
+ width: "32",
2214
+ height: "42",
2215
+ viewBox: "0 0 32 42",
2216
+ fill: "none",
2217
+ xmlns: "http://www.w3.org/2000/svg",
2218
+ "aria-labelledby": titleId
2219
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2220
+ id: titleId
2221
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
2222
+ fillRule: "evenodd",
2223
+ clipRule: "evenodd",
2224
+ d: "M31.862 10.64c.007.01.015.02.022.027l.116.108v28.328c0 .768-.306 1.505-.852 2.049a2.917 2.917 0 0 1-2.057.848H2.909a2.917 2.917 0 0 1-2.057-.848A2.891 2.891 0 0 1 0 39.103V2.897C0 2.128.306 1.392.852.848A2.917 2.917 0 0 1 2.909 0h18.27l.108.116.03.025.028.026.025.02.026.023L31.79 10.558c.02.018.037.037.052.058l.02.025Zm-1.743 29.486a1.45 1.45 0 0 0 .427-1.022v-8.77H13.95a.716.716 0 0 1-.546-.246l-1.963-2.238H1.455v11.254c.001.383.155.751.427 1.022.273.272.642.425 1.027.426h26.182a1.463 1.463 0 0 0 1.027-.426ZM4.364 17.633c0 .4.324.724.724.724h21.825a.724.724 0 1 0 0-1.448H5.088c-.4 0-.724.324-.724.724Zm23.273 3.186c0-.4-.325-.724-.724-.724H15.48a.724.724 0 0 0 0 1.448h11.432c.4 0 .724-.324.724-.724Zm-.724-5.641a.724.724 0 1 0 0-1.449H5.088a.724.724 0 1 0 0 1.449h21.825Zm-22.55-3.91c0 .4.325.723.725.723H16.52a.724.724 0 0 0 0-1.448H5.088c-.4 0-.724.324-.724.724Zm17.672-1.345c.272.27.642.423 1.027.425h6.458l-7.913-7.879V8.9c.002.384.155.752.428 1.024ZM10.43 36.013H9.103v2.385H8V32h2.43c.495 0 .916.088 1.261.264.349.172.614.413.796.72.181.305.272.654.272 1.046 0 .413-.09.768-.272 1.064a1.754 1.754 0 0 1-.796.68c-.345.16-.766.238-1.26.238Zm-1.327-3.134v2.259h1.327c.29 0 .525-.047.703-.14a.877.877 0 0 0 .391-.388c.085-.167.128-.357.128-.57 0-.203-.043-.392-.128-.568a.971.971 0 0 0-.39-.43c-.18-.109-.414-.163-.704-.163H9.103Zm6.504 5.52h-1.859V32H15.646c.425 0 .813.072 1.165.215.352.141.655.345.91.611.258.267.455.586.593.958.138.372.206.788.206 1.248v.339c0 .46-.068.876-.206 1.248a2.714 2.714 0 0 1-.593.958 2.662 2.662 0 0 1-.923.61c-.355.141-.752.211-1.191.211Zm0-.875h-.756v-4.645h.795c.285 0 .535.047.752.14.22.094.404.232.554.414a1.8 1.8 0 0 1 .342.672c.08.267.12.573.12.918v.348c0 .445-.07.829-.208 1.151-.134.322-.336.57-.606.743-.267.172-.598.259-.993.259Zm5.124-2.725v-1.92h2.975V32h-4.078v6.398h1.103v-2.724h2.61v-.875h-2.61Z",
2225
+ fill: "#051942"
2226
+ }));
2227
+
2228
+ const SvgListItemJpg = ({
2229
+ title,
2230
+ titleId,
2231
+ ...props
2232
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2233
+ width: "32",
2234
+ height: "42",
2235
+ viewBox: "0 0 32 42",
2236
+ fill: "none",
2237
+ xmlns: "http://www.w3.org/2000/svg",
2238
+ "aria-labelledby": titleId
2239
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2240
+ id: titleId
2241
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
2242
+ fillRule: "evenodd",
2243
+ clipRule: "evenodd",
2244
+ d: "M31.862 10.64c.007.01.015.02.022.027l.116.108v28.328c0 .768-.306 1.505-.852 2.049a2.917 2.917 0 0 1-2.057.848H2.909a2.917 2.917 0 0 1-2.057-.848A2.891 2.891 0 0 1 0 39.103V2.897C0 2.128.306 1.392.852.848A2.917 2.917 0 0 1 2.909 0h18.27l.108.116.03.025.028.026.025.02.026.023L31.79 10.558c.02.018.037.037.052.058l.02.025Zm-1.743 29.486a1.45 1.45 0 0 0 .427-1.022v-8.77H13.95a.716.716 0 0 1-.546-.246l-1.963-2.238H1.455v11.254c.001.383.155.751.427 1.022.273.272.642.425 1.027.426h26.182a1.463 1.463 0 0 0 1.027-.426ZM4.364 17.633c0 .4.324.724.724.724h21.825a.724.724 0 1 0 0-1.448H5.088c-.4 0-.724.324-.724.724Zm23.273 3.186c0-.4-.325-.724-.724-.724H15.48a.724.724 0 0 0 0 1.448h11.432c.4 0 .724-.324.724-.724Zm-.724-5.641a.724.724 0 1 0 0-1.449H5.088a.724.724 0 1 0 0 1.449h21.825Zm-22.55-3.91c0 .4.325.723.725.723H16.52a.724.724 0 0 0 0-1.448H5.088c-.4 0-.724.324-.724.724Zm17.672-1.345c.272.27.642.423 1.027.425h6.458l-7.913-7.879V8.9c.002.384.155.752.428 1.024Zm2.071 27.737v-2.443h-2.43v.822h1.331v1.27a1.19 1.19 0 0 1-.224.175c-.094.059-.221.11-.382.154a2.579 2.579 0 0 1-.62.062c-.258 0-.489-.047-.694-.14a1.408 1.408 0 0 1-.523-.427 2.062 2.062 0 0 1-.325-.69 3.614 3.614 0 0 1-.11-.936v-.453c0-.346.032-.653.097-.923.064-.27.16-.498.285-.685.13-.188.29-.33.484-.426.193-.097.417-.146.672-.146.296 0 .536.052.72.154.188.1.332.238.431.413.103.176.172.375.207.598h1.081a2.633 2.633 0 0 0-.356-1.055 1.913 1.913 0 0 0-.8-.72c-.343-.176-.776-.264-1.3-.264-.41 0-.778.069-1.104.206a2.204 2.204 0 0 0-.826.598 2.742 2.742 0 0 0-.527.967c-.12.378-.18.809-.18 1.292v.444c0 .486.066.92.197 1.3.132.378.318.7.559.963.243.264.531.464.865.602.334.135.702.202 1.103.202.472 0 .866-.051 1.182-.154.317-.102.57-.224.76-.364a2.13 2.13 0 0 0 .427-.396Zm-13.03-1.094v-4.478h1.099v4.478c0 .425-.091.786-.273 1.085-.181.3-.429.528-.742.686-.314.158-.67.237-1.068.237-.407 0-.77-.069-1.086-.206a1.622 1.622 0 0 1-.738-.633C8.09 37.45 8 37.09 8 36.654h1.107c0 .252.04.455.12.61a.755.755 0 0 0 .342.335c.15.067.324.1.523.1a.99.99 0 0 0 .505-.127.909.909 0 0 0 .352-.382c.085-.17.127-.378.127-.624Zm4.799-.466h-1.327v2.386h-1.103v-6.398h2.43c.495 0 .916.088 1.261.264.349.172.614.413.796.72.181.305.272.654.272 1.046 0 .413-.09.768-.272 1.064a1.753 1.753 0 0 1-.796.68c-.345.159-.766.238-1.261.238Zm-1.327-3.133v2.259h1.327c.29 0 .524-.047.703-.141a.876.876 0 0 0 .391-.387c.085-.167.128-.357.128-.571 0-.202-.043-.391-.128-.567a.97.97 0 0 0-.39-.43c-.18-.109-.414-.163-.704-.163h-1.327Z",
2245
+ fill: "#051942"
2246
+ }));
2247
+
2248
+ const SvgListItemDelete = ({
2249
+ title,
2250
+ titleId,
2251
+ ...props
2252
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2253
+ width: "22",
2254
+ height: "22",
2255
+ viewBox: "0 0 22 22",
2256
+ fill: "none",
2257
+ xmlns: "http://www.w3.org/2000/svg",
2258
+ "aria-labelledby": titleId
2259
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2260
+ id: titleId
2261
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
2262
+ d: "M7.071 3.144V.786A.786.786 0 0 1 7.857 0h6.286a.786.786 0 0 1 .786.786v2.358h6.285a.786.786 0 0 1 0 1.572H.786a.786.786 0 1 1 0-1.572H7.07Zm1.572 0h4.714V1.573H8.643v1.571ZM3.143 22a.786.786 0 0 1-.786-.786V4.716h17.286v16.498a.786.786 0 0 1-.786.786H3.143Zm5.5-4.714a.786.786 0 0 0 .786-.786V8.644a.786.786 0 0 0-1.572 0V16.5a.785.785 0 0 0 .786.786Zm4.714 0a.785.785 0 0 0 .786-.786V8.644a.785.785 0 0 0-1.572 0V16.5a.785.785 0 0 0 .786.786Z",
2263
+ fill: "#051942"
2264
+ }));
2265
+
2266
+ const SvgDeleteComponent = ({
2267
+ title,
2268
+ titleId,
2269
+ ...props
2270
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2271
+ width: "26",
2272
+ height: "26",
2273
+ viewBox: "0 0 26 26",
2274
+ fill: "none",
2275
+ xmlns: "http://www.w3.org/2000/svg",
2276
+ "aria-labelledby": titleId
2277
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2278
+ id: titleId
2279
+ }, title) : null, /*#__PURE__*/React.createElement("rect", {
2280
+ x: 0.5,
2281
+ y: 0.5,
2282
+ width: 25,
2283
+ height: 25,
2284
+ rx: 5.5,
2285
+ stroke: "#D1D1D1"
2286
+ }), /*#__PURE__*/React.createElement("path", {
2287
+ d: "M13 4c.822 0 1.611.296 2.206.826s.95 1.255.99 2.024l.005.15h4c.204 0 .4.073.548.205.148.13.238.31.25.501a.72.72 0 0 1-.185.525.817.817 0 0 1-.52.264l-.093.005h-.68l-.943 10.915a2.75 2.75 0 0 1-.957 1.84 3.114 3.114 0 0 1-2.034.745h-5.173c-.754 0-1.48-.266-2.034-.745a2.75 2.75 0 0 1-.957-1.84L6.478 8.5H5.8a.831.831 0 0 1-.531-.19.736.736 0 0 1-.263-.472L5 7.75c0-.184.072-.361.202-.498a.818.818 0 0 1 .504-.247L5.8 7h4c0-.796.337-1.559.938-2.121A3.312 3.312 0 0 1 13 4Zm-1.8 6.938a.623.623 0 0 0-.394.138.553.553 0 0 0-.2.348l-.006.076v6l.006.076c.02.135.09.258.2.348.11.09.25.138.394.138.145 0 .285-.049.395-.138.109-.09.18-.213.2-.348l.005-.076v-6l-.005-.076a.553.553 0 0 0-.2-.348.624.624 0 0 0-.395-.139Zm3.6 0a.623.623 0 0 0-.394.138.553.553 0 0 0-.2.348l-.005.076v6l.005.076c.02.135.091.258.2.348.11.09.25.138.394.138.145 0 .286-.049.395-.138.11-.09.18-.213.2-.348l.006-.076v-6l-.006-.076a.553.553 0 0 0-.2-.348.624.624 0 0 0-.395-.139ZM13 5.5a1.66 1.66 0 0 0-1.088.4c-.296.257-.477.61-.508.987L11.4 7h3.2l-.003-.112a1.465 1.465 0 0 0-.508-.988A1.66 1.66 0 0 0 13 5.5Z",
2288
+ fill: "#E00"
2289
+ }));
2290
+
2291
+ const NewFile = ({
2292
+ size,
2293
+ name,
2294
+ color,
2295
+ label,
2296
+ width,
2297
+ weight,
2298
+ height,
2299
+ radius,
2300
+ change,
2301
+ border,
2302
+ maxSize,
2303
+ disabled,
2304
+ multiple,
2305
+ required,
2306
+ errorSize,
2307
+ labelSize,
2308
+ labelColor,
2309
+ errorColor,
2310
+ filesArray,
2311
+ borderColor,
2312
+ uploadColor,
2313
+ defaultData,
2314
+ errorMessage,
2315
+ fileExtensions,
2316
+ backgroundColor,
2317
+ deleteComponent,
2318
+ borderHoverColor,
2319
+ progressTrackColor,
2320
+ labelRequiredColor,
2321
+ hiddenBackgroundColor,
2322
+ extentionsRowMarginTop,
2323
+ listItemBackgroundColor
2324
+ }) => {
2325
+ const ref = useRef(null);
2326
+ const inpRef = useRef(null);
2327
+ const [error, setError] = useState('');
2328
+ const [image, setImage] = useState('');
2329
+ const [progress, setProgress] = useState(5);
2330
+ const [isHover, setIsHover] = useState(false);
2331
+ const [multipleFiles, setMultipleFiles] = useState([]);
2332
+ const configStyles = compereConfigs();
2333
+ const handleRemoveComponent = () => {
2334
+ const node = ReactDOM.findDOMNode(ref.current);
2335
+ const parent = node.parentNode;
2336
+ parent.removeChild(node);
2337
+ };
2338
+ const handleRemoveFile = () => {
2339
+ if (!multiple) {
2340
+ setImage('');
2341
+ onChange(null);
2342
+ }
2343
+ };
2344
+ const handleChange = e => {
2345
+ const file = e.target.files;
2346
+ if (file[0]) {
2347
+ if (file[0].size <= maxSize * Math.pow(2, 20)) {
2348
+ if (fileExtensions.includes(file[0].type.split('/')[1])) {
2349
+ setError('');
2350
+ if (multiple) {
2351
+ change({
2352
+ uuid: v4(),
2353
+ file: file[0]
2354
+ });
2355
+ } else {
2356
+ change({
2357
+ file
2358
+ });
2359
+ if (file[0].type === 'application/pdf') {
2360
+ setImage('pdf');
2361
+ } else {
2362
+ setImage(URL.createObjectURL(file[0]));
2363
+ }
2364
+ }
2365
+ } else {
2366
+ setImage('');
2367
+ setError('ֆայլի սխալ ֆորմատ');
2368
+ }
2369
+ } else {
2370
+ setImage('');
2371
+ setError('առավելագույն ծավալ');
2372
+ }
2373
+ } else {
2374
+ // TODO:
2375
+ if (!multiple || multiple && filesArray && filesArray.length === 0) {
2376
+ setImage('');
2377
+ setError('Ֆայլը ընտրված չէ');
2378
+ }
2379
+ }
2380
+ };
2381
+ const handleClick = () => {
2382
+ if (!image) {
2383
+ inpRef.current.click();
2384
+ }
2385
+ };
2386
+ const handleMouseEnter = () => {
2387
+ setIsHover(true);
2388
+ };
2389
+ const handleMouseLeave = () => {
2390
+ setIsHover(false);
2391
+ };
2392
+ const handleStopPropagation = e => {
2393
+ e.stopPropagation();
2394
+ };
2395
+ useEffect(() => {
2396
+ if (!multiple && defaultData) {
2397
+ if (defaultData.type && defaultData.type !== 'application/pdf') {
2398
+ setImage(defaultData.url);
2399
+ } else {
2400
+ setImage('pdf');
2401
+ }
2402
+ }
2403
+ if (multiple && !filesArray) {
2404
+ alert('In multiple mode, you should add filesArray prop for drawing files');
2405
+ }
2406
+ if (filesArray) {
2407
+ setMultipleFiles(filesArray);
2408
+ }
2409
+ }, [multiple, filesArray && filesArray.length, defaultData]);
2410
+ useEffect(() => {
2411
+ if (errorMessage) {
2412
+ setError(errorMessage);
2413
+ } else {
2414
+ setError('');
2415
+ }
2416
+ }, [errorMessage]);
2417
+ useEffect(() => {
2418
+ if (!change) {
2419
+ alert('Please add change prop on File component');
2420
+ }
2421
+ }, [change]);
2422
+ console.log(multipleFiles, 'multipleFiles');
2423
+ return /*#__PURE__*/React__default.createElement("div", {
2424
+ ref: ref,
2425
+ style: {
2426
+ width: width ? width : configStyles.File.width
2427
+ }
2428
+ }, /*#__PURE__*/React__default.createElement("div", {
2429
+ style: {
2430
+ display: 'flex',
2431
+ marginBottom: '6px',
2432
+ alignItems: 'center',
2433
+ justifyContent: label ? 'space-between' : 'flex-end'
2434
+ }
2435
+ }, label && /*#__PURE__*/React__default.createElement("label", {
2436
+ style: {
2437
+ color: labelColor ? labelColor : configStyles.File.labelColor,
2438
+ fontSize: labelSize ? labelSize : configStyles.File.labelSize
2439
+ }
2440
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", {
2441
+ style: {
2442
+ color: labelRequiredColor ? labelRequiredColor : configStyles.File.labelRequiredColor
2443
+ }
2444
+ }, "*")), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
2445
+ style: {
2446
+ cursor: 'pointer'
2447
+ },
2448
+ onClick: handleRemoveComponent
2449
+ }, /*#__PURE__*/React__default.createElement(SvgDeleteComponent, null))), /*#__PURE__*/React__default.createElement("div", {
2450
+ style: {
2451
+ width: '100%',
2452
+ display: 'flex',
2453
+ alignItems: 'center',
2454
+ position: 'relative',
2455
+ boxSizing: 'border-box',
2456
+ justifyContent: 'center',
2457
+ cursor: !disabled ? 'pointer' : 'not-allowed',
2458
+ height: height ? height : configStyles.File.height,
2459
+ border: border ? border : configStyles.File.border,
2460
+ borderRadius: radius ? radius : configStyles.File.radius,
2461
+ backgroundColor: backgroundColor ? backgroundColor : configStyles.File.backgroundColor,
2462
+ borderColor: error ? errorColor ? errorColor : configStyles.File.errorColor : disabled ? borderColor ? borderColor : configStyles.File.borderColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.File.borderHoverColor : borderColor ? borderColor : configStyles.File.borderColor
2463
+ },
2464
+ onClick: handleClick,
2465
+ onMouseEnter: handleMouseEnter,
2466
+ onMouseLeave: handleMouseLeave
2467
+ }, /*#__PURE__*/React__default.createElement("input", {
2468
+ hidden: true,
2469
+ name: name,
2470
+ type: "file",
2471
+ ref: inpRef,
2472
+ disabled: disabled,
2473
+ onChange: handleChange
2474
+ }), /*#__PURE__*/React__default.createElement("div", {
2475
+ style: {
2476
+ width: '100%',
2477
+ height: '100%',
2478
+ display: 'flex',
2479
+ textAlign: 'center',
2480
+ alignItems: 'center',
2481
+ flexDirection: 'column',
2482
+ justifyContent: 'center',
2483
+ color: color ? color : configStyles.File.color,
2484
+ fontSize: size ? size : configStyles.File.size,
2485
+ fontWeight: weight ? weight : configStyles.File.weight
2486
+ }
2487
+ }, !multiple && image ? image === 'pdf' ? /*#__PURE__*/React__default.createElement(PDF, null) : /*#__PURE__*/React__default.createElement("img", {
2488
+ src: image,
2489
+ style: {
2490
+ maxHeight: '100%'
2491
+ },
2492
+ alt: "file preview"
2493
+ }) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(SvgUpload, null)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
2494
+ style: {
2495
+ margin: '0px'
2496
+ }
2497
+ }, "\u054F\u0565\u0572\u0561\u0564\u0580\u0565\u056C \u0586\u0561\u0575\u056C\u0568 \u0561\u0575\u057D\u057F\u0565\u0572", /*#__PURE__*/React__default.createElement("br", null), "\u056F\u0561\u0574 ", /*#__PURE__*/React__default.createElement("span", {
2498
+ style: {
2499
+ color: uploadColor ? uploadColor : configStyles.File.uploadColor
2500
+ }
2501
+ }, "\u0532\u0565\u057C\u0576\u0565\u056C"))), /*#__PURE__*/React__default.createElement("div", {
2502
+ style: {
2503
+ marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.File.extentionsRowMarginTop
2504
+ }
2505
+ }, /*#__PURE__*/React__default.createElement("p", {
2506
+ style: {
2507
+ margin: '0px'
2508
+ }
2509
+ }, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default.createElement("div", {
2510
+ style: {
2511
+ position: 'absolute',
2512
+ top: '0px',
2513
+ left: '0px',
2514
+ zIndex: '1',
2515
+ width: '100%',
2516
+ height: '100%',
2517
+ padding: '10px',
2518
+ cursor: 'default',
2519
+ boxSizing: 'border-box',
2520
+ alignItems: 'flex-start',
2521
+ justifyContent: 'flex-end',
2522
+ borderRadius: radius ? radius : configStyles.File.radius,
2523
+ display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
2524
+ backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.File.hiddenBackgroundColor
2525
+ },
2526
+ onClick: handleStopPropagation
2527
+ }, /*#__PURE__*/React__default.createElement("div", {
2528
+ style: {
2529
+ cursor: 'pointer'
2530
+ },
2531
+ onClick: handleRemoveFile
2532
+ }, /*#__PURE__*/React__default.createElement(SvgRemoveFile, null)))), error ? /*#__PURE__*/React__default.createElement("span", {
2533
+ style: {
2534
+ marginTop: '6px',
2535
+ display: 'inline-block',
2536
+ color: errorColor ? errorColor : configStyles.File.errorColor,
2537
+ fontSize: errorSize ? errorSize : configStyles.File.errorSize
2538
+ }
2539
+ }, error) : '', multiple && multipleFiles && multipleFiles.length > 0 && multipleFiles.map((item, index) => {
2540
+ return /*#__PURE__*/React__default.createElement("div", {
2541
+ key: `${item.file.name}_${index}`,
2542
+ style: {
2543
+ display: 'flex',
2544
+ width: '100%',
2545
+ height: '70px',
2546
+ marginTop: '6px',
2547
+ alignItems: 'center',
2548
+ padding: '14px 20px',
2549
+ boxSizing: 'border-box',
2550
+ justifyContent: 'space-between',
2551
+ borderRadius: radius ? radius : configStyles.File.radius,
2552
+ backgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.File.listItemBackgroundColor
2553
+ }
2554
+ }, /*#__PURE__*/React__default.createElement("div", {
2555
+ style: {
2556
+ width: '32px'
2557
+ }
2558
+ }, item.file.type.split('/')[1].toLowerCase() === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgListItemPdf, null) : item.file.type.split('/')[1].toLowerCase() === 'jpeg' ? /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : ''), /*#__PURE__*/React__default.createElement("div", {
2559
+ style: {
2560
+ position: 'relative',
2561
+ display: 'flex',
2562
+ height: '40px',
2563
+ margin: '0px 14px',
2564
+ alignItems: 'flex-end',
2565
+ width: 'calc(100% - 82px)'
2566
+ }
2567
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
2568
+ className: "new"
2569
+ }, item.file.name)), /*#__PURE__*/React__default.createElement("div", {
2570
+ style: {
2571
+ position: 'absolute',
2572
+ left: '0px',
2573
+ bottom: '5px',
2574
+ width: '100%',
2575
+ height: '4px',
2576
+ borderRadius: '10px',
2577
+ backgroundColor: progressTrackColor ? progressTrackColor : configStyles.File.progressTrackColor
2578
+ }
2579
+ }, /*#__PURE__*/React__default.createElement("div", {
2580
+ style: {
2581
+ width: progress + '%',
2582
+ height: '100%',
2583
+ borderRadius: '10px',
2584
+ backgroundColor: 'green'
2585
+ }
2586
+ }))), /*#__PURE__*/React__default.createElement("div", {
2587
+ style: {
2588
+ width: '22px',
2589
+ cursor: 'pointer'
2590
+ }
2591
+ }, /*#__PURE__*/React__default.createElement(SvgListItemDelete, null)));
2592
+ }));
2593
+ };
2594
+ NewFile.propTypes = {
2595
+ size: PropTypes.string,
2596
+ label: PropTypes.string,
2597
+ width: PropTypes.string,
2598
+ color: PropTypes.string,
2599
+ height: PropTypes.string,
2600
+ disabled: PropTypes.bool,
2601
+ radius: PropTypes.string,
2602
+ border: PropTypes.string,
2603
+ required: PropTypes.bool,
2604
+ weight: PropTypes.number,
2605
+ maxSize: PropTypes.number,
2606
+ errorSize: PropTypes.string,
2607
+ labelSize: PropTypes.string,
2608
+ labelColor: PropTypes.string,
2609
+ errorColor: PropTypes.string,
2610
+ borderColor: PropTypes.string,
2611
+ uploadColor: PropTypes.string,
2612
+ defaultData: PropTypes.object,
2613
+ errorMessage: PropTypes.string,
2614
+ deleteComponent: PropTypes.bool,
2615
+ backgroundColor: PropTypes.string,
2616
+ change: PropTypes.func.isRequired,
2617
+ borderHoverColor: PropTypes.string,
2618
+ labelRequiredColor: PropTypes.string,
2619
+ progressTrackColor: PropTypes.string,
2620
+ hiddenBackgroundColor: PropTypes.string,
2621
+ extentionsRowMarginTop: PropTypes.string,
2622
+ listItemBackgroundColor: PropTypes.string,
2623
+ filesArray: PropTypes.arrayOf(PropTypes.object),
2624
+ fileExtensions: PropTypes.arrayOf(PropTypes.string)
2625
+ };
2626
+ NewFile.defaultProps = {
2627
+ maxSize: 5,
2628
+ fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
2629
+ };
2630
+
2063
2631
  var css_248z$2 = "textarea::-webkit-scrollbar{width:6px}textarea::-webkit-scrollbar-track{background:#eee}textarea::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-track{border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px}textarea::-webkit-scrollbar-thumb{background:#d1d1d1}";
2064
2632
  styleInject(css_248z$2);
2065
2633
 
@@ -2090,10 +2658,12 @@ const Textarea = ({
2090
2658
  backgroundColor,
2091
2659
  borderFocusColor,
2092
2660
  borderHoverColor,
2661
+ showCharacterCount,
2093
2662
  labelRequiredColor
2094
2663
  }) => {
2095
2664
  const [isHover, setIsHover] = useState(false);
2096
2665
  const [isFocus, setIsFocus] = useState(false);
2666
+ const [innerValue, setInnerValue] = useState('');
2097
2667
  const configStyles = compereConfigs();
2098
2668
  const handleMouseEnter = () => {
2099
2669
  setIsHover(true);
@@ -2107,6 +2677,19 @@ const Textarea = ({
2107
2677
  const handleBlur = () => {
2108
2678
  setIsFocus(false);
2109
2679
  };
2680
+ const handleChange = e => {
2681
+ const value = e.target.value;
2682
+ onChange(value);
2683
+ if (maxLength) {
2684
+ if (value.length > maxLength) {
2685
+ onChange(value.substr(0, maxLength));
2686
+ }
2687
+ } else {
2688
+ if (value.length > configStyles.TEXTAREA.maxLength) {
2689
+ onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
2690
+ }
2691
+ }
2692
+ };
2110
2693
  useEffect(() => {
2111
2694
  if (value === undefined) {
2112
2695
  alert('Please add value prop on Textarea component');
@@ -2114,8 +2697,19 @@ const Textarea = ({
2114
2697
  if (!onChange) {
2115
2698
  alert('Please add onChange function on Textarea component');
2116
2699
  }
2700
+ setInnerValue(value);
2117
2701
  }, [value, onChange]);
2118
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
2702
+ return /*#__PURE__*/React__default.createElement("div", {
2703
+ style: {
2704
+ width: width ? width : configStyles.TEXTAREA.width
2705
+ }
2706
+ }, /*#__PURE__*/React__default.createElement("div", {
2707
+ style: {
2708
+ display: 'flex',
2709
+ alignItems: 'center',
2710
+ justifyContent: label ? 'space-between' : 'flex-end'
2711
+ }
2712
+ }, label ? /*#__PURE__*/React__default.createElement("label", {
2119
2713
  style: {
2120
2714
  color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
2121
2715
  fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize,
@@ -2126,12 +2720,17 @@ const Textarea = ({
2126
2720
  style: {
2127
2721
  color: labelRequiredColor ? labelRequiredColor : configStyles.TEXTAREA.labelRequiredColor
2128
2722
  }
2129
- }, "*")) : '', /*#__PURE__*/React__default.createElement("textarea", {
2723
+ }, "*")) : '', showCharacterCount && maxLength && /*#__PURE__*/React__default.createElement("span", {
2724
+ style: {
2725
+ color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
2726
+ fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize
2727
+ }
2728
+ }, maxLength - value.length, " \u0576\u056B\u0577")), /*#__PURE__*/React__default.createElement("textarea", {
2130
2729
  style: {
2730
+ width: '100%',
2131
2731
  outline: 'none',
2132
2732
  overflow: 'auto',
2133
2733
  fontSize: size ? size : configStyles.TEXTAREA.size,
2134
- width: width ? width : configStyles.TEXTAREA.width,
2135
2734
  height: height ? height : configStyles.TEXTAREA.height,
2136
2735
  border: border ? border : configStyles.TEXTAREA.border,
2137
2736
  padding: padding ? padding : configStyles.TEXTAREA.padding,
@@ -2145,13 +2744,13 @@ const Textarea = ({
2145
2744
  borderColor: isFocus ? borderFocusColor ? borderFocusColor : configStyles.TEXTAREA.borderFocusColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.TEXTAREA.borderHoverColor : borderColor ? borderColor : configStyles.TEXTAREA.borderColor,
2146
2745
  resize: resize ? resize : configStyles.TEXTAREA.resize
2147
2746
  },
2747
+ value: innerValue,
2148
2748
  onBlur: handleBlur,
2149
- onChange: onChange,
2150
2749
  onFocus: handleFocus,
2750
+ onChange: handleChange,
2151
2751
  placeholder: placeholder,
2152
2752
  onMouseEnter: handleMouseEnter,
2153
- onMouseLeave: handleMouseLeave,
2154
- value: maxLength ? value.length > maxLength ? value.substr(0, maxLength) : value : configStyles.TEXTAREA.maxLength ? value.length > configStyles.TEXTAREA.maxLength ? value.substr(0, configStyles.TEXTAREA.maxLength) : value : value
2753
+ onMouseLeave: handleMouseLeave
2155
2754
  }));
2156
2755
  };
2157
2756
  Textarea.propTypes = {
@@ -2177,6 +2776,7 @@ Textarea.propTypes = {
2177
2776
  placeholder: PropTypes.string,
2178
2777
  labelDisplay: PropTypes.string,
2179
2778
  backgroundColor: PropTypes.string,
2779
+ showCharacterCount: PropTypes.bool,
2180
2780
  value: PropTypes.string.isRequired,
2181
2781
  borderFocusColor: PropTypes.string,
2182
2782
  borderHoverColor: PropTypes.string,
@@ -2190,7 +2790,7 @@ styleInject(css_248z$1);
2190
2790
 
2191
2791
  // import styles from "./pagination.module.scss";
2192
2792
 
2193
- const Dots$1 = "...";
2793
+ const Dots = "...";
2194
2794
  const range = (start, end) => {
2195
2795
  const length = end - start + 1;
2196
2796
  return Array.from({
@@ -2220,29 +2820,29 @@ const PaginationRange = ({
2220
2820
  if (!shouldShowLeftDots && shouldShowRightDots) {
2221
2821
  let leftItemCount = currentPageNumber === 4 && lastPageIndex > 7 ? 4 + siblingCountNumber : 3 + siblingCountNumber;
2222
2822
  let leftRange = range(1, leftItemCount);
2223
- return [...leftRange, Dots$1, totalPageCount];
2823
+ return [...leftRange, Dots, totalPageCount];
2224
2824
  }
2225
2825
  if (shouldShowLeftDots && !shouldShowRightDots) {
2226
2826
  let rightItemCount = 0;
2227
2827
  currentPageNumber === lastPageIndex - 3 && lastPageIndex > 7 ? rightItemCount = 4 + siblingCountNumber : rightItemCount = 3 + siblingCountNumber;
2228
2828
  let rightRange = range(totalPageCount - rightItemCount + 1, totalPageCount);
2229
- return [firstPageIndex, Dots$1, ...rightRange];
2829
+ return [firstPageIndex, Dots, ...rightRange];
2230
2830
  }
2231
2831
  if (shouldShowLeftDots && shouldShowRightDots) {
2232
2832
  let middleRange = range(leftSiblingIndex, rightSiblingIndex);
2233
- return [firstPageIndex, Dots$1, ...middleRange, Dots$1, lastPageIndex];
2833
+ return [firstPageIndex, Dots, ...middleRange, Dots, lastPageIndex];
2234
2834
  }
2235
2835
  }, [currentTotalCount, offset, siblingCountNumber, currentPageNumber]);
2236
2836
  return paginationRange;
2237
2837
  };
2238
2838
 
2239
- const Dots = ({
2839
+ const SvgDots = ({
2240
2840
  title,
2241
2841
  titleId,
2242
2842
  ...props
2243
2843
  }) => /*#__PURE__*/React.createElement("svg", _extends({
2244
- width: "1em",
2245
- height: "1em",
2844
+ width: "11",
2845
+ height: "3",
2246
2846
  viewBox: "0 0 11 3",
2247
2847
  fill: "none",
2248
2848
  xmlns: "http://www.w3.org/2000/svg",
@@ -2250,17 +2850,17 @@ const Dots = ({
2250
2850
  }, props), title ? /*#__PURE__*/React.createElement("title", {
2251
2851
  id: titleId
2252
2852
  }, title) : null, /*#__PURE__*/React.createElement("path", {
2253
- d: "M0.230125 1.13624C0.230125 0.741577 0.326125 0.464244 0.518125 0.304244C0.710125 0.144244 0.939458 0.064244 1.20613 0.064244C1.48346 0.064244 1.71813 0.144244 1.91013 0.304244C2.11279 0.464244 2.21413 0.741577 2.21413 1.13624C2.21413 1.52024 2.11279 1.79758 1.91013 1.96824C1.71813 2.13891 1.48346 2.22424 1.20613 2.22424C0.939458 2.22424 0.710125 2.13891 0.518125 1.96824C0.326125 1.79758 0.230125 1.52024 0.230125 1.13624ZM4.51138 1.13624C4.51138 0.741577 4.60738 0.464244 4.79938 0.304244C4.99138 0.144244 5.22071 0.064244 5.48738 0.064244C5.76471 0.064244 5.99938 0.144244 6.19138 0.304244C6.39404 0.464244 6.49538 0.741577 6.49538 1.13624C6.49538 1.52024 6.39404 1.79758 6.19138 1.96824C5.99938 2.13891 5.76471 2.22424 5.48738 2.22424C5.22071 2.22424 4.99138 2.13891 4.79938 1.96824C4.60738 1.79758 4.51138 1.52024 4.51138 1.13624ZM8.79263 1.13624C8.79263 0.741577 8.88863 0.464244 9.08063 0.304244C9.27263 0.144244 9.50196 0.064244 9.76863 0.064244C10.046 0.064244 10.2806 0.144244 10.4726 0.304244C10.6753 0.464244 10.7766 0.741577 10.7766 1.13624C10.7766 1.52024 10.6753 1.79758 10.4726 1.96824C10.2806 2.13891 10.046 2.22424 9.76863 2.22424C9.50196 2.22424 9.27263 2.13891 9.08063 1.96824C8.88863 1.79758 8.79263 1.52024 8.79263 1.13624Z",
2853
+ d: "M.23 1.136C.23.742.326.464.518.304c.192-.16.421-.24.688-.24.277 0 .512.08.704.24.203.16.304.438.304.832 0 .384-.101.662-.304.832-.192.17-.427.256-.704.256a1 1 0 0 1-.688-.256C.326 1.798.23 1.52.23 1.136Zm4.281 0c0-.394.096-.672.288-.832.192-.16.422-.24.688-.24.278 0 .512.08.704.24.203.16.304.438.304.832 0 .384-.101.662-.304.832-.192.17-.426.256-.704.256a1 1 0 0 1-.688-.256c-.192-.17-.288-.448-.288-.832Zm4.282 0c0-.394.096-.672.288-.832.192-.16.421-.24.688-.24.277 0 .512.08.704.24.202.16.304.438.304.832 0 .384-.102.662-.304.832-.192.17-.427.256-.704.256a1 1 0 0 1-.688-.256c-.192-.17-.288-.448-.288-.832Z",
2254
2854
  fill: "#3C393E"
2255
2855
  }));
2256
2856
 
2257
- const SvgNextArrow = ({
2857
+ const SvgNextarrow = ({
2258
2858
  title,
2259
2859
  titleId,
2260
2860
  ...props
2261
2861
  }) => /*#__PURE__*/React.createElement("svg", _extends({
2262
- width: "1em",
2263
- height: "1em",
2862
+ width: "6",
2863
+ height: "12",
2264
2864
  viewBox: "0 0 6 12",
2265
2865
  fill: "none",
2266
2866
  xmlns: "http://www.w3.org/2000/svg",
@@ -2268,7 +2868,7 @@ const SvgNextArrow = ({
2268
2868
  }, props), title ? /*#__PURE__*/React.createElement("title", {
2269
2869
  id: titleId
2270
2870
  }, title) : null, /*#__PURE__*/React.createElement("path", {
2271
- d: "M0.851445 11.9985C0.652853 11.9988 0.460393 11.9292 0.307477 11.8017C0.221413 11.7299 0.150271 11.6418 0.0981246 11.5423C0.0459785 11.4428 0.0138536 11.3339 0.0035897 11.2219C-0.00667418 11.1098 0.00512483 10.9969 0.0383107 10.8895C0.0714965 10.7821 0.125416 10.6823 0.196984 10.5958L4.00476 6.01173L0.332976 1.41906C0.262375 1.33158 0.209651 1.23092 0.177836 1.12286C0.146021 1.01481 0.135741 0.901501 0.147589 0.789439C0.159437 0.677378 0.193177 0.568777 0.246871 0.469879C0.300566 0.370982 0.373156 0.283737 0.460468 0.213159C0.548409 0.135301 0.651394 0.0765731 0.76296 0.0406621C0.874526 0.00475112 0.992266 -0.00756759 1.10879 0.00447845C1.22531 0.0165245 1.3381 0.0526755 1.44008 0.110663C1.54206 0.16865 1.63102 0.247221 1.70139 0.341446L5.80665 5.47292C5.93166 5.62596 6 5.81791 6 6.01601C6 6.2141 5.93166 6.40606 5.80665 6.55909L1.5569 11.6906C1.47164 11.7941 1.36333 11.8759 1.24075 11.9294C1.11818 11.9829 0.984807 12.0065 0.851445 11.9985Z",
2871
+ d: "M.851 11.998a.847.847 0 0 1-.847-.776.86.86 0 0 1 .193-.626l3.808-4.584L.333 1.419A.857.857 0 0 1 .46.213a.849.849 0 0 1 1.241.128l4.106 5.132a.859.859 0 0 1 0 1.086l-4.25 5.132a.85.85 0 0 1-.706.307Z",
2272
2872
  fill: "#3C393E"
2273
2873
  }));
2274
2874
 
@@ -2332,8 +2932,8 @@ const Pagination = ({
2332
2932
  className: `${styles$1["pagination-btn"]} pagination-btn-rem`,
2333
2933
  onClick: onPrevious,
2334
2934
  disabled: currentPage === 1 ? true : false
2335
- }, /*#__PURE__*/React__default.createElement(SvgNextArrow, null)), paginationRange.map((pageNumber, id) => {
2336
- if (pageNumber === Dots$1) {
2935
+ }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null)), paginationRange.map((pageNumber, id) => {
2936
+ if (pageNumber === Dots) {
2337
2937
  let currentPageIndex = paginationRange.indexOf(currentPageNumber);
2338
2938
  return /*#__PURE__*/React__default.createElement("li", {
2339
2939
  key: id,
@@ -2342,16 +2942,16 @@ const Pagination = ({
2342
2942
  disabled: currentPageIndex === 0 ? true : false
2343
2943
  }, id < currentPageIndex ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
2344
2944
  className: `${styles$1["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
2345
- }, /*#__PURE__*/React__default.createElement(Dots, null)), /*#__PURE__*/React__default.createElement("span", {
2945
+ }, /*#__PURE__*/React__default.createElement(SvgDots, null)), /*#__PURE__*/React__default.createElement("span", {
2346
2946
  className: `${styles$1["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`,
2347
2947
  style: {
2348
2948
  transform: 'rotate(180deg)'
2349
2949
  }
2350
- }, /*#__PURE__*/React__default.createElement(SvgNextArrow, null))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
2950
+ }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
2351
2951
  className: `${styles$1["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
2352
- }, /*#__PURE__*/React__default.createElement(Dots, null)), /*#__PURE__*/React__default.createElement("span", {
2952
+ }, /*#__PURE__*/React__default.createElement(SvgDots, null)), /*#__PURE__*/React__default.createElement("span", {
2353
2953
  className: `${styles$1["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`
2354
- }, /*#__PURE__*/React__default.createElement(SvgNextArrow, null))));
2954
+ }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null))));
2355
2955
  }
2356
2956
  return /*#__PURE__*/React__default.createElement("li", {
2357
2957
  onClick: () => onPageChange(pageNumber),
@@ -2362,7 +2962,7 @@ const Pagination = ({
2362
2962
  onClick: onNext,
2363
2963
  className: `${styles$1["pagination-btn"]} pagination-btn-rem`,
2364
2964
  disabled: currentPageNumber === lastPage ? true : false
2365
- }, /*#__PURE__*/React__default.createElement(SvgNextArrow, null)));
2965
+ }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null)));
2366
2966
  };
2367
2967
  Pagination.propTypes = {
2368
2968
  offset: PropTypes.number,
@@ -2835,4 +3435,4 @@ NewAutocomplete.defaultProps = {
2835
3435
  disabled: false
2836
3436
  };
2837
3437
 
2838
- export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, NewAutocomplete, Pagination, Radio, Select, SingleCheckbox, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
3438
+ export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, SingleCheckbox, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };