@xaypay/tui 0.0.116 → 0.0.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -84,9 +84,9 @@ function styleInject(css, ref) {
84
84
  }
85
85
  }
86
86
 
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);
87
+ var css_248z$d = ".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$b = {"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$d);
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$c['file-form-title']} ile-form-title-rem`
149
+ className: `${styles$b['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$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
151
+ className: classnames(`${styles$b['file-form-wrap']} file-form-wrap-rem`, image ? styles$b['active'] : '')
152
152
  }, /*#__PURE__*/React__default.createElement("div", {
153
- className: `${styles$c['file-form']} file-form-rem ${error || errorMessage ? styles$c['error'] : ''}`,
153
+ className: `${styles$b['file-form']} file-form-rem ${error || errorMessage ? styles$b['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$c['upload-file-content']} upload-file-content-rem`
162
+ className: `${styles$b['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$c['file-form-inner-upload']} ile-form-inner-upload-rem`
167
+ className: `${styles$b['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$c['upload-info']} upload-info-rem`
172
+ className: `${styles$b['upload-info']} upload-info-rem`
173
173
  }, /*#__PURE__*/React__default.createElement("span", {
174
- className: `${styles$c['upload-info-txt']} upload-info-txt-rem`
174
+ className: `${styles$b['upload-info-txt']} upload-info-txt-rem`
175
175
  }, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React__default.createElement("span", {
176
- className: `${styles$c['upload-info-size']} upload-info-size-rem`
176
+ className: `${styles$b['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$c['delete-upload-icon']} delete-upload-icon-rem`,
178
+ className: `${styles$b['delete-upload-icon']} delete-upload-icon-rem`,
179
179
  onClick: handleRemoveFile
180
180
  }, /*#__PURE__*/React__default.createElement("i", {
181
181
  className: "icon-delete"
@@ -383,9 +383,9 @@ SingleCheckbox.propTypes = {
383
383
  ignoreDisabledForChecked: PropTypes.bool
384
384
  };
385
385
 
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);
386
+ var css_248z$c = ".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;white-space:wrap}.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$a = {"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$c);
389
389
 
390
390
  /* eslint-disable no-prototype-builtins */
391
391
  const TH = ({
@@ -396,6 +396,8 @@ const TH = ({
396
396
  tHeadFontSize,
397
397
  tHeadTextAlign,
398
398
  tHeadFontWeight,
399
+ tableColumnMinWidth,
400
+ tableColumnMaxWidth,
399
401
  handleCheckedHeader,
400
402
  borderTopLeftRadius,
401
403
  borderTopRightRadius,
@@ -411,18 +413,19 @@ const TH = ({
411
413
  style: {
412
414
  width: 'auto',
413
415
  cursor: 'pointer',
414
- whiteSpace: 'nowrap',
415
416
  position: 'relative',
416
417
  padding: tHeadPadding,
417
418
  fontSize: tHeadFontSize,
418
419
  fontFamily: tHeadFamily,
419
420
  fontWeight: tHeadFontWeight,
421
+ minWidth: tableColumnMinWidth,
422
+ maxWidth: tableColumnMaxWidth,
420
423
  borderTopLeftRadius: borderTopLeftRadius,
421
424
  borderTopRightRadius: borderTopRightRadius,
422
425
  borderColor: hideBorder ? 'transparent' : '#eeeeee'
423
426
  },
424
427
  onClick: handleHeaderItemClick,
425
- className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$b['sorting-arrows'] : '' : ''}`
428
+ className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$a['sorting-arrows'] : '' : ''}`
426
429
  }, /*#__PURE__*/React__default.createElement("div", {
427
430
  style: {
428
431
  display: 'flex',
@@ -461,7 +464,11 @@ const TD = ({
461
464
  tBodyFontFamily,
462
465
  tBodyFontWeight,
463
466
  handleCheckDots,
467
+ openListFontSize,
464
468
  handleCheckedBody,
469
+ openListFontFamily,
470
+ tableColumnMinWidth,
471
+ tableColumnMaxWidth,
465
472
  handleBodyActionClick,
466
473
  handleMoreOptionsClick,
467
474
  handleContentListClick,
@@ -511,13 +518,14 @@ const TD = ({
511
518
  width: 'auto',
512
519
  color: tBodyColor,
513
520
  verticalAlign: 'top',
514
- whiteSpace: 'nowrap',
515
521
  padding: tBodyPadding,
516
522
  fontSize: tBodyFontSize,
517
523
  borderRight: borderRight,
518
524
  textAlign: tBodyTextAlign,
519
525
  fontFamily: tBodyFontFamily,
520
526
  fontWeight: tBodyFontWeight,
527
+ minWidth: tableColumnMinWidth,
528
+ maxWidth: tableColumnMaxWidth,
521
529
  borderColor: hideBorder ? 'transparent' : '#eeeeee',
522
530
  boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
523
531
  borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
@@ -536,7 +544,7 @@ const TD = ({
536
544
  },
537
545
  id: newItem.id,
538
546
  type: newItem.type,
539
- className: styles$b['td-span'],
547
+ className: styles$a['td-span'],
540
548
  key: `${newItem.id}_${newIndex}`,
541
549
  onClick: e => handleCheckActions(e, newItem, 'type', newIndex)
542
550
  }, newItem.content === 0 ? newItem.content.toString() : newItem.content ? newItem.content : '');
@@ -558,7 +566,7 @@ const TD = ({
558
566
  },
559
567
  id: iT.id ? iT.id : '',
560
568
  type: iT.type ? iT.type : '',
561
- className: styles$b['td-span'],
569
+ className: styles$a['td-span'],
562
570
  onClick: e => handleCheckActions(e, iT, 'type', iN),
563
571
  key: `${iT.id || iT.content}_${iN}`
564
572
  }, iT.content === 0 ? iT.content.toString() : iT.content ? iT.content : '');
@@ -582,7 +590,7 @@ const TD = ({
582
590
  cursor: 'pointer'
583
591
  },
584
592
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
585
- className: styles$b['td-span']
593
+ className: styles$a['td-span']
586
594
  }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/React__default.createElement(SingleCheckbox, {
587
595
  data: item,
588
596
  index: index,
@@ -594,16 +602,18 @@ const TD = ({
594
602
  unCheckedColor: item.checkBox.unCheckedColor
595
603
  }), /*#__PURE__*/React__default.createElement("div", {
596
604
  style: {
605
+ flexShrink: 10,
597
606
  marginLeft: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '0px' : '10px' : hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow') ? '10px' : '0px' : '0px',
598
607
  marginRight: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '10px' : '0px' : '0px' : '0px'
599
608
  }
600
609
  }, /*#__PURE__*/React__default.createElement("p", {
601
610
  style: {
611
+ textAlign: tBodyTextAlign,
602
612
  margin: '0px',
603
613
  cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto'
604
614
  },
605
615
  onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
606
- }, item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default.createElement("span", {
616
+ }, 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", {
607
617
  style: {
608
618
  display: 'block',
609
619
  position: 'relative'
@@ -627,7 +637,7 @@ const TD = ({
627
637
  }, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
628
638
  return /*#__PURE__*/React__default.createElement("span", {
629
639
  key: `${optionItem.content}_${optionIndex}`,
630
- className: styles$b['dots-option-item'],
640
+ className: styles$a['dots-option-item'],
631
641
  style: {
632
642
  color: '#3C393E',
633
643
  fontSize: '14px',
@@ -653,17 +663,20 @@ const TD = ({
653
663
  style: {
654
664
  overflow: 'auto',
655
665
  marginTop: '10px',
656
- maxHeight: '300px',
666
+ maxHeight: '500px',
657
667
  maxWidth: '100%',
658
668
  height: item.status === 'close' ? '0px' : 'auto'
659
669
  }
660
670
  }, item.contentList.map((innerItem, innerItemIndex) => {
661
671
  return /*#__PURE__*/React__default.createElement("p", {
662
672
  key: `${innerItem}_${innerItemIndex}`,
663
- className: styles$b['list-text'],
673
+ className: styles$a['list-text'],
664
674
  style: {
675
+ maxWidth: '100%',
665
676
  color: openListColor,
666
- maxWidth: (item.content.length * 9 <= 100 ? 100 : item.content.length * 9) + 'px'
677
+ textAlign: tBodyTextAlign,
678
+ fontSize: openListFontSize,
679
+ fontFamily: openListFontFamily
667
680
  },
668
681
  onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
669
682
  }, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
@@ -675,7 +688,7 @@ const TD = ({
675
688
  cursor: 'pointer'
676
689
  },
677
690
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
678
- className: styles$b['td-span']
691
+ className: styles$a['td-span']
679
692
  }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
680
693
  };
681
694
 
@@ -741,6 +754,8 @@ const Table = ({
741
754
  tableRowRadius,
742
755
  tableRowBGColor,
743
756
  tableRowBoxShadow,
757
+ tableColumnMaxWidth,
758
+ tableColumnMinWidth,
744
759
  tHeadColor,
745
760
  tHeadFamily,
746
761
  tHeadPadding,
@@ -760,6 +775,8 @@ const Table = ({
760
775
  tBodyRowMarginTop,
761
776
  className,
762
777
  openListColor,
778
+ openListFontSize,
779
+ openListFontFamily,
763
780
  hideBorder
764
781
  }) => {
765
782
  const [body, setBody] = useState([]);
@@ -1260,7 +1277,9 @@ const Table = ({
1260
1277
  tHeadTextAlign: tHeadTextAlign ? tHeadTextAlign : configStyles.TABLE.tHeadTextAlign,
1261
1278
  tHeadFontWeight: tHeadFontWeight ? tHeadFontWeight : configStyles.TABLE.tHeadFontWeight,
1262
1279
  borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px',
1263
- borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px'
1280
+ borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.tHeadBorderRadius : '0px',
1281
+ tableColumnMinWidth: tableColumnMinWidth ? tableColumnMinWidth : configStyles.TABLE.tableColumnMinWidth,
1282
+ tableColumnMaxWidth: tableColumnMaxWidth ? tableColumnMaxWidth : configStyles.TABLE.tableColumnMaxWidth
1264
1283
  });
1265
1284
  }))), body && body.length > 0 && /*#__PURE__*/React__default.createElement("tbody", {
1266
1285
  style: {
@@ -1286,6 +1305,10 @@ const Table = ({
1286
1305
  handleCheckDots: handleCheckDots,
1287
1306
  key: `${innerItem}_${index}_${innerIndex}`,
1288
1307
  openListColor: openListColor ? openListColor : configStyles.TABLE.openListColor,
1308
+ tableColumnMinWidth: tableColumnMinWidth ? tableColumnMinWidth : configStyles.TABLE.tableColumnMinWidth,
1309
+ tableColumnMaxWidth: tableColumnMaxWidth ? tableColumnMaxWidth : configStyles.TABLE.tableColumnMaxWidth,
1310
+ openListFontSize: openListFontSize ? openListFontSize : configStyles.TABLE.openListFontSize,
1311
+ openListFontFamily: openListFontFamily ? openListFontFamily : configStyles.TABLE.openListFontFamily,
1289
1312
  handleCheckedBody: handleCheckedBody,
1290
1313
  handleBodyActionClick: handleBodyActionClick,
1291
1314
  handleMoreOptionsClick: handleMoreOptionsClick,
@@ -1315,6 +1338,8 @@ Table.propTypes = {
1315
1338
  tableRowRadius: PropTypes.string,
1316
1339
  tableRowBGColor: PropTypes.string,
1317
1340
  tableRowBoxShadow: PropTypes.string,
1341
+ tableColumnMaxWidth: PropTypes.string,
1342
+ tableColumnMinWidth: PropTypes.string,
1318
1343
  tHeadColor: PropTypes.string,
1319
1344
  tHeadFamily: PropTypes.string,
1320
1345
  tHeadPadding: PropTypes.string,
@@ -1334,12 +1359,14 @@ Table.propTypes = {
1334
1359
  className: PropTypes.string,
1335
1360
  tBodyRowBorder: PropTypes.string,
1336
1361
  openListColor: PropTypes.string,
1362
+ openListFontSize: PropTypes.string,
1363
+ openListFontFamily: PropTypes.string,
1337
1364
  hideBorder: PropTypes.bool
1338
1365
  };
1339
1366
 
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);
1367
+ var css_248z$b = ".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)}}";
1368
+ var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
1369
+ styleInject(css_248z$b);
1343
1370
 
1344
1371
  const SvgNext = ({
1345
1372
  title,
@@ -1579,7 +1606,7 @@ const Modal = ({
1579
1606
  justifyContent: justifyContent ? justifyContent : configStyles.MODAL.justifyContent
1580
1607
  }
1581
1608
  }, /*#__PURE__*/React__default.createElement("div", {
1582
- className: `${styles$a['animation__modal']}`,
1609
+ className: `${styles$9['animation__modal']}`,
1583
1610
  onClick: handleStopClosing,
1584
1611
  style: {
1585
1612
  position: 'relative',
@@ -1783,9 +1810,9 @@ Modal.defaultProps = {
1783
1810
  type: 'content'
1784
1811
  };
1785
1812
 
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);
1813
+ var css_248z$a = ".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)}}";
1814
+ var styles$8 = {"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"};
1815
+ styleInject(css_248z$a);
1789
1816
 
1790
1817
  const InputTypes = {
1791
1818
  TEL: 'tel',
@@ -1841,6 +1868,7 @@ const Input = ({
1841
1868
  boxShadowHover,
1842
1869
  errorClassName,
1843
1870
  errorAnimation,
1871
+ labelFontFamily,
1844
1872
  phoneAlignItems,
1845
1873
  errorLineHeight,
1846
1874
  labelLineHeight,
@@ -1862,7 +1890,7 @@ const Input = ({
1862
1890
  const [innerErrorMessage, setInnerErrorMessage] = useState('');
1863
1891
  const random = Math.floor(Math.random() * 1000 + 1);
1864
1892
  const configStyles = compereConfigs();
1865
- const classProps = classnames(className ? className : configStyles.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']);
1893
+ const classProps = classnames(className ? className : configStyles.INPUT.className, type === 'number' ? styles$8['inp-num'] : '', styles$8['input-wrap']);
1866
1894
  const errorShow = keyframes`
1867
1895
  100% {
1868
1896
  bottom: '-20px';
@@ -2152,17 +2180,17 @@ const Input = ({
2152
2180
  return /*#__PURE__*/React__default.createElement("div", {
2153
2181
  className: classProps
2154
2182
  }, label ? /*#__PURE__*/React__default.createElement("label", {
2155
- className: `${styles$9['input-title']}`,
2156
2183
  style: {
2157
2184
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
2158
2185
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
2159
2186
  display: labelDisplay ? labelDisplay : configStyles.INPUT.labelDisplay,
2160
2187
  fontWeight: labelWeight ? labelWeight : configStyles.INPUT.labelWeight,
2161
2188
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
2162
- marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
2189
+ marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom,
2190
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.INPUT.labelFontFamily
2163
2191
  }
2164
2192
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
2165
- className: `${styles$9['input-content']}`,
2193
+ className: `${styles$8['input-content']}`,
2166
2194
  style: {
2167
2195
  width: width ? width : configStyles.INPUT.width,
2168
2196
  borderRadius: radius ? radius : configStyles.INPUT.radius,
@@ -2299,6 +2327,7 @@ Input.propTypes = {
2299
2327
  errorPosition: PropTypes.string,
2300
2328
  boxShadowHover: PropTypes.string,
2301
2329
  errorClassName: PropTypes.string,
2330
+ labelFontFamily: PropTypes.string,
2302
2331
  telErrorMessage: PropTypes.string,
2303
2332
  backgroundColor: PropTypes.string,
2304
2333
  phoneAlignItems: PropTypes.string,
@@ -2321,57 +2350,222 @@ Input.defaultProps = {
2321
2350
  type: 'text'
2322
2351
  };
2323
2352
 
2324
- var css_248z$a = ".radio-module_radio-wrap__-lO7V{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.radio-module_radio-wrap__-lO7V>input{height:0;opacity:0;position:absolute;width:0}.radio-module_radio-wrap__-lO7V .radio-module_radio-checkmark__Kvol0{border:1px solid #d9d9d9;border-radius:50%;display:inline-block;height:14px;left:0;margin-right:4px;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.radio-module_radio-wrap__-lO7V>.radio-module_radio-checkmark__Kvol0:after{background-color:#d9d9d9;border-radius:50%;bottom:0;content:\"\";height:8px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;transition:opacity .24s,background-color .24s;width:8px}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0:after{background-color:#1890ff;opacity:1}.radio-module_radio-wrap__-lO7V:hover input~.radio-module_radio-checkmark__Kvol0:after{opacity:1}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0{border-color:#1890ff}";
2325
- var styles$8 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
2326
- styleInject(css_248z$a);
2353
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
2354
+ // require the crypto API and do not support built-in fallback to lower quality random number
2355
+ // generators (like Math.random()).
2356
+ let getRandomValues;
2357
+ const rnds8 = new Uint8Array(16);
2358
+ function rng() {
2359
+ // lazy load so that environments that need to polyfill have a chance to do so
2360
+ if (!getRandomValues) {
2361
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
2362
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
2363
+
2364
+ if (!getRandomValues) {
2365
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
2366
+ }
2367
+ }
2368
+
2369
+ return getRandomValues(rnds8);
2370
+ }
2371
+
2372
+ /**
2373
+ * Convert array of 16 byte values to UUID string format of the form:
2374
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
2375
+ */
2376
+
2377
+ const byteToHex = [];
2378
+
2379
+ for (let i = 0; i < 256; ++i) {
2380
+ byteToHex.push((i + 0x100).toString(16).slice(1));
2381
+ }
2382
+
2383
+ function unsafeStringify(arr, offset = 0) {
2384
+ // Note: Be careful editing this code! It's been tuned for performance
2385
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
2386
+ 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();
2387
+ }
2388
+
2389
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2390
+ var native = {
2391
+ randomUUID
2392
+ };
2393
+
2394
+ function v4(options, buf, offset) {
2395
+ if (native.randomUUID && !buf && !options) {
2396
+ return native.randomUUID();
2397
+ }
2398
+
2399
+ options = options || {};
2400
+ const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
2401
+
2402
+ rnds[6] = rnds[6] & 0x0f | 0x40;
2403
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
2404
+
2405
+ if (buf) {
2406
+ offset = offset || 0;
2327
2407
 
2408
+ for (let i = 0; i < 16; ++i) {
2409
+ buf[offset + i] = rnds[i];
2410
+ }
2411
+
2412
+ return buf;
2413
+ }
2414
+
2415
+ return unsafeStringify(rnds);
2416
+ }
2417
+
2418
+ const RadioDirectionMode = {
2419
+ VERTICAL: 'vertical',
2420
+ HORINZONTAL: 'horizontal'
2421
+ };
2328
2422
  const Radio = ({
2329
- disabled,
2330
- defaultChecked,
2331
- required,
2423
+ data,
2424
+ size,
2425
+ getData,
2426
+ selected,
2427
+ keyNames,
2428
+ diraction,
2332
2429
  className,
2333
- name,
2334
- value,
2335
- jsonData,
2336
- label,
2337
- ...props
2430
+ borderSize,
2431
+ labelColor,
2432
+ borderColor,
2433
+ borderStyle,
2434
+ labelFontSize,
2435
+ labelFontFamily,
2436
+ labelFontWeight,
2437
+ labelLineHeight,
2438
+ radioMarginRight,
2439
+ borderActiveColor,
2440
+ radioItemMarginRight,
2441
+ radioItemMarginBottom
2338
2442
  }) => {
2339
- const classProps = classnames(styles$8.checkbox, className);
2340
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
2341
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, parseData.map((element, id) => {
2342
- return /*#__PURE__*/React__default.createElement("label", {
2343
- className: `${styles$8['radio-wrap']} radio-wrap-rem`,
2344
- key: element.value
2345
- }, /*#__PURE__*/React__default.createElement("input", _extends({
2346
- type: "radio",
2347
- className: classProps,
2348
- disabled: disabled,
2349
- required: required,
2350
- defaultChecked: id === 0 ? defaultChecked : '',
2351
- value: value ? value : element.value,
2352
- name: name ? name : element.name
2353
- }, props)), /*#__PURE__*/React__default.createElement("span", {
2354
- className: `${styles$8['radio-checkmark']} radio-checkmark-rem`
2355
- }), element.label ? /*#__PURE__*/React__default.createElement("span", {
2356
- className: styles$8.labelRadio
2357
- }, label ? label : element.label) : '');
2443
+ const configStyles = compereConfigs();
2444
+ const classProps = classnames(className ? className : configStyles.RADIO.className);
2445
+ const [innerData, setInnerData] = useState([]);
2446
+ const [radioInnerSize, setRadioInnerSize] = useState('');
2447
+ const [radioInnerFormat, setRadioInnerFormat] = useState('');
2448
+ const [innerSelectedData, setInnerSelectedData] = useState({});
2449
+ const handleMouseEnter = (id, elemID) => {
2450
+ const elem = document.querySelector(`#${elemID}`);
2451
+ elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.borderActiveColor : borderColor ? borderColor : configStyles.RADIO.borderColor;
2452
+ };
2453
+ const handleMouseLeave = (id, elemID) => {
2454
+ const elem = document.querySelector(`#${elemID}`);
2455
+ elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.borderActiveColor : 'transparent';
2456
+ };
2457
+ const handleChecked = selItem => {
2458
+ setInnerSelectedData(selItem);
2459
+ getData && getData(selItem);
2460
+ };
2461
+ useEffect(() => {
2462
+ if (Array.isArray(data)) {
2463
+ setInnerData(data);
2464
+ } else {
2465
+ setInnerData([data]);
2466
+ }
2467
+ }, [data]);
2468
+ useEffect(() => {
2469
+ let radioSize = '';
2470
+ let radioSizeFormat = '';
2471
+ const checkSize = size || configStyles.RADIO.size;
2472
+ if (checkSize && typeof checkSize === 'string') {
2473
+ if (checkSize.length > 0) {
2474
+ checkSize.split('').map(item => {
2475
+ if (!isNaN(parseInt(item))) {
2476
+ radioSize += item;
2477
+ } else {
2478
+ radioSizeFormat += item;
2479
+ }
2480
+ });
2481
+ }
2482
+ }
2483
+ if (radioSize < '10') {
2484
+ radioSize = '10';
2485
+ }
2486
+ setRadioInnerFormat(radioSizeFormat);
2487
+ setRadioInnerSize(`${parseInt(radioSize) / 2}`);
2488
+ }, [size, configStyles.RADIO.size]);
2489
+ useEffect(() => {
2490
+ setInnerSelectedData(selected);
2491
+ }, [selected]);
2492
+ return /*#__PURE__*/React__default.createElement("div", {
2493
+ className: classProps,
2494
+ style: {
2495
+ display: 'flex',
2496
+ flexDirection: diraction === 'horizontal' ? 'row' : 'column'
2497
+ }
2498
+ }, innerData && innerData.length > 0 && innerData.map((item, index) => {
2499
+ const elemId = `TUI_${index}_radio_inner` + v4();
2500
+ return /*#__PURE__*/React__default.createElement("div", {
2501
+ key: `TUI_${index}_radio`,
2502
+ style: {
2503
+ display: 'flex',
2504
+ cursor: item.disabled ? 'not-allowed' : 'pointer',
2505
+ width: 'fit-content',
2506
+ alignItems: 'center',
2507
+ marginRight: diraction === 'horizontal' ? radioItemMarginRight ? radioItemMarginRight : configStyles.RADIO.radioItemMarginRight : '0px',
2508
+ marginBottom: diraction === 'vertical' ? radioItemMarginBottom ? radioItemMarginBottom : configStyles.RADIO.radioItemMarginBottom : '0px'
2509
+ },
2510
+ onClick: item.disabled ? _ => _ : () => handleChecked(item),
2511
+ onMouseEnter: () => handleMouseEnter(item[keyNames.id], elemId),
2512
+ onMouseLeave: () => handleMouseLeave(item[keyNames.id], elemId)
2513
+ }, /*#__PURE__*/React__default.createElement("div", {
2514
+ style: {
2515
+ display: 'flex',
2516
+ alignItems: 'center',
2517
+ borderRadius: '100%',
2518
+ justifyContent: 'center',
2519
+ width: size ? size : configStyles.RADIO.size,
2520
+ height: size ? size : configStyles.RADIO.size,
2521
+ marginRight: item.label ? radioMarginRight ? radioMarginRight : configStyles.RADIO.radioMarginRight : '0px',
2522
+ border: `${borderSize ? borderSize : configStyles.RADIO.borderSize} ${borderStyle ? borderStyle : configStyles.RADIO.borderStyle}`,
2523
+ borderColor: item[keyNames.id] === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.borderActiveColor : borderColor ? borderColor : configStyles.RADIO.borderColor
2524
+ }
2525
+ }, /*#__PURE__*/React__default.createElement("div", {
2526
+ id: elemId,
2527
+ style: {
2528
+ borderRadius: '100%',
2529
+ width: radioInnerSize + radioInnerFormat,
2530
+ height: radioInnerSize + radioInnerFormat,
2531
+ backgroundColor: item[keyNames.id] === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.borderActiveColor : 'transparent'
2532
+ }
2533
+ })), item[keyNames.label] ? /*#__PURE__*/React__default.createElement("span", {
2534
+ style: {
2535
+ color: labelColor ? labelColor : configStyles.RADIO.labelColor,
2536
+ fontSize: labelFontSize ? labelFontSize : configStyles.RADIO.labelFontSize,
2537
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.RADIO.labelFontFamily,
2538
+ fontWeight: labelFontWeight ? labelFontWeight : configStyles.RADIO.labelFontWeight,
2539
+ lineHeight: labelLineHeight ? labelLineHeight : configStyles.RADIO.labelLineHeight
2540
+ },
2541
+ onMouseEnter: () => handleMouseEnter(item[keyNames.id], elemId),
2542
+ onMouseLeave: () => handleMouseLeave(item[keyNames.id], elemId)
2543
+ }, item[keyNames.label]) : '');
2358
2544
  }));
2359
2545
  };
2360
2546
  Radio.propTypes = {
2547
+ size: PropTypes.string,
2548
+ selected: PropTypes.object,
2549
+ keyNames: PropTypes.object,
2361
2550
  className: PropTypes.string,
2362
- onChange: PropTypes.func,
2363
- required: PropTypes.bool,
2364
- defaultChecked: PropTypes.bool,
2365
- disabled: PropTypes.bool,
2366
- name: PropTypes.string,
2367
- value: PropTypes.string,
2368
- jsonData: PropTypes.string,
2369
- label: PropTypes.string,
2370
- keyNames: PropTypes.object
2551
+ borderSize: PropTypes.string,
2552
+ labelColor: PropTypes.string,
2553
+ borderColor: PropTypes.string,
2554
+ borderStyle: PropTypes.string,
2555
+ labelFontSize: PropTypes.string,
2556
+ labelFontFamily: PropTypes.string,
2557
+ labelFontWeight: PropTypes.string,
2558
+ labelLineHeight: PropTypes.string,
2559
+ radioMarginRight: PropTypes.string,
2560
+ getData: PropTypes.func.isRequired,
2561
+ borderActiveColor: PropTypes.string,
2562
+ radioItemMarginRight: PropTypes.string,
2563
+ radioItemMarginBottom: PropTypes.string,
2564
+ diraction: PropTypes.oneOf(Object.values(RadioDirectionMode)),
2565
+ data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
2371
2566
  };
2372
2567
  Radio.defaultProps = {
2373
- onChange: undefined,
2374
- jsonData: '[{"value":"email", "name":"contact", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact", "label":"Phone", "id":"contactChoice2"}]'
2568
+ diraction: 'vertical'
2375
2569
  };
2376
2570
 
2377
2571
  const Button = ({
@@ -2533,6 +2727,7 @@ const Select = ({
2533
2727
  labelDisplay,
2534
2728
  labelFontSize,
2535
2729
  labelLineHeight,
2730
+ labelFontFamily,
2536
2731
  labelMarginBottom,
2537
2732
  labelTextTransform,
2538
2733
  cursor,
@@ -2689,6 +2884,7 @@ const Select = ({
2689
2884
  display: labelDisplay ? labelDisplay : configStyles.SELECT.labelDisplay,
2690
2885
  fontSize: labelFontSize ? labelFontSize : configStyles.SELECT.labelFontSize,
2691
2886
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.SELECT.labelLineHeight,
2887
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.SELECT.labelFontFamily,
2692
2888
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
2693
2889
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
2694
2890
  }
@@ -2812,6 +3008,7 @@ Select.propTypes = {
2812
3008
  labelDisplay: PropTypes.string,
2813
3009
  labelFontSize: PropTypes.string,
2814
3010
  labelLineHeight: PropTypes.string,
3011
+ labelFontFamily: PropTypes.string,
2815
3012
  labelMarginBottom: PropTypes.string,
2816
3013
  labelTextTransform: PropTypes.string,
2817
3014
  cursor: PropTypes.string,
@@ -3376,8 +3573,8 @@ const Captcha = ({
3376
3573
  }) => {
3377
3574
  const [rangeNumber, setRangeNumber] = useState(0);
3378
3575
  const [rangeProgress, setRangeProgress] = useState(0);
3379
- const classProps = classnames(className ? className : configStyles.CAPTCHA.className);
3380
3576
  const configStyles = compereConfigs();
3577
+ const classProps = classnames(className ? className : configStyles.CAPTCHA.className);
3381
3578
  const handleRange = e => {
3382
3579
  const value = e.target.value;
3383
3580
  getRange(value);
@@ -3520,71 +3717,6 @@ Stepper.propTypes = {
3520
3717
  activeSteps: PropTypes.number
3521
3718
  };
3522
3719
 
3523
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
3524
- // require the crypto API and do not support built-in fallback to lower quality random number
3525
- // generators (like Math.random()).
3526
- let getRandomValues;
3527
- const rnds8 = new Uint8Array(16);
3528
- function rng() {
3529
- // lazy load so that environments that need to polyfill have a chance to do so
3530
- if (!getRandomValues) {
3531
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
3532
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
3533
-
3534
- if (!getRandomValues) {
3535
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
3536
- }
3537
- }
3538
-
3539
- return getRandomValues(rnds8);
3540
- }
3541
-
3542
- /**
3543
- * Convert array of 16 byte values to UUID string format of the form:
3544
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
3545
- */
3546
-
3547
- const byteToHex = [];
3548
-
3549
- for (let i = 0; i < 256; ++i) {
3550
- byteToHex.push((i + 0x100).toString(16).slice(1));
3551
- }
3552
-
3553
- function unsafeStringify(arr, offset = 0) {
3554
- // Note: Be careful editing this code! It's been tuned for performance
3555
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
3556
- 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();
3557
- }
3558
-
3559
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3560
- var native = {
3561
- randomUUID
3562
- };
3563
-
3564
- function v4(options, buf, offset) {
3565
- if (native.randomUUID && !buf && !options) {
3566
- return native.randomUUID();
3567
- }
3568
-
3569
- options = options || {};
3570
- const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
3571
-
3572
- rnds[6] = rnds[6] & 0x0f | 0x40;
3573
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
3574
-
3575
- if (buf) {
3576
- offset = offset || 0;
3577
-
3578
- for (let i = 0; i < 16; ++i) {
3579
- buf[offset + i] = rnds[i];
3580
- }
3581
-
3582
- return buf;
3583
- }
3584
-
3585
- return unsafeStringify(rnds);
3586
- }
3587
-
3588
3720
  const SvgHeic = ({
3589
3721
  title,
3590
3722
  titleId,
@@ -4593,6 +4725,7 @@ const Textarea = ({
4593
4725
  placeholder,
4594
4726
  labelDisplay,
4595
4727
  errorMessage,
4728
+ labelFontFamily,
4596
4729
  backgroundColor,
4597
4730
  borderFocusColor,
4598
4731
  borderHoverColor,
@@ -4603,8 +4736,8 @@ const Textarea = ({
4603
4736
  const [isHover, setIsHover] = useState(false);
4604
4737
  const [isFocus, setIsFocus] = useState(false);
4605
4738
  const [innerValue, setInnerValue] = useState('');
4606
- const classProps = classnames(className ? className : configStyles.TEXTAREA.className);
4607
4739
  const configStyles = compereConfigs();
4740
+ const classProps = classnames(className ? className : configStyles.TEXTAREA.className);
4608
4741
  const handleMouseEnter = () => {
4609
4742
  setIsHover(true);
4610
4743
  };
@@ -4659,6 +4792,7 @@ const Textarea = ({
4659
4792
  display: 'flex',
4660
4793
  alignItems: 'center',
4661
4794
  justifyContent: label ? 'space-between' : 'flex-end',
4795
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.TEXTAREA.labelFontFamily,
4662
4796
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.TEXTAREA.labelMarginBottom
4663
4797
  }
4664
4798
  }, label ? /*#__PURE__*/React__default.createElement("label", {
@@ -4737,6 +4871,7 @@ Textarea.propTypes = {
4737
4871
  placeholder: PropTypes.string,
4738
4872
  errorMessage: PropTypes.string,
4739
4873
  labelDisplay: PropTypes.string,
4874
+ labelFontFamily: PropTypes.string,
4740
4875
  backgroundColor: PropTypes.string,
4741
4876
  showCharacterCount: PropTypes.bool,
4742
4877
  value: PropTypes.string.isRequired,
@@ -5251,6 +5386,7 @@ const NewAutocomplete = ({
5251
5386
  contentPosition,
5252
5387
  contentTopColor,
5253
5388
  labelLineHeight,
5389
+ labelFontFamily,
5254
5390
  contentDirection,
5255
5391
  contentTopWeight,
5256
5392
  contentTopRadius,
@@ -5461,6 +5597,7 @@ const NewAutocomplete = ({
5461
5597
  fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
5462
5598
  display: labelDisplay ? labelDisplay : configStyles.NEWAUTOCOMPLETE.labelDisplay,
5463
5599
  fontWeight: labelWeight ? labelWeight : configStyles.NEWAUTOCOMPLETE.labelWeight,
5600
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.NEWAUTOCOMPLETE.labelFontFamily,
5464
5601
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.NEWAUTOCOMPLETE.labelLineHeight,
5465
5602
  maxWidth: contentTopMaxWidth ? contentTopMaxWidth : configStyles.NEWAUTOCOMPLETE.contentTopMaxWidth,
5466
5603
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
@@ -5539,6 +5676,7 @@ NewAutocomplete.propTypes = {
5539
5676
  labelLineHeight: PropTypes.string,
5540
5677
  contentTopColor: PropTypes.string,
5541
5678
  change: PropTypes.func.isRequired,
5679
+ labelFontFamily: PropTypes.string,
5542
5680
  contentDirection: PropTypes.string,
5543
5681
  contentTopWeight: PropTypes.number,
5544
5682
  contentTopRadius: PropTypes.string,
@@ -5596,4 +5734,4 @@ NewAutocomplete.defaultProps = {
5596
5734
  disabled: false
5597
5735
  };
5598
5736
 
5599
- export { Autocomplate, Button, Captcha, Checkbox, DirectionMode, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
5737
+ export { Autocomplate, Button, Captcha, Checkbox, DirectionMode, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, RadioDirectionMode, Select, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };