@xaypay/tui 0.0.24 → 0.0.26
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 +341 -4774
- package/dist/index.es.js +191 -108
- package/dist/index.js +191 -107
- package/package.json +1 -1
- package/src/assets/upload.svg +4 -0
- package/src/assets_old/icons/demo.html +15 -1
- package/src/assets_old/icons/fonts/icomoon.eot +0 -0
- package/src/assets_old/icons/fonts/icomoon.svg +5 -4
- package/src/assets_old/icons/fonts/icomoon.ttf +0 -0
- package/src/assets_old/icons/fonts/icomoon.woff +0 -0
- package/src/assets_old/icons/selection.json +1 -1
- package/src/assets_old/icons/style.css +8 -5
- package/src/components/autocomplate/autocomplate.module.css +15 -2
- package/src/components/autocomplate/index.js +1 -1
- package/src/components/button/button.module.css +1 -0
- package/src/components/file/file.module.css +77 -6
- package/src/components/file/index.js +16 -18
- package/src/components/input/index.js +1 -1
- package/src/components/input/input.module.css +10 -0
- package/src/components/modal/index.js +36 -9
- package/src/components/modal/modal.stories.js +24 -2
- package/src/components/pagination/index.js +3 -1
- package/src/components/select/select.module.css +1 -0
- package/src/components/typography/typography.module.css +6 -4
- package/src/index.js +2 -1
package/dist/index.es.js
CHANGED
|
@@ -45,9 +45,9 @@ function styleInject(css, ref) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
var css_248z$
|
|
49
|
-
var styles$
|
|
50
|
-
styleInject(css_248z$
|
|
48
|
+
var css_248z$c = ".button-module_btn__ffRtT{border:none;border-radius:6px;box-sizing:border-box;cursor:pointer;font-size:16px;line-height:20px;max-height:46px;min-height:46px;outline:none;overflow:hidden;padding:12px 20px;text-transform:none;transition:background-color .24s,color .24s}.button-module_btn__ffRtT.button-module_full-size__vmV2E{width:100%}.button-module_btn__ffRtT.button-module_content-size__f7JSE{width:auto}.button-module_btn__ffRtT.button-module_type-filled__BiyVo{background-color:#00236a;color:#fff}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:hover{background-color:#001745}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:disabled{background-color:#eee;color:#3c393e;pointer-events:none}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V{background-color:#fff;box-shadow:inset 0 0 0 2px #00236a}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:hover{background-color:#001745;color:#fff}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:disabled{box-shadow:inset 0 0 0 2px #eee;color:#3c393e;pointer-events:none}";
|
|
49
|
+
var styles$a = {"btn":"button-module_btn__ffRtT","full-size":"button-module_full-size__vmV2E","content-size":"button-module_content-size__f7JSE","size-default":"button-module_size-default__ydEgl","type-filled":"button-module_type-filled__BiyVo","with-icon":"button-module_with-icon__mfKU-","type-outline":"button-module_type-outline__RpZ2V"};
|
|
50
|
+
styleInject(css_248z$c);
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Primary UI component for user interaction
|
|
@@ -83,7 +83,7 @@ const Button = ({
|
|
|
83
83
|
outline,
|
|
84
84
|
...props
|
|
85
85
|
}) => {
|
|
86
|
-
const classProps = classnames(styles$
|
|
86
|
+
const classProps = classnames(styles$a.btn, styles$a[theme], styles$a[size], outline ? styles$a['type-outline'] : styles$a['type-filled'], className);
|
|
87
87
|
// className='btn type-outline size-default'
|
|
88
88
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
89
89
|
type: "button",
|
|
@@ -129,8 +129,8 @@ Button.defaultProps = {
|
|
|
129
129
|
outline: false
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
var css_248z$
|
|
133
|
-
styleInject(css_248z$
|
|
132
|
+
var css_248z$b = "h1{font-size:70px;line-height:70px}h1,h2{font-weight:400;text-transform:uppercase}h2{font-size:50px;line-height:50px}h3{font-size:38px;font-weight:400;line-height:38px}h3,h4{text-transform:uppercase}h4{font-size:24px;font-weight:600;line-height:24px}h5{font-size:20px;font-size:14px;line-height:20px;text-transform:uppercase}h5,p{font-weight:600;text-transform:none}p{font-size:16px;line-height:22px}p,span{color:#3c393e}span{font-size:12px;font-weight:500;line-height:16px;text-transform:none}i{font-family:icomoon;font-style:inherit}";
|
|
133
|
+
styleInject(css_248z$b);
|
|
134
134
|
|
|
135
135
|
const TypographyType = {
|
|
136
136
|
h1: 'h1',
|
|
@@ -181,9 +181,9 @@ Typography.defaultProps = {
|
|
|
181
181
|
variant: 'h1'
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
var css_248z$
|
|
185
|
-
var styles$
|
|
186
|
-
styleInject(css_248z$
|
|
184
|
+
var css_248z$a = ".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}";
|
|
185
|
+
var styles$9 = {"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"};
|
|
186
|
+
styleInject(css_248z$a);
|
|
187
187
|
|
|
188
188
|
const Autocomplate = ({
|
|
189
189
|
className,
|
|
@@ -200,7 +200,7 @@ const Autocomplate = ({
|
|
|
200
200
|
errorMesage,
|
|
201
201
|
...props
|
|
202
202
|
}) => {
|
|
203
|
-
classnames(styles$
|
|
203
|
+
classnames(styles$9.searchBox, className);
|
|
204
204
|
const parseSelectedOptionsData = jsonSelectedOptionsData ? JSON.parse(jsonSelectedOptionsData) : {
|
|
205
205
|
name: '',
|
|
206
206
|
id: ''
|
|
@@ -240,43 +240,43 @@ const Autocomplate = ({
|
|
|
240
240
|
if (showOptions && inputValue) {
|
|
241
241
|
if (parseOptionsData.length && inputValue.length >= searchCount) {
|
|
242
242
|
optionList = /*#__PURE__*/React.createElement("div", {
|
|
243
|
-
className: styles$
|
|
243
|
+
className: styles$9['autocomplate-content-bottom']
|
|
244
244
|
}, /*#__PURE__*/React.createElement("div", {
|
|
245
|
-
className: styles$
|
|
245
|
+
className: styles$9['autocomplate-content-bottom-inner']
|
|
246
246
|
}, parseOptionsData.map((optionName, index) => {
|
|
247
247
|
let className;
|
|
248
248
|
if (index === activeOption) {
|
|
249
249
|
className = "option-active";
|
|
250
250
|
}
|
|
251
251
|
return /*#__PURE__*/React.createElement("div", {
|
|
252
|
-
className: styles$
|
|
252
|
+
className: styles$9[className],
|
|
253
253
|
key: optionName[keyNames.id],
|
|
254
254
|
onClick: handleClick
|
|
255
255
|
}, /*#__PURE__*/React.createElement("div", {
|
|
256
256
|
id: optionName[keyNames.id],
|
|
257
|
-
className: styles$
|
|
257
|
+
className: styles$9['autocomplate-content-bottom-row']
|
|
258
258
|
}, optionName[keyNames.name]));
|
|
259
259
|
})));
|
|
260
260
|
} else {
|
|
261
261
|
optionList = /*#__PURE__*/React.createElement("div", {
|
|
262
|
-
className: styles$
|
|
262
|
+
className: styles$9['autocomplate-content-bottom']
|
|
263
263
|
}, /*#__PURE__*/React.createElement("div", {
|
|
264
|
-
className: styles$
|
|
264
|
+
className: styles$9['autocomplate-content-bottom-inner']
|
|
265
265
|
}, /*#__PURE__*/React.createElement("div", {
|
|
266
|
-
className: styles$
|
|
266
|
+
className: styles$9['autocomplate-content-bottom-row']
|
|
267
267
|
}, /*#__PURE__*/React.createElement("div", {
|
|
268
|
-
className: styles$
|
|
268
|
+
className: styles$9['no-option']
|
|
269
269
|
}, "No Option!"))));
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
return /*#__PURE__*/React.createElement(React.Fragment, null, label ? /*#__PURE__*/React.createElement("label", {
|
|
273
|
-
className: styles$
|
|
273
|
+
className: styles$9['autocomplate-title']
|
|
274
274
|
}, label) : "", /*#__PURE__*/React.createElement("div", {
|
|
275
|
-
className: styles$
|
|
275
|
+
className: styles$9['autocomplate-content']
|
|
276
276
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
277
277
|
id: inputId,
|
|
278
278
|
type: "text",
|
|
279
|
-
className: styles$
|
|
279
|
+
className: styles$9['autocomplate-content-top'],
|
|
280
280
|
required: required,
|
|
281
281
|
disabled: disabled,
|
|
282
282
|
onChange: handleChange,
|
|
@@ -286,7 +286,7 @@ const Autocomplate = ({
|
|
|
286
286
|
value: inputValue,
|
|
287
287
|
placeholder: placeHolder
|
|
288
288
|
}, props)), errorMesage ? /*#__PURE__*/React.createElement("span", {
|
|
289
|
-
className: styles$
|
|
289
|
+
className: styles$9.errorMessage
|
|
290
290
|
}, errorMesage) : null, optionList));
|
|
291
291
|
};
|
|
292
292
|
Autocomplate.propTypes = {
|
|
@@ -304,9 +304,9 @@ Autocomplate.propTypes = {
|
|
|
304
304
|
errorMesage: PropTypes.string
|
|
305
305
|
};
|
|
306
306
|
|
|
307
|
-
var css_248z$
|
|
308
|
-
var styles$
|
|
309
|
-
styleInject(css_248z$
|
|
307
|
+
var css_248z$9 = ".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-right:4px;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
|
+
var styles$8 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
|
|
309
|
+
styleInject(css_248z$9);
|
|
310
310
|
|
|
311
311
|
const Checkbox = ({
|
|
312
312
|
disabled,
|
|
@@ -321,7 +321,7 @@ const Checkbox = ({
|
|
|
321
321
|
onClick,
|
|
322
322
|
...props
|
|
323
323
|
}) => {
|
|
324
|
-
const classProps = classnames(styles$
|
|
324
|
+
const classProps = classnames(styles$8.checkbox, className);
|
|
325
325
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
326
326
|
const [data, setData] = useState(parseData);
|
|
327
327
|
const handleClick = e => {
|
|
@@ -346,7 +346,7 @@ const Checkbox = ({
|
|
|
346
346
|
};
|
|
347
347
|
return /*#__PURE__*/React.createElement(React.Fragment, null, data.map(element => {
|
|
348
348
|
return /*#__PURE__*/React.createElement("label", {
|
|
349
|
-
className: styles$
|
|
349
|
+
className: styles$8["checkbox-wrap"],
|
|
350
350
|
key: element.value
|
|
351
351
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
352
352
|
type: "checkbox",
|
|
@@ -358,9 +358,9 @@ const Checkbox = ({
|
|
|
358
358
|
onChange: handleChange,
|
|
359
359
|
onClick: handleClick
|
|
360
360
|
}, props)), /*#__PURE__*/React.createElement("span", {
|
|
361
|
-
className: styles$
|
|
361
|
+
className: styles$8["checkmark"]
|
|
362
362
|
}), element.label ? /*#__PURE__*/React.createElement("span", {
|
|
363
|
-
className: styles$
|
|
363
|
+
className: styles$8.labelRadio
|
|
364
364
|
}, label ? label : element.label) : "");
|
|
365
365
|
}));
|
|
366
366
|
};
|
|
@@ -381,21 +381,21 @@ Checkbox.defaultProps = {
|
|
|
381
381
|
jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
|
|
382
382
|
};
|
|
383
383
|
|
|
384
|
-
var css_248z$
|
|
385
|
-
styleInject(css_248z$
|
|
384
|
+
var css_248z$8 = "@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:url(fonts/icomoon.eot?pr3wo0);src:url(fonts/icomoon.eot?pr3wo0#iefix) format(\"embedded-opentype\"),url(fonts/icomoon.ttf?pr3wo0) format(\"truetype\"),url(fonts/icomoon.woff?pr3wo0) format(\"woff\"),url(fonts/icomoon.svg?pr3wo0#icomoon) format(\"svg\")}[class*=\" icon-\"],[class^=icon-]{speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.icon-delete:before{content:\"\\e90a\"}.icon-vector-up:before{content:\"\\e908\"}.icon-vector-down:before{content:\"\\e909\"}.icon-close:before{content:\"\\e907\"}.icon-icon-arrow-top:before{content:\"\\e905\"}.icon-icon-arrow-bottom:before{content:\"\\e906\"}.icon-arrow:before{content:\"\\e900\"}.icon-arrow-jump-next:before{content:\"\\e901\"}.icon-arrow-jump-back:before{content:\"\\e902\"}.icon-text:before{content:\"\\e903\"}.icon-arrow-back:before{content:\"\\e904\"}";
|
|
385
|
+
styleInject(css_248z$8);
|
|
386
386
|
|
|
387
387
|
/**
|
|
388
388
|
* Created by aleksanyan.tigran on 10/7/2022.
|
|
389
389
|
*/
|
|
390
390
|
const Icon = props => {
|
|
391
391
|
return /*#__PURE__*/React.createElement("i", {
|
|
392
|
-
className: css_248z$
|
|
392
|
+
className: css_248z$8[props.className]
|
|
393
393
|
});
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
var css_248z$
|
|
397
|
-
var styles$
|
|
398
|
-
styleInject(css_248z$
|
|
396
|
+
var css_248z$7 = ".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;text-transform:none;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{max-width:400px;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)}}";
|
|
397
|
+
var styles$7 = {"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"};
|
|
398
|
+
styleInject(css_248z$7);
|
|
399
399
|
|
|
400
400
|
const InputTypes = {
|
|
401
401
|
TEXT: "text",
|
|
@@ -439,11 +439,11 @@ const Input = ({
|
|
|
439
439
|
const regex = new RegExp(regexp);
|
|
440
440
|
eMessage = regex.test(inputValue) ? "" : regexpError;
|
|
441
441
|
}
|
|
442
|
-
const classProps = classnames(styles$
|
|
442
|
+
const classProps = classnames(styles$7.input, styles$7[size], eMessage != '' ? styles$7['error-message'] : "", className);
|
|
443
443
|
return /*#__PURE__*/React.createElement("div", {
|
|
444
|
-
className: styles$
|
|
444
|
+
className: styles$7['input-wrap']
|
|
445
445
|
}, label ? /*#__PURE__*/React.createElement("label", {
|
|
446
|
-
className: styles$
|
|
446
|
+
className: styles$7['input-title']
|
|
447
447
|
}, label) : "", /*#__PURE__*/React.createElement("input", _extends({}, props, {
|
|
448
448
|
type: type,
|
|
449
449
|
className: classProps,
|
|
@@ -454,7 +454,7 @@ const Input = ({
|
|
|
454
454
|
onChange: handleChange,
|
|
455
455
|
value: inputValue
|
|
456
456
|
})), eMessage ? /*#__PURE__*/React.createElement("span", {
|
|
457
|
-
className: styles$
|
|
457
|
+
className: styles$7.inputErrorMessages
|
|
458
458
|
}, eMessage) : "");
|
|
459
459
|
};
|
|
460
460
|
Input.propTypes = {
|
|
@@ -482,9 +482,9 @@ Input.defaultProps = {
|
|
|
482
482
|
value: ""
|
|
483
483
|
};
|
|
484
484
|
|
|
485
|
-
var css_248z$
|
|
486
|
-
var styles$
|
|
487
|
-
styleInject(css_248z$
|
|
485
|
+
var css_248z$6 = ".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}";
|
|
486
|
+
var styles$6 = {"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"};
|
|
487
|
+
styleInject(css_248z$6);
|
|
488
488
|
|
|
489
489
|
// import styles from "./pagination.module.scss";
|
|
490
490
|
|
|
@@ -569,7 +569,7 @@ const Pagination = ({
|
|
|
569
569
|
if (currentPageNumber === 0 || paginationRange.length < 2) {
|
|
570
570
|
return null;
|
|
571
571
|
}
|
|
572
|
-
const classProps = classnames(styles$
|
|
572
|
+
const classProps = classnames(styles$6.list, className ? className : styles$6["pagination-bar"]);
|
|
573
573
|
const onNext = () => {
|
|
574
574
|
onPageChange(currentPageNumber + 1);
|
|
575
575
|
};
|
|
@@ -586,7 +586,7 @@ const Pagination = ({
|
|
|
586
586
|
return /*#__PURE__*/React.createElement("ul", {
|
|
587
587
|
className: classProps
|
|
588
588
|
}, /*#__PURE__*/React.createElement("button", {
|
|
589
|
-
className: styles$
|
|
589
|
+
className: styles$6["pagination-btn"],
|
|
590
590
|
onClick: onPrevious,
|
|
591
591
|
disabled: currentPage === 1 ? true : false
|
|
592
592
|
}, /*#__PURE__*/React.createElement("i", {
|
|
@@ -596,13 +596,15 @@ const Pagination = ({
|
|
|
596
596
|
let currentPageIndex = paginationRange.indexOf(currentPageNumber);
|
|
597
597
|
return /*#__PURE__*/React.createElement("li", {
|
|
598
598
|
key: id,
|
|
599
|
-
className: classnames(styles$
|
|
599
|
+
className: classnames(styles$6['pagination-jump-next'], styles$6.listItem),
|
|
600
600
|
onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
|
|
601
601
|
disabled: currentPageIndex === 0 ? true : false
|
|
602
602
|
}, /*#__PURE__*/React.createElement("span", {
|
|
603
|
-
className: styles$
|
|
604
|
-
},
|
|
605
|
-
className:
|
|
603
|
+
className: styles$6['pagination-jump-next-txt']
|
|
604
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
605
|
+
className: "icon-text"
|
|
606
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
607
|
+
className: styles$6['pagination-jump-next-arrow']
|
|
606
608
|
}, /*#__PURE__*/React.createElement("i", {
|
|
607
609
|
className: "icon-arrow-jump-next"
|
|
608
610
|
})));
|
|
@@ -610,11 +612,11 @@ const Pagination = ({
|
|
|
610
612
|
return /*#__PURE__*/React.createElement("li", {
|
|
611
613
|
onClick: () => onPageChange(pageNumber),
|
|
612
614
|
key: id,
|
|
613
|
-
className: classnames(`${pageNumber === currentPageNumber ? styles$
|
|
615
|
+
className: classnames(`${pageNumber === currentPageNumber ? styles$6.selected : styles$6.listItem}`, styles$6['pagination-item'])
|
|
614
616
|
}, pageNumber);
|
|
615
617
|
}), /*#__PURE__*/React.createElement("button", {
|
|
616
618
|
onClick: onNext,
|
|
617
|
-
className: styles$
|
|
619
|
+
className: styles$6["pagination-btn"],
|
|
618
620
|
disabled: currentPageNumber === lastPage ? true : false
|
|
619
621
|
}, /*#__PURE__*/React.createElement("i", {
|
|
620
622
|
className: "icon-arrow"
|
|
@@ -632,9 +634,9 @@ Pagination.defaultProps = {
|
|
|
632
634
|
siblingCount: 2
|
|
633
635
|
};
|
|
634
636
|
|
|
635
|
-
var css_248z$
|
|
636
|
-
var styles$
|
|
637
|
-
styleInject(css_248z$
|
|
637
|
+
var css_248z$5 = ".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}";
|
|
638
|
+
var styles$5 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
|
|
639
|
+
styleInject(css_248z$5);
|
|
638
640
|
|
|
639
641
|
const Radio = ({
|
|
640
642
|
disabled,
|
|
@@ -648,11 +650,11 @@ const Radio = ({
|
|
|
648
650
|
keyNames,
|
|
649
651
|
...props
|
|
650
652
|
}) => {
|
|
651
|
-
const classProps = classnames(styles$
|
|
653
|
+
const classProps = classnames(styles$5.checkbox, className);
|
|
652
654
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
653
655
|
return /*#__PURE__*/React.createElement(React.Fragment, null, parseData.map((element, id) => {
|
|
654
656
|
return /*#__PURE__*/React.createElement("label", {
|
|
655
|
-
className: styles$
|
|
657
|
+
className: styles$5["radio-wrap"],
|
|
656
658
|
key: element.value
|
|
657
659
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
658
660
|
type: "radio",
|
|
@@ -663,9 +665,9 @@ const Radio = ({
|
|
|
663
665
|
value: value ? value : element.value,
|
|
664
666
|
name: name ? name : element.name
|
|
665
667
|
}, props)), /*#__PURE__*/React.createElement("span", {
|
|
666
|
-
className: styles$
|
|
668
|
+
className: styles$5["radio-checkmark"]
|
|
667
669
|
}), element.label ? /*#__PURE__*/React.createElement("span", {
|
|
668
|
-
className: styles$
|
|
670
|
+
className: styles$5.labelRadio
|
|
669
671
|
}, label ? label : element.label) : "");
|
|
670
672
|
}));
|
|
671
673
|
};
|
|
@@ -686,9 +688,9 @@ Radio.defaultProps = {
|
|
|
686
688
|
jsonData: '[{"value":"email", "name":"contact", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact", "label":"Phone", "id":"contactChoice2"}]'
|
|
687
689
|
};
|
|
688
690
|
|
|
689
|
-
var css_248z$
|
|
690
|
-
var styles$
|
|
691
|
-
styleInject(css_248z$
|
|
691
|
+
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}";
|
|
692
|
+
var styles$4 = {"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"};
|
|
693
|
+
styleInject(css_248z$4);
|
|
692
694
|
|
|
693
695
|
const Captcha = ({
|
|
694
696
|
onclick,
|
|
@@ -697,7 +699,7 @@ const Captcha = ({
|
|
|
697
699
|
const [data, setData] = useState("");
|
|
698
700
|
const [right, setRight] = useState(false);
|
|
699
701
|
let range = rangeCount <= 100 ? rangeCount : 0;
|
|
700
|
-
let rangeElement = document.getElementsByClassName(styles$
|
|
702
|
+
let rangeElement = document.getElementsByClassName(styles$4.range);
|
|
701
703
|
useEffect(() => {
|
|
702
704
|
for (let element of rangeElement) {
|
|
703
705
|
element.style.marginLeft = `${range + 60}%`;
|
|
@@ -706,9 +708,9 @@ const Captcha = ({
|
|
|
706
708
|
}, [range, data]);
|
|
707
709
|
function sliderInput(event) {
|
|
708
710
|
setData(rangeCount == event.target.value ? 'green' : 'indianred');
|
|
709
|
-
let selector = document.getElementsByClassName(styles$
|
|
710
|
-
let selectBtn = document.getElementsByClassName(styles$
|
|
711
|
-
let progressBar = document.getElementsByClassName(styles$
|
|
711
|
+
let selector = document.getElementsByClassName(styles$4.selector);
|
|
712
|
+
let selectBtn = document.getElementsByClassName(styles$4.selectBtn);
|
|
713
|
+
let progressBar = document.getElementsByClassName(styles$4.progressBar);
|
|
712
714
|
selector[0].style.left = event.target.value + '%';
|
|
713
715
|
progressBar[0].style.width = event.target.value + '%';
|
|
714
716
|
if (rangeCount == event.target.value) {
|
|
@@ -721,25 +723,25 @@ const Captcha = ({
|
|
|
721
723
|
setRight(rangeCount == e.target.value ? true : false);
|
|
722
724
|
}
|
|
723
725
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
724
|
-
className: styles$
|
|
726
|
+
className: styles$4.main
|
|
725
727
|
}, /*#__PURE__*/React.createElement("div", {
|
|
726
|
-
className: styles$
|
|
728
|
+
className: styles$4.range
|
|
727
729
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
728
730
|
className: "icon-vector-down"
|
|
729
731
|
})), /*#__PURE__*/React.createElement("input", {
|
|
730
732
|
type: "range",
|
|
731
|
-
className: styles$
|
|
733
|
+
className: styles$4.slider,
|
|
732
734
|
onClick: right ? onclick : null,
|
|
733
735
|
onInput: sliderInput,
|
|
734
736
|
onMouseUp: sliderChange
|
|
735
737
|
}), /*#__PURE__*/React.createElement("div", {
|
|
736
|
-
className: styles$
|
|
738
|
+
className: styles$4.selector
|
|
737
739
|
}, /*#__PURE__*/React.createElement("div", {
|
|
738
|
-
className: styles$
|
|
740
|
+
className: styles$4.selectBtn
|
|
739
741
|
})), /*#__PURE__*/React.createElement("div", {
|
|
740
|
-
className: styles$
|
|
742
|
+
className: styles$4.progressBar
|
|
741
743
|
}), /*#__PURE__*/React.createElement("div", {
|
|
742
|
-
className: styles$
|
|
744
|
+
className: styles$4.range
|
|
743
745
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
744
746
|
className: "icon-vector-up"
|
|
745
747
|
}))));
|
|
@@ -753,9 +755,9 @@ Captcha.defaultProps = {
|
|
|
753
755
|
onclick: undefined
|
|
754
756
|
};
|
|
755
757
|
|
|
756
|
-
var css_248z$
|
|
757
|
-
var styles$
|
|
758
|
-
styleInject(css_248z$
|
|
758
|
+
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}";
|
|
759
|
+
var styles$3 = {"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"};
|
|
760
|
+
styleInject(css_248z$3);
|
|
759
761
|
|
|
760
762
|
const Stepper = ({
|
|
761
763
|
className,
|
|
@@ -765,15 +767,15 @@ const Stepper = ({
|
|
|
765
767
|
}) => {
|
|
766
768
|
classnames(className);
|
|
767
769
|
return /*#__PURE__*/React.createElement("div", {
|
|
768
|
-
className: styles$
|
|
770
|
+
className: styles$3['stepper-container']
|
|
769
771
|
}, (() => {
|
|
770
772
|
let steppers = [];
|
|
771
773
|
for (let step = 1; step <= stepLength; step++) {
|
|
772
774
|
steppers.push( /*#__PURE__*/React.createElement("div", {
|
|
773
|
-
className: classnames(`${step <= activeSteps ? styles$
|
|
775
|
+
className: classnames(`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
|
|
774
776
|
key: step
|
|
775
777
|
}, /*#__PURE__*/React.createElement("div", {
|
|
776
|
-
className: classnames(`${step <= activeSteps ? styles$
|
|
778
|
+
className: classnames(`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
|
|
777
779
|
}, step <= activeSteps ? step : "")));
|
|
778
780
|
}
|
|
779
781
|
return steppers;
|
|
@@ -786,9 +788,9 @@ Stepper.propTypes = {
|
|
|
786
788
|
activeSteps: PropTypes.number
|
|
787
789
|
};
|
|
788
790
|
|
|
789
|
-
var css_248z$
|
|
790
|
-
var styles$
|
|
791
|
-
styleInject(css_248z$
|
|
791
|
+
var css_248z$2 = ".select-module_select-title__c8bR7{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:none}.select-module_select-content__GCMDX{display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{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}.select-module_select-content-top__Aw-fB.select-module_active__v2Dce{border-color:#00236a}.select-module_select-content-top__Aw-fB:hover{border-color:#3c393e}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .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}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes select-module_select-show__391hQ{to{max-height:400px}}.select-module_select-content-top-text__euajq{align-items:center;display:flex;flex:1;flex-direction:row;flex-wrap:nowrap}.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>i{color:#3c393e;font-size:8px}.select-module_select-content-bottom-row__eKq5L{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}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_select-content-bottom-row__eKq5L:hover{background:unset;color:#00236a}";
|
|
792
|
+
var styles$2 = {"select-title":"select-module_select-title__c8bR7","select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","active":"select-module_active__v2Dce","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-text":"select-module_select-content-top-text__euajq","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L"};
|
|
793
|
+
styleInject(css_248z$2);
|
|
792
794
|
|
|
793
795
|
const SelectTheme = {
|
|
794
796
|
DEFAULT: 'select-default',
|
|
@@ -825,34 +827,34 @@ const Select = ({
|
|
|
825
827
|
const parseSelectedData = selected.length !== 0 ? JSON.parse(selected) : {};
|
|
826
828
|
setNewSelected(parseSelectedData);
|
|
827
829
|
}, [selected]);
|
|
828
|
-
classnames(styles$
|
|
829
|
-
[styles$
|
|
830
|
-
[styles$
|
|
830
|
+
classnames(styles$2[theme], styles$2[size], {
|
|
831
|
+
[styles$2.disabled]: disabled,
|
|
832
|
+
[styles$2.required]: required
|
|
831
833
|
}, className);
|
|
832
834
|
return /*#__PURE__*/React.createElement("div", null, label ? /*#__PURE__*/React.createElement("label", {
|
|
833
|
-
className: styles$
|
|
835
|
+
className: styles$2['select-title']
|
|
834
836
|
}, label) : "", /*#__PURE__*/React.createElement("div", {
|
|
835
|
-
className: styles$
|
|
837
|
+
className: styles$2['select-wrap']
|
|
836
838
|
}, /*#__PURE__*/React.createElement("div", {
|
|
837
|
-
className: styles$
|
|
838
|
-
id: styles$
|
|
839
|
+
className: styles$2['select-content'],
|
|
840
|
+
id: styles$2.selector
|
|
839
841
|
}, /*#__PURE__*/React.createElement("div", {
|
|
840
|
-
className: styles$
|
|
842
|
+
className: styles$2['select-content-top'],
|
|
841
843
|
onClick: () => {
|
|
842
844
|
setOpened(!opened);
|
|
843
845
|
}
|
|
844
846
|
}, /*#__PURE__*/React.createElement("div", {
|
|
845
|
-
className: styles$
|
|
847
|
+
className: styles$2['select-content-top-text']
|
|
846
848
|
}, newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption), /*#__PURE__*/React.createElement("div", {
|
|
847
|
-
className: styles$
|
|
849
|
+
className: styles$2['select-content-top-icon']
|
|
848
850
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
849
851
|
className: opened ? 'icon-arrow-up' : 'icon-arrow-down'
|
|
850
852
|
}))), opened && !disabled ? /*#__PURE__*/React.createElement("div", {
|
|
851
|
-
className: styles$
|
|
853
|
+
className: styles$2['select-content-bottom']
|
|
852
854
|
}, /*#__PURE__*/React.createElement("div", {
|
|
853
|
-
className: styles$
|
|
855
|
+
className: styles$2['select-content-bottom-inner']
|
|
854
856
|
}, /*#__PURE__*/React.createElement("div", {
|
|
855
|
-
className: styles$
|
|
857
|
+
className: styles$2['select-content-bottom-row'],
|
|
856
858
|
onClick: () => {
|
|
857
859
|
if (!required && !selected) {
|
|
858
860
|
setNewSelected(defaultOption);
|
|
@@ -863,7 +865,7 @@ const Select = ({
|
|
|
863
865
|
}, defaultOption), options.map((option, i) => {
|
|
864
866
|
return /*#__PURE__*/React.createElement("div", {
|
|
865
867
|
key: i,
|
|
866
|
-
className: styles$
|
|
868
|
+
className: styles$2['select-content-bottom-row'],
|
|
867
869
|
disabled: true,
|
|
868
870
|
onClick: () => {
|
|
869
871
|
setNewSelected(option);
|
|
@@ -873,7 +875,7 @@ const Select = ({
|
|
|
873
875
|
defaultValue: option[keyNames.id]
|
|
874
876
|
}, option[keyNames.name]);
|
|
875
877
|
}))) : null)), eMessage ? /*#__PURE__*/React.createElement("span", {
|
|
876
|
-
className: styles$
|
|
878
|
+
className: styles$2.eMessage
|
|
877
879
|
}, eMessage) : null);
|
|
878
880
|
};
|
|
879
881
|
Select.propTypes = {
|
|
@@ -894,9 +896,9 @@ Select.defaultProps = {
|
|
|
894
896
|
size: 'medium'
|
|
895
897
|
};
|
|
896
898
|
|
|
897
|
-
var css_248z = ".file-module_file-
|
|
898
|
-
var styles = {"file-
|
|
899
|
-
styleInject(css_248z);
|
|
899
|
+
var css_248z$1 = ".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;display:flex;height:26px;justify-content:center;position:absolute;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}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}";
|
|
900
|
+
var styles$1 = {"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"};
|
|
901
|
+
styleInject(css_248z$1);
|
|
900
902
|
|
|
901
903
|
const File = ({
|
|
902
904
|
className,
|
|
@@ -932,8 +934,10 @@ const File = ({
|
|
|
932
934
|
setError('առավելագույն ծավալ');
|
|
933
935
|
}
|
|
934
936
|
}
|
|
935
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("
|
|
936
|
-
className: styles['file-
|
|
937
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
|
|
938
|
+
className: styles$1['file-form-title']
|
|
939
|
+
}, label), /*#__PURE__*/React.createElement("div", {
|
|
940
|
+
className: styles$1['file-form'],
|
|
937
941
|
onChange: e => {
|
|
938
942
|
console.log(e);
|
|
939
943
|
},
|
|
@@ -963,19 +967,35 @@ const File = ({
|
|
|
963
967
|
fileType(files[0]);
|
|
964
968
|
}
|
|
965
969
|
}
|
|
966
|
-
}), image ? /*#__PURE__*/React.createElement("div",
|
|
970
|
+
}), image ? /*#__PURE__*/React.createElement("div", {
|
|
971
|
+
className: styles$1['upload-file-content']
|
|
972
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
967
973
|
onClick: () => {
|
|
968
974
|
setFileName('no selected file');
|
|
969
975
|
setImage(null);
|
|
970
976
|
}
|
|
971
|
-
},
|
|
977
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
978
|
+
className: styles$1['delete-upload-file']
|
|
979
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
980
|
+
className: styles$1['delete-upload-icon']
|
|
981
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
982
|
+
className: "icon-arrow"
|
|
983
|
+
})))), /*#__PURE__*/React.createElement("img", {
|
|
972
984
|
src: image,
|
|
973
|
-
height:
|
|
985
|
+
height: 190,
|
|
974
986
|
alt: fileName
|
|
975
|
-
})) : /*#__PURE__*/React.createElement("div",
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
987
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
|
988
|
+
className: styles$1['file-form-inner-upload']
|
|
989
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
990
|
+
src: "../../assets/upload.svg",
|
|
991
|
+
alt: ""
|
|
992
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
993
|
+
className: styles$1['upload-info']
|
|
994
|
+
}, "\u054F\u0565\u0572\u0561\u0564\u0580\u0565\u056C \u0586\u0561\u0575\u056C\u0568 \u0561\u0575\u057D\u057F\u0565\u0572 \u056F\u0561\u0574 ", /*#__PURE__*/React.createElement("span", {
|
|
995
|
+
className: styles$1['upload-info-txt']
|
|
996
|
+
}, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React.createElement("span", {
|
|
997
|
+
className: styles$1['upload-info-size']
|
|
998
|
+
}, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 5\u0544\u0532 ( jpg, jpeg, png, pdf)"))), error ? /*#__PURE__*/React.createElement("span", {
|
|
979
999
|
style: {
|
|
980
1000
|
color: 'red'
|
|
981
1001
|
}
|
|
@@ -991,4 +1011,67 @@ File.propTypes = {
|
|
|
991
1011
|
defaultData: PropTypes.object
|
|
992
1012
|
};
|
|
993
1013
|
|
|
994
|
-
|
|
1014
|
+
var css_248z = ".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{box-shadow:0 1px 0 0 rgba(0,0,0,.08);box-sizing:border-box;display:flex;flex-direction:row;height:30px;padding-left: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;justify-content:center;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;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;max-width:300px;min-height:130px;position:absolute;right:0;top:110px;width:100%}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-30%,0)}to{opacity:1;transform:translateZ(0)}}";
|
|
1015
|
+
var styles = {"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"};
|
|
1016
|
+
styleInject(css_248z);
|
|
1017
|
+
|
|
1018
|
+
const Modal = ({
|
|
1019
|
+
setShow,
|
|
1020
|
+
headerText,
|
|
1021
|
+
className,
|
|
1022
|
+
type,
|
|
1023
|
+
data,
|
|
1024
|
+
selected
|
|
1025
|
+
}) => {
|
|
1026
|
+
classnames(styles.modal, className);
|
|
1027
|
+
const [select, setSelect] = useState(selected);
|
|
1028
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1029
|
+
className: styles["modal-wrap"]
|
|
1030
|
+
}, type == 'content' ? /*#__PURE__*/React.createElement("div", {
|
|
1031
|
+
className: styles["modal-content"]
|
|
1032
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1033
|
+
className: styles["modal-top"]
|
|
1034
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1035
|
+
className: styles['modal-title']
|
|
1036
|
+
}, "Title"), /*#__PURE__*/React.createElement("div", {
|
|
1037
|
+
className: styles["close-btn"],
|
|
1038
|
+
onClick: () => setShow(false)
|
|
1039
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1040
|
+
className: "icon-close"
|
|
1041
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
1042
|
+
className: styles["modal-section"]
|
|
1043
|
+
})) : type == 'images' ? /*#__PURE__*/React.createElement("div", {
|
|
1044
|
+
className: styles["modal-content"]
|
|
1045
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1046
|
+
className: styles["close-btn"],
|
|
1047
|
+
onClick: () => setShow(false)
|
|
1048
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1049
|
+
className: "icon-close"
|
|
1050
|
+
})), /*#__PURE__*/React.createElement("div", null, select > 1 ? /*#__PURE__*/React.createElement("h1", {
|
|
1051
|
+
onClick: () => setSelect(select - 1)
|
|
1052
|
+
}, "-") : null, data.map(elem => {
|
|
1053
|
+
if (select == elem.id) {
|
|
1054
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
1055
|
+
width: "600px",
|
|
1056
|
+
key: elem.id,
|
|
1057
|
+
src: elem.url
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
}), select < data.length ? /*#__PURE__*/React.createElement("h1", {
|
|
1061
|
+
onClick: () => {
|
|
1062
|
+
setSelect(select + 1);
|
|
1063
|
+
}
|
|
1064
|
+
}, "+") : null), /*#__PURE__*/React.createElement("div", {
|
|
1065
|
+
className: styles["modal-section"]
|
|
1066
|
+
})) : null);
|
|
1067
|
+
};
|
|
1068
|
+
Modal.propTypes = {
|
|
1069
|
+
setShow: PropTypes.func,
|
|
1070
|
+
headerText: PropTypes.string,
|
|
1071
|
+
className: PropTypes.string,
|
|
1072
|
+
type: PropTypes.string,
|
|
1073
|
+
selected: PropTypes.string,
|
|
1074
|
+
data: PropTypes.array
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
export { Autocomplate, Button, ButtonSize, ButtonTheme, ButtonType, Captcha, Checkbox, File, Input, InputSizes, InputTypes, Modal, Pagination, Radio, Select, SelectSize, SelectTheme, Stepper, Typography, TypographyType };
|