@xaypay/tui 0.0.115 → 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 +347 -253
- package/dist/index.js +347 -253
- 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 +3 -3
- 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 +1 -10
- package/src/components/table/td.js +38 -5
- package/src/components/table/th.js +12 -2
- 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 +38 -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: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$
|
|
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';
|
|
@@ -2112,9 +2180,9 @@ const Input = ({
|
|
|
2112
2180
|
}
|
|
2113
2181
|
}, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage, telErrorMessage, configStyles.INPUT.maxLength]);
|
|
2114
2182
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2115
|
-
className:
|
|
2183
|
+
className: classProps
|
|
2116
2184
|
}, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
2117
|
-
className: `${styles$
|
|
2185
|
+
className: `${styles$9['input-title']}`,
|
|
2118
2186
|
style: {
|
|
2119
2187
|
color: labelColor ? labelColor : configStyles.INPUT.labelColor,
|
|
2120
2188
|
fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
|
|
@@ -2124,7 +2192,7 @@ const Input = ({
|
|
|
2124
2192
|
marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
|
|
2125
2193
|
}
|
|
2126
2194
|
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2127
|
-
className: `${styles$
|
|
2195
|
+
className: `${styles$9['input-content']}`,
|
|
2128
2196
|
style: {
|
|
2129
2197
|
width: width ? width : configStyles.INPUT.width,
|
|
2130
2198
|
borderRadius: radius ? radius : configStyles.INPUT.radius,
|
|
@@ -2166,7 +2234,6 @@ const Input = ({
|
|
|
2166
2234
|
}
|
|
2167
2235
|
}, "+374") : '', /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
|
|
2168
2236
|
value: innerValue,
|
|
2169
|
-
className: classProps,
|
|
2170
2237
|
onInput: handleChange,
|
|
2171
2238
|
disabled: disabled ? disabled : '',
|
|
2172
2239
|
name: name ? name : `tui_${random}_tui`,
|
|
@@ -2284,9 +2351,9 @@ Input.defaultProps = {
|
|
|
2284
2351
|
type: 'text'
|
|
2285
2352
|
};
|
|
2286
2353
|
|
|
2287
|
-
var css_248z$
|
|
2288
|
-
var styles$
|
|
2289
|
-
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);
|
|
2290
2357
|
|
|
2291
2358
|
const Radio = ({
|
|
2292
2359
|
disabled,
|
|
@@ -2299,11 +2366,11 @@ const Radio = ({
|
|
|
2299
2366
|
label,
|
|
2300
2367
|
...props
|
|
2301
2368
|
}) => {
|
|
2302
|
-
const classProps = classnames__default["default"](styles$
|
|
2369
|
+
const classProps = classnames__default["default"](styles$8.checkbox, className);
|
|
2303
2370
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
2304
2371
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, parseData.map((element, id) => {
|
|
2305
2372
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
2306
|
-
className: `${styles$
|
|
2373
|
+
className: `${styles$8['radio-wrap']} radio-wrap-rem`,
|
|
2307
2374
|
key: element.value
|
|
2308
2375
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
2309
2376
|
type: "radio",
|
|
@@ -2314,9 +2381,9 @@ const Radio = ({
|
|
|
2314
2381
|
value: value ? value : element.value,
|
|
2315
2382
|
name: name ? name : element.name
|
|
2316
2383
|
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2317
|
-
className: `${styles$
|
|
2384
|
+
className: `${styles$8['radio-checkmark']} radio-checkmark-rem`
|
|
2318
2385
|
}), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2319
|
-
className: styles$
|
|
2386
|
+
className: styles$8.labelRadio
|
|
2320
2387
|
}, label ? label : element.label) : '');
|
|
2321
2388
|
}));
|
|
2322
2389
|
};
|
|
@@ -2339,7 +2406,6 @@ Radio.defaultProps = {
|
|
|
2339
2406
|
|
|
2340
2407
|
const Button = ({
|
|
2341
2408
|
icon,
|
|
2342
|
-
hoverIcon,
|
|
2343
2409
|
size,
|
|
2344
2410
|
type,
|
|
2345
2411
|
font,
|
|
@@ -2357,6 +2423,7 @@ const Button = ({
|
|
|
2357
2423
|
disabled,
|
|
2358
2424
|
className,
|
|
2359
2425
|
boxSizing,
|
|
2426
|
+
hoverIcon,
|
|
2360
2427
|
hoverColor,
|
|
2361
2428
|
transition,
|
|
2362
2429
|
contentWidth,
|
|
@@ -2376,7 +2443,7 @@ const Button = ({
|
|
|
2376
2443
|
}
|
|
2377
2444
|
}, []);
|
|
2378
2445
|
const configStyles = compereConfigs();
|
|
2379
|
-
const classProps = classnames__default["default"](className);
|
|
2446
|
+
const classProps = classnames__default["default"](className ? className : configStyles.BUTTON.className);
|
|
2380
2447
|
const handleMouseEnter = () => {
|
|
2381
2448
|
setIsHover(true);
|
|
2382
2449
|
};
|
|
@@ -2386,6 +2453,7 @@ const Button = ({
|
|
|
2386
2453
|
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
2387
2454
|
style: {
|
|
2388
2455
|
display: 'flex',
|
|
2456
|
+
outline: 'none',
|
|
2389
2457
|
alignItems: 'center',
|
|
2390
2458
|
justifyContent: 'center',
|
|
2391
2459
|
fontSize: size ? size : configStyles.BUTTON.size,
|
|
@@ -2467,9 +2535,9 @@ const SvgArrow = ({
|
|
|
2467
2535
|
fill: fillColor ? fillColor : '#3C393E'
|
|
2468
2536
|
}));
|
|
2469
2537
|
|
|
2470
|
-
var css_248z$
|
|
2471
|
-
var styles$
|
|
2472
|
-
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);
|
|
2473
2541
|
|
|
2474
2542
|
const Select = ({
|
|
2475
2543
|
dots,
|
|
@@ -2536,7 +2604,7 @@ const Select = ({
|
|
|
2536
2604
|
const [newSelected, setNewSelected] = React.useState([]);
|
|
2537
2605
|
const [existOptions, setExistOptions] = React.useState([]);
|
|
2538
2606
|
const configStyles = compereConfigs();
|
|
2539
|
-
const classProps = classnames__default["default"](className);
|
|
2607
|
+
const classProps = classnames__default["default"](className ? className : configStyles.SELECT.className);
|
|
2540
2608
|
const handleOpenClose = () => {
|
|
2541
2609
|
setOpened(!opened);
|
|
2542
2610
|
};
|
|
@@ -2544,7 +2612,9 @@ const Select = ({
|
|
|
2544
2612
|
onChange({});
|
|
2545
2613
|
setNewSelected([]);
|
|
2546
2614
|
const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
|
|
2547
|
-
item
|
|
2615
|
+
if (hasOwnerProperty(item, 'checked')) {
|
|
2616
|
+
item.checked = false;
|
|
2617
|
+
}
|
|
2548
2618
|
return item;
|
|
2549
2619
|
});
|
|
2550
2620
|
setExistOptions(clearedOptions);
|
|
@@ -2655,7 +2725,7 @@ const Select = ({
|
|
|
2655
2725
|
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2656
2726
|
ref: ref
|
|
2657
2727
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2658
|
-
className: styles$
|
|
2728
|
+
className: styles$7['select-content']
|
|
2659
2729
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2660
2730
|
style: {
|
|
2661
2731
|
cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
|
|
@@ -2673,9 +2743,9 @@ const Select = ({
|
|
|
2673
2743
|
onClick: disabled ? _ => _ : () => handleOpenClose(),
|
|
2674
2744
|
onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
|
|
2675
2745
|
onMouseLeave: disabled ? _ => _ : () => handleMouseLeave(),
|
|
2676
|
-
className: `${styles$
|
|
2746
|
+
className: `${styles$7['select-content-top']}`
|
|
2677
2747
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2678
|
-
className: `${styles$
|
|
2748
|
+
className: `${styles$7['select-content-top-text']}`,
|
|
2679
2749
|
style: {
|
|
2680
2750
|
whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
|
|
2681
2751
|
overflow: 'hidden',
|
|
@@ -2691,9 +2761,9 @@ const Select = ({
|
|
|
2691
2761
|
}
|
|
2692
2762
|
}
|
|
2693
2763
|
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2694
|
-
className: `${styles$
|
|
2764
|
+
className: `${styles$7['select-content-top-icon']}`
|
|
2695
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", {
|
|
2696
|
-
className: `${styles$
|
|
2766
|
+
className: `${styles$7['close-icon']}`,
|
|
2697
2767
|
onClick: disabled ? _ => _ : handleClearSelect,
|
|
2698
2768
|
style: {
|
|
2699
2769
|
marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
|
|
@@ -2702,7 +2772,7 @@ const Select = ({
|
|
|
2702
2772
|
style: {
|
|
2703
2773
|
transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
2704
2774
|
},
|
|
2705
|
-
className: `${styles$
|
|
2775
|
+
className: `${styles$7['arrow-icon']}`
|
|
2706
2776
|
}, arrowIcon ? arrowIcon : /*#__PURE__*/React__default["default"].createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2707
2777
|
style: {
|
|
2708
2778
|
boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
|
|
@@ -2710,9 +2780,9 @@ const Select = ({
|
|
|
2710
2780
|
backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
|
|
2711
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'
|
|
2712
2782
|
},
|
|
2713
|
-
className: `${styles$
|
|
2783
|
+
className: `${styles$7['select-content-bottom']}`
|
|
2714
2784
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2715
|
-
className: `${styles$
|
|
2785
|
+
className: `${styles$7['select-content-bottom-inner']}`
|
|
2716
2786
|
}, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
|
|
2717
2787
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2718
2788
|
key: i,
|
|
@@ -2721,7 +2791,7 @@ const Select = ({
|
|
|
2721
2791
|
onClick: disabled ? _ => _ : () => handleSelectItem(option),
|
|
2722
2792
|
onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
|
|
2723
2793
|
onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
|
|
2724
|
-
className: `${styles$
|
|
2794
|
+
className: `${styles$7['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$7['ellipsis'] : ''}`,
|
|
2725
2795
|
style: {
|
|
2726
2796
|
overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
|
|
2727
2797
|
color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
|
|
@@ -2903,9 +2973,9 @@ const SvgToasterSuccess = ({
|
|
|
2903
2973
|
fill: fillColor ? fillColor : '#0DA574'
|
|
2904
2974
|
}));
|
|
2905
2975
|
|
|
2906
|
-
var css_248z$
|
|
2907
|
-
var styles$
|
|
2908
|
-
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);
|
|
2909
2979
|
|
|
2910
2980
|
let wWidth$1 = window.innerWidth;
|
|
2911
2981
|
const ToasterType = {
|
|
@@ -2971,8 +3041,8 @@ const Toast = ({
|
|
|
2971
3041
|
justifyContent: 'space-between'
|
|
2972
3042
|
},
|
|
2973
3043
|
className: `
|
|
2974
|
-
${styles$
|
|
2975
|
-
${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'] : ''}
|
|
2976
3046
|
`
|
|
2977
3047
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2978
3048
|
style: {
|
|
@@ -2998,7 +3068,7 @@ const Toast = ({
|
|
|
2998
3068
|
lineHeight: '22px',
|
|
2999
3069
|
fontStyle: 'normal'
|
|
3000
3070
|
},
|
|
3001
|
-
className: styles$
|
|
3071
|
+
className: styles$6['notify-title']
|
|
3002
3072
|
}, title ? title : ''), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3003
3073
|
style: {
|
|
3004
3074
|
fontWeight: 500,
|
|
@@ -3009,7 +3079,7 @@ const Toast = ({
|
|
|
3009
3079
|
fontFamily: '',
|
|
3010
3080
|
opacity: 0.8
|
|
3011
3081
|
},
|
|
3012
|
-
className: styles$
|
|
3082
|
+
className: styles$6['notify-desc']
|
|
3013
3083
|
}, description ? description : '')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3014
3084
|
onClick: () => handleCloseToaster(ref),
|
|
3015
3085
|
style: {
|
|
@@ -3072,17 +3142,17 @@ const createToast = ({
|
|
|
3072
3142
|
description
|
|
3073
3143
|
});
|
|
3074
3144
|
ReactDOM__default["default"].render(newElem, toastBlock);
|
|
3075
|
-
if (!document.getElementById(styles$
|
|
3145
|
+
if (!document.getElementById(styles$6[position]) || document.getElementById(styles$6[position]) == null) {
|
|
3076
3146
|
toastParentBlock = document.createElement('div');
|
|
3077
3147
|
toastParentBlock.style.position = 'fixed';
|
|
3078
3148
|
toastParentBlock.style.display = 'flex';
|
|
3079
3149
|
toastParentBlock.style.zIndex = 999999999999;
|
|
3080
3150
|
toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
|
|
3081
|
-
toastParentBlock.setAttribute('id', styles$
|
|
3151
|
+
toastParentBlock.setAttribute('id', styles$6[position]);
|
|
3082
3152
|
toastParentBlock.appendChild(toastBlock);
|
|
3083
3153
|
toastify.appendChild(toastParentBlock);
|
|
3084
3154
|
} else {
|
|
3085
|
-
document.getElementById(styles$
|
|
3155
|
+
document.getElementById(styles$6[position]).appendChild(toastBlock);
|
|
3086
3156
|
}
|
|
3087
3157
|
};
|
|
3088
3158
|
const toast = {
|
|
@@ -3143,7 +3213,11 @@ const toast = {
|
|
|
3143
3213
|
});
|
|
3144
3214
|
}
|
|
3145
3215
|
};
|
|
3146
|
-
const Toaster = (
|
|
3216
|
+
const Toaster = ({
|
|
3217
|
+
className
|
|
3218
|
+
}) => {
|
|
3219
|
+
const configStyles = compereConfigs();
|
|
3220
|
+
const classProps = classnames__default["default"](className ? className : configStyles.TOASTER.className);
|
|
3147
3221
|
window.addEventListener('popstate', () => {
|
|
3148
3222
|
if (path !== window.location.href) {
|
|
3149
3223
|
if (!toastify) {
|
|
@@ -3160,6 +3234,7 @@ const Toaster = () => {
|
|
|
3160
3234
|
};
|
|
3161
3235
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3162
3236
|
onClick: handleToasterClick,
|
|
3237
|
+
className: classProps,
|
|
3163
3238
|
id: "toastify"
|
|
3164
3239
|
});
|
|
3165
3240
|
};
|
|
@@ -3183,9 +3258,9 @@ const SvgTooltip = ({
|
|
|
3183
3258
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
3184
3259
|
}));
|
|
3185
3260
|
|
|
3186
|
-
var css_248z$
|
|
3187
|
-
var styles$
|
|
3188
|
-
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);
|
|
3189
3264
|
|
|
3190
3265
|
const Tooltip = ({
|
|
3191
3266
|
type,
|
|
@@ -3208,7 +3283,7 @@ const Tooltip = ({
|
|
|
3208
3283
|
const [checkTooltipHeight, setCheckTooltipHeight] = React.useState(0);
|
|
3209
3284
|
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
3210
3285
|
const configStyles = compereConfigs();
|
|
3211
|
-
const classProps = classnames__default["default"](styles$
|
|
3286
|
+
const classProps = classnames__default["default"](styles$5['tooltip-block'], className ? className : configStyles.TOOLTIP.className);
|
|
3212
3287
|
const handleShow = () => {
|
|
3213
3288
|
setShowTooltip(!showTooltip);
|
|
3214
3289
|
};
|
|
@@ -3220,7 +3295,7 @@ const Tooltip = ({
|
|
|
3220
3295
|
tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
|
|
3221
3296
|
}, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
|
|
3222
3297
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3223
|
-
className:
|
|
3298
|
+
className: classProps,
|
|
3224
3299
|
style: {
|
|
3225
3300
|
width: width ? width : configStyles.TOOLTIP.width,
|
|
3226
3301
|
height: height ? height : configStyles.TOOLTIP.height,
|
|
@@ -3229,7 +3304,7 @@ const Tooltip = ({
|
|
|
3229
3304
|
}
|
|
3230
3305
|
}, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3231
3306
|
ref: tooltipRef,
|
|
3232
|
-
className:
|
|
3307
|
+
className: `${styles$5['tooltip']}`,
|
|
3233
3308
|
style: {
|
|
3234
3309
|
width: tooltipWidth ? tooltipWidth : configStyles.TOOLTIP.tooltipWidth,
|
|
3235
3310
|
borderRadius: tooltipRadius ? tooltipRadius : configStyles.TOOLTIP.tooltipRadius,
|
|
@@ -3238,9 +3313,9 @@ const Tooltip = ({
|
|
|
3238
3313
|
left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
|
|
3239
3314
|
}
|
|
3240
3315
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3241
|
-
className: `${styles$
|
|
3316
|
+
className: `${styles$5['tooltip-rel']}`
|
|
3242
3317
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3243
|
-
className: `${styles$
|
|
3318
|
+
className: `${styles$5['tooltip-decor']}`,
|
|
3244
3319
|
style: {
|
|
3245
3320
|
backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
|
|
3246
3321
|
left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
|
|
@@ -3317,19 +3392,21 @@ const SvgCaptchaArrowDown = ({
|
|
|
3317
3392
|
fill: fillColor ? fillColor : '#00236A'
|
|
3318
3393
|
}));
|
|
3319
3394
|
|
|
3320
|
-
var css_248z$
|
|
3321
|
-
var styles$
|
|
3322
|
-
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);
|
|
3323
3398
|
|
|
3324
3399
|
const Captcha = ({
|
|
3325
3400
|
size,
|
|
3326
3401
|
color,
|
|
3327
3402
|
range,
|
|
3328
3403
|
label,
|
|
3404
|
+
className,
|
|
3329
3405
|
getRange
|
|
3330
3406
|
}) => {
|
|
3331
3407
|
const [rangeNumber, setRangeNumber] = React.useState(0);
|
|
3332
3408
|
const [rangeProgress, setRangeProgress] = React.useState(0);
|
|
3409
|
+
const classProps = classnames__default["default"](className ? className : configStyles.CAPTCHA.className);
|
|
3333
3410
|
const configStyles = compereConfigs();
|
|
3334
3411
|
const handleRange = e => {
|
|
3335
3412
|
const value = e.target.value;
|
|
@@ -3352,7 +3429,9 @@ const Captcha = ({
|
|
|
3352
3429
|
setRangeNumber(Math.min(roundedRange, 100));
|
|
3353
3430
|
}
|
|
3354
3431
|
}, [range, getRange]);
|
|
3355
|
-
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", {
|
|
3356
3435
|
style: {
|
|
3357
3436
|
fontSize: size ? size : configStyles.Captcha.size,
|
|
3358
3437
|
color: color ? color : configStyles.Captcha.color
|
|
@@ -3382,7 +3461,7 @@ const Captcha = ({
|
|
|
3382
3461
|
alignItems: 'center',
|
|
3383
3462
|
zIndex: 1
|
|
3384
3463
|
},
|
|
3385
|
-
className: styles$
|
|
3464
|
+
className: styles$4['start-point']
|
|
3386
3465
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3387
3466
|
style: {
|
|
3388
3467
|
position: 'absolute',
|
|
@@ -3408,8 +3487,8 @@ const Captcha = ({
|
|
|
3408
3487
|
backgroundColor: 'transparent'
|
|
3409
3488
|
},
|
|
3410
3489
|
className: `
|
|
3411
|
-
${styles$
|
|
3412
|
-
${+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']}
|
|
3413
3492
|
`,
|
|
3414
3493
|
onInput: handleRange
|
|
3415
3494
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3439,24 +3518,26 @@ Captcha.propTypes = {
|
|
|
3439
3518
|
getRange: PropTypes__default["default"].func.isRequired
|
|
3440
3519
|
};
|
|
3441
3520
|
|
|
3442
|
-
var css_248z$
|
|
3443
|
-
var styles$
|
|
3444
|
-
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);
|
|
3445
3524
|
|
|
3446
3525
|
const Stepper = ({
|
|
3447
3526
|
stepLength,
|
|
3448
|
-
activeSteps
|
|
3527
|
+
activeSteps,
|
|
3528
|
+
className
|
|
3449
3529
|
}) => {
|
|
3530
|
+
const configStyles = compereConfigs();
|
|
3450
3531
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3451
|
-
className: `${styles$
|
|
3532
|
+
className: classnames__default["default"](className ? className : configStyles.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`)
|
|
3452
3533
|
}, (() => {
|
|
3453
3534
|
let steppers = [];
|
|
3454
3535
|
for (let step = 1; step <= stepLength; step++) {
|
|
3455
3536
|
steppers.push( /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3456
|
-
className: classnames__default["default"](`${step <= activeSteps ? styles$
|
|
3537
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
|
|
3457
3538
|
key: step
|
|
3458
3539
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3459
|
-
className: classnames__default["default"](`${step <= activeSteps ? styles$
|
|
3540
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
|
|
3460
3541
|
}, step <= activeSteps ? step : '')));
|
|
3461
3542
|
}
|
|
3462
3543
|
return steppers;
|
|
@@ -3957,6 +4038,7 @@ const NewFile = ({
|
|
|
3957
4038
|
disabled,
|
|
3958
4039
|
multiple,
|
|
3959
4040
|
required,
|
|
4041
|
+
className,
|
|
3960
4042
|
errorSize,
|
|
3961
4043
|
labelSize,
|
|
3962
4044
|
removeFile,
|
|
@@ -4001,13 +4083,14 @@ const NewFile = ({
|
|
|
4001
4083
|
}) => {
|
|
4002
4084
|
const ref = React.useRef(null);
|
|
4003
4085
|
const inpRef = React.useRef(null);
|
|
4086
|
+
const configStyles = compereConfigs();
|
|
4004
4087
|
const memoizedItems = React.useMemo(() => filesArray, [filesArray]);
|
|
4088
|
+
const classProps = classnames__default["default"](className ? className : configStyles.FILE.className);
|
|
4005
4089
|
const [error, setError] = React.useState('');
|
|
4006
4090
|
const [isHover, setIsHover] = React.useState(false);
|
|
4007
4091
|
const [singleFile, setSingleFile] = React.useState(null);
|
|
4008
4092
|
const [choosenFileCount, setChoosenFileCount] = React.useState(0);
|
|
4009
4093
|
const [image, setImage] = React.useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url : 'pdf' : null : null);
|
|
4010
|
-
const configStyles = compereConfigs();
|
|
4011
4094
|
const handleRemoveComponent = () => {
|
|
4012
4095
|
if (!multiple) {
|
|
4013
4096
|
removeFile && removeFile(singleFile);
|
|
@@ -4210,8 +4293,9 @@ const NewFile = ({
|
|
|
4210
4293
|
ref: ref,
|
|
4211
4294
|
style: {
|
|
4212
4295
|
width: '100%',
|
|
4213
|
-
maxWidth: maxWidth ? maxWidth : configStyles.
|
|
4214
|
-
}
|
|
4296
|
+
maxWidth: maxWidth ? maxWidth : configStyles.FILE.maxWidth
|
|
4297
|
+
},
|
|
4298
|
+
className: classProps
|
|
4215
4299
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4216
4300
|
style: {
|
|
4217
4301
|
display: 'flex',
|
|
@@ -4221,8 +4305,8 @@ const NewFile = ({
|
|
|
4221
4305
|
}
|
|
4222
4306
|
}, label && /*#__PURE__*/React__default["default"].createElement("label", {
|
|
4223
4307
|
style: {
|
|
4224
|
-
color: labelColor ? labelColor : configStyles.
|
|
4225
|
-
fontSize: labelSize ? labelSize : configStyles.
|
|
4308
|
+
color: labelColor ? labelColor : configStyles.FILE.labelColor,
|
|
4309
|
+
fontSize: labelSize ? labelSize : configStyles.FILE.labelSize
|
|
4226
4310
|
}
|
|
4227
4311
|
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4228
4312
|
style: {
|
|
@@ -4238,11 +4322,11 @@ const NewFile = ({
|
|
|
4238
4322
|
boxSizing: 'border-box',
|
|
4239
4323
|
justifyContent: 'center',
|
|
4240
4324
|
cursor: !disabled ? 'pointer' : 'not-allowed',
|
|
4241
|
-
height: height ? height : configStyles.
|
|
4242
|
-
border: border ? border : configStyles.
|
|
4243
|
-
borderRadius: radius ? radius : configStyles.
|
|
4244
|
-
backgroundColor: backgroundColor ? backgroundColor : configStyles.
|
|
4245
|
-
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
|
|
4246
4330
|
},
|
|
4247
4331
|
onDrop: handleDrop,
|
|
4248
4332
|
onClick: handleClick,
|
|
@@ -4266,9 +4350,9 @@ const NewFile = ({
|
|
|
4266
4350
|
alignItems: 'center',
|
|
4267
4351
|
flexDirection: 'column',
|
|
4268
4352
|
justifyContent: 'center',
|
|
4269
|
-
color: color ? color : configStyles.
|
|
4270
|
-
fontSize: size ? size : configStyles.
|
|
4271
|
-
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
|
|
4272
4356
|
}
|
|
4273
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", {
|
|
4274
4358
|
src: image,
|
|
@@ -4277,27 +4361,27 @@ const NewFile = ({
|
|
|
4277
4361
|
maxWidth: '100%',
|
|
4278
4362
|
maxHeight: '95%',
|
|
4279
4363
|
objectFit: 'contain',
|
|
4280
|
-
width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.
|
|
4281
|
-
height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.
|
|
4364
|
+
width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.FILE.fileAreaImageWidth,
|
|
4365
|
+
height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.FILE.fileAreaImageHeight
|
|
4282
4366
|
},
|
|
4283
4367
|
alt: "file preview"
|
|
4284
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", {
|
|
4285
4369
|
style: {
|
|
4286
4370
|
margin: '0px'
|
|
4287
4371
|
}
|
|
4288
|
-
}, 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", {
|
|
4289
4373
|
style: {
|
|
4290
|
-
color: uploadColor ? uploadColor : configStyles.
|
|
4374
|
+
color: uploadColor ? uploadColor : configStyles.FILE.uploadColor
|
|
4291
4375
|
}
|
|
4292
|
-
}, upload ? upload : configStyles.
|
|
4376
|
+
}, upload ? upload : configStyles.FILE.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4293
4377
|
style: {
|
|
4294
|
-
marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.
|
|
4378
|
+
marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.FILE.extentionsRowMarginTop
|
|
4295
4379
|
}
|
|
4296
4380
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4297
4381
|
style: {
|
|
4298
4382
|
margin: '0px'
|
|
4299
4383
|
}
|
|
4300
|
-
}, fileSizeText ? fileSizeText : configStyles.
|
|
4384
|
+
}, fileSizeText ? fileSizeText : configStyles.FILE.fileSizeText, " ", maxSize, "\u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4301
4385
|
style: {
|
|
4302
4386
|
position: 'absolute',
|
|
4303
4387
|
top: '0px',
|
|
@@ -4310,9 +4394,9 @@ const NewFile = ({
|
|
|
4310
4394
|
boxSizing: 'border-box',
|
|
4311
4395
|
alignItems: 'flex-start',
|
|
4312
4396
|
justifyContent: 'flex-end',
|
|
4313
|
-
borderRadius: radius ? radius : configStyles.
|
|
4397
|
+
borderRadius: radius ? radius : configStyles.FILE.radius,
|
|
4314
4398
|
display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
|
|
4315
|
-
backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.
|
|
4399
|
+
backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.FILE.hiddenBackgroundColor
|
|
4316
4400
|
},
|
|
4317
4401
|
onClick: handleStopPropagation
|
|
4318
4402
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4324,8 +4408,8 @@ const NewFile = ({
|
|
|
4324
4408
|
style: {
|
|
4325
4409
|
marginTop: '6px',
|
|
4326
4410
|
display: 'inline-block',
|
|
4327
|
-
color: errorColor ? errorColor : configStyles.
|
|
4328
|
-
fontSize: errorSize ? errorSize : configStyles.
|
|
4411
|
+
color: errorColor ? errorColor : configStyles.FILE.errorColor,
|
|
4412
|
+
fontSize: errorSize ? errorSize : configStyles.FILE.errorSize
|
|
4329
4413
|
}
|
|
4330
4414
|
}, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
|
|
4331
4415
|
return /*#__PURE__*/React__default["default"].createElement(FileItem, {
|
|
@@ -4337,20 +4421,20 @@ const NewFile = ({
|
|
|
4337
4421
|
name: item.file.name,
|
|
4338
4422
|
timeForRemoveError: timeForRemoveError,
|
|
4339
4423
|
removeFile: removeFile ? removeFile : _ => _,
|
|
4340
|
-
radius: radius ? radius : configStyles.
|
|
4424
|
+
radius: radius ? radius : configStyles.FILE.radius,
|
|
4341
4425
|
fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
|
|
4342
|
-
progressColor: progressColor ? progressColor : configStyles.
|
|
4343
|
-
listItemHeight: listItemHeight ? listItemHeight : configStyles.
|
|
4344
|
-
listItemPadding: listItemPadding ? listItemPadding : configStyles.
|
|
4345
|
-
progressFontSize: progressFontSize ? progressFontSize : configStyles.
|
|
4346
|
-
listItemErrorSize: listItemErrorSize ? listItemErrorSize : configStyles.
|
|
4347
|
-
listItemErrorColor: listItemErrorColor ? listItemErrorColor : configStyles.
|
|
4348
|
-
progressTrackColor: progressTrackColor ? progressTrackColor : configStyles.
|
|
4349
|
-
progressFailedColor: progressFailedColor ? progressFailedColor : configStyles.
|
|
4350
|
-
progressSuccessColor: progressSuccessColor ? progressSuccessColor : configStyles.
|
|
4351
|
-
progressLoadingColor: progressLoadingColor ? progressLoadingColor : configStyles.
|
|
4352
|
-
listItemBackgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.
|
|
4353
|
-
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
|
|
4354
4438
|
});
|
|
4355
4439
|
}));
|
|
4356
4440
|
};
|
|
@@ -4367,8 +4451,8 @@ NewFile.propTypes = {
|
|
|
4367
4451
|
upload: PropTypes__default["default"].string,
|
|
4368
4452
|
weight: PropTypes__default["default"].number,
|
|
4369
4453
|
maxSize: PropTypes__default["default"].number,
|
|
4370
|
-
maxWidth: PropTypes__default["default"].string,
|
|
4371
4454
|
removeFile: PropTypes__default["default"].func,
|
|
4455
|
+
className: PropTypes__default["default"].string,
|
|
4372
4456
|
errorSize: PropTypes__default["default"].string,
|
|
4373
4457
|
labelSize: PropTypes__default["default"].string,
|
|
4374
4458
|
labelColor: PropTypes__default["default"].string,
|
|
@@ -4417,89 +4501,94 @@ NewFile.defaultProps = {
|
|
|
4417
4501
|
fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
|
|
4418
4502
|
};
|
|
4419
4503
|
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4504
|
+
const DirectionMode = {
|
|
4505
|
+
VERTICAL: 'vertical',
|
|
4506
|
+
HORINZONTAL: 'horizontal'
|
|
4507
|
+
};
|
|
4424
4508
|
const Checkbox = ({
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
className,
|
|
4428
|
-
jsonData,
|
|
4429
|
-
onChange,
|
|
4509
|
+
data,
|
|
4510
|
+
getData,
|
|
4430
4511
|
keyNames,
|
|
4431
|
-
|
|
4432
|
-
|
|
4512
|
+
className,
|
|
4513
|
+
direction,
|
|
4514
|
+
checkedIcon,
|
|
4515
|
+
unCheckedIcon,
|
|
4516
|
+
labelMarginLeft,
|
|
4517
|
+
checkBoxMarginBottom
|
|
4433
4518
|
}) => {
|
|
4434
|
-
const
|
|
4435
|
-
const
|
|
4436
|
-
const [
|
|
4437
|
-
|
|
4438
|
-
const
|
|
4439
|
-
|
|
4440
|
-
|
|
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
|
+
};
|
|
4441
4536
|
React.useEffect(() => {
|
|
4442
|
-
|
|
4537
|
+
if (Array.isArray(data)) {
|
|
4538
|
+
setInnerData(data);
|
|
4539
|
+
} else {
|
|
4540
|
+
setInnerData([data]);
|
|
4541
|
+
}
|
|
4443
4542
|
}, [data]);
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
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'
|
|
4449
4556
|
}
|
|
4450
|
-
}
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
} : '';
|
|
4465
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, data.map(element => {
|
|
4466
|
-
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
4467
|
-
className: `${styles$3['checkbox-wrap']} checkbox-wrap-rem`,
|
|
4468
|
-
key: element.value
|
|
4469
|
-
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
4470
|
-
type: "checkbox",
|
|
4471
|
-
className: classProps,
|
|
4472
|
-
disabled: disabled,
|
|
4473
|
-
required: required,
|
|
4474
|
-
value: keyNames.value ? element[keyNames.value] : '',
|
|
4475
|
-
name: keyNames.name ? element[keyNames.name] : '',
|
|
4476
|
-
id: keyNames.id ? element[keyNames.id] : '',
|
|
4477
|
-
onChange: handleChange,
|
|
4478
|
-
onClick: onClick ? onClick : () => {},
|
|
4479
|
-
defaultChecked: element.checked
|
|
4480
|
-
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4481
|
-
className: `${styles$3['checkmark']} checkmark-rem`
|
|
4482
|
-
}), element[keyNames.label] ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
4483
|
-
className: styles$3.labelCheckbox,
|
|
4484
|
-
htmlFor: element[keyNames.id]
|
|
4485
|
-
}, 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
|
+
}));
|
|
4486
4571
|
}));
|
|
4487
4572
|
};
|
|
4488
4573
|
Checkbox.propTypes = {
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
label: PropTypes__default["default"].string,
|
|
4498
|
-
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])
|
|
4499
4582
|
};
|
|
4500
4583
|
Checkbox.defaultProps = {
|
|
4501
|
-
|
|
4502
|
-
|
|
4584
|
+
direction: 'vertical',
|
|
4585
|
+
keyNames: {
|
|
4586
|
+
id: 'id',
|
|
4587
|
+
label: 'label',
|
|
4588
|
+
checked: 'checked',
|
|
4589
|
+
disabled: 'disabled',
|
|
4590
|
+
ignoreDisabledForChecked: 'ignoreDisabledForChecked'
|
|
4591
|
+
}
|
|
4503
4592
|
};
|
|
4504
4593
|
|
|
4505
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}";
|
|
@@ -4527,6 +4616,7 @@ const Textarea = ({
|
|
|
4527
4616
|
labelSize,
|
|
4528
4617
|
errorSize,
|
|
4529
4618
|
marginTop,
|
|
4619
|
+
className,
|
|
4530
4620
|
labelColor,
|
|
4531
4621
|
errorColor,
|
|
4532
4622
|
labelWeight,
|
|
@@ -4543,6 +4633,7 @@ const Textarea = ({
|
|
|
4543
4633
|
const [isHover, setIsHover] = React.useState(false);
|
|
4544
4634
|
const [isFocus, setIsFocus] = React.useState(false);
|
|
4545
4635
|
const [innerValue, setInnerValue] = React.useState('');
|
|
4636
|
+
const classProps = classnames__default["default"](className ? className : configStyles.TEXTAREA.className);
|
|
4546
4637
|
const configStyles = compereConfigs();
|
|
4547
4638
|
const handleMouseEnter = () => {
|
|
4548
4639
|
setIsHover(true);
|
|
@@ -4591,7 +4682,8 @@ const Textarea = ({
|
|
|
4591
4682
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4592
4683
|
style: {
|
|
4593
4684
|
width: width ? width : configStyles.TEXTAREA.width
|
|
4594
|
-
}
|
|
4685
|
+
},
|
|
4686
|
+
className: classProps
|
|
4595
4687
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4596
4688
|
style: {
|
|
4597
4689
|
display: 'flex',
|
|
@@ -4668,6 +4760,7 @@ Textarea.propTypes = {
|
|
|
4668
4760
|
maxLength: PropTypes__default["default"].number,
|
|
4669
4761
|
labelSize: PropTypes__default["default"].string,
|
|
4670
4762
|
errorSize: PropTypes__default["default"].string,
|
|
4763
|
+
className: PropTypes__default["default"].string,
|
|
4671
4764
|
labelColor: PropTypes__default["default"].string,
|
|
4672
4765
|
errorColor: PropTypes__default["default"].string,
|
|
4673
4766
|
labelWeight: PropTypes__default["default"].string,
|
|
@@ -4719,7 +4812,7 @@ const Typography = ({
|
|
|
4719
4812
|
...props
|
|
4720
4813
|
}) => {
|
|
4721
4814
|
const configStyles = compereConfigs();
|
|
4722
|
-
const classProps = classnames__default["default"](className);
|
|
4815
|
+
const classProps = classnames__default["default"](className ? className : configStyles.TYPOGRAPHY.className);
|
|
4723
4816
|
const [isHover, setIsHover] = React.useState(false);
|
|
4724
4817
|
const [validVariant, setValidVariant] = React.useState(false);
|
|
4725
4818
|
React.useEffect(() => {
|
|
@@ -4873,6 +4966,7 @@ const Pagination = ({
|
|
|
4873
4966
|
totalCount,
|
|
4874
4967
|
currentPage
|
|
4875
4968
|
}) => {
|
|
4969
|
+
const configStyles = compereConfigs();
|
|
4876
4970
|
const [inpVal, setInpVal] = React.useState('');
|
|
4877
4971
|
const [error, setError] = React.useState(false);
|
|
4878
4972
|
const [currentPageNumber, setCurrentPage] = React.useState(currentPage);
|
|
@@ -4899,7 +4993,7 @@ const Pagination = ({
|
|
|
4899
4993
|
if (currentPageNumber === 0 || paginationRange?.length < 2) {
|
|
4900
4994
|
return null;
|
|
4901
4995
|
}
|
|
4902
|
-
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`);
|
|
4903
4997
|
const onNext = () => {
|
|
4904
4998
|
onPageChange(currentPageNumber + 1);
|
|
4905
4999
|
};
|
|
@@ -4953,10 +5047,9 @@ const Pagination = ({
|
|
|
4953
5047
|
margin: '0 auto',
|
|
4954
5048
|
alignItems: 'center',
|
|
4955
5049
|
justifyContent: 'center'
|
|
4956
|
-
}
|
|
4957
|
-
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
5050
|
+
},
|
|
4958
5051
|
className: classProps
|
|
4959
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
5052
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", null, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4960
5053
|
style: {
|
|
4961
5054
|
transform: 'rotate(180deg)'
|
|
4962
5055
|
},
|
|
@@ -5300,7 +5393,7 @@ const NewAutocomplete = ({
|
|
|
5300
5393
|
setInnerValue(selectedValue[keyNames.name]);
|
|
5301
5394
|
getItem(selectedValue);
|
|
5302
5395
|
};
|
|
5303
|
-
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", {
|
|
5304
5397
|
style: {
|
|
5305
5398
|
left: contentBottomLeft ? contentBottomLeft : configStyles.NEWAUTOCOMPLETE.contentBottomLeft,
|
|
5306
5399
|
width: contentBottomWidth ? contentBottomWidth : configStyles.NEWAUTOCOMPLETE.contentBottomWidth,
|
|
@@ -5390,7 +5483,9 @@ const NewAutocomplete = ({
|
|
|
5390
5483
|
React.useEffect(() => {
|
|
5391
5484
|
setInnerError(errorMessage);
|
|
5392
5485
|
}, [errorMessage]);
|
|
5393
|
-
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", {
|
|
5394
5489
|
style: {
|
|
5395
5490
|
color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
|
|
5396
5491
|
fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
|
|
@@ -5418,7 +5513,6 @@ const NewAutocomplete = ({
|
|
|
5418
5513
|
onInput: handleChange,
|
|
5419
5514
|
onMouseEnter: handleMouseEnter,
|
|
5420
5515
|
onMouseLeave: handleMouseLeave,
|
|
5421
|
-
className: classProps,
|
|
5422
5516
|
placeholder: placeHolder ? placeHolder : '',
|
|
5423
5517
|
autoComplete: autoComplete ? autoComplete : configStyles.NEWAUTOCOMPLETE.autoComplete,
|
|
5424
5518
|
style: {
|
|
@@ -5536,6 +5630,7 @@ exports.Autocomplate = Autocomplate;
|
|
|
5536
5630
|
exports.Button = Button;
|
|
5537
5631
|
exports.Captcha = Captcha;
|
|
5538
5632
|
exports.Checkbox = Checkbox;
|
|
5633
|
+
exports.DirectionMode = DirectionMode;
|
|
5539
5634
|
exports.File = File;
|
|
5540
5635
|
exports.Input = Input;
|
|
5541
5636
|
exports.InputTypes = InputTypes;
|
|
@@ -5545,7 +5640,6 @@ exports.NewFile = NewFile;
|
|
|
5545
5640
|
exports.Pagination = Pagination;
|
|
5546
5641
|
exports.Radio = Radio;
|
|
5547
5642
|
exports.Select = Select;
|
|
5548
|
-
exports.SingleCheckbox = SingleCheckbox;
|
|
5549
5643
|
exports.Stepper = Stepper;
|
|
5550
5644
|
exports.Table = Table;
|
|
5551
5645
|
exports.Textarea = Textarea;
|