@xaypay/tui 0.0.67 → 0.0.69
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 +245 -84
- package/dist/index.js +245 -83
- package/package.json +1 -1
- package/src/assets/icons/dots.svg +3 -0
- package/src/assets/icons/nextarrow.svg +3 -0
- package/src/assets/pdf.svg +3 -0
- package/src/components/file/file.module.css +1 -1
- package/src/components/file/index.js +4 -4
- package/src/components/icon/Dots.js +19 -0
- package/src/components/icon/NextArrow.js +19 -0
- package/src/components/input/index.js +42 -34
- package/src/components/pagination/index.js +15 -10
- package/src/index.js +1 -0
package/dist/index.es.js
CHANGED
|
@@ -32,12 +32,14 @@ function styleInject(css, ref) {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
var css_248z$
|
|
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:2.5rem}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
|
|
36
36
|
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
|
+
styleInject(css_248z$e);
|
|
38
|
+
|
|
39
|
+
var css_248z$d = "";
|
|
37
40
|
styleInject(css_248z$d);
|
|
38
41
|
|
|
39
|
-
var
|
|
40
|
-
styleInject(css_248z$c);
|
|
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>";
|
|
41
43
|
|
|
42
44
|
const File = ({
|
|
43
45
|
name,
|
|
@@ -52,8 +54,7 @@ const File = ({
|
|
|
52
54
|
fileExtensions,
|
|
53
55
|
...props
|
|
54
56
|
}) => {
|
|
55
|
-
const
|
|
56
|
-
const [image, setImage] = useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : pdfImageName : null);
|
|
57
|
+
const [image, setImage] = useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : pdfImage : null);
|
|
57
58
|
const [error, setError] = useState('');
|
|
58
59
|
const [fileName, setFileName] = useState('no selected file');
|
|
59
60
|
const handleCheckFile = e => {
|
|
@@ -66,7 +67,7 @@ const File = ({
|
|
|
66
67
|
onChange({
|
|
67
68
|
file
|
|
68
69
|
});
|
|
69
|
-
setImage(
|
|
70
|
+
setImage(pdfImage);
|
|
70
71
|
} else {
|
|
71
72
|
setError('');
|
|
72
73
|
onChange({
|
|
@@ -161,9 +162,9 @@ File.defaultProps = {
|
|
|
161
162
|
fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
|
|
162
163
|
};
|
|
163
164
|
|
|
164
|
-
var css_248z$
|
|
165
|
+
var css_248z$c = ".table-module_table-wrap__KKAnM{background:#fff;border-radius:14px 14px 0 0;box-shadow:0 10px 30px rgba(0,35,106,.06);overflow:hidden;width:100%}.table-module_table-wrap__KKAnM:not(:first-child){margin-top:30px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:first-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:first-child{flex:0 0 auto;width:60px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(2),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(2){flex:0 0 auto;width:120px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(3),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(3){flex:0 0 auto;width:170px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(4),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(4){flex:0 0 auto;width:126px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(5),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(6),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(8),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(5),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(6),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(8){flex:0 0 auto;width:100px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:last-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:last-child{flex:0 0 auto;width:104px}.table-module_table-top__tfEKM{background:#00236a;height:44px;width:100%}.table-module_table-top__tfEKM .table-module_table-items__UpFg2{align-items:center;color:#fff;display:flex;flex:1 1;font-size:15px;justify-content:center;line-height:17px;text-align:center}.table-module_table-bottom-inner__0Pus0{background:#fff;min-height:40px;width:100%}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2{align-items:center;border-bottom:1px solid #eee;display:flex;flex:1 1;font-size:14px;justify-content:center;line-height:16px;padding:4px;text-align:center}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:not(:last-child){border-right:1px solid #eee}";
|
|
165
166
|
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"};
|
|
166
|
-
styleInject(css_248z$
|
|
167
|
+
styleInject(css_248z$c);
|
|
167
168
|
|
|
168
169
|
function _extends() {
|
|
169
170
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -180,9 +181,9 @@ function _extends() {
|
|
|
180
181
|
return _extends.apply(this, arguments);
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
var css_248z$
|
|
184
|
+
var css_248z$b = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;bottom:0;display:inline-block;height:14px;left:0;margin:auto 4px auto auto;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.checkbox-module_checkbox-wrap__Xrg-m>.checkbox-module_checkmark__M8DY6:after{border:solid #1890ff;border-width:0 2px 2px 0;content:\"\";display:block;height:8px;left:4px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);transition:opacity .24s;width:4px}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6:after{opacity:1}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6,.checkbox-module_checkbox-wrap__Xrg-m:hover input~.checkbox-module_checkmark__M8DY6{border-color:#1890ff}";
|
|
184
185
|
var styles$a = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
|
|
185
|
-
styleInject(css_248z$
|
|
186
|
+
styleInject(css_248z$b);
|
|
186
187
|
|
|
187
188
|
const Checkbox = ({
|
|
188
189
|
disabled,
|
|
@@ -356,9 +357,9 @@ Table.defaultProps = {
|
|
|
356
357
|
hearderData: []
|
|
357
358
|
};
|
|
358
359
|
|
|
359
|
-
var css_248z$
|
|
360
|
+
var css_248z$a = ".modal-module_modal-wrap__IsXXf{background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;width:100%;z-index:9}.modal-module_modal-top__ntDBi{background:#fbfbfb;box-sizing:border-box;display:flex;flex-direction:row;height:44px;padding:4px 10px 4px 0;width:100%}.modal-module_modal-title__r-WKl{align-items:center;color:#3c393e;display:flex;flex:1 1;font-size:20px;font-weight:500;line-height:24px;padding-right:20px}.modal-module_close-btn__Qf2UD{cursor:pointer;flex:0 0 auto;width:24px}.modal-module_close-btn__Qf2UD,.modal-module_modal-section__Bp8jN{align-items:center;display:flex;height:100%;justify-content:center}.modal-module_modal-section__Bp8jN{flex:1 1;padding:10px 0;width:100%}.modal-module_modal-content__1F-uE{align-items:center;animation:modal-module_show-popup__WrH7a .24s;background:#fff;border-radius:8px;display:flex;flex-direction:column;height:auto;left:0;margin:auto;min-height:130px;overflow:hidden;padding:10px;position:absolute;right:0;top:110px;width:fit-content}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-30%,0)}to{opacity:1;transform:translateZ(0)}}";
|
|
360
361
|
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"};
|
|
361
|
-
styleInject(css_248z$
|
|
362
|
+
styleInject(css_248z$a);
|
|
362
363
|
|
|
363
364
|
const _ = require('lodash');
|
|
364
365
|
const compereConfigs = () => {
|
|
@@ -549,9 +550,9 @@ Modal.propTypes = {
|
|
|
549
550
|
data: PropTypes.array
|
|
550
551
|
};
|
|
551
552
|
|
|
552
|
-
var css_248z$
|
|
553
|
+
var css_248z$9 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
|
|
553
554
|
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k"};
|
|
554
|
-
styleInject(css_248z$
|
|
555
|
+
styleInject(css_248z$9);
|
|
555
556
|
|
|
556
557
|
const InputTypes = {
|
|
557
558
|
TEL: 'tel',
|
|
@@ -636,18 +637,30 @@ const Input = ({
|
|
|
636
637
|
`;
|
|
637
638
|
const handleChange = event => {
|
|
638
639
|
const currentValue = event.target.value;
|
|
640
|
+
setInnerValue(currentValue);
|
|
641
|
+
if (type === 'tel') {
|
|
642
|
+
if (currentValue.length > 8) {
|
|
643
|
+
setInnerValue(currentValue.substr(0, 8));
|
|
644
|
+
}
|
|
645
|
+
if (!phoneNumberRegex.test(currentValue) && telErrorMessage) {
|
|
646
|
+
setInnerErrorMessage(telErrorMessage);
|
|
647
|
+
} else {
|
|
648
|
+
setInnerErrorMessage('');
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
if (maxLength && currentValue.length > maxLength && type !== 'tel') {
|
|
652
|
+
setInnerValue(currentValue.substr(0, maxLength));
|
|
653
|
+
}
|
|
654
|
+
if (regexp && regexpErrorMessage && !maxLength && type !== 'tel') {
|
|
655
|
+
!regexp.test(currentValue) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
|
|
656
|
+
}
|
|
639
657
|
if (onChange) {
|
|
640
658
|
onChange(currentValue);
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
if (type === 'tel') {
|
|
644
|
-
!phoneNumberRegex.test(parseInt(currentValue)) ? setInnerErrorMessage(telErrorMessage) : setInnerErrorMessage('');
|
|
659
|
+
if (type === 'tel' && currentValue.length > 8) {
|
|
660
|
+
onChange(currentValue.substr(0, 8));
|
|
645
661
|
}
|
|
646
|
-
if (maxLength) {
|
|
647
|
-
|
|
648
|
-
}
|
|
649
|
-
if (regexp) {
|
|
650
|
-
!regexp.test(currentValue) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
|
|
662
|
+
if (maxLength && currentValue.length > maxLength && type !== 'tel') {
|
|
663
|
+
onChange(currentValue.substr(0, maxLength));
|
|
651
664
|
}
|
|
652
665
|
}
|
|
653
666
|
};
|
|
@@ -661,34 +674,28 @@ const Input = ({
|
|
|
661
674
|
if (value !== undefined && value !== null) {
|
|
662
675
|
setInnerValue(value);
|
|
663
676
|
if (type === 'tel') {
|
|
664
|
-
|
|
677
|
+
if (value.length > 8) {
|
|
678
|
+
setInnerValue(value.substr(0, 8));
|
|
679
|
+
}
|
|
680
|
+
if (!phoneNumberRegex.test(value) && telErrorMessage) {
|
|
681
|
+
setInnerErrorMessage(telErrorMessage);
|
|
682
|
+
} else {
|
|
683
|
+
setInnerErrorMessage('');
|
|
684
|
+
}
|
|
665
685
|
}
|
|
666
|
-
if (maxLength) {
|
|
667
|
-
|
|
686
|
+
if (maxLength && value.length > maxLength && type !== 'tel') {
|
|
687
|
+
setInnerValue(value.substr(0, maxLength));
|
|
668
688
|
}
|
|
669
|
-
if (regexp) {
|
|
689
|
+
if (regexp && regexpErrorMessage && !maxLength && type !== 'tel') {
|
|
670
690
|
!regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
|
|
671
691
|
}
|
|
672
692
|
}
|
|
673
|
-
if (onChange && (value === undefined || value === null)) {
|
|
674
|
-
alert('Please add value prop on input component');
|
|
675
|
-
}
|
|
676
|
-
}, [value, onChange]);
|
|
677
|
-
useEffect(() => {
|
|
678
693
|
if (errorMessage) {
|
|
679
694
|
setInnerErrorMessage(errorMessage);
|
|
695
|
+
} else {
|
|
696
|
+
setInnerErrorMessage('');
|
|
680
697
|
}
|
|
681
|
-
}, [errorMessage]);
|
|
682
|
-
useEffect(() => {
|
|
683
|
-
if (type === 'tel' && !telErrorMessage) {
|
|
684
|
-
alert('Please add telErrorMessage on input component');
|
|
685
|
-
}
|
|
686
|
-
}, [type]);
|
|
687
|
-
useEffect(() => {
|
|
688
|
-
if (regexp && !regexpErrorMessage) {
|
|
689
|
-
alert('Please add regexpErrorMessage prop on input component');
|
|
690
|
-
}
|
|
691
|
-
}, [regexp]);
|
|
698
|
+
}, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage]);
|
|
692
699
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
693
700
|
className: `${styles$8["input-wrap"]}`
|
|
694
701
|
}, label ? /*#__PURE__*/React__default.createElement("label", {
|
|
@@ -848,9 +855,9 @@ Input.defaultProps = {
|
|
|
848
855
|
type: "text"
|
|
849
856
|
};
|
|
850
857
|
|
|
851
|
-
var css_248z$
|
|
858
|
+
var css_248z$8 = ".radio-module_radio-wrap__-lO7V{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.radio-module_radio-wrap__-lO7V>input{height:0;opacity:0;position:absolute;width:0}.radio-module_radio-wrap__-lO7V .radio-module_radio-checkmark__Kvol0{border:1px solid #d9d9d9;border-radius:50%;display:inline-block;height:14px;left:0;margin-right:4px;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.radio-module_radio-wrap__-lO7V>.radio-module_radio-checkmark__Kvol0:after{background-color:#d9d9d9;border-radius:50%;bottom:0;content:\"\";height:8px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;transition:opacity .24s,background-color .24s;width:8px}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0:after{background-color:#1890ff;opacity:1}.radio-module_radio-wrap__-lO7V:hover input~.radio-module_radio-checkmark__Kvol0:after{opacity:1}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0{border-color:#1890ff}";
|
|
852
859
|
var styles$7 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
|
|
853
|
-
styleInject(css_248z$
|
|
860
|
+
styleInject(css_248z$8);
|
|
854
861
|
|
|
855
862
|
const Radio = ({
|
|
856
863
|
disabled,
|
|
@@ -1085,9 +1092,9 @@ const SvgCloseIcon = ({
|
|
|
1085
1092
|
fill: "#3C393E"
|
|
1086
1093
|
}));
|
|
1087
1094
|
|
|
1088
|
-
var css_248z$
|
|
1095
|
+
var css_248z$7 = ".select-module_select-content__GCMDX{display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
1089
1096
|
var styles$6 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L"};
|
|
1090
|
-
styleInject(css_248z$
|
|
1097
|
+
styleInject(css_248z$7);
|
|
1091
1098
|
|
|
1092
1099
|
const Select = ({
|
|
1093
1100
|
options,
|
|
@@ -1491,9 +1498,9 @@ const SvgToasterSuccess = ({
|
|
|
1491
1498
|
fill: "#0DA574"
|
|
1492
1499
|
}));
|
|
1493
1500
|
|
|
1494
|
-
var css_248z$
|
|
1501
|
+
var css_248z$6 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}";
|
|
1495
1502
|
var styles$5 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO"};
|
|
1496
|
-
styleInject(css_248z$
|
|
1503
|
+
styleInject(css_248z$6);
|
|
1497
1504
|
|
|
1498
1505
|
const ToasterType = {
|
|
1499
1506
|
info: 'info',
|
|
@@ -1749,9 +1756,9 @@ const Toaster = () => {
|
|
|
1749
1756
|
|
|
1750
1757
|
var ReactInfoIcon = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8 0C3.58214 0 0 3.58214 0 8C0 12.4179 3.58214 16 8 16C12.4179 16 16 12.4179 16 8C16 3.58214 12.4179 0 8 0ZM8.57143 11.8571C8.57143 11.9357 8.50714 12 8.42857 12H7.57143C7.49286 12 7.42857 11.9357 7.42857 11.8571V7C7.42857 6.92143 7.49286 6.85714 7.57143 6.85714H8.42857C8.50714 6.85714 8.57143 6.92143 8.57143 7V11.8571ZM8 5.71429C7.7757 5.70971 7.56213 5.61739 7.40513 5.45714C7.24812 5.2969 7.16018 5.08149 7.16018 4.85714C7.16018 4.6328 7.24812 4.41739 7.40513 4.25714C7.56213 4.0969 7.7757 4.00458 8 4C8.2243 4.00458 8.43787 4.0969 8.59488 4.25714C8.75189 4.41739 8.83982 4.6328 8.83982 4.85714C8.83982 5.08149 8.75189 5.2969 8.59488 5.45714C8.43787 5.61739 8.2243 5.70971 8 5.71429Z\" fill=\"#D1D1D1\"/>\n</svg>";
|
|
1751
1758
|
|
|
1752
|
-
var css_248z$
|
|
1759
|
+
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}";
|
|
1753
1760
|
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"};
|
|
1754
|
-
styleInject(css_248z$
|
|
1761
|
+
styleInject(css_248z$5);
|
|
1755
1762
|
|
|
1756
1763
|
const Tooltip = ({
|
|
1757
1764
|
type,
|
|
@@ -1847,9 +1854,9 @@ Tooltip.defaultProps = {
|
|
|
1847
1854
|
type: 'top'
|
|
1848
1855
|
};
|
|
1849
1856
|
|
|
1850
|
-
var css_248z$
|
|
1857
|
+
var css_248z$4 = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{height:74px;max-width:400px;position:relative;width:100%}.captcha-module_slider__KLYny{-webkit-appearance:none;background:#eee;border-radius:2px;bottom:0;height:4px;left:0;margin:auto 0;outline:none;position:absolute;top:0;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:30px;position:relative;width:30px;z-index:3}.captcha-module_selector__JFhb4{left:0;z-index:2}.captcha-module_selectBtn__GP1iH,.captcha-module_selector__JFhb4{bottom:0;height:30px;margin:auto 0;position:absolute;top:0;width:30px}.captcha-module_selectBtn__GP1iH{background:#00236a;border:2px solid #fff;border-radius:50%;box-shadow:1px 0 6px rgba(60,57,62,.15);cursor:pointer}.captcha-module_progressBar__mhdtM{background:red;bottom:0;height:4px;left:0;margin:auto 0;position:absolute;top:0;width:auto}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
|
|
1851
1858
|
var styles$3 = {"main":"captcha-module_main__Ys3EH","slider":"captcha-module_slider__KLYny","selector":"captcha-module_selector__JFhb4","selectBtn":"captcha-module_selectBtn__GP1iH","progressBar":"captcha-module_progressBar__mhdtM","range":"captcha-module_range__k24I2"};
|
|
1852
|
-
styleInject(css_248z$
|
|
1859
|
+
styleInject(css_248z$4);
|
|
1853
1860
|
|
|
1854
1861
|
const Captcha = ({
|
|
1855
1862
|
onclick,
|
|
@@ -1914,9 +1921,9 @@ Captcha.defaultProps = {
|
|
|
1914
1921
|
onclick: undefined
|
|
1915
1922
|
};
|
|
1916
1923
|
|
|
1917
|
-
var css_248z$
|
|
1924
|
+
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}";
|
|
1918
1925
|
var styles$2 = {"stepper-container":"stepper-module_stepper-container__-OVGy","bigRing":"stepper-module_bigRing__5GBm0","activeRing":"stepper-module_activeRing__Lzvh1","smallRing":"stepper-module_smallRing__u-5a8","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
|
|
1919
|
-
styleInject(css_248z$
|
|
1926
|
+
styleInject(css_248z$3);
|
|
1920
1927
|
|
|
1921
1928
|
const Stepper = ({
|
|
1922
1929
|
className,
|
|
@@ -1947,13 +1954,13 @@ Stepper.propTypes = {
|
|
|
1947
1954
|
activeSteps: PropTypes.number
|
|
1948
1955
|
};
|
|
1949
1956
|
|
|
1950
|
-
var css_248z$
|
|
1957
|
+
var css_248z$2 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:13px;line-height:16px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}";
|
|
1951
1958
|
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"};
|
|
1952
|
-
styleInject(css_248z$
|
|
1959
|
+
styleInject(css_248z$2);
|
|
1953
1960
|
|
|
1954
1961
|
// import styles from "./pagination.module.scss";
|
|
1955
1962
|
|
|
1956
|
-
const Dots = "...";
|
|
1963
|
+
const Dots$1 = "...";
|
|
1957
1964
|
const range = (start, end) => {
|
|
1958
1965
|
const length = end - start + 1;
|
|
1959
1966
|
return Array.from({
|
|
@@ -1983,22 +1990,58 @@ const PaginationRange = ({
|
|
|
1983
1990
|
if (!shouldShowLeftDots && shouldShowRightDots) {
|
|
1984
1991
|
let leftItemCount = currentPageNumber === 4 && lastPageIndex > 7 ? 4 + siblingCountNumber : 3 + siblingCountNumber;
|
|
1985
1992
|
let leftRange = range(1, leftItemCount);
|
|
1986
|
-
return [...leftRange, Dots, totalPageCount];
|
|
1993
|
+
return [...leftRange, Dots$1, totalPageCount];
|
|
1987
1994
|
}
|
|
1988
1995
|
if (shouldShowLeftDots && !shouldShowRightDots) {
|
|
1989
1996
|
let rightItemCount = 0;
|
|
1990
1997
|
currentPageNumber === lastPageIndex - 3 && lastPageIndex > 7 ? rightItemCount = 4 + siblingCountNumber : rightItemCount = 3 + siblingCountNumber;
|
|
1991
1998
|
let rightRange = range(totalPageCount - rightItemCount + 1, totalPageCount);
|
|
1992
|
-
return [firstPageIndex, Dots, ...rightRange];
|
|
1999
|
+
return [firstPageIndex, Dots$1, ...rightRange];
|
|
1993
2000
|
}
|
|
1994
2001
|
if (shouldShowLeftDots && shouldShowRightDots) {
|
|
1995
2002
|
let middleRange = range(leftSiblingIndex, rightSiblingIndex);
|
|
1996
|
-
return [firstPageIndex, Dots, ...middleRange, Dots, lastPageIndex];
|
|
2003
|
+
return [firstPageIndex, Dots$1, ...middleRange, Dots$1, lastPageIndex];
|
|
1997
2004
|
}
|
|
1998
2005
|
}, [currentTotalCount, offset, siblingCountNumber, currentPageNumber]);
|
|
1999
2006
|
return paginationRange;
|
|
2000
2007
|
};
|
|
2001
2008
|
|
|
2009
|
+
const Dots = ({
|
|
2010
|
+
title,
|
|
2011
|
+
titleId,
|
|
2012
|
+
...props
|
|
2013
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
2014
|
+
width: "1em",
|
|
2015
|
+
height: "1em",
|
|
2016
|
+
viewBox: "0 0 11 3",
|
|
2017
|
+
fill: "none",
|
|
2018
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2019
|
+
"aria-labelledby": titleId
|
|
2020
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
2021
|
+
id: titleId
|
|
2022
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
2023
|
+
d: "M0.230125 1.13624C0.230125 0.741577 0.326125 0.464244 0.518125 0.304244C0.710125 0.144244 0.939458 0.064244 1.20613 0.064244C1.48346 0.064244 1.71813 0.144244 1.91013 0.304244C2.11279 0.464244 2.21413 0.741577 2.21413 1.13624C2.21413 1.52024 2.11279 1.79758 1.91013 1.96824C1.71813 2.13891 1.48346 2.22424 1.20613 2.22424C0.939458 2.22424 0.710125 2.13891 0.518125 1.96824C0.326125 1.79758 0.230125 1.52024 0.230125 1.13624ZM4.51138 1.13624C4.51138 0.741577 4.60738 0.464244 4.79938 0.304244C4.99138 0.144244 5.22071 0.064244 5.48738 0.064244C5.76471 0.064244 5.99938 0.144244 6.19138 0.304244C6.39404 0.464244 6.49538 0.741577 6.49538 1.13624C6.49538 1.52024 6.39404 1.79758 6.19138 1.96824C5.99938 2.13891 5.76471 2.22424 5.48738 2.22424C5.22071 2.22424 4.99138 2.13891 4.79938 1.96824C4.60738 1.79758 4.51138 1.52024 4.51138 1.13624ZM8.79263 1.13624C8.79263 0.741577 8.88863 0.464244 9.08063 0.304244C9.27263 0.144244 9.50196 0.064244 9.76863 0.064244C10.046 0.064244 10.2806 0.144244 10.4726 0.304244C10.6753 0.464244 10.7766 0.741577 10.7766 1.13624C10.7766 1.52024 10.6753 1.79758 10.4726 1.96824C10.2806 2.13891 10.046 2.22424 9.76863 2.22424C9.50196 2.22424 9.27263 2.13891 9.08063 1.96824C8.88863 1.79758 8.79263 1.52024 8.79263 1.13624Z",
|
|
2024
|
+
fill: "#3C393E"
|
|
2025
|
+
}));
|
|
2026
|
+
|
|
2027
|
+
const SvgNextArrow = ({
|
|
2028
|
+
title,
|
|
2029
|
+
titleId,
|
|
2030
|
+
...props
|
|
2031
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
2032
|
+
width: "1em",
|
|
2033
|
+
height: "1em",
|
|
2034
|
+
viewBox: "0 0 6 12",
|
|
2035
|
+
fill: "none",
|
|
2036
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2037
|
+
"aria-labelledby": titleId
|
|
2038
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
2039
|
+
id: titleId
|
|
2040
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
2041
|
+
d: "M0.851445 11.9985C0.652853 11.9988 0.460393 11.9292 0.307477 11.8017C0.221413 11.7299 0.150271 11.6418 0.0981246 11.5423C0.0459785 11.4428 0.0138536 11.3339 0.0035897 11.2219C-0.00667418 11.1098 0.00512483 10.9969 0.0383107 10.8895C0.0714965 10.7821 0.125416 10.6823 0.196984 10.5958L4.00476 6.01173L0.332976 1.41906C0.262375 1.33158 0.209651 1.23092 0.177836 1.12286C0.146021 1.01481 0.135741 0.901501 0.147589 0.789439C0.159437 0.677378 0.193177 0.568777 0.246871 0.469879C0.300566 0.370982 0.373156 0.283737 0.460468 0.213159C0.548409 0.135301 0.651394 0.0765731 0.76296 0.0406621C0.874526 0.00475112 0.992266 -0.00756759 1.10879 0.00447845C1.22531 0.0165245 1.3381 0.0526755 1.44008 0.110663C1.54206 0.16865 1.63102 0.247221 1.70139 0.341446L5.80665 5.47292C5.93166 5.62596 6 5.81791 6 6.01601C6 6.2141 5.93166 6.40606 5.80665 6.55909L1.5569 11.6906C1.47164 11.7941 1.36333 11.8759 1.24075 11.9294C1.11818 11.9829 0.984807 12.0065 0.851445 11.9985Z",
|
|
2042
|
+
fill: "#3C393E"
|
|
2043
|
+
}));
|
|
2044
|
+
|
|
2002
2045
|
const Pagination = ({
|
|
2003
2046
|
onChange,
|
|
2004
2047
|
totalCount,
|
|
@@ -2053,13 +2096,14 @@ const Pagination = ({
|
|
|
2053
2096
|
return /*#__PURE__*/React__default.createElement("ul", {
|
|
2054
2097
|
className: classProps
|
|
2055
2098
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
2099
|
+
style: {
|
|
2100
|
+
transform: 'rotate(180deg)'
|
|
2101
|
+
},
|
|
2056
2102
|
className: `${styles$1["pagination-btn"]} pagination-btn-rem`,
|
|
2057
2103
|
onClick: onPrevious,
|
|
2058
2104
|
disabled: currentPage === 1 ? true : false
|
|
2059
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2060
|
-
|
|
2061
|
-
})), paginationRange.map((pageNumber, id) => {
|
|
2062
|
-
if (pageNumber === Dots) {
|
|
2105
|
+
}, /*#__PURE__*/React__default.createElement(SvgNextArrow, null)), paginationRange.map((pageNumber, id) => {
|
|
2106
|
+
if (pageNumber === Dots$1) {
|
|
2063
2107
|
let currentPageIndex = paginationRange.indexOf(currentPageNumber);
|
|
2064
2108
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
2065
2109
|
key: id,
|
|
@@ -2068,21 +2112,16 @@ const Pagination = ({
|
|
|
2068
2112
|
disabled: currentPageIndex === 0 ? true : false
|
|
2069
2113
|
}, id < currentPageIndex ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
|
|
2070
2114
|
className: `${styles$1["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
|
|
2071
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
2072
|
-
className: "
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
}))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
|
|
2115
|
+
}, /*#__PURE__*/React__default.createElement(Dots, null)), /*#__PURE__*/React__default.createElement("span", {
|
|
2116
|
+
className: `${styles$1["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`,
|
|
2117
|
+
style: {
|
|
2118
|
+
transform: 'rotate(180deg)'
|
|
2119
|
+
}
|
|
2120
|
+
}, /*#__PURE__*/React__default.createElement(SvgNextArrow, null))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
|
|
2078
2121
|
className: `${styles$1["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
|
|
2079
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
2080
|
-
className: "icon-text"
|
|
2081
|
-
})), /*#__PURE__*/React__default.createElement("span", {
|
|
2122
|
+
}, /*#__PURE__*/React__default.createElement(Dots, null)), /*#__PURE__*/React__default.createElement("span", {
|
|
2082
2123
|
className: `${styles$1["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`
|
|
2083
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2084
|
-
className: "icon-arrow-jump-next"
|
|
2085
|
-
}))));
|
|
2124
|
+
}, /*#__PURE__*/React__default.createElement(SvgNextArrow, null))));
|
|
2086
2125
|
}
|
|
2087
2126
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
2088
2127
|
onClick: () => onPageChange(pageNumber),
|
|
@@ -2093,9 +2132,7 @@ const Pagination = ({
|
|
|
2093
2132
|
onClick: onNext,
|
|
2094
2133
|
className: `${styles$1["pagination-btn"]} pagination-btn-rem`,
|
|
2095
2134
|
disabled: currentPageNumber === lastPage ? true : false
|
|
2096
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2097
|
-
className: "icon-arrow"
|
|
2098
|
-
})));
|
|
2135
|
+
}, /*#__PURE__*/React__default.createElement(SvgNextArrow, null)));
|
|
2099
2136
|
};
|
|
2100
2137
|
Pagination.propTypes = {
|
|
2101
2138
|
offset: PropTypes.number,
|
|
@@ -2109,9 +2146,9 @@ Pagination.defaultProps = {
|
|
|
2109
2146
|
siblingCount: 2
|
|
2110
2147
|
};
|
|
2111
2148
|
|
|
2112
|
-
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}";
|
|
2149
|
+
var css_248z$1 = ".autocomplate-module_autocomplate-content__UbIUT{display:flex;flex-direction:column;position:relative}.autocomplate-module_autocomplate-content-top__FVgCp{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.autocomplate-module_autocomplate-content-top__FVgCp.autocomplate-module_active__40fdV{border-color:#00236a}.autocomplate-module_autocomplate-content-top__FVgCp:hover{border-color:#3c393e}.autocomplate-module_autocomplate-content-bottom__yk0zP{animation:autocomplate-module_select-show__7Uap4 .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);left:0;max-height:0;max-width:400px;overflow:hidden;position:absolute;top:52px;width:100%;z-index:1}.autocomplate-module_autocomplate-content-bottom-inner__rF5IF{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes autocomplate-module_select-show__7Uap4{to{max-height:400px}}.autocomplate-module_autocomplate-content-bottom-row__dRsZa{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.autocomplate-module_autocomplate-content-bottom-row__dRsZa .autocomplate-module_no-option__xv0-E{color:red}.autocomplate-module_autocomplate-content-bottom-row__dRsZa:hover{background:unset;color:#00236a}.autocomplate-module_option-active__WuH4I .autocomplate-module_autocomplate-content-bottom-row__dRsZa{color:#00236a}.autocomplate-module_autocomplate-title__3Qxqz{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:none}.autocomplate-module_errorBorder__LV-nb{border:2px solid #e00!important}.autocomplate-module_errorMessage__Gchpc{color:#e00!important}";
|
|
2113
2150
|
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"};
|
|
2114
|
-
styleInject(css_248z);
|
|
2151
|
+
styleInject(css_248z$1);
|
|
2115
2152
|
|
|
2116
2153
|
const Autocomplate = ({
|
|
2117
2154
|
label,
|
|
@@ -2245,4 +2282,128 @@ Autocomplate.defaultProps = {
|
|
|
2245
2282
|
required: false
|
|
2246
2283
|
};
|
|
2247
2284
|
|
|
2248
|
-
|
|
2285
|
+
var css_248z = "textarea::-webkit-scrollbar{width:6px}textarea::-webkit-scrollbar-track{background:#eee}textarea::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-track{border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px}textarea::-webkit-scrollbar-thumb{background:#d1d1d1}";
|
|
2286
|
+
styleInject(css_248z);
|
|
2287
|
+
|
|
2288
|
+
const Textarea = ({
|
|
2289
|
+
size,
|
|
2290
|
+
label,
|
|
2291
|
+
width,
|
|
2292
|
+
value,
|
|
2293
|
+
height,
|
|
2294
|
+
resize,
|
|
2295
|
+
border,
|
|
2296
|
+
radius,
|
|
2297
|
+
padding,
|
|
2298
|
+
required,
|
|
2299
|
+
onChange,
|
|
2300
|
+
minWidth,
|
|
2301
|
+
maxWidth,
|
|
2302
|
+
minHeight,
|
|
2303
|
+
maxHeight,
|
|
2304
|
+
boxSizing,
|
|
2305
|
+
maxLength,
|
|
2306
|
+
labelSize,
|
|
2307
|
+
labelColor,
|
|
2308
|
+
borderColor,
|
|
2309
|
+
labelWeight,
|
|
2310
|
+
placeholder,
|
|
2311
|
+
labelDisplay,
|
|
2312
|
+
backgroundColor,
|
|
2313
|
+
borderFocusColor,
|
|
2314
|
+
borderHoverColor,
|
|
2315
|
+
labelRequiredColor
|
|
2316
|
+
}) => {
|
|
2317
|
+
const [isHover, setIsHover] = useState(false);
|
|
2318
|
+
const [isFocus, setIsFocus] = useState(false);
|
|
2319
|
+
const configStyles = compereConfigs();
|
|
2320
|
+
const handleMouseEnter = () => {
|
|
2321
|
+
setIsHover(true);
|
|
2322
|
+
};
|
|
2323
|
+
const handleMouseLeave = () => {
|
|
2324
|
+
setIsHover(false);
|
|
2325
|
+
};
|
|
2326
|
+
const handleFocus = () => {
|
|
2327
|
+
setIsFocus(true);
|
|
2328
|
+
};
|
|
2329
|
+
const handleBlur = () => {
|
|
2330
|
+
setIsFocus(false);
|
|
2331
|
+
};
|
|
2332
|
+
useEffect(() => {
|
|
2333
|
+
if (value === undefined) {
|
|
2334
|
+
alert('Please add value prop on Textarea component');
|
|
2335
|
+
}
|
|
2336
|
+
if (!onChange) {
|
|
2337
|
+
alert('Please add onChange function on Textarea component');
|
|
2338
|
+
}
|
|
2339
|
+
}, [value, onChange]);
|
|
2340
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
|
|
2341
|
+
style: {
|
|
2342
|
+
color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
|
|
2343
|
+
fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize,
|
|
2344
|
+
display: labelDisplay ? labelDisplay : configStyles.TEXTAREA.labelDisplay,
|
|
2345
|
+
fontWeight: labelWeight ? labelWeight : configStyles.TEXTAREA.labelWeight
|
|
2346
|
+
}
|
|
2347
|
+
}, label, required && /*#__PURE__*/React__default.createElement("sup", {
|
|
2348
|
+
style: {
|
|
2349
|
+
color: labelRequiredColor ? labelRequiredColor : configStyles.TEXTAREA.labelRequiredColor
|
|
2350
|
+
}
|
|
2351
|
+
}, "*")) : '', /*#__PURE__*/React__default.createElement("textarea", {
|
|
2352
|
+
style: {
|
|
2353
|
+
outline: 'none',
|
|
2354
|
+
overflow: 'auto',
|
|
2355
|
+
fontSize: size ? size : configStyles.TEXTAREA.size,
|
|
2356
|
+
width: width ? width : configStyles.TEXTAREA.width,
|
|
2357
|
+
height: height ? height : configStyles.TEXTAREA.height,
|
|
2358
|
+
border: border ? border : configStyles.TEXTAREA.border,
|
|
2359
|
+
padding: padding ? padding : configStyles.TEXTAREA.padding,
|
|
2360
|
+
borderRadius: radius ? radius : configStyles.TEXTAREA.radius,
|
|
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
|
+
},
|
|
2370
|
+
onBlur: handleBlur,
|
|
2371
|
+
onChange: onChange,
|
|
2372
|
+
onFocus: handleFocus,
|
|
2373
|
+
placeholder: placeholder,
|
|
2374
|
+
onMouseEnter: handleMouseEnter,
|
|
2375
|
+
onMouseLeave: handleMouseLeave,
|
|
2376
|
+
value: maxLength ? value.length > maxLength ? value.substr(0, maxLength) : value : configStyles.TEXTAREA.maxLength ? value.length > configStyles.TEXTAREA.maxLength ? value.substr(0, configStyles.TEXTAREA.maxLength) : value : value
|
|
2377
|
+
}));
|
|
2378
|
+
};
|
|
2379
|
+
Textarea.propTypes = {
|
|
2380
|
+
size: PropTypes.string,
|
|
2381
|
+
label: PropTypes.string,
|
|
2382
|
+
width: PropTypes.string,
|
|
2383
|
+
height: PropTypes.string,
|
|
2384
|
+
resize: PropTypes.string,
|
|
2385
|
+
border: PropTypes.string,
|
|
2386
|
+
radius: PropTypes.string,
|
|
2387
|
+
required: PropTypes.bool,
|
|
2388
|
+
padding: PropTypes.string,
|
|
2389
|
+
minWidth: PropTypes.string,
|
|
2390
|
+
maxWidth: PropTypes.string,
|
|
2391
|
+
boxSizing: PropTypes.string,
|
|
2392
|
+
minHeight: PropTypes.string,
|
|
2393
|
+
maxHeight: PropTypes.string,
|
|
2394
|
+
maxLength: PropTypes.number,
|
|
2395
|
+
labelSize: PropTypes.string,
|
|
2396
|
+
labelColor: PropTypes.string,
|
|
2397
|
+
labelWeight: PropTypes.string,
|
|
2398
|
+
borderColor: PropTypes.string,
|
|
2399
|
+
placeholder: PropTypes.string,
|
|
2400
|
+
labelDisplay: PropTypes.string,
|
|
2401
|
+
backgroundColor: PropTypes.string,
|
|
2402
|
+
value: PropTypes.string.isRequired,
|
|
2403
|
+
borderFocusColor: PropTypes.string,
|
|
2404
|
+
borderHoverColor: PropTypes.string,
|
|
2405
|
+
onChange: PropTypes.func.isRequired,
|
|
2406
|
+
labelRequiredColor: PropTypes.string
|
|
2407
|
+
};
|
|
2408
|
+
|
|
2409
|
+
export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, Pagination, Radio, Select, SingleCheckbox, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
|