@xaypay/tui 0.0.115 → 0.0.117

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.
Files changed (32) hide show
  1. package/dist/index.es.js +361 -256
  2. package/dist/index.js +361 -256
  3. package/package.json +1 -1
  4. package/src/components/button/index.js +3 -2
  5. package/src/components/captcha/index.js +5 -5
  6. package/src/components/checkbox/checkbox.module.css +0 -59
  7. package/src/components/checkbox/checkbox.stories.js +70 -4
  8. package/src/components/checkbox/index.js +103 -70
  9. package/src/components/input/index.js +6 -4
  10. package/src/components/modal/index.js +15 -3
  11. package/src/components/newAutocomplete/index.js +7 -5
  12. package/src/components/newFile/index.js +45 -42
  13. package/src/components/pagination/index.js +9 -2
  14. package/src/components/select/index.js +7 -2
  15. package/src/components/singleCheckbox/Checkbox.js +30 -19
  16. package/src/components/singleCheckbox/index.js +15 -9
  17. package/src/components/stepper/index.js +9 -2
  18. package/src/components/table/index.js +45 -4
  19. package/src/components/table/table.stories.js +1 -10
  20. package/src/components/table/td.js +41 -6
  21. package/src/components/table/th.js +12 -2
  22. package/src/components/textarea/index.js +8 -1
  23. package/src/components/toaster/index.js +7 -2
  24. package/src/components/tooltip/index.js +3 -3
  25. package/src/components/typography/index.js +1 -1
  26. package/src/index.js +0 -1
  27. package/src/stories/configuration.stories.mdx +45 -4
  28. package/src/stories/static/checkbox-group-usage-2.png +0 -0
  29. package/src/stories/static/checkbox-group-usage.png +0 -0
  30. package/src/stories/static/single-checkbox-usage.png +0 -0
  31. package/src/stories/usage.stories.mdx +11 -1
  32. package/tui.config.js +42 -7
package/dist/index.js CHANGED
@@ -114,9 +114,9 @@ function styleInject(css, ref) {
114
114
  }
115
115
  }
116
116
 
117
- var css_248z$f = ".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$d = {"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$f);
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$d['file-form-title']} ile-form-title-rem`
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$d['file-form-wrap']} file-form-wrap-rem`, image ? styles$d['active'] : '')
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$d['file-form']} file-form-rem ${error || errorMessage ? styles$d['error'] : ''}`,
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$d['upload-file-content']} upload-file-content-rem`
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$d['file-form-inner-upload']} ile-form-inner-upload-rem`
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$d['upload-info']} upload-info-rem`
202
+ className: `${styles$c['upload-info']} upload-info-rem`
203
203
  }, /*#__PURE__*/React__default["default"].createElement("span", {
204
- className: `${styles$d['upload-info-txt']} upload-info-txt-rem`
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$d['upload-info-size']} upload-info-size-rem`
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$d['delete-upload-icon']} delete-upload-icon-rem`,
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
- if (index !== undefined && innerIndex !== undefined && typeof index === 'number' && typeof innerIndex === 'number') {
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.SINGLECHECKBOX.checkedColor
343
- }) : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxUnchecked, {
344
- fillColor: unCheckedColor ? unCheckedColor : configStyles.SINGLECHECKBOX.unCheckedColor
345
- }), data?.label && /*#__PURE__*/React__default["default"].createElement("span", null, data.label));
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$e = ".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}";
399
- var styles$c = {"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"};
400
- styleInject(css_248z$e);
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$c['sorting-arrows'] : '' : ''}`
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
- boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : ''
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$c['td-span'],
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$c['td-span'],
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$c['td-span']
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,
@@ -604,7 +633,7 @@ const TD = ({
604
633
  cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto'
605
634
  },
606
635
  onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
607
- }, item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default["default"].createElement("span", {
636
+ }, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default["default"].createElement("span", {
608
637
  style: {
609
638
  display: 'block',
610
639
  position: 'relative'
@@ -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$c['dots-option-item'],
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$c['list-text'],
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$c['td-span']
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
- tBodyRowBorder,
755
- openListColor
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: '0px 10px 30px rgba(0, 35, 106, 0.06)'
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
- borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.tBodyRowBorder
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$d = ".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)}}";
1313
- var styles$b = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
1314
- styleInject(css_248z$d);
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: `${classProps} ${styles$b['animation__modal']}`,
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$c = ".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)}}";
1749
- var styles$a = {"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"};
1750
- styleInject(css_248z$c);
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',
@@ -1803,6 +1871,7 @@ const Input = ({
1803
1871
  boxShadowHover,
1804
1872
  errorClassName,
1805
1873
  errorAnimation,
1874
+ labelFontFamily,
1806
1875
  phoneAlignItems,
1807
1876
  errorLineHeight,
1808
1877
  labelLineHeight,
@@ -1824,7 +1893,7 @@ const Input = ({
1824
1893
  const [innerErrorMessage, setInnerErrorMessage] = React.useState('');
1825
1894
  const random = Math.floor(Math.random() * 1000 + 1);
1826
1895
  const configStyles = compereConfigs();
1827
- const classProps = classnames__default["default"](className ? className : configStyles.INPUT.className, type === 'number' ? styles$a['inp-num'] : '');
1896
+ const classProps = classnames__default["default"](className ? className : configStyles.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']);
1828
1897
  const errorShow = styled.keyframes`
1829
1898
  100% {
1830
1899
  bottom: '-20px';
@@ -2112,19 +2181,19 @@ const Input = ({
2112
2181
  }
2113
2182
  }, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage, telErrorMessage, configStyles.INPUT.maxLength]);
2114
2183
  return /*#__PURE__*/React__default["default"].createElement("div", {
2115
- className: `${styles$a['input-wrap']}`
2184
+ className: classProps
2116
2185
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
2117
- className: `${styles$a['input-title']}`,
2118
2186
  style: {
2119
2187
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
2120
2188
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
2121
2189
  display: labelDisplay ? labelDisplay : configStyles.INPUT.labelDisplay,
2122
2190
  fontWeight: labelWeight ? labelWeight : configStyles.INPUT.labelWeight,
2123
2191
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
2124
- marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
2192
+ marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom,
2193
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.INPUT.labelFontFamily
2125
2194
  }
2126
2195
  }, 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$a['input-content']}`,
2196
+ className: `${styles$9['input-content']}`,
2128
2197
  style: {
2129
2198
  width: width ? width : configStyles.INPUT.width,
2130
2199
  borderRadius: radius ? radius : configStyles.INPUT.radius,
@@ -2166,7 +2235,6 @@ const Input = ({
2166
2235
  }
2167
2236
  }, "+374") : '', /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
2168
2237
  value: innerValue,
2169
- className: classProps,
2170
2238
  onInput: handleChange,
2171
2239
  disabled: disabled ? disabled : '',
2172
2240
  name: name ? name : `tui_${random}_tui`,
@@ -2262,6 +2330,7 @@ Input.propTypes = {
2262
2330
  errorPosition: PropTypes__default["default"].string,
2263
2331
  boxShadowHover: PropTypes__default["default"].string,
2264
2332
  errorClassName: PropTypes__default["default"].string,
2333
+ labelFontFamily: PropTypes__default["default"].string,
2265
2334
  telErrorMessage: PropTypes__default["default"].string,
2266
2335
  backgroundColor: PropTypes__default["default"].string,
2267
2336
  phoneAlignItems: PropTypes__default["default"].string,
@@ -2284,9 +2353,9 @@ Input.defaultProps = {
2284
2353
  type: 'text'
2285
2354
  };
2286
2355
 
2287
- var css_248z$b = ".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}";
2288
- var styles$9 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
2289
- styleInject(css_248z$b);
2356
+ 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}";
2357
+ var styles$8 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
2358
+ styleInject(css_248z$a);
2290
2359
 
2291
2360
  const Radio = ({
2292
2361
  disabled,
@@ -2299,11 +2368,11 @@ const Radio = ({
2299
2368
  label,
2300
2369
  ...props
2301
2370
  }) => {
2302
- const classProps = classnames__default["default"](styles$9.checkbox, className);
2371
+ const classProps = classnames__default["default"](styles$8.checkbox, className);
2303
2372
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
2304
2373
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, parseData.map((element, id) => {
2305
2374
  return /*#__PURE__*/React__default["default"].createElement("label", {
2306
- className: `${styles$9['radio-wrap']} radio-wrap-rem`,
2375
+ className: `${styles$8['radio-wrap']} radio-wrap-rem`,
2307
2376
  key: element.value
2308
2377
  }, /*#__PURE__*/React__default["default"].createElement("input", _extends({
2309
2378
  type: "radio",
@@ -2314,9 +2383,9 @@ const Radio = ({
2314
2383
  value: value ? value : element.value,
2315
2384
  name: name ? name : element.name
2316
2385
  }, props)), /*#__PURE__*/React__default["default"].createElement("span", {
2317
- className: `${styles$9['radio-checkmark']} radio-checkmark-rem`
2386
+ className: `${styles$8['radio-checkmark']} radio-checkmark-rem`
2318
2387
  }), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
2319
- className: styles$9.labelRadio
2388
+ className: styles$8.labelRadio
2320
2389
  }, label ? label : element.label) : '');
2321
2390
  }));
2322
2391
  };
@@ -2339,7 +2408,6 @@ Radio.defaultProps = {
2339
2408
 
2340
2409
  const Button = ({
2341
2410
  icon,
2342
- hoverIcon,
2343
2411
  size,
2344
2412
  type,
2345
2413
  font,
@@ -2357,6 +2425,7 @@ const Button = ({
2357
2425
  disabled,
2358
2426
  className,
2359
2427
  boxSizing,
2428
+ hoverIcon,
2360
2429
  hoverColor,
2361
2430
  transition,
2362
2431
  contentWidth,
@@ -2376,7 +2445,7 @@ const Button = ({
2376
2445
  }
2377
2446
  }, []);
2378
2447
  const configStyles = compereConfigs();
2379
- const classProps = classnames__default["default"](className);
2448
+ const classProps = classnames__default["default"](className ? className : configStyles.BUTTON.className);
2380
2449
  const handleMouseEnter = () => {
2381
2450
  setIsHover(true);
2382
2451
  };
@@ -2386,6 +2455,7 @@ const Button = ({
2386
2455
  return /*#__PURE__*/React__default["default"].createElement("button", _extends({
2387
2456
  style: {
2388
2457
  display: 'flex',
2458
+ outline: 'none',
2389
2459
  alignItems: 'center',
2390
2460
  justifyContent: 'center',
2391
2461
  fontSize: size ? size : configStyles.BUTTON.size,
@@ -2467,9 +2537,9 @@ const SvgArrow = ({
2467
2537
  fill: fillColor ? fillColor : '#3C393E'
2468
2538
  }));
2469
2539
 
2470
- var css_248z$a = ".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}}";
2471
- var styles$8 = {"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"};
2472
- styleInject(css_248z$a);
2540
+ 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}}";
2541
+ 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"};
2542
+ styleInject(css_248z$9);
2473
2543
 
2474
2544
  const Select = ({
2475
2545
  dots,
@@ -2495,6 +2565,7 @@ const Select = ({
2495
2565
  labelDisplay,
2496
2566
  labelFontSize,
2497
2567
  labelLineHeight,
2568
+ labelFontFamily,
2498
2569
  labelMarginBottom,
2499
2570
  labelTextTransform,
2500
2571
  cursor,
@@ -2536,7 +2607,7 @@ const Select = ({
2536
2607
  const [newSelected, setNewSelected] = React.useState([]);
2537
2608
  const [existOptions, setExistOptions] = React.useState([]);
2538
2609
  const configStyles = compereConfigs();
2539
- const classProps = classnames__default["default"](className);
2610
+ const classProps = classnames__default["default"](className ? className : configStyles.SELECT.className);
2540
2611
  const handleOpenClose = () => {
2541
2612
  setOpened(!opened);
2542
2613
  };
@@ -2544,7 +2615,9 @@ const Select = ({
2544
2615
  onChange({});
2545
2616
  setNewSelected([]);
2546
2617
  const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
2547
- item.checked = false;
2618
+ if (hasOwnerProperty(item, 'checked')) {
2619
+ item.checked = false;
2620
+ }
2548
2621
  return item;
2549
2622
  });
2550
2623
  setExistOptions(clearedOptions);
@@ -2649,13 +2722,14 @@ const Select = ({
2649
2722
  display: labelDisplay ? labelDisplay : configStyles.SELECT.labelDisplay,
2650
2723
  fontSize: labelFontSize ? labelFontSize : configStyles.SELECT.labelFontSize,
2651
2724
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.SELECT.labelLineHeight,
2725
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.SELECT.labelFontFamily,
2652
2726
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
2653
2727
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
2654
2728
  }
2655
2729
  }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
2656
2730
  ref: ref
2657
2731
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2658
- className: styles$8['select-content']
2732
+ className: styles$7['select-content']
2659
2733
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2660
2734
  style: {
2661
2735
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
@@ -2673,9 +2747,9 @@ const Select = ({
2673
2747
  onClick: disabled ? _ => _ : () => handleOpenClose(),
2674
2748
  onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
2675
2749
  onMouseLeave: disabled ? _ => _ : () => handleMouseLeave(),
2676
- className: `${styles$8['select-content-top']}`
2750
+ className: `${styles$7['select-content-top']}`
2677
2751
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2678
- className: `${styles$8['select-content-top-text']}`,
2752
+ className: `${styles$7['select-content-top-text']}`,
2679
2753
  style: {
2680
2754
  whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
2681
2755
  overflow: 'hidden',
@@ -2691,9 +2765,9 @@ const Select = ({
2691
2765
  }
2692
2766
  }
2693
2767
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
2694
- className: `${styles$8['select-content-top-icon']}`
2768
+ className: `${styles$7['select-content-top-icon']}`
2695
2769
  }, !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$8['close-icon']}`,
2770
+ className: `${styles$7['close-icon']}`,
2697
2771
  onClick: disabled ? _ => _ : handleClearSelect,
2698
2772
  style: {
2699
2773
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
@@ -2702,7 +2776,7 @@ const Select = ({
2702
2776
  style: {
2703
2777
  transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
2704
2778
  },
2705
- className: `${styles$8['arrow-icon']}`
2779
+ className: `${styles$7['arrow-icon']}`
2706
2780
  }, arrowIcon ? arrowIcon : /*#__PURE__*/React__default["default"].createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
2707
2781
  style: {
2708
2782
  boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
@@ -2710,9 +2784,9 @@ const Select = ({
2710
2784
  backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
2711
2785
  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
2786
  },
2713
- className: `${styles$8['select-content-bottom']}`
2787
+ className: `${styles$7['select-content-bottom']}`
2714
2788
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2715
- className: `${styles$8['select-content-bottom-inner']}`
2789
+ className: `${styles$7['select-content-bottom-inner']}`
2716
2790
  }, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
2717
2791
  return /*#__PURE__*/React__default["default"].createElement("div", {
2718
2792
  key: i,
@@ -2721,7 +2795,7 @@ const Select = ({
2721
2795
  onClick: disabled ? _ => _ : () => handleSelectItem(option),
2722
2796
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
2723
2797
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
2724
- className: `${styles$8['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$8['ellipsis'] : ''}`,
2798
+ className: `${styles$7['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$7['ellipsis'] : ''}`,
2725
2799
  style: {
2726
2800
  overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
2727
2801
  color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
@@ -2772,6 +2846,7 @@ Select.propTypes = {
2772
2846
  labelDisplay: PropTypes__default["default"].string,
2773
2847
  labelFontSize: PropTypes__default["default"].string,
2774
2848
  labelLineHeight: PropTypes__default["default"].string,
2849
+ labelFontFamily: PropTypes__default["default"].string,
2775
2850
  labelMarginBottom: PropTypes__default["default"].string,
2776
2851
  labelTextTransform: PropTypes__default["default"].string,
2777
2852
  cursor: PropTypes__default["default"].string,
@@ -2903,9 +2978,9 @@ const SvgToasterSuccess = ({
2903
2978
  fill: fillColor ? fillColor : '#0DA574'
2904
2979
  }));
2905
2980
 
2906
- var css_248z$9 = "#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}}";
2907
- var styles$7 = {"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"};
2908
- styleInject(css_248z$9);
2981
+ 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}}";
2982
+ 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"};
2983
+ styleInject(css_248z$8);
2909
2984
 
2910
2985
  let wWidth$1 = window.innerWidth;
2911
2986
  const ToasterType = {
@@ -2971,8 +3046,8 @@ const Toast = ({
2971
3046
  justifyContent: 'space-between'
2972
3047
  },
2973
3048
  className: `
2974
- ${styles$7['notify-block']}
2975
- ${position === 'top-left' ? showToaster ? styles$7['bounce-in-left'] : styles$7['bounce-out-left'] : position === 'top-right' ? showToaster ? styles$7['bounce-in-right'] : styles$7['bounce-out-right'] : position === 'top-center' ? showToaster ? styles$7['bounce-in-left'] : styles$7['bounce-out-left'] : position === 'bottom-left' ? showToaster ? styles$7['bounce-in-left'] : styles$7['bounce-out-left'] : position === 'bottom-right' ? showToaster ? styles$7['bounce-in-right'] : styles$7['bounce-out-right'] : position === 'bottom-center' ? showToaster ? styles$7['bounce-in-left'] : styles$7['bounce-out-left'] : ''}
3049
+ ${styles$6['notify-block']}
3050
+ ${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
3051
  `
2977
3052
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2978
3053
  style: {
@@ -2998,7 +3073,7 @@ const Toast = ({
2998
3073
  lineHeight: '22px',
2999
3074
  fontStyle: 'normal'
3000
3075
  },
3001
- className: styles$7['notify-title']
3076
+ className: styles$6['notify-title']
3002
3077
  }, title ? title : ''), /*#__PURE__*/React__default["default"].createElement("span", {
3003
3078
  style: {
3004
3079
  fontWeight: 500,
@@ -3009,7 +3084,7 @@ const Toast = ({
3009
3084
  fontFamily: '',
3010
3085
  opacity: 0.8
3011
3086
  },
3012
- className: styles$7['notify-desc']
3087
+ className: styles$6['notify-desc']
3013
3088
  }, description ? description : '')), /*#__PURE__*/React__default["default"].createElement("div", {
3014
3089
  onClick: () => handleCloseToaster(ref),
3015
3090
  style: {
@@ -3072,17 +3147,17 @@ const createToast = ({
3072
3147
  description
3073
3148
  });
3074
3149
  ReactDOM__default["default"].render(newElem, toastBlock);
3075
- if (!document.getElementById(styles$7[position]) || document.getElementById(styles$7[position]) == null) {
3150
+ if (!document.getElementById(styles$6[position]) || document.getElementById(styles$6[position]) == null) {
3076
3151
  toastParentBlock = document.createElement('div');
3077
3152
  toastParentBlock.style.position = 'fixed';
3078
3153
  toastParentBlock.style.display = 'flex';
3079
3154
  toastParentBlock.style.zIndex = 999999999999;
3080
3155
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
3081
- toastParentBlock.setAttribute('id', styles$7[position]);
3156
+ toastParentBlock.setAttribute('id', styles$6[position]);
3082
3157
  toastParentBlock.appendChild(toastBlock);
3083
3158
  toastify.appendChild(toastParentBlock);
3084
3159
  } else {
3085
- document.getElementById(styles$7[position]).appendChild(toastBlock);
3160
+ document.getElementById(styles$6[position]).appendChild(toastBlock);
3086
3161
  }
3087
3162
  };
3088
3163
  const toast = {
@@ -3143,7 +3218,11 @@ const toast = {
3143
3218
  });
3144
3219
  }
3145
3220
  };
3146
- const Toaster = () => {
3221
+ const Toaster = ({
3222
+ className
3223
+ }) => {
3224
+ const configStyles = compereConfigs();
3225
+ const classProps = classnames__default["default"](className ? className : configStyles.TOASTER.className);
3147
3226
  window.addEventListener('popstate', () => {
3148
3227
  if (path !== window.location.href) {
3149
3228
  if (!toastify) {
@@ -3160,6 +3239,7 @@ const Toaster = () => {
3160
3239
  };
3161
3240
  return /*#__PURE__*/React__default["default"].createElement("div", {
3162
3241
  onClick: handleToasterClick,
3242
+ className: classProps,
3163
3243
  id: "toastify"
3164
3244
  });
3165
3245
  };
@@ -3183,9 +3263,9 @@ const SvgTooltip = ({
3183
3263
  fill: fillColor ? fillColor : '#D1D1D1'
3184
3264
  }));
3185
3265
 
3186
- var css_248z$8 = ".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}";
3187
- var styles$6 = {"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"};
3188
- styleInject(css_248z$8);
3266
+ 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}";
3267
+ 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"};
3268
+ styleInject(css_248z$7);
3189
3269
 
3190
3270
  const Tooltip = ({
3191
3271
  type,
@@ -3208,7 +3288,7 @@ const Tooltip = ({
3208
3288
  const [checkTooltipHeight, setCheckTooltipHeight] = React.useState(0);
3209
3289
  const [showTooltip, setShowTooltip] = React.useState(false);
3210
3290
  const configStyles = compereConfigs();
3211
- const classProps = classnames__default["default"](styles$6['tooltip'], className);
3291
+ const classProps = classnames__default["default"](styles$5['tooltip-block'], className ? className : configStyles.TOOLTIP.className);
3212
3292
  const handleShow = () => {
3213
3293
  setShowTooltip(!showTooltip);
3214
3294
  };
@@ -3220,7 +3300,7 @@ const Tooltip = ({
3220
3300
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
3221
3301
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
3222
3302
  return /*#__PURE__*/React__default["default"].createElement("div", {
3223
- className: `${styles$6['tooltip-block']}`,
3303
+ className: classProps,
3224
3304
  style: {
3225
3305
  width: width ? width : configStyles.TOOLTIP.width,
3226
3306
  height: height ? height : configStyles.TOOLTIP.height,
@@ -3229,7 +3309,7 @@ const Tooltip = ({
3229
3309
  }
3230
3310
  }, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
3231
3311
  ref: tooltipRef,
3232
- className: classProps,
3312
+ className: `${styles$5['tooltip']}`,
3233
3313
  style: {
3234
3314
  width: tooltipWidth ? tooltipWidth : configStyles.TOOLTIP.tooltipWidth,
3235
3315
  borderRadius: tooltipRadius ? tooltipRadius : configStyles.TOOLTIP.tooltipRadius,
@@ -3238,9 +3318,9 @@ const Tooltip = ({
3238
3318
  left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
3239
3319
  }
3240
3320
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3241
- className: `${styles$6['tooltip-rel']}`
3321
+ className: `${styles$5['tooltip-rel']}`
3242
3322
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3243
- className: `${styles$6['tooltip-decor']}`,
3323
+ className: `${styles$5['tooltip-decor']}`,
3244
3324
  style: {
3245
3325
  backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
3246
3326
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
@@ -3317,20 +3397,22 @@ const SvgCaptchaArrowDown = ({
3317
3397
  fill: fillColor ? fillColor : '#00236A'
3318
3398
  }));
3319
3399
 
3320
- var css_248z$7 = ".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}";
3321
- var styles$5 = {"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"};
3322
- styleInject(css_248z$7);
3400
+ 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}";
3401
+ 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"};
3402
+ styleInject(css_248z$6);
3323
3403
 
3324
3404
  const Captcha = ({
3325
3405
  size,
3326
3406
  color,
3327
3407
  range,
3328
3408
  label,
3409
+ className,
3329
3410
  getRange
3330
3411
  }) => {
3331
3412
  const [rangeNumber, setRangeNumber] = React.useState(0);
3332
3413
  const [rangeProgress, setRangeProgress] = React.useState(0);
3333
3414
  const configStyles = compereConfigs();
3415
+ const classProps = classnames__default["default"](className ? className : configStyles.CAPTCHA.className);
3334
3416
  const handleRange = e => {
3335
3417
  const value = e.target.value;
3336
3418
  getRange(value);
@@ -3352,7 +3434,9 @@ const Captcha = ({
3352
3434
  setRangeNumber(Math.min(roundedRange, 100));
3353
3435
  }
3354
3436
  }, [range, getRange]);
3355
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label && /*#__PURE__*/React__default["default"].createElement("p", {
3437
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3438
+ className: classProps
3439
+ }, label && /*#__PURE__*/React__default["default"].createElement("p", {
3356
3440
  style: {
3357
3441
  fontSize: size ? size : configStyles.Captcha.size,
3358
3442
  color: color ? color : configStyles.Captcha.color
@@ -3382,7 +3466,7 @@ const Captcha = ({
3382
3466
  alignItems: 'center',
3383
3467
  zIndex: 1
3384
3468
  },
3385
- className: styles$5['start-point']
3469
+ className: styles$4['start-point']
3386
3470
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3387
3471
  style: {
3388
3472
  position: 'absolute',
@@ -3408,8 +3492,8 @@ const Captcha = ({
3408
3492
  backgroundColor: 'transparent'
3409
3493
  },
3410
3494
  className: `
3411
- ${styles$5['range']}
3412
- ${+rangeProgress === rangeNumber ? styles$5['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$5['range-error'] : styles$5['range-default']}
3495
+ ${styles$4['range']}
3496
+ ${+rangeProgress === rangeNumber ? styles$4['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$4['range-error'] : styles$4['range-default']}
3413
3497
  `,
3414
3498
  onInput: handleRange
3415
3499
  }), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3439,24 +3523,26 @@ Captcha.propTypes = {
3439
3523
  getRange: PropTypes__default["default"].func.isRequired
3440
3524
  };
3441
3525
 
3442
- var css_248z$6 = ".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}";
3443
- var styles$4 = {"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"};
3444
- styleInject(css_248z$6);
3526
+ 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}";
3527
+ 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"};
3528
+ styleInject(css_248z$5);
3445
3529
 
3446
3530
  const Stepper = ({
3447
3531
  stepLength,
3448
- activeSteps
3532
+ activeSteps,
3533
+ className
3449
3534
  }) => {
3535
+ const configStyles = compereConfigs();
3450
3536
  return /*#__PURE__*/React__default["default"].createElement("div", {
3451
- className: `${styles$4['stepper-container']} stepper-container-rem`
3537
+ className: classnames__default["default"](className ? className : configStyles.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`)
3452
3538
  }, (() => {
3453
3539
  let steppers = [];
3454
3540
  for (let step = 1; step <= stepLength; step++) {
3455
3541
  steppers.push( /*#__PURE__*/React__default["default"].createElement("div", {
3456
- className: classnames__default["default"](`${step <= activeSteps ? styles$4.activeRing : styles$4.bigRing}`),
3542
+ className: classnames__default["default"](`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
3457
3543
  key: step
3458
3544
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3459
- className: classnames__default["default"](`${step <= activeSteps ? styles$4.smallActiveRing : styles$4.smallRing}`)
3545
+ className: classnames__default["default"](`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
3460
3546
  }, step <= activeSteps ? step : '')));
3461
3547
  }
3462
3548
  return steppers;
@@ -3502,7 +3588,7 @@ for (let i = 0; i < 256; ++i) {
3502
3588
  function unsafeStringify(arr, offset = 0) {
3503
3589
  // Note: Be careful editing this code! It's been tuned for performance
3504
3590
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
3505
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
3591
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
3506
3592
  }
3507
3593
 
3508
3594
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
@@ -3957,6 +4043,7 @@ const NewFile = ({
3957
4043
  disabled,
3958
4044
  multiple,
3959
4045
  required,
4046
+ className,
3960
4047
  errorSize,
3961
4048
  labelSize,
3962
4049
  removeFile,
@@ -4001,13 +4088,14 @@ const NewFile = ({
4001
4088
  }) => {
4002
4089
  const ref = React.useRef(null);
4003
4090
  const inpRef = React.useRef(null);
4091
+ const configStyles = compereConfigs();
4004
4092
  const memoizedItems = React.useMemo(() => filesArray, [filesArray]);
4093
+ const classProps = classnames__default["default"](className ? className : configStyles.FILE.className);
4005
4094
  const [error, setError] = React.useState('');
4006
4095
  const [isHover, setIsHover] = React.useState(false);
4007
4096
  const [singleFile, setSingleFile] = React.useState(null);
4008
4097
  const [choosenFileCount, setChoosenFileCount] = React.useState(0);
4009
4098
  const [image, setImage] = React.useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url : 'pdf' : null : null);
4010
- const configStyles = compereConfigs();
4011
4099
  const handleRemoveComponent = () => {
4012
4100
  if (!multiple) {
4013
4101
  removeFile && removeFile(singleFile);
@@ -4210,8 +4298,9 @@ const NewFile = ({
4210
4298
  ref: ref,
4211
4299
  style: {
4212
4300
  width: '100%',
4213
- maxWidth: maxWidth ? maxWidth : configStyles.File.maxWidth
4214
- }
4301
+ maxWidth: maxWidth ? maxWidth : configStyles.FILE.maxWidth
4302
+ },
4303
+ className: classProps
4215
4304
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4216
4305
  style: {
4217
4306
  display: 'flex',
@@ -4221,8 +4310,8 @@ const NewFile = ({
4221
4310
  }
4222
4311
  }, label && /*#__PURE__*/React__default["default"].createElement("label", {
4223
4312
  style: {
4224
- color: labelColor ? labelColor : configStyles.File.labelColor,
4225
- fontSize: labelSize ? labelSize : configStyles.File.labelSize
4313
+ color: labelColor ? labelColor : configStyles.FILE.labelColor,
4314
+ fontSize: labelSize ? labelSize : configStyles.FILE.labelSize
4226
4315
  }
4227
4316
  }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
4228
4317
  style: {
@@ -4238,11 +4327,11 @@ const NewFile = ({
4238
4327
  boxSizing: 'border-box',
4239
4328
  justifyContent: 'center',
4240
4329
  cursor: !disabled ? 'pointer' : 'not-allowed',
4241
- height: height ? height : configStyles.File.height,
4242
- border: border ? border : configStyles.File.border,
4243
- borderRadius: radius ? radius : configStyles.File.radius,
4244
- backgroundColor: backgroundColor ? backgroundColor : configStyles.File.backgroundColor,
4245
- borderColor: error ? errorColor ? errorColor : configStyles.File.errorColor : disabled ? borderColor ? borderColor : configStyles.File.borderColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.File.borderHoverColor : borderColor ? borderColor : configStyles.File.borderColor
4330
+ height: height ? height : configStyles.FILE.height,
4331
+ border: border ? border : configStyles.FILE.border,
4332
+ borderRadius: radius ? radius : configStyles.FILE.radius,
4333
+ backgroundColor: backgroundColor ? backgroundColor : configStyles.FILE.backgroundColor,
4334
+ 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
4335
  },
4247
4336
  onDrop: handleDrop,
4248
4337
  onClick: handleClick,
@@ -4266,9 +4355,9 @@ const NewFile = ({
4266
4355
  alignItems: 'center',
4267
4356
  flexDirection: 'column',
4268
4357
  justifyContent: 'center',
4269
- color: color ? color : configStyles.File.color,
4270
- fontSize: size ? size : configStyles.File.size,
4271
- fontWeight: weight ? weight : configStyles.File.weight
4358
+ color: color ? color : configStyles.FILE.color,
4359
+ fontSize: size ? size : configStyles.FILE.size,
4360
+ fontWeight: weight ? weight : configStyles.FILE.weight
4272
4361
  }
4273
4362
  }, !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
4363
  src: image,
@@ -4277,27 +4366,27 @@ const NewFile = ({
4277
4366
  maxWidth: '100%',
4278
4367
  maxHeight: '95%',
4279
4368
  objectFit: 'contain',
4280
- width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.File.fileAreaImageWidth,
4281
- height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.File.fileAreaImageHeight
4369
+ width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.FILE.fileAreaImageWidth,
4370
+ height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.FILE.fileAreaImageHeight
4282
4371
  },
4283
4372
  alt: "file preview"
4284
4373
  }) : /*#__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
4374
  style: {
4286
4375
  margin: '0px'
4287
4376
  }
4288
- }, putFileHere ? putFileHere : configStyles.File.putFileHere, /*#__PURE__*/React__default["default"].createElement("br", null), or ? or : configStyles.File.or, ' ', /*#__PURE__*/React__default["default"].createElement("span", {
4377
+ }, putFileHere ? putFileHere : configStyles.FILE.putFileHere, /*#__PURE__*/React__default["default"].createElement("br", null), or ? or : configStyles.FILE.or, ' ', /*#__PURE__*/React__default["default"].createElement("span", {
4289
4378
  style: {
4290
- color: uploadColor ? uploadColor : configStyles.File.uploadColor
4379
+ color: uploadColor ? uploadColor : configStyles.FILE.uploadColor
4291
4380
  }
4292
- }, upload ? upload : configStyles.File.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
4381
+ }, upload ? upload : configStyles.FILE.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
4293
4382
  style: {
4294
- marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.File.extentionsRowMarginTop
4383
+ marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.FILE.extentionsRowMarginTop
4295
4384
  }
4296
4385
  }, /*#__PURE__*/React__default["default"].createElement("p", {
4297
4386
  style: {
4298
4387
  margin: '0px'
4299
4388
  }
4300
- }, fileSizeText ? fileSizeText : configStyles.File.fileSizeText, " ", maxSize, "\u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default["default"].createElement("div", {
4389
+ }, fileSizeText ? fileSizeText : configStyles.FILE.fileSizeText, " ", maxSize, "\u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default["default"].createElement("div", {
4301
4390
  style: {
4302
4391
  position: 'absolute',
4303
4392
  top: '0px',
@@ -4310,9 +4399,9 @@ const NewFile = ({
4310
4399
  boxSizing: 'border-box',
4311
4400
  alignItems: 'flex-start',
4312
4401
  justifyContent: 'flex-end',
4313
- borderRadius: radius ? radius : configStyles.File.radius,
4402
+ borderRadius: radius ? radius : configStyles.FILE.radius,
4314
4403
  display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
4315
- backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.File.hiddenBackgroundColor
4404
+ backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.FILE.hiddenBackgroundColor
4316
4405
  },
4317
4406
  onClick: handleStopPropagation
4318
4407
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -4324,8 +4413,8 @@ const NewFile = ({
4324
4413
  style: {
4325
4414
  marginTop: '6px',
4326
4415
  display: 'inline-block',
4327
- color: errorColor ? errorColor : configStyles.File.errorColor,
4328
- fontSize: errorSize ? errorSize : configStyles.File.errorSize
4416
+ color: errorColor ? errorColor : configStyles.FILE.errorColor,
4417
+ fontSize: errorSize ? errorSize : configStyles.FILE.errorSize
4329
4418
  }
4330
4419
  }, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
4331
4420
  return /*#__PURE__*/React__default["default"].createElement(FileItem, {
@@ -4337,20 +4426,20 @@ const NewFile = ({
4337
4426
  name: item.file.name,
4338
4427
  timeForRemoveError: timeForRemoveError,
4339
4428
  removeFile: removeFile ? removeFile : _ => _,
4340
- radius: radius ? radius : configStyles.File.radius,
4429
+ radius: radius ? radius : configStyles.FILE.radius,
4341
4430
  fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
4342
- progressColor: progressColor ? progressColor : configStyles.File.progressColor,
4343
- listItemHeight: listItemHeight ? listItemHeight : configStyles.File.listItemHeight,
4344
- listItemPadding: listItemPadding ? listItemPadding : configStyles.File.listItemPadding,
4345
- progressFontSize: progressFontSize ? progressFontSize : configStyles.File.progressFontSize,
4346
- listItemErrorSize: listItemErrorSize ? listItemErrorSize : configStyles.File.listItemErrorSize,
4347
- listItemErrorColor: listItemErrorColor ? listItemErrorColor : configStyles.File.listItemErrorColor,
4348
- progressTrackColor: progressTrackColor ? progressTrackColor : configStyles.File.progressTrackColor,
4349
- progressFailedColor: progressFailedColor ? progressFailedColor : configStyles.File.progressFailedColor,
4350
- progressSuccessColor: progressSuccessColor ? progressSuccessColor : configStyles.File.progressSuccessColor,
4351
- progressLoadingColor: progressLoadingColor ? progressLoadingColor : configStyles.File.progressLoadingColor,
4352
- listItemBackgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.File.listItemBackgroundColor,
4353
- listItemBackgroundErrorColor: listItemBackgroundErrorColor ? listItemBackgroundErrorColor : configStyles.File.listItemBackgroundErrorColor
4431
+ progressColor: progressColor ? progressColor : configStyles.FILE.progressColor,
4432
+ listItemHeight: listItemHeight ? listItemHeight : configStyles.FILE.listItemHeight,
4433
+ listItemPadding: listItemPadding ? listItemPadding : configStyles.FILE.listItemPadding,
4434
+ progressFontSize: progressFontSize ? progressFontSize : configStyles.FILE.progressFontSize,
4435
+ listItemErrorSize: listItemErrorSize ? listItemErrorSize : configStyles.FILE.listItemErrorSize,
4436
+ listItemErrorColor: listItemErrorColor ? listItemErrorColor : configStyles.FILE.listItemErrorColor,
4437
+ progressTrackColor: progressTrackColor ? progressTrackColor : configStyles.FILE.progressTrackColor,
4438
+ progressFailedColor: progressFailedColor ? progressFailedColor : configStyles.FILE.progressFailedColor,
4439
+ progressSuccessColor: progressSuccessColor ? progressSuccessColor : configStyles.FILE.progressSuccessColor,
4440
+ progressLoadingColor: progressLoadingColor ? progressLoadingColor : configStyles.FILE.progressLoadingColor,
4441
+ listItemBackgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.FILE.listItemBackgroundColor,
4442
+ listItemBackgroundErrorColor: listItemBackgroundErrorColor ? listItemBackgroundErrorColor : configStyles.FILE.listItemBackgroundErrorColor
4354
4443
  });
4355
4444
  }));
4356
4445
  };
@@ -4367,8 +4456,8 @@ NewFile.propTypes = {
4367
4456
  upload: PropTypes__default["default"].string,
4368
4457
  weight: PropTypes__default["default"].number,
4369
4458
  maxSize: PropTypes__default["default"].number,
4370
- maxWidth: PropTypes__default["default"].string,
4371
4459
  removeFile: PropTypes__default["default"].func,
4460
+ className: PropTypes__default["default"].string,
4372
4461
  errorSize: PropTypes__default["default"].string,
4373
4462
  labelSize: PropTypes__default["default"].string,
4374
4463
  labelColor: PropTypes__default["default"].string,
@@ -4417,89 +4506,94 @@ NewFile.defaultProps = {
4417
4506
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
4418
4507
  };
4419
4508
 
4420
- var css_248z$5 = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;bottom:0;display:inline-block;height:14px;left:0;margin:auto 4px auto auto;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.checkbox-module_checkbox-wrap__Xrg-m>.checkbox-module_checkmark__M8DY6:after{border:solid #1890ff;border-width:0 2px 2px 0;content:\"\";display:block;height:8px;left:4px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);transition:opacity .24s;width:4px}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6:after{opacity:1}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6,.checkbox-module_checkbox-wrap__Xrg-m:hover input~.checkbox-module_checkmark__M8DY6{border-color:#1890ff}";
4421
- var styles$3 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
4422
- styleInject(css_248z$5);
4423
-
4509
+ const DirectionMode = {
4510
+ VERTICAL: 'vertical',
4511
+ HORINZONTAL: 'horizontal'
4512
+ };
4424
4513
  const Checkbox = ({
4425
- disabled,
4426
- required,
4427
- className,
4428
- jsonData,
4429
- onChange,
4514
+ data,
4515
+ getData,
4430
4516
  keyNames,
4431
- onClick,
4432
- ...props
4517
+ className,
4518
+ direction,
4519
+ checkedIcon,
4520
+ unCheckedIcon,
4521
+ labelMarginLeft,
4522
+ checkBoxMarginBottom
4433
4523
  }) => {
4434
- const classProps = classnames__default["default"](styles$3.checkbox, className, 'checkbox-input-rem');
4435
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
4436
- const [data, setData] = React.useState(parseData);
4437
- React.useEffect(() => {
4438
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
4439
- setData(parseData);
4440
- }, [jsonData]);
4524
+ const configStyles = compereConfigs();
4525
+ const [innerData, setInnerData] = React.useState([]);
4526
+ const classProps = classnames__default["default"](className ? className : configStyles.CHECKBOX.className);
4527
+ const handleSendData = (_, e, index) => {
4528
+ const dataForSend = {};
4529
+ setInnerData(prev => prev.map((innerItem, innerIndex) => {
4530
+ if (innerIndex === index) {
4531
+ innerItem[keyNames.checked] = !innerItem[keyNames.checked];
4532
+ dataForSend.item = innerItem;
4533
+ dataForSend.itemIndex = innerIndex;
4534
+ dataForSend.itemId = innerItem[keyNames.id];
4535
+ }
4536
+ return innerItem;
4537
+ }));
4538
+ dataForSend.checkboxArr = innerData;
4539
+ getData && getData(dataForSend);
4540
+ };
4441
4541
  React.useEffect(() => {
4442
- onChange ? onChange(data.filter(d => d.checked)) : '';
4542
+ if (Array.isArray(data)) {
4543
+ setInnerData(data);
4544
+ } else {
4545
+ setInnerData([data]);
4546
+ }
4443
4547
  }, [data]);
4444
- const handleChange = e => {
4445
- let id;
4446
- data.forEach((value, key) => {
4447
- if (value[keyNames.value] === e.target.value) {
4448
- id = key;
4548
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4549
+ style: {
4550
+ width: '100%',
4551
+ display: 'flex',
4552
+ flexDirection: direction === 'vertical' ? 'column' : 'row'
4553
+ },
4554
+ className: classProps
4555
+ }, innerData && innerData.length > 0 && innerData.map((item, index) => {
4556
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4557
+ key: `TUI_${index}_checkbox`,
4558
+ style: {
4559
+ width: 'fit-content',
4560
+ marginBottom: direction === 'vertical' ? checkBoxMarginBottom ? checkBoxMarginBottom : configStyles.CHECKBOX.checkBoxMarginBottom : '0px'
4449
4561
  }
4450
- });
4451
- let items = [...data];
4452
- let item = {
4453
- ...items[id]
4454
- };
4455
- item.checked = !item.checked;
4456
- items[id] = item;
4457
- setData(items);
4458
- };
4459
- !keyNames ? keyNames = {
4460
- id: 'id',
4461
- name: 'name',
4462
- value: 'value',
4463
- label: 'label'
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]) : '');
4562
+ }, /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
4563
+ data: item,
4564
+ index: index,
4565
+ checkedColor: "#00236A",
4566
+ unCheckedColor: "#D1D1D1",
4567
+ checkedIcon: checkedIcon,
4568
+ label: item[keyNames.label],
4569
+ unCheckedIcon: unCheckedIcon,
4570
+ handleChecked: handleSendData,
4571
+ checked: item[keyNames.checked],
4572
+ disabled: item[keyNames.disabled],
4573
+ ignoreDisabledForChecked: item[keyNames.ignoreDisabledForChecked],
4574
+ labelMarginLeft: labelMarginLeft ? labelMarginLeft : configStyles.CHECKBOX.labelMarginLeft
4575
+ }));
4486
4576
  }));
4487
4577
  };
4488
4578
  Checkbox.propTypes = {
4489
- className: PropTypes__default["default"].string,
4490
- onChange: PropTypes__default["default"].func,
4491
- onClick: PropTypes__default["default"].func,
4492
- required: PropTypes__default["default"].bool,
4493
- disabled: PropTypes__default["default"].bool,
4494
- name: PropTypes__default["default"].string,
4495
- value: PropTypes__default["default"].string,
4496
- jsonData: PropTypes__default["default"].string,
4497
- label: PropTypes__default["default"].string,
4498
- keyNames: PropTypes__default["default"].object
4579
+ getData: PropTypes__default["default"].func,
4580
+ keyNames: PropTypes__default["default"].object,
4581
+ checkedIcon: PropTypes__default["default"].element,
4582
+ unCheckedIcon: PropTypes__default["default"].element,
4583
+ labelMarginLeft: PropTypes__default["default"].string,
4584
+ checkBoxMarginBottom: PropTypes__default["default"].string,
4585
+ direction: PropTypes__default["default"].oneOf(Object.values(DirectionMode)),
4586
+ data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].arrayOf(PropTypes__default["default"].object), PropTypes__default["default"].object])
4499
4587
  };
4500
4588
  Checkbox.defaultProps = {
4501
- onChange: undefined,
4502
- jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
4589
+ direction: 'vertical',
4590
+ keyNames: {
4591
+ id: 'id',
4592
+ label: 'label',
4593
+ checked: 'checked',
4594
+ disabled: 'disabled',
4595
+ ignoreDisabledForChecked: 'ignoreDisabledForChecked'
4596
+ }
4503
4597
  };
4504
4598
 
4505
4599
  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,12 +4621,14 @@ const Textarea = ({
4527
4621
  labelSize,
4528
4622
  errorSize,
4529
4623
  marginTop,
4624
+ className,
4530
4625
  labelColor,
4531
4626
  errorColor,
4532
4627
  labelWeight,
4533
4628
  placeholder,
4534
4629
  labelDisplay,
4535
4630
  errorMessage,
4631
+ labelFontFamily,
4536
4632
  backgroundColor,
4537
4633
  borderFocusColor,
4538
4634
  borderHoverColor,
@@ -4544,6 +4640,7 @@ const Textarea = ({
4544
4640
  const [isFocus, setIsFocus] = React.useState(false);
4545
4641
  const [innerValue, setInnerValue] = React.useState('');
4546
4642
  const configStyles = compereConfigs();
4643
+ const classProps = classnames__default["default"](className ? className : configStyles.TEXTAREA.className);
4547
4644
  const handleMouseEnter = () => {
4548
4645
  setIsHover(true);
4549
4646
  };
@@ -4591,12 +4688,14 @@ const Textarea = ({
4591
4688
  return /*#__PURE__*/React__default["default"].createElement("div", {
4592
4689
  style: {
4593
4690
  width: width ? width : configStyles.TEXTAREA.width
4594
- }
4691
+ },
4692
+ className: classProps
4595
4693
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4596
4694
  style: {
4597
4695
  display: 'flex',
4598
4696
  alignItems: 'center',
4599
4697
  justifyContent: label ? 'space-between' : 'flex-end',
4698
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.TEXTAREA.labelFontFamily,
4600
4699
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.TEXTAREA.labelMarginBottom
4601
4700
  }
4602
4701
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
@@ -4668,12 +4767,14 @@ Textarea.propTypes = {
4668
4767
  maxLength: PropTypes__default["default"].number,
4669
4768
  labelSize: PropTypes__default["default"].string,
4670
4769
  errorSize: PropTypes__default["default"].string,
4770
+ className: PropTypes__default["default"].string,
4671
4771
  labelColor: PropTypes__default["default"].string,
4672
4772
  errorColor: PropTypes__default["default"].string,
4673
4773
  labelWeight: PropTypes__default["default"].string,
4674
4774
  placeholder: PropTypes__default["default"].string,
4675
4775
  errorMessage: PropTypes__default["default"].string,
4676
4776
  labelDisplay: PropTypes__default["default"].string,
4777
+ labelFontFamily: PropTypes__default["default"].string,
4677
4778
  backgroundColor: PropTypes__default["default"].string,
4678
4779
  showCharacterCount: PropTypes__default["default"].bool,
4679
4780
  value: PropTypes__default["default"].string.isRequired,
@@ -4719,7 +4820,7 @@ const Typography = ({
4719
4820
  ...props
4720
4821
  }) => {
4721
4822
  const configStyles = compereConfigs();
4722
- const classProps = classnames__default["default"](className);
4823
+ const classProps = classnames__default["default"](className ? className : configStyles.TYPOGRAPHY.className);
4723
4824
  const [isHover, setIsHover] = React.useState(false);
4724
4825
  const [validVariant, setValidVariant] = React.useState(false);
4725
4826
  React.useEffect(() => {
@@ -4873,6 +4974,7 @@ const Pagination = ({
4873
4974
  totalCount,
4874
4975
  currentPage
4875
4976
  }) => {
4977
+ const configStyles = compereConfigs();
4876
4978
  const [inpVal, setInpVal] = React.useState('');
4877
4979
  const [error, setError] = React.useState(false);
4878
4980
  const [currentPageNumber, setCurrentPage] = React.useState(currentPage);
@@ -4899,7 +5001,7 @@ const Pagination = ({
4899
5001
  if (currentPageNumber === 0 || paginationRange?.length < 2) {
4900
5002
  return null;
4901
5003
  }
4902
- const classProps = classnames__default["default"](styles$2.list, className ? className : `${styles$2['pagination-bar']} pagination-bar-rem`);
5004
+ const classProps = classnames__default["default"](styles$2.list, className ? className : configStyles.PAGINATION.className, `${styles$2['pagination-bar']} pagination-bar-rem`);
4903
5005
  const onNext = () => {
4904
5006
  onPageChange(currentPageNumber + 1);
4905
5007
  };
@@ -4953,10 +5055,9 @@ const Pagination = ({
4953
5055
  margin: '0 auto',
4954
5056
  alignItems: 'center',
4955
5057
  justifyContent: 'center'
4956
- }
4957
- }, /*#__PURE__*/React__default["default"].createElement("ul", {
5058
+ },
4958
5059
  className: classProps
4959
- }, /*#__PURE__*/React__default["default"].createElement("button", {
5060
+ }, /*#__PURE__*/React__default["default"].createElement("ul", null, /*#__PURE__*/React__default["default"].createElement("button", {
4960
5061
  style: {
4961
5062
  transform: 'rotate(180deg)'
4962
5063
  },
@@ -5188,6 +5289,7 @@ const NewAutocomplete = ({
5188
5289
  contentPosition,
5189
5290
  contentTopColor,
5190
5291
  labelLineHeight,
5292
+ labelFontFamily,
5191
5293
  contentDirection,
5192
5294
  contentTopWeight,
5193
5295
  contentTopRadius,
@@ -5300,7 +5402,7 @@ const NewAutocomplete = ({
5300
5402
  setInnerValue(selectedValue[keyNames.name]);
5301
5403
  getItem(selectedValue);
5302
5404
  };
5303
- const optionList = /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, show && innerOptions && !disabled ? innerOptions.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
5405
+ const optionList = /*#__PURE__*/React__default["default"].createElement("div", null, show && innerOptions && !disabled ? innerOptions.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
5304
5406
  style: {
5305
5407
  left: contentBottomLeft ? contentBottomLeft : configStyles.NEWAUTOCOMPLETE.contentBottomLeft,
5306
5408
  width: contentBottomWidth ? contentBottomWidth : configStyles.NEWAUTOCOMPLETE.contentBottomWidth,
@@ -5390,12 +5492,15 @@ const NewAutocomplete = ({
5390
5492
  React.useEffect(() => {
5391
5493
  setInnerError(errorMessage);
5392
5494
  }, [errorMessage]);
5393
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
5495
+ return /*#__PURE__*/React__default["default"].createElement("div", {
5496
+ className: classProps
5497
+ }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
5394
5498
  style: {
5395
5499
  color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
5396
5500
  fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
5397
5501
  display: labelDisplay ? labelDisplay : configStyles.NEWAUTOCOMPLETE.labelDisplay,
5398
5502
  fontWeight: labelWeight ? labelWeight : configStyles.NEWAUTOCOMPLETE.labelWeight,
5503
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.NEWAUTOCOMPLETE.labelFontFamily,
5399
5504
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.NEWAUTOCOMPLETE.labelLineHeight,
5400
5505
  maxWidth: contentTopMaxWidth ? contentTopMaxWidth : configStyles.NEWAUTOCOMPLETE.contentTopMaxWidth,
5401
5506
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
@@ -5418,7 +5523,6 @@ const NewAutocomplete = ({
5418
5523
  onInput: handleChange,
5419
5524
  onMouseEnter: handleMouseEnter,
5420
5525
  onMouseLeave: handleMouseLeave,
5421
- className: classProps,
5422
5526
  placeholder: placeHolder ? placeHolder : '',
5423
5527
  autoComplete: autoComplete ? autoComplete : configStyles.NEWAUTOCOMPLETE.autoComplete,
5424
5528
  style: {
@@ -5475,6 +5579,7 @@ NewAutocomplete.propTypes = {
5475
5579
  labelLineHeight: PropTypes__default["default"].string,
5476
5580
  contentTopColor: PropTypes__default["default"].string,
5477
5581
  change: PropTypes__default["default"].func.isRequired,
5582
+ labelFontFamily: PropTypes__default["default"].string,
5478
5583
  contentDirection: PropTypes__default["default"].string,
5479
5584
  contentTopWeight: PropTypes__default["default"].number,
5480
5585
  contentTopRadius: PropTypes__default["default"].string,
@@ -5536,6 +5641,7 @@ exports.Autocomplate = Autocomplate;
5536
5641
  exports.Button = Button;
5537
5642
  exports.Captcha = Captcha;
5538
5643
  exports.Checkbox = Checkbox;
5644
+ exports.DirectionMode = DirectionMode;
5539
5645
  exports.File = File;
5540
5646
  exports.Input = Input;
5541
5647
  exports.InputTypes = InputTypes;
@@ -5545,7 +5651,6 @@ exports.NewFile = NewFile;
5545
5651
  exports.Pagination = Pagination;
5546
5652
  exports.Radio = Radio;
5547
5653
  exports.Select = Select;
5548
- exports.SingleCheckbox = SingleCheckbox;
5549
5654
  exports.Stepper = Stepper;
5550
5655
  exports.Table = Table;
5551
5656
  exports.Textarea = Textarea;