@xaypay/tui 0.2.32 → 0.2.34
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 +37 -0
- package/dist/index.es.js +345 -91
- package/dist/index.js +345 -91
- 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',
|
|
@@ -3071,9 +3100,9 @@ SingleCheckbox.propTypes = {
|
|
|
3071
3100
|
ignoreDisabledForChecked: PropTypes.bool
|
|
3072
3101
|
};
|
|
3073
3102
|
|
|
3074
|
-
var css_248z$
|
|
3075
|
-
var styles$
|
|
3076
|
-
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);
|
|
3077
3106
|
|
|
3078
3107
|
/* eslint-disable no-prototype-builtins */
|
|
3079
3108
|
const TH = ({
|
|
@@ -3115,7 +3144,7 @@ const TH = ({
|
|
|
3115
3144
|
borderColor: hideBorder ? 'transparent' : '#eeeeee'
|
|
3116
3145
|
},
|
|
3117
3146
|
onClick: handleHeaderItemClick,
|
|
3118
|
-
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$
|
|
3147
|
+
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$b['sorting-arrows'] : '' : ''}`
|
|
3119
3148
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3120
3149
|
style: {
|
|
3121
3150
|
display: 'flex',
|
|
@@ -3276,7 +3305,7 @@ const TD = ({
|
|
|
3276
3305
|
},
|
|
3277
3306
|
id: newItem.id,
|
|
3278
3307
|
type: newItem.type,
|
|
3279
|
-
className: styles$
|
|
3308
|
+
className: styles$b['td-span'],
|
|
3280
3309
|
key: `${newItem.id}_${newIndex}`,
|
|
3281
3310
|
onClick: e => handleCheckActions(e, newItem, 'type', newIndex),
|
|
3282
3311
|
onMouseEnter: () => handleMouseEnter(newItem, newIndex),
|
|
@@ -3300,7 +3329,7 @@ const TD = ({
|
|
|
3300
3329
|
},
|
|
3301
3330
|
id: iT.id ? iT.id : '',
|
|
3302
3331
|
type: iT.type ? iT.type : '',
|
|
3303
|
-
className: styles$
|
|
3332
|
+
className: styles$b['td-span'],
|
|
3304
3333
|
key: `${iT.id || iT.content}_${iN}`,
|
|
3305
3334
|
onMouseEnter: () => handleMouseEnter(iT, iN),
|
|
3306
3335
|
onMouseLeave: () => handleMouseLeave(),
|
|
@@ -3326,7 +3355,7 @@ const TD = ({
|
|
|
3326
3355
|
cursor: 'pointer'
|
|
3327
3356
|
},
|
|
3328
3357
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
3329
|
-
className: styles$
|
|
3358
|
+
className: styles$b['td-span']
|
|
3330
3359
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'draggableIcon') && /*#__PURE__*/React__default.createElement("div", {
|
|
3331
3360
|
draggable: true,
|
|
3332
3361
|
style: {
|
|
@@ -3395,7 +3424,7 @@ const TD = ({
|
|
|
3395
3424
|
}, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
3396
3425
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
3397
3426
|
key: `${optionItem.content}_${optionIndex}`,
|
|
3398
|
-
className: styles$
|
|
3427
|
+
className: styles$b['dots-option-item'],
|
|
3399
3428
|
style: {
|
|
3400
3429
|
color: '#3C393E',
|
|
3401
3430
|
fontSize: '14px',
|
|
@@ -3437,7 +3466,7 @@ const TD = ({
|
|
|
3437
3466
|
}, innerItem.content.map((contInnerItem, contInnerIndex) => {
|
|
3438
3467
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
3439
3468
|
key: `${contInnerItem}_${contInnerIndex}`,
|
|
3440
|
-
className: styles$
|
|
3469
|
+
className: styles$b['list-text'],
|
|
3441
3470
|
style: {
|
|
3442
3471
|
maxWidth: '100%',
|
|
3443
3472
|
color: openListColor,
|
|
@@ -3454,7 +3483,7 @@ const TD = ({
|
|
|
3454
3483
|
} else {
|
|
3455
3484
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
3456
3485
|
key: `${innerItem}_${innerItemIndex}`,
|
|
3457
|
-
className: styles$
|
|
3486
|
+
className: styles$b['list-text'],
|
|
3458
3487
|
style: {
|
|
3459
3488
|
maxWidth: '100%',
|
|
3460
3489
|
color: openListColor,
|
|
@@ -3475,7 +3504,7 @@ const TD = ({
|
|
|
3475
3504
|
cursor: 'pointer'
|
|
3476
3505
|
},
|
|
3477
3506
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
3478
|
-
className: styles$
|
|
3507
|
+
className: styles$b['td-span']
|
|
3479
3508
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
3480
3509
|
};
|
|
3481
3510
|
|
|
@@ -4460,7 +4489,7 @@ const Table = ({
|
|
|
4460
4489
|
borderRightColor: innerIndex === Object.values(draggedItem).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor
|
|
4461
4490
|
});
|
|
4462
4491
|
})))), !body.length && /*#__PURE__*/React__default.createElement("div", {
|
|
4463
|
-
className: styles$
|
|
4492
|
+
className: styles$b['no-tabel-data']
|
|
4464
4493
|
}, /*#__PURE__*/React__default.createElement("p", null, "\u054F\u057E\u0575\u0561\u056C\u0576\u0565\u0580 \u0579\u056F\u0561\u0576")));
|
|
4465
4494
|
};
|
|
4466
4495
|
Table.propTypes = {
|
|
@@ -4511,9 +4540,9 @@ Table.propTypes = {
|
|
|
4511
4540
|
clickableRowColumnTd: PropTypes.bool
|
|
4512
4541
|
};
|
|
4513
4542
|
|
|
4514
|
-
var css_248z$
|
|
4515
|
-
var styles$
|
|
4516
|
-
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);
|
|
4517
4546
|
|
|
4518
4547
|
const SvgNext = ({
|
|
4519
4548
|
title,
|
|
@@ -4834,7 +4863,7 @@ const Modal = ({
|
|
|
4834
4863
|
justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
|
|
4835
4864
|
}
|
|
4836
4865
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4837
|
-
className: `${styles$
|
|
4866
|
+
className: `${styles$a['animation__modal']}`,
|
|
4838
4867
|
onClick: handleStopClosing,
|
|
4839
4868
|
style: {
|
|
4840
4869
|
position: 'relative',
|
|
@@ -5417,9 +5446,9 @@ const NumberInput = ({
|
|
|
5417
5446
|
});
|
|
5418
5447
|
};
|
|
5419
5448
|
|
|
5420
|
-
var css_248z$
|
|
5421
|
-
var styles$
|
|
5422
|
-
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);
|
|
5423
5452
|
|
|
5424
5453
|
const InputTypes = {
|
|
5425
5454
|
TEL: 'tel',
|
|
@@ -5513,6 +5542,10 @@ const Input = ({
|
|
|
5513
5542
|
labelFontFamily,
|
|
5514
5543
|
labelLineHeight,
|
|
5515
5544
|
labelMarginBottom,
|
|
5545
|
+
lableShowMore,
|
|
5546
|
+
labelShowLessText,
|
|
5547
|
+
labelShowMoreText,
|
|
5548
|
+
showMoreTextColor,
|
|
5516
5549
|
iconRequired,
|
|
5517
5550
|
useLabelTooltip,
|
|
5518
5551
|
labelTooltipColor,
|
|
@@ -5531,6 +5564,7 @@ const Input = ({
|
|
|
5531
5564
|
const [show, setShow] = useState(false);
|
|
5532
5565
|
const [removeID, setRemoveID] = useState('');
|
|
5533
5566
|
const [isHover, setIsHover] = useState(false);
|
|
5567
|
+
const [showMore, setShowMore] = useState(false);
|
|
5534
5568
|
const [classProps, setClassProps] = useState({});
|
|
5535
5569
|
const [innerValue, setInnerValue] = useState('');
|
|
5536
5570
|
const [tooltipElem, setTooltipElem] = useState(null);
|
|
@@ -5657,6 +5691,21 @@ const Input = ({
|
|
|
5657
5691
|
}
|
|
5658
5692
|
setRemoveID(() => '');
|
|
5659
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
|
+
};
|
|
5660
5709
|
useEffect(() => {
|
|
5661
5710
|
if (errorMessage) {
|
|
5662
5711
|
setInnerErrorMessage(errorMessage);
|
|
@@ -5672,7 +5721,7 @@ const Input = ({
|
|
|
5672
5721
|
setInnerValue(() => val);
|
|
5673
5722
|
}, [value]);
|
|
5674
5723
|
useEffect(() => {
|
|
5675
|
-
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']));
|
|
5676
5725
|
}, [className]);
|
|
5677
5726
|
useEffect(() => {
|
|
5678
5727
|
setInnerErrorIcon(() => errorIcon);
|
|
@@ -5690,9 +5739,18 @@ const Input = ({
|
|
|
5690
5739
|
setInnerLabelIconSide(() => labelIconSide);
|
|
5691
5740
|
}
|
|
5692
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]);
|
|
5693
5751
|
useEffect(() => {
|
|
5694
5752
|
configStylesPromise.then(data => {
|
|
5695
|
-
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']));
|
|
5696
5754
|
setConfigStyles(() => {
|
|
5697
5755
|
return {
|
|
5698
5756
|
...data
|
|
@@ -5736,13 +5794,24 @@ const Input = ({
|
|
|
5736
5794
|
lineHeight: labelLineHeight ?? configStyles.INPUT.label.lineHeight,
|
|
5737
5795
|
marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom,
|
|
5738
5796
|
fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
|
|
5739
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'nowrap' : 'normal',
|
|
5740
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'hidden' : 'visible',
|
|
5741
|
-
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'
|
|
5742
5801
|
},
|
|
5743
5802
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
5744
5803
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
5745
|
-
}, 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", {
|
|
5746
5815
|
alt: "label icon",
|
|
5747
5816
|
src: innerLabelIcon,
|
|
5748
5817
|
style: {
|
|
@@ -5752,8 +5821,19 @@ const Input = ({
|
|
|
5752
5821
|
marginLeft: labelIconMargin ?? configStyles.INPUT.label.iconMargin
|
|
5753
5822
|
},
|
|
5754
5823
|
onClick: labelAction ? () => labelAction() : _ => _
|
|
5755
|
-
}) : ''
|
|
5756
|
-
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
|
+
marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom
|
|
5833
|
+
},
|
|
5834
|
+
onClick: handleChangeShowMore
|
|
5835
|
+
}, labelShowMoreText ?? configStyles.INPUT.label.showMoreText) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
5836
|
+
className: `${styles$9['input-content']}`,
|
|
5757
5837
|
style: {
|
|
5758
5838
|
width: width ?? configStyles.INPUT.width,
|
|
5759
5839
|
borderRadius: radius ?? configStyles.INPUT.radius,
|
|
@@ -5985,6 +6065,10 @@ Input.propTypes = {
|
|
|
5985
6065
|
labelFontFamily: PropTypes.string,
|
|
5986
6066
|
labelIconMargin: PropTypes.string,
|
|
5987
6067
|
labelMarginBottom: PropTypes.string,
|
|
6068
|
+
lableShowMore: PropTypes.bool,
|
|
6069
|
+
labelShowLessText: PropTypes.string,
|
|
6070
|
+
labelShowMoreText: PropTypes.string,
|
|
6071
|
+
showMoreTextColor: PropTypes.string,
|
|
5988
6072
|
useLabelTooltip: PropTypes.bool,
|
|
5989
6073
|
labelTooltipColor: PropTypes.string,
|
|
5990
6074
|
labelTooltipPadding: PropTypes.string,
|
|
@@ -6205,9 +6289,9 @@ const SvgArrow = ({
|
|
|
6205
6289
|
fill: fillColor ? fillColor : '#3C393E'
|
|
6206
6290
|
}));
|
|
6207
6291
|
|
|
6208
|
-
var css_248z$
|
|
6209
|
-
var styles$
|
|
6210
|
-
styleInject(css_248z$
|
|
6292
|
+
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}}";
|
|
6293
|
+
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"};
|
|
6294
|
+
styleInject(css_248z$9);
|
|
6211
6295
|
|
|
6212
6296
|
const Select = ({
|
|
6213
6297
|
dots,
|
|
@@ -6239,6 +6323,10 @@ const Select = ({
|
|
|
6239
6323
|
labelFontFamily,
|
|
6240
6324
|
labelMarginBottom,
|
|
6241
6325
|
labelTextTransform,
|
|
6326
|
+
lableShowMore,
|
|
6327
|
+
labelShowLessText,
|
|
6328
|
+
labelShowMoreText,
|
|
6329
|
+
showMoreTextColor,
|
|
6242
6330
|
iconRequired,
|
|
6243
6331
|
useLabelTooltip,
|
|
6244
6332
|
labelTooltipColor,
|
|
@@ -6299,6 +6387,7 @@ const Select = ({
|
|
|
6299
6387
|
const [opened, setOpened] = useState(false);
|
|
6300
6388
|
const [removeID, setRemoveID] = useState('');
|
|
6301
6389
|
const [isHover, setIsHover] = useState(false);
|
|
6390
|
+
const [showMore, setShowMore] = useState(false);
|
|
6302
6391
|
const [classProps, setClassProps] = useState({});
|
|
6303
6392
|
const [newSelected, setNewSelected] = useState([]);
|
|
6304
6393
|
const [tooltipElem, setTooltipElem] = useState(null);
|
|
@@ -6440,6 +6529,21 @@ const Select = ({
|
|
|
6440
6529
|
}
|
|
6441
6530
|
setRemoveID(() => '');
|
|
6442
6531
|
};
|
|
6532
|
+
const handleCheckTextWidth = () => {
|
|
6533
|
+
if (labelRef.current) {
|
|
6534
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
6535
|
+
const elementWidth = rect.width;
|
|
6536
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
6537
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
6538
|
+
return 'more';
|
|
6539
|
+
} else {
|
|
6540
|
+
return 'less';
|
|
6541
|
+
}
|
|
6542
|
+
}
|
|
6543
|
+
};
|
|
6544
|
+
const handleChangeShowMore = () => {
|
|
6545
|
+
setShowMore(() => !showMore);
|
|
6546
|
+
};
|
|
6443
6547
|
useEffect(() => {
|
|
6444
6548
|
if (opened) {
|
|
6445
6549
|
const checkIfClickedOutside = e => {
|
|
@@ -6481,6 +6585,15 @@ const Select = ({
|
|
|
6481
6585
|
useEffect(() => {
|
|
6482
6586
|
className && setClassProps(() => classnames(className ?? configStyles.SELECT.className));
|
|
6483
6587
|
}, [className]);
|
|
6588
|
+
useEffect(() => {
|
|
6589
|
+
if ((useLabelTooltip || configStyles.SELECT?.label?.useTooltip) && (lableShowMore || configStyles.SELECT?.label?.showMore)) {
|
|
6590
|
+
alert(`
|
|
6591
|
+
Please use one of this props or config,
|
|
6592
|
+
use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
|
|
6593
|
+
or ( lableShowMore / configStyles.FILE.label.showMore )
|
|
6594
|
+
`);
|
|
6595
|
+
}
|
|
6596
|
+
}, [lableShowMore, useLabelTooltip, configStyles.SELECT?.label?.useTooltip, configStyles.SELECT?.label?.showMore]);
|
|
6484
6597
|
useEffect(() => {
|
|
6485
6598
|
configStylesPromise.then(data => {
|
|
6486
6599
|
setClassProps(() => classnames(className ?? data.SELECT.className));
|
|
@@ -6520,18 +6633,40 @@ const Select = ({
|
|
|
6520
6633
|
lineHeight: labelLineHeight ?? configStyles.SELECT.label.lineHeight,
|
|
6521
6634
|
marginBottom: labelMarginBottom ?? configStyles.SELECT.label.marginBottom,
|
|
6522
6635
|
textTransform: labelTextTransform ?? configStyles.SELECT.label.textTransform,
|
|
6523
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'nowrap' : 'normal',
|
|
6524
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'hidden' : 'visible',
|
|
6525
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'ellipsis' : ''
|
|
6636
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
6637
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
6638
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.SELECT.label.showMore) && !showMore ? 'ellipsis' : '',
|
|
6639
|
+
wordBreak: 'break-all'
|
|
6526
6640
|
},
|
|
6527
6641
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
6528
6642
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
6529
|
-
}, label
|
|
6643
|
+
}, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.SELECT.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
6644
|
+
className: styles$8['show-more-text'],
|
|
6645
|
+
style: {
|
|
6646
|
+
fontSize: labelFontSize ?? configStyles.SELECT.label.font.size,
|
|
6647
|
+
fontStyle: labelFontStyle ?? configStyles.SELECT.label.font.style,
|
|
6648
|
+
fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
|
|
6649
|
+
fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
|
|
6650
|
+
color: showMoreTextColor ?? configStyles.SELECT.label.showMoreTextColor
|
|
6651
|
+
},
|
|
6652
|
+
onClick: handleChangeShowMore
|
|
6653
|
+
}, ' ', " ", 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", {
|
|
6654
|
+
className: styles$8['show-more-text'],
|
|
6655
|
+
style: {
|
|
6656
|
+
fontSize: labelFontSize ?? configStyles.SELECT.label.font.size,
|
|
6657
|
+
fontStyle: labelFontStyle ?? configStyles.SELECT.label.font.style,
|
|
6658
|
+
fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
|
|
6659
|
+
fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
|
|
6660
|
+
color: showMoreTextColor ?? configStyles.SELECT.label.showMoreTextColor,
|
|
6661
|
+
marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom
|
|
6662
|
+
},
|
|
6663
|
+
onClick: handleChangeShowMore
|
|
6664
|
+
}, labelShowMoreText ?? configStyles.SELECT.label.showMoreText) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
6530
6665
|
ref: ref
|
|
6531
6666
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6532
|
-
className: styles$
|
|
6667
|
+
className: styles$8['select-content']
|
|
6533
6668
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6534
|
-
className: `${styles$
|
|
6669
|
+
className: `${styles$8['select-content-top']}`,
|
|
6535
6670
|
style: {
|
|
6536
6671
|
cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
|
|
6537
6672
|
minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
|
|
@@ -6568,18 +6703,18 @@ const Select = ({
|
|
|
6568
6703
|
}
|
|
6569
6704
|
}
|
|
6570
6705
|
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
6571
|
-
className: `${styles$
|
|
6706
|
+
className: `${styles$8['select-content-top-icon']}`,
|
|
6572
6707
|
style: {
|
|
6573
6708
|
padding: lang ? '0px' : insidePagination ? '0px 5px' : '0 5px 0 20px'
|
|
6574
6709
|
}
|
|
6575
6710
|
}, !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", {
|
|
6576
|
-
className: `${styles$
|
|
6711
|
+
className: `${styles$8['close-icon']}`,
|
|
6577
6712
|
onClick: disabled ? _ => _ : handleClearSelect,
|
|
6578
6713
|
style: {
|
|
6579
6714
|
marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
|
|
6580
6715
|
}
|
|
6581
6716
|
}, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default.createElement("div", {
|
|
6582
|
-
className: `${styles$
|
|
6717
|
+
className: `${styles$8['arrow-icon']}`,
|
|
6583
6718
|
style: {
|
|
6584
6719
|
marginLeft: lang ? '0px' : '9px',
|
|
6585
6720
|
transform: arrowNoRotate || configStyles.SELECT.arrowNoRotate ? 'rotate(0deg)' : opened ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
@@ -6591,9 +6726,9 @@ const Select = ({
|
|
|
6591
6726
|
backgroundColor: optionsBackgroundColor ?? configStyles.SELECT.options.colors.background,
|
|
6592
6727
|
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'
|
|
6593
6728
|
},
|
|
6594
|
-
className: `${styles$
|
|
6729
|
+
className: `${styles$8['select-content-bottom']}`
|
|
6595
6730
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6596
|
-
className: `${styles$
|
|
6731
|
+
className: `${styles$8['select-content-bottom-inner']}`
|
|
6597
6732
|
}, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
|
|
6598
6733
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6599
6734
|
key: i,
|
|
@@ -6602,7 +6737,7 @@ const Select = ({
|
|
|
6602
6737
|
onClick: disabled ? _ => _ : () => handleSelectItem(option),
|
|
6603
6738
|
onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
|
|
6604
6739
|
onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
|
|
6605
|
-
className: `${styles$
|
|
6740
|
+
className: `${styles$8['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$8['ellipsis'] : ''}`,
|
|
6606
6741
|
style: {
|
|
6607
6742
|
overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
|
|
6608
6743
|
color: optionItemColor ?? configStyles.SELECT.options.item.color,
|
|
@@ -6667,6 +6802,10 @@ Select.propTypes = {
|
|
|
6667
6802
|
labelFontFamily: PropTypes.string,
|
|
6668
6803
|
labelMarginBottom: PropTypes.string,
|
|
6669
6804
|
labelTextTransform: PropTypes.string,
|
|
6805
|
+
lableShowMore: PropTypes.bool,
|
|
6806
|
+
labelShowLessText: PropTypes.string,
|
|
6807
|
+
labelShowMoreText: PropTypes.string,
|
|
6808
|
+
showMoreTextColor: PropTypes.string,
|
|
6670
6809
|
cursor: PropTypes.string,
|
|
6671
6810
|
errorSize: PropTypes.string,
|
|
6672
6811
|
errorColor: PropTypes.string,
|
|
@@ -6838,9 +6977,9 @@ const SvgToasterSuccess = ({
|
|
|
6838
6977
|
fill: fillColor ? fillColor : '#0DA574'
|
|
6839
6978
|
}));
|
|
6840
6979
|
|
|
6841
|
-
var css_248z$
|
|
6842
|
-
var styles$
|
|
6843
|
-
styleInject(css_248z$
|
|
6980
|
+
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}}";
|
|
6981
|
+
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"};
|
|
6982
|
+
styleInject(css_248z$8);
|
|
6844
6983
|
|
|
6845
6984
|
const ToasterType = {
|
|
6846
6985
|
info: 'info',
|
|
@@ -6907,8 +7046,8 @@ const Toast = ({
|
|
|
6907
7046
|
...propStyles
|
|
6908
7047
|
},
|
|
6909
7048
|
className: `
|
|
6910
|
-
${styles$
|
|
6911
|
-
${position === 'top-left' ? showToaster ? styles$
|
|
7049
|
+
${styles$7['notify-block']}
|
|
7050
|
+
${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'] : ''}
|
|
6912
7051
|
`
|
|
6913
7052
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6914
7053
|
style: {
|
|
@@ -6975,7 +7114,7 @@ const Toast = ({
|
|
|
6975
7114
|
fontFamily: titleStyles.font.family,
|
|
6976
7115
|
...titleStyles.props
|
|
6977
7116
|
},
|
|
6978
|
-
className: styles$
|
|
7117
|
+
className: styles$7['notify-title']
|
|
6979
7118
|
}, title), description && /*#__PURE__*/React__default.createElement("span", {
|
|
6980
7119
|
style: {
|
|
6981
7120
|
color: descriptionStyles.color,
|
|
@@ -6986,7 +7125,7 @@ const Toast = ({
|
|
|
6986
7125
|
fontFamily: descriptionStyles.font.family,
|
|
6987
7126
|
...descriptionStyles.props
|
|
6988
7127
|
},
|
|
6989
|
-
className: styles$
|
|
7128
|
+
className: styles$7['notify-desc']
|
|
6990
7129
|
}, description)), /*#__PURE__*/React__default.createElement("div", {
|
|
6991
7130
|
onClick: () => handleCloseToaster(ref),
|
|
6992
7131
|
style: {
|
|
@@ -7108,17 +7247,17 @@ const createToast = ({
|
|
|
7108
7247
|
}, error => {
|
|
7109
7248
|
console.error(error);
|
|
7110
7249
|
});
|
|
7111
|
-
if (!document.getElementById(styles$
|
|
7250
|
+
if (!document.getElementById(styles$7[position]) || document.getElementById(styles$7[position]) == null) {
|
|
7112
7251
|
toastParentBlock = document.createElement('div');
|
|
7113
7252
|
toastParentBlock.style.position = 'fixed';
|
|
7114
7253
|
toastParentBlock.style.display = 'flex';
|
|
7115
7254
|
toastParentBlock.style.zIndex = 999999999999;
|
|
7116
7255
|
toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
|
|
7117
|
-
toastParentBlock.setAttribute('id', styles$
|
|
7256
|
+
toastParentBlock.setAttribute('id', styles$7[position]);
|
|
7118
7257
|
toastParentBlock.appendChild(toastBlock);
|
|
7119
7258
|
toastify.appendChild(toastParentBlock);
|
|
7120
7259
|
} else {
|
|
7121
|
-
document.getElementById(styles$
|
|
7260
|
+
document.getElementById(styles$7[position]).appendChild(toastBlock);
|
|
7122
7261
|
}
|
|
7123
7262
|
};
|
|
7124
7263
|
const toast = {
|
|
@@ -7240,9 +7379,9 @@ const SvgTooltip = ({
|
|
|
7240
7379
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
7241
7380
|
}));
|
|
7242
7381
|
|
|
7243
|
-
var css_248z$
|
|
7244
|
-
var styles$
|
|
7245
|
-
styleInject(css_248z$
|
|
7382
|
+
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}";
|
|
7383
|
+
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"};
|
|
7384
|
+
styleInject(css_248z$7);
|
|
7246
7385
|
|
|
7247
7386
|
const TooltipDirections = {
|
|
7248
7387
|
TOP: 'top',
|
|
@@ -7330,7 +7469,7 @@ const Tooltip = ({
|
|
|
7330
7469
|
}, [showTooltip]);
|
|
7331
7470
|
useEffect(() => {
|
|
7332
7471
|
configStylesPromise.then(data => {
|
|
7333
|
-
setClassProps(() => classnames(styles$
|
|
7472
|
+
setClassProps(() => classnames(styles$6['tooltip-block'], className ?? data.TOOLTIP.className));
|
|
7334
7473
|
setConfigStyles(() => {
|
|
7335
7474
|
return {
|
|
7336
7475
|
...data
|
|
@@ -7352,7 +7491,7 @@ const Tooltip = ({
|
|
|
7352
7491
|
onClick: e => e.stopPropagation()
|
|
7353
7492
|
}, showTooltip ? /*#__PURE__*/React__default.createElement("div", {
|
|
7354
7493
|
ref: tooltipRef,
|
|
7355
|
-
className: `${styles$
|
|
7494
|
+
className: `${styles$6['tooltip']}`,
|
|
7356
7495
|
style: {
|
|
7357
7496
|
width: tooltipWidth ?? configStyles.TOOLTIP.width,
|
|
7358
7497
|
borderRadius: tooltipRadius ?? configStyles.TOOLTIP.radius,
|
|
@@ -7361,9 +7500,9 @@ const Tooltip = ({
|
|
|
7361
7500
|
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'
|
|
7362
7501
|
}
|
|
7363
7502
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7364
|
-
className: `${styles$
|
|
7503
|
+
className: `${styles$6['tooltip-rel']}`
|
|
7365
7504
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7366
|
-
className: `${styles$
|
|
7505
|
+
className: `${styles$6['tooltip-decor']}`,
|
|
7367
7506
|
style: {
|
|
7368
7507
|
backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
|
|
7369
7508
|
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',
|
|
@@ -7446,9 +7585,9 @@ const SvgCaptchaArrowDown = ({
|
|
|
7446
7585
|
fill: fillColor ? fillColor : '#00236A'
|
|
7447
7586
|
}));
|
|
7448
7587
|
|
|
7449
|
-
var css_248z$
|
|
7450
|
-
var styles$
|
|
7451
|
-
styleInject(css_248z$
|
|
7588
|
+
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}";
|
|
7589
|
+
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"};
|
|
7590
|
+
styleInject(css_248z$6);
|
|
7452
7591
|
|
|
7453
7592
|
const Captcha = ({
|
|
7454
7593
|
color,
|
|
@@ -7536,7 +7675,7 @@ const Captcha = ({
|
|
|
7536
7675
|
alignItems: 'center',
|
|
7537
7676
|
zIndex: 1
|
|
7538
7677
|
},
|
|
7539
|
-
className: styles$
|
|
7678
|
+
className: styles$5['start-point']
|
|
7540
7679
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7541
7680
|
style: {
|
|
7542
7681
|
position: 'absolute',
|
|
@@ -7562,8 +7701,8 @@ const Captcha = ({
|
|
|
7562
7701
|
backgroundColor: 'transparent'
|
|
7563
7702
|
},
|
|
7564
7703
|
className: `
|
|
7565
|
-
${styles$
|
|
7566
|
-
${+rangeProgress === rangeNumber ? styles$
|
|
7704
|
+
${styles$5['range']}
|
|
7705
|
+
${+rangeProgress === rangeNumber ? styles$5['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$5['range-error'] : styles$5['range-default']}
|
|
7567
7706
|
`,
|
|
7568
7707
|
onInput: handleRange
|
|
7569
7708
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7593,9 +7732,9 @@ Captcha.propTypes = {
|
|
|
7593
7732
|
getRange: PropTypes.func.isRequired
|
|
7594
7733
|
};
|
|
7595
7734
|
|
|
7596
|
-
var css_248z$
|
|
7597
|
-
var styles$
|
|
7598
|
-
styleInject(css_248z$
|
|
7735
|
+
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}";
|
|
7736
|
+
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"};
|
|
7737
|
+
styleInject(css_248z$5);
|
|
7599
7738
|
|
|
7600
7739
|
const Stepper = ({
|
|
7601
7740
|
stepLength,
|
|
@@ -7605,11 +7744,11 @@ const Stepper = ({
|
|
|
7605
7744
|
const [classProps, setClassProps] = useState({});
|
|
7606
7745
|
const [configStyles, setConfigStyles] = useState({});
|
|
7607
7746
|
useEffect(() => {
|
|
7608
|
-
className && setClassProps(() => classnames(className ?? configStyles.STEPPER.className, `${styles$
|
|
7747
|
+
className && setClassProps(() => classnames(className ?? configStyles.STEPPER.className, `${styles$4['stepper-container']} stepper-container-rem`));
|
|
7609
7748
|
}, [className]);
|
|
7610
7749
|
useEffect(() => {
|
|
7611
7750
|
configStylesPromise.then(data => {
|
|
7612
|
-
setClassProps(() => classnames(className ?? data.STEPPER.className, `${styles$
|
|
7751
|
+
setClassProps(() => classnames(className ?? data.STEPPER.className, `${styles$4['stepper-container']} stepper-container-rem`));
|
|
7613
7752
|
setConfigStyles(() => {
|
|
7614
7753
|
return {
|
|
7615
7754
|
...data
|
|
@@ -7625,10 +7764,10 @@ const Stepper = ({
|
|
|
7625
7764
|
let steppers = [];
|
|
7626
7765
|
for (let step = 1; step <= stepLength; step++) {
|
|
7627
7766
|
steppers.push(/*#__PURE__*/React__default.createElement("div", {
|
|
7628
|
-
className: classnames(`${step <= activeSteps ? styles$
|
|
7767
|
+
className: classnames(`${step <= activeSteps ? styles$4.activeRing : styles$4.bigRing}`),
|
|
7629
7768
|
key: step
|
|
7630
7769
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7631
|
-
className: classnames(`${step <= activeSteps ? styles$
|
|
7770
|
+
className: classnames(`${step <= activeSteps ? styles$4.smallActiveRing : styles$4.smallRing}`)
|
|
7632
7771
|
}, step <= activeSteps ? step : '')));
|
|
7633
7772
|
}
|
|
7634
7773
|
return steppers;
|
|
@@ -7758,6 +7897,10 @@ Checkbox.propTypes = {
|
|
|
7758
7897
|
data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
|
|
7759
7898
|
};
|
|
7760
7899
|
|
|
7900
|
+
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}";
|
|
7901
|
+
var styles$3 = {"show-more-text":"textarea-module_show-more-text__xQa-I"};
|
|
7902
|
+
styleInject(css_248z$4);
|
|
7903
|
+
|
|
7761
7904
|
const PositionSide = {
|
|
7762
7905
|
TOP: 'top',
|
|
7763
7906
|
BOTTOM: 'bottom'
|
|
@@ -7800,10 +7943,15 @@ const Textarea = ({
|
|
|
7800
7943
|
label,
|
|
7801
7944
|
labelSize,
|
|
7802
7945
|
labelColor,
|
|
7946
|
+
labelStyle,
|
|
7803
7947
|
labelWeight,
|
|
7804
7948
|
labelDisplay,
|
|
7805
7949
|
labelFontFamily,
|
|
7806
7950
|
labelMarginBottom,
|
|
7951
|
+
lableShowMore,
|
|
7952
|
+
labelShowLessText,
|
|
7953
|
+
labelShowMoreText,
|
|
7954
|
+
showMoreTextColor,
|
|
7807
7955
|
iconRequired,
|
|
7808
7956
|
useLabelTooltip,
|
|
7809
7957
|
labelTooltipColor,
|
|
@@ -7822,6 +7970,7 @@ const Textarea = ({
|
|
|
7822
7970
|
const [removeID, setRemoveID] = useState('');
|
|
7823
7971
|
const [isHover, setIsHover] = useState(false);
|
|
7824
7972
|
const [isFocus, setIsFocus] = useState(false);
|
|
7973
|
+
const [showMore, setShowMore] = useState(false);
|
|
7825
7974
|
const [innerValue, setInnerValue] = useState('');
|
|
7826
7975
|
const [classProps, setClassProps] = useState({});
|
|
7827
7976
|
const [tooltipElem, setTooltipElem] = useState(null);
|
|
@@ -7933,6 +8082,21 @@ const Textarea = ({
|
|
|
7933
8082
|
}
|
|
7934
8083
|
setRemoveID(() => '');
|
|
7935
8084
|
};
|
|
8085
|
+
const handleCheckTextWidth = () => {
|
|
8086
|
+
if (labelRef.current) {
|
|
8087
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
8088
|
+
const elementWidth = rect.width;
|
|
8089
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
8090
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
8091
|
+
return 'more';
|
|
8092
|
+
} else {
|
|
8093
|
+
return 'less';
|
|
8094
|
+
}
|
|
8095
|
+
}
|
|
8096
|
+
};
|
|
8097
|
+
const handleChangeShowMore = () => {
|
|
8098
|
+
setShowMore(() => !showMore);
|
|
8099
|
+
};
|
|
7936
8100
|
useEffect(() => {
|
|
7937
8101
|
if (value === undefined) {
|
|
7938
8102
|
alert('Please add value prop on Textarea component');
|
|
@@ -7947,6 +8111,15 @@ const Textarea = ({
|
|
|
7947
8111
|
useEffect(() => {
|
|
7948
8112
|
className && setClassProps(() => classnames(className ?? configStyles.TEXTAREA.className));
|
|
7949
8113
|
}, [className]);
|
|
8114
|
+
useEffect(() => {
|
|
8115
|
+
if ((useLabelTooltip || configStyles.TEXTAREA?.label?.useTooltip) && (lableShowMore || configStyles.TEXTAREA?.label?.showMore)) {
|
|
8116
|
+
alert(`
|
|
8117
|
+
Please use one of this props or config,
|
|
8118
|
+
use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
|
|
8119
|
+
or ( lableShowMore / configStyles.FILE.label.showMore )
|
|
8120
|
+
`);
|
|
8121
|
+
}
|
|
8122
|
+
}, [lableShowMore, useLabelTooltip, configStyles.TEXTAREA?.label?.useTooltip, configStyles.TEXTAREA?.label?.showMore]);
|
|
7950
8123
|
useEffect(() => {
|
|
7951
8124
|
configStylesPromise.then(data => {
|
|
7952
8125
|
setClassProps(() => classnames(className ?? data.TEXTAREA.className));
|
|
@@ -7988,13 +8161,34 @@ const Textarea = ({
|
|
|
7988
8161
|
ref: labelRef,
|
|
7989
8162
|
style: {
|
|
7990
8163
|
display: labelDisplay ?? configStyles.TEXTAREA.label.display,
|
|
7991
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'nowrap' : 'normal',
|
|
7992
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'hidden' : 'visible',
|
|
7993
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'ellipsis' : ''
|
|
8164
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
8165
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
8166
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.TEXTAREA.label.showMore) && !showMore ? 'ellipsis' : '',
|
|
8167
|
+
wordBreak: 'break-all'
|
|
7994
8168
|
},
|
|
7995
8169
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
7996
8170
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
7997
|
-
}, label
|
|
8171
|
+
}, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.TEXTAREA.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
8172
|
+
className: styles$3['show-more-text'],
|
|
8173
|
+
style: {
|
|
8174
|
+
fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
|
|
8175
|
+
fontStyle: labelStyle ?? configStyles.TEXTAREA.label.font.style,
|
|
8176
|
+
fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
|
|
8177
|
+
fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family,
|
|
8178
|
+
color: showMoreTextColor ?? configStyles.TEXTAREA.label.showMoreTextColor
|
|
8179
|
+
},
|
|
8180
|
+
onClick: handleChangeShowMore
|
|
8181
|
+
}, ' ', " ", 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", {
|
|
8182
|
+
className: styles$3['show-more-text'],
|
|
8183
|
+
style: {
|
|
8184
|
+
fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
|
|
8185
|
+
fontStyle: labelStyle ?? configStyles.TEXTAREA.label.font.style,
|
|
8186
|
+
fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
|
|
8187
|
+
fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family,
|
|
8188
|
+
color: showMoreTextColor ?? configStyles.TEXTAREA.label.showMoreTextColor
|
|
8189
|
+
},
|
|
8190
|
+
onClick: handleChangeShowMore
|
|
8191
|
+
}, labelShowMoreText ?? configStyles.TEXTAREA.label.showMoreText) : ''), showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default.createElement("span", {
|
|
7998
8192
|
style: {
|
|
7999
8193
|
width: 'fit-content',
|
|
8000
8194
|
flexShrink: 0
|
|
@@ -8097,11 +8291,16 @@ Textarea.propTypes = {
|
|
|
8097
8291
|
borderHoverColor: PropTypes.string,
|
|
8098
8292
|
label: PropTypes.string,
|
|
8099
8293
|
labelSize: PropTypes.string,
|
|
8294
|
+
labelStyle: PropTypes.string,
|
|
8100
8295
|
labelColor: PropTypes.string,
|
|
8101
8296
|
labelWeight: PropTypes.string,
|
|
8102
8297
|
labelDisplay: PropTypes.string,
|
|
8103
8298
|
labelFontFamily: PropTypes.string,
|
|
8104
8299
|
labelMarginBottom: PropTypes.string,
|
|
8300
|
+
lableShowMore: PropTypes.bool,
|
|
8301
|
+
labelShowLessText: PropTypes.string,
|
|
8302
|
+
labelShowMoreText: PropTypes.string,
|
|
8303
|
+
showMoreTextColor: PropTypes.string,
|
|
8105
8304
|
iconRequired: PropTypes.element,
|
|
8106
8305
|
useLabelTooltip: PropTypes.bool,
|
|
8107
8306
|
labelTooltipColor: PropTypes.string,
|
|
@@ -9269,8 +9468,8 @@ Pagination.propTypes = {
|
|
|
9269
9468
|
borderRadius: PropTypes.string
|
|
9270
9469
|
};
|
|
9271
9470
|
|
|
9272
|
-
var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}";
|
|
9273
|
-
var styles = {"auto-complete":"autocomplete-module_auto-complete__oUOv9"};
|
|
9471
|
+
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}";
|
|
9472
|
+
var styles = {"auto-complete":"autocomplete-module_auto-complete__oUOv9","show-more-text":"autocomplete-module_show-more-text__1FXFu"};
|
|
9274
9473
|
styleInject(css_248z);
|
|
9275
9474
|
|
|
9276
9475
|
const Autocomplete = ({
|
|
@@ -9352,6 +9551,10 @@ const Autocomplete = ({
|
|
|
9352
9551
|
labelFontFamily,
|
|
9353
9552
|
labelMarginBottom,
|
|
9354
9553
|
labelTextTransform,
|
|
9554
|
+
lableShowMore,
|
|
9555
|
+
labelShowLessText,
|
|
9556
|
+
labelShowMoreText,
|
|
9557
|
+
showMoreTextColor,
|
|
9355
9558
|
iconRequired,
|
|
9356
9559
|
useLabelTooltip,
|
|
9357
9560
|
labelTooltipColor,
|
|
@@ -9377,6 +9580,7 @@ const Autocomplete = ({
|
|
|
9377
9580
|
const [removeID, setRemoveID] = useState('');
|
|
9378
9581
|
const [isHover, setIsHover] = useState(false);
|
|
9379
9582
|
const [isFocus, setIsFocus] = useState(false);
|
|
9583
|
+
const [showMore, setShowMore] = useState(false);
|
|
9380
9584
|
const [innerError, setInnerError] = useState('');
|
|
9381
9585
|
const [innerValue, setInnerValue] = useState('');
|
|
9382
9586
|
const [classProps, setClassProps] = useState({});
|
|
@@ -9569,6 +9773,21 @@ const Autocomplete = ({
|
|
|
9569
9773
|
}
|
|
9570
9774
|
setRemoveID(() => '');
|
|
9571
9775
|
};
|
|
9776
|
+
const handleCheckTextWidth = () => {
|
|
9777
|
+
if (labelRef.current) {
|
|
9778
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
9779
|
+
const elementWidth = rect.width;
|
|
9780
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
9781
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
9782
|
+
return 'more';
|
|
9783
|
+
} else {
|
|
9784
|
+
return 'less';
|
|
9785
|
+
}
|
|
9786
|
+
}
|
|
9787
|
+
};
|
|
9788
|
+
const handleChangeShowMore = () => {
|
|
9789
|
+
setShowMore(() => !showMore);
|
|
9790
|
+
};
|
|
9572
9791
|
useEffect(() => {
|
|
9573
9792
|
if (options === undefined) {
|
|
9574
9793
|
alert('Please add options prop');
|
|
@@ -9603,6 +9822,15 @@ const Autocomplete = ({
|
|
|
9603
9822
|
useEffect(() => {
|
|
9604
9823
|
className && setClassProps(() => classnames(className ?? configStyles.AUTOCOMPLETE.className, styles['auto-complete']));
|
|
9605
9824
|
}, [className]);
|
|
9825
|
+
useEffect(() => {
|
|
9826
|
+
if ((useLabelTooltip || configStyles.AUTOCOMPLETE?.label?.useTooltip) && (lableShowMore || configStyles.AUTOCOMPLETE?.label?.showMore)) {
|
|
9827
|
+
alert(`
|
|
9828
|
+
Please use one of this props or config,
|
|
9829
|
+
use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
|
|
9830
|
+
or ( lableShowMore / configStyles.FILE.label.showMore )
|
|
9831
|
+
`);
|
|
9832
|
+
}
|
|
9833
|
+
}, [lableShowMore, useLabelTooltip, configStyles.AUTOCOMPLETE?.label?.useTooltip, configStyles.AUTOCOMPLETE?.label?.showMore]);
|
|
9606
9834
|
useEffect(() => {
|
|
9607
9835
|
configStylesPromise.then(data => {
|
|
9608
9836
|
setClassProps(() => classnames(className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
|
|
@@ -9641,13 +9869,35 @@ const Autocomplete = ({
|
|
|
9641
9869
|
lineHeight: labelLineHeight ?? configStyles.AUTOCOMPLETE.label.lineHeight,
|
|
9642
9870
|
marginBottom: labelMarginBottom ?? configStyles.AUTOCOMPLETE.label.marginBottom,
|
|
9643
9871
|
textTransform: labelTextTransform ?? configStyles.AUTOCOMPLETE.label.textTransform,
|
|
9644
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'nowrap' : 'normal',
|
|
9645
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'hidden' : 'visible',
|
|
9646
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'ellipsis' : ''
|
|
9872
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
9873
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
9874
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.AUTOCOMPLETE.label.showMore) && !showMore ? 'ellipsis' : '',
|
|
9875
|
+
wordBreak: 'break-all'
|
|
9647
9876
|
},
|
|
9648
9877
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
9649
9878
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
9650
|
-
}, label
|
|
9879
|
+
}, label, handleCheckTextWidth() === 'more' && showMore && (lableShowMore || configStyles.AUTOCOMPLETE.label.showMore) ? /*#__PURE__*/React__default.createElement("span", {
|
|
9880
|
+
className: styles['show-more-text'],
|
|
9881
|
+
style: {
|
|
9882
|
+
fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
|
|
9883
|
+
fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
|
|
9884
|
+
fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
|
|
9885
|
+
fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
|
|
9886
|
+
color: showMoreTextColor ?? configStyles.AUTOCOMPLETE.label.showMoreTextColor
|
|
9887
|
+
},
|
|
9888
|
+
onClick: handleChangeShowMore
|
|
9889
|
+
}, ' ', " ", 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", {
|
|
9890
|
+
className: styles['show-more-text'],
|
|
9891
|
+
style: {
|
|
9892
|
+
fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
|
|
9893
|
+
fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
|
|
9894
|
+
fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
|
|
9895
|
+
fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
|
|
9896
|
+
color: showMoreTextColor ?? configStyles.AUTOCOMPLETE.label.showMoreTextColor,
|
|
9897
|
+
marginBottom: labelMarginBottom ?? configStyles.AUTOCOMPLETE.label.marginBottom
|
|
9898
|
+
},
|
|
9899
|
+
onClick: handleChangeShowMore
|
|
9900
|
+
}, labelShowMoreText ?? configStyles.AUTOCOMPLETE.label.showMoreText) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
9651
9901
|
style: {
|
|
9652
9902
|
display: contentDisplay ?? configStyles.AUTOCOMPLETE.parent.display,
|
|
9653
9903
|
position: contentPosition ?? configStyles.AUTOCOMPLETE.parent.position,
|
|
@@ -9792,7 +10042,11 @@ Autocomplete.propTypes = {
|
|
|
9792
10042
|
labelTooltipFontWeight: PropTypes.string,
|
|
9793
10043
|
labelTooltipBorderRadius: PropTypes.string,
|
|
9794
10044
|
labelTooltipBackgroundColor: PropTypes.string,
|
|
9795
|
-
backgroundDisableColor: PropTypes.string
|
|
10045
|
+
backgroundDisableColor: PropTypes.string,
|
|
10046
|
+
lableShowMore: PropTypes.bool,
|
|
10047
|
+
labelShowLessText: PropTypes.string,
|
|
10048
|
+
labelShowMoreText: PropTypes.string,
|
|
10049
|
+
showMoreTextColor: PropTypes.string
|
|
9796
10050
|
};
|
|
9797
10051
|
|
|
9798
10052
|
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 };
|