@xaypay/tui 0.2.15 → 0.2.16
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 +1030 -238
- package/dist/index.js +1030 -237
- package/package.json +1 -1
- package/tui.config.js +84 -3
package/dist/index.js
CHANGED
|
@@ -152,6 +152,39 @@ const SvgWrong = ({
|
|
|
152
152
|
fill: "#051942"
|
|
153
153
|
}));
|
|
154
154
|
|
|
155
|
+
const SvgDocIcon = ({
|
|
156
|
+
title,
|
|
157
|
+
titleId,
|
|
158
|
+
...props
|
|
159
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
160
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
161
|
+
width: "1em",
|
|
162
|
+
height: "1em",
|
|
163
|
+
fill: "none",
|
|
164
|
+
viewBox: "0 0 32 32",
|
|
165
|
+
"aria-labelledby": titleId
|
|
166
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
167
|
+
id: titleId
|
|
168
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
169
|
+
stroke: "#D0D5DD",
|
|
170
|
+
strokeWidth: 1.2,
|
|
171
|
+
d: "M6.2 3.2A2.6 2.6 0 0 1 8.8.6h12.8c.097 0 .19.039.258.107l8.635 8.634a.37.37 0 0 1 .107.259v19.2a2.6 2.6 0 0 1-2.6 2.6H8.8a2.6 2.6 0 0 1-2.6-2.6z"
|
|
172
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
173
|
+
stroke: "#D0D5DD",
|
|
174
|
+
strokeWidth: 1.2,
|
|
175
|
+
d: "M21.6.4v6a3.2 3.2 0 0 0 3.2 3.2h6"
|
|
176
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
177
|
+
width: 23.8,
|
|
178
|
+
height: 13.2,
|
|
179
|
+
x: 0.5,
|
|
180
|
+
y: 14.2,
|
|
181
|
+
fill: "#3C68FF",
|
|
182
|
+
rx: 1.6
|
|
183
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
184
|
+
fill: "#fff",
|
|
185
|
+
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"
|
|
186
|
+
}));
|
|
187
|
+
|
|
155
188
|
const SvgListItemPdf = ({
|
|
156
189
|
title,
|
|
157
190
|
titleId,
|
|
@@ -263,9 +296,11 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
|
|
|
263
296
|
check,
|
|
264
297
|
radius,
|
|
265
298
|
status,
|
|
299
|
+
iconDoc,
|
|
266
300
|
iconPdf,
|
|
267
301
|
iconPng,
|
|
268
302
|
iconJpg,
|
|
303
|
+
iconDocx,
|
|
269
304
|
iconJpeg,
|
|
270
305
|
iconHeic,
|
|
271
306
|
iconWrong,
|
|
@@ -405,7 +440,7 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
|
|
|
405
440
|
style: {
|
|
406
441
|
width: '32px'
|
|
407
442
|
}
|
|
408
|
-
}, fileFormat === 'pdf' ? iconPdf ? iconPdf : /*#__PURE__*/React__default["default"].createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? iconJpg ? iconJpg : /*#__PURE__*/React__default["default"].createElement(SvgListItemJpg, null) : fileFormat === 'png' ? iconPng ? iconPng : /*#__PURE__*/React__default["default"].createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? iconJpeg ? iconJpeg : /*#__PURE__*/React__default["default"].createElement(SvgListItemJpeg, null) : fileFormat === 'heic' || fileFormat === 'heif' ? iconHeic ? iconHeic : /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
443
|
+
}, fileFormat === 'pdf' ? iconPdf ? iconPdf : /*#__PURE__*/React__default["default"].createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? iconJpg ? iconJpg : /*#__PURE__*/React__default["default"].createElement(SvgListItemJpg, null) : fileFormat === 'png' ? iconPng ? iconPng : /*#__PURE__*/React__default["default"].createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? iconJpeg ? iconJpeg : /*#__PURE__*/React__default["default"].createElement(SvgListItemJpeg, null) : fileFormat === 'heic' || fileFormat === 'heif' ? iconHeic ? iconHeic : /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : fileFormat === 'msword' ? iconDoc ? iconDoc : /*#__PURE__*/React__default["default"].createElement(SvgDocIcon, null) : fileFormat === 'vnd.openxmlformats-officedocument.wordprocessingml.document' ? iconDocx ? iconDocx : /*#__PURE__*/React__default["default"].createElement(SvgDocIcon, null) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
409
444
|
style: {
|
|
410
445
|
position: 'relative',
|
|
411
446
|
display: 'flex',
|
|
@@ -463,8 +498,13 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
|
|
|
463
498
|
}, iconDelItem ? iconDelItem : /*#__PURE__*/React__default["default"].createElement(SvgListItemDelete, null))));
|
|
464
499
|
});
|
|
465
500
|
|
|
466
|
-
var img$
|
|
501
|
+
var img$4 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_18850_5919)'%3e%3cpath d='M13.4695 11.9505L20.7595 4.66046C20.9234 4.46916 21.009 4.22308 20.9993 3.9714C20.9895 3.71973 20.8852 3.48099 20.7071 3.30289C20.529 3.1248 20.2903 3.02047 20.0386 3.01075C19.7869 3.00102 19.5408 3.08663 19.3495 3.25046L12.0595 10.5405L4.76954 3.24046C4.57824 3.07663 4.33217 2.99102 4.08049 3.00075C3.82881 3.01047 3.59008 3.1148 3.41198 3.29289C3.23389 3.47099 3.12955 3.70973 3.11983 3.9614C3.11011 4.21308 3.19572 4.45915 3.35954 4.65046L10.6495 11.9505L3.34954 19.2405C3.24486 19.3301 3.15984 19.4404 3.09982 19.5645C3.0398 19.6886 3.00606 19.8237 3.00075 19.9614C2.99543 20.0991 3.01863 20.2365 3.06891 20.3648C3.11918 20.4931 3.19544 20.6097 3.29289 20.7071C3.39035 20.8046 3.5069 20.8808 3.63522 20.9311C3.76355 20.9814 3.90088 21.0046 4.0386 20.9993C4.17632 20.9939 4.31145 20.9602 4.43551 20.9002C4.55958 20.8402 4.6699 20.7551 4.75954 20.6505L12.0595 13.3605L19.3495 20.6505C19.5408 20.8143 19.7869 20.8999 20.0386 20.8902C20.2903 20.8804 20.529 20.7761 20.7071 20.598C20.8852 20.4199 20.9895 20.1812 20.9993 19.9295C21.009 19.6778 20.9234 19.4318 20.7595 19.2405L13.4695 11.9505Z' fill='%231C212D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_18850_5919'%3e%3crect width='24' height='24' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
502
|
+
|
|
503
|
+
var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 1V15M1 8H15' stroke='%23009B8B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
504
|
+
|
|
505
|
+
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";
|
|
467
506
|
|
|
507
|
+
// import React from 'react'
|
|
468
508
|
const boxSizing = 'border-box';
|
|
469
509
|
const fontStyle = 'normal';
|
|
470
510
|
const fontFamily = 'Arial';
|
|
@@ -546,6 +586,7 @@ var packageResult = {
|
|
|
546
586
|
className: '',
|
|
547
587
|
maxLength: 255,
|
|
548
588
|
iconWidth: '64px',
|
|
589
|
+
iconPadding: '10px',
|
|
549
590
|
autoComplete: 'off',
|
|
550
591
|
box: {
|
|
551
592
|
sizing: boxSizing,
|
|
@@ -579,6 +620,9 @@ var packageResult = {
|
|
|
579
620
|
marginTop: '10px',
|
|
580
621
|
iconMargin: '10px',
|
|
581
622
|
lineHeight: '19px',
|
|
623
|
+
box: {
|
|
624
|
+
shadow: '0 0 0 1px #F20918'
|
|
625
|
+
},
|
|
582
626
|
font: {
|
|
583
627
|
...fontObject
|
|
584
628
|
}
|
|
@@ -726,6 +770,7 @@ var packageResult = {
|
|
|
726
770
|
SELECT: {
|
|
727
771
|
dots: false,
|
|
728
772
|
className: '',
|
|
773
|
+
arrowNoRotate: false,
|
|
729
774
|
showCloseIcon: true,
|
|
730
775
|
// arrowIcon: React.createElement(SvgChecked, { fill: 'green' }),
|
|
731
776
|
// closeIcon: React.createElement(SvgChecked, { fill: 'green' }),
|
|
@@ -1102,8 +1147,14 @@ var packageResult = {
|
|
|
1102
1147
|
header: {
|
|
1103
1148
|
color: presetColors.primarySecond,
|
|
1104
1149
|
height: '30px',
|
|
1150
|
+
align: 'left',
|
|
1105
1151
|
font: {
|
|
1106
1152
|
...fontObject
|
|
1153
|
+
},
|
|
1154
|
+
icon: {
|
|
1155
|
+
maxWidth: '60px',
|
|
1156
|
+
maxHeight: '60px',
|
|
1157
|
+
marginRight: '20px'
|
|
1107
1158
|
}
|
|
1108
1159
|
},
|
|
1109
1160
|
image: {
|
|
@@ -1149,9 +1200,9 @@ var packageResult = {
|
|
|
1149
1200
|
border: {
|
|
1150
1201
|
radius: '10px'
|
|
1151
1202
|
},
|
|
1152
|
-
withParent: true,
|
|
1203
|
+
// withParent: true,
|
|
1153
1204
|
outSideClose: false,
|
|
1154
|
-
closeIcon: img$
|
|
1205
|
+
closeIcon: img$4
|
|
1155
1206
|
},
|
|
1156
1207
|
// default properties for <Checkbox /> component
|
|
1157
1208
|
CHECKBOX: {
|
|
@@ -1231,7 +1282,31 @@ var packageResult = {
|
|
|
1231
1282
|
},
|
|
1232
1283
|
// default properties for <Pagination /> component
|
|
1233
1284
|
PAGINATION: {
|
|
1234
|
-
|
|
1285
|
+
width: '34px',
|
|
1286
|
+
height: '34px',
|
|
1287
|
+
lineHeight: '16px',
|
|
1288
|
+
className: '',
|
|
1289
|
+
// for pagination class
|
|
1290
|
+
color: '#000000',
|
|
1291
|
+
font: {
|
|
1292
|
+
size: '13px',
|
|
1293
|
+
style: '',
|
|
1294
|
+
weight: '',
|
|
1295
|
+
family: ''
|
|
1296
|
+
},
|
|
1297
|
+
colors: {
|
|
1298
|
+
hover: '#000000',
|
|
1299
|
+
active: '#ffffff',
|
|
1300
|
+
background: '#ffffff',
|
|
1301
|
+
activeHover: '#ffffff',
|
|
1302
|
+
hoverBackground: '#dddddd',
|
|
1303
|
+
activeBackground: '#00236a'
|
|
1304
|
+
},
|
|
1305
|
+
border: {
|
|
1306
|
+
width: '1px',
|
|
1307
|
+
color: 'rgba(238,238,238, 1)',
|
|
1308
|
+
radius: '6px'
|
|
1309
|
+
}
|
|
1235
1310
|
},
|
|
1236
1311
|
// default properties for <Toaster /> component
|
|
1237
1312
|
TOASTER: {
|
|
@@ -1296,10 +1371,12 @@ var packageResult = {
|
|
|
1296
1371
|
width: '2px',
|
|
1297
1372
|
style: 'solid',
|
|
1298
1373
|
color: '#E7E7E7',
|
|
1374
|
+
hoverColor: '#E7E7E7',
|
|
1299
1375
|
activeColor: '#3C3D46'
|
|
1300
1376
|
},
|
|
1301
1377
|
label: {
|
|
1302
1378
|
color: '#3C3D46',
|
|
1379
|
+
activeColor: '#3C3D46',
|
|
1303
1380
|
lineHeight: '21px',
|
|
1304
1381
|
font: {
|
|
1305
1382
|
...fontObject
|
|
@@ -1309,6 +1386,39 @@ var packageResult = {
|
|
|
1309
1386
|
// default properties for <Form /> component
|
|
1310
1387
|
FORM: {
|
|
1311
1388
|
className: ''
|
|
1389
|
+
},
|
|
1390
|
+
// default properties for <Accordion /> component
|
|
1391
|
+
ACCORDION: {
|
|
1392
|
+
className: '',
|
|
1393
|
+
padding: '15px',
|
|
1394
|
+
color: '#121212',
|
|
1395
|
+
marginBottom: '0px',
|
|
1396
|
+
colors: {
|
|
1397
|
+
hover: '#009B8B',
|
|
1398
|
+
background: '#E5E7EA',
|
|
1399
|
+
backgroundHover: '#CBCED5'
|
|
1400
|
+
},
|
|
1401
|
+
border: {
|
|
1402
|
+
color: '#A8ADB9',
|
|
1403
|
+
width: '1px',
|
|
1404
|
+
style: 'solid',
|
|
1405
|
+
radius: '0px',
|
|
1406
|
+
top: false,
|
|
1407
|
+
left: false,
|
|
1408
|
+
right: false,
|
|
1409
|
+
bottom: true
|
|
1410
|
+
},
|
|
1411
|
+
font: {
|
|
1412
|
+
size: '14px',
|
|
1413
|
+
style: 'normal',
|
|
1414
|
+
weight: 700,
|
|
1415
|
+
family: 'Noto Sans Armenian'
|
|
1416
|
+
},
|
|
1417
|
+
icon: {
|
|
1418
|
+
open: img$3,
|
|
1419
|
+
close: img$2,
|
|
1420
|
+
openHover: img$3
|
|
1421
|
+
}
|
|
1312
1422
|
}
|
|
1313
1423
|
};
|
|
1314
1424
|
|
|
@@ -1644,8 +1754,10 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1644
1754
|
progressColor,
|
|
1645
1755
|
noChoosenFile,
|
|
1646
1756
|
iconPdf,
|
|
1757
|
+
iconDoc,
|
|
1647
1758
|
iconPng,
|
|
1648
1759
|
iconJpg,
|
|
1760
|
+
iconDocx,
|
|
1649
1761
|
iconJpeg,
|
|
1650
1762
|
iconHeic,
|
|
1651
1763
|
iconWrong,
|
|
@@ -1749,8 +1861,26 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1749
1861
|
for (let ix = 0; ix < file.length; ix++) {
|
|
1750
1862
|
if (file[ix]) {
|
|
1751
1863
|
if (file[ix].size <= maxSize * Math.pow(2, 20)) {
|
|
1752
|
-
if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif')) {
|
|
1753
|
-
if (
|
|
1864
|
+
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')) {
|
|
1865
|
+
if (file[ix].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
|
|
1866
|
+
change({
|
|
1867
|
+
id: '',
|
|
1868
|
+
check: '',
|
|
1869
|
+
status: '',
|
|
1870
|
+
file: file[ix],
|
|
1871
|
+
uuid: v4()
|
|
1872
|
+
});
|
|
1873
|
+
setImage('docx');
|
|
1874
|
+
} else if (file[ix].type === 'application/msword') {
|
|
1875
|
+
change({
|
|
1876
|
+
id: '',
|
|
1877
|
+
check: '',
|
|
1878
|
+
status: '',
|
|
1879
|
+
file: file[ix],
|
|
1880
|
+
uuid: v4()
|
|
1881
|
+
});
|
|
1882
|
+
setImage('doc');
|
|
1883
|
+
} else if ((fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif'))) {
|
|
1754
1884
|
handleCheckHeicFormat(file[ix]).then(() => {
|
|
1755
1885
|
change({
|
|
1756
1886
|
id: '',
|
|
@@ -1797,8 +1927,26 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1797
1927
|
for (let ix = 0; ix < file.length; ix++) {
|
|
1798
1928
|
if (file[ix]) {
|
|
1799
1929
|
if (file[ix].size <= maxSize * Math.pow(2, 20)) {
|
|
1800
|
-
if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif')) {
|
|
1801
|
-
if (
|
|
1930
|
+
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')) {
|
|
1931
|
+
if (file[ix].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
|
|
1932
|
+
change({
|
|
1933
|
+
id: '',
|
|
1934
|
+
check: '',
|
|
1935
|
+
status: '',
|
|
1936
|
+
file: file[ix],
|
|
1937
|
+
uuid: v4()
|
|
1938
|
+
});
|
|
1939
|
+
setImage('docx');
|
|
1940
|
+
} else if (file[ix].type === 'application/msword') {
|
|
1941
|
+
change({
|
|
1942
|
+
id: '',
|
|
1943
|
+
check: '',
|
|
1944
|
+
status: '',
|
|
1945
|
+
file: file[ix],
|
|
1946
|
+
uuid: v4()
|
|
1947
|
+
});
|
|
1948
|
+
setImage('doc');
|
|
1949
|
+
} else if ((fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif'))) {
|
|
1802
1950
|
handleCheckHeicFormat(file[ix]).then(() => {
|
|
1803
1951
|
change({
|
|
1804
1952
|
id: '',
|
|
@@ -1854,9 +2002,17 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1854
2002
|
} else {
|
|
1855
2003
|
if (file[0]) {
|
|
1856
2004
|
if (file[0].size <= maxSize * Math.pow(2, 20)) {
|
|
1857
|
-
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'))) {
|
|
2005
|
+
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')) {
|
|
1858
2006
|
setError('');
|
|
1859
|
-
if (file[0].type === 'application/
|
|
2007
|
+
if (file[0].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
|
|
2008
|
+
setImage('docx');
|
|
2009
|
+
change(file);
|
|
2010
|
+
setSingleFile(file);
|
|
2011
|
+
} else if (file[0].type === 'application/msword') {
|
|
2012
|
+
setImage('doc');
|
|
2013
|
+
change(file);
|
|
2014
|
+
setSingleFile(file);
|
|
2015
|
+
} else if (file[0].type === 'application/pdf') {
|
|
1860
2016
|
setImage('pdf');
|
|
1861
2017
|
change(file);
|
|
1862
2018
|
setSingleFile(file);
|
|
@@ -1871,6 +2027,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1871
2027
|
});
|
|
1872
2028
|
} else {
|
|
1873
2029
|
change(file);
|
|
2030
|
+
setSingleFile(file);
|
|
1874
2031
|
setImage(URL.createObjectURL(file[0]));
|
|
1875
2032
|
}
|
|
1876
2033
|
} else {
|
|
@@ -1891,8 +2048,12 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1891
2048
|
const handleClick = () => {
|
|
1892
2049
|
inpRef.current.files = null;
|
|
1893
2050
|
inpRef.current.value = null;
|
|
1894
|
-
if (
|
|
2051
|
+
if (multiple) {
|
|
1895
2052
|
inpRef.current.click();
|
|
2053
|
+
} else {
|
|
2054
|
+
if (!image) {
|
|
2055
|
+
inpRef.current.click();
|
|
2056
|
+
}
|
|
1896
2057
|
}
|
|
1897
2058
|
};
|
|
1898
2059
|
const handleDrop = e => {
|
|
@@ -2056,7 +2217,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2056
2217
|
fontFamily: family ?? configStyles.FILE.font.family,
|
|
2057
2218
|
fontWeight: weight ?? configStyles.FILE.font.weight
|
|
2058
2219
|
}
|
|
2059
|
-
}, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
2220
|
+
}, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : image === 'doc' ? iconDoc ? iconDoc : configStyles.FILE.icon.doc ? configStyles.FILE.icon.doc : /*#__PURE__*/React__default["default"].createElement(SvgDocIcon, null) : image === 'docx' ? iconDocx ? iconDocx : configStyles.FILE.icon.docx ? configStyles.FILE.icon.docx : /*#__PURE__*/React__default["default"].createElement(SvgDocIcon, null) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
2060
2221
|
src: image,
|
|
2061
2222
|
style: {
|
|
2062
2223
|
display: 'block',
|
|
@@ -2081,7 +2242,8 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2081
2242
|
}
|
|
2082
2243
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2083
2244
|
style: {
|
|
2084
|
-
margin: '0px'
|
|
2245
|
+
margin: '0px',
|
|
2246
|
+
padding: '0px 10px'
|
|
2085
2247
|
}
|
|
2086
2248
|
}, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2087
2249
|
style: {
|
|
@@ -2113,7 +2275,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2113
2275
|
whiteSpace: 'nowrap',
|
|
2114
2276
|
textOverflow: 'ellipsis'
|
|
2115
2277
|
}
|
|
2116
|
-
}, singleFile ? singleFile
|
|
2278
|
+
}, singleFile ? singleFile.name : /*#__PURE__*/React__default["default"].createElement("span", null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2117
2279
|
style: {
|
|
2118
2280
|
position: 'absolute',
|
|
2119
2281
|
top: '0px',
|
|
@@ -2152,11 +2314,13 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2152
2314
|
uuid: item.uuid,
|
|
2153
2315
|
check: item.check,
|
|
2154
2316
|
status: item.status,
|
|
2155
|
-
size: item
|
|
2156
|
-
name: item
|
|
2317
|
+
size: item?.file?.size,
|
|
2318
|
+
name: item?.file?.name,
|
|
2157
2319
|
iconPdf: iconPdf ?? configStyles.FILE.icon.pdf,
|
|
2320
|
+
iconDoc: iconDoc ?? configStyles.FILE.icon.doc,
|
|
2158
2321
|
iconPng: iconPng ?? configStyles.FILE.icon.png,
|
|
2159
2322
|
iconJpg: iconJpg ?? configStyles.FILE.icon.jpg,
|
|
2323
|
+
iconDocx: iconDocx ?? configStyles.FILE.icon.docx,
|
|
2160
2324
|
iconJpeg: iconJpeg ?? configStyles.FILE.icon.jpeg,
|
|
2161
2325
|
iconHeic: iconHeic ?? configStyles.FILE.icon.heic,
|
|
2162
2326
|
iconWrong: iconWrong ?? configStyles.FILE.icon.wrong,
|
|
@@ -2164,7 +2328,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2164
2328
|
timeForRemoveError: timeForRemoveError,
|
|
2165
2329
|
removeFile: removeFile ? removeFile : _ => _,
|
|
2166
2330
|
radius: radius ?? configStyles.FILE.radius,
|
|
2167
|
-
fileFormat: item
|
|
2331
|
+
fileFormat: item?.file?.type.split('/')[1]?.toLowerCase(),
|
|
2168
2332
|
progressColor: progressColor ?? configStyles.FILE.progress.color,
|
|
2169
2333
|
listItemHeight: listItemHeight ?? configStyles.FILE.listItem.height,
|
|
2170
2334
|
listItemPadding: listItemPadding ?? configStyles.FILE.listItem.padding,
|
|
@@ -2230,8 +2394,10 @@ File.propTypes = {
|
|
|
2230
2394
|
deleteComponent: PropTypes__default["default"].bool,
|
|
2231
2395
|
removeComponent: PropTypes__default["default"].func,
|
|
2232
2396
|
iconPdf: PropTypes__default["default"].element,
|
|
2397
|
+
iconDoc: PropTypes__default["default"].element,
|
|
2233
2398
|
iconPng: PropTypes__default["default"].element,
|
|
2234
2399
|
iconJpg: PropTypes__default["default"].element,
|
|
2400
|
+
iconDocx: PropTypes__default["default"].element,
|
|
2235
2401
|
iconJpeg: PropTypes__default["default"].element,
|
|
2236
2402
|
iconHeic: PropTypes__default["default"].element,
|
|
2237
2403
|
iconWrong: PropTypes__default["default"].element,
|
|
@@ -2479,15 +2645,21 @@ const handleUtilsCheckTypeTel = (val, prevVal) => {
|
|
|
2479
2645
|
}
|
|
2480
2646
|
return val;
|
|
2481
2647
|
};
|
|
2482
|
-
const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength) => {
|
|
2648
|
+
const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength, cardNumber) => {
|
|
2483
2649
|
if (maxLength && maxLength > 0) {
|
|
2484
2650
|
if (val.length > maxLength) {
|
|
2485
2651
|
val = val.substr(0, maxLength);
|
|
2486
2652
|
}
|
|
2487
2653
|
} else {
|
|
2488
2654
|
const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.|\․|\.|\,)?(\d+)?$/ : /^\d+$/;
|
|
2489
|
-
if (
|
|
2490
|
-
val
|
|
2655
|
+
if (cardNumber) {
|
|
2656
|
+
if (val.length > 19 && !val.includes('.')) {
|
|
2657
|
+
val = val.substr(0, 19);
|
|
2658
|
+
}
|
|
2659
|
+
} else {
|
|
2660
|
+
if (val.length > 16 && !val.includes('.')) {
|
|
2661
|
+
val = val.substr(0, 16);
|
|
2662
|
+
}
|
|
2491
2663
|
}
|
|
2492
2664
|
if (numberMaxLength && numberMaxLength > 0 && !val.includes('.')) {
|
|
2493
2665
|
val = val.substr(0, numberMaxLength);
|
|
@@ -2563,9 +2735,9 @@ function styleInject(css, ref) {
|
|
|
2563
2735
|
}
|
|
2564
2736
|
}
|
|
2565
2737
|
|
|
2566
|
-
var css_248z$
|
|
2567
|
-
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"};
|
|
2568
|
-
styleInject(css_248z$
|
|
2738
|
+
var css_248z$c = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}.table-module_no-tabel-data__6xp3N{align-items:center;display:flex;height:200px;justify-content:center;width:100%}";
|
|
2739
|
+
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"};
|
|
2740
|
+
styleInject(css_248z$c);
|
|
2569
2741
|
|
|
2570
2742
|
/* eslint-disable no-prototype-builtins */
|
|
2571
2743
|
const TH = ({
|
|
@@ -2623,7 +2795,8 @@ const TH = ({
|
|
|
2623
2795
|
unCheckedColor: item.checkBox.unCheckedColor ? item.checkBox.unCheckedColor : ''
|
|
2624
2796
|
}) : '', /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2625
2797
|
style: {
|
|
2626
|
-
margin: '0px'
|
|
2798
|
+
margin: '0px',
|
|
2799
|
+
whiteSpace: 'nowrap'
|
|
2627
2800
|
},
|
|
2628
2801
|
onClick: e => handleCheckArrowAction(e, item, 'arrowComponent')
|
|
2629
2802
|
}, item.type === 'show' ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : '')));
|
|
@@ -3527,7 +3700,7 @@ const Table = ({
|
|
|
3527
3700
|
});
|
|
3528
3701
|
};
|
|
3529
3702
|
React.useEffect(() => {
|
|
3530
|
-
const draggableArray = body && body.length
|
|
3703
|
+
const draggableArray = body && body.length > 0 ? body.map((item, index) => {
|
|
3531
3704
|
if (showOrder) {
|
|
3532
3705
|
Object.values(item).map((innerItem, innerIndex) => {
|
|
3533
3706
|
if (innerIndex === 1) {
|
|
@@ -3537,7 +3710,7 @@ const Table = ({
|
|
|
3537
3710
|
});
|
|
3538
3711
|
}
|
|
3539
3712
|
return item;
|
|
3540
|
-
});
|
|
3713
|
+
}) : [];
|
|
3541
3714
|
getDraggableData && getDraggableData(draggableArray);
|
|
3542
3715
|
setBody(() => draggableArray);
|
|
3543
3716
|
}, [checkDrag]);
|
|
@@ -3548,7 +3721,7 @@ const Table = ({
|
|
|
3548
3721
|
let newArray = [];
|
|
3549
3722
|
let checkedItems = [];
|
|
3550
3723
|
const disabledArray = [];
|
|
3551
|
-
const checkBodyForChackedItems = dataBody.slice().map(item => Object.values(item));
|
|
3724
|
+
const checkBodyForChackedItems = dataBody && dataBody.length > 0 ? dataBody.slice().map(item => Object.values(item)) : [];
|
|
3552
3725
|
if (arrowShow) {
|
|
3553
3726
|
let column = arrowColumn;
|
|
3554
3727
|
if (draggable) {
|
|
@@ -3576,7 +3749,7 @@ const Table = ({
|
|
|
3576
3749
|
newArray = insert;
|
|
3577
3750
|
checkedItems = handleSetCheckboxArray(insert);
|
|
3578
3751
|
} else {
|
|
3579
|
-
insert = checkBodyForChackedItems.map((item, index) => {
|
|
3752
|
+
insert = checkBodyForChackedItems && checkBodyForChackedItems.length > 0 ? checkBodyForChackedItems.map((item, index) => {
|
|
3580
3753
|
item.map((innerItem, innerIndex) => {
|
|
3581
3754
|
if (hasOwnerProperty(innerItem, 'checkBox')) {
|
|
3582
3755
|
if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
|
|
@@ -3592,12 +3765,12 @@ const Table = ({
|
|
|
3592
3765
|
}
|
|
3593
3766
|
});
|
|
3594
3767
|
return item;
|
|
3595
|
-
});
|
|
3768
|
+
}) : [];
|
|
3596
3769
|
newArray = insert;
|
|
3597
3770
|
checkedItems = handleSetCheckboxArray(insert);
|
|
3598
3771
|
}
|
|
3599
|
-
if (draggable) {
|
|
3600
|
-
newArray = insert && insert.length
|
|
3772
|
+
if (draggable && dataBody && dataBody.length > 0) {
|
|
3773
|
+
newArray = insert && insert.length > 0 ? insert.map((item, index) => {
|
|
3601
3774
|
item.map(innerItem => {
|
|
3602
3775
|
if (hasOwnerProperty(innerItem, 'colorStatus')) {
|
|
3603
3776
|
innerItem.colorStatus = null;
|
|
@@ -3614,12 +3787,11 @@ const Table = ({
|
|
|
3614
3787
|
colorStatus: draggableColor
|
|
3615
3788
|
});
|
|
3616
3789
|
return item;
|
|
3617
|
-
});
|
|
3790
|
+
}) : [];
|
|
3618
3791
|
}
|
|
3619
3792
|
setBody(() => [...newArray]);
|
|
3620
3793
|
setDisableArr(disabledArray);
|
|
3621
3794
|
setCheckedArray(() => checkedItems);
|
|
3622
|
-
getDraggableData && getDraggableData(newArray);
|
|
3623
3795
|
}
|
|
3624
3796
|
}, [dataBody, arrowColumn, arrowShow, draggable]);
|
|
3625
3797
|
React.useEffect(() => {
|
|
@@ -3666,7 +3838,7 @@ const Table = ({
|
|
|
3666
3838
|
console.error(error);
|
|
3667
3839
|
});
|
|
3668
3840
|
}, []);
|
|
3669
|
-
return configStyles.TABLE && /*#__PURE__*/React__default["default"].createElement("table", {
|
|
3841
|
+
return configStyles.TABLE && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
3670
3842
|
style: {
|
|
3671
3843
|
width: '100%',
|
|
3672
3844
|
borderCollapse: tableRowItem ?? configStyles.TABLE.body.row.asItem ? 'separate' : 'collapse',
|
|
@@ -3701,7 +3873,7 @@ const Table = ({
|
|
|
3701
3873
|
tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
|
|
3702
3874
|
tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth
|
|
3703
3875
|
});
|
|
3704
|
-
}))), body && body.length > 0
|
|
3876
|
+
}))), body && body.length > 0 ? /*#__PURE__*/React__default["default"].createElement("tbody", {
|
|
3705
3877
|
style: {
|
|
3706
3878
|
boxShadow: tBodyBoxShadow ?? configStyles.TABLE.body.box.shadow
|
|
3707
3879
|
}
|
|
@@ -3713,7 +3885,7 @@ const Table = ({
|
|
|
3713
3885
|
style: {
|
|
3714
3886
|
backgroundColor: tableRowBGColor ?? configStyles.TABLE.body.row.colors.background,
|
|
3715
3887
|
borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.body.row.border,
|
|
3716
|
-
borderColor: hideBorder ? 'transparent' : configStyles.TABLE.body.row.borderColor,
|
|
3888
|
+
borderColor: hideBorder || index === body.length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor,
|
|
3717
3889
|
boxShadow: (tableRowItem ? tableRowItem : configStyles.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : configStyles.TABLE.body.row.box.shadow : 'none'
|
|
3718
3890
|
},
|
|
3719
3891
|
ref: el => setRef(index, el)
|
|
@@ -3760,7 +3932,7 @@ const Table = ({
|
|
|
3760
3932
|
handleOpenCloseRowSingleArrow: handleOpenCloseRowSingleArrow
|
|
3761
3933
|
});
|
|
3762
3934
|
}));
|
|
3763
|
-
})), draggable && dragging && draggedItem && /*#__PURE__*/React__default["default"].createElement("
|
|
3935
|
+
})) : '', body && body.length > 0 && draggable && dragging && draggedItem && /*#__PURE__*/React__default["default"].createElement("tbody", null, /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
3764
3936
|
style: {
|
|
3765
3937
|
position: 'fixed',
|
|
3766
3938
|
top: `${position.y - 30}px`,
|
|
@@ -3806,7 +3978,9 @@ const Table = ({
|
|
|
3806
3978
|
borderRight: innerIndex === Object.values(draggedItem).length - 1 ? 'none' : configStyles.TABLE.body.row.border,
|
|
3807
3979
|
borderRightColor: innerIndex === Object.values(draggedItem).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor
|
|
3808
3980
|
});
|
|
3809
|
-
})))
|
|
3981
|
+
})))), !body.length && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3982
|
+
className: styles$a['no-tabel-data']
|
|
3983
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", null, "\u054F\u057E\u0575\u0561\u056C\u0576\u0565\u0580 \u0579\u056F\u0561\u0576")));
|
|
3810
3984
|
};
|
|
3811
3985
|
Table.propTypes = {
|
|
3812
3986
|
getData: PropTypes__default["default"].func,
|
|
@@ -3850,9 +4024,9 @@ Table.propTypes = {
|
|
|
3850
4024
|
hideBorder: PropTypes__default["default"].bool
|
|
3851
4025
|
};
|
|
3852
4026
|
|
|
3853
|
-
var css_248z$
|
|
4027
|
+
var css_248z$b = ".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)}}";
|
|
3854
4028
|
var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
|
|
3855
|
-
styleInject(css_248z$
|
|
4029
|
+
styleInject(css_248z$b);
|
|
3856
4030
|
|
|
3857
4031
|
const SvgNext = ({
|
|
3858
4032
|
title,
|
|
@@ -3972,6 +4146,7 @@ const Modal = ({
|
|
|
3972
4146
|
prevIcon,
|
|
3973
4147
|
nextIcon,
|
|
3974
4148
|
closeIcon,
|
|
4149
|
+
showCloseIcon,
|
|
3975
4150
|
closeSlideIcon,
|
|
3976
4151
|
selected,
|
|
3977
4152
|
children,
|
|
@@ -3984,6 +4159,7 @@ const Modal = ({
|
|
|
3984
4159
|
headerText,
|
|
3985
4160
|
imageWidth,
|
|
3986
4161
|
headerSize,
|
|
4162
|
+
headerIcon,
|
|
3987
4163
|
headerStyle,
|
|
3988
4164
|
headerFamily,
|
|
3989
4165
|
imageHeight,
|
|
@@ -3997,10 +4173,14 @@ const Modal = ({
|
|
|
3997
4173
|
headerWeight,
|
|
3998
4174
|
headerHeight,
|
|
3999
4175
|
justifyContent,
|
|
4176
|
+
headerTextAlign,
|
|
4000
4177
|
backgroundColor,
|
|
4001
4178
|
imageWrapHeight,
|
|
4002
4179
|
grayDecorHeight,
|
|
4180
|
+
headerIconMaxWidth,
|
|
4181
|
+
headerIconMaxHeight,
|
|
4003
4182
|
layerBackgroundColor,
|
|
4183
|
+
headerIconMarginRight,
|
|
4004
4184
|
closeAreaBackgroundColor,
|
|
4005
4185
|
type = 'content'
|
|
4006
4186
|
}) => {
|
|
@@ -4012,7 +4192,15 @@ const Modal = ({
|
|
|
4012
4192
|
const [classProps, setClassProps] = React.useState({});
|
|
4013
4193
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
4014
4194
|
const handleCloseModal = () => {
|
|
4015
|
-
|
|
4195
|
+
if (outsideClose !== undefined) {
|
|
4196
|
+
if (outsideClose) {
|
|
4197
|
+
setShow(false);
|
|
4198
|
+
}
|
|
4199
|
+
} else {
|
|
4200
|
+
if (configStyles.MODAL.outsideClose) {
|
|
4201
|
+
setShow(false);
|
|
4202
|
+
}
|
|
4203
|
+
}
|
|
4016
4204
|
};
|
|
4017
4205
|
const handleStopClosing = e => {
|
|
4018
4206
|
e.stopPropagation();
|
|
@@ -4107,7 +4295,7 @@ const Modal = ({
|
|
|
4107
4295
|
}, []);
|
|
4108
4296
|
return configStyles.MODAL && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4109
4297
|
className: classProps,
|
|
4110
|
-
onClick:
|
|
4298
|
+
onClick: handleCloseModal,
|
|
4111
4299
|
style: {
|
|
4112
4300
|
top: '0px',
|
|
4113
4301
|
left: '0px',
|
|
@@ -4156,7 +4344,18 @@ const Modal = ({
|
|
|
4156
4344
|
justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
|
|
4157
4345
|
backgroundColor: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
|
|
4158
4346
|
}
|
|
4159
|
-
},
|
|
4347
|
+
}, headerIcon && type === 'content' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4348
|
+
style: {
|
|
4349
|
+
display: 'flex',
|
|
4350
|
+
width: 'fit-content',
|
|
4351
|
+
alignItems: 'center',
|
|
4352
|
+
height: 'fit-content',
|
|
4353
|
+
justifyContent: 'center',
|
|
4354
|
+
maxWidth: headerIconMaxWidth ?? configStyles.MODAL.header.icon.maxWidth,
|
|
4355
|
+
maxHeight: headerIconMaxHeight ?? configStyles.MODAL.header.icon.maxHeight,
|
|
4356
|
+
marginRight: headerIconMarginRight ?? configStyles.MODAL.header.icon.marginRight
|
|
4357
|
+
}
|
|
4358
|
+
}, headerIcon), headerText && type === 'content' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4160
4359
|
style: {
|
|
4161
4360
|
flex: '1',
|
|
4162
4361
|
overflow: 'hidden',
|
|
@@ -4165,18 +4364,25 @@ const Modal = ({
|
|
|
4165
4364
|
margin: '0px 16px 0px 0px',
|
|
4166
4365
|
color: headerColor ?? configStyles.MODAL.header.color,
|
|
4167
4366
|
fontSize: headerSize ?? configStyles.MODAL.header.font.size,
|
|
4367
|
+
textAlign: headerTextAlign ?? configStyles.MODAL.header.align,
|
|
4168
4368
|
fontStyle: headerStyle ?? configStyles.MODAL.header.font.style,
|
|
4169
4369
|
fontFamily: headerFamily ?? configStyles.MODAL.header.font.family,
|
|
4170
4370
|
fontWeight: headerWeight ?? configStyles.MODAL.header.font.weight
|
|
4171
4371
|
}
|
|
4172
|
-
}, headerText), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4173
|
-
onClick:
|
|
4372
|
+
}, headerText), showCloseIcon ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4373
|
+
onClick: () => setShow(false),
|
|
4174
4374
|
style: {
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4375
|
+
display: 'flex',
|
|
4376
|
+
minWidth: '14px',
|
|
4377
|
+
minHeight: '14px',
|
|
4378
|
+
cursor: 'pointer',
|
|
4379
|
+
width: 'fit-content',
|
|
4380
|
+
alignItems: 'center',
|
|
4381
|
+
alignSelf: 'flex-end',
|
|
4382
|
+
height: 'fit-content',
|
|
4383
|
+
justifyContent: 'center'
|
|
4178
4384
|
}
|
|
4179
|
-
}, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4385
|
+
}, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4180
4386
|
style: {
|
|
4181
4387
|
display: 'flex',
|
|
4182
4388
|
width: '100%',
|
|
@@ -4219,7 +4425,7 @@ const Modal = ({
|
|
|
4219
4425
|
background: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
|
|
4220
4426
|
}
|
|
4221
4427
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4222
|
-
onClick:
|
|
4428
|
+
onClick: () => setShow(false),
|
|
4223
4429
|
style: {
|
|
4224
4430
|
position: 'absolute',
|
|
4225
4431
|
zIndex: '1',
|
|
@@ -4324,14 +4530,20 @@ Modal.propTypes = {
|
|
|
4324
4530
|
prevIcon: PropTypes__default["default"].element,
|
|
4325
4531
|
nextIcon: PropTypes__default["default"].element,
|
|
4326
4532
|
closeIcon: PropTypes__default["default"].element,
|
|
4533
|
+
showCloseIcon: PropTypes__default["default"].bool,
|
|
4327
4534
|
closeSlideIcon: PropTypes__default["default"].element,
|
|
4328
|
-
alignItems: PropTypes__default["default"].string,
|
|
4329
|
-
mMaxHeight: PropTypes__default["default"].string,
|
|
4330
4535
|
headerText: PropTypes__default["default"].string,
|
|
4331
|
-
imageWidth: PropTypes__default["default"].string,
|
|
4332
4536
|
headerSize: PropTypes__default["default"].string,
|
|
4333
4537
|
headerStyle: PropTypes__default["default"].string,
|
|
4538
|
+
headerIcon: PropTypes__default["default"].element,
|
|
4334
4539
|
headerFamily: PropTypes__default["default"].string,
|
|
4540
|
+
headerTextAlign: PropTypes__default["default"].string,
|
|
4541
|
+
headerIconMaxWidth: PropTypes__default["default"].string,
|
|
4542
|
+
headerIconMaxHeight: PropTypes__default["default"].string,
|
|
4543
|
+
headerIconMarginRight: PropTypes__default["default"].string,
|
|
4544
|
+
alignItems: PropTypes__default["default"].string,
|
|
4545
|
+
mMaxHeight: PropTypes__default["default"].string,
|
|
4546
|
+
imageWidth: PropTypes__default["default"].string,
|
|
4335
4547
|
outsideClose: PropTypes__default["default"].bool,
|
|
4336
4548
|
showZoomIcon: PropTypes__default["default"].bool,
|
|
4337
4549
|
imageMargin: PropTypes__default["default"].string,
|
|
@@ -4410,19 +4622,23 @@ const TelInput = ({
|
|
|
4410
4622
|
...inpStyles,
|
|
4411
4623
|
border: 'none',
|
|
4412
4624
|
outline: 'none',
|
|
4413
|
-
|
|
4625
|
+
borderTopRightRadius: radius,
|
|
4626
|
+
borderBottomRightRadius: radius
|
|
4414
4627
|
}
|
|
4415
4628
|
}));
|
|
4416
4629
|
};
|
|
4417
4630
|
|
|
4418
4631
|
const TextInput = ({
|
|
4632
|
+
ssn,
|
|
4419
4633
|
value,
|
|
4420
4634
|
radius,
|
|
4421
|
-
|
|
4635
|
+
disabled,
|
|
4422
4636
|
maxLength,
|
|
4423
4637
|
inpStyles,
|
|
4424
|
-
|
|
4425
|
-
inpAttributes
|
|
4638
|
+
inputChange,
|
|
4639
|
+
inpAttributes,
|
|
4640
|
+
checkLeftIcon,
|
|
4641
|
+
checkRightIcon
|
|
4426
4642
|
}) => {
|
|
4427
4643
|
const [innerValue, setInnerValue] = React.useState('');
|
|
4428
4644
|
const handleChange = event => {
|
|
@@ -4431,9 +4647,9 @@ const TextInput = ({
|
|
|
4431
4647
|
if (maxLength && currentValue.length > maxLength) {
|
|
4432
4648
|
currentValue = currentValue.substr(0, maxLength);
|
|
4433
4649
|
}
|
|
4434
|
-
setInnerValue(() => currentValue);
|
|
4650
|
+
setInnerValue(() => ssn ? currentValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : currentValue);
|
|
4435
4651
|
if (inputChange && currentValue !== prevValue) {
|
|
4436
|
-
inputChange(currentValue);
|
|
4652
|
+
inputChange(ssn ? currentValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : currentValue);
|
|
4437
4653
|
}
|
|
4438
4654
|
};
|
|
4439
4655
|
React.useEffect(() => {
|
|
@@ -4444,7 +4660,7 @@ const TextInput = ({
|
|
|
4444
4660
|
newValue = value.substr(0, maxLength);
|
|
4445
4661
|
}
|
|
4446
4662
|
}
|
|
4447
|
-
setInnerValue(() => newValue);
|
|
4663
|
+
setInnerValue(() => ssn ? newValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : newValue);
|
|
4448
4664
|
}, [value]);
|
|
4449
4665
|
return /*#__PURE__*/React__default["default"].createElement("input", {
|
|
4450
4666
|
type: "text",
|
|
@@ -4458,7 +4674,10 @@ const TextInput = ({
|
|
|
4458
4674
|
...inpStyles,
|
|
4459
4675
|
border: 'none',
|
|
4460
4676
|
outline: 'none',
|
|
4461
|
-
|
|
4677
|
+
borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
|
|
4678
|
+
borderTopRightRadius: checkRightIcon ? '0px' : radius,
|
|
4679
|
+
borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
|
|
4680
|
+
borderBottomRightRadius: checkRightIcon ? '0px' : radius
|
|
4462
4681
|
}
|
|
4463
4682
|
});
|
|
4464
4683
|
};
|
|
@@ -4467,11 +4686,13 @@ const PassInput = ({
|
|
|
4467
4686
|
show,
|
|
4468
4687
|
value,
|
|
4469
4688
|
radius,
|
|
4470
|
-
|
|
4689
|
+
disabled,
|
|
4471
4690
|
maxLength,
|
|
4691
|
+
inpStyles,
|
|
4692
|
+
inputChange,
|
|
4472
4693
|
inpAttributes,
|
|
4473
|
-
|
|
4474
|
-
|
|
4694
|
+
checkLeftIcon,
|
|
4695
|
+
checkRightIcon
|
|
4475
4696
|
}) => {
|
|
4476
4697
|
const [innerShow, setInnerShow] = React.useState('');
|
|
4477
4698
|
const [innerValue, setInnerValue] = React.useState('');
|
|
@@ -4511,7 +4732,10 @@ const PassInput = ({
|
|
|
4511
4732
|
...inpStyles,
|
|
4512
4733
|
border: 'none',
|
|
4513
4734
|
outline: 'none',
|
|
4514
|
-
|
|
4735
|
+
borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
|
|
4736
|
+
borderTopRightRadius: checkRightIcon ? '0px' : radius,
|
|
4737
|
+
borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
|
|
4738
|
+
borderBottomRightRadius: checkRightIcon ? '0px' : radius
|
|
4515
4739
|
}
|
|
4516
4740
|
});
|
|
4517
4741
|
};
|
|
@@ -4524,11 +4748,15 @@ const NumberInput = ({
|
|
|
4524
4748
|
withZero,
|
|
4525
4749
|
disabled,
|
|
4526
4750
|
inpStyles,
|
|
4751
|
+
cardNumber,
|
|
4527
4752
|
minNumSize,
|
|
4528
4753
|
maxNumSize,
|
|
4529
4754
|
insideError,
|
|
4530
4755
|
inputChange,
|
|
4756
|
+
errorMessage,
|
|
4757
|
+
checkLeftIcon,
|
|
4531
4758
|
inpAttributes,
|
|
4759
|
+
checkRightIcon,
|
|
4532
4760
|
numberMaxLength,
|
|
4533
4761
|
setInnerErrorMessage
|
|
4534
4762
|
}) => {
|
|
@@ -4537,32 +4765,51 @@ const NumberInput = ({
|
|
|
4537
4765
|
const handleChange = event => {
|
|
4538
4766
|
let prevValue = innerValue;
|
|
4539
4767
|
let currentValue = event.target.value.replace(/\.|․|\.|,/g, '.');
|
|
4540
|
-
currentValue = handleUtilsCheckTypeNumber(currentValue, prevValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength);
|
|
4541
|
-
setInnerValue(() => currentValue);
|
|
4768
|
+
currentValue = handleUtilsCheckTypeNumber(currentValue, prevValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength, cardNumber);
|
|
4769
|
+
setInnerValue(() => cardNumber ? currentValue.replace(/(\d{4})(?=\d)/g, '$1-') : currentValue);
|
|
4542
4770
|
if (inputChange && currentValue !== prevValue) {
|
|
4543
4771
|
if (currentValue < Number.MIN_SAFE_INTEGER || currentValue > Number.MAX_SAFE_INTEGER) {
|
|
4544
|
-
if (
|
|
4545
|
-
|
|
4772
|
+
if (!cardNumber) {
|
|
4773
|
+
if (currentValue === '') {
|
|
4774
|
+
setInnerErrorMessage(() => '');
|
|
4775
|
+
} else {
|
|
4776
|
+
insideError && insideError();
|
|
4777
|
+
setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${Number.MIN_SAFE_INTEGER} - ${Number.MAX_SAFE_INTEGER} թվերի միջակայքում`);
|
|
4778
|
+
}
|
|
4546
4779
|
} else {
|
|
4547
|
-
|
|
4548
|
-
|
|
4780
|
+
inputChange(currentValue.replaceAll('-', ''));
|
|
4781
|
+
if (errorMessage) {
|
|
4782
|
+
setInnerErrorMessage(() => errorMessage);
|
|
4783
|
+
} else {
|
|
4784
|
+
setInnerErrorMessage(() => '');
|
|
4785
|
+
}
|
|
4549
4786
|
}
|
|
4550
4787
|
} else if (innerMinNumSize && currentValue < innerMinNumSize || maxNumSize && currentValue > maxNumSize) {
|
|
4551
4788
|
if (currentValue === '') {
|
|
4552
4789
|
setInnerErrorMessage(() => '');
|
|
4553
4790
|
} else {
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4791
|
+
if (!cardNumber) {
|
|
4792
|
+
insideError && insideError();
|
|
4793
|
+
if (innerMinNumSize && !maxNumSize) {
|
|
4794
|
+
setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ոչ պակաս ${innerMinNumSize} - ից`);
|
|
4795
|
+
} else if (!innerMinNumSize && maxNumSize) {
|
|
4796
|
+
setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ոչ մեծ ${maxNumSize} ֊ ից`);
|
|
4797
|
+
} else if (innerMinNumSize && maxNumSize) {
|
|
4798
|
+
setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${innerMinNumSize} - ${maxNumSize} թվերի միջակայքում`);
|
|
4799
|
+
}
|
|
4561
4800
|
}
|
|
4562
4801
|
}
|
|
4563
4802
|
} else if (currentValue >= Number.MIN_SAFE_INTEGER || currentValue <= Number.MAX_SAFE_INTEGER || innerMinNumSize && currentValue >= innerMinNumSize || maxNumSize && currentValue <= maxNumSize) {
|
|
4564
|
-
inputChange(currentValue);
|
|
4565
|
-
|
|
4803
|
+
inputChange(cardNumber ? currentValue.replaceAll('-', '') : currentValue);
|
|
4804
|
+
if (cardNumber) {
|
|
4805
|
+
if (errorMessage) {
|
|
4806
|
+
setInnerErrorMessage(() => errorMessage);
|
|
4807
|
+
} else {
|
|
4808
|
+
setInnerErrorMessage(() => '');
|
|
4809
|
+
}
|
|
4810
|
+
} else {
|
|
4811
|
+
setInnerErrorMessage(() => '');
|
|
4812
|
+
}
|
|
4566
4813
|
}
|
|
4567
4814
|
}
|
|
4568
4815
|
};
|
|
@@ -4572,7 +4819,7 @@ const NumberInput = ({
|
|
|
4572
4819
|
if (parseFloat(newVal) === 0) {
|
|
4573
4820
|
inputChange('');
|
|
4574
4821
|
} else {
|
|
4575
|
-
inputChange(newVal);
|
|
4822
|
+
inputChange(cardNumber ? newVal.replaceAll('-', '') : newVal);
|
|
4576
4823
|
}
|
|
4577
4824
|
}
|
|
4578
4825
|
};
|
|
@@ -4590,10 +4837,11 @@ const NumberInput = ({
|
|
|
4590
4837
|
React.useEffect(() => {
|
|
4591
4838
|
let newValue = '';
|
|
4592
4839
|
if (value !== undefined && value !== null) {
|
|
4593
|
-
newValue = handleUtilsCheckTypeNumber(value, newValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength);
|
|
4840
|
+
newValue = handleUtilsCheckTypeNumber(value, newValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength, cardNumber);
|
|
4594
4841
|
}
|
|
4595
|
-
setInnerValue(() => newValue);
|
|
4596
|
-
|
|
4842
|
+
setInnerValue(() => cardNumber ? newValue.replace(/(\d{4})(?=\d)/g, '$1-') : newValue);
|
|
4843
|
+
// inputChange(cardNumber ? newValue.replaceAll('-', '') : newValue);
|
|
4844
|
+
}, [dots, value, float, cardNumber, maxNumSize, minNumSize, numberMaxLength]);
|
|
4597
4845
|
return /*#__PURE__*/React__default["default"].createElement("input", {
|
|
4598
4846
|
type: "text",
|
|
4599
4847
|
value: innerValue,
|
|
@@ -4605,7 +4853,10 @@ const NumberInput = ({
|
|
|
4605
4853
|
...inpStyles,
|
|
4606
4854
|
border: 'none',
|
|
4607
4855
|
outline: 'none',
|
|
4608
|
-
|
|
4856
|
+
borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
|
|
4857
|
+
borderTopRightRadius: checkRightIcon ? '0px' : radius,
|
|
4858
|
+
borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
|
|
4859
|
+
borderBottomRightRadius: checkRightIcon ? '0px' : radius
|
|
4609
4860
|
},
|
|
4610
4861
|
min: minNumSize,
|
|
4611
4862
|
max: maxNumSize,
|
|
@@ -4614,9 +4865,9 @@ const NumberInput = ({
|
|
|
4614
4865
|
});
|
|
4615
4866
|
};
|
|
4616
4867
|
|
|
4617
|
-
var css_248z$
|
|
4868
|
+
var css_248z$a = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{appearance:none!important;-webkit-appearance:none!important;display:flex;width:100%}input:-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)}}";
|
|
4618
4869
|
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k","inp-num":"input-module_inp-num__vH7HL"};
|
|
4619
|
-
styleInject(css_248z$
|
|
4870
|
+
styleInject(css_248z$a);
|
|
4620
4871
|
|
|
4621
4872
|
const InputTypes = {
|
|
4622
4873
|
TEL: 'tel',
|
|
@@ -4632,6 +4883,7 @@ const P = styled__default["default"].span`
|
|
|
4632
4883
|
animation: ${true};
|
|
4633
4884
|
`;
|
|
4634
4885
|
const Input = ({
|
|
4886
|
+
ssn,
|
|
4635
4887
|
size,
|
|
4636
4888
|
name,
|
|
4637
4889
|
style,
|
|
@@ -4671,6 +4923,7 @@ const Input = ({
|
|
|
4671
4923
|
errorColor,
|
|
4672
4924
|
withoutDot,
|
|
4673
4925
|
errorStyle,
|
|
4926
|
+
iconPadding,
|
|
4674
4927
|
labelAction,
|
|
4675
4928
|
errorAction,
|
|
4676
4929
|
placeholder,
|
|
@@ -4687,6 +4940,7 @@ const Input = ({
|
|
|
4687
4940
|
errorIconSide,
|
|
4688
4941
|
showErrorIcon,
|
|
4689
4942
|
errorMarginTop,
|
|
4943
|
+
errorBoxShadow,
|
|
4690
4944
|
boxShadowHover,
|
|
4691
4945
|
errorClassName,
|
|
4692
4946
|
labelIconMargin,
|
|
@@ -4707,6 +4961,7 @@ const Input = ({
|
|
|
4707
4961
|
fireInputInsideError,
|
|
4708
4962
|
backgroundDisableColor,
|
|
4709
4963
|
telBorderRightColorHover,
|
|
4964
|
+
cardNumber,
|
|
4710
4965
|
type = 'text'
|
|
4711
4966
|
}) => {
|
|
4712
4967
|
const [show, setShow] = React.useState(false);
|
|
@@ -4738,19 +4993,22 @@ const Input = ({
|
|
|
4738
4993
|
iName: name ? name : `tui_${uuid}_tui`,
|
|
4739
4994
|
autoComplete: autoComplete ?? configStyles.INPUT.autoComplete
|
|
4740
4995
|
};
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4996
|
+
|
|
4997
|
+
// const errorShow = keyframes`
|
|
4998
|
+
// 100% {
|
|
4999
|
+
// bottom: '-20px';
|
|
5000
|
+
// transform: scale3d(1,1,1);
|
|
5001
|
+
// -webkit-transform: scale3d(1,1,1);
|
|
5002
|
+
// -moz-transform: scale3d(1,1,1);
|
|
5003
|
+
// -ms-transform: scale3d(1,1,1);
|
|
5004
|
+
// -o-transform: scale3d(1,1,1);
|
|
5005
|
+
// }
|
|
5006
|
+
// `
|
|
5007
|
+
|
|
5008
|
+
// const animation = () => css`
|
|
5009
|
+
// ${errorShow} 240ms forwards
|
|
5010
|
+
// `
|
|
5011
|
+
|
|
4754
5012
|
const handleMouseEnter = () => {
|
|
4755
5013
|
setIsHover(true);
|
|
4756
5014
|
};
|
|
@@ -4848,7 +5106,7 @@ const Input = ({
|
|
|
4848
5106
|
style: {
|
|
4849
5107
|
width: width ?? configStyles.INPUT.width,
|
|
4850
5108
|
borderRadius: radius ?? configStyles.INPUT.radius,
|
|
4851
|
-
boxShadow: innerErrorMessage ?
|
|
5109
|
+
boxShadow: innerErrorMessage ? errorBoxShadow ? errorBoxShadow : configStyles.INPUT.error.box.shadow : isHover && !disabled ? boxShadowHover ? boxShadowHover : configStyles.INPUT.box.shadowHover : boxShadow ? boxShadow : configStyles.INPUT.box.shadow
|
|
4852
5110
|
},
|
|
4853
5111
|
onMouseEnter: handleMouseEnter,
|
|
4854
5112
|
onMouseLeave: handleMouseLeave
|
|
@@ -4860,9 +5118,9 @@ const Input = ({
|
|
|
4860
5118
|
justifyContent: 'center',
|
|
4861
5119
|
cursor: type === 'password' ? 'pointer' : 'default',
|
|
4862
5120
|
height: height ?? configStyles.INPUT.height,
|
|
4863
|
-
padding: padding ?? configStyles.INPUT.padding,
|
|
4864
5121
|
width: iconWidth ?? configStyles.INPUT.iconWidth,
|
|
4865
5122
|
boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
|
|
5123
|
+
padding: iconPadding ?? configStyles.INPUT.iconPadding,
|
|
4866
5124
|
borderTopLeftRadius: radius ?? configStyles.INPUT.radius,
|
|
4867
5125
|
borderBottomLeftRadius: radius ?? configStyles.INPUT.radius,
|
|
4868
5126
|
backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
|
|
@@ -4891,13 +5149,17 @@ const Input = ({
|
|
|
4891
5149
|
withZero: withZero,
|
|
4892
5150
|
inputChange: change,
|
|
4893
5151
|
inpStyles: inpStyles,
|
|
5152
|
+
cardNumber: cardNumber,
|
|
5153
|
+
errorMessage: errorMessage,
|
|
4894
5154
|
inpAttributes: inpAttributes,
|
|
4895
5155
|
numberMaxLength: numberMaxLength,
|
|
4896
5156
|
insideError: fireInputInsideError,
|
|
4897
5157
|
minNumSize: minNumSize ? minNumSize : '',
|
|
4898
5158
|
maxNumSize: maxNumSize ? maxNumSize : '',
|
|
4899
5159
|
setInnerErrorMessage: setInnerErrorMessage,
|
|
4900
|
-
radius: radius ?? configStyles.INPUT.radius
|
|
5160
|
+
radius: radius ?? configStyles.INPUT.radius,
|
|
5161
|
+
checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
|
|
5162
|
+
checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
|
|
4901
5163
|
}) : type === 'password' ? /*#__PURE__*/React__default["default"].createElement(PassInput, {
|
|
4902
5164
|
show: show,
|
|
4903
5165
|
type: type,
|
|
@@ -4907,15 +5169,20 @@ const Input = ({
|
|
|
4907
5169
|
inpStyles: inpStyles,
|
|
4908
5170
|
inpAttributes: inpAttributes,
|
|
4909
5171
|
radius: radius ?? configStyles.INPUT.radius,
|
|
4910
|
-
maxLength: maxLength ?? configStyles.INPUT.maxLength
|
|
5172
|
+
maxLength: maxLength ?? configStyles.INPUT.maxLength,
|
|
5173
|
+
checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
|
|
5174
|
+
checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
|
|
4911
5175
|
}) : /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
5176
|
+
ssn: ssn,
|
|
4912
5177
|
value: innerValue,
|
|
4913
5178
|
disabled: disabled,
|
|
4914
5179
|
inputChange: change,
|
|
4915
5180
|
inpStyles: inpStyles,
|
|
4916
5181
|
inpAttributes: inpAttributes,
|
|
4917
5182
|
radius: radius ?? configStyles.INPUT.radius,
|
|
4918
|
-
maxLength: maxLength ?? configStyles.INPUT.maxLength
|
|
5183
|
+
maxLength: maxLength ?? configStyles.INPUT.maxLength,
|
|
5184
|
+
checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
|
|
5185
|
+
checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
|
|
4919
5186
|
}), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4920
5187
|
onClick: type === 'password' ? handleShowPass : _ => _,
|
|
4921
5188
|
style: {
|
|
@@ -4924,15 +5191,16 @@ const Input = ({
|
|
|
4924
5191
|
justifyContent: 'center',
|
|
4925
5192
|
cursor: type === 'password' ? 'pointer' : 'default',
|
|
4926
5193
|
height: height ?? configStyles.INPUT.height,
|
|
4927
|
-
padding: padding ?? configStyles.INPUT.padding,
|
|
4928
5194
|
width: iconWidth ?? configStyles.INPUT.iconWidth,
|
|
4929
5195
|
boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
|
|
5196
|
+
padding: iconPadding ?? configStyles.INPUT.iconPadding,
|
|
4930
5197
|
borderTopRightRadius: radius ?? configStyles.INPUT.radius,
|
|
4931
5198
|
borderBottomRightRadius: radius ?? configStyles.INPUT.radius,
|
|
4932
5199
|
backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
|
|
4933
5200
|
}
|
|
4934
|
-
}, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', innerErrorMessage ? /*#__PURE__*/React__default["default"].createElement(P
|
|
4935
|
-
|
|
5201
|
+
}, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', innerErrorMessage ? /*#__PURE__*/React__default["default"].createElement(P
|
|
5202
|
+
// animation={animation}
|
|
5203
|
+
, {
|
|
4936
5204
|
style: {
|
|
4937
5205
|
margin: '0px',
|
|
4938
5206
|
display: 'flex',
|
|
@@ -4982,6 +5250,7 @@ const Input = ({
|
|
|
4982
5250
|
})) : '');
|
|
4983
5251
|
};
|
|
4984
5252
|
Input.propTypes = {
|
|
5253
|
+
ssn: PropTypes__default["default"].bool,
|
|
4985
5254
|
size: PropTypes__default["default"].string,
|
|
4986
5255
|
name: PropTypes__default["default"].string,
|
|
4987
5256
|
change: PropTypes__default["default"].func,
|
|
@@ -4996,10 +5265,12 @@ Input.propTypes = {
|
|
|
4996
5265
|
height: PropTypes__default["default"].string,
|
|
4997
5266
|
radius: PropTypes__default["default"].string,
|
|
4998
5267
|
padding: PropTypes__default["default"].string,
|
|
5268
|
+
cardNumber: PropTypes__default["default"].bool,
|
|
4999
5269
|
tooltip: PropTypes__default["default"].element,
|
|
5000
5270
|
withoutDot: PropTypes__default["default"].bool,
|
|
5001
5271
|
className: PropTypes__default["default"].string,
|
|
5002
5272
|
iconWidth: PropTypes__default["default"].string,
|
|
5273
|
+
iconPadding: PropTypes__default["default"].string,
|
|
5003
5274
|
maxLength: PropTypes__default["default"].number,
|
|
5004
5275
|
floatToFix: PropTypes__default["default"].number,
|
|
5005
5276
|
minNumSize: PropTypes__default["default"].number,
|
|
@@ -5043,6 +5314,7 @@ Input.propTypes = {
|
|
|
5043
5314
|
errorLineHeight: PropTypes__default["default"].string,
|
|
5044
5315
|
boxSizing: PropTypes__default["default"].string,
|
|
5045
5316
|
boxShadow: PropTypes__default["default"].string,
|
|
5317
|
+
errorBoxShadow: PropTypes__default["default"].string,
|
|
5046
5318
|
boxShadowHover: PropTypes__default["default"].string,
|
|
5047
5319
|
phoneAlignItems: PropTypes__default["default"].string,
|
|
5048
5320
|
numberMaxLength: PropTypes__default["default"].number,
|
|
@@ -5079,10 +5351,12 @@ const Radio = ({
|
|
|
5079
5351
|
borderStyle,
|
|
5080
5352
|
labelFontSize,
|
|
5081
5353
|
labelFontStyle,
|
|
5354
|
+
labelActiveColor,
|
|
5082
5355
|
labelFontFamily,
|
|
5083
5356
|
labelFontWeight,
|
|
5084
5357
|
labelLineHeight,
|
|
5085
5358
|
radioMarginRight,
|
|
5359
|
+
borderHoverColor,
|
|
5086
5360
|
borderActiveColor,
|
|
5087
5361
|
radioItemMarginRight,
|
|
5088
5362
|
radioItemMarginBottom,
|
|
@@ -5101,22 +5375,14 @@ const Radio = ({
|
|
|
5101
5375
|
});
|
|
5102
5376
|
const handleMouseEnter = (id, elemID) => {
|
|
5103
5377
|
const elem = document.querySelector(`#${elemID}`);
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
// ? borderActiveColor
|
|
5108
|
-
// ? borderActiveColor
|
|
5109
|
-
// : configStyles.RADIO.border.activeColor
|
|
5110
|
-
// : borderColor
|
|
5111
|
-
// ? borderColor
|
|
5112
|
-
// : configStyles.RADIO.border.color
|
|
5113
|
-
// }
|
|
5114
|
-
// handleUtilsMouseEnterLeave(e, newStyles);
|
|
5115
|
-
|
|
5116
|
-
elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
|
|
5378
|
+
const borderStyle = elem.parentElement;
|
|
5379
|
+
borderStyle.style.borderColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderHoverColor ? borderHoverColor : configStyles.RADIO.border.hoverColor;
|
|
5380
|
+
elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderHoverColor ? borderHoverColor : configStyles.RADIO.border.hoverColor;
|
|
5117
5381
|
};
|
|
5118
5382
|
const handleMouseLeave = (id, elemID) => {
|
|
5119
5383
|
const elem = document.querySelector(`#${elemID}`);
|
|
5384
|
+
const borderStyle = elem.parentElement;
|
|
5385
|
+
borderStyle.style.borderColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
|
|
5120
5386
|
elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : 'transparent';
|
|
5121
5387
|
};
|
|
5122
5388
|
const handleChecked = selItem => {
|
|
@@ -5223,15 +5489,13 @@ const Radio = ({
|
|
|
5223
5489
|
}
|
|
5224
5490
|
})), item[innerKeyNames.label] ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5225
5491
|
style: {
|
|
5226
|
-
color: labelColor ?? configStyles.RADIO.label.color,
|
|
5492
|
+
color: item[innerKeyNames.id] === innerSelectedData.id ? labelActiveColor ?? configStyles.RADIO.label.activeColor : labelColor ?? configStyles.RADIO.label.color,
|
|
5227
5493
|
fontSize: labelFontSize ?? configStyles.RADIO.label.font.size,
|
|
5228
5494
|
fontStyle: labelFontStyle ?? configStyles.RADIO.label.font.style,
|
|
5229
5495
|
fontFamily: labelFontFamily ?? configStyles.RADIO.label.font.family,
|
|
5230
5496
|
fontWeight: labelFontWeight ?? configStyles.RADIO.label.font.weight,
|
|
5231
5497
|
lineHeight: labelLineHeight ?? configStyles.RADIO.label.lineHeight
|
|
5232
|
-
}
|
|
5233
|
-
onMouseEnter: () => handleMouseEnter(item[innerKeyNames.id], elemId),
|
|
5234
|
-
onMouseLeave: () => handleMouseLeave(item[innerKeyNames.id], elemId)
|
|
5498
|
+
}
|
|
5235
5499
|
}, item[innerKeyNames.label]) : '');
|
|
5236
5500
|
}));
|
|
5237
5501
|
};
|
|
@@ -5246,11 +5510,13 @@ Radio.propTypes = {
|
|
|
5246
5510
|
borderStyle: PropTypes__default["default"].string,
|
|
5247
5511
|
labelFontSize: PropTypes__default["default"].string,
|
|
5248
5512
|
labelFontStyle: PropTypes__default["default"].string,
|
|
5513
|
+
labelActiveColor: PropTypes__default["default"].string,
|
|
5249
5514
|
labelFontFamily: PropTypes__default["default"].string,
|
|
5250
5515
|
labelFontWeight: PropTypes__default["default"].string,
|
|
5251
5516
|
labelLineHeight: PropTypes__default["default"].string,
|
|
5252
5517
|
radioMarginRight: PropTypes__default["default"].string,
|
|
5253
5518
|
getData: PropTypes__default["default"].func.isRequired,
|
|
5519
|
+
borderHoverColor: PropTypes__default["default"].string,
|
|
5254
5520
|
borderActiveColor: PropTypes__default["default"].string,
|
|
5255
5521
|
radioItemMarginRight: PropTypes__default["default"].string,
|
|
5256
5522
|
radioItemMarginBottom: PropTypes__default["default"].string,
|
|
@@ -5277,12 +5543,13 @@ const SvgArrow = ({
|
|
|
5277
5543
|
fill: fillColor ? fillColor : '#3C393E'
|
|
5278
5544
|
}));
|
|
5279
5545
|
|
|
5280
|
-
var css_248z$
|
|
5546
|
+
var css_248z$9 = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;display:flex;flex-direction:row;flex-wrap:nowrap}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:99999999999}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:fit-content;justify-content:center;max-height:30px;max-width:30px;min-height:14px;min-width:14px;width:fit-content}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
5281
5547
|
var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L","ellipsis":"select-module_ellipsis__uNgol"};
|
|
5282
|
-
styleInject(css_248z$
|
|
5548
|
+
styleInject(css_248z$9);
|
|
5283
5549
|
|
|
5284
5550
|
const Select = ({
|
|
5285
5551
|
dots,
|
|
5552
|
+
lang,
|
|
5286
5553
|
options,
|
|
5287
5554
|
multiple,
|
|
5288
5555
|
disabled,
|
|
@@ -5296,6 +5563,7 @@ const Select = ({
|
|
|
5296
5563
|
closeIcon,
|
|
5297
5564
|
errorZindex,
|
|
5298
5565
|
errorMessage,
|
|
5566
|
+
arrowNoRotate,
|
|
5299
5567
|
showCloseIcon,
|
|
5300
5568
|
defaultOption,
|
|
5301
5569
|
multipleCheckbox,
|
|
@@ -5336,6 +5604,8 @@ const Select = ({
|
|
|
5336
5604
|
optionItemCursor,
|
|
5337
5605
|
optionItemPadding,
|
|
5338
5606
|
optionItemFontSize,
|
|
5607
|
+
optionItemFontStyle,
|
|
5608
|
+
optionItemFontFamily,
|
|
5339
5609
|
optionItemMinHeight,
|
|
5340
5610
|
optionItemBoxSizing,
|
|
5341
5611
|
optionItemFontWeight,
|
|
@@ -5345,7 +5615,8 @@ const Select = ({
|
|
|
5345
5615
|
optionItemBackgroudColor,
|
|
5346
5616
|
optionItemBackgroudColorHover,
|
|
5347
5617
|
boxShadow,
|
|
5348
|
-
boxShadowHover
|
|
5618
|
+
boxShadowHover,
|
|
5619
|
+
insidePagination
|
|
5349
5620
|
}) => {
|
|
5350
5621
|
const ref = React.useRef();
|
|
5351
5622
|
const [opened, setOpened] = React.useState(false);
|
|
@@ -5493,10 +5764,10 @@ const Select = ({
|
|
|
5493
5764
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5494
5765
|
className: styles$7['select-content']
|
|
5495
5766
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5767
|
+
className: `${styles$7['select-content-top']}`,
|
|
5496
5768
|
style: {
|
|
5497
5769
|
cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
|
|
5498
5770
|
minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
|
|
5499
|
-
padding: selectedPadding ?? configStyles.SELECT.selected.padding,
|
|
5500
5771
|
borderRadius: selectedRadius ?? configStyles.SELECT.selected.radius,
|
|
5501
5772
|
fontSize: selectedFontSize ?? configStyles.SELECT.selected.font.size,
|
|
5502
5773
|
fontStyle: selectedFontStyle ?? configStyles.SELECT.selected.font.style,
|
|
@@ -5505,19 +5776,20 @@ const Select = ({
|
|
|
5505
5776
|
fontWeight: selectedFontWeight ?? configStyles.SELECT.selected.font.weight,
|
|
5506
5777
|
lineHeight: selectedLineHeight ?? configStyles.SELECT.selected.lineHeight,
|
|
5507
5778
|
transition: selectedTransition ?? configStyles.SELECT.selected.transition,
|
|
5779
|
+
padding: insidePagination ? '0px 2px' : selectedPadding ?? configStyles.SELECT.selected.padding,
|
|
5780
|
+
justifyContent: insidePagination ? 'center' : 'space-between',
|
|
5508
5781
|
backgroundColor: disabled ? selectedDisableBackgroundColor ? selectedDisableBackgroundColor : configStyles.SELECT.selected.colors.backgroundDisable : selectedBackgroundColor ? selectedBackgroundColor : configStyles.SELECT.selected.colors.background,
|
|
5509
5782
|
boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : configStyles.SELECT.error.box.shadow : isHover ? boxShadowHover ? boxShadowHover : configStyles.SELECT.box.shadowHover : boxShadow ? boxShadow : configStyles.SELECT.box.shadow
|
|
5510
5783
|
},
|
|
5511
5784
|
onClick: disabled ? _ => _ : () => handleOpenClose(),
|
|
5512
5785
|
onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
|
|
5513
|
-
onMouseLeave: disabled ? _ => _ : () => handleMouseLeave()
|
|
5514
|
-
className: `${styles$7['select-content-top']}`
|
|
5786
|
+
onMouseLeave: disabled ? _ => _ : () => handleMouseLeave()
|
|
5515
5787
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5516
5788
|
className: `${styles$7['select-content-top-text']}`,
|
|
5517
5789
|
style: {
|
|
5518
5790
|
whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
|
|
5519
|
-
overflow: 'hidden',
|
|
5520
|
-
textOverflow: 'ellipsis',
|
|
5791
|
+
overflow: insidePagination ? 'visible' : 'hidden',
|
|
5792
|
+
textOverflow: insidePagination ? 'initial' : 'ellipsis',
|
|
5521
5793
|
color: isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selected.colors.hover : selectedColor ? selectedColor : configStyles.SELECT.selected.color
|
|
5522
5794
|
}
|
|
5523
5795
|
}, !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] : newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
|
|
@@ -5529,7 +5801,10 @@ const Select = ({
|
|
|
5529
5801
|
}
|
|
5530
5802
|
}
|
|
5531
5803
|
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5532
|
-
className: `${styles$7['select-content-top-icon']}
|
|
5804
|
+
className: `${styles$7['select-content-top-icon']}`,
|
|
5805
|
+
style: {
|
|
5806
|
+
padding: lang ? '0px' : insidePagination ? '0px 5px' : '0 5px 0 20px'
|
|
5807
|
+
}
|
|
5533
5808
|
}, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default["default"].createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : configStyles.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5534
5809
|
className: `${styles$7['close-icon']}`,
|
|
5535
5810
|
onClick: disabled ? _ => _ : handleClearSelect,
|
|
@@ -5537,10 +5812,11 @@ const Select = ({
|
|
|
5537
5812
|
marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
|
|
5538
5813
|
}
|
|
5539
5814
|
}, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5815
|
+
className: `${styles$7['arrow-icon']}`,
|
|
5540
5816
|
style: {
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5817
|
+
marginLeft: lang ? '0px' : '9px',
|
|
5818
|
+
transform: arrowNoRotate || configStyles.SELECT.arrowNoRotate ? 'rotate(0deg)' : opened ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
5819
|
+
}
|
|
5544
5820
|
}, arrowIcon ? arrowIcon : configStyles.SELECT.arrowIcon ? configStyles.SELECT.arrowIcon : /*#__PURE__*/React__default["default"].createElement(SvgArrow, null)) : '')), opened && existOptions && existOptions.length > 0 && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5545
5821
|
style: {
|
|
5546
5822
|
boxShadow: optionsBoxShadow ?? configStyles.SELECT.options.box.shadow,
|
|
@@ -5566,12 +5842,15 @@ const Select = ({
|
|
|
5566
5842
|
cursor: optionItemCursor ?? configStyles.SELECT.options.item.cursor,
|
|
5567
5843
|
padding: optionItemPadding ?? configStyles.SELECT.options.item.padding,
|
|
5568
5844
|
fontSize: optionItemFontSize ?? configStyles.SELECT.options.item.font.size,
|
|
5845
|
+
fontStyle: optionItemFontStyle ?? configStyles.SELECT.options.item.font.style,
|
|
5846
|
+
fontFamily: optionItemFontFamily ?? configStyles.SELECT.options.item.font.family,
|
|
5569
5847
|
boxSizing: optionItemBoxSizing ?? configStyles.SELECT.options.item.box.sizing,
|
|
5570
5848
|
minHeight: optionItemMinHeight ?? configStyles.SELECT.options.item.minHeight,
|
|
5571
5849
|
fontWeight: optionItemFontWeight ?? configStyles.SELECT.options.item.font.weight,
|
|
5572
5850
|
lineHeight: dots || configStyles.SELECT.dots ? '46px' : optionItemLineHeight ? optionItemLineHeight : configStyles.SELECT.options.item.lineHeight,
|
|
5573
5851
|
marginBottom: optionItemMarginBottom ?? configStyles.SELECT.options.item.marginBottom,
|
|
5574
|
-
backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud
|
|
5852
|
+
backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud,
|
|
5853
|
+
justifyContent: lang ? 'center' : 'flex-start'
|
|
5575
5854
|
}
|
|
5576
5855
|
}, multiple && multipleCheckbox ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
5577
5856
|
checked: option.checked
|
|
@@ -5591,6 +5870,7 @@ const Select = ({
|
|
|
5591
5870
|
};
|
|
5592
5871
|
Select.propTypes = {
|
|
5593
5872
|
dots: PropTypes__default["default"].bool,
|
|
5873
|
+
lang: PropTypes__default["default"].bool,
|
|
5594
5874
|
options: PropTypes__default["default"].array,
|
|
5595
5875
|
multiple: PropTypes__default["default"].bool,
|
|
5596
5876
|
onChange: PropTypes__default["default"].func,
|
|
@@ -5602,6 +5882,7 @@ Select.propTypes = {
|
|
|
5602
5882
|
className: PropTypes__default["default"].string,
|
|
5603
5883
|
arrowIcon: PropTypes__default["default"].element,
|
|
5604
5884
|
closeIcon: PropTypes__default["default"].element,
|
|
5885
|
+
arrowNoRotate: PropTypes__default["default"].bool,
|
|
5605
5886
|
showCloseIcon: PropTypes__default["default"].bool,
|
|
5606
5887
|
errorZindex: PropTypes__default["default"].number,
|
|
5607
5888
|
errorMessage: PropTypes__default["default"].string,
|
|
@@ -5641,6 +5922,8 @@ Select.propTypes = {
|
|
|
5641
5922
|
optionItemCursor: PropTypes__default["default"].string,
|
|
5642
5923
|
optionItemPadding: PropTypes__default["default"].string,
|
|
5643
5924
|
optionItemFontSize: PropTypes__default["default"].string,
|
|
5925
|
+
optionItemFontStyle: PropTypes__default["default"].string,
|
|
5926
|
+
optionItemFontFamily: PropTypes__default["default"].string,
|
|
5644
5927
|
optionItemMinHeight: PropTypes__default["default"].string,
|
|
5645
5928
|
optionItemBoxSizing: PropTypes__default["default"].string,
|
|
5646
5929
|
optionItemFontWeight: PropTypes__default["default"].string,
|
|
@@ -5650,7 +5933,8 @@ Select.propTypes = {
|
|
|
5650
5933
|
optionItemBackgroudColor: PropTypes__default["default"].string,
|
|
5651
5934
|
optionItemBackgroudColorHover: PropTypes__default["default"].string,
|
|
5652
5935
|
boxShadow: PropTypes__default["default"].string,
|
|
5653
|
-
boxShadowHover: PropTypes__default["default"].string
|
|
5936
|
+
boxShadowHover: PropTypes__default["default"].string,
|
|
5937
|
+
insidePagination: PropTypes__default["default"].bool
|
|
5654
5938
|
};
|
|
5655
5939
|
|
|
5656
5940
|
const SvgToasterInfo = ({
|
|
@@ -5772,9 +6056,9 @@ const SvgToasterSuccess = ({
|
|
|
5772
6056
|
fill: fillColor ? fillColor : '#0DA574'
|
|
5773
6057
|
}));
|
|
5774
6058
|
|
|
5775
|
-
var css_248z$
|
|
6059
|
+
var css_248z$8 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceInLeftMobile__CA2dc{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:0}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}@media(max-width:480px){.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeftMobile__CA2dc;animation-name:toaster-module_bounceInLeftMobile__CA2dc}}";
|
|
5776
6060
|
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"};
|
|
5777
|
-
styleInject(css_248z$
|
|
6061
|
+
styleInject(css_248z$8);
|
|
5778
6062
|
|
|
5779
6063
|
const ToasterType = {
|
|
5780
6064
|
info: 'info',
|
|
@@ -6174,9 +6458,9 @@ const SvgTooltip = ({
|
|
|
6174
6458
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
6175
6459
|
}));
|
|
6176
6460
|
|
|
6177
|
-
var css_248z$
|
|
6461
|
+
var css_248z$7 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{box-sizing:border-box;padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
|
|
6178
6462
|
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"};
|
|
6179
|
-
styleInject(css_248z$
|
|
6463
|
+
styleInject(css_248z$7);
|
|
6180
6464
|
|
|
6181
6465
|
const TooltipDirections = {
|
|
6182
6466
|
TOP: 'top',
|
|
@@ -6380,9 +6664,9 @@ const SvgCaptchaArrowDown = ({
|
|
|
6380
6664
|
fill: fillColor ? fillColor : '#00236A'
|
|
6381
6665
|
}));
|
|
6382
6666
|
|
|
6383
|
-
var css_248z$
|
|
6667
|
+
var css_248z$6 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
|
|
6384
6668
|
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"};
|
|
6385
|
-
styleInject(css_248z$
|
|
6669
|
+
styleInject(css_248z$6);
|
|
6386
6670
|
|
|
6387
6671
|
const Captcha = ({
|
|
6388
6672
|
color,
|
|
@@ -6527,9 +6811,9 @@ Captcha.propTypes = {
|
|
|
6527
6811
|
getRange: PropTypes__default["default"].func.isRequired
|
|
6528
6812
|
};
|
|
6529
6813
|
|
|
6530
|
-
var css_248z$
|
|
6814
|
+
var css_248z$5 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
|
|
6531
6815
|
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"};
|
|
6532
|
-
styleInject(css_248z$
|
|
6816
|
+
styleInject(css_248z$5);
|
|
6533
6817
|
|
|
6534
6818
|
const Stepper = ({
|
|
6535
6819
|
stepLength,
|
|
@@ -6692,8 +6976,8 @@ Checkbox.propTypes = {
|
|
|
6692
6976
|
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].arrayOf(PropTypes__default["default"].object), PropTypes__default["default"].object])
|
|
6693
6977
|
};
|
|
6694
6978
|
|
|
6695
|
-
var css_248z$
|
|
6696
|
-
styleInject(css_248z$
|
|
6979
|
+
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}";
|
|
6980
|
+
styleInject(css_248z$4);
|
|
6697
6981
|
|
|
6698
6982
|
const PositionSide = {
|
|
6699
6983
|
TOP: 'top',
|
|
@@ -6701,6 +6985,7 @@ const PositionSide = {
|
|
|
6701
6985
|
};
|
|
6702
6986
|
const Textarea = ({
|
|
6703
6987
|
size,
|
|
6988
|
+
name,
|
|
6704
6989
|
style,
|
|
6705
6990
|
family,
|
|
6706
6991
|
weight,
|
|
@@ -6762,25 +7047,26 @@ const Textarea = ({
|
|
|
6762
7047
|
};
|
|
6763
7048
|
const handleChange = e => {
|
|
6764
7049
|
const value = e.target.value;
|
|
6765
|
-
onChange
|
|
7050
|
+
if (onChange) {
|
|
7051
|
+
onChange(value);
|
|
7052
|
+
}
|
|
6766
7053
|
setInnerValue(() => value);
|
|
6767
7054
|
if (maxLength) {
|
|
6768
7055
|
if (value.length > maxLength) {
|
|
6769
|
-
onChange
|
|
7056
|
+
if (onChange) {
|
|
7057
|
+
onChange(value.substr(0, maxLength));
|
|
7058
|
+
}
|
|
6770
7059
|
setInnerValue(() => value.substr(0, maxLength));
|
|
6771
7060
|
}
|
|
6772
7061
|
} else {
|
|
6773
7062
|
if (value.length > configStyles.TEXTAREA.maxLength) {
|
|
6774
|
-
onChange
|
|
7063
|
+
if (onChange) {
|
|
7064
|
+
onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
|
|
7065
|
+
}
|
|
6775
7066
|
setInnerValue(() => value.substr(0, configStyles.TEXTAREA.maxLength));
|
|
6776
7067
|
}
|
|
6777
7068
|
}
|
|
6778
7069
|
};
|
|
6779
|
-
React.useEffect(() => {
|
|
6780
|
-
if (!onChange) {
|
|
6781
|
-
alert('Please add onChange function on Textarea component');
|
|
6782
|
-
}
|
|
6783
|
-
}, [onChange]);
|
|
6784
7070
|
React.useEffect(() => {
|
|
6785
7071
|
if (value === undefined) {
|
|
6786
7072
|
alert('Please add value prop on Textarea component');
|
|
@@ -6827,7 +7113,7 @@ const Textarea = ({
|
|
|
6827
7113
|
style: {
|
|
6828
7114
|
display: labelDisplay ?? configStyles.TEXTAREA.label.display
|
|
6829
7115
|
}
|
|
6830
|
-
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default["default"].createElement("span", null, maxLength -
|
|
7116
|
+
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default["default"].createElement("span", null, maxLength - innerValue.length, " \u0576\u056B\u0577")), /*#__PURE__*/React__default["default"].createElement("textarea", {
|
|
6831
7117
|
style: {
|
|
6832
7118
|
width: '100%',
|
|
6833
7119
|
border: 'none',
|
|
@@ -6850,6 +7136,7 @@ const Textarea = ({
|
|
|
6850
7136
|
boxShadow: error ? errorColor ? `0 0 0 2px ${errorColor}` : configStyles.TEXTAREA.error.box.shadow : isFocus ? borderFocusColor ? `0 0 0 2px ${borderFocusColor}` : configStyles.TEXTAREA.box.colors.focus : isHover ? borderHoverColor ? `0 0 0 2px ${borderHoverColor}` : configStyles.TEXTAREA.box.colors.hover : boxShadow ? boxShadow : configStyles.INPUT.box.shadow,
|
|
6851
7137
|
resize: resize ? resize : configStyles.TEXTAREA.resize
|
|
6852
7138
|
},
|
|
7139
|
+
name: name,
|
|
6853
7140
|
value: innerValue,
|
|
6854
7141
|
disabled: disabled,
|
|
6855
7142
|
onBlur: handleBlur,
|
|
@@ -6889,6 +7176,7 @@ const Textarea = ({
|
|
|
6889
7176
|
};
|
|
6890
7177
|
Textarea.propTypes = {
|
|
6891
7178
|
size: PropTypes__default["default"].string,
|
|
7179
|
+
name: PropTypes__default["default"].string,
|
|
6892
7180
|
style: PropTypes__default["default"].string,
|
|
6893
7181
|
family: PropTypes__default["default"].string,
|
|
6894
7182
|
weight: PropTypes__default["default"].string,
|
|
@@ -6899,6 +7187,7 @@ Textarea.propTypes = {
|
|
|
6899
7187
|
radius: PropTypes__default["default"].string,
|
|
6900
7188
|
required: PropTypes__default["default"].bool,
|
|
6901
7189
|
disabled: PropTypes__default["default"].bool,
|
|
7190
|
+
onChange: PropTypes__default["default"].func,
|
|
6902
7191
|
padding: PropTypes__default["default"].string,
|
|
6903
7192
|
minWidth: PropTypes__default["default"].string,
|
|
6904
7193
|
maxWidth: PropTypes__default["default"].string,
|
|
@@ -6927,10 +7216,304 @@ Textarea.propTypes = {
|
|
|
6927
7216
|
borderFocusColor: PropTypes__default["default"].string,
|
|
6928
7217
|
borderHoverColor: PropTypes__default["default"].string,
|
|
6929
7218
|
labelMarginBottom: PropTypes__default["default"].string,
|
|
6930
|
-
onChange: PropTypes__default["default"].func.isRequired,
|
|
6931
7219
|
characterCountPosition: PropTypes__default["default"].oneOf(Object.values(PositionSide))
|
|
6932
7220
|
};
|
|
6933
7221
|
|
|
7222
|
+
const AccordionItem = ({
|
|
7223
|
+
item,
|
|
7224
|
+
open,
|
|
7225
|
+
index,
|
|
7226
|
+
onClick,
|
|
7227
|
+
openIcon,
|
|
7228
|
+
closeIcon,
|
|
7229
|
+
showIcons,
|
|
7230
|
+
className,
|
|
7231
|
+
titleAlign,
|
|
7232
|
+
multipleOpen,
|
|
7233
|
+
openHoverIcon,
|
|
7234
|
+
color,
|
|
7235
|
+
border,
|
|
7236
|
+
padding,
|
|
7237
|
+
fontSize,
|
|
7238
|
+
fontStyle,
|
|
7239
|
+
fontWeight,
|
|
7240
|
+
fontFamily,
|
|
7241
|
+
borderTop,
|
|
7242
|
+
borderLeft,
|
|
7243
|
+
hoverColor,
|
|
7244
|
+
borderRight,
|
|
7245
|
+
borderRadius,
|
|
7246
|
+
borderBottom,
|
|
7247
|
+
marginBottom,
|
|
7248
|
+
backgroundColor,
|
|
7249
|
+
backgroundHoverColor
|
|
7250
|
+
}) => {
|
|
7251
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
7252
|
+
const [isHover, setIsHover] = React.useState(false);
|
|
7253
|
+
const handleClick = () => {
|
|
7254
|
+
onClick(item, index);
|
|
7255
|
+
if (multipleOpen) {
|
|
7256
|
+
setIsOpen(() => !isOpen);
|
|
7257
|
+
}
|
|
7258
|
+
};
|
|
7259
|
+
const handleMouseEnter = () => {
|
|
7260
|
+
setIsHover(() => true);
|
|
7261
|
+
};
|
|
7262
|
+
const handleMouseLeave = () => {
|
|
7263
|
+
setIsHover(() => false);
|
|
7264
|
+
};
|
|
7265
|
+
React.useEffect(() => {
|
|
7266
|
+
setIsOpen(() => open);
|
|
7267
|
+
}, [open]);
|
|
7268
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7269
|
+
className: className,
|
|
7270
|
+
style: {
|
|
7271
|
+
marginBottom: marginBottom ? marginBottom : '0px'
|
|
7272
|
+
}
|
|
7273
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7274
|
+
onClick: handleClick,
|
|
7275
|
+
onMouseEnter: handleMouseEnter,
|
|
7276
|
+
onMouseLeave: handleMouseLeave,
|
|
7277
|
+
style: {
|
|
7278
|
+
display: 'flex',
|
|
7279
|
+
cursor: 'pointer',
|
|
7280
|
+
padding: padding,
|
|
7281
|
+
alignItems: 'center',
|
|
7282
|
+
borderRadius: borderRadius,
|
|
7283
|
+
borderTop: borderTop ? border : 'none',
|
|
7284
|
+
borderLeft: borderLeft ? border : 'none',
|
|
7285
|
+
borderRight: borderRight ? border : 'none',
|
|
7286
|
+
borderBottom: borderBottom ? border : 'none',
|
|
7287
|
+
justifyContent: showIcons ? 'space-between' : 'flex-start',
|
|
7288
|
+
backgroundColor: isHover ? backgroundHoverColor : backgroundColor
|
|
7289
|
+
}
|
|
7290
|
+
}, item.title && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7291
|
+
style: {
|
|
7292
|
+
width: '90%',
|
|
7293
|
+
margin: '0px',
|
|
7294
|
+
fontSize: fontSize,
|
|
7295
|
+
overflow: 'hidden',
|
|
7296
|
+
whiteSpace: 'nowrap',
|
|
7297
|
+
fontStyle: fontStyle,
|
|
7298
|
+
fontWeight: fontWeight,
|
|
7299
|
+
fontFamily: fontFamily,
|
|
7300
|
+
textOverflow: 'ellipsis',
|
|
7301
|
+
textAlign: titleAlign ? titleAlign : 'left',
|
|
7302
|
+
color: isOpen ? hoverColor : isHover ? hoverColor : color
|
|
7303
|
+
}
|
|
7304
|
+
}, item.title), showIcons && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7305
|
+
style: {
|
|
7306
|
+
display: 'flex',
|
|
7307
|
+
width: 'fit-content',
|
|
7308
|
+
height: 'fit-content',
|
|
7309
|
+
minWidth: '14px',
|
|
7310
|
+
minHeight: '14px',
|
|
7311
|
+
alignItems: 'center',
|
|
7312
|
+
justifyContent: 'center'
|
|
7313
|
+
}
|
|
7314
|
+
}, isOpen ? closeIcon : isHover ? openHoverIcon ? openHoverIcon : openIcon : openIcon)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7315
|
+
style: {
|
|
7316
|
+
overflow: 'hidden',
|
|
7317
|
+
height: isOpen ? 'auto' : '0px'
|
|
7318
|
+
}
|
|
7319
|
+
}, item.content ? item.content : ''));
|
|
7320
|
+
};
|
|
7321
|
+
AccordionItem.propTypes = {
|
|
7322
|
+
open: PropTypes__default["default"].bool
|
|
7323
|
+
};
|
|
7324
|
+
|
|
7325
|
+
const SvgGreenplus = ({
|
|
7326
|
+
title,
|
|
7327
|
+
titleId,
|
|
7328
|
+
...props
|
|
7329
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
7330
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7331
|
+
width: "1em",
|
|
7332
|
+
height: "1em",
|
|
7333
|
+
fill: "none",
|
|
7334
|
+
viewBox: "0 0 16 16",
|
|
7335
|
+
"aria-labelledby": titleId
|
|
7336
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
7337
|
+
id: titleId
|
|
7338
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
7339
|
+
stroke: "#009B8B",
|
|
7340
|
+
strokeLinecap: "round",
|
|
7341
|
+
strokeLinejoin: "round",
|
|
7342
|
+
strokeWidth: 1.6,
|
|
7343
|
+
d: "M8 1v14M1 8h14"
|
|
7344
|
+
}));
|
|
7345
|
+
|
|
7346
|
+
const SvgGreenminus = ({
|
|
7347
|
+
title,
|
|
7348
|
+
titleId,
|
|
7349
|
+
...props
|
|
7350
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
7351
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7352
|
+
width: "1em",
|
|
7353
|
+
height: "1em",
|
|
7354
|
+
fill: "none",
|
|
7355
|
+
viewBox: "0 0 16 2",
|
|
7356
|
+
"aria-labelledby": titleId
|
|
7357
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
7358
|
+
id: titleId
|
|
7359
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
7360
|
+
stroke: "#009B8B",
|
|
7361
|
+
strokeLinecap: "round",
|
|
7362
|
+
strokeLinejoin: "round",
|
|
7363
|
+
strokeWidth: 1.6,
|
|
7364
|
+
d: "M1 1h14"
|
|
7365
|
+
}));
|
|
7366
|
+
|
|
7367
|
+
var css_248z$3 = "";
|
|
7368
|
+
styleInject(css_248z$3);
|
|
7369
|
+
|
|
7370
|
+
const Accordion = ({
|
|
7371
|
+
data,
|
|
7372
|
+
click,
|
|
7373
|
+
openIcon,
|
|
7374
|
+
closeIcon,
|
|
7375
|
+
className,
|
|
7376
|
+
showIcons,
|
|
7377
|
+
titleAlign,
|
|
7378
|
+
multipleOpen,
|
|
7379
|
+
openHoverIcon,
|
|
7380
|
+
borderTop,
|
|
7381
|
+
borderLeft,
|
|
7382
|
+
borderRight,
|
|
7383
|
+
borderColor,
|
|
7384
|
+
borderWidth,
|
|
7385
|
+
borderStyle,
|
|
7386
|
+
borderBottom,
|
|
7387
|
+
borderRadius,
|
|
7388
|
+
fontSize,
|
|
7389
|
+
fontStyle,
|
|
7390
|
+
fontWeight,
|
|
7391
|
+
fontFamily,
|
|
7392
|
+
color,
|
|
7393
|
+
padding,
|
|
7394
|
+
hoverColor,
|
|
7395
|
+
marginBottom,
|
|
7396
|
+
backgroundColor,
|
|
7397
|
+
backgroundHoverColor
|
|
7398
|
+
}) => {
|
|
7399
|
+
const [openIndex, setOpenIndex] = React.useState(-1);
|
|
7400
|
+
const [classProps, setClassProps] = React.useState({});
|
|
7401
|
+
const [configStyles, setConfigStyles] = React.useState({});
|
|
7402
|
+
const handleClick = (item, index) => {
|
|
7403
|
+
if (click) {
|
|
7404
|
+
click(item);
|
|
7405
|
+
}
|
|
7406
|
+
if (!multipleOpen) {
|
|
7407
|
+
setOpenIndex(() => openIndex === index ? -1 : index);
|
|
7408
|
+
}
|
|
7409
|
+
};
|
|
7410
|
+
React.useEffect(() => {
|
|
7411
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.BUTTON.className));
|
|
7412
|
+
}, [className]);
|
|
7413
|
+
React.useEffect(() => {
|
|
7414
|
+
configStylesPromise.then(data => {
|
|
7415
|
+
setClassProps(() => classnames__default["default"](className ?? data.BUTTON.className));
|
|
7416
|
+
setConfigStyles(() => {
|
|
7417
|
+
return {
|
|
7418
|
+
...data
|
|
7419
|
+
};
|
|
7420
|
+
});
|
|
7421
|
+
}, error => {
|
|
7422
|
+
console.error(error);
|
|
7423
|
+
});
|
|
7424
|
+
}, []);
|
|
7425
|
+
return configStyles.ACCORDION && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7426
|
+
style: {
|
|
7427
|
+
width: '100%'
|
|
7428
|
+
}
|
|
7429
|
+
}, data && data.length ? data.map((item, index) => {
|
|
7430
|
+
return /*#__PURE__*/React__default["default"].createElement(AccordionItem, {
|
|
7431
|
+
item: item,
|
|
7432
|
+
index: index,
|
|
7433
|
+
onClick: handleClick,
|
|
7434
|
+
titleAlign: titleAlign,
|
|
7435
|
+
multipleOpen: multipleOpen,
|
|
7436
|
+
key: `${item.title}__TUI__${index}`,
|
|
7437
|
+
open: openIndex === index ? true : false,
|
|
7438
|
+
showIcons: showIcons ?? configStyles.ACCORDION.showIcons,
|
|
7439
|
+
openIcon: openIcon ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
7440
|
+
src: openIcon,
|
|
7441
|
+
alt: "open icon"
|
|
7442
|
+
}) : configStyles.ACCORDION.icon.open ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
7443
|
+
src: configStyles.ACCORDION.icon.open,
|
|
7444
|
+
alt: "open icon"
|
|
7445
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgGreenplus, null),
|
|
7446
|
+
openHoverIcon: openHoverIcon ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
7447
|
+
src: openHoverIcon,
|
|
7448
|
+
alt: "open icon"
|
|
7449
|
+
}) : configStyles.ACCORDION.icon.openHover ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
7450
|
+
src: configStyles.ACCORDION.icon.openHover,
|
|
7451
|
+
alt: "open icon"
|
|
7452
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgGreenplus, null),
|
|
7453
|
+
closeIcon: closeIcon ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
7454
|
+
src: closeIcon,
|
|
7455
|
+
alt: "close icon"
|
|
7456
|
+
}) : configStyles.ACCORDION.icon.close ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
7457
|
+
src: configStyles.ACCORDION.icon.close,
|
|
7458
|
+
alt: "close icon"
|
|
7459
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgGreenminus, null),
|
|
7460
|
+
className: classProps,
|
|
7461
|
+
color: color ?? configStyles.ACCORDION.color,
|
|
7462
|
+
padding: padding ?? configStyles.ACCORDION.padding,
|
|
7463
|
+
fontSize: fontSize ?? configStyles.ACCORDION.font.size,
|
|
7464
|
+
fontStyle: fontStyle ?? configStyles.ACCORDION.font.style,
|
|
7465
|
+
fontWeight: fontWeight ?? configStyles.ACCORDION.font.weight,
|
|
7466
|
+
fontFamily: fontFamily ?? configStyles.ACCORDION.font.family,
|
|
7467
|
+
hoverColor: hoverColor ?? configStyles.ACCORDION.colors.hover,
|
|
7468
|
+
marginBottom: marginBottom ?? configStyles.ACCORDION.marginBottom,
|
|
7469
|
+
border: `
|
|
7470
|
+
${borderWidth ?? configStyles.ACCORDION.border.width}
|
|
7471
|
+
${borderStyle ?? configStyles.ACCORDION.border.style}
|
|
7472
|
+
${openIndex === index ? 'transparent' : borderColor ?? configStyles.ACCORDION.border.color}
|
|
7473
|
+
`,
|
|
7474
|
+
borderTop: borderTop ?? configStyles.ACCORDION.border.top,
|
|
7475
|
+
borderLeft: borderLeft ?? configStyles.ACCORDION.border.left,
|
|
7476
|
+
borderRight: borderRight ?? configStyles.ACCORDION.border.right,
|
|
7477
|
+
borderBottom: borderBottom ?? configStyles.ACCORDION.border.bottom,
|
|
7478
|
+
borderRadius: borderRadius ?? configStyles.ACCORDION.border.radius,
|
|
7479
|
+
backgroundColor: backgroundColor ?? configStyles.ACCORDION.colors.background,
|
|
7480
|
+
backgroundHoverColor: backgroundHoverColor ?? configStyles.ACCORDION.colors.backgroundHover
|
|
7481
|
+
});
|
|
7482
|
+
}) : '');
|
|
7483
|
+
};
|
|
7484
|
+
Accordion.propTypes = {
|
|
7485
|
+
data: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
7486
|
+
title: PropTypes__default["default"].string,
|
|
7487
|
+
content: PropTypes__default["default"].element
|
|
7488
|
+
})),
|
|
7489
|
+
click: PropTypes__default["default"].func,
|
|
7490
|
+
showIcons: PropTypes__default["default"].bool,
|
|
7491
|
+
multipleOpen: PropTypes__default["default"].bool,
|
|
7492
|
+
color: PropTypes__default["default"].string,
|
|
7493
|
+
hoverColor: PropTypes__default["default"].string,
|
|
7494
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
7495
|
+
backgroundHoverColor: PropTypes__default["default"].string,
|
|
7496
|
+
titleAlign: PropTypes__default["default"].oneOf(['left', 'center', 'right']),
|
|
7497
|
+
padding: PropTypes__default["default"].string,
|
|
7498
|
+
openIcon: PropTypes__default["default"].string,
|
|
7499
|
+
className: PropTypes__default["default"].string,
|
|
7500
|
+
closeIcon: PropTypes__default["default"].string,
|
|
7501
|
+
marginBottom: PropTypes__default["default"].string,
|
|
7502
|
+
openHoverIcon: PropTypes__default["default"].string,
|
|
7503
|
+
borderTop: PropTypes__default["default"].bool,
|
|
7504
|
+
borderLeft: PropTypes__default["default"].bool,
|
|
7505
|
+
borderRight: PropTypes__default["default"].bool,
|
|
7506
|
+
borderBottom: PropTypes__default["default"].bool,
|
|
7507
|
+
borderColor: PropTypes__default["default"].string,
|
|
7508
|
+
borderWidth: PropTypes__default["default"].string,
|
|
7509
|
+
borderStyle: PropTypes__default["default"].string,
|
|
7510
|
+
borderRadius: PropTypes__default["default"].string,
|
|
7511
|
+
fontSize: PropTypes__default["default"].string,
|
|
7512
|
+
fontStyle: PropTypes__default["default"].string,
|
|
7513
|
+
fontWeight: PropTypes__default["default"].number,
|
|
7514
|
+
fontFamily: PropTypes__default["default"].string
|
|
7515
|
+
};
|
|
7516
|
+
|
|
6934
7517
|
const Swipe = ({
|
|
6935
7518
|
id,
|
|
6936
7519
|
title,
|
|
@@ -6952,8 +7535,8 @@ const Swipe = ({
|
|
|
6952
7535
|
} = props || {};
|
|
6953
7536
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6954
7537
|
style: {
|
|
6955
|
-
width:
|
|
6956
|
-
height:
|
|
7538
|
+
width: '100%',
|
|
7539
|
+
height: '100%'
|
|
6957
7540
|
}
|
|
6958
7541
|
}, (title || showCloseIcon) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6959
7542
|
style: {
|
|
@@ -7022,11 +7605,11 @@ const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
|
|
|
7022
7605
|
borderRadius,
|
|
7023
7606
|
backgroundColor
|
|
7024
7607
|
} = props || {};
|
|
7025
|
-
swipeBlock.style.position = '
|
|
7608
|
+
swipeBlock.style.position = 'absolute';
|
|
7026
7609
|
swipeBlock.style.zIndex = swipeCount;
|
|
7027
7610
|
swipeBlock.style.backgroundColor = backgroundColor ?? innerConfigStyles.SWIPEMODAL.colors.background;
|
|
7028
7611
|
swipeBlock.style.width = position === 'left' || position === 'right' ? width ?? innerConfigStyles.SWIPEMODAL.width : '100%';
|
|
7029
|
-
swipeBlock.style.height = position === 'top' || position === 'bottom' ? height ?? innerConfigStyles.SWIPEMODAL.height : '
|
|
7612
|
+
swipeBlock.style.height = position === 'top' || position === 'bottom' ? height ?? innerConfigStyles.SWIPEMODAL.height : '100%';
|
|
7030
7613
|
swipeBlock.style.borderTopLeftRadius = position === 'right' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
7031
7614
|
swipeBlock.style.borderTopRightRadius = position === 'left' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
7032
7615
|
swipeBlock.style.borderBottomLeftRadius = position === 'right' || position === 'top' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
@@ -7060,26 +7643,24 @@ const createSwipe = (id, title, child, props, swipable) => {
|
|
|
7060
7643
|
};
|
|
7061
7644
|
createElem(id, title, child, props, swipeBlock, innerConfigStyles);
|
|
7062
7645
|
if (!swipable) {
|
|
7063
|
-
const widthParent = hasOwnerProperty(props, 'withParent') ? props.withParent === true ? true : false : innerConfigStyles.SWIPEMODAL.withParent;
|
|
7064
7646
|
swipable = document.createElement('div');
|
|
7065
7647
|
swipable.setAttribute('id', 'swipable');
|
|
7066
|
-
swipable.style.position = '
|
|
7648
|
+
swipable.style.position = 'absolute';
|
|
7067
7649
|
swipable.style.top = '0px';
|
|
7068
7650
|
swipable.style.left = '0px';
|
|
7069
7651
|
swipable.style.zIndex = 99999;
|
|
7070
7652
|
swipable.style.maxWidth = '100%';
|
|
7071
7653
|
swipable.style.maxHeight = '100vh';
|
|
7072
|
-
swipable.style.
|
|
7073
|
-
swipable.style.
|
|
7074
|
-
swipable.style.height = widthParent ? '100vh' : '0px';
|
|
7654
|
+
swipable.style.width = '100%';
|
|
7655
|
+
swipable.style.height = '100%';
|
|
7075
7656
|
swipable.style.backgroundColor = props?.parent?.backgroundColor ?? innerConfigStyles.SWIPEMODAL.parent.colors.background;
|
|
7076
|
-
swipable.classList.add(styles$2['visible']);
|
|
7077
7657
|
if (props.outSideClose || innerConfigStyles.SWIPEMODAL.outSideClose) {
|
|
7078
7658
|
swipable.addEventListener('click', function () {
|
|
7079
7659
|
hasOwnerProperty(props, 'callClose') && {}.toString.call(props.callClose) === '[object Function]' ? props.callClose() : '';
|
|
7080
7660
|
});
|
|
7081
7661
|
}
|
|
7082
|
-
document.
|
|
7662
|
+
const SwipifyBlock = document.getElementById('swipify_tui');
|
|
7663
|
+
SwipifyBlock.appendChild(swipable);
|
|
7083
7664
|
}
|
|
7084
7665
|
swipable.appendChild(swipeBlock);
|
|
7085
7666
|
}, error => {
|
|
@@ -7128,7 +7709,6 @@ const swipe = {
|
|
|
7128
7709
|
close: id => {
|
|
7129
7710
|
if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
|
|
7130
7711
|
alert('Please pass valid id prop (string / number) when call swipe.close function');
|
|
7131
|
-
return;
|
|
7132
7712
|
}
|
|
7133
7713
|
let swipable = document.getElementById('swipable');
|
|
7134
7714
|
swipeCount -= 1;
|
|
@@ -7143,7 +7723,8 @@ const swipe = {
|
|
|
7143
7723
|
if (swipeCount === 0 && swipable) {
|
|
7144
7724
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
7145
7725
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
7146
|
-
document.
|
|
7726
|
+
const SwipifyBlock = document.getElementById('swipify_tui');
|
|
7727
|
+
SwipifyBlock.removeChild(swipable);
|
|
7147
7728
|
}
|
|
7148
7729
|
}, 200);
|
|
7149
7730
|
} else {
|
|
@@ -7151,14 +7732,38 @@ const swipe = {
|
|
|
7151
7732
|
if (swipeCount === 0 && swipable) {
|
|
7152
7733
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
7153
7734
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
7154
|
-
document.
|
|
7735
|
+
const SwipifyBlock = document.getElementById('swipify_tui');
|
|
7736
|
+
SwipifyBlock.removeChild(swipable);
|
|
7155
7737
|
}
|
|
7156
7738
|
}
|
|
7739
|
+
} else {
|
|
7740
|
+
if (swipeCount === 0 && swipable) {
|
|
7741
|
+
const SwipifyBlock = document.getElementById('swipify_tui');
|
|
7742
|
+
SwipifyBlock.removeChild(swipable);
|
|
7743
|
+
}
|
|
7157
7744
|
}
|
|
7158
7745
|
}
|
|
7159
7746
|
};
|
|
7160
7747
|
const SwipeModal = () => {
|
|
7161
|
-
|
|
7748
|
+
const ref = React.useRef(null);
|
|
7749
|
+
React.useEffect(() => {
|
|
7750
|
+
const parentSize = ref.current.parentNode.style.height;
|
|
7751
|
+
if (Number(parentSize.replace(/\D/g, '')) > 0) {
|
|
7752
|
+
ref.current.style.height = '100%';
|
|
7753
|
+
} else {
|
|
7754
|
+
ref.current.style.height = '100vh';
|
|
7755
|
+
}
|
|
7756
|
+
}, [ref]);
|
|
7757
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7758
|
+
ref: ref,
|
|
7759
|
+
id: "swipify_tui",
|
|
7760
|
+
style: {
|
|
7761
|
+
position: 'relative',
|
|
7762
|
+
width: '100%',
|
|
7763
|
+
overflow: 'hidden',
|
|
7764
|
+
zIndex: 1
|
|
7765
|
+
}
|
|
7766
|
+
});
|
|
7162
7767
|
};
|
|
7163
7768
|
|
|
7164
7769
|
const TypographyType = {
|
|
@@ -7277,13 +7882,13 @@ const range = (start, end) => {
|
|
|
7277
7882
|
}, (_, idx) => idx + start);
|
|
7278
7883
|
};
|
|
7279
7884
|
const PaginationRange = ({
|
|
7280
|
-
|
|
7885
|
+
innerOffset,
|
|
7281
7886
|
currentTotalCount,
|
|
7282
7887
|
currentPageNumber
|
|
7283
7888
|
}) => {
|
|
7284
7889
|
const paginationRange = React.useMemo(() => {
|
|
7285
7890
|
const firstPageIndex = 1;
|
|
7286
|
-
const totalPageCount = Math.ceil(currentTotalCount /
|
|
7891
|
+
const totalPageCount = Math.ceil(currentTotalCount / innerOffset);
|
|
7287
7892
|
const lastPageIndex = totalPageCount;
|
|
7288
7893
|
if (7 >= totalPageCount) {
|
|
7289
7894
|
return range(1, totalPageCount);
|
|
@@ -7306,14 +7911,10 @@ const PaginationRange = ({
|
|
|
7306
7911
|
} else {
|
|
7307
7912
|
return range(firstPageIndex, totalPageCount);
|
|
7308
7913
|
}
|
|
7309
|
-
}, [currentTotalCount,
|
|
7914
|
+
}, [currentTotalCount, innerOffset, currentPageNumber]);
|
|
7310
7915
|
return paginationRange;
|
|
7311
7916
|
};
|
|
7312
7917
|
|
|
7313
|
-
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{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:13px;line-height:16px;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}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}";
|
|
7314
|
-
var styles$1 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","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","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
|
|
7315
|
-
styleInject(css_248z$1);
|
|
7316
|
-
|
|
7317
7918
|
const SvgDots = ({
|
|
7318
7919
|
title,
|
|
7319
7920
|
titleId,
|
|
@@ -7352,57 +7953,51 @@ const SvgNextarrow = ({
|
|
|
7352
7953
|
fill: fillColor ? fillColor : '#3C393E'
|
|
7353
7954
|
}));
|
|
7354
7955
|
|
|
7956
|
+
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}";
|
|
7957
|
+
var styles$1 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","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","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8","show-offset-block":"pagination-module_show-offset-block__ksPGm"};
|
|
7958
|
+
styleInject(css_248z$1);
|
|
7959
|
+
|
|
7355
7960
|
const Pagination = ({
|
|
7356
7961
|
goTo,
|
|
7357
|
-
offset
|
|
7962
|
+
offset,
|
|
7358
7963
|
onChange,
|
|
7359
7964
|
className,
|
|
7965
|
+
getOffset,
|
|
7360
7966
|
totalCount,
|
|
7361
|
-
|
|
7967
|
+
showOffset,
|
|
7968
|
+
currentPage,
|
|
7969
|
+
offsetCounts,
|
|
7970
|
+
color,
|
|
7971
|
+
width,
|
|
7972
|
+
height,
|
|
7973
|
+
fontSize,
|
|
7974
|
+
fontStyle,
|
|
7975
|
+
fontWeight,
|
|
7976
|
+
fontFamily,
|
|
7977
|
+
lineHeight,
|
|
7978
|
+
activeColor,
|
|
7979
|
+
hoverColor,
|
|
7980
|
+
backgroundColor,
|
|
7981
|
+
hoverBackgroundColor,
|
|
7982
|
+
activeBackgroundColor,
|
|
7983
|
+
borderColor,
|
|
7984
|
+
borderWidth,
|
|
7985
|
+
borderRadius
|
|
7362
7986
|
}) => {
|
|
7363
7987
|
const [inpVal, setInpVal] = React.useState('');
|
|
7364
7988
|
const [error, setError] = React.useState(false);
|
|
7989
|
+
const [isHover, setIsHover] = React.useState(false);
|
|
7365
7990
|
const [classProps, setClassProps] = React.useState({});
|
|
7991
|
+
const [offsetArgs, setOffsetArgs] = React.useState({});
|
|
7992
|
+
const [innerOffset, setInnerOffset] = React.useState(2);
|
|
7366
7993
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
7994
|
+
const [innerShowOffset, setInnerShowOffset] = React.useState(false);
|
|
7367
7995
|
const [currentPageNumber, setCurrentPage] = React.useState(currentPage);
|
|
7368
7996
|
const [currentTotalCount, setcurrentTotalCount] = React.useState(totalCount);
|
|
7369
|
-
React.useEffect(() => {
|
|
7370
|
-
configStylesPromise.then(data => {
|
|
7371
|
-
setClassProps(() => classnames__default["default"](
|
|
7372
|
-
// TODO: check and remove pagination-bar-rem class
|
|
7373
|
-
styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
|
|
7374
|
-
setConfigStyles(() => {
|
|
7375
|
-
return {
|
|
7376
|
-
...data
|
|
7377
|
-
};
|
|
7378
|
-
});
|
|
7379
|
-
}, error => {
|
|
7380
|
-
console.error(error);
|
|
7381
|
-
});
|
|
7382
|
-
}, []);
|
|
7383
|
-
React.useEffect(() => {
|
|
7384
|
-
className && setClassProps(() => classnames__default["default"](
|
|
7385
|
-
// TODO: check and remove pagination-bar-rem class
|
|
7386
|
-
styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
|
|
7387
|
-
}, [className]);
|
|
7388
|
-
React.useEffect(() => {
|
|
7389
|
-
setcurrentTotalCount(totalCount);
|
|
7390
|
-
}, [totalCount]);
|
|
7391
|
-
React.useEffect(() => {
|
|
7392
|
-
setCurrentPage(currentPage);
|
|
7393
|
-
}, [currentPage]);
|
|
7394
|
-
const onPageChange = page => {
|
|
7395
|
-
if (page > 0) {
|
|
7396
|
-
setCurrentPage(page);
|
|
7397
|
-
}
|
|
7398
|
-
};
|
|
7399
|
-
React.useEffect(() => {
|
|
7400
|
-
onChange(currentPageNumber);
|
|
7401
|
-
}, [currentPageNumber]);
|
|
7402
7997
|
const paginationRange = PaginationRange({
|
|
7403
7998
|
currentPageNumber,
|
|
7404
7999
|
currentTotalCount,
|
|
7405
|
-
|
|
8000
|
+
innerOffset
|
|
7406
8001
|
});
|
|
7407
8002
|
if (currentPageNumber === 0 || paginationRange?.length < 2) {
|
|
7408
8003
|
return null;
|
|
@@ -7444,16 +8039,88 @@ const Pagination = ({
|
|
|
7444
8039
|
if (inpVal <= 1) {
|
|
7445
8040
|
setInpVal(1);
|
|
7446
8041
|
onPageChange(1);
|
|
7447
|
-
} else if (inpVal >= totalCount /
|
|
7448
|
-
setInpVal(Math.ceil(totalCount /
|
|
7449
|
-
onPageChange(Math.ceil(totalCount /
|
|
8042
|
+
} else if (inpVal >= totalCount / innerOffset) {
|
|
8043
|
+
setInpVal(Math.ceil(totalCount / innerOffset));
|
|
8044
|
+
onPageChange(Math.ceil(totalCount / innerOffset));
|
|
7450
8045
|
} else {
|
|
7451
8046
|
onPageChange(inpVal);
|
|
7452
8047
|
}
|
|
7453
8048
|
}
|
|
7454
8049
|
}
|
|
7455
8050
|
};
|
|
8051
|
+
const handleChangeSelect = e => {
|
|
8052
|
+
setInnerOffset(() => {
|
|
8053
|
+
return parseInt(e.value.split('/')[0].trim());
|
|
8054
|
+
});
|
|
8055
|
+
if (getOffset) {
|
|
8056
|
+
getOffset(parseInt(e.value.split('/')[0].trim()));
|
|
8057
|
+
}
|
|
8058
|
+
};
|
|
8059
|
+
const handleMouseEnter = hoverIndex => {
|
|
8060
|
+
setIsHover(hoverIndex);
|
|
8061
|
+
};
|
|
8062
|
+
const handleMouseLeave = () => {
|
|
8063
|
+
setIsHover(false);
|
|
8064
|
+
};
|
|
8065
|
+
const onPageChange = page => {
|
|
8066
|
+
if (page > 0) {
|
|
8067
|
+
setCurrentPage(page);
|
|
8068
|
+
}
|
|
8069
|
+
};
|
|
7456
8070
|
let lastPage = paginationRange[paginationRange.length - 1];
|
|
8071
|
+
React.useEffect(() => {
|
|
8072
|
+
configStylesPromise.then(data => {
|
|
8073
|
+
setClassProps(() => classnames__default["default"](
|
|
8074
|
+
// TODO: check and remove pagination-bar-rem class
|
|
8075
|
+
styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
|
|
8076
|
+
setConfigStyles(() => {
|
|
8077
|
+
return {
|
|
8078
|
+
...data
|
|
8079
|
+
};
|
|
8080
|
+
});
|
|
8081
|
+
}, error => {
|
|
8082
|
+
console.error(error);
|
|
8083
|
+
});
|
|
8084
|
+
}, []);
|
|
8085
|
+
React.useEffect(() => {
|
|
8086
|
+
setInnerShowOffset(() => showOffset);
|
|
8087
|
+
if (showOffset && offsetCounts && offsetCounts.length) {
|
|
8088
|
+
const newOptions = offsetCounts.map((innerItem, innerIndex) => {
|
|
8089
|
+
return {
|
|
8090
|
+
item: innerIndex,
|
|
8091
|
+
value: `${innerItem} / Էջ `
|
|
8092
|
+
};
|
|
8093
|
+
});
|
|
8094
|
+
setOffsetArgs(() => {
|
|
8095
|
+
return {
|
|
8096
|
+
showCloseIcon: false,
|
|
8097
|
+
options: newOptions,
|
|
8098
|
+
onChange: handleChangeSelect,
|
|
8099
|
+
defaultOption: `${newOptions[0].value}`,
|
|
8100
|
+
keyNames: {
|
|
8101
|
+
name: 'value',
|
|
8102
|
+
id: 'item'
|
|
8103
|
+
}
|
|
8104
|
+
};
|
|
8105
|
+
});
|
|
8106
|
+
setInnerOffset(() => offsetCounts[0]);
|
|
8107
|
+
}
|
|
8108
|
+
}, [offsetCounts, showOffset]);
|
|
8109
|
+
React.useEffect(() => {
|
|
8110
|
+
className && setClassProps(() => classnames__default["default"](
|
|
8111
|
+
// TODO: check and remove pagination-bar-rem class
|
|
8112
|
+
styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
|
|
8113
|
+
}, [className]);
|
|
8114
|
+
React.useEffect(() => {
|
|
8115
|
+
setcurrentTotalCount(totalCount);
|
|
8116
|
+
setInnerOffset(() => offset > totalCount ? totalCount : offset);
|
|
8117
|
+
}, [totalCount, offset]);
|
|
8118
|
+
React.useEffect(() => {
|
|
8119
|
+
setCurrentPage(currentPage);
|
|
8120
|
+
}, [currentPage]);
|
|
8121
|
+
React.useEffect(() => {
|
|
8122
|
+
onChange(currentPageNumber);
|
|
8123
|
+
}, [currentPageNumber]);
|
|
7457
8124
|
return configStyles.PAGINATION && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7458
8125
|
style: {
|
|
7459
8126
|
display: 'flex',
|
|
@@ -7464,6 +8131,20 @@ const Pagination = ({
|
|
|
7464
8131
|
className: classProps
|
|
7465
8132
|
}, /*#__PURE__*/React__default["default"].createElement("ul", null, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7466
8133
|
style: {
|
|
8134
|
+
width: width ?? configStyles.PAGINATION.width,
|
|
8135
|
+
height: height ?? configStyles.PAGINATION.height,
|
|
8136
|
+
fontSize: fontSize ?? configStyles.PAGINATION.font.size,
|
|
8137
|
+
fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
|
|
8138
|
+
fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
|
|
8139
|
+
fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
|
|
8140
|
+
lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
|
|
8141
|
+
backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
|
|
8142
|
+
boxShadow: `
|
|
8143
|
+
0 0 0
|
|
8144
|
+
${borderWidth ?? configStyles.PAGINATION.border.width}
|
|
8145
|
+
${borderColor ?? configStyles.PAGINATION.border.color}
|
|
8146
|
+
`,
|
|
8147
|
+
borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius,
|
|
7467
8148
|
transform: 'rotate(180deg)'
|
|
7468
8149
|
},
|
|
7469
8150
|
onClick: onPrevious,
|
|
@@ -7474,7 +8155,17 @@ const Pagination = ({
|
|
|
7474
8155
|
let currentPageIndex = paginationRange.indexOf(currentPageNumber);
|
|
7475
8156
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
7476
8157
|
key: id,
|
|
7477
|
-
className: classnames__default["default"](`${styles$1['pagination-jump-next']} pagination-jump-next-rem
|
|
8158
|
+
className: classnames__default["default"](`${styles$1['pagination-jump-next']} pagination-jump-next-rem`),
|
|
8159
|
+
style: {
|
|
8160
|
+
width: width ?? configStyles.PAGINATION.width,
|
|
8161
|
+
height: height ?? configStyles.PAGINATION.height,
|
|
8162
|
+
boxShadow: `
|
|
8163
|
+
0 0 0
|
|
8164
|
+
${borderWidth ?? configStyles.PAGINATION.border.width}
|
|
8165
|
+
${borderColor ?? configStyles.PAGINATION.border.color}
|
|
8166
|
+
`,
|
|
8167
|
+
borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
|
|
8168
|
+
},
|
|
7478
8169
|
onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
|
|
7479
8170
|
disabled: currentPageIndex === 0 ? true : false
|
|
7480
8171
|
}, id < currentPageIndex ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -7493,43 +8184,144 @@ const Pagination = ({
|
|
|
7493
8184
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
7494
8185
|
onClick: () => onPageChange(pageNumber),
|
|
7495
8186
|
key: id,
|
|
7496
|
-
className: classnames__default["default"](`${
|
|
8187
|
+
className: classnames__default["default"](`${styles$1['pagination-item']} pagination-item-rem`),
|
|
8188
|
+
onMouseEnter: () => handleMouseEnter(id),
|
|
8189
|
+
onMouseLeave: () => handleMouseLeave(),
|
|
8190
|
+
style: {
|
|
8191
|
+
width: width ?? configStyles.PAGINATION.width,
|
|
8192
|
+
height: height ?? configStyles.PAGINATION.height,
|
|
8193
|
+
fontSize: fontSize ?? configStyles.PAGINATION.font.size,
|
|
8194
|
+
fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
|
|
8195
|
+
fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
|
|
8196
|
+
fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
|
|
8197
|
+
lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
|
|
8198
|
+
color: `
|
|
8199
|
+
${pageNumber === currentPageNumber ? activeColor ?? configStyles.PAGINATION.colors.active : isHover === id ? hoverColor ?? configStyles.PAGINATION.colors.hover : color ?? configStyles.PAGINATION.color}
|
|
8200
|
+
`,
|
|
8201
|
+
backgroundColor: `
|
|
8202
|
+
${pageNumber === currentPageNumber ? activeBackgroundColor ?? configStyles.PAGINATION.colors.activeBackground : isHover === id ? hoverBackgroundColor ?? configStyles.PAGINATION.colors.hoverBackground : backgroundColor ?? configStyles.PAGINATION.colors.background}
|
|
8203
|
+
`,
|
|
8204
|
+
boxShadow: `
|
|
8205
|
+
0 0 0
|
|
8206
|
+
${borderWidth ?? configStyles.PAGINATION.border.width}
|
|
8207
|
+
${borderColor ?? configStyles.PAGINATION.border.color}
|
|
8208
|
+
`,
|
|
8209
|
+
borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
|
|
8210
|
+
}
|
|
7497
8211
|
}, pageNumber);
|
|
7498
8212
|
}), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
7499
8213
|
onClick: onNext,
|
|
7500
8214
|
disabled: currentPageNumber === lastPage ? true : false,
|
|
7501
|
-
className: `${styles$1['pagination-btn']} pagination-btn-rem
|
|
7502
|
-
|
|
8215
|
+
className: `${styles$1['pagination-btn']} pagination-btn-rem`,
|
|
8216
|
+
style: {
|
|
8217
|
+
width: width ?? configStyles.PAGINATION.width,
|
|
8218
|
+
height: height ?? configStyles.PAGINATION.height,
|
|
8219
|
+
fontSize: fontSize ?? configStyles.PAGINATION.font.size,
|
|
8220
|
+
fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
|
|
8221
|
+
fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
|
|
8222
|
+
fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
|
|
8223
|
+
lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
|
|
8224
|
+
backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
|
|
8225
|
+
boxShadow: `
|
|
8226
|
+
0 0 0
|
|
8227
|
+
${borderWidth ?? configStyles.PAGINATION.border.width}
|
|
8228
|
+
${borderColor ?? configStyles.PAGINATION.border.color}
|
|
8229
|
+
`,
|
|
8230
|
+
borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
|
|
8231
|
+
}
|
|
8232
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgNextarrow, null))), innerShowOffset && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8233
|
+
className: "show-offset-block",
|
|
8234
|
+
style: {
|
|
8235
|
+
width: '91px',
|
|
8236
|
+
height: '34px',
|
|
8237
|
+
marginLeft: '10px',
|
|
8238
|
+
marginRight: '3px'
|
|
8239
|
+
}
|
|
8240
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select, _extends({
|
|
8241
|
+
insidePagination: true,
|
|
8242
|
+
selectedMinHeight: "34px",
|
|
8243
|
+
boxShadow: `
|
|
8244
|
+
0 0 0
|
|
8245
|
+
${borderWidth ?? configStyles.PAGINATION.border.width}
|
|
8246
|
+
${borderColor ?? configStyles.PAGINATION.border.color}
|
|
8247
|
+
`,
|
|
8248
|
+
boxShadowHover: `
|
|
8249
|
+
0 0 0
|
|
8250
|
+
${borderWidth ?? configStyles.PAGINATION.border.width}
|
|
8251
|
+
${borderColor ?? configStyles.PAGINATION.border.color}
|
|
8252
|
+
`,
|
|
8253
|
+
selectedFontSize: fontSize ?? configStyles.PAGINATION.font.size,
|
|
8254
|
+
selectedFontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
|
|
8255
|
+
selectedLineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
|
|
8256
|
+
selectedFontFamily: fontWeight ?? configStyles.PAGINATION.font.weight,
|
|
8257
|
+
selectedFontWeight: fontFamily ?? configStyles.PAGINATION.font.family,
|
|
8258
|
+
optionItemFontSize: fontSize ?? configStyles.PAGINATION.font.size,
|
|
8259
|
+
optionItemFontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
|
|
8260
|
+
optionItemLineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
|
|
8261
|
+
optionItemFontFamily: fontWeight ?? configStyles.PAGINATION.font.weight,
|
|
8262
|
+
optionItemFontWeight: fontFamily ?? configStyles.PAGINATION.font.family
|
|
8263
|
+
}, offsetArgs))), goTo && /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
7503
8264
|
onKeyDown: handleKeyDown,
|
|
7504
8265
|
onInput: handleChangeInput,
|
|
7505
8266
|
type: "number",
|
|
7506
8267
|
style: {
|
|
7507
|
-
width: '
|
|
7508
|
-
|
|
8268
|
+
width: '55px',
|
|
8269
|
+
border: 'none',
|
|
7509
8270
|
outline: 'none',
|
|
7510
|
-
color: '#3C393E',
|
|
7511
|
-
fontSize: '13px',
|
|
7512
8271
|
margin: '0px 6px',
|
|
7513
|
-
fontWeight: '500',
|
|
7514
8272
|
textAlign: 'center',
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
8273
|
+
color: color ?? configStyles.PAGINATION.color,
|
|
8274
|
+
height: height ?? configStyles.PAGINATION.height,
|
|
8275
|
+
fontSize: fontSize ?? configStyles.PAGINATION.font.size,
|
|
8276
|
+
fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
|
|
8277
|
+
fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
|
|
8278
|
+
fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
|
|
8279
|
+
lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
|
|
8280
|
+
backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
|
|
8281
|
+
boxShadow: `
|
|
8282
|
+
0 0 0
|
|
8283
|
+
${borderWidth ?? configStyles.PAGINATION.border.width}
|
|
8284
|
+
${borderColor ?? configStyles.PAGINATION.border.color}
|
|
8285
|
+
`,
|
|
8286
|
+
borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
|
|
7518
8287
|
},
|
|
7519
8288
|
value: inpVal
|
|
7520
8289
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7521
8290
|
style: {
|
|
7522
|
-
color:
|
|
7523
|
-
fontSize:
|
|
8291
|
+
color: color ?? configStyles.PAGINATION.color,
|
|
8292
|
+
fontSize: fontSize ?? configStyles.PAGINATION.font.size,
|
|
8293
|
+
fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
|
|
8294
|
+
fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
|
|
8295
|
+
fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
|
|
8296
|
+
lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight
|
|
7524
8297
|
}
|
|
7525
8298
|
}, "\u0537\u057B")));
|
|
7526
8299
|
};
|
|
7527
8300
|
Pagination.propTypes = {
|
|
7528
8301
|
goTo: PropTypes__default["default"].bool,
|
|
7529
8302
|
offset: PropTypes__default["default"].number,
|
|
7530
|
-
|
|
8303
|
+
getOffset: PropTypes__default["default"].func,
|
|
8304
|
+
showOffset: PropTypes__default["default"].bool,
|
|
7531
8305
|
className: PropTypes__default["default"].string,
|
|
7532
|
-
|
|
8306
|
+
totalCount: PropTypes__default["default"].number,
|
|
8307
|
+
currentPage: PropTypes__default["default"].number,
|
|
8308
|
+
offsetCounts: PropTypes__default["default"].arrayOf(PropTypes__default["default"].number),
|
|
8309
|
+
color: PropTypes__default["default"].string,
|
|
8310
|
+
width: PropTypes__default["default"].string,
|
|
8311
|
+
height: PropTypes__default["default"].string,
|
|
8312
|
+
fontSize: PropTypes__default["default"].string,
|
|
8313
|
+
fontWeight: PropTypes__default["default"].string,
|
|
8314
|
+
fontFamily: PropTypes__default["default"].string,
|
|
8315
|
+
fontStyle: PropTypes__default["default"].string,
|
|
8316
|
+
lineHeight: PropTypes__default["default"].string,
|
|
8317
|
+
activeColor: PropTypes__default["default"].string,
|
|
8318
|
+
hoverColor: PropTypes__default["default"].string,
|
|
8319
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
8320
|
+
hoverBackgroundColor: PropTypes__default["default"].string,
|
|
8321
|
+
activeBackgroundColor: PropTypes__default["default"].string,
|
|
8322
|
+
borderColor: PropTypes__default["default"].string,
|
|
8323
|
+
borderWidth: PropTypes__default["default"].string,
|
|
8324
|
+
borderRadius: PropTypes__default["default"].string
|
|
7533
8325
|
};
|
|
7534
8326
|
|
|
7535
8327
|
var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}";
|
|
@@ -7947,6 +8739,7 @@ Autocomplete.propTypes = {
|
|
|
7947
8739
|
backgroundDisableColor: PropTypes__default["default"].string
|
|
7948
8740
|
};
|
|
7949
8741
|
|
|
8742
|
+
exports.Accordion = Accordion;
|
|
7950
8743
|
exports.Autocomplete = Autocomplete;
|
|
7951
8744
|
exports.Button = Button;
|
|
7952
8745
|
exports.Captcha = Captcha;
|