@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/CHANGELOG.md +29 -0
- package/dist/index.es.js +348 -95
- package/dist/index.js +348 -95
- package/package.json +1 -1
- package/tui.config.js +18 -0
package/dist/index.es.js
CHANGED
|
@@ -595,7 +595,11 @@ var packageResult = {
|
|
|
595
595
|
...fontObject
|
|
596
596
|
},
|
|
597
597
|
label: {
|
|
598
|
+
showMore: false,
|
|
598
599
|
useTooltip: false,
|
|
600
|
+
showLessText: 'Փակել',
|
|
601
|
+
showMoreText: 'Ավելին',
|
|
602
|
+
showMoreTextColor: '#2C46C1',
|
|
599
603
|
color: presetColors.dark,
|
|
600
604
|
display: 'block',
|
|
601
605
|
lineHeight: '22px',
|
|
@@ -788,7 +792,11 @@ var packageResult = {
|
|
|
788
792
|
shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
|
|
789
793
|
},
|
|
790
794
|
label: {
|
|
795
|
+
showMore: false,
|
|
791
796
|
useTooltip: false,
|
|
797
|
+
showLessText: 'Փակել',
|
|
798
|
+
showMoreText: 'Ավելին',
|
|
799
|
+
showMoreTextColor: '#2C46C1',
|
|
792
800
|
color: presetColors.dark,
|
|
793
801
|
display: 'block',
|
|
794
802
|
lineHeight: '22px',
|
|
@@ -900,7 +908,11 @@ var packageResult = {
|
|
|
900
908
|
background: 'white'
|
|
901
909
|
},
|
|
902
910
|
label: {
|
|
911
|
+
showMore: false,
|
|
903
912
|
useTooltip: false,
|
|
913
|
+
showLessText: 'Փակել',
|
|
914
|
+
showMoreText: 'Ավելին',
|
|
915
|
+
showMoreTextColor: '#2C46C1',
|
|
904
916
|
color: presetColors.dark,
|
|
905
917
|
display: 'block',
|
|
906
918
|
marginBottom: '10px',
|
|
@@ -969,7 +981,11 @@ var packageResult = {
|
|
|
969
981
|
backgroundDisable: presetColors.secondary
|
|
970
982
|
},
|
|
971
983
|
label: {
|
|
984
|
+
showMore: false,
|
|
972
985
|
useTooltip: false,
|
|
986
|
+
showLessText: 'Փակել',
|
|
987
|
+
showMoreText: 'Ավելին',
|
|
988
|
+
showMoreTextColor: '#2C46C1',
|
|
973
989
|
color: presetColors.dark,
|
|
974
990
|
display: 'block',
|
|
975
991
|
lineHeight: '22px',
|
|
@@ -1093,6 +1109,8 @@ var packageResult = {
|
|
|
1093
1109
|
label: {
|
|
1094
1110
|
showMore: false,
|
|
1095
1111
|
useTooltip: false,
|
|
1112
|
+
showLessText: 'Փակել',
|
|
1113
|
+
showMoreText: 'Ավելին',
|
|
1096
1114
|
showMoreTextColor: '#2C46C1',
|
|
1097
1115
|
color: '#4A4A4D',
|
|
1098
1116
|
font: {
|
|
@@ -1822,9 +1840,9 @@ function styleInject(css, ref) {
|
|
|
1822
1840
|
}
|
|
1823
1841
|
}
|
|
1824
1842
|
|
|
1825
|
-
var css_248z$
|
|
1826
|
-
var styles$
|
|
1827
|
-
styleInject(css_248z$
|
|
1843
|
+
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}";
|
|
1844
|
+
var styles$c = {"small-file-component":"file-module_small-file-component__nlpcW","show-more-text":"file-module_show-more-text__WIGLx"};
|
|
1845
|
+
styleInject(css_248z$d);
|
|
1828
1846
|
|
|
1829
1847
|
// eslint-disable-next-line react/display-name
|
|
1830
1848
|
const File = /*#__PURE__*/forwardRef(({
|
|
@@ -2453,12 +2471,23 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2453
2471
|
fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
|
|
2454
2472
|
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
2455
2473
|
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
2456
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'ellipsis' : ''
|
|
2474
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'ellipsis' : '',
|
|
2475
|
+
wordBreak: 'break-all'
|
|
2457
2476
|
},
|
|
2458
2477
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) && !lableShowMore && !configStyles.FILE.label.showMore ? handleLabelMouseEnter : _ => _,
|
|
2459
2478
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) && !lableShowMore && !configStyles.FILE.label.showMore ? handleLabelMouseLeave : _ => _
|
|
2460
|
-
}, label
|
|
2461
|
-
className: styles$
|
|
2479
|
+
}, label, handleCheckTextWidth('label') === 'more' && showMore && (lableShowMore || configStyles.FILE.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
2480
|
+
className: styles$c['show-more-text'],
|
|
2481
|
+
style: {
|
|
2482
|
+
fontSize: labelSize ?? configStyles.FILE.label.font.size,
|
|
2483
|
+
fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
|
|
2484
|
+
fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
|
|
2485
|
+
fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
|
|
2486
|
+
color: showMoreTextColor ?? configStyles.FILE.label.showMoreTextColor
|
|
2487
|
+
},
|
|
2488
|
+
onClick: handleChangeShowMore
|
|
2489
|
+
}, ' ', " ", labelShowLessText ?? configStyles.FILE.label.showLessText) : ''), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null)), handleCheckTextWidth('label') === 'more' && !showMore && (lableShowMore || configStyles.FILE.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
2490
|
+
className: styles$c['show-more-text'],
|
|
2462
2491
|
style: {
|
|
2463
2492
|
fontSize: labelSize ?? configStyles.FILE.label.font.size,
|
|
2464
2493
|
fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
|
|
@@ -2467,7 +2496,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2467
2496
|
color: showMoreTextColor ?? configStyles.FILE.label.showMoreTextColor
|
|
2468
2497
|
},
|
|
2469
2498
|
onClick: handleChangeShowMore
|
|
2470
|
-
},
|
|
2499
|
+
}, labelShowMoreText ?? configStyles.FILE.label.showMoreText) : ''), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
|
|
2471
2500
|
style: {
|
|
2472
2501
|
cursor: 'pointer'
|
|
2473
2502
|
},
|
|
@@ -2554,7 +2583,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2554
2583
|
color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
|
|
2555
2584
|
}
|
|
2556
2585
|
}, "(", fileExtensions.toString().split(',').join(', '), ")"))))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
2557
|
-
className: styles$
|
|
2586
|
+
className: styles$c['small-file-component'],
|
|
2558
2587
|
style: {
|
|
2559
2588
|
width: '100%',
|
|
2560
2589
|
padding: '5px',
|
|
@@ -2593,6 +2622,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2593
2622
|
style: {
|
|
2594
2623
|
margin: '0px',
|
|
2595
2624
|
padding: '0px 10px',
|
|
2625
|
+
textAlign: 'left',
|
|
2596
2626
|
width: 'calc(100% - 120px)',
|
|
2597
2627
|
maxWidth: 'calc(100% - 120px)',
|
|
2598
2628
|
color: color ?? configStyles.FILE.color,
|
|
@@ -2607,7 +2637,8 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2607
2637
|
display: 'inline-block',
|
|
2608
2638
|
whiteSpace: 'nowrap',
|
|
2609
2639
|
overflow: 'hidden',
|
|
2610
|
-
textOverflow: 'ellipsis'
|
|
2640
|
+
textOverflow: 'ellipsis',
|
|
2641
|
+
textAlign: 'left'
|
|
2611
2642
|
}
|
|
2612
2643
|
}, singleFile[`${0}`].name) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 ", ' ', /*#__PURE__*/React__default.createElement("span", {
|
|
2613
2644
|
style: {
|
|
@@ -3069,9 +3100,9 @@ SingleCheckbox.propTypes = {
|
|
|
3069
3100
|
ignoreDisabledForChecked: PropTypes.bool
|
|
3070
3101
|
};
|
|
3071
3102
|
|
|
3072
|
-
var css_248z$
|
|
3073
|
-
var styles$
|
|
3074
|
-
styleInject(css_248z$
|
|
3103
|
+
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%}";
|
|
3104
|
+
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"};
|
|
3105
|
+
styleInject(css_248z$c);
|
|
3075
3106
|
|
|
3076
3107
|
/* eslint-disable no-prototype-builtins */
|
|
3077
3108
|
const TH = ({
|
|
@@ -3113,7 +3144,7 @@ const TH = ({
|
|
|
3113
3144
|
borderColor: hideBorder ? 'transparent' : '#eeeeee'
|
|
3114
3145
|
},
|
|
3115
3146
|
onClick: handleHeaderItemClick,
|
|
3116
|
-
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$
|
|
3147
|
+
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$b['sorting-arrows'] : '' : ''}`
|
|
3117
3148
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3118
3149
|
style: {
|
|
3119
3150
|
display: 'flex',
|
|
@@ -3274,7 +3305,7 @@ const TD = ({
|
|
|
3274
3305
|
},
|
|
3275
3306
|
id: newItem.id,
|
|
3276
3307
|
type: newItem.type,
|
|
3277
|
-
className: styles$
|
|
3308
|
+
className: styles$b['td-span'],
|
|
3278
3309
|
key: `${newItem.id}_${newIndex}`,
|
|
3279
3310
|
onClick: e => handleCheckActions(e, newItem, 'type', newIndex),
|
|
3280
3311
|
onMouseEnter: () => handleMouseEnter(newItem, newIndex),
|
|
@@ -3298,7 +3329,7 @@ const TD = ({
|
|
|
3298
3329
|
},
|
|
3299
3330
|
id: iT.id ? iT.id : '',
|
|
3300
3331
|
type: iT.type ? iT.type : '',
|
|
3301
|
-
className: styles$
|
|
3332
|
+
className: styles$b['td-span'],
|
|
3302
3333
|
key: `${iT.id || iT.content}_${iN}`,
|
|
3303
3334
|
onMouseEnter: () => handleMouseEnter(iT, iN),
|
|
3304
3335
|
onMouseLeave: () => handleMouseLeave(),
|
|
@@ -3324,7 +3355,7 @@ const TD = ({
|
|
|
3324
3355
|
cursor: 'pointer'
|
|
3325
3356
|
},
|
|
3326
3357
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
3327
|
-
className: styles$
|
|
3358
|
+
className: styles$b['td-span']
|
|
3328
3359
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'draggableIcon') && /*#__PURE__*/React__default.createElement("div", {
|
|
3329
3360
|
draggable: true,
|
|
3330
3361
|
style: {
|
|
@@ -3393,7 +3424,7 @@ const TD = ({
|
|
|
3393
3424
|
}, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
3394
3425
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
3395
3426
|
key: `${optionItem.content}_${optionIndex}`,
|
|
3396
|
-
className: styles$
|
|
3427
|
+
className: styles$b['dots-option-item'],
|
|
3397
3428
|
style: {
|
|
3398
3429
|
color: '#3C393E',
|
|
3399
3430
|
fontSize: '14px',
|
|
@@ -3435,7 +3466,7 @@ const TD = ({
|
|
|
3435
3466
|
}, innerItem.content.map((contInnerItem, contInnerIndex) => {
|
|
3436
3467
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
3437
3468
|
key: `${contInnerItem}_${contInnerIndex}`,
|
|
3438
|
-
className: styles$
|
|
3469
|
+
className: styles$b['list-text'],
|
|
3439
3470
|
style: {
|
|
3440
3471
|
maxWidth: '100%',
|
|
3441
3472
|
color: openListColor,
|
|
@@ -3452,7 +3483,7 @@ const TD = ({
|
|
|
3452
3483
|
} else {
|
|
3453
3484
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
3454
3485
|
key: `${innerItem}_${innerItemIndex}`,
|
|
3455
|
-
className: styles$
|
|
3486
|
+
className: styles$b['list-text'],
|
|
3456
3487
|
style: {
|
|
3457
3488
|
maxWidth: '100%',
|
|
3458
3489
|
color: openListColor,
|
|
@@ -3473,7 +3504,7 @@ const TD = ({
|
|
|
3473
3504
|
cursor: 'pointer'
|
|
3474
3505
|
},
|
|
3475
3506
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
3476
|
-
className: styles$
|
|
3507
|
+
className: styles$b['td-span']
|
|
3477
3508
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
3478
3509
|
};
|
|
3479
3510
|
|
|
@@ -4458,7 +4489,7 @@ const Table = ({
|
|
|
4458
4489
|
borderRightColor: innerIndex === Object.values(draggedItem).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor
|
|
4459
4490
|
});
|
|
4460
4491
|
})))), !body.length && /*#__PURE__*/React__default.createElement("div", {
|
|
4461
|
-
className: styles$
|
|
4492
|
+
className: styles$b['no-tabel-data']
|
|
4462
4493
|
}, /*#__PURE__*/React__default.createElement("p", null, "\u054F\u057E\u0575\u0561\u056C\u0576\u0565\u0580 \u0579\u056F\u0561\u0576")));
|
|
4463
4494
|
};
|
|
4464
4495
|
Table.propTypes = {
|
|
@@ -4509,9 +4540,9 @@ Table.propTypes = {
|
|
|
4509
4540
|
clickableRowColumnTd: PropTypes.bool
|
|
4510
4541
|
};
|
|
4511
4542
|
|
|
4512
|
-
var css_248z$
|
|
4513
|
-
var styles$
|
|
4514
|
-
styleInject(css_248z$
|
|
4543
|
+
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)}}";
|
|
4544
|
+
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"};
|
|
4545
|
+
styleInject(css_248z$b);
|
|
4515
4546
|
|
|
4516
4547
|
const SvgNext = ({
|
|
4517
4548
|
title,
|
|
@@ -4832,7 +4863,7 @@ const Modal = ({
|
|
|
4832
4863
|
justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
|
|
4833
4864
|
}
|
|
4834
4865
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4835
|
-
className: `${styles$
|
|
4866
|
+
className: `${styles$a['animation__modal']}`,
|
|
4836
4867
|
onClick: handleStopClosing,
|
|
4837
4868
|
style: {
|
|
4838
4869
|
position: 'relative',
|
|
@@ -5415,9 +5446,9 @@ const NumberInput = ({
|
|
|
5415
5446
|
});
|
|
5416
5447
|
};
|
|
5417
5448
|
|
|
5418
|
-
var css_248z$
|
|
5419
|
-
var styles$
|
|
5420
|
-
styleInject(css_248z$
|
|
5449
|
+
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)}}";
|
|
5450
|
+
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"};
|
|
5451
|
+
styleInject(css_248z$a);
|
|
5421
5452
|
|
|
5422
5453
|
const InputTypes = {
|
|
5423
5454
|
TEL: 'tel',
|
|
@@ -5511,6 +5542,10 @@ const Input = ({
|
|
|
5511
5542
|
labelFontFamily,
|
|
5512
5543
|
labelLineHeight,
|
|
5513
5544
|
labelMarginBottom,
|
|
5545
|
+
lableShowMore,
|
|
5546
|
+
labelShowLessText,
|
|
5547
|
+
labelShowMoreText,
|
|
5548
|
+
showMoreTextColor,
|
|
5514
5549
|
iconRequired,
|
|
5515
5550
|
useLabelTooltip,
|
|
5516
5551
|
labelTooltipColor,
|
|
@@ -5529,6 +5564,7 @@ const Input = ({
|
|
|
5529
5564
|
const [show, setShow] = useState(false);
|
|
5530
5565
|
const [removeID, setRemoveID] = useState('');
|
|
5531
5566
|
const [isHover, setIsHover] = useState(false);
|
|
5567
|
+
const [showMore, setShowMore] = useState(false);
|
|
5532
5568
|
const [classProps, setClassProps] = useState({});
|
|
5533
5569
|
const [innerValue, setInnerValue] = useState('');
|
|
5534
5570
|
const [tooltipElem, setTooltipElem] = useState(null);
|
|
@@ -5655,6 +5691,21 @@ const Input = ({
|
|
|
5655
5691
|
}
|
|
5656
5692
|
setRemoveID(() => '');
|
|
5657
5693
|
};
|
|
5694
|
+
const handleCheckTextWidth = () => {
|
|
5695
|
+
if (labelRef.current) {
|
|
5696
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
5697
|
+
const elementWidth = rect.width;
|
|
5698
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
5699
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
5700
|
+
return 'more';
|
|
5701
|
+
} else {
|
|
5702
|
+
return 'less';
|
|
5703
|
+
}
|
|
5704
|
+
}
|
|
5705
|
+
};
|
|
5706
|
+
const handleChangeShowMore = () => {
|
|
5707
|
+
setShowMore(() => !showMore);
|
|
5708
|
+
};
|
|
5658
5709
|
useEffect(() => {
|
|
5659
5710
|
if (errorMessage) {
|
|
5660
5711
|
setInnerErrorMessage(errorMessage);
|
|
@@ -5670,7 +5721,7 @@ const Input = ({
|
|
|
5670
5721
|
setInnerValue(() => val);
|
|
5671
5722
|
}, [value]);
|
|
5672
5723
|
useEffect(() => {
|
|
5673
|
-
className && setClassProps(() => classnames(className ?? configStyles.INPUT.className, type === 'number' ? styles$
|
|
5724
|
+
className && setClassProps(() => classnames(className ?? configStyles.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']));
|
|
5674
5725
|
}, [className]);
|
|
5675
5726
|
useEffect(() => {
|
|
5676
5727
|
setInnerErrorIcon(() => errorIcon);
|
|
@@ -5688,9 +5739,18 @@ const Input = ({
|
|
|
5688
5739
|
setInnerLabelIconSide(() => labelIconSide);
|
|
5689
5740
|
}
|
|
5690
5741
|
}, [labelIconSide]);
|
|
5742
|
+
useEffect(() => {
|
|
5743
|
+
if ((useLabelTooltip || configStyles.INPUT?.label?.useTooltip) && (lableShowMore || configStyles.INPUT?.label?.showMore)) {
|
|
5744
|
+
alert(`
|
|
5745
|
+
Please use one of this props or config,
|
|
5746
|
+
use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
|
|
5747
|
+
or ( lableShowMore / configStyles.FILE.label.showMore )
|
|
5748
|
+
`);
|
|
5749
|
+
}
|
|
5750
|
+
}, [lableShowMore, useLabelTooltip, configStyles.INPUT?.label?.useTooltip, configStyles.INPUT?.label?.showMore]);
|
|
5691
5751
|
useEffect(() => {
|
|
5692
5752
|
configStylesPromise.then(data => {
|
|
5693
|
-
setClassProps(() => classnames(className ?? data.INPUT.className, type === 'number' ? styles$
|
|
5753
|
+
setClassProps(() => classnames(className ?? data.INPUT.className, type === 'number' ? styles$9['inp-num'] : '', styles$9['input-wrap']));
|
|
5694
5754
|
setConfigStyles(() => {
|
|
5695
5755
|
return {
|
|
5696
5756
|
...data
|
|
@@ -5734,13 +5794,24 @@ const Input = ({
|
|
|
5734
5794
|
lineHeight: labelLineHeight ?? configStyles.INPUT.label.lineHeight,
|
|
5735
5795
|
marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom,
|
|
5736
5796
|
fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
|
|
5737
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'nowrap' : 'normal',
|
|
5738
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'hidden' : 'visible',
|
|
5739
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'ellipsis' : ''
|
|
5797
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.INPUT.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
5798
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.INPUT.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
5799
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.INPUT.label.showMore) && !showMore ? 'ellipsis' : '',
|
|
5800
|
+
wordBreak: 'break-all'
|
|
5740
5801
|
},
|
|
5741
5802
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
5742
5803
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
5743
|
-
}, label
|
|
5804
|
+
}, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.INPUT.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
5805
|
+
className: styles$9['show-more-text'],
|
|
5806
|
+
style: {
|
|
5807
|
+
fontSize: labelSize ?? configStyles.INPUT.label.font.size,
|
|
5808
|
+
fontStyle: labelStyle ?? configStyles.INPUT.label.font.style,
|
|
5809
|
+
fontWeight: labelWeight ?? configStyles.INPUT.label.font.weight,
|
|
5810
|
+
fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
|
|
5811
|
+
color: showMoreTextColor ?? configStyles.INPUT.label.showMoreTextColor
|
|
5812
|
+
},
|
|
5813
|
+
onClick: handleChangeShowMore
|
|
5814
|
+
}, ' ', " ", labelShowLessText ?? configStyles.INPUT.label.showLessText) : ''), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.INPUT.icon.required ? configStyles.INPUT.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null)), showLabelIcon && innerLabelIcon && innerLabelIconSide === 'right' ? /*#__PURE__*/React__default.createElement("img", {
|
|
5744
5815
|
alt: "label icon",
|
|
5745
5816
|
src: innerLabelIcon,
|
|
5746
5817
|
style: {
|
|
@@ -5750,8 +5821,18 @@ const Input = ({
|
|
|
5750
5821
|
marginLeft: labelIconMargin ?? configStyles.INPUT.label.iconMargin
|
|
5751
5822
|
},
|
|
5752
5823
|
onClick: labelAction ? () => labelAction() : _ => _
|
|
5753
|
-
}) : ''
|
|
5754
|
-
className:
|
|
5824
|
+
}) : '', handleCheckTextWidth() === 'more' && !showMore && (lableShowMore || configStyles.INPUT.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
5825
|
+
className: styles$9['show-more-text'],
|
|
5826
|
+
style: {
|
|
5827
|
+
fontSize: labelSize ?? configStyles.INPUT.label.font.size,
|
|
5828
|
+
fontStyle: labelStyle ?? configStyles.INPUT.label.font.style,
|
|
5829
|
+
fontWeight: labelWeight ?? configStyles.INPUT.label.font.weight,
|
|
5830
|
+
fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
|
|
5831
|
+
color: showMoreTextColor ?? configStyles.INPUT.label.showMoreTextColor
|
|
5832
|
+
},
|
|
5833
|
+
onClick: handleChangeShowMore
|
|
5834
|
+
}, labelShowMoreText ?? configStyles.INPUT.label.showMoreText) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
5835
|
+
className: `${styles$9['input-content']}`,
|
|
5755
5836
|
style: {
|
|
5756
5837
|
width: width ?? configStyles.INPUT.width,
|
|
5757
5838
|
borderRadius: radius ?? configStyles.INPUT.radius,
|
|
@@ -5983,6 +6064,10 @@ Input.propTypes = {
|
|
|
5983
6064
|
labelFontFamily: PropTypes.string,
|
|
5984
6065
|
labelIconMargin: PropTypes.string,
|
|
5985
6066
|
labelMarginBottom: PropTypes.string,
|
|
6067
|
+
lableShowMore: PropTypes.bool,
|
|
6068
|
+
labelShowLessText: PropTypes.string,
|
|
6069
|
+
labelShowMoreText: PropTypes.string,
|
|
6070
|
+
showMoreTextColor: PropTypes.string,
|
|
5986
6071
|
useLabelTooltip: PropTypes.bool,
|
|
5987
6072
|
labelTooltipColor: PropTypes.string,
|
|
5988
6073
|
labelTooltipPadding: PropTypes.string,
|
|
@@ -6203,9 +6288,9 @@ const SvgArrow = ({
|
|
|
6203
6288
|
fill: fillColor ? fillColor : '#3C393E'
|
|
6204
6289
|
}));
|
|
6205
6290
|
|
|
6206
|
-
var css_248z$
|
|
6207
|
-
var styles$
|
|
6208
|
-
styleInject(css_248z$
|
|
6291
|
+
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}}";
|
|
6292
|
+
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"};
|
|
6293
|
+
styleInject(css_248z$9);
|
|
6209
6294
|
|
|
6210
6295
|
const Select = ({
|
|
6211
6296
|
dots,
|
|
@@ -6237,6 +6322,10 @@ const Select = ({
|
|
|
6237
6322
|
labelFontFamily,
|
|
6238
6323
|
labelMarginBottom,
|
|
6239
6324
|
labelTextTransform,
|
|
6325
|
+
lableShowMore,
|
|
6326
|
+
labelShowLessText,
|
|
6327
|
+
labelShowMoreText,
|
|
6328
|
+
showMoreTextColor,
|
|
6240
6329
|
iconRequired,
|
|
6241
6330
|
useLabelTooltip,
|
|
6242
6331
|
labelTooltipColor,
|
|
@@ -6297,6 +6386,7 @@ const Select = ({
|
|
|
6297
6386
|
const [opened, setOpened] = useState(false);
|
|
6298
6387
|
const [removeID, setRemoveID] = useState('');
|
|
6299
6388
|
const [isHover, setIsHover] = useState(false);
|
|
6389
|
+
const [showMore, setShowMore] = useState(false);
|
|
6300
6390
|
const [classProps, setClassProps] = useState({});
|
|
6301
6391
|
const [newSelected, setNewSelected] = useState([]);
|
|
6302
6392
|
const [tooltipElem, setTooltipElem] = useState(null);
|
|
@@ -6438,6 +6528,21 @@ const Select = ({
|
|
|
6438
6528
|
}
|
|
6439
6529
|
setRemoveID(() => '');
|
|
6440
6530
|
};
|
|
6531
|
+
const handleCheckTextWidth = () => {
|
|
6532
|
+
if (labelRef.current) {
|
|
6533
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
6534
|
+
const elementWidth = rect.width;
|
|
6535
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
6536
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
6537
|
+
return 'more';
|
|
6538
|
+
} else {
|
|
6539
|
+
return 'less';
|
|
6540
|
+
}
|
|
6541
|
+
}
|
|
6542
|
+
};
|
|
6543
|
+
const handleChangeShowMore = () => {
|
|
6544
|
+
setShowMore(() => !showMore);
|
|
6545
|
+
};
|
|
6441
6546
|
useEffect(() => {
|
|
6442
6547
|
if (opened) {
|
|
6443
6548
|
const checkIfClickedOutside = e => {
|
|
@@ -6479,6 +6584,15 @@ const Select = ({
|
|
|
6479
6584
|
useEffect(() => {
|
|
6480
6585
|
className && setClassProps(() => classnames(className ?? configStyles.SELECT.className));
|
|
6481
6586
|
}, [className]);
|
|
6587
|
+
useEffect(() => {
|
|
6588
|
+
if ((useLabelTooltip || configStyles.SELECT?.label?.useTooltip) && (lableShowMore || configStyles.SELECT?.label?.showMore)) {
|
|
6589
|
+
alert(`
|
|
6590
|
+
Please use one of this props or config,
|
|
6591
|
+
use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
|
|
6592
|
+
or ( lableShowMore / configStyles.FILE.label.showMore )
|
|
6593
|
+
`);
|
|
6594
|
+
}
|
|
6595
|
+
}, [lableShowMore, useLabelTooltip, configStyles.SELECT?.label?.useTooltip, configStyles.SELECT?.label?.showMore]);
|
|
6482
6596
|
useEffect(() => {
|
|
6483
6597
|
configStylesPromise.then(data => {
|
|
6484
6598
|
setClassProps(() => classnames(className ?? data.SELECT.className));
|
|
@@ -6518,18 +6632,39 @@ const Select = ({
|
|
|
6518
6632
|
lineHeight: labelLineHeight ?? configStyles.SELECT.label.lineHeight,
|
|
6519
6633
|
marginBottom: labelMarginBottom ?? configStyles.SELECT.label.marginBottom,
|
|
6520
6634
|
textTransform: labelTextTransform ?? configStyles.SELECT.label.textTransform,
|
|
6521
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'nowrap' : 'normal',
|
|
6522
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'hidden' : 'visible',
|
|
6523
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'ellipsis' : ''
|
|
6635
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
6636
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
6637
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'ellipsis' : '',
|
|
6638
|
+
wordBreak: 'break-all'
|
|
6524
6639
|
},
|
|
6525
6640
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
6526
6641
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
6527
|
-
}, label
|
|
6642
|
+
}, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.SELECT.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
6643
|
+
className: styles$8['show-more-text'],
|
|
6644
|
+
style: {
|
|
6645
|
+
fontSize: labelFontSize ?? configStyles.SELECT.label.font.size,
|
|
6646
|
+
fontStyle: labelFontStyle ?? configStyles.SELECT.label.font.style,
|
|
6647
|
+
fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
|
|
6648
|
+
fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
|
|
6649
|
+
color: showMoreTextColor ?? configStyles.SELECT.label.showMoreTextColor
|
|
6650
|
+
},
|
|
6651
|
+
onClick: handleChangeShowMore
|
|
6652
|
+
}, ' ', " ", labelShowLessText ?? configStyles.SELECT.label.showLessText) : ''), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.SELECT.icon.required ? configStyles.SELECT.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null)), handleCheckTextWidth() === 'more' && !showMore && (lableShowMore || configStyles.SELECT.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
6653
|
+
className: styles$8['show-more-text'],
|
|
6654
|
+
style: {
|
|
6655
|
+
fontSize: labelFontSize ?? configStyles.SELECT.label.font.size,
|
|
6656
|
+
fontStyle: labelFontStyle ?? configStyles.SELECT.label.font.style,
|
|
6657
|
+
fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
|
|
6658
|
+
fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
|
|
6659
|
+
color: showMoreTextColor ?? configStyles.SELECT.label.showMoreTextColor
|
|
6660
|
+
},
|
|
6661
|
+
onClick: handleChangeShowMore
|
|
6662
|
+
}, labelShowMoreText ?? configStyles.SELECT.label.showMoreText) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
6528
6663
|
ref: ref
|
|
6529
6664
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6530
|
-
className: styles$
|
|
6665
|
+
className: styles$8['select-content']
|
|
6531
6666
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6532
|
-
className: `${styles$
|
|
6667
|
+
className: `${styles$8['select-content-top']}`,
|
|
6533
6668
|
style: {
|
|
6534
6669
|
cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
|
|
6535
6670
|
minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
|
|
@@ -6566,18 +6701,18 @@ const Select = ({
|
|
|
6566
6701
|
}
|
|
6567
6702
|
}
|
|
6568
6703
|
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
6569
|
-
className: `${styles$
|
|
6704
|
+
className: `${styles$8['select-content-top-icon']}`,
|
|
6570
6705
|
style: {
|
|
6571
6706
|
padding: lang ? '0px' : insidePagination ? '0px 5px' : '0 5px 0 20px'
|
|
6572
6707
|
}
|
|
6573
6708
|
}, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default.createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : configStyles.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
6574
|
-
className: `${styles$
|
|
6709
|
+
className: `${styles$8['close-icon']}`,
|
|
6575
6710
|
onClick: disabled ? _ => _ : handleClearSelect,
|
|
6576
6711
|
style: {
|
|
6577
6712
|
marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
|
|
6578
6713
|
}
|
|
6579
6714
|
}, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default.createElement("div", {
|
|
6580
|
-
className: `${styles$
|
|
6715
|
+
className: `${styles$8['arrow-icon']}`,
|
|
6581
6716
|
style: {
|
|
6582
6717
|
marginLeft: lang ? '0px' : '9px',
|
|
6583
6718
|
transform: arrowNoRotate || configStyles.SELECT.arrowNoRotate ? 'rotate(0deg)' : opened ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
@@ -6589,9 +6724,9 @@ const Select = ({
|
|
|
6589
6724
|
backgroundColor: optionsBackgroundColor ?? configStyles.SELECT.options.colors.background,
|
|
6590
6725
|
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'
|
|
6591
6726
|
},
|
|
6592
|
-
className: `${styles$
|
|
6727
|
+
className: `${styles$8['select-content-bottom']}`
|
|
6593
6728
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6594
|
-
className: `${styles$
|
|
6729
|
+
className: `${styles$8['select-content-bottom-inner']}`
|
|
6595
6730
|
}, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
|
|
6596
6731
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6597
6732
|
key: i,
|
|
@@ -6600,7 +6735,7 @@ const Select = ({
|
|
|
6600
6735
|
onClick: disabled ? _ => _ : () => handleSelectItem(option),
|
|
6601
6736
|
onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
|
|
6602
6737
|
onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
|
|
6603
|
-
className: `${styles$
|
|
6738
|
+
className: `${styles$8['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$8['ellipsis'] : ''}`,
|
|
6604
6739
|
style: {
|
|
6605
6740
|
overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
|
|
6606
6741
|
color: optionItemColor ?? configStyles.SELECT.options.item.color,
|
|
@@ -6665,6 +6800,10 @@ Select.propTypes = {
|
|
|
6665
6800
|
labelFontFamily: PropTypes.string,
|
|
6666
6801
|
labelMarginBottom: PropTypes.string,
|
|
6667
6802
|
labelTextTransform: PropTypes.string,
|
|
6803
|
+
lableShowMore: PropTypes.bool,
|
|
6804
|
+
labelShowLessText: PropTypes.string,
|
|
6805
|
+
labelShowMoreText: PropTypes.string,
|
|
6806
|
+
showMoreTextColor: PropTypes.string,
|
|
6668
6807
|
cursor: PropTypes.string,
|
|
6669
6808
|
errorSize: PropTypes.string,
|
|
6670
6809
|
errorColor: PropTypes.string,
|
|
@@ -6836,9 +6975,9 @@ const SvgToasterSuccess = ({
|
|
|
6836
6975
|
fill: fillColor ? fillColor : '#0DA574'
|
|
6837
6976
|
}));
|
|
6838
6977
|
|
|
6839
|
-
var css_248z$
|
|
6840
|
-
var styles$
|
|
6841
|
-
styleInject(css_248z$
|
|
6978
|
+
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}}";
|
|
6979
|
+
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"};
|
|
6980
|
+
styleInject(css_248z$8);
|
|
6842
6981
|
|
|
6843
6982
|
const ToasterType = {
|
|
6844
6983
|
info: 'info',
|
|
@@ -6905,8 +7044,8 @@ const Toast = ({
|
|
|
6905
7044
|
...propStyles
|
|
6906
7045
|
},
|
|
6907
7046
|
className: `
|
|
6908
|
-
${styles$
|
|
6909
|
-
${position === 'top-left' ? showToaster ? styles$
|
|
7047
|
+
${styles$7['notify-block']}
|
|
7048
|
+
${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'] : ''}
|
|
6910
7049
|
`
|
|
6911
7050
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6912
7051
|
style: {
|
|
@@ -6973,7 +7112,7 @@ const Toast = ({
|
|
|
6973
7112
|
fontFamily: titleStyles.font.family,
|
|
6974
7113
|
...titleStyles.props
|
|
6975
7114
|
},
|
|
6976
|
-
className: styles$
|
|
7115
|
+
className: styles$7['notify-title']
|
|
6977
7116
|
}, title), description && /*#__PURE__*/React__default.createElement("span", {
|
|
6978
7117
|
style: {
|
|
6979
7118
|
color: descriptionStyles.color,
|
|
@@ -6984,7 +7123,7 @@ const Toast = ({
|
|
|
6984
7123
|
fontFamily: descriptionStyles.font.family,
|
|
6985
7124
|
...descriptionStyles.props
|
|
6986
7125
|
},
|
|
6987
|
-
className: styles$
|
|
7126
|
+
className: styles$7['notify-desc']
|
|
6988
7127
|
}, description)), /*#__PURE__*/React__default.createElement("div", {
|
|
6989
7128
|
onClick: () => handleCloseToaster(ref),
|
|
6990
7129
|
style: {
|
|
@@ -7106,17 +7245,17 @@ const createToast = ({
|
|
|
7106
7245
|
}, error => {
|
|
7107
7246
|
console.error(error);
|
|
7108
7247
|
});
|
|
7109
|
-
if (!document.getElementById(styles$
|
|
7248
|
+
if (!document.getElementById(styles$7[position]) || document.getElementById(styles$7[position]) == null) {
|
|
7110
7249
|
toastParentBlock = document.createElement('div');
|
|
7111
7250
|
toastParentBlock.style.position = 'fixed';
|
|
7112
7251
|
toastParentBlock.style.display = 'flex';
|
|
7113
7252
|
toastParentBlock.style.zIndex = 999999999999;
|
|
7114
7253
|
toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
|
|
7115
|
-
toastParentBlock.setAttribute('id', styles$
|
|
7254
|
+
toastParentBlock.setAttribute('id', styles$7[position]);
|
|
7116
7255
|
toastParentBlock.appendChild(toastBlock);
|
|
7117
7256
|
toastify.appendChild(toastParentBlock);
|
|
7118
7257
|
} else {
|
|
7119
|
-
document.getElementById(styles$
|
|
7258
|
+
document.getElementById(styles$7[position]).appendChild(toastBlock);
|
|
7120
7259
|
}
|
|
7121
7260
|
};
|
|
7122
7261
|
const toast = {
|
|
@@ -7238,9 +7377,9 @@ const SvgTooltip = ({
|
|
|
7238
7377
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
7239
7378
|
}));
|
|
7240
7379
|
|
|
7241
|
-
var css_248z$
|
|
7242
|
-
var styles$
|
|
7243
|
-
styleInject(css_248z$
|
|
7380
|
+
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}";
|
|
7381
|
+
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"};
|
|
7382
|
+
styleInject(css_248z$7);
|
|
7244
7383
|
|
|
7245
7384
|
const TooltipDirections = {
|
|
7246
7385
|
TOP: 'top',
|
|
@@ -7328,7 +7467,7 @@ const Tooltip = ({
|
|
|
7328
7467
|
}, [showTooltip]);
|
|
7329
7468
|
useEffect(() => {
|
|
7330
7469
|
configStylesPromise.then(data => {
|
|
7331
|
-
setClassProps(() => classnames(styles$
|
|
7470
|
+
setClassProps(() => classnames(styles$6['tooltip-block'], className ?? data.TOOLTIP.className));
|
|
7332
7471
|
setConfigStyles(() => {
|
|
7333
7472
|
return {
|
|
7334
7473
|
...data
|
|
@@ -7350,7 +7489,7 @@ const Tooltip = ({
|
|
|
7350
7489
|
onClick: e => e.stopPropagation()
|
|
7351
7490
|
}, showTooltip ? /*#__PURE__*/React__default.createElement("div", {
|
|
7352
7491
|
ref: tooltipRef,
|
|
7353
|
-
className: `${styles$
|
|
7492
|
+
className: `${styles$6['tooltip']}`,
|
|
7354
7493
|
style: {
|
|
7355
7494
|
width: tooltipWidth ?? configStyles.TOOLTIP.width,
|
|
7356
7495
|
borderRadius: tooltipRadius ?? configStyles.TOOLTIP.radius,
|
|
@@ -7359,9 +7498,9 @@ const Tooltip = ({
|
|
|
7359
7498
|
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'
|
|
7360
7499
|
}
|
|
7361
7500
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7362
|
-
className: `${styles$
|
|
7501
|
+
className: `${styles$6['tooltip-rel']}`
|
|
7363
7502
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7364
|
-
className: `${styles$
|
|
7503
|
+
className: `${styles$6['tooltip-decor']}`,
|
|
7365
7504
|
style: {
|
|
7366
7505
|
backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
|
|
7367
7506
|
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',
|
|
@@ -7444,9 +7583,9 @@ const SvgCaptchaArrowDown = ({
|
|
|
7444
7583
|
fill: fillColor ? fillColor : '#00236A'
|
|
7445
7584
|
}));
|
|
7446
7585
|
|
|
7447
|
-
var css_248z$
|
|
7448
|
-
var styles$
|
|
7449
|
-
styleInject(css_248z$
|
|
7586
|
+
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}";
|
|
7587
|
+
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"};
|
|
7588
|
+
styleInject(css_248z$6);
|
|
7450
7589
|
|
|
7451
7590
|
const Captcha = ({
|
|
7452
7591
|
color,
|
|
@@ -7534,7 +7673,7 @@ const Captcha = ({
|
|
|
7534
7673
|
alignItems: 'center',
|
|
7535
7674
|
zIndex: 1
|
|
7536
7675
|
},
|
|
7537
|
-
className: styles$
|
|
7676
|
+
className: styles$5['start-point']
|
|
7538
7677
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7539
7678
|
style: {
|
|
7540
7679
|
position: 'absolute',
|
|
@@ -7560,8 +7699,8 @@ const Captcha = ({
|
|
|
7560
7699
|
backgroundColor: 'transparent'
|
|
7561
7700
|
},
|
|
7562
7701
|
className: `
|
|
7563
|
-
${styles$
|
|
7564
|
-
${+rangeProgress === rangeNumber ? styles$
|
|
7702
|
+
${styles$5['range']}
|
|
7703
|
+
${+rangeProgress === rangeNumber ? styles$5['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$5['range-error'] : styles$5['range-default']}
|
|
7565
7704
|
`,
|
|
7566
7705
|
onInput: handleRange
|
|
7567
7706
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7591,9 +7730,9 @@ Captcha.propTypes = {
|
|
|
7591
7730
|
getRange: PropTypes.func.isRequired
|
|
7592
7731
|
};
|
|
7593
7732
|
|
|
7594
|
-
var css_248z$
|
|
7595
|
-
var styles$
|
|
7596
|
-
styleInject(css_248z$
|
|
7733
|
+
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}";
|
|
7734
|
+
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"};
|
|
7735
|
+
styleInject(css_248z$5);
|
|
7597
7736
|
|
|
7598
7737
|
const Stepper = ({
|
|
7599
7738
|
stepLength,
|
|
@@ -7603,11 +7742,11 @@ const Stepper = ({
|
|
|
7603
7742
|
const [classProps, setClassProps] = useState({});
|
|
7604
7743
|
const [configStyles, setConfigStyles] = useState({});
|
|
7605
7744
|
useEffect(() => {
|
|
7606
|
-
className && setClassProps(() => classnames(className ?? configStyles.STEPPER.className, `${styles$
|
|
7745
|
+
className && setClassProps(() => classnames(className ?? configStyles.STEPPER.className, `${styles$4['stepper-container']} stepper-container-rem`));
|
|
7607
7746
|
}, [className]);
|
|
7608
7747
|
useEffect(() => {
|
|
7609
7748
|
configStylesPromise.then(data => {
|
|
7610
|
-
setClassProps(() => classnames(className ?? data.STEPPER.className, `${styles$
|
|
7749
|
+
setClassProps(() => classnames(className ?? data.STEPPER.className, `${styles$4['stepper-container']} stepper-container-rem`));
|
|
7611
7750
|
setConfigStyles(() => {
|
|
7612
7751
|
return {
|
|
7613
7752
|
...data
|
|
@@ -7623,10 +7762,10 @@ const Stepper = ({
|
|
|
7623
7762
|
let steppers = [];
|
|
7624
7763
|
for (let step = 1; step <= stepLength; step++) {
|
|
7625
7764
|
steppers.push(/*#__PURE__*/React__default.createElement("div", {
|
|
7626
|
-
className: classnames(`${step <= activeSteps ? styles$
|
|
7765
|
+
className: classnames(`${step <= activeSteps ? styles$4.activeRing : styles$4.bigRing}`),
|
|
7627
7766
|
key: step
|
|
7628
7767
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7629
|
-
className: classnames(`${step <= activeSteps ? styles$
|
|
7768
|
+
className: classnames(`${step <= activeSteps ? styles$4.smallActiveRing : styles$4.smallRing}`)
|
|
7630
7769
|
}, step <= activeSteps ? step : '')));
|
|
7631
7770
|
}
|
|
7632
7771
|
return steppers;
|
|
@@ -7756,6 +7895,10 @@ Checkbox.propTypes = {
|
|
|
7756
7895
|
data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
|
|
7757
7896
|
};
|
|
7758
7897
|
|
|
7898
|
+
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}";
|
|
7899
|
+
var styles$3 = {"show-more-text":"textarea-module_show-more-text__xQa-I"};
|
|
7900
|
+
styleInject(css_248z$4);
|
|
7901
|
+
|
|
7759
7902
|
const PositionSide = {
|
|
7760
7903
|
TOP: 'top',
|
|
7761
7904
|
BOTTOM: 'bottom'
|
|
@@ -7798,10 +7941,15 @@ const Textarea = ({
|
|
|
7798
7941
|
label,
|
|
7799
7942
|
labelSize,
|
|
7800
7943
|
labelColor,
|
|
7944
|
+
labelStyle,
|
|
7801
7945
|
labelWeight,
|
|
7802
7946
|
labelDisplay,
|
|
7803
7947
|
labelFontFamily,
|
|
7804
7948
|
labelMarginBottom,
|
|
7949
|
+
lableShowMore,
|
|
7950
|
+
labelShowLessText,
|
|
7951
|
+
labelShowMoreText,
|
|
7952
|
+
showMoreTextColor,
|
|
7805
7953
|
iconRequired,
|
|
7806
7954
|
useLabelTooltip,
|
|
7807
7955
|
labelTooltipColor,
|
|
@@ -7820,6 +7968,7 @@ const Textarea = ({
|
|
|
7820
7968
|
const [removeID, setRemoveID] = useState('');
|
|
7821
7969
|
const [isHover, setIsHover] = useState(false);
|
|
7822
7970
|
const [isFocus, setIsFocus] = useState(false);
|
|
7971
|
+
const [showMore, setShowMore] = useState(false);
|
|
7823
7972
|
const [innerValue, setInnerValue] = useState('');
|
|
7824
7973
|
const [classProps, setClassProps] = useState({});
|
|
7825
7974
|
const [tooltipElem, setTooltipElem] = useState(null);
|
|
@@ -7931,6 +8080,21 @@ const Textarea = ({
|
|
|
7931
8080
|
}
|
|
7932
8081
|
setRemoveID(() => '');
|
|
7933
8082
|
};
|
|
8083
|
+
const handleCheckTextWidth = () => {
|
|
8084
|
+
if (labelRef.current) {
|
|
8085
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
8086
|
+
const elementWidth = rect.width;
|
|
8087
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
8088
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
8089
|
+
return 'more';
|
|
8090
|
+
} else {
|
|
8091
|
+
return 'less';
|
|
8092
|
+
}
|
|
8093
|
+
}
|
|
8094
|
+
};
|
|
8095
|
+
const handleChangeShowMore = () => {
|
|
8096
|
+
setShowMore(() => !showMore);
|
|
8097
|
+
};
|
|
7934
8098
|
useEffect(() => {
|
|
7935
8099
|
if (value === undefined) {
|
|
7936
8100
|
alert('Please add value prop on Textarea component');
|
|
@@ -7945,6 +8109,15 @@ const Textarea = ({
|
|
|
7945
8109
|
useEffect(() => {
|
|
7946
8110
|
className && setClassProps(() => classnames(className ?? configStyles.TEXTAREA.className));
|
|
7947
8111
|
}, [className]);
|
|
8112
|
+
useEffect(() => {
|
|
8113
|
+
if ((useLabelTooltip || configStyles.TEXTAREA?.label?.useTooltip) && (lableShowMore || configStyles.TEXTAREA?.label?.showMore)) {
|
|
8114
|
+
alert(`
|
|
8115
|
+
Please use one of this props or config,
|
|
8116
|
+
use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
|
|
8117
|
+
or ( lableShowMore / configStyles.FILE.label.showMore )
|
|
8118
|
+
`);
|
|
8119
|
+
}
|
|
8120
|
+
}, [lableShowMore, useLabelTooltip, configStyles.TEXTAREA?.label?.useTooltip, configStyles.TEXTAREA?.label?.showMore]);
|
|
7948
8121
|
useEffect(() => {
|
|
7949
8122
|
configStylesPromise.then(data => {
|
|
7950
8123
|
setClassProps(() => classnames(className ?? data.TEXTAREA.className));
|
|
@@ -7986,13 +8159,34 @@ const Textarea = ({
|
|
|
7986
8159
|
ref: labelRef,
|
|
7987
8160
|
style: {
|
|
7988
8161
|
display: labelDisplay ?? configStyles.TEXTAREA.label.display,
|
|
7989
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'nowrap' : 'normal',
|
|
7990
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'hidden' : 'visible',
|
|
7991
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'ellipsis' : ''
|
|
8162
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
8163
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
8164
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'ellipsis' : '',
|
|
8165
|
+
wordBreak: 'break-all'
|
|
7992
8166
|
},
|
|
7993
8167
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
7994
8168
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
7995
|
-
}, label
|
|
8169
|
+
}, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.TEXTAREA.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
8170
|
+
className: styles$3['show-more-text'],
|
|
8171
|
+
style: {
|
|
8172
|
+
fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
|
|
8173
|
+
fontStyle: labelStyle ?? configStyles.TEXTAREA.label.font.style,
|
|
8174
|
+
fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
|
|
8175
|
+
fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family,
|
|
8176
|
+
color: showMoreTextColor ?? configStyles.TEXTAREA.label.showMoreTextColor
|
|
8177
|
+
},
|
|
8178
|
+
onClick: handleChangeShowMore
|
|
8179
|
+
}, ' ', " ", labelShowLessText ?? configStyles.TEXTAREA.label.showLessText) : ''), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.TEXTAREA.icon.required ? configStyles.TEXTAREA.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null)), handleCheckTextWidth() === 'more' && !showMore && (lableShowMore || configStyles.TEXTAREA.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
8180
|
+
className: styles$3['show-more-text'],
|
|
8181
|
+
style: {
|
|
8182
|
+
fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
|
|
8183
|
+
fontStyle: labelStyle ?? configStyles.TEXTAREA.label.font.style,
|
|
8184
|
+
fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
|
|
8185
|
+
fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family,
|
|
8186
|
+
color: showMoreTextColor ?? configStyles.TEXTAREA.label.showMoreTextColor
|
|
8187
|
+
},
|
|
8188
|
+
onClick: handleChangeShowMore
|
|
8189
|
+
}, labelShowMoreText ?? configStyles.TEXTAREA.label.showMoreText) : ''), showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default.createElement("span", {
|
|
7996
8190
|
style: {
|
|
7997
8191
|
width: 'fit-content',
|
|
7998
8192
|
flexShrink: 0
|
|
@@ -8095,11 +8289,16 @@ Textarea.propTypes = {
|
|
|
8095
8289
|
borderHoverColor: PropTypes.string,
|
|
8096
8290
|
label: PropTypes.string,
|
|
8097
8291
|
labelSize: PropTypes.string,
|
|
8292
|
+
labelStyle: PropTypes.string,
|
|
8098
8293
|
labelColor: PropTypes.string,
|
|
8099
8294
|
labelWeight: PropTypes.string,
|
|
8100
8295
|
labelDisplay: PropTypes.string,
|
|
8101
8296
|
labelFontFamily: PropTypes.string,
|
|
8102
8297
|
labelMarginBottom: PropTypes.string,
|
|
8298
|
+
lableShowMore: PropTypes.bool,
|
|
8299
|
+
labelShowLessText: PropTypes.string,
|
|
8300
|
+
labelShowMoreText: PropTypes.string,
|
|
8301
|
+
showMoreTextColor: PropTypes.string,
|
|
8103
8302
|
iconRequired: PropTypes.element,
|
|
8104
8303
|
useLabelTooltip: PropTypes.bool,
|
|
8105
8304
|
labelTooltipColor: PropTypes.string,
|
|
@@ -8496,8 +8695,8 @@ const Swipe = ({
|
|
|
8496
8695
|
}, child));
|
|
8497
8696
|
};
|
|
8498
8697
|
|
|
8499
|
-
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-
|
|
8500
|
-
var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","
|
|
8698
|
+
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%}}";
|
|
8699
|
+
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"};
|
|
8501
8700
|
styleInject(css_248z$2);
|
|
8502
8701
|
|
|
8503
8702
|
// import React, { useEffect, useRef } from 'react';
|
|
@@ -8601,7 +8800,7 @@ const handleNavigationChange = () => {
|
|
|
8601
8800
|
})(window.history);
|
|
8602
8801
|
const style = document.createElement('style');
|
|
8603
8802
|
function ResetTouchRemove(e) {
|
|
8604
|
-
if (e.target.closest('#
|
|
8803
|
+
if (e.target.closest('#swipable')) return;
|
|
8605
8804
|
e.preventDefault();
|
|
8606
8805
|
}
|
|
8607
8806
|
const swipe = {
|
|
@@ -9267,8 +9466,8 @@ Pagination.propTypes = {
|
|
|
9267
9466
|
borderRadius: PropTypes.string
|
|
9268
9467
|
};
|
|
9269
9468
|
|
|
9270
|
-
var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}";
|
|
9271
|
-
var styles = {"auto-complete":"autocomplete-module_auto-complete__oUOv9"};
|
|
9469
|
+
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}";
|
|
9470
|
+
var styles = {"auto-complete":"autocomplete-module_auto-complete__oUOv9","show-more-text":"autocomplete-module_show-more-text__1FXFu"};
|
|
9272
9471
|
styleInject(css_248z);
|
|
9273
9472
|
|
|
9274
9473
|
const Autocomplete = ({
|
|
@@ -9350,6 +9549,10 @@ const Autocomplete = ({
|
|
|
9350
9549
|
labelFontFamily,
|
|
9351
9550
|
labelMarginBottom,
|
|
9352
9551
|
labelTextTransform,
|
|
9552
|
+
lableShowMore,
|
|
9553
|
+
labelShowLessText,
|
|
9554
|
+
labelShowMoreText,
|
|
9555
|
+
showMoreTextColor,
|
|
9353
9556
|
iconRequired,
|
|
9354
9557
|
useLabelTooltip,
|
|
9355
9558
|
labelTooltipColor,
|
|
@@ -9375,6 +9578,7 @@ const Autocomplete = ({
|
|
|
9375
9578
|
const [removeID, setRemoveID] = useState('');
|
|
9376
9579
|
const [isHover, setIsHover] = useState(false);
|
|
9377
9580
|
const [isFocus, setIsFocus] = useState(false);
|
|
9581
|
+
const [showMore, setShowMore] = useState(false);
|
|
9378
9582
|
const [innerError, setInnerError] = useState('');
|
|
9379
9583
|
const [innerValue, setInnerValue] = useState('');
|
|
9380
9584
|
const [classProps, setClassProps] = useState({});
|
|
@@ -9567,6 +9771,21 @@ const Autocomplete = ({
|
|
|
9567
9771
|
}
|
|
9568
9772
|
setRemoveID(() => '');
|
|
9569
9773
|
};
|
|
9774
|
+
const handleCheckTextWidth = () => {
|
|
9775
|
+
if (labelRef.current) {
|
|
9776
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
9777
|
+
const elementWidth = rect.width;
|
|
9778
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
9779
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
9780
|
+
return 'more';
|
|
9781
|
+
} else {
|
|
9782
|
+
return 'less';
|
|
9783
|
+
}
|
|
9784
|
+
}
|
|
9785
|
+
};
|
|
9786
|
+
const handleChangeShowMore = () => {
|
|
9787
|
+
setShowMore(() => !showMore);
|
|
9788
|
+
};
|
|
9570
9789
|
useEffect(() => {
|
|
9571
9790
|
if (options === undefined) {
|
|
9572
9791
|
alert('Please add options prop');
|
|
@@ -9601,6 +9820,15 @@ const Autocomplete = ({
|
|
|
9601
9820
|
useEffect(() => {
|
|
9602
9821
|
className && setClassProps(() => classnames(className ?? configStyles.AUTOCOMPLETE.className, styles['auto-complete']));
|
|
9603
9822
|
}, [className]);
|
|
9823
|
+
useEffect(() => {
|
|
9824
|
+
if ((useLabelTooltip || configStyles.AUTOCOMPLETE?.label?.useTooltip) && (lableShowMore || configStyles.AUTOCOMPLETE?.label?.showMore)) {
|
|
9825
|
+
alert(`
|
|
9826
|
+
Please use one of this props or config,
|
|
9827
|
+
use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
|
|
9828
|
+
or ( lableShowMore / configStyles.FILE.label.showMore )
|
|
9829
|
+
`);
|
|
9830
|
+
}
|
|
9831
|
+
}, [lableShowMore, useLabelTooltip, configStyles.AUTOCOMPLETE?.label?.useTooltip, configStyles.AUTOCOMPLETE?.label?.showMore]);
|
|
9604
9832
|
useEffect(() => {
|
|
9605
9833
|
configStylesPromise.then(data => {
|
|
9606
9834
|
setClassProps(() => classnames(className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
|
|
@@ -9639,13 +9867,34 @@ const Autocomplete = ({
|
|
|
9639
9867
|
lineHeight: labelLineHeight ?? configStyles.AUTOCOMPLETE.label.lineHeight,
|
|
9640
9868
|
marginBottom: labelMarginBottom ?? configStyles.AUTOCOMPLETE.label.marginBottom,
|
|
9641
9869
|
textTransform: labelTextTransform ?? configStyles.AUTOCOMPLETE.label.textTransform,
|
|
9642
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'nowrap' : 'normal',
|
|
9643
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'hidden' : 'visible',
|
|
9644
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'ellipsis' : ''
|
|
9870
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
9871
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
9872
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'ellipsis' : '',
|
|
9873
|
+
wordBreak: 'break-all'
|
|
9645
9874
|
},
|
|
9646
9875
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
9647
9876
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
9648
|
-
}, label
|
|
9877
|
+
}, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.AUTOCOMPLETE.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
9878
|
+
className: styles['show-more-text'],
|
|
9879
|
+
style: {
|
|
9880
|
+
fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
|
|
9881
|
+
fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
|
|
9882
|
+
fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
|
|
9883
|
+
fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
|
|
9884
|
+
color: showMoreTextColor ?? configStyles.AUTOCOMPLETE.label.showMoreTextColor
|
|
9885
|
+
},
|
|
9886
|
+
onClick: handleChangeShowMore
|
|
9887
|
+
}, ' ', " ", labelShowLessText ?? configStyles.AUTOCOMPLETE.label.showLessText) : ''), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null)), handleCheckTextWidth() === 'more' && !showMore && (lableShowMore || configStyles.AUTOCOMPLETE.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
9888
|
+
className: styles['show-more-text'],
|
|
9889
|
+
style: {
|
|
9890
|
+
fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
|
|
9891
|
+
fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
|
|
9892
|
+
fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
|
|
9893
|
+
fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
|
|
9894
|
+
color: showMoreTextColor ?? configStyles.AUTOCOMPLETE.label.showMoreTextColor
|
|
9895
|
+
},
|
|
9896
|
+
onClick: handleChangeShowMore
|
|
9897
|
+
}, labelShowMoreText ?? configStyles.AUTOCOMPLETE.label.showMoreText) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
9649
9898
|
style: {
|
|
9650
9899
|
display: contentDisplay ?? configStyles.AUTOCOMPLETE.parent.display,
|
|
9651
9900
|
position: contentPosition ?? configStyles.AUTOCOMPLETE.parent.position,
|
|
@@ -9790,7 +10039,11 @@ Autocomplete.propTypes = {
|
|
|
9790
10039
|
labelTooltipFontWeight: PropTypes.string,
|
|
9791
10040
|
labelTooltipBorderRadius: PropTypes.string,
|
|
9792
10041
|
labelTooltipBackgroundColor: PropTypes.string,
|
|
9793
|
-
backgroundDisableColor: PropTypes.string
|
|
10042
|
+
backgroundDisableColor: PropTypes.string,
|
|
10043
|
+
lableShowMore: PropTypes.bool,
|
|
10044
|
+
labelShowLessText: PropTypes.string,
|
|
10045
|
+
labelShowMoreText: PropTypes.string,
|
|
10046
|
+
showMoreTextColor: PropTypes.string
|
|
9794
10047
|
};
|
|
9795
10048
|
|
|
9796
10049
|
export { Accordion, Autocomplete, Button, Captcha, Checkbox, DirectionMode, File, IconSides, Input, InputTypes, Modal, Pagination, PositionSide, Radio, RadioDirectionMode, Select, Stepper, SwipeModal, Table, Textarea, Toaster, Tooltip, TooltipDirections, Typography, TypographyType, swipe, toast };
|