@xaypay/tui 0.0.69 → 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.
- package/dist/index.es.js +1323 -294
- package/dist/index.js +1323 -292
- package/package.json +3 -2
- package/src/assets/range-arrow-default.svg +19 -0
- package/src/assets/range-arrow-error.svg +19 -0
- package/src/assets/range-arrow-success.svg +19 -0
- package/src/components/captcha/captcha.module.css +61 -62
- package/src/components/captcha/captcha.stories.js +5 -4
- package/src/components/captcha/index.js +146 -56
- package/src/components/file/file.module.css +1 -1
- package/src/components/file/index.js +10 -8
- package/src/components/icon/Arrow.js +2 -2
- package/src/components/icon/CaptchaArrowDown.js +19 -0
- package/src/components/icon/CaptchaArrowUp.js +19 -0
- package/src/components/icon/CheckboxChecked.js +2 -2
- package/src/components/icon/CheckboxUnchecked.js +2 -2
- package/src/components/icon/CloseIcon.js +2 -2
- package/src/components/icon/DeleteComponent.js +20 -0
- package/src/components/icon/Dots.js +6 -6
- package/src/components/icon/ListItemDelete.js +19 -0
- package/src/components/icon/ListItemJpg.js +21 -0
- package/src/components/icon/ListItemPdf.js +21 -0
- package/src/components/icon/Nextarrow.js +19 -0
- package/src/components/icon/PDF.js +19 -0
- package/src/components/icon/RangeArrowDefault.js +54 -0
- package/src/components/icon/RangeArrowError.js +54 -0
- package/src/components/icon/RangeArrowSuccess.js +54 -0
- package/src/components/icon/RemoveFile.js +20 -0
- package/src/components/icon/ToasterClose.js +2 -2
- package/src/components/icon/ToasterError.js +2 -2
- package/src/components/icon/ToasterInfo.js +2 -2
- package/src/components/icon/ToasterSuccess.js +2 -2
- package/src/components/icon/ToasterWarning.js +2 -2
- package/src/components/icon/Tooltip.js +2 -2
- package/src/components/icon/Upload.js +25 -0
- package/src/components/icon/index.js +1 -10
- package/src/components/input/index.js +36 -31
- package/src/components/newAutocomplete/NewAutocomplete.stories.js +50 -0
- package/src/components/newAutocomplete/index.js +407 -0
- package/src/components/newFile/index.js +463 -0
- package/src/components/newFile/newFile.stories.js +41 -0
- package/src/components/pagination/index.js +5 -5
- package/src/components/textarea/index.js +63 -27
- package/src/components/textarea/textarea.stories.js +3 -3
- package/src/components/toaster/Toast.js +1 -1
- package/src/components/tooltip/index.js +2 -2
- package/src/index.js +3 -1
- package/src/stories/configuration.stories.mdx +87 -0
- package/src/stories/static/captcha-usage.png +0 -0
- package/src/stories/static/new-autocomplete-usage.png +0 -0
- package/src/stories/usage.stories.mdx +10 -3
- package/tui.config.js +120 -21
- package/src/assets/icons/arrow.svg +0 -3
- package/src/assets/icons/checkbox-checked.svg +0 -3
- package/src/assets/icons/checkbox-unchecked.svg +0 -3
- package/src/assets/icons/close-icon.svg +0 -3
- package/src/assets/icons/dots.svg +0 -3
- package/src/assets/icons/nextarrow.svg +0 -3
- package/src/assets/icons/toaster-close.svg +0 -3
- package/src/assets/icons/toaster-error.svg +0 -3
- package/src/assets/icons/toaster-info.svg +0 -3
- package/src/assets/icons/toaster-success.svg +0 -3
- package/src/assets/icons/toaster-warning.svg +0 -3
- package/src/assets/icons/tooltip.svg +0 -3
- package/src/assets/upload.svg +0 -4
- package/src/components/captcha/blue.png +0 -0
- package/src/components/captcha/green.png +0 -0
- package/src/components/captcha/red.png +0 -0
- package/src/components/icon/NextArrow.js +0 -19
package/dist/index.es.js
CHANGED
|
@@ -5,6 +5,39 @@ import classnames from 'classnames';
|
|
|
5
5
|
import styled, { keyframes, css } from 'styled-components';
|
|
6
6
|
import ReactDOM from 'react-dom';
|
|
7
7
|
|
|
8
|
+
function _extends() {
|
|
9
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
10
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
11
|
+
var source = arguments[i];
|
|
12
|
+
for (var key in source) {
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14
|
+
target[key] = source[key];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
return _extends.apply(this, arguments);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const SvgPdf = ({
|
|
24
|
+
title,
|
|
25
|
+
titleId,
|
|
26
|
+
...props
|
|
27
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
28
|
+
width: "40",
|
|
29
|
+
height: "52",
|
|
30
|
+
viewBox: "0 0 40 52",
|
|
31
|
+
fill: "none",
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
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",
|
|
38
|
+
fill: "#00236A"
|
|
39
|
+
}));
|
|
40
|
+
|
|
8
41
|
function styleInject(css, ref) {
|
|
9
42
|
if ( ref === void 0 ) ref = {};
|
|
10
43
|
var insertAt = ref.insertAt;
|
|
@@ -32,15 +65,10 @@ function styleInject(css, ref) {
|
|
|
32
65
|
}
|
|
33
66
|
}
|
|
34
67
|
|
|
35
|
-
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:
|
|
68
|
+
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)}";
|
|
36
69
|
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"};
|
|
37
70
|
styleInject(css_248z$e);
|
|
38
71
|
|
|
39
|
-
var css_248z$d = "";
|
|
40
|
-
styleInject(css_248z$d);
|
|
41
|
-
|
|
42
|
-
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>";
|
|
43
|
-
|
|
44
72
|
const File = ({
|
|
45
73
|
name,
|
|
46
74
|
label,
|
|
@@ -54,9 +82,9 @@ const File = ({
|
|
|
54
82
|
fileExtensions,
|
|
55
83
|
...props
|
|
56
84
|
}) => {
|
|
57
|
-
const [image, setImage] = useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : pdfImage : null);
|
|
58
85
|
const [error, setError] = useState('');
|
|
59
86
|
const [fileName, setFileName] = useState('no selected file');
|
|
87
|
+
const [image, setImage] = useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : 'pdf' : null);
|
|
60
88
|
const handleCheckFile = e => {
|
|
61
89
|
const file = e.target.files;
|
|
62
90
|
if (file[0]) {
|
|
@@ -67,7 +95,7 @@ const File = ({
|
|
|
67
95
|
onChange({
|
|
68
96
|
file
|
|
69
97
|
});
|
|
70
|
-
setImage(
|
|
98
|
+
setImage('pdf');
|
|
71
99
|
} else {
|
|
72
100
|
setError('');
|
|
73
101
|
onChange({
|
|
@@ -109,8 +137,7 @@ const File = ({
|
|
|
109
137
|
}, "*")), /*#__PURE__*/React__default.createElement("div", {
|
|
110
138
|
className: classnames(`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
|
|
111
139
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
112
|
-
|
|
113
|
-
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'] : ''}`,
|
|
114
141
|
onClick: () => document.querySelector(`.${name}`).click()
|
|
115
142
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
116
143
|
hidden: true,
|
|
@@ -120,7 +147,7 @@ const File = ({
|
|
|
120
147
|
onChange: e => handleCheckFile(e)
|
|
121
148
|
}), image ? /*#__PURE__*/React__default.createElement("div", {
|
|
122
149
|
className: `${styles$c['upload-file-content']} upload-file-content-rem`
|
|
123
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
150
|
+
}, image === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgPdf, null) : /*#__PURE__*/React__default.createElement("img", {
|
|
124
151
|
src: image,
|
|
125
152
|
alt: fileName
|
|
126
153
|
})) : /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -139,11 +166,11 @@ const File = ({
|
|
|
139
166
|
onClick: handleRemoveFile
|
|
140
167
|
}, /*#__PURE__*/React__default.createElement("i", {
|
|
141
168
|
className: "icon-delete"
|
|
142
|
-
})),
|
|
169
|
+
})), error || errorMessage ? /*#__PURE__*/React__default.createElement("span", {
|
|
143
170
|
style: {
|
|
144
171
|
color: 'red'
|
|
145
172
|
}
|
|
146
|
-
},
|
|
173
|
+
}, error || errorMessage) : null));
|
|
147
174
|
};
|
|
148
175
|
File.propTypes = {
|
|
149
176
|
label: PropTypes.string,
|
|
@@ -162,28 +189,13 @@ File.defaultProps = {
|
|
|
162
189
|
fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
|
|
163
190
|
};
|
|
164
191
|
|
|
165
|
-
var css_248z$
|
|
192
|
+
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}";
|
|
166
193
|
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"};
|
|
167
|
-
styleInject(css_248z$
|
|
168
|
-
|
|
169
|
-
function _extends() {
|
|
170
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
171
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
172
|
-
var source = arguments[i];
|
|
173
|
-
for (var key in source) {
|
|
174
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
175
|
-
target[key] = source[key];
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
return target;
|
|
180
|
-
};
|
|
181
|
-
return _extends.apply(this, arguments);
|
|
182
|
-
}
|
|
194
|
+
styleInject(css_248z$d);
|
|
183
195
|
|
|
184
|
-
var css_248z$
|
|
196
|
+
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}";
|
|
185
197
|
var styles$a = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
|
|
186
|
-
styleInject(css_248z$
|
|
198
|
+
styleInject(css_248z$c);
|
|
187
199
|
|
|
188
200
|
const Checkbox = ({
|
|
189
201
|
disabled,
|
|
@@ -357,8 +369,11 @@ Table.defaultProps = {
|
|
|
357
369
|
hearderData: []
|
|
358
370
|
};
|
|
359
371
|
|
|
360
|
-
var css_248z$
|
|
372
|
+
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)}}";
|
|
361
373
|
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"};
|
|
374
|
+
styleInject(css_248z$b);
|
|
375
|
+
|
|
376
|
+
var css_248z$a = "";
|
|
362
377
|
styleInject(css_248z$a);
|
|
363
378
|
|
|
364
379
|
const _ = require('lodash');
|
|
@@ -611,7 +626,7 @@ const Input = ({
|
|
|
611
626
|
errorAnimationDuration,
|
|
612
627
|
...props
|
|
613
628
|
}) => {
|
|
614
|
-
const phoneNumberRegex = /^\d
|
|
629
|
+
const phoneNumberRegex = /^\d+$/;
|
|
615
630
|
const [show, setShow] = useState(false);
|
|
616
631
|
const [isHover, setIsHover] = useState(false);
|
|
617
632
|
const [innerValue, setInnerValue] = useState('');
|
|
@@ -639,28 +654,34 @@ const Input = ({
|
|
|
639
654
|
const currentValue = event.target.value;
|
|
640
655
|
setInnerValue(currentValue);
|
|
641
656
|
if (type === 'tel') {
|
|
642
|
-
if (currentValue
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
if (!phoneNumberRegex.test(currentValue) && telErrorMessage) {
|
|
646
|
-
setInnerErrorMessage(telErrorMessage);
|
|
657
|
+
if (!phoneNumberRegex.test(currentValue)) {
|
|
658
|
+
telErrorMessage && setInnerErrorMessage(telErrorMessage);
|
|
659
|
+
setInnerValue('');
|
|
647
660
|
} else {
|
|
648
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
|
+
}
|
|
649
673
|
}
|
|
650
674
|
}
|
|
651
675
|
if (maxLength && currentValue.length > maxLength && type !== 'tel') {
|
|
652
676
|
setInnerValue(currentValue.substr(0, maxLength));
|
|
677
|
+
if (onChange) {
|
|
678
|
+
onChange(currentValue.substr(0, maxLength));
|
|
679
|
+
}
|
|
653
680
|
}
|
|
654
681
|
if (regexp && regexpErrorMessage && !maxLength && type !== 'tel') {
|
|
655
682
|
!regexp.test(currentValue) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
onChange(currentValue);
|
|
659
|
-
if (type === 'tel' && currentValue.length > 8) {
|
|
660
|
-
onChange(currentValue.substr(0, 8));
|
|
661
|
-
}
|
|
662
|
-
if (maxLength && currentValue.length > maxLength && type !== 'tel') {
|
|
663
|
-
onChange(currentValue.substr(0, maxLength));
|
|
683
|
+
if (onChange) {
|
|
684
|
+
onChange(currentValue);
|
|
664
685
|
}
|
|
665
686
|
}
|
|
666
687
|
};
|
|
@@ -671,16 +692,24 @@ const Input = ({
|
|
|
671
692
|
setIsHover(false);
|
|
672
693
|
};
|
|
673
694
|
useEffect(() => {
|
|
695
|
+
if (errorMessage) {
|
|
696
|
+
setInnerErrorMessage(errorMessage);
|
|
697
|
+
} else {
|
|
698
|
+
setInnerErrorMessage('');
|
|
699
|
+
}
|
|
674
700
|
if (value !== undefined && value !== null) {
|
|
675
701
|
setInnerValue(value);
|
|
676
702
|
if (type === 'tel') {
|
|
677
|
-
if (
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
if (!phoneNumberRegex.test(value) && telErrorMessage) {
|
|
681
|
-
setInnerErrorMessage(telErrorMessage);
|
|
703
|
+
if (!phoneNumberRegex.test(currentValue)) {
|
|
704
|
+
telErrorMessage && setInnerErrorMessage(telErrorMessage);
|
|
705
|
+
setInnerValue('');
|
|
682
706
|
} else {
|
|
683
707
|
setInnerErrorMessage('');
|
|
708
|
+
if (value.length > 8) {
|
|
709
|
+
setInnerValue(value.substr(0, 8));
|
|
710
|
+
} else {
|
|
711
|
+
setInnerValue(value);
|
|
712
|
+
}
|
|
684
713
|
}
|
|
685
714
|
}
|
|
686
715
|
if (maxLength && value.length > maxLength && type !== 'tel') {
|
|
@@ -690,11 +719,6 @@ const Input = ({
|
|
|
690
719
|
!regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
|
|
691
720
|
}
|
|
692
721
|
}
|
|
693
|
-
if (errorMessage) {
|
|
694
|
-
setInnerErrorMessage(errorMessage);
|
|
695
|
-
} else {
|
|
696
|
-
setInnerErrorMessage('');
|
|
697
|
-
}
|
|
698
722
|
}, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage]);
|
|
699
723
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
700
724
|
className: `${styles$8["input-wrap"]}`
|
|
@@ -1008,8 +1032,8 @@ const SvgCheckboxUnchecked = ({
|
|
|
1008
1032
|
titleId,
|
|
1009
1033
|
...props
|
|
1010
1034
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1011
|
-
width: "
|
|
1012
|
-
height: "
|
|
1035
|
+
width: "16",
|
|
1036
|
+
height: "16",
|
|
1013
1037
|
viewBox: "0 0 16 16",
|
|
1014
1038
|
fill: "none",
|
|
1015
1039
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1028,8 +1052,8 @@ const SvgCheckboxChecked = ({
|
|
|
1028
1052
|
titleId,
|
|
1029
1053
|
...props
|
|
1030
1054
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1031
|
-
width: "
|
|
1032
|
-
height: "
|
|
1055
|
+
width: "16",
|
|
1056
|
+
height: "16",
|
|
1033
1057
|
viewBox: "0 0 16 16",
|
|
1034
1058
|
fill: "none",
|
|
1035
1059
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1061,8 +1085,8 @@ const SvgArrow = ({
|
|
|
1061
1085
|
titleId,
|
|
1062
1086
|
...props
|
|
1063
1087
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1064
|
-
width: "
|
|
1065
|
-
height: "
|
|
1088
|
+
width: "15",
|
|
1089
|
+
height: "9",
|
|
1066
1090
|
viewBox: "0 0 15 9",
|
|
1067
1091
|
fill: "none",
|
|
1068
1092
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1079,8 +1103,8 @@ const SvgCloseIcon = ({
|
|
|
1079
1103
|
titleId,
|
|
1080
1104
|
...props
|
|
1081
1105
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1082
|
-
width: "
|
|
1083
|
-
height: "
|
|
1106
|
+
width: "14",
|
|
1107
|
+
height: "14",
|
|
1084
1108
|
viewBox: "0 0 14 14",
|
|
1085
1109
|
fill: "none",
|
|
1086
1110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1413,8 +1437,8 @@ const SvgToasterInfo = ({
|
|
|
1413
1437
|
titleId,
|
|
1414
1438
|
...props
|
|
1415
1439
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1416
|
-
width: "
|
|
1417
|
-
height: "
|
|
1440
|
+
width: "24",
|
|
1441
|
+
height: "24",
|
|
1418
1442
|
viewBox: "0 0 24 24",
|
|
1419
1443
|
fill: "none",
|
|
1420
1444
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1431,8 +1455,8 @@ const SvgToasterError = ({
|
|
|
1431
1455
|
titleId,
|
|
1432
1456
|
...props
|
|
1433
1457
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1434
|
-
width: "
|
|
1435
|
-
height: "
|
|
1458
|
+
width: "24",
|
|
1459
|
+
height: "24",
|
|
1436
1460
|
viewBox: "0 0 24 24",
|
|
1437
1461
|
fill: "none",
|
|
1438
1462
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1449,8 +1473,8 @@ const SvgToasterClose = ({
|
|
|
1449
1473
|
titleId,
|
|
1450
1474
|
...props
|
|
1451
1475
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1452
|
-
width: "
|
|
1453
|
-
height: "
|
|
1476
|
+
width: "18",
|
|
1477
|
+
height: "18",
|
|
1454
1478
|
viewBox: "0 0 18 18",
|
|
1455
1479
|
fill: "none",
|
|
1456
1480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1467,8 +1491,8 @@ const SvgToasterWarning = ({
|
|
|
1467
1491
|
titleId,
|
|
1468
1492
|
...props
|
|
1469
1493
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1470
|
-
width: "
|
|
1471
|
-
height: "
|
|
1494
|
+
width: "24",
|
|
1495
|
+
height: "24",
|
|
1472
1496
|
viewBox: "0 0 24 21",
|
|
1473
1497
|
fill: "none",
|
|
1474
1498
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1485,8 +1509,8 @@ const SvgToasterSuccess = ({
|
|
|
1485
1509
|
titleId,
|
|
1486
1510
|
...props
|
|
1487
1511
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1488
|
-
width: "
|
|
1489
|
-
height: "
|
|
1512
|
+
width: "24",
|
|
1513
|
+
height: "24",
|
|
1490
1514
|
viewBox: "0 0 24 24",
|
|
1491
1515
|
fill: "none",
|
|
1492
1516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1585,12 +1609,12 @@ const Toast = ({
|
|
|
1585
1609
|
}
|
|
1586
1610
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
1587
1611
|
style: {
|
|
1612
|
+
margin: '0px',
|
|
1588
1613
|
fontWeight: 600,
|
|
1589
1614
|
color: '#3C393E',
|
|
1590
1615
|
fontSize: '16px',
|
|
1591
1616
|
lineHeight: '22px',
|
|
1592
|
-
fontStyle: 'normal'
|
|
1593
|
-
fontFamily: ''
|
|
1617
|
+
fontStyle: 'normal'
|
|
1594
1618
|
}
|
|
1595
1619
|
}, title ? title.length > 25 ? title.substr(0, 25) + '...' : title : ''), /*#__PURE__*/React__default.createElement("span", {
|
|
1596
1620
|
style: {
|
|
@@ -1754,7 +1778,23 @@ const Toaster = () => {
|
|
|
1754
1778
|
});
|
|
1755
1779
|
};
|
|
1756
1780
|
|
|
1757
|
-
|
|
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
|
+
}));
|
|
1758
1798
|
|
|
1759
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}";
|
|
1760
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"};
|
|
@@ -1830,9 +1870,7 @@ const Tooltip = ({
|
|
|
1830
1870
|
cursor: 'pointer'
|
|
1831
1871
|
},
|
|
1832
1872
|
onClick: handleShow
|
|
1833
|
-
}, tooltipIcon ? tooltipIcon : /*#__PURE__*/React__default.createElement(
|
|
1834
|
-
src: ReactInfoIcon
|
|
1835
|
-
})));
|
|
1873
|
+
}, tooltipIcon ? tooltipIcon : /*#__PURE__*/React__default.createElement(SvgTooltip, null)));
|
|
1836
1874
|
};
|
|
1837
1875
|
Tooltip.propTypes = {
|
|
1838
1876
|
type: PropTypes.string,
|
|
@@ -1854,71 +1892,164 @@ Tooltip.defaultProps = {
|
|
|
1854
1892
|
type: 'top'
|
|
1855
1893
|
};
|
|
1856
1894
|
|
|
1857
|
-
|
|
1858
|
-
|
|
1895
|
+
const SvgCaptchaArrowUp = ({
|
|
1896
|
+
title,
|
|
1897
|
+
titleId,
|
|
1898
|
+
...props
|
|
1899
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1900
|
+
width: "12",
|
|
1901
|
+
height: "15",
|
|
1902
|
+
viewBox: "0 0 12 15",
|
|
1903
|
+
fill: "none",
|
|
1904
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1905
|
+
"aria-labelledby": titleId
|
|
1906
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1907
|
+
id: titleId
|
|
1908
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
1909
|
+
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",
|
|
1910
|
+
fill: "#00236A"
|
|
1911
|
+
}));
|
|
1912
|
+
|
|
1913
|
+
const SvgCaptchaArrowDown = ({
|
|
1914
|
+
title,
|
|
1915
|
+
titleId,
|
|
1916
|
+
...props
|
|
1917
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1918
|
+
width: "12",
|
|
1919
|
+
height: "15",
|
|
1920
|
+
viewBox: "0 0 12 15",
|
|
1921
|
+
fill: "none",
|
|
1922
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1923
|
+
"aria-labelledby": titleId
|
|
1924
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1925
|
+
id: titleId
|
|
1926
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
1927
|
+
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",
|
|
1928
|
+
fill: "#00236A"
|
|
1929
|
+
}));
|
|
1930
|
+
|
|
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}";
|
|
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"};
|
|
1859
1933
|
styleInject(css_248z$4);
|
|
1860
1934
|
|
|
1861
1935
|
const Captcha = ({
|
|
1862
|
-
|
|
1863
|
-
|
|
1936
|
+
size,
|
|
1937
|
+
color,
|
|
1938
|
+
range,
|
|
1939
|
+
label,
|
|
1940
|
+
getRange
|
|
1864
1941
|
}) => {
|
|
1865
|
-
const [
|
|
1866
|
-
const [
|
|
1867
|
-
|
|
1868
|
-
|
|
1942
|
+
const [rangeNumber, setRangeNumber] = useState(0);
|
|
1943
|
+
const [rangeProgress, setRangeProgress] = useState(0);
|
|
1944
|
+
const configStyles = compereConfigs();
|
|
1945
|
+
const handleRange = e => {
|
|
1946
|
+
const value = e.target.value;
|
|
1947
|
+
getRange(value);
|
|
1948
|
+
setRangeProgress(value);
|
|
1949
|
+
};
|
|
1869
1950
|
useEffect(() => {
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
selector[0].style.left = event.target.value + '%';
|
|
1881
|
-
progressBar[0].style.width = event.target.value + '%';
|
|
1882
|
-
if (rangeCount == event.target.value) {
|
|
1883
|
-
selectBtn[0].style.background = "pink";
|
|
1951
|
+
if (range === undefined || range === null) {
|
|
1952
|
+
alert('Please add range property on Captcha component');
|
|
1953
|
+
}
|
|
1954
|
+
if (!getRange) {
|
|
1955
|
+
alert('Please add getRange property on Captcha component');
|
|
1956
|
+
}
|
|
1957
|
+
if (range >= 100) {
|
|
1958
|
+
setRangeNumber(100);
|
|
1959
|
+
} else if (range <= 0) {
|
|
1960
|
+
setRangeNumber(0);
|
|
1884
1961
|
} else {
|
|
1885
|
-
|
|
1962
|
+
const roundedRange = Math.ceil(range / 5) * 5;
|
|
1963
|
+
setRangeNumber(Math.min(roundedRange, 100));
|
|
1964
|
+
}
|
|
1965
|
+
}, [range, getRange]);
|
|
1966
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement("p", {
|
|
1967
|
+
style: {
|
|
1968
|
+
fontSize: size ? size : configStyles.Captcha.size,
|
|
1969
|
+
color: color ? color : configStyles.Captcha.color
|
|
1970
|
+
}
|
|
1971
|
+
}, label), /*#__PURE__*/React__default.createElement("div", {
|
|
1972
|
+
style: {
|
|
1973
|
+
width: '100%',
|
|
1974
|
+
height: '76px',
|
|
1975
|
+
maxWidth: '400px',
|
|
1976
|
+
position: 'relative'
|
|
1886
1977
|
}
|
|
1887
|
-
}
|
|
1888
|
-
function sliderChange(e) {
|
|
1889
|
-
setRight(rangeCount == e.target.value ? true : false);
|
|
1890
|
-
}
|
|
1891
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
1892
|
-
className: styles$3.main
|
|
1893
1978
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1979
|
+
style: {
|
|
1980
|
+
position: 'absolute',
|
|
1981
|
+
top: '0px',
|
|
1982
|
+
height: '15px',
|
|
1983
|
+
left: `calc(${rangeNumber}% - 6px)`
|
|
1984
|
+
}
|
|
1985
|
+
}, /*#__PURE__*/React__default.createElement(SvgCaptchaArrowDown, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
1986
|
+
style: {
|
|
1987
|
+
position: 'absolute',
|
|
1988
|
+
display: 'flex',
|
|
1989
|
+
top: '23px',
|
|
1990
|
+
left: '0px',
|
|
1991
|
+
width: '100%',
|
|
1992
|
+
height: '30px',
|
|
1993
|
+
alignItems: 'center',
|
|
1994
|
+
zIndex: 1
|
|
1995
|
+
},
|
|
1996
|
+
className: styles$3['start-point']
|
|
1997
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1998
|
+
style: {
|
|
1999
|
+
position: 'absolute',
|
|
2000
|
+
top: '13px',
|
|
2001
|
+
right: '0px',
|
|
2002
|
+
width: '100%',
|
|
2003
|
+
height: '4px',
|
|
2004
|
+
borderRadius: '2px',
|
|
2005
|
+
backgroundColor: '#EEEEEE',
|
|
2006
|
+
borderRadius: '10px',
|
|
2007
|
+
zIndex: -2
|
|
2008
|
+
}
|
|
2009
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
2010
|
+
min: 0,
|
|
2011
|
+
step: 5,
|
|
2012
|
+
max: 100,
|
|
1898
2013
|
type: "range",
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
2014
|
+
value: rangeProgress,
|
|
2015
|
+
style: {
|
|
2016
|
+
height: '4px',
|
|
2017
|
+
width: '100%',
|
|
2018
|
+
borderRadius: '2px',
|
|
2019
|
+
cursor: 'pointer',
|
|
2020
|
+
backgroundColor: 'transparent'
|
|
2021
|
+
},
|
|
2022
|
+
className: `
|
|
2023
|
+
${styles$3['range']}
|
|
2024
|
+
${+rangeProgress === rangeNumber ? styles$3['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$3['range-error'] : styles$3['range-default']}
|
|
2025
|
+
`,
|
|
2026
|
+
onInput: handleRange
|
|
1903
2027
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
2028
|
+
style: {
|
|
2029
|
+
position: 'absolute',
|
|
2030
|
+
top: '13px',
|
|
2031
|
+
left: '0px',
|
|
2032
|
+
width: rangeProgress + '%',
|
|
2033
|
+
height: '4px',
|
|
2034
|
+
borderRadius: '2px',
|
|
2035
|
+
backgroundColor: +rangeProgress === rangeNumber ? '#0DA574' : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? '#EE0000' : 'transparent',
|
|
2036
|
+
borderRadius: '2px',
|
|
2037
|
+
zIndex: -1
|
|
2038
|
+
}
|
|
1907
2039
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
2040
|
+
style: {
|
|
2041
|
+
position: 'absolute',
|
|
2042
|
+
bottom: '0px',
|
|
2043
|
+
height: '15px',
|
|
2044
|
+
left: `calc(${rangeNumber}% - 6px)`,
|
|
2045
|
+
transform: 'translate(-50% -50%)'
|
|
2046
|
+
}
|
|
2047
|
+
}, /*#__PURE__*/React__default.createElement(SvgCaptchaArrowUp, null))));
|
|
1914
2048
|
};
|
|
1915
2049
|
Captcha.propTypes = {
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
};
|
|
1920
|
-
Captcha.defaultProps = {
|
|
1921
|
-
onclick: undefined
|
|
2050
|
+
label: PropTypes.string,
|
|
2051
|
+
range: PropTypes.number.isRequired,
|
|
2052
|
+
getRange: PropTypes.func.isRequired
|
|
1922
2053
|
};
|
|
1923
2054
|
|
|
1924
2055
|
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}";
|
|
@@ -1954,106 +2085,805 @@ Stepper.propTypes = {
|
|
|
1954
2085
|
activeSteps: PropTypes.number
|
|
1955
2086
|
};
|
|
1956
2087
|
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
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);
|
|
1960
2099
|
|
|
1961
|
-
|
|
2100
|
+
if (!getRandomValues) {
|
|
2101
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
1962
2104
|
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
const length = end - start + 1;
|
|
1966
|
-
return Array.from({
|
|
1967
|
-
length
|
|
1968
|
-
}, (_, idx) => idx + start);
|
|
1969
|
-
};
|
|
1970
|
-
const PaginationRange = ({
|
|
1971
|
-
currentTotalCount,
|
|
1972
|
-
offset,
|
|
1973
|
-
siblingCountNumber,
|
|
1974
|
-
currentPageNumber
|
|
1975
|
-
}) => {
|
|
1976
|
-
const paginationRange = useMemo(() => {
|
|
1977
|
-
const totalPageCount = Math.ceil(currentTotalCount / offset);
|
|
2105
|
+
return getRandomValues(rnds8);
|
|
2106
|
+
}
|
|
1978
2107
|
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
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];
|
|
2004
2154
|
}
|
|
2005
|
-
}, [currentTotalCount, offset, siblingCountNumber, currentPageNumber]);
|
|
2006
|
-
return paginationRange;
|
|
2007
|
-
};
|
|
2008
2155
|
|
|
2009
|
-
|
|
2156
|
+
return buf;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
return stringify(rnds);
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
const SvgUpload = ({
|
|
2010
2163
|
title,
|
|
2011
2164
|
titleId,
|
|
2012
2165
|
...props
|
|
2013
2166
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
2014
|
-
width: "
|
|
2015
|
-
height: "
|
|
2016
|
-
viewBox: "0 0
|
|
2167
|
+
width: "51",
|
|
2168
|
+
height: "35",
|
|
2169
|
+
viewBox: "0 0 51 35",
|
|
2017
2170
|
fill: "none",
|
|
2018
2171
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2019
2172
|
"aria-labelledby": titleId
|
|
2020
2173
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
2021
2174
|
id: titleId
|
|
2022
2175
|
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
2023
|
-
d: "
|
|
2024
|
-
fill: "#
|
|
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"
|
|
2025
2183
|
}));
|
|
2026
2184
|
|
|
2027
|
-
const
|
|
2185
|
+
const SvgRemoveFile = ({
|
|
2028
2186
|
title,
|
|
2029
2187
|
titleId,
|
|
2030
2188
|
...props
|
|
2031
2189
|
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
2032
|
-
width: "
|
|
2033
|
-
height: "
|
|
2034
|
-
viewBox: "0 0
|
|
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",
|
|
2035
2216
|
fill: "none",
|
|
2036
2217
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2037
2218
|
"aria-labelledby": titleId
|
|
2038
2219
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
2039
2220
|
id: titleId
|
|
2040
2221
|
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
2041
|
-
|
|
2042
|
-
|
|
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"
|
|
2043
2226
|
}));
|
|
2044
2227
|
|
|
2045
|
-
const
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
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
|
+
|
|
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}";
|
|
2632
|
+
styleInject(css_248z$2);
|
|
2633
|
+
|
|
2634
|
+
const Textarea = ({
|
|
2635
|
+
size,
|
|
2636
|
+
label,
|
|
2637
|
+
width,
|
|
2638
|
+
value,
|
|
2639
|
+
height,
|
|
2640
|
+
resize,
|
|
2641
|
+
border,
|
|
2642
|
+
radius,
|
|
2643
|
+
padding,
|
|
2644
|
+
required,
|
|
2645
|
+
onChange,
|
|
2646
|
+
minWidth,
|
|
2647
|
+
maxWidth,
|
|
2648
|
+
minHeight,
|
|
2649
|
+
maxHeight,
|
|
2650
|
+
boxSizing,
|
|
2651
|
+
maxLength,
|
|
2652
|
+
labelSize,
|
|
2653
|
+
labelColor,
|
|
2654
|
+
borderColor,
|
|
2655
|
+
labelWeight,
|
|
2656
|
+
placeholder,
|
|
2657
|
+
labelDisplay,
|
|
2658
|
+
backgroundColor,
|
|
2659
|
+
borderFocusColor,
|
|
2660
|
+
borderHoverColor,
|
|
2661
|
+
showCharacterCount,
|
|
2662
|
+
labelRequiredColor
|
|
2663
|
+
}) => {
|
|
2664
|
+
const [isHover, setIsHover] = useState(false);
|
|
2665
|
+
const [isFocus, setIsFocus] = useState(false);
|
|
2666
|
+
const [innerValue, setInnerValue] = useState('');
|
|
2667
|
+
const configStyles = compereConfigs();
|
|
2668
|
+
const handleMouseEnter = () => {
|
|
2669
|
+
setIsHover(true);
|
|
2670
|
+
};
|
|
2671
|
+
const handleMouseLeave = () => {
|
|
2672
|
+
setIsHover(false);
|
|
2673
|
+
};
|
|
2674
|
+
const handleFocus = () => {
|
|
2675
|
+
setIsFocus(true);
|
|
2676
|
+
};
|
|
2677
|
+
const handleBlur = () => {
|
|
2678
|
+
setIsFocus(false);
|
|
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
|
+
};
|
|
2693
|
+
useEffect(() => {
|
|
2694
|
+
if (value === undefined) {
|
|
2695
|
+
alert('Please add value prop on Textarea component');
|
|
2696
|
+
}
|
|
2697
|
+
if (!onChange) {
|
|
2698
|
+
alert('Please add onChange function on Textarea component');
|
|
2699
|
+
}
|
|
2700
|
+
setInnerValue(value);
|
|
2701
|
+
}, [value, onChange]);
|
|
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", {
|
|
2713
|
+
style: {
|
|
2714
|
+
color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
|
|
2715
|
+
fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize,
|
|
2716
|
+
display: labelDisplay ? labelDisplay : configStyles.TEXTAREA.labelDisplay,
|
|
2717
|
+
fontWeight: labelWeight ? labelWeight : configStyles.TEXTAREA.labelWeight
|
|
2718
|
+
}
|
|
2719
|
+
}, label, required && /*#__PURE__*/React__default.createElement("sup", {
|
|
2720
|
+
style: {
|
|
2721
|
+
color: labelRequiredColor ? labelRequiredColor : configStyles.TEXTAREA.labelRequiredColor
|
|
2722
|
+
}
|
|
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", {
|
|
2729
|
+
style: {
|
|
2730
|
+
width: '100%',
|
|
2731
|
+
outline: 'none',
|
|
2732
|
+
overflow: 'auto',
|
|
2733
|
+
fontSize: size ? size : configStyles.TEXTAREA.size,
|
|
2734
|
+
height: height ? height : configStyles.TEXTAREA.height,
|
|
2735
|
+
border: border ? border : configStyles.TEXTAREA.border,
|
|
2736
|
+
padding: padding ? padding : configStyles.TEXTAREA.padding,
|
|
2737
|
+
borderRadius: radius ? radius : configStyles.TEXTAREA.radius,
|
|
2738
|
+
minWidth: minWidth ? minWidth : configStyles.TEXTAREA.minWidth,
|
|
2739
|
+
maxWidth: maxWidth ? maxWidth : configStyles.TEXTAREA.maxWidth,
|
|
2740
|
+
minHeight: minHeight ? minHeight : configStyles.TEXTAREA.minHeight,
|
|
2741
|
+
maxHeight: maxHeight ? maxHeight : configStyles.TEXTAREA.maxHeight,
|
|
2742
|
+
boxSizing: boxSizing ? boxSizing : configStyles.TEXTAREA.boxSizing,
|
|
2743
|
+
backgroundColor: backgroundColor ? backgroundColor : configStyles.TEXTAREA.backgroundColor,
|
|
2744
|
+
borderColor: isFocus ? borderFocusColor ? borderFocusColor : configStyles.TEXTAREA.borderFocusColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.TEXTAREA.borderHoverColor : borderColor ? borderColor : configStyles.TEXTAREA.borderColor,
|
|
2745
|
+
resize: resize ? resize : configStyles.TEXTAREA.resize
|
|
2746
|
+
},
|
|
2747
|
+
value: innerValue,
|
|
2748
|
+
onBlur: handleBlur,
|
|
2749
|
+
onFocus: handleFocus,
|
|
2750
|
+
onChange: handleChange,
|
|
2751
|
+
placeholder: placeholder,
|
|
2752
|
+
onMouseEnter: handleMouseEnter,
|
|
2753
|
+
onMouseLeave: handleMouseLeave
|
|
2754
|
+
}));
|
|
2755
|
+
};
|
|
2756
|
+
Textarea.propTypes = {
|
|
2757
|
+
size: PropTypes.string,
|
|
2758
|
+
label: PropTypes.string,
|
|
2759
|
+
width: PropTypes.string,
|
|
2760
|
+
height: PropTypes.string,
|
|
2761
|
+
resize: PropTypes.string,
|
|
2762
|
+
border: PropTypes.string,
|
|
2763
|
+
radius: PropTypes.string,
|
|
2764
|
+
required: PropTypes.bool,
|
|
2765
|
+
padding: PropTypes.string,
|
|
2766
|
+
minWidth: PropTypes.string,
|
|
2767
|
+
maxWidth: PropTypes.string,
|
|
2768
|
+
boxSizing: PropTypes.string,
|
|
2769
|
+
minHeight: PropTypes.string,
|
|
2770
|
+
maxHeight: PropTypes.string,
|
|
2771
|
+
maxLength: PropTypes.number,
|
|
2772
|
+
labelSize: PropTypes.string,
|
|
2773
|
+
labelColor: PropTypes.string,
|
|
2774
|
+
labelWeight: PropTypes.string,
|
|
2775
|
+
borderColor: PropTypes.string,
|
|
2776
|
+
placeholder: PropTypes.string,
|
|
2777
|
+
labelDisplay: PropTypes.string,
|
|
2778
|
+
backgroundColor: PropTypes.string,
|
|
2779
|
+
showCharacterCount: PropTypes.bool,
|
|
2780
|
+
value: PropTypes.string.isRequired,
|
|
2781
|
+
borderFocusColor: PropTypes.string,
|
|
2782
|
+
borderHoverColor: PropTypes.string,
|
|
2783
|
+
onChange: PropTypes.func.isRequired,
|
|
2784
|
+
labelRequiredColor: PropTypes.string
|
|
2785
|
+
};
|
|
2786
|
+
|
|
2787
|
+
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}";
|
|
2788
|
+
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"};
|
|
2789
|
+
styleInject(css_248z$1);
|
|
2790
|
+
|
|
2791
|
+
// import styles from "./pagination.module.scss";
|
|
2792
|
+
|
|
2793
|
+
const Dots = "...";
|
|
2794
|
+
const range = (start, end) => {
|
|
2795
|
+
const length = end - start + 1;
|
|
2796
|
+
return Array.from({
|
|
2797
|
+
length
|
|
2798
|
+
}, (_, idx) => idx + start);
|
|
2799
|
+
};
|
|
2800
|
+
const PaginationRange = ({
|
|
2801
|
+
currentTotalCount,
|
|
2802
|
+
offset,
|
|
2803
|
+
siblingCountNumber,
|
|
2804
|
+
currentPageNumber
|
|
2805
|
+
}) => {
|
|
2806
|
+
const paginationRange = useMemo(() => {
|
|
2807
|
+
const totalPageCount = Math.ceil(currentTotalCount / offset);
|
|
2808
|
+
|
|
2809
|
+
//currentPage + 2*Dots + start + end = 5
|
|
2810
|
+
const totalPageNumber = siblingCountNumber + 5;
|
|
2811
|
+
if (totalPageNumber >= totalPageCount) {
|
|
2812
|
+
return range(1, totalPageCount);
|
|
2813
|
+
}
|
|
2814
|
+
const rightSiblingIndex = Math.min(currentPageNumber + siblingCountNumber, totalPageCount);
|
|
2815
|
+
const leftSiblingIndex = Math.max(currentPageNumber - siblingCountNumber, 1);
|
|
2816
|
+
const shouldShowLeftDots = leftSiblingIndex > 2;
|
|
2817
|
+
const shouldShowRightDots = rightSiblingIndex < totalPageCount - 2;
|
|
2818
|
+
const firstPageIndex = 1;
|
|
2819
|
+
const lastPageIndex = totalPageCount;
|
|
2820
|
+
if (!shouldShowLeftDots && shouldShowRightDots) {
|
|
2821
|
+
let leftItemCount = currentPageNumber === 4 && lastPageIndex > 7 ? 4 + siblingCountNumber : 3 + siblingCountNumber;
|
|
2822
|
+
let leftRange = range(1, leftItemCount);
|
|
2823
|
+
return [...leftRange, Dots, totalPageCount];
|
|
2824
|
+
}
|
|
2825
|
+
if (shouldShowLeftDots && !shouldShowRightDots) {
|
|
2826
|
+
let rightItemCount = 0;
|
|
2827
|
+
currentPageNumber === lastPageIndex - 3 && lastPageIndex > 7 ? rightItemCount = 4 + siblingCountNumber : rightItemCount = 3 + siblingCountNumber;
|
|
2828
|
+
let rightRange = range(totalPageCount - rightItemCount + 1, totalPageCount);
|
|
2829
|
+
return [firstPageIndex, Dots, ...rightRange];
|
|
2830
|
+
}
|
|
2831
|
+
if (shouldShowLeftDots && shouldShowRightDots) {
|
|
2832
|
+
let middleRange = range(leftSiblingIndex, rightSiblingIndex);
|
|
2833
|
+
return [firstPageIndex, Dots, ...middleRange, Dots, lastPageIndex];
|
|
2834
|
+
}
|
|
2835
|
+
}, [currentTotalCount, offset, siblingCountNumber, currentPageNumber]);
|
|
2836
|
+
return paginationRange;
|
|
2837
|
+
};
|
|
2838
|
+
|
|
2839
|
+
const SvgDots = ({
|
|
2840
|
+
title,
|
|
2841
|
+
titleId,
|
|
2842
|
+
...props
|
|
2843
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
2844
|
+
width: "11",
|
|
2845
|
+
height: "3",
|
|
2846
|
+
viewBox: "0 0 11 3",
|
|
2847
|
+
fill: "none",
|
|
2848
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2849
|
+
"aria-labelledby": titleId
|
|
2850
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
2851
|
+
id: titleId
|
|
2852
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
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",
|
|
2854
|
+
fill: "#3C393E"
|
|
2855
|
+
}));
|
|
2856
|
+
|
|
2857
|
+
const SvgNextarrow = ({
|
|
2858
|
+
title,
|
|
2859
|
+
titleId,
|
|
2860
|
+
...props
|
|
2861
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
2862
|
+
width: "6",
|
|
2863
|
+
height: "12",
|
|
2864
|
+
viewBox: "0 0 6 12",
|
|
2865
|
+
fill: "none",
|
|
2866
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2867
|
+
"aria-labelledby": titleId
|
|
2868
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
2869
|
+
id: titleId
|
|
2870
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
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",
|
|
2872
|
+
fill: "#3C393E"
|
|
2873
|
+
}));
|
|
2874
|
+
|
|
2875
|
+
const Pagination = ({
|
|
2876
|
+
onChange,
|
|
2877
|
+
totalCount,
|
|
2878
|
+
siblingCount,
|
|
2879
|
+
currentPage,
|
|
2880
|
+
offset,
|
|
2881
|
+
className
|
|
2882
|
+
}) => {
|
|
2883
|
+
const [siblingCountNumber, setSibilingCountNumber] = useState(siblingCount);
|
|
2884
|
+
const [currentPageNumber, setCurrentPage] = useState(currentPage);
|
|
2885
|
+
const [currentTotalCount, setcurrentTotalCount] = useState(totalCount);
|
|
2886
|
+
useEffect(() => {
|
|
2057
2887
|
setcurrentTotalCount(totalCount);
|
|
2058
2888
|
}, [totalCount]);
|
|
2059
2889
|
useEffect(() => {
|
|
@@ -2102,8 +2932,8 @@ const Pagination = ({
|
|
|
2102
2932
|
className: `${styles$1["pagination-btn"]} pagination-btn-rem`,
|
|
2103
2933
|
onClick: onPrevious,
|
|
2104
2934
|
disabled: currentPage === 1 ? true : false
|
|
2105
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2106
|
-
if (pageNumber === Dots
|
|
2935
|
+
}, /*#__PURE__*/React__default.createElement(SvgNextarrow, null)), paginationRange.map((pageNumber, id) => {
|
|
2936
|
+
if (pageNumber === Dots) {
|
|
2107
2937
|
let currentPageIndex = paginationRange.indexOf(currentPageNumber);
|
|
2108
2938
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
2109
2939
|
key: id,
|
|
@@ -2112,16 +2942,16 @@ const Pagination = ({
|
|
|
2112
2942
|
disabled: currentPageIndex === 0 ? true : false
|
|
2113
2943
|
}, id < currentPageIndex ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
|
|
2114
2944
|
className: `${styles$1["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
|
|
2115
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2945
|
+
}, /*#__PURE__*/React__default.createElement(SvgDots, null)), /*#__PURE__*/React__default.createElement("span", {
|
|
2116
2946
|
className: `${styles$1["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`,
|
|
2117
2947
|
style: {
|
|
2118
2948
|
transform: 'rotate(180deg)'
|
|
2119
2949
|
}
|
|
2120
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2950
|
+
}, /*#__PURE__*/React__default.createElement(SvgNextarrow, null))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
|
|
2121
2951
|
className: `${styles$1["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
|
|
2122
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2952
|
+
}, /*#__PURE__*/React__default.createElement(SvgDots, null)), /*#__PURE__*/React__default.createElement("span", {
|
|
2123
2953
|
className: `${styles$1["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`
|
|
2124
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2954
|
+
}, /*#__PURE__*/React__default.createElement(SvgNextarrow, null))));
|
|
2125
2955
|
}
|
|
2126
2956
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
2127
2957
|
onClick: () => onPageChange(pageNumber),
|
|
@@ -2132,7 +2962,7 @@ const Pagination = ({
|
|
|
2132
2962
|
onClick: onNext,
|
|
2133
2963
|
className: `${styles$1["pagination-btn"]} pagination-btn-rem`,
|
|
2134
2964
|
disabled: currentPageNumber === lastPage ? true : false
|
|
2135
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2965
|
+
}, /*#__PURE__*/React__default.createElement(SvgNextarrow, null)));
|
|
2136
2966
|
};
|
|
2137
2967
|
Pagination.propTypes = {
|
|
2138
2968
|
offset: PropTypes.number,
|
|
@@ -2146,9 +2976,9 @@ Pagination.defaultProps = {
|
|
|
2146
2976
|
siblingCount: 2
|
|
2147
2977
|
};
|
|
2148
2978
|
|
|
2149
|
-
var css_248z
|
|
2979
|
+
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}";
|
|
2150
2980
|
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"};
|
|
2151
|
-
styleInject(css_248z
|
|
2981
|
+
styleInject(css_248z);
|
|
2152
2982
|
|
|
2153
2983
|
const Autocomplate = ({
|
|
2154
2984
|
label,
|
|
@@ -2282,128 +3112,327 @@ Autocomplate.defaultProps = {
|
|
|
2282
3112
|
required: false
|
|
2283
3113
|
};
|
|
2284
3114
|
|
|
2285
|
-
|
|
2286
|
-
styleInject(css_248z);
|
|
2287
|
-
|
|
2288
|
-
const Textarea = ({
|
|
2289
|
-
size,
|
|
3115
|
+
const NewAutocomplete = ({
|
|
2290
3116
|
label,
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
height,
|
|
2294
|
-
resize,
|
|
2295
|
-
border,
|
|
2296
|
-
radius,
|
|
2297
|
-
padding,
|
|
3117
|
+
options,
|
|
3118
|
+
getItem,
|
|
2298
3119
|
required,
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
maxWidth,
|
|
2302
|
-
minHeight,
|
|
2303
|
-
maxHeight,
|
|
2304
|
-
boxSizing,
|
|
2305
|
-
maxLength,
|
|
3120
|
+
disabled,
|
|
3121
|
+
errorSize,
|
|
2306
3122
|
labelSize,
|
|
3123
|
+
errorColor,
|
|
2307
3124
|
labelColor,
|
|
2308
|
-
borderColor,
|
|
2309
3125
|
labelWeight,
|
|
2310
|
-
|
|
3126
|
+
searchCount,
|
|
3127
|
+
placeHolder,
|
|
3128
|
+
errorMessage,
|
|
3129
|
+
autoComplete,
|
|
2311
3130
|
labelDisplay,
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
3131
|
+
contentDisplay,
|
|
3132
|
+
contentTopSize,
|
|
3133
|
+
contentPosition,
|
|
3134
|
+
contentTopColor,
|
|
3135
|
+
labelLineHeight,
|
|
3136
|
+
contentDirection,
|
|
3137
|
+
contentTopWeight,
|
|
3138
|
+
contentTopRadius,
|
|
3139
|
+
contentTopHeight,
|
|
3140
|
+
contentTopBorder,
|
|
3141
|
+
labelMarginBottom,
|
|
3142
|
+
contentTopDisplay,
|
|
3143
|
+
contentTopPadding,
|
|
3144
|
+
contentBottomLeft,
|
|
3145
|
+
showOptionDuration,
|
|
3146
|
+
labelRequiredColor,
|
|
3147
|
+
contentTopMaxWidth,
|
|
3148
|
+
labelTextTransform,
|
|
3149
|
+
contentBottomWidth,
|
|
3150
|
+
contentBottomZindex,
|
|
3151
|
+
contentBottomRadius,
|
|
3152
|
+
contentTopDirection,
|
|
3153
|
+
contentTopBoxSizing,
|
|
3154
|
+
contentTopLineHeight,
|
|
3155
|
+
contentTopBorderColor,
|
|
3156
|
+
contentBottomMaxWidth,
|
|
3157
|
+
contentBottomOverflow,
|
|
3158
|
+
contentBottomPosition,
|
|
3159
|
+
contentBottomRowColor,
|
|
3160
|
+
contentBottomMinHeight,
|
|
3161
|
+
contentBottomBoxShadow,
|
|
3162
|
+
contentBottomRowHeight,
|
|
3163
|
+
contentBottomRowCursor,
|
|
3164
|
+
contentBottomRowDisplay,
|
|
3165
|
+
contentBottomRowPadding,
|
|
3166
|
+
contentBottomRowFontSize,
|
|
3167
|
+
contentBottomRowBoxSizing,
|
|
3168
|
+
contentBottomInnerDisplay,
|
|
3169
|
+
contentBottomRowFontWeight,
|
|
3170
|
+
contentBottomRowLineHeight,
|
|
3171
|
+
contentBottomRowAlignItems,
|
|
3172
|
+
contentBottomRowTransition,
|
|
3173
|
+
contentBottomRowHoverColor,
|
|
3174
|
+
contentTopBorderHoverColor,
|
|
3175
|
+
contentTopBorderActiveColor,
|
|
3176
|
+
contentBottomInnerOverflowY,
|
|
3177
|
+
contentBottomInnerOverflowX,
|
|
3178
|
+
contentBottomInnerMaxHeight,
|
|
3179
|
+
contentBottomInnerDirection,
|
|
3180
|
+
contentBottomBackgroundColor,
|
|
3181
|
+
contentBottomRowMarginBottom,
|
|
3182
|
+
contentBottomRowBackgroundColor,
|
|
3183
|
+
contentBottomRowHoverBackgroundColor,
|
|
3184
|
+
...props
|
|
2316
3185
|
}) => {
|
|
3186
|
+
const [show, setShow] = useState(false);
|
|
2317
3187
|
const [isHover, setIsHover] = useState(false);
|
|
2318
3188
|
const [isFocus, setIsFocus] = useState(false);
|
|
3189
|
+
const [innerValue, setInnerValue] = useState('');
|
|
2319
3190
|
const configStyles = compereConfigs();
|
|
3191
|
+
const showOption = keyframes`
|
|
3192
|
+
100% {
|
|
3193
|
+
max-height: 400px;
|
|
3194
|
+
}
|
|
3195
|
+
`;
|
|
3196
|
+
const animation = _ => css`
|
|
3197
|
+
${showOption} ${showOptionDuration ? showOptionDuration : configStyles.NEWAUTOCOMPLETE.showOptionDuration} linear forwards
|
|
3198
|
+
`;
|
|
2320
3199
|
const handleMouseEnter = () => {
|
|
2321
3200
|
setIsHover(true);
|
|
2322
3201
|
};
|
|
2323
3202
|
const handleMouseLeave = () => {
|
|
2324
3203
|
setIsHover(false);
|
|
2325
3204
|
};
|
|
3205
|
+
const handleRowMouseEnter = e => {
|
|
3206
|
+
e.target.style.color = contentBottomRowHoverColor ? contentBottomRowHoverColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowHoverColor;
|
|
3207
|
+
e.target.style.backgroundColor = contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowHoverBackgroundColor;
|
|
3208
|
+
};
|
|
3209
|
+
const handleRowMouseLeave = e => {
|
|
3210
|
+
e.target.style.color = contentBottomRowColor ? contentBottomRowColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowColor;
|
|
3211
|
+
e.target.style.backgroundColor = contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor;
|
|
3212
|
+
};
|
|
2326
3213
|
const handleFocus = () => {
|
|
2327
3214
|
setIsFocus(true);
|
|
2328
3215
|
};
|
|
2329
3216
|
const handleBlur = () => {
|
|
2330
3217
|
setIsFocus(false);
|
|
2331
3218
|
};
|
|
3219
|
+
const handleChange = e => {
|
|
3220
|
+
const value = e.target.value;
|
|
3221
|
+
value.length > 0 ? setShow(true) : setShow(false);
|
|
3222
|
+
setInnerValue(value);
|
|
3223
|
+
};
|
|
3224
|
+
const handleClick = selectedValue => {
|
|
3225
|
+
setShow(false);
|
|
3226
|
+
getItem(selectedValue);
|
|
3227
|
+
setInnerValue(selectedValue.value);
|
|
3228
|
+
};
|
|
3229
|
+
const optionList = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, show && options && options.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
3230
|
+
style: {
|
|
3231
|
+
left: contentBottomLeft ? contentBottomLeft : configStyles.NEWAUTOCOMPLETE.contentBottomLeft,
|
|
3232
|
+
width: contentBottomWidth ? contentBottomWidth : configStyles.NEWAUTOCOMPLETE.contentBottomWidth,
|
|
3233
|
+
zIndex: contentBottomZindex ? contentBottomZindex : configStyles.NEWAUTOCOMPLETE.contentBottomZindex,
|
|
3234
|
+
borderRadius: contentBottomRadius ? contentBottomRadius : configStyles.NEWAUTOCOMPLETE.contentBottomRadius,
|
|
3235
|
+
maxWidth: contentBottomMaxWidth ? contentBottomMaxWidth : configStyles.NEWAUTOCOMPLETE.contentBottomMaxWidth,
|
|
3236
|
+
overflow: contentBottomOverflow ? contentBottomOverflow : configStyles.NEWAUTOCOMPLETE.contentBottomOverflow,
|
|
3237
|
+
position: contentBottomPosition ? contentBottomPosition : configStyles.NEWAUTOCOMPLETE.contentBottomPosition,
|
|
3238
|
+
minHeight: contentBottomMinHeight ? contentBottomMinHeight : configStyles.NEWAUTOCOMPLETE.contentBottomMinHeight,
|
|
3239
|
+
boxShadow: contentBottomBoxShadow ? contentBottomBoxShadow : configStyles.NEWAUTOCOMPLETE.contentBottomBoxShadow,
|
|
3240
|
+
backgroundColor: contentBottomBackgroundColor ? contentBottomBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomBackgroundColor,
|
|
3241
|
+
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',
|
|
3242
|
+
animation
|
|
3243
|
+
}
|
|
3244
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3245
|
+
style: {
|
|
3246
|
+
display: contentBottomInnerDisplay ? contentBottomInnerDisplay : configStyles.NEWAUTOCOMPLETE.contentBottomInnerDisplay,
|
|
3247
|
+
overflowY: contentBottomInnerOverflowY ? contentBottomInnerOverflowY : configStyles.NEWAUTOCOMPLETE.contentBottomInnerOverflowY,
|
|
3248
|
+
overflowX: contentBottomInnerOverflowX ? contentBottomInnerOverflowX : configStyles.NEWAUTOCOMPLETE.contentBottomInnerOverflowX,
|
|
3249
|
+
maxHeight: contentBottomInnerMaxHeight ? contentBottomInnerMaxHeight : configStyles.NEWAUTOCOMPLETE.contentBottomInnerMaxHeight,
|
|
3250
|
+
flexDirection: contentBottomInnerDirection ? contentBottomInnerDirection : configStyles.NEWAUTOCOMPLETE.contentBottomInnerDirection
|
|
3251
|
+
}
|
|
3252
|
+
}, innerValue.length >= searchCount ? options.filter(item => item.value.includes(innerValue)).length > 0 ? options.filter(item => item.value.includes(innerValue)).map((item, index) => {
|
|
3253
|
+
return /*#__PURE__*/React__default.createElement("p", {
|
|
3254
|
+
key: `${item}_${index}`,
|
|
3255
|
+
onMouseEnter: handleRowMouseEnter,
|
|
3256
|
+
onMouseLeave: handleRowMouseLeave,
|
|
3257
|
+
onClick: () => handleClick(item),
|
|
3258
|
+
style: {
|
|
3259
|
+
flexShrink: 0,
|
|
3260
|
+
color: contentBottomRowColor ? contentBottomRowColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowColor,
|
|
3261
|
+
height: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight,
|
|
3262
|
+
cursor: contentBottomRowCursor ? contentBottomRowCursor : configStyles.NEWAUTOCOMPLETE.contentBottomRowCursor,
|
|
3263
|
+
display: contentBottomRowDisplay ? contentBottomRowDisplay : configStyles.NEWAUTOCOMPLETE.contentBottomRowDisplay,
|
|
3264
|
+
padding: contentBottomRowPadding ? contentBottomRowPadding : configStyles.NEWAUTOCOMPLETE.contentBottomRowPadding,
|
|
3265
|
+
fontSize: contentBottomRowFontSize ? contentBottomRowFontSize : configStyles.NEWAUTOCOMPLETE.contentBottomRowFontSize,
|
|
3266
|
+
boxSizing: contentBottomRowBoxSizing ? contentBottomRowBoxSizing : configStyles.NEWAUTOCOMPLETE.contentBottomRowBoxSizing,
|
|
3267
|
+
fontWeight: contentBottomRowFontWeight ? contentBottomRowFontWeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowFontWeight,
|
|
3268
|
+
lineHeight: contentBottomRowLineHeight ? contentBottomRowLineHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowLineHeight,
|
|
3269
|
+
alignItems: contentBottomRowAlignItems ? contentBottomRowAlignItems : configStyles.NEWAUTOCOMPLETE.contentBottomRowAlignItems,
|
|
3270
|
+
transition: contentBottomRowTransition ? contentBottomRowTransition : configStyles.NEWAUTOCOMPLETE.contentBottomRowTransition,
|
|
3271
|
+
marginBottom: contentBottomRowMarginBottom ? contentBottomRowMarginBottom : configStyles.NEWAUTOCOMPLETE.contentBottomRowMarginBottom,
|
|
3272
|
+
backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor
|
|
3273
|
+
}
|
|
3274
|
+
}, item.value);
|
|
3275
|
+
}) : /*#__PURE__*/React__default.createElement("p", {
|
|
3276
|
+
style: {
|
|
3277
|
+
color: errorColor ? errorColor : configStyles.NEWAUTOCOMPLETE.errorColor,
|
|
3278
|
+
fontSize: errorSize ? errorSize : configStyles.NEWAUTOCOMPLETE.errorSize,
|
|
3279
|
+
height: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight,
|
|
3280
|
+
padding: contentBottomRowPadding ? contentBottomRowPadding : configStyles.NEWAUTOCOMPLETE.contentBottomRowPadding,
|
|
3281
|
+
lineHeight: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight
|
|
3282
|
+
}
|
|
3283
|
+
}, "\u0546\u0574\u0561\u0576 \u057F\u057E\u0575\u0561\u056C \u0561\u057C\u056F\u0561 \u0579\u0567") : /*#__PURE__*/React__default.createElement("p", {
|
|
3284
|
+
style: {
|
|
3285
|
+
color: errorColor ? errorColor : configStyles.NEWAUTOCOMPLETE.errorColor,
|
|
3286
|
+
fontSize: errorSize ? errorSize : configStyles.NEWAUTOCOMPLETE.errorSize,
|
|
3287
|
+
height: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight,
|
|
3288
|
+
padding: contentBottomRowPadding ? contentBottomRowPadding : configStyles.NEWAUTOCOMPLETE.contentBottomRowPadding,
|
|
3289
|
+
lineHeight: contentBottomRowHeight ? contentBottomRowHeight : configStyles.NEWAUTOCOMPLETE.contentBottomRowHeight
|
|
3290
|
+
}
|
|
3291
|
+
}, innerValue.length < searchCount && `Լրացնել առնվազն ${searchCount} նիշ`))));
|
|
2332
3292
|
useEffect(() => {
|
|
2333
|
-
if (
|
|
2334
|
-
alert('Please add
|
|
3293
|
+
if (!options) {
|
|
3294
|
+
alert('Please add array of options');
|
|
2335
3295
|
}
|
|
2336
|
-
if (
|
|
2337
|
-
alert('Please
|
|
3296
|
+
if (options.length === 0) {
|
|
3297
|
+
alert('Please fill options array');
|
|
2338
3298
|
}
|
|
2339
|
-
|
|
3299
|
+
options && options.length > 0 && options.map(item => {
|
|
3300
|
+
if (!item.hasOwnProperty('value')) {
|
|
3301
|
+
alert('Please add value property in items of options array');
|
|
3302
|
+
}
|
|
3303
|
+
});
|
|
3304
|
+
if (!getItem) {
|
|
3305
|
+
alert('Please add getItem function for get choosen item from autocomplete');
|
|
3306
|
+
}
|
|
3307
|
+
}, [options, getItem]);
|
|
2340
3308
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
|
|
2341
3309
|
style: {
|
|
2342
|
-
color: labelColor ? labelColor : configStyles.
|
|
2343
|
-
fontSize: labelSize ? labelSize : configStyles.
|
|
2344
|
-
display: labelDisplay ? labelDisplay : configStyles.
|
|
2345
|
-
fontWeight: labelWeight ? labelWeight : configStyles.
|
|
3310
|
+
color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
|
|
3311
|
+
fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
|
|
3312
|
+
display: labelDisplay ? labelDisplay : configStyles.NEWAUTOCOMPLETE.labelDisplay,
|
|
3313
|
+
fontWeight: labelWeight ? labelWeight : configStyles.NEWAUTOCOMPLETE.labelWeight,
|
|
3314
|
+
lineHeight: labelLineHeight ? labelLineHeight : configStyles.NEWAUTOCOMPLETE.labelLineHeight,
|
|
3315
|
+
marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
|
|
3316
|
+
textTransform: labelTextTransform ? labelTextTransform : configStyles.NEWAUTOCOMPLETE.labelTextTransform
|
|
2346
3317
|
}
|
|
2347
3318
|
}, label, required && /*#__PURE__*/React__default.createElement("sup", {
|
|
2348
3319
|
style: {
|
|
2349
|
-
color: labelRequiredColor ? labelRequiredColor : configStyles.
|
|
3320
|
+
color: labelRequiredColor ? labelRequiredColor : configStyles.NEWAUTOCOMPLETE.labelRequiredColor
|
|
2350
3321
|
}
|
|
2351
|
-
}, "*")) : '', /*#__PURE__*/React__default.createElement("
|
|
3322
|
+
}, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
|
|
2352
3323
|
style: {
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
minWidth: minWidth ? minWidth : configStyles.TEXTAREA.minWidth,
|
|
2362
|
-
maxWidth: maxWidth ? maxWidth : configStyles.TEXTAREA.maxWidth,
|
|
2363
|
-
minHeight: minHeight ? minHeight : configStyles.TEXTAREA.minHeight,
|
|
2364
|
-
maxHeight: maxHeight ? maxHeight : configStyles.TEXTAREA.maxHeight,
|
|
2365
|
-
boxSizing: boxSizing ? boxSizing : configStyles.TEXTAREA.boxSizing,
|
|
2366
|
-
backgroundColor: backgroundColor ? backgroundColor : configStyles.TEXTAREA.backgroundColor,
|
|
2367
|
-
borderColor: isFocus ? borderFocusColor ? borderFocusColor : configStyles.TEXTAREA.borderFocusColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.TEXTAREA.borderHoverColor : borderColor ? borderColor : configStyles.TEXTAREA.borderColor,
|
|
2368
|
-
resize: resize ? resize : configStyles.TEXTAREA.resize
|
|
2369
|
-
},
|
|
3324
|
+
display: contentDisplay ? contentDisplay : configStyles.NEWAUTOCOMPLETE.contentDisplay,
|
|
3325
|
+
position: contentPosition ? contentPosition : configStyles.NEWAUTOCOMPLETE.contentPosition,
|
|
3326
|
+
flexDirection: contentDirection ? contentDirection : configStyles.NEWAUTOCOMPLETE.contentDirection
|
|
3327
|
+
}
|
|
3328
|
+
}, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
3329
|
+
type: "text",
|
|
3330
|
+
value: innerValue,
|
|
3331
|
+
disabled: disabled,
|
|
2370
3332
|
onBlur: handleBlur,
|
|
2371
|
-
onChange: onChange,
|
|
2372
3333
|
onFocus: handleFocus,
|
|
2373
|
-
|
|
3334
|
+
onInput: handleChange,
|
|
3335
|
+
placeholder: placeHolder ? placeHolder : '',
|
|
3336
|
+
autoComplete: autoComplete ? autoComplete : configStyles.NEWAUTOCOMPLETE.autoComplete,
|
|
2374
3337
|
onMouseEnter: handleMouseEnter,
|
|
2375
3338
|
onMouseLeave: handleMouseLeave,
|
|
2376
|
-
|
|
2377
|
-
|
|
3339
|
+
style: {
|
|
3340
|
+
transition: 'all 240ms',
|
|
3341
|
+
cursor: disabled ? 'not-allowed' : 'auto',
|
|
3342
|
+
color: contentTopColor ? contentTopColor : configStyles.NEWAUTOCOMPLETE.contentTopColor,
|
|
3343
|
+
fontSize: contentTopSize ? contentTopSize : configStyles.NEWAUTOCOMPLETE.contentTopSize,
|
|
3344
|
+
height: contentTopHeight ? contentTopHeight : configStyles.NEWAUTOCOMPLETE.contentTopHeight,
|
|
3345
|
+
border: contentTopBorder ? contentTopBorder : configStyles.NEWAUTOCOMPLETE.contentTopBorder,
|
|
3346
|
+
padding: contentTopPadding ? contentTopPadding : configStyles.NEWAUTOCOMPLETE.contentTopPadding,
|
|
3347
|
+
display: contentTopDisplay ? contentTopDisplay : configStyles.NEWAUTOCOMPLETE.contentTopDisplay,
|
|
3348
|
+
fontWeight: contentTopWeight ? contentTopWeight : configStyles.NEWAUTOCOMPLETE.contentTopWeight,
|
|
3349
|
+
borderRadius: contentTopRadius ? contentTopRadius : configStyles.NEWAUTOCOMPLETE.contentTopRadius,
|
|
3350
|
+
maxWidth: contentTopMaxWidth ? contentTopMaxWidth : configStyles.NEWAUTOCOMPLETE.contentTopMaxWidth,
|
|
3351
|
+
boxSizing: contentTopBoxSizing ? contentTopBoxSizing : configStyles.NEWAUTOCOMPLETE.contentTopBoxSizing,
|
|
3352
|
+
lineHeight: contentTopLineHeight ? contentTopLineHeight : configStyles.NEWAUTOCOMPLETE.contentTopLineHeight,
|
|
3353
|
+
flexDirection: contentTopDirection ? contentTopDirection : configStyles.NEWAUTOCOMPLETE.contentTopDirection,
|
|
3354
|
+
borderColor: errorMessage ? errorColor ? errorColor : configStyles.NEWAUTOCOMPLETE.errorColor : isFocus ? contentTopBorderActiveColor ? contentTopBorderActiveColor : configStyles.NEWAUTOCOMPLETE.contentTopBorderActiveColor : isHover ? contentTopBorderHoverColor ? contentTopBorderHoverColor : configStyles.NEWAUTOCOMPLETE.contentTopBorderHoverColor : contentTopBorderColor ? contentTopBorderColor : configStyles.NEWAUTOCOMPLETE.contentTopBorderColor
|
|
3355
|
+
}
|
|
3356
|
+
}, props)), errorMessage ? /*#__PURE__*/React__default.createElement("span", {
|
|
3357
|
+
style: {
|
|
3358
|
+
color: errorColor ? errorColor : configStyles.NEWAUTOCOMPLETE.errorColor,
|
|
3359
|
+
fontSize: errorSize ? errorSize : configStyles.NEWAUTOCOMPLETE.errorSize
|
|
3360
|
+
}
|
|
3361
|
+
}, errorMessage) : '', optionList));
|
|
2378
3362
|
};
|
|
2379
|
-
|
|
2380
|
-
size: PropTypes.string,
|
|
3363
|
+
NewAutocomplete.propTypes = {
|
|
2381
3364
|
label: PropTypes.string,
|
|
2382
|
-
width: PropTypes.string,
|
|
2383
|
-
height: PropTypes.string,
|
|
2384
|
-
resize: PropTypes.string,
|
|
2385
|
-
border: PropTypes.string,
|
|
2386
|
-
radius: PropTypes.string,
|
|
2387
3365
|
required: PropTypes.bool,
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
maxWidth: PropTypes.string,
|
|
2391
|
-
boxSizing: PropTypes.string,
|
|
2392
|
-
minHeight: PropTypes.string,
|
|
2393
|
-
maxHeight: PropTypes.string,
|
|
2394
|
-
maxLength: PropTypes.number,
|
|
3366
|
+
disabled: PropTypes.bool,
|
|
3367
|
+
errorSize: PropTypes.string,
|
|
2395
3368
|
labelSize: PropTypes.string,
|
|
3369
|
+
errorColor: PropTypes.string,
|
|
2396
3370
|
labelColor: PropTypes.string,
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
3371
|
+
searchCount: PropTypes.number,
|
|
3372
|
+
placeHolder: PropTypes.string,
|
|
3373
|
+
labelWeight: PropTypes.number,
|
|
3374
|
+
errorMessage: PropTypes.string,
|
|
2400
3375
|
labelDisplay: PropTypes.string,
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
3376
|
+
autoComplete: PropTypes.string,
|
|
3377
|
+
contentDisplay: PropTypes.string,
|
|
3378
|
+
contentTopSize: PropTypes.string,
|
|
3379
|
+
contentPosition: PropTypes.string,
|
|
3380
|
+
labelLineHeight: PropTypes.string,
|
|
3381
|
+
contentTopColor: PropTypes.string,
|
|
3382
|
+
contentDirection: PropTypes.string,
|
|
3383
|
+
contentTopWeight: PropTypes.number,
|
|
3384
|
+
contentTopRadius: PropTypes.string,
|
|
3385
|
+
contentTopHeight: PropTypes.string,
|
|
3386
|
+
contentTopBorder: PropTypes.string,
|
|
3387
|
+
getItem: PropTypes.func.isRequired,
|
|
3388
|
+
contentTopDisplay: PropTypes.string,
|
|
3389
|
+
contentTopPadding: PropTypes.string,
|
|
3390
|
+
contentBottomLeft: PropTypes.string,
|
|
3391
|
+
options: PropTypes.array.isRequired,
|
|
3392
|
+
labelMarginBottom: PropTypes.string,
|
|
3393
|
+
labelRequiredColor: PropTypes.string,
|
|
3394
|
+
labelTextTransform: PropTypes.string,
|
|
3395
|
+
showOptionDuration: PropTypes.string,
|
|
3396
|
+
contentTopMaxWidth: PropTypes.string,
|
|
3397
|
+
contentBottomWidth: PropTypes.string,
|
|
3398
|
+
contentTopDirection: PropTypes.string,
|
|
3399
|
+
contentTopBoxSizing: PropTypes.string,
|
|
3400
|
+
contentBottomZindex: PropTypes.number,
|
|
3401
|
+
contentBottomRadius: PropTypes.string,
|
|
3402
|
+
contentTopLineHeight: PropTypes.string,
|
|
3403
|
+
contentTopBorderColor: PropTypes.string,
|
|
3404
|
+
contentBottomRowColor: PropTypes.string,
|
|
3405
|
+
contentBottomMaxWidth: PropTypes.string,
|
|
3406
|
+
contentBottomOverflow: PropTypes.string,
|
|
3407
|
+
contentBottomPosition: PropTypes.string,
|
|
3408
|
+
contentBottomMinHeight: PropTypes.string,
|
|
3409
|
+
contentBottomBoxShadow: PropTypes.string,
|
|
3410
|
+
contentBottomRowHeight: PropTypes.string,
|
|
3411
|
+
contentBottomRowCursor: PropTypes.string,
|
|
3412
|
+
contentBottomRowDisplay: PropTypes.string,
|
|
3413
|
+
contentBottomRowPadding: PropTypes.string,
|
|
3414
|
+
contentBottomRowFontSize: PropTypes.string,
|
|
3415
|
+
contentBottomRowBoxSizing: PropTypes.string,
|
|
3416
|
+
contentBottomInnerDisplay: PropTypes.string,
|
|
3417
|
+
contentBottomRowFontWeight: PropTypes.number,
|
|
3418
|
+
contentBottomRowLineHeight: PropTypes.string,
|
|
3419
|
+
contentBottomRowAlignItems: PropTypes.string,
|
|
3420
|
+
contentBottomRowTransition: PropTypes.string,
|
|
3421
|
+
contentBottomRowHoverColor: PropTypes.string,
|
|
3422
|
+
contentTopBorderHoverColor: PropTypes.string,
|
|
3423
|
+
contentTopBorderActiveColor: PropTypes.string,
|
|
3424
|
+
contentBottomInnerOverflowY: PropTypes.string,
|
|
3425
|
+
contentBottomInnerOverflowX: PropTypes.string,
|
|
3426
|
+
contentBottomInnerMaxHeight: PropTypes.string,
|
|
3427
|
+
contentBottomInnerDirection: PropTypes.string,
|
|
3428
|
+
contentBottomRowMarginBottom: PropTypes.string,
|
|
3429
|
+
contentBottomBackgroundColor: PropTypes.string,
|
|
3430
|
+
contentBottomRowBackgroundColor: PropTypes.string,
|
|
3431
|
+
contentBottomRowHoverBackgroundColor: PropTypes.string
|
|
3432
|
+
};
|
|
3433
|
+
NewAutocomplete.defaultProps = {
|
|
3434
|
+
searchCount: 3,
|
|
3435
|
+
disabled: false
|
|
2407
3436
|
};
|
|
2408
3437
|
|
|
2409
|
-
export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, 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 };
|