@xaypay/tui 0.0.25 → 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/dist/index.es.js +170 -107
- package/dist/index.js +170 -106
- package/package.json +1 -1
- package/src/components/modal/index.js +36 -9
- package/src/components/modal/modal.stories.js +24 -2
- package/src/index.js +2 -1
package/dist/index.js
CHANGED
|
@@ -56,9 +56,9 @@ function styleInject(css, ref) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
var css_248z$
|
|
60
|
-
var styles$
|
|
61
|
-
styleInject(css_248z$
|
|
59
|
+
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}";
|
|
60
|
+
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"};
|
|
61
|
+
styleInject(css_248z$c);
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* Primary UI component for user interaction
|
|
@@ -94,7 +94,7 @@ const Button = ({
|
|
|
94
94
|
outline,
|
|
95
95
|
...props
|
|
96
96
|
}) => {
|
|
97
|
-
const classProps = classnames__default["default"](styles$
|
|
97
|
+
const classProps = classnames__default["default"](styles$a.btn, styles$a[theme], styles$a[size], outline ? styles$a['type-outline'] : styles$a['type-filled'], className);
|
|
98
98
|
// className='btn type-outline size-default'
|
|
99
99
|
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
100
100
|
type: "button",
|
|
@@ -140,8 +140,8 @@ Button.defaultProps = {
|
|
|
140
140
|
outline: false
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
var css_248z$
|
|
144
|
-
styleInject(css_248z$
|
|
143
|
+
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}";
|
|
144
|
+
styleInject(css_248z$b);
|
|
145
145
|
|
|
146
146
|
const TypographyType = {
|
|
147
147
|
h1: 'h1',
|
|
@@ -192,9 +192,9 @@ Typography.defaultProps = {
|
|
|
192
192
|
variant: 'h1'
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
-
var css_248z$
|
|
196
|
-
var styles$
|
|
197
|
-
styleInject(css_248z$
|
|
195
|
+
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}";
|
|
196
|
+
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"};
|
|
197
|
+
styleInject(css_248z$a);
|
|
198
198
|
|
|
199
199
|
const Autocomplate = ({
|
|
200
200
|
className,
|
|
@@ -211,7 +211,7 @@ const Autocomplate = ({
|
|
|
211
211
|
errorMesage,
|
|
212
212
|
...props
|
|
213
213
|
}) => {
|
|
214
|
-
classnames__default["default"](styles$
|
|
214
|
+
classnames__default["default"](styles$9.searchBox, className);
|
|
215
215
|
const parseSelectedOptionsData = jsonSelectedOptionsData ? JSON.parse(jsonSelectedOptionsData) : {
|
|
216
216
|
name: '',
|
|
217
217
|
id: ''
|
|
@@ -251,43 +251,43 @@ const Autocomplate = ({
|
|
|
251
251
|
if (showOptions && inputValue) {
|
|
252
252
|
if (parseOptionsData.length && inputValue.length >= searchCount) {
|
|
253
253
|
optionList = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
254
|
-
className: styles$
|
|
254
|
+
className: styles$9['autocomplate-content-bottom']
|
|
255
255
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
256
|
-
className: styles$
|
|
256
|
+
className: styles$9['autocomplate-content-bottom-inner']
|
|
257
257
|
}, parseOptionsData.map((optionName, index) => {
|
|
258
258
|
let className;
|
|
259
259
|
if (index === activeOption) {
|
|
260
260
|
className = "option-active";
|
|
261
261
|
}
|
|
262
262
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
263
|
-
className: styles$
|
|
263
|
+
className: styles$9[className],
|
|
264
264
|
key: optionName[keyNames.id],
|
|
265
265
|
onClick: handleClick
|
|
266
266
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
267
267
|
id: optionName[keyNames.id],
|
|
268
|
-
className: styles$
|
|
268
|
+
className: styles$9['autocomplate-content-bottom-row']
|
|
269
269
|
}, optionName[keyNames.name]));
|
|
270
270
|
})));
|
|
271
271
|
} else {
|
|
272
272
|
optionList = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
273
|
-
className: styles$
|
|
273
|
+
className: styles$9['autocomplate-content-bottom']
|
|
274
274
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
275
|
-
className: styles$
|
|
275
|
+
className: styles$9['autocomplate-content-bottom-inner']
|
|
276
276
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
277
|
-
className: styles$
|
|
277
|
+
className: styles$9['autocomplate-content-bottom-row']
|
|
278
278
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
279
|
-
className: styles$
|
|
279
|
+
className: styles$9['no-option']
|
|
280
280
|
}, "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", {
|
|
284
|
-
className: styles$
|
|
284
|
+
className: styles$9['autocomplate-title']
|
|
285
285
|
}, label) : "", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
286
|
-
className: styles$
|
|
286
|
+
className: styles$9['autocomplate-content']
|
|
287
287
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
288
288
|
id: inputId,
|
|
289
289
|
type: "text",
|
|
290
|
-
className: styles$
|
|
290
|
+
className: styles$9['autocomplate-content-top'],
|
|
291
291
|
required: required,
|
|
292
292
|
disabled: disabled,
|
|
293
293
|
onChange: handleChange,
|
|
@@ -297,7 +297,7 @@ const Autocomplate = ({
|
|
|
297
297
|
value: inputValue,
|
|
298
298
|
placeholder: placeHolder
|
|
299
299
|
}, props)), errorMesage ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
300
|
-
className: styles$
|
|
300
|
+
className: styles$9.errorMessage
|
|
301
301
|
}, errorMesage) : null, optionList));
|
|
302
302
|
};
|
|
303
303
|
Autocomplate.propTypes = {
|
|
@@ -315,9 +315,9 @@ Autocomplate.propTypes = {
|
|
|
315
315
|
errorMesage: PropTypes__default["default"].string
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
var css_248z$
|
|
319
|
-
var styles$
|
|
320
|
-
styleInject(css_248z$
|
|
318
|
+
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}";
|
|
319
|
+
var styles$8 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
|
|
320
|
+
styleInject(css_248z$9);
|
|
321
321
|
|
|
322
322
|
const Checkbox = ({
|
|
323
323
|
disabled,
|
|
@@ -332,7 +332,7 @@ const Checkbox = ({
|
|
|
332
332
|
onClick,
|
|
333
333
|
...props
|
|
334
334
|
}) => {
|
|
335
|
-
const classProps = classnames__default["default"](styles$
|
|
335
|
+
const classProps = classnames__default["default"](styles$8.checkbox, className);
|
|
336
336
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
337
337
|
const [data, setData] = React.useState(parseData);
|
|
338
338
|
const handleClick = e => {
|
|
@@ -357,7 +357,7 @@ const Checkbox = ({
|
|
|
357
357
|
};
|
|
358
358
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, data.map(element => {
|
|
359
359
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
360
|
-
className: styles$
|
|
360
|
+
className: styles$8["checkbox-wrap"],
|
|
361
361
|
key: element.value
|
|
362
362
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
363
363
|
type: "checkbox",
|
|
@@ -369,9 +369,9 @@ const Checkbox = ({
|
|
|
369
369
|
onChange: handleChange,
|
|
370
370
|
onClick: handleClick
|
|
371
371
|
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
372
|
-
className: styles$
|
|
372
|
+
className: styles$8["checkmark"]
|
|
373
373
|
}), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
374
|
-
className: styles$
|
|
374
|
+
className: styles$8.labelRadio
|
|
375
375
|
}, label ? label : element.label) : "");
|
|
376
376
|
}));
|
|
377
377
|
};
|
|
@@ -392,21 +392,21 @@ Checkbox.defaultProps = {
|
|
|
392
392
|
jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
|
|
393
393
|
};
|
|
394
394
|
|
|
395
|
-
var css_248z$
|
|
396
|
-
styleInject(css_248z$
|
|
395
|
+
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\"}";
|
|
396
|
+
styleInject(css_248z$8);
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
399
|
* Created by aleksanyan.tigran on 10/7/2022.
|
|
400
400
|
*/
|
|
401
401
|
const Icon = props => {
|
|
402
402
|
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
403
|
-
className: css_248z$
|
|
403
|
+
className: css_248z$8[props.className]
|
|
404
404
|
});
|
|
405
405
|
};
|
|
406
406
|
|
|
407
|
-
var css_248z$
|
|
408
|
-
var styles$
|
|
409
|
-
styleInject(css_248z$
|
|
407
|
+
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)}}";
|
|
408
|
+
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"};
|
|
409
|
+
styleInject(css_248z$7);
|
|
410
410
|
|
|
411
411
|
const InputTypes = {
|
|
412
412
|
TEXT: "text",
|
|
@@ -450,11 +450,11 @@ const Input = ({
|
|
|
450
450
|
const regex = new RegExp(regexp);
|
|
451
451
|
eMessage = regex.test(inputValue) ? "" : regexpError;
|
|
452
452
|
}
|
|
453
|
-
const classProps = classnames__default["default"](styles$
|
|
453
|
+
const classProps = classnames__default["default"](styles$7.input, styles$7[size], eMessage != '' ? styles$7['error-message'] : "", className);
|
|
454
454
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
455
|
-
className: styles$
|
|
455
|
+
className: styles$7['input-wrap']
|
|
456
456
|
}, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
457
|
-
className: styles$
|
|
457
|
+
className: styles$7['input-title']
|
|
458
458
|
}, label) : "", /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
|
|
459
459
|
type: type,
|
|
460
460
|
className: classProps,
|
|
@@ -465,7 +465,7 @@ const Input = ({
|
|
|
465
465
|
onChange: handleChange,
|
|
466
466
|
value: inputValue
|
|
467
467
|
})), eMessage ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
468
|
-
className: styles$
|
|
468
|
+
className: styles$7.inputErrorMessages
|
|
469
469
|
}, eMessage) : "");
|
|
470
470
|
};
|
|
471
471
|
Input.propTypes = {
|
|
@@ -493,9 +493,9 @@ Input.defaultProps = {
|
|
|
493
493
|
value: ""
|
|
494
494
|
};
|
|
495
495
|
|
|
496
|
-
var css_248z$
|
|
497
|
-
var styles$
|
|
498
|
-
styleInject(css_248z$
|
|
496
|
+
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}";
|
|
497
|
+
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"};
|
|
498
|
+
styleInject(css_248z$6);
|
|
499
499
|
|
|
500
500
|
// import styles from "./pagination.module.scss";
|
|
501
501
|
|
|
@@ -580,7 +580,7 @@ const Pagination = ({
|
|
|
580
580
|
if (currentPageNumber === 0 || paginationRange.length < 2) {
|
|
581
581
|
return null;
|
|
582
582
|
}
|
|
583
|
-
const classProps = classnames__default["default"](styles$
|
|
583
|
+
const classProps = classnames__default["default"](styles$6.list, className ? className : styles$6["pagination-bar"]);
|
|
584
584
|
const onNext = () => {
|
|
585
585
|
onPageChange(currentPageNumber + 1);
|
|
586
586
|
};
|
|
@@ -597,7 +597,7 @@ const Pagination = ({
|
|
|
597
597
|
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
598
598
|
className: classProps
|
|
599
599
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
600
|
-
className: styles$
|
|
600
|
+
className: styles$6["pagination-btn"],
|
|
601
601
|
onClick: onPrevious,
|
|
602
602
|
disabled: currentPage === 1 ? true : false
|
|
603
603
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -607,15 +607,15 @@ const Pagination = ({
|
|
|
607
607
|
let currentPageIndex = paginationRange.indexOf(currentPageNumber);
|
|
608
608
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
609
609
|
key: id,
|
|
610
|
-
className: classnames__default["default"](styles$
|
|
610
|
+
className: classnames__default["default"](styles$6['pagination-jump-next'], styles$6.listItem),
|
|
611
611
|
onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
|
|
612
612
|
disabled: currentPageIndex === 0 ? true : false
|
|
613
613
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
614
|
-
className: styles$
|
|
614
|
+
className: styles$6['pagination-jump-next-txt']
|
|
615
615
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
616
616
|
className: "icon-text"
|
|
617
617
|
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
618
|
-
className: styles$
|
|
618
|
+
className: styles$6['pagination-jump-next-arrow']
|
|
619
619
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
620
620
|
className: "icon-arrow-jump-next"
|
|
621
621
|
})));
|
|
@@ -623,11 +623,11 @@ const Pagination = ({
|
|
|
623
623
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
624
624
|
onClick: () => onPageChange(pageNumber),
|
|
625
625
|
key: id,
|
|
626
|
-
className: classnames__default["default"](`${pageNumber === currentPageNumber ? styles$
|
|
626
|
+
className: classnames__default["default"](`${pageNumber === currentPageNumber ? styles$6.selected : styles$6.listItem}`, styles$6['pagination-item'])
|
|
627
627
|
}, pageNumber);
|
|
628
628
|
}), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
629
629
|
onClick: onNext,
|
|
630
|
-
className: styles$
|
|
630
|
+
className: styles$6["pagination-btn"],
|
|
631
631
|
disabled: currentPageNumber === lastPage ? true : false
|
|
632
632
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
633
633
|
className: "icon-arrow"
|
|
@@ -645,9 +645,9 @@ Pagination.defaultProps = {
|
|
|
645
645
|
siblingCount: 2
|
|
646
646
|
};
|
|
647
647
|
|
|
648
|
-
var css_248z$
|
|
649
|
-
var styles$
|
|
650
|
-
styleInject(css_248z$
|
|
648
|
+
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}";
|
|
649
|
+
var styles$5 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
|
|
650
|
+
styleInject(css_248z$5);
|
|
651
651
|
|
|
652
652
|
const Radio = ({
|
|
653
653
|
disabled,
|
|
@@ -661,11 +661,11 @@ const Radio = ({
|
|
|
661
661
|
keyNames,
|
|
662
662
|
...props
|
|
663
663
|
}) => {
|
|
664
|
-
const classProps = classnames__default["default"](styles$
|
|
664
|
+
const classProps = classnames__default["default"](styles$5.checkbox, className);
|
|
665
665
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
666
666
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, parseData.map((element, id) => {
|
|
667
667
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
668
|
-
className: styles$
|
|
668
|
+
className: styles$5["radio-wrap"],
|
|
669
669
|
key: element.value
|
|
670
670
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
671
671
|
type: "radio",
|
|
@@ -676,9 +676,9 @@ const Radio = ({
|
|
|
676
676
|
value: value ? value : element.value,
|
|
677
677
|
name: name ? name : element.name
|
|
678
678
|
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
679
|
-
className: styles$
|
|
679
|
+
className: styles$5["radio-checkmark"]
|
|
680
680
|
}), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
681
|
-
className: styles$
|
|
681
|
+
className: styles$5.labelRadio
|
|
682
682
|
}, label ? label : element.label) : "");
|
|
683
683
|
}));
|
|
684
684
|
};
|
|
@@ -699,9 +699,9 @@ Radio.defaultProps = {
|
|
|
699
699
|
jsonData: '[{"value":"email", "name":"contact", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact", "label":"Phone", "id":"contactChoice2"}]'
|
|
700
700
|
};
|
|
701
701
|
|
|
702
|
-
var css_248z$
|
|
703
|
-
var styles$
|
|
704
|
-
styleInject(css_248z$
|
|
702
|
+
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}";
|
|
703
|
+
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"};
|
|
704
|
+
styleInject(css_248z$4);
|
|
705
705
|
|
|
706
706
|
const Captcha = ({
|
|
707
707
|
onclick,
|
|
@@ -710,7 +710,7 @@ const Captcha = ({
|
|
|
710
710
|
const [data, setData] = React.useState("");
|
|
711
711
|
const [right, setRight] = React.useState(false);
|
|
712
712
|
let range = rangeCount <= 100 ? rangeCount : 0;
|
|
713
|
-
let rangeElement = document.getElementsByClassName(styles$
|
|
713
|
+
let rangeElement = document.getElementsByClassName(styles$4.range);
|
|
714
714
|
React.useEffect(() => {
|
|
715
715
|
for (let element of rangeElement) {
|
|
716
716
|
element.style.marginLeft = `${range + 60}%`;
|
|
@@ -719,9 +719,9 @@ const Captcha = ({
|
|
|
719
719
|
}, [range, data]);
|
|
720
720
|
function sliderInput(event) {
|
|
721
721
|
setData(rangeCount == event.target.value ? 'green' : 'indianred');
|
|
722
|
-
let selector = document.getElementsByClassName(styles$
|
|
723
|
-
let selectBtn = document.getElementsByClassName(styles$
|
|
724
|
-
let progressBar = document.getElementsByClassName(styles$
|
|
722
|
+
let selector = document.getElementsByClassName(styles$4.selector);
|
|
723
|
+
let selectBtn = document.getElementsByClassName(styles$4.selectBtn);
|
|
724
|
+
let progressBar = document.getElementsByClassName(styles$4.progressBar);
|
|
725
725
|
selector[0].style.left = event.target.value + '%';
|
|
726
726
|
progressBar[0].style.width = event.target.value + '%';
|
|
727
727
|
if (rangeCount == event.target.value) {
|
|
@@ -734,25 +734,25 @@ const Captcha = ({
|
|
|
734
734
|
setRight(rangeCount == e.target.value ? true : false);
|
|
735
735
|
}
|
|
736
736
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
737
|
-
className: styles$
|
|
737
|
+
className: styles$4.main
|
|
738
738
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
739
|
-
className: styles$
|
|
739
|
+
className: styles$4.range
|
|
740
740
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
741
741
|
className: "icon-vector-down"
|
|
742
742
|
})), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
743
743
|
type: "range",
|
|
744
|
-
className: styles$
|
|
744
|
+
className: styles$4.slider,
|
|
745
745
|
onClick: right ? onclick : null,
|
|
746
746
|
onInput: sliderInput,
|
|
747
747
|
onMouseUp: sliderChange
|
|
748
748
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
749
|
-
className: styles$
|
|
749
|
+
className: styles$4.selector
|
|
750
750
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
751
|
-
className: styles$
|
|
751
|
+
className: styles$4.selectBtn
|
|
752
752
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
753
|
-
className: styles$
|
|
753
|
+
className: styles$4.progressBar
|
|
754
754
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
755
|
-
className: styles$
|
|
755
|
+
className: styles$4.range
|
|
756
756
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
757
757
|
className: "icon-vector-up"
|
|
758
758
|
}))));
|
|
@@ -766,9 +766,9 @@ Captcha.defaultProps = {
|
|
|
766
766
|
onclick: undefined
|
|
767
767
|
};
|
|
768
768
|
|
|
769
|
-
var css_248z$
|
|
770
|
-
var styles$
|
|
771
|
-
styleInject(css_248z$
|
|
769
|
+
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}";
|
|
770
|
+
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"};
|
|
771
|
+
styleInject(css_248z$3);
|
|
772
772
|
|
|
773
773
|
const Stepper = ({
|
|
774
774
|
className,
|
|
@@ -778,15 +778,15 @@ const Stepper = ({
|
|
|
778
778
|
}) => {
|
|
779
779
|
classnames__default["default"](className);
|
|
780
780
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
781
|
-
className: styles$
|
|
781
|
+
className: styles$3['stepper-container']
|
|
782
782
|
}, (() => {
|
|
783
783
|
let steppers = [];
|
|
784
784
|
for (let step = 1; step <= stepLength; step++) {
|
|
785
785
|
steppers.push( /*#__PURE__*/React__default["default"].createElement("div", {
|
|
786
|
-
className: classnames__default["default"](`${step <= activeSteps ? styles$
|
|
786
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
|
|
787
787
|
key: step
|
|
788
788
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
789
|
-
className: classnames__default["default"](`${step <= activeSteps ? styles$
|
|
789
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
|
|
790
790
|
}, step <= activeSteps ? step : "")));
|
|
791
791
|
}
|
|
792
792
|
return steppers;
|
|
@@ -799,9 +799,9 @@ Stepper.propTypes = {
|
|
|
799
799
|
activeSteps: PropTypes__default["default"].number
|
|
800
800
|
};
|
|
801
801
|
|
|
802
|
-
var css_248z$
|
|
803
|
-
var styles$
|
|
804
|
-
styleInject(css_248z$
|
|
802
|
+
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}";
|
|
803
|
+
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"};
|
|
804
|
+
styleInject(css_248z$2);
|
|
805
805
|
|
|
806
806
|
const SelectTheme = {
|
|
807
807
|
DEFAULT: 'select-default',
|
|
@@ -838,34 +838,34 @@ const Select = ({
|
|
|
838
838
|
const parseSelectedData = selected.length !== 0 ? JSON.parse(selected) : {};
|
|
839
839
|
setNewSelected(parseSelectedData);
|
|
840
840
|
}, [selected]);
|
|
841
|
-
classnames__default["default"](styles$
|
|
842
|
-
[styles$
|
|
843
|
-
[styles$
|
|
841
|
+
classnames__default["default"](styles$2[theme], styles$2[size], {
|
|
842
|
+
[styles$2.disabled]: disabled,
|
|
843
|
+
[styles$2.required]: required
|
|
844
844
|
}, className);
|
|
845
845
|
return /*#__PURE__*/React__default["default"].createElement("div", null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
846
|
-
className: styles$
|
|
846
|
+
className: styles$2['select-title']
|
|
847
847
|
}, label) : "", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
848
|
-
className: styles$
|
|
848
|
+
className: styles$2['select-wrap']
|
|
849
849
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
850
|
-
className: styles$
|
|
851
|
-
id: styles$
|
|
850
|
+
className: styles$2['select-content'],
|
|
851
|
+
id: styles$2.selector
|
|
852
852
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
853
|
-
className: styles$
|
|
853
|
+
className: styles$2['select-content-top'],
|
|
854
854
|
onClick: () => {
|
|
855
855
|
setOpened(!opened);
|
|
856
856
|
}
|
|
857
857
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
858
|
-
className: styles$
|
|
858
|
+
className: styles$2['select-content-top-text']
|
|
859
859
|
}, newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
860
|
-
className: styles$
|
|
860
|
+
className: styles$2['select-content-top-icon']
|
|
861
861
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
862
862
|
className: opened ? 'icon-arrow-up' : 'icon-arrow-down'
|
|
863
863
|
}))), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
864
|
-
className: styles$
|
|
864
|
+
className: styles$2['select-content-bottom']
|
|
865
865
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
866
|
-
className: styles$
|
|
866
|
+
className: styles$2['select-content-bottom-inner']
|
|
867
867
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
868
|
-
className: styles$
|
|
868
|
+
className: styles$2['select-content-bottom-row'],
|
|
869
869
|
onClick: () => {
|
|
870
870
|
if (!required && !selected) {
|
|
871
871
|
setNewSelected(defaultOption);
|
|
@@ -876,7 +876,7 @@ const Select = ({
|
|
|
876
876
|
}, defaultOption), options.map((option, i) => {
|
|
877
877
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
878
878
|
key: i,
|
|
879
|
-
className: styles$
|
|
879
|
+
className: styles$2['select-content-bottom-row'],
|
|
880
880
|
disabled: true,
|
|
881
881
|
onClick: () => {
|
|
882
882
|
setNewSelected(option);
|
|
@@ -886,7 +886,7 @@ const Select = ({
|
|
|
886
886
|
defaultValue: option[keyNames.id]
|
|
887
887
|
}, option[keyNames.name]);
|
|
888
888
|
}))) : null)), eMessage ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
889
|
-
className: styles$
|
|
889
|
+
className: styles$2.eMessage
|
|
890
890
|
}, eMessage) : null);
|
|
891
891
|
};
|
|
892
892
|
Select.propTypes = {
|
|
@@ -907,9 +907,9 @@ Select.defaultProps = {
|
|
|
907
907
|
size: 'medium'
|
|
908
908
|
};
|
|
909
909
|
|
|
910
|
-
var css_248z = ".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}";
|
|
911
|
-
var styles = {"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"};
|
|
912
|
-
styleInject(css_248z);
|
|
910
|
+
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}";
|
|
911
|
+
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"};
|
|
912
|
+
styleInject(css_248z$1);
|
|
913
913
|
|
|
914
914
|
const File = ({
|
|
915
915
|
className,
|
|
@@ -946,9 +946,9 @@ const File = ({
|
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
949
|
-
className: styles['file-form-title']
|
|
949
|
+
className: styles$1['file-form-title']
|
|
950
950
|
}, label), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
951
|
-
className: styles['file-form'],
|
|
951
|
+
className: styles$1['file-form'],
|
|
952
952
|
onChange: e => {
|
|
953
953
|
console.log(e);
|
|
954
954
|
},
|
|
@@ -979,16 +979,16 @@ const File = ({
|
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
}), image ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
982
|
-
className: styles['upload-file-content']
|
|
982
|
+
className: styles$1['upload-file-content']
|
|
983
983
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
984
984
|
onClick: () => {
|
|
985
985
|
setFileName('no selected file');
|
|
986
986
|
setImage(null);
|
|
987
987
|
}
|
|
988
988
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
989
|
-
className: styles['delete-upload-file']
|
|
989
|
+
className: styles$1['delete-upload-file']
|
|
990
990
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
991
|
-
className: styles['delete-upload-icon']
|
|
991
|
+
className: styles$1['delete-upload-icon']
|
|
992
992
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
993
993
|
className: "icon-arrow"
|
|
994
994
|
})))), /*#__PURE__*/React__default["default"].createElement("img", {
|
|
@@ -996,16 +996,16 @@ const File = ({
|
|
|
996
996
|
height: 190,
|
|
997
997
|
alt: fileName
|
|
998
998
|
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
999
|
-
className: styles['file-form-inner-upload']
|
|
999
|
+
className: styles$1['file-form-inner-upload']
|
|
1000
1000
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
1001
1001
|
src: "../../assets/upload.svg",
|
|
1002
1002
|
alt: ""
|
|
1003
1003
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1004
|
-
className: styles['upload-info']
|
|
1004
|
+
className: styles$1['upload-info']
|
|
1005
1005
|
}, "\u054F\u0565\u0572\u0561\u0564\u0580\u0565\u056C \u0586\u0561\u0575\u056C\u0568 \u0561\u0575\u057D\u057F\u0565\u0572 \u056F\u0561\u0574 ", /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1006
|
-
className: styles['upload-info-txt']
|
|
1006
|
+
className: styles$1['upload-info-txt']
|
|
1007
1007
|
}, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1008
|
-
className: styles['upload-info-size']
|
|
1008
|
+
className: styles$1['upload-info-size']
|
|
1009
1009
|
}, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 5\u0544\u0532 ( jpg, jpeg, png, pdf)"))), error ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1010
1010
|
style: {
|
|
1011
1011
|
color: 'red'
|
|
@@ -1022,6 +1022,69 @@ File.propTypes = {
|
|
|
1022
1022
|
defaultData: PropTypes__default["default"].object
|
|
1023
1023
|
};
|
|
1024
1024
|
|
|
1025
|
+
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)}}";
|
|
1026
|
+
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"};
|
|
1027
|
+
styleInject(css_248z);
|
|
1028
|
+
|
|
1029
|
+
const Modal = ({
|
|
1030
|
+
setShow,
|
|
1031
|
+
headerText,
|
|
1032
|
+
className,
|
|
1033
|
+
type,
|
|
1034
|
+
data,
|
|
1035
|
+
selected
|
|
1036
|
+
}) => {
|
|
1037
|
+
classnames__default["default"](styles.modal, className);
|
|
1038
|
+
const [select, setSelect] = React.useState(selected);
|
|
1039
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1040
|
+
className: styles["modal-wrap"]
|
|
1041
|
+
}, type == 'content' ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1042
|
+
className: styles["modal-content"]
|
|
1043
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1044
|
+
className: styles["modal-top"]
|
|
1045
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1046
|
+
className: styles['modal-title']
|
|
1047
|
+
}, "Title"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1048
|
+
className: styles["close-btn"],
|
|
1049
|
+
onClick: () => setShow(false)
|
|
1050
|
+
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1051
|
+
className: "icon-close"
|
|
1052
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1053
|
+
className: styles["modal-section"]
|
|
1054
|
+
})) : type == 'images' ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1055
|
+
className: styles["modal-content"]
|
|
1056
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1057
|
+
className: styles["close-btn"],
|
|
1058
|
+
onClick: () => setShow(false)
|
|
1059
|
+
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1060
|
+
className: "icon-close"
|
|
1061
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, select > 1 ? /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
1062
|
+
onClick: () => setSelect(select - 1)
|
|
1063
|
+
}, "-") : null, data.map(elem => {
|
|
1064
|
+
if (select == elem.id) {
|
|
1065
|
+
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
1066
|
+
width: "600px",
|
|
1067
|
+
key: elem.id,
|
|
1068
|
+
src: elem.url
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
}), select < data.length ? /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
1072
|
+
onClick: () => {
|
|
1073
|
+
setSelect(select + 1);
|
|
1074
|
+
}
|
|
1075
|
+
}, "+") : null), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1076
|
+
className: styles["modal-section"]
|
|
1077
|
+
})) : null);
|
|
1078
|
+
};
|
|
1079
|
+
Modal.propTypes = {
|
|
1080
|
+
setShow: PropTypes__default["default"].func,
|
|
1081
|
+
headerText: PropTypes__default["default"].string,
|
|
1082
|
+
className: PropTypes__default["default"].string,
|
|
1083
|
+
type: PropTypes__default["default"].string,
|
|
1084
|
+
selected: PropTypes__default["default"].string,
|
|
1085
|
+
data: PropTypes__default["default"].array
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1025
1088
|
exports.Autocomplate = Autocomplate;
|
|
1026
1089
|
exports.Button = Button;
|
|
1027
1090
|
exports.ButtonSize = ButtonSize;
|
|
@@ -1033,6 +1096,7 @@ exports.File = File;
|
|
|
1033
1096
|
exports.Input = Input;
|
|
1034
1097
|
exports.InputSizes = InputSizes;
|
|
1035
1098
|
exports.InputTypes = InputTypes;
|
|
1099
|
+
exports.Modal = Modal;
|
|
1036
1100
|
exports.Pagination = Pagination;
|
|
1037
1101
|
exports.Radio = Radio;
|
|
1038
1102
|
exports.Select = Select;
|