@xaypay/tui 0.0.32 → 0.0.34
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/.idea/workspace.xml +353 -194
- package/dist/index.es.js +12 -9
- package/dist/index.js +12 -9
- package/package.json +1 -1
- package/src/components/autocomplate/index.js +1 -1
- package/src/components/checkbox/checkbox.module.css +2 -0
- package/src/components/file/file.module.css +7 -2
- package/src/components/file/index.js +5 -0
- package/src/components/input/input.module.css +1 -2
- package/src/components/modal/modal.module.css +4 -4
- package/src/components/pagination/pagination.module.css +1 -0
- package/src/components/select/index.js +10 -8
- package/src/components/typography/typography.module.css +4 -4
package/dist/index.es.js
CHANGED
|
@@ -129,7 +129,7 @@ Button.defaultProps = {
|
|
|
129
129
|
outline: false
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
var css_248z$c = "h1{font-size:70px;line-height:
|
|
132
|
+
var css_248z$c = "h1{font-size:70px;line-height:78px}h1,h2{font-weight:400;text-transform:uppercase}h2{font-size:50px;line-height:56px}h3{font-size:38px;font-weight:400;line-height:44px;text-transform:uppercase}h4{font-size:24px;line-height:28px}h4,h5{font-weight:600;text-transform:uppercase}h5{font-size:20px;line-height:26px}h6{font-size:14px;font-weight:600;line-height:20px;text-transform:none}p{font-size:16px;line-height:22px}p,span{color:#3c393e;font-weight:500;text-transform:none}span{font-size:12px;line-height:16px}i{font-family:icomoon;font-style:inherit}";
|
|
133
133
|
styleInject(css_248z$c);
|
|
134
134
|
|
|
135
135
|
const TypographyType = {
|
|
@@ -266,7 +266,7 @@ const Autocomplate = ({
|
|
|
266
266
|
className: styles$a['autocomplate-content-bottom-row']
|
|
267
267
|
}, /*#__PURE__*/React.createElement("div", {
|
|
268
268
|
className: styles$a['no-option']
|
|
269
|
-
},
|
|
269
|
+
}, inputValue.length <= searchCount ? `առնվազն ${searchCount} նիշ` : 'no Option!'))));
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
return /*#__PURE__*/React.createElement(React.Fragment, null, label ? /*#__PURE__*/React.createElement("label", {
|
|
@@ -304,7 +304,7 @@ Autocomplate.propTypes = {
|
|
|
304
304
|
errorMesage: PropTypes.string
|
|
305
305
|
};
|
|
306
306
|
|
|
307
|
-
var css_248z$a = ".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;display:inline-block;height:14px;left:0;margin
|
|
307
|
+
var css_248z$a = ".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}";
|
|
308
308
|
var styles$9 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
|
|
309
309
|
styleInject(css_248z$a);
|
|
310
310
|
|
|
@@ -404,7 +404,7 @@ const Icon = props => {
|
|
|
404
404
|
});
|
|
405
405
|
};
|
|
406
406
|
|
|
407
|
-
var css_248z$8 = ".input-module_input-wrap__NunrE{position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;
|
|
407
|
+
var css_248z$8 = ".input-module_input-wrap__NunrE{max-width:400px;position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;transition:background-color .24s,color .24s}.input-module_input__-ipHD.input-module_full-size__38YG7{width:100%}.input-module_input__-ipHD.input-module_content-size__rZ5EA{width:auto}.input-module_input__-ipHD.input-module_size-medium__frTDq{min-height:46px;padding:12px 15px}.input-module_input__-ipHD:hover{box-shadow:inset 0 0 0 2px #3c393e}.input-module_input__-ipHD:active{box-shadow:inset 0 0 0 2px #00236a}.input-module_inputErrorMessages__hx490{animation:input-module_error-message-show__OrVSo .24s forwards;bottom:0;color:#e00;font-size:14px;left:0;line-height:19px;position:absolute;transform:scale3d(0,0,0);z-index:1}.input-module_labelInput__sUMKQ{color:#000}.input-module_input__-ipHD.input-module_state-disabled__402v0{background-color:#fbfbfb;pointer-events:none}.input-module_input__-ipHD.input-module_error-message__7NphF{box-shadow:inset 0 0 0 2px #e00}.input-module_input-title__giCsY{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:none}@keyframes input-module_error-message-show__OrVSo{to{bottom:-20px;transform:scaleX(1)}}";
|
|
408
408
|
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input":"input-module_input__-ipHD","full-size":"input-module_full-size__38YG7","content-size":"input-module_content-size__rZ5EA","size-medium":"input-module_size-medium__frTDq","with-icon":"input-module_with-icon__w3jTW","inputErrorMessages":"input-module_inputErrorMessages__hx490","error-message-show":"input-module_error-message-show__OrVSo","labelInput":"input-module_labelInput__sUMKQ","state-disabled":"input-module_state-disabled__402v0","error-message":"input-module_error-message__7NphF","input-title":"input-module_input-title__giCsY"};
|
|
409
409
|
styleInject(css_248z$8);
|
|
410
410
|
|
|
@@ -493,7 +493,7 @@ Input.defaultProps = {
|
|
|
493
493
|
value: ""
|
|
494
494
|
};
|
|
495
495
|
|
|
496
|
-
var css_248z$7 = ".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}.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:16px;line-height:22px;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}";
|
|
496
|
+
var css_248z$7 = ".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:16px;line-height:22px;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}";
|
|
497
497
|
var styles$7 = {"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"};
|
|
498
498
|
styleInject(css_248z$7);
|
|
499
499
|
|
|
@@ -883,7 +883,7 @@ const Select = ({
|
|
|
883
883
|
className: styles$3['select-content-top-text']
|
|
884
884
|
}, newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption), /*#__PURE__*/React.createElement("div", {
|
|
885
885
|
className: styles$3['select-content-top-icon']
|
|
886
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
886
|
+
}, Object.keys(newSelected).length > 0 && /*#__PURE__*/React.createElement("span", {
|
|
887
887
|
onClick: e => {
|
|
888
888
|
setNewSelected({});
|
|
889
889
|
onChange({});
|
|
@@ -929,8 +929,8 @@ Select.defaultProps = {
|
|
|
929
929
|
size: 'medium'
|
|
930
930
|
};
|
|
931
931
|
|
|
932
|
-
var css_248z$2 = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:4px 0;position:relative;width:100%}.file-module_file-form__l13d5:hover
|
|
933
|
-
var styles$2 = {"file-form":"file-module_file-form__l13d5","delete-upload-file":"file-module_delete-upload-file__DirSm","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","delete-upload-icon":"file-module_delete-upload-icon__PWN66","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB"};
|
|
932
|
+
var css_248z$2 = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:4px 0;position:relative;width:100%}.file-module_file-form__l13d5:hover+.file-module_delete-upload-file__DirSm{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}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-file__DirSm{background:rgba(60,57,62,.4);height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;position:fixed;right:10px;top:10px;width:26px;z-index:2}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn>img{display:block;max-width:400px}.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)}";
|
|
933
|
+
var styles$2 = {"file-form":"file-module_file-form__l13d5","delete-upload-file":"file-module_delete-upload-file__DirSm","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","delete-upload-icon":"file-module_delete-upload-icon__PWN66","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB","file-form-wrap":"file-module_file-form-wrap__qY--B"};
|
|
934
934
|
styleInject(css_248z$2);
|
|
935
935
|
|
|
936
936
|
const File = ({
|
|
@@ -946,6 +946,9 @@ const File = ({
|
|
|
946
946
|
}) => {
|
|
947
947
|
const pdfImageName = 'https://play-lh.googleusercontent.com/kIwlXqs28otssKK_9AKwdkB6gouex_U2WmtLshTACnwIJuvOqVvJEzewpzuYBXwXQQ';
|
|
948
948
|
const [image, setImage] = useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : pdfImageName : null);
|
|
949
|
+
useEffect(() => {
|
|
950
|
+
setImage(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : pdfImageName : null);
|
|
951
|
+
}, [defaultData]);
|
|
949
952
|
const [error, setError] = useState(errorMesage);
|
|
950
953
|
const [fileName, setFileName] = useState('no selected file');
|
|
951
954
|
function fileType(file) {
|
|
@@ -1044,7 +1047,7 @@ File.propTypes = {
|
|
|
1044
1047
|
defaultData: PropTypes.object
|
|
1045
1048
|
};
|
|
1046
1049
|
|
|
1047
|
-
var css_248z$1 = ".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{
|
|
1050
|
+
var css_248z$1 = ".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 24px;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}.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)}}";
|
|
1048
1051
|
var styles$1 = {"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"};
|
|
1049
1052
|
styleInject(css_248z$1);
|
|
1050
1053
|
|
package/dist/index.js
CHANGED
|
@@ -140,7 +140,7 @@ Button.defaultProps = {
|
|
|
140
140
|
outline: false
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
var css_248z$c = "h1{font-size:70px;line-height:
|
|
143
|
+
var css_248z$c = "h1{font-size:70px;line-height:78px}h1,h2{font-weight:400;text-transform:uppercase}h2{font-size:50px;line-height:56px}h3{font-size:38px;font-weight:400;line-height:44px;text-transform:uppercase}h4{font-size:24px;line-height:28px}h4,h5{font-weight:600;text-transform:uppercase}h5{font-size:20px;line-height:26px}h6{font-size:14px;font-weight:600;line-height:20px;text-transform:none}p{font-size:16px;line-height:22px}p,span{color:#3c393e;font-weight:500;text-transform:none}span{font-size:12px;line-height:16px}i{font-family:icomoon;font-style:inherit}";
|
|
144
144
|
styleInject(css_248z$c);
|
|
145
145
|
|
|
146
146
|
const TypographyType = {
|
|
@@ -277,7 +277,7 @@ const Autocomplate = ({
|
|
|
277
277
|
className: styles$a['autocomplate-content-bottom-row']
|
|
278
278
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
279
279
|
className: styles$a['no-option']
|
|
280
|
-
},
|
|
280
|
+
}, inputValue.length <= searchCount ? `առնվազն ${searchCount} նիշ` : 'no Option!'))));
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
@@ -315,7 +315,7 @@ Autocomplate.propTypes = {
|
|
|
315
315
|
errorMesage: PropTypes__default["default"].string
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
var css_248z$a = ".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;display:inline-block;height:14px;left:0;margin
|
|
318
|
+
var css_248z$a = ".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}";
|
|
319
319
|
var styles$9 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
|
|
320
320
|
styleInject(css_248z$a);
|
|
321
321
|
|
|
@@ -415,7 +415,7 @@ const Icon = props => {
|
|
|
415
415
|
});
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
var css_248z$8 = ".input-module_input-wrap__NunrE{position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;
|
|
418
|
+
var css_248z$8 = ".input-module_input-wrap__NunrE{max-width:400px;position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;transition:background-color .24s,color .24s}.input-module_input__-ipHD.input-module_full-size__38YG7{width:100%}.input-module_input__-ipHD.input-module_content-size__rZ5EA{width:auto}.input-module_input__-ipHD.input-module_size-medium__frTDq{min-height:46px;padding:12px 15px}.input-module_input__-ipHD:hover{box-shadow:inset 0 0 0 2px #3c393e}.input-module_input__-ipHD:active{box-shadow:inset 0 0 0 2px #00236a}.input-module_inputErrorMessages__hx490{animation:input-module_error-message-show__OrVSo .24s forwards;bottom:0;color:#e00;font-size:14px;left:0;line-height:19px;position:absolute;transform:scale3d(0,0,0);z-index:1}.input-module_labelInput__sUMKQ{color:#000}.input-module_input__-ipHD.input-module_state-disabled__402v0{background-color:#fbfbfb;pointer-events:none}.input-module_input__-ipHD.input-module_error-message__7NphF{box-shadow:inset 0 0 0 2px #e00}.input-module_input-title__giCsY{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:none}@keyframes input-module_error-message-show__OrVSo{to{bottom:-20px;transform:scaleX(1)}}";
|
|
419
419
|
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input":"input-module_input__-ipHD","full-size":"input-module_full-size__38YG7","content-size":"input-module_content-size__rZ5EA","size-medium":"input-module_size-medium__frTDq","with-icon":"input-module_with-icon__w3jTW","inputErrorMessages":"input-module_inputErrorMessages__hx490","error-message-show":"input-module_error-message-show__OrVSo","labelInput":"input-module_labelInput__sUMKQ","state-disabled":"input-module_state-disabled__402v0","error-message":"input-module_error-message__7NphF","input-title":"input-module_input-title__giCsY"};
|
|
420
420
|
styleInject(css_248z$8);
|
|
421
421
|
|
|
@@ -504,7 +504,7 @@ Input.defaultProps = {
|
|
|
504
504
|
value: ""
|
|
505
505
|
};
|
|
506
506
|
|
|
507
|
-
var css_248z$7 = ".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}.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:16px;line-height:22px;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}";
|
|
507
|
+
var css_248z$7 = ".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:16px;line-height:22px;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}";
|
|
508
508
|
var styles$7 = {"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"};
|
|
509
509
|
styleInject(css_248z$7);
|
|
510
510
|
|
|
@@ -894,7 +894,7 @@ const Select = ({
|
|
|
894
894
|
className: styles$3['select-content-top-text']
|
|
895
895
|
}, newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
896
896
|
className: styles$3['select-content-top-icon']
|
|
897
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
897
|
+
}, Object.keys(newSelected).length > 0 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
898
898
|
onClick: e => {
|
|
899
899
|
setNewSelected({});
|
|
900
900
|
onChange({});
|
|
@@ -940,8 +940,8 @@ Select.defaultProps = {
|
|
|
940
940
|
size: 'medium'
|
|
941
941
|
};
|
|
942
942
|
|
|
943
|
-
var css_248z$2 = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:4px 0;position:relative;width:100%}.file-module_file-form__l13d5:hover
|
|
944
|
-
var styles$2 = {"file-form":"file-module_file-form__l13d5","delete-upload-file":"file-module_delete-upload-file__DirSm","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","delete-upload-icon":"file-module_delete-upload-icon__PWN66","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB"};
|
|
943
|
+
var css_248z$2 = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:4px 0;position:relative;width:100%}.file-module_file-form__l13d5:hover+.file-module_delete-upload-file__DirSm{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}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-file__DirSm{background:rgba(60,57,62,.4);height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;position:fixed;right:10px;top:10px;width:26px;z-index:2}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn>img{display:block;max-width:400px}.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)}";
|
|
944
|
+
var styles$2 = {"file-form":"file-module_file-form__l13d5","delete-upload-file":"file-module_delete-upload-file__DirSm","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","delete-upload-icon":"file-module_delete-upload-icon__PWN66","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB","file-form-wrap":"file-module_file-form-wrap__qY--B"};
|
|
945
945
|
styleInject(css_248z$2);
|
|
946
946
|
|
|
947
947
|
const File = ({
|
|
@@ -957,6 +957,9 @@ const File = ({
|
|
|
957
957
|
}) => {
|
|
958
958
|
const pdfImageName = 'https://play-lh.googleusercontent.com/kIwlXqs28otssKK_9AKwdkB6gouex_U2WmtLshTACnwIJuvOqVvJEzewpzuYBXwXQQ';
|
|
959
959
|
const [image, setImage] = React.useState(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : pdfImageName : null);
|
|
960
|
+
React.useEffect(() => {
|
|
961
|
+
setImage(defaultData ? defaultData.type != 'application/pdf' ? defaultData.url : pdfImageName : null);
|
|
962
|
+
}, [defaultData]);
|
|
960
963
|
const [error, setError] = React.useState(errorMesage);
|
|
961
964
|
const [fileName, setFileName] = React.useState('no selected file');
|
|
962
965
|
function fileType(file) {
|
|
@@ -1055,7 +1058,7 @@ File.propTypes = {
|
|
|
1055
1058
|
defaultData: PropTypes__default["default"].object
|
|
1056
1059
|
};
|
|
1057
1060
|
|
|
1058
|
-
var css_248z$1 = ".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{
|
|
1061
|
+
var css_248z$1 = ".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 24px;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}.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)}}";
|
|
1059
1062
|
var styles$1 = {"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"};
|
|
1060
1063
|
styleInject(css_248z$1);
|
|
1061
1064
|
|
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ export const Autocomplate = ({
|
|
|
81
81
|
<div className={styles['autocomplate-content-bottom']}>
|
|
82
82
|
<div className={styles['autocomplate-content-bottom-inner']}>
|
|
83
83
|
<div className={styles['autocomplate-content-bottom-row']}>
|
|
84
|
-
<div className={styles['no-option']}>
|
|
84
|
+
<div className={styles['no-option']}>{inputValue.length <= searchCount ? `առնվազն ${searchCount} նիշ` : 'no Option!'}</div>
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
</div>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
padding: 4px 0;
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
}
|
|
15
|
-
.file-form:hover .delete-upload-file {
|
|
15
|
+
.file-form:hover + .delete-upload-file {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
}
|
|
18
18
|
.file-form-inner-upload {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
transition: opacity 240ms;
|
|
57
57
|
}
|
|
58
58
|
.delete-upload-icon {
|
|
59
|
-
position:
|
|
59
|
+
position: fixed;
|
|
60
60
|
display: flex;
|
|
61
61
|
align-items: center;
|
|
62
62
|
justify-content: center;
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
background: #ffffff;
|
|
68
68
|
border-radius: 6px;
|
|
69
69
|
z-index: 2;
|
|
70
|
+
cursor: pointer;
|
|
70
71
|
}
|
|
71
72
|
.delete-upload-icon > i {
|
|
72
73
|
color: #00236A;
|
|
@@ -80,4 +81,8 @@
|
|
|
80
81
|
margin-bottom: 10px;
|
|
81
82
|
max-width: 390px;
|
|
82
83
|
word-break: break-all;
|
|
84
|
+
}
|
|
85
|
+
.file-form-wrap {
|
|
86
|
+
position: relative;
|
|
87
|
+
transform: translate3d(0,0,0);
|
|
83
88
|
}
|
|
@@ -19,6 +19,11 @@ export const File = ({
|
|
|
19
19
|
const [image, setImage] = useState(defaultData ?
|
|
20
20
|
defaultData.type != 'application/pdf' ?
|
|
21
21
|
defaultData.url : pdfImageName : null);
|
|
22
|
+
useEffect(()=>{
|
|
23
|
+
setImage(defaultData ?
|
|
24
|
+
defaultData.type != 'application/pdf' ?
|
|
25
|
+
defaultData.url : pdfImageName : null);
|
|
26
|
+
},[defaultData]);
|
|
22
27
|
const [error, setError] = useState(errorMesage);
|
|
23
28
|
const [fileName, setFileName] = useState('no selected file');
|
|
24
29
|
function fileType(file) {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
.input-wrap {
|
|
16
16
|
position: relative;
|
|
17
|
+
max-width: 400px;
|
|
17
18
|
}
|
|
18
19
|
.input {
|
|
19
|
-
text-transform: none;
|
|
20
20
|
font-size: 16px;
|
|
21
21
|
line-height: 20px;
|
|
22
22
|
border-radius: 6px;
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
.input.size-medium {
|
|
42
42
|
min-height: 46px;
|
|
43
43
|
padding: 12px 15px;
|
|
44
|
-
max-width: 400px;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
.input.with-icon {
|
|
@@ -10,17 +10,16 @@
|
|
|
10
10
|
.modal-top {
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: row;
|
|
13
|
+
padding: 4px 10px 4px 24px;
|
|
13
14
|
width: 100%;
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
background: #fbfbfb;
|
|
16
|
+
height: 44px;
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
box-shadow: 0 1px 0 0 rgba(0,0,0,0.08);
|
|
18
18
|
}
|
|
19
19
|
.modal-title {
|
|
20
20
|
flex: 1 1;
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
23
|
font-size: 20px;
|
|
25
24
|
line-height: 24px;
|
|
26
25
|
font-weight: 500;
|
|
@@ -60,6 +59,7 @@
|
|
|
60
59
|
background: rgba(255,255,255,1);
|
|
61
60
|
border-radius: 8px;
|
|
62
61
|
animation: show-popup 240ms;
|
|
62
|
+
overflow: hidden;
|
|
63
63
|
}
|
|
64
64
|
@keyframes show-popup {
|
|
65
65
|
0% {
|
|
@@ -71,7 +71,7 @@ export const Select = ({
|
|
|
71
71
|
},
|
|
72
72
|
className
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
return (
|
|
76
76
|
<div>
|
|
77
77
|
{label ? <label className={styles['select-title']}>{label}</label> : ""}
|
|
@@ -85,13 +85,15 @@ export const Select = ({
|
|
|
85
85
|
>
|
|
86
86
|
<div className={styles['select-content-top-text']}>{newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption}</div>
|
|
87
87
|
<div className={styles['select-content-top-icon']}>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
{Object.keys(newSelected).length > 0 &&
|
|
89
|
+
<span onClick={
|
|
90
|
+
(e) => {
|
|
91
|
+
setNewSelected({})
|
|
92
|
+
onChange({});
|
|
93
|
+
e.stopPropagation()
|
|
94
|
+
}
|
|
95
|
+
}>X</span>
|
|
96
|
+
}
|
|
95
97
|
<i className={opened ? 'icon-arrow-up' : 'icon-arrow-down'}/>
|
|
96
98
|
</div>
|
|
97
99
|
</div>
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
h1 {
|
|
2
2
|
text-transform: uppercase;
|
|
3
3
|
font-size: 70px;
|
|
4
|
-
line-height:
|
|
4
|
+
line-height: 78px;
|
|
5
5
|
font-weight: 400;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
h2 {
|
|
9
9
|
text-transform: uppercase;
|
|
10
10
|
font-size: 50px;
|
|
11
|
-
line-height:
|
|
11
|
+
line-height: 56px;
|
|
12
12
|
font-weight: 400;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
h3 {
|
|
16
16
|
text-transform: uppercase;
|
|
17
17
|
font-size: 38px;
|
|
18
|
-
line-height:
|
|
18
|
+
line-height: 44px;
|
|
19
19
|
font-weight: 400;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
h4 {
|
|
23
23
|
text-transform: uppercase;
|
|
24
24
|
font-size: 24px;
|
|
25
|
-
line-height:
|
|
25
|
+
line-height: 28px;
|
|
26
26
|
font-weight: 600;
|
|
27
27
|
}
|
|
28
28
|
|