@xaypay/tui 0.0.69 → 0.0.70

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.js CHANGED
@@ -28,13 +28,46 @@ function _interopNamespace(e) {
28
28
  return Object.freeze(n);
29
29
  }
30
30
 
31
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
32
31
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
32
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
33
33
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
34
34
  var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
35
35
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
36
36
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
37
37
 
38
+ function _extends() {
39
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
40
+ for (var i = 1; i < arguments.length; i++) {
41
+ var source = arguments[i];
42
+ for (var key in source) {
43
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
44
+ target[key] = source[key];
45
+ }
46
+ }
47
+ }
48
+ return target;
49
+ };
50
+ return _extends.apply(this, arguments);
51
+ }
52
+
53
+ const SvgPdf = ({
54
+ title,
55
+ titleId,
56
+ ...props
57
+ }) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
58
+ width: "40",
59
+ height: "52",
60
+ viewBox: "0 0 40 52",
61
+ fill: "none",
62
+ xmlns: "http://www.w3.org/2000/svg",
63
+ "aria-labelledby": titleId
64
+ }, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
65
+ id: titleId
66
+ }, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
67
+ d: "M39.1304 13.1106V36.2849V36.2853C39.394 36.4388 39.6133 36.6599 39.7659 36.9263C39.9189 37.1931 39.9992 37.4956 40 37.8037V47.5932C39.9984 48.7614 39.54 49.8816 38.7252 50.7079C37.91 51.5337 36.8048 51.9984 35.6522 52H4.34783C3.19523 51.9984 2.09005 51.5338 1.27483 50.7079C0.460015 49.8816 0.0015528 48.7614 0 47.5932V34.7817C0.000775155 34.4736 0.0815204 34.1714 0.234087 33.9051C0.386643 33.6383 0.605983 33.4176 0.869565 33.2641V3.52545C0.869565 2.5906 1.23602 1.69387 1.8882 1.03245C2.54072 0.371431 3.42547 0 4.34783 0H26.1953L39.1304 13.1106ZM13.872 45.3893C14.6037 45.4385 15.3293 45.2261 15.9225 44.7893C16.4303 44.3463 16.7036 43.6872 16.6605 43.0096C16.671 42.6272 16.598 42.2471 16.4478 41.8965C16.3154 41.6026 16.1136 41.3464 15.8597 41.1509C15.5976 40.9542 15.2991 40.8137 14.9816 40.7385C14.6225 40.6512 14.2541 40.6083 13.8849 40.6115H11.0258V48.4741H12.6849V45.3893H13.872ZM22.6954 47.4563C23.0149 47.1041 23.2498 46.6815 23.3814 46.2224C23.5347 45.6809 23.6084 45.1195 23.5999 44.5564C23.6065 44.008 23.5362 43.4614 23.3918 42.933C23.2672 42.477 23.0475 42.0532 22.7474 41.6904C22.4465 41.3379 22.0669 41.064 21.6398 40.8917C21.1305 40.6934 20.5882 40.5982 20.0432 40.6116H17.506V48.4821H20.0642C21.0475 48.5494 22.0103 48.1743 22.6954 47.4563ZM26.1252 42.05H29.4956L29.4956 40.6115H24.4661V48.4804L26.1287 48.4808V45.1068L28.6505 45.0962L28.64 43.6577H26.1252V42.05ZM18.3352 36.0407H37.3911L37.3908 14.3567H28.4428C27.5205 14.3567 26.6358 13.9852 25.9836 13.3238C25.331 12.6628 24.9646 11.7661 24.9646 10.8312V1.76186H4.34743C3.88625 1.76186 3.4437 1.94758 3.11762 2.27808C2.79153 2.60859 2.6083 3.05715 2.6083 3.52458V33.0185H14.9392C15.4408 33.0185 15.9179 33.238 16.2482 33.6205L18.3352 36.0407ZM6.08594 13.7151C6.08594 13.2283 6.48054 12.8337 6.9673 12.8337H20.6043C21.0911 12.8337 21.4857 13.2283 21.4857 13.7151C21.4857 14.2019 21.0911 14.5965 20.6043 14.5965H6.9673C6.48054 14.5965 6.08594 14.2019 6.08594 13.7151ZM18.5137 25.3369C18.5137 24.8502 18.9083 24.4556 19.395 24.4556H33.0321C33.5188 24.4556 33.9134 24.8502 33.9134 25.3369C33.9134 25.8237 33.5188 26.2183 33.0321 26.2183H19.395C18.9083 26.2183 18.5137 25.8237 18.5137 25.3369ZM6.9673 16.7056C6.48054 16.7056 6.08594 17.1002 6.08594 17.5869C6.08594 18.0737 6.48054 18.4683 6.9673 18.4683H33.0307C33.5174 18.4683 33.912 18.0737 33.912 17.5869C33.912 17.1002 33.5174 16.7056 33.0307 16.7056H6.9673ZM6.08594 21.4618C6.08594 20.975 6.48054 20.5804 6.9673 20.5804H33.0307C33.5174 20.5804 33.912 20.975 33.912 21.4618C33.912 21.9486 33.5174 22.3432 33.0307 22.3432H6.9673C6.48054 22.3432 6.08594 21.9486 6.08594 21.4618ZM21.4704 42.6691C21.1241 42.239 20.5919 42.0085 20.0457 42.0521H19.166V47.0441H20.0251C20.352 47.0567 20.6773 46.9886 20.9727 46.8469C21.213 46.7226 21.4156 46.5345 21.5589 46.3032C21.7076 46.0577 21.8089 45.7862 21.8582 45.5029C21.9164 45.1846 21.9455 44.8615 21.9451 44.5377C21.951 44.1698 21.9106 43.8023 21.8252 43.4446C21.758 43.1653 21.6373 42.9016 21.4704 42.6691ZM13.7445 42.0508C14.085 42.0213 14.4258 42.1008 14.7193 42.2782C14.8136 42.3518 14.8858 42.4501 14.9282 42.5627C14.9825 42.7134 15.0077 42.8731 15.0019 43.0333C15.0093 43.1969 14.9728 43.3594 14.8967 43.5039C14.8311 43.6211 14.7352 43.7175 14.6195 43.7832C14.4961 43.8525 14.361 43.8981 14.2212 43.9182C14.0636 43.9426 13.9041 43.9548 13.7445 43.9544H12.6855V42.0508H13.7445Z",
68
+ fill: "#00236A"
69
+ }));
70
+
38
71
  function styleInject(css, ref) {
39
72
  if ( ref === void 0 ) ref = {};
40
73
  var insertAt = ref.insertAt;
@@ -62,15 +95,10 @@ function styleInject(css, ref) {
62
95
  }
63
96
  }
64
97
 
65
- var css_248z$e = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{display:block;height:auto;max-height:95%;object-fit:contain;width:2.5rem}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
98
+ var css_248z$e = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{display:block;height:auto;max-height:95%;object-fit:contain;width:27.8rem}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
66
99
  var styles$c = {"file-form-wrap":"file-module_file-form-wrap__qY--B","file-form":"file-module_file-form__l13d5","active":"file-module_active__L1gPt","delete-upload-icon":"file-module_delete-upload-icon__PWN66","file-form-inner-upload":"file-module_file-form-inner-upload__tq3Dn","upload-info":"file-module_upload-info__a8GFs","upload-info-txt":"file-module_upload-info-txt__l11uN","default":"file-module_default__t7KU0","error":"file-module_error__H-M4Z","accept":"file-module_accept__WTW6V","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB"};
67
100
  styleInject(css_248z$e);
68
101
 
69
- var css_248z$d = "";
70
- styleInject(css_248z$d);
71
-
72
- var pdfImage = "<svg width=\"40\" height=\"52\" viewBox=\"0 0 40 52\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M39.1304 13.1106V36.2849V36.2853C39.394 36.4388 39.6133 36.6599 39.7659 36.9263C39.9189 37.1931 39.9992 37.4956 40 37.8037V47.5932C39.9984 48.7614 39.54 49.8816 38.7252 50.7079C37.91 51.5337 36.8048 51.9984 35.6522 52H4.34783C3.19523 51.9984 2.09005 51.5338 1.27483 50.7079C0.460015 49.8816 0.0015528 48.7614 0 47.5932V34.7817C0.000775155 34.4736 0.0815204 34.1714 0.234087 33.9051C0.386643 33.6383 0.605983 33.4176 0.869565 33.2641V3.52545C0.869565 2.5906 1.23602 1.69387 1.8882 1.03245C2.54072 0.371431 3.42547 0 4.34783 0H26.1953L39.1304 13.1106ZM13.872 45.3893C14.6037 45.4385 15.3293 45.2261 15.9225 44.7893C16.4303 44.3463 16.7036 43.6872 16.6605 43.0096C16.671 42.6272 16.598 42.2471 16.4478 41.8965C16.3154 41.6026 16.1136 41.3464 15.8597 41.1509C15.5976 40.9542 15.2991 40.8137 14.9816 40.7385C14.6225 40.6512 14.2541 40.6083 13.8849 40.6115H11.0258V48.4741H12.6849V45.3893H13.872ZM22.6954 47.4563C23.0149 47.1041 23.2498 46.6815 23.3814 46.2224C23.5347 45.6809 23.6084 45.1195 23.5999 44.5564C23.6065 44.008 23.5362 43.4614 23.3918 42.933C23.2672 42.477 23.0475 42.0532 22.7474 41.6904C22.4465 41.3379 22.0669 41.064 21.6398 40.8917C21.1305 40.6934 20.5882 40.5982 20.0432 40.6116H17.506V48.4821H20.0642C21.0475 48.5494 22.0103 48.1743 22.6954 47.4563ZM26.1252 42.05H29.4956L29.4956 40.6115H24.4661V48.4804L26.1287 48.4808V45.1068L28.6505 45.0962L28.64 43.6577H26.1252V42.05ZM18.3352 36.0407H37.3911L37.3908 14.3567H28.4428C27.5205 14.3567 26.6358 13.9852 25.9836 13.3238C25.331 12.6628 24.9646 11.7661 24.9646 10.8312V1.76186H4.34743C3.88625 1.76186 3.4437 1.94758 3.11762 2.27808C2.79153 2.60859 2.6083 3.05715 2.6083 3.52458V33.0185H14.9392C15.4408 33.0185 15.9179 33.238 16.2482 33.6205L18.3352 36.0407ZM6.08594 13.7151C6.08594 13.2283 6.48054 12.8337 6.9673 12.8337H20.6043C21.0911 12.8337 21.4857 13.2283 21.4857 13.7151C21.4857 14.2019 21.0911 14.5965 20.6043 14.5965H6.9673C6.48054 14.5965 6.08594 14.2019 6.08594 13.7151ZM18.5137 25.3369C18.5137 24.8502 18.9083 24.4556 19.395 24.4556H33.0321C33.5188 24.4556 33.9134 24.8502 33.9134 25.3369C33.9134 25.8237 33.5188 26.2183 33.0321 26.2183H19.395C18.9083 26.2183 18.5137 25.8237 18.5137 25.3369ZM6.9673 16.7056C6.48054 16.7056 6.08594 17.1002 6.08594 17.5869C6.08594 18.0737 6.48054 18.4683 6.9673 18.4683H33.0307C33.5174 18.4683 33.912 18.0737 33.912 17.5869C33.912 17.1002 33.5174 16.7056 33.0307 16.7056H6.9673ZM6.08594 21.4618C6.08594 20.975 6.48054 20.5804 6.9673 20.5804H33.0307C33.5174 20.5804 33.912 20.975 33.912 21.4618C33.912 21.9486 33.5174 22.3432 33.0307 22.3432H6.9673C6.48054 22.3432 6.08594 21.9486 6.08594 21.4618ZM21.4704 42.6691C21.1241 42.239 20.5919 42.0085 20.0457 42.0521H19.166V47.0441H20.0251C20.352 47.0567 20.6773 46.9886 20.9727 46.8469C21.213 46.7226 21.4156 46.5345 21.5589 46.3032C21.7076 46.0577 21.8089 45.7862 21.8582 45.5029C21.9164 45.1846 21.9455 44.8615 21.9451 44.5377C21.951 44.1698 21.9106 43.8023 21.8252 43.4446C21.758 43.1653 21.6373 42.9016 21.4704 42.6691ZM13.7445 42.0508C14.085 42.0213 14.4258 42.1008 14.7193 42.2782C14.8136 42.3518 14.8858 42.4501 14.9282 42.5627C14.9825 42.7134 15.0077 42.8731 15.0019 43.0333C15.0093 43.1969 14.9728 43.3594 14.8967 43.5039C14.8311 43.6211 14.7352 43.7175 14.6195 43.7832C14.4961 43.8525 14.361 43.8981 14.2212 43.9182C14.0636 43.9426 13.9041 43.9548 13.7445 43.9544H12.6855V42.0508H13.7445Z\" fill=\"#00236A\"/>\n</svg>";
73
-
74
102
  const File = ({
75
103
  name,
76
104
  label,
@@ -84,9 +112,9 @@ const File = ({
84
112
  fileExtensions,
85
113
  ...props
86
114
  }) => {
87
- const [image, setImage] = React.useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : pdfImage : null);
88
115
  const [error, setError] = React.useState('');
89
116
  const [fileName, setFileName] = React.useState('no selected file');
117
+ const [image, setImage] = React.useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : 'pdf' : null);
90
118
  const handleCheckFile = e => {
91
119
  const file = e.target.files;
92
120
  if (file[0]) {
@@ -97,7 +125,7 @@ const File = ({
97
125
  onChange({
98
126
  file
99
127
  });
100
- setImage(pdfImage);
128
+ setImage('pdf');
101
129
  } else {
102
130
  setError('');
103
131
  onChange({
@@ -150,7 +178,7 @@ const File = ({
150
178
  onChange: e => handleCheckFile(e)
151
179
  }), image ? /*#__PURE__*/React__default["default"].createElement("div", {
152
180
  className: `${styles$c['upload-file-content']} upload-file-content-rem`
153
- }, /*#__PURE__*/React__default["default"].createElement("img", {
181
+ }, image === 'pdf' ? /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : /*#__PURE__*/React__default["default"].createElement("img", {
154
182
  src: image,
155
183
  alt: fileName
156
184
  })) : /*#__PURE__*/React__default["default"].createElement("div", {
@@ -192,28 +220,13 @@ File.defaultProps = {
192
220
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
193
221
  };
194
222
 
195
- var css_248z$c = ".table-module_table-wrap__KKAnM{background:#fff;border-radius:14px 14px 0 0;box-shadow:0 10px 30px rgba(0,35,106,.06);overflow:hidden;width:100%}.table-module_table-wrap__KKAnM:not(:first-child){margin-top:30px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:first-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:first-child{flex:0 0 auto;width:60px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(2),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(2){flex:0 0 auto;width:120px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(3),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(3){flex:0 0 auto;width:170px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(4),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(4){flex:0 0 auto;width:126px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(5),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(6),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(8),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(5),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(6),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(8){flex:0 0 auto;width:100px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:last-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:last-child{flex:0 0 auto;width:104px}.table-module_table-top__tfEKM{background:#00236a;height:44px;width:100%}.table-module_table-top__tfEKM .table-module_table-items__UpFg2{align-items:center;color:#fff;display:flex;flex:1 1;font-size:15px;justify-content:center;line-height:17px;text-align:center}.table-module_table-bottom-inner__0Pus0{background:#fff;min-height:40px;width:100%}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2{align-items:center;border-bottom:1px solid #eee;display:flex;flex:1 1;font-size:14px;justify-content:center;line-height:16px;padding:4px;text-align:center}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:not(:last-child){border-right:1px solid #eee}";
223
+ var css_248z$d = ".table-module_table-wrap__KKAnM{background:#fff;border-radius:14px 14px 0 0;box-shadow:0 10px 30px rgba(0,35,106,.06);overflow:hidden;width:100%}.table-module_table-wrap__KKAnM:not(:first-child){margin-top:30px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:first-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:first-child{flex:0 0 auto;width:60px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(2),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(2){flex:0 0 auto;width:120px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(3),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(3){flex:0 0 auto;width:170px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(4),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(4){flex:0 0 auto;width:126px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(5),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(6),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(8),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(5),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(6),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(8){flex:0 0 auto;width:100px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:last-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:last-child{flex:0 0 auto;width:104px}.table-module_table-top__tfEKM{background:#00236a;height:44px;width:100%}.table-module_table-top__tfEKM .table-module_table-items__UpFg2{align-items:center;color:#fff;display:flex;flex:1 1;font-size:15px;justify-content:center;line-height:17px;text-align:center}.table-module_table-bottom-inner__0Pus0{background:#fff;min-height:40px;width:100%}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2{align-items:center;border-bottom:1px solid #eee;display:flex;flex:1 1;font-size:14px;justify-content:center;line-height:16px;padding:4px;text-align:center}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:not(:last-child){border-right:1px solid #eee}";
196
224
  var styles$b = {"table-wrap":"table-module_table-wrap__KKAnM","table-bottom-inner":"table-module_table-bottom-inner__0Pus0","table-items":"table-module_table-items__UpFg2","table-top":"table-module_table-top__tfEKM"};
197
- styleInject(css_248z$c);
198
-
199
- function _extends() {
200
- _extends = Object.assign ? Object.assign.bind() : function (target) {
201
- for (var i = 1; i < arguments.length; i++) {
202
- var source = arguments[i];
203
- for (var key in source) {
204
- if (Object.prototype.hasOwnProperty.call(source, key)) {
205
- target[key] = source[key];
206
- }
207
- }
208
- }
209
- return target;
210
- };
211
- return _extends.apply(this, arguments);
212
- }
225
+ styleInject(css_248z$d);
213
226
 
214
- var css_248z$b = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;bottom:0;display:inline-block;height:14px;left:0;margin:auto 4px auto auto;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.checkbox-module_checkbox-wrap__Xrg-m>.checkbox-module_checkmark__M8DY6:after{border:solid #1890ff;border-width:0 2px 2px 0;content:\"\";display:block;height:8px;left:4px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);transition:opacity .24s;width:4px}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6:after{opacity:1}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6,.checkbox-module_checkbox-wrap__Xrg-m:hover input~.checkbox-module_checkmark__M8DY6{border-color:#1890ff}";
227
+ var css_248z$c = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;bottom:0;display:inline-block;height:14px;left:0;margin:auto 4px auto auto;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.checkbox-module_checkbox-wrap__Xrg-m>.checkbox-module_checkmark__M8DY6:after{border:solid #1890ff;border-width:0 2px 2px 0;content:\"\";display:block;height:8px;left:4px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);transition:opacity .24s;width:4px}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6:after{opacity:1}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6,.checkbox-module_checkbox-wrap__Xrg-m:hover input~.checkbox-module_checkmark__M8DY6{border-color:#1890ff}";
215
228
  var styles$a = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
216
- styleInject(css_248z$b);
229
+ styleInject(css_248z$c);
217
230
 
218
231
  const Checkbox = ({
219
232
  disabled,
@@ -387,8 +400,11 @@ Table.defaultProps = {
387
400
  hearderData: []
388
401
  };
389
402
 
390
- var css_248z$a = ".modal-module_modal-wrap__IsXXf{background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;width:100%;z-index:9}.modal-module_modal-top__ntDBi{background:#fbfbfb;box-sizing:border-box;display:flex;flex-direction:row;height:44px;padding:4px 10px 4px 0;width:100%}.modal-module_modal-title__r-WKl{align-items:center;color:#3c393e;display:flex;flex:1 1;font-size:20px;font-weight:500;line-height:24px;padding-right:20px}.modal-module_close-btn__Qf2UD{cursor:pointer;flex:0 0 auto;width:24px}.modal-module_close-btn__Qf2UD,.modal-module_modal-section__Bp8jN{align-items:center;display:flex;height:100%;justify-content:center}.modal-module_modal-section__Bp8jN{flex:1 1;padding:10px 0;width:100%}.modal-module_modal-content__1F-uE{align-items:center;animation:modal-module_show-popup__WrH7a .24s;background:#fff;border-radius:8px;display:flex;flex-direction:column;height:auto;left:0;margin:auto;min-height:130px;overflow:hidden;padding:10px;position:absolute;right:0;top:110px;width:fit-content}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-30%,0)}to{opacity:1;transform:translateZ(0)}}";
403
+ var css_248z$b = ".modal-module_modal-wrap__IsXXf{background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;width:100%;z-index:9}.modal-module_modal-top__ntDBi{background:#fbfbfb;box-sizing:border-box;display:flex;flex-direction:row;height:44px;padding:4px 10px 4px 0;width:100%}.modal-module_modal-title__r-WKl{align-items:center;color:#3c393e;display:flex;flex:1 1;font-size:20px;font-weight:500;line-height:24px;padding-right:20px}.modal-module_close-btn__Qf2UD{cursor:pointer;flex:0 0 auto;width:24px}.modal-module_close-btn__Qf2UD,.modal-module_modal-section__Bp8jN{align-items:center;display:flex;height:100%;justify-content:center}.modal-module_modal-section__Bp8jN{flex:1 1;padding:10px 0;width:100%}.modal-module_modal-content__1F-uE{align-items:center;animation:modal-module_show-popup__WrH7a .24s;background:#fff;border-radius:8px;display:flex;flex-direction:column;height:auto;left:0;margin:auto;min-height:130px;overflow:hidden;padding:10px;position:absolute;right:0;top:110px;width:fit-content}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-30%,0)}to{opacity:1;transform:translateZ(0)}}";
391
404
  var styles$9 = {"modal-wrap":"modal-module_modal-wrap__IsXXf","modal-top":"modal-module_modal-top__ntDBi","modal-title":"modal-module_modal-title__r-WKl","close-btn":"modal-module_close-btn__Qf2UD","modal-section":"modal-module_modal-section__Bp8jN","modal-content":"modal-module_modal-content__1F-uE","show-popup":"modal-module_show-popup__WrH7a"};
405
+ styleInject(css_248z$b);
406
+
407
+ var css_248z$a = "";
392
408
  styleInject(css_248z$a);
393
409
 
394
410
  const _ = require('lodash');
@@ -1884,71 +1900,161 @@ Tooltip.defaultProps = {
1884
1900
  type: 'top'
1885
1901
  };
1886
1902
 
1887
- var css_248z$4 = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{height:74px;max-width:400px;position:relative;width:100%}.captcha-module_slider__KLYny{-webkit-appearance:none;background:#eee;border-radius:2px;bottom:0;height:4px;left:0;margin:auto 0;outline:none;position:absolute;top:0;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:30px;position:relative;width:30px;z-index:3}.captcha-module_selector__JFhb4{left:0;z-index:2}.captcha-module_selectBtn__GP1iH,.captcha-module_selector__JFhb4{bottom:0;height:30px;margin:auto 0;position:absolute;top:0;width:30px}.captcha-module_selectBtn__GP1iH{background:#00236a;border:2px solid #fff;border-radius:50%;box-shadow:1px 0 6px rgba(60,57,62,.15);cursor:pointer}.captcha-module_progressBar__mhdtM{background:red;bottom:0;height:4px;left:0;margin:auto 0;position:absolute;top:0;width:auto}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
1888
- var styles$3 = {"main":"captcha-module_main__Ys3EH","slider":"captcha-module_slider__KLYny","selector":"captcha-module_selector__JFhb4","selectBtn":"captcha-module_selectBtn__GP1iH","progressBar":"captcha-module_progressBar__mhdtM","range":"captcha-module_range__k24I2"};
1903
+ const SvgCaptchaArrowUp = ({
1904
+ title,
1905
+ titleId,
1906
+ ...props
1907
+ }) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1908
+ width: "12",
1909
+ height: "15",
1910
+ viewBox: "0 0 12 15",
1911
+ fill: "none",
1912
+ xmlns: "http://www.w3.org/2000/svg",
1913
+ "aria-labelledby": titleId
1914
+ }, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
1915
+ id: titleId
1916
+ }, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
1917
+ d: "M6 14.9988C6.22729 14.9988 6.44527 14.9066 6.60598 14.7425C6.7667 14.5785 6.85699 14.3559 6.85699 14.1239L6.85699 3.98726L10.5352 7.74409C10.6149 7.82543 10.7095 7.88996 10.8136 7.93398C10.9177 7.97801 11.0292 8.00067 11.1419 8.00067C11.2546 8.00067 11.3662 7.97801 11.4703 7.93398C11.5744 7.88996 11.669 7.82543 11.7487 7.74409C11.8284 7.66274 11.8916 7.56617 11.9347 7.45989C11.9778 7.35361 12 7.2397 12 7.12466C12 7.00962 11.9778 6.89571 11.9347 6.78943C11.8916 6.68314 11.8284 6.58657 11.7487 6.50523L6.60675 1.25581C6.52714 1.17434 6.43257 1.1097 6.32845 1.06559C6.22434 1.02148 6.11272 0.998779 6 0.998779C5.88728 0.998779 5.77566 1.02148 5.67154 1.06559C5.56743 1.1097 5.47286 1.17434 5.39325 1.25581L0.251323 6.50523C0.0904038 6.66951 0 6.89233 0 7.12466C0 7.35699 0.0904038 7.57981 0.251323 7.74409C0.412243 7.90837 0.630497 8.00067 0.858071 8.00067C1.08565 8.00067 1.3039 7.90837 1.46482 7.74409L5.14301 3.98726L5.14301 14.1239C5.14301 14.3559 5.2333 14.5785 5.39402 14.7425C5.55473 14.9066 5.77271 14.9988 6 14.9988Z",
1918
+ fill: "#00236A"
1919
+ }));
1920
+
1921
+ const SvgCaptchaArrowDown = ({
1922
+ title,
1923
+ titleId,
1924
+ ...props
1925
+ }) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1926
+ width: "12",
1927
+ height: "15",
1928
+ viewBox: "0 0 12 15",
1929
+ fill: "none",
1930
+ xmlns: "http://www.w3.org/2000/svg",
1931
+ "aria-labelledby": titleId
1932
+ }, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
1933
+ id: titleId
1934
+ }, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
1935
+ d: "M6 0.00146537C5.77271 0.00146539 5.55473 0.0936418 5.39402 0.257718C5.2333 0.421795 5.14301 0.64433 5.14301 0.876368L5.14301 11.013L1.46482 7.25615C1.38514 7.17481 1.29055 7.11028 1.18644 7.06626C1.08233 7.02224 0.970753 6.99958 0.85807 6.99958C0.745386 6.99958 0.633807 7.02224 0.529701 7.06626C0.425595 7.11028 0.331002 7.17481 0.251322 7.25616C0.171643 7.3375 0.108438 7.43407 0.0653156 7.54035C0.0221934 7.64663 -5.45598e-07 7.76055 -5.35541e-07 7.87559C-5.25484e-07 7.99063 0.0221934 8.10454 0.0653157 8.21082C0.108438 8.3171 0.171643 8.41367 0.251322 8.49502L5.39325 13.7444C5.47286 13.8259 5.56743 13.8905 5.67155 13.9347C5.77566 13.9788 5.88728 14.0015 6 14.0015C6.11272 14.0015 6.22434 13.9788 6.32846 13.9347C6.43257 13.8905 6.52714 13.8259 6.60675 13.7444L11.7487 8.49502C11.9096 8.33073 12 8.10792 12 7.87559C12 7.64325 11.9096 7.42044 11.7487 7.25615C11.5878 7.09187 11.3695 6.99958 11.1419 6.99958C10.9144 6.99958 10.6961 7.09187 10.5352 7.25615L6.85699 11.013L6.85699 0.876368C6.85699 0.64433 6.7667 0.421794 6.60598 0.257718C6.44526 0.0936418 6.22729 0.00146535 6 0.00146537Z",
1936
+ fill: "#00236A"
1937
+ }));
1938
+
1939
+ 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}";
1940
+ 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"};
1889
1941
  styleInject(css_248z$4);
1890
1942
 
1891
1943
  const Captcha = ({
1892
- onclick,
1893
- rangeCount
1944
+ size,
1945
+ color,
1946
+ range,
1947
+ label,
1948
+ getRange
1894
1949
  }) => {
1895
- const [data, setData] = React.useState("");
1896
- const [right, setRight] = React.useState(false);
1897
- let range = rangeCount <= 100 ? rangeCount : 0;
1898
- let rangeElement = document.getElementsByClassName(styles$3.range);
1950
+ const [rangeNumber, setRangeNumber] = React.useState(0);
1951
+ const [rangeProgress, setRangeProgress] = React.useState(0);
1952
+ const configStyles = compereConfigs();
1953
+ const handleRange = e => {
1954
+ const value = e.target.value;
1955
+ getRange(value);
1956
+ setRangeProgress(value);
1957
+ };
1899
1958
  React.useEffect(() => {
1900
- for (let element of rangeElement) {
1901
- element.style.marginLeft = `${range + 60}%`;
1902
- element.style.color = data;
1903
- }
1904
- }, [range, data]);
1905
- function sliderInput(event) {
1906
- setData(rangeCount == event.target.value ? 'green' : 'indianred');
1907
- let selector = document.getElementsByClassName(styles$3.selector);
1908
- let selectBtn = document.getElementsByClassName(styles$3.selectBtn);
1909
- let progressBar = document.getElementsByClassName(styles$3.progressBar);
1910
- selector[0].style.left = event.target.value + '%';
1911
- progressBar[0].style.width = event.target.value + '%';
1912
- if (rangeCount == event.target.value) {
1913
- selectBtn[0].style.background = "pink";
1959
+ if (range === undefined || range === null) {
1960
+ alert('Please add range property on Captcha component');
1961
+ }
1962
+ if (!getRange) {
1963
+ alert('Please add getRange property on Captcha component');
1964
+ }
1965
+ if (range > 100) {
1966
+ setRangeNumber(100);
1967
+ } else if (range < 0) {
1968
+ setRangeNumber(0);
1914
1969
  } else {
1915
- selectBtn[0].style.background = "red";
1970
+ setRangeNumber(range);
1971
+ }
1972
+ }, [range, getRange]);
1973
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label && /*#__PURE__*/React__default["default"].createElement("p", {
1974
+ style: {
1975
+ fontSize: size ? size : configStyles.Captcha.size,
1976
+ color: color ? color : configStyles.Captcha.color
1977
+ }
1978
+ }, label), /*#__PURE__*/React__default["default"].createElement("div", {
1979
+ style: {
1980
+ width: '100%',
1981
+ height: '76px',
1982
+ maxWidth: '400px',
1983
+ position: 'relative'
1916
1984
  }
1917
- }
1918
- function sliderChange(e) {
1919
- setRight(rangeCount == e.target.value ? true : false);
1920
- }
1921
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
1922
- className: styles$3.main
1923
1985
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1924
- className: styles$3.range
1925
- }, /*#__PURE__*/React__default["default"].createElement("i", {
1926
- className: "icon-vector-down"
1927
- })), /*#__PURE__*/React__default["default"].createElement("input", {
1986
+ style: {
1987
+ position: 'absolute',
1988
+ top: '0px',
1989
+ height: '15px',
1990
+ left: `calc(${rangeNumber}% - 6px)`
1991
+ }
1992
+ }, /*#__PURE__*/React__default["default"].createElement(SvgCaptchaArrowDown, null)), /*#__PURE__*/React__default["default"].createElement("div", {
1993
+ style: {
1994
+ position: 'absolute',
1995
+ display: 'flex',
1996
+ top: '23px',
1997
+ left: '0px',
1998
+ width: '100%',
1999
+ height: '30px',
2000
+ alignItems: 'center',
2001
+ zIndex: 1
2002
+ },
2003
+ className: styles$3['start-point']
2004
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2005
+ style: {
2006
+ position: 'absolute',
2007
+ top: '13px',
2008
+ right: '0px',
2009
+ width: '100%',
2010
+ height: '4px',
2011
+ borderRadius: '2px',
2012
+ backgroundColor: '#EEEEEE',
2013
+ borderRadius: '10px',
2014
+ zIndex: -2
2015
+ }
2016
+ }), /*#__PURE__*/React__default["default"].createElement("input", {
2017
+ min: 0,
2018
+ max: 100,
1928
2019
  type: "range",
1929
- className: styles$3.slider,
1930
- onClick: right ? onclick : null,
1931
- onInput: sliderInput,
1932
- onMouseUp: sliderChange
2020
+ value: rangeProgress,
2021
+ style: {
2022
+ height: '4px',
2023
+ width: '100%',
2024
+ borderRadius: '2px',
2025
+ cursor: 'pointer',
2026
+ backgroundColor: 'transparent'
2027
+ },
2028
+ className: `
2029
+ ${styles$3['range']}
2030
+ ${rangeProgress >= rangeNumber ? styles$3['range-success'] : rangeProgress < rangeNumber && rangeProgress > 0 ? styles$3['range-error'] : styles$3['range-default']}
2031
+ `,
2032
+ onInput: handleRange
1933
2033
  }), /*#__PURE__*/React__default["default"].createElement("div", {
1934
- className: styles$3.selector
1935
- }, /*#__PURE__*/React__default["default"].createElement("div", {
1936
- className: styles$3.selectBtn
2034
+ style: {
2035
+ position: 'absolute',
2036
+ top: '13px',
2037
+ left: '0px',
2038
+ width: rangeProgress + '%',
2039
+ height: '4px',
2040
+ borderRadius: '2px',
2041
+ backgroundColor: rangeProgress >= rangeNumber ? '#0DA574' : rangeProgress < rangeNumber && rangeProgress > 0 ? '#EE0000' : 'transparent',
2042
+ borderRadius: '2px',
2043
+ zIndex: -1
2044
+ }
1937
2045
  })), /*#__PURE__*/React__default["default"].createElement("div", {
1938
- className: styles$3.progressBar
1939
- }), /*#__PURE__*/React__default["default"].createElement("div", {
1940
- className: styles$3.range
1941
- }, /*#__PURE__*/React__default["default"].createElement("i", {
1942
- className: "icon-vector-up"
1943
- }))));
2046
+ style: {
2047
+ position: 'absolute',
2048
+ bottom: '0px',
2049
+ height: '15px',
2050
+ left: `calc(${rangeNumber}% - 6px)`
2051
+ }
2052
+ }, /*#__PURE__*/React__default["default"].createElement(SvgCaptchaArrowUp, null))));
1944
2053
  };
1945
2054
  Captcha.propTypes = {
1946
- onclick: PropTypes__default["default"].func,
1947
- className: PropTypes__default["default"].string,
1948
- rangeCount: PropTypes__default["default"].number
1949
- };
1950
- Captcha.defaultProps = {
1951
- onclick: undefined
2055
+ label: PropTypes__default["default"].string,
2056
+ range: PropTypes__default["default"].number.isRequired,
2057
+ getRange: PropTypes__default["default"].func.isRequired
1952
2058
  };
1953
2059
 
1954
2060
  var css_248z$3 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;cursor:pointer;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
@@ -1984,10 +2090,134 @@ Stepper.propTypes = {
1984
2090
  activeSteps: PropTypes__default["default"].number
1985
2091
  };
1986
2092
 
1987
- var css_248z$2 = ".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{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:13px;line-height:16px;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}i{color:#3c393e;font-size:12px;line-height:12px}";
1988
- 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"};
2093
+ 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}";
1989
2094
  styleInject(css_248z$2);
1990
2095
 
2096
+ const Textarea = ({
2097
+ size,
2098
+ label,
2099
+ width,
2100
+ value,
2101
+ height,
2102
+ resize,
2103
+ border,
2104
+ radius,
2105
+ padding,
2106
+ required,
2107
+ onChange,
2108
+ minWidth,
2109
+ maxWidth,
2110
+ minHeight,
2111
+ maxHeight,
2112
+ boxSizing,
2113
+ maxLength,
2114
+ labelSize,
2115
+ labelColor,
2116
+ borderColor,
2117
+ labelWeight,
2118
+ placeholder,
2119
+ labelDisplay,
2120
+ backgroundColor,
2121
+ borderFocusColor,
2122
+ borderHoverColor,
2123
+ labelRequiredColor
2124
+ }) => {
2125
+ const [isHover, setIsHover] = React.useState(false);
2126
+ const [isFocus, setIsFocus] = React.useState(false);
2127
+ const configStyles = compereConfigs();
2128
+ const handleMouseEnter = () => {
2129
+ setIsHover(true);
2130
+ };
2131
+ const handleMouseLeave = () => {
2132
+ setIsHover(false);
2133
+ };
2134
+ const handleFocus = () => {
2135
+ setIsFocus(true);
2136
+ };
2137
+ const handleBlur = () => {
2138
+ setIsFocus(false);
2139
+ };
2140
+ React.useEffect(() => {
2141
+ if (value === undefined) {
2142
+ alert('Please add value prop on Textarea component');
2143
+ }
2144
+ if (!onChange) {
2145
+ alert('Please add onChange function on Textarea component');
2146
+ }
2147
+ }, [value, onChange]);
2148
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
2149
+ style: {
2150
+ color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
2151
+ fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize,
2152
+ display: labelDisplay ? labelDisplay : configStyles.TEXTAREA.labelDisplay,
2153
+ fontWeight: labelWeight ? labelWeight : configStyles.TEXTAREA.labelWeight
2154
+ }
2155
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", {
2156
+ style: {
2157
+ color: labelRequiredColor ? labelRequiredColor : configStyles.TEXTAREA.labelRequiredColor
2158
+ }
2159
+ }, "*")) : '', /*#__PURE__*/React__default["default"].createElement("textarea", {
2160
+ style: {
2161
+ outline: 'none',
2162
+ overflow: 'auto',
2163
+ fontSize: size ? size : configStyles.TEXTAREA.size,
2164
+ width: width ? width : configStyles.TEXTAREA.width,
2165
+ height: height ? height : configStyles.TEXTAREA.height,
2166
+ border: border ? border : configStyles.TEXTAREA.border,
2167
+ padding: padding ? padding : configStyles.TEXTAREA.padding,
2168
+ borderRadius: radius ? radius : configStyles.TEXTAREA.radius,
2169
+ minWidth: minWidth ? minWidth : configStyles.TEXTAREA.minWidth,
2170
+ maxWidth: maxWidth ? maxWidth : configStyles.TEXTAREA.maxWidth,
2171
+ minHeight: minHeight ? minHeight : configStyles.TEXTAREA.minHeight,
2172
+ maxHeight: maxHeight ? maxHeight : configStyles.TEXTAREA.maxHeight,
2173
+ boxSizing: boxSizing ? boxSizing : configStyles.TEXTAREA.boxSizing,
2174
+ backgroundColor: backgroundColor ? backgroundColor : configStyles.TEXTAREA.backgroundColor,
2175
+ borderColor: isFocus ? borderFocusColor ? borderFocusColor : configStyles.TEXTAREA.borderFocusColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.TEXTAREA.borderHoverColor : borderColor ? borderColor : configStyles.TEXTAREA.borderColor,
2176
+ resize: resize ? resize : configStyles.TEXTAREA.resize
2177
+ },
2178
+ onBlur: handleBlur,
2179
+ onChange: onChange,
2180
+ onFocus: handleFocus,
2181
+ placeholder: placeholder,
2182
+ onMouseEnter: handleMouseEnter,
2183
+ onMouseLeave: handleMouseLeave,
2184
+ 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
2185
+ }));
2186
+ };
2187
+ Textarea.propTypes = {
2188
+ size: PropTypes__default["default"].string,
2189
+ label: PropTypes__default["default"].string,
2190
+ width: PropTypes__default["default"].string,
2191
+ height: PropTypes__default["default"].string,
2192
+ resize: PropTypes__default["default"].string,
2193
+ border: PropTypes__default["default"].string,
2194
+ radius: PropTypes__default["default"].string,
2195
+ required: PropTypes__default["default"].bool,
2196
+ padding: PropTypes__default["default"].string,
2197
+ minWidth: PropTypes__default["default"].string,
2198
+ maxWidth: PropTypes__default["default"].string,
2199
+ boxSizing: PropTypes__default["default"].string,
2200
+ minHeight: PropTypes__default["default"].string,
2201
+ maxHeight: PropTypes__default["default"].string,
2202
+ maxLength: PropTypes__default["default"].number,
2203
+ labelSize: PropTypes__default["default"].string,
2204
+ labelColor: PropTypes__default["default"].string,
2205
+ labelWeight: PropTypes__default["default"].string,
2206
+ borderColor: PropTypes__default["default"].string,
2207
+ placeholder: PropTypes__default["default"].string,
2208
+ labelDisplay: PropTypes__default["default"].string,
2209
+ backgroundColor: PropTypes__default["default"].string,
2210
+ value: PropTypes__default["default"].string.isRequired,
2211
+ borderFocusColor: PropTypes__default["default"].string,
2212
+ borderHoverColor: PropTypes__default["default"].string,
2213
+ onChange: PropTypes__default["default"].func.isRequired,
2214
+ labelRequiredColor: PropTypes__default["default"].string
2215
+ };
2216
+
2217
+ 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{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:13px;line-height:16px;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}i{color:#3c393e;font-size:12px;line-height:12px}";
2218
+ 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"};
2219
+ styleInject(css_248z$1);
2220
+
1991
2221
  // import styles from "./pagination.module.scss";
1992
2222
 
1993
2223
  const Dots$1 = "...";
@@ -2176,9 +2406,9 @@ Pagination.defaultProps = {
2176
2406
  siblingCount: 2
2177
2407
  };
2178
2408
 
2179
- var css_248z$1 = ".autocomplate-module_autocomplate-content__UbIUT{display:flex;flex-direction:column;position:relative}.autocomplate-module_autocomplate-content-top__FVgCp{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.autocomplate-module_autocomplate-content-top__FVgCp.autocomplate-module_active__40fdV{border-color:#00236a}.autocomplate-module_autocomplate-content-top__FVgCp:hover{border-color:#3c393e}.autocomplate-module_autocomplate-content-bottom__yk0zP{animation:autocomplate-module_select-show__7Uap4 .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);left:0;max-height:0;max-width:400px;overflow:hidden;position:absolute;top:52px;width:100%;z-index:1}.autocomplate-module_autocomplate-content-bottom-inner__rF5IF{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes autocomplate-module_select-show__7Uap4{to{max-height:400px}}.autocomplate-module_autocomplate-content-bottom-row__dRsZa{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.autocomplate-module_autocomplate-content-bottom-row__dRsZa .autocomplate-module_no-option__xv0-E{color:red}.autocomplate-module_autocomplate-content-bottom-row__dRsZa:hover{background:unset;color:#00236a}.autocomplate-module_option-active__WuH4I .autocomplate-module_autocomplate-content-bottom-row__dRsZa{color:#00236a}.autocomplate-module_autocomplate-title__3Qxqz{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:none}.autocomplate-module_errorBorder__LV-nb{border:2px solid #e00!important}.autocomplate-module_errorMessage__Gchpc{color:#e00!important}";
2409
+ var css_248z = ".autocomplate-module_autocomplate-content__UbIUT{display:flex;flex-direction:column;position:relative}.autocomplate-module_autocomplate-content-top__FVgCp{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.autocomplate-module_autocomplate-content-top__FVgCp.autocomplate-module_active__40fdV{border-color:#00236a}.autocomplate-module_autocomplate-content-top__FVgCp:hover{border-color:#3c393e}.autocomplate-module_autocomplate-content-bottom__yk0zP{animation:autocomplate-module_select-show__7Uap4 .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);left:0;max-height:0;max-width:400px;overflow:hidden;position:absolute;top:52px;width:100%;z-index:1}.autocomplate-module_autocomplate-content-bottom-inner__rF5IF{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes autocomplate-module_select-show__7Uap4{to{max-height:400px}}.autocomplate-module_autocomplate-content-bottom-row__dRsZa{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.autocomplate-module_autocomplate-content-bottom-row__dRsZa .autocomplate-module_no-option__xv0-E{color:red}.autocomplate-module_autocomplate-content-bottom-row__dRsZa:hover{background:unset;color:#00236a}.autocomplate-module_option-active__WuH4I .autocomplate-module_autocomplate-content-bottom-row__dRsZa{color:#00236a}.autocomplate-module_autocomplate-title__3Qxqz{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:none}.autocomplate-module_errorBorder__LV-nb{border:2px solid #e00!important}.autocomplate-module_errorMessage__Gchpc{color:#e00!important}";
2180
2410
  var styles = {"autocomplate-content":"autocomplate-module_autocomplate-content__UbIUT","autocomplate-content-top":"autocomplate-module_autocomplate-content-top__FVgCp","active":"autocomplate-module_active__40fdV","autocomplate-content-bottom":"autocomplate-module_autocomplate-content-bottom__yk0zP","select-show":"autocomplate-module_select-show__7Uap4","autocomplate-content-bottom-inner":"autocomplate-module_autocomplate-content-bottom-inner__rF5IF","autocomplate-content-bottom-row":"autocomplate-module_autocomplate-content-bottom-row__dRsZa","no-option":"autocomplate-module_no-option__xv0-E","option-active":"autocomplate-module_option-active__WuH4I","autocomplate-title":"autocomplate-module_autocomplate-title__3Qxqz","errorBorder":"autocomplate-module_errorBorder__LV-nb","errorMessage":"autocomplate-module_errorMessage__Gchpc"};
2181
- styleInject(css_248z$1);
2411
+ styleInject(css_248z);
2182
2412
 
2183
2413
  const Autocomplate = ({
2184
2414
  label,
@@ -2312,128 +2542,327 @@ Autocomplate.defaultProps = {
2312
2542
  required: false
2313
2543
  };
2314
2544
 
2315
- var css_248z = "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}";
2316
- styleInject(css_248z);
2317
-
2318
- const Textarea = ({
2319
- size,
2545
+ const NewAutocomplete = ({
2320
2546
  label,
2321
- width,
2322
- value,
2323
- height,
2324
- resize,
2325
- border,
2326
- radius,
2327
- padding,
2547
+ options,
2548
+ getItem,
2328
2549
  required,
2329
- onChange,
2330
- minWidth,
2331
- maxWidth,
2332
- minHeight,
2333
- maxHeight,
2334
- boxSizing,
2335
- maxLength,
2550
+ disabled,
2551
+ errorSize,
2336
2552
  labelSize,
2553
+ errorColor,
2337
2554
  labelColor,
2338
- borderColor,
2339
2555
  labelWeight,
2340
- placeholder,
2556
+ searchCount,
2557
+ placeHolder,
2558
+ errorMessage,
2559
+ autoComplete,
2341
2560
  labelDisplay,
2342
- backgroundColor,
2343
- borderFocusColor,
2344
- borderHoverColor,
2345
- labelRequiredColor
2561
+ contentDisplay,
2562
+ contentTopSize,
2563
+ contentPosition,
2564
+ contentTopColor,
2565
+ labelLineHeight,
2566
+ contentDirection,
2567
+ contentTopWeight,
2568
+ contentTopRadius,
2569
+ contentTopHeight,
2570
+ contentTopBorder,
2571
+ labelMarginBottom,
2572
+ contentTopDisplay,
2573
+ contentTopPadding,
2574
+ contentBottomLeft,
2575
+ showOptionDuration,
2576
+ labelRequiredColor,
2577
+ contentTopMaxWidth,
2578
+ labelTextTransform,
2579
+ contentBottomWidth,
2580
+ contentBottomZindex,
2581
+ contentBottomRadius,
2582
+ contentTopDirection,
2583
+ contentTopBoxSizing,
2584
+ contentTopLineHeight,
2585
+ contentTopBorderColor,
2586
+ contentBottomMaxWidth,
2587
+ contentBottomOverflow,
2588
+ contentBottomPosition,
2589
+ contentBottomRowColor,
2590
+ contentBottomMinHeight,
2591
+ contentBottomBoxShadow,
2592
+ contentBottomRowHeight,
2593
+ contentBottomRowCursor,
2594
+ contentBottomRowDisplay,
2595
+ contentBottomRowPadding,
2596
+ contentBottomRowFontSize,
2597
+ contentBottomRowBoxSizing,
2598
+ contentBottomInnerDisplay,
2599
+ contentBottomRowFontWeight,
2600
+ contentBottomRowLineHeight,
2601
+ contentBottomRowAlignItems,
2602
+ contentBottomRowTransition,
2603
+ contentBottomRowHoverColor,
2604
+ contentTopBorderHoverColor,
2605
+ contentTopBorderActiveColor,
2606
+ contentBottomInnerOverflowY,
2607
+ contentBottomInnerOverflowX,
2608
+ contentBottomInnerMaxHeight,
2609
+ contentBottomInnerDirection,
2610
+ contentBottomBackgroundColor,
2611
+ contentBottomRowMarginBottom,
2612
+ contentBottomRowBackgroundColor,
2613
+ contentBottomRowHoverBackgroundColor,
2614
+ ...props
2346
2615
  }) => {
2616
+ const [show, setShow] = React.useState(false);
2347
2617
  const [isHover, setIsHover] = React.useState(false);
2348
2618
  const [isFocus, setIsFocus] = React.useState(false);
2619
+ const [innerValue, setInnerValue] = React.useState('');
2349
2620
  const configStyles = compereConfigs();
2621
+ const showOption = styled.keyframes`
2622
+ 100% {
2623
+ max-height: 400px;
2624
+ }
2625
+ `;
2626
+ const animation = _ => styled.css`
2627
+ ${showOption} ${showOptionDuration ? showOptionDuration : configStyles.NEWAUTOCOMPLETE.showOptionDuration} linear forwards
2628
+ `;
2350
2629
  const handleMouseEnter = () => {
2351
2630
  setIsHover(true);
2352
2631
  };
2353
2632
  const handleMouseLeave = () => {
2354
2633
  setIsHover(false);
2355
2634
  };
2635
+ const handleRowMouseEnter = e => {
2636
+ e.target.style.color = contentBottomRowHoverColor ? contentBottomRowHoverColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowHoverColor;
2637
+ e.target.style.backgroundColor = contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowHoverBackgroundColor;
2638
+ };
2639
+ const handleRowMouseLeave = e => {
2640
+ e.target.style.color = contentBottomRowColor ? contentBottomRowColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowColor;
2641
+ e.target.style.backgroundColor = contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor;
2642
+ };
2356
2643
  const handleFocus = () => {
2357
2644
  setIsFocus(true);
2358
2645
  };
2359
2646
  const handleBlur = () => {
2360
2647
  setIsFocus(false);
2361
2648
  };
2649
+ const handleChange = e => {
2650
+ const value = e.target.value;
2651
+ value.length > 0 ? setShow(true) : setShow(false);
2652
+ setInnerValue(value);
2653
+ };
2654
+ const handleClick = selectedValue => {
2655
+ setShow(false);
2656
+ getItem(selectedValue);
2657
+ setInnerValue(selectedValue.value);
2658
+ };
2659
+ const optionList = /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, show && options && options.length > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2660
+ style: {
2661
+ left: contentBottomLeft ? contentBottomLeft : configStyles.NEWAUTOCOMPLETE.contentBottomLeft,
2662
+ width: contentBottomWidth ? contentBottomWidth : configStyles.NEWAUTOCOMPLETE.contentBottomWidth,
2663
+ zIndex: contentBottomZindex ? contentBottomZindex : configStyles.NEWAUTOCOMPLETE.contentBottomZindex,
2664
+ borderRadius: contentBottomRadius ? contentBottomRadius : configStyles.NEWAUTOCOMPLETE.contentBottomRadius,
2665
+ maxWidth: contentBottomMaxWidth ? contentBottomMaxWidth : configStyles.NEWAUTOCOMPLETE.contentBottomMaxWidth,
2666
+ overflow: contentBottomOverflow ? contentBottomOverflow : configStyles.NEWAUTOCOMPLETE.contentBottomOverflow,
2667
+ position: contentBottomPosition ? contentBottomPosition : configStyles.NEWAUTOCOMPLETE.contentBottomPosition,
2668
+ minHeight: contentBottomMinHeight ? contentBottomMinHeight : configStyles.NEWAUTOCOMPLETE.contentBottomMinHeight,
2669
+ boxShadow: contentBottomBoxShadow ? contentBottomBoxShadow : configStyles.NEWAUTOCOMPLETE.contentBottomBoxShadow,
2670
+ backgroundColor: contentBottomBackgroundColor ? contentBottomBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomBackgroundColor,
2671
+ top: contentTopHeight ? contentTopHeight.includes('rem') ? parseFloat(contentTopHeight.substr(0, contentTopHeight.length - 3)) + 0.6 + 'rem' : parseFloat(contentTopHeight.substr(0, contentTopHeight.length - 2)) + 6 + 'px' : configStyles.NEWAUTOCOMPLETE.contentTopHeight.includes('rem') ? parseFloat(configStyles.NEWAUTOCOMPLETE.contentTopHeight.substr(0, configStyles.NEWAUTOCOMPLETE.contentTopHeight.length - 3)) + 0.6 + 'rem' : parseFloat(configStyles.NEWAUTOCOMPLETE.contentTopHeight.substr(0, configStyles.NEWAUTOCOMPLETE.contentTopHeight.length - 2)) + 6 + 'px',
2672
+ animation
2673
+ }
2674
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2675
+ style: {
2676
+ display: contentBottomInnerDisplay ? contentBottomInnerDisplay : configStyles.NEWAUTOCOMPLETE.contentBottomInnerDisplay,
2677
+ overflowY: contentBottomInnerOverflowY ? contentBottomInnerOverflowY : configStyles.NEWAUTOCOMPLETE.contentBottomInnerOverflowY,
2678
+ overflowX: contentBottomInnerOverflowX ? contentBottomInnerOverflowX : configStyles.NEWAUTOCOMPLETE.contentBottomInnerOverflowX,
2679
+ maxHeight: contentBottomInnerMaxHeight ? contentBottomInnerMaxHeight : configStyles.NEWAUTOCOMPLETE.contentBottomInnerMaxHeight,
2680
+ flexDirection: contentBottomInnerDirection ? contentBottomInnerDirection : configStyles.NEWAUTOCOMPLETE.contentBottomInnerDirection
2681
+ }
2682
+ }, innerValue.length >= searchCount ? options.filter(item => item.value.includes(innerValue)).length > 0 ? options.filter(item => item.value.includes(innerValue)).map((item, index) => {
2683
+ return /*#__PURE__*/React__default["default"].createElement("p", {
2684
+ key: `${item}_${index}`,
2685
+ onMouseEnter: handleRowMouseEnter,
2686
+ onMouseLeave: handleRowMouseLeave,
2687
+ onClick: () => handleClick(item),
2688
+ style: {
2689
+ flexShrink: 0,
2690
+ color: contentBottomRowColor ? contentBottomRowColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowColor,
2691
+ height: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight,
2692
+ cursor: contentBottomRowCursor ? contentBottomRowCursor : configStyles.NEWAUTOCOMPLETE.contentBottomRowCursor,
2693
+ display: contentBottomRowDisplay ? contentBottomRowDisplay : configStyles.NEWAUTOCOMPLETE.contentBottomRowDisplay,
2694
+ padding: contentBottomRowPadding ? contentBottomRowPadding : configStyles.NEWAUTOCOMPLETE.contentBottomRowPadding,
2695
+ fontSize: contentBottomRowFontSize ? contentBottomRowFontSize : configStyles.NEWAUTOCOMPLETE.contentBottomRowFontSize,
2696
+ boxSizing: contentBottomRowBoxSizing ? contentBottomRowBoxSizing : configStyles.NEWAUTOCOMPLETE.contentBottomRowBoxSizing,
2697
+ fontWeight: contentBottomRowFontWeight ? contentBottomRowFontWeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowFontWeight,
2698
+ lineHeight: contentBottomRowLineHeight ? contentBottomRowLineHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowLineHeight,
2699
+ alignItems: contentBottomRowAlignItems ? contentBottomRowAlignItems : configStyles.NEWAUTOCOMPLETE.contentBottomRowAlignItems,
2700
+ transition: contentBottomRowTransition ? contentBottomRowTransition : configStyles.NEWAUTOCOMPLETE.contentBottomRowTransition,
2701
+ marginBottom: contentBottomRowMarginBottom ? contentBottomRowMarginBottom : configStyles.NEWAUTOCOMPLETE.contentBottomRowMarginBottom,
2702
+ backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor
2703
+ }
2704
+ }, item.value);
2705
+ }) : /*#__PURE__*/React__default["default"].createElement("p", {
2706
+ style: {
2707
+ color: errorColor ? errorColor : configStyles.NEWAUTOCOMPLETE.errorColor,
2708
+ fontSize: errorSize ? errorSize : configStyles.NEWAUTOCOMPLETE.errorSize,
2709
+ height: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight,
2710
+ padding: contentBottomRowPadding ? contentBottomRowPadding : configStyles.NEWAUTOCOMPLETE.contentBottomRowPadding,
2711
+ lineHeight: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight
2712
+ }
2713
+ }, "\u0546\u0574\u0561\u0576 \u057F\u057E\u0575\u0561\u056C \u0561\u057C\u056F\u0561 \u0579\u0567") : /*#__PURE__*/React__default["default"].createElement("p", {
2714
+ style: {
2715
+ color: errorColor ? errorColor : configStyles.NEWAUTOCOMPLETE.errorColor,
2716
+ fontSize: errorSize ? errorSize : configStyles.NEWAUTOCOMPLETE.errorSize,
2717
+ height: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight,
2718
+ padding: contentBottomRowPadding ? contentBottomRowPadding : configStyles.NEWAUTOCOMPLETE.contentBottomRowPadding,
2719
+ lineHeight: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight
2720
+ }
2721
+ }, innerValue.length < searchCount && `Լրացնել առնվազն ${searchCount} նիշ`))));
2362
2722
  React.useEffect(() => {
2363
- if (value === undefined) {
2364
- alert('Please add value prop on Textarea component');
2723
+ if (!options) {
2724
+ alert('Please add array of options');
2365
2725
  }
2366
- if (!onChange) {
2367
- alert('Please add onChange function on Textarea component');
2726
+ if (options.length === 0) {
2727
+ alert('Please fill options array');
2368
2728
  }
2369
- }, [value, onChange]);
2729
+ options && options.length > 0 && options.map(item => {
2730
+ if (!item.hasOwnProperty('value')) {
2731
+ alert('Please add value property in items of options array');
2732
+ }
2733
+ });
2734
+ if (!getItem) {
2735
+ alert('Please add getItem function for get choosen item from autocomplete');
2736
+ }
2737
+ }, [options, getItem]);
2370
2738
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
2371
2739
  style: {
2372
- color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
2373
- fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize,
2374
- display: labelDisplay ? labelDisplay : configStyles.TEXTAREA.labelDisplay,
2375
- fontWeight: labelWeight ? labelWeight : configStyles.TEXTAREA.labelWeight
2740
+ color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
2741
+ fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
2742
+ display: labelDisplay ? labelDisplay : configStyles.NEWAUTOCOMPLETE.labelDisplay,
2743
+ fontWeight: labelWeight ? labelWeight : configStyles.NEWAUTOCOMPLETE.labelWeight,
2744
+ lineHeight: labelLineHeight ? labelLineHeight : configStyles.NEWAUTOCOMPLETE.labelLineHeight,
2745
+ marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
2746
+ textTransform: labelTextTransform ? labelTextTransform : configStyles.NEWAUTOCOMPLETE.labelTextTransform
2376
2747
  }
2377
2748
  }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", {
2378
2749
  style: {
2379
- color: labelRequiredColor ? labelRequiredColor : configStyles.TEXTAREA.labelRequiredColor
2750
+ color: labelRequiredColor ? labelRequiredColor : configStyles.NEWAUTOCOMPLETE.labelRequiredColor
2380
2751
  }
2381
- }, "*")) : '', /*#__PURE__*/React__default["default"].createElement("textarea", {
2752
+ }, "*")) : '', /*#__PURE__*/React__default["default"].createElement("div", {
2382
2753
  style: {
2383
- outline: 'none',
2384
- overflow: 'auto',
2385
- fontSize: size ? size : configStyles.TEXTAREA.size,
2386
- width: width ? width : configStyles.TEXTAREA.width,
2387
- height: height ? height : configStyles.TEXTAREA.height,
2388
- border: border ? border : configStyles.TEXTAREA.border,
2389
- padding: padding ? padding : configStyles.TEXTAREA.padding,
2390
- borderRadius: radius ? radius : configStyles.TEXTAREA.radius,
2391
- minWidth: minWidth ? minWidth : configStyles.TEXTAREA.minWidth,
2392
- maxWidth: maxWidth ? maxWidth : configStyles.TEXTAREA.maxWidth,
2393
- minHeight: minHeight ? minHeight : configStyles.TEXTAREA.minHeight,
2394
- maxHeight: maxHeight ? maxHeight : configStyles.TEXTAREA.maxHeight,
2395
- boxSizing: boxSizing ? boxSizing : configStyles.TEXTAREA.boxSizing,
2396
- backgroundColor: backgroundColor ? backgroundColor : configStyles.TEXTAREA.backgroundColor,
2397
- borderColor: isFocus ? borderFocusColor ? borderFocusColor : configStyles.TEXTAREA.borderFocusColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.TEXTAREA.borderHoverColor : borderColor ? borderColor : configStyles.TEXTAREA.borderColor,
2398
- resize: resize ? resize : configStyles.TEXTAREA.resize
2399
- },
2754
+ display: contentDisplay ? contentDisplay : configStyles.NEWAUTOCOMPLETE.contentDisplay,
2755
+ position: contentPosition ? contentPosition : configStyles.NEWAUTOCOMPLETE.contentPosition,
2756
+ flexDirection: contentDirection ? contentDirection : configStyles.NEWAUTOCOMPLETE.contentDirection
2757
+ }
2758
+ }, /*#__PURE__*/React__default["default"].createElement("input", _extends({
2759
+ type: "text",
2760
+ value: innerValue,
2761
+ disabled: disabled,
2400
2762
  onBlur: handleBlur,
2401
- onChange: onChange,
2402
2763
  onFocus: handleFocus,
2403
- placeholder: placeholder,
2764
+ onInput: handleChange,
2765
+ placeholder: placeHolder ? placeHolder : '',
2766
+ autoComplete: autoComplete ? autoComplete : configStyles.NEWAUTOCOMPLETE.autoComplete,
2404
2767
  onMouseEnter: handleMouseEnter,
2405
2768
  onMouseLeave: handleMouseLeave,
2406
- 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
2407
- }));
2769
+ style: {
2770
+ transition: 'all 240ms',
2771
+ cursor: disabled ? 'not-allowed' : 'auto',
2772
+ color: contentTopColor ? contentTopColor : configStyles.NEWAUTOCOMPLETE.contentTopColor,
2773
+ fontSize: contentTopSize ? contentTopSize : configStyles.NEWAUTOCOMPLETE.contentTopSize,
2774
+ height: contentTopHeight ? contentTopHeight : configStyles.NEWAUTOCOMPLETE.contentTopHeight,
2775
+ border: contentTopBorder ? contentTopBorder : configStyles.NEWAUTOCOMPLETE.contentTopBorder,
2776
+ padding: contentTopPadding ? contentTopPadding : configStyles.NEWAUTOCOMPLETE.contentTopPadding,
2777
+ display: contentTopDisplay ? contentTopDisplay : configStyles.NEWAUTOCOMPLETE.contentTopDisplay,
2778
+ fontWeight: contentTopWeight ? contentTopWeight : configStyles.NEWAUTOCOMPLETE.contentTopWeight,
2779
+ borderRadius: contentTopRadius ? contentTopRadius : configStyles.NEWAUTOCOMPLETE.contentTopRadius,
2780
+ maxWidth: contentTopMaxWidth ? contentTopMaxWidth : configStyles.NEWAUTOCOMPLETE.contentTopMaxWidth,
2781
+ boxSizing: contentTopBoxSizing ? contentTopBoxSizing : configStyles.NEWAUTOCOMPLETE.contentTopBoxSizing,
2782
+ lineHeight: contentTopLineHeight ? contentTopLineHeight : configStyles.NEWAUTOCOMPLETE.contentTopLineHeight,
2783
+ flexDirection: contentTopDirection ? contentTopDirection : configStyles.NEWAUTOCOMPLETE.contentTopDirection,
2784
+ borderColor: errorMessage ? errorColor ? errorColor : configStyles.NEWAUTOCOMPLETE.errorColor : isFocus ? contentTopBorderActiveColor ? contentTopBorderActiveColor : configStyles.NEWAUTOCOMPLETE.contentTopBorderActiveColor : isHover ? contentTopBorderHoverColor ? contentTopBorderHoverColor : configStyles.NEWAUTOCOMPLETE.contentTopBorderHoverColor : contentTopBorderColor ? contentTopBorderColor : configStyles.NEWAUTOCOMPLETE.contentTopBorderColor
2785
+ }
2786
+ }, props)), errorMessage ? /*#__PURE__*/React__default["default"].createElement("span", {
2787
+ style: {
2788
+ color: errorColor ? errorColor : configStyles.NEWAUTOCOMPLETE.errorColor,
2789
+ fontSize: errorSize ? errorSize : configStyles.NEWAUTOCOMPLETE.errorSize
2790
+ }
2791
+ }, errorMessage) : '', optionList));
2408
2792
  };
2409
- Textarea.propTypes = {
2410
- size: PropTypes__default["default"].string,
2793
+ NewAutocomplete.propTypes = {
2411
2794
  label: PropTypes__default["default"].string,
2412
- width: PropTypes__default["default"].string,
2413
- height: PropTypes__default["default"].string,
2414
- resize: PropTypes__default["default"].string,
2415
- border: PropTypes__default["default"].string,
2416
- radius: PropTypes__default["default"].string,
2417
2795
  required: PropTypes__default["default"].bool,
2418
- padding: PropTypes__default["default"].string,
2419
- minWidth: PropTypes__default["default"].string,
2420
- maxWidth: PropTypes__default["default"].string,
2421
- boxSizing: PropTypes__default["default"].string,
2422
- minHeight: PropTypes__default["default"].string,
2423
- maxHeight: PropTypes__default["default"].string,
2424
- maxLength: PropTypes__default["default"].number,
2796
+ disabled: PropTypes__default["default"].bool,
2797
+ errorSize: PropTypes__default["default"].string,
2425
2798
  labelSize: PropTypes__default["default"].string,
2799
+ errorColor: PropTypes__default["default"].string,
2426
2800
  labelColor: PropTypes__default["default"].string,
2427
- labelWeight: PropTypes__default["default"].string,
2428
- borderColor: PropTypes__default["default"].string,
2429
- placeholder: PropTypes__default["default"].string,
2801
+ searchCount: PropTypes__default["default"].number,
2802
+ placeHolder: PropTypes__default["default"].string,
2803
+ labelWeight: PropTypes__default["default"].number,
2804
+ errorMessage: PropTypes__default["default"].string,
2430
2805
  labelDisplay: PropTypes__default["default"].string,
2431
- backgroundColor: PropTypes__default["default"].string,
2432
- value: PropTypes__default["default"].string.isRequired,
2433
- borderFocusColor: PropTypes__default["default"].string,
2434
- borderHoverColor: PropTypes__default["default"].string,
2435
- onChange: PropTypes__default["default"].func.isRequired,
2436
- labelRequiredColor: PropTypes__default["default"].string
2806
+ autoComplete: PropTypes__default["default"].string,
2807
+ contentDisplay: PropTypes__default["default"].string,
2808
+ contentTopSize: PropTypes__default["default"].string,
2809
+ contentPosition: PropTypes__default["default"].string,
2810
+ labelLineHeight: PropTypes__default["default"].string,
2811
+ contentTopColor: PropTypes__default["default"].string,
2812
+ contentDirection: PropTypes__default["default"].string,
2813
+ contentTopWeight: PropTypes__default["default"].number,
2814
+ contentTopRadius: PropTypes__default["default"].string,
2815
+ contentTopHeight: PropTypes__default["default"].string,
2816
+ contentTopBorder: PropTypes__default["default"].string,
2817
+ getItem: PropTypes__default["default"].func.isRequired,
2818
+ contentTopDisplay: PropTypes__default["default"].string,
2819
+ contentTopPadding: PropTypes__default["default"].string,
2820
+ contentBottomLeft: PropTypes__default["default"].string,
2821
+ options: PropTypes__default["default"].array.isRequired,
2822
+ labelMarginBottom: PropTypes__default["default"].string,
2823
+ labelRequiredColor: PropTypes__default["default"].string,
2824
+ labelTextTransform: PropTypes__default["default"].string,
2825
+ showOptionDuration: PropTypes__default["default"].string,
2826
+ contentTopMaxWidth: PropTypes__default["default"].string,
2827
+ contentBottomWidth: PropTypes__default["default"].string,
2828
+ contentTopDirection: PropTypes__default["default"].string,
2829
+ contentTopBoxSizing: PropTypes__default["default"].string,
2830
+ contentBottomZindex: PropTypes__default["default"].number,
2831
+ contentBottomRadius: PropTypes__default["default"].string,
2832
+ contentTopLineHeight: PropTypes__default["default"].string,
2833
+ contentTopBorderColor: PropTypes__default["default"].string,
2834
+ contentBottomRowColor: PropTypes__default["default"].string,
2835
+ contentBottomMaxWidth: PropTypes__default["default"].string,
2836
+ contentBottomOverflow: PropTypes__default["default"].string,
2837
+ contentBottomPosition: PropTypes__default["default"].string,
2838
+ contentBottomMinHeight: PropTypes__default["default"].string,
2839
+ contentBottomBoxShadow: PropTypes__default["default"].string,
2840
+ contentBottomRowHeight: PropTypes__default["default"].string,
2841
+ contentBottomRowCursor: PropTypes__default["default"].string,
2842
+ contentBottomRowDisplay: PropTypes__default["default"].string,
2843
+ contentBottomRowPadding: PropTypes__default["default"].string,
2844
+ contentBottomRowFontSize: PropTypes__default["default"].string,
2845
+ contentBottomRowBoxSizing: PropTypes__default["default"].string,
2846
+ contentBottomInnerDisplay: PropTypes__default["default"].string,
2847
+ contentBottomRowFontWeight: PropTypes__default["default"].number,
2848
+ contentBottomRowLineHeight: PropTypes__default["default"].string,
2849
+ contentBottomRowAlignItems: PropTypes__default["default"].string,
2850
+ contentBottomRowTransition: PropTypes__default["default"].string,
2851
+ contentBottomRowHoverColor: PropTypes__default["default"].string,
2852
+ contentTopBorderHoverColor: PropTypes__default["default"].string,
2853
+ contentTopBorderActiveColor: PropTypes__default["default"].string,
2854
+ contentBottomInnerOverflowY: PropTypes__default["default"].string,
2855
+ contentBottomInnerOverflowX: PropTypes__default["default"].string,
2856
+ contentBottomInnerMaxHeight: PropTypes__default["default"].string,
2857
+ contentBottomInnerDirection: PropTypes__default["default"].string,
2858
+ contentBottomRowMarginBottom: PropTypes__default["default"].string,
2859
+ contentBottomBackgroundColor: PropTypes__default["default"].string,
2860
+ contentBottomRowBackgroundColor: PropTypes__default["default"].string,
2861
+ contentBottomRowHoverBackgroundColor: PropTypes__default["default"].string
2862
+ };
2863
+ NewAutocomplete.defaultProps = {
2864
+ searchCount: 3,
2865
+ disabled: false
2437
2866
  };
2438
2867
 
2439
2868
  exports.Autocomplate = Autocomplate;
@@ -2444,6 +2873,7 @@ exports.File = File;
2444
2873
  exports.Input = Input;
2445
2874
  exports.InputTypes = InputTypes;
2446
2875
  exports.Modal = Modal;
2876
+ exports.NewAutocomplete = NewAutocomplete;
2447
2877
  exports.Pagination = Pagination;
2448
2878
  exports.Radio = Radio;
2449
2879
  exports.Select = Select;