@xaypay/tui 0.2.30 → 0.2.33

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.js CHANGED
@@ -626,7 +626,11 @@ var packageResult = {
626
626
  ...fontObject
627
627
  },
628
628
  label: {
629
+ showMore: false,
629
630
  useTooltip: false,
631
+ showLessText: 'Փակել',
632
+ showMoreText: 'Ավելին',
633
+ showMoreTextColor: '#2C46C1',
630
634
  color: presetColors.dark,
631
635
  display: 'block',
632
636
  lineHeight: '22px',
@@ -819,7 +823,11 @@ var packageResult = {
819
823
  shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
820
824
  },
821
825
  label: {
826
+ showMore: false,
822
827
  useTooltip: false,
828
+ showLessText: 'Փակել',
829
+ showMoreText: 'Ավելին',
830
+ showMoreTextColor: '#2C46C1',
823
831
  color: presetColors.dark,
824
832
  display: 'block',
825
833
  lineHeight: '22px',
@@ -931,7 +939,11 @@ var packageResult = {
931
939
  background: 'white'
932
940
  },
933
941
  label: {
942
+ showMore: false,
934
943
  useTooltip: false,
944
+ showLessText: 'Փակել',
945
+ showMoreText: 'Ավելին',
946
+ showMoreTextColor: '#2C46C1',
935
947
  color: presetColors.dark,
936
948
  display: 'block',
937
949
  marginBottom: '10px',
@@ -1000,7 +1012,11 @@ var packageResult = {
1000
1012
  backgroundDisable: presetColors.secondary
1001
1013
  },
1002
1014
  label: {
1015
+ showMore: false,
1003
1016
  useTooltip: false,
1017
+ showLessText: 'Փակել',
1018
+ showMoreText: 'Ավելին',
1019
+ showMoreTextColor: '#2C46C1',
1004
1020
  color: presetColors.dark,
1005
1021
  display: 'block',
1006
1022
  lineHeight: '22px',
@@ -1124,6 +1140,8 @@ var packageResult = {
1124
1140
  label: {
1125
1141
  showMore: false,
1126
1142
  useTooltip: false,
1143
+ showLessText: 'Փակել',
1144
+ showMoreText: 'Ավելին',
1127
1145
  showMoreTextColor: '#2C46C1',
1128
1146
  color: '#4A4A4D',
1129
1147
  font: {
@@ -1853,9 +1871,9 @@ function styleInject(css, ref) {
1853
1871
  }
1854
1872
  }
1855
1873
 
1856
- var css_248z$c = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}.file-module_show-more-text__WIGLx{align-self:self-end;cursor:pointer}";
1857
- var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW","show-more-text":"file-module_show-more-text__WIGLx"};
1858
- styleInject(css_248z$c);
1874
+ var css_248z$d = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}.file-module_show-more-text__WIGLx{align-self:self-end;cursor:pointer}";
1875
+ var styles$c = {"small-file-component":"file-module_small-file-component__nlpcW","show-more-text":"file-module_show-more-text__WIGLx"};
1876
+ styleInject(css_248z$d);
1859
1877
 
1860
1878
  // eslint-disable-next-line react/display-name
1861
1879
  const File = /*#__PURE__*/React.forwardRef(({
@@ -2484,12 +2502,23 @@ const File = /*#__PURE__*/React.forwardRef(({
2484
2502
  fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
2485
2503
  whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'nowrap' : 'normal',
2486
2504
  overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'hidden' : 'visible',
2487
- textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'ellipsis' : ''
2505
+ textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'ellipsis' : '',
2506
+ wordBreak: 'break-all'
2488
2507
  },
2489
2508
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) && !lableShowMore && !configStyles.FILE.label.showMore ? handleLabelMouseEnter : _ => _,
2490
2509
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) && !lableShowMore && !configStyles.FILE.label.showMore ? handleLabelMouseLeave : _ => _
2491
- }, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), lableShowMore || configStyles.FILE.label.showMore ? /*#__PURE__*/React__default["default"].createElement("span", {
2492
- className: styles$b['show-more-text'],
2510
+ }, label, handleCheckTextWidth('label') === 'more' && showMore && (lableShowMore || configStyles.FILE.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
2511
+ className: styles$c['show-more-text'],
2512
+ style: {
2513
+ fontSize: labelSize ?? configStyles.FILE.label.font.size,
2514
+ fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
2515
+ fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
2516
+ fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
2517
+ color: showMoreTextColor ?? configStyles.FILE.label.showMoreTextColor
2518
+ },
2519
+ onClick: handleChangeShowMore
2520
+ }, ' ', " ", labelShowLessText ?? configStyles.FILE.label.showLessText) : ''), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), handleCheckTextWidth('label') === 'more' && !showMore && (lableShowMore || configStyles.FILE.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
2521
+ className: styles$c['show-more-text'],
2493
2522
  style: {
2494
2523
  fontSize: labelSize ?? configStyles.FILE.label.font.size,
2495
2524
  fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
@@ -2498,7 +2527,7 @@ const File = /*#__PURE__*/React.forwardRef(({
2498
2527
  color: showMoreTextColor ?? configStyles.FILE.label.showMoreTextColor
2499
2528
  },
2500
2529
  onClick: handleChangeShowMore
2501
- }, showMore ? labelShowLessText ? labelShowLessText : '' : labelShowMoreText ? labelShowMoreText : '') : ''), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
2530
+ }, labelShowMoreText ?? configStyles.FILE.label.showMoreText) : ''), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
2502
2531
  style: {
2503
2532
  cursor: 'pointer'
2504
2533
  },
@@ -2585,7 +2614,7 @@ const File = /*#__PURE__*/React.forwardRef(({
2585
2614
  color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
2586
2615
  }
2587
2616
  }, "(", fileExtensions.toString().split(',').join(', '), ")"))))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
2588
- className: styles$b['small-file-component'],
2617
+ className: styles$c['small-file-component'],
2589
2618
  style: {
2590
2619
  width: '100%',
2591
2620
  padding: '5px',
@@ -2624,6 +2653,7 @@ const File = /*#__PURE__*/React.forwardRef(({
2624
2653
  style: {
2625
2654
  margin: '0px',
2626
2655
  padding: '0px 10px',
2656
+ textAlign: 'left',
2627
2657
  width: 'calc(100% - 120px)',
2628
2658
  maxWidth: 'calc(100% - 120px)',
2629
2659
  color: color ?? configStyles.FILE.color,
@@ -2638,7 +2668,8 @@ const File = /*#__PURE__*/React.forwardRef(({
2638
2668
  display: 'inline-block',
2639
2669
  whiteSpace: 'nowrap',
2640
2670
  overflow: 'hidden',
2641
- textOverflow: 'ellipsis'
2671
+ textOverflow: 'ellipsis',
2672
+ textAlign: 'left'
2642
2673
  }
2643
2674
  }, singleFile[`${0}`].name) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 ", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
2644
2675
  style: {
@@ -3100,9 +3131,9 @@ SingleCheckbox.propTypes = {
3100
3131
  ignoreDisabledForChecked: PropTypes__default["default"].bool
3101
3132
  };
3102
3133
 
3103
- var css_248z$b = ".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{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;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}.table-module_no-tabel-data__6xp3N{align-items:center;display:flex;height:200px;justify-content:center;width:100%}";
3104
- 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","no-tabel-data":"table-module_no-tabel-data__6xp3N"};
3105
- styleInject(css_248z$b);
3134
+ 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{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;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}.table-module_no-tabel-data__6xp3N{align-items:center;display:flex;height:200px;justify-content:center;width:100%}";
3135
+ 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","no-tabel-data":"table-module_no-tabel-data__6xp3N"};
3136
+ styleInject(css_248z$c);
3106
3137
 
3107
3138
  /* eslint-disable no-prototype-builtins */
3108
3139
  const TH = ({
@@ -3144,7 +3175,7 @@ const TH = ({
3144
3175
  borderColor: hideBorder ? 'transparent' : '#eeeeee'
3145
3176
  },
3146
3177
  onClick: handleHeaderItemClick,
3147
- className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$a['sorting-arrows'] : '' : ''}`
3178
+ className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$b['sorting-arrows'] : '' : ''}`
3148
3179
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3149
3180
  style: {
3150
3181
  display: 'flex',
@@ -3305,7 +3336,7 @@ const TD = ({
3305
3336
  },
3306
3337
  id: newItem.id,
3307
3338
  type: newItem.type,
3308
- className: styles$a['td-span'],
3339
+ className: styles$b['td-span'],
3309
3340
  key: `${newItem.id}_${newIndex}`,
3310
3341
  onClick: e => handleCheckActions(e, newItem, 'type', newIndex),
3311
3342
  onMouseEnter: () => handleMouseEnter(newItem, newIndex),
@@ -3329,7 +3360,7 @@ const TD = ({
3329
3360
  },
3330
3361
  id: iT.id ? iT.id : '',
3331
3362
  type: iT.type ? iT.type : '',
3332
- className: styles$a['td-span'],
3363
+ className: styles$b['td-span'],
3333
3364
  key: `${iT.id || iT.content}_${iN}`,
3334
3365
  onMouseEnter: () => handleMouseEnter(iT, iN),
3335
3366
  onMouseLeave: () => handleMouseLeave(),
@@ -3355,7 +3386,7 @@ const TD = ({
3355
3386
  cursor: 'pointer'
3356
3387
  },
3357
3388
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
3358
- className: styles$a['td-span']
3389
+ className: styles$b['td-span']
3359
3390
  }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'draggableIcon') && /*#__PURE__*/React__default["default"].createElement("div", {
3360
3391
  draggable: true,
3361
3392
  style: {
@@ -3424,7 +3455,7 @@ const TD = ({
3424
3455
  }, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
3425
3456
  return /*#__PURE__*/React__default["default"].createElement("span", {
3426
3457
  key: `${optionItem.content}_${optionIndex}`,
3427
- className: styles$a['dots-option-item'],
3458
+ className: styles$b['dots-option-item'],
3428
3459
  style: {
3429
3460
  color: '#3C393E',
3430
3461
  fontSize: '14px',
@@ -3466,7 +3497,7 @@ const TD = ({
3466
3497
  }, innerItem.content.map((contInnerItem, contInnerIndex) => {
3467
3498
  return /*#__PURE__*/React__default["default"].createElement("p", {
3468
3499
  key: `${contInnerItem}_${contInnerIndex}`,
3469
- className: styles$a['list-text'],
3500
+ className: styles$b['list-text'],
3470
3501
  style: {
3471
3502
  maxWidth: '100%',
3472
3503
  color: openListColor,
@@ -3483,7 +3514,7 @@ const TD = ({
3483
3514
  } else {
3484
3515
  return /*#__PURE__*/React__default["default"].createElement("p", {
3485
3516
  key: `${innerItem}_${innerItemIndex}`,
3486
- className: styles$a['list-text'],
3517
+ className: styles$b['list-text'],
3487
3518
  style: {
3488
3519
  maxWidth: '100%',
3489
3520
  color: openListColor,
@@ -3504,7 +3535,7 @@ const TD = ({
3504
3535
  cursor: 'pointer'
3505
3536
  },
3506
3537
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
3507
- className: styles$a['td-span']
3538
+ className: styles$b['td-span']
3508
3539
  }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
3509
3540
  };
3510
3541
 
@@ -4489,7 +4520,7 @@ const Table = ({
4489
4520
  borderRightColor: innerIndex === Object.values(draggedItem).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor
4490
4521
  });
4491
4522
  })))), !body.length && /*#__PURE__*/React__default["default"].createElement("div", {
4492
- className: styles$a['no-tabel-data']
4523
+ className: styles$b['no-tabel-data']
4493
4524
  }, /*#__PURE__*/React__default["default"].createElement("p", null, "\u054F\u057E\u0575\u0561\u056C\u0576\u0565\u0580 \u0579\u056F\u0561\u0576")));
4494
4525
  };
4495
4526
  Table.propTypes = {
@@ -4540,9 +4571,9 @@ Table.propTypes = {
4540
4571
  clickableRowColumnTd: PropTypes__default["default"].bool
4541
4572
  };
4542
4573
 
4543
- var css_248z$a = "body.modal-module_tui-no-srcoll-class__gZjNK,html.modal-module_tui-no-srcoll-class__gZjNK{height:100%;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}#modal-module_tui-modal-id-for-no-scroll-area__s79-a{touch-action:auto}.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)}}";
4544
- var styles$9 = {"tui-no-srcoll-class":"modal-module_tui-no-srcoll-class__gZjNK","tui-modal-id-for-no-scroll-area":"modal-module_tui-modal-id-for-no-scroll-area__s79-a","animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
4545
- styleInject(css_248z$a);
4574
+ var css_248z$b = "body.modal-module_tui-no-srcoll-class__gZjNK,html.modal-module_tui-no-srcoll-class__gZjNK{height:100%;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}#modal-module_tui-modal-id-for-no-scroll-area__s79-a{touch-action:auto}.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)}}";
4575
+ var styles$a = {"tui-no-srcoll-class":"modal-module_tui-no-srcoll-class__gZjNK","tui-modal-id-for-no-scroll-area":"modal-module_tui-modal-id-for-no-scroll-area__s79-a","animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
4576
+ styleInject(css_248z$b);
4546
4577
 
4547
4578
  const SvgNext = ({
4548
4579
  title,
@@ -4863,7 +4894,7 @@ const Modal = ({
4863
4894
  justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
4864
4895
  }
4865
4896
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4866
- className: `${styles$9['animation__modal']}`,
4897
+ className: `${styles$a['animation__modal']}`,
4867
4898
  onClick: handleStopClosing,
4868
4899
  style: {
4869
4900
  position: 'relative',
@@ -5446,9 +5477,9 @@ const NumberInput = ({
5446
5477
  });
5447
5478
  };
5448
5479
 
5449
- var css_248z$9 = ".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)}}";
5450
- 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"};
5451
- styleInject(css_248z$9);
5480
+ 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-module_show-more-text__PQC9x{align-self:self-end;cursor:pointer}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)}}";
5481
+ var styles$9 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","show-more-text":"input-module_show-more-text__PQC9x","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k","inp-num":"input-module_inp-num__vH7HL"};
5482
+ styleInject(css_248z$a);
5452
5483
 
5453
5484
  const InputTypes = {
5454
5485
  TEL: 'tel',
@@ -5542,6 +5573,10 @@ const Input = ({
5542
5573
  labelFontFamily,
5543
5574
  labelLineHeight,
5544
5575
  labelMarginBottom,
5576
+ lableShowMore,
5577
+ labelShowLessText,
5578
+ labelShowMoreText,
5579
+ showMoreTextColor,
5545
5580
  iconRequired,
5546
5581
  useLabelTooltip,
5547
5582
  labelTooltipColor,
@@ -5560,6 +5595,7 @@ const Input = ({
5560
5595
  const [show, setShow] = React.useState(false);
5561
5596
  const [removeID, setRemoveID] = React.useState('');
5562
5597
  const [isHover, setIsHover] = React.useState(false);
5598
+ const [showMore, setShowMore] = React.useState(false);
5563
5599
  const [classProps, setClassProps] = React.useState({});
5564
5600
  const [innerValue, setInnerValue] = React.useState('');
5565
5601
  const [tooltipElem, setTooltipElem] = React.useState(null);
@@ -5686,6 +5722,21 @@ const Input = ({
5686
5722
  }
5687
5723
  setRemoveID(() => '');
5688
5724
  };
5725
+ const handleCheckTextWidth = () => {
5726
+ if (labelRef.current) {
5727
+ const rect = labelRef.current.getBoundingClientRect();
5728
+ const elementWidth = rect.width;
5729
+ const textWidth = getRenderedTextWidth(labelRef.current);
5730
+ if (textWidth > Math.ceil(elementWidth)) {
5731
+ return 'more';
5732
+ } else {
5733
+ return 'less';
5734
+ }
5735
+ }
5736
+ };
5737
+ const handleChangeShowMore = () => {
5738
+ setShowMore(() => !showMore);
5739
+ };
5689
5740
  React.useEffect(() => {
5690
5741
  if (errorMessage) {
5691
5742
  setInnerErrorMessage(errorMessage);
@@ -5701,7 +5752,7 @@ const Input = ({
5701
5752
  setInnerValue(() => val);
5702
5753
  }, [value]);
5703
5754
  React.useEffect(() => {
5704
- className && setClassProps(() => classnames__default["default"](className ?? configStyles.INPUT.className, type === 'number' ? styles$8['inp-num'] : '', styles$8['input-wrap']));
5755
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']));
5705
5756
  }, [className]);
5706
5757
  React.useEffect(() => {
5707
5758
  setInnerErrorIcon(() => errorIcon);
@@ -5719,9 +5770,18 @@ const Input = ({
5719
5770
  setInnerLabelIconSide(() => labelIconSide);
5720
5771
  }
5721
5772
  }, [labelIconSide]);
5773
+ React.useEffect(() => {
5774
+ if ((useLabelTooltip || configStyles.INPUT?.label?.useTooltip) && (lableShowMore || configStyles.INPUT?.label?.showMore)) {
5775
+ alert(`
5776
+ Please use one of this props or config,
5777
+ use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
5778
+ or ( lableShowMore / configStyles.FILE.label.showMore )
5779
+ `);
5780
+ }
5781
+ }, [lableShowMore, useLabelTooltip, configStyles.INPUT?.label?.useTooltip, configStyles.INPUT?.label?.showMore]);
5722
5782
  React.useEffect(() => {
5723
5783
  configStylesPromise.then(data => {
5724
- setClassProps(() => classnames__default["default"](className ?? data.INPUT.className, type === 'number' ? styles$8['inp-num'] : '', styles$8['input-wrap']));
5784
+ setClassProps(() => classnames__default["default"](className ?? data.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']));
5725
5785
  setConfigStyles(() => {
5726
5786
  return {
5727
5787
  ...data
@@ -5765,13 +5825,24 @@ const Input = ({
5765
5825
  lineHeight: labelLineHeight ?? configStyles.INPUT.label.lineHeight,
5766
5826
  marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom,
5767
5827
  fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
5768
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'nowrap' : 'normal',
5769
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'hidden' : 'visible',
5770
- textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'ellipsis' : ''
5828
+ whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.INPUT.label.showMore) && !showMore ? 'nowrap' : 'normal',
5829
+ overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.INPUT.label.showMore) && !showMore ? 'hidden' : 'visible',
5830
+ textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.INPUT.label.showMore) && !showMore ? 'ellipsis' : '',
5831
+ wordBreak: 'break-all'
5771
5832
  },
5772
5833
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
5773
5834
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseLeave : _ => _
5774
- }, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.INPUT.icon.required ? configStyles.INPUT.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), showLabelIcon && innerLabelIcon && innerLabelIconSide === 'right' ? /*#__PURE__*/React__default["default"].createElement("img", {
5835
+ }, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.INPUT.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
5836
+ className: styles$9['show-more-text'],
5837
+ style: {
5838
+ fontSize: labelSize ?? configStyles.INPUT.label.font.size,
5839
+ fontStyle: labelStyle ?? configStyles.INPUT.label.font.style,
5840
+ fontWeight: labelWeight ?? configStyles.INPUT.label.font.weight,
5841
+ fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
5842
+ color: showMoreTextColor ?? configStyles.INPUT.label.showMoreTextColor
5843
+ },
5844
+ onClick: handleChangeShowMore
5845
+ }, ' ', " ", labelShowLessText ?? configStyles.INPUT.label.showLessText) : ''), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.INPUT.icon.required ? configStyles.INPUT.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), showLabelIcon && innerLabelIcon && innerLabelIconSide === 'right' ? /*#__PURE__*/React__default["default"].createElement("img", {
5775
5846
  alt: "label icon",
5776
5847
  src: innerLabelIcon,
5777
5848
  style: {
@@ -5781,8 +5852,18 @@ const Input = ({
5781
5852
  marginLeft: labelIconMargin ?? configStyles.INPUT.label.iconMargin
5782
5853
  },
5783
5854
  onClick: labelAction ? () => labelAction() : _ => _
5784
- }) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
5785
- className: `${styles$8['input-content']}`,
5855
+ }) : '', handleCheckTextWidth() === 'more' && !showMore && (lableShowMore || configStyles.INPUT.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
5856
+ className: styles$9['show-more-text'],
5857
+ style: {
5858
+ fontSize: labelSize ?? configStyles.INPUT.label.font.size,
5859
+ fontStyle: labelStyle ?? configStyles.INPUT.label.font.style,
5860
+ fontWeight: labelWeight ?? configStyles.INPUT.label.font.weight,
5861
+ fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
5862
+ color: showMoreTextColor ?? configStyles.INPUT.label.showMoreTextColor
5863
+ },
5864
+ onClick: handleChangeShowMore
5865
+ }, labelShowMoreText ?? configStyles.INPUT.label.showMoreText) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
5866
+ className: `${styles$9['input-content']}`,
5786
5867
  style: {
5787
5868
  width: width ?? configStyles.INPUT.width,
5788
5869
  borderRadius: radius ?? configStyles.INPUT.radius,
@@ -6014,6 +6095,10 @@ Input.propTypes = {
6014
6095
  labelFontFamily: PropTypes__default["default"].string,
6015
6096
  labelIconMargin: PropTypes__default["default"].string,
6016
6097
  labelMarginBottom: PropTypes__default["default"].string,
6098
+ lableShowMore: PropTypes__default["default"].bool,
6099
+ labelShowLessText: PropTypes__default["default"].string,
6100
+ labelShowMoreText: PropTypes__default["default"].string,
6101
+ showMoreTextColor: PropTypes__default["default"].string,
6017
6102
  useLabelTooltip: PropTypes__default["default"].bool,
6018
6103
  labelTooltipColor: PropTypes__default["default"].string,
6019
6104
  labelTooltipPadding: PropTypes__default["default"].string,
@@ -6234,9 +6319,9 @@ const SvgArrow = ({
6234
6319
  fill: fillColor ? fillColor : '#3C393E'
6235
6320
  }));
6236
6321
 
6237
- var css_248z$8 = ".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}.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}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:fit-content;justify-content:center;max-height:30px;max-width:30px;min-height:14px;min-width:14px;width:fit-content}.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}}";
6238
- 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"};
6239
- styleInject(css_248z$8);
6322
+ 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}.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}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:fit-content;justify-content:center;max-height:30px;max-width:30px;min-height:14px;min-width:14px;width:fit-content}.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}.select-module_show-more-text__kY3zS{align-self:self-end;cursor:pointer}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
6323
+ 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","show-more-text":"select-module_show-more-text__kY3zS"};
6324
+ styleInject(css_248z$9);
6240
6325
 
6241
6326
  const Select = ({
6242
6327
  dots,
@@ -6268,6 +6353,10 @@ const Select = ({
6268
6353
  labelFontFamily,
6269
6354
  labelMarginBottom,
6270
6355
  labelTextTransform,
6356
+ lableShowMore,
6357
+ labelShowLessText,
6358
+ labelShowMoreText,
6359
+ showMoreTextColor,
6271
6360
  iconRequired,
6272
6361
  useLabelTooltip,
6273
6362
  labelTooltipColor,
@@ -6328,6 +6417,7 @@ const Select = ({
6328
6417
  const [opened, setOpened] = React.useState(false);
6329
6418
  const [removeID, setRemoveID] = React.useState('');
6330
6419
  const [isHover, setIsHover] = React.useState(false);
6420
+ const [showMore, setShowMore] = React.useState(false);
6331
6421
  const [classProps, setClassProps] = React.useState({});
6332
6422
  const [newSelected, setNewSelected] = React.useState([]);
6333
6423
  const [tooltipElem, setTooltipElem] = React.useState(null);
@@ -6469,6 +6559,21 @@ const Select = ({
6469
6559
  }
6470
6560
  setRemoveID(() => '');
6471
6561
  };
6562
+ const handleCheckTextWidth = () => {
6563
+ if (labelRef.current) {
6564
+ const rect = labelRef.current.getBoundingClientRect();
6565
+ const elementWidth = rect.width;
6566
+ const textWidth = getRenderedTextWidth(labelRef.current);
6567
+ if (textWidth > Math.ceil(elementWidth)) {
6568
+ return 'more';
6569
+ } else {
6570
+ return 'less';
6571
+ }
6572
+ }
6573
+ };
6574
+ const handleChangeShowMore = () => {
6575
+ setShowMore(() => !showMore);
6576
+ };
6472
6577
  React.useEffect(() => {
6473
6578
  if (opened) {
6474
6579
  const checkIfClickedOutside = e => {
@@ -6510,6 +6615,15 @@ const Select = ({
6510
6615
  React.useEffect(() => {
6511
6616
  className && setClassProps(() => classnames__default["default"](className ?? configStyles.SELECT.className));
6512
6617
  }, [className]);
6618
+ React.useEffect(() => {
6619
+ if ((useLabelTooltip || configStyles.SELECT?.label?.useTooltip) && (lableShowMore || configStyles.SELECT?.label?.showMore)) {
6620
+ alert(`
6621
+ Please use one of this props or config,
6622
+ use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
6623
+ or ( lableShowMore / configStyles.FILE.label.showMore )
6624
+ `);
6625
+ }
6626
+ }, [lableShowMore, useLabelTooltip, configStyles.SELECT?.label?.useTooltip, configStyles.SELECT?.label?.showMore]);
6513
6627
  React.useEffect(() => {
6514
6628
  configStylesPromise.then(data => {
6515
6629
  setClassProps(() => classnames__default["default"](className ?? data.SELECT.className));
@@ -6549,18 +6663,39 @@ const Select = ({
6549
6663
  lineHeight: labelLineHeight ?? configStyles.SELECT.label.lineHeight,
6550
6664
  marginBottom: labelMarginBottom ?? configStyles.SELECT.label.marginBottom,
6551
6665
  textTransform: labelTextTransform ?? configStyles.SELECT.label.textTransform,
6552
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'nowrap' : 'normal',
6553
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'hidden' : 'visible',
6554
- textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'ellipsis' : ''
6666
+ whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'nowrap' : 'normal',
6667
+ overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'hidden' : 'visible',
6668
+ textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'ellipsis' : '',
6669
+ wordBreak: 'break-all'
6555
6670
  },
6556
6671
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
6557
6672
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseLeave : _ => _
6558
- }, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.SELECT.icon.required ? configStyles.SELECT.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), /*#__PURE__*/React__default["default"].createElement("div", {
6673
+ }, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.SELECT.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
6674
+ className: styles$8['show-more-text'],
6675
+ style: {
6676
+ fontSize: labelFontSize ?? configStyles.SELECT.label.font.size,
6677
+ fontStyle: labelFontStyle ?? configStyles.SELECT.label.font.style,
6678
+ fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
6679
+ fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
6680
+ color: showMoreTextColor ?? configStyles.SELECT.label.showMoreTextColor
6681
+ },
6682
+ onClick: handleChangeShowMore
6683
+ }, ' ', " ", labelShowLessText ?? configStyles.SELECT.label.showLessText) : ''), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.SELECT.icon.required ? configStyles.SELECT.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), handleCheckTextWidth() === 'more' && !showMore && (lableShowMore || configStyles.SELECT.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
6684
+ className: styles$8['show-more-text'],
6685
+ style: {
6686
+ fontSize: labelFontSize ?? configStyles.SELECT.label.font.size,
6687
+ fontStyle: labelFontStyle ?? configStyles.SELECT.label.font.style,
6688
+ fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
6689
+ fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
6690
+ color: showMoreTextColor ?? configStyles.SELECT.label.showMoreTextColor
6691
+ },
6692
+ onClick: handleChangeShowMore
6693
+ }, labelShowMoreText ?? configStyles.SELECT.label.showMoreText) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
6559
6694
  ref: ref
6560
6695
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6561
- className: styles$7['select-content']
6696
+ className: styles$8['select-content']
6562
6697
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6563
- className: `${styles$7['select-content-top']}`,
6698
+ className: `${styles$8['select-content-top']}`,
6564
6699
  style: {
6565
6700
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
6566
6701
  minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
@@ -6597,18 +6732,18 @@ const Select = ({
6597
6732
  }
6598
6733
  }
6599
6734
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
6600
- className: `${styles$7['select-content-top-icon']}`,
6735
+ className: `${styles$8['select-content-top-icon']}`,
6601
6736
  style: {
6602
6737
  padding: lang ? '0px' : insidePagination ? '0px 5px' : '0 5px 0 20px'
6603
6738
  }
6604
6739
  }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default["default"].createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : configStyles.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
6605
- className: `${styles$7['close-icon']}`,
6740
+ className: `${styles$8['close-icon']}`,
6606
6741
  onClick: disabled ? _ => _ : handleClearSelect,
6607
6742
  style: {
6608
6743
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
6609
6744
  }
6610
6745
  }, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
6611
- className: `${styles$7['arrow-icon']}`,
6746
+ className: `${styles$8['arrow-icon']}`,
6612
6747
  style: {
6613
6748
  marginLeft: lang ? '0px' : '9px',
6614
6749
  transform: arrowNoRotate || configStyles.SELECT.arrowNoRotate ? 'rotate(0deg)' : opened ? 'rotate(180deg)' : 'rotate(0deg)'
@@ -6620,9 +6755,9 @@ const Select = ({
6620
6755
  backgroundColor: optionsBackgroundColor ?? configStyles.SELECT.options.colors.background,
6621
6756
  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.selected.minHeight.includes('rem') ? parseFloat(configStyles.SELECT.selected.minHeight.substr(0, configStyles.SELECT.selected.minHeight.length - 3)) + 0.6 + 'rem' : parseFloat(configStyles.SELECT.selected.minHeight.substr(0, configStyles.SELECT.selected.minHeight.length - 2)) + 6 + 'px'
6622
6757
  },
6623
- className: `${styles$7['select-content-bottom']}`
6758
+ className: `${styles$8['select-content-bottom']}`
6624
6759
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6625
- className: `${styles$7['select-content-bottom-inner']}`
6760
+ className: `${styles$8['select-content-bottom-inner']}`
6626
6761
  }, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
6627
6762
  return /*#__PURE__*/React__default["default"].createElement("div", {
6628
6763
  key: i,
@@ -6631,7 +6766,7 @@ const Select = ({
6631
6766
  onClick: disabled ? _ => _ : () => handleSelectItem(option),
6632
6767
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
6633
6768
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
6634
- className: `${styles$7['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$7['ellipsis'] : ''}`,
6769
+ className: `${styles$8['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$8['ellipsis'] : ''}`,
6635
6770
  style: {
6636
6771
  overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
6637
6772
  color: optionItemColor ?? configStyles.SELECT.options.item.color,
@@ -6696,6 +6831,10 @@ Select.propTypes = {
6696
6831
  labelFontFamily: PropTypes__default["default"].string,
6697
6832
  labelMarginBottom: PropTypes__default["default"].string,
6698
6833
  labelTextTransform: PropTypes__default["default"].string,
6834
+ lableShowMore: PropTypes__default["default"].bool,
6835
+ labelShowLessText: PropTypes__default["default"].string,
6836
+ labelShowMoreText: PropTypes__default["default"].string,
6837
+ showMoreTextColor: PropTypes__default["default"].string,
6699
6838
  cursor: PropTypes__default["default"].string,
6700
6839
  errorSize: PropTypes__default["default"].string,
6701
6840
  errorColor: PropTypes__default["default"].string,
@@ -6867,9 +7006,9 @@ const SvgToasterSuccess = ({
6867
7006
  fill: fillColor ? fillColor : '#0DA574'
6868
7007
  }));
6869
7008
 
6870
- var css_248z$7 = "#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_bounceInLeftMobile__CA2dc{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:0}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}@media(max-width:480px){.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeftMobile__CA2dc;animation-name:toaster-module_bounceInLeftMobile__CA2dc}}";
6871
- 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","bounceInLeftMobile":"toaster-module_bounceInLeftMobile__CA2dc"};
6872
- styleInject(css_248z$7);
7009
+ 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_bounceInLeftMobile__CA2dc{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:0}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}@media(max-width:480px){.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeftMobile__CA2dc;animation-name:toaster-module_bounceInLeftMobile__CA2dc}}";
7010
+ 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","bounceInLeftMobile":"toaster-module_bounceInLeftMobile__CA2dc"};
7011
+ styleInject(css_248z$8);
6873
7012
 
6874
7013
  const ToasterType = {
6875
7014
  info: 'info',
@@ -6936,8 +7075,8 @@ const Toast = ({
6936
7075
  ...propStyles
6937
7076
  },
6938
7077
  className: `
6939
- ${styles$6['notify-block']}
6940
- ${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'] : ''}
7078
+ ${styles$7['notify-block']}
7079
+ ${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'] : ''}
6941
7080
  `
6942
7081
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6943
7082
  style: {
@@ -7004,7 +7143,7 @@ const Toast = ({
7004
7143
  fontFamily: titleStyles.font.family,
7005
7144
  ...titleStyles.props
7006
7145
  },
7007
- className: styles$6['notify-title']
7146
+ className: styles$7['notify-title']
7008
7147
  }, title), description && /*#__PURE__*/React__default["default"].createElement("span", {
7009
7148
  style: {
7010
7149
  color: descriptionStyles.color,
@@ -7015,7 +7154,7 @@ const Toast = ({
7015
7154
  fontFamily: descriptionStyles.font.family,
7016
7155
  ...descriptionStyles.props
7017
7156
  },
7018
- className: styles$6['notify-desc']
7157
+ className: styles$7['notify-desc']
7019
7158
  }, description)), /*#__PURE__*/React__default["default"].createElement("div", {
7020
7159
  onClick: () => handleCloseToaster(ref),
7021
7160
  style: {
@@ -7137,17 +7276,17 @@ const createToast = ({
7137
7276
  }, error => {
7138
7277
  console.error(error);
7139
7278
  });
7140
- if (!document.getElementById(styles$6[position]) || document.getElementById(styles$6[position]) == null) {
7279
+ if (!document.getElementById(styles$7[position]) || document.getElementById(styles$7[position]) == null) {
7141
7280
  toastParentBlock = document.createElement('div');
7142
7281
  toastParentBlock.style.position = 'fixed';
7143
7282
  toastParentBlock.style.display = 'flex';
7144
7283
  toastParentBlock.style.zIndex = 999999999999;
7145
7284
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
7146
- toastParentBlock.setAttribute('id', styles$6[position]);
7285
+ toastParentBlock.setAttribute('id', styles$7[position]);
7147
7286
  toastParentBlock.appendChild(toastBlock);
7148
7287
  toastify.appendChild(toastParentBlock);
7149
7288
  } else {
7150
- document.getElementById(styles$6[position]).appendChild(toastBlock);
7289
+ document.getElementById(styles$7[position]).appendChild(toastBlock);
7151
7290
  }
7152
7291
  };
7153
7292
  const toast = {
@@ -7269,9 +7408,9 @@ const SvgTooltip = ({
7269
7408
  fill: fillColor ? fillColor : '#D1D1D1'
7270
7409
  }));
7271
7410
 
7272
- var css_248z$6 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{box-sizing:border-box;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}";
7273
- 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"};
7274
- styleInject(css_248z$6);
7411
+ var css_248z$7 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{box-sizing:border-box;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}";
7412
+ 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"};
7413
+ styleInject(css_248z$7);
7275
7414
 
7276
7415
  const TooltipDirections = {
7277
7416
  TOP: 'top',
@@ -7359,7 +7498,7 @@ const Tooltip = ({
7359
7498
  }, [showTooltip]);
7360
7499
  React.useEffect(() => {
7361
7500
  configStylesPromise.then(data => {
7362
- setClassProps(() => classnames__default["default"](styles$5['tooltip-block'], className ?? data.TOOLTIP.className));
7501
+ setClassProps(() => classnames__default["default"](styles$6['tooltip-block'], className ?? data.TOOLTIP.className));
7363
7502
  setConfigStyles(() => {
7364
7503
  return {
7365
7504
  ...data
@@ -7381,7 +7520,7 @@ const Tooltip = ({
7381
7520
  onClick: e => e.stopPropagation()
7382
7521
  }, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
7383
7522
  ref: tooltipRef,
7384
- className: `${styles$5['tooltip']}`,
7523
+ className: `${styles$6['tooltip']}`,
7385
7524
  style: {
7386
7525
  width: tooltipWidth ?? configStyles.TOOLTIP.width,
7387
7526
  borderRadius: tooltipRadius ?? configStyles.TOOLTIP.radius,
@@ -7390,9 +7529,9 @@ const Tooltip = ({
7390
7529
  left: direction === 'top' || direction === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : direction === 'left' || direction === 'left-top' || direction === 'left-bottom' ? `-${checkTooltipWidth + 7}px` : direction === 'top-left' || direction === 'bottom-left' ? `0px` : direction === 'top-right' || direction === 'bottom-right' ? `-${checkTooltipWidth - tooltipIconParentWidth}px` : direction === 'right' || direction === 'right-top' || direction === 'right-bottom' ? 'calc(100% + 7px)' : '0px'
7391
7530
  }
7392
7531
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7393
- className: `${styles$5['tooltip-rel']}`
7532
+ className: `${styles$6['tooltip-rel']}`
7394
7533
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7395
- className: `${styles$5['tooltip-decor']}`,
7534
+ className: `${styles$6['tooltip-decor']}`,
7396
7535
  style: {
7397
7536
  backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
7398
7537
  left: direction === 'top' || direction === 'bottom' ? 'calc(50% - 5px)' : direction === 'right' || direction === 'right-top' || direction === 'right-bottom' ? '-15px' : direction === 'left' || direction === 'left-top' || direction === 'left-bottom' ? 'calc(100% + 5px)' : direction === 'top-left' || direction === 'bottom-left' ? `${tooltipIconParentWidth / 2 - tooltipIconBlockWidth}px` : direction === 'top-right' || direction === 'bottom-right' ? `calc(100% - ${tooltipIconParentWidth / 2 - tooltipIconBlockWidth / 2}px` : '0px',
@@ -7475,9 +7614,9 @@ const SvgCaptchaArrowDown = ({
7475
7614
  fill: fillColor ? fillColor : '#00236A'
7476
7615
  }));
7477
7616
 
7478
- var css_248z$5 = ".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}";
7479
- 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"};
7480
- styleInject(css_248z$5);
7617
+ 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}";
7618
+ 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"};
7619
+ styleInject(css_248z$6);
7481
7620
 
7482
7621
  const Captcha = ({
7483
7622
  color,
@@ -7565,7 +7704,7 @@ const Captcha = ({
7565
7704
  alignItems: 'center',
7566
7705
  zIndex: 1
7567
7706
  },
7568
- className: styles$4['start-point']
7707
+ className: styles$5['start-point']
7569
7708
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7570
7709
  style: {
7571
7710
  position: 'absolute',
@@ -7591,8 +7730,8 @@ const Captcha = ({
7591
7730
  backgroundColor: 'transparent'
7592
7731
  },
7593
7732
  className: `
7594
- ${styles$4['range']}
7595
- ${+rangeProgress === rangeNumber ? styles$4['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$4['range-error'] : styles$4['range-default']}
7733
+ ${styles$5['range']}
7734
+ ${+rangeProgress === rangeNumber ? styles$5['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$5['range-error'] : styles$5['range-default']}
7596
7735
  `,
7597
7736
  onInput: handleRange
7598
7737
  }), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -7622,9 +7761,9 @@ Captcha.propTypes = {
7622
7761
  getRange: PropTypes__default["default"].func.isRequired
7623
7762
  };
7624
7763
 
7625
- var css_248z$4 = ".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}";
7626
- 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"};
7627
- styleInject(css_248z$4);
7764
+ 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}";
7765
+ 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"};
7766
+ styleInject(css_248z$5);
7628
7767
 
7629
7768
  const Stepper = ({
7630
7769
  stepLength,
@@ -7634,11 +7773,11 @@ const Stepper = ({
7634
7773
  const [classProps, setClassProps] = React.useState({});
7635
7774
  const [configStyles, setConfigStyles] = React.useState({});
7636
7775
  React.useEffect(() => {
7637
- className && setClassProps(() => classnames__default["default"](className ?? configStyles.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`));
7776
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.STEPPER.className, `${styles$4['stepper-container']} stepper-container-rem`));
7638
7777
  }, [className]);
7639
7778
  React.useEffect(() => {
7640
7779
  configStylesPromise.then(data => {
7641
- setClassProps(() => classnames__default["default"](className ?? data.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`));
7780
+ setClassProps(() => classnames__default["default"](className ?? data.STEPPER.className, `${styles$4['stepper-container']} stepper-container-rem`));
7642
7781
  setConfigStyles(() => {
7643
7782
  return {
7644
7783
  ...data
@@ -7654,10 +7793,10 @@ const Stepper = ({
7654
7793
  let steppers = [];
7655
7794
  for (let step = 1; step <= stepLength; step++) {
7656
7795
  steppers.push(/*#__PURE__*/React__default["default"].createElement("div", {
7657
- className: classnames__default["default"](`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
7796
+ className: classnames__default["default"](`${step <= activeSteps ? styles$4.activeRing : styles$4.bigRing}`),
7658
7797
  key: step
7659
7798
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7660
- className: classnames__default["default"](`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
7799
+ className: classnames__default["default"](`${step <= activeSteps ? styles$4.smallActiveRing : styles$4.smallRing}`)
7661
7800
  }, step <= activeSteps ? step : '')));
7662
7801
  }
7663
7802
  return steppers;
@@ -7787,6 +7926,10 @@ Checkbox.propTypes = {
7787
7926
  data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].arrayOf(PropTypes__default["default"].object), PropTypes__default["default"].object])
7788
7927
  };
7789
7928
 
7929
+ 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}.textarea-module_show-more-text__xQa-I{align-self:self-end;cursor:pointer}";
7930
+ var styles$3 = {"show-more-text":"textarea-module_show-more-text__xQa-I"};
7931
+ styleInject(css_248z$4);
7932
+
7790
7933
  const PositionSide = {
7791
7934
  TOP: 'top',
7792
7935
  BOTTOM: 'bottom'
@@ -7829,10 +7972,15 @@ const Textarea = ({
7829
7972
  label,
7830
7973
  labelSize,
7831
7974
  labelColor,
7975
+ labelStyle,
7832
7976
  labelWeight,
7833
7977
  labelDisplay,
7834
7978
  labelFontFamily,
7835
7979
  labelMarginBottom,
7980
+ lableShowMore,
7981
+ labelShowLessText,
7982
+ labelShowMoreText,
7983
+ showMoreTextColor,
7836
7984
  iconRequired,
7837
7985
  useLabelTooltip,
7838
7986
  labelTooltipColor,
@@ -7851,6 +7999,7 @@ const Textarea = ({
7851
7999
  const [removeID, setRemoveID] = React.useState('');
7852
8000
  const [isHover, setIsHover] = React.useState(false);
7853
8001
  const [isFocus, setIsFocus] = React.useState(false);
8002
+ const [showMore, setShowMore] = React.useState(false);
7854
8003
  const [innerValue, setInnerValue] = React.useState('');
7855
8004
  const [classProps, setClassProps] = React.useState({});
7856
8005
  const [tooltipElem, setTooltipElem] = React.useState(null);
@@ -7962,6 +8111,21 @@ const Textarea = ({
7962
8111
  }
7963
8112
  setRemoveID(() => '');
7964
8113
  };
8114
+ const handleCheckTextWidth = () => {
8115
+ if (labelRef.current) {
8116
+ const rect = labelRef.current.getBoundingClientRect();
8117
+ const elementWidth = rect.width;
8118
+ const textWidth = getRenderedTextWidth(labelRef.current);
8119
+ if (textWidth > Math.ceil(elementWidth)) {
8120
+ return 'more';
8121
+ } else {
8122
+ return 'less';
8123
+ }
8124
+ }
8125
+ };
8126
+ const handleChangeShowMore = () => {
8127
+ setShowMore(() => !showMore);
8128
+ };
7965
8129
  React.useEffect(() => {
7966
8130
  if (value === undefined) {
7967
8131
  alert('Please add value prop on Textarea component');
@@ -7976,6 +8140,15 @@ const Textarea = ({
7976
8140
  React.useEffect(() => {
7977
8141
  className && setClassProps(() => classnames__default["default"](className ?? configStyles.TEXTAREA.className));
7978
8142
  }, [className]);
8143
+ React.useEffect(() => {
8144
+ if ((useLabelTooltip || configStyles.TEXTAREA?.label?.useTooltip) && (lableShowMore || configStyles.TEXTAREA?.label?.showMore)) {
8145
+ alert(`
8146
+ Please use one of this props or config,
8147
+ use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
8148
+ or ( lableShowMore / configStyles.FILE.label.showMore )
8149
+ `);
8150
+ }
8151
+ }, [lableShowMore, useLabelTooltip, configStyles.TEXTAREA?.label?.useTooltip, configStyles.TEXTAREA?.label?.showMore]);
7979
8152
  React.useEffect(() => {
7980
8153
  configStylesPromise.then(data => {
7981
8154
  setClassProps(() => classnames__default["default"](className ?? data.TEXTAREA.className));
@@ -8017,13 +8190,34 @@ const Textarea = ({
8017
8190
  ref: labelRef,
8018
8191
  style: {
8019
8192
  display: labelDisplay ?? configStyles.TEXTAREA.label.display,
8020
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'nowrap' : 'normal',
8021
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'hidden' : 'visible',
8022
- textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'ellipsis' : ''
8193
+ whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'nowrap' : 'normal',
8194
+ overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'hidden' : 'visible',
8195
+ textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'ellipsis' : '',
8196
+ wordBreak: 'break-all'
8023
8197
  },
8024
8198
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseEnter : _ => _,
8025
8199
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseLeave : _ => _
8026
- }, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.TEXTAREA.icon.required ? configStyles.TEXTAREA.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default["default"].createElement("span", {
8200
+ }, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.TEXTAREA.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
8201
+ className: styles$3['show-more-text'],
8202
+ style: {
8203
+ fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
8204
+ fontStyle: labelStyle ?? configStyles.TEXTAREA.label.font.style,
8205
+ fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
8206
+ fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family,
8207
+ color: showMoreTextColor ?? configStyles.TEXTAREA.label.showMoreTextColor
8208
+ },
8209
+ onClick: handleChangeShowMore
8210
+ }, ' ', " ", labelShowLessText ?? configStyles.TEXTAREA.label.showLessText) : ''), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.TEXTAREA.icon.required ? configStyles.TEXTAREA.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), handleCheckTextWidth() === 'more' && !showMore && (lableShowMore || configStyles.TEXTAREA.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
8211
+ className: styles$3['show-more-text'],
8212
+ style: {
8213
+ fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
8214
+ fontStyle: labelStyle ?? configStyles.TEXTAREA.label.font.style,
8215
+ fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
8216
+ fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family,
8217
+ color: showMoreTextColor ?? configStyles.TEXTAREA.label.showMoreTextColor
8218
+ },
8219
+ onClick: handleChangeShowMore
8220
+ }, labelShowMoreText ?? configStyles.TEXTAREA.label.showMoreText) : ''), showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default["default"].createElement("span", {
8027
8221
  style: {
8028
8222
  width: 'fit-content',
8029
8223
  flexShrink: 0
@@ -8126,11 +8320,16 @@ Textarea.propTypes = {
8126
8320
  borderHoverColor: PropTypes__default["default"].string,
8127
8321
  label: PropTypes__default["default"].string,
8128
8322
  labelSize: PropTypes__default["default"].string,
8323
+ labelStyle: PropTypes__default["default"].string,
8129
8324
  labelColor: PropTypes__default["default"].string,
8130
8325
  labelWeight: PropTypes__default["default"].string,
8131
8326
  labelDisplay: PropTypes__default["default"].string,
8132
8327
  labelFontFamily: PropTypes__default["default"].string,
8133
8328
  labelMarginBottom: PropTypes__default["default"].string,
8329
+ lableShowMore: PropTypes__default["default"].bool,
8330
+ labelShowLessText: PropTypes__default["default"].string,
8331
+ labelShowMoreText: PropTypes__default["default"].string,
8332
+ showMoreTextColor: PropTypes__default["default"].string,
8134
8333
  iconRequired: PropTypes__default["default"].element,
8135
8334
  useLabelTooltip: PropTypes__default["default"].bool,
8136
8335
  labelTooltipColor: PropTypes__default["default"].string,
@@ -8527,8 +8726,8 @@ const Swipe = ({
8527
8726
  }, child));
8528
8727
  };
8529
8728
 
8530
- var css_248z$2 = "body.swipe-module_tui-no-srcoll-class__YS9cI,html.swipe-module_tui-no-srcoll-class__YS9cI{height:100%;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}#swipe-module_tui-swipe-modal-id-for-no-scroll-area__vRP59{touch-action:auto}.swipe-module_to-top__lrHfG{bottom:0}.swipe-module_to-left__kgLsE{right:0}.swipe-module_to-right__Xu3Ul{left:0}.swipe-module_to-bottom__94M7H{top:0}.swipe-module_visible__---aC{visibility:visible!important}.swipe-module_swipe-block__Yv1B3{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.swipe-module_move-top__m6t2O{-webkit-animation-name:swipe-module_slideTop__-Bbap;animation-name:swipe-module_slideTop__-Bbap}.swipe-module_move-left__4TDLs{-webkit-animation-name:swipe-module_slideLeft__i24cS;animation-name:swipe-module_slideLeft__i24cS}.swipe-module_move-right__FrYo0{-webkit-animation-name:swipe-module_slideRight__swgSY;animation-name:swipe-module_slideRight__swgSY}.swipe-module_move-bottom__eYDx6{-webkit-animation-name:swipe-module_slideBottom__TBoZo;animation-name:swipe-module_slideBottom__TBoZo}.swipe-module_back-top__gJZv0{-webkit-animation-name:swipe-module_backTop__32loc;animation-name:swipe-module_backTop__32loc}.swipe-module_back-left__Wd3aY{-webkit-animation-name:swipe-module_backLeft__q89ub;animation-name:swipe-module_backLeft__q89ub}.swipe-module_back-right__Lgwz7{-webkit-animation-name:swipe-module_backRight__8t5Dm;animation-name:swipe-module_backRight__8t5Dm}.swipe-module_back-bottom__JRN-7{-webkit-animation-name:swipe-module_backBottom__lwR8B;animation-name:swipe-module_backBottom__lwR8B}@keyframes swipe-module_slideTop__-Bbap{0%{bottom:-100%}to{bottom:0}}@keyframes swipe-module_slideLeft__i24cS{0%{right:-100%}to{right:0}}@keyframes swipe-module_slideRight__swgSY{0%{left:-100%}to{left:0}}@keyframes swipe-module_slideBottom__TBoZo{0%{top:-100%}to{top:0}}@keyframes swipe-module_backTop__32loc{0%{bottom:0}to{bottom:-100%}}@keyframes swipe-module_backLeft__q89ub{0%{right:0}to{right:-100%}}@keyframes swipe-module_backRight__8t5Dm{0%{left:0}to{left:-100%}}@keyframes swipe-module_backBottom__lwR8B{0%{top:0}to{top:-100%}}";
8531
- var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","tui-swipe-modal-id-for-no-scroll-area":"swipe-module_tui-swipe-modal-id-for-no-scroll-area__vRP59","to-top":"swipe-module_to-top__lrHfG","to-left":"swipe-module_to-left__kgLsE","to-right":"swipe-module_to-right__Xu3Ul","to-bottom":"swipe-module_to-bottom__94M7H","visible":"swipe-module_visible__---aC","swipe-block":"swipe-module_swipe-block__Yv1B3","move-top":"swipe-module_move-top__m6t2O","slideTop":"swipe-module_slideTop__-Bbap","move-left":"swipe-module_move-left__4TDLs","slideLeft":"swipe-module_slideLeft__i24cS","move-right":"swipe-module_move-right__FrYo0","slideRight":"swipe-module_slideRight__swgSY","move-bottom":"swipe-module_move-bottom__eYDx6","slideBottom":"swipe-module_slideBottom__TBoZo","back-top":"swipe-module_back-top__gJZv0","backTop":"swipe-module_backTop__32loc","back-left":"swipe-module_back-left__Wd3aY","backLeft":"swipe-module_backLeft__q89ub","back-right":"swipe-module_back-right__Lgwz7","backRight":"swipe-module_backRight__8t5Dm","back-bottom":"swipe-module_back-bottom__JRN-7","backBottom":"swipe-module_backBottom__lwR8B"};
8729
+ var css_248z$2 = "body.swipe-module_tui-no-srcoll-class__YS9cI,html.swipe-module_tui-no-srcoll-class__YS9cI{height:100%;overflow:hidden!important;overscroll-behavior:none!important;touch-action:none}#swipe-module_swipable__MWZC4{touch-action:auto}.swipe-module_to-top__lrHfG{bottom:0}.swipe-module_to-left__kgLsE{right:0}.swipe-module_to-right__Xu3Ul{left:0}.swipe-module_to-bottom__94M7H{top:0}.swipe-module_visible__---aC{visibility:visible!important}.swipe-module_swipe-block__Yv1B3{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.swipe-module_move-top__m6t2O{-webkit-animation-name:swipe-module_slideTop__-Bbap;animation-name:swipe-module_slideTop__-Bbap}.swipe-module_move-left__4TDLs{-webkit-animation-name:swipe-module_slideLeft__i24cS;animation-name:swipe-module_slideLeft__i24cS}.swipe-module_move-right__FrYo0{-webkit-animation-name:swipe-module_slideRight__swgSY;animation-name:swipe-module_slideRight__swgSY}.swipe-module_move-bottom__eYDx6{-webkit-animation-name:swipe-module_slideBottom__TBoZo;animation-name:swipe-module_slideBottom__TBoZo}.swipe-module_back-top__gJZv0{-webkit-animation-name:swipe-module_backTop__32loc;animation-name:swipe-module_backTop__32loc}.swipe-module_back-left__Wd3aY{-webkit-animation-name:swipe-module_backLeft__q89ub;animation-name:swipe-module_backLeft__q89ub}.swipe-module_back-right__Lgwz7{-webkit-animation-name:swipe-module_backRight__8t5Dm;animation-name:swipe-module_backRight__8t5Dm}.swipe-module_back-bottom__JRN-7{-webkit-animation-name:swipe-module_backBottom__lwR8B;animation-name:swipe-module_backBottom__lwR8B}@keyframes swipe-module_slideTop__-Bbap{0%{bottom:-100%}to{bottom:0}}@keyframes swipe-module_slideLeft__i24cS{0%{right:-100%}to{right:0}}@keyframes swipe-module_slideRight__swgSY{0%{left:-100%}to{left:0}}@keyframes swipe-module_slideBottom__TBoZo{0%{top:-100%}to{top:0}}@keyframes swipe-module_backTop__32loc{0%{bottom:0}to{bottom:-100%}}@keyframes swipe-module_backLeft__q89ub{0%{right:0}to{right:-100%}}@keyframes swipe-module_backRight__8t5Dm{0%{left:0}to{left:-100%}}@keyframes swipe-module_backBottom__lwR8B{0%{top:0}to{top:-100%}}";
8730
+ var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","swipable":"swipe-module_swipable__MWZC4","to-top":"swipe-module_to-top__lrHfG","to-left":"swipe-module_to-left__kgLsE","to-right":"swipe-module_to-right__Xu3Ul","to-bottom":"swipe-module_to-bottom__94M7H","visible":"swipe-module_visible__---aC","swipe-block":"swipe-module_swipe-block__Yv1B3","move-top":"swipe-module_move-top__m6t2O","slideTop":"swipe-module_slideTop__-Bbap","move-left":"swipe-module_move-left__4TDLs","slideLeft":"swipe-module_slideLeft__i24cS","move-right":"swipe-module_move-right__FrYo0","slideRight":"swipe-module_slideRight__swgSY","move-bottom":"swipe-module_move-bottom__eYDx6","slideBottom":"swipe-module_slideBottom__TBoZo","back-top":"swipe-module_back-top__gJZv0","backTop":"swipe-module_backTop__32loc","back-left":"swipe-module_back-left__Wd3aY","backLeft":"swipe-module_backLeft__q89ub","back-right":"swipe-module_back-right__Lgwz7","backRight":"swipe-module_backRight__8t5Dm","back-bottom":"swipe-module_back-bottom__JRN-7","backBottom":"swipe-module_backBottom__lwR8B"};
8532
8731
  styleInject(css_248z$2);
8533
8732
 
8534
8733
  // import React, { useEffect, useRef } from 'react';
@@ -8632,7 +8831,7 @@ const handleNavigationChange = () => {
8632
8831
  })(window.history);
8633
8832
  const style = document.createElement('style');
8634
8833
  function ResetTouchRemove(e) {
8635
- if (e.target.closest('#tui-swipe-modal-id-for-no-scroll-area')) return;
8834
+ if (e.target.closest('#swipable')) return;
8636
8835
  e.preventDefault();
8637
8836
  }
8638
8837
  const swipe = {
@@ -9298,8 +9497,8 @@ Pagination.propTypes = {
9298
9497
  borderRadius: PropTypes__default["default"].string
9299
9498
  };
9300
9499
 
9301
- var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}";
9302
- var styles = {"auto-complete":"autocomplete-module_auto-complete__oUOv9"};
9500
+ var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}.autocomplete-module_show-more-text__1FXFu{align-self:self-end;cursor:pointer}";
9501
+ var styles = {"auto-complete":"autocomplete-module_auto-complete__oUOv9","show-more-text":"autocomplete-module_show-more-text__1FXFu"};
9303
9502
  styleInject(css_248z);
9304
9503
 
9305
9504
  const Autocomplete = ({
@@ -9381,6 +9580,10 @@ const Autocomplete = ({
9381
9580
  labelFontFamily,
9382
9581
  labelMarginBottom,
9383
9582
  labelTextTransform,
9583
+ lableShowMore,
9584
+ labelShowLessText,
9585
+ labelShowMoreText,
9586
+ showMoreTextColor,
9384
9587
  iconRequired,
9385
9588
  useLabelTooltip,
9386
9589
  labelTooltipColor,
@@ -9406,6 +9609,7 @@ const Autocomplete = ({
9406
9609
  const [removeID, setRemoveID] = React.useState('');
9407
9610
  const [isHover, setIsHover] = React.useState(false);
9408
9611
  const [isFocus, setIsFocus] = React.useState(false);
9612
+ const [showMore, setShowMore] = React.useState(false);
9409
9613
  const [innerError, setInnerError] = React.useState('');
9410
9614
  const [innerValue, setInnerValue] = React.useState('');
9411
9615
  const [classProps, setClassProps] = React.useState({});
@@ -9598,6 +9802,21 @@ const Autocomplete = ({
9598
9802
  }
9599
9803
  setRemoveID(() => '');
9600
9804
  };
9805
+ const handleCheckTextWidth = () => {
9806
+ if (labelRef.current) {
9807
+ const rect = labelRef.current.getBoundingClientRect();
9808
+ const elementWidth = rect.width;
9809
+ const textWidth = getRenderedTextWidth(labelRef.current);
9810
+ if (textWidth > Math.ceil(elementWidth)) {
9811
+ return 'more';
9812
+ } else {
9813
+ return 'less';
9814
+ }
9815
+ }
9816
+ };
9817
+ const handleChangeShowMore = () => {
9818
+ setShowMore(() => !showMore);
9819
+ };
9601
9820
  React.useEffect(() => {
9602
9821
  if (options === undefined) {
9603
9822
  alert('Please add options prop');
@@ -9632,6 +9851,15 @@ const Autocomplete = ({
9632
9851
  React.useEffect(() => {
9633
9852
  className && setClassProps(() => classnames__default["default"](className ?? configStyles.AUTOCOMPLETE.className, styles['auto-complete']));
9634
9853
  }, [className]);
9854
+ React.useEffect(() => {
9855
+ if ((useLabelTooltip || configStyles.AUTOCOMPLETE?.label?.useTooltip) && (lableShowMore || configStyles.AUTOCOMPLETE?.label?.showMore)) {
9856
+ alert(`
9857
+ Please use one of this props or config,
9858
+ use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
9859
+ or ( lableShowMore / configStyles.FILE.label.showMore )
9860
+ `);
9861
+ }
9862
+ }, [lableShowMore, useLabelTooltip, configStyles.AUTOCOMPLETE?.label?.useTooltip, configStyles.AUTOCOMPLETE?.label?.showMore]);
9635
9863
  React.useEffect(() => {
9636
9864
  configStylesPromise.then(data => {
9637
9865
  setClassProps(() => classnames__default["default"](className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
@@ -9670,13 +9898,34 @@ const Autocomplete = ({
9670
9898
  lineHeight: labelLineHeight ?? configStyles.AUTOCOMPLETE.label.lineHeight,
9671
9899
  marginBottom: labelMarginBottom ?? configStyles.AUTOCOMPLETE.label.marginBottom,
9672
9900
  textTransform: labelTextTransform ?? configStyles.AUTOCOMPLETE.label.textTransform,
9673
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'nowrap' : 'normal',
9674
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'hidden' : 'visible',
9675
- textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'ellipsis' : ''
9901
+ whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'nowrap' : 'normal',
9902
+ overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'hidden' : 'visible',
9903
+ textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'ellipsis' : '',
9904
+ wordBreak: 'break-all'
9676
9905
  },
9677
9906
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
9678
9907
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseLeave : _ => _
9679
- }, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), /*#__PURE__*/React__default["default"].createElement("div", {
9908
+ }, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.AUTOCOMPLETE.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
9909
+ className: styles['show-more-text'],
9910
+ style: {
9911
+ fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
9912
+ fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
9913
+ fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
9914
+ fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
9915
+ color: showMoreTextColor ?? configStyles.AUTOCOMPLETE.label.showMoreTextColor
9916
+ },
9917
+ onClick: handleChangeShowMore
9918
+ }, ' ', " ", labelShowLessText ?? configStyles.AUTOCOMPLETE.label.showLessText) : ''), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), handleCheckTextWidth() === 'more' && !showMore && (lableShowMore || configStyles.AUTOCOMPLETE.label.showMore) ? /*#__PURE__*/React__default["default"].createElement("span", {
9919
+ className: styles['show-more-text'],
9920
+ style: {
9921
+ fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
9922
+ fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
9923
+ fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
9924
+ fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
9925
+ color: showMoreTextColor ?? configStyles.AUTOCOMPLETE.label.showMoreTextColor
9926
+ },
9927
+ onClick: handleChangeShowMore
9928
+ }, labelShowMoreText ?? configStyles.AUTOCOMPLETE.label.showMoreText) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
9680
9929
  style: {
9681
9930
  display: contentDisplay ?? configStyles.AUTOCOMPLETE.parent.display,
9682
9931
  position: contentPosition ?? configStyles.AUTOCOMPLETE.parent.position,
@@ -9821,7 +10070,11 @@ Autocomplete.propTypes = {
9821
10070
  labelTooltipFontWeight: PropTypes__default["default"].string,
9822
10071
  labelTooltipBorderRadius: PropTypes__default["default"].string,
9823
10072
  labelTooltipBackgroundColor: PropTypes__default["default"].string,
9824
- backgroundDisableColor: PropTypes__default["default"].string
10073
+ backgroundDisableColor: PropTypes__default["default"].string,
10074
+ lableShowMore: PropTypes__default["default"].bool,
10075
+ labelShowLessText: PropTypes__default["default"].string,
10076
+ labelShowMoreText: PropTypes__default["default"].string,
10077
+ showMoreTextColor: PropTypes__default["default"].string
9825
10078
  };
9826
10079
 
9827
10080
  exports.Accordion = Accordion;