@xaypay/tui 0.0.115 → 0.0.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/index.es.js +347 -253
  2. package/dist/index.js +347 -253
  3. package/package.json +1 -1
  4. package/src/components/button/index.js +3 -2
  5. package/src/components/captcha/index.js +5 -4
  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 +3 -3
  10. package/src/components/modal/index.js +15 -3
  11. package/src/components/newAutocomplete/index.js +4 -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 +4 -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 +38 -5
  21. package/src/components/table/th.js +12 -2
  22. package/src/components/textarea/index.js +5 -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 +40 -3
  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 +38 -7
package/dist/index.es.js CHANGED
@@ -84,9 +84,9 @@ function styleInject(css, ref) {
84
84
  }
85
85
  }
86
86
 
87
- 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)}";
88
- 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"};
89
- styleInject(css_248z$f);
87
+ 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)}";
88
+ 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"};
89
+ styleInject(css_248z$e);
90
90
 
91
91
  const File = ({
92
92
  name,
@@ -146,11 +146,11 @@ const File = ({
146
146
  document.querySelector(`.${name}`).value = '';
147
147
  };
148
148
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
149
- className: `${styles$d['file-form-title']} ile-form-title-rem`
149
+ className: `${styles$c['file-form-title']} ile-form-title-rem`
150
150
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))), /*#__PURE__*/React__default.createElement("div", {
151
- className: classnames(`${styles$d['file-form-wrap']} file-form-wrap-rem`, image ? styles$d['active'] : '')
151
+ className: classnames(`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
152
152
  }, /*#__PURE__*/React__default.createElement("div", {
153
- className: `${styles$d['file-form']} file-form-rem ${error || errorMessage ? styles$d['error'] : ''}`,
153
+ className: `${styles$c['file-form']} file-form-rem ${error || errorMessage ? styles$c['error'] : ''}`,
154
154
  onClick: () => document.querySelector(`.${name}`).click()
155
155
  }, /*#__PURE__*/React__default.createElement("input", {
156
156
  hidden: true,
@@ -159,23 +159,23 @@ const File = ({
159
159
  disabled: disabled,
160
160
  onChange: e => handleCheckFile(e)
161
161
  }), image ? /*#__PURE__*/React__default.createElement("div", {
162
- className: `${styles$d['upload-file-content']} upload-file-content-rem`
162
+ className: `${styles$c['upload-file-content']} upload-file-content-rem`
163
163
  }, image === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgPdf, null) : /*#__PURE__*/React__default.createElement("img", {
164
164
  src: image,
165
165
  alt: fileName
166
166
  })) : /*#__PURE__*/React__default.createElement("div", {
167
- className: `${styles$d['file-form-inner-upload']} ile-form-inner-upload-rem`
167
+ className: `${styles$c['file-form-inner-upload']} ile-form-inner-upload-rem`
168
168
  }, /*#__PURE__*/React__default.createElement("img", {
169
169
  src: "../../assets/upload.svg",
170
170
  alt: ""
171
171
  }), /*#__PURE__*/React__default.createElement("span", {
172
- className: `${styles$d['upload-info']} upload-info-rem`
172
+ className: `${styles$c['upload-info']} upload-info-rem`
173
173
  }, /*#__PURE__*/React__default.createElement("span", {
174
- className: `${styles$d['upload-info-txt']} upload-info-txt-rem`
174
+ className: `${styles$c['upload-info-txt']} upload-info-txt-rem`
175
175
  }, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React__default.createElement("span", {
176
- className: `${styles$d['upload-info-size']} upload-info-size-rem`
176
+ className: `${styles$c['upload-info-size']} upload-info-size-rem`
177
177
  }, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )"))), !disabled && /*#__PURE__*/React__default.createElement("div", {
178
- className: `${styles$d['delete-upload-icon']} delete-upload-icon-rem`,
178
+ className: `${styles$c['delete-upload-icon']} delete-upload-icon-rem`,
179
179
  onClick: handleRemoveFile
180
180
  }, /*#__PURE__*/React__default.createElement("i", {
181
181
  className: "icon-delete"
@@ -273,24 +273,24 @@ const SvgCheckboxChecked = ({
273
273
  const Checkbox$1 = ({
274
274
  data,
275
275
  index,
276
+ label,
276
277
  styles,
277
278
  checked,
278
279
  disabled,
279
280
  innerIndex,
281
+ checkedIcon,
280
282
  checkedColor,
283
+ unCheckedIcon,
281
284
  handleChecked,
282
285
  unCheckedColor,
286
+ labelMarginLeft,
283
287
  ignoreDisabledForChecked
284
288
  }) => {
285
289
  const configStyles = compereConfigs();
286
290
  const [innerChecked, setInnerChecked] = useState(false);
287
291
  const [innerDisabled, setInnerDisabled] = useState(false);
288
292
  const handleClick = e => {
289
- if (index !== undefined && innerIndex !== undefined && typeof index === 'number' && typeof innerIndex === 'number') {
290
- handleChecked(data, e, index, innerIndex);
291
- } else {
292
- handleChecked(data, e);
293
- }
293
+ handleChecked(data, e, index, innerIndex);
294
294
  };
295
295
  useEffect(() => {
296
296
  setInnerDisabled(disabled);
@@ -298,83 +298,103 @@ const Checkbox$1 = ({
298
298
  useEffect(() => {
299
299
  setInnerChecked(checked);
300
300
  }, [checked]);
301
+ useEffect(() => {
302
+ if (index && typeof index !== 'number') {
303
+ alert('Please set index value as valid number');
304
+ }
305
+ }, [index]);
306
+ useEffect(() => {
307
+ if (innerIndex && typeof innerIndex !== 'number') {
308
+ alert('Please set index value as valid number');
309
+ }
310
+ }, [innerIndex]);
301
311
  return /*#__PURE__*/React__default.createElement("div", {
302
312
  style: {
303
- width: '16px',
313
+ width: label ? 'fit-content' : '16px',
304
314
  height: '16px',
305
315
  marginRight: '9px',
306
- display: 'inline-block',
316
+ display: label ? 'flex' : 'inline-block',
307
317
  cursor: !innerDisabled ? 'pointer' : 'not-allowed',
308
318
  ...styles
309
319
  },
310
320
  onClick: !innerDisabled && handleChecked ? handleClick : _ => _
311
- }, innerChecked && (ignoreDisabledForChecked ? ignoreDisabledForChecked : !innerDisabled) ? /*#__PURE__*/React__default.createElement(SvgCheckboxChecked, {
312
- fillColor: checkedColor ? checkedColor : configStyles.SINGLECHECKBOX.checkedColor
313
- }) : /*#__PURE__*/React__default.createElement(SvgCheckboxUnchecked, {
314
- fillColor: unCheckedColor ? unCheckedColor : configStyles.SINGLECHECKBOX.unCheckedColor
315
- }), data?.label && /*#__PURE__*/React__default.createElement("span", null, data.label));
321
+ }, innerChecked && (ignoreDisabledForChecked ? ignoreDisabledForChecked : !innerDisabled) ? checkedIcon ? checkedIcon : /*#__PURE__*/React__default.createElement(SvgCheckboxChecked, {
322
+ fillColor: checkedColor ? checkedColor : configStyles.CHECKBOX.checkedColor
323
+ }) : unCheckedIcon ? unCheckedIcon : /*#__PURE__*/React__default.createElement(SvgCheckboxUnchecked, {
324
+ fillColor: unCheckedColor ? unCheckedColor : configStyles.CHECKBOX.unCheckedColor
325
+ }), label && /*#__PURE__*/React__default.createElement("span", {
326
+ style: {
327
+ marginLeft: labelMarginLeft
328
+ }
329
+ }, label));
316
330
  };
317
331
 
318
332
  const SingleCheckbox = ({
319
333
  data,
320
334
  index,
335
+ label,
321
336
  styles,
322
337
  checked,
323
338
  disabled,
324
339
  innerIndex,
340
+ checkedIcon,
325
341
  checkedColor,
342
+ unCheckedIcon,
326
343
  handleChecked,
327
344
  unCheckedColor,
345
+ labelMarginLeft,
328
346
  ignoreDisabledForChecked
329
347
  }) => {
348
+ const configStyles = compereConfigs();
330
349
  const [innerData, setInnerData] = useState(null);
331
350
  useEffect(() => {
332
- // if (data) {
333
- // if (typeof data === 'object' && data.constructor === Object) {
334
- // setInnerData(data);
335
- // } else {
336
- // alert('Data props on Checkbox component must be an object');
337
- // }
338
- // } else {
339
- // alert('Please add data props on Checkbox component');
340
- // }
341
351
  setInnerData(data);
342
352
  }, [data]);
343
353
  return /*#__PURE__*/React__default.createElement(Checkbox$1, {
344
354
  index: index,
355
+ label: label,
345
356
  styles: styles,
346
357
  data: innerData,
347
358
  checked: checked,
348
359
  disabled: disabled,
349
360
  innerIndex: innerIndex,
361
+ checkedIcon: checkedIcon,
350
362
  checkedColor: checkedColor,
363
+ unCheckedIcon: unCheckedIcon,
351
364
  handleChecked: handleChecked,
352
365
  unCheckedColor: unCheckedColor,
353
- ignoreDisabledForChecked: ignoreDisabledForChecked
366
+ ignoreDisabledForChecked: ignoreDisabledForChecked,
367
+ labelMarginLeft: labelMarginLeft ? labelMarginLeft : configStyles.CHECKBOX.labelMarginLeft
354
368
  });
355
369
  };
356
370
  SingleCheckbox.propTypes = {
357
371
  data: PropTypes.object,
372
+ label: PropTypes.string,
358
373
  onClick: PropTypes.func,
359
374
  index: PropTypes.number,
360
375
  styles: PropTypes.object,
361
376
  disabled: PropTypes.bool,
362
377
  innerIndex: PropTypes.number,
363
378
  checkedColor: PropTypes.string,
379
+ checkedIcon: PropTypes.element,
380
+ unCheckedIcon: PropTypes.element,
364
381
  unCheckedColor: PropTypes.string,
382
+ labelMarginLeft: PropTypes.string,
365
383
  ignoreDisabledForChecked: PropTypes.bool
366
384
  };
367
385
 
368
- 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}";
369
- 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"};
370
- styleInject(css_248z$e);
386
+ 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}";
387
+ 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"};
388
+ styleInject(css_248z$d);
371
389
 
372
390
  /* eslint-disable no-prototype-builtins */
373
391
  const TH = ({
374
392
  item,
393
+ hideBorder,
375
394
  tHeadFamily,
376
395
  tHeadPadding,
377
396
  tHeadFontSize,
397
+ tHeadTextAlign,
378
398
  tHeadFontWeight,
379
399
  handleCheckedHeader,
380
400
  borderTopLeftRadius,
@@ -398,19 +418,19 @@ const TH = ({
398
418
  fontFamily: tHeadFamily,
399
419
  fontWeight: tHeadFontWeight,
400
420
  borderTopLeftRadius: borderTopLeftRadius,
401
- borderTopRightRadius: borderTopRightRadius
421
+ borderTopRightRadius: borderTopRightRadius,
422
+ borderColor: hideBorder ? 'transparent' : '#eeeeee'
402
423
  },
403
424
  onClick: handleHeaderItemClick,
404
- className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$c['sorting-arrows'] : '' : ''}`
425
+ className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$b['sorting-arrows'] : '' : ''}`
405
426
  }, /*#__PURE__*/React__default.createElement("div", {
406
427
  style: {
407
428
  display: 'flex',
408
429
  alignItems: 'flex-start',
409
- justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : 'center'
430
+ justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
410
431
  }
411
432
  }, hasOwnerProperty(item, 'checkBox') ? /*#__PURE__*/React__default.createElement(SingleCheckbox, {
412
433
  data: item,
413
- float: "left",
414
434
  checked: item.checkBox.checked,
415
435
  disabled: item.checkBox.disabled,
416
436
  handleChecked: !item.checkBox.disabled ? handleCheckedHeader : _ => _,
@@ -425,8 +445,12 @@ const TH = ({
425
445
  };
426
446
 
427
447
  const TD = ({
448
+ row,
428
449
  item,
429
450
  index,
451
+ rowItem,
452
+ rowRadius,
453
+ hideBorder,
430
454
  innerIndex,
431
455
  tBodyColor,
432
456
  borderRight,
@@ -494,7 +518,12 @@ const TD = ({
494
518
  textAlign: tBodyTextAlign,
495
519
  fontFamily: tBodyFontFamily,
496
520
  fontWeight: tBodyFontWeight,
497
- boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : ''
521
+ borderColor: hideBorder ? 'transparent' : '#eeeeee',
522
+ boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
523
+ borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
524
+ borderBottomLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
525
+ borderTopRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
526
+ borderBottomRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px'
498
527
  }
499
528
  }, Array.isArray(item) ? item.length > 0 ? item.map((newItem, newIndex) => {
500
529
  if (newItem && !Array.isArray(newItem) && typeof newItem === 'object') {
@@ -507,10 +536,10 @@ const TD = ({
507
536
  },
508
537
  id: newItem.id,
509
538
  type: newItem.type,
510
- className: styles$c['td-span'],
539
+ className: styles$b['td-span'],
511
540
  key: `${newItem.id}_${newIndex}`,
512
541
  onClick: e => handleCheckActions(e, newItem, 'type', newIndex)
513
- }, newItem.content);
542
+ }, newItem.content === 0 ? newItem.content.toString() : newItem.content ? newItem.content : '');
514
543
  } else if (newItem && Array.isArray(newItem)) {
515
544
  return /*#__PURE__*/React__default.createElement("span", {
516
545
  key: `${newItem.id}_${newIndex}`,
@@ -529,10 +558,10 @@ const TD = ({
529
558
  },
530
559
  id: iT.id ? iT.id : '',
531
560
  type: iT.type ? iT.type : '',
532
- className: styles$c['td-span'],
561
+ className: styles$b['td-span'],
533
562
  onClick: e => handleCheckActions(e, iT, 'type', iN),
534
563
  key: `${iT.id || iT.content}_${iN}`
535
- }, iT.content);
564
+ }, iT.content === 0 ? iT.content.toString() : iT.content ? iT.content : '');
536
565
  }));
537
566
  } else {
538
567
  return /*#__PURE__*/React__default.createElement("span", {
@@ -543,7 +572,7 @@ const TD = ({
543
572
  style: {
544
573
  display: 'flex',
545
574
  alignItems: 'flex-start',
546
- justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : 'center'
575
+ justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
547
576
  }
548
577
  }, !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default.createElement("div", {
549
578
  id: item.id,
@@ -553,7 +582,7 @@ const TD = ({
553
582
  cursor: 'pointer'
554
583
  },
555
584
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
556
- className: styles$c['td-span']
585
+ className: styles$b['td-span']
557
586
  }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/React__default.createElement(SingleCheckbox, {
558
587
  data: item,
559
588
  index: index,
@@ -598,7 +627,7 @@ const TD = ({
598
627
  }, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
599
628
  return /*#__PURE__*/React__default.createElement("span", {
600
629
  key: `${optionItem.content}_${optionIndex}`,
601
- className: styles$c['dots-option-item'],
630
+ className: styles$b['dots-option-item'],
602
631
  style: {
603
632
  color: '#3C393E',
604
633
  fontSize: '14px',
@@ -619,7 +648,7 @@ const TD = ({
619
648
  marginBottom: '5px'
620
649
  },
621
650
  title: optionItem.content
622
- }, optionItem.content));
651
+ }, optionItem.content === 0 ? optionItem.content.toString() : optionItem.content ? optionItem.content : ''));
623
652
  }))) : ''), hasOwnerProperty(item, 'contentList') && /*#__PURE__*/React__default.createElement("div", {
624
653
  style: {
625
654
  overflow: 'auto',
@@ -631,13 +660,13 @@ const TD = ({
631
660
  }, item.contentList.map((innerItem, innerItemIndex) => {
632
661
  return /*#__PURE__*/React__default.createElement("p", {
633
662
  key: `${innerItem}_${innerItemIndex}`,
634
- className: styles$c['list-text'],
663
+ className: styles$b['list-text'],
635
664
  style: {
636
665
  color: openListColor,
637
666
  maxWidth: (item.content.length * 9 <= 100 ? 100 : item.content.length * 9) + 'px'
638
667
  },
639
668
  onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
640
- }, innerItem.content);
669
+ }, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
641
670
  }))), !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default.createElement("div", {
642
671
  id: item.id,
643
672
  style: {
@@ -646,7 +675,7 @@ const TD = ({
646
675
  cursor: 'pointer'
647
676
  },
648
677
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
649
- className: styles$c['td-span']
678
+ className: styles$b['td-span']
650
679
  }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
651
680
  };
652
681
 
@@ -708,10 +737,15 @@ const Table = ({
708
737
  arrowShow,
709
738
  dataHeader,
710
739
  arrowColumn,
740
+ tableRowItem,
741
+ tableRowRadius,
742
+ tableRowBGColor,
743
+ tableRowBoxShadow,
711
744
  tHeadColor,
712
745
  tHeadFamily,
713
746
  tHeadPadding,
714
747
  tHeadFontSize,
748
+ tHeadTextAlign,
715
749
  tHeadFontWeight,
716
750
  tHeadBorderRadius,
717
751
  tHeadBackgroundColor,
@@ -719,10 +753,14 @@ const Table = ({
719
753
  tBodyPadding,
720
754
  tBodyFontSize,
721
755
  tBodyTextAlign,
756
+ tBodyRowBorder,
757
+ tBodyBoxShadow,
722
758
  tBodyFontWeight,
723
759
  tBodyFontFamily,
724
- tBodyRowBorder,
725
- openListColor
760
+ tBodyRowMarginTop,
761
+ className,
762
+ openListColor,
763
+ hideBorder
726
764
  }) => {
727
765
  const [body, setBody] = useState([]);
728
766
  const [header, setHeader] = useState([]);
@@ -1003,7 +1041,6 @@ const Table = ({
1003
1041
  });
1004
1042
  };
1005
1043
  const handleOpenCloseRowSingleArrow = (arrowRowIndex, arrowIndex, clickableItem) => {
1006
- console.log(clickableItem, 'clickableItem');
1007
1044
  let single = {};
1008
1045
  const allArrows = [];
1009
1046
  const checkedOpenableRow = body[arrowRowIndex].map((item, index) => {
@@ -1198,17 +1235,21 @@ const Table = ({
1198
1235
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("table", {
1199
1236
  style: {
1200
1237
  width: '100%',
1201
- borderCollapse: 'collapse'
1238
+ borderCollapse: (tableRowItem ? tableRowItem : configStyles.TABLE.tableRowItem) ? 'separate' : 'collapse',
1239
+ borderSpacing: `0 ${tBodyRowMarginTop ? tBodyRowMarginTop : configStyles.TABLE.tBodyRowMarginTop}`
1202
1240
  },
1203
- onClick: handleTableClick
1241
+ onClick: handleTableClick,
1242
+ className: className ? className : configStyles.TABLE.className
1204
1243
  }, header && header.length > 0 && /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", {
1205
1244
  style: {
1206
1245
  color: tHeadColor ? tHeadColor : configStyles.TABLE.tHeadColor,
1207
- backgroundColor: tHeadBackgroundColor ? tHeadBackgroundColor : configStyles.TABLE.tHeadBackgroundColor
1246
+ backgroundColor: tHeadBackgroundColor ? tHeadBackgroundColor : configStyles.TABLE.tHeadBackgroundColor,
1247
+ borderColor: hideBorder ? 'transparent' : '#eeeeee'
1208
1248
  }
1209
1249
  }, header.map((item, index) => {
1210
1250
  return /*#__PURE__*/React__default.createElement(TH, {
1211
1251
  item: item,
1252
+ hideBorder: hideBorder,
1212
1253
  key: `${item}_${index}`,
1213
1254
  handleCheckedHeader: handleCheckedHeader,
1214
1255
  handleHeaderItemClick: handleHeaderItemClick,
@@ -1216,25 +1257,31 @@ const Table = ({
1216
1257
  tHeadFamily: tHeadFamily ? tHeadFamily : configStyles.TABLE.tHeadFamily,
1217
1258
  tHeadPadding: tHeadPadding ? tHeadPadding : configStyles.TABLE.tHeadPadding,
1218
1259
  tHeadFontSize: tHeadFontSize ? tHeadFontSize : configStyles.TABLE.tHeadFontSize,
1260
+ tHeadTextAlign: tHeadTextAlign ? tHeadTextAlign : configStyles.TABLE.tHeadTextAlign,
1219
1261
  tHeadFontWeight: tHeadFontWeight ? tHeadFontWeight : configStyles.TABLE.tHeadFontWeight,
1220
1262
  borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px',
1221
1263
  borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px'
1222
1264
  });
1223
1265
  }))), body && body.length > 0 && /*#__PURE__*/React__default.createElement("tbody", {
1224
1266
  style: {
1225
- boxShadow: '0px 10px 30px rgba(0, 35, 106, 0.06)'
1267
+ boxShadow: tBodyBoxShadow ? tBodyBoxShadow : configStyles.TABLE.tBodyBoxShadow
1226
1268
  }
1227
1269
  }, body.map((item, index) => {
1228
1270
  return /*#__PURE__*/React__default.createElement("tr", {
1229
1271
  key: `${item}_${index}`,
1230
1272
  style: {
1231
- borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.tBodyRowBorder
1273
+ backgroundColor: tableRowBGColor ? tableRowBGColor : configStyles.TABLE.tableRowBGColor,
1274
+ borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.tBodyRowBorder,
1275
+ borderColor: hideBorder ? 'transparent' : '#eeeeee',
1276
+ boxShadow: (tableRowItem ? tableRowItem : configStyles.TABLE.tableRowItem) ? tableRowBoxShadow ? tableRowBoxShadow : configStyles.TABLE.tableRowBoxShadow : 'none'
1232
1277
  }
1233
1278
  }, Object.values(item).map((innerItem, innerIndex) => {
1234
1279
  return /*#__PURE__*/React__default.createElement(TD, {
1235
1280
  index: index,
1236
1281
  item: innerItem,
1282
+ hideBorder: hideBorder,
1237
1283
  innerIndex: innerIndex,
1284
+ row: Object.values(item),
1238
1285
  id: item.id ? item.id : '',
1239
1286
  handleCheckDots: handleCheckDots,
1240
1287
  key: `${innerItem}_${index}_${innerIndex}`,
@@ -1244,6 +1291,8 @@ const Table = ({
1244
1291
  handleMoreOptionsClick: handleMoreOptionsClick,
1245
1292
  handleContentListClick: handleContentListClick,
1246
1293
  tBodyColor: tBodyColor ? tBodyColor : configStyles.TABLE.tBodyColor,
1294
+ rowItem: tableRowItem ? tableRowItem : configStyles.TABLE.tableRowItem,
1295
+ rowRadius: tableRowRadius ? tableRowRadius : configStyles.TABLE.tableRowRadius,
1247
1296
  tBodyPadding: tBodyPadding ? tBodyPadding : configStyles.TABLE.tBodyPadding,
1248
1297
  tBodyFontSize: tBodyFontSize ? tBodyFontSize : configStyles.TABLE.tBodyFontSize,
1249
1298
  tBodyTextAlign: tBodyTextAlign ? tBodyTextAlign : configStyles.TABLE.tBodyTextAlign,
@@ -1262,26 +1311,35 @@ Table.propTypes = {
1262
1311
  arrowShow: PropTypes.bool,
1263
1312
  dataHeader: PropTypes.array,
1264
1313
  arrowColumn: PropTypes.number,
1314
+ tableRowItem: PropTypes.bool,
1315
+ tableRowRadius: PropTypes.string,
1316
+ tableRowBGColor: PropTypes.string,
1317
+ tableRowBoxShadow: PropTypes.string,
1265
1318
  tHeadColor: PropTypes.string,
1266
1319
  tHeadFamily: PropTypes.string,
1267
1320
  tHeadPadding: PropTypes.string,
1268
1321
  tHeadFontSize: PropTypes.string,
1322
+ tHeadTextAlign: PropTypes.string,
1269
1323
  tHeadFontWeight: PropTypes.number,
1270
1324
  tHeadBorderRadius: PropTypes.string,
1271
1325
  tHeadBackgroundColor: PropTypes.string,
1272
1326
  tBodyColor: PropTypes.string,
1273
1327
  tBodyPadding: PropTypes.string,
1274
1328
  tBodyFontSize: PropTypes.string,
1329
+ tBodyBoxShadow: PropTypes.string,
1275
1330
  tBodyTextAlign: PropTypes.string,
1276
1331
  tBodyFontWeight: PropTypes.string,
1277
1332
  tBodyFontFamily: PropTypes.string,
1333
+ tBodyRowMarginTop: PropTypes.string,
1334
+ className: PropTypes.string,
1278
1335
  tBodyRowBorder: PropTypes.string,
1279
- openListColor: PropTypes.string
1336
+ openListColor: PropTypes.string,
1337
+ hideBorder: PropTypes.bool
1280
1338
  };
1281
1339
 
1282
- 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)}}";
1283
- var styles$b = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
1284
- styleInject(css_248z$d);
1340
+ 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)}}";
1341
+ var styles$a = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
1342
+ styleInject(css_248z$c);
1285
1343
 
1286
1344
  const SvgNext = ({
1287
1345
  title,
@@ -1426,9 +1484,10 @@ const Modal = ({
1426
1484
  layerBackgroundColor
1427
1485
  }) => {
1428
1486
  const [select, setSelect] = useState(0);
1487
+ const [isHover, setIsHover] = useState(false);
1429
1488
  const [innerData, setInnerData] = useState([]);
1430
1489
  const configStyles = compereConfigs();
1431
- const classProps = classnames(className);
1490
+ const classProps = classnames(className ? className : configStyles.MODAL.className);
1432
1491
  const handleCloseModal = () => {
1433
1492
  setShow(false);
1434
1493
  };
@@ -1460,6 +1519,12 @@ const Modal = ({
1460
1519
  imageLink.href = url, imageLink.target = '_blank';
1461
1520
  imageLink.click();
1462
1521
  };
1522
+ const handleMouseEnter = () => {
1523
+ setIsHover(true);
1524
+ };
1525
+ const handleMouseLeave = () => {
1526
+ setIsHover(false);
1527
+ };
1463
1528
  useEffect(() => {
1464
1529
  if (type === 'images') {
1465
1530
  if (data) {
@@ -1493,6 +1558,7 @@ const Modal = ({
1493
1558
  };
1494
1559
  }, []);
1495
1560
  return /*#__PURE__*/React__default.createElement("div", {
1561
+ className: classProps,
1496
1562
  onClick: outsideClose || configStyles.MODAL.outsideClose ? handleCloseModal : _ => _,
1497
1563
  style: {
1498
1564
  top: '0px',
@@ -1513,7 +1579,7 @@ const Modal = ({
1513
1579
  justifyContent: justifyContent ? justifyContent : configStyles.MODAL.justifyContent
1514
1580
  }
1515
1581
  }, /*#__PURE__*/React__default.createElement("div", {
1516
- className: `${classProps} ${styles$b['animation__modal']}`,
1582
+ className: `${styles$a['animation__modal']}`,
1517
1583
  onClick: handleStopClosing,
1518
1584
  style: {
1519
1585
  position: 'relative',
@@ -1573,7 +1639,9 @@ const Modal = ({
1573
1639
  borderWidth: borderWidth ? borderWidth : configStyles.MODAL.borderWidth,
1574
1640
  borderStyle: borderStyle ? borderStyle : configStyles.MODAL.borderStyle,
1575
1641
  borderColor: borderColor ? borderColor : configStyles.MODAL.borderColor
1576
- }
1642
+ },
1643
+ onMouseEnter: handleMouseEnter,
1644
+ onMouseLeave: handleMouseLeave
1577
1645
  }, type === 'content' ? children ? children : '' : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
1578
1646
  style: {
1579
1647
  position: 'absolute',
@@ -1624,7 +1692,7 @@ const Modal = ({
1624
1692
  maxWidth: imageMaxWidth ? imageMaxWidth : configStyles.MODAL.imageMaxWidth
1625
1693
  },
1626
1694
  src: item.url
1627
- }), showZoomIcon ? /*#__PURE__*/React__default.createElement("div", {
1695
+ }), isHover && showZoomIcon ? /*#__PURE__*/React__default.createElement("div", {
1628
1696
  style: {
1629
1697
  top: '0px',
1630
1698
  left: '0px',
@@ -1715,9 +1783,9 @@ Modal.defaultProps = {
1715
1783
  type: 'content'
1716
1784
  };
1717
1785
 
1718
- 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)}}";
1719
- 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"};
1720
- styleInject(css_248z$c);
1786
+ 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)}}";
1787
+ 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"};
1788
+ styleInject(css_248z$b);
1721
1789
 
1722
1790
  const InputTypes = {
1723
1791
  TEL: 'tel',
@@ -1794,7 +1862,7 @@ const Input = ({
1794
1862
  const [innerErrorMessage, setInnerErrorMessage] = useState('');
1795
1863
  const random = Math.floor(Math.random() * 1000 + 1);
1796
1864
  const configStyles = compereConfigs();
1797
- const classProps = classnames(className ? className : configStyles.INPUT.className, type === 'number' ? styles$a['inp-num'] : '');
1865
+ const classProps = classnames(className ? className : configStyles.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']);
1798
1866
  const errorShow = keyframes`
1799
1867
  100% {
1800
1868
  bottom: '-20px';
@@ -2082,9 +2150,9 @@ const Input = ({
2082
2150
  }
2083
2151
  }, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage, telErrorMessage, configStyles.INPUT.maxLength]);
2084
2152
  return /*#__PURE__*/React__default.createElement("div", {
2085
- className: `${styles$a['input-wrap']}`
2153
+ className: classProps
2086
2154
  }, label ? /*#__PURE__*/React__default.createElement("label", {
2087
- className: `${styles$a['input-title']}`,
2155
+ className: `${styles$9['input-title']}`,
2088
2156
  style: {
2089
2157
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
2090
2158
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
@@ -2094,7 +2162,7 @@ const Input = ({
2094
2162
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
2095
2163
  }
2096
2164
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
2097
- className: `${styles$a['input-content']}`,
2165
+ className: `${styles$9['input-content']}`,
2098
2166
  style: {
2099
2167
  width: width ? width : configStyles.INPUT.width,
2100
2168
  borderRadius: radius ? radius : configStyles.INPUT.radius,
@@ -2136,7 +2204,6 @@ const Input = ({
2136
2204
  }
2137
2205
  }, "+374") : '', /*#__PURE__*/React__default.createElement("input", _extends({}, props, {
2138
2206
  value: innerValue,
2139
- className: classProps,
2140
2207
  onInput: handleChange,
2141
2208
  disabled: disabled ? disabled : '',
2142
2209
  name: name ? name : `tui_${random}_tui`,
@@ -2254,9 +2321,9 @@ Input.defaultProps = {
2254
2321
  type: 'text'
2255
2322
  };
2256
2323
 
2257
- 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}";
2258
- var styles$9 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
2259
- styleInject(css_248z$b);
2324
+ 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}";
2325
+ var styles$8 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
2326
+ styleInject(css_248z$a);
2260
2327
 
2261
2328
  const Radio = ({
2262
2329
  disabled,
@@ -2269,11 +2336,11 @@ const Radio = ({
2269
2336
  label,
2270
2337
  ...props
2271
2338
  }) => {
2272
- const classProps = classnames(styles$9.checkbox, className);
2339
+ const classProps = classnames(styles$8.checkbox, className);
2273
2340
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
2274
2341
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, parseData.map((element, id) => {
2275
2342
  return /*#__PURE__*/React__default.createElement("label", {
2276
- className: `${styles$9['radio-wrap']} radio-wrap-rem`,
2343
+ className: `${styles$8['radio-wrap']} radio-wrap-rem`,
2277
2344
  key: element.value
2278
2345
  }, /*#__PURE__*/React__default.createElement("input", _extends({
2279
2346
  type: "radio",
@@ -2284,9 +2351,9 @@ const Radio = ({
2284
2351
  value: value ? value : element.value,
2285
2352
  name: name ? name : element.name
2286
2353
  }, props)), /*#__PURE__*/React__default.createElement("span", {
2287
- className: `${styles$9['radio-checkmark']} radio-checkmark-rem`
2354
+ className: `${styles$8['radio-checkmark']} radio-checkmark-rem`
2288
2355
  }), element.label ? /*#__PURE__*/React__default.createElement("span", {
2289
- className: styles$9.labelRadio
2356
+ className: styles$8.labelRadio
2290
2357
  }, label ? label : element.label) : '');
2291
2358
  }));
2292
2359
  };
@@ -2309,7 +2376,6 @@ Radio.defaultProps = {
2309
2376
 
2310
2377
  const Button = ({
2311
2378
  icon,
2312
- hoverIcon,
2313
2379
  size,
2314
2380
  type,
2315
2381
  font,
@@ -2327,6 +2393,7 @@ const Button = ({
2327
2393
  disabled,
2328
2394
  className,
2329
2395
  boxSizing,
2396
+ hoverIcon,
2330
2397
  hoverColor,
2331
2398
  transition,
2332
2399
  contentWidth,
@@ -2346,7 +2413,7 @@ const Button = ({
2346
2413
  }
2347
2414
  }, []);
2348
2415
  const configStyles = compereConfigs();
2349
- const classProps = classnames(className);
2416
+ const classProps = classnames(className ? className : configStyles.BUTTON.className);
2350
2417
  const handleMouseEnter = () => {
2351
2418
  setIsHover(true);
2352
2419
  };
@@ -2356,6 +2423,7 @@ const Button = ({
2356
2423
  return /*#__PURE__*/React__default.createElement("button", _extends({
2357
2424
  style: {
2358
2425
  display: 'flex',
2426
+ outline: 'none',
2359
2427
  alignItems: 'center',
2360
2428
  justifyContent: 'center',
2361
2429
  fontSize: size ? size : configStyles.BUTTON.size,
@@ -2437,9 +2505,9 @@ const SvgArrow = ({
2437
2505
  fill: fillColor ? fillColor : '#3C393E'
2438
2506
  }));
2439
2507
 
2440
- 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}}";
2441
- 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"};
2442
- styleInject(css_248z$a);
2508
+ 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}}";
2509
+ 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"};
2510
+ styleInject(css_248z$9);
2443
2511
 
2444
2512
  const Select = ({
2445
2513
  dots,
@@ -2506,7 +2574,7 @@ const Select = ({
2506
2574
  const [newSelected, setNewSelected] = useState([]);
2507
2575
  const [existOptions, setExistOptions] = useState([]);
2508
2576
  const configStyles = compereConfigs();
2509
- const classProps = classnames(className);
2577
+ const classProps = classnames(className ? className : configStyles.SELECT.className);
2510
2578
  const handleOpenClose = () => {
2511
2579
  setOpened(!opened);
2512
2580
  };
@@ -2514,7 +2582,9 @@ const Select = ({
2514
2582
  onChange({});
2515
2583
  setNewSelected([]);
2516
2584
  const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
2517
- item.checked = false;
2585
+ if (hasOwnerProperty(item, 'checked')) {
2586
+ item.checked = false;
2587
+ }
2518
2588
  return item;
2519
2589
  });
2520
2590
  setExistOptions(clearedOptions);
@@ -2625,7 +2695,7 @@ const Select = ({
2625
2695
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
2626
2696
  ref: ref
2627
2697
  }, /*#__PURE__*/React__default.createElement("div", {
2628
- className: styles$8['select-content']
2698
+ className: styles$7['select-content']
2629
2699
  }, /*#__PURE__*/React__default.createElement("div", {
2630
2700
  style: {
2631
2701
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
@@ -2643,9 +2713,9 @@ const Select = ({
2643
2713
  onClick: disabled ? _ => _ : () => handleOpenClose(),
2644
2714
  onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
2645
2715
  onMouseLeave: disabled ? _ => _ : () => handleMouseLeave(),
2646
- className: `${styles$8['select-content-top']}`
2716
+ className: `${styles$7['select-content-top']}`
2647
2717
  }, /*#__PURE__*/React__default.createElement("div", {
2648
- className: `${styles$8['select-content-top-text']}`,
2718
+ className: `${styles$7['select-content-top-text']}`,
2649
2719
  style: {
2650
2720
  whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
2651
2721
  overflow: 'hidden',
@@ -2661,9 +2731,9 @@ const Select = ({
2661
2731
  }
2662
2732
  }
2663
2733
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
2664
- className: `${styles$8['select-content-top-icon']}`
2734
+ className: `${styles$7['select-content-top-icon']}`
2665
2735
  }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default.createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : configStyles.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default.createElement("div", {
2666
- className: `${styles$8['close-icon']}`,
2736
+ className: `${styles$7['close-icon']}`,
2667
2737
  onClick: disabled ? _ => _ : handleClearSelect,
2668
2738
  style: {
2669
2739
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
@@ -2672,7 +2742,7 @@ const Select = ({
2672
2742
  style: {
2673
2743
  transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
2674
2744
  },
2675
- className: `${styles$8['arrow-icon']}`
2745
+ className: `${styles$7['arrow-icon']}`
2676
2746
  }, arrowIcon ? arrowIcon : /*#__PURE__*/React__default.createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default.createElement("div", {
2677
2747
  style: {
2678
2748
  boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
@@ -2680,9 +2750,9 @@ const Select = ({
2680
2750
  backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
2681
2751
  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'
2682
2752
  },
2683
- className: `${styles$8['select-content-bottom']}`
2753
+ className: `${styles$7['select-content-bottom']}`
2684
2754
  }, /*#__PURE__*/React__default.createElement("div", {
2685
- className: `${styles$8['select-content-bottom-inner']}`
2755
+ className: `${styles$7['select-content-bottom-inner']}`
2686
2756
  }, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
2687
2757
  return /*#__PURE__*/React__default.createElement("div", {
2688
2758
  key: i,
@@ -2691,7 +2761,7 @@ const Select = ({
2691
2761
  onClick: disabled ? _ => _ : () => handleSelectItem(option),
2692
2762
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
2693
2763
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
2694
- className: `${styles$8['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$8['ellipsis'] : ''}`,
2764
+ className: `${styles$7['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$7['ellipsis'] : ''}`,
2695
2765
  style: {
2696
2766
  overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
2697
2767
  color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
@@ -2873,9 +2943,9 @@ const SvgToasterSuccess = ({
2873
2943
  fill: fillColor ? fillColor : '#0DA574'
2874
2944
  }));
2875
2945
 
2876
- 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}}";
2877
- 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"};
2878
- styleInject(css_248z$9);
2946
+ 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}}";
2947
+ 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"};
2948
+ styleInject(css_248z$8);
2879
2949
 
2880
2950
  let wWidth$1 = window.innerWidth;
2881
2951
  const ToasterType = {
@@ -2941,8 +3011,8 @@ const Toast = ({
2941
3011
  justifyContent: 'space-between'
2942
3012
  },
2943
3013
  className: `
2944
- ${styles$7['notify-block']}
2945
- ${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'] : ''}
3014
+ ${styles$6['notify-block']}
3015
+ ${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'] : ''}
2946
3016
  `
2947
3017
  }, /*#__PURE__*/React__default.createElement("div", {
2948
3018
  style: {
@@ -2968,7 +3038,7 @@ const Toast = ({
2968
3038
  lineHeight: '22px',
2969
3039
  fontStyle: 'normal'
2970
3040
  },
2971
- className: styles$7['notify-title']
3041
+ className: styles$6['notify-title']
2972
3042
  }, title ? title : ''), /*#__PURE__*/React__default.createElement("span", {
2973
3043
  style: {
2974
3044
  fontWeight: 500,
@@ -2979,7 +3049,7 @@ const Toast = ({
2979
3049
  fontFamily: '',
2980
3050
  opacity: 0.8
2981
3051
  },
2982
- className: styles$7['notify-desc']
3052
+ className: styles$6['notify-desc']
2983
3053
  }, description ? description : '')), /*#__PURE__*/React__default.createElement("div", {
2984
3054
  onClick: () => handleCloseToaster(ref),
2985
3055
  style: {
@@ -3042,17 +3112,17 @@ const createToast = ({
3042
3112
  description
3043
3113
  });
3044
3114
  ReactDOM.render(newElem, toastBlock);
3045
- if (!document.getElementById(styles$7[position]) || document.getElementById(styles$7[position]) == null) {
3115
+ if (!document.getElementById(styles$6[position]) || document.getElementById(styles$6[position]) == null) {
3046
3116
  toastParentBlock = document.createElement('div');
3047
3117
  toastParentBlock.style.position = 'fixed';
3048
3118
  toastParentBlock.style.display = 'flex';
3049
3119
  toastParentBlock.style.zIndex = 999999999999;
3050
3120
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
3051
- toastParentBlock.setAttribute('id', styles$7[position]);
3121
+ toastParentBlock.setAttribute('id', styles$6[position]);
3052
3122
  toastParentBlock.appendChild(toastBlock);
3053
3123
  toastify.appendChild(toastParentBlock);
3054
3124
  } else {
3055
- document.getElementById(styles$7[position]).appendChild(toastBlock);
3125
+ document.getElementById(styles$6[position]).appendChild(toastBlock);
3056
3126
  }
3057
3127
  };
3058
3128
  const toast = {
@@ -3113,7 +3183,11 @@ const toast = {
3113
3183
  });
3114
3184
  }
3115
3185
  };
3116
- const Toaster = () => {
3186
+ const Toaster = ({
3187
+ className
3188
+ }) => {
3189
+ const configStyles = compereConfigs();
3190
+ const classProps = classnames(className ? className : configStyles.TOASTER.className);
3117
3191
  window.addEventListener('popstate', () => {
3118
3192
  if (path !== window.location.href) {
3119
3193
  if (!toastify) {
@@ -3130,6 +3204,7 @@ const Toaster = () => {
3130
3204
  };
3131
3205
  return /*#__PURE__*/React__default.createElement("div", {
3132
3206
  onClick: handleToasterClick,
3207
+ className: classProps,
3133
3208
  id: "toastify"
3134
3209
  });
3135
3210
  };
@@ -3153,9 +3228,9 @@ const SvgTooltip = ({
3153
3228
  fill: fillColor ? fillColor : '#D1D1D1'
3154
3229
  }));
3155
3230
 
3156
- 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}";
3157
- 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"};
3158
- styleInject(css_248z$8);
3231
+ 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}";
3232
+ 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"};
3233
+ styleInject(css_248z$7);
3159
3234
 
3160
3235
  const Tooltip = ({
3161
3236
  type,
@@ -3178,7 +3253,7 @@ const Tooltip = ({
3178
3253
  const [checkTooltipHeight, setCheckTooltipHeight] = useState(0);
3179
3254
  const [showTooltip, setShowTooltip] = useState(false);
3180
3255
  const configStyles = compereConfigs();
3181
- const classProps = classnames(styles$6['tooltip'], className);
3256
+ const classProps = classnames(styles$5['tooltip-block'], className ? className : configStyles.TOOLTIP.className);
3182
3257
  const handleShow = () => {
3183
3258
  setShowTooltip(!showTooltip);
3184
3259
  };
@@ -3190,7 +3265,7 @@ const Tooltip = ({
3190
3265
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
3191
3266
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
3192
3267
  return /*#__PURE__*/React__default.createElement("div", {
3193
- className: `${styles$6['tooltip-block']}`,
3268
+ className: classProps,
3194
3269
  style: {
3195
3270
  width: width ? width : configStyles.TOOLTIP.width,
3196
3271
  height: height ? height : configStyles.TOOLTIP.height,
@@ -3199,7 +3274,7 @@ const Tooltip = ({
3199
3274
  }
3200
3275
  }, showTooltip ? /*#__PURE__*/React__default.createElement("div", {
3201
3276
  ref: tooltipRef,
3202
- className: classProps,
3277
+ className: `${styles$5['tooltip']}`,
3203
3278
  style: {
3204
3279
  width: tooltipWidth ? tooltipWidth : configStyles.TOOLTIP.tooltipWidth,
3205
3280
  borderRadius: tooltipRadius ? tooltipRadius : configStyles.TOOLTIP.tooltipRadius,
@@ -3208,9 +3283,9 @@ const Tooltip = ({
3208
3283
  left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
3209
3284
  }
3210
3285
  }, /*#__PURE__*/React__default.createElement("div", {
3211
- className: `${styles$6['tooltip-rel']}`
3286
+ className: `${styles$5['tooltip-rel']}`
3212
3287
  }, /*#__PURE__*/React__default.createElement("div", {
3213
- className: `${styles$6['tooltip-decor']}`,
3288
+ className: `${styles$5['tooltip-decor']}`,
3214
3289
  style: {
3215
3290
  backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
3216
3291
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
@@ -3287,19 +3362,21 @@ const SvgCaptchaArrowDown = ({
3287
3362
  fill: fillColor ? fillColor : '#00236A'
3288
3363
  }));
3289
3364
 
3290
- 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}";
3291
- 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"};
3292
- styleInject(css_248z$7);
3365
+ 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}";
3366
+ 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"};
3367
+ styleInject(css_248z$6);
3293
3368
 
3294
3369
  const Captcha = ({
3295
3370
  size,
3296
3371
  color,
3297
3372
  range,
3298
3373
  label,
3374
+ className,
3299
3375
  getRange
3300
3376
  }) => {
3301
3377
  const [rangeNumber, setRangeNumber] = useState(0);
3302
3378
  const [rangeProgress, setRangeProgress] = useState(0);
3379
+ const classProps = classnames(className ? className : configStyles.CAPTCHA.className);
3303
3380
  const configStyles = compereConfigs();
3304
3381
  const handleRange = e => {
3305
3382
  const value = e.target.value;
@@ -3322,7 +3399,9 @@ const Captcha = ({
3322
3399
  setRangeNumber(Math.min(roundedRange, 100));
3323
3400
  }
3324
3401
  }, [range, getRange]);
3325
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement("p", {
3402
+ return /*#__PURE__*/React__default.createElement("div", {
3403
+ className: classProps
3404
+ }, label && /*#__PURE__*/React__default.createElement("p", {
3326
3405
  style: {
3327
3406
  fontSize: size ? size : configStyles.Captcha.size,
3328
3407
  color: color ? color : configStyles.Captcha.color
@@ -3352,7 +3431,7 @@ const Captcha = ({
3352
3431
  alignItems: 'center',
3353
3432
  zIndex: 1
3354
3433
  },
3355
- className: styles$5['start-point']
3434
+ className: styles$4['start-point']
3356
3435
  }, /*#__PURE__*/React__default.createElement("div", {
3357
3436
  style: {
3358
3437
  position: 'absolute',
@@ -3378,8 +3457,8 @@ const Captcha = ({
3378
3457
  backgroundColor: 'transparent'
3379
3458
  },
3380
3459
  className: `
3381
- ${styles$5['range']}
3382
- ${+rangeProgress === rangeNumber ? styles$5['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$5['range-error'] : styles$5['range-default']}
3460
+ ${styles$4['range']}
3461
+ ${+rangeProgress === rangeNumber ? styles$4['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$4['range-error'] : styles$4['range-default']}
3383
3462
  `,
3384
3463
  onInput: handleRange
3385
3464
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -3409,24 +3488,26 @@ Captcha.propTypes = {
3409
3488
  getRange: PropTypes.func.isRequired
3410
3489
  };
3411
3490
 
3412
- 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}";
3413
- 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"};
3414
- styleInject(css_248z$6);
3491
+ 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}";
3492
+ 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"};
3493
+ styleInject(css_248z$5);
3415
3494
 
3416
3495
  const Stepper = ({
3417
3496
  stepLength,
3418
- activeSteps
3497
+ activeSteps,
3498
+ className
3419
3499
  }) => {
3500
+ const configStyles = compereConfigs();
3420
3501
  return /*#__PURE__*/React__default.createElement("div", {
3421
- className: `${styles$4['stepper-container']} stepper-container-rem`
3502
+ className: classnames(className ? className : configStyles.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`)
3422
3503
  }, (() => {
3423
3504
  let steppers = [];
3424
3505
  for (let step = 1; step <= stepLength; step++) {
3425
3506
  steppers.push( /*#__PURE__*/React__default.createElement("div", {
3426
- className: classnames(`${step <= activeSteps ? styles$4.activeRing : styles$4.bigRing}`),
3507
+ className: classnames(`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
3427
3508
  key: step
3428
3509
  }, /*#__PURE__*/React__default.createElement("div", {
3429
- className: classnames(`${step <= activeSteps ? styles$4.smallActiveRing : styles$4.smallRing}`)
3510
+ className: classnames(`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
3430
3511
  }, step <= activeSteps ? step : '')));
3431
3512
  }
3432
3513
  return steppers;
@@ -3927,6 +4008,7 @@ const NewFile = ({
3927
4008
  disabled,
3928
4009
  multiple,
3929
4010
  required,
4011
+ className,
3930
4012
  errorSize,
3931
4013
  labelSize,
3932
4014
  removeFile,
@@ -3971,13 +4053,14 @@ const NewFile = ({
3971
4053
  }) => {
3972
4054
  const ref = useRef(null);
3973
4055
  const inpRef = useRef(null);
4056
+ const configStyles = compereConfigs();
3974
4057
  const memoizedItems = useMemo(() => filesArray, [filesArray]);
4058
+ const classProps = classnames(className ? className : configStyles.FILE.className);
3975
4059
  const [error, setError] = useState('');
3976
4060
  const [isHover, setIsHover] = useState(false);
3977
4061
  const [singleFile, setSingleFile] = useState(null);
3978
4062
  const [choosenFileCount, setChoosenFileCount] = useState(0);
3979
4063
  const [image, setImage] = useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url : 'pdf' : null : null);
3980
- const configStyles = compereConfigs();
3981
4064
  const handleRemoveComponent = () => {
3982
4065
  if (!multiple) {
3983
4066
  removeFile && removeFile(singleFile);
@@ -4180,8 +4263,9 @@ const NewFile = ({
4180
4263
  ref: ref,
4181
4264
  style: {
4182
4265
  width: '100%',
4183
- maxWidth: maxWidth ? maxWidth : configStyles.File.maxWidth
4184
- }
4266
+ maxWidth: maxWidth ? maxWidth : configStyles.FILE.maxWidth
4267
+ },
4268
+ className: classProps
4185
4269
  }, /*#__PURE__*/React__default.createElement("div", {
4186
4270
  style: {
4187
4271
  display: 'flex',
@@ -4191,8 +4275,8 @@ const NewFile = ({
4191
4275
  }
4192
4276
  }, label && /*#__PURE__*/React__default.createElement("label", {
4193
4277
  style: {
4194
- color: labelColor ? labelColor : configStyles.File.labelColor,
4195
- fontSize: labelSize ? labelSize : configStyles.File.labelSize
4278
+ color: labelColor ? labelColor : configStyles.FILE.labelColor,
4279
+ fontSize: labelSize ? labelSize : configStyles.FILE.labelSize
4196
4280
  }
4197
4281
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
4198
4282
  style: {
@@ -4208,11 +4292,11 @@ const NewFile = ({
4208
4292
  boxSizing: 'border-box',
4209
4293
  justifyContent: 'center',
4210
4294
  cursor: !disabled ? 'pointer' : 'not-allowed',
4211
- height: height ? height : configStyles.File.height,
4212
- border: border ? border : configStyles.File.border,
4213
- borderRadius: radius ? radius : configStyles.File.radius,
4214
- backgroundColor: backgroundColor ? backgroundColor : configStyles.File.backgroundColor,
4215
- borderColor: error ? errorColor ? errorColor : configStyles.File.errorColor : disabled ? borderColor ? borderColor : configStyles.File.borderColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.File.borderHoverColor : borderColor ? borderColor : configStyles.File.borderColor
4295
+ height: height ? height : configStyles.FILE.height,
4296
+ border: border ? border : configStyles.FILE.border,
4297
+ borderRadius: radius ? radius : configStyles.FILE.radius,
4298
+ backgroundColor: backgroundColor ? backgroundColor : configStyles.FILE.backgroundColor,
4299
+ borderColor: error ? errorColor ? errorColor : configStyles.FILE.errorColor : disabled ? borderColor ? borderColor : configStyles.FILE.borderColor : isHover ? borderHoverColor ? borderHoverColor : configStyles.FILE.borderHoverColor : borderColor ? borderColor : configStyles.FILE.borderColor
4216
4300
  },
4217
4301
  onDrop: handleDrop,
4218
4302
  onClick: handleClick,
@@ -4236,9 +4320,9 @@ const NewFile = ({
4236
4320
  alignItems: 'center',
4237
4321
  flexDirection: 'column',
4238
4322
  justifyContent: 'center',
4239
- color: color ? color : configStyles.File.color,
4240
- fontSize: size ? size : configStyles.File.size,
4241
- fontWeight: weight ? weight : configStyles.File.weight
4323
+ color: color ? color : configStyles.FILE.color,
4324
+ fontSize: size ? size : configStyles.FILE.size,
4325
+ fontWeight: weight ? weight : configStyles.FILE.weight
4242
4326
  }
4243
4327
  }, !multiple && image ? image === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? /*#__PURE__*/React__default.createElement(SvgHeic, null) : /*#__PURE__*/React__default.createElement("img", {
4244
4328
  src: image,
@@ -4247,27 +4331,27 @@ const NewFile = ({
4247
4331
  maxWidth: '100%',
4248
4332
  maxHeight: '95%',
4249
4333
  objectFit: 'contain',
4250
- width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.File.fileAreaImageWidth,
4251
- height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.File.fileAreaImageHeight
4334
+ width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.FILE.fileAreaImageWidth,
4335
+ height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.FILE.fileAreaImageHeight
4252
4336
  },
4253
4337
  alt: "file preview"
4254
4338
  }) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(SvgUpload, null)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
4255
4339
  style: {
4256
4340
  margin: '0px'
4257
4341
  }
4258
- }, putFileHere ? putFileHere : configStyles.File.putFileHere, /*#__PURE__*/React__default.createElement("br", null), or ? or : configStyles.File.or, ' ', /*#__PURE__*/React__default.createElement("span", {
4342
+ }, putFileHere ? putFileHere : configStyles.FILE.putFileHere, /*#__PURE__*/React__default.createElement("br", null), or ? or : configStyles.FILE.or, ' ', /*#__PURE__*/React__default.createElement("span", {
4259
4343
  style: {
4260
- color: uploadColor ? uploadColor : configStyles.File.uploadColor
4344
+ color: uploadColor ? uploadColor : configStyles.FILE.uploadColor
4261
4345
  }
4262
- }, upload ? upload : configStyles.File.upload))), /*#__PURE__*/React__default.createElement("div", {
4346
+ }, upload ? upload : configStyles.FILE.upload))), /*#__PURE__*/React__default.createElement("div", {
4263
4347
  style: {
4264
- marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.File.extentionsRowMarginTop
4348
+ marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.FILE.extentionsRowMarginTop
4265
4349
  }
4266
4350
  }, /*#__PURE__*/React__default.createElement("p", {
4267
4351
  style: {
4268
4352
  margin: '0px'
4269
4353
  }
4270
- }, fileSizeText ? fileSizeText : configStyles.File.fileSizeText, " ", maxSize, "\u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default.createElement("div", {
4354
+ }, fileSizeText ? fileSizeText : configStyles.FILE.fileSizeText, " ", maxSize, "\u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default.createElement("div", {
4271
4355
  style: {
4272
4356
  position: 'absolute',
4273
4357
  top: '0px',
@@ -4280,9 +4364,9 @@ const NewFile = ({
4280
4364
  boxSizing: 'border-box',
4281
4365
  alignItems: 'flex-start',
4282
4366
  justifyContent: 'flex-end',
4283
- borderRadius: radius ? radius : configStyles.File.radius,
4367
+ borderRadius: radius ? radius : configStyles.FILE.radius,
4284
4368
  display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
4285
- backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.File.hiddenBackgroundColor
4369
+ backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.FILE.hiddenBackgroundColor
4286
4370
  },
4287
4371
  onClick: handleStopPropagation
4288
4372
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -4294,8 +4378,8 @@ const NewFile = ({
4294
4378
  style: {
4295
4379
  marginTop: '6px',
4296
4380
  display: 'inline-block',
4297
- color: errorColor ? errorColor : configStyles.File.errorColor,
4298
- fontSize: errorSize ? errorSize : configStyles.File.errorSize
4381
+ color: errorColor ? errorColor : configStyles.FILE.errorColor,
4382
+ fontSize: errorSize ? errorSize : configStyles.FILE.errorSize
4299
4383
  }
4300
4384
  }, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
4301
4385
  return /*#__PURE__*/React__default.createElement(FileItem, {
@@ -4307,20 +4391,20 @@ const NewFile = ({
4307
4391
  name: item.file.name,
4308
4392
  timeForRemoveError: timeForRemoveError,
4309
4393
  removeFile: removeFile ? removeFile : _ => _,
4310
- radius: radius ? radius : configStyles.File.radius,
4394
+ radius: radius ? radius : configStyles.FILE.radius,
4311
4395
  fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
4312
- progressColor: progressColor ? progressColor : configStyles.File.progressColor,
4313
- listItemHeight: listItemHeight ? listItemHeight : configStyles.File.listItemHeight,
4314
- listItemPadding: listItemPadding ? listItemPadding : configStyles.File.listItemPadding,
4315
- progressFontSize: progressFontSize ? progressFontSize : configStyles.File.progressFontSize,
4316
- listItemErrorSize: listItemErrorSize ? listItemErrorSize : configStyles.File.listItemErrorSize,
4317
- listItemErrorColor: listItemErrorColor ? listItemErrorColor : configStyles.File.listItemErrorColor,
4318
- progressTrackColor: progressTrackColor ? progressTrackColor : configStyles.File.progressTrackColor,
4319
- progressFailedColor: progressFailedColor ? progressFailedColor : configStyles.File.progressFailedColor,
4320
- progressSuccessColor: progressSuccessColor ? progressSuccessColor : configStyles.File.progressSuccessColor,
4321
- progressLoadingColor: progressLoadingColor ? progressLoadingColor : configStyles.File.progressLoadingColor,
4322
- listItemBackgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.File.listItemBackgroundColor,
4323
- listItemBackgroundErrorColor: listItemBackgroundErrorColor ? listItemBackgroundErrorColor : configStyles.File.listItemBackgroundErrorColor
4396
+ progressColor: progressColor ? progressColor : configStyles.FILE.progressColor,
4397
+ listItemHeight: listItemHeight ? listItemHeight : configStyles.FILE.listItemHeight,
4398
+ listItemPadding: listItemPadding ? listItemPadding : configStyles.FILE.listItemPadding,
4399
+ progressFontSize: progressFontSize ? progressFontSize : configStyles.FILE.progressFontSize,
4400
+ listItemErrorSize: listItemErrorSize ? listItemErrorSize : configStyles.FILE.listItemErrorSize,
4401
+ listItemErrorColor: listItemErrorColor ? listItemErrorColor : configStyles.FILE.listItemErrorColor,
4402
+ progressTrackColor: progressTrackColor ? progressTrackColor : configStyles.FILE.progressTrackColor,
4403
+ progressFailedColor: progressFailedColor ? progressFailedColor : configStyles.FILE.progressFailedColor,
4404
+ progressSuccessColor: progressSuccessColor ? progressSuccessColor : configStyles.FILE.progressSuccessColor,
4405
+ progressLoadingColor: progressLoadingColor ? progressLoadingColor : configStyles.FILE.progressLoadingColor,
4406
+ listItemBackgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.FILE.listItemBackgroundColor,
4407
+ listItemBackgroundErrorColor: listItemBackgroundErrorColor ? listItemBackgroundErrorColor : configStyles.FILE.listItemBackgroundErrorColor
4324
4408
  });
4325
4409
  }));
4326
4410
  };
@@ -4337,8 +4421,8 @@ NewFile.propTypes = {
4337
4421
  upload: PropTypes.string,
4338
4422
  weight: PropTypes.number,
4339
4423
  maxSize: PropTypes.number,
4340
- maxWidth: PropTypes.string,
4341
4424
  removeFile: PropTypes.func,
4425
+ className: PropTypes.string,
4342
4426
  errorSize: PropTypes.string,
4343
4427
  labelSize: PropTypes.string,
4344
4428
  labelColor: PropTypes.string,
@@ -4387,89 +4471,94 @@ NewFile.defaultProps = {
4387
4471
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
4388
4472
  };
4389
4473
 
4390
- 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}";
4391
- var styles$3 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
4392
- styleInject(css_248z$5);
4393
-
4474
+ const DirectionMode = {
4475
+ VERTICAL: 'vertical',
4476
+ HORINZONTAL: 'horizontal'
4477
+ };
4394
4478
  const Checkbox = ({
4395
- disabled,
4396
- required,
4397
- className,
4398
- jsonData,
4399
- onChange,
4479
+ data,
4480
+ getData,
4400
4481
  keyNames,
4401
- onClick,
4402
- ...props
4482
+ className,
4483
+ direction,
4484
+ checkedIcon,
4485
+ unCheckedIcon,
4486
+ labelMarginLeft,
4487
+ checkBoxMarginBottom
4403
4488
  }) => {
4404
- const classProps = classnames(styles$3.checkbox, className, 'checkbox-input-rem');
4405
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
4406
- const [data, setData] = useState(parseData);
4407
- useEffect(() => {
4408
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
4409
- setData(parseData);
4410
- }, [jsonData]);
4489
+ const configStyles = compereConfigs();
4490
+ const [innerData, setInnerData] = useState([]);
4491
+ const classProps = classnames(className ? className : configStyles.CHECKBOX.className);
4492
+ const handleSendData = (_, e, index) => {
4493
+ const dataForSend = {};
4494
+ setInnerData(prev => prev.map((innerItem, innerIndex) => {
4495
+ if (innerIndex === index) {
4496
+ innerItem[keyNames.checked] = !innerItem[keyNames.checked];
4497
+ dataForSend.item = innerItem;
4498
+ dataForSend.itemIndex = innerIndex;
4499
+ dataForSend.itemId = innerItem[keyNames.id];
4500
+ }
4501
+ return innerItem;
4502
+ }));
4503
+ dataForSend.checkboxArr = innerData;
4504
+ getData && getData(dataForSend);
4505
+ };
4411
4506
  useEffect(() => {
4412
- onChange ? onChange(data.filter(d => d.checked)) : '';
4507
+ if (Array.isArray(data)) {
4508
+ setInnerData(data);
4509
+ } else {
4510
+ setInnerData([data]);
4511
+ }
4413
4512
  }, [data]);
4414
- const handleChange = e => {
4415
- let id;
4416
- data.forEach((value, key) => {
4417
- if (value[keyNames.value] === e.target.value) {
4418
- id = key;
4513
+ return /*#__PURE__*/React__default.createElement("div", {
4514
+ style: {
4515
+ width: '100%',
4516
+ display: 'flex',
4517
+ flexDirection: direction === 'vertical' ? 'column' : 'row'
4518
+ },
4519
+ className: classProps
4520
+ }, innerData && innerData.length > 0 && innerData.map((item, index) => {
4521
+ return /*#__PURE__*/React__default.createElement("div", {
4522
+ key: `TUI_${index}_checkbox`,
4523
+ style: {
4524
+ width: 'fit-content',
4525
+ marginBottom: direction === 'vertical' ? checkBoxMarginBottom ? checkBoxMarginBottom : configStyles.CHECKBOX.checkBoxMarginBottom : '0px'
4419
4526
  }
4420
- });
4421
- let items = [...data];
4422
- let item = {
4423
- ...items[id]
4424
- };
4425
- item.checked = !item.checked;
4426
- items[id] = item;
4427
- setData(items);
4428
- };
4429
- !keyNames ? keyNames = {
4430
- id: 'id',
4431
- name: 'name',
4432
- value: 'value',
4433
- label: 'label'
4434
- } : '';
4435
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, data.map(element => {
4436
- return /*#__PURE__*/React__default.createElement("label", {
4437
- className: `${styles$3['checkbox-wrap']} checkbox-wrap-rem`,
4438
- key: element.value
4439
- }, /*#__PURE__*/React__default.createElement("input", _extends({
4440
- type: "checkbox",
4441
- className: classProps,
4442
- disabled: disabled,
4443
- required: required,
4444
- value: keyNames.value ? element[keyNames.value] : '',
4445
- name: keyNames.name ? element[keyNames.name] : '',
4446
- id: keyNames.id ? element[keyNames.id] : '',
4447
- onChange: handleChange,
4448
- onClick: onClick ? onClick : () => {},
4449
- defaultChecked: element.checked
4450
- }, props)), /*#__PURE__*/React__default.createElement("span", {
4451
- className: `${styles$3['checkmark']} checkmark-rem`
4452
- }), element[keyNames.label] ? /*#__PURE__*/React__default.createElement("label", {
4453
- className: styles$3.labelCheckbox,
4454
- htmlFor: element[keyNames.id]
4455
- }, element[keyNames.label]) : '');
4527
+ }, /*#__PURE__*/React__default.createElement(SingleCheckbox, {
4528
+ data: item,
4529
+ index: index,
4530
+ checkedColor: "#00236A",
4531
+ unCheckedColor: "#D1D1D1",
4532
+ checkedIcon: checkedIcon,
4533
+ label: item[keyNames.label],
4534
+ unCheckedIcon: unCheckedIcon,
4535
+ handleChecked: handleSendData,
4536
+ checked: item[keyNames.checked],
4537
+ disabled: item[keyNames.disabled],
4538
+ ignoreDisabledForChecked: item[keyNames.ignoreDisabledForChecked],
4539
+ labelMarginLeft: labelMarginLeft ? labelMarginLeft : configStyles.CHECKBOX.labelMarginLeft
4540
+ }));
4456
4541
  }));
4457
4542
  };
4458
4543
  Checkbox.propTypes = {
4459
- className: PropTypes.string,
4460
- onChange: PropTypes.func,
4461
- onClick: PropTypes.func,
4462
- required: PropTypes.bool,
4463
- disabled: PropTypes.bool,
4464
- name: PropTypes.string,
4465
- value: PropTypes.string,
4466
- jsonData: PropTypes.string,
4467
- label: PropTypes.string,
4468
- keyNames: PropTypes.object
4544
+ getData: PropTypes.func,
4545
+ keyNames: PropTypes.object,
4546
+ checkedIcon: PropTypes.element,
4547
+ unCheckedIcon: PropTypes.element,
4548
+ labelMarginLeft: PropTypes.string,
4549
+ checkBoxMarginBottom: PropTypes.string,
4550
+ direction: PropTypes.oneOf(Object.values(DirectionMode)),
4551
+ data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
4469
4552
  };
4470
4553
  Checkbox.defaultProps = {
4471
- onChange: undefined,
4472
- jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
4554
+ direction: 'vertical',
4555
+ keyNames: {
4556
+ id: 'id',
4557
+ label: 'label',
4558
+ checked: 'checked',
4559
+ disabled: 'disabled',
4560
+ ignoreDisabledForChecked: 'ignoreDisabledForChecked'
4561
+ }
4473
4562
  };
4474
4563
 
4475
4564
  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}";
@@ -4497,6 +4586,7 @@ const Textarea = ({
4497
4586
  labelSize,
4498
4587
  errorSize,
4499
4588
  marginTop,
4589
+ className,
4500
4590
  labelColor,
4501
4591
  errorColor,
4502
4592
  labelWeight,
@@ -4513,6 +4603,7 @@ const Textarea = ({
4513
4603
  const [isHover, setIsHover] = useState(false);
4514
4604
  const [isFocus, setIsFocus] = useState(false);
4515
4605
  const [innerValue, setInnerValue] = useState('');
4606
+ const classProps = classnames(className ? className : configStyles.TEXTAREA.className);
4516
4607
  const configStyles = compereConfigs();
4517
4608
  const handleMouseEnter = () => {
4518
4609
  setIsHover(true);
@@ -4561,7 +4652,8 @@ const Textarea = ({
4561
4652
  return /*#__PURE__*/React__default.createElement("div", {
4562
4653
  style: {
4563
4654
  width: width ? width : configStyles.TEXTAREA.width
4564
- }
4655
+ },
4656
+ className: classProps
4565
4657
  }, /*#__PURE__*/React__default.createElement("div", {
4566
4658
  style: {
4567
4659
  display: 'flex',
@@ -4638,6 +4730,7 @@ Textarea.propTypes = {
4638
4730
  maxLength: PropTypes.number,
4639
4731
  labelSize: PropTypes.string,
4640
4732
  errorSize: PropTypes.string,
4733
+ className: PropTypes.string,
4641
4734
  labelColor: PropTypes.string,
4642
4735
  errorColor: PropTypes.string,
4643
4736
  labelWeight: PropTypes.string,
@@ -4689,7 +4782,7 @@ const Typography = ({
4689
4782
  ...props
4690
4783
  }) => {
4691
4784
  const configStyles = compereConfigs();
4692
- const classProps = classnames(className);
4785
+ const classProps = classnames(className ? className : configStyles.TYPOGRAPHY.className);
4693
4786
  const [isHover, setIsHover] = useState(false);
4694
4787
  const [validVariant, setValidVariant] = useState(false);
4695
4788
  useEffect(() => {
@@ -4843,6 +4936,7 @@ const Pagination = ({
4843
4936
  totalCount,
4844
4937
  currentPage
4845
4938
  }) => {
4939
+ const configStyles = compereConfigs();
4846
4940
  const [inpVal, setInpVal] = useState('');
4847
4941
  const [error, setError] = useState(false);
4848
4942
  const [currentPageNumber, setCurrentPage] = useState(currentPage);
@@ -4869,7 +4963,7 @@ const Pagination = ({
4869
4963
  if (currentPageNumber === 0 || paginationRange?.length < 2) {
4870
4964
  return null;
4871
4965
  }
4872
- const classProps = classnames(styles$2.list, className ? className : `${styles$2['pagination-bar']} pagination-bar-rem`);
4966
+ const classProps = classnames(styles$2.list, className ? className : configStyles.PAGINATION.className, `${styles$2['pagination-bar']} pagination-bar-rem`);
4873
4967
  const onNext = () => {
4874
4968
  onPageChange(currentPageNumber + 1);
4875
4969
  };
@@ -4923,10 +5017,9 @@ const Pagination = ({
4923
5017
  margin: '0 auto',
4924
5018
  alignItems: 'center',
4925
5019
  justifyContent: 'center'
4926
- }
4927
- }, /*#__PURE__*/React__default.createElement("ul", {
5020
+ },
4928
5021
  className: classProps
4929
- }, /*#__PURE__*/React__default.createElement("button", {
5022
+ }, /*#__PURE__*/React__default.createElement("ul", null, /*#__PURE__*/React__default.createElement("button", {
4930
5023
  style: {
4931
5024
  transform: 'rotate(180deg)'
4932
5025
  },
@@ -5270,7 +5363,7 @@ const NewAutocomplete = ({
5270
5363
  setInnerValue(selectedValue[keyNames.name]);
5271
5364
  getItem(selectedValue);
5272
5365
  };
5273
- const optionList = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, show && innerOptions && !disabled ? innerOptions.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
5366
+ const optionList = /*#__PURE__*/React__default.createElement("div", null, show && innerOptions && !disabled ? innerOptions.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
5274
5367
  style: {
5275
5368
  left: contentBottomLeft ? contentBottomLeft : configStyles.NEWAUTOCOMPLETE.contentBottomLeft,
5276
5369
  width: contentBottomWidth ? contentBottomWidth : configStyles.NEWAUTOCOMPLETE.contentBottomWidth,
@@ -5360,7 +5453,9 @@ const NewAutocomplete = ({
5360
5453
  useEffect(() => {
5361
5454
  setInnerError(errorMessage);
5362
5455
  }, [errorMessage]);
5363
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
5456
+ return /*#__PURE__*/React__default.createElement("div", {
5457
+ className: classProps
5458
+ }, label ? /*#__PURE__*/React__default.createElement("label", {
5364
5459
  style: {
5365
5460
  color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
5366
5461
  fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
@@ -5388,7 +5483,6 @@ const NewAutocomplete = ({
5388
5483
  onInput: handleChange,
5389
5484
  onMouseEnter: handleMouseEnter,
5390
5485
  onMouseLeave: handleMouseLeave,
5391
- className: classProps,
5392
5486
  placeholder: placeHolder ? placeHolder : '',
5393
5487
  autoComplete: autoComplete ? autoComplete : configStyles.NEWAUTOCOMPLETE.autoComplete,
5394
5488
  style: {
@@ -5502,4 +5596,4 @@ NewAutocomplete.defaultProps = {
5502
5596
  disabled: false
5503
5597
  };
5504
5598
 
5505
- export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, SingleCheckbox, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
5599
+ export { Autocomplate, Button, Captcha, Checkbox, DirectionMode, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };