@xaypay/tui 0.2.23 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +785 -209
- package/dist/index.js +1680 -1115
- package/package.json +1 -1
- package/tui.config.js +62 -5
package/dist/index.es.js
CHANGED
|
@@ -48,7 +48,7 @@ var native = {
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
function v4(options, buf, offset) {
|
|
51
|
-
if (native.randomUUID &&
|
|
51
|
+
if (native.randomUUID && true && !options) {
|
|
52
52
|
return native.randomUUID();
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -58,16 +58,6 @@ function v4(options, buf, offset) {
|
|
|
58
58
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
59
59
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
60
60
|
|
|
61
|
-
if (buf) {
|
|
62
|
-
offset = offset || 0;
|
|
63
|
-
|
|
64
|
-
for (let i = 0; i < 16; ++i) {
|
|
65
|
-
buf[offset + i] = rnds[i];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return buf;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
61
|
return unsafeStringify(rnds);
|
|
72
62
|
}
|
|
73
63
|
|
|
@@ -154,6 +144,28 @@ const SvgDocIcon = ({
|
|
|
154
144
|
d: "M5.922 23.8H3.859v-5.818h2.08q.878 0 1.511.35.633.346.975.996.343.651.343 1.557 0 .909-.343 1.563-.341.653-.98 1.003-.637.349-1.523.349m-.833-1.054h.782q.546 0 .917-.193.375-.196.563-.605.19-.413.19-1.063 0-.645-.19-1.054a1.23 1.23 0 0 0-.56-.602q-.372-.193-.918-.193H5.09zm9.937-1.855q0 .951-.36 1.62a2.5 2.5 0 0 1-.978 1.02q-.616.348-1.386.349-.776 0-1.392-.353a2.5 2.5 0 0 1-.975-1.02q-.357-.668-.358-1.616 0-.952.358-1.62.359-.667.975-1.017a2.76 2.76 0 0 1 1.392-.352q.77 0 1.386.352.62.35.977 1.018.36.667.361 1.619m-1.247 0q0-.617-.185-1.04a1.4 1.4 0 0 0-.514-.642 1.4 1.4 0 0 0-.778-.219q-.447 0-.779.22-.332.218-.517.641-.182.423-.182 1.04 0 .616.182 1.04.185.423.517.642.332.218.779.218.445 0 .778-.218.333-.219.514-.642.185-.425.185-1.04m7.292-.872h-1.245a1.2 1.2 0 0 0-.139-.43 1.1 1.1 0 0 0-.27-.323 1.2 1.2 0 0 0-.38-.205 1.5 1.5 0 0 0-.463-.07 1.4 1.4 0 0 0-.787.224 1.43 1.43 0 0 0-.52.648q-.185.423-.185 1.028 0 .622.185 1.045.188.423.523.64.335.215.775.215.247 0 .457-.065.215-.065.378-.19.165-.128.273-.31.11-.182.154-.415l1.244.006a2.323 2.323 0 0 1-.756 1.435 2.4 2.4 0 0 1-.767.46q-.443.168-1.003.168-.778 0-1.392-.353a2.5 2.5 0 0 1-.966-1.02q-.352-.668-.352-1.616 0-.952.358-1.62.358-.667.972-1.017.614-.352 1.38-.352.506 0 .938.142.434.142.77.415.335.27.545.662.213.391.273.898"
|
|
155
145
|
}));
|
|
156
146
|
|
|
147
|
+
const SvgListItemSvg = ({
|
|
148
|
+
title,
|
|
149
|
+
titleId,
|
|
150
|
+
...props
|
|
151
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
152
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
153
|
+
width: "28",
|
|
154
|
+
height: "36",
|
|
155
|
+
viewBox: "0 0 28 36",
|
|
156
|
+
"aria-labelledby": titleId
|
|
157
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
158
|
+
id: titleId
|
|
159
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
160
|
+
d: "M27.39 9.078v16.043a1.213 1.213 0 0 1 .61 1.05v6.778A3.05 3.05 0 0 1 24.957 36H3.043A3.051 3.051 0 0 1 0 32.95v-8.872a1.22 1.22 0 0 1 .61-1.05V2.44c0-.648.257-1.27.71-1.726A2.44 2.44 0 0 1 3.043 0h15.293ZM8.759 27.871q-.585 0-1.043.203c-.309.133-.547.32-.723.559a1.35 1.35 0 0 0-.258.84c-.004.39.13.699.387.93q.393.346 1.066.511l.586.145c.192.046.36.097.493.152a.9.9 0 0 1 .308.207q.105.125.106.3 0 .19-.117.337a.73.73 0 0 1-.333.23 1.4 1.4 0 0 1-.496.082q-.292.001-.527-.086a.9.9 0 0 1-.367-.265.8.8 0 0 1-.152-.446H6.594q.013.573.277.957.271.388.746.582.48.198 1.13.196.65 0 1.112-.192.464-.2.711-.55c.164-.239.25-.52.25-.844a1.331 1.331 0 0 0-.453-1.027 2.1 2.1 0 0 0-.508-.32 3.3 3.3 0 0 0-.64-.204l-.48-.113a3 3 0 0 1-.329-.094 1.4 1.4 0 0 1-.273-.133.6.6 0 0 1-.184-.183.43.43 0 0 1-.062-.247q.001-.17.101-.304a.65.65 0 0 1 .293-.211q.188-.077.465-.078.41 0 .645.175a.64.64 0 0 1 .27.485h1.081a1.47 1.47 0 0 0-.254-.832 1.63 1.63 0 0 0-.695-.559c-.297-.137-.64-.203-1.04-.203m10.426 0q-.528.001-.985.184-.451.181-.793.535a2.45 2.45 0 0 0-.535.855 3.3 3.3 0 0 0-.187 1.149c0 .554.105 1.039.316 1.445q.317.603.887.938.57.328 1.32.328.675 0 1.195-.27.522-.27.82-.77.299-.502.298-1.199v-.664h-2.235v.84h1.145q-.005.316-.145.555a.95.95 0 0 1-.418.383 1.45 1.45 0 0 1-.652.136c-.285 0-.527-.07-.735-.203a1.3 1.3 0 0 1-.48-.59 2.4 2.4 0 0 1-.172-.941q.001-.552.172-.934.175-.386.48-.585c.207-.133.45-.204.723-.204q.217.001.399.055c.12.035.23.09.324.156a1.05 1.05 0 0 1 .394.582h1.149a1.9 1.9 0 0 0-.246-.715 2 2 0 0 0-.5-.566c-.2-.16-.434-.281-.692-.367a2.6 2.6 0 0 0-.847-.133m-6.047 5.36h1.457l1.844-5.286h-1.254l-1.297 4.016h-.047l-1.293-4.016h-1.258ZM3.043 1.218c-.324 0-.633.129-.86.36-.23.226-.359.538-.359.862V22.86h8.633c.352 0 .684.153.918.418l1.46 1.676h13.337V9.938H19.91A2.436 2.436 0 0 1 17.476 7.5V1.218Zm7.738 9.164c.078 0 .137.062.137.14v.313h5.46v-.313a.14.14 0 0 1 .142-.14h1.539a.14.14 0 0 1 .14.14v1.524a.14.14 0 0 1-.14.137h-.313v5.402h.313c.078 0 .14.059.14.137v1.523a.137.137 0 0 1-.14.137h-1.54a.137.137 0 0 1-.14-.137v-.312h-5.461v.312a.134.134 0 0 1-.137.137H9.238a.136.136 0 0 1-.136-.137v-1.523c0-.078.062-.137.136-.137h.317v-5.402h-.317a.14.14 0 0 1-.136-.137v-1.524a.14.14 0 0 1 .136-.14Zm.137 1.664a.14.14 0 0 1-.137.137h-.316v5.402h.316c.074 0 .137.062.137.137v.312h5.46v-.312a.14.14 0 0 1 .142-.137h.316v-5.402h-.316a.14.14 0 0 1-.141-.137v-.313h-5.461Zm0 0",
|
|
161
|
+
style: {
|
|
162
|
+
stroke: 'none',
|
|
163
|
+
fillRule: 'nonzero',
|
|
164
|
+
fill: '#00236a',
|
|
165
|
+
fillOpacity: 1
|
|
166
|
+
}
|
|
167
|
+
}));
|
|
168
|
+
|
|
157
169
|
const SvgListItemPdf = ({
|
|
158
170
|
title,
|
|
159
171
|
titleId,
|
|
@@ -266,6 +278,7 @@ const FileItem = /*#__PURE__*/React__default.memo(({
|
|
|
266
278
|
radius,
|
|
267
279
|
status,
|
|
268
280
|
iconDoc,
|
|
281
|
+
iconSvg,
|
|
269
282
|
iconPdf,
|
|
270
283
|
iconPng,
|
|
271
284
|
iconJpg,
|
|
@@ -409,7 +422,7 @@ const FileItem = /*#__PURE__*/React__default.memo(({
|
|
|
409
422
|
style: {
|
|
410
423
|
width: '32px'
|
|
411
424
|
}
|
|
412
|
-
}, fileFormat === 'pdf' ? iconPdf ? iconPdf : /*#__PURE__*/React__default.createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? iconJpg ? iconJpg : /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : fileFormat === 'png' ? iconPng ? iconPng : /*#__PURE__*/React__default.createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? iconJpeg ? iconJpeg : /*#__PURE__*/React__default.createElement(SvgListItemJpeg, null) : fileFormat === 'heic' || fileFormat === 'heif' ? iconHeic ? iconHeic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : fileFormat === 'msword' ? iconDoc ? iconDoc : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : fileFormat === 'vnd.openxmlformats-officedocument.wordprocessingml.document' ? iconDocx ? iconDocx : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
425
|
+
}, fileFormat === 'svg+xml' ? iconSvg ? iconSvg : /*#__PURE__*/React__default.createElement(SvgListItemSvg, null) : fileFormat === 'pdf' ? iconPdf ? iconPdf : /*#__PURE__*/React__default.createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? iconJpg ? iconJpg : /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : fileFormat === 'png' ? iconPng ? iconPng : /*#__PURE__*/React__default.createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? iconJpeg ? iconJpeg : /*#__PURE__*/React__default.createElement(SvgListItemJpeg, null) : fileFormat === 'heic' || fileFormat === 'heif' ? iconHeic ? iconHeic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : fileFormat === 'msword' ? iconDoc ? iconDoc : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : fileFormat === 'vnd.openxmlformats-officedocument.wordprocessingml.document' ? iconDocx ? iconDocx : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
413
426
|
style: {
|
|
414
427
|
position: 'relative',
|
|
415
428
|
display: 'flex',
|
|
@@ -474,19 +487,22 @@ var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16
|
|
|
474
487
|
var img$2 = "data:image/svg+xml,%3csvg width='16' height='2' viewBox='0 0 16 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1H15' stroke='%23009B8B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
475
488
|
|
|
476
489
|
// import React from 'react'
|
|
490
|
+
// import info from './src/assetsTMP/info.png';
|
|
491
|
+
// import error from './src/assetsTMP/error.png';
|
|
492
|
+
// import close from './src/assetsTMP/close.svg';
|
|
493
|
+
// import warn from './src/assetsTMP/warning.png';
|
|
494
|
+
// import success from './src/assetsTMP/success.png';
|
|
477
495
|
const boxSizing = 'border-box';
|
|
478
496
|
const fontStyle = 'normal';
|
|
479
497
|
const fontFamily = 'Arial';
|
|
480
498
|
const fontWeight = 500;
|
|
481
499
|
const transparent = 'transparent';
|
|
482
500
|
const presetColors = {
|
|
483
|
-
info: '#F24C4C',
|
|
484
501
|
dark: '#3C393E',
|
|
485
502
|
light: '#EEEEEE',
|
|
486
503
|
extraLight: '#FBFBFB',
|
|
487
504
|
danger: '#EE0000',
|
|
488
505
|
success: '#0DA574',
|
|
489
|
-
warning: '#FECD29',
|
|
490
506
|
secondary: '#D1D1D1',
|
|
491
507
|
primary: '#051942',
|
|
492
508
|
primarySecond: '#00236A'
|
|
@@ -572,7 +588,7 @@ var packageResult = {
|
|
|
572
588
|
...fontObject
|
|
573
589
|
},
|
|
574
590
|
label: {
|
|
575
|
-
|
|
591
|
+
useTooltip: false,
|
|
576
592
|
color: presetColors.dark,
|
|
577
593
|
display: 'block',
|
|
578
594
|
lineHeight: '22px',
|
|
@@ -580,6 +596,15 @@ var packageResult = {
|
|
|
580
596
|
marginBottom: '6px',
|
|
581
597
|
font: {
|
|
582
598
|
...fontObject
|
|
599
|
+
},
|
|
600
|
+
tooltip: {
|
|
601
|
+
color: '#fff',
|
|
602
|
+
padding: '12px',
|
|
603
|
+
borderRadius: '8px',
|
|
604
|
+
font: {
|
|
605
|
+
...fontObject
|
|
606
|
+
},
|
|
607
|
+
backgroundColor: '#000'
|
|
583
608
|
}
|
|
584
609
|
},
|
|
585
610
|
error: {
|
|
@@ -610,6 +635,10 @@ var packageResult = {
|
|
|
610
635
|
hover: presetColors.dark
|
|
611
636
|
}
|
|
612
637
|
}
|
|
638
|
+
},
|
|
639
|
+
icon: {
|
|
640
|
+
// comment here for example,
|
|
641
|
+
// required: React.createElement(SvgChecked, { fill: 'green' }),
|
|
613
642
|
}
|
|
614
643
|
},
|
|
615
644
|
// default properties for <Tooltip /> component
|
|
@@ -752,6 +781,7 @@ var packageResult = {
|
|
|
752
781
|
shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
|
|
753
782
|
},
|
|
754
783
|
label: {
|
|
784
|
+
useTooltip: false,
|
|
755
785
|
color: presetColors.dark,
|
|
756
786
|
display: 'block',
|
|
757
787
|
lineHeight: '22px',
|
|
@@ -759,6 +789,15 @@ var packageResult = {
|
|
|
759
789
|
textTransform: 'none',
|
|
760
790
|
font: {
|
|
761
791
|
...fontObject
|
|
792
|
+
},
|
|
793
|
+
tooltip: {
|
|
794
|
+
color: '#fff',
|
|
795
|
+
padding: '12px',
|
|
796
|
+
borderRadius: '8px',
|
|
797
|
+
font: {
|
|
798
|
+
...fontObject
|
|
799
|
+
},
|
|
800
|
+
backgroundColor: '#000'
|
|
762
801
|
}
|
|
763
802
|
},
|
|
764
803
|
selected: {
|
|
@@ -819,6 +858,10 @@ var packageResult = {
|
|
|
819
858
|
font: {
|
|
820
859
|
...fontObject
|
|
821
860
|
}
|
|
861
|
+
},
|
|
862
|
+
icon: {
|
|
863
|
+
// comment here for example,
|
|
864
|
+
// required: React.createElement(SvgChecked, { fill: 'green' }),
|
|
822
865
|
}
|
|
823
866
|
},
|
|
824
867
|
// default properties for <Textarea /> component
|
|
@@ -850,11 +893,21 @@ var packageResult = {
|
|
|
850
893
|
background: 'white'
|
|
851
894
|
},
|
|
852
895
|
label: {
|
|
896
|
+
useTooltip: false,
|
|
853
897
|
color: presetColors.dark,
|
|
854
898
|
display: 'block',
|
|
855
899
|
marginBottom: '10px',
|
|
856
900
|
font: {
|
|
857
901
|
...fontObject
|
|
902
|
+
},
|
|
903
|
+
tooltip: {
|
|
904
|
+
color: '#fff',
|
|
905
|
+
padding: '12px',
|
|
906
|
+
borderRadius: '8px',
|
|
907
|
+
font: {
|
|
908
|
+
...fontObject
|
|
909
|
+
},
|
|
910
|
+
backgroundColor: '#000'
|
|
858
911
|
}
|
|
859
912
|
},
|
|
860
913
|
font: {
|
|
@@ -869,6 +922,10 @@ var packageResult = {
|
|
|
869
922
|
font: {
|
|
870
923
|
...fontObject
|
|
871
924
|
}
|
|
925
|
+
},
|
|
926
|
+
icon: {
|
|
927
|
+
// comment here for example,
|
|
928
|
+
// required: React.createElement(SvgChecked, { fill: 'green' }),
|
|
872
929
|
}
|
|
873
930
|
},
|
|
874
931
|
// default properties for <NewAutocomplete /> component
|
|
@@ -905,6 +962,7 @@ var packageResult = {
|
|
|
905
962
|
backgroundDisable: presetColors.secondary
|
|
906
963
|
},
|
|
907
964
|
label: {
|
|
965
|
+
useTooltip: false,
|
|
908
966
|
color: presetColors.dark,
|
|
909
967
|
display: 'block',
|
|
910
968
|
lineHeight: '22px',
|
|
@@ -912,6 +970,15 @@ var packageResult = {
|
|
|
912
970
|
textTransform: 'none',
|
|
913
971
|
font: {
|
|
914
972
|
...fontObject
|
|
973
|
+
},
|
|
974
|
+
tooltip: {
|
|
975
|
+
color: '#fff',
|
|
976
|
+
padding: '12px',
|
|
977
|
+
borderRadius: '8px',
|
|
978
|
+
font: {
|
|
979
|
+
...fontObject
|
|
980
|
+
},
|
|
981
|
+
backgroundColor: '#000'
|
|
915
982
|
}
|
|
916
983
|
},
|
|
917
984
|
contentBottom: {
|
|
@@ -1002,6 +1069,7 @@ var packageResult = {
|
|
|
1002
1069
|
sizeText: 'Առավելագույնը',
|
|
1003
1070
|
timeForRemoveError: 4000,
|
|
1004
1071
|
extentionsRowMarginTop: '40px',
|
|
1072
|
+
extentionsTextColor: 'black',
|
|
1005
1073
|
border: {
|
|
1006
1074
|
width: '2px',
|
|
1007
1075
|
style: 'dashed',
|
|
@@ -1015,6 +1083,7 @@ var packageResult = {
|
|
|
1015
1083
|
backgroundHidden: 'rgba(60, 57, 62, 0.4)'
|
|
1016
1084
|
},
|
|
1017
1085
|
label: {
|
|
1086
|
+
useTooltip: false,
|
|
1018
1087
|
color: '#4A4A4D',
|
|
1019
1088
|
font: {
|
|
1020
1089
|
...fontObject
|
|
@@ -1145,6 +1214,10 @@ var packageResult = {
|
|
|
1145
1214
|
wrapWidth: '100%',
|
|
1146
1215
|
wrapHeight: '100%'
|
|
1147
1216
|
},
|
|
1217
|
+
closeIcon: {
|
|
1218
|
+
top: '24px',
|
|
1219
|
+
right: '24px'
|
|
1220
|
+
},
|
|
1148
1221
|
icon: {
|
|
1149
1222
|
className: 'tui_close-modal-icon'
|
|
1150
1223
|
// zoom: React.createElement(SvgChecked, { fill: 'green' }),
|
|
@@ -1581,6 +1654,24 @@ Button.propTypes = {
|
|
|
1581
1654
|
withoutStylingHoverColor: PropTypes.string
|
|
1582
1655
|
};
|
|
1583
1656
|
|
|
1657
|
+
const SvgSvg = ({
|
|
1658
|
+
title,
|
|
1659
|
+
titleId,
|
|
1660
|
+
...props
|
|
1661
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1662
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1663
|
+
width: "1em",
|
|
1664
|
+
height: "1em",
|
|
1665
|
+
fill: "none",
|
|
1666
|
+
viewBox: "0 0 40 52",
|
|
1667
|
+
"aria-labelledby": titleId
|
|
1668
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1669
|
+
id: titleId
|
|
1670
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
1671
|
+
fill: "#00236A",
|
|
1672
|
+
d: "M39.13 13.11v23.175a1.772 1.772 0 0 1 .87 1.518v9.79a4.45 4.45 0 0 1-1.274 3.115A4.33 4.33 0 0 1 35.652 52H4.348a4.33 4.33 0 0 1-3.074-1.292A4.45 4.45 0 0 1 0 47.593V34.78a1.77 1.77 0 0 1 .87-1.517V3.525c0-.934.367-1.831 1.019-2.493A3.46 3.46 0 0 1 4.348 0h21.847zM12.514 40.26q-.836 0-1.492.29a2.5 2.5 0 0 0-1.033.81q-.372.519-.369 1.212-.003.846.556 1.346t1.524.734l.832.21q.417.1.704.223.291.123.44.299a.64.64 0 0 1 .154.432.77.77 0 0 1-.168.489q-.168.212-.473.332-.303.12-.712.119a2.1 2.1 0 0 1-.75-.127 1.2 1.2 0 0 1-.526-.384 1.17 1.17 0 0 1-.22-.642H9.418q.018.824.398 1.383.384.556 1.067.84.686.284 1.611.283.932 0 1.592-.28.663-.283 1.015-.794.353-.514.357-1.216-.003-.477-.175-.845a1.9 1.9 0 0 0-.473-.642 2.8 2.8 0 0 0-.724-.459 5 5 0 0 0-.917-.298l-.687-.164a4 4 0 0 1-.47-.135 2 2 0 0 1-.387-.19.9.9 0 0 1-.265-.264.63.63 0 0 1-.086-.358q0-.246.142-.44a.94.94 0 0 1 .418-.302q.272-.112.667-.112.582 0 .92.25.34.25.386.7h1.547a2.14 2.14 0 0 0-.366-1.2 2.35 2.35 0 0 0-.992-.81q-.633-.29-1.483-.29m14.893 0q-.756 0-1.406.265a3.3 3.3 0 0 0-1.137.772 3.5 3.5 0 0 0-.76 1.238q-.27.727-.269 1.656 0 1.207.451 2.087a3.3 3.3 0 0 0 1.268 1.354q.813.474 1.886.474.962 0 1.709-.388a2.9 2.9 0 0 0 1.17-1.111q.425-.724.425-1.731v-.962h-3.195v1.216h1.638a1.6 1.6 0 0 1-.206.798 1.4 1.4 0 0 1-.597.555q-.388.195-.936.195a1.87 1.87 0 0 1-1.048-.291q-.443-.296-.686-.855-.242-.56-.242-1.356 0-.799.246-1.35.246-.556.685-.847.445-.29 1.03-.29.313 0 .57.078a1.49 1.49 0 0 1 1.03 1.066h1.64a2.8 2.8 0 0 0-.354-1.036 2.9 2.9 0 0 0-.713-.818 3.2 3.2 0 0 0-.99-.529 3.7 3.7 0 0 0-1.209-.19M18.766 48h2.08l2.634-7.637h-1.79l-1.85 5.802h-.07l-1.846-5.802H16.13zM4.349 1.762a1.73 1.73 0 0 0-1.23.516c-.327.33-.51.78-.51 1.246V33.02H14.94c.5 0 .978.219 1.308.601l2.087 2.421h19.056V14.356h-8.949c-.922 0-1.806-.37-2.459-1.032a3.55 3.55 0 0 1-1.018-2.493v-9.07zM15.4 15c.11 0 .2.09.2.2v.45h7.8v-.45a.2.2 0 0 1 .2-.2h2.2c.11 0 .2.09.2.2v2.2a.2.2 0 0 1-.2.2h-.45v7.8h.45a.2.2 0 0 1 .2.2v2.2a.2.2 0 0 1-.2.2h-2.2a.2.2 0 0 1-.2-.2v-.45h-7.8v.45a.2.2 0 0 1-.2.2h-2.2a.2.2 0 0 1-.2-.2v-2.2c0-.11.09-.2.2-.2h.45v-7.8h-.45a.2.2 0 0 1-.2-.2v-2.2c0-.11.09-.2.2-.2zm.2 2.4a.2.2 0 0 1-.2.2h-.45v7.8h.45a.2.2 0 0 1 .2.2v.45h7.8v-.45a.2.2 0 0 1 .2-.2h.45v-7.8h-.45a.2.2 0 0 1-.2-.2v-.45h-7.8z"
|
|
1673
|
+
}));
|
|
1674
|
+
|
|
1584
1675
|
const SvgPdf = ({
|
|
1585
1676
|
title,
|
|
1586
1677
|
titleId,
|
|
@@ -1719,9 +1810,9 @@ function styleInject(css, ref) {
|
|
|
1719
1810
|
}
|
|
1720
1811
|
}
|
|
1721
1812
|
|
|
1722
|
-
var css_248z$
|
|
1723
|
-
var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW"
|
|
1724
|
-
styleInject(css_248z$
|
|
1813
|
+
var css_248z$c = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}";
|
|
1814
|
+
var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW"};
|
|
1815
|
+
styleInject(css_248z$c);
|
|
1725
1816
|
|
|
1726
1817
|
// eslint-disable-next-line react/display-name
|
|
1727
1818
|
const File = /*#__PURE__*/forwardRef(({
|
|
@@ -1729,7 +1820,6 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1729
1820
|
size,
|
|
1730
1821
|
name,
|
|
1731
1822
|
color,
|
|
1732
|
-
label,
|
|
1733
1823
|
style,
|
|
1734
1824
|
weight,
|
|
1735
1825
|
family,
|
|
@@ -1749,10 +1839,13 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1749
1839
|
errorStyle,
|
|
1750
1840
|
errorWeight,
|
|
1751
1841
|
errorFamily,
|
|
1842
|
+
label,
|
|
1752
1843
|
labelSize,
|
|
1844
|
+
labelColor,
|
|
1753
1845
|
labelStyle,
|
|
1754
1846
|
labelWeight,
|
|
1755
1847
|
labelFamily,
|
|
1848
|
+
useLabelTooltip,
|
|
1756
1849
|
labelTooltipColor,
|
|
1757
1850
|
labelTooltipPadding,
|
|
1758
1851
|
labelTooltipFontSize,
|
|
@@ -1762,7 +1855,6 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1762
1855
|
labelTooltipBorderRadius,
|
|
1763
1856
|
labelTooltipBackgroundColor,
|
|
1764
1857
|
removeFile,
|
|
1765
|
-
labelColor,
|
|
1766
1858
|
errorColor,
|
|
1767
1859
|
filesArray,
|
|
1768
1860
|
componentId,
|
|
@@ -1777,6 +1869,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1777
1869
|
maxSizeError,
|
|
1778
1870
|
progressColor,
|
|
1779
1871
|
noChoosenFile,
|
|
1872
|
+
iconSvg,
|
|
1780
1873
|
iconPdf,
|
|
1781
1874
|
iconDoc,
|
|
1782
1875
|
iconPng,
|
|
@@ -1830,6 +1923,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1830
1923
|
maxCHoosenLengthErrorHideTime,
|
|
1831
1924
|
textAlignLeftInSmallComponent,
|
|
1832
1925
|
showPreviewIconInSmallComponent,
|
|
1926
|
+
extentionsTextColor,
|
|
1833
1927
|
maxSize = 10,
|
|
1834
1928
|
preview = true,
|
|
1835
1929
|
timeForRemoveError = 5000,
|
|
@@ -1837,11 +1931,11 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1837
1931
|
}, ref) => {
|
|
1838
1932
|
const inpRef = useRef(null);
|
|
1839
1933
|
const labelRef = useRef(null);
|
|
1840
|
-
const
|
|
1934
|
+
const parentRef = useRef(null);
|
|
1841
1935
|
const memoizedItems = useMemo(() => filesArray, [filesArray]);
|
|
1842
1936
|
const [error, setError] = useState('');
|
|
1843
|
-
const [isHover, setIsHover] = useState(false);
|
|
1844
1937
|
const [removeID, setRemoveID] = useState('');
|
|
1938
|
+
const [isHover, setIsHover] = useState(false);
|
|
1845
1939
|
const [classProps, setClassProps] = useState({});
|
|
1846
1940
|
const [singleFile, setSingleFile] = useState(null);
|
|
1847
1941
|
const [configStyles, setConfigStyles] = useState({});
|
|
@@ -1891,7 +1985,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1891
1985
|
for (let ix = 0; ix < file.length; ix++) {
|
|
1892
1986
|
if (file[ix]) {
|
|
1893
1987
|
if (file[ix].size <= maxSize * Math.pow(2, 20)) {
|
|
1894
|
-
if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif') || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[ix].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[ix].type.split('/')[1] === 'msword')) {
|
|
1988
|
+
if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif') || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[ix].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[ix].type.split('/')[1] === 'msword') || fileExtensions.includes('svg') && file[ix].type.split('/')[1] === 'svg+xml') {
|
|
1895
1989
|
if (file[ix].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
|
|
1896
1990
|
change({
|
|
1897
1991
|
id: '',
|
|
@@ -1927,6 +2021,15 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1927
2021
|
check: formatError ?? configStyles.FILE.error.format
|
|
1928
2022
|
});
|
|
1929
2023
|
});
|
|
2024
|
+
} else if (file[ix].type === 'image/svg+xml') {
|
|
2025
|
+
change({
|
|
2026
|
+
id: '',
|
|
2027
|
+
check: '',
|
|
2028
|
+
status: '',
|
|
2029
|
+
file: file[ix],
|
|
2030
|
+
uuid: v4()
|
|
2031
|
+
});
|
|
2032
|
+
setImage('svg');
|
|
1930
2033
|
} else {
|
|
1931
2034
|
change({
|
|
1932
2035
|
id: '',
|
|
@@ -1957,7 +2060,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1957
2060
|
for (let ix = 0; ix < file.length; ix++) {
|
|
1958
2061
|
if (file[ix]) {
|
|
1959
2062
|
if (file[ix].size <= maxSize * Math.pow(2, 20)) {
|
|
1960
|
-
if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif') || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[ix].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[ix].type.split('/')[1] === 'msword')) {
|
|
2063
|
+
if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif') || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[ix].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[ix].type.split('/')[1] === 'msword') || fileExtensions.includes('svg') && file[ix].type.split('/')[1] === 'svg+xml') {
|
|
1961
2064
|
if (file[ix].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
|
|
1962
2065
|
change({
|
|
1963
2066
|
id: '',
|
|
@@ -1993,6 +2096,15 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1993
2096
|
check: formatError ?? configStyles.FILE.error.format
|
|
1994
2097
|
});
|
|
1995
2098
|
});
|
|
2099
|
+
} else if (file[ix].type === 'image/svg+xml') {
|
|
2100
|
+
change({
|
|
2101
|
+
id: '',
|
|
2102
|
+
check: '',
|
|
2103
|
+
status: '',
|
|
2104
|
+
file: file[ix],
|
|
2105
|
+
uuid: v4()
|
|
2106
|
+
});
|
|
2107
|
+
setImage('svg');
|
|
1996
2108
|
} else {
|
|
1997
2109
|
change({
|
|
1998
2110
|
id: '',
|
|
@@ -2032,7 +2144,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2032
2144
|
} else {
|
|
2033
2145
|
if (file[0]) {
|
|
2034
2146
|
if (file[0].size <= maxSize * Math.pow(2, 20)) {
|
|
2035
|
-
if (fileExtensions.includes(file[0].type.split('/')[1]) || (fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[0].type === 'image/heif' || file[0].type === 'image/heic' || file[0].name.toLowerCase().endsWith('.heic') || file[0].name.toLowerCase().endsWith('.heif')) || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[0].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[0].type.split('/')[1] === 'msword')) {
|
|
2147
|
+
if (fileExtensions.includes(file[0].type.split('/')[1]) || (fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[0].type === 'image/heif' || file[0].type === 'image/heic' || file[0].name.toLowerCase().endsWith('.heic') || file[0].name.toLowerCase().endsWith('.heif')) || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[0].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[0].type.split('/')[1] === 'msword') || fileExtensions.includes('svg') && file[0].type.split('/')[1] === 'svg+xml') {
|
|
2036
2148
|
setError('');
|
|
2037
2149
|
if (file[0].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
|
|
2038
2150
|
setImage('docx');
|
|
@@ -2076,7 +2188,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2076
2188
|
}
|
|
2077
2189
|
};
|
|
2078
2190
|
const handleClick = () => {
|
|
2079
|
-
if (!image && !singleFile) {
|
|
2191
|
+
if (!image && !singleFile || multiple) {
|
|
2080
2192
|
inpRef.current.files = null;
|
|
2081
2193
|
inpRef.current.value = null;
|
|
2082
2194
|
inpRef.current.click();
|
|
@@ -2118,7 +2230,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2118
2230
|
event.preventDefault();
|
|
2119
2231
|
setRemoveID(() => v4());
|
|
2120
2232
|
if (labelRef.current) {
|
|
2121
|
-
const parentElem =
|
|
2233
|
+
const parentElem = parentRef.current.getBoundingClientRect();
|
|
2122
2234
|
const rect = labelRef.current.getBoundingClientRect();
|
|
2123
2235
|
const top = rect.top;
|
|
2124
2236
|
const left = rect.left;
|
|
@@ -2252,7 +2364,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2252
2364
|
};
|
|
2253
2365
|
}, []);
|
|
2254
2366
|
return configStyles.FILE && /*#__PURE__*/React__default.createElement("div", {
|
|
2255
|
-
ref:
|
|
2367
|
+
ref: parentRef,
|
|
2256
2368
|
style: {
|
|
2257
2369
|
width: '100%',
|
|
2258
2370
|
maxWidth: maxWidth ?? configStyles.FILE.maxWidth
|
|
@@ -2275,17 +2387,19 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2275
2387
|
}
|
|
2276
2388
|
}, /*#__PURE__*/React__default.createElement("label", {
|
|
2277
2389
|
ref: labelRef,
|
|
2278
|
-
className: styles$b['file-label'],
|
|
2279
2390
|
style: {
|
|
2280
2391
|
width: '100%',
|
|
2281
2392
|
color: labelColor ?? configStyles.FILE.label.color,
|
|
2282
2393
|
fontSize: labelSize ?? configStyles.FILE.label.font.size,
|
|
2283
2394
|
fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
|
|
2284
2395
|
fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
|
|
2285
|
-
fontFamily: labelFamily ?? configStyles.FILE.label.font.family
|
|
2396
|
+
fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
|
|
2397
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'nowrap' : 'normal',
|
|
2398
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'hidden' : 'visible',
|
|
2399
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'ellipsis' : ''
|
|
2286
2400
|
},
|
|
2287
|
-
onMouseEnter: handleLabelMouseEnter,
|
|
2288
|
-
onMouseLeave: handleLabelMouseLeave
|
|
2401
|
+
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
2402
|
+
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
2289
2403
|
}, label), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
|
|
2290
2404
|
style: {
|
|
2291
2405
|
cursor: 'pointer'
|
|
@@ -2335,7 +2449,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2335
2449
|
fontFamily: family ?? configStyles.FILE.font.family,
|
|
2336
2450
|
fontWeight: weight ?? configStyles.FILE.font.weight
|
|
2337
2451
|
}
|
|
2338
|
-
}, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : image === 'doc' ? iconDoc ? iconDoc : configStyles.FILE.icon.doc ? configStyles.FILE.icon.doc : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : image === 'docx' ? iconDocx ? iconDocx : configStyles.FILE.icon.docx ? configStyles.FILE.icon.docx : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : /*#__PURE__*/React__default.createElement("img", {
|
|
2452
|
+
}, !multiple && image && preview ? image === 'svg' ? iconSvg ? iconSvg : configStyles.FILE.icon.svg ? configStyles.FILE.icon.svg : /*#__PURE__*/React__default.createElement(SvgSvg, null) : image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : image === 'doc' ? iconDoc ? iconDoc : configStyles.FILE.icon.doc ? configStyles.FILE.icon.doc : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : image === 'docx' ? iconDocx ? iconDocx : configStyles.FILE.icon.docx ? configStyles.FILE.icon.docx : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : /*#__PURE__*/React__default.createElement("img", {
|
|
2339
2453
|
src: image,
|
|
2340
2454
|
style: {
|
|
2341
2455
|
display: 'block',
|
|
@@ -2361,7 +2475,8 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2361
2475
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
2362
2476
|
style: {
|
|
2363
2477
|
margin: '0px',
|
|
2364
|
-
padding: '0px 10px'
|
|
2478
|
+
padding: '0px 10px',
|
|
2479
|
+
color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
|
|
2365
2480
|
}
|
|
2366
2481
|
}, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
2367
2482
|
className: styles$b['small-file-component'],
|
|
@@ -2386,7 +2501,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2386
2501
|
hoverColor: uploadBtnHoverColor ?? configStyles.FILE.uploadBtn.colors.hover,
|
|
2387
2502
|
backgroundColor: uploadBtnBackgroundColor ?? configStyles.FILE.uploadBtn.colors.background,
|
|
2388
2503
|
backgroundHoverColor: uploadBtnBackgroundColorHover ?? configStyles.FILE.uploadBtn.colors.backgroundHover
|
|
2389
|
-
}) : image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : image === 'doc' ? iconDoc ? iconDoc : configStyles.FILE.icon.doc ? configStyles.FILE.icon.doc : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : image === 'docx' ? iconDocx ? iconDocx : configStyles.FILE.icon.docx ? configStyles.FILE.icon.docx : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : singleFile[0].type === 'image/jpeg' ? iconJpeg ? iconJpeg : configStyles.FILE.icon.jpeg ? configStyles.FILE.icon.jpeg : /*#__PURE__*/React__default.createElement(SvgListItemJpeg, null) : singleFile[0].type === 'image/png' ? iconPng ? iconPng : configStyles.FILE.icon.png ? configStyles.FILE.icon.png : /*#__PURE__*/React__default.createElement(SvgListItemPng, null) : singleFile[0].type === 'image/jpg' ? iconJpeg ? iconJpg : configStyles.FILE.icon.jpg ? configStyles.FILE.icon.jpg : /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : '' : /*#__PURE__*/React__default.createElement(Button, {
|
|
2504
|
+
}) : image === 'svg' ? iconSvg ? iconSvg : configStyles.FILE.icon.svg ? configStyles.FILE.icon.svg : /*#__PURE__*/React__default.createElement(SvgSvg, null) : image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : image === 'doc' ? iconDoc ? iconDoc : configStyles.FILE.icon.doc ? configStyles.FILE.icon.doc : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : image === 'docx' ? iconDocx ? iconDocx : configStyles.FILE.icon.docx ? configStyles.FILE.icon.docx : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : singleFile[0].type === 'image/jpeg' ? iconJpeg ? iconJpeg : configStyles.FILE.icon.jpeg ? configStyles.FILE.icon.jpeg : /*#__PURE__*/React__default.createElement(SvgListItemJpeg, null) : singleFile[0].type === 'image/png' ? iconPng ? iconPng : configStyles.FILE.icon.png ? configStyles.FILE.icon.png : /*#__PURE__*/React__default.createElement(SvgListItemPng, null) : singleFile[0].type === 'image/jpg' ? iconJpeg ? iconJpg : configStyles.FILE.icon.jpg ? configStyles.FILE.icon.jpg : /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : '' : /*#__PURE__*/React__default.createElement(Button, {
|
|
2390
2505
|
contentWidth: true,
|
|
2391
2506
|
onClick: _ => _,
|
|
2392
2507
|
font: uploadBtnFont ?? configStyles.FILE.uploadBtn.font.family,
|
|
@@ -2402,12 +2517,14 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2402
2517
|
}), /*#__PURE__*/React__default.createElement("p", {
|
|
2403
2518
|
style: {
|
|
2404
2519
|
margin: '0px',
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2520
|
+
padding: '0px 10px',
|
|
2521
|
+
color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
|
|
2522
|
+
}
|
|
2523
|
+
}, singleFile && singleFile[`${0}`] ? singleFile[`${0}`].name : /*#__PURE__*/React__default.createElement("span", {
|
|
2524
|
+
style: {
|
|
2525
|
+
color: color ?? configStyles.FILE.color
|
|
2409
2526
|
}
|
|
2410
|
-
},
|
|
2527
|
+
}, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default.createElement("div", {
|
|
2411
2528
|
style: {
|
|
2412
2529
|
position: 'absolute',
|
|
2413
2530
|
top: '0px',
|
|
@@ -2450,6 +2567,7 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
2450
2567
|
status: item.status,
|
|
2451
2568
|
size: item?.file?.size,
|
|
2452
2569
|
name: item?.file?.name,
|
|
2570
|
+
iconSvg: iconSvg ?? configStyles.FILE.icon.svg,
|
|
2453
2571
|
iconPdf: iconPdf ?? configStyles.FILE.icon.pdf,
|
|
2454
2572
|
iconDoc: iconDoc ?? configStyles.FILE.icon.doc,
|
|
2455
2573
|
iconPng: iconPng ?? configStyles.FILE.icon.png,
|
|
@@ -2514,6 +2632,7 @@ File.propTypes = {
|
|
|
2514
2632
|
labelWeight: PropTypes.string,
|
|
2515
2633
|
labelFamily: PropTypes.string,
|
|
2516
2634
|
labelColor: PropTypes.string,
|
|
2635
|
+
useLabelTooltip: PropTypes.bool,
|
|
2517
2636
|
labelTooltipColor: PropTypes.string,
|
|
2518
2637
|
labelTooltipPadding: PropTypes.string,
|
|
2519
2638
|
labelTooltipFontSize: PropTypes.string,
|
|
@@ -2537,6 +2656,7 @@ File.propTypes = {
|
|
|
2537
2656
|
progressColor: PropTypes.string,
|
|
2538
2657
|
deleteComponent: PropTypes.bool,
|
|
2539
2658
|
removeComponent: PropTypes.func,
|
|
2659
|
+
iconSvg: PropTypes.element,
|
|
2540
2660
|
iconPdf: PropTypes.element,
|
|
2541
2661
|
iconDoc: PropTypes.element,
|
|
2542
2662
|
iconPng: PropTypes.element,
|
|
@@ -2590,7 +2710,8 @@ File.propTypes = {
|
|
|
2590
2710
|
filesArray: PropTypes.arrayOf(PropTypes.object),
|
|
2591
2711
|
textAlignLeftInSmallComponent: PropTypes.bool,
|
|
2592
2712
|
showPreviewIconInSmallComponent: PropTypes.bool,
|
|
2593
|
-
fileExtensions: PropTypes.arrayOf(PropTypes.string)
|
|
2713
|
+
fileExtensions: PropTypes.arrayOf(PropTypes.string),
|
|
2714
|
+
extentionsTextColor: PropTypes.string
|
|
2594
2715
|
};
|
|
2595
2716
|
|
|
2596
2717
|
const hasOwnerProperty = (object, property) => {
|
|
@@ -2627,11 +2748,7 @@ const handleUtilsCheckTypeTel = (val, prevVal) => {
|
|
|
2627
2748
|
return val;
|
|
2628
2749
|
};
|
|
2629
2750
|
const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength, cardNumber) => {
|
|
2630
|
-
|
|
2631
|
-
if (val.length > maxLength) {
|
|
2632
|
-
val = val.substr(0, maxLength);
|
|
2633
|
-
}
|
|
2634
|
-
} else {
|
|
2751
|
+
{
|
|
2635
2752
|
const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.|\․|\.|\,)?(\d+)?$/ : /^\d+$/;
|
|
2636
2753
|
if (cardNumber) {
|
|
2637
2754
|
if (val.length > 19 && !val.includes('.')) {
|
|
@@ -2854,9 +2971,9 @@ SingleCheckbox.propTypes = {
|
|
|
2854
2971
|
ignoreDisabledForChecked: PropTypes.bool
|
|
2855
2972
|
};
|
|
2856
2973
|
|
|
2857
|
-
var css_248z$
|
|
2974
|
+
var css_248z$b = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}.table-module_no-tabel-data__6xp3N{align-items:center;display:flex;height:200px;justify-content:center;width:100%}";
|
|
2858
2975
|
var styles$a = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO","no-tabel-data":"table-module_no-tabel-data__6xp3N"};
|
|
2859
|
-
styleInject(css_248z$
|
|
2976
|
+
styleInject(css_248z$b);
|
|
2860
2977
|
|
|
2861
2978
|
/* eslint-disable no-prototype-builtins */
|
|
2862
2979
|
const TH = ({
|
|
@@ -2955,6 +3072,7 @@ const TD = ({
|
|
|
2955
3072
|
handleCheckedBody,
|
|
2956
3073
|
openListFontWeight,
|
|
2957
3074
|
openListFontFamily,
|
|
3075
|
+
handleClickOnRowTd,
|
|
2958
3076
|
tableColumnMinWidth,
|
|
2959
3077
|
tableColumnMaxWidth,
|
|
2960
3078
|
handleBodyActionClick,
|
|
@@ -3045,7 +3163,8 @@ const TD = ({
|
|
|
3045
3163
|
borderBottomLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
|
|
3046
3164
|
borderTopRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
|
|
3047
3165
|
borderBottomRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px'
|
|
3048
|
-
}
|
|
3166
|
+
},
|
|
3167
|
+
onClick: e => handleClickOnRowTd(e, row, item, index, innerIndex)
|
|
3049
3168
|
}, Array.isArray(item) ? item.length > 0 ? item.map((newItem, newIndex) => {
|
|
3050
3169
|
if (newItem && !Array.isArray(newItem) && typeof newItem === 'object') {
|
|
3051
3170
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -3364,7 +3483,8 @@ const Table = ({
|
|
|
3364
3483
|
tableBorderColor,
|
|
3365
3484
|
collapseFullRow,
|
|
3366
3485
|
openArrow,
|
|
3367
|
-
closeArrow
|
|
3486
|
+
closeArrow,
|
|
3487
|
+
clickableRowColumnTd
|
|
3368
3488
|
}) => {
|
|
3369
3489
|
const itemRefs = useRef({});
|
|
3370
3490
|
const headerRef = useRef(null);
|
|
@@ -3939,6 +4059,20 @@ const Table = ({
|
|
|
3939
4059
|
return value;
|
|
3940
4060
|
});
|
|
3941
4061
|
};
|
|
4062
|
+
const handleClickOnRowTd = (e, row, item, index, innerIndex) => {
|
|
4063
|
+
e.stopPropagation();
|
|
4064
|
+
if (clickableRowColumnTd) {
|
|
4065
|
+
const actionData = {
|
|
4066
|
+
from: 'body',
|
|
4067
|
+
item,
|
|
4068
|
+
id: item.id,
|
|
4069
|
+
index,
|
|
4070
|
+
row,
|
|
4071
|
+
innerIndex
|
|
4072
|
+
};
|
|
4073
|
+
getData(actionData);
|
|
4074
|
+
}
|
|
4075
|
+
};
|
|
3942
4076
|
useEffect(() => {
|
|
3943
4077
|
if (checkDrag != null) {
|
|
3944
4078
|
const draggableArray = body && body.length > 0 ? body.map((item, index) => {
|
|
@@ -4155,6 +4289,7 @@ const Table = ({
|
|
|
4155
4289
|
openListFontWeight: openListFontWeight ?? configStyles.TABLE.openList.font.weight,
|
|
4156
4290
|
openListFontFamily: openListFontFamily ?? configStyles.TABLE.openList.font.family,
|
|
4157
4291
|
handleCheckedBody: handleCheckedBody,
|
|
4292
|
+
handleClickOnRowTd: handleClickOnRowTd,
|
|
4158
4293
|
handleBodyActionClick: handleBodyActionClick,
|
|
4159
4294
|
handleMoreOptionsClick: handleMoreOptionsClick,
|
|
4160
4295
|
handleContentListClick: handleContentListClick,
|
|
@@ -4272,12 +4407,13 @@ Table.propTypes = {
|
|
|
4272
4407
|
tableBorder: PropTypes.string,
|
|
4273
4408
|
tableBorderColor: PropTypes.string,
|
|
4274
4409
|
openArrow: PropTypes.element,
|
|
4275
|
-
closeArrow: PropTypes.element
|
|
4410
|
+
closeArrow: PropTypes.element,
|
|
4411
|
+
clickableRowColumnTd: PropTypes.bool
|
|
4276
4412
|
};
|
|
4277
4413
|
|
|
4278
|
-
var css_248z$
|
|
4279
|
-
var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48"
|
|
4280
|
-
styleInject(css_248z$
|
|
4414
|
+
var css_248z$a = ".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)}}";
|
|
4415
|
+
var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48"};
|
|
4416
|
+
styleInject(css_248z$a);
|
|
4281
4417
|
|
|
4282
4418
|
const SvgNext = ({
|
|
4283
4419
|
title,
|
|
@@ -4397,9 +4533,12 @@ const Modal = ({
|
|
|
4397
4533
|
prevIcon,
|
|
4398
4534
|
nextIcon,
|
|
4399
4535
|
closeIcon,
|
|
4536
|
+
closeIconFix,
|
|
4400
4537
|
showCloseIcon,
|
|
4401
4538
|
closeIconClass,
|
|
4402
4539
|
closeSlideIcon,
|
|
4540
|
+
closeIconTopPosition,
|
|
4541
|
+
closeIconRightPosition,
|
|
4403
4542
|
selected,
|
|
4404
4543
|
children,
|
|
4405
4544
|
minWidth,
|
|
@@ -4586,6 +4725,7 @@ const Modal = ({
|
|
|
4586
4725
|
}
|
|
4587
4726
|
}, type === 'content' && /*#__PURE__*/React__default.createElement("div", {
|
|
4588
4727
|
style: {
|
|
4728
|
+
position: closeIconFix ? 'relative' : 'unset',
|
|
4589
4729
|
width: '100%',
|
|
4590
4730
|
minWidth: '0',
|
|
4591
4731
|
display: 'flex',
|
|
@@ -4624,6 +4764,9 @@ const Modal = ({
|
|
|
4624
4764
|
}, headerText), showCloseIcon ? /*#__PURE__*/React__default.createElement("div", {
|
|
4625
4765
|
onClick: () => setShow(false),
|
|
4626
4766
|
style: {
|
|
4767
|
+
position: closeIconFix ? 'absolute' : 'unset',
|
|
4768
|
+
top: closeIconTopPosition ?? configStyles.MODAL?.closeIcon?.top,
|
|
4769
|
+
right: closeIconRightPosition ?? configStyles.MODAL?.closeIcon?.right,
|
|
4627
4770
|
display: 'flex',
|
|
4628
4771
|
minWidth: '14px',
|
|
4629
4772
|
minHeight: '14px',
|
|
@@ -4631,7 +4774,7 @@ const Modal = ({
|
|
|
4631
4774
|
width: 'fit-content',
|
|
4632
4775
|
alignItems: 'center',
|
|
4633
4776
|
alignSelf: 'flex-end',
|
|
4634
|
-
height: '100%',
|
|
4777
|
+
height: closeIconFix ? 'fit-content' : '100%',
|
|
4635
4778
|
justifyContent: 'center'
|
|
4636
4779
|
},
|
|
4637
4780
|
className: closeIconClass ? closeIconClass : configStyles.MODAL.icon.className
|
|
@@ -4783,9 +4926,12 @@ Modal.propTypes = {
|
|
|
4783
4926
|
prevIcon: PropTypes.element,
|
|
4784
4927
|
nextIcon: PropTypes.element,
|
|
4785
4928
|
closeIcon: PropTypes.element,
|
|
4929
|
+
closeIconFix: PropTypes.bool,
|
|
4786
4930
|
showCloseIcon: PropTypes.bool,
|
|
4787
4931
|
closeIconClass: PropTypes.string,
|
|
4788
4932
|
closeSlideIcon: PropTypes.element,
|
|
4933
|
+
closeIconTopPosition: PropTypes.string,
|
|
4934
|
+
closeIconRightPosition: PropTypes.string,
|
|
4789
4935
|
headerText: PropTypes.string,
|
|
4790
4936
|
headerSize: PropTypes.string,
|
|
4791
4937
|
headerStyle: PropTypes.string,
|
|
@@ -5143,9 +5289,9 @@ const NumberInput = ({
|
|
|
5143
5289
|
});
|
|
5144
5290
|
};
|
|
5145
5291
|
|
|
5146
|
-
var css_248z$
|
|
5147
|
-
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","
|
|
5148
|
-
styleInject(css_248z$
|
|
5292
|
+
var css_248z$9 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{appearance:none!important;-webkit-appearance:none!important;display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}input::-ms-clear,input::-ms-reveal{display:none}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
|
|
5293
|
+
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","inp-num":"input-module_inp-num__vH7HL"};
|
|
5294
|
+
styleInject(css_248z$9);
|
|
5149
5295
|
|
|
5150
5296
|
const InputTypes = {
|
|
5151
5297
|
TEL: 'tel',
|
|
@@ -5166,7 +5312,6 @@ const Input = ({
|
|
|
5166
5312
|
name,
|
|
5167
5313
|
style,
|
|
5168
5314
|
color,
|
|
5169
|
-
label,
|
|
5170
5315
|
value,
|
|
5171
5316
|
width,
|
|
5172
5317
|
regexp,
|
|
@@ -5176,14 +5321,12 @@ const Input = ({
|
|
|
5176
5321
|
weight,
|
|
5177
5322
|
family,
|
|
5178
5323
|
padding,
|
|
5179
|
-
tooltip,
|
|
5180
5324
|
telClass,
|
|
5181
5325
|
leftIcon,
|
|
5182
5326
|
required,
|
|
5183
5327
|
disabled,
|
|
5184
5328
|
errorDots,
|
|
5185
5329
|
errorIcon,
|
|
5186
|
-
labelDots,
|
|
5187
5330
|
iconWidth,
|
|
5188
5331
|
rightIcon,
|
|
5189
5332
|
className,
|
|
@@ -5191,30 +5334,22 @@ const Input = ({
|
|
|
5191
5334
|
boxShadow,
|
|
5192
5335
|
errorLeft,
|
|
5193
5336
|
errorSize,
|
|
5194
|
-
labelSize,
|
|
5195
5337
|
maxLength,
|
|
5196
|
-
labelIcon,
|
|
5197
|
-
labelStyle,
|
|
5198
5338
|
floatToFix,
|
|
5199
5339
|
minNumSize,
|
|
5200
5340
|
maxNumSize,
|
|
5201
|
-
labelColor,
|
|
5202
5341
|
errorColor,
|
|
5203
5342
|
withoutDot,
|
|
5204
5343
|
errorStyle,
|
|
5205
5344
|
iconPadding,
|
|
5206
|
-
labelAction,
|
|
5207
5345
|
errorAction,
|
|
5208
5346
|
placeholder,
|
|
5209
5347
|
errorZindex,
|
|
5210
|
-
labelWeight,
|
|
5211
5348
|
errorWeight,
|
|
5212
5349
|
errorFamily,
|
|
5213
5350
|
phoneDisplay,
|
|
5214
5351
|
errorMessage,
|
|
5215
5352
|
autoComplete,
|
|
5216
|
-
labelDisplay,
|
|
5217
|
-
labelIconSide,
|
|
5218
5353
|
showLabelIcon,
|
|
5219
5354
|
errorIconSide,
|
|
5220
5355
|
showErrorIcon,
|
|
@@ -5222,17 +5357,13 @@ const Input = ({
|
|
|
5222
5357
|
errorBoxShadow,
|
|
5223
5358
|
boxShadowHover,
|
|
5224
5359
|
errorClassName,
|
|
5225
|
-
labelIconMargin,
|
|
5226
|
-
labelFontFamily,
|
|
5227
5360
|
phoneAlignItems,
|
|
5228
5361
|
errorLineHeight,
|
|
5229
|
-
labelLineHeight,
|
|
5230
5362
|
numberMaxLength,
|
|
5231
5363
|
backgroundColor,
|
|
5232
5364
|
errorIconMargin,
|
|
5233
5365
|
placeholderColor,
|
|
5234
5366
|
withZero = false,
|
|
5235
|
-
labelMarginBottom,
|
|
5236
5367
|
regexpErrorMessage,
|
|
5237
5368
|
phoneJustifyContent,
|
|
5238
5369
|
telBorderRightWidth,
|
|
@@ -5241,13 +5372,40 @@ const Input = ({
|
|
|
5241
5372
|
fireInputInsideError,
|
|
5242
5373
|
backgroundDisableColor,
|
|
5243
5374
|
telBorderRightColorHover,
|
|
5375
|
+
label,
|
|
5376
|
+
labelSize,
|
|
5377
|
+
labelIcon,
|
|
5378
|
+
labelStyle,
|
|
5379
|
+
labelColor,
|
|
5380
|
+
labelAction,
|
|
5381
|
+
labelWeight,
|
|
5382
|
+
labelDisplay,
|
|
5383
|
+
labelIconSide,
|
|
5384
|
+
labelIconMargin,
|
|
5385
|
+
labelFontFamily,
|
|
5386
|
+
labelLineHeight,
|
|
5387
|
+
labelMarginBottom,
|
|
5388
|
+
iconRequired,
|
|
5389
|
+
useLabelTooltip,
|
|
5390
|
+
labelTooltipColor,
|
|
5391
|
+
labelTooltipPadding,
|
|
5392
|
+
labelTooltipFontSize,
|
|
5393
|
+
labelTooltipFontStyle,
|
|
5394
|
+
labelTooltipFontFamily,
|
|
5395
|
+
labelTooltipFontWeight,
|
|
5396
|
+
labelTooltipBorderRadius,
|
|
5397
|
+
labelTooltipBackgroundColor,
|
|
5244
5398
|
cardNumber,
|
|
5245
5399
|
type = 'text'
|
|
5246
5400
|
}) => {
|
|
5401
|
+
const labelRef = useRef(null);
|
|
5402
|
+
const parentRef = useRef(null);
|
|
5247
5403
|
const [show, setShow] = useState(false);
|
|
5404
|
+
const [removeID, setRemoveID] = useState('');
|
|
5248
5405
|
const [isHover, setIsHover] = useState(false);
|
|
5249
5406
|
const [classProps, setClassProps] = useState({});
|
|
5250
5407
|
const [innerValue, setInnerValue] = useState('');
|
|
5408
|
+
const [tooltipElem, setTooltipElem] = useState(null);
|
|
5251
5409
|
const [configStyles, setConfigStyles] = useState({});
|
|
5252
5410
|
const [innerErrorIcon, setInnerErrorIcon] = useState('');
|
|
5253
5411
|
const [innerLabelIcon, setInnerLabelIcon] = useState('');
|
|
@@ -5298,6 +5456,79 @@ const Input = ({
|
|
|
5298
5456
|
const handleShowPass = () => {
|
|
5299
5457
|
setShow(!show);
|
|
5300
5458
|
};
|
|
5459
|
+
const getRenderedTextWidth = element => {
|
|
5460
|
+
const clone = element.cloneNode(true);
|
|
5461
|
+
clone.style.width = 'fit-content';
|
|
5462
|
+
document.body.appendChild(clone);
|
|
5463
|
+
const width = clone.offsetWidth;
|
|
5464
|
+
document.body.removeChild(clone);
|
|
5465
|
+
return width;
|
|
5466
|
+
};
|
|
5467
|
+
const handleLabelMouseEnter = event => {
|
|
5468
|
+
event.preventDefault();
|
|
5469
|
+
setRemoveID(() => v4());
|
|
5470
|
+
if (labelRef.current) {
|
|
5471
|
+
const parentElem = parentRef.current.getBoundingClientRect();
|
|
5472
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
5473
|
+
const top = rect.top;
|
|
5474
|
+
const left = rect.left;
|
|
5475
|
+
const height = rect.height;
|
|
5476
|
+
const elementWidth = rect.width;
|
|
5477
|
+
const x = event.clientX - rect.left;
|
|
5478
|
+
const parentWidth = parentElem.width;
|
|
5479
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
5480
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
5481
|
+
const newTooltipElem = document.createElement('div');
|
|
5482
|
+
newTooltipElem.id = `fake_id_for_remove_dom${removeID}`;
|
|
5483
|
+
const newTootltipTextElem = document.createElement('p');
|
|
5484
|
+
const newTooltipChildElem = document.createElement('div');
|
|
5485
|
+
const newTooltipDecorElem = document.createElement('div');
|
|
5486
|
+
newTooltipElem.style.position = 'fixed';
|
|
5487
|
+
newTooltipElem.style.left = showLabelIcon && innerLabelIcon && innerLabelIconSide === 'left' ? left - 14 - (labelIconMargin ? labelIconMargin : configStyles.INPUT.label.iconMargin) + 'px' : left + 'px';
|
|
5488
|
+
newTooltipElem.style.paddingTop = '20px';
|
|
5489
|
+
newTooltipElem.style.height = 'fit-content';
|
|
5490
|
+
newTooltipElem.style.boxSizing = 'border-box';
|
|
5491
|
+
newTooltipElem.style.top = top + height + 'px';
|
|
5492
|
+
newTooltipElem.style.width = parentWidth + 'px';
|
|
5493
|
+
newTooltipChildElem.style.width = '100%';
|
|
5494
|
+
newTooltipChildElem.style.position = 'relative';
|
|
5495
|
+
newTooltipChildElem.style.height = 'fit-content';
|
|
5496
|
+
newTooltipChildElem.style.boxSizing = 'border-box';
|
|
5497
|
+
newTooltipChildElem.style.padding = labelTooltipPadding ?? configStyles.INPUT.label.tooltip.padding;
|
|
5498
|
+
newTooltipChildElem.style.borderRadius = labelTooltipBorderRadius ?? configStyles.INPUT.label.tooltip.borderRadius;
|
|
5499
|
+
newTooltipChildElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.INPUT.label.tooltip.backgroundColor;
|
|
5500
|
+
newTooltipDecorElem.style.zIndex = -1;
|
|
5501
|
+
newTooltipDecorElem.style.top = '-8px';
|
|
5502
|
+
newTooltipDecorElem.style.width = '18px';
|
|
5503
|
+
newTooltipDecorElem.style.height = '18px';
|
|
5504
|
+
newTooltipDecorElem.style.rotate = '45deg';
|
|
5505
|
+
newTooltipDecorElem.style.position = 'absolute';
|
|
5506
|
+
newTooltipDecorElem.style.left = x > elementWidth / 2 ? 'calc(100% - 40px)' : '23px';
|
|
5507
|
+
newTooltipDecorElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.INPUT.label.tooltip.backgroundColor;
|
|
5508
|
+
newTootltipTextElem.innerText = label;
|
|
5509
|
+
newTootltipTextElem.style.color = labelTooltipColor ?? configStyles.INPUT.label.tooltip.color;
|
|
5510
|
+
newTootltipTextElem.style.fontSize = labelTooltipFontSize ?? configStyles.INPUT.label.tooltip.font.size;
|
|
5511
|
+
newTootltipTextElem.style.fontStyle = labelTooltipFontStyle ?? configStyles.INPUT.label.tooltip.font.style;
|
|
5512
|
+
newTootltipTextElem.style.fontFamily = labelTooltipFontFamily ?? configStyles.INPUT.label.tooltip.font.family;
|
|
5513
|
+
newTootltipTextElem.style.fontWeight = labelTooltipFontWeight ?? configStyles.INPUT.label.tooltip.font.weight;
|
|
5514
|
+
document.body.appendChild(newTooltipElem);
|
|
5515
|
+
newTooltipElem.appendChild(newTooltipChildElem);
|
|
5516
|
+
newTooltipChildElem.appendChild(newTooltipDecorElem);
|
|
5517
|
+
newTooltipChildElem.appendChild(newTootltipTextElem);
|
|
5518
|
+
setTooltipElem(() => newTooltipElem);
|
|
5519
|
+
}
|
|
5520
|
+
}
|
|
5521
|
+
};
|
|
5522
|
+
const handleLabelMouseLeave = () => {
|
|
5523
|
+
const removableElem = document.getElementById(`fake_id_for_remove_dom${removeID}`);
|
|
5524
|
+
if (removableElem) {
|
|
5525
|
+
document.body.removeChild(removableElem);
|
|
5526
|
+
}
|
|
5527
|
+
if (tooltipElem) {
|
|
5528
|
+
document.body.removeChild(tooltipElem);
|
|
5529
|
+
}
|
|
5530
|
+
setRemoveID(() => '');
|
|
5531
|
+
};
|
|
5301
5532
|
useEffect(() => {
|
|
5302
5533
|
if (errorMessage) {
|
|
5303
5534
|
setInnerErrorMessage(errorMessage);
|
|
@@ -5344,25 +5575,18 @@ const Input = ({
|
|
|
5344
5575
|
});
|
|
5345
5576
|
}, []);
|
|
5346
5577
|
return configStyles.INPUT && /*#__PURE__*/React__default.createElement("div", {
|
|
5578
|
+
ref: parentRef,
|
|
5347
5579
|
className: classProps
|
|
5348
5580
|
}, /*#__PURE__*/React__default.createElement("style", null, `.tui-color-placeholder::placeholder {
|
|
5349
5581
|
color: ${placeholderColor ?? configStyles.INPUT.colors.placeholder};
|
|
5350
|
-
}`), label
|
|
5582
|
+
}`), label && /*#__PURE__*/React__default.createElement("div", {
|
|
5351
5583
|
style: {
|
|
5584
|
+
display: 'flex',
|
|
5352
5585
|
maxWidth: '100%',
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
fontWeight: labelWeight ?? configStyles.INPUT.label.font.weight,
|
|
5358
|
-
lineHeight: labelLineHeight ?? configStyles.INPUT.label.lineHeight,
|
|
5359
|
-
marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom,
|
|
5360
|
-
fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
|
|
5361
|
-
whiteSpace: (labelDots ? labelDots : configStyles.INPUT.label.dots) ? 'nowrap' : 'normal',
|
|
5362
|
-
overflow: (labelDots ? labelDots : configStyles.INPUT.label.dots) ? 'hidden' : 'visible',
|
|
5363
|
-
textOverflow: (labelDots ? labelDots : configStyles.INPUT.label.dots) ? 'ellipsis' : ''
|
|
5364
|
-
},
|
|
5365
|
-
title: label
|
|
5586
|
+
width: 'fit-content',
|
|
5587
|
+
columnGap: '4px',
|
|
5588
|
+
justifyContent: 'flex-start'
|
|
5589
|
+
}
|
|
5366
5590
|
}, showLabelIcon && innerLabelIcon && innerLabelIconSide === 'left' ? /*#__PURE__*/React__default.createElement("img", {
|
|
5367
5591
|
alt: "label icon",
|
|
5368
5592
|
src: innerLabelIcon,
|
|
@@ -5373,7 +5597,24 @@ const Input = ({
|
|
|
5373
5597
|
marginRight: labelIconMargin ?? configStyles.INPUT.label.iconMargin
|
|
5374
5598
|
},
|
|
5375
5599
|
onClick: labelAction ? () => labelAction() : _ => _
|
|
5376
|
-
}) : '',
|
|
5600
|
+
}) : '', /*#__PURE__*/React__default.createElement("label", {
|
|
5601
|
+
ref: labelRef,
|
|
5602
|
+
style: {
|
|
5603
|
+
color: labelColor ?? configStyles.INPUT.label.color,
|
|
5604
|
+
fontSize: labelSize ?? configStyles.INPUT.label.font.size,
|
|
5605
|
+
fontStyle: labelStyle ?? configStyles.INPUT.label.font.style,
|
|
5606
|
+
display: labelDisplay ?? configStyles.INPUT.label.display,
|
|
5607
|
+
fontWeight: labelWeight ?? configStyles.INPUT.label.font.weight,
|
|
5608
|
+
lineHeight: labelLineHeight ?? configStyles.INPUT.label.lineHeight,
|
|
5609
|
+
marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom,
|
|
5610
|
+
fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family,
|
|
5611
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'nowrap' : 'normal',
|
|
5612
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'hidden' : 'visible',
|
|
5613
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? 'ellipsis' : ''
|
|
5614
|
+
},
|
|
5615
|
+
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
5616
|
+
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
5617
|
+
}, label), 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", {
|
|
5377
5618
|
alt: "label icon",
|
|
5378
5619
|
src: innerLabelIcon,
|
|
5379
5620
|
style: {
|
|
@@ -5383,7 +5624,7 @@ const Input = ({
|
|
|
5383
5624
|
marginLeft: labelIconMargin ?? configStyles.INPUT.label.iconMargin
|
|
5384
5625
|
},
|
|
5385
5626
|
onClick: labelAction ? () => labelAction() : _ => _
|
|
5386
|
-
}) : '')
|
|
5627
|
+
}) : ''), /*#__PURE__*/React__default.createElement("div", {
|
|
5387
5628
|
className: `${styles$8['input-content']}`,
|
|
5388
5629
|
style: {
|
|
5389
5630
|
width: width ?? configStyles.INPUT.width,
|
|
@@ -5481,7 +5722,7 @@ const Input = ({
|
|
|
5481
5722
|
borderBottomRightRadius: radius ?? configStyles.INPUT.radius,
|
|
5482
5723
|
backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
|
|
5483
5724
|
}
|
|
5484
|
-
}, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''),
|
|
5725
|
+
}, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), innerErrorMessage ? /*#__PURE__*/React__default.createElement(P
|
|
5485
5726
|
// animation={animation}
|
|
5486
5727
|
, {
|
|
5487
5728
|
style: {
|
|
@@ -5549,7 +5790,6 @@ Input.propTypes = {
|
|
|
5549
5790
|
radius: PropTypes.string,
|
|
5550
5791
|
padding: PropTypes.string,
|
|
5551
5792
|
cardNumber: PropTypes.bool,
|
|
5552
|
-
tooltip: PropTypes.element,
|
|
5553
5793
|
withoutDot: PropTypes.bool,
|
|
5554
5794
|
className: PropTypes.string,
|
|
5555
5795
|
iconWidth: PropTypes.string,
|
|
@@ -5558,21 +5798,6 @@ Input.propTypes = {
|
|
|
5558
5798
|
floatToFix: PropTypes.number,
|
|
5559
5799
|
minNumSize: PropTypes.number,
|
|
5560
5800
|
maxNumSize: PropTypes.number,
|
|
5561
|
-
label: PropTypes.string,
|
|
5562
|
-
labelDots: PropTypes.bool,
|
|
5563
|
-
labelAction: PropTypes.func,
|
|
5564
|
-
labelIcon: PropTypes.string,
|
|
5565
|
-
labelSize: PropTypes.string,
|
|
5566
|
-
labelColor: PropTypes.string,
|
|
5567
|
-
labelStyle: PropTypes.string,
|
|
5568
|
-
showLabelIcon: PropTypes.bool,
|
|
5569
|
-
labelWeight: PropTypes.string,
|
|
5570
|
-
labelDisplay: PropTypes.string,
|
|
5571
|
-
labelIconSide: PropTypes.oneOf(Object.values(IconSides)),
|
|
5572
|
-
labelLineHeight: PropTypes.string,
|
|
5573
|
-
labelFontFamily: PropTypes.string,
|
|
5574
|
-
labelIconMargin: PropTypes.string,
|
|
5575
|
-
labelMarginBottom: PropTypes.string,
|
|
5576
5801
|
borderRight: PropTypes.string,
|
|
5577
5802
|
placeholder: PropTypes.string,
|
|
5578
5803
|
placeholderColor: PropTypes.string,
|
|
@@ -5616,8 +5841,32 @@ Input.propTypes = {
|
|
|
5616
5841
|
leftIcon: PropTypes.arrayOf(PropTypes.element),
|
|
5617
5842
|
rightIcon: PropTypes.arrayOf(PropTypes.element),
|
|
5618
5843
|
type: PropTypes.oneOf(Object.values(InputTypes)),
|
|
5619
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object])
|
|
5620
|
-
|
|
5844
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]),
|
|
5845
|
+
iconRequired: PropTypes.element,
|
|
5846
|
+
label: PropTypes.string,
|
|
5847
|
+
labelAction: PropTypes.func,
|
|
5848
|
+
labelIcon: PropTypes.string,
|
|
5849
|
+
labelSize: PropTypes.string,
|
|
5850
|
+
labelColor: PropTypes.string,
|
|
5851
|
+
labelStyle: PropTypes.string,
|
|
5852
|
+
showLabelIcon: PropTypes.bool,
|
|
5853
|
+
labelWeight: PropTypes.string,
|
|
5854
|
+
labelDisplay: PropTypes.string,
|
|
5855
|
+
labelIconSide: PropTypes.oneOf(Object.values(IconSides)),
|
|
5856
|
+
labelLineHeight: PropTypes.string,
|
|
5857
|
+
labelFontFamily: PropTypes.string,
|
|
5858
|
+
labelIconMargin: PropTypes.string,
|
|
5859
|
+
labelMarginBottom: PropTypes.string,
|
|
5860
|
+
useLabelTooltip: PropTypes.bool,
|
|
5861
|
+
labelTooltipColor: PropTypes.string,
|
|
5862
|
+
labelTooltipPadding: PropTypes.string,
|
|
5863
|
+
labelTooltipFontSize: PropTypes.string,
|
|
5864
|
+
labelTooltipFontStyle: PropTypes.string,
|
|
5865
|
+
labelTooltipFontFamily: PropTypes.string,
|
|
5866
|
+
labelTooltipFontWeight: PropTypes.string,
|
|
5867
|
+
labelTooltipBorderRadius: PropTypes.string,
|
|
5868
|
+
labelTooltipBackgroundColor: PropTypes.string
|
|
5869
|
+
};
|
|
5621
5870
|
|
|
5622
5871
|
const RadioDirectionMode = {
|
|
5623
5872
|
VERTICAL: 'vertical',
|
|
@@ -5828,9 +6077,9 @@ const SvgArrow = ({
|
|
|
5828
6077
|
fill: fillColor ? fillColor : '#3C393E'
|
|
5829
6078
|
}));
|
|
5830
6079
|
|
|
5831
|
-
var css_248z$
|
|
5832
|
-
var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-
|
|
5833
|
-
styleInject(css_248z$
|
|
6080
|
+
var css_248z$8 = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;display:flex;flex-direction:row;flex-wrap:nowrap}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:99999999999}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:fit-content;justify-content:center;max-height:30px;max-width:30px;min-height:14px;min-width:14px;width:fit-content}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
6081
|
+
var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-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"};
|
|
6082
|
+
styleInject(css_248z$8);
|
|
5834
6083
|
|
|
5835
6084
|
const Select = ({
|
|
5836
6085
|
dots,
|
|
@@ -5862,6 +6111,16 @@ const Select = ({
|
|
|
5862
6111
|
labelFontFamily,
|
|
5863
6112
|
labelMarginBottom,
|
|
5864
6113
|
labelTextTransform,
|
|
6114
|
+
iconRequired,
|
|
6115
|
+
useLabelTooltip,
|
|
6116
|
+
labelTooltipColor,
|
|
6117
|
+
labelTooltipPadding,
|
|
6118
|
+
labelTooltipFontSize,
|
|
6119
|
+
labelTooltipFontStyle,
|
|
6120
|
+
labelTooltipFontFamily,
|
|
6121
|
+
labelTooltipFontWeight,
|
|
6122
|
+
labelTooltipBorderRadius,
|
|
6123
|
+
labelTooltipBackgroundColor,
|
|
5865
6124
|
cursor,
|
|
5866
6125
|
errorIcon,
|
|
5867
6126
|
errorSize,
|
|
@@ -5903,13 +6162,18 @@ const Select = ({
|
|
|
5903
6162
|
optionItemBackgroudColorHover,
|
|
5904
6163
|
boxShadow,
|
|
5905
6164
|
boxShadowHover,
|
|
5906
|
-
insidePagination
|
|
6165
|
+
insidePagination,
|
|
6166
|
+
placeholderColor
|
|
5907
6167
|
}) => {
|
|
5908
|
-
const ref = useRef();
|
|
6168
|
+
const ref = useRef(null);
|
|
6169
|
+
const labelRef = useRef(null);
|
|
6170
|
+
const parentRef = useRef(null);
|
|
5909
6171
|
const [opened, setOpened] = useState(false);
|
|
6172
|
+
const [removeID, setRemoveID] = useState('');
|
|
5910
6173
|
const [isHover, setIsHover] = useState(false);
|
|
5911
6174
|
const [classProps, setClassProps] = useState({});
|
|
5912
6175
|
const [newSelected, setNewSelected] = useState([]);
|
|
6176
|
+
const [tooltipElem, setTooltipElem] = useState(null);
|
|
5913
6177
|
const [existOptions, setExistOptions] = useState([]);
|
|
5914
6178
|
const [configStyles, setConfigStyles] = useState({});
|
|
5915
6179
|
const handleOpenClose = () => {
|
|
@@ -5975,6 +6239,79 @@ const Select = ({
|
|
|
5975
6239
|
}
|
|
5976
6240
|
return true;
|
|
5977
6241
|
};
|
|
6242
|
+
const getRenderedTextWidth = element => {
|
|
6243
|
+
const clone = element.cloneNode(true);
|
|
6244
|
+
clone.style.width = 'fit-content';
|
|
6245
|
+
document.body.appendChild(clone);
|
|
6246
|
+
const width = clone.offsetWidth;
|
|
6247
|
+
document.body.removeChild(clone);
|
|
6248
|
+
return width;
|
|
6249
|
+
};
|
|
6250
|
+
const handleLabelMouseEnter = event => {
|
|
6251
|
+
event.preventDefault();
|
|
6252
|
+
setRemoveID(() => v4());
|
|
6253
|
+
if (labelRef.current) {
|
|
6254
|
+
const parentElem = parentRef.current.getBoundingClientRect();
|
|
6255
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
6256
|
+
const top = rect.top;
|
|
6257
|
+
const left = rect.left;
|
|
6258
|
+
const height = rect.height;
|
|
6259
|
+
const elementWidth = rect.width;
|
|
6260
|
+
const x = event.clientX - rect.left;
|
|
6261
|
+
const parentWidth = parentElem.width;
|
|
6262
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
6263
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
6264
|
+
const newTooltipElem = document.createElement('div');
|
|
6265
|
+
newTooltipElem.id = `fake_id_for_remove_dom${removeID}`;
|
|
6266
|
+
const newTootltipTextElem = document.createElement('p');
|
|
6267
|
+
const newTooltipChildElem = document.createElement('div');
|
|
6268
|
+
const newTooltipDecorElem = document.createElement('div');
|
|
6269
|
+
newTooltipElem.style.position = 'fixed';
|
|
6270
|
+
newTooltipElem.style.left = left + 'px';
|
|
6271
|
+
newTooltipElem.style.paddingTop = '20px';
|
|
6272
|
+
newTooltipElem.style.height = 'fit-content';
|
|
6273
|
+
newTooltipElem.style.boxSizing = 'border-box';
|
|
6274
|
+
newTooltipElem.style.top = top + height + 'px';
|
|
6275
|
+
newTooltipElem.style.width = parentWidth + 'px';
|
|
6276
|
+
newTooltipChildElem.style.width = '100%';
|
|
6277
|
+
newTooltipChildElem.style.position = 'relative';
|
|
6278
|
+
newTooltipChildElem.style.height = 'fit-content';
|
|
6279
|
+
newTooltipChildElem.style.boxSizing = 'border-box';
|
|
6280
|
+
newTooltipChildElem.style.padding = labelTooltipPadding ?? configStyles.SELECT.label.tooltip.padding;
|
|
6281
|
+
newTooltipChildElem.style.borderRadius = labelTooltipBorderRadius ?? configStyles.SELECT.label.tooltip.borderRadius;
|
|
6282
|
+
newTooltipChildElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.SELECT.label.tooltip.backgroundColor;
|
|
6283
|
+
newTooltipDecorElem.style.zIndex = -1;
|
|
6284
|
+
newTooltipDecorElem.style.top = '-8px';
|
|
6285
|
+
newTooltipDecorElem.style.width = '18px';
|
|
6286
|
+
newTooltipDecorElem.style.height = '18px';
|
|
6287
|
+
newTooltipDecorElem.style.rotate = '45deg';
|
|
6288
|
+
newTooltipDecorElem.style.position = 'absolute';
|
|
6289
|
+
newTooltipDecorElem.style.left = x > elementWidth / 2 ? 'calc(100% - 40px)' : '23px';
|
|
6290
|
+
newTooltipDecorElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.SELECT.label.tooltip.backgroundColor;
|
|
6291
|
+
newTootltipTextElem.innerText = label;
|
|
6292
|
+
newTootltipTextElem.style.color = labelTooltipColor ?? configStyles.SELECT.label.tooltip.color;
|
|
6293
|
+
newTootltipTextElem.style.fontSize = labelTooltipFontSize ?? configStyles.SELECT.label.tooltip.font.size;
|
|
6294
|
+
newTootltipTextElem.style.fontStyle = labelTooltipFontStyle ?? configStyles.SELECT.label.tooltip.font.style;
|
|
6295
|
+
newTootltipTextElem.style.fontFamily = labelTooltipFontFamily ?? configStyles.SELECT.label.tooltip.font.family;
|
|
6296
|
+
newTootltipTextElem.style.fontWeight = labelTooltipFontWeight ?? configStyles.SELECT.label.tooltip.font.weight;
|
|
6297
|
+
document.body.appendChild(newTooltipElem);
|
|
6298
|
+
newTooltipElem.appendChild(newTooltipChildElem);
|
|
6299
|
+
newTooltipChildElem.appendChild(newTooltipDecorElem);
|
|
6300
|
+
newTooltipChildElem.appendChild(newTootltipTextElem);
|
|
6301
|
+
setTooltipElem(() => newTooltipElem);
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
};
|
|
6305
|
+
const handleLabelMouseLeave = () => {
|
|
6306
|
+
const removableElem = document.getElementById(`fake_id_for_remove_dom${removeID}`);
|
|
6307
|
+
if (removableElem) {
|
|
6308
|
+
document.body.removeChild(removableElem);
|
|
6309
|
+
}
|
|
6310
|
+
if (tooltipElem) {
|
|
6311
|
+
document.body.removeChild(tooltipElem);
|
|
6312
|
+
}
|
|
6313
|
+
setRemoveID(() => '');
|
|
6314
|
+
};
|
|
5978
6315
|
useEffect(() => {
|
|
5979
6316
|
if (opened) {
|
|
5980
6317
|
const checkIfClickedOutside = e => {
|
|
@@ -6029,12 +6366,22 @@ const Select = ({
|
|
|
6029
6366
|
});
|
|
6030
6367
|
}, []);
|
|
6031
6368
|
return configStyles.SELECT && /*#__PURE__*/React__default.createElement("div", {
|
|
6369
|
+
ref: parentRef,
|
|
6032
6370
|
className: classProps,
|
|
6033
6371
|
style: {
|
|
6034
6372
|
position: 'relative',
|
|
6035
6373
|
width: '100%'
|
|
6036
6374
|
}
|
|
6037
|
-
}, label
|
|
6375
|
+
}, label && /*#__PURE__*/React__default.createElement("div", {
|
|
6376
|
+
style: {
|
|
6377
|
+
display: 'flex',
|
|
6378
|
+
maxWidth: '100%',
|
|
6379
|
+
width: 'fit-content',
|
|
6380
|
+
columnGap: '4px',
|
|
6381
|
+
justifyContent: 'flex-start'
|
|
6382
|
+
}
|
|
6383
|
+
}, /*#__PURE__*/React__default.createElement("label", {
|
|
6384
|
+
ref: labelRef,
|
|
6038
6385
|
style: {
|
|
6039
6386
|
color: labelColor ?? configStyles.SELECT.label.color,
|
|
6040
6387
|
fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
|
|
@@ -6044,9 +6391,14 @@ const Select = ({
|
|
|
6044
6391
|
fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
|
|
6045
6392
|
lineHeight: labelLineHeight ?? configStyles.SELECT.label.lineHeight,
|
|
6046
6393
|
marginBottom: labelMarginBottom ?? configStyles.SELECT.label.marginBottom,
|
|
6047
|
-
textTransform: labelTextTransform ?? configStyles.SELECT.label.textTransform
|
|
6048
|
-
|
|
6049
|
-
|
|
6394
|
+
textTransform: labelTextTransform ?? configStyles.SELECT.label.textTransform,
|
|
6395
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'nowrap' : 'normal',
|
|
6396
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'hidden' : 'visible',
|
|
6397
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? 'ellipsis' : ''
|
|
6398
|
+
},
|
|
6399
|
+
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
6400
|
+
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
6401
|
+
}, label), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.SELECT.icon.required ? configStyles.SELECT.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), /*#__PURE__*/React__default.createElement("div", {
|
|
6050
6402
|
ref: ref
|
|
6051
6403
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6052
6404
|
className: styles$7['select-content']
|
|
@@ -6072,12 +6424,12 @@ const Select = ({
|
|
|
6072
6424
|
onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
|
|
6073
6425
|
onMouseLeave: disabled ? _ => _ : () => handleMouseLeave()
|
|
6074
6426
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6075
|
-
className:
|
|
6427
|
+
className: "select-content-top-text",
|
|
6076
6428
|
style: {
|
|
6077
6429
|
whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
|
|
6078
6430
|
overflow: insidePagination ? 'visible' : 'hidden',
|
|
6079
6431
|
textOverflow: insidePagination ? 'initial' : 'ellipsis',
|
|
6080
|
-
color: isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selected.colors.hover : selectedColor ? selectedColor : configStyles.SELECT.selected.color
|
|
6432
|
+
color: placeholderColor && !newSelected.length ? placeholderColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selected.colors.hover : selectedColor ? selectedColor : configStyles.SELECT.selected.color
|
|
6081
6433
|
}
|
|
6082
6434
|
}, !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] : newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
|
|
6083
6435
|
if (newSelected[index][keyNames.name]) {
|
|
@@ -6223,9 +6575,20 @@ Select.propTypes = {
|
|
|
6223
6575
|
optionItemMarginBottom: PropTypes.string,
|
|
6224
6576
|
optionItemBackgroudColor: PropTypes.string,
|
|
6225
6577
|
optionItemBackgroudColorHover: PropTypes.string,
|
|
6578
|
+
iconRequired: PropTypes.element,
|
|
6579
|
+
useLabelTooltip: PropTypes.bool,
|
|
6580
|
+
labelTooltipColor: PropTypes.string,
|
|
6581
|
+
labelTooltipPadding: PropTypes.string,
|
|
6582
|
+
labelTooltipFontSize: PropTypes.string,
|
|
6583
|
+
labelTooltipFontStyle: PropTypes.string,
|
|
6584
|
+
labelTooltipFontFamily: PropTypes.string,
|
|
6585
|
+
labelTooltipFontWeight: PropTypes.string,
|
|
6586
|
+
labelTooltipBorderRadius: PropTypes.string,
|
|
6587
|
+
labelTooltipBackgroundColor: PropTypes.string,
|
|
6226
6588
|
boxShadow: PropTypes.string,
|
|
6227
6589
|
boxShadowHover: PropTypes.string,
|
|
6228
|
-
insidePagination: PropTypes.bool
|
|
6590
|
+
insidePagination: PropTypes.bool,
|
|
6591
|
+
placeholderColor: PropTypes.string
|
|
6229
6592
|
};
|
|
6230
6593
|
|
|
6231
6594
|
const SvgToasterInfo = ({
|
|
@@ -6347,9 +6710,9 @@ const SvgToasterSuccess = ({
|
|
|
6347
6710
|
fill: fillColor ? fillColor : '#0DA574'
|
|
6348
6711
|
}));
|
|
6349
6712
|
|
|
6350
|
-
var css_248z$
|
|
6713
|
+
var css_248z$7 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceInLeftMobile__CA2dc{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:0}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}@media(max-width:480px){.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeftMobile__CA2dc;animation-name:toaster-module_bounceInLeftMobile__CA2dc}}";
|
|
6351
6714
|
var styles$6 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","notify-title":"toaster-module_notify-title__8lFLy","notify-desc":"toaster-module_notify-desc__bcWe2","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO","bounceInLeftMobile":"toaster-module_bounceInLeftMobile__CA2dc"};
|
|
6352
|
-
styleInject(css_248z$
|
|
6715
|
+
styleInject(css_248z$7);
|
|
6353
6716
|
|
|
6354
6717
|
const ToasterType = {
|
|
6355
6718
|
info: 'info',
|
|
@@ -6749,9 +7112,9 @@ const SvgTooltip = ({
|
|
|
6749
7112
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
6750
7113
|
}));
|
|
6751
7114
|
|
|
6752
|
-
var css_248z$
|
|
7115
|
+
var css_248z$6 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{box-sizing:border-box;padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
|
|
6753
7116
|
var styles$5 = {"tooltip-block":"tooltip-module_tooltip-block__v8U9u","tooltip":"tooltip-module_tooltip__emM6A","tooltip-rel":"tooltip-module_tooltip-rel__to9gq","tooltip-decor":"tooltip-module_tooltip-decor__qvt7t"};
|
|
6754
|
-
styleInject(css_248z$
|
|
7117
|
+
styleInject(css_248z$6);
|
|
6755
7118
|
|
|
6756
7119
|
const TooltipDirections = {
|
|
6757
7120
|
TOP: 'top',
|
|
@@ -6955,9 +7318,9 @@ const SvgCaptchaArrowDown = ({
|
|
|
6955
7318
|
fill: fillColor ? fillColor : '#00236A'
|
|
6956
7319
|
}));
|
|
6957
7320
|
|
|
6958
|
-
var css_248z$
|
|
7321
|
+
var css_248z$5 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
|
|
6959
7322
|
var styles$4 = {"start-point":"captcha-module_start-point__LkOqy","range":"captcha-module_range__k24I2","range-default":"captcha-module_range-default__-O0QD","range-error":"captcha-module_range-error__FKMfG","range-success":"captcha-module_range-success__VzLPq"};
|
|
6960
|
-
styleInject(css_248z$
|
|
7323
|
+
styleInject(css_248z$5);
|
|
6961
7324
|
|
|
6962
7325
|
const Captcha = ({
|
|
6963
7326
|
color,
|
|
@@ -7102,9 +7465,9 @@ Captcha.propTypes = {
|
|
|
7102
7465
|
getRange: PropTypes.func.isRequired
|
|
7103
7466
|
};
|
|
7104
7467
|
|
|
7105
|
-
var css_248z$
|
|
7468
|
+
var css_248z$4 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
|
|
7106
7469
|
var styles$3 = {"stepper-container":"stepper-module_stepper-container__-OVGy","bigRing":"stepper-module_bigRing__5GBm0","activeRing":"stepper-module_activeRing__Lzvh1","smallRing":"stepper-module_smallRing__u-5a8","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
|
|
7107
|
-
styleInject(css_248z$
|
|
7470
|
+
styleInject(css_248z$4);
|
|
7108
7471
|
|
|
7109
7472
|
const Stepper = ({
|
|
7110
7473
|
stepLength,
|
|
@@ -7267,9 +7630,6 @@ Checkbox.propTypes = {
|
|
|
7267
7630
|
data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
|
|
7268
7631
|
};
|
|
7269
7632
|
|
|
7270
|
-
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}";
|
|
7271
|
-
styleInject(css_248z$4);
|
|
7272
|
-
|
|
7273
7633
|
const PositionSide = {
|
|
7274
7634
|
TOP: 'top',
|
|
7275
7635
|
BOTTOM: 'bottom'
|
|
@@ -7280,7 +7640,6 @@ const Textarea = ({
|
|
|
7280
7640
|
style,
|
|
7281
7641
|
family,
|
|
7282
7642
|
weight,
|
|
7283
|
-
label,
|
|
7284
7643
|
width,
|
|
7285
7644
|
value,
|
|
7286
7645
|
height,
|
|
@@ -7297,32 +7656,47 @@ const Textarea = ({
|
|
|
7297
7656
|
maxHeight,
|
|
7298
7657
|
boxSizing,
|
|
7299
7658
|
maxLength,
|
|
7300
|
-
labelSize,
|
|
7301
7659
|
errorSize,
|
|
7302
7660
|
errorStyle,
|
|
7303
7661
|
errorWeight,
|
|
7304
7662
|
errorFamily,
|
|
7305
7663
|
marginTop,
|
|
7306
7664
|
className,
|
|
7307
|
-
labelColor,
|
|
7308
7665
|
errorColor,
|
|
7309
|
-
labelWeight,
|
|
7310
7666
|
placeholder,
|
|
7311
|
-
labelDisplay,
|
|
7312
7667
|
errorMessage,
|
|
7313
|
-
labelFontFamily,
|
|
7314
7668
|
backgroundColor,
|
|
7315
7669
|
borderFocusColor,
|
|
7316
7670
|
borderHoverColor,
|
|
7317
|
-
labelMarginBottom,
|
|
7318
7671
|
showCharacterCount,
|
|
7672
|
+
label,
|
|
7673
|
+
labelSize,
|
|
7674
|
+
labelColor,
|
|
7675
|
+
labelWeight,
|
|
7676
|
+
labelDisplay,
|
|
7677
|
+
labelFontFamily,
|
|
7678
|
+
labelMarginBottom,
|
|
7679
|
+
iconRequired,
|
|
7680
|
+
useLabelTooltip,
|
|
7681
|
+
labelTooltipColor,
|
|
7682
|
+
labelTooltipPadding,
|
|
7683
|
+
labelTooltipFontSize,
|
|
7684
|
+
labelTooltipFontStyle,
|
|
7685
|
+
labelTooltipFontFamily,
|
|
7686
|
+
labelTooltipFontWeight,
|
|
7687
|
+
labelTooltipBorderRadius,
|
|
7688
|
+
labelTooltipBackgroundColor,
|
|
7319
7689
|
characterCountPosition = 'top'
|
|
7320
7690
|
}) => {
|
|
7691
|
+
const labelRef = useRef(null);
|
|
7692
|
+
const parentRef = useRef(null);
|
|
7321
7693
|
const [error, setError] = useState('');
|
|
7694
|
+
const [removeID, setRemoveID] = useState('');
|
|
7322
7695
|
const [isHover, setIsHover] = useState(false);
|
|
7323
7696
|
const [isFocus, setIsFocus] = useState(false);
|
|
7324
7697
|
const [innerValue, setInnerValue] = useState('');
|
|
7325
7698
|
const [classProps, setClassProps] = useState({});
|
|
7699
|
+
const [tooltipElem, setTooltipElem] = useState(null);
|
|
7326
7700
|
const [configStyles, setConfigStyles] = useState({});
|
|
7327
7701
|
const handleMouseEnter = () => {
|
|
7328
7702
|
setIsHover(true);
|
|
@@ -7358,6 +7732,79 @@ const Textarea = ({
|
|
|
7358
7732
|
}
|
|
7359
7733
|
}
|
|
7360
7734
|
};
|
|
7735
|
+
const getRenderedTextWidth = element => {
|
|
7736
|
+
const clone = element.cloneNode(true);
|
|
7737
|
+
clone.style.width = 'fit-content';
|
|
7738
|
+
document.body.appendChild(clone);
|
|
7739
|
+
const width = clone.offsetWidth;
|
|
7740
|
+
document.body.removeChild(clone);
|
|
7741
|
+
return width;
|
|
7742
|
+
};
|
|
7743
|
+
const handleLabelMouseEnter = event => {
|
|
7744
|
+
event.preventDefault();
|
|
7745
|
+
setRemoveID(() => v4());
|
|
7746
|
+
if (labelRef.current) {
|
|
7747
|
+
const parentElem = parentRef.current.getBoundingClientRect();
|
|
7748
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
7749
|
+
const top = rect.top;
|
|
7750
|
+
const left = rect.left;
|
|
7751
|
+
const height = rect.height;
|
|
7752
|
+
const elementWidth = rect.width;
|
|
7753
|
+
const x = event.clientX - rect.left;
|
|
7754
|
+
const parentWidth = parentElem.width;
|
|
7755
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
7756
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
7757
|
+
const newTooltipElem = document.createElement('div');
|
|
7758
|
+
newTooltipElem.id = `fake_id_for_remove_dom${removeID}`;
|
|
7759
|
+
const newTootltipTextElem = document.createElement('p');
|
|
7760
|
+
const newTooltipChildElem = document.createElement('div');
|
|
7761
|
+
const newTooltipDecorElem = document.createElement('div');
|
|
7762
|
+
newTooltipElem.style.position = 'fixed';
|
|
7763
|
+
newTooltipElem.style.left = left + 'px';
|
|
7764
|
+
newTooltipElem.style.paddingTop = '20px';
|
|
7765
|
+
newTooltipElem.style.height = 'fit-content';
|
|
7766
|
+
newTooltipElem.style.boxSizing = 'border-box';
|
|
7767
|
+
newTooltipElem.style.top = top + height + 'px';
|
|
7768
|
+
newTooltipElem.style.width = parentWidth + 'px';
|
|
7769
|
+
newTooltipChildElem.style.width = '100%';
|
|
7770
|
+
newTooltipChildElem.style.position = 'relative';
|
|
7771
|
+
newTooltipChildElem.style.height = 'fit-content';
|
|
7772
|
+
newTooltipChildElem.style.boxSizing = 'border-box';
|
|
7773
|
+
newTooltipChildElem.style.padding = labelTooltipPadding ?? configStyles.TEXTAREA.label.tooltip.padding;
|
|
7774
|
+
newTooltipChildElem.style.borderRadius = labelTooltipBorderRadius ?? configStyles.TEXTAREA.label.tooltip.borderRadius;
|
|
7775
|
+
newTooltipChildElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.TEXTAREA.label.tooltip.backgroundColor;
|
|
7776
|
+
newTooltipDecorElem.style.zIndex = -1;
|
|
7777
|
+
newTooltipDecorElem.style.top = '-8px';
|
|
7778
|
+
newTooltipDecorElem.style.width = '18px';
|
|
7779
|
+
newTooltipDecorElem.style.height = '18px';
|
|
7780
|
+
newTooltipDecorElem.style.rotate = '45deg';
|
|
7781
|
+
newTooltipDecorElem.style.position = 'absolute';
|
|
7782
|
+
newTooltipDecorElem.style.left = x > elementWidth / 2 ? 'calc(100% - 40px)' : '23px';
|
|
7783
|
+
newTooltipDecorElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.TEXTAREA.label.tooltip.backgroundColor;
|
|
7784
|
+
newTootltipTextElem.innerText = label;
|
|
7785
|
+
newTootltipTextElem.style.color = labelTooltipColor ?? configStyles.TEXTAREA.label.tooltip.color;
|
|
7786
|
+
newTootltipTextElem.style.fontSize = labelTooltipFontSize ?? configStyles.TEXTAREA.label.tooltip.font.size;
|
|
7787
|
+
newTootltipTextElem.style.fontStyle = labelTooltipFontStyle ?? configStyles.TEXTAREA.label.tooltip.font.style;
|
|
7788
|
+
newTootltipTextElem.style.fontFamily = labelTooltipFontFamily ?? configStyles.TEXTAREA.label.tooltip.font.family;
|
|
7789
|
+
newTootltipTextElem.style.fontWeight = labelTooltipFontWeight ?? configStyles.TEXTAREA.label.tooltip.font.weight;
|
|
7790
|
+
document.body.appendChild(newTooltipElem);
|
|
7791
|
+
newTooltipElem.appendChild(newTooltipChildElem);
|
|
7792
|
+
newTooltipChildElem.appendChild(newTooltipDecorElem);
|
|
7793
|
+
newTooltipChildElem.appendChild(newTootltipTextElem);
|
|
7794
|
+
setTooltipElem(() => newTooltipElem);
|
|
7795
|
+
}
|
|
7796
|
+
}
|
|
7797
|
+
};
|
|
7798
|
+
const handleLabelMouseLeave = () => {
|
|
7799
|
+
const removableElem = document.getElementById(`fake_id_for_remove_dom${removeID}`);
|
|
7800
|
+
if (removableElem) {
|
|
7801
|
+
document.body.removeChild(removableElem);
|
|
7802
|
+
}
|
|
7803
|
+
if (tooltipElem) {
|
|
7804
|
+
document.body.removeChild(tooltipElem);
|
|
7805
|
+
}
|
|
7806
|
+
setRemoveID(() => '');
|
|
7807
|
+
};
|
|
7361
7808
|
useEffect(() => {
|
|
7362
7809
|
if (value === undefined) {
|
|
7363
7810
|
alert('Please add value prop on Textarea component');
|
|
@@ -7385,6 +7832,7 @@ const Textarea = ({
|
|
|
7385
7832
|
});
|
|
7386
7833
|
}, []);
|
|
7387
7834
|
return configStyles.TEXTAREA && /*#__PURE__*/React__default.createElement("div", {
|
|
7835
|
+
ref: parentRef,
|
|
7388
7836
|
style: {
|
|
7389
7837
|
width: width ?? configStyles.TEXTAREA.width
|
|
7390
7838
|
},
|
|
@@ -7400,11 +7848,30 @@ const Textarea = ({
|
|
|
7400
7848
|
fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
|
|
7401
7849
|
marginBottom: labelMarginBottom ?? configStyles.TEXTAREA.label.marginBottom
|
|
7402
7850
|
}
|
|
7403
|
-
}, label
|
|
7851
|
+
}, label && /*#__PURE__*/React__default.createElement("div", {
|
|
7404
7852
|
style: {
|
|
7405
|
-
display:
|
|
7853
|
+
display: 'flex',
|
|
7854
|
+
maxWidth: '100%',
|
|
7855
|
+
columnGap: '4px',
|
|
7856
|
+
justifyContent: 'flex-start',
|
|
7857
|
+
width: showCharacterCount && maxLength && characterCountPosition === 'top' ? 'calc(100% - 80px)' : '100%'
|
|
7406
7858
|
}
|
|
7407
|
-
},
|
|
7859
|
+
}, /*#__PURE__*/React__default.createElement("label", {
|
|
7860
|
+
ref: labelRef,
|
|
7861
|
+
style: {
|
|
7862
|
+
display: labelDisplay ?? configStyles.TEXTAREA.label.display,
|
|
7863
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'nowrap' : 'normal',
|
|
7864
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'hidden' : 'visible',
|
|
7865
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? 'ellipsis' : ''
|
|
7866
|
+
},
|
|
7867
|
+
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
7868
|
+
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
7869
|
+
}, label), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.TEXTAREA.icon.required ? configStyles.TEXTAREA.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default.createElement("span", {
|
|
7870
|
+
style: {
|
|
7871
|
+
width: 'fit-content',
|
|
7872
|
+
flexShrink: 0
|
|
7873
|
+
}
|
|
7874
|
+
}, maxLength - innerValue.length, " \u0576\u056B\u0577")), /*#__PURE__*/React__default.createElement("textarea", {
|
|
7408
7875
|
style: {
|
|
7409
7876
|
width: '100%',
|
|
7410
7877
|
border: 'none',
|
|
@@ -7471,7 +7938,6 @@ Textarea.propTypes = {
|
|
|
7471
7938
|
style: PropTypes.string,
|
|
7472
7939
|
family: PropTypes.string,
|
|
7473
7940
|
weight: PropTypes.string,
|
|
7474
|
-
label: PropTypes.string,
|
|
7475
7941
|
width: PropTypes.string,
|
|
7476
7942
|
height: PropTypes.string,
|
|
7477
7943
|
resize: PropTypes.string,
|
|
@@ -7488,25 +7954,36 @@ Textarea.propTypes = {
|
|
|
7488
7954
|
minHeight: PropTypes.string,
|
|
7489
7955
|
maxHeight: PropTypes.string,
|
|
7490
7956
|
maxLength: PropTypes.number,
|
|
7491
|
-
labelSize: PropTypes.string,
|
|
7492
7957
|
errorSize: PropTypes.string,
|
|
7493
7958
|
errorStyle: PropTypes.string,
|
|
7494
7959
|
errorWeight: PropTypes.string,
|
|
7495
7960
|
errorFamily: PropTypes.string,
|
|
7496
7961
|
className: PropTypes.string,
|
|
7497
|
-
labelColor: PropTypes.string,
|
|
7498
7962
|
errorColor: PropTypes.string,
|
|
7499
|
-
labelWeight: PropTypes.string,
|
|
7500
7963
|
placeholder: PropTypes.string,
|
|
7501
7964
|
errorMessage: PropTypes.string,
|
|
7502
|
-
labelDisplay: PropTypes.string,
|
|
7503
|
-
labelFontFamily: PropTypes.string,
|
|
7504
7965
|
backgroundColor: PropTypes.string,
|
|
7505
7966
|
showCharacterCount: PropTypes.bool,
|
|
7506
7967
|
value: PropTypes.string.isRequired,
|
|
7507
7968
|
borderFocusColor: PropTypes.string,
|
|
7508
7969
|
borderHoverColor: PropTypes.string,
|
|
7970
|
+
label: PropTypes.string,
|
|
7971
|
+
labelSize: PropTypes.string,
|
|
7972
|
+
labelColor: PropTypes.string,
|
|
7973
|
+
labelWeight: PropTypes.string,
|
|
7974
|
+
labelDisplay: PropTypes.string,
|
|
7975
|
+
labelFontFamily: PropTypes.string,
|
|
7509
7976
|
labelMarginBottom: PropTypes.string,
|
|
7977
|
+
iconRequired: PropTypes.element,
|
|
7978
|
+
useLabelTooltip: PropTypes.bool,
|
|
7979
|
+
labelTooltipColor: PropTypes.string,
|
|
7980
|
+
labelTooltipPadding: PropTypes.string,
|
|
7981
|
+
labelTooltipFontSize: PropTypes.string,
|
|
7982
|
+
labelTooltipFontStyle: PropTypes.string,
|
|
7983
|
+
labelTooltipFontFamily: PropTypes.string,
|
|
7984
|
+
labelTooltipFontWeight: PropTypes.string,
|
|
7985
|
+
labelTooltipBorderRadius: PropTypes.string,
|
|
7986
|
+
labelTooltipBackgroundColor: PropTypes.string,
|
|
7510
7987
|
characterCountPosition: PropTypes.oneOf(Object.values(PositionSide))
|
|
7511
7988
|
};
|
|
7512
7989
|
|
|
@@ -7522,6 +7999,7 @@ const AccordionItem = ({
|
|
|
7522
7999
|
titleAlign,
|
|
7523
8000
|
multipleOpen,
|
|
7524
8001
|
openHoverIcon,
|
|
8002
|
+
closeHoverIcon,
|
|
7525
8003
|
color,
|
|
7526
8004
|
border,
|
|
7527
8005
|
padding,
|
|
@@ -7602,7 +8080,7 @@ const AccordionItem = ({
|
|
|
7602
8080
|
alignItems: 'center',
|
|
7603
8081
|
justifyContent: 'center'
|
|
7604
8082
|
}
|
|
7605
|
-
}, isOpen ? closeIcon : isHover ? openHoverIcon
|
|
8083
|
+
}, isOpen ? isHover ? closeHoverIcon : closeIcon : isHover ? openHoverIcon : openIcon)), /*#__PURE__*/React__default.createElement("div", {
|
|
7606
8084
|
style: {
|
|
7607
8085
|
overflow: 'hidden',
|
|
7608
8086
|
height: isOpen ? 'auto' : '0px'
|
|
@@ -7668,6 +8146,7 @@ const Accordion = ({
|
|
|
7668
8146
|
titleAlign,
|
|
7669
8147
|
multipleOpen,
|
|
7670
8148
|
openHoverIcon,
|
|
8149
|
+
closeHoverIcon,
|
|
7671
8150
|
borderTop,
|
|
7672
8151
|
borderLeft,
|
|
7673
8152
|
borderRight,
|
|
@@ -7748,6 +8227,13 @@ const Accordion = ({
|
|
|
7748
8227
|
src: configStyles.ACCORDION.icon.close,
|
|
7749
8228
|
alt: "close icon"
|
|
7750
8229
|
}) : /*#__PURE__*/React__default.createElement(SvgGreenminus, null),
|
|
8230
|
+
closeHoverIcon: closeHoverIcon ? /*#__PURE__*/React__default.createElement("img", {
|
|
8231
|
+
src: closeHoverIcon,
|
|
8232
|
+
alt: "close icon"
|
|
8233
|
+
}) : configStyles.ACCORDION.icon.closeHover ? /*#__PURE__*/React__default.createElement("img", {
|
|
8234
|
+
src: configStyles.ACCORDION.icon.closeHover,
|
|
8235
|
+
alt: "close icon"
|
|
8236
|
+
}) : /*#__PURE__*/React__default.createElement(SvgGreenminus, null),
|
|
7751
8237
|
className: classProps,
|
|
7752
8238
|
color: color ?? configStyles.ACCORDION.color,
|
|
7753
8239
|
padding: padding ?? configStyles.ACCORDION.padding,
|
|
@@ -7791,6 +8277,7 @@ Accordion.propTypes = {
|
|
|
7791
8277
|
closeIcon: PropTypes.string,
|
|
7792
8278
|
marginBottom: PropTypes.string,
|
|
7793
8279
|
openHoverIcon: PropTypes.string,
|
|
8280
|
+
closeHoverIcon: PropTypes.string,
|
|
7794
8281
|
borderTop: PropTypes.bool,
|
|
7795
8282
|
borderLeft: PropTypes.bool,
|
|
7796
8283
|
borderRight: PropTypes.bool,
|
|
@@ -7805,6 +8292,8 @@ Accordion.propTypes = {
|
|
|
7805
8292
|
fontFamily: PropTypes.string
|
|
7806
8293
|
};
|
|
7807
8294
|
|
|
8295
|
+
// import React from 'react';
|
|
8296
|
+
|
|
7808
8297
|
const Swipe = ({
|
|
7809
8298
|
id,
|
|
7810
8299
|
title,
|
|
@@ -7826,8 +8315,8 @@ const Swipe = ({
|
|
|
7826
8315
|
} = props || {};
|
|
7827
8316
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
7828
8317
|
style: {
|
|
7829
|
-
width: '100%',
|
|
7830
|
-
height: '
|
|
8318
|
+
width: position === 'left' || position === 'right' ? width ?? SWIPEMODAL.width : '100%',
|
|
8319
|
+
height: position === 'top' || position === 'bottom' ? height ?? SWIPEMODAL.height : '100vh'
|
|
7831
8320
|
}
|
|
7832
8321
|
}, (title || showCloseIcon) && /*#__PURE__*/React__default.createElement("div", {
|
|
7833
8322
|
style: {
|
|
@@ -7883,9 +8372,13 @@ const Swipe = ({
|
|
|
7883
8372
|
};
|
|
7884
8373
|
|
|
7885
8374
|
var css_248z$2 = ".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%}}";
|
|
7886
|
-
var styles$2 = {"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","
|
|
8375
|
+
var styles$2 = {"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","move-left":"swipe-module_move-left__4TDLs","move-right":"swipe-module_move-right__FrYo0","move-bottom":"swipe-module_move-bottom__eYDx6","back-top":"swipe-module_back-top__gJZv0","back-left":"swipe-module_back-left__Wd3aY","back-right":"swipe-module_back-right__Lgwz7","back-bottom":"swipe-module_back-bottom__JRN-7"};
|
|
7887
8376
|
styleInject(css_248z$2);
|
|
7888
8377
|
|
|
8378
|
+
// import React, { useEffect, useRef } from 'react';
|
|
8379
|
+
// import ReactDOM from 'react-dom/client';
|
|
8380
|
+
// import PropTypes from 'prop-types';
|
|
8381
|
+
|
|
7889
8382
|
let swipeCount = 0;
|
|
7890
8383
|
const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
|
|
7891
8384
|
const {
|
|
@@ -7896,11 +8389,11 @@ const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
|
|
|
7896
8389
|
borderRadius,
|
|
7897
8390
|
backgroundColor
|
|
7898
8391
|
} = props || {};
|
|
7899
|
-
swipeBlock.style.position = '
|
|
8392
|
+
swipeBlock.style.position = 'fixed';
|
|
7900
8393
|
swipeBlock.style.zIndex = swipeCount;
|
|
7901
8394
|
swipeBlock.style.backgroundColor = backgroundColor ?? innerConfigStyles.SWIPEMODAL.colors.background;
|
|
7902
8395
|
swipeBlock.style.width = position === 'left' || position === 'right' ? width ?? innerConfigStyles.SWIPEMODAL.width : '100%';
|
|
7903
|
-
swipeBlock.style.height = position === 'top' || position === 'bottom' ? height ?? innerConfigStyles.SWIPEMODAL.height : '
|
|
8396
|
+
swipeBlock.style.height = position === 'top' || position === 'bottom' ? height ?? innerConfigStyles.SWIPEMODAL.height : '100vh';
|
|
7904
8397
|
swipeBlock.style.borderTopLeftRadius = position === 'right' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
7905
8398
|
swipeBlock.style.borderTopRightRadius = position === 'left' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
7906
8399
|
swipeBlock.style.borderBottomLeftRadius = position === 'right' || position === 'top' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
@@ -7934,25 +8427,26 @@ const createSwipe = (id, title, child, props, swipable) => {
|
|
|
7934
8427
|
};
|
|
7935
8428
|
createElem(id, title, child, props, swipeBlock, innerConfigStyles);
|
|
7936
8429
|
if (!swipable) {
|
|
8430
|
+
const widthParent = hasOwnerProperty(props, 'withParent') ? props.withParent === true ? true : false : innerConfigStyles.SWIPEMODAL.withParent;
|
|
7937
8431
|
swipable = document.createElement('div');
|
|
7938
8432
|
swipable.setAttribute('id', 'swipable');
|
|
7939
|
-
swipable.style.position = '
|
|
8433
|
+
swipable.style.position = 'fixed';
|
|
7940
8434
|
swipable.style.top = '0px';
|
|
7941
8435
|
swipable.style.left = '0px';
|
|
7942
8436
|
swipable.style.zIndex = 99999;
|
|
7943
8437
|
swipable.style.maxWidth = '100%';
|
|
7944
8438
|
swipable.style.maxHeight = '100vh';
|
|
7945
|
-
swipable.style.
|
|
7946
|
-
swipable.style.
|
|
8439
|
+
swipable.style.visibility = 'hidden';
|
|
8440
|
+
swipable.style.width = widthParent ? '100%' : '0px';
|
|
8441
|
+
swipable.style.height = widthParent ? '100vh' : '0px';
|
|
7947
8442
|
swipable.style.backgroundColor = props?.parent?.backgroundColor ?? innerConfigStyles.SWIPEMODAL.parent.colors.background;
|
|
8443
|
+
swipable.classList.add(styles$2['visible']);
|
|
7948
8444
|
if (props.outSideClose || innerConfigStyles.SWIPEMODAL.outSideClose) {
|
|
7949
8445
|
swipable.addEventListener('click', function () {
|
|
7950
8446
|
hasOwnerProperty(props, 'callClose') && {}.toString.call(props.callClose) === '[object Function]' ? props.callClose() : '';
|
|
7951
8447
|
});
|
|
7952
8448
|
}
|
|
7953
|
-
|
|
7954
|
-
SwipifyBlock.style.display = 'block';
|
|
7955
|
-
SwipifyBlock.appendChild(swipable);
|
|
8449
|
+
document.body.appendChild(swipable);
|
|
7956
8450
|
}
|
|
7957
8451
|
swipable.appendChild(swipeBlock);
|
|
7958
8452
|
}, error => {
|
|
@@ -8001,6 +8495,7 @@ const swipe = {
|
|
|
8001
8495
|
close: id => {
|
|
8002
8496
|
if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
|
|
8003
8497
|
alert('Please pass valid id prop (string / number) when call swipe.close function');
|
|
8498
|
+
return;
|
|
8004
8499
|
}
|
|
8005
8500
|
let swipable = document.getElementById('swipable');
|
|
8006
8501
|
swipeCount -= 1;
|
|
@@ -8015,9 +8510,7 @@ const swipe = {
|
|
|
8015
8510
|
if (swipeCount === 0 && swipable) {
|
|
8016
8511
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
8017
8512
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
8018
|
-
|
|
8019
|
-
SwipifyBlock.style.display = 'none';
|
|
8020
|
-
SwipifyBlock.removeChild(swipable);
|
|
8513
|
+
document.body.removeChild(swipable);
|
|
8021
8514
|
}
|
|
8022
8515
|
}, 200);
|
|
8023
8516
|
} else {
|
|
@@ -8025,42 +8518,14 @@ const swipe = {
|
|
|
8025
8518
|
if (swipeCount === 0 && swipable) {
|
|
8026
8519
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
8027
8520
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
8028
|
-
|
|
8029
|
-
SwipifyBlock.style.display = 'none';
|
|
8030
|
-
SwipifyBlock.removeChild(swipable);
|
|
8521
|
+
document.body.removeChild(swipable);
|
|
8031
8522
|
}
|
|
8032
8523
|
}
|
|
8033
|
-
} else {
|
|
8034
|
-
if (swipeCount === 0 && swipable) {
|
|
8035
|
-
const SwipifyBlock = document.getElementById('swipify_tui');
|
|
8036
|
-
SwipifyBlock.style.display = 'none';
|
|
8037
|
-
SwipifyBlock.removeChild(swipable);
|
|
8038
|
-
}
|
|
8039
8524
|
}
|
|
8040
8525
|
}
|
|
8041
8526
|
};
|
|
8042
8527
|
const SwipeModal = () => {
|
|
8043
|
-
|
|
8044
|
-
useEffect(() => {
|
|
8045
|
-
const parentSize = ref.current.parentNode.style.height;
|
|
8046
|
-
if (Number(parentSize.replace(/\D/g, '')) > 0) {
|
|
8047
|
-
ref.current.style.height = '100%';
|
|
8048
|
-
} else {
|
|
8049
|
-
ref.current.style.height = '100vh';
|
|
8050
|
-
}
|
|
8051
|
-
}, [ref]);
|
|
8052
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
8053
|
-
ref: ref,
|
|
8054
|
-
id: "swipify_tui",
|
|
8055
|
-
style: {
|
|
8056
|
-
position: 'absolute',
|
|
8057
|
-
width: '100%',
|
|
8058
|
-
top: 0,
|
|
8059
|
-
overflow: 'hidden',
|
|
8060
|
-
zIndex: 1,
|
|
8061
|
-
display: 'none'
|
|
8062
|
-
}
|
|
8063
|
-
});
|
|
8528
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
8064
8529
|
};
|
|
8065
8530
|
|
|
8066
8531
|
const TypographyType = {
|
|
@@ -8251,7 +8716,7 @@ const SvgNextarrow = ({
|
|
|
8251
8716
|
}));
|
|
8252
8717
|
|
|
8253
8718
|
var css_248z$1 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT>ul{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{align-items:center;border:none;cursor:pointer;display:flex;justify-content:center;outline:none}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;cursor:pointer;display:flex;flex:0 0 auto;justify-content:center;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}.pagination-module_show-offset-block__ksPGm{height:34px;margin-left:10px!important;margin-right:4px!important;width:91px}i{color:#3c393e;font-size:12px;line-height:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}";
|
|
8254
|
-
var styles$1 = {"
|
|
8719
|
+
var styles$1 = {"pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
|
|
8255
8720
|
styleInject(css_248z$1);
|
|
8256
8721
|
|
|
8257
8722
|
const Pagination = ({
|
|
@@ -8626,7 +9091,6 @@ var styles = {"auto-complete":"autocomplete-module_auto-complete__oUOv9"};
|
|
|
8626
9091
|
styleInject(css_248z);
|
|
8627
9092
|
|
|
8628
9093
|
const Autocomplete = ({
|
|
8629
|
-
label,
|
|
8630
9094
|
change,
|
|
8631
9095
|
options,
|
|
8632
9096
|
getItem,
|
|
@@ -8637,37 +9101,28 @@ const Autocomplete = ({
|
|
|
8637
9101
|
errorStyle,
|
|
8638
9102
|
errorWeight,
|
|
8639
9103
|
errorFamily,
|
|
8640
|
-
labelSize,
|
|
8641
|
-
labelStyle,
|
|
8642
9104
|
marginTop,
|
|
8643
9105
|
errorColor,
|
|
8644
|
-
labelColor,
|
|
8645
|
-
labelWeight,
|
|
8646
9106
|
placeHolder,
|
|
8647
9107
|
errorMessage,
|
|
8648
9108
|
autoComplete,
|
|
8649
|
-
labelDisplay,
|
|
8650
9109
|
contentDisplay,
|
|
8651
9110
|
contentTopSize,
|
|
8652
9111
|
contentTopStyle,
|
|
8653
9112
|
contentTopFamily,
|
|
8654
9113
|
contentPosition,
|
|
8655
9114
|
contentTopColor,
|
|
8656
|
-
labelLineHeight,
|
|
8657
|
-
labelFontFamily,
|
|
8658
9115
|
contentDirection,
|
|
8659
9116
|
contentTopWeight,
|
|
8660
9117
|
contentTopRadius,
|
|
8661
9118
|
contentTopHeight,
|
|
8662
9119
|
contentTopBorder,
|
|
8663
|
-
labelMarginBottom,
|
|
8664
9120
|
contentTopDisplay,
|
|
8665
9121
|
contentTopPadding,
|
|
8666
9122
|
contentBottomLeft,
|
|
8667
9123
|
innerErrorPadding,
|
|
8668
9124
|
showOptionDuration,
|
|
8669
9125
|
contentTopMaxWidth,
|
|
8670
|
-
labelTextTransform,
|
|
8671
9126
|
contentBottomWidth,
|
|
8672
9127
|
contentBottomZindex,
|
|
8673
9128
|
contentBottomRadius,
|
|
@@ -8704,6 +9159,26 @@ const Autocomplete = ({
|
|
|
8704
9159
|
contentBottomRowBackgroundColor,
|
|
8705
9160
|
contentBottomRowHoverBackgroundColor,
|
|
8706
9161
|
backgroundDisableColor,
|
|
9162
|
+
label,
|
|
9163
|
+
labelSize,
|
|
9164
|
+
labelStyle,
|
|
9165
|
+
labelColor,
|
|
9166
|
+
labelWeight,
|
|
9167
|
+
labelDisplay,
|
|
9168
|
+
labelLineHeight,
|
|
9169
|
+
labelFontFamily,
|
|
9170
|
+
labelMarginBottom,
|
|
9171
|
+
labelTextTransform,
|
|
9172
|
+
iconRequired,
|
|
9173
|
+
useLabelTooltip,
|
|
9174
|
+
labelTooltipColor,
|
|
9175
|
+
labelTooltipPadding,
|
|
9176
|
+
labelTooltipFontSize,
|
|
9177
|
+
labelTooltipFontStyle,
|
|
9178
|
+
labelTooltipFontFamily,
|
|
9179
|
+
labelTooltipFontWeight,
|
|
9180
|
+
labelTooltipBorderRadius,
|
|
9181
|
+
labelTooltipBackgroundColor,
|
|
8707
9182
|
searchCount = 3,
|
|
8708
9183
|
disabled = false,
|
|
8709
9184
|
keyNames = {
|
|
@@ -8712,14 +9187,18 @@ const Autocomplete = ({
|
|
|
8712
9187
|
},
|
|
8713
9188
|
...props
|
|
8714
9189
|
}) => {
|
|
9190
|
+
const labelRef = useRef(null);
|
|
9191
|
+
const parentRef = useRef(null);
|
|
8715
9192
|
const [id, setId] = useState('');
|
|
8716
9193
|
const [show, setShow] = useState(false);
|
|
9194
|
+
const [removeID, setRemoveID] = useState('');
|
|
8717
9195
|
const [isHover, setIsHover] = useState(false);
|
|
8718
9196
|
const [isFocus, setIsFocus] = useState(false);
|
|
8719
9197
|
const [innerError, setInnerError] = useState('');
|
|
8720
9198
|
const [innerValue, setInnerValue] = useState('');
|
|
8721
|
-
const [innerOptions, setInnerOptions] = useState([]);
|
|
8722
9199
|
const [classProps, setClassProps] = useState({});
|
|
9200
|
+
const [tooltipElem, setTooltipElem] = useState(null);
|
|
9201
|
+
const [innerOptions, setInnerOptions] = useState([]);
|
|
8723
9202
|
const [configStyles, setConfigStyles] = useState({});
|
|
8724
9203
|
const showOption = keyframes`
|
|
8725
9204
|
100% {
|
|
@@ -8834,6 +9313,79 @@ const Autocomplete = ({
|
|
|
8834
9313
|
backgroundColor: innerErrorBackgroundColor ?? configStyles.AUTOCOMPLETE.innerError.colors.background
|
|
8835
9314
|
}
|
|
8836
9315
|
}, innerValue.length >= searchCount ? 'Նման տվյալ առկա չէ' : `Լրացնել առնվազն ${searchCount} նիշ`) : '');
|
|
9316
|
+
const getRenderedTextWidth = element => {
|
|
9317
|
+
const clone = element.cloneNode(true);
|
|
9318
|
+
clone.style.width = 'fit-content';
|
|
9319
|
+
document.body.appendChild(clone);
|
|
9320
|
+
const width = clone.offsetWidth;
|
|
9321
|
+
document.body.removeChild(clone);
|
|
9322
|
+
return width;
|
|
9323
|
+
};
|
|
9324
|
+
const handleLabelMouseEnter = event => {
|
|
9325
|
+
event.preventDefault();
|
|
9326
|
+
setRemoveID(() => v4());
|
|
9327
|
+
if (labelRef.current) {
|
|
9328
|
+
const parentElem = parentRef.current.getBoundingClientRect();
|
|
9329
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
9330
|
+
const top = rect.top;
|
|
9331
|
+
const left = rect.left;
|
|
9332
|
+
const height = rect.height;
|
|
9333
|
+
const elementWidth = rect.width;
|
|
9334
|
+
const x = event.clientX - rect.left;
|
|
9335
|
+
const parentWidth = parentElem.width;
|
|
9336
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
9337
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
9338
|
+
const newTooltipElem = document.createElement('div');
|
|
9339
|
+
newTooltipElem.id = `fake_id_for_remove_dom${removeID}`;
|
|
9340
|
+
const newTootltipTextElem = document.createElement('p');
|
|
9341
|
+
const newTooltipChildElem = document.createElement('div');
|
|
9342
|
+
const newTooltipDecorElem = document.createElement('div');
|
|
9343
|
+
newTooltipElem.style.position = 'fixed';
|
|
9344
|
+
newTooltipElem.style.left = left + 'px';
|
|
9345
|
+
newTooltipElem.style.paddingTop = '20px';
|
|
9346
|
+
newTooltipElem.style.height = 'fit-content';
|
|
9347
|
+
newTooltipElem.style.boxSizing = 'border-box';
|
|
9348
|
+
newTooltipElem.style.top = top + height + 'px';
|
|
9349
|
+
newTooltipElem.style.width = parentWidth + 'px';
|
|
9350
|
+
newTooltipChildElem.style.width = '100%';
|
|
9351
|
+
newTooltipChildElem.style.position = 'relative';
|
|
9352
|
+
newTooltipChildElem.style.height = 'fit-content';
|
|
9353
|
+
newTooltipChildElem.style.boxSizing = 'border-box';
|
|
9354
|
+
newTooltipChildElem.style.padding = labelTooltipPadding ?? configStyles.FILE.label.tooltip.padding;
|
|
9355
|
+
newTooltipChildElem.style.borderRadius = labelTooltipBorderRadius ?? configStyles.FILE.label.tooltip.borderRadius;
|
|
9356
|
+
newTooltipChildElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.FILE.label.tooltip.backgroundColor;
|
|
9357
|
+
newTooltipDecorElem.style.zIndex = -1;
|
|
9358
|
+
newTooltipDecorElem.style.top = '-8px';
|
|
9359
|
+
newTooltipDecorElem.style.width = '18px';
|
|
9360
|
+
newTooltipDecorElem.style.height = '18px';
|
|
9361
|
+
newTooltipDecorElem.style.rotate = '45deg';
|
|
9362
|
+
newTooltipDecorElem.style.position = 'absolute';
|
|
9363
|
+
newTooltipDecorElem.style.left = x > elementWidth / 2 ? 'calc(100% - 40px)' : '23px';
|
|
9364
|
+
newTooltipDecorElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.FILE.label.tooltip.backgroundColor;
|
|
9365
|
+
newTootltipTextElem.innerText = label;
|
|
9366
|
+
newTootltipTextElem.style.color = labelTooltipColor ?? configStyles.FILE.label.tooltip.color;
|
|
9367
|
+
newTootltipTextElem.style.fontSize = labelTooltipFontSize ?? configStyles.FILE.label.tooltip.font.size;
|
|
9368
|
+
newTootltipTextElem.style.fontStyle = labelTooltipFontStyle ?? configStyles.FILE.label.tooltip.font.style;
|
|
9369
|
+
newTootltipTextElem.style.fontFamily = labelTooltipFontFamily ?? configStyles.FILE.label.tooltip.font.family;
|
|
9370
|
+
newTootltipTextElem.style.fontWeight = labelTooltipFontWeight ?? configStyles.FILE.label.tooltip.font.weight;
|
|
9371
|
+
document.body.appendChild(newTooltipElem);
|
|
9372
|
+
newTooltipElem.appendChild(newTooltipChildElem);
|
|
9373
|
+
newTooltipChildElem.appendChild(newTooltipDecorElem);
|
|
9374
|
+
newTooltipChildElem.appendChild(newTootltipTextElem);
|
|
9375
|
+
setTooltipElem(() => newTooltipElem);
|
|
9376
|
+
}
|
|
9377
|
+
}
|
|
9378
|
+
};
|
|
9379
|
+
const handleLabelMouseLeave = () => {
|
|
9380
|
+
const removableElem = document.getElementById(`fake_id_for_remove_dom${removeID}`);
|
|
9381
|
+
if (removableElem) {
|
|
9382
|
+
document.body.removeChild(removableElem);
|
|
9383
|
+
}
|
|
9384
|
+
if (tooltipElem) {
|
|
9385
|
+
document.body.removeChild(tooltipElem);
|
|
9386
|
+
}
|
|
9387
|
+
setRemoveID(() => '');
|
|
9388
|
+
};
|
|
8837
9389
|
useEffect(() => {
|
|
8838
9390
|
if (options === undefined) {
|
|
8839
9391
|
alert('Please add options prop');
|
|
@@ -8881,24 +9433,38 @@ const Autocomplete = ({
|
|
|
8881
9433
|
});
|
|
8882
9434
|
}, []);
|
|
8883
9435
|
return configStyles.AUTOCOMPLETE && /*#__PURE__*/React__default.createElement("div", {
|
|
9436
|
+
ref: parentRef,
|
|
8884
9437
|
className: classProps,
|
|
8885
9438
|
style: {
|
|
8886
9439
|
width: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth
|
|
8887
9440
|
}
|
|
8888
|
-
}, label
|
|
9441
|
+
}, label && /*#__PURE__*/React__default.createElement("div", {
|
|
9442
|
+
style: {
|
|
9443
|
+
display: 'flex',
|
|
9444
|
+
maxWidth: '100%',
|
|
9445
|
+
width: 'fit-content',
|
|
9446
|
+
columnGap: '4px',
|
|
9447
|
+
justifyContent: 'flex-start'
|
|
9448
|
+
}
|
|
9449
|
+
}, /*#__PURE__*/React__default.createElement("label", {
|
|
9450
|
+
ref: labelRef,
|
|
8889
9451
|
style: {
|
|
8890
9452
|
color: labelColor ?? configStyles.AUTOCOMPLETE.label.color,
|
|
8891
9453
|
display: labelDisplay ?? configStyles.AUTOCOMPLETE.label.display,
|
|
8892
|
-
maxWidth: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth,
|
|
8893
9454
|
fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
|
|
8894
9455
|
fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
|
|
8895
9456
|
fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
|
|
8896
9457
|
fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
|
|
8897
9458
|
lineHeight: labelLineHeight ?? configStyles.AUTOCOMPLETE.label.lineHeight,
|
|
8898
9459
|
marginBottom: labelMarginBottom ?? configStyles.AUTOCOMPLETE.label.marginBottom,
|
|
8899
|
-
textTransform: labelTextTransform ?? configStyles.AUTOCOMPLETE.label.textTransform
|
|
8900
|
-
|
|
8901
|
-
|
|
9460
|
+
textTransform: labelTextTransform ?? configStyles.AUTOCOMPLETE.label.textTransform,
|
|
9461
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'nowrap' : 'normal',
|
|
9462
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'hidden' : 'visible',
|
|
9463
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? 'ellipsis' : ''
|
|
9464
|
+
},
|
|
9465
|
+
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
9466
|
+
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
9467
|
+
}, label), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), /*#__PURE__*/React__default.createElement("div", {
|
|
8902
9468
|
style: {
|
|
8903
9469
|
display: contentDisplay ?? configStyles.AUTOCOMPLETE.parent.display,
|
|
8904
9470
|
position: contentPosition ?? configStyles.AUTOCOMPLETE.parent.position,
|
|
@@ -8974,6 +9540,7 @@ Autocomplete.propTypes = {
|
|
|
8974
9540
|
errorMessage: PropTypes.string,
|
|
8975
9541
|
labelDisplay: PropTypes.string,
|
|
8976
9542
|
autoComplete: PropTypes.string,
|
|
9543
|
+
iconRequired: PropTypes.element,
|
|
8977
9544
|
contentDisplay: PropTypes.string,
|
|
8978
9545
|
contentTopSize: PropTypes.string,
|
|
8979
9546
|
contentTopStyle: PropTypes.string,
|
|
@@ -9033,6 +9600,15 @@ Autocomplete.propTypes = {
|
|
|
9033
9600
|
contentBottomBackgroundColor: PropTypes.string,
|
|
9034
9601
|
contentBottomRowBackgroundColor: PropTypes.string,
|
|
9035
9602
|
contentBottomRowHoverBackgroundColor: PropTypes.string,
|
|
9603
|
+
useLabelTooltip: PropTypes.bool,
|
|
9604
|
+
labelTooltipColor: PropTypes.string,
|
|
9605
|
+
labelTooltipPadding: PropTypes.string,
|
|
9606
|
+
labelTooltipFontSize: PropTypes.string,
|
|
9607
|
+
labelTooltipFontStyle: PropTypes.string,
|
|
9608
|
+
labelTooltipFontFamily: PropTypes.string,
|
|
9609
|
+
labelTooltipFontWeight: PropTypes.string,
|
|
9610
|
+
labelTooltipBorderRadius: PropTypes.string,
|
|
9611
|
+
labelTooltipBackgroundColor: PropTypes.string,
|
|
9036
9612
|
backgroundDisableColor: PropTypes.string
|
|
9037
9613
|
};
|
|
9038
9614
|
|