@xaypay/tui 0.0.114 → 0.0.116
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 +359 -257
- package/dist/index.js +359 -257
- package/package.json +1 -1
- package/src/components/button/index.js +3 -2
- package/src/components/captcha/index.js +5 -4
- package/src/components/checkbox/checkbox.module.css +0 -59
- package/src/components/checkbox/checkbox.stories.js +70 -4
- package/src/components/checkbox/index.js +103 -70
- package/src/components/input/index.js +27 -7
- package/src/components/modal/index.js +15 -3
- package/src/components/newAutocomplete/index.js +4 -5
- package/src/components/newFile/index.js +45 -42
- package/src/components/pagination/index.js +9 -2
- package/src/components/select/index.js +4 -2
- package/src/components/singleCheckbox/Checkbox.js +30 -19
- package/src/components/singleCheckbox/index.js +15 -9
- package/src/components/stepper/index.js +9 -2
- package/src/components/table/index.js +45 -4
- package/src/components/table/table.stories.js +2 -11
- package/src/components/table/td.js +38 -5
- package/src/components/table/th.js +19 -3
- package/src/components/textarea/index.js +5 -1
- package/src/components/toaster/index.js +7 -2
- package/src/components/tooltip/index.js +3 -3
- package/src/components/typography/index.js +1 -1
- package/src/index.js +0 -1
- package/src/stories/configuration.stories.mdx +40 -3
- package/src/stories/static/checkbox-group-usage-2.png +0 -0
- package/src/stories/static/checkbox-group-usage.png +0 -0
- package/src/stories/static/single-checkbox-usage.png +0 -0
- package/src/stories/usage.stories.mdx +11 -1
- package/tui.config.js +39 -7
package/dist/index.js
CHANGED
|
@@ -114,9 +114,9 @@ function styleInject(css, ref) {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
var css_248z$
|
|
118
|
-
var styles$
|
|
119
|
-
styleInject(css_248z$
|
|
117
|
+
var css_248z$e = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{display:block;height:auto;max-height:95%;object-fit:contain;width:27.8rem}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
|
|
118
|
+
var styles$c = {"file-form-wrap":"file-module_file-form-wrap__qY--B","file-form":"file-module_file-form__l13d5","active":"file-module_active__L1gPt","delete-upload-icon":"file-module_delete-upload-icon__PWN66","file-form-inner-upload":"file-module_file-form-inner-upload__tq3Dn","upload-info":"file-module_upload-info__a8GFs","upload-info-txt":"file-module_upload-info-txt__l11uN","default":"file-module_default__t7KU0","error":"file-module_error__H-M4Z","accept":"file-module_accept__WTW6V","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB"};
|
|
119
|
+
styleInject(css_248z$e);
|
|
120
120
|
|
|
121
121
|
const File = ({
|
|
122
122
|
name,
|
|
@@ -176,11 +176,11 @@ const File = ({
|
|
|
176
176
|
document.querySelector(`.${name}`).value = '';
|
|
177
177
|
};
|
|
178
178
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
179
|
-
className: `${styles$
|
|
179
|
+
className: `${styles$c['file-form-title']} ile-form-title-rem`
|
|
180
180
|
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
181
|
-
className: classnames__default["default"](`${styles$
|
|
181
|
+
className: classnames__default["default"](`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
|
|
182
182
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
183
|
-
className: `${styles$
|
|
183
|
+
className: `${styles$c['file-form']} file-form-rem ${error || errorMessage ? styles$c['error'] : ''}`,
|
|
184
184
|
onClick: () => document.querySelector(`.${name}`).click()
|
|
185
185
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
186
186
|
hidden: true,
|
|
@@ -189,23 +189,23 @@ const File = ({
|
|
|
189
189
|
disabled: disabled,
|
|
190
190
|
onChange: e => handleCheckFile(e)
|
|
191
191
|
}), image ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
192
|
-
className: `${styles$
|
|
192
|
+
className: `${styles$c['upload-file-content']} upload-file-content-rem`
|
|
193
193
|
}, image === 'pdf' ? /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
194
194
|
src: image,
|
|
195
195
|
alt: fileName
|
|
196
196
|
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
197
|
-
className: `${styles$
|
|
197
|
+
className: `${styles$c['file-form-inner-upload']} ile-form-inner-upload-rem`
|
|
198
198
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
199
199
|
src: "../../assets/upload.svg",
|
|
200
200
|
alt: ""
|
|
201
201
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
202
|
-
className: `${styles$
|
|
202
|
+
className: `${styles$c['upload-info']} upload-info-rem`
|
|
203
203
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
204
|
-
className: `${styles$
|
|
204
|
+
className: `${styles$c['upload-info-txt']} upload-info-txt-rem`
|
|
205
205
|
}, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
206
|
-
className: `${styles$
|
|
206
|
+
className: `${styles$c['upload-info-size']} upload-info-size-rem`
|
|
207
207
|
}, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )"))), !disabled && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
208
|
-
className: `${styles$
|
|
208
|
+
className: `${styles$c['delete-upload-icon']} delete-upload-icon-rem`,
|
|
209
209
|
onClick: handleRemoveFile
|
|
210
210
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
211
211
|
className: "icon-delete"
|
|
@@ -303,24 +303,24 @@ const SvgCheckboxChecked = ({
|
|
|
303
303
|
const Checkbox$1 = ({
|
|
304
304
|
data,
|
|
305
305
|
index,
|
|
306
|
+
label,
|
|
306
307
|
styles,
|
|
307
308
|
checked,
|
|
308
309
|
disabled,
|
|
309
310
|
innerIndex,
|
|
311
|
+
checkedIcon,
|
|
310
312
|
checkedColor,
|
|
313
|
+
unCheckedIcon,
|
|
311
314
|
handleChecked,
|
|
312
315
|
unCheckedColor,
|
|
316
|
+
labelMarginLeft,
|
|
313
317
|
ignoreDisabledForChecked
|
|
314
318
|
}) => {
|
|
315
319
|
const configStyles = compereConfigs();
|
|
316
320
|
const [innerChecked, setInnerChecked] = React.useState(false);
|
|
317
321
|
const [innerDisabled, setInnerDisabled] = React.useState(false);
|
|
318
322
|
const handleClick = e => {
|
|
319
|
-
|
|
320
|
-
handleChecked(data, e, index, innerIndex);
|
|
321
|
-
} else {
|
|
322
|
-
handleChecked(data, e);
|
|
323
|
-
}
|
|
323
|
+
handleChecked(data, e, index, innerIndex);
|
|
324
324
|
};
|
|
325
325
|
React.useEffect(() => {
|
|
326
326
|
setInnerDisabled(disabled);
|
|
@@ -328,83 +328,103 @@ const Checkbox$1 = ({
|
|
|
328
328
|
React.useEffect(() => {
|
|
329
329
|
setInnerChecked(checked);
|
|
330
330
|
}, [checked]);
|
|
331
|
+
React.useEffect(() => {
|
|
332
|
+
if (index && typeof index !== 'number') {
|
|
333
|
+
alert('Please set index value as valid number');
|
|
334
|
+
}
|
|
335
|
+
}, [index]);
|
|
336
|
+
React.useEffect(() => {
|
|
337
|
+
if (innerIndex && typeof innerIndex !== 'number') {
|
|
338
|
+
alert('Please set index value as valid number');
|
|
339
|
+
}
|
|
340
|
+
}, [innerIndex]);
|
|
331
341
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
332
342
|
style: {
|
|
333
|
-
width: '16px',
|
|
343
|
+
width: label ? 'fit-content' : '16px',
|
|
334
344
|
height: '16px',
|
|
335
345
|
marginRight: '9px',
|
|
336
|
-
display: 'inline-block',
|
|
346
|
+
display: label ? 'flex' : 'inline-block',
|
|
337
347
|
cursor: !innerDisabled ? 'pointer' : 'not-allowed',
|
|
338
348
|
...styles
|
|
339
349
|
},
|
|
340
350
|
onClick: !innerDisabled && handleChecked ? handleClick : _ => _
|
|
341
|
-
}, innerChecked && (ignoreDisabledForChecked ? ignoreDisabledForChecked : !innerDisabled) ? /*#__PURE__*/React__default["default"].createElement(SvgCheckboxChecked, {
|
|
342
|
-
fillColor: checkedColor ? checkedColor : configStyles.
|
|
343
|
-
}) : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxUnchecked, {
|
|
344
|
-
fillColor: unCheckedColor ? unCheckedColor : configStyles.
|
|
345
|
-
}),
|
|
351
|
+
}, innerChecked && (ignoreDisabledForChecked ? ignoreDisabledForChecked : !innerDisabled) ? checkedIcon ? checkedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxChecked, {
|
|
352
|
+
fillColor: checkedColor ? checkedColor : configStyles.CHECKBOX.checkedColor
|
|
353
|
+
}) : unCheckedIcon ? unCheckedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxUnchecked, {
|
|
354
|
+
fillColor: unCheckedColor ? unCheckedColor : configStyles.CHECKBOX.unCheckedColor
|
|
355
|
+
}), label && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
356
|
+
style: {
|
|
357
|
+
marginLeft: labelMarginLeft
|
|
358
|
+
}
|
|
359
|
+
}, label));
|
|
346
360
|
};
|
|
347
361
|
|
|
348
362
|
const SingleCheckbox = ({
|
|
349
363
|
data,
|
|
350
364
|
index,
|
|
365
|
+
label,
|
|
351
366
|
styles,
|
|
352
367
|
checked,
|
|
353
368
|
disabled,
|
|
354
369
|
innerIndex,
|
|
370
|
+
checkedIcon,
|
|
355
371
|
checkedColor,
|
|
372
|
+
unCheckedIcon,
|
|
356
373
|
handleChecked,
|
|
357
374
|
unCheckedColor,
|
|
375
|
+
labelMarginLeft,
|
|
358
376
|
ignoreDisabledForChecked
|
|
359
377
|
}) => {
|
|
378
|
+
const configStyles = compereConfigs();
|
|
360
379
|
const [innerData, setInnerData] = React.useState(null);
|
|
361
380
|
React.useEffect(() => {
|
|
362
|
-
// if (data) {
|
|
363
|
-
// if (typeof data === 'object' && data.constructor === Object) {
|
|
364
|
-
// setInnerData(data);
|
|
365
|
-
// } else {
|
|
366
|
-
// alert('Data props on Checkbox component must be an object');
|
|
367
|
-
// }
|
|
368
|
-
// } else {
|
|
369
|
-
// alert('Please add data props on Checkbox component');
|
|
370
|
-
// }
|
|
371
381
|
setInnerData(data);
|
|
372
382
|
}, [data]);
|
|
373
383
|
return /*#__PURE__*/React__default["default"].createElement(Checkbox$1, {
|
|
374
384
|
index: index,
|
|
385
|
+
label: label,
|
|
375
386
|
styles: styles,
|
|
376
387
|
data: innerData,
|
|
377
388
|
checked: checked,
|
|
378
389
|
disabled: disabled,
|
|
379
390
|
innerIndex: innerIndex,
|
|
391
|
+
checkedIcon: checkedIcon,
|
|
380
392
|
checkedColor: checkedColor,
|
|
393
|
+
unCheckedIcon: unCheckedIcon,
|
|
381
394
|
handleChecked: handleChecked,
|
|
382
395
|
unCheckedColor: unCheckedColor,
|
|
383
|
-
ignoreDisabledForChecked: ignoreDisabledForChecked
|
|
396
|
+
ignoreDisabledForChecked: ignoreDisabledForChecked,
|
|
397
|
+
labelMarginLeft: labelMarginLeft ? labelMarginLeft : configStyles.CHECKBOX.labelMarginLeft
|
|
384
398
|
});
|
|
385
399
|
};
|
|
386
400
|
SingleCheckbox.propTypes = {
|
|
387
401
|
data: PropTypes__default["default"].object,
|
|
402
|
+
label: PropTypes__default["default"].string,
|
|
388
403
|
onClick: PropTypes__default["default"].func,
|
|
389
404
|
index: PropTypes__default["default"].number,
|
|
390
405
|
styles: PropTypes__default["default"].object,
|
|
391
406
|
disabled: PropTypes__default["default"].bool,
|
|
392
407
|
innerIndex: PropTypes__default["default"].number,
|
|
393
408
|
checkedColor: PropTypes__default["default"].string,
|
|
409
|
+
checkedIcon: PropTypes__default["default"].element,
|
|
410
|
+
unCheckedIcon: PropTypes__default["default"].element,
|
|
394
411
|
unCheckedColor: PropTypes__default["default"].string,
|
|
412
|
+
labelMarginLeft: PropTypes__default["default"].string,
|
|
395
413
|
ignoreDisabledForChecked: PropTypes__default["default"].bool
|
|
396
414
|
};
|
|
397
415
|
|
|
398
|
-
var css_248z$
|
|
399
|
-
var styles$
|
|
400
|
-
styleInject(css_248z$
|
|
416
|
+
var css_248z$d = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{cursor:pointer;margin:0 0 8px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}";
|
|
417
|
+
var styles$b = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO"};
|
|
418
|
+
styleInject(css_248z$d);
|
|
401
419
|
|
|
402
420
|
/* eslint-disable no-prototype-builtins */
|
|
403
421
|
const TH = ({
|
|
404
422
|
item,
|
|
423
|
+
hideBorder,
|
|
405
424
|
tHeadFamily,
|
|
406
425
|
tHeadPadding,
|
|
407
426
|
tHeadFontSize,
|
|
427
|
+
tHeadTextAlign,
|
|
408
428
|
tHeadFontWeight,
|
|
409
429
|
handleCheckedHeader,
|
|
410
430
|
borderTopLeftRadius,
|
|
@@ -428,19 +448,19 @@ const TH = ({
|
|
|
428
448
|
fontFamily: tHeadFamily,
|
|
429
449
|
fontWeight: tHeadFontWeight,
|
|
430
450
|
borderTopLeftRadius: borderTopLeftRadius,
|
|
431
|
-
borderTopRightRadius: borderTopRightRadius
|
|
451
|
+
borderTopRightRadius: borderTopRightRadius,
|
|
452
|
+
borderColor: hideBorder ? 'transparent' : '#eeeeee'
|
|
432
453
|
},
|
|
433
454
|
onClick: handleHeaderItemClick,
|
|
434
|
-
className: `${item.sortingArrows
|
|
455
|
+
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$b['sorting-arrows'] : '' : ''}`
|
|
435
456
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
436
457
|
style: {
|
|
437
458
|
display: 'flex',
|
|
438
459
|
alignItems: 'flex-start',
|
|
439
|
-
justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : 'center'
|
|
460
|
+
justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
|
|
440
461
|
}
|
|
441
462
|
}, hasOwnerProperty(item, 'checkBox') ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
442
463
|
data: item,
|
|
443
|
-
float: "left",
|
|
444
464
|
checked: item.checkBox.checked,
|
|
445
465
|
disabled: item.checkBox.disabled,
|
|
446
466
|
handleChecked: !item.checkBox.disabled ? handleCheckedHeader : _ => _,
|
|
@@ -455,8 +475,12 @@ const TH = ({
|
|
|
455
475
|
};
|
|
456
476
|
|
|
457
477
|
const TD = ({
|
|
478
|
+
row,
|
|
458
479
|
item,
|
|
459
480
|
index,
|
|
481
|
+
rowItem,
|
|
482
|
+
rowRadius,
|
|
483
|
+
hideBorder,
|
|
460
484
|
innerIndex,
|
|
461
485
|
tBodyColor,
|
|
462
486
|
borderRight,
|
|
@@ -524,7 +548,12 @@ const TD = ({
|
|
|
524
548
|
textAlign: tBodyTextAlign,
|
|
525
549
|
fontFamily: tBodyFontFamily,
|
|
526
550
|
fontWeight: tBodyFontWeight,
|
|
527
|
-
|
|
551
|
+
borderColor: hideBorder ? 'transparent' : '#eeeeee',
|
|
552
|
+
boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
|
|
553
|
+
borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
|
|
554
|
+
borderBottomLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
|
|
555
|
+
borderTopRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
|
|
556
|
+
borderBottomRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px'
|
|
528
557
|
}
|
|
529
558
|
}, Array.isArray(item) ? item.length > 0 ? item.map((newItem, newIndex) => {
|
|
530
559
|
if (newItem && !Array.isArray(newItem) && typeof newItem === 'object') {
|
|
@@ -537,10 +566,10 @@ const TD = ({
|
|
|
537
566
|
},
|
|
538
567
|
id: newItem.id,
|
|
539
568
|
type: newItem.type,
|
|
540
|
-
className: styles$
|
|
569
|
+
className: styles$b['td-span'],
|
|
541
570
|
key: `${newItem.id}_${newIndex}`,
|
|
542
571
|
onClick: e => handleCheckActions(e, newItem, 'type', newIndex)
|
|
543
|
-
}, newItem.content);
|
|
572
|
+
}, newItem.content === 0 ? newItem.content.toString() : newItem.content ? newItem.content : '');
|
|
544
573
|
} else if (newItem && Array.isArray(newItem)) {
|
|
545
574
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
546
575
|
key: `${newItem.id}_${newIndex}`,
|
|
@@ -559,10 +588,10 @@ const TD = ({
|
|
|
559
588
|
},
|
|
560
589
|
id: iT.id ? iT.id : '',
|
|
561
590
|
type: iT.type ? iT.type : '',
|
|
562
|
-
className: styles$
|
|
591
|
+
className: styles$b['td-span'],
|
|
563
592
|
onClick: e => handleCheckActions(e, iT, 'type', iN),
|
|
564
593
|
key: `${iT.id || iT.content}_${iN}`
|
|
565
|
-
}, iT.content);
|
|
594
|
+
}, iT.content === 0 ? iT.content.toString() : iT.content ? iT.content : '');
|
|
566
595
|
}));
|
|
567
596
|
} else {
|
|
568
597
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -573,7 +602,7 @@ const TD = ({
|
|
|
573
602
|
style: {
|
|
574
603
|
display: 'flex',
|
|
575
604
|
alignItems: 'flex-start',
|
|
576
|
-
justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : 'center'
|
|
605
|
+
justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
|
|
577
606
|
}
|
|
578
607
|
}, !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
579
608
|
id: item.id,
|
|
@@ -583,7 +612,7 @@ const TD = ({
|
|
|
583
612
|
cursor: 'pointer'
|
|
584
613
|
},
|
|
585
614
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
586
|
-
className: styles$
|
|
615
|
+
className: styles$b['td-span']
|
|
587
616
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
588
617
|
data: item,
|
|
589
618
|
index: index,
|
|
@@ -628,7 +657,7 @@ const TD = ({
|
|
|
628
657
|
}, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
629
658
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
630
659
|
key: `${optionItem.content}_${optionIndex}`,
|
|
631
|
-
className: styles$
|
|
660
|
+
className: styles$b['dots-option-item'],
|
|
632
661
|
style: {
|
|
633
662
|
color: '#3C393E',
|
|
634
663
|
fontSize: '14px',
|
|
@@ -649,7 +678,7 @@ const TD = ({
|
|
|
649
678
|
marginBottom: '5px'
|
|
650
679
|
},
|
|
651
680
|
title: optionItem.content
|
|
652
|
-
}, optionItem.content));
|
|
681
|
+
}, optionItem.content === 0 ? optionItem.content.toString() : optionItem.content ? optionItem.content : ''));
|
|
653
682
|
}))) : ''), hasOwnerProperty(item, 'contentList') && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
654
683
|
style: {
|
|
655
684
|
overflow: 'auto',
|
|
@@ -661,13 +690,13 @@ const TD = ({
|
|
|
661
690
|
}, item.contentList.map((innerItem, innerItemIndex) => {
|
|
662
691
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
663
692
|
key: `${innerItem}_${innerItemIndex}`,
|
|
664
|
-
className: styles$
|
|
693
|
+
className: styles$b['list-text'],
|
|
665
694
|
style: {
|
|
666
695
|
color: openListColor,
|
|
667
696
|
maxWidth: (item.content.length * 9 <= 100 ? 100 : item.content.length * 9) + 'px'
|
|
668
697
|
},
|
|
669
698
|
onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
|
|
670
|
-
}, innerItem.content);
|
|
699
|
+
}, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
|
|
671
700
|
}))), !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
672
701
|
id: item.id,
|
|
673
702
|
style: {
|
|
@@ -676,7 +705,7 @@ const TD = ({
|
|
|
676
705
|
cursor: 'pointer'
|
|
677
706
|
},
|
|
678
707
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
679
|
-
className: styles$
|
|
708
|
+
className: styles$b['td-span']
|
|
680
709
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
681
710
|
};
|
|
682
711
|
|
|
@@ -738,10 +767,15 @@ const Table = ({
|
|
|
738
767
|
arrowShow,
|
|
739
768
|
dataHeader,
|
|
740
769
|
arrowColumn,
|
|
770
|
+
tableRowItem,
|
|
771
|
+
tableRowRadius,
|
|
772
|
+
tableRowBGColor,
|
|
773
|
+
tableRowBoxShadow,
|
|
741
774
|
tHeadColor,
|
|
742
775
|
tHeadFamily,
|
|
743
776
|
tHeadPadding,
|
|
744
777
|
tHeadFontSize,
|
|
778
|
+
tHeadTextAlign,
|
|
745
779
|
tHeadFontWeight,
|
|
746
780
|
tHeadBorderRadius,
|
|
747
781
|
tHeadBackgroundColor,
|
|
@@ -749,10 +783,14 @@ const Table = ({
|
|
|
749
783
|
tBodyPadding,
|
|
750
784
|
tBodyFontSize,
|
|
751
785
|
tBodyTextAlign,
|
|
786
|
+
tBodyRowBorder,
|
|
787
|
+
tBodyBoxShadow,
|
|
752
788
|
tBodyFontWeight,
|
|
753
789
|
tBodyFontFamily,
|
|
754
|
-
|
|
755
|
-
|
|
790
|
+
tBodyRowMarginTop,
|
|
791
|
+
className,
|
|
792
|
+
openListColor,
|
|
793
|
+
hideBorder
|
|
756
794
|
}) => {
|
|
757
795
|
const [body, setBody] = React.useState([]);
|
|
758
796
|
const [header, setHeader] = React.useState([]);
|
|
@@ -1033,7 +1071,6 @@ const Table = ({
|
|
|
1033
1071
|
});
|
|
1034
1072
|
};
|
|
1035
1073
|
const handleOpenCloseRowSingleArrow = (arrowRowIndex, arrowIndex, clickableItem) => {
|
|
1036
|
-
console.log(clickableItem, 'clickableItem');
|
|
1037
1074
|
let single = {};
|
|
1038
1075
|
const allArrows = [];
|
|
1039
1076
|
const checkedOpenableRow = body[arrowRowIndex].map((item, index) => {
|
|
@@ -1228,17 +1265,21 @@ const Table = ({
|
|
|
1228
1265
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
1229
1266
|
style: {
|
|
1230
1267
|
width: '100%',
|
|
1231
|
-
borderCollapse: 'collapse'
|
|
1268
|
+
borderCollapse: (tableRowItem ? tableRowItem : configStyles.TABLE.tableRowItem) ? 'separate' : 'collapse',
|
|
1269
|
+
borderSpacing: `0 ${tBodyRowMarginTop ? tBodyRowMarginTop : configStyles.TABLE.tBodyRowMarginTop}`
|
|
1232
1270
|
},
|
|
1233
|
-
onClick: handleTableClick
|
|
1271
|
+
onClick: handleTableClick,
|
|
1272
|
+
className: className ? className : configStyles.TABLE.className
|
|
1234
1273
|
}, header && header.length > 0 && /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
1235
1274
|
style: {
|
|
1236
1275
|
color: tHeadColor ? tHeadColor : configStyles.TABLE.tHeadColor,
|
|
1237
|
-
backgroundColor: tHeadBackgroundColor ? tHeadBackgroundColor : configStyles.TABLE.tHeadBackgroundColor
|
|
1276
|
+
backgroundColor: tHeadBackgroundColor ? tHeadBackgroundColor : configStyles.TABLE.tHeadBackgroundColor,
|
|
1277
|
+
borderColor: hideBorder ? 'transparent' : '#eeeeee'
|
|
1238
1278
|
}
|
|
1239
1279
|
}, header.map((item, index) => {
|
|
1240
1280
|
return /*#__PURE__*/React__default["default"].createElement(TH, {
|
|
1241
1281
|
item: item,
|
|
1282
|
+
hideBorder: hideBorder,
|
|
1242
1283
|
key: `${item}_${index}`,
|
|
1243
1284
|
handleCheckedHeader: handleCheckedHeader,
|
|
1244
1285
|
handleHeaderItemClick: handleHeaderItemClick,
|
|
@@ -1246,25 +1287,31 @@ const Table = ({
|
|
|
1246
1287
|
tHeadFamily: tHeadFamily ? tHeadFamily : configStyles.TABLE.tHeadFamily,
|
|
1247
1288
|
tHeadPadding: tHeadPadding ? tHeadPadding : configStyles.TABLE.tHeadPadding,
|
|
1248
1289
|
tHeadFontSize: tHeadFontSize ? tHeadFontSize : configStyles.TABLE.tHeadFontSize,
|
|
1290
|
+
tHeadTextAlign: tHeadTextAlign ? tHeadTextAlign : configStyles.TABLE.tHeadTextAlign,
|
|
1249
1291
|
tHeadFontWeight: tHeadFontWeight ? tHeadFontWeight : configStyles.TABLE.tHeadFontWeight,
|
|
1250
1292
|
borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px',
|
|
1251
1293
|
borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px'
|
|
1252
1294
|
});
|
|
1253
1295
|
}))), body && body.length > 0 && /*#__PURE__*/React__default["default"].createElement("tbody", {
|
|
1254
1296
|
style: {
|
|
1255
|
-
boxShadow:
|
|
1297
|
+
boxShadow: tBodyBoxShadow ? tBodyBoxShadow : configStyles.TABLE.tBodyBoxShadow
|
|
1256
1298
|
}
|
|
1257
1299
|
}, body.map((item, index) => {
|
|
1258
1300
|
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
1259
1301
|
key: `${item}_${index}`,
|
|
1260
1302
|
style: {
|
|
1261
|
-
|
|
1303
|
+
backgroundColor: tableRowBGColor ? tableRowBGColor : configStyles.TABLE.tableRowBGColor,
|
|
1304
|
+
borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.tBodyRowBorder,
|
|
1305
|
+
borderColor: hideBorder ? 'transparent' : '#eeeeee',
|
|
1306
|
+
boxShadow: (tableRowItem ? tableRowItem : configStyles.TABLE.tableRowItem) ? tableRowBoxShadow ? tableRowBoxShadow : configStyles.TABLE.tableRowBoxShadow : 'none'
|
|
1262
1307
|
}
|
|
1263
1308
|
}, Object.values(item).map((innerItem, innerIndex) => {
|
|
1264
1309
|
return /*#__PURE__*/React__default["default"].createElement(TD, {
|
|
1265
1310
|
index: index,
|
|
1266
1311
|
item: innerItem,
|
|
1312
|
+
hideBorder: hideBorder,
|
|
1267
1313
|
innerIndex: innerIndex,
|
|
1314
|
+
row: Object.values(item),
|
|
1268
1315
|
id: item.id ? item.id : '',
|
|
1269
1316
|
handleCheckDots: handleCheckDots,
|
|
1270
1317
|
key: `${innerItem}_${index}_${innerIndex}`,
|
|
@@ -1274,6 +1321,8 @@ const Table = ({
|
|
|
1274
1321
|
handleMoreOptionsClick: handleMoreOptionsClick,
|
|
1275
1322
|
handleContentListClick: handleContentListClick,
|
|
1276
1323
|
tBodyColor: tBodyColor ? tBodyColor : configStyles.TABLE.tBodyColor,
|
|
1324
|
+
rowItem: tableRowItem ? tableRowItem : configStyles.TABLE.tableRowItem,
|
|
1325
|
+
rowRadius: tableRowRadius ? tableRowRadius : configStyles.TABLE.tableRowRadius,
|
|
1277
1326
|
tBodyPadding: tBodyPadding ? tBodyPadding : configStyles.TABLE.tBodyPadding,
|
|
1278
1327
|
tBodyFontSize: tBodyFontSize ? tBodyFontSize : configStyles.TABLE.tBodyFontSize,
|
|
1279
1328
|
tBodyTextAlign: tBodyTextAlign ? tBodyTextAlign : configStyles.TABLE.tBodyTextAlign,
|
|
@@ -1292,26 +1341,35 @@ Table.propTypes = {
|
|
|
1292
1341
|
arrowShow: PropTypes__default["default"].bool,
|
|
1293
1342
|
dataHeader: PropTypes__default["default"].array,
|
|
1294
1343
|
arrowColumn: PropTypes__default["default"].number,
|
|
1344
|
+
tableRowItem: PropTypes__default["default"].bool,
|
|
1345
|
+
tableRowRadius: PropTypes__default["default"].string,
|
|
1346
|
+
tableRowBGColor: PropTypes__default["default"].string,
|
|
1347
|
+
tableRowBoxShadow: PropTypes__default["default"].string,
|
|
1295
1348
|
tHeadColor: PropTypes__default["default"].string,
|
|
1296
1349
|
tHeadFamily: PropTypes__default["default"].string,
|
|
1297
1350
|
tHeadPadding: PropTypes__default["default"].string,
|
|
1298
1351
|
tHeadFontSize: PropTypes__default["default"].string,
|
|
1352
|
+
tHeadTextAlign: PropTypes__default["default"].string,
|
|
1299
1353
|
tHeadFontWeight: PropTypes__default["default"].number,
|
|
1300
1354
|
tHeadBorderRadius: PropTypes__default["default"].string,
|
|
1301
1355
|
tHeadBackgroundColor: PropTypes__default["default"].string,
|
|
1302
1356
|
tBodyColor: PropTypes__default["default"].string,
|
|
1303
1357
|
tBodyPadding: PropTypes__default["default"].string,
|
|
1304
1358
|
tBodyFontSize: PropTypes__default["default"].string,
|
|
1359
|
+
tBodyBoxShadow: PropTypes__default["default"].string,
|
|
1305
1360
|
tBodyTextAlign: PropTypes__default["default"].string,
|
|
1306
1361
|
tBodyFontWeight: PropTypes__default["default"].string,
|
|
1307
1362
|
tBodyFontFamily: PropTypes__default["default"].string,
|
|
1363
|
+
tBodyRowMarginTop: PropTypes__default["default"].string,
|
|
1364
|
+
className: PropTypes__default["default"].string,
|
|
1308
1365
|
tBodyRowBorder: PropTypes__default["default"].string,
|
|
1309
|
-
openListColor: PropTypes__default["default"].string
|
|
1366
|
+
openListColor: PropTypes__default["default"].string,
|
|
1367
|
+
hideBorder: PropTypes__default["default"].bool
|
|
1310
1368
|
};
|
|
1311
1369
|
|
|
1312
|
-
var css_248z$
|
|
1313
|
-
var styles$
|
|
1314
|
-
styleInject(css_248z$
|
|
1370
|
+
var css_248z$c = ".modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
|
|
1371
|
+
var styles$a = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
|
|
1372
|
+
styleInject(css_248z$c);
|
|
1315
1373
|
|
|
1316
1374
|
const SvgNext = ({
|
|
1317
1375
|
title,
|
|
@@ -1456,9 +1514,10 @@ const Modal = ({
|
|
|
1456
1514
|
layerBackgroundColor
|
|
1457
1515
|
}) => {
|
|
1458
1516
|
const [select, setSelect] = React.useState(0);
|
|
1517
|
+
const [isHover, setIsHover] = React.useState(false);
|
|
1459
1518
|
const [innerData, setInnerData] = React.useState([]);
|
|
1460
1519
|
const configStyles = compereConfigs();
|
|
1461
|
-
const classProps = classnames__default["default"](className);
|
|
1520
|
+
const classProps = classnames__default["default"](className ? className : configStyles.MODAL.className);
|
|
1462
1521
|
const handleCloseModal = () => {
|
|
1463
1522
|
setShow(false);
|
|
1464
1523
|
};
|
|
@@ -1490,6 +1549,12 @@ const Modal = ({
|
|
|
1490
1549
|
imageLink.href = url, imageLink.target = '_blank';
|
|
1491
1550
|
imageLink.click();
|
|
1492
1551
|
};
|
|
1552
|
+
const handleMouseEnter = () => {
|
|
1553
|
+
setIsHover(true);
|
|
1554
|
+
};
|
|
1555
|
+
const handleMouseLeave = () => {
|
|
1556
|
+
setIsHover(false);
|
|
1557
|
+
};
|
|
1493
1558
|
React.useEffect(() => {
|
|
1494
1559
|
if (type === 'images') {
|
|
1495
1560
|
if (data) {
|
|
@@ -1523,6 +1588,7 @@ const Modal = ({
|
|
|
1523
1588
|
};
|
|
1524
1589
|
}, []);
|
|
1525
1590
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1591
|
+
className: classProps,
|
|
1526
1592
|
onClick: outsideClose || configStyles.MODAL.outsideClose ? handleCloseModal : _ => _,
|
|
1527
1593
|
style: {
|
|
1528
1594
|
top: '0px',
|
|
@@ -1543,7 +1609,7 @@ const Modal = ({
|
|
|
1543
1609
|
justifyContent: justifyContent ? justifyContent : configStyles.MODAL.justifyContent
|
|
1544
1610
|
}
|
|
1545
1611
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1546
|
-
className: `${
|
|
1612
|
+
className: `${styles$a['animation__modal']}`,
|
|
1547
1613
|
onClick: handleStopClosing,
|
|
1548
1614
|
style: {
|
|
1549
1615
|
position: 'relative',
|
|
@@ -1603,7 +1669,9 @@ const Modal = ({
|
|
|
1603
1669
|
borderWidth: borderWidth ? borderWidth : configStyles.MODAL.borderWidth,
|
|
1604
1670
|
borderStyle: borderStyle ? borderStyle : configStyles.MODAL.borderStyle,
|
|
1605
1671
|
borderColor: borderColor ? borderColor : configStyles.MODAL.borderColor
|
|
1606
|
-
}
|
|
1672
|
+
},
|
|
1673
|
+
onMouseEnter: handleMouseEnter,
|
|
1674
|
+
onMouseLeave: handleMouseLeave
|
|
1607
1675
|
}, type === 'content' ? children ? children : '' : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1608
1676
|
style: {
|
|
1609
1677
|
position: 'absolute',
|
|
@@ -1654,7 +1722,7 @@ const Modal = ({
|
|
|
1654
1722
|
maxWidth: imageMaxWidth ? imageMaxWidth : configStyles.MODAL.imageMaxWidth
|
|
1655
1723
|
},
|
|
1656
1724
|
src: item.url
|
|
1657
|
-
}), showZoomIcon ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1725
|
+
}), isHover && showZoomIcon ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1658
1726
|
style: {
|
|
1659
1727
|
top: '0px',
|
|
1660
1728
|
left: '0px',
|
|
@@ -1745,9 +1813,9 @@ Modal.defaultProps = {
|
|
|
1745
1813
|
type: 'content'
|
|
1746
1814
|
};
|
|
1747
1815
|
|
|
1748
|
-
var css_248z$
|
|
1749
|
-
var styles$
|
|
1750
|
-
styleInject(css_248z$
|
|
1816
|
+
var css_248z$b = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{appearance:none!important;-webkit-appearance:none!important;display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}input::-ms-clear,input::-ms-reveal{display:none}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
|
|
1817
|
+
var styles$9 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k","inp-num":"input-module_inp-num__vH7HL"};
|
|
1818
|
+
styleInject(css_248z$b);
|
|
1751
1819
|
|
|
1752
1820
|
const InputTypes = {
|
|
1753
1821
|
TEL: 'tel',
|
|
@@ -1824,7 +1892,7 @@ const Input = ({
|
|
|
1824
1892
|
const [innerErrorMessage, setInnerErrorMessage] = React.useState('');
|
|
1825
1893
|
const random = Math.floor(Math.random() * 1000 + 1);
|
|
1826
1894
|
const configStyles = compereConfigs();
|
|
1827
|
-
const classProps = classnames__default["default"](className ? className : configStyles.INPUT.className, type === 'number' ? styles$
|
|
1895
|
+
const classProps = classnames__default["default"](className ? className : configStyles.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']);
|
|
1828
1896
|
const errorShow = styled.keyframes`
|
|
1829
1897
|
100% {
|
|
1830
1898
|
bottom: '-20px';
|
|
@@ -1953,10 +2021,11 @@ const Input = ({
|
|
|
1953
2021
|
}
|
|
1954
2022
|
}
|
|
1955
2023
|
}
|
|
1956
|
-
|
|
1957
|
-
|
|
2024
|
+
const max = configStyles.INPUT.maxLength || maxLength;
|
|
2025
|
+
if (max && currentValue.length > max && type !== 'tel' && type !== 'number') {
|
|
2026
|
+
setInnerValue(currentValue.substr(0, max));
|
|
1958
2027
|
if (change) {
|
|
1959
|
-
change(currentValue.substr(0,
|
|
2028
|
+
change(currentValue.substr(0, max));
|
|
1960
2029
|
}
|
|
1961
2030
|
}
|
|
1962
2031
|
if (regexp && regexpErrorMessage && !maxLength && type !== 'tel') {
|
|
@@ -2097,16 +2166,23 @@ const Input = ({
|
|
|
2097
2166
|
if (maxLength && value.length > maxLength && type !== 'tel') {
|
|
2098
2167
|
setInnerValue(value.substr(0, maxLength));
|
|
2099
2168
|
}
|
|
2169
|
+
const max = configStyles.INPUT.maxLength || maxLength;
|
|
2170
|
+
if (max && value.length > max && type !== 'tel' && type !== 'number') {
|
|
2171
|
+
setInnerValue(value.substr(0, max));
|
|
2172
|
+
if (change) {
|
|
2173
|
+
change(value.substr(0, max));
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2100
2176
|
if (regexp && regexpErrorMessage && !maxLength && type !== 'tel') {
|
|
2101
2177
|
!regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
|
|
2102
2178
|
}
|
|
2103
2179
|
}
|
|
2104
2180
|
}
|
|
2105
|
-
}, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage, telErrorMessage]);
|
|
2181
|
+
}, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage, telErrorMessage, configStyles.INPUT.maxLength]);
|
|
2106
2182
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2107
|
-
className:
|
|
2183
|
+
className: classProps
|
|
2108
2184
|
}, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
2109
|
-
className: `${styles$
|
|
2185
|
+
className: `${styles$9['input-title']}`,
|
|
2110
2186
|
style: {
|
|
2111
2187
|
color: labelColor ? labelColor : configStyles.INPUT.labelColor,
|
|
2112
2188
|
fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
|
|
@@ -2116,7 +2192,7 @@ const Input = ({
|
|
|
2116
2192
|
marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
|
|
2117
2193
|
}
|
|
2118
2194
|
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2119
|
-
className: `${styles$
|
|
2195
|
+
className: `${styles$9['input-content']}`,
|
|
2120
2196
|
style: {
|
|
2121
2197
|
width: width ? width : configStyles.INPUT.width,
|
|
2122
2198
|
borderRadius: radius ? radius : configStyles.INPUT.radius,
|
|
@@ -2158,7 +2234,6 @@ const Input = ({
|
|
|
2158
2234
|
}
|
|
2159
2235
|
}, "+374") : '', /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
|
|
2160
2236
|
value: innerValue,
|
|
2161
|
-
className: classProps,
|
|
2162
2237
|
onInput: handleChange,
|
|
2163
2238
|
disabled: disabled ? disabled : '',
|
|
2164
2239
|
name: name ? name : `tui_${random}_tui`,
|
|
@@ -2276,9 +2351,9 @@ Input.defaultProps = {
|
|
|
2276
2351
|
type: 'text'
|
|
2277
2352
|
};
|
|
2278
2353
|
|
|
2279
|
-
var css_248z$
|
|
2280
|
-
var styles$
|
|
2281
|
-
styleInject(css_248z$
|
|
2354
|
+
var css_248z$a = ".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}";
|
|
2355
|
+
var styles$8 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
|
|
2356
|
+
styleInject(css_248z$a);
|
|
2282
2357
|
|
|
2283
2358
|
const Radio = ({
|
|
2284
2359
|
disabled,
|
|
@@ -2291,11 +2366,11 @@ const Radio = ({
|
|
|
2291
2366
|
label,
|
|
2292
2367
|
...props
|
|
2293
2368
|
}) => {
|
|
2294
|
-
const classProps = classnames__default["default"](styles$
|
|
2369
|
+
const classProps = classnames__default["default"](styles$8.checkbox, className);
|
|
2295
2370
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
2296
2371
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, parseData.map((element, id) => {
|
|
2297
2372
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
2298
|
-
className: `${styles$
|
|
2373
|
+
className: `${styles$8['radio-wrap']} radio-wrap-rem`,
|
|
2299
2374
|
key: element.value
|
|
2300
2375
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
2301
2376
|
type: "radio",
|
|
@@ -2306,9 +2381,9 @@ const Radio = ({
|
|
|
2306
2381
|
value: value ? value : element.value,
|
|
2307
2382
|
name: name ? name : element.name
|
|
2308
2383
|
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2309
|
-
className: `${styles$
|
|
2384
|
+
className: `${styles$8['radio-checkmark']} radio-checkmark-rem`
|
|
2310
2385
|
}), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2311
|
-
className: styles$
|
|
2386
|
+
className: styles$8.labelRadio
|
|
2312
2387
|
}, label ? label : element.label) : '');
|
|
2313
2388
|
}));
|
|
2314
2389
|
};
|
|
@@ -2331,7 +2406,6 @@ Radio.defaultProps = {
|
|
|
2331
2406
|
|
|
2332
2407
|
const Button = ({
|
|
2333
2408
|
icon,
|
|
2334
|
-
hoverIcon,
|
|
2335
2409
|
size,
|
|
2336
2410
|
type,
|
|
2337
2411
|
font,
|
|
@@ -2349,6 +2423,7 @@ const Button = ({
|
|
|
2349
2423
|
disabled,
|
|
2350
2424
|
className,
|
|
2351
2425
|
boxSizing,
|
|
2426
|
+
hoverIcon,
|
|
2352
2427
|
hoverColor,
|
|
2353
2428
|
transition,
|
|
2354
2429
|
contentWidth,
|
|
@@ -2368,7 +2443,7 @@ const Button = ({
|
|
|
2368
2443
|
}
|
|
2369
2444
|
}, []);
|
|
2370
2445
|
const configStyles = compereConfigs();
|
|
2371
|
-
const classProps = classnames__default["default"](className);
|
|
2446
|
+
const classProps = classnames__default["default"](className ? className : configStyles.BUTTON.className);
|
|
2372
2447
|
const handleMouseEnter = () => {
|
|
2373
2448
|
setIsHover(true);
|
|
2374
2449
|
};
|
|
@@ -2378,6 +2453,7 @@ const Button = ({
|
|
|
2378
2453
|
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2379
2454
|
style: {
|
|
2380
2455
|
display: 'flex',
|
|
2456
|
+
outline: 'none',
|
|
2381
2457
|
alignItems: 'center',
|
|
2382
2458
|
justifyContent: 'center',
|
|
2383
2459
|
fontSize: size ? size : configStyles.BUTTON.size,
|
|
@@ -2459,9 +2535,9 @@ const SvgArrow = ({
|
|
|
2459
2535
|
fill: fillColor ? fillColor : '#3C393E'
|
|
2460
2536
|
}));
|
|
2461
2537
|
|
|
2462
|
-
var css_248z$
|
|
2463
|
-
var styles$
|
|
2464
|
-
styleInject(css_248z$
|
|
2538
|
+
var css_248z$9 = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:99999999999}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
2539
|
+
var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L","ellipsis":"select-module_ellipsis__uNgol"};
|
|
2540
|
+
styleInject(css_248z$9);
|
|
2465
2541
|
|
|
2466
2542
|
const Select = ({
|
|
2467
2543
|
dots,
|
|
@@ -2528,7 +2604,7 @@ const Select = ({
|
|
|
2528
2604
|
const [newSelected, setNewSelected] = React.useState([]);
|
|
2529
2605
|
const [existOptions, setExistOptions] = React.useState([]);
|
|
2530
2606
|
const configStyles = compereConfigs();
|
|
2531
|
-
const classProps = classnames__default["default"](className);
|
|
2607
|
+
const classProps = classnames__default["default"](className ? className : configStyles.SELECT.className);
|
|
2532
2608
|
const handleOpenClose = () => {
|
|
2533
2609
|
setOpened(!opened);
|
|
2534
2610
|
};
|
|
@@ -2536,7 +2612,9 @@ const Select = ({
|
|
|
2536
2612
|
onChange({});
|
|
2537
2613
|
setNewSelected([]);
|
|
2538
2614
|
const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
|
|
2539
|
-
item
|
|
2615
|
+
if (hasOwnerProperty(item, 'checked')) {
|
|
2616
|
+
item.checked = false;
|
|
2617
|
+
}
|
|
2540
2618
|
return item;
|
|
2541
2619
|
});
|
|
2542
2620
|
setExistOptions(clearedOptions);
|
|
@@ -2647,7 +2725,7 @@ const Select = ({
|
|
|
2647
2725
|
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2648
2726
|
ref: ref
|
|
2649
2727
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2650
|
-
className: styles$
|
|
2728
|
+
className: styles$7['select-content']
|
|
2651
2729
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2652
2730
|
style: {
|
|
2653
2731
|
cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
|
|
@@ -2665,9 +2743,9 @@ const Select = ({
|
|
|
2665
2743
|
onClick: disabled ? _ => _ : () => handleOpenClose(),
|
|
2666
2744
|
onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
|
|
2667
2745
|
onMouseLeave: disabled ? _ => _ : () => handleMouseLeave(),
|
|
2668
|
-
className: `${styles$
|
|
2746
|
+
className: `${styles$7['select-content-top']}`
|
|
2669
2747
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2670
|
-
className: `${styles$
|
|
2748
|
+
className: `${styles$7['select-content-top-text']}`,
|
|
2671
2749
|
style: {
|
|
2672
2750
|
whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
|
|
2673
2751
|
overflow: 'hidden',
|
|
@@ -2683,9 +2761,9 @@ const Select = ({
|
|
|
2683
2761
|
}
|
|
2684
2762
|
}
|
|
2685
2763
|
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2686
|
-
className: `${styles$
|
|
2764
|
+
className: `${styles$7['select-content-top-icon']}`
|
|
2687
2765
|
}, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default["default"].createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : configStyles.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2688
|
-
className: `${styles$
|
|
2766
|
+
className: `${styles$7['close-icon']}`,
|
|
2689
2767
|
onClick: disabled ? _ => _ : handleClearSelect,
|
|
2690
2768
|
style: {
|
|
2691
2769
|
marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
|
|
@@ -2694,7 +2772,7 @@ const Select = ({
|
|
|
2694
2772
|
style: {
|
|
2695
2773
|
transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
2696
2774
|
},
|
|
2697
|
-
className: `${styles$
|
|
2775
|
+
className: `${styles$7['arrow-icon']}`
|
|
2698
2776
|
}, arrowIcon ? arrowIcon : /*#__PURE__*/React__default["default"].createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2699
2777
|
style: {
|
|
2700
2778
|
boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
|
|
@@ -2702,9 +2780,9 @@ const Select = ({
|
|
|
2702
2780
|
backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
|
|
2703
2781
|
top: selectedMinHeight ? selectedMinHeight.includes('rem') ? parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 3)) + 0.6 + 'rem' : parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 2)) + 6 + 'px' : configStyles.SELECT.selectedMinHeight.includes('rem') ? parseFloat(configStyles.SELECT.selectedMinHeight.substr(0, configStyles.SELECT.selectedMinHeight.length - 3)) + 0.6 + 'rem' : parseFloat(configStyles.SELECT.selectedMinHeight.substr(0, configStyles.SELECT.selectedMinHeight.length - 2)) + 6 + 'px'
|
|
2704
2782
|
},
|
|
2705
|
-
className: `${styles$
|
|
2783
|
+
className: `${styles$7['select-content-bottom']}`
|
|
2706
2784
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2707
|
-
className: `${styles$
|
|
2785
|
+
className: `${styles$7['select-content-bottom-inner']}`
|
|
2708
2786
|
}, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
|
|
2709
2787
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2710
2788
|
key: i,
|
|
@@ -2713,7 +2791,7 @@ const Select = ({
|
|
|
2713
2791
|
onClick: disabled ? _ => _ : () => handleSelectItem(option),
|
|
2714
2792
|
onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
|
|
2715
2793
|
onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
|
|
2716
|
-
className: `${styles$
|
|
2794
|
+
className: `${styles$7['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$7['ellipsis'] : ''}`,
|
|
2717
2795
|
style: {
|
|
2718
2796
|
overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
|
|
2719
2797
|
color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
|
|
@@ -2895,9 +2973,9 @@ const SvgToasterSuccess = ({
|
|
|
2895
2973
|
fill: fillColor ? fillColor : '#0DA574'
|
|
2896
2974
|
}));
|
|
2897
2975
|
|
|
2898
|
-
var css_248z$
|
|
2899
|
-
var styles$
|
|
2900
|
-
styleInject(css_248z$
|
|
2976
|
+
var css_248z$8 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}";
|
|
2977
|
+
var styles$6 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","notify-title":"toaster-module_notify-title__8lFLy","notify-desc":"toaster-module_notify-desc__bcWe2","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO"};
|
|
2978
|
+
styleInject(css_248z$8);
|
|
2901
2979
|
|
|
2902
2980
|
let wWidth$1 = window.innerWidth;
|
|
2903
2981
|
const ToasterType = {
|
|
@@ -2963,8 +3041,8 @@ const Toast = ({
|
|
|
2963
3041
|
justifyContent: 'space-between'
|
|
2964
3042
|
},
|
|
2965
3043
|
className: `
|
|
2966
|
-
${styles$
|
|
2967
|
-
${position === 'top-left' ? showToaster ? styles$
|
|
3044
|
+
${styles$6['notify-block']}
|
|
3045
|
+
${position === 'top-left' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'top-right' ? showToaster ? styles$6['bounce-in-right'] : styles$6['bounce-out-right'] : position === 'top-center' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'bottom-left' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'bottom-right' ? showToaster ? styles$6['bounce-in-right'] : styles$6['bounce-out-right'] : position === 'bottom-center' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : ''}
|
|
2968
3046
|
`
|
|
2969
3047
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2970
3048
|
style: {
|
|
@@ -2990,7 +3068,7 @@ const Toast = ({
|
|
|
2990
3068
|
lineHeight: '22px',
|
|
2991
3069
|
fontStyle: 'normal'
|
|
2992
3070
|
},
|
|
2993
|
-
className: styles$
|
|
3071
|
+
className: styles$6['notify-title']
|
|
2994
3072
|
}, title ? title : ''), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2995
3073
|
style: {
|
|
2996
3074
|
fontWeight: 500,
|
|
@@ -3001,7 +3079,7 @@ const Toast = ({
|
|
|
3001
3079
|
fontFamily: '',
|
|
3002
3080
|
opacity: 0.8
|
|
3003
3081
|
},
|
|
3004
|
-
className: styles$
|
|
3082
|
+
className: styles$6['notify-desc']
|
|
3005
3083
|
}, description ? description : '')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3006
3084
|
onClick: () => handleCloseToaster(ref),
|
|
3007
3085
|
style: {
|
|
@@ -3064,17 +3142,17 @@ const createToast = ({
|
|
|
3064
3142
|
description
|
|
3065
3143
|
});
|
|
3066
3144
|
ReactDOM__default["default"].render(newElem, toastBlock);
|
|
3067
|
-
if (!document.getElementById(styles$
|
|
3145
|
+
if (!document.getElementById(styles$6[position]) || document.getElementById(styles$6[position]) == null) {
|
|
3068
3146
|
toastParentBlock = document.createElement('div');
|
|
3069
3147
|
toastParentBlock.style.position = 'fixed';
|
|
3070
3148
|
toastParentBlock.style.display = 'flex';
|
|
3071
3149
|
toastParentBlock.style.zIndex = 999999999999;
|
|
3072
3150
|
toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
|
|
3073
|
-
toastParentBlock.setAttribute('id', styles$
|
|
3151
|
+
toastParentBlock.setAttribute('id', styles$6[position]);
|
|
3074
3152
|
toastParentBlock.appendChild(toastBlock);
|
|
3075
3153
|
toastify.appendChild(toastParentBlock);
|
|
3076
3154
|
} else {
|
|
3077
|
-
document.getElementById(styles$
|
|
3155
|
+
document.getElementById(styles$6[position]).appendChild(toastBlock);
|
|
3078
3156
|
}
|
|
3079
3157
|
};
|
|
3080
3158
|
const toast = {
|
|
@@ -3135,7 +3213,11 @@ const toast = {
|
|
|
3135
3213
|
});
|
|
3136
3214
|
}
|
|
3137
3215
|
};
|
|
3138
|
-
const Toaster = (
|
|
3216
|
+
const Toaster = ({
|
|
3217
|
+
className
|
|
3218
|
+
}) => {
|
|
3219
|
+
const configStyles = compereConfigs();
|
|
3220
|
+
const classProps = classnames__default["default"](className ? className : configStyles.TOASTER.className);
|
|
3139
3221
|
window.addEventListener('popstate', () => {
|
|
3140
3222
|
if (path !== window.location.href) {
|
|
3141
3223
|
if (!toastify) {
|
|
@@ -3152,6 +3234,7 @@ const Toaster = () => {
|
|
|
3152
3234
|
};
|
|
3153
3235
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3154
3236
|
onClick: handleToasterClick,
|
|
3237
|
+
className: classProps,
|
|
3155
3238
|
id: "toastify"
|
|
3156
3239
|
});
|
|
3157
3240
|
};
|
|
@@ -3175,9 +3258,9 @@ const SvgTooltip = ({
|
|
|
3175
3258
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
3176
3259
|
}));
|
|
3177
3260
|
|
|
3178
|
-
var css_248z$
|
|
3179
|
-
var styles$
|
|
3180
|
-
styleInject(css_248z$
|
|
3261
|
+
var css_248z$7 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
|
|
3262
|
+
var styles$5 = {"tooltip-block":"tooltip-module_tooltip-block__v8U9u","tooltip":"tooltip-module_tooltip__emM6A","tooltip-rel":"tooltip-module_tooltip-rel__to9gq","tooltip-decor":"tooltip-module_tooltip-decor__qvt7t"};
|
|
3263
|
+
styleInject(css_248z$7);
|
|
3181
3264
|
|
|
3182
3265
|
const Tooltip = ({
|
|
3183
3266
|
type,
|
|
@@ -3200,7 +3283,7 @@ const Tooltip = ({
|
|
|
3200
3283
|
const [checkTooltipHeight, setCheckTooltipHeight] = React.useState(0);
|
|
3201
3284
|
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
3202
3285
|
const configStyles = compereConfigs();
|
|
3203
|
-
const classProps = classnames__default["default"](styles$
|
|
3286
|
+
const classProps = classnames__default["default"](styles$5['tooltip-block'], className ? className : configStyles.TOOLTIP.className);
|
|
3204
3287
|
const handleShow = () => {
|
|
3205
3288
|
setShowTooltip(!showTooltip);
|
|
3206
3289
|
};
|
|
@@ -3212,7 +3295,7 @@ const Tooltip = ({
|
|
|
3212
3295
|
tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
|
|
3213
3296
|
}, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
|
|
3214
3297
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3215
|
-
className:
|
|
3298
|
+
className: classProps,
|
|
3216
3299
|
style: {
|
|
3217
3300
|
width: width ? width : configStyles.TOOLTIP.width,
|
|
3218
3301
|
height: height ? height : configStyles.TOOLTIP.height,
|
|
@@ -3221,7 +3304,7 @@ const Tooltip = ({
|
|
|
3221
3304
|
}
|
|
3222
3305
|
}, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3223
3306
|
ref: tooltipRef,
|
|
3224
|
-
className:
|
|
3307
|
+
className: `${styles$5['tooltip']}`,
|
|
3225
3308
|
style: {
|
|
3226
3309
|
width: tooltipWidth ? tooltipWidth : configStyles.TOOLTIP.tooltipWidth,
|
|
3227
3310
|
borderRadius: tooltipRadius ? tooltipRadius : configStyles.TOOLTIP.tooltipRadius,
|
|
@@ -3230,9 +3313,9 @@ const Tooltip = ({
|
|
|
3230
3313
|
left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
|
|
3231
3314
|
}
|
|
3232
3315
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3233
|
-
className: `${styles$
|
|
3316
|
+
className: `${styles$5['tooltip-rel']}`
|
|
3234
3317
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3235
|
-
className: `${styles$
|
|
3318
|
+
className: `${styles$5['tooltip-decor']}`,
|
|
3236
3319
|
style: {
|
|
3237
3320
|
backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
|
|
3238
3321
|
left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
|
|
@@ -3309,19 +3392,21 @@ const SvgCaptchaArrowDown = ({
|
|
|
3309
3392
|
fill: fillColor ? fillColor : '#00236A'
|
|
3310
3393
|
}));
|
|
3311
3394
|
|
|
3312
|
-
var css_248z$
|
|
3313
|
-
var styles$
|
|
3314
|
-
styleInject(css_248z$
|
|
3395
|
+
var css_248z$6 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
|
|
3396
|
+
var styles$4 = {"start-point":"captcha-module_start-point__LkOqy","range":"captcha-module_range__k24I2","range-default":"captcha-module_range-default__-O0QD","range-error":"captcha-module_range-error__FKMfG","range-success":"captcha-module_range-success__VzLPq"};
|
|
3397
|
+
styleInject(css_248z$6);
|
|
3315
3398
|
|
|
3316
3399
|
const Captcha = ({
|
|
3317
3400
|
size,
|
|
3318
3401
|
color,
|
|
3319
3402
|
range,
|
|
3320
3403
|
label,
|
|
3404
|
+
className,
|
|
3321
3405
|
getRange
|
|
3322
3406
|
}) => {
|
|
3323
3407
|
const [rangeNumber, setRangeNumber] = React.useState(0);
|
|
3324
3408
|
const [rangeProgress, setRangeProgress] = React.useState(0);
|
|
3409
|
+
const classProps = classnames__default["default"](className ? className : configStyles.CAPTCHA.className);
|
|
3325
3410
|
const configStyles = compereConfigs();
|
|
3326
3411
|
const handleRange = e => {
|
|
3327
3412
|
const value = e.target.value;
|
|
@@ -3344,7 +3429,9 @@ const Captcha = ({
|
|
|
3344
3429
|
setRangeNumber(Math.min(roundedRange, 100));
|
|
3345
3430
|
}
|
|
3346
3431
|
}, [range, getRange]);
|
|
3347
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
3432
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3433
|
+
className: classProps
|
|
3434
|
+
}, label && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3348
3435
|
style: {
|
|
3349
3436
|
fontSize: size ? size : configStyles.Captcha.size,
|
|
3350
3437
|
color: color ? color : configStyles.Captcha.color
|
|
@@ -3374,7 +3461,7 @@ const Captcha = ({
|
|
|
3374
3461
|
alignItems: 'center',
|
|
3375
3462
|
zIndex: 1
|
|
3376
3463
|
},
|
|
3377
|
-
className: styles$
|
|
3464
|
+
className: styles$4['start-point']
|
|
3378
3465
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3379
3466
|
style: {
|
|
3380
3467
|
position: 'absolute',
|
|
@@ -3400,8 +3487,8 @@ const Captcha = ({
|
|
|
3400
3487
|
backgroundColor: 'transparent'
|
|
3401
3488
|
},
|
|
3402
3489
|
className: `
|
|
3403
|
-
${styles$
|
|
3404
|
-
${+rangeProgress === rangeNumber ? styles$
|
|
3490
|
+
${styles$4['range']}
|
|
3491
|
+
${+rangeProgress === rangeNumber ? styles$4['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$4['range-error'] : styles$4['range-default']}
|
|
3405
3492
|
`,
|
|
3406
3493
|
onInput: handleRange
|
|
3407
3494
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3431,24 +3518,26 @@ Captcha.propTypes = {
|
|
|
3431
3518
|
getRange: PropTypes__default["default"].func.isRequired
|
|
3432
3519
|
};
|
|
3433
3520
|
|
|
3434
|
-
var css_248z$
|
|
3435
|
-
var styles$
|
|
3436
|
-
styleInject(css_248z$
|
|
3521
|
+
var css_248z$5 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;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}";
|
|
3522
|
+
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"};
|
|
3523
|
+
styleInject(css_248z$5);
|
|
3437
3524
|
|
|
3438
3525
|
const Stepper = ({
|
|
3439
3526
|
stepLength,
|
|
3440
|
-
activeSteps
|
|
3527
|
+
activeSteps,
|
|
3528
|
+
className
|
|
3441
3529
|
}) => {
|
|
3530
|
+
const configStyles = compereConfigs();
|
|
3442
3531
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3443
|
-
className: `${styles$
|
|
3532
|
+
className: classnames__default["default"](className ? className : configStyles.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`)
|
|
3444
3533
|
}, (() => {
|
|
3445
3534
|
let steppers = [];
|
|
3446
3535
|
for (let step = 1; step <= stepLength; step++) {
|
|
3447
3536
|
steppers.push( /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3448
|
-
className: classnames__default["default"](`${step <= activeSteps ? styles$
|
|
3537
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
|
|
3449
3538
|
key: step
|
|
3450
3539
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3451
|
-
className: classnames__default["default"](`${step <= activeSteps ? styles$
|
|
3540
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
|
|
3452
3541
|
}, step <= activeSteps ? step : '')));
|
|
3453
3542
|
}
|
|
3454
3543
|
return steppers;
|
|
@@ -3949,6 +4038,7 @@ const NewFile = ({
|
|
|
3949
4038
|
disabled,
|
|
3950
4039
|
multiple,
|
|
3951
4040
|
required,
|
|
4041
|
+
className,
|
|
3952
4042
|
errorSize,
|
|
3953
4043
|
labelSize,
|
|
3954
4044
|
removeFile,
|
|
@@ -3993,13 +4083,14 @@ const NewFile = ({
|
|
|
3993
4083
|
}) => {
|
|
3994
4084
|
const ref = React.useRef(null);
|
|
3995
4085
|
const inpRef = React.useRef(null);
|
|
4086
|
+
const configStyles = compereConfigs();
|
|
3996
4087
|
const memoizedItems = React.useMemo(() => filesArray, [filesArray]);
|
|
4088
|
+
const classProps = classnames__default["default"](className ? className : configStyles.FILE.className);
|
|
3997
4089
|
const [error, setError] = React.useState('');
|
|
3998
4090
|
const [isHover, setIsHover] = React.useState(false);
|
|
3999
4091
|
const [singleFile, setSingleFile] = React.useState(null);
|
|
4000
4092
|
const [choosenFileCount, setChoosenFileCount] = React.useState(0);
|
|
4001
4093
|
const [image, setImage] = React.useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url : 'pdf' : null : null);
|
|
4002
|
-
const configStyles = compereConfigs();
|
|
4003
4094
|
const handleRemoveComponent = () => {
|
|
4004
4095
|
if (!multiple) {
|
|
4005
4096
|
removeFile && removeFile(singleFile);
|
|
@@ -4202,8 +4293,9 @@ const NewFile = ({
|
|
|
4202
4293
|
ref: ref,
|
|
4203
4294
|
style: {
|
|
4204
4295
|
width: '100%',
|
|
4205
|
-
maxWidth: maxWidth ? maxWidth : configStyles.
|
|
4206
|
-
}
|
|
4296
|
+
maxWidth: maxWidth ? maxWidth : configStyles.FILE.maxWidth
|
|
4297
|
+
},
|
|
4298
|
+
className: classProps
|
|
4207
4299
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4208
4300
|
style: {
|
|
4209
4301
|
display: 'flex',
|
|
@@ -4213,8 +4305,8 @@ const NewFile = ({
|
|
|
4213
4305
|
}
|
|
4214
4306
|
}, label && /*#__PURE__*/React__default["default"].createElement("label", {
|
|
4215
4307
|
style: {
|
|
4216
|
-
color: labelColor ? labelColor : configStyles.
|
|
4217
|
-
fontSize: labelSize ? labelSize : configStyles.
|
|
4308
|
+
color: labelColor ? labelColor : configStyles.FILE.labelColor,
|
|
4309
|
+
fontSize: labelSize ? labelSize : configStyles.FILE.labelSize
|
|
4218
4310
|
}
|
|
4219
4311
|
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4220
4312
|
style: {
|
|
@@ -4230,11 +4322,11 @@ const NewFile = ({
|
|
|
4230
4322
|
boxSizing: 'border-box',
|
|
4231
4323
|
justifyContent: 'center',
|
|
4232
4324
|
cursor: !disabled ? 'pointer' : 'not-allowed',
|
|
4233
|
-
height: height ? height : configStyles.
|
|
4234
|
-
border: border ? border : configStyles.
|
|
4235
|
-
borderRadius: radius ? radius : configStyles.
|
|
4236
|
-
backgroundColor: backgroundColor ? backgroundColor : configStyles.
|
|
4237
|
-
borderColor: error ? errorColor ? errorColor : configStyles.
|
|
4325
|
+
height: height ? height : configStyles.FILE.height,
|
|
4326
|
+
border: border ? border : configStyles.FILE.border,
|
|
4327
|
+
borderRadius: radius ? radius : configStyles.FILE.radius,
|
|
4328
|
+
backgroundColor: backgroundColor ? backgroundColor : configStyles.FILE.backgroundColor,
|
|
4329
|
+
borderColor: error ? errorColor ? errorColor : configStyles.FILE.errorColor : disabled ? borderColor ? borderColor : configStyles.FILE.borderColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.FILE.borderHoverColor : borderColor ? borderColor : configStyles.FILE.borderColor
|
|
4238
4330
|
},
|
|
4239
4331
|
onDrop: handleDrop,
|
|
4240
4332
|
onClick: handleClick,
|
|
@@ -4258,9 +4350,9 @@ const NewFile = ({
|
|
|
4258
4350
|
alignItems: 'center',
|
|
4259
4351
|
flexDirection: 'column',
|
|
4260
4352
|
justifyContent: 'center',
|
|
4261
|
-
color: color ? color : configStyles.
|
|
4262
|
-
fontSize: size ? size : configStyles.
|
|
4263
|
-
fontWeight: weight ? weight : configStyles.
|
|
4353
|
+
color: color ? color : configStyles.FILE.color,
|
|
4354
|
+
fontSize: size ? size : configStyles.FILE.size,
|
|
4355
|
+
fontWeight: weight ? weight : configStyles.FILE.weight
|
|
4264
4356
|
}
|
|
4265
4357
|
}, !multiple && image ? image === 'pdf' ? /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4266
4358
|
src: image,
|
|
@@ -4269,27 +4361,27 @@ const NewFile = ({
|
|
|
4269
4361
|
maxWidth: '100%',
|
|
4270
4362
|
maxHeight: '95%',
|
|
4271
4363
|
objectFit: 'contain',
|
|
4272
|
-
width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.
|
|
4273
|
-
height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.
|
|
4364
|
+
width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.FILE.fileAreaImageWidth,
|
|
4365
|
+
height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.FILE.fileAreaImageHeight
|
|
4274
4366
|
},
|
|
4275
4367
|
alt: "file preview"
|
|
4276
4368
|
}) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SvgUpload, null)), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4277
4369
|
style: {
|
|
4278
4370
|
margin: '0px'
|
|
4279
4371
|
}
|
|
4280
|
-
}, putFileHere ? putFileHere : configStyles.
|
|
4372
|
+
}, putFileHere ? putFileHere : configStyles.FILE.putFileHere, /*#__PURE__*/React__default["default"].createElement("br", null), or ? or : configStyles.FILE.or, ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4281
4373
|
style: {
|
|
4282
|
-
color: uploadColor ? uploadColor : configStyles.
|
|
4374
|
+
color: uploadColor ? uploadColor : configStyles.FILE.uploadColor
|
|
4283
4375
|
}
|
|
4284
|
-
}, upload ? upload : configStyles.
|
|
4376
|
+
}, upload ? upload : configStyles.FILE.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4285
4377
|
style: {
|
|
4286
|
-
marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.
|
|
4378
|
+
marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.FILE.extentionsRowMarginTop
|
|
4287
4379
|
}
|
|
4288
4380
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4289
4381
|
style: {
|
|
4290
4382
|
margin: '0px'
|
|
4291
4383
|
}
|
|
4292
|
-
}, fileSizeText ? fileSizeText : configStyles.
|
|
4384
|
+
}, fileSizeText ? fileSizeText : configStyles.FILE.fileSizeText, " ", maxSize, "\u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4293
4385
|
style: {
|
|
4294
4386
|
position: 'absolute',
|
|
4295
4387
|
top: '0px',
|
|
@@ -4302,9 +4394,9 @@ const NewFile = ({
|
|
|
4302
4394
|
boxSizing: 'border-box',
|
|
4303
4395
|
alignItems: 'flex-start',
|
|
4304
4396
|
justifyContent: 'flex-end',
|
|
4305
|
-
borderRadius: radius ? radius : configStyles.
|
|
4397
|
+
borderRadius: radius ? radius : configStyles.FILE.radius,
|
|
4306
4398
|
display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
|
|
4307
|
-
backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.
|
|
4399
|
+
backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.FILE.hiddenBackgroundColor
|
|
4308
4400
|
},
|
|
4309
4401
|
onClick: handleStopPropagation
|
|
4310
4402
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4316,8 +4408,8 @@ const NewFile = ({
|
|
|
4316
4408
|
style: {
|
|
4317
4409
|
marginTop: '6px',
|
|
4318
4410
|
display: 'inline-block',
|
|
4319
|
-
color: errorColor ? errorColor : configStyles.
|
|
4320
|
-
fontSize: errorSize ? errorSize : configStyles.
|
|
4411
|
+
color: errorColor ? errorColor : configStyles.FILE.errorColor,
|
|
4412
|
+
fontSize: errorSize ? errorSize : configStyles.FILE.errorSize
|
|
4321
4413
|
}
|
|
4322
4414
|
}, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
|
|
4323
4415
|
return /*#__PURE__*/React__default["default"].createElement(FileItem, {
|
|
@@ -4329,20 +4421,20 @@ const NewFile = ({
|
|
|
4329
4421
|
name: item.file.name,
|
|
4330
4422
|
timeForRemoveError: timeForRemoveError,
|
|
4331
4423
|
removeFile: removeFile ? removeFile : _ => _,
|
|
4332
|
-
radius: radius ? radius : configStyles.
|
|
4424
|
+
radius: radius ? radius : configStyles.FILE.radius,
|
|
4333
4425
|
fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
|
|
4334
|
-
progressColor: progressColor ? progressColor : configStyles.
|
|
4335
|
-
listItemHeight: listItemHeight ? listItemHeight : configStyles.
|
|
4336
|
-
listItemPadding: listItemPadding ? listItemPadding : configStyles.
|
|
4337
|
-
progressFontSize: progressFontSize ? progressFontSize : configStyles.
|
|
4338
|
-
listItemErrorSize: listItemErrorSize ? listItemErrorSize : configStyles.
|
|
4339
|
-
listItemErrorColor: listItemErrorColor ? listItemErrorColor : configStyles.
|
|
4340
|
-
progressTrackColor: progressTrackColor ? progressTrackColor : configStyles.
|
|
4341
|
-
progressFailedColor: progressFailedColor ? progressFailedColor : configStyles.
|
|
4342
|
-
progressSuccessColor: progressSuccessColor ? progressSuccessColor : configStyles.
|
|
4343
|
-
progressLoadingColor: progressLoadingColor ? progressLoadingColor : configStyles.
|
|
4344
|
-
listItemBackgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.
|
|
4345
|
-
listItemBackgroundErrorColor: listItemBackgroundErrorColor ? listItemBackgroundErrorColor : configStyles.
|
|
4426
|
+
progressColor: progressColor ? progressColor : configStyles.FILE.progressColor,
|
|
4427
|
+
listItemHeight: listItemHeight ? listItemHeight : configStyles.FILE.listItemHeight,
|
|
4428
|
+
listItemPadding: listItemPadding ? listItemPadding : configStyles.FILE.listItemPadding,
|
|
4429
|
+
progressFontSize: progressFontSize ? progressFontSize : configStyles.FILE.progressFontSize,
|
|
4430
|
+
listItemErrorSize: listItemErrorSize ? listItemErrorSize : configStyles.FILE.listItemErrorSize,
|
|
4431
|
+
listItemErrorColor: listItemErrorColor ? listItemErrorColor : configStyles.FILE.listItemErrorColor,
|
|
4432
|
+
progressTrackColor: progressTrackColor ? progressTrackColor : configStyles.FILE.progressTrackColor,
|
|
4433
|
+
progressFailedColor: progressFailedColor ? progressFailedColor : configStyles.FILE.progressFailedColor,
|
|
4434
|
+
progressSuccessColor: progressSuccessColor ? progressSuccessColor : configStyles.FILE.progressSuccessColor,
|
|
4435
|
+
progressLoadingColor: progressLoadingColor ? progressLoadingColor : configStyles.FILE.progressLoadingColor,
|
|
4436
|
+
listItemBackgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.FILE.listItemBackgroundColor,
|
|
4437
|
+
listItemBackgroundErrorColor: listItemBackgroundErrorColor ? listItemBackgroundErrorColor : configStyles.FILE.listItemBackgroundErrorColor
|
|
4346
4438
|
});
|
|
4347
4439
|
}));
|
|
4348
4440
|
};
|
|
@@ -4359,8 +4451,8 @@ NewFile.propTypes = {
|
|
|
4359
4451
|
upload: PropTypes__default["default"].string,
|
|
4360
4452
|
weight: PropTypes__default["default"].number,
|
|
4361
4453
|
maxSize: PropTypes__default["default"].number,
|
|
4362
|
-
maxWidth: PropTypes__default["default"].string,
|
|
4363
4454
|
removeFile: PropTypes__default["default"].func,
|
|
4455
|
+
className: PropTypes__default["default"].string,
|
|
4364
4456
|
errorSize: PropTypes__default["default"].string,
|
|
4365
4457
|
labelSize: PropTypes__default["default"].string,
|
|
4366
4458
|
labelColor: PropTypes__default["default"].string,
|
|
@@ -4409,89 +4501,94 @@ NewFile.defaultProps = {
|
|
|
4409
4501
|
fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
|
|
4410
4502
|
};
|
|
4411
4503
|
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4504
|
+
const DirectionMode = {
|
|
4505
|
+
VERTICAL: 'vertical',
|
|
4506
|
+
HORINZONTAL: 'horizontal'
|
|
4507
|
+
};
|
|
4416
4508
|
const Checkbox = ({
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
className,
|
|
4420
|
-
jsonData,
|
|
4421
|
-
onChange,
|
|
4509
|
+
data,
|
|
4510
|
+
getData,
|
|
4422
4511
|
keyNames,
|
|
4423
|
-
|
|
4424
|
-
|
|
4512
|
+
className,
|
|
4513
|
+
direction,
|
|
4514
|
+
checkedIcon,
|
|
4515
|
+
unCheckedIcon,
|
|
4516
|
+
labelMarginLeft,
|
|
4517
|
+
checkBoxMarginBottom
|
|
4425
4518
|
}) => {
|
|
4426
|
-
const
|
|
4427
|
-
const
|
|
4428
|
-
const [
|
|
4429
|
-
|
|
4430
|
-
const
|
|
4431
|
-
|
|
4432
|
-
|
|
4519
|
+
const configStyles = compereConfigs();
|
|
4520
|
+
const [innerData, setInnerData] = React.useState([]);
|
|
4521
|
+
const classProps = classnames__default["default"](className ? className : configStyles.CHECKBOX.className);
|
|
4522
|
+
const handleSendData = (_, e, index) => {
|
|
4523
|
+
const dataForSend = {};
|
|
4524
|
+
setInnerData(prev => prev.map((innerItem, innerIndex) => {
|
|
4525
|
+
if (innerIndex === index) {
|
|
4526
|
+
innerItem[keyNames.checked] = !innerItem[keyNames.checked];
|
|
4527
|
+
dataForSend.item = innerItem;
|
|
4528
|
+
dataForSend.itemIndex = innerIndex;
|
|
4529
|
+
dataForSend.itemId = innerItem[keyNames.id];
|
|
4530
|
+
}
|
|
4531
|
+
return innerItem;
|
|
4532
|
+
}));
|
|
4533
|
+
dataForSend.checkboxArr = innerData;
|
|
4534
|
+
getData && getData(dataForSend);
|
|
4535
|
+
};
|
|
4433
4536
|
React.useEffect(() => {
|
|
4434
|
-
|
|
4537
|
+
if (Array.isArray(data)) {
|
|
4538
|
+
setInnerData(data);
|
|
4539
|
+
} else {
|
|
4540
|
+
setInnerData([data]);
|
|
4541
|
+
}
|
|
4435
4542
|
}, [data]);
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4543
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4544
|
+
style: {
|
|
4545
|
+
width: '100%',
|
|
4546
|
+
display: 'flex',
|
|
4547
|
+
flexDirection: direction === 'vertical' ? 'column' : 'row'
|
|
4548
|
+
},
|
|
4549
|
+
className: classProps
|
|
4550
|
+
}, innerData && innerData.length > 0 && innerData.map((item, index) => {
|
|
4551
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4552
|
+
key: `TUI_${index}_checkbox`,
|
|
4553
|
+
style: {
|
|
4554
|
+
width: 'fit-content',
|
|
4555
|
+
marginBottom: direction === 'vertical' ? checkBoxMarginBottom ? checkBoxMarginBottom : configStyles.CHECKBOX.checkBoxMarginBottom : '0px'
|
|
4441
4556
|
}
|
|
4442
|
-
}
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
} : '';
|
|
4457
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, data.map(element => {
|
|
4458
|
-
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
4459
|
-
className: `${styles$3['checkbox-wrap']} checkbox-wrap-rem`,
|
|
4460
|
-
key: element.value
|
|
4461
|
-
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
4462
|
-
type: "checkbox",
|
|
4463
|
-
className: classProps,
|
|
4464
|
-
disabled: disabled,
|
|
4465
|
-
required: required,
|
|
4466
|
-
value: keyNames.value ? element[keyNames.value] : '',
|
|
4467
|
-
name: keyNames.name ? element[keyNames.name] : '',
|
|
4468
|
-
id: keyNames.id ? element[keyNames.id] : '',
|
|
4469
|
-
onChange: handleChange,
|
|
4470
|
-
onClick: onClick ? onClick : () => {},
|
|
4471
|
-
defaultChecked: element.checked
|
|
4472
|
-
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4473
|
-
className: `${styles$3['checkmark']} checkmark-rem`
|
|
4474
|
-
}), element[keyNames.label] ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
4475
|
-
className: styles$3.labelCheckbox,
|
|
4476
|
-
htmlFor: element[keyNames.id]
|
|
4477
|
-
}, element[keyNames.label]) : '');
|
|
4557
|
+
}, /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
4558
|
+
data: item,
|
|
4559
|
+
index: index,
|
|
4560
|
+
checkedColor: "#00236A",
|
|
4561
|
+
unCheckedColor: "#D1D1D1",
|
|
4562
|
+
checkedIcon: checkedIcon,
|
|
4563
|
+
label: item[keyNames.label],
|
|
4564
|
+
unCheckedIcon: unCheckedIcon,
|
|
4565
|
+
handleChecked: handleSendData,
|
|
4566
|
+
checked: item[keyNames.checked],
|
|
4567
|
+
disabled: item[keyNames.disabled],
|
|
4568
|
+
ignoreDisabledForChecked: item[keyNames.ignoreDisabledForChecked],
|
|
4569
|
+
labelMarginLeft: labelMarginLeft ? labelMarginLeft : configStyles.CHECKBOX.labelMarginLeft
|
|
4570
|
+
}));
|
|
4478
4571
|
}));
|
|
4479
4572
|
};
|
|
4480
4573
|
Checkbox.propTypes = {
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
label: PropTypes__default["default"].string,
|
|
4490
|
-
keyNames: PropTypes__default["default"].object
|
|
4574
|
+
getData: PropTypes__default["default"].func,
|
|
4575
|
+
keyNames: PropTypes__default["default"].object,
|
|
4576
|
+
checkedIcon: PropTypes__default["default"].element,
|
|
4577
|
+
unCheckedIcon: PropTypes__default["default"].element,
|
|
4578
|
+
labelMarginLeft: PropTypes__default["default"].string,
|
|
4579
|
+
checkBoxMarginBottom: PropTypes__default["default"].string,
|
|
4580
|
+
direction: PropTypes__default["default"].oneOf(Object.values(DirectionMode)),
|
|
4581
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].arrayOf(PropTypes__default["default"].object), PropTypes__default["default"].object])
|
|
4491
4582
|
};
|
|
4492
4583
|
Checkbox.defaultProps = {
|
|
4493
|
-
|
|
4494
|
-
|
|
4584
|
+
direction: 'vertical',
|
|
4585
|
+
keyNames: {
|
|
4586
|
+
id: 'id',
|
|
4587
|
+
label: 'label',
|
|
4588
|
+
checked: 'checked',
|
|
4589
|
+
disabled: 'disabled',
|
|
4590
|
+
ignoreDisabledForChecked: 'ignoreDisabledForChecked'
|
|
4591
|
+
}
|
|
4495
4592
|
};
|
|
4496
4593
|
|
|
4497
4594
|
var css_248z$4 = "textarea{-webkit-appearance:none}textarea::-webkit-scrollbar{width:6px}textarea::-webkit-scrollbar-track{background:#eee}textarea::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-track{border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px}textarea::-webkit-scrollbar-thumb{background:#d1d1d1}";
|
|
@@ -4519,6 +4616,7 @@ const Textarea = ({
|
|
|
4519
4616
|
labelSize,
|
|
4520
4617
|
errorSize,
|
|
4521
4618
|
marginTop,
|
|
4619
|
+
className,
|
|
4522
4620
|
labelColor,
|
|
4523
4621
|
errorColor,
|
|
4524
4622
|
labelWeight,
|
|
@@ -4535,6 +4633,7 @@ const Textarea = ({
|
|
|
4535
4633
|
const [isHover, setIsHover] = React.useState(false);
|
|
4536
4634
|
const [isFocus, setIsFocus] = React.useState(false);
|
|
4537
4635
|
const [innerValue, setInnerValue] = React.useState('');
|
|
4636
|
+
const classProps = classnames__default["default"](className ? className : configStyles.TEXTAREA.className);
|
|
4538
4637
|
const configStyles = compereConfigs();
|
|
4539
4638
|
const handleMouseEnter = () => {
|
|
4540
4639
|
setIsHover(true);
|
|
@@ -4583,7 +4682,8 @@ const Textarea = ({
|
|
|
4583
4682
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4584
4683
|
style: {
|
|
4585
4684
|
width: width ? width : configStyles.TEXTAREA.width
|
|
4586
|
-
}
|
|
4685
|
+
},
|
|
4686
|
+
className: classProps
|
|
4587
4687
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4588
4688
|
style: {
|
|
4589
4689
|
display: 'flex',
|
|
@@ -4660,6 +4760,7 @@ Textarea.propTypes = {
|
|
|
4660
4760
|
maxLength: PropTypes__default["default"].number,
|
|
4661
4761
|
labelSize: PropTypes__default["default"].string,
|
|
4662
4762
|
errorSize: PropTypes__default["default"].string,
|
|
4763
|
+
className: PropTypes__default["default"].string,
|
|
4663
4764
|
labelColor: PropTypes__default["default"].string,
|
|
4664
4765
|
errorColor: PropTypes__default["default"].string,
|
|
4665
4766
|
labelWeight: PropTypes__default["default"].string,
|
|
@@ -4711,7 +4812,7 @@ const Typography = ({
|
|
|
4711
4812
|
...props
|
|
4712
4813
|
}) => {
|
|
4713
4814
|
const configStyles = compereConfigs();
|
|
4714
|
-
const classProps = classnames__default["default"](className);
|
|
4815
|
+
const classProps = classnames__default["default"](className ? className : configStyles.TYPOGRAPHY.className);
|
|
4715
4816
|
const [isHover, setIsHover] = React.useState(false);
|
|
4716
4817
|
const [validVariant, setValidVariant] = React.useState(false);
|
|
4717
4818
|
React.useEffect(() => {
|
|
@@ -4865,6 +4966,7 @@ const Pagination = ({
|
|
|
4865
4966
|
totalCount,
|
|
4866
4967
|
currentPage
|
|
4867
4968
|
}) => {
|
|
4969
|
+
const configStyles = compereConfigs();
|
|
4868
4970
|
const [inpVal, setInpVal] = React.useState('');
|
|
4869
4971
|
const [error, setError] = React.useState(false);
|
|
4870
4972
|
const [currentPageNumber, setCurrentPage] = React.useState(currentPage);
|
|
@@ -4891,7 +4993,7 @@ const Pagination = ({
|
|
|
4891
4993
|
if (currentPageNumber === 0 || paginationRange?.length < 2) {
|
|
4892
4994
|
return null;
|
|
4893
4995
|
}
|
|
4894
|
-
const classProps = classnames__default["default"](styles$2.list, className ? className : `${styles$2['pagination-bar']} pagination-bar-rem`);
|
|
4996
|
+
const classProps = classnames__default["default"](styles$2.list, className ? className : configStyles.PAGINATION.className, `${styles$2['pagination-bar']} pagination-bar-rem`);
|
|
4895
4997
|
const onNext = () => {
|
|
4896
4998
|
onPageChange(currentPageNumber + 1);
|
|
4897
4999
|
};
|
|
@@ -4945,10 +5047,9 @@ const Pagination = ({
|
|
|
4945
5047
|
margin: '0 auto',
|
|
4946
5048
|
alignItems: 'center',
|
|
4947
5049
|
justifyContent: 'center'
|
|
4948
|
-
}
|
|
4949
|
-
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
5050
|
+
},
|
|
4950
5051
|
className: classProps
|
|
4951
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
5052
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", null, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4952
5053
|
style: {
|
|
4953
5054
|
transform: 'rotate(180deg)'
|
|
4954
5055
|
},
|
|
@@ -5292,7 +5393,7 @@ const NewAutocomplete = ({
|
|
|
5292
5393
|
setInnerValue(selectedValue[keyNames.name]);
|
|
5293
5394
|
getItem(selectedValue);
|
|
5294
5395
|
};
|
|
5295
|
-
const optionList = /*#__PURE__*/React__default["default"].createElement(
|
|
5396
|
+
const optionList = /*#__PURE__*/React__default["default"].createElement("div", null, show && innerOptions && !disabled ? innerOptions.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5296
5397
|
style: {
|
|
5297
5398
|
left: contentBottomLeft ? contentBottomLeft : configStyles.NEWAUTOCOMPLETE.contentBottomLeft,
|
|
5298
5399
|
width: contentBottomWidth ? contentBottomWidth : configStyles.NEWAUTOCOMPLETE.contentBottomWidth,
|
|
@@ -5382,7 +5483,9 @@ const NewAutocomplete = ({
|
|
|
5382
5483
|
React.useEffect(() => {
|
|
5383
5484
|
setInnerError(errorMessage);
|
|
5384
5485
|
}, [errorMessage]);
|
|
5385
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
5486
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5487
|
+
className: classProps
|
|
5488
|
+
}, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
5386
5489
|
style: {
|
|
5387
5490
|
color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
|
|
5388
5491
|
fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
|
|
@@ -5410,7 +5513,6 @@ const NewAutocomplete = ({
|
|
|
5410
5513
|
onInput: handleChange,
|
|
5411
5514
|
onMouseEnter: handleMouseEnter,
|
|
5412
5515
|
onMouseLeave: handleMouseLeave,
|
|
5413
|
-
className: classProps,
|
|
5414
5516
|
placeholder: placeHolder ? placeHolder : '',
|
|
5415
5517
|
autoComplete: autoComplete ? autoComplete : configStyles.NEWAUTOCOMPLETE.autoComplete,
|
|
5416
5518
|
style: {
|
|
@@ -5528,6 +5630,7 @@ exports.Autocomplate = Autocomplate;
|
|
|
5528
5630
|
exports.Button = Button;
|
|
5529
5631
|
exports.Captcha = Captcha;
|
|
5530
5632
|
exports.Checkbox = Checkbox;
|
|
5633
|
+
exports.DirectionMode = DirectionMode;
|
|
5531
5634
|
exports.File = File;
|
|
5532
5635
|
exports.Input = Input;
|
|
5533
5636
|
exports.InputTypes = InputTypes;
|
|
@@ -5537,7 +5640,6 @@ exports.NewFile = NewFile;
|
|
|
5537
5640
|
exports.Pagination = Pagination;
|
|
5538
5641
|
exports.Radio = Radio;
|
|
5539
5642
|
exports.Select = Select;
|
|
5540
|
-
exports.SingleCheckbox = SingleCheckbox;
|
|
5541
5643
|
exports.Stepper = Stepper;
|
|
5542
5644
|
exports.Table = Table;
|
|
5543
5645
|
exports.Textarea = Textarea;
|