@xaypay/tui 0.0.115 → 0.0.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/index.es.js +361 -256
  2. package/dist/index.js +361 -256
  3. package/package.json +1 -1
  4. package/src/components/button/index.js +3 -2
  5. package/src/components/captcha/index.js +5 -5
  6. package/src/components/checkbox/checkbox.module.css +0 -59
  7. package/src/components/checkbox/checkbox.stories.js +70 -4
  8. package/src/components/checkbox/index.js +103 -70
  9. package/src/components/input/index.js +6 -4
  10. package/src/components/modal/index.js +15 -3
  11. package/src/components/newAutocomplete/index.js +7 -5
  12. package/src/components/newFile/index.js +45 -42
  13. package/src/components/pagination/index.js +9 -2
  14. package/src/components/select/index.js +7 -2
  15. package/src/components/singleCheckbox/Checkbox.js +30 -19
  16. package/src/components/singleCheckbox/index.js +15 -9
  17. package/src/components/stepper/index.js +9 -2
  18. package/src/components/table/index.js +45 -4
  19. package/src/components/table/table.stories.js +1 -10
  20. package/src/components/table/td.js +41 -6
  21. package/src/components/table/th.js +12 -2
  22. package/src/components/textarea/index.js +8 -1
  23. package/src/components/toaster/index.js +7 -2
  24. package/src/components/tooltip/index.js +3 -3
  25. package/src/components/typography/index.js +1 -1
  26. package/src/index.js +0 -1
  27. package/src/stories/configuration.stories.mdx +45 -4
  28. package/src/stories/static/checkbox-group-usage-2.png +0 -0
  29. package/src/stories/static/checkbox-group-usage.png +0 -0
  30. package/src/stories/static/single-checkbox-usage.png +0 -0
  31. package/src/stories/usage.stories.mdx +11 -1
  32. package/tui.config.js +42 -7
package/dist/index.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,
@@ -574,7 +603,7 @@ const TD = ({
574
603
  cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto'
575
604
  },
576
605
  onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
577
- }, item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default.createElement("span", {
606
+ }, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default.createElement("span", {
578
607
  style: {
579
608
  display: 'block',
580
609
  position: 'relative'
@@ -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',
@@ -1773,6 +1841,7 @@ const Input = ({
1773
1841
  boxShadowHover,
1774
1842
  errorClassName,
1775
1843
  errorAnimation,
1844
+ labelFontFamily,
1776
1845
  phoneAlignItems,
1777
1846
  errorLineHeight,
1778
1847
  labelLineHeight,
@@ -1794,7 +1863,7 @@ const Input = ({
1794
1863
  const [innerErrorMessage, setInnerErrorMessage] = useState('');
1795
1864
  const random = Math.floor(Math.random() * 1000 + 1);
1796
1865
  const configStyles = compereConfigs();
1797
- const classProps = classnames(className ? className : configStyles.INPUT.className, type === 'number' ? styles$a['inp-num'] : '');
1866
+ const classProps = classnames(className ? className : configStyles.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']);
1798
1867
  const errorShow = keyframes`
1799
1868
  100% {
1800
1869
  bottom: '-20px';
@@ -2082,19 +2151,19 @@ const Input = ({
2082
2151
  }
2083
2152
  }, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage, telErrorMessage, configStyles.INPUT.maxLength]);
2084
2153
  return /*#__PURE__*/React__default.createElement("div", {
2085
- className: `${styles$a['input-wrap']}`
2154
+ className: classProps
2086
2155
  }, label ? /*#__PURE__*/React__default.createElement("label", {
2087
- className: `${styles$a['input-title']}`,
2088
2156
  style: {
2089
2157
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
2090
2158
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
2091
2159
  display: labelDisplay ? labelDisplay : configStyles.INPUT.labelDisplay,
2092
2160
  fontWeight: labelWeight ? labelWeight : configStyles.INPUT.labelWeight,
2093
2161
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
2094
- marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
2162
+ marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom,
2163
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.INPUT.labelFontFamily
2095
2164
  }
2096
2165
  }, 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']}`,
2166
+ className: `${styles$9['input-content']}`,
2098
2167
  style: {
2099
2168
  width: width ? width : configStyles.INPUT.width,
2100
2169
  borderRadius: radius ? radius : configStyles.INPUT.radius,
@@ -2136,7 +2205,6 @@ const Input = ({
2136
2205
  }
2137
2206
  }, "+374") : '', /*#__PURE__*/React__default.createElement("input", _extends({}, props, {
2138
2207
  value: innerValue,
2139
- className: classProps,
2140
2208
  onInput: handleChange,
2141
2209
  disabled: disabled ? disabled : '',
2142
2210
  name: name ? name : `tui_${random}_tui`,
@@ -2232,6 +2300,7 @@ Input.propTypes = {
2232
2300
  errorPosition: PropTypes.string,
2233
2301
  boxShadowHover: PropTypes.string,
2234
2302
  errorClassName: PropTypes.string,
2303
+ labelFontFamily: PropTypes.string,
2235
2304
  telErrorMessage: PropTypes.string,
2236
2305
  backgroundColor: PropTypes.string,
2237
2306
  phoneAlignItems: PropTypes.string,
@@ -2254,9 +2323,9 @@ Input.defaultProps = {
2254
2323
  type: 'text'
2255
2324
  };
2256
2325
 
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);
2326
+ 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}";
2327
+ var styles$8 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
2328
+ styleInject(css_248z$a);
2260
2329
 
2261
2330
  const Radio = ({
2262
2331
  disabled,
@@ -2269,11 +2338,11 @@ const Radio = ({
2269
2338
  label,
2270
2339
  ...props
2271
2340
  }) => {
2272
- const classProps = classnames(styles$9.checkbox, className);
2341
+ const classProps = classnames(styles$8.checkbox, className);
2273
2342
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
2274
2343
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, parseData.map((element, id) => {
2275
2344
  return /*#__PURE__*/React__default.createElement("label", {
2276
- className: `${styles$9['radio-wrap']} radio-wrap-rem`,
2345
+ className: `${styles$8['radio-wrap']} radio-wrap-rem`,
2277
2346
  key: element.value
2278
2347
  }, /*#__PURE__*/React__default.createElement("input", _extends({
2279
2348
  type: "radio",
@@ -2284,9 +2353,9 @@ const Radio = ({
2284
2353
  value: value ? value : element.value,
2285
2354
  name: name ? name : element.name
2286
2355
  }, props)), /*#__PURE__*/React__default.createElement("span", {
2287
- className: `${styles$9['radio-checkmark']} radio-checkmark-rem`
2356
+ className: `${styles$8['radio-checkmark']} radio-checkmark-rem`
2288
2357
  }), element.label ? /*#__PURE__*/React__default.createElement("span", {
2289
- className: styles$9.labelRadio
2358
+ className: styles$8.labelRadio
2290
2359
  }, label ? label : element.label) : '');
2291
2360
  }));
2292
2361
  };
@@ -2309,7 +2378,6 @@ Radio.defaultProps = {
2309
2378
 
2310
2379
  const Button = ({
2311
2380
  icon,
2312
- hoverIcon,
2313
2381
  size,
2314
2382
  type,
2315
2383
  font,
@@ -2327,6 +2395,7 @@ const Button = ({
2327
2395
  disabled,
2328
2396
  className,
2329
2397
  boxSizing,
2398
+ hoverIcon,
2330
2399
  hoverColor,
2331
2400
  transition,
2332
2401
  contentWidth,
@@ -2346,7 +2415,7 @@ const Button = ({
2346
2415
  }
2347
2416
  }, []);
2348
2417
  const configStyles = compereConfigs();
2349
- const classProps = classnames(className);
2418
+ const classProps = classnames(className ? className : configStyles.BUTTON.className);
2350
2419
  const handleMouseEnter = () => {
2351
2420
  setIsHover(true);
2352
2421
  };
@@ -2356,6 +2425,7 @@ const Button = ({
2356
2425
  return /*#__PURE__*/React__default.createElement("button", _extends({
2357
2426
  style: {
2358
2427
  display: 'flex',
2428
+ outline: 'none',
2359
2429
  alignItems: 'center',
2360
2430
  justifyContent: 'center',
2361
2431
  fontSize: size ? size : configStyles.BUTTON.size,
@@ -2437,9 +2507,9 @@ const SvgArrow = ({
2437
2507
  fill: fillColor ? fillColor : '#3C393E'
2438
2508
  }));
2439
2509
 
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);
2510
+ 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}}";
2511
+ 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"};
2512
+ styleInject(css_248z$9);
2443
2513
 
2444
2514
  const Select = ({
2445
2515
  dots,
@@ -2465,6 +2535,7 @@ const Select = ({
2465
2535
  labelDisplay,
2466
2536
  labelFontSize,
2467
2537
  labelLineHeight,
2538
+ labelFontFamily,
2468
2539
  labelMarginBottom,
2469
2540
  labelTextTransform,
2470
2541
  cursor,
@@ -2506,7 +2577,7 @@ const Select = ({
2506
2577
  const [newSelected, setNewSelected] = useState([]);
2507
2578
  const [existOptions, setExistOptions] = useState([]);
2508
2579
  const configStyles = compereConfigs();
2509
- const classProps = classnames(className);
2580
+ const classProps = classnames(className ? className : configStyles.SELECT.className);
2510
2581
  const handleOpenClose = () => {
2511
2582
  setOpened(!opened);
2512
2583
  };
@@ -2514,7 +2585,9 @@ const Select = ({
2514
2585
  onChange({});
2515
2586
  setNewSelected([]);
2516
2587
  const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
2517
- item.checked = false;
2588
+ if (hasOwnerProperty(item, 'checked')) {
2589
+ item.checked = false;
2590
+ }
2518
2591
  return item;
2519
2592
  });
2520
2593
  setExistOptions(clearedOptions);
@@ -2619,13 +2692,14 @@ const Select = ({
2619
2692
  display: labelDisplay ? labelDisplay : configStyles.SELECT.labelDisplay,
2620
2693
  fontSize: labelFontSize ? labelFontSize : configStyles.SELECT.labelFontSize,
2621
2694
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.SELECT.labelLineHeight,
2695
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.SELECT.labelFontFamily,
2622
2696
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
2623
2697
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
2624
2698
  }
2625
2699
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
2626
2700
  ref: ref
2627
2701
  }, /*#__PURE__*/React__default.createElement("div", {
2628
- className: styles$8['select-content']
2702
+ className: styles$7['select-content']
2629
2703
  }, /*#__PURE__*/React__default.createElement("div", {
2630
2704
  style: {
2631
2705
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
@@ -2643,9 +2717,9 @@ const Select = ({
2643
2717
  onClick: disabled ? _ => _ : () => handleOpenClose(),
2644
2718
  onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
2645
2719
  onMouseLeave: disabled ? _ => _ : () => handleMouseLeave(),
2646
- className: `${styles$8['select-content-top']}`
2720
+ className: `${styles$7['select-content-top']}`
2647
2721
  }, /*#__PURE__*/React__default.createElement("div", {
2648
- className: `${styles$8['select-content-top-text']}`,
2722
+ className: `${styles$7['select-content-top-text']}`,
2649
2723
  style: {
2650
2724
  whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
2651
2725
  overflow: 'hidden',
@@ -2661,9 +2735,9 @@ const Select = ({
2661
2735
  }
2662
2736
  }
2663
2737
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
2664
- className: `${styles$8['select-content-top-icon']}`
2738
+ className: `${styles$7['select-content-top-icon']}`
2665
2739
  }, !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']}`,
2740
+ className: `${styles$7['close-icon']}`,
2667
2741
  onClick: disabled ? _ => _ : handleClearSelect,
2668
2742
  style: {
2669
2743
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
@@ -2672,7 +2746,7 @@ const Select = ({
2672
2746
  style: {
2673
2747
  transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
2674
2748
  },
2675
- className: `${styles$8['arrow-icon']}`
2749
+ className: `${styles$7['arrow-icon']}`
2676
2750
  }, arrowIcon ? arrowIcon : /*#__PURE__*/React__default.createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default.createElement("div", {
2677
2751
  style: {
2678
2752
  boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
@@ -2680,9 +2754,9 @@ const Select = ({
2680
2754
  backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
2681
2755
  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
2756
  },
2683
- className: `${styles$8['select-content-bottom']}`
2757
+ className: `${styles$7['select-content-bottom']}`
2684
2758
  }, /*#__PURE__*/React__default.createElement("div", {
2685
- className: `${styles$8['select-content-bottom-inner']}`
2759
+ className: `${styles$7['select-content-bottom-inner']}`
2686
2760
  }, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
2687
2761
  return /*#__PURE__*/React__default.createElement("div", {
2688
2762
  key: i,
@@ -2691,7 +2765,7 @@ const Select = ({
2691
2765
  onClick: disabled ? _ => _ : () => handleSelectItem(option),
2692
2766
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
2693
2767
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
2694
- className: `${styles$8['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$8['ellipsis'] : ''}`,
2768
+ className: `${styles$7['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$7['ellipsis'] : ''}`,
2695
2769
  style: {
2696
2770
  overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
2697
2771
  color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
@@ -2742,6 +2816,7 @@ Select.propTypes = {
2742
2816
  labelDisplay: PropTypes.string,
2743
2817
  labelFontSize: PropTypes.string,
2744
2818
  labelLineHeight: PropTypes.string,
2819
+ labelFontFamily: PropTypes.string,
2745
2820
  labelMarginBottom: PropTypes.string,
2746
2821
  labelTextTransform: PropTypes.string,
2747
2822
  cursor: PropTypes.string,
@@ -2873,9 +2948,9 @@ const SvgToasterSuccess = ({
2873
2948
  fill: fillColor ? fillColor : '#0DA574'
2874
2949
  }));
2875
2950
 
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);
2951
+ 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}}";
2952
+ 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"};
2953
+ styleInject(css_248z$8);
2879
2954
 
2880
2955
  let wWidth$1 = window.innerWidth;
2881
2956
  const ToasterType = {
@@ -2941,8 +3016,8 @@ const Toast = ({
2941
3016
  justifyContent: 'space-between'
2942
3017
  },
2943
3018
  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'] : ''}
3019
+ ${styles$6['notify-block']}
3020
+ ${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
3021
  `
2947
3022
  }, /*#__PURE__*/React__default.createElement("div", {
2948
3023
  style: {
@@ -2968,7 +3043,7 @@ const Toast = ({
2968
3043
  lineHeight: '22px',
2969
3044
  fontStyle: 'normal'
2970
3045
  },
2971
- className: styles$7['notify-title']
3046
+ className: styles$6['notify-title']
2972
3047
  }, title ? title : ''), /*#__PURE__*/React__default.createElement("span", {
2973
3048
  style: {
2974
3049
  fontWeight: 500,
@@ -2979,7 +3054,7 @@ const Toast = ({
2979
3054
  fontFamily: '',
2980
3055
  opacity: 0.8
2981
3056
  },
2982
- className: styles$7['notify-desc']
3057
+ className: styles$6['notify-desc']
2983
3058
  }, description ? description : '')), /*#__PURE__*/React__default.createElement("div", {
2984
3059
  onClick: () => handleCloseToaster(ref),
2985
3060
  style: {
@@ -3042,17 +3117,17 @@ const createToast = ({
3042
3117
  description
3043
3118
  });
3044
3119
  ReactDOM.render(newElem, toastBlock);
3045
- if (!document.getElementById(styles$7[position]) || document.getElementById(styles$7[position]) == null) {
3120
+ if (!document.getElementById(styles$6[position]) || document.getElementById(styles$6[position]) == null) {
3046
3121
  toastParentBlock = document.createElement('div');
3047
3122
  toastParentBlock.style.position = 'fixed';
3048
3123
  toastParentBlock.style.display = 'flex';
3049
3124
  toastParentBlock.style.zIndex = 999999999999;
3050
3125
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
3051
- toastParentBlock.setAttribute('id', styles$7[position]);
3126
+ toastParentBlock.setAttribute('id', styles$6[position]);
3052
3127
  toastParentBlock.appendChild(toastBlock);
3053
3128
  toastify.appendChild(toastParentBlock);
3054
3129
  } else {
3055
- document.getElementById(styles$7[position]).appendChild(toastBlock);
3130
+ document.getElementById(styles$6[position]).appendChild(toastBlock);
3056
3131
  }
3057
3132
  };
3058
3133
  const toast = {
@@ -3113,7 +3188,11 @@ const toast = {
3113
3188
  });
3114
3189
  }
3115
3190
  };
3116
- const Toaster = () => {
3191
+ const Toaster = ({
3192
+ className
3193
+ }) => {
3194
+ const configStyles = compereConfigs();
3195
+ const classProps = classnames(className ? className : configStyles.TOASTER.className);
3117
3196
  window.addEventListener('popstate', () => {
3118
3197
  if (path !== window.location.href) {
3119
3198
  if (!toastify) {
@@ -3130,6 +3209,7 @@ const Toaster = () => {
3130
3209
  };
3131
3210
  return /*#__PURE__*/React__default.createElement("div", {
3132
3211
  onClick: handleToasterClick,
3212
+ className: classProps,
3133
3213
  id: "toastify"
3134
3214
  });
3135
3215
  };
@@ -3153,9 +3233,9 @@ const SvgTooltip = ({
3153
3233
  fill: fillColor ? fillColor : '#D1D1D1'
3154
3234
  }));
3155
3235
 
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);
3236
+ 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}";
3237
+ 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"};
3238
+ styleInject(css_248z$7);
3159
3239
 
3160
3240
  const Tooltip = ({
3161
3241
  type,
@@ -3178,7 +3258,7 @@ const Tooltip = ({
3178
3258
  const [checkTooltipHeight, setCheckTooltipHeight] = useState(0);
3179
3259
  const [showTooltip, setShowTooltip] = useState(false);
3180
3260
  const configStyles = compereConfigs();
3181
- const classProps = classnames(styles$6['tooltip'], className);
3261
+ const classProps = classnames(styles$5['tooltip-block'], className ? className : configStyles.TOOLTIP.className);
3182
3262
  const handleShow = () => {
3183
3263
  setShowTooltip(!showTooltip);
3184
3264
  };
@@ -3190,7 +3270,7 @@ const Tooltip = ({
3190
3270
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
3191
3271
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
3192
3272
  return /*#__PURE__*/React__default.createElement("div", {
3193
- className: `${styles$6['tooltip-block']}`,
3273
+ className: classProps,
3194
3274
  style: {
3195
3275
  width: width ? width : configStyles.TOOLTIP.width,
3196
3276
  height: height ? height : configStyles.TOOLTIP.height,
@@ -3199,7 +3279,7 @@ const Tooltip = ({
3199
3279
  }
3200
3280
  }, showTooltip ? /*#__PURE__*/React__default.createElement("div", {
3201
3281
  ref: tooltipRef,
3202
- className: classProps,
3282
+ className: `${styles$5['tooltip']}`,
3203
3283
  style: {
3204
3284
  width: tooltipWidth ? tooltipWidth : configStyles.TOOLTIP.tooltipWidth,
3205
3285
  borderRadius: tooltipRadius ? tooltipRadius : configStyles.TOOLTIP.tooltipRadius,
@@ -3208,9 +3288,9 @@ const Tooltip = ({
3208
3288
  left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
3209
3289
  }
3210
3290
  }, /*#__PURE__*/React__default.createElement("div", {
3211
- className: `${styles$6['tooltip-rel']}`
3291
+ className: `${styles$5['tooltip-rel']}`
3212
3292
  }, /*#__PURE__*/React__default.createElement("div", {
3213
- className: `${styles$6['tooltip-decor']}`,
3293
+ className: `${styles$5['tooltip-decor']}`,
3214
3294
  style: {
3215
3295
  backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
3216
3296
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
@@ -3287,20 +3367,22 @@ const SvgCaptchaArrowDown = ({
3287
3367
  fill: fillColor ? fillColor : '#00236A'
3288
3368
  }));
3289
3369
 
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);
3370
+ 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}";
3371
+ 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"};
3372
+ styleInject(css_248z$6);
3293
3373
 
3294
3374
  const Captcha = ({
3295
3375
  size,
3296
3376
  color,
3297
3377
  range,
3298
3378
  label,
3379
+ className,
3299
3380
  getRange
3300
3381
  }) => {
3301
3382
  const [rangeNumber, setRangeNumber] = useState(0);
3302
3383
  const [rangeProgress, setRangeProgress] = useState(0);
3303
3384
  const configStyles = compereConfigs();
3385
+ const classProps = classnames(className ? className : configStyles.CAPTCHA.className);
3304
3386
  const handleRange = e => {
3305
3387
  const value = e.target.value;
3306
3388
  getRange(value);
@@ -3322,7 +3404,9 @@ const Captcha = ({
3322
3404
  setRangeNumber(Math.min(roundedRange, 100));
3323
3405
  }
3324
3406
  }, [range, getRange]);
3325
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement("p", {
3407
+ return /*#__PURE__*/React__default.createElement("div", {
3408
+ className: classProps
3409
+ }, label && /*#__PURE__*/React__default.createElement("p", {
3326
3410
  style: {
3327
3411
  fontSize: size ? size : configStyles.Captcha.size,
3328
3412
  color: color ? color : configStyles.Captcha.color
@@ -3352,7 +3436,7 @@ const Captcha = ({
3352
3436
  alignItems: 'center',
3353
3437
  zIndex: 1
3354
3438
  },
3355
- className: styles$5['start-point']
3439
+ className: styles$4['start-point']
3356
3440
  }, /*#__PURE__*/React__default.createElement("div", {
3357
3441
  style: {
3358
3442
  position: 'absolute',
@@ -3378,8 +3462,8 @@ const Captcha = ({
3378
3462
  backgroundColor: 'transparent'
3379
3463
  },
3380
3464
  className: `
3381
- ${styles$5['range']}
3382
- ${+rangeProgress === rangeNumber ? styles$5['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$5['range-error'] : styles$5['range-default']}
3465
+ ${styles$4['range']}
3466
+ ${+rangeProgress === rangeNumber ? styles$4['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$4['range-error'] : styles$4['range-default']}
3383
3467
  `,
3384
3468
  onInput: handleRange
3385
3469
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -3409,24 +3493,26 @@ Captcha.propTypes = {
3409
3493
  getRange: PropTypes.func.isRequired
3410
3494
  };
3411
3495
 
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);
3496
+ 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}";
3497
+ 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"};
3498
+ styleInject(css_248z$5);
3415
3499
 
3416
3500
  const Stepper = ({
3417
3501
  stepLength,
3418
- activeSteps
3502
+ activeSteps,
3503
+ className
3419
3504
  }) => {
3505
+ const configStyles = compereConfigs();
3420
3506
  return /*#__PURE__*/React__default.createElement("div", {
3421
- className: `${styles$4['stepper-container']} stepper-container-rem`
3507
+ className: classnames(className ? className : configStyles.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`)
3422
3508
  }, (() => {
3423
3509
  let steppers = [];
3424
3510
  for (let step = 1; step <= stepLength; step++) {
3425
3511
  steppers.push( /*#__PURE__*/React__default.createElement("div", {
3426
- className: classnames(`${step <= activeSteps ? styles$4.activeRing : styles$4.bigRing}`),
3512
+ className: classnames(`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
3427
3513
  key: step
3428
3514
  }, /*#__PURE__*/React__default.createElement("div", {
3429
- className: classnames(`${step <= activeSteps ? styles$4.smallActiveRing : styles$4.smallRing}`)
3515
+ className: classnames(`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
3430
3516
  }, step <= activeSteps ? step : '')));
3431
3517
  }
3432
3518
  return steppers;
@@ -3472,7 +3558,7 @@ for (let i = 0; i < 256; ++i) {
3472
3558
  function unsafeStringify(arr, offset = 0) {
3473
3559
  // Note: Be careful editing this code! It's been tuned for performance
3474
3560
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
3475
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
3561
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
3476
3562
  }
3477
3563
 
3478
3564
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
@@ -3927,6 +4013,7 @@ const NewFile = ({
3927
4013
  disabled,
3928
4014
  multiple,
3929
4015
  required,
4016
+ className,
3930
4017
  errorSize,
3931
4018
  labelSize,
3932
4019
  removeFile,
@@ -3971,13 +4058,14 @@ const NewFile = ({
3971
4058
  }) => {
3972
4059
  const ref = useRef(null);
3973
4060
  const inpRef = useRef(null);
4061
+ const configStyles = compereConfigs();
3974
4062
  const memoizedItems = useMemo(() => filesArray, [filesArray]);
4063
+ const classProps = classnames(className ? className : configStyles.FILE.className);
3975
4064
  const [error, setError] = useState('');
3976
4065
  const [isHover, setIsHover] = useState(false);
3977
4066
  const [singleFile, setSingleFile] = useState(null);
3978
4067
  const [choosenFileCount, setChoosenFileCount] = useState(0);
3979
4068
  const [image, setImage] = useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url : 'pdf' : null : null);
3980
- const configStyles = compereConfigs();
3981
4069
  const handleRemoveComponent = () => {
3982
4070
  if (!multiple) {
3983
4071
  removeFile && removeFile(singleFile);
@@ -4180,8 +4268,9 @@ const NewFile = ({
4180
4268
  ref: ref,
4181
4269
  style: {
4182
4270
  width: '100%',
4183
- maxWidth: maxWidth ? maxWidth : configStyles.File.maxWidth
4184
- }
4271
+ maxWidth: maxWidth ? maxWidth : configStyles.FILE.maxWidth
4272
+ },
4273
+ className: classProps
4185
4274
  }, /*#__PURE__*/React__default.createElement("div", {
4186
4275
  style: {
4187
4276
  display: 'flex',
@@ -4191,8 +4280,8 @@ const NewFile = ({
4191
4280
  }
4192
4281
  }, label && /*#__PURE__*/React__default.createElement("label", {
4193
4282
  style: {
4194
- color: labelColor ? labelColor : configStyles.File.labelColor,
4195
- fontSize: labelSize ? labelSize : configStyles.File.labelSize
4283
+ color: labelColor ? labelColor : configStyles.FILE.labelColor,
4284
+ fontSize: labelSize ? labelSize : configStyles.FILE.labelSize
4196
4285
  }
4197
4286
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
4198
4287
  style: {
@@ -4208,11 +4297,11 @@ const NewFile = ({
4208
4297
  boxSizing: 'border-box',
4209
4298
  justifyContent: 'center',
4210
4299
  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
4300
+ height: height ? height : configStyles.FILE.height,
4301
+ border: border ? border : configStyles.FILE.border,
4302
+ borderRadius: radius ? radius : configStyles.FILE.radius,
4303
+ backgroundColor: backgroundColor ? backgroundColor : configStyles.FILE.backgroundColor,
4304
+ 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
4305
  },
4217
4306
  onDrop: handleDrop,
4218
4307
  onClick: handleClick,
@@ -4236,9 +4325,9 @@ const NewFile = ({
4236
4325
  alignItems: 'center',
4237
4326
  flexDirection: 'column',
4238
4327
  justifyContent: 'center',
4239
- color: color ? color : configStyles.File.color,
4240
- fontSize: size ? size : configStyles.File.size,
4241
- fontWeight: weight ? weight : configStyles.File.weight
4328
+ color: color ? color : configStyles.FILE.color,
4329
+ fontSize: size ? size : configStyles.FILE.size,
4330
+ fontWeight: weight ? weight : configStyles.FILE.weight
4242
4331
  }
4243
4332
  }, !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
4333
  src: image,
@@ -4247,27 +4336,27 @@ const NewFile = ({
4247
4336
  maxWidth: '100%',
4248
4337
  maxHeight: '95%',
4249
4338
  objectFit: 'contain',
4250
- width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.File.fileAreaImageWidth,
4251
- height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.File.fileAreaImageHeight
4339
+ width: fileAreaImageWidth ? fileAreaImageWidth : configStyles.FILE.fileAreaImageWidth,
4340
+ height: fileAreaImageHeight ? fileAreaImageHeight : configStyles.FILE.fileAreaImageHeight
4252
4341
  },
4253
4342
  alt: "file preview"
4254
4343
  }) : /*#__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
4344
  style: {
4256
4345
  margin: '0px'
4257
4346
  }
4258
- }, putFileHere ? putFileHere : configStyles.File.putFileHere, /*#__PURE__*/React__default.createElement("br", null), or ? or : configStyles.File.or, ' ', /*#__PURE__*/React__default.createElement("span", {
4347
+ }, putFileHere ? putFileHere : configStyles.FILE.putFileHere, /*#__PURE__*/React__default.createElement("br", null), or ? or : configStyles.FILE.or, ' ', /*#__PURE__*/React__default.createElement("span", {
4259
4348
  style: {
4260
- color: uploadColor ? uploadColor : configStyles.File.uploadColor
4349
+ color: uploadColor ? uploadColor : configStyles.FILE.uploadColor
4261
4350
  }
4262
- }, upload ? upload : configStyles.File.upload))), /*#__PURE__*/React__default.createElement("div", {
4351
+ }, upload ? upload : configStyles.FILE.upload))), /*#__PURE__*/React__default.createElement("div", {
4263
4352
  style: {
4264
- marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.File.extentionsRowMarginTop
4353
+ marginTop: extentionsRowMarginTop ? extentionsRowMarginTop : configStyles.FILE.extentionsRowMarginTop
4265
4354
  }
4266
4355
  }, /*#__PURE__*/React__default.createElement("p", {
4267
4356
  style: {
4268
4357
  margin: '0px'
4269
4358
  }
4270
- }, fileSizeText ? fileSizeText : configStyles.File.fileSizeText, " ", maxSize, "\u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default.createElement("div", {
4359
+ }, fileSizeText ? fileSizeText : configStyles.FILE.fileSizeText, " ", maxSize, "\u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )")))), /*#__PURE__*/React__default.createElement("div", {
4271
4360
  style: {
4272
4361
  position: 'absolute',
4273
4362
  top: '0px',
@@ -4280,9 +4369,9 @@ const NewFile = ({
4280
4369
  boxSizing: 'border-box',
4281
4370
  alignItems: 'flex-start',
4282
4371
  justifyContent: 'flex-end',
4283
- borderRadius: radius ? radius : configStyles.File.radius,
4372
+ borderRadius: radius ? radius : configStyles.FILE.radius,
4284
4373
  display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
4285
- backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.File.hiddenBackgroundColor
4374
+ backgroundColor: hiddenBackgroundColor ? hiddenBackgroundColor : configStyles.FILE.hiddenBackgroundColor
4286
4375
  },
4287
4376
  onClick: handleStopPropagation
4288
4377
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -4294,8 +4383,8 @@ const NewFile = ({
4294
4383
  style: {
4295
4384
  marginTop: '6px',
4296
4385
  display: 'inline-block',
4297
- color: errorColor ? errorColor : configStyles.File.errorColor,
4298
- fontSize: errorSize ? errorSize : configStyles.File.errorSize
4386
+ color: errorColor ? errorColor : configStyles.FILE.errorColor,
4387
+ fontSize: errorSize ? errorSize : configStyles.FILE.errorSize
4299
4388
  }
4300
4389
  }, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
4301
4390
  return /*#__PURE__*/React__default.createElement(FileItem, {
@@ -4307,20 +4396,20 @@ const NewFile = ({
4307
4396
  name: item.file.name,
4308
4397
  timeForRemoveError: timeForRemoveError,
4309
4398
  removeFile: removeFile ? removeFile : _ => _,
4310
- radius: radius ? radius : configStyles.File.radius,
4399
+ radius: radius ? radius : configStyles.FILE.radius,
4311
4400
  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
4401
+ progressColor: progressColor ? progressColor : configStyles.FILE.progressColor,
4402
+ listItemHeight: listItemHeight ? listItemHeight : configStyles.FILE.listItemHeight,
4403
+ listItemPadding: listItemPadding ? listItemPadding : configStyles.FILE.listItemPadding,
4404
+ progressFontSize: progressFontSize ? progressFontSize : configStyles.FILE.progressFontSize,
4405
+ listItemErrorSize: listItemErrorSize ? listItemErrorSize : configStyles.FILE.listItemErrorSize,
4406
+ listItemErrorColor: listItemErrorColor ? listItemErrorColor : configStyles.FILE.listItemErrorColor,
4407
+ progressTrackColor: progressTrackColor ? progressTrackColor : configStyles.FILE.progressTrackColor,
4408
+ progressFailedColor: progressFailedColor ? progressFailedColor : configStyles.FILE.progressFailedColor,
4409
+ progressSuccessColor: progressSuccessColor ? progressSuccessColor : configStyles.FILE.progressSuccessColor,
4410
+ progressLoadingColor: progressLoadingColor ? progressLoadingColor : configStyles.FILE.progressLoadingColor,
4411
+ listItemBackgroundColor: listItemBackgroundColor ? listItemBackgroundColor : configStyles.FILE.listItemBackgroundColor,
4412
+ listItemBackgroundErrorColor: listItemBackgroundErrorColor ? listItemBackgroundErrorColor : configStyles.FILE.listItemBackgroundErrorColor
4324
4413
  });
4325
4414
  }));
4326
4415
  };
@@ -4337,8 +4426,8 @@ NewFile.propTypes = {
4337
4426
  upload: PropTypes.string,
4338
4427
  weight: PropTypes.number,
4339
4428
  maxSize: PropTypes.number,
4340
- maxWidth: PropTypes.string,
4341
4429
  removeFile: PropTypes.func,
4430
+ className: PropTypes.string,
4342
4431
  errorSize: PropTypes.string,
4343
4432
  labelSize: PropTypes.string,
4344
4433
  labelColor: PropTypes.string,
@@ -4387,89 +4476,94 @@ NewFile.defaultProps = {
4387
4476
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
4388
4477
  };
4389
4478
 
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
-
4479
+ const DirectionMode = {
4480
+ VERTICAL: 'vertical',
4481
+ HORINZONTAL: 'horizontal'
4482
+ };
4394
4483
  const Checkbox = ({
4395
- disabled,
4396
- required,
4397
- className,
4398
- jsonData,
4399
- onChange,
4484
+ data,
4485
+ getData,
4400
4486
  keyNames,
4401
- onClick,
4402
- ...props
4487
+ className,
4488
+ direction,
4489
+ checkedIcon,
4490
+ unCheckedIcon,
4491
+ labelMarginLeft,
4492
+ checkBoxMarginBottom
4403
4493
  }) => {
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]);
4494
+ const configStyles = compereConfigs();
4495
+ const [innerData, setInnerData] = useState([]);
4496
+ const classProps = classnames(className ? className : configStyles.CHECKBOX.className);
4497
+ const handleSendData = (_, e, index) => {
4498
+ const dataForSend = {};
4499
+ setInnerData(prev => prev.map((innerItem, innerIndex) => {
4500
+ if (innerIndex === index) {
4501
+ innerItem[keyNames.checked] = !innerItem[keyNames.checked];
4502
+ dataForSend.item = innerItem;
4503
+ dataForSend.itemIndex = innerIndex;
4504
+ dataForSend.itemId = innerItem[keyNames.id];
4505
+ }
4506
+ return innerItem;
4507
+ }));
4508
+ dataForSend.checkboxArr = innerData;
4509
+ getData && getData(dataForSend);
4510
+ };
4411
4511
  useEffect(() => {
4412
- onChange ? onChange(data.filter(d => d.checked)) : '';
4512
+ if (Array.isArray(data)) {
4513
+ setInnerData(data);
4514
+ } else {
4515
+ setInnerData([data]);
4516
+ }
4413
4517
  }, [data]);
4414
- const handleChange = e => {
4415
- let id;
4416
- data.forEach((value, key) => {
4417
- if (value[keyNames.value] === e.target.value) {
4418
- id = key;
4518
+ return /*#__PURE__*/React__default.createElement("div", {
4519
+ style: {
4520
+ width: '100%',
4521
+ display: 'flex',
4522
+ flexDirection: direction === 'vertical' ? 'column' : 'row'
4523
+ },
4524
+ className: classProps
4525
+ }, innerData && innerData.length > 0 && innerData.map((item, index) => {
4526
+ return /*#__PURE__*/React__default.createElement("div", {
4527
+ key: `TUI_${index}_checkbox`,
4528
+ style: {
4529
+ width: 'fit-content',
4530
+ marginBottom: direction === 'vertical' ? checkBoxMarginBottom ? checkBoxMarginBottom : configStyles.CHECKBOX.checkBoxMarginBottom : '0px'
4419
4531
  }
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]) : '');
4532
+ }, /*#__PURE__*/React__default.createElement(SingleCheckbox, {
4533
+ data: item,
4534
+ index: index,
4535
+ checkedColor: "#00236A",
4536
+ unCheckedColor: "#D1D1D1",
4537
+ checkedIcon: checkedIcon,
4538
+ label: item[keyNames.label],
4539
+ unCheckedIcon: unCheckedIcon,
4540
+ handleChecked: handleSendData,
4541
+ checked: item[keyNames.checked],
4542
+ disabled: item[keyNames.disabled],
4543
+ ignoreDisabledForChecked: item[keyNames.ignoreDisabledForChecked],
4544
+ labelMarginLeft: labelMarginLeft ? labelMarginLeft : configStyles.CHECKBOX.labelMarginLeft
4545
+ }));
4456
4546
  }));
4457
4547
  };
4458
4548
  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
4549
+ getData: PropTypes.func,
4550
+ keyNames: PropTypes.object,
4551
+ checkedIcon: PropTypes.element,
4552
+ unCheckedIcon: PropTypes.element,
4553
+ labelMarginLeft: PropTypes.string,
4554
+ checkBoxMarginBottom: PropTypes.string,
4555
+ direction: PropTypes.oneOf(Object.values(DirectionMode)),
4556
+ data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
4469
4557
  };
4470
4558
  Checkbox.defaultProps = {
4471
- onChange: undefined,
4472
- jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
4559
+ direction: 'vertical',
4560
+ keyNames: {
4561
+ id: 'id',
4562
+ label: 'label',
4563
+ checked: 'checked',
4564
+ disabled: 'disabled',
4565
+ ignoreDisabledForChecked: 'ignoreDisabledForChecked'
4566
+ }
4473
4567
  };
4474
4568
 
4475
4569
  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,12 +4591,14 @@ const Textarea = ({
4497
4591
  labelSize,
4498
4592
  errorSize,
4499
4593
  marginTop,
4594
+ className,
4500
4595
  labelColor,
4501
4596
  errorColor,
4502
4597
  labelWeight,
4503
4598
  placeholder,
4504
4599
  labelDisplay,
4505
4600
  errorMessage,
4601
+ labelFontFamily,
4506
4602
  backgroundColor,
4507
4603
  borderFocusColor,
4508
4604
  borderHoverColor,
@@ -4514,6 +4610,7 @@ const Textarea = ({
4514
4610
  const [isFocus, setIsFocus] = useState(false);
4515
4611
  const [innerValue, setInnerValue] = useState('');
4516
4612
  const configStyles = compereConfigs();
4613
+ const classProps = classnames(className ? className : configStyles.TEXTAREA.className);
4517
4614
  const handleMouseEnter = () => {
4518
4615
  setIsHover(true);
4519
4616
  };
@@ -4561,12 +4658,14 @@ const Textarea = ({
4561
4658
  return /*#__PURE__*/React__default.createElement("div", {
4562
4659
  style: {
4563
4660
  width: width ? width : configStyles.TEXTAREA.width
4564
- }
4661
+ },
4662
+ className: classProps
4565
4663
  }, /*#__PURE__*/React__default.createElement("div", {
4566
4664
  style: {
4567
4665
  display: 'flex',
4568
4666
  alignItems: 'center',
4569
4667
  justifyContent: label ? 'space-between' : 'flex-end',
4668
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.TEXTAREA.labelFontFamily,
4570
4669
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.TEXTAREA.labelMarginBottom
4571
4670
  }
4572
4671
  }, label ? /*#__PURE__*/React__default.createElement("label", {
@@ -4638,12 +4737,14 @@ Textarea.propTypes = {
4638
4737
  maxLength: PropTypes.number,
4639
4738
  labelSize: PropTypes.string,
4640
4739
  errorSize: PropTypes.string,
4740
+ className: PropTypes.string,
4641
4741
  labelColor: PropTypes.string,
4642
4742
  errorColor: PropTypes.string,
4643
4743
  labelWeight: PropTypes.string,
4644
4744
  placeholder: PropTypes.string,
4645
4745
  errorMessage: PropTypes.string,
4646
4746
  labelDisplay: PropTypes.string,
4747
+ labelFontFamily: PropTypes.string,
4647
4748
  backgroundColor: PropTypes.string,
4648
4749
  showCharacterCount: PropTypes.bool,
4649
4750
  value: PropTypes.string.isRequired,
@@ -4689,7 +4790,7 @@ const Typography = ({
4689
4790
  ...props
4690
4791
  }) => {
4691
4792
  const configStyles = compereConfigs();
4692
- const classProps = classnames(className);
4793
+ const classProps = classnames(className ? className : configStyles.TYPOGRAPHY.className);
4693
4794
  const [isHover, setIsHover] = useState(false);
4694
4795
  const [validVariant, setValidVariant] = useState(false);
4695
4796
  useEffect(() => {
@@ -4843,6 +4944,7 @@ const Pagination = ({
4843
4944
  totalCount,
4844
4945
  currentPage
4845
4946
  }) => {
4947
+ const configStyles = compereConfigs();
4846
4948
  const [inpVal, setInpVal] = useState('');
4847
4949
  const [error, setError] = useState(false);
4848
4950
  const [currentPageNumber, setCurrentPage] = useState(currentPage);
@@ -4869,7 +4971,7 @@ const Pagination = ({
4869
4971
  if (currentPageNumber === 0 || paginationRange?.length < 2) {
4870
4972
  return null;
4871
4973
  }
4872
- const classProps = classnames(styles$2.list, className ? className : `${styles$2['pagination-bar']} pagination-bar-rem`);
4974
+ const classProps = classnames(styles$2.list, className ? className : configStyles.PAGINATION.className, `${styles$2['pagination-bar']} pagination-bar-rem`);
4873
4975
  const onNext = () => {
4874
4976
  onPageChange(currentPageNumber + 1);
4875
4977
  };
@@ -4923,10 +5025,9 @@ const Pagination = ({
4923
5025
  margin: '0 auto',
4924
5026
  alignItems: 'center',
4925
5027
  justifyContent: 'center'
4926
- }
4927
- }, /*#__PURE__*/React__default.createElement("ul", {
5028
+ },
4928
5029
  className: classProps
4929
- }, /*#__PURE__*/React__default.createElement("button", {
5030
+ }, /*#__PURE__*/React__default.createElement("ul", null, /*#__PURE__*/React__default.createElement("button", {
4930
5031
  style: {
4931
5032
  transform: 'rotate(180deg)'
4932
5033
  },
@@ -5158,6 +5259,7 @@ const NewAutocomplete = ({
5158
5259
  contentPosition,
5159
5260
  contentTopColor,
5160
5261
  labelLineHeight,
5262
+ labelFontFamily,
5161
5263
  contentDirection,
5162
5264
  contentTopWeight,
5163
5265
  contentTopRadius,
@@ -5270,7 +5372,7 @@ const NewAutocomplete = ({
5270
5372
  setInnerValue(selectedValue[keyNames.name]);
5271
5373
  getItem(selectedValue);
5272
5374
  };
5273
- const optionList = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, show && innerOptions && !disabled ? innerOptions.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
5375
+ const optionList = /*#__PURE__*/React__default.createElement("div", null, show && innerOptions && !disabled ? innerOptions.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
5274
5376
  style: {
5275
5377
  left: contentBottomLeft ? contentBottomLeft : configStyles.NEWAUTOCOMPLETE.contentBottomLeft,
5276
5378
  width: contentBottomWidth ? contentBottomWidth : configStyles.NEWAUTOCOMPLETE.contentBottomWidth,
@@ -5360,12 +5462,15 @@ const NewAutocomplete = ({
5360
5462
  useEffect(() => {
5361
5463
  setInnerError(errorMessage);
5362
5464
  }, [errorMessage]);
5363
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
5465
+ return /*#__PURE__*/React__default.createElement("div", {
5466
+ className: classProps
5467
+ }, label ? /*#__PURE__*/React__default.createElement("label", {
5364
5468
  style: {
5365
5469
  color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
5366
5470
  fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
5367
5471
  display: labelDisplay ? labelDisplay : configStyles.NEWAUTOCOMPLETE.labelDisplay,
5368
5472
  fontWeight: labelWeight ? labelWeight : configStyles.NEWAUTOCOMPLETE.labelWeight,
5473
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.NEWAUTOCOMPLETE.labelFontFamily,
5369
5474
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.NEWAUTOCOMPLETE.labelLineHeight,
5370
5475
  maxWidth: contentTopMaxWidth ? contentTopMaxWidth : configStyles.NEWAUTOCOMPLETE.contentTopMaxWidth,
5371
5476
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
@@ -5388,7 +5493,6 @@ const NewAutocomplete = ({
5388
5493
  onInput: handleChange,
5389
5494
  onMouseEnter: handleMouseEnter,
5390
5495
  onMouseLeave: handleMouseLeave,
5391
- className: classProps,
5392
5496
  placeholder: placeHolder ? placeHolder : '',
5393
5497
  autoComplete: autoComplete ? autoComplete : configStyles.NEWAUTOCOMPLETE.autoComplete,
5394
5498
  style: {
@@ -5445,6 +5549,7 @@ NewAutocomplete.propTypes = {
5445
5549
  labelLineHeight: PropTypes.string,
5446
5550
  contentTopColor: PropTypes.string,
5447
5551
  change: PropTypes.func.isRequired,
5552
+ labelFontFamily: PropTypes.string,
5448
5553
  contentDirection: PropTypes.string,
5449
5554
  contentTopWeight: PropTypes.number,
5450
5555
  contentTopRadius: PropTypes.string,
@@ -5502,4 +5607,4 @@ NewAutocomplete.defaultProps = {
5502
5607
  disabled: false
5503
5608
  };
5504
5609
 
5505
- export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, SingleCheckbox, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
5610
+ export { Autocomplate, Button, Captcha, Checkbox, DirectionMode, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };