@xaypay/tui 0.2.32 → 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',
@@ -3102,9 +3131,9 @@ SingleCheckbox.propTypes = {
3102
3131
  ignoreDisabledForChecked: PropTypes__default["default"].bool
3103
3132
  };
3104
3133
 
3105
- 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%}";
3106
- 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"};
3107
- 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);
3108
3137
 
3109
3138
  /* eslint-disable no-prototype-builtins */
3110
3139
  const TH = ({
@@ -3146,7 +3175,7 @@ const TH = ({
3146
3175
  borderColor: hideBorder ? 'transparent' : '#eeeeee'
3147
3176
  },
3148
3177
  onClick: handleHeaderItemClick,
3149
- className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$a['sorting-arrows'] : '' : ''}`
3178
+ className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$b['sorting-arrows'] : '' : ''}`
3150
3179
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3151
3180
  style: {
3152
3181
  display: 'flex',
@@ -3307,7 +3336,7 @@ const TD = ({
3307
3336
  },
3308
3337
  id: newItem.id,
3309
3338
  type: newItem.type,
3310
- className: styles$a['td-span'],
3339
+ className: styles$b['td-span'],
3311
3340
  key: `${newItem.id}_${newIndex}`,
3312
3341
  onClick: e => handleCheckActions(e, newItem, 'type', newIndex),
3313
3342
  onMouseEnter: () => handleMouseEnter(newItem, newIndex),
@@ -3331,7 +3360,7 @@ const TD = ({
3331
3360
  },
3332
3361
  id: iT.id ? iT.id : '',
3333
3362
  type: iT.type ? iT.type : '',
3334
- className: styles$a['td-span'],
3363
+ className: styles$b['td-span'],
3335
3364
  key: `${iT.id || iT.content}_${iN}`,
3336
3365
  onMouseEnter: () => handleMouseEnter(iT, iN),
3337
3366
  onMouseLeave: () => handleMouseLeave(),
@@ -3357,7 +3386,7 @@ const TD = ({
3357
3386
  cursor: 'pointer'
3358
3387
  },
3359
3388
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
3360
- className: styles$a['td-span']
3389
+ className: styles$b['td-span']
3361
3390
  }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'draggableIcon') && /*#__PURE__*/React__default["default"].createElement("div", {
3362
3391
  draggable: true,
3363
3392
  style: {
@@ -3426,7 +3455,7 @@ const TD = ({
3426
3455
  }, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
3427
3456
  return /*#__PURE__*/React__default["default"].createElement("span", {
3428
3457
  key: `${optionItem.content}_${optionIndex}`,
3429
- className: styles$a['dots-option-item'],
3458
+ className: styles$b['dots-option-item'],
3430
3459
  style: {
3431
3460
  color: '#3C393E',
3432
3461
  fontSize: '14px',
@@ -3468,7 +3497,7 @@ const TD = ({
3468
3497
  }, innerItem.content.map((contInnerItem, contInnerIndex) => {
3469
3498
  return /*#__PURE__*/React__default["default"].createElement("p", {
3470
3499
  key: `${contInnerItem}_${contInnerIndex}`,
3471
- className: styles$a['list-text'],
3500
+ className: styles$b['list-text'],
3472
3501
  style: {
3473
3502
  maxWidth: '100%',
3474
3503
  color: openListColor,
@@ -3485,7 +3514,7 @@ const TD = ({
3485
3514
  } else {
3486
3515
  return /*#__PURE__*/React__default["default"].createElement("p", {
3487
3516
  key: `${innerItem}_${innerItemIndex}`,
3488
- className: styles$a['list-text'],
3517
+ className: styles$b['list-text'],
3489
3518
  style: {
3490
3519
  maxWidth: '100%',
3491
3520
  color: openListColor,
@@ -3506,7 +3535,7 @@ const TD = ({
3506
3535
  cursor: 'pointer'
3507
3536
  },
3508
3537
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
3509
- className: styles$a['td-span']
3538
+ className: styles$b['td-span']
3510
3539
  }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
3511
3540
  };
3512
3541
 
@@ -4491,7 +4520,7 @@ const Table = ({
4491
4520
  borderRightColor: innerIndex === Object.values(draggedItem).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor
4492
4521
  });
4493
4522
  })))), !body.length && /*#__PURE__*/React__default["default"].createElement("div", {
4494
- className: styles$a['no-tabel-data']
4523
+ className: styles$b['no-tabel-data']
4495
4524
  }, /*#__PURE__*/React__default["default"].createElement("p", null, "\u054F\u057E\u0575\u0561\u056C\u0576\u0565\u0580 \u0579\u056F\u0561\u0576")));
4496
4525
  };
4497
4526
  Table.propTypes = {
@@ -4542,9 +4571,9 @@ Table.propTypes = {
4542
4571
  clickableRowColumnTd: PropTypes__default["default"].bool
4543
4572
  };
4544
4573
 
4545
- 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)}}";
4546
- 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"};
4547
- 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);
4548
4577
 
4549
4578
  const SvgNext = ({
4550
4579
  title,
@@ -4865,7 +4894,7 @@ const Modal = ({
4865
4894
  justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
4866
4895
  }
4867
4896
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4868
- className: `${styles$9['animation__modal']}`,
4897
+ className: `${styles$a['animation__modal']}`,
4869
4898
  onClick: handleStopClosing,
4870
4899
  style: {
4871
4900
  position: 'relative',
@@ -5448,9 +5477,9 @@ const NumberInput = ({
5448
5477
  });
5449
5478
  };
5450
5479
 
5451
- 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)}}";
5452
- 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"};
5453
- 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);
5454
5483
 
5455
5484
  const InputTypes = {
5456
5485
  TEL: 'tel',
@@ -5544,6 +5573,10 @@ const Input = ({
5544
5573
  labelFontFamily,
5545
5574
  labelLineHeight,
5546
5575
  labelMarginBottom,
5576
+ lableShowMore,
5577
+ labelShowLessText,
5578
+ labelShowMoreText,
5579
+ showMoreTextColor,
5547
5580
  iconRequired,
5548
5581
  useLabelTooltip,
5549
5582
  labelTooltipColor,
@@ -5562,6 +5595,7 @@ const Input = ({
5562
5595
  const [show, setShow] = React.useState(false);
5563
5596
  const [removeID, setRemoveID] = React.useState('');
5564
5597
  const [isHover, setIsHover] = React.useState(false);
5598
+ const [showMore, setShowMore] = React.useState(false);
5565
5599
  const [classProps, setClassProps] = React.useState({});
5566
5600
  const [innerValue, setInnerValue] = React.useState('');
5567
5601
  const [tooltipElem, setTooltipElem] = React.useState(null);
@@ -5688,6 +5722,21 @@ const Input = ({
5688
5722
  }
5689
5723
  setRemoveID(() => '');
5690
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
+ };
5691
5740
  React.useEffect(() => {
5692
5741
  if (errorMessage) {
5693
5742
  setInnerErrorMessage(errorMessage);
@@ -5703,7 +5752,7 @@ const Input = ({
5703
5752
  setInnerValue(() => val);
5704
5753
  }, [value]);
5705
5754
  React.useEffect(() => {
5706
- 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']));
5707
5756
  }, [className]);
5708
5757
  React.useEffect(() => {
5709
5758
  setInnerErrorIcon(() => errorIcon);
@@ -5721,9 +5770,18 @@ const Input = ({
5721
5770
  setInnerLabelIconSide(() => labelIconSide);
5722
5771
  }
5723
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]);
5724
5782
  React.useEffect(() => {
5725
5783
  configStylesPromise.then(data => {
5726
- 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']));
5727
5785
  setConfigStyles(() => {
5728
5786
  return {
5729
5787
  ...data
@@ -5767,13 +5825,24 @@ const Input = ({
5767
5825
  lineHeight: labelLineHeight ?? configStyles.INPUT.label.lineHeight,
5768
5826
  marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom,
5769
5827
  fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
5770
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'nowrap' : 'normal',
5771
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'hidden' : 'visible',
5772
- 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'
5773
5832
  },
5774
5833
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
5775
5834
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseLeave : _ => _
5776
- }, 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", {
5777
5846
  alt: "label icon",
5778
5847
  src: innerLabelIcon,
5779
5848
  style: {
@@ -5783,8 +5852,18 @@ const Input = ({
5783
5852
  marginLeft: labelIconMargin ?? configStyles.INPUT.label.iconMargin
5784
5853
  },
5785
5854
  onClick: labelAction ? () => labelAction() : _ => _
5786
- }) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
5787
- 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']}`,
5788
5867
  style: {
5789
5868
  width: width ?? configStyles.INPUT.width,
5790
5869
  borderRadius: radius ?? configStyles.INPUT.radius,
@@ -6016,6 +6095,10 @@ Input.propTypes = {
6016
6095
  labelFontFamily: PropTypes__default["default"].string,
6017
6096
  labelIconMargin: PropTypes__default["default"].string,
6018
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,
6019
6102
  useLabelTooltip: PropTypes__default["default"].bool,
6020
6103
  labelTooltipColor: PropTypes__default["default"].string,
6021
6104
  labelTooltipPadding: PropTypes__default["default"].string,
@@ -6236,9 +6319,9 @@ const SvgArrow = ({
6236
6319
  fill: fillColor ? fillColor : '#3C393E'
6237
6320
  }));
6238
6321
 
6239
- 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}}";
6240
- 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"};
6241
- 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);
6242
6325
 
6243
6326
  const Select = ({
6244
6327
  dots,
@@ -6270,6 +6353,10 @@ const Select = ({
6270
6353
  labelFontFamily,
6271
6354
  labelMarginBottom,
6272
6355
  labelTextTransform,
6356
+ lableShowMore,
6357
+ labelShowLessText,
6358
+ labelShowMoreText,
6359
+ showMoreTextColor,
6273
6360
  iconRequired,
6274
6361
  useLabelTooltip,
6275
6362
  labelTooltipColor,
@@ -6330,6 +6417,7 @@ const Select = ({
6330
6417
  const [opened, setOpened] = React.useState(false);
6331
6418
  const [removeID, setRemoveID] = React.useState('');
6332
6419
  const [isHover, setIsHover] = React.useState(false);
6420
+ const [showMore, setShowMore] = React.useState(false);
6333
6421
  const [classProps, setClassProps] = React.useState({});
6334
6422
  const [newSelected, setNewSelected] = React.useState([]);
6335
6423
  const [tooltipElem, setTooltipElem] = React.useState(null);
@@ -6471,6 +6559,21 @@ const Select = ({
6471
6559
  }
6472
6560
  setRemoveID(() => '');
6473
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
+ };
6474
6577
  React.useEffect(() => {
6475
6578
  if (opened) {
6476
6579
  const checkIfClickedOutside = e => {
@@ -6512,6 +6615,15 @@ const Select = ({
6512
6615
  React.useEffect(() => {
6513
6616
  className && setClassProps(() => classnames__default["default"](className ?? configStyles.SELECT.className));
6514
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]);
6515
6627
  React.useEffect(() => {
6516
6628
  configStylesPromise.then(data => {
6517
6629
  setClassProps(() => classnames__default["default"](className ?? data.SELECT.className));
@@ -6551,18 +6663,39 @@ const Select = ({
6551
6663
  lineHeight: labelLineHeight ?? configStyles.SELECT.label.lineHeight,
6552
6664
  marginBottom: labelMarginBottom ?? configStyles.SELECT.label.marginBottom,
6553
6665
  textTransform: labelTextTransform ?? configStyles.SELECT.label.textTransform,
6554
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'nowrap' : 'normal',
6555
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'hidden' : 'visible',
6556
- 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'
6557
6670
  },
6558
6671
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
6559
6672
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseLeave : _ => _
6560
- }, 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", {
6561
6694
  ref: ref
6562
6695
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6563
- className: styles$7['select-content']
6696
+ className: styles$8['select-content']
6564
6697
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6565
- className: `${styles$7['select-content-top']}`,
6698
+ className: `${styles$8['select-content-top']}`,
6566
6699
  style: {
6567
6700
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
6568
6701
  minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
@@ -6599,18 +6732,18 @@ const Select = ({
6599
6732
  }
6600
6733
  }
6601
6734
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
6602
- className: `${styles$7['select-content-top-icon']}`,
6735
+ className: `${styles$8['select-content-top-icon']}`,
6603
6736
  style: {
6604
6737
  padding: lang ? '0px' : insidePagination ? '0px 5px' : '0 5px 0 20px'
6605
6738
  }
6606
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", {
6607
- className: `${styles$7['close-icon']}`,
6740
+ className: `${styles$8['close-icon']}`,
6608
6741
  onClick: disabled ? _ => _ : handleClearSelect,
6609
6742
  style: {
6610
6743
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
6611
6744
  }
6612
6745
  }, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
6613
- className: `${styles$7['arrow-icon']}`,
6746
+ className: `${styles$8['arrow-icon']}`,
6614
6747
  style: {
6615
6748
  marginLeft: lang ? '0px' : '9px',
6616
6749
  transform: arrowNoRotate || configStyles.SELECT.arrowNoRotate ? 'rotate(0deg)' : opened ? 'rotate(180deg)' : 'rotate(0deg)'
@@ -6622,9 +6755,9 @@ const Select = ({
6622
6755
  backgroundColor: optionsBackgroundColor ?? configStyles.SELECT.options.colors.background,
6623
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'
6624
6757
  },
6625
- className: `${styles$7['select-content-bottom']}`
6758
+ className: `${styles$8['select-content-bottom']}`
6626
6759
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6627
- className: `${styles$7['select-content-bottom-inner']}`
6760
+ className: `${styles$8['select-content-bottom-inner']}`
6628
6761
  }, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
6629
6762
  return /*#__PURE__*/React__default["default"].createElement("div", {
6630
6763
  key: i,
@@ -6633,7 +6766,7 @@ const Select = ({
6633
6766
  onClick: disabled ? _ => _ : () => handleSelectItem(option),
6634
6767
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
6635
6768
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
6636
- 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'] : ''}`,
6637
6770
  style: {
6638
6771
  overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
6639
6772
  color: optionItemColor ?? configStyles.SELECT.options.item.color,
@@ -6698,6 +6831,10 @@ Select.propTypes = {
6698
6831
  labelFontFamily: PropTypes__default["default"].string,
6699
6832
  labelMarginBottom: PropTypes__default["default"].string,
6700
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,
6701
6838
  cursor: PropTypes__default["default"].string,
6702
6839
  errorSize: PropTypes__default["default"].string,
6703
6840
  errorColor: PropTypes__default["default"].string,
@@ -6869,9 +7006,9 @@ const SvgToasterSuccess = ({
6869
7006
  fill: fillColor ? fillColor : '#0DA574'
6870
7007
  }));
6871
7008
 
6872
- 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}}";
6873
- 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"};
6874
- 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);
6875
7012
 
6876
7013
  const ToasterType = {
6877
7014
  info: 'info',
@@ -6938,8 +7075,8 @@ const Toast = ({
6938
7075
  ...propStyles
6939
7076
  },
6940
7077
  className: `
6941
- ${styles$6['notify-block']}
6942
- ${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'] : ''}
6943
7080
  `
6944
7081
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6945
7082
  style: {
@@ -7006,7 +7143,7 @@ const Toast = ({
7006
7143
  fontFamily: titleStyles.font.family,
7007
7144
  ...titleStyles.props
7008
7145
  },
7009
- className: styles$6['notify-title']
7146
+ className: styles$7['notify-title']
7010
7147
  }, title), description && /*#__PURE__*/React__default["default"].createElement("span", {
7011
7148
  style: {
7012
7149
  color: descriptionStyles.color,
@@ -7017,7 +7154,7 @@ const Toast = ({
7017
7154
  fontFamily: descriptionStyles.font.family,
7018
7155
  ...descriptionStyles.props
7019
7156
  },
7020
- className: styles$6['notify-desc']
7157
+ className: styles$7['notify-desc']
7021
7158
  }, description)), /*#__PURE__*/React__default["default"].createElement("div", {
7022
7159
  onClick: () => handleCloseToaster(ref),
7023
7160
  style: {
@@ -7139,17 +7276,17 @@ const createToast = ({
7139
7276
  }, error => {
7140
7277
  console.error(error);
7141
7278
  });
7142
- 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) {
7143
7280
  toastParentBlock = document.createElement('div');
7144
7281
  toastParentBlock.style.position = 'fixed';
7145
7282
  toastParentBlock.style.display = 'flex';
7146
7283
  toastParentBlock.style.zIndex = 999999999999;
7147
7284
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
7148
- toastParentBlock.setAttribute('id', styles$6[position]);
7285
+ toastParentBlock.setAttribute('id', styles$7[position]);
7149
7286
  toastParentBlock.appendChild(toastBlock);
7150
7287
  toastify.appendChild(toastParentBlock);
7151
7288
  } else {
7152
- document.getElementById(styles$6[position]).appendChild(toastBlock);
7289
+ document.getElementById(styles$7[position]).appendChild(toastBlock);
7153
7290
  }
7154
7291
  };
7155
7292
  const toast = {
@@ -7271,9 +7408,9 @@ const SvgTooltip = ({
7271
7408
  fill: fillColor ? fillColor : '#D1D1D1'
7272
7409
  }));
7273
7410
 
7274
- 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}";
7275
- 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"};
7276
- 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);
7277
7414
 
7278
7415
  const TooltipDirections = {
7279
7416
  TOP: 'top',
@@ -7361,7 +7498,7 @@ const Tooltip = ({
7361
7498
  }, [showTooltip]);
7362
7499
  React.useEffect(() => {
7363
7500
  configStylesPromise.then(data => {
7364
- 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));
7365
7502
  setConfigStyles(() => {
7366
7503
  return {
7367
7504
  ...data
@@ -7383,7 +7520,7 @@ const Tooltip = ({
7383
7520
  onClick: e => e.stopPropagation()
7384
7521
  }, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
7385
7522
  ref: tooltipRef,
7386
- className: `${styles$5['tooltip']}`,
7523
+ className: `${styles$6['tooltip']}`,
7387
7524
  style: {
7388
7525
  width: tooltipWidth ?? configStyles.TOOLTIP.width,
7389
7526
  borderRadius: tooltipRadius ?? configStyles.TOOLTIP.radius,
@@ -7392,9 +7529,9 @@ const Tooltip = ({
7392
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'
7393
7530
  }
7394
7531
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7395
- className: `${styles$5['tooltip-rel']}`
7532
+ className: `${styles$6['tooltip-rel']}`
7396
7533
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7397
- className: `${styles$5['tooltip-decor']}`,
7534
+ className: `${styles$6['tooltip-decor']}`,
7398
7535
  style: {
7399
7536
  backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
7400
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',
@@ -7477,9 +7614,9 @@ const SvgCaptchaArrowDown = ({
7477
7614
  fill: fillColor ? fillColor : '#00236A'
7478
7615
  }));
7479
7616
 
7480
- 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}";
7481
- 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"};
7482
- 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);
7483
7620
 
7484
7621
  const Captcha = ({
7485
7622
  color,
@@ -7567,7 +7704,7 @@ const Captcha = ({
7567
7704
  alignItems: 'center',
7568
7705
  zIndex: 1
7569
7706
  },
7570
- className: styles$4['start-point']
7707
+ className: styles$5['start-point']
7571
7708
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7572
7709
  style: {
7573
7710
  position: 'absolute',
@@ -7593,8 +7730,8 @@ const Captcha = ({
7593
7730
  backgroundColor: 'transparent'
7594
7731
  },
7595
7732
  className: `
7596
- ${styles$4['range']}
7597
- ${+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']}
7598
7735
  `,
7599
7736
  onInput: handleRange
7600
7737
  }), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -7624,9 +7761,9 @@ Captcha.propTypes = {
7624
7761
  getRange: PropTypes__default["default"].func.isRequired
7625
7762
  };
7626
7763
 
7627
- 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}";
7628
- 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"};
7629
- 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);
7630
7767
 
7631
7768
  const Stepper = ({
7632
7769
  stepLength,
@@ -7636,11 +7773,11 @@ const Stepper = ({
7636
7773
  const [classProps, setClassProps] = React.useState({});
7637
7774
  const [configStyles, setConfigStyles] = React.useState({});
7638
7775
  React.useEffect(() => {
7639
- 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`));
7640
7777
  }, [className]);
7641
7778
  React.useEffect(() => {
7642
7779
  configStylesPromise.then(data => {
7643
- 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`));
7644
7781
  setConfigStyles(() => {
7645
7782
  return {
7646
7783
  ...data
@@ -7656,10 +7793,10 @@ const Stepper = ({
7656
7793
  let steppers = [];
7657
7794
  for (let step = 1; step <= stepLength; step++) {
7658
7795
  steppers.push(/*#__PURE__*/React__default["default"].createElement("div", {
7659
- 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}`),
7660
7797
  key: step
7661
7798
  }, /*#__PURE__*/React__default["default"].createElement("div", {
7662
- 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}`)
7663
7800
  }, step <= activeSteps ? step : '')));
7664
7801
  }
7665
7802
  return steppers;
@@ -7789,6 +7926,10 @@ Checkbox.propTypes = {
7789
7926
  data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].arrayOf(PropTypes__default["default"].object), PropTypes__default["default"].object])
7790
7927
  };
7791
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
+
7792
7933
  const PositionSide = {
7793
7934
  TOP: 'top',
7794
7935
  BOTTOM: 'bottom'
@@ -7831,10 +7972,15 @@ const Textarea = ({
7831
7972
  label,
7832
7973
  labelSize,
7833
7974
  labelColor,
7975
+ labelStyle,
7834
7976
  labelWeight,
7835
7977
  labelDisplay,
7836
7978
  labelFontFamily,
7837
7979
  labelMarginBottom,
7980
+ lableShowMore,
7981
+ labelShowLessText,
7982
+ labelShowMoreText,
7983
+ showMoreTextColor,
7838
7984
  iconRequired,
7839
7985
  useLabelTooltip,
7840
7986
  labelTooltipColor,
@@ -7853,6 +7999,7 @@ const Textarea = ({
7853
7999
  const [removeID, setRemoveID] = React.useState('');
7854
8000
  const [isHover, setIsHover] = React.useState(false);
7855
8001
  const [isFocus, setIsFocus] = React.useState(false);
8002
+ const [showMore, setShowMore] = React.useState(false);
7856
8003
  const [innerValue, setInnerValue] = React.useState('');
7857
8004
  const [classProps, setClassProps] = React.useState({});
7858
8005
  const [tooltipElem, setTooltipElem] = React.useState(null);
@@ -7964,6 +8111,21 @@ const Textarea = ({
7964
8111
  }
7965
8112
  setRemoveID(() => '');
7966
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
+ };
7967
8129
  React.useEffect(() => {
7968
8130
  if (value === undefined) {
7969
8131
  alert('Please add value prop on Textarea component');
@@ -7978,6 +8140,15 @@ const Textarea = ({
7978
8140
  React.useEffect(() => {
7979
8141
  className && setClassProps(() => classnames__default["default"](className ?? configStyles.TEXTAREA.className));
7980
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]);
7981
8152
  React.useEffect(() => {
7982
8153
  configStylesPromise.then(data => {
7983
8154
  setClassProps(() => classnames__default["default"](className ?? data.TEXTAREA.className));
@@ -8019,13 +8190,34 @@ const Textarea = ({
8019
8190
  ref: labelRef,
8020
8191
  style: {
8021
8192
  display: labelDisplay ?? configStyles.TEXTAREA.label.display,
8022
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'nowrap' : 'normal',
8023
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'hidden' : 'visible',
8024
- 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'
8025
8197
  },
8026
8198
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseEnter : _ => _,
8027
8199
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseLeave : _ => _
8028
- }, 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", {
8029
8221
  style: {
8030
8222
  width: 'fit-content',
8031
8223
  flexShrink: 0
@@ -8128,11 +8320,16 @@ Textarea.propTypes = {
8128
8320
  borderHoverColor: PropTypes__default["default"].string,
8129
8321
  label: PropTypes__default["default"].string,
8130
8322
  labelSize: PropTypes__default["default"].string,
8323
+ labelStyle: PropTypes__default["default"].string,
8131
8324
  labelColor: PropTypes__default["default"].string,
8132
8325
  labelWeight: PropTypes__default["default"].string,
8133
8326
  labelDisplay: PropTypes__default["default"].string,
8134
8327
  labelFontFamily: PropTypes__default["default"].string,
8135
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,
8136
8333
  iconRequired: PropTypes__default["default"].element,
8137
8334
  useLabelTooltip: PropTypes__default["default"].bool,
8138
8335
  labelTooltipColor: PropTypes__default["default"].string,
@@ -9300,8 +9497,8 @@ Pagination.propTypes = {
9300
9497
  borderRadius: PropTypes__default["default"].string
9301
9498
  };
9302
9499
 
9303
- var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}";
9304
- 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"};
9305
9502
  styleInject(css_248z);
9306
9503
 
9307
9504
  const Autocomplete = ({
@@ -9383,6 +9580,10 @@ const Autocomplete = ({
9383
9580
  labelFontFamily,
9384
9581
  labelMarginBottom,
9385
9582
  labelTextTransform,
9583
+ lableShowMore,
9584
+ labelShowLessText,
9585
+ labelShowMoreText,
9586
+ showMoreTextColor,
9386
9587
  iconRequired,
9387
9588
  useLabelTooltip,
9388
9589
  labelTooltipColor,
@@ -9408,6 +9609,7 @@ const Autocomplete = ({
9408
9609
  const [removeID, setRemoveID] = React.useState('');
9409
9610
  const [isHover, setIsHover] = React.useState(false);
9410
9611
  const [isFocus, setIsFocus] = React.useState(false);
9612
+ const [showMore, setShowMore] = React.useState(false);
9411
9613
  const [innerError, setInnerError] = React.useState('');
9412
9614
  const [innerValue, setInnerValue] = React.useState('');
9413
9615
  const [classProps, setClassProps] = React.useState({});
@@ -9600,6 +9802,21 @@ const Autocomplete = ({
9600
9802
  }
9601
9803
  setRemoveID(() => '');
9602
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
+ };
9603
9820
  React.useEffect(() => {
9604
9821
  if (options === undefined) {
9605
9822
  alert('Please add options prop');
@@ -9634,6 +9851,15 @@ const Autocomplete = ({
9634
9851
  React.useEffect(() => {
9635
9852
  className && setClassProps(() => classnames__default["default"](className ?? configStyles.AUTOCOMPLETE.className, styles['auto-complete']));
9636
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]);
9637
9863
  React.useEffect(() => {
9638
9864
  configStylesPromise.then(data => {
9639
9865
  setClassProps(() => classnames__default["default"](className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
@@ -9672,13 +9898,34 @@ const Autocomplete = ({
9672
9898
  lineHeight: labelLineHeight ?? configStyles.AUTOCOMPLETE.label.lineHeight,
9673
9899
  marginBottom: labelMarginBottom ?? configStyles.AUTOCOMPLETE.label.marginBottom,
9674
9900
  textTransform: labelTextTransform ?? configStyles.AUTOCOMPLETE.label.textTransform,
9675
- whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'nowrap' : 'normal',
9676
- overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'hidden' : 'visible',
9677
- 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'
9678
9905
  },
9679
9906
  onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
9680
9907
  onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseLeave : _ => _
9681
- }, 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", {
9682
9929
  style: {
9683
9930
  display: contentDisplay ?? configStyles.AUTOCOMPLETE.parent.display,
9684
9931
  position: contentPosition ?? configStyles.AUTOCOMPLETE.parent.position,
@@ -9823,7 +10070,11 @@ Autocomplete.propTypes = {
9823
10070
  labelTooltipFontWeight: PropTypes__default["default"].string,
9824
10071
  labelTooltipBorderRadius: PropTypes__default["default"].string,
9825
10072
  labelTooltipBackgroundColor: PropTypes__default["default"].string,
9826
- 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
9827
10078
  };
9828
10079
 
9829
10080
  exports.Accordion = Accordion;