@xaypay/tui 0.2.25 → 0.2.27
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 +192 -54
- package/dist/index.js +1193 -1044
- package/package.json +2 -2
- package/tui.config.js +5 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var React = require('react');
|
|
4
6
|
var PropTypes = require('prop-types');
|
|
5
7
|
var classnames = require('classnames');
|
|
@@ -7,7 +9,10 @@ var _ = require('lodash');
|
|
|
7
9
|
var styled = require('styled-components');
|
|
8
10
|
var ReactDOM = require('react-dom/client');
|
|
9
11
|
|
|
10
|
-
function
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
11
16
|
var n = Object.create(null);
|
|
12
17
|
if (e) {
|
|
13
18
|
Object.keys(e).forEach(function (k) {
|
|
@@ -20,11 +25,17 @@ function _interopNamespaceDefault(e) {
|
|
|
20
25
|
}
|
|
21
26
|
});
|
|
22
27
|
}
|
|
23
|
-
n
|
|
28
|
+
n["default"] = e;
|
|
24
29
|
return Object.freeze(n);
|
|
25
30
|
}
|
|
26
31
|
|
|
27
|
-
var React__namespace = /*#__PURE__*/
|
|
32
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
34
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
35
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
36
|
+
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
37
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
38
|
+
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
28
39
|
|
|
29
40
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
30
41
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
@@ -68,7 +79,7 @@ var native = {
|
|
|
68
79
|
};
|
|
69
80
|
|
|
70
81
|
function v4(options, buf, offset) {
|
|
71
|
-
if (native.randomUUID &&
|
|
82
|
+
if (native.randomUUID && !buf && !options) {
|
|
72
83
|
return native.randomUUID();
|
|
73
84
|
}
|
|
74
85
|
|
|
@@ -78,6 +89,16 @@ function v4(options, buf, offset) {
|
|
|
78
89
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
79
90
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
80
91
|
|
|
92
|
+
if (buf) {
|
|
93
|
+
offset = offset || 0;
|
|
94
|
+
|
|
95
|
+
for (let i = 0; i < 16; ++i) {
|
|
96
|
+
buf[offset + i] = rnds[i];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return buf;
|
|
100
|
+
}
|
|
101
|
+
|
|
81
102
|
return unsafeStringify(rnds);
|
|
82
103
|
}
|
|
83
104
|
|
|
@@ -290,7 +311,7 @@ const SvgListItemDelete = ({
|
|
|
290
311
|
}));
|
|
291
312
|
|
|
292
313
|
// eslint-disable-next-line react/display-name
|
|
293
|
-
const FileItem = /*#__PURE__*/
|
|
314
|
+
const FileItem = /*#__PURE__*/React__default["default"].memo(({
|
|
294
315
|
size,
|
|
295
316
|
name,
|
|
296
317
|
uuid,
|
|
@@ -377,7 +398,7 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
377
398
|
}, timeForRemoveError));
|
|
378
399
|
}
|
|
379
400
|
}, [check]);
|
|
380
|
-
return /*#__PURE__*/
|
|
401
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
381
402
|
style: {
|
|
382
403
|
width: '100%',
|
|
383
404
|
display: 'flex',
|
|
@@ -392,11 +413,11 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
392
413
|
border: check !== '' ? `1px solid ${listItemErrorColor}` : '',
|
|
393
414
|
backgroundColor: check !== '' ? listItemBackgroundErrorColor : listItemBackgroundColor
|
|
394
415
|
}
|
|
395
|
-
}, check !== '' ? /*#__PURE__*/
|
|
416
|
+
}, check !== '' ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
396
417
|
style: {
|
|
397
418
|
width: '32px'
|
|
398
419
|
}
|
|
399
|
-
}, iconWrong ? iconWrong : /*#__PURE__*/
|
|
420
|
+
}, iconWrong ? iconWrong : /*#__PURE__*/React__default["default"].createElement(SvgWrong, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
400
421
|
style: {
|
|
401
422
|
position: 'relative',
|
|
402
423
|
display: 'flex',
|
|
@@ -405,7 +426,7 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
405
426
|
alignItems: 'flex-end',
|
|
406
427
|
width: 'calc(100% - 40px)'
|
|
407
428
|
}
|
|
408
|
-
}, /*#__PURE__*/
|
|
429
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
409
430
|
style: {
|
|
410
431
|
width: '100%',
|
|
411
432
|
height: '100%',
|
|
@@ -419,7 +440,7 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
419
440
|
fontWeight: listItemErrorWeight,
|
|
420
441
|
fontFamily: listItemErrorFamily
|
|
421
442
|
}
|
|
422
|
-
}, /*#__PURE__*/
|
|
443
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
423
444
|
style: {
|
|
424
445
|
margin: '0px',
|
|
425
446
|
overflow: 'hidden',
|
|
@@ -428,7 +449,7 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
428
449
|
width: '100%',
|
|
429
450
|
maxWidth: '100%'
|
|
430
451
|
}
|
|
431
|
-
}, name), /*#__PURE__*/
|
|
452
|
+
}, name), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
432
453
|
style: {
|
|
433
454
|
margin: '0px',
|
|
434
455
|
overflow: 'hidden',
|
|
@@ -438,11 +459,11 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
438
459
|
maxWidth: '100%',
|
|
439
460
|
color: listItemErrorColor
|
|
440
461
|
}
|
|
441
|
-
}, check ? check : '')))) : /*#__PURE__*/
|
|
462
|
+
}, check ? check : '')))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
442
463
|
style: {
|
|
443
464
|
width: '32px'
|
|
444
465
|
}
|
|
445
|
-
}, fileFormat === 'svg+xml' ? iconSvg ? iconSvg : /*#__PURE__*/
|
|
466
|
+
}, fileFormat === 'svg+xml' ? iconSvg ? iconSvg : /*#__PURE__*/React__default["default"].createElement(SvgListItemSvg, null) : 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", {
|
|
446
467
|
style: {
|
|
447
468
|
position: 'relative',
|
|
448
469
|
display: 'flex',
|
|
@@ -451,7 +472,7 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
451
472
|
alignItems: 'flex-end',
|
|
452
473
|
width: 'calc(100% - 82px)'
|
|
453
474
|
}
|
|
454
|
-
}, /*#__PURE__*/
|
|
475
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
455
476
|
style: {
|
|
456
477
|
width: '100%',
|
|
457
478
|
height: '100%',
|
|
@@ -466,7 +487,7 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
466
487
|
fontFamily: progressFontFamily,
|
|
467
488
|
justifyContent: 'space-between'
|
|
468
489
|
}
|
|
469
|
-
}, /*#__PURE__*/
|
|
490
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
470
491
|
style: {
|
|
471
492
|
margin: '0px',
|
|
472
493
|
overflow: 'hidden',
|
|
@@ -474,7 +495,7 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
474
495
|
textOverflow: 'ellipsis',
|
|
475
496
|
maxWidth: 'calc(100% - 56px)'
|
|
476
497
|
}
|
|
477
|
-
}, name), /*#__PURE__*/
|
|
498
|
+
}, name), /*#__PURE__*/React__default["default"].createElement("span", null, progress, " %")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
478
499
|
style: {
|
|
479
500
|
position: 'absolute',
|
|
480
501
|
left: '0px',
|
|
@@ -484,20 +505,20 @@ const FileItem = /*#__PURE__*/React.memo(({
|
|
|
484
505
|
borderRadius: '10px',
|
|
485
506
|
backgroundColor: progressTrackColor
|
|
486
507
|
}
|
|
487
|
-
}, /*#__PURE__*/
|
|
508
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
488
509
|
style: {
|
|
489
510
|
height: '100%',
|
|
490
511
|
borderRadius: '10px',
|
|
491
512
|
width: status === 'failed' ? '100%' : progress + '%',
|
|
492
513
|
backgroundColor: status === 'success' ? progressSuccessColor : status === 'failed' ? progressFailedColor : progressLoadingColor
|
|
493
514
|
}
|
|
494
|
-
}))), /*#__PURE__*/
|
|
515
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
495
516
|
style: {
|
|
496
517
|
width: '22px',
|
|
497
518
|
cursor: 'pointer'
|
|
498
519
|
},
|
|
499
520
|
onClick: () => handleRemoveItem(uuid)
|
|
500
|
-
}, iconDelItem ? iconDelItem : /*#__PURE__*/
|
|
521
|
+
}, iconDelItem ? iconDelItem : /*#__PURE__*/React__default["default"].createElement(SvgListItemDelete, null))));
|
|
501
522
|
});
|
|
502
523
|
|
|
503
524
|
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";
|
|
@@ -507,22 +528,19 @@ var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16
|
|
|
507
528
|
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";
|
|
508
529
|
|
|
509
530
|
// import React from 'react'
|
|
510
|
-
// import info from './src/assetsTMP/info.png';
|
|
511
|
-
// import error from './src/assetsTMP/error.png';
|
|
512
|
-
// import close from './src/assetsTMP/close.svg';
|
|
513
|
-
// import warn from './src/assetsTMP/warning.png';
|
|
514
|
-
// import success from './src/assetsTMP/success.png';
|
|
515
531
|
const boxSizing = 'border-box';
|
|
516
532
|
const fontStyle = 'normal';
|
|
517
533
|
const fontFamily = 'Arial';
|
|
518
534
|
const fontWeight = 500;
|
|
519
535
|
const transparent = 'transparent';
|
|
520
536
|
const presetColors = {
|
|
537
|
+
info: '#F24C4C',
|
|
521
538
|
dark: '#3C393E',
|
|
522
539
|
light: '#EEEEEE',
|
|
523
540
|
extraLight: '#FBFBFB',
|
|
524
541
|
danger: '#EE0000',
|
|
525
542
|
success: '#0DA574',
|
|
543
|
+
warning: '#FECD29',
|
|
526
544
|
secondary: '#D1D1D1',
|
|
527
545
|
primary: '#051942',
|
|
528
546
|
primarySecond: '#00236A'
|
|
@@ -1090,6 +1108,7 @@ var packageResult = {
|
|
|
1090
1108
|
timeForRemoveError: 4000,
|
|
1091
1109
|
extentionsRowMarginTop: '40px',
|
|
1092
1110
|
extentionsTextColor: 'black',
|
|
1111
|
+
extentionsTextDots: false,
|
|
1093
1112
|
border: {
|
|
1094
1113
|
width: '2px',
|
|
1095
1114
|
style: 'dashed',
|
|
@@ -1103,7 +1122,9 @@ var packageResult = {
|
|
|
1103
1122
|
backgroundHidden: 'rgba(60, 57, 62, 0.4)'
|
|
1104
1123
|
},
|
|
1105
1124
|
label: {
|
|
1125
|
+
showMore: false,
|
|
1106
1126
|
useTooltip: false,
|
|
1127
|
+
showMoreTextColor: '#2C46C1',
|
|
1107
1128
|
color: '#4A4A4D',
|
|
1108
1129
|
font: {
|
|
1109
1130
|
...fontObject
|
|
@@ -1198,6 +1219,7 @@ var packageResult = {
|
|
|
1198
1219
|
maxHeight: '95vh',
|
|
1199
1220
|
minHeight: '200px',
|
|
1200
1221
|
radius: '14px',
|
|
1222
|
+
noScroll: false,
|
|
1201
1223
|
padding: '20px 20px 20px',
|
|
1202
1224
|
className: '',
|
|
1203
1225
|
alignItems: 'center',
|
|
@@ -1252,6 +1274,7 @@ var packageResult = {
|
|
|
1252
1274
|
SWIPEMODAL: {
|
|
1253
1275
|
width: '300px',
|
|
1254
1276
|
height: '100vh',
|
|
1277
|
+
noScroll: false,
|
|
1255
1278
|
titleStyle: {
|
|
1256
1279
|
color: '#1C212D',
|
|
1257
1280
|
textAlign: 'left',
|
|
@@ -1503,7 +1526,7 @@ async function getPProps() {
|
|
|
1503
1526
|
const projectPath = `../../../../tui.config.js`;
|
|
1504
1527
|
async function loadComponent(componentName) {
|
|
1505
1528
|
try {
|
|
1506
|
-
const Component = await
|
|
1529
|
+
const Component = await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(/* @vite-ignore */componentName);
|
|
1507
1530
|
return Component.default;
|
|
1508
1531
|
} catch (err) {
|
|
1509
1532
|
console.error(`Error loading component: ${componentName}`);
|
|
@@ -1523,7 +1546,7 @@ async function getProps() {
|
|
|
1523
1546
|
let props;
|
|
1524
1547
|
try {
|
|
1525
1548
|
const newProps = await getPProps();
|
|
1526
|
-
props =
|
|
1549
|
+
props = ___default["default"].merge(newProps.packageResult, newProps.projectResult);
|
|
1527
1550
|
} catch (error) {
|
|
1528
1551
|
console.error('Error in getProps:', error);
|
|
1529
1552
|
}
|
|
@@ -1581,14 +1604,14 @@ const Button = ({
|
|
|
1581
1604
|
setIsHover(false);
|
|
1582
1605
|
};
|
|
1583
1606
|
React.useEffect(() => {
|
|
1584
|
-
className && setClassProps(() =>
|
|
1607
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.BUTTON.className));
|
|
1585
1608
|
}, [className]);
|
|
1586
1609
|
React.useEffect(() => {
|
|
1587
1610
|
if (!label && !icon) {
|
|
1588
1611
|
alert('Add icon or label props on Button component');
|
|
1589
1612
|
}
|
|
1590
1613
|
configStylesPromise.then(data => {
|
|
1591
|
-
setClassProps(() =>
|
|
1614
|
+
setClassProps(() => classnames__default["default"](className ?? data.BUTTON.className));
|
|
1592
1615
|
setConfigStyles(() => {
|
|
1593
1616
|
return {
|
|
1594
1617
|
...data
|
|
@@ -1598,7 +1621,7 @@ const Button = ({
|
|
|
1598
1621
|
console.error(error);
|
|
1599
1622
|
});
|
|
1600
1623
|
}, []);
|
|
1601
|
-
return /*#__PURE__*/
|
|
1624
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, configStyles.BUTTON && /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
1602
1625
|
style: {
|
|
1603
1626
|
display: 'flex',
|
|
1604
1627
|
outline: 'none',
|
|
@@ -1628,7 +1651,7 @@ const Button = ({
|
|
|
1628
1651
|
onMouseEnter: handleMouseEnter,
|
|
1629
1652
|
onMouseLeave: handleMouseLeave,
|
|
1630
1653
|
className: classProps
|
|
1631
|
-
}, props), !iconRightSide ? isHover && hoverIcon ? hoverIcon : icon ?? null : ' ', ' ', label && /*#__PURE__*/
|
|
1654
|
+
}, props), !iconRightSide ? isHover && hoverIcon ? hoverIcon : icon ?? null : ' ', ' ', label && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1632
1655
|
style: {
|
|
1633
1656
|
marginLeft: icon && !iconRightSide ? btnIconMarginRight ? btnIconMarginRight : configStyles.BUTTON.icon.marginRight : '0px',
|
|
1634
1657
|
marginRight: icon && iconRightSide ? btnIconMarginLeft ? btnIconMarginLeft : configStyles.BUTTON.icon.marginLeft : '0px'
|
|
@@ -1636,42 +1659,42 @@ const Button = ({
|
|
|
1636
1659
|
}, label), ' ', iconRightSide ? isHover && hoverIcon ? hoverIcon : icon ?? null : ' ', !icon && !label && 'Add icon or label prop on Button component'));
|
|
1637
1660
|
};
|
|
1638
1661
|
Button.propTypes = {
|
|
1639
|
-
type:
|
|
1640
|
-
size:
|
|
1641
|
-
style:
|
|
1642
|
-
font:
|
|
1643
|
-
icon:
|
|
1644
|
-
color:
|
|
1645
|
-
width:
|
|
1646
|
-
outline:
|
|
1647
|
-
onClick:
|
|
1648
|
-
label:
|
|
1649
|
-
weight:
|
|
1650
|
-
height:
|
|
1651
|
-
cursor:
|
|
1652
|
-
border:
|
|
1653
|
-
disabled:
|
|
1654
|
-
radius:
|
|
1655
|
-
padding:
|
|
1656
|
-
opacity:
|
|
1657
|
-
boxSizing:
|
|
1658
|
-
className:
|
|
1659
|
-
hoverIcon:
|
|
1660
|
-
hoverColor:
|
|
1661
|
-
transition:
|
|
1662
|
-
contentWidth:
|
|
1663
|
-
iconRightSide:
|
|
1664
|
-
withoutStyling:
|
|
1665
|
-
textTransform:
|
|
1666
|
-
disabledColor:
|
|
1667
|
-
backgroundColor:
|
|
1668
|
-
disabledLineColor:
|
|
1669
|
-
btnIconMarginLeft:
|
|
1670
|
-
btnIconMarginRight:
|
|
1671
|
-
withoutStylingColor:
|
|
1672
|
-
backgroundHoverColor:
|
|
1673
|
-
disabledBackgroundColor:
|
|
1674
|
-
withoutStylingHoverColor:
|
|
1662
|
+
type: PropTypes__default["default"].string,
|
|
1663
|
+
size: PropTypes__default["default"].string,
|
|
1664
|
+
style: PropTypes__default["default"].string,
|
|
1665
|
+
font: PropTypes__default["default"].string,
|
|
1666
|
+
icon: PropTypes__default["default"].element,
|
|
1667
|
+
color: PropTypes__default["default"].string,
|
|
1668
|
+
width: PropTypes__default["default"].string,
|
|
1669
|
+
outline: PropTypes__default["default"].bool,
|
|
1670
|
+
onClick: PropTypes__default["default"].func,
|
|
1671
|
+
label: PropTypes__default["default"].string,
|
|
1672
|
+
weight: PropTypes__default["default"].string,
|
|
1673
|
+
height: PropTypes__default["default"].string,
|
|
1674
|
+
cursor: PropTypes__default["default"].string,
|
|
1675
|
+
border: PropTypes__default["default"].string,
|
|
1676
|
+
disabled: PropTypes__default["default"].bool,
|
|
1677
|
+
radius: PropTypes__default["default"].string,
|
|
1678
|
+
padding: PropTypes__default["default"].string,
|
|
1679
|
+
opacity: PropTypes__default["default"].number,
|
|
1680
|
+
boxSizing: PropTypes__default["default"].string,
|
|
1681
|
+
className: PropTypes__default["default"].string,
|
|
1682
|
+
hoverIcon: PropTypes__default["default"].element,
|
|
1683
|
+
hoverColor: PropTypes__default["default"].string,
|
|
1684
|
+
transition: PropTypes__default["default"].string,
|
|
1685
|
+
contentWidth: PropTypes__default["default"].bool,
|
|
1686
|
+
iconRightSide: PropTypes__default["default"].bool,
|
|
1687
|
+
withoutStyling: PropTypes__default["default"].bool,
|
|
1688
|
+
textTransform: PropTypes__default["default"].string,
|
|
1689
|
+
disabledColor: PropTypes__default["default"].string,
|
|
1690
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
1691
|
+
disabledLineColor: PropTypes__default["default"].string,
|
|
1692
|
+
btnIconMarginLeft: PropTypes__default["default"].string,
|
|
1693
|
+
btnIconMarginRight: PropTypes__default["default"].string,
|
|
1694
|
+
withoutStylingColor: PropTypes__default["default"].string,
|
|
1695
|
+
backgroundHoverColor: PropTypes__default["default"].string,
|
|
1696
|
+
disabledBackgroundColor: PropTypes__default["default"].string,
|
|
1697
|
+
withoutStylingHoverColor: PropTypes__default["default"].string
|
|
1675
1698
|
};
|
|
1676
1699
|
|
|
1677
1700
|
const SvgSvg = ({
|
|
@@ -1830,8 +1853,8 @@ function styleInject(css, ref) {
|
|
|
1830
1853
|
}
|
|
1831
1854
|
}
|
|
1832
1855
|
|
|
1833
|
-
var css_248z$c = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}";
|
|
1834
|
-
var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW"};
|
|
1856
|
+
var css_248z$c = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}.file-module_show-more-text__WIGLx{align-self:self-end;cursor:pointer}";
|
|
1857
|
+
var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW","show-more-text":"file-module_show-more-text__WIGLx"};
|
|
1835
1858
|
styleInject(css_248z$c);
|
|
1836
1859
|
|
|
1837
1860
|
// eslint-disable-next-line react/display-name
|
|
@@ -1865,6 +1888,10 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1865
1888
|
labelStyle,
|
|
1866
1889
|
labelWeight,
|
|
1867
1890
|
labelFamily,
|
|
1891
|
+
lableShowMore,
|
|
1892
|
+
labelShowLessText,
|
|
1893
|
+
labelShowMoreText,
|
|
1894
|
+
showMoreTextColor,
|
|
1868
1895
|
useLabelTooltip,
|
|
1869
1896
|
labelTooltipColor,
|
|
1870
1897
|
labelTooltipPadding,
|
|
@@ -1943,6 +1970,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1943
1970
|
maxCHoosenLengthErrorHideTime,
|
|
1944
1971
|
textAlignLeftInSmallComponent,
|
|
1945
1972
|
showPreviewIconInSmallComponent,
|
|
1973
|
+
extentionsTextDots,
|
|
1946
1974
|
extentionsTextColor,
|
|
1947
1975
|
maxSize = 10,
|
|
1948
1976
|
preview = true,
|
|
@@ -1956,6 +1984,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1956
1984
|
const [error, setError] = React.useState('');
|
|
1957
1985
|
const [removeID, setRemoveID] = React.useState('');
|
|
1958
1986
|
const [isHover, setIsHover] = React.useState(false);
|
|
1987
|
+
const [showMore, setShowMore] = React.useState(false);
|
|
1959
1988
|
const [classProps, setClassProps] = React.useState({});
|
|
1960
1989
|
const [singleFile, setSingleFile] = React.useState(null);
|
|
1961
1990
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
@@ -2311,6 +2340,21 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2311
2340
|
}
|
|
2312
2341
|
setRemoveID(() => '');
|
|
2313
2342
|
};
|
|
2343
|
+
const handleCheckTextWidth = () => {
|
|
2344
|
+
if (labelRef.current) {
|
|
2345
|
+
const rect = labelRef.current.getBoundingClientRect();
|
|
2346
|
+
const elementWidth = rect.width;
|
|
2347
|
+
const textWidth = getRenderedTextWidth(labelRef.current);
|
|
2348
|
+
if (textWidth > Math.ceil(elementWidth)) {
|
|
2349
|
+
return 'more';
|
|
2350
|
+
} else {
|
|
2351
|
+
return 'less';
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
};
|
|
2355
|
+
const handleChangeShowMore = () => {
|
|
2356
|
+
setShowMore(() => !showMore);
|
|
2357
|
+
};
|
|
2314
2358
|
React.useImperativeHandle(ref, () => ({
|
|
2315
2359
|
handleReset() {
|
|
2316
2360
|
setError('');
|
|
@@ -2364,11 +2408,20 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2364
2408
|
}
|
|
2365
2409
|
}, [change]);
|
|
2366
2410
|
React.useEffect(() => {
|
|
2367
|
-
className && setClassProps(() =>
|
|
2411
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.FILE.className));
|
|
2368
2412
|
}, [className]);
|
|
2413
|
+
React.useEffect(() => {
|
|
2414
|
+
if ((useLabelTooltip || configStyles.FILE?.label?.useTooltip) && (lableShowMore || configStyles.FILE?.label?.showMore)) {
|
|
2415
|
+
alert(`
|
|
2416
|
+
Please use one of this props or config,
|
|
2417
|
+
use ( useLabelTooltip / configStyles.FILE.label.useTooltip )
|
|
2418
|
+
or ( lableShowMore / configStyles.FILE.label.showMore )
|
|
2419
|
+
`);
|
|
2420
|
+
}
|
|
2421
|
+
}, [lableShowMore, useLabelTooltip, configStyles.FILE?.label?.useTooltip, configStyles.FILE?.label?.showMore]);
|
|
2369
2422
|
React.useEffect(() => {
|
|
2370
2423
|
configStylesPromise.then(data => {
|
|
2371
|
-
setClassProps(() =>
|
|
2424
|
+
setClassProps(() => classnames__default["default"](className ?? data.FILE.className));
|
|
2372
2425
|
setConfigStyles(() => {
|
|
2373
2426
|
return {
|
|
2374
2427
|
...data
|
|
@@ -2383,29 +2436,30 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2383
2436
|
}
|
|
2384
2437
|
};
|
|
2385
2438
|
}, []);
|
|
2386
|
-
return configStyles.FILE && /*#__PURE__*/
|
|
2439
|
+
return configStyles.FILE && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2387
2440
|
ref: parentRef,
|
|
2388
2441
|
style: {
|
|
2389
2442
|
width: '100%',
|
|
2390
2443
|
maxWidth: maxWidth ?? configStyles.FILE.maxWidth
|
|
2391
2444
|
},
|
|
2392
2445
|
className: classProps
|
|
2393
|
-
}, /*#__PURE__*/
|
|
2446
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2394
2447
|
style: {
|
|
2395
2448
|
display: 'flex',
|
|
2396
2449
|
marginBottom: '6px',
|
|
2397
2450
|
alignItems: 'center',
|
|
2398
|
-
justifyContent: label ? 'space-between' : 'flex-end'
|
|
2451
|
+
justifyContent: label ? 'space-between' : 'flex-end',
|
|
2452
|
+
width: deleteComponent && useLabelTooltip && handleCheckTextWidth() === 'more' ? 'calc(100% - 26px)' : '100%'
|
|
2399
2453
|
}
|
|
2400
|
-
}, label && /*#__PURE__*/
|
|
2454
|
+
}, label && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2401
2455
|
style: {
|
|
2402
2456
|
display: 'flex',
|
|
2403
2457
|
maxWidth: '100%',
|
|
2404
|
-
width: 'fit-content',
|
|
2405
2458
|
columnGap: '4px',
|
|
2459
|
+
width: 'fit-content',
|
|
2406
2460
|
justifyContent: 'flex-start'
|
|
2407
2461
|
}
|
|
2408
|
-
}, /*#__PURE__*/
|
|
2462
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
2409
2463
|
ref: labelRef,
|
|
2410
2464
|
style: {
|
|
2411
2465
|
width: '100%',
|
|
@@ -2414,18 +2468,28 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2414
2468
|
fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
|
|
2415
2469
|
fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
|
|
2416
2470
|
fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
|
|
2417
|
-
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'nowrap' : 'normal',
|
|
2418
|
-
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'hidden' : 'visible',
|
|
2419
|
-
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? 'ellipsis' : ''
|
|
2471
|
+
whiteSpace: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'nowrap' : 'normal',
|
|
2472
|
+
overflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'hidden' : 'visible',
|
|
2473
|
+
textOverflow: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) || (lableShowMore ? lableShowMore : (lableShowMore === null || lableShowMore === undefined) && configStyles.FILE.label.showMore) && !showMore ? 'ellipsis' : ''
|
|
2420
2474
|
},
|
|
2421
|
-
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
2422
|
-
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
2423
|
-
}, label), required && /*#__PURE__*/
|
|
2475
|
+
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) && !lableShowMore && !configStyles.FILE.label.showMore ? handleLabelMouseEnter : _ => _,
|
|
2476
|
+
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.FILE.label.useTooltip) && !lableShowMore && !configStyles.FILE.label.showMore ? handleLabelMouseLeave : _ => _
|
|
2477
|
+
}, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), lableShowMore || configStyles.FILE.label.showMore ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2478
|
+
className: styles$b['show-more-text'],
|
|
2479
|
+
style: {
|
|
2480
|
+
fontSize: labelSize ?? configStyles.FILE.label.font.size,
|
|
2481
|
+
fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
|
|
2482
|
+
fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
|
|
2483
|
+
fontFamily: labelFamily ?? configStyles.FILE.label.font.family,
|
|
2484
|
+
color: showMoreTextColor ?? configStyles.FILE.label.showMoreTextColor
|
|
2485
|
+
},
|
|
2486
|
+
onClick: handleChangeShowMore
|
|
2487
|
+
}, showMore ? labelShowLessText ? labelShowLessText : '' : labelShowMoreText ? labelShowMoreText : '') : ''), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2424
2488
|
style: {
|
|
2425
2489
|
cursor: 'pointer'
|
|
2426
2490
|
},
|
|
2427
2491
|
onClick: handleRemoveComponent
|
|
2428
|
-
}, iconDeleteComponent ? iconDeleteComponent : configStyles.FILE.icon.deleteComponent ? configStyles.FILE.icon.deleteComponent : /*#__PURE__*/
|
|
2492
|
+
}, iconDeleteComponent ? iconDeleteComponent : configStyles.FILE.icon.deleteComponent ? configStyles.FILE.icon.deleteComponent : /*#__PURE__*/React__default["default"].createElement(SvgDeleteComponent, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2429
2493
|
style: {
|
|
2430
2494
|
width: '100%',
|
|
2431
2495
|
display: 'flex',
|
|
@@ -2446,7 +2510,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2446
2510
|
onDragOver: handleDragOver,
|
|
2447
2511
|
onMouseEnter: handleMouseEnter,
|
|
2448
2512
|
onMouseLeave: handleMouseLeave
|
|
2449
|
-
}, /*#__PURE__*/
|
|
2513
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
2450
2514
|
hidden: true,
|
|
2451
2515
|
name: name,
|
|
2452
2516
|
type: "file",
|
|
@@ -2454,7 +2518,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2454
2518
|
disabled: disabled,
|
|
2455
2519
|
multiple: multiple,
|
|
2456
2520
|
onChange: handleChange
|
|
2457
|
-
}), /*#__PURE__*/
|
|
2521
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2458
2522
|
style: {
|
|
2459
2523
|
width: '100%',
|
|
2460
2524
|
height: '100%',
|
|
@@ -2469,7 +2533,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2469
2533
|
fontFamily: family ?? configStyles.FILE.font.family,
|
|
2470
2534
|
fontWeight: weight ?? configStyles.FILE.font.weight
|
|
2471
2535
|
}
|
|
2472
|
-
}, !multiple && image && preview ? image === 'svg' ? iconSvg ? iconSvg : configStyles.FILE.icon.svg ? configStyles.FILE.icon.svg : /*#__PURE__*/
|
|
2536
|
+
}, !multiple && image && preview ? image === 'svg' ? iconSvg ? iconSvg : configStyles.FILE.icon.svg ? configStyles.FILE.icon.svg : /*#__PURE__*/React__default["default"].createElement(SvgSvg, null) : 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", {
|
|
2473
2537
|
src: image,
|
|
2474
2538
|
style: {
|
|
2475
2539
|
display: 'block',
|
|
@@ -2480,25 +2544,33 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2480
2544
|
height: fileAreaImageHeight ?? configStyles.FILE.fileAreaImageHeight
|
|
2481
2545
|
},
|
|
2482
2546
|
alt: "file preview"
|
|
2483
|
-
}) : preview ? /*#__PURE__*/
|
|
2547
|
+
}) : preview ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", null, iconUpload ? iconUpload : configStyles.FILE.icon.upload ? configStyles.FILE.icon.upload : /*#__PURE__*/React__default["default"].createElement(SvgUpload, null)), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2484
2548
|
style: {
|
|
2485
2549
|
margin: '0px'
|
|
2486
2550
|
}
|
|
2487
|
-
}, putFileHere ?? configStyles.FILE.putFileHere, /*#__PURE__*/
|
|
2551
|
+
}, putFileHere ?? configStyles.FILE.putFileHere, /*#__PURE__*/React__default["default"].createElement("br", null), or ? or : configStyles.FILE.or, ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2488
2552
|
style: {
|
|
2489
2553
|
color: uploadColor ?? configStyles.FILE.uploadColor
|
|
2490
2554
|
}
|
|
2491
|
-
}, upload ?? configStyles.FILE.upload))), /*#__PURE__*/
|
|
2555
|
+
}, upload ?? configStyles.FILE.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2492
2556
|
style: {
|
|
2557
|
+
maxWidth: '100%',
|
|
2493
2558
|
marginTop: extentionsRowMarginTop ?? configStyles.FILE.extentionsRowMarginTop
|
|
2494
2559
|
}
|
|
2495
|
-
}, /*#__PURE__*/
|
|
2560
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2496
2561
|
style: {
|
|
2497
2562
|
margin: '0px',
|
|
2498
2563
|
padding: '0px 10px',
|
|
2564
|
+
color: color ?? configStyles.FILE.color,
|
|
2565
|
+
whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
|
|
2566
|
+
overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
|
|
2567
|
+
textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
|
|
2568
|
+
}
|
|
2569
|
+
}, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532", /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2570
|
+
style: {
|
|
2499
2571
|
color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
|
|
2500
2572
|
}
|
|
2501
|
-
},
|
|
2573
|
+
}, "(", ' ', " ", fileExtensions.toString().split(',').join(', '), ")"))))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2502
2574
|
className: styles$b['small-file-component'],
|
|
2503
2575
|
style: {
|
|
2504
2576
|
width: '100%',
|
|
@@ -2508,7 +2580,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2508
2580
|
boxSizing: 'border-box',
|
|
2509
2581
|
justifyContent: textAlignLeftInSmallComponent ? 'flex-start' : 'space-between'
|
|
2510
2582
|
}
|
|
2511
|
-
}, showPreviewIconInSmallComponent ? !image ? /*#__PURE__*/
|
|
2583
|
+
}, showPreviewIconInSmallComponent ? !image ? /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
2512
2584
|
contentWidth: true,
|
|
2513
2585
|
onClick: _ => _,
|
|
2514
2586
|
font: uploadBtnFont ?? configStyles.FILE.uploadBtn.font.family,
|
|
@@ -2521,7 +2593,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2521
2593
|
hoverColor: uploadBtnHoverColor ?? configStyles.FILE.uploadBtn.colors.hover,
|
|
2522
2594
|
backgroundColor: uploadBtnBackgroundColor ?? configStyles.FILE.uploadBtn.colors.background,
|
|
2523
2595
|
backgroundHoverColor: uploadBtnBackgroundColorHover ?? configStyles.FILE.uploadBtn.colors.backgroundHover
|
|
2524
|
-
}) : image === 'svg' ? iconSvg ? iconSvg : configStyles.FILE.icon.svg ? configStyles.FILE.icon.svg : /*#__PURE__*/
|
|
2596
|
+
}) : image === 'svg' ? iconSvg ? iconSvg : configStyles.FILE.icon.svg ? configStyles.FILE.icon.svg : /*#__PURE__*/React__default["default"].createElement(SvgSvg, null) : 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) : singleFile[0].type === 'image/jpeg' ? iconJpeg ? iconJpeg : configStyles.FILE.icon.jpeg ? configStyles.FILE.icon.jpeg : /*#__PURE__*/React__default["default"].createElement(SvgListItemJpeg, null) : singleFile[0].type === 'image/png' ? iconPng ? iconPng : configStyles.FILE.icon.png ? configStyles.FILE.icon.png : /*#__PURE__*/React__default["default"].createElement(SvgListItemPng, null) : singleFile[0].type === 'image/jpg' ? iconJpeg ? iconJpg : configStyles.FILE.icon.jpg ? configStyles.FILE.icon.jpg : /*#__PURE__*/React__default["default"].createElement(SvgListItemJpg, null) : '' : /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
2525
2597
|
contentWidth: true,
|
|
2526
2598
|
onClick: _ => _,
|
|
2527
2599
|
font: uploadBtnFont ?? configStyles.FILE.uploadBtn.font.family,
|
|
@@ -2534,17 +2606,20 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2534
2606
|
hoverColor: uploadBtnHoverColor ?? configStyles.FILE.uploadBtn.colors.hover,
|
|
2535
2607
|
backgroundColor: uploadBtnBackgroundColor ?? configStyles.FILE.uploadBtn.colors.background,
|
|
2536
2608
|
backgroundHoverColor: uploadBtnBackgroundColorHover ?? configStyles.FILE.uploadBtn.colors.backgroundHover
|
|
2537
|
-
}), /*#__PURE__*/
|
|
2609
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2538
2610
|
style: {
|
|
2539
2611
|
margin: '0px',
|
|
2540
2612
|
padding: '0px 10px',
|
|
2541
|
-
color:
|
|
2613
|
+
color: color ?? configStyles.FILE.color,
|
|
2614
|
+
whiteSpace: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'nowrap' : 'normal',
|
|
2615
|
+
overflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'hidden' : 'visible',
|
|
2616
|
+
textOverflow: extentionsTextDots || configStyles.FILE.extentionsTextDots ? 'ellipsis' : ''
|
|
2542
2617
|
}
|
|
2543
|
-
}, singleFile && singleFile[`${0}`] ? singleFile[`${0}`].name : /*#__PURE__*/
|
|
2618
|
+
}, singleFile && singleFile[`${0}`] ? singleFile[`${0}`].name : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532", /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2544
2619
|
style: {
|
|
2545
|
-
color:
|
|
2620
|
+
color: extentionsTextColor ?? configStyles.FILE.extentionsTextColor
|
|
2546
2621
|
}
|
|
2547
|
-
},
|
|
2622
|
+
}, "(", ' ', " ", fileExtensions.toString().split(',').join(', '), ")")))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2548
2623
|
style: {
|
|
2549
2624
|
position: 'absolute',
|
|
2550
2625
|
top: '0px',
|
|
@@ -2562,12 +2637,12 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2562
2637
|
backgroundColor: hiddenBackgroundColor ?? configStyles.FILE.colors.backgroundHidden
|
|
2563
2638
|
},
|
|
2564
2639
|
onClick: handleStopPropagation
|
|
2565
|
-
}, /*#__PURE__*/
|
|
2640
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2566
2641
|
style: {
|
|
2567
2642
|
cursor: 'pointer'
|
|
2568
2643
|
},
|
|
2569
2644
|
onClick: handleRemoveFile
|
|
2570
|
-
}, iconRemoveFile ? iconRemoveFile : configStyles.FILE.icon.removeFile ? configStyles.FILE.icon.removeFile : /*#__PURE__*/
|
|
2645
|
+
}, iconRemoveFile ? iconRemoveFile : configStyles.FILE.icon.removeFile ? configStyles.FILE.icon.removeFile : /*#__PURE__*/React__default["default"].createElement(SvgRemoveFile, null)))), error ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2571
2646
|
style: {
|
|
2572
2647
|
marginTop: '6px',
|
|
2573
2648
|
color: errorColor ?? configStyles.FILE.error.color,
|
|
@@ -2580,7 +2655,7 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2580
2655
|
display: errorIconShow && (errorIcon || configStyles.FILE.error?.icon) ? 'inline-flex' : 'inline-block'
|
|
2581
2656
|
}
|
|
2582
2657
|
}, errorIconShow ? errorIcon ? errorIcon : configStyles.FILE.error?.icon ? configStyles.FILE.error?.icon : '' : '', error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
|
|
2583
|
-
return /*#__PURE__*/
|
|
2658
|
+
return /*#__PURE__*/React__default["default"].createElement(FileItem, {
|
|
2584
2659
|
key: item.uuid,
|
|
2585
2660
|
uuid: item.uuid,
|
|
2586
2661
|
check: item.check,
|
|
@@ -2623,115 +2698,120 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
2623
2698
|
}));
|
|
2624
2699
|
});
|
|
2625
2700
|
File.propTypes = {
|
|
2626
|
-
or:
|
|
2627
|
-
size:
|
|
2628
|
-
preview:
|
|
2629
|
-
label:
|
|
2630
|
-
color:
|
|
2631
|
-
height:
|
|
2632
|
-
disabled:
|
|
2633
|
-
radius:
|
|
2634
|
-
borderWidth:
|
|
2635
|
-
borderStyle:
|
|
2636
|
-
borderColor:
|
|
2637
|
-
required:
|
|
2638
|
-
upload:
|
|
2639
|
-
weight:
|
|
2640
|
-
style:
|
|
2641
|
-
family:
|
|
2642
|
-
maxSize:
|
|
2643
|
-
maxWidth:
|
|
2644
|
-
removeFile:
|
|
2645
|
-
className:
|
|
2646
|
-
errorSize:
|
|
2647
|
-
errorStyle:
|
|
2648
|
-
errorWeight:
|
|
2649
|
-
errorFamily:
|
|
2650
|
-
labelSize:
|
|
2651
|
-
labelStyle:
|
|
2652
|
-
labelWeight:
|
|
2653
|
-
labelFamily:
|
|
2654
|
-
labelColor:
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2701
|
+
or: PropTypes__default["default"].string,
|
|
2702
|
+
size: PropTypes__default["default"].string,
|
|
2703
|
+
preview: PropTypes__default["default"].bool,
|
|
2704
|
+
label: PropTypes__default["default"].string,
|
|
2705
|
+
color: PropTypes__default["default"].string,
|
|
2706
|
+
height: PropTypes__default["default"].string,
|
|
2707
|
+
disabled: PropTypes__default["default"].bool,
|
|
2708
|
+
radius: PropTypes__default["default"].string,
|
|
2709
|
+
borderWidth: PropTypes__default["default"].string,
|
|
2710
|
+
borderStyle: PropTypes__default["default"].string,
|
|
2711
|
+
borderColor: PropTypes__default["default"].string,
|
|
2712
|
+
required: PropTypes__default["default"].bool,
|
|
2713
|
+
upload: PropTypes__default["default"].string,
|
|
2714
|
+
weight: PropTypes__default["default"].number,
|
|
2715
|
+
style: PropTypes__default["default"].string,
|
|
2716
|
+
family: PropTypes__default["default"].string,
|
|
2717
|
+
maxSize: PropTypes__default["default"].number,
|
|
2718
|
+
maxWidth: PropTypes__default["default"].string,
|
|
2719
|
+
removeFile: PropTypes__default["default"].func,
|
|
2720
|
+
className: PropTypes__default["default"].string,
|
|
2721
|
+
errorSize: PropTypes__default["default"].string,
|
|
2722
|
+
errorStyle: PropTypes__default["default"].string,
|
|
2723
|
+
errorWeight: PropTypes__default["default"].string,
|
|
2724
|
+
errorFamily: PropTypes__default["default"].string,
|
|
2725
|
+
labelSize: PropTypes__default["default"].string,
|
|
2726
|
+
labelStyle: PropTypes__default["default"].string,
|
|
2727
|
+
labelWeight: PropTypes__default["default"].string,
|
|
2728
|
+
labelFamily: PropTypes__default["default"].string,
|
|
2729
|
+
labelColor: PropTypes__default["default"].string,
|
|
2730
|
+
lableShowMore: PropTypes__default["default"].bool,
|
|
2731
|
+
labelShowLessText: PropTypes__default["default"].string,
|
|
2732
|
+
labelShowMoreText: PropTypes__default["default"].string,
|
|
2733
|
+
showMoreTextColor: PropTypes__default["default"].string,
|
|
2734
|
+
useLabelTooltip: PropTypes__default["default"].bool,
|
|
2735
|
+
labelTooltipColor: PropTypes__default["default"].string,
|
|
2736
|
+
labelTooltipPadding: PropTypes__default["default"].string,
|
|
2737
|
+
labelTooltipFontSize: PropTypes__default["default"].string,
|
|
2738
|
+
labelTooltipFontStyle: PropTypes__default["default"].string,
|
|
2739
|
+
labelTooltipFontFamily: PropTypes__default["default"].string,
|
|
2740
|
+
labelTooltipFontWeight: PropTypes__default["default"].string,
|
|
2741
|
+
labelTooltipBorderRadius: PropTypes__default["default"].string,
|
|
2742
|
+
labelTooltipBackgroundColor: PropTypes__default["default"].string,
|
|
2743
|
+
errorColor: PropTypes__default["default"].string,
|
|
2744
|
+
formatError: PropTypes__default["default"].string,
|
|
2745
|
+
putFileHere: PropTypes__default["default"].string,
|
|
2746
|
+
uploadColor: PropTypes__default["default"].string,
|
|
2747
|
+
defaultData: PropTypes__default["default"].object,
|
|
2748
|
+
componentId: PropTypes__default["default"].number,
|
|
2749
|
+
maxSizeError: PropTypes__default["default"].string,
|
|
2750
|
+
errorIcon: PropTypes__default["default"].element,
|
|
2751
|
+
errorIconShow: PropTypes__default["default"].bool,
|
|
2752
|
+
errorMessage: PropTypes__default["default"].string,
|
|
2753
|
+
fileSizeText: PropTypes__default["default"].string,
|
|
2754
|
+
noChoosenFile: PropTypes__default["default"].string,
|
|
2755
|
+
progressColor: PropTypes__default["default"].string,
|
|
2756
|
+
deleteComponent: PropTypes__default["default"].bool,
|
|
2757
|
+
removeComponent: PropTypes__default["default"].func,
|
|
2758
|
+
iconSvg: PropTypes__default["default"].element,
|
|
2759
|
+
iconPdf: PropTypes__default["default"].element,
|
|
2760
|
+
iconDoc: PropTypes__default["default"].element,
|
|
2761
|
+
iconPng: PropTypes__default["default"].element,
|
|
2762
|
+
iconJpg: PropTypes__default["default"].element,
|
|
2763
|
+
iconDocx: PropTypes__default["default"].element,
|
|
2764
|
+
iconJpeg: PropTypes__default["default"].element,
|
|
2765
|
+
iconHeic: PropTypes__default["default"].element,
|
|
2766
|
+
iconWrong: PropTypes__default["default"].element,
|
|
2767
|
+
iconUpload: PropTypes__default["default"].element,
|
|
2768
|
+
iconRequired: PropTypes__default["default"].element,
|
|
2769
|
+
iconDeleteItem: PropTypes__default["default"].element,
|
|
2770
|
+
iconRemoveFile: PropTypes__default["default"].element,
|
|
2771
|
+
iconDeleteComponent: PropTypes__default["default"].element,
|
|
2772
|
+
uploadBtnFont: PropTypes__default["default"].string,
|
|
2773
|
+
uploadBtnSize: PropTypes__default["default"].string,
|
|
2774
|
+
uploadBtnStyle: PropTypes__default["default"].string,
|
|
2775
|
+
uploadBtnWeight: PropTypes__default["default"].string,
|
|
2776
|
+
uploadBtnLabel: PropTypes__default["default"].string,
|
|
2777
|
+
uploadBtnColor: PropTypes__default["default"].string,
|
|
2778
|
+
uploadBtnHeight: PropTypes__default["default"].string,
|
|
2779
|
+
uploadBtnBackgroundColor: PropTypes__default["default"].string,
|
|
2780
|
+
uploadBtnBackgroundColorHover: PropTypes__default["default"].string,
|
|
2781
|
+
listItemHeight: PropTypes__default["default"].string,
|
|
2782
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
2783
|
+
change: PropTypes__default["default"].func.isRequired,
|
|
2784
|
+
listItemPadding: PropTypes__default["default"].string,
|
|
2785
|
+
maxCHoosenLength: PropTypes__default["default"].number,
|
|
2786
|
+
progressFontSize: PropTypes__default["default"].string,
|
|
2787
|
+
progressFontStyle: PropTypes__default["default"].string,
|
|
2788
|
+
progressFontWeight: PropTypes__default["default"].string,
|
|
2789
|
+
progressFontFamily: PropTypes__default["default"].string,
|
|
2790
|
+
borderHoverColor: PropTypes__default["default"].string,
|
|
2791
|
+
listItemErrorSize: PropTypes__default["default"].string,
|
|
2792
|
+
listItemErrorStyle: PropTypes__default["default"].string,
|
|
2793
|
+
listItemErrorWeight: PropTypes__default["default"].string,
|
|
2794
|
+
listItemErrorFamily: PropTypes__default["default"].string,
|
|
2795
|
+
timeForRemoveError: PropTypes__default["default"].number,
|
|
2796
|
+
progressTrackColor: PropTypes__default["default"].string,
|
|
2797
|
+
fileAreaImageWidth: PropTypes__default["default"].string,
|
|
2798
|
+
listItemErrorColor: PropTypes__default["default"].string,
|
|
2799
|
+
fileAreaImageHeight: PropTypes__default["default"].string,
|
|
2800
|
+
progressFailedColor: PropTypes__default["default"].string,
|
|
2801
|
+
progressSuccessColor: PropTypes__default["default"].string,
|
|
2802
|
+
progressLoadingColor: PropTypes__default["default"].string,
|
|
2803
|
+
hiddenBackgroundColor: PropTypes__default["default"].string,
|
|
2804
|
+
maxCHoosenLengthError: PropTypes__default["default"].string,
|
|
2805
|
+
extentionsRowMarginTop: PropTypes__default["default"].string,
|
|
2806
|
+
listItemBackgroundColor: PropTypes__default["default"].string,
|
|
2807
|
+
listItemBackgroundErrorColor: PropTypes__default["default"].string,
|
|
2808
|
+
maxCHoosenLengthErrorHideTime: PropTypes__default["default"].number,
|
|
2809
|
+
filesArray: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
2810
|
+
textAlignLeftInSmallComponent: PropTypes__default["default"].bool,
|
|
2811
|
+
showPreviewIconInSmallComponent: PropTypes__default["default"].bool,
|
|
2812
|
+
fileExtensions: PropTypes__default["default"].arrayOf(PropTypes__default["default"].string),
|
|
2813
|
+
extentionsTextDots: PropTypes__default["default"].bool,
|
|
2814
|
+
extentionsTextColor: PropTypes__default["default"].string
|
|
2735
2815
|
};
|
|
2736
2816
|
|
|
2737
2817
|
const hasOwnerProperty = (object, property) => {
|
|
@@ -2768,7 +2848,11 @@ const handleUtilsCheckTypeTel = (val, prevVal) => {
|
|
|
2768
2848
|
return val;
|
|
2769
2849
|
};
|
|
2770
2850
|
const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength, cardNumber) => {
|
|
2771
|
-
{
|
|
2851
|
+
if (maxLength && maxLength > 0) {
|
|
2852
|
+
if (val.length > maxLength) {
|
|
2853
|
+
val = val.substr(0, maxLength);
|
|
2854
|
+
}
|
|
2855
|
+
} else {
|
|
2772
2856
|
const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.|\․|\.|\,)?(\d+)?$/ : /^\d+$/;
|
|
2773
2857
|
if (cardNumber) {
|
|
2774
2858
|
if (val.length > 19 && !val.includes('.')) {
|
|
@@ -2905,7 +2989,7 @@ const Checkbox$1 = ({
|
|
|
2905
2989
|
alert('Please set index value as valid number');
|
|
2906
2990
|
}
|
|
2907
2991
|
}, [innerIndex]);
|
|
2908
|
-
return /*#__PURE__*/
|
|
2992
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2909
2993
|
style: {
|
|
2910
2994
|
width: label ? 'fit-content' : '16px',
|
|
2911
2995
|
height: '16px',
|
|
@@ -2915,11 +2999,11 @@ const Checkbox$1 = ({
|
|
|
2915
2999
|
...styles
|
|
2916
3000
|
},
|
|
2917
3001
|
onClick: !innerDisabled && handleChecked ? handleClick : _ => _
|
|
2918
|
-
}, innerChecked && (ignoreDisabledForChecked ?? !innerDisabled) ? checkedIcon ? checkedIcon : /*#__PURE__*/
|
|
3002
|
+
}, innerChecked && (ignoreDisabledForChecked ?? !innerDisabled) ? checkedIcon ? checkedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxChecked, {
|
|
2919
3003
|
fillColor: checkedColor
|
|
2920
|
-
}) : unCheckedIcon ? unCheckedIcon : /*#__PURE__*/
|
|
3004
|
+
}) : unCheckedIcon ? unCheckedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxUnchecked, {
|
|
2921
3005
|
fillColor: unCheckedColor
|
|
2922
|
-
}), label && /*#__PURE__*/
|
|
3006
|
+
}), label && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2923
3007
|
style: {
|
|
2924
3008
|
marginLeft: labelMarginLeft
|
|
2925
3009
|
}
|
|
@@ -2958,7 +3042,7 @@ const SingleCheckbox = ({
|
|
|
2958
3042
|
console.error(error);
|
|
2959
3043
|
});
|
|
2960
3044
|
}, []);
|
|
2961
|
-
return configStyles.CHECKBOX && /*#__PURE__*/
|
|
3045
|
+
return configStyles.CHECKBOX && /*#__PURE__*/React__default["default"].createElement(Checkbox$1, {
|
|
2962
3046
|
index: index,
|
|
2963
3047
|
label: label,
|
|
2964
3048
|
styles: styles,
|
|
@@ -2976,19 +3060,19 @@ const SingleCheckbox = ({
|
|
|
2976
3060
|
});
|
|
2977
3061
|
};
|
|
2978
3062
|
SingleCheckbox.propTypes = {
|
|
2979
|
-
data:
|
|
2980
|
-
label:
|
|
2981
|
-
onClick:
|
|
2982
|
-
index:
|
|
2983
|
-
styles:
|
|
2984
|
-
disabled:
|
|
2985
|
-
innerIndex:
|
|
2986
|
-
checkedColor:
|
|
2987
|
-
checkedIcon:
|
|
2988
|
-
unCheckedIcon:
|
|
2989
|
-
unCheckedColor:
|
|
2990
|
-
labelMarginLeft:
|
|
2991
|
-
ignoreDisabledForChecked:
|
|
3063
|
+
data: PropTypes__default["default"].object,
|
|
3064
|
+
label: PropTypes__default["default"].string,
|
|
3065
|
+
onClick: PropTypes__default["default"].func,
|
|
3066
|
+
index: PropTypes__default["default"].number,
|
|
3067
|
+
styles: PropTypes__default["default"].object,
|
|
3068
|
+
disabled: PropTypes__default["default"].bool,
|
|
3069
|
+
innerIndex: PropTypes__default["default"].number,
|
|
3070
|
+
checkedColor: PropTypes__default["default"].string,
|
|
3071
|
+
checkedIcon: PropTypes__default["default"].element,
|
|
3072
|
+
unCheckedIcon: PropTypes__default["default"].element,
|
|
3073
|
+
unCheckedColor: PropTypes__default["default"].string,
|
|
3074
|
+
labelMarginLeft: PropTypes__default["default"].string,
|
|
3075
|
+
ignoreDisabledForChecked: PropTypes__default["default"].bool
|
|
2992
3076
|
};
|
|
2993
3077
|
|
|
2994
3078
|
var css_248z$b = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}.table-module_no-tabel-data__6xp3N{align-items:center;display:flex;height:200px;justify-content:center;width:100%}";
|
|
@@ -3018,7 +3102,7 @@ const TH = ({
|
|
|
3018
3102
|
handleCheckArrowActionHeader(e, object);
|
|
3019
3103
|
}
|
|
3020
3104
|
};
|
|
3021
|
-
return /*#__PURE__*/
|
|
3105
|
+
return /*#__PURE__*/React__default["default"].createElement("th", {
|
|
3022
3106
|
style: {
|
|
3023
3107
|
width: 'auto',
|
|
3024
3108
|
cursor: 'pointer',
|
|
@@ -3036,20 +3120,20 @@ const TH = ({
|
|
|
3036
3120
|
},
|
|
3037
3121
|
onClick: handleHeaderItemClick,
|
|
3038
3122
|
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$a['sorting-arrows'] : '' : ''}`
|
|
3039
|
-
}, /*#__PURE__*/
|
|
3123
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3040
3124
|
style: {
|
|
3041
3125
|
display: 'flex',
|
|
3042
3126
|
alignItems: 'flex-start',
|
|
3043
3127
|
justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
|
|
3044
3128
|
}
|
|
3045
|
-
}, hasOwnerProperty(item, 'checkBox') ? /*#__PURE__*/
|
|
3129
|
+
}, hasOwnerProperty(item, 'checkBox') ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
3046
3130
|
data: item,
|
|
3047
3131
|
checked: item.checkBox.checked,
|
|
3048
3132
|
disabled: item.checkBox.disabled,
|
|
3049
3133
|
handleChecked: !item.checkBox.disabled ? handleCheckedHeader : _ => _,
|
|
3050
3134
|
checkedColor: item.checkBox.checkedColor ? item.checkBox.checkedColor : '',
|
|
3051
3135
|
unCheckedColor: item.checkBox.unCheckedColor ? item.checkBox.unCheckedColor : ''
|
|
3052
|
-
}) : '', /*#__PURE__*/
|
|
3136
|
+
}) : '', /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3053
3137
|
style: {
|
|
3054
3138
|
margin: '0px',
|
|
3055
3139
|
whiteSpace: 'nowrap'
|
|
@@ -3163,7 +3247,7 @@ const TD = ({
|
|
|
3163
3247
|
};
|
|
3164
3248
|
});
|
|
3165
3249
|
};
|
|
3166
|
-
return /*#__PURE__*/
|
|
3250
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
|
3167
3251
|
style: {
|
|
3168
3252
|
width: 'auto',
|
|
3169
3253
|
color: tBodyColor,
|
|
@@ -3187,7 +3271,7 @@ const TD = ({
|
|
|
3187
3271
|
onClick: e => handleClickOnRowTd(e, row, item, index, innerIndex)
|
|
3188
3272
|
}, Array.isArray(item) ? item.length > 0 ? item.map((newItem, newIndex) => {
|
|
3189
3273
|
if (newItem && !Array.isArray(newItem) && typeof newItem === 'object') {
|
|
3190
|
-
return /*#__PURE__*/
|
|
3274
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3191
3275
|
style: {
|
|
3192
3276
|
width: '32px',
|
|
3193
3277
|
height: '32px',
|
|
@@ -3203,7 +3287,7 @@ const TD = ({
|
|
|
3203
3287
|
onMouseLeave: () => handleMouseLeave()
|
|
3204
3288
|
}, newItem.content === 0 ? newItem.content.toString() : newItem.contentHover && actionHover.id === newItem.id && actionHover.type === newItem.type && actionHover.index === newIndex ? newItem.contentHover : newItem.content ? newItem.content : '');
|
|
3205
3289
|
} else if (newItem && Array.isArray(newItem)) {
|
|
3206
|
-
return /*#__PURE__*/
|
|
3290
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3207
3291
|
key: `${newItem.id}_${newIndex}`,
|
|
3208
3292
|
style: {
|
|
3209
3293
|
display: 'inline-block',
|
|
@@ -3211,7 +3295,7 @@ const TD = ({
|
|
|
3211
3295
|
borderRight: newIndex !== item.length - 1 ? '1px solid rgb(238, 238, 238)' : 'none'
|
|
3212
3296
|
}
|
|
3213
3297
|
}, item[newIndex].map((iT, iN) => {
|
|
3214
|
-
return /*#__PURE__*/
|
|
3298
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3215
3299
|
style: {
|
|
3216
3300
|
width: '32px',
|
|
3217
3301
|
height: '32px',
|
|
@@ -3228,17 +3312,17 @@ const TD = ({
|
|
|
3228
3312
|
}, iT.content === 0 ? iT.content.toString() : iT.contentHover && actionHover.id === iT.id && actionHover.type === iT.type && actionHover.index === iN ? iT.contentHover : iT.content ? iT.content : '');
|
|
3229
3313
|
}));
|
|
3230
3314
|
} else {
|
|
3231
|
-
return /*#__PURE__*/
|
|
3315
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3232
3316
|
key: `${newItem.id}_${newIndex}`
|
|
3233
3317
|
}, newItem);
|
|
3234
3318
|
}
|
|
3235
|
-
}) : /*#__PURE__*/
|
|
3319
|
+
}) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null) : item !== null && !Array.isArray(item) && typeof item === 'object' ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3236
3320
|
style: {
|
|
3237
3321
|
display: 'flex',
|
|
3238
3322
|
alignItems: 'flex-start',
|
|
3239
3323
|
justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
|
|
3240
3324
|
}
|
|
3241
|
-
}, !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/
|
|
3325
|
+
}, !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3242
3326
|
id: item.id,
|
|
3243
3327
|
style: {
|
|
3244
3328
|
width: '21px',
|
|
@@ -3247,7 +3331,7 @@ const TD = ({
|
|
|
3247
3331
|
},
|
|
3248
3332
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
3249
3333
|
className: styles$a['td-span']
|
|
3250
|
-
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'draggableIcon') && /*#__PURE__*/
|
|
3334
|
+
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'draggableIcon') && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3251
3335
|
draggable: true,
|
|
3252
3336
|
style: {
|
|
3253
3337
|
width: '24px',
|
|
@@ -3257,10 +3341,10 @@ const TD = ({
|
|
|
3257
3341
|
onDrag: dragged,
|
|
3258
3342
|
onDragEnd: dragEnd,
|
|
3259
3343
|
onDragStart: e => dragStart(e, index, row)
|
|
3260
|
-
}, /*#__PURE__*/
|
|
3344
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3261
3345
|
src: img$1,
|
|
3262
3346
|
alt: "drag"
|
|
3263
|
-
})), hasOwnerProperty(item, 'draggable') && /*#__PURE__*/
|
|
3347
|
+
})), hasOwnerProperty(item, 'draggable') && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3264
3348
|
style: {
|
|
3265
3349
|
color: orderColor,
|
|
3266
3350
|
fontSize: orderFontSize,
|
|
@@ -3268,7 +3352,7 @@ const TD = ({
|
|
|
3268
3352
|
fontFamily: orderFontFamily,
|
|
3269
3353
|
fontWeight: orderFontWeight
|
|
3270
3354
|
}
|
|
3271
|
-
}, item.order), hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/
|
|
3355
|
+
}, item.order), hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
3272
3356
|
data: item,
|
|
3273
3357
|
index: index,
|
|
3274
3358
|
innerIndex: innerIndex,
|
|
@@ -3277,13 +3361,13 @@ const TD = ({
|
|
|
3277
3361
|
disabled: item.checkBox.disabled,
|
|
3278
3362
|
checkedColor: item.checkBox.checkedColor,
|
|
3279
3363
|
unCheckedColor: item.checkBox.unCheckedColor
|
|
3280
|
-
}), /*#__PURE__*/
|
|
3364
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3281
3365
|
style: {
|
|
3282
3366
|
flexShrink: 11,
|
|
3283
3367
|
marginLeft: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '0px' : '11px' : hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow') ? '11px' : '0px' : '0px',
|
|
3284
3368
|
marginRight: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '11px' : '0px' : '0px' : '0px'
|
|
3285
3369
|
}
|
|
3286
|
-
}, /*#__PURE__*/
|
|
3370
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3287
3371
|
style: {
|
|
3288
3372
|
textAlign: tBodyTextAlign,
|
|
3289
3373
|
margin: '0px',
|
|
@@ -3291,12 +3375,12 @@ const TD = ({
|
|
|
3291
3375
|
...item.props
|
|
3292
3376
|
},
|
|
3293
3377
|
onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, collapseFullRow ? index : item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
|
|
3294
|
-
}, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/
|
|
3378
|
+
}, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3295
3379
|
style: {
|
|
3296
3380
|
display: 'block',
|
|
3297
3381
|
position: 'relative'
|
|
3298
3382
|
}
|
|
3299
|
-
}, item.dotsStatus === 'deActive' ? item.deActiveIcon : item.activeIcon, /*#__PURE__*/
|
|
3383
|
+
}, item.dotsStatus === 'deActive' ? item.deActiveIcon : item.activeIcon, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3300
3384
|
style: {
|
|
3301
3385
|
position: 'absolute',
|
|
3302
3386
|
display: item.dotsStatus === 'deActive' ? 'none' : 'block',
|
|
@@ -3313,7 +3397,7 @@ const TD = ({
|
|
|
3313
3397
|
boxShadow: '0px 0px 20px 0px #3C393E4D'
|
|
3314
3398
|
}
|
|
3315
3399
|
}, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
3316
|
-
return /*#__PURE__*/
|
|
3400
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3317
3401
|
key: `${optionItem.content}_${optionIndex}`,
|
|
3318
3402
|
className: styles$a['dots-option-item'],
|
|
3319
3403
|
style: {
|
|
@@ -3322,11 +3406,11 @@ const TD = ({
|
|
|
3322
3406
|
fontFamily: 'Noto Sans Armenian'
|
|
3323
3407
|
},
|
|
3324
3408
|
onClick: () => handleMoreOptions(item, index, optionItem, innerIndex, optionIndex, item.options)
|
|
3325
|
-
}, /*#__PURE__*/
|
|
3409
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3326
3410
|
style: {
|
|
3327
3411
|
marginRight: '10px'
|
|
3328
3412
|
}
|
|
3329
|
-
}, optionItem.icon), /*#__PURE__*/
|
|
3413
|
+
}, optionItem.icon), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3330
3414
|
style: {
|
|
3331
3415
|
width: 'calc(100% - 36px)',
|
|
3332
3416
|
textAlign: 'left',
|
|
@@ -3337,7 +3421,7 @@ const TD = ({
|
|
|
3337
3421
|
},
|
|
3338
3422
|
title: optionItem.content
|
|
3339
3423
|
}, optionItem.content === 0 ? optionItem.content.toString() : optionItem.content ? optionItem.content : ''));
|
|
3340
|
-
}))) : ''), hasOwnerProperty(item, 'contentList') && !collapseFullRow && /*#__PURE__*/
|
|
3424
|
+
}))) : ''), hasOwnerProperty(item, 'contentList') && !collapseFullRow && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3341
3425
|
style: {
|
|
3342
3426
|
overflow: 'auto',
|
|
3343
3427
|
marginTop: '10px',
|
|
@@ -3347,7 +3431,7 @@ const TD = ({
|
|
|
3347
3431
|
}
|
|
3348
3432
|
}, item.contentList.map((innerItem, innerItemIndex) => {
|
|
3349
3433
|
if (Array.isArray(innerItem.content)) {
|
|
3350
|
-
return /*#__PURE__*/
|
|
3434
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3351
3435
|
key: `__${innerItemIndex}__`,
|
|
3352
3436
|
style: {
|
|
3353
3437
|
display: 'flex',
|
|
@@ -3355,7 +3439,7 @@ const TD = ({
|
|
|
3355
3439
|
marginTop: innerItemIndex === 0 ? '28px' : '0px'
|
|
3356
3440
|
}
|
|
3357
3441
|
}, innerItem.content.map((contInnerItem, contInnerIndex) => {
|
|
3358
|
-
return /*#__PURE__*/
|
|
3442
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3359
3443
|
key: `${contInnerItem}_${contInnerIndex}`,
|
|
3360
3444
|
className: styles$a['list-text'],
|
|
3361
3445
|
style: {
|
|
@@ -3372,7 +3456,7 @@ const TD = ({
|
|
|
3372
3456
|
}, contInnerItem.content === 0 ? contInnerItem.content.toString() : contInnerItem.content ? contInnerItem.content : '');
|
|
3373
3457
|
}));
|
|
3374
3458
|
} else {
|
|
3375
|
-
return /*#__PURE__*/
|
|
3459
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3376
3460
|
key: `${innerItem}_${innerItemIndex}`,
|
|
3377
3461
|
className: styles$a['list-text'],
|
|
3378
3462
|
style: {
|
|
@@ -3387,7 +3471,7 @@ const TD = ({
|
|
|
3387
3471
|
onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
|
|
3388
3472
|
}, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
|
|
3389
3473
|
}
|
|
3390
|
-
}))), !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/
|
|
3474
|
+
}))), !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3391
3475
|
id: item.id,
|
|
3392
3476
|
style: {
|
|
3393
3477
|
width: '21px',
|
|
@@ -3638,8 +3722,8 @@ const Table = ({
|
|
|
3638
3722
|
status: 'close',
|
|
3639
3723
|
checkIndex: null,
|
|
3640
3724
|
arrowComponent: true,
|
|
3641
|
-
openArrow: openArrow ? openArrow : configStyles.TABLE?.openArrow ? configStyles.TABLE?.openArrow : /*#__PURE__*/
|
|
3642
|
-
closeArrow: closeArrow ? closeArrow : configStyles.TABLE?.closeArrow ? configStyles.TABLE?.closeArrow : /*#__PURE__*/
|
|
3725
|
+
openArrow: openArrow ? openArrow : configStyles.TABLE?.openArrow ? configStyles.TABLE?.openArrow : /*#__PURE__*/React__default["default"].createElement(SvgUpArrow, null),
|
|
3726
|
+
closeArrow: closeArrow ? closeArrow : configStyles.TABLE?.closeArrow ? configStyles.TABLE?.closeArrow : /*#__PURE__*/React__default["default"].createElement(SvgDownArrow, null)
|
|
3643
3727
|
};
|
|
3644
3728
|
if (type === 'body') {
|
|
3645
3729
|
return data.map((item, index) => {
|
|
@@ -4220,11 +4304,11 @@ const Table = ({
|
|
|
4220
4304
|
}
|
|
4221
4305
|
}, [dataHeader, arrowColumn, arrowShow, disableArr, draggable]);
|
|
4222
4306
|
React.useEffect(() => {
|
|
4223
|
-
className && setClassProps(() =>
|
|
4307
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TABLE.className));
|
|
4224
4308
|
}, [className]);
|
|
4225
4309
|
React.useEffect(() => {
|
|
4226
4310
|
configStylesPromise.then(data => {
|
|
4227
|
-
setClassProps(() =>
|
|
4311
|
+
setClassProps(() => classnames__default["default"](className ?? data.TABLE.className));
|
|
4228
4312
|
setConfigStyles(() => {
|
|
4229
4313
|
return {
|
|
4230
4314
|
...data
|
|
@@ -4234,7 +4318,7 @@ const Table = ({
|
|
|
4234
4318
|
console.error(error);
|
|
4235
4319
|
});
|
|
4236
4320
|
}, []);
|
|
4237
|
-
return configStyles.TABLE && /*#__PURE__*/
|
|
4321
|
+
return configStyles.TABLE && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("table", {
|
|
4238
4322
|
style: {
|
|
4239
4323
|
width: '100%',
|
|
4240
4324
|
borderRadius: tHeadBorderRadius ?? configStyles.TABLE.head.radius,
|
|
@@ -4245,16 +4329,16 @@ const Table = ({
|
|
|
4245
4329
|
},
|
|
4246
4330
|
onClick: handleTableClick,
|
|
4247
4331
|
className: classProps
|
|
4248
|
-
}, header && header.length > 0 && /*#__PURE__*/
|
|
4332
|
+
}, header && header.length > 0 && /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
4249
4333
|
ref: headerRef
|
|
4250
|
-
}, /*#__PURE__*/
|
|
4334
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
4251
4335
|
style: {
|
|
4252
4336
|
color: tHeadColor ?? configStyles.TABLE.head.color,
|
|
4253
4337
|
backgroundColor: tHeadBackgroundColor ?? configStyles.TABLE.head.colors.background,
|
|
4254
4338
|
borderColor: hideBorder ? 'transparent' : tableBorderColor ?? configStyles.TABLE.borderColor
|
|
4255
4339
|
}
|
|
4256
4340
|
}, header.map((item, index) => {
|
|
4257
|
-
return /*#__PURE__*/
|
|
4341
|
+
return /*#__PURE__*/React__default["default"].createElement(TH, {
|
|
4258
4342
|
item: item,
|
|
4259
4343
|
hideBorder: hideBorder,
|
|
4260
4344
|
key: `${item}_${index}`,
|
|
@@ -4272,14 +4356,14 @@ const Table = ({
|
|
|
4272
4356
|
tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
|
|
4273
4357
|
tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth
|
|
4274
4358
|
});
|
|
4275
|
-
}))), body && body.length > 0 ? /*#__PURE__*/
|
|
4359
|
+
}))), body && body.length > 0 ? /*#__PURE__*/React__default["default"].createElement("tbody", {
|
|
4276
4360
|
style: {
|
|
4277
4361
|
boxShadow: tBodyBoxShadow ?? configStyles.TABLE.body.box.shadow
|
|
4278
4362
|
}
|
|
4279
4363
|
}, body.map((item, index) => {
|
|
4280
|
-
return /*#__PURE__*/
|
|
4364
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
4281
4365
|
onDragOver: e => e.preventDefault(),
|
|
4282
|
-
onDrop: e => handleDrop(e, index),
|
|
4366
|
+
onDrop: draggable ? e => handleDrop(e, index) : _ => _,
|
|
4283
4367
|
key: `${item}_${index}`,
|
|
4284
4368
|
style: {
|
|
4285
4369
|
backgroundColor: tableRowBGColor ?? configStyles.TABLE.body.row.colors.background,
|
|
@@ -4289,15 +4373,15 @@ const Table = ({
|
|
|
4289
4373
|
},
|
|
4290
4374
|
ref: el => setRef(index, el)
|
|
4291
4375
|
}, Object.values(item).map((innerItem, innerIndex) => {
|
|
4292
|
-
return /*#__PURE__*/
|
|
4376
|
+
return /*#__PURE__*/React__default["default"].createElement(TD, {
|
|
4293
4377
|
index: index,
|
|
4294
4378
|
item: innerItem,
|
|
4295
|
-
dragged: handleDrag,
|
|
4379
|
+
dragged: draggable ? handleDrag : _ => _,
|
|
4296
4380
|
hideBorder: hideBorder,
|
|
4297
4381
|
innerIndex: innerIndex,
|
|
4298
|
-
dragEnd: handleDragEnd,
|
|
4382
|
+
dragEnd: draggable ? handleDragEnd : _ => _,
|
|
4299
4383
|
row: Object.values(item),
|
|
4300
|
-
dragStart: handleDragStart,
|
|
4384
|
+
dragStart: draggable ? handleDragStart : _ => _,
|
|
4301
4385
|
id: item.id ? item.id : '',
|
|
4302
4386
|
handleCheckDots: handleCheckDots,
|
|
4303
4387
|
key: `${innerItem}_${index}_${innerIndex}`,
|
|
@@ -4333,7 +4417,7 @@ const Table = ({
|
|
|
4333
4417
|
collapseFullRow: collapseFullRow
|
|
4334
4418
|
});
|
|
4335
4419
|
}));
|
|
4336
|
-
})) : '', body && body.length > 0 && draggable && dragging && draggedItem && /*#__PURE__*/
|
|
4420
|
+
})) : '', body && body.length > 0 && draggable && dragging && draggedItem && /*#__PURE__*/React__default["default"].createElement("tbody", null, /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
4337
4421
|
style: {
|
|
4338
4422
|
position: 'fixed',
|
|
4339
4423
|
top: `${position.y - 30}px`,
|
|
@@ -4347,13 +4431,13 @@ const Table = ({
|
|
|
4347
4431
|
backgroundColor: draggableItemBackgroundColor ?? configStyles.TABLE.draggable.color.background
|
|
4348
4432
|
}
|
|
4349
4433
|
}, draggedItem.map((innerItem, innerIndex) => {
|
|
4350
|
-
return /*#__PURE__*/
|
|
4434
|
+
return /*#__PURE__*/React__default["default"].createElement(TD, {
|
|
4351
4435
|
item: innerItem,
|
|
4352
|
-
dragged: handleDrag,
|
|
4436
|
+
dragged: draggable ? handleDrag : _ => _,
|
|
4353
4437
|
hideBorder: hideBorder,
|
|
4354
4438
|
innerIndex: innerIndex,
|
|
4355
4439
|
row: Object.values(draggedItem),
|
|
4356
|
-
dragStart: handleDragStart,
|
|
4440
|
+
dragStart: draggable ? handleDragStart : _ => _,
|
|
4357
4441
|
handleCheckDots: handleCheckDots,
|
|
4358
4442
|
key: `${innerItem}__${innerIndex}`,
|
|
4359
4443
|
openListColor: openListColor ?? configStyles.TABLE.openList.color,
|
|
@@ -4379,60 +4463,60 @@ const Table = ({
|
|
|
4379
4463
|
borderRight: innerIndex === Object.values(draggedItem).length - 1 ? 'none' : configStyles.TABLE.body.row.border,
|
|
4380
4464
|
borderRightColor: innerIndex === Object.values(draggedItem).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor
|
|
4381
4465
|
});
|
|
4382
|
-
})))), !body.length && /*#__PURE__*/
|
|
4466
|
+
})))), !body.length && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4383
4467
|
className: styles$a['no-tabel-data']
|
|
4384
|
-
}, /*#__PURE__*/
|
|
4468
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", null, "\u054F\u057E\u0575\u0561\u056C\u0576\u0565\u0580 \u0579\u056F\u0561\u0576")));
|
|
4385
4469
|
};
|
|
4386
4470
|
Table.propTypes = {
|
|
4387
|
-
getData:
|
|
4388
|
-
getDraggableData:
|
|
4389
|
-
draggable:
|
|
4390
|
-
showOrder:
|
|
4391
|
-
dataBody:
|
|
4392
|
-
arrowShow:
|
|
4393
|
-
dataHeader:
|
|
4394
|
-
arrowColumn:
|
|
4395
|
-
tableRowItem:
|
|
4396
|
-
tableRowRadius:
|
|
4397
|
-
tableRowBGColor:
|
|
4398
|
-
tableRowBoxShadow:
|
|
4399
|
-
tableColumnMaxWidth:
|
|
4400
|
-
tableColumnMinWidth:
|
|
4401
|
-
tHeadColor:
|
|
4402
|
-
tHeadFamily:
|
|
4403
|
-
tHeadPadding:
|
|
4404
|
-
tHeadFontSize:
|
|
4405
|
-
tHeadFontStyle:
|
|
4406
|
-
tHeadTextAlign:
|
|
4407
|
-
tHeadFontWeight:
|
|
4408
|
-
tHeadBorderRadius:
|
|
4409
|
-
tHeadBackgroundColor:
|
|
4410
|
-
tBodyColor:
|
|
4411
|
-
tBodyPadding:
|
|
4412
|
-
tBodyFontSize:
|
|
4413
|
-
tBodyBoxShadow:
|
|
4414
|
-
tBodyTextAlign:
|
|
4415
|
-
tBodyFontWeight:
|
|
4416
|
-
tBodyFontFamily:
|
|
4417
|
-
tBodyRowMarginTop:
|
|
4418
|
-
className:
|
|
4419
|
-
tBodyRowBorder:
|
|
4420
|
-
openListColor:
|
|
4421
|
-
openListFontSize:
|
|
4422
|
-
openListFontStyle:
|
|
4423
|
-
openListFontWeight:
|
|
4424
|
-
openListFontFamily:
|
|
4425
|
-
hideBorder:
|
|
4426
|
-
collapseFullRow:
|
|
4427
|
-
tableBorder:
|
|
4428
|
-
tableBorderColor:
|
|
4429
|
-
openArrow:
|
|
4430
|
-
closeArrow:
|
|
4431
|
-
clickableRowColumnTd:
|
|
4471
|
+
getData: PropTypes__default["default"].func,
|
|
4472
|
+
getDraggableData: PropTypes__default["default"].func,
|
|
4473
|
+
draggable: PropTypes__default["default"].bool,
|
|
4474
|
+
showOrder: PropTypes__default["default"].bool,
|
|
4475
|
+
dataBody: PropTypes__default["default"].array,
|
|
4476
|
+
arrowShow: PropTypes__default["default"].bool,
|
|
4477
|
+
dataHeader: PropTypes__default["default"].array,
|
|
4478
|
+
arrowColumn: PropTypes__default["default"].number,
|
|
4479
|
+
tableRowItem: PropTypes__default["default"].bool,
|
|
4480
|
+
tableRowRadius: PropTypes__default["default"].string,
|
|
4481
|
+
tableRowBGColor: PropTypes__default["default"].string,
|
|
4482
|
+
tableRowBoxShadow: PropTypes__default["default"].string,
|
|
4483
|
+
tableColumnMaxWidth: PropTypes__default["default"].string,
|
|
4484
|
+
tableColumnMinWidth: PropTypes__default["default"].string,
|
|
4485
|
+
tHeadColor: PropTypes__default["default"].string,
|
|
4486
|
+
tHeadFamily: PropTypes__default["default"].string,
|
|
4487
|
+
tHeadPadding: PropTypes__default["default"].string,
|
|
4488
|
+
tHeadFontSize: PropTypes__default["default"].string,
|
|
4489
|
+
tHeadFontStyle: PropTypes__default["default"].string,
|
|
4490
|
+
tHeadTextAlign: PropTypes__default["default"].string,
|
|
4491
|
+
tHeadFontWeight: PropTypes__default["default"].number,
|
|
4492
|
+
tHeadBorderRadius: PropTypes__default["default"].string,
|
|
4493
|
+
tHeadBackgroundColor: PropTypes__default["default"].string,
|
|
4494
|
+
tBodyColor: PropTypes__default["default"].string,
|
|
4495
|
+
tBodyPadding: PropTypes__default["default"].string,
|
|
4496
|
+
tBodyFontSize: PropTypes__default["default"].string,
|
|
4497
|
+
tBodyBoxShadow: PropTypes__default["default"].string,
|
|
4498
|
+
tBodyTextAlign: PropTypes__default["default"].string,
|
|
4499
|
+
tBodyFontWeight: PropTypes__default["default"].string,
|
|
4500
|
+
tBodyFontFamily: PropTypes__default["default"].string,
|
|
4501
|
+
tBodyRowMarginTop: PropTypes__default["default"].string,
|
|
4502
|
+
className: PropTypes__default["default"].string,
|
|
4503
|
+
tBodyRowBorder: PropTypes__default["default"].string,
|
|
4504
|
+
openListColor: PropTypes__default["default"].string,
|
|
4505
|
+
openListFontSize: PropTypes__default["default"].string,
|
|
4506
|
+
openListFontStyle: PropTypes__default["default"].string,
|
|
4507
|
+
openListFontWeight: PropTypes__default["default"].string,
|
|
4508
|
+
openListFontFamily: PropTypes__default["default"].string,
|
|
4509
|
+
hideBorder: PropTypes__default["default"].bool,
|
|
4510
|
+
collapseFullRow: PropTypes__default["default"].bool,
|
|
4511
|
+
tableBorder: PropTypes__default["default"].string,
|
|
4512
|
+
tableBorderColor: PropTypes__default["default"].string,
|
|
4513
|
+
openArrow: PropTypes__default["default"].element,
|
|
4514
|
+
closeArrow: PropTypes__default["default"].element,
|
|
4515
|
+
clickableRowColumnTd: PropTypes__default["default"].bool
|
|
4432
4516
|
};
|
|
4433
4517
|
|
|
4434
|
-
var css_248z$a = ".modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
|
|
4435
|
-
var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48"};
|
|
4518
|
+
var css_248z$a = "body.modal-module_tui-no-srcoll-class__gZjNK,html.modal-module_tui-no-srcoll-class__gZjNK{height:100%;overflow:hidden!important}.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)}}";
|
|
4519
|
+
var styles$9 = {"tui-no-srcoll-class":"modal-module_tui-no-srcoll-class__gZjNK","animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
|
|
4436
4520
|
styleInject(css_248z$a);
|
|
4437
4521
|
|
|
4438
4522
|
const SvgNext = ({
|
|
@@ -4678,15 +4762,26 @@ const Modal = ({
|
|
|
4678
4762
|
}
|
|
4679
4763
|
}, [selected]);
|
|
4680
4764
|
React.useEffect(() => {
|
|
4681
|
-
className && setClassProps(() =>
|
|
4765
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.MODAL.className));
|
|
4682
4766
|
}, [className]);
|
|
4683
4767
|
React.useEffect(() => {
|
|
4768
|
+
let newConfigStyles = {};
|
|
4769
|
+
const style = document.createElement('style');
|
|
4684
4770
|
document.addEventListener('keydown', e => {
|
|
4685
4771
|
handleESC(e);
|
|
4686
4772
|
handleNavigateArrow(e);
|
|
4687
4773
|
}, false);
|
|
4688
4774
|
configStylesPromise.then(data => {
|
|
4689
|
-
|
|
4775
|
+
newConfigStyles = {
|
|
4776
|
+
...data
|
|
4777
|
+
};
|
|
4778
|
+
if (newConfigStyles.MODAL && hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4779
|
+
style.textContent = `.tui-no-srcoll-class{overflow:hidden!important;}`;
|
|
4780
|
+
document.head.appendChild(style);
|
|
4781
|
+
document.body.classList.add('tui-no-srcoll-class');
|
|
4782
|
+
document.documentElement.classList.add('tui-no-srcoll-class');
|
|
4783
|
+
}
|
|
4784
|
+
setClassProps(() => classnames__default["default"](className ?? data.MODAL.className));
|
|
4690
4785
|
setConfigStyles(() => {
|
|
4691
4786
|
return {
|
|
4692
4787
|
...data
|
|
@@ -4698,13 +4793,21 @@ const Modal = ({
|
|
|
4698
4793
|
return () => {
|
|
4699
4794
|
setSelect(0);
|
|
4700
4795
|
setInnerData([]);
|
|
4796
|
+
if (newConfigStyles.MODAL && hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4797
|
+
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
4798
|
+
if (noScrllable) {
|
|
4799
|
+
style.remove();
|
|
4800
|
+
document.body.classList.remove('tui-no-srcoll-class');
|
|
4801
|
+
document.documentElement.classList.remove('tui-no-srcoll-class');
|
|
4802
|
+
}
|
|
4803
|
+
}
|
|
4701
4804
|
document.removeEventListener('keydown', e => {
|
|
4702
4805
|
handleESC(e);
|
|
4703
4806
|
handleNavigateArrow(e);
|
|
4704
4807
|
}, false);
|
|
4705
4808
|
};
|
|
4706
4809
|
}, []);
|
|
4707
|
-
return configStyles.MODAL && /*#__PURE__*/
|
|
4810
|
+
return configStyles.MODAL && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4708
4811
|
className: classProps,
|
|
4709
4812
|
onClick: handleCloseModal,
|
|
4710
4813
|
style: {
|
|
@@ -4716,7 +4819,7 @@ const Modal = ({
|
|
|
4716
4819
|
position: 'fixed',
|
|
4717
4820
|
backgroundColor: layerBackgroundColor ?? configStyles.MODAL.colors.backgroundLayer
|
|
4718
4821
|
}
|
|
4719
|
-
}, /*#__PURE__*/
|
|
4822
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4720
4823
|
style: {
|
|
4721
4824
|
position: 'relative',
|
|
4722
4825
|
display: 'flex',
|
|
@@ -4725,25 +4828,25 @@ const Modal = ({
|
|
|
4725
4828
|
alignItems: alignItems ?? configStyles.MODAL.alignItems,
|
|
4726
4829
|
justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
|
|
4727
4830
|
}
|
|
4728
|
-
}, /*#__PURE__*/
|
|
4831
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4729
4832
|
className: `${styles$9['animation__modal']}`,
|
|
4730
4833
|
onClick: handleStopClosing,
|
|
4731
4834
|
style: {
|
|
4732
4835
|
position: 'relative',
|
|
4733
4836
|
boxSizing: 'border-box',
|
|
4734
|
-
display: type === 'content' ? 'grid' : 'block',
|
|
4735
4837
|
width: width ?? configStyles.MODAL.width,
|
|
4736
|
-
overflow: type === 'content' ? 'auto' : 'hidden',
|
|
4737
4838
|
height: height ?? configStyles.MODAL.height,
|
|
4738
|
-
|
|
4839
|
+
display: type === 'content' ? 'grid' : 'block',
|
|
4840
|
+
overflow: type === 'content' ? 'auto' : 'hidden',
|
|
4739
4841
|
borderRadius: radius ?? configStyles.MODAL.radius,
|
|
4740
4842
|
maxWidth: mMaxWidth ?? configStyles.MODAL.maxWidth,
|
|
4741
4843
|
maxHeight: mMaxHeight ?? configStyles.MODAL.maxHeight,
|
|
4844
|
+
gridTemplateRows: type === 'content' ? 'auto 10fr' : '',
|
|
4742
4845
|
minWidth: type === 'content' ? minWidth ?? configStyles.MODAL.minWidth : '',
|
|
4743
4846
|
backgroundColor: backgroundColor ?? configStyles.MODAL.colors.background,
|
|
4744
4847
|
minHeight: type === 'content' ? minHeight ?? configStyles.MODAL.minHeight : ''
|
|
4745
4848
|
}
|
|
4746
|
-
}, type === 'content' && /*#__PURE__*/
|
|
4849
|
+
}, type === 'content' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4747
4850
|
style: {
|
|
4748
4851
|
position: closeIconFix ? 'relative' : 'unset',
|
|
4749
4852
|
width: '100%',
|
|
@@ -4756,7 +4859,7 @@ const Modal = ({
|
|
|
4756
4859
|
justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
|
|
4757
4860
|
backgroundColor: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
|
|
4758
4861
|
}
|
|
4759
|
-
}, headerIcon && type === 'content' && /*#__PURE__*/
|
|
4862
|
+
}, headerIcon && type === 'content' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4760
4863
|
style: {
|
|
4761
4864
|
display: 'flex',
|
|
4762
4865
|
width: 'fit-content',
|
|
@@ -4767,7 +4870,7 @@ const Modal = ({
|
|
|
4767
4870
|
maxHeight: headerIconMaxHeight ?? configStyles.MODAL.header.icon.maxHeight,
|
|
4768
4871
|
marginRight: headerIconMarginRight ?? configStyles.MODAL.header.icon.marginRight
|
|
4769
4872
|
}
|
|
4770
|
-
}, headerIcon), headerText && type === 'content' && /*#__PURE__*/
|
|
4873
|
+
}, headerIcon), headerText && type === 'content' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4771
4874
|
style: {
|
|
4772
4875
|
flex: '1',
|
|
4773
4876
|
overflow: 'hidden',
|
|
@@ -4781,7 +4884,7 @@ const Modal = ({
|
|
|
4781
4884
|
fontFamily: headerFamily ?? configStyles.MODAL.header.font.family,
|
|
4782
4885
|
fontWeight: headerWeight ?? configStyles.MODAL.header.font.weight
|
|
4783
4886
|
}
|
|
4784
|
-
}, headerText), showCloseIcon ? /*#__PURE__*/
|
|
4887
|
+
}, headerText), showCloseIcon ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4785
4888
|
onClick: () => setShow(false),
|
|
4786
4889
|
style: {
|
|
4787
4890
|
position: closeIconFix ? 'absolute' : 'unset',
|
|
@@ -4798,7 +4901,7 @@ const Modal = ({
|
|
|
4798
4901
|
justifyContent: 'center'
|
|
4799
4902
|
},
|
|
4800
4903
|
className: closeIconClass ? closeIconClass : configStyles.MODAL.icon.className
|
|
4801
|
-
}, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/
|
|
4904
|
+
}, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4802
4905
|
style: {
|
|
4803
4906
|
display: 'flex',
|
|
4804
4907
|
width: '100%',
|
|
@@ -4814,7 +4917,7 @@ const Modal = ({
|
|
|
4814
4917
|
},
|
|
4815
4918
|
onMouseEnter: handleMouseEnter,
|
|
4816
4919
|
onMouseLeave: handleMouseLeave
|
|
4817
|
-
}, type === 'content' ? children ? children : '' : /*#__PURE__*/
|
|
4920
|
+
}, type === 'content' ? children ? children : '' : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, innerData.length <= 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4818
4921
|
style: {
|
|
4819
4922
|
position: 'absolute',
|
|
4820
4923
|
display: 'flex',
|
|
@@ -4826,10 +4929,10 @@ const Modal = ({
|
|
|
4826
4929
|
justifyContent: 'center',
|
|
4827
4930
|
backgroundColor: 'rgba(60, 57, 62, 0.5)'
|
|
4828
4931
|
}
|
|
4829
|
-
}, loader ? loader : /*#__PURE__*/
|
|
4932
|
+
}, loader ? loader : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4830
4933
|
src: img,
|
|
4831
4934
|
alt: "loader"
|
|
4832
|
-
})), /*#__PURE__*/
|
|
4935
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4833
4936
|
style: {
|
|
4834
4937
|
position: 'absolute',
|
|
4835
4938
|
top: '0px',
|
|
@@ -4840,7 +4943,7 @@ const Modal = ({
|
|
|
4840
4943
|
height: grayDecorHeight ?? configStyles.MODAL.grayDecorHeight,
|
|
4841
4944
|
background: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
|
|
4842
4945
|
}
|
|
4843
|
-
}, /*#__PURE__*/
|
|
4946
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4844
4947
|
onClick: () => setShow(false),
|
|
4845
4948
|
style: {
|
|
4846
4949
|
position: 'absolute',
|
|
@@ -4855,7 +4958,7 @@ const Modal = ({
|
|
|
4855
4958
|
cursor: 'pointer',
|
|
4856
4959
|
backgroundColor: 'transparent'
|
|
4857
4960
|
}
|
|
4858
|
-
}, closeSlideIcon ? closeSlideIcon : configStyles.MODAL.icon.closeSlide ? configStyles.MODAL.icon.closeSlide : /*#__PURE__*/
|
|
4961
|
+
}, closeSlideIcon ? closeSlideIcon : configStyles.MODAL.icon.closeSlide ? configStyles.MODAL.icon.closeSlide : /*#__PURE__*/React__default["default"].createElement(SvgCloseSlide, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4859
4962
|
style: {
|
|
4860
4963
|
height: imageWrapHeight ?? configStyles.MODAL.image.wrapHeight
|
|
4861
4964
|
}
|
|
@@ -4864,9 +4967,9 @@ const Modal = ({
|
|
|
4864
4967
|
if (!hasOwnerProperty(item, 'url')) {
|
|
4865
4968
|
alert('Please add url property in data prop on each element');
|
|
4866
4969
|
} else {
|
|
4867
|
-
return /*#__PURE__*/
|
|
4970
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4868
4971
|
key: `${item.url}_${item.id ? item.id : '007'}_${index}`
|
|
4869
|
-
}, /*#__PURE__*/
|
|
4972
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4870
4973
|
style: {
|
|
4871
4974
|
display: 'block',
|
|
4872
4975
|
objectFit: 'contain',
|
|
@@ -4876,7 +4979,7 @@ const Modal = ({
|
|
|
4876
4979
|
height: imageHeight ?? configStyles.MODAL.image.height
|
|
4877
4980
|
},
|
|
4878
4981
|
src: item.url
|
|
4879
|
-
}), isHover && showZoomIcon ? /*#__PURE__*/
|
|
4982
|
+
}), isHover && showZoomIcon ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4880
4983
|
style: {
|
|
4881
4984
|
top: '0px',
|
|
4882
4985
|
left: '0px',
|
|
@@ -4894,10 +4997,10 @@ const Modal = ({
|
|
|
4894
4997
|
justifyContent: 'center'
|
|
4895
4998
|
},
|
|
4896
4999
|
onClick: () => handleUtilsOpenInNewTab(item.url)
|
|
4897
|
-
}, zoomIcon ? zoomIcon : configStyles.MODAL.icon.zoom ? configStyles.MODAL.icon.zoom : /*#__PURE__*/
|
|
5000
|
+
}, zoomIcon ? zoomIcon : configStyles.MODAL.icon.zoom ? configStyles.MODAL.icon.zoom : /*#__PURE__*/React__default["default"].createElement(SvgZoom, null)) : '');
|
|
4898
5001
|
}
|
|
4899
5002
|
}
|
|
4900
|
-
}), innerData && innerData.length > 1 && /*#__PURE__*/
|
|
5003
|
+
}), innerData && innerData.length > 1 && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4901
5004
|
ref: leftBtnRef,
|
|
4902
5005
|
onClick: () => handleGoTo('prev'),
|
|
4903
5006
|
style: {
|
|
@@ -4912,7 +5015,7 @@ const Modal = ({
|
|
|
4912
5015
|
top: 'calc(50% - 12px)',
|
|
4913
5016
|
backgroundColor: 'transparent'
|
|
4914
5017
|
}
|
|
4915
|
-
}, prevIcon ? prevIcon : configStyles.MODAL.icon.prev ? configStyles.MODAL.icon.prev : /*#__PURE__*/
|
|
5018
|
+
}, prevIcon ? prevIcon : configStyles.MODAL.icon.prev ? configStyles.MODAL.icon.prev : /*#__PURE__*/React__default["default"].createElement(SvgPrev, null)), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4916
5019
|
ref: rightBtnRef,
|
|
4917
5020
|
onClick: () => handleGoTo('next'),
|
|
4918
5021
|
style: {
|
|
@@ -4927,58 +5030,58 @@ const Modal = ({
|
|
|
4927
5030
|
top: 'calc(50% - 12px)',
|
|
4928
5031
|
backgroundColor: 'transparent'
|
|
4929
5032
|
}
|
|
4930
|
-
}, nextIcon ? nextIcon : configStyles.MODAL.icon.next ? configStyles.MODAL.icon.next : /*#__PURE__*/
|
|
5033
|
+
}, nextIcon ? nextIcon : configStyles.MODAL.icon.next ? configStyles.MODAL.icon.next : /*#__PURE__*/React__default["default"].createElement(SvgNext, null)))))))));
|
|
4931
5034
|
};
|
|
4932
5035
|
Modal.propTypes = {
|
|
4933
|
-
data:
|
|
4934
|
-
type:
|
|
4935
|
-
setShow:
|
|
4936
|
-
width:
|
|
4937
|
-
radius:
|
|
4938
|
-
height:
|
|
4939
|
-
padding:
|
|
4940
|
-
selected:
|
|
4941
|
-
minWidth:
|
|
4942
|
-
mMaxWidth:
|
|
4943
|
-
minHeight:
|
|
4944
|
-
className:
|
|
4945
|
-
zoomIcon:
|
|
4946
|
-
prevIcon:
|
|
4947
|
-
nextIcon:
|
|
4948
|
-
closeIcon:
|
|
4949
|
-
closeIconFix:
|
|
4950
|
-
showCloseIcon:
|
|
4951
|
-
closeIconClass:
|
|
4952
|
-
closeSlideIcon:
|
|
4953
|
-
closeIconTopPosition:
|
|
4954
|
-
closeIconRightPosition:
|
|
4955
|
-
headerText:
|
|
4956
|
-
headerSize:
|
|
4957
|
-
headerStyle:
|
|
4958
|
-
headerIcon:
|
|
4959
|
-
headerFamily:
|
|
4960
|
-
headerTextAlign:
|
|
4961
|
-
headerIconMaxWidth:
|
|
4962
|
-
headerIconMaxHeight:
|
|
4963
|
-
headerIconMarginRight:
|
|
4964
|
-
alignItems:
|
|
4965
|
-
mMaxHeight:
|
|
4966
|
-
imageWidth:
|
|
4967
|
-
outsideClose:
|
|
4968
|
-
showZoomIcon:
|
|
4969
|
-
imageMargin:
|
|
4970
|
-
borderStyle:
|
|
4971
|
-
borderWidth:
|
|
4972
|
-
headerColor:
|
|
4973
|
-
imageHeight:
|
|
4974
|
-
headerWeight:
|
|
4975
|
-
headerHeight:
|
|
4976
|
-
justifyContent:
|
|
4977
|
-
backgroundColor:
|
|
4978
|
-
grayDecorHeight:
|
|
4979
|
-
imageWrapHeight:
|
|
4980
|
-
layerBackgroundColor:
|
|
4981
|
-
closeAreaBackgroundColor:
|
|
5036
|
+
data: PropTypes__default["default"].array,
|
|
5037
|
+
type: PropTypes__default["default"].string,
|
|
5038
|
+
setShow: PropTypes__default["default"].func,
|
|
5039
|
+
width: PropTypes__default["default"].string,
|
|
5040
|
+
radius: PropTypes__default["default"].string,
|
|
5041
|
+
height: PropTypes__default["default"].string,
|
|
5042
|
+
padding: PropTypes__default["default"].string,
|
|
5043
|
+
selected: PropTypes__default["default"].number,
|
|
5044
|
+
minWidth: PropTypes__default["default"].string,
|
|
5045
|
+
mMaxWidth: PropTypes__default["default"].string,
|
|
5046
|
+
minHeight: PropTypes__default["default"].string,
|
|
5047
|
+
className: PropTypes__default["default"].string,
|
|
5048
|
+
zoomIcon: PropTypes__default["default"].element,
|
|
5049
|
+
prevIcon: PropTypes__default["default"].element,
|
|
5050
|
+
nextIcon: PropTypes__default["default"].element,
|
|
5051
|
+
closeIcon: PropTypes__default["default"].element,
|
|
5052
|
+
closeIconFix: PropTypes__default["default"].bool,
|
|
5053
|
+
showCloseIcon: PropTypes__default["default"].bool,
|
|
5054
|
+
closeIconClass: PropTypes__default["default"].string,
|
|
5055
|
+
closeSlideIcon: PropTypes__default["default"].element,
|
|
5056
|
+
closeIconTopPosition: PropTypes__default["default"].string,
|
|
5057
|
+
closeIconRightPosition: PropTypes__default["default"].string,
|
|
5058
|
+
headerText: PropTypes__default["default"].string,
|
|
5059
|
+
headerSize: PropTypes__default["default"].string,
|
|
5060
|
+
headerStyle: PropTypes__default["default"].string,
|
|
5061
|
+
headerIcon: PropTypes__default["default"].element,
|
|
5062
|
+
headerFamily: PropTypes__default["default"].string,
|
|
5063
|
+
headerTextAlign: PropTypes__default["default"].string,
|
|
5064
|
+
headerIconMaxWidth: PropTypes__default["default"].string,
|
|
5065
|
+
headerIconMaxHeight: PropTypes__default["default"].string,
|
|
5066
|
+
headerIconMarginRight: PropTypes__default["default"].string,
|
|
5067
|
+
alignItems: PropTypes__default["default"].string,
|
|
5068
|
+
mMaxHeight: PropTypes__default["default"].string,
|
|
5069
|
+
imageWidth: PropTypes__default["default"].string,
|
|
5070
|
+
outsideClose: PropTypes__default["default"].bool,
|
|
5071
|
+
showZoomIcon: PropTypes__default["default"].bool,
|
|
5072
|
+
imageMargin: PropTypes__default["default"].string,
|
|
5073
|
+
borderStyle: PropTypes__default["default"].string,
|
|
5074
|
+
borderWidth: PropTypes__default["default"].string,
|
|
5075
|
+
headerColor: PropTypes__default["default"].string,
|
|
5076
|
+
imageHeight: PropTypes__default["default"].string,
|
|
5077
|
+
headerWeight: PropTypes__default["default"].string,
|
|
5078
|
+
headerHeight: PropTypes__default["default"].string,
|
|
5079
|
+
justifyContent: PropTypes__default["default"].string,
|
|
5080
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
5081
|
+
grayDecorHeight: PropTypes__default["default"].string,
|
|
5082
|
+
imageWrapHeight: PropTypes__default["default"].string,
|
|
5083
|
+
layerBackgroundColor: PropTypes__default["default"].string,
|
|
5084
|
+
closeAreaBackgroundColor: PropTypes__default["default"].string
|
|
4982
5085
|
};
|
|
4983
5086
|
|
|
4984
5087
|
const TelInput = ({
|
|
@@ -5018,7 +5121,7 @@ const TelInput = ({
|
|
|
5018
5121
|
}
|
|
5019
5122
|
setInnerValue(() => newValue);
|
|
5020
5123
|
}, [value]);
|
|
5021
|
-
return /*#__PURE__*/
|
|
5124
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5022
5125
|
className: telClass,
|
|
5023
5126
|
style: {
|
|
5024
5127
|
...inpStyles,
|
|
@@ -5032,7 +5135,7 @@ const TelInput = ({
|
|
|
5032
5135
|
borderRight: `${telBorderRightWidth} ${telBorderRightStyle}`,
|
|
5033
5136
|
borderColor: innerErrorMessage ? errorColor : isHover ? telBorderRightColorHover : telBorderRightColor
|
|
5034
5137
|
}
|
|
5035
|
-
}, "+374"), /*#__PURE__*/
|
|
5138
|
+
}, "+374"), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
5036
5139
|
type: type,
|
|
5037
5140
|
value: innerValue,
|
|
5038
5141
|
disabled: disabled,
|
|
@@ -5085,7 +5188,7 @@ const TextInput = ({
|
|
|
5085
5188
|
}
|
|
5086
5189
|
setInnerValue(() => ssn ? newValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : newValue);
|
|
5087
5190
|
}, [value]);
|
|
5088
|
-
return /*#__PURE__*/
|
|
5191
|
+
return /*#__PURE__*/React__default["default"].createElement("input", {
|
|
5089
5192
|
type: "text",
|
|
5090
5193
|
value: innerValue,
|
|
5091
5194
|
disabled: disabled,
|
|
@@ -5144,7 +5247,7 @@ const PassInput = ({
|
|
|
5144
5247
|
React.useEffect(() => {
|
|
5145
5248
|
setInnerShow(show);
|
|
5146
5249
|
}, [show]);
|
|
5147
|
-
return /*#__PURE__*/
|
|
5250
|
+
return /*#__PURE__*/React__default["default"].createElement("input", {
|
|
5148
5251
|
type: innerShow ? 'text' : 'password',
|
|
5149
5252
|
value: innerValue,
|
|
5150
5253
|
disabled: disabled,
|
|
@@ -5284,7 +5387,7 @@ const NumberInput = ({
|
|
|
5284
5387
|
setInnerValue(() => newValue);
|
|
5285
5388
|
}
|
|
5286
5389
|
}, [dots, value, float, cardNumber, maxNumSize, minNumSize, numberMaxLength]);
|
|
5287
|
-
return /*#__PURE__*/
|
|
5390
|
+
return /*#__PURE__*/React__default["default"].createElement("input", {
|
|
5288
5391
|
type: "text",
|
|
5289
5392
|
inputMode: "decimal",
|
|
5290
5393
|
value: innerValue,
|
|
@@ -5310,7 +5413,7 @@ const NumberInput = ({
|
|
|
5310
5413
|
};
|
|
5311
5414
|
|
|
5312
5415
|
var css_248z$9 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{appearance:none!important;-webkit-appearance:none!important;display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}input::-ms-clear,input::-ms-reveal{display:none}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
|
|
5313
|
-
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","inp-num":"input-module_inp-num__vH7HL"};
|
|
5416
|
+
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"};
|
|
5314
5417
|
styleInject(css_248z$9);
|
|
5315
5418
|
|
|
5316
5419
|
const InputTypes = {
|
|
@@ -5323,7 +5426,7 @@ const IconSides = {
|
|
|
5323
5426
|
LEFT: 'left',
|
|
5324
5427
|
RIGHT: 'right'
|
|
5325
5428
|
};
|
|
5326
|
-
const P =
|
|
5429
|
+
const P = styled__default["default"].span`
|
|
5327
5430
|
animation: ${true};
|
|
5328
5431
|
`;
|
|
5329
5432
|
const Input = ({
|
|
@@ -5564,7 +5667,7 @@ const Input = ({
|
|
|
5564
5667
|
setInnerValue(() => val);
|
|
5565
5668
|
}, [value]);
|
|
5566
5669
|
React.useEffect(() => {
|
|
5567
|
-
className && setClassProps(() =>
|
|
5670
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.INPUT.className, type === 'number' ? styles$8['inp-num'] : '', styles$8['input-wrap']));
|
|
5568
5671
|
}, [className]);
|
|
5569
5672
|
React.useEffect(() => {
|
|
5570
5673
|
setInnerErrorIcon(() => errorIcon);
|
|
@@ -5584,7 +5687,7 @@ const Input = ({
|
|
|
5584
5687
|
}, [labelIconSide]);
|
|
5585
5688
|
React.useEffect(() => {
|
|
5586
5689
|
configStylesPromise.then(data => {
|
|
5587
|
-
setClassProps(() =>
|
|
5690
|
+
setClassProps(() => classnames__default["default"](className ?? data.INPUT.className, type === 'number' ? styles$8['inp-num'] : '', styles$8['input-wrap']));
|
|
5588
5691
|
setConfigStyles(() => {
|
|
5589
5692
|
return {
|
|
5590
5693
|
...data
|
|
@@ -5594,12 +5697,12 @@ const Input = ({
|
|
|
5594
5697
|
console.error(error);
|
|
5595
5698
|
});
|
|
5596
5699
|
}, []);
|
|
5597
|
-
return configStyles.INPUT && /*#__PURE__*/
|
|
5700
|
+
return configStyles.INPUT && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5598
5701
|
ref: parentRef,
|
|
5599
5702
|
className: classProps
|
|
5600
|
-
}, /*#__PURE__*/
|
|
5703
|
+
}, /*#__PURE__*/React__default["default"].createElement("style", null, `.tui-color-placeholder::placeholder {
|
|
5601
5704
|
color: ${placeholderColor ?? configStyles.INPUT.colors.placeholder};
|
|
5602
|
-
}`), label && /*#__PURE__*/
|
|
5705
|
+
}`), label && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5603
5706
|
style: {
|
|
5604
5707
|
display: 'flex',
|
|
5605
5708
|
maxWidth: '100%',
|
|
@@ -5607,7 +5710,7 @@ const Input = ({
|
|
|
5607
5710
|
columnGap: '4px',
|
|
5608
5711
|
justifyContent: 'flex-start'
|
|
5609
5712
|
}
|
|
5610
|
-
}, showLabelIcon && innerLabelIcon && innerLabelIconSide === 'left' ? /*#__PURE__*/
|
|
5713
|
+
}, showLabelIcon && innerLabelIcon && innerLabelIconSide === 'left' ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5611
5714
|
alt: "label icon",
|
|
5612
5715
|
src: innerLabelIcon,
|
|
5613
5716
|
style: {
|
|
@@ -5617,7 +5720,7 @@ const Input = ({
|
|
|
5617
5720
|
marginRight: labelIconMargin ?? configStyles.INPUT.label.iconMargin
|
|
5618
5721
|
},
|
|
5619
5722
|
onClick: labelAction ? () => labelAction() : _ => _
|
|
5620
|
-
}) : '', /*#__PURE__*/
|
|
5723
|
+
}) : '', /*#__PURE__*/React__default["default"].createElement("label", {
|
|
5621
5724
|
ref: labelRef,
|
|
5622
5725
|
style: {
|
|
5623
5726
|
color: labelColor ?? configStyles.INPUT.label.color,
|
|
@@ -5634,7 +5737,7 @@ const Input = ({
|
|
|
5634
5737
|
},
|
|
5635
5738
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
5636
5739
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.INPUT.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
5637
|
-
}, label), required && /*#__PURE__*/
|
|
5740
|
+
}, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.INPUT.icon.required ? configStyles.INPUT.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), showLabelIcon && innerLabelIcon && innerLabelIconSide === 'right' ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5638
5741
|
alt: "label icon",
|
|
5639
5742
|
src: innerLabelIcon,
|
|
5640
5743
|
style: {
|
|
@@ -5644,7 +5747,7 @@ const Input = ({
|
|
|
5644
5747
|
marginLeft: labelIconMargin ?? configStyles.INPUT.label.iconMargin
|
|
5645
5748
|
},
|
|
5646
5749
|
onClick: labelAction ? () => labelAction() : _ => _
|
|
5647
|
-
}) : ''), /*#__PURE__*/
|
|
5750
|
+
}) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5648
5751
|
className: `${styles$8['input-content']}`,
|
|
5649
5752
|
style: {
|
|
5650
5753
|
width: width ?? configStyles.INPUT.width,
|
|
@@ -5653,7 +5756,7 @@ const Input = ({
|
|
|
5653
5756
|
},
|
|
5654
5757
|
onMouseEnter: handleMouseEnter,
|
|
5655
5758
|
onMouseLeave: handleMouseLeave
|
|
5656
|
-
}, leftIcon && leftIcon.length > 0 && type != 'tel' ? /*#__PURE__*/
|
|
5759
|
+
}, leftIcon && leftIcon.length > 0 && type != 'tel' ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5657
5760
|
onClick: type === 'password' ? handleShowPass : _ => _,
|
|
5658
5761
|
style: {
|
|
5659
5762
|
display: 'flex',
|
|
@@ -5668,7 +5771,7 @@ const Input = ({
|
|
|
5668
5771
|
borderBottomLeftRadius: radius ?? configStyles.INPUT.radius,
|
|
5669
5772
|
backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
|
|
5670
5773
|
}
|
|
5671
|
-
}, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/
|
|
5774
|
+
}, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/React__default["default"].createElement(TelInput, {
|
|
5672
5775
|
type: type,
|
|
5673
5776
|
value: innerValue,
|
|
5674
5777
|
inputChange: change,
|
|
@@ -5685,7 +5788,7 @@ const Input = ({
|
|
|
5685
5788
|
telBorderRightStyle: telBorderRightStyle ?? configStyles.INPUT.tel.borderRight.style,
|
|
5686
5789
|
telBorderRightColor: telBorderRightColor ?? configStyles.INPUT.tel.borderRight.color,
|
|
5687
5790
|
telBorderRightColorHover: telBorderRightColorHover ?? configStyles.INPUT.tel.borderRight.colors.hover
|
|
5688
|
-
}) : type === 'number' ? /*#__PURE__*/
|
|
5791
|
+
}) : type === 'number' ? /*#__PURE__*/React__default["default"].createElement(NumberInput, {
|
|
5689
5792
|
dots: withoutDot,
|
|
5690
5793
|
value: innerValue,
|
|
5691
5794
|
float: floatToFix,
|
|
@@ -5704,7 +5807,7 @@ const Input = ({
|
|
|
5704
5807
|
radius: radius ?? configStyles.INPUT.radius,
|
|
5705
5808
|
checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
|
|
5706
5809
|
checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
|
|
5707
|
-
}) : type === 'password' ? /*#__PURE__*/
|
|
5810
|
+
}) : type === 'password' ? /*#__PURE__*/React__default["default"].createElement(PassInput, {
|
|
5708
5811
|
show: show,
|
|
5709
5812
|
type: type,
|
|
5710
5813
|
value: innerValue,
|
|
@@ -5716,7 +5819,7 @@ const Input = ({
|
|
|
5716
5819
|
maxLength: maxLength ?? configStyles.INPUT.maxLength,
|
|
5717
5820
|
checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
|
|
5718
5821
|
checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
|
|
5719
|
-
}) : /*#__PURE__*/
|
|
5822
|
+
}) : /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
5720
5823
|
ssn: ssn,
|
|
5721
5824
|
value: innerValue,
|
|
5722
5825
|
disabled: disabled,
|
|
@@ -5727,7 +5830,7 @@ const Input = ({
|
|
|
5727
5830
|
maxLength: maxLength ?? configStyles.INPUT.maxLength,
|
|
5728
5831
|
checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
|
|
5729
5832
|
checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
|
|
5730
|
-
}), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/
|
|
5833
|
+
}), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5731
5834
|
onClick: type === 'password' ? handleShowPass : _ => _,
|
|
5732
5835
|
style: {
|
|
5733
5836
|
display: 'flex',
|
|
@@ -5742,7 +5845,7 @@ const Input = ({
|
|
|
5742
5845
|
borderBottomRightRadius: radius ?? configStyles.INPUT.radius,
|
|
5743
5846
|
backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
|
|
5744
5847
|
}
|
|
5745
|
-
}, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), innerErrorMessage ? /*#__PURE__*/
|
|
5848
|
+
}, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), innerErrorMessage ? /*#__PURE__*/React__default["default"].createElement(P
|
|
5746
5849
|
// animation={animation}
|
|
5747
5850
|
, {
|
|
5748
5851
|
style: {
|
|
@@ -5763,7 +5866,7 @@ const Input = ({
|
|
|
5763
5866
|
transform: 'scale3d(1,1,1)'
|
|
5764
5867
|
},
|
|
5765
5868
|
className: errorClassName ?? configStyles.INPUT.error.className
|
|
5766
|
-
}, showErrorIcon && innerErrorIcon && innerErrorIconSide === 'left' ? /*#__PURE__*/
|
|
5869
|
+
}, showErrorIcon && innerErrorIcon && innerErrorIconSide === 'left' ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5767
5870
|
alt: "error icon",
|
|
5768
5871
|
src: innerErrorIcon,
|
|
5769
5872
|
style: {
|
|
@@ -5773,7 +5876,7 @@ const Input = ({
|
|
|
5773
5876
|
marginRight: errorIconMargin ?? configStyles.INPUT.error.iconMargin
|
|
5774
5877
|
},
|
|
5775
5878
|
onClick: errorAction ? () => errorAction() : _ => _
|
|
5776
|
-
}) : '', /*#__PURE__*/
|
|
5879
|
+
}) : '', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5777
5880
|
style: {
|
|
5778
5881
|
display: 'inline-block',
|
|
5779
5882
|
whiteSpace: (errorDots ? errorDots : configStyles.INPUT.error.dots) ? 'nowrap' : 'normal',
|
|
@@ -5781,7 +5884,7 @@ const Input = ({
|
|
|
5781
5884
|
textOverflow: (errorDots ? errorDots : configStyles.INPUT.error.dots) ? 'ellipsis' : '',
|
|
5782
5885
|
maxWidth: `calc(100% - ${(errorIconMargin ? Number(errorIconMargin.match(/\d+/)[0]) : Number(configStyles.INPUT.error.iconMargin.match(/\d+/)[0])) + 14}px)`
|
|
5783
5886
|
}
|
|
5784
|
-
}, innerErrorMessage), showErrorIcon && innerErrorIcon && innerErrorIconSide === 'right' && /*#__PURE__*/
|
|
5887
|
+
}, innerErrorMessage), showErrorIcon && innerErrorIcon && innerErrorIconSide === 'right' && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5785
5888
|
alt: "error icon",
|
|
5786
5889
|
src: innerErrorIcon,
|
|
5787
5890
|
style: {
|
|
@@ -5794,98 +5897,98 @@ const Input = ({
|
|
|
5794
5897
|
})) : '');
|
|
5795
5898
|
};
|
|
5796
5899
|
Input.propTypes = {
|
|
5797
|
-
ssn:
|
|
5798
|
-
size:
|
|
5799
|
-
name:
|
|
5800
|
-
change:
|
|
5801
|
-
style:
|
|
5802
|
-
color:
|
|
5803
|
-
width:
|
|
5804
|
-
withZero:
|
|
5805
|
-
weight:
|
|
5806
|
-
family:
|
|
5807
|
-
required:
|
|
5808
|
-
disabled:
|
|
5809
|
-
height:
|
|
5810
|
-
radius:
|
|
5811
|
-
padding:
|
|
5812
|
-
cardNumber:
|
|
5813
|
-
withoutDot:
|
|
5814
|
-
className:
|
|
5815
|
-
iconWidth:
|
|
5816
|
-
iconPadding:
|
|
5817
|
-
maxLength:
|
|
5818
|
-
floatToFix:
|
|
5819
|
-
minNumSize:
|
|
5820
|
-
maxNumSize:
|
|
5821
|
-
borderRight:
|
|
5822
|
-
placeholder:
|
|
5823
|
-
placeholderColor:
|
|
5824
|
-
phoneDisplay:
|
|
5825
|
-
autoComplete:
|
|
5826
|
-
errorDots:
|
|
5827
|
-
errorLeft:
|
|
5828
|
-
errorSize:
|
|
5829
|
-
errorIcon:
|
|
5830
|
-
errorAction:
|
|
5831
|
-
errorColor:
|
|
5832
|
-
errorStyle:
|
|
5833
|
-
showErrorIcon:
|
|
5834
|
-
errorWeight:
|
|
5835
|
-
errorFamily:
|
|
5836
|
-
errorZindex:
|
|
5837
|
-
errorIconSide:
|
|
5838
|
-
errorMessage:
|
|
5839
|
-
errorPosition:
|
|
5840
|
-
errorMarginTop:
|
|
5841
|
-
errorClassName:
|
|
5842
|
-
errorIconMargin:
|
|
5843
|
-
errorLineHeight:
|
|
5844
|
-
boxSizing:
|
|
5845
|
-
boxShadow:
|
|
5846
|
-
errorBoxShadow:
|
|
5847
|
-
boxShadowHover:
|
|
5848
|
-
phoneAlignItems:
|
|
5849
|
-
numberMaxLength:
|
|
5850
|
-
regexpErrorMessage:
|
|
5851
|
-
regexp:
|
|
5852
|
-
fireInputInsideError:
|
|
5853
|
-
telClass:
|
|
5854
|
-
telBorderRightWidth:
|
|
5855
|
-
telBorderRightStyle:
|
|
5856
|
-
telBorderRightColor:
|
|
5857
|
-
phoneJustifyContent:
|
|
5858
|
-
backgroundColor:
|
|
5859
|
-
backgroundDisableColor:
|
|
5860
|
-
telBorderRightColorHover:
|
|
5861
|
-
leftIcon:
|
|
5862
|
-
rightIcon:
|
|
5863
|
-
type:
|
|
5864
|
-
value:
|
|
5865
|
-
iconRequired:
|
|
5866
|
-
label:
|
|
5867
|
-
labelAction:
|
|
5868
|
-
labelIcon:
|
|
5869
|
-
labelSize:
|
|
5870
|
-
labelColor:
|
|
5871
|
-
labelStyle:
|
|
5872
|
-
showLabelIcon:
|
|
5873
|
-
labelWeight:
|
|
5874
|
-
labelDisplay:
|
|
5875
|
-
labelIconSide:
|
|
5876
|
-
labelLineHeight:
|
|
5877
|
-
labelFontFamily:
|
|
5878
|
-
labelIconMargin:
|
|
5879
|
-
labelMarginBottom:
|
|
5880
|
-
useLabelTooltip:
|
|
5881
|
-
labelTooltipColor:
|
|
5882
|
-
labelTooltipPadding:
|
|
5883
|
-
labelTooltipFontSize:
|
|
5884
|
-
labelTooltipFontStyle:
|
|
5885
|
-
labelTooltipFontFamily:
|
|
5886
|
-
labelTooltipFontWeight:
|
|
5887
|
-
labelTooltipBorderRadius:
|
|
5888
|
-
labelTooltipBackgroundColor:
|
|
5900
|
+
ssn: PropTypes__default["default"].bool,
|
|
5901
|
+
size: PropTypes__default["default"].string,
|
|
5902
|
+
name: PropTypes__default["default"].string,
|
|
5903
|
+
change: PropTypes__default["default"].func,
|
|
5904
|
+
style: PropTypes__default["default"].string,
|
|
5905
|
+
color: PropTypes__default["default"].string,
|
|
5906
|
+
width: PropTypes__default["default"].string,
|
|
5907
|
+
withZero: PropTypes__default["default"].bool,
|
|
5908
|
+
weight: PropTypes__default["default"].string,
|
|
5909
|
+
family: PropTypes__default["default"].string,
|
|
5910
|
+
required: PropTypes__default["default"].bool,
|
|
5911
|
+
disabled: PropTypes__default["default"].bool,
|
|
5912
|
+
height: PropTypes__default["default"].string,
|
|
5913
|
+
radius: PropTypes__default["default"].string,
|
|
5914
|
+
padding: PropTypes__default["default"].string,
|
|
5915
|
+
cardNumber: PropTypes__default["default"].bool,
|
|
5916
|
+
withoutDot: PropTypes__default["default"].bool,
|
|
5917
|
+
className: PropTypes__default["default"].string,
|
|
5918
|
+
iconWidth: PropTypes__default["default"].string,
|
|
5919
|
+
iconPadding: PropTypes__default["default"].string,
|
|
5920
|
+
maxLength: PropTypes__default["default"].number,
|
|
5921
|
+
floatToFix: PropTypes__default["default"].number,
|
|
5922
|
+
minNumSize: PropTypes__default["default"].number,
|
|
5923
|
+
maxNumSize: PropTypes__default["default"].number,
|
|
5924
|
+
borderRight: PropTypes__default["default"].string,
|
|
5925
|
+
placeholder: PropTypes__default["default"].string,
|
|
5926
|
+
placeholderColor: PropTypes__default["default"].string,
|
|
5927
|
+
phoneDisplay: PropTypes__default["default"].string,
|
|
5928
|
+
autoComplete: PropTypes__default["default"].string,
|
|
5929
|
+
errorDots: PropTypes__default["default"].bool,
|
|
5930
|
+
errorLeft: PropTypes__default["default"].string,
|
|
5931
|
+
errorSize: PropTypes__default["default"].string,
|
|
5932
|
+
errorIcon: PropTypes__default["default"].string,
|
|
5933
|
+
errorAction: PropTypes__default["default"].func,
|
|
5934
|
+
errorColor: PropTypes__default["default"].string,
|
|
5935
|
+
errorStyle: PropTypes__default["default"].string,
|
|
5936
|
+
showErrorIcon: PropTypes__default["default"].bool,
|
|
5937
|
+
errorWeight: PropTypes__default["default"].string,
|
|
5938
|
+
errorFamily: PropTypes__default["default"].string,
|
|
5939
|
+
errorZindex: PropTypes__default["default"].string,
|
|
5940
|
+
errorIconSide: PropTypes__default["default"].oneOf(Object.values(IconSides)),
|
|
5941
|
+
errorMessage: PropTypes__default["default"].string,
|
|
5942
|
+
errorPosition: PropTypes__default["default"].string,
|
|
5943
|
+
errorMarginTop: PropTypes__default["default"].string,
|
|
5944
|
+
errorClassName: PropTypes__default["default"].string,
|
|
5945
|
+
errorIconMargin: PropTypes__default["default"].string,
|
|
5946
|
+
errorLineHeight: PropTypes__default["default"].string,
|
|
5947
|
+
boxSizing: PropTypes__default["default"].string,
|
|
5948
|
+
boxShadow: PropTypes__default["default"].string,
|
|
5949
|
+
errorBoxShadow: PropTypes__default["default"].string,
|
|
5950
|
+
boxShadowHover: PropTypes__default["default"].string,
|
|
5951
|
+
phoneAlignItems: PropTypes__default["default"].string,
|
|
5952
|
+
numberMaxLength: PropTypes__default["default"].number,
|
|
5953
|
+
regexpErrorMessage: PropTypes__default["default"].string,
|
|
5954
|
+
regexp: PropTypes__default["default"].instanceOf(RegExp),
|
|
5955
|
+
fireInputInsideError: PropTypes__default["default"].func,
|
|
5956
|
+
telClass: PropTypes__default["default"].string,
|
|
5957
|
+
telBorderRightWidth: PropTypes__default["default"].string,
|
|
5958
|
+
telBorderRightStyle: PropTypes__default["default"].string,
|
|
5959
|
+
telBorderRightColor: PropTypes__default["default"].string,
|
|
5960
|
+
phoneJustifyContent: PropTypes__default["default"].string,
|
|
5961
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
5962
|
+
backgroundDisableColor: PropTypes__default["default"].string,
|
|
5963
|
+
telBorderRightColorHover: PropTypes__default["default"].string,
|
|
5964
|
+
leftIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
|
|
5965
|
+
rightIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
|
|
5966
|
+
type: PropTypes__default["default"].oneOf(Object.values(InputTypes)),
|
|
5967
|
+
value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number, PropTypes__default["default"].object]),
|
|
5968
|
+
iconRequired: PropTypes__default["default"].element,
|
|
5969
|
+
label: PropTypes__default["default"].string,
|
|
5970
|
+
labelAction: PropTypes__default["default"].func,
|
|
5971
|
+
labelIcon: PropTypes__default["default"].string,
|
|
5972
|
+
labelSize: PropTypes__default["default"].string,
|
|
5973
|
+
labelColor: PropTypes__default["default"].string,
|
|
5974
|
+
labelStyle: PropTypes__default["default"].string,
|
|
5975
|
+
showLabelIcon: PropTypes__default["default"].bool,
|
|
5976
|
+
labelWeight: PropTypes__default["default"].string,
|
|
5977
|
+
labelDisplay: PropTypes__default["default"].string,
|
|
5978
|
+
labelIconSide: PropTypes__default["default"].oneOf(Object.values(IconSides)),
|
|
5979
|
+
labelLineHeight: PropTypes__default["default"].string,
|
|
5980
|
+
labelFontFamily: PropTypes__default["default"].string,
|
|
5981
|
+
labelIconMargin: PropTypes__default["default"].string,
|
|
5982
|
+
labelMarginBottom: PropTypes__default["default"].string,
|
|
5983
|
+
useLabelTooltip: PropTypes__default["default"].bool,
|
|
5984
|
+
labelTooltipColor: PropTypes__default["default"].string,
|
|
5985
|
+
labelTooltipPadding: PropTypes__default["default"].string,
|
|
5986
|
+
labelTooltipFontSize: PropTypes__default["default"].string,
|
|
5987
|
+
labelTooltipFontStyle: PropTypes__default["default"].string,
|
|
5988
|
+
labelTooltipFontFamily: PropTypes__default["default"].string,
|
|
5989
|
+
labelTooltipFontWeight: PropTypes__default["default"].string,
|
|
5990
|
+
labelTooltipBorderRadius: PropTypes__default["default"].string,
|
|
5991
|
+
labelTooltipBackgroundColor: PropTypes__default["default"].string
|
|
5889
5992
|
};
|
|
5890
5993
|
|
|
5891
5994
|
const RadioDirectionMode = {
|
|
@@ -5986,11 +6089,11 @@ const Radio = ({
|
|
|
5986
6089
|
}
|
|
5987
6090
|
}, [keyNames]);
|
|
5988
6091
|
React.useEffect(() => {
|
|
5989
|
-
className && setClassProps(() =>
|
|
6092
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.RADIO.className));
|
|
5990
6093
|
}, [className]);
|
|
5991
6094
|
React.useEffect(() => {
|
|
5992
6095
|
configStylesPromise.then(data => {
|
|
5993
|
-
setClassProps(() =>
|
|
6096
|
+
setClassProps(() => classnames__default["default"](className ?? data.RADIO.className));
|
|
5994
6097
|
setConfigStyles(() => {
|
|
5995
6098
|
return {
|
|
5996
6099
|
...data
|
|
@@ -6000,7 +6103,7 @@ const Radio = ({
|
|
|
6000
6103
|
console.error(error);
|
|
6001
6104
|
});
|
|
6002
6105
|
}, []);
|
|
6003
|
-
return configStyles.RADIO && /*#__PURE__*/
|
|
6106
|
+
return configStyles.RADIO && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6004
6107
|
className: classProps,
|
|
6005
6108
|
style: {
|
|
6006
6109
|
display: 'flex',
|
|
@@ -6008,7 +6111,7 @@ const Radio = ({
|
|
|
6008
6111
|
}
|
|
6009
6112
|
}, innerData && innerData.length > 0 && innerData.map((item, index) => {
|
|
6010
6113
|
const elemId = `TUI_${index}_radio_inner` + v4();
|
|
6011
|
-
return /*#__PURE__*/
|
|
6114
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6012
6115
|
key: `TUI_${index}_radio`,
|
|
6013
6116
|
style: {
|
|
6014
6117
|
display: 'flex',
|
|
@@ -6021,7 +6124,7 @@ const Radio = ({
|
|
|
6021
6124
|
onClick: item[innerKeyNames.disabled] ? _ => _ : () => handleChecked(item),
|
|
6022
6125
|
onMouseEnter: () => handleMouseEnter(item[innerKeyNames.id], elemId),
|
|
6023
6126
|
onMouseLeave: () => handleMouseLeave(item[innerKeyNames.id], elemId)
|
|
6024
|
-
}, /*#__PURE__*/
|
|
6127
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6025
6128
|
style: {
|
|
6026
6129
|
display: 'flex',
|
|
6027
6130
|
alignItems: 'center',
|
|
@@ -6033,7 +6136,7 @@ const Radio = ({
|
|
|
6033
6136
|
border: `${borderSize ?? configStyles.RADIO.border.width} ${borderStyle ? borderStyle : configStyles.RADIO.border.style}`,
|
|
6034
6137
|
borderColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color
|
|
6035
6138
|
}
|
|
6036
|
-
}, /*#__PURE__*/
|
|
6139
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6037
6140
|
id: elemId,
|
|
6038
6141
|
style: {
|
|
6039
6142
|
borderRadius: '100%',
|
|
@@ -6041,7 +6144,7 @@ const Radio = ({
|
|
|
6041
6144
|
height: radioInnerSize + radioInnerFormat,
|
|
6042
6145
|
backgroundColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : 'transparent'
|
|
6043
6146
|
}
|
|
6044
|
-
})), item[innerKeyNames.label] ? /*#__PURE__*/
|
|
6147
|
+
})), item[innerKeyNames.label] ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6045
6148
|
style: {
|
|
6046
6149
|
color: item[innerKeyNames.id] === innerSelectedData.id ? labelActiveColor ?? configStyles.RADIO.label.activeColor : labelColor ?? configStyles.RADIO.label.color,
|
|
6047
6150
|
fontSize: labelFontSize ?? configStyles.RADIO.label.font.size,
|
|
@@ -6054,28 +6157,28 @@ const Radio = ({
|
|
|
6054
6157
|
}));
|
|
6055
6158
|
};
|
|
6056
6159
|
Radio.propTypes = {
|
|
6057
|
-
size:
|
|
6058
|
-
selected:
|
|
6059
|
-
keyNames:
|
|
6060
|
-
className:
|
|
6061
|
-
borderSize:
|
|
6062
|
-
labelColor:
|
|
6063
|
-
borderColor:
|
|
6064
|
-
borderStyle:
|
|
6065
|
-
labelFontSize:
|
|
6066
|
-
labelFontStyle:
|
|
6067
|
-
labelActiveColor:
|
|
6068
|
-
labelFontFamily:
|
|
6069
|
-
labelFontWeight:
|
|
6070
|
-
labelLineHeight:
|
|
6071
|
-
radioMarginRight:
|
|
6072
|
-
getData:
|
|
6073
|
-
borderHoverColor:
|
|
6074
|
-
borderActiveColor:
|
|
6075
|
-
radioItemMarginRight:
|
|
6076
|
-
radioItemMarginBottom:
|
|
6077
|
-
diraction:
|
|
6078
|
-
data:
|
|
6160
|
+
size: PropTypes__default["default"].string,
|
|
6161
|
+
selected: PropTypes__default["default"].object,
|
|
6162
|
+
keyNames: PropTypes__default["default"].object,
|
|
6163
|
+
className: PropTypes__default["default"].string,
|
|
6164
|
+
borderSize: PropTypes__default["default"].string,
|
|
6165
|
+
labelColor: PropTypes__default["default"].string,
|
|
6166
|
+
borderColor: PropTypes__default["default"].string,
|
|
6167
|
+
borderStyle: PropTypes__default["default"].string,
|
|
6168
|
+
labelFontSize: PropTypes__default["default"].string,
|
|
6169
|
+
labelFontStyle: PropTypes__default["default"].string,
|
|
6170
|
+
labelActiveColor: PropTypes__default["default"].string,
|
|
6171
|
+
labelFontFamily: PropTypes__default["default"].string,
|
|
6172
|
+
labelFontWeight: PropTypes__default["default"].string,
|
|
6173
|
+
labelLineHeight: PropTypes__default["default"].string,
|
|
6174
|
+
radioMarginRight: PropTypes__default["default"].string,
|
|
6175
|
+
getData: PropTypes__default["default"].func.isRequired,
|
|
6176
|
+
borderHoverColor: PropTypes__default["default"].string,
|
|
6177
|
+
borderActiveColor: PropTypes__default["default"].string,
|
|
6178
|
+
radioItemMarginRight: PropTypes__default["default"].string,
|
|
6179
|
+
radioItemMarginBottom: PropTypes__default["default"].string,
|
|
6180
|
+
diraction: PropTypes__default["default"].oneOf(Object.values(RadioDirectionMode)),
|
|
6181
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].arrayOf(PropTypes__default["default"].object), PropTypes__default["default"].object])
|
|
6079
6182
|
};
|
|
6080
6183
|
|
|
6081
6184
|
const SvgArrow = ({
|
|
@@ -6098,7 +6201,7 @@ const SvgArrow = ({
|
|
|
6098
6201
|
}));
|
|
6099
6202
|
|
|
6100
6203
|
var css_248z$8 = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;display:flex;flex-direction:row;flex-wrap:nowrap}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:99999999999}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:fit-content;justify-content:center;max-height:30px;max-width:30px;min-height:14px;min-width:14px;width:fit-content}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
6101
|
-
var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L","ellipsis":"select-module_ellipsis__uNgol"};
|
|
6204
|
+
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"};
|
|
6102
6205
|
styleInject(css_248z$8);
|
|
6103
6206
|
|
|
6104
6207
|
const Select = ({
|
|
@@ -6371,11 +6474,11 @@ const Select = ({
|
|
|
6371
6474
|
}
|
|
6372
6475
|
}, [options, multiple, selected, selected?.length]);
|
|
6373
6476
|
React.useEffect(() => {
|
|
6374
|
-
className && setClassProps(() =>
|
|
6477
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.SELECT.className));
|
|
6375
6478
|
}, [className]);
|
|
6376
6479
|
React.useEffect(() => {
|
|
6377
6480
|
configStylesPromise.then(data => {
|
|
6378
|
-
setClassProps(() =>
|
|
6481
|
+
setClassProps(() => classnames__default["default"](className ?? data.SELECT.className));
|
|
6379
6482
|
setConfigStyles(() => {
|
|
6380
6483
|
return {
|
|
6381
6484
|
...data
|
|
@@ -6385,14 +6488,14 @@ const Select = ({
|
|
|
6385
6488
|
console.error(error);
|
|
6386
6489
|
});
|
|
6387
6490
|
}, []);
|
|
6388
|
-
return configStyles.SELECT && /*#__PURE__*/
|
|
6491
|
+
return configStyles.SELECT && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6389
6492
|
ref: parentRef,
|
|
6390
6493
|
className: classProps,
|
|
6391
6494
|
style: {
|
|
6392
6495
|
position: 'relative',
|
|
6393
6496
|
width: '100%'
|
|
6394
6497
|
}
|
|
6395
|
-
}, label && /*#__PURE__*/
|
|
6498
|
+
}, label && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6396
6499
|
style: {
|
|
6397
6500
|
display: 'flex',
|
|
6398
6501
|
maxWidth: '100%',
|
|
@@ -6400,7 +6503,7 @@ const Select = ({
|
|
|
6400
6503
|
columnGap: '4px',
|
|
6401
6504
|
justifyContent: 'flex-start'
|
|
6402
6505
|
}
|
|
6403
|
-
}, /*#__PURE__*/
|
|
6506
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
6404
6507
|
ref: labelRef,
|
|
6405
6508
|
style: {
|
|
6406
6509
|
color: labelColor ?? configStyles.SELECT.label.color,
|
|
@@ -6418,11 +6521,11 @@ const Select = ({
|
|
|
6418
6521
|
},
|
|
6419
6522
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
6420
6523
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.SELECT.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
6421
|
-
}, label), required && /*#__PURE__*/
|
|
6524
|
+
}, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.SELECT.icon.required ? configStyles.SELECT.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6422
6525
|
ref: ref
|
|
6423
|
-
}, /*#__PURE__*/
|
|
6526
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6424
6527
|
className: styles$7['select-content']
|
|
6425
|
-
}, /*#__PURE__*/
|
|
6528
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6426
6529
|
className: `${styles$7['select-content-top']}`,
|
|
6427
6530
|
style: {
|
|
6428
6531
|
cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
|
|
@@ -6443,7 +6546,7 @@ const Select = ({
|
|
|
6443
6546
|
onClick: disabled ? _ => _ : () => handleOpenClose(),
|
|
6444
6547
|
onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
|
|
6445
6548
|
onMouseLeave: disabled ? _ => _ : () => handleMouseLeave()
|
|
6446
|
-
}, /*#__PURE__*/
|
|
6549
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6447
6550
|
className: "select-content-top-text",
|
|
6448
6551
|
style: {
|
|
6449
6552
|
whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
|
|
@@ -6459,24 +6562,24 @@ const Select = ({
|
|
|
6459
6562
|
return newSelected[index][keyNames.name];
|
|
6460
6563
|
}
|
|
6461
6564
|
}
|
|
6462
|
-
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/
|
|
6565
|
+
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6463
6566
|
className: `${styles$7['select-content-top-icon']}`,
|
|
6464
6567
|
style: {
|
|
6465
6568
|
padding: lang ? '0px' : insidePagination ? '0px 5px' : '0 5px 0 20px'
|
|
6466
6569
|
}
|
|
6467
|
-
}, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/
|
|
6570
|
+
}, !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", {
|
|
6468
6571
|
className: `${styles$7['close-icon']}`,
|
|
6469
6572
|
onClick: disabled ? _ => _ : handleClearSelect,
|
|
6470
6573
|
style: {
|
|
6471
6574
|
marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
|
|
6472
6575
|
}
|
|
6473
|
-
}, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/
|
|
6576
|
+
}, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6474
6577
|
className: `${styles$7['arrow-icon']}`,
|
|
6475
6578
|
style: {
|
|
6476
6579
|
marginLeft: lang ? '0px' : '9px',
|
|
6477
6580
|
transform: arrowNoRotate || configStyles.SELECT.arrowNoRotate ? 'rotate(0deg)' : opened ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
6478
6581
|
}
|
|
6479
|
-
}, arrowIcon ? arrowIcon : configStyles.SELECT.arrowIcon ? configStyles.SELECT.arrowIcon : /*#__PURE__*/
|
|
6582
|
+
}, 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", {
|
|
6480
6583
|
style: {
|
|
6481
6584
|
boxShadow: optionsBoxShadow ?? configStyles.SELECT.options.box.shadow,
|
|
6482
6585
|
borderRadius: optionsBorderRadius ?? configStyles.SELECT.options.radius,
|
|
@@ -6484,10 +6587,10 @@ const Select = ({
|
|
|
6484
6587
|
top: selectedMinHeight ? selectedMinHeight.includes('rem') ? parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 3)) + 0.6 + 'rem' : parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 2)) + 6 + 'px' : configStyles.SELECT.selected.minHeight.includes('rem') ? parseFloat(configStyles.SELECT.selected.minHeight.substr(0, configStyles.SELECT.selected.minHeight.length - 3)) + 0.6 + 'rem' : parseFloat(configStyles.SELECT.selected.minHeight.substr(0, configStyles.SELECT.selected.minHeight.length - 2)) + 6 + 'px'
|
|
6485
6588
|
},
|
|
6486
6589
|
className: `${styles$7['select-content-bottom']}`
|
|
6487
|
-
}, /*#__PURE__*/
|
|
6590
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6488
6591
|
className: `${styles$7['select-content-bottom-inner']}`
|
|
6489
6592
|
}, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
|
|
6490
|
-
return /*#__PURE__*/
|
|
6593
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6491
6594
|
key: i,
|
|
6492
6595
|
disabled: true,
|
|
6493
6596
|
defaultValue: option[keyNames.id],
|
|
@@ -6511,10 +6614,10 @@ const Select = ({
|
|
|
6511
6614
|
backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud,
|
|
6512
6615
|
justifyContent: lang ? 'center' : 'flex-start'
|
|
6513
6616
|
}
|
|
6514
|
-
}, multiple && multipleCheckbox ? /*#__PURE__*/
|
|
6617
|
+
}, multiple && multipleCheckbox ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
6515
6618
|
checked: option.checked
|
|
6516
6619
|
}) : '', option[keyNames.name]);
|
|
6517
|
-
}))) : null)), errorMessage ? /*#__PURE__*/
|
|
6620
|
+
}))) : null)), errorMessage ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6518
6621
|
style: {
|
|
6519
6622
|
position: 'absolute',
|
|
6520
6623
|
columnGap: '4px',
|
|
@@ -6530,85 +6633,85 @@ const Select = ({
|
|
|
6530
6633
|
}, showErrorIcon ? errorIcon ? errorIcon : configStyles.SELECT.error?.icon ? configStyles.SELECT.error?.icon : '' : '', errorMessage) : '');
|
|
6531
6634
|
};
|
|
6532
6635
|
Select.propTypes = {
|
|
6533
|
-
dots:
|
|
6534
|
-
lang:
|
|
6535
|
-
options:
|
|
6536
|
-
multiple:
|
|
6537
|
-
onChange:
|
|
6538
|
-
required:
|
|
6539
|
-
disabled:
|
|
6540
|
-
selected:
|
|
6541
|
-
keyNames:
|
|
6542
|
-
marginTop:
|
|
6543
|
-
className:
|
|
6544
|
-
arrowIcon:
|
|
6545
|
-
closeIcon:
|
|
6546
|
-
arrowNoRotate:
|
|
6547
|
-
showCloseIcon:
|
|
6548
|
-
errorZindex:
|
|
6549
|
-
errorMessage:
|
|
6550
|
-
defaultOption:
|
|
6551
|
-
multipleCheckbox:
|
|
6552
|
-
label:
|
|
6553
|
-
labelColor:
|
|
6554
|
-
labelWeight:
|
|
6555
|
-
labelDisplay:
|
|
6556
|
-
labelFontSize:
|
|
6557
|
-
labelFontStyle:
|
|
6558
|
-
labelLineHeight:
|
|
6559
|
-
labelFontFamily:
|
|
6560
|
-
labelMarginBottom:
|
|
6561
|
-
labelTextTransform:
|
|
6562
|
-
cursor:
|
|
6563
|
-
errorSize:
|
|
6564
|
-
errorColor:
|
|
6565
|
-
errorIcon:
|
|
6566
|
-
showErrorIcon:
|
|
6567
|
-
selectedColor:
|
|
6568
|
-
selectedRadius:
|
|
6569
|
-
selectedMinHeight:
|
|
6570
|
-
selectedPadding:
|
|
6571
|
-
selectedFontSize:
|
|
6572
|
-
selectedFontStyle:
|
|
6573
|
-
selectedBoxSizing:
|
|
6574
|
-
selectedFontFamily:
|
|
6575
|
-
selectedHoverColor:
|
|
6576
|
-
selectedFontWeight:
|
|
6577
|
-
selectedLineHeight:
|
|
6578
|
-
selectedTransition:
|
|
6579
|
-
selectedBackgroundColor:
|
|
6580
|
-
selectedDisableBackgroundColor:
|
|
6581
|
-
optionsBoxShadow:
|
|
6582
|
-
optionsBorderRadius:
|
|
6583
|
-
optionsBackgroundColor:
|
|
6584
|
-
optionItemColor:
|
|
6585
|
-
optionItemCursor:
|
|
6586
|
-
optionItemPadding:
|
|
6587
|
-
optionItemFontSize:
|
|
6588
|
-
optionItemFontStyle:
|
|
6589
|
-
optionItemFontFamily:
|
|
6590
|
-
optionItemMinHeight:
|
|
6591
|
-
optionItemBoxSizing:
|
|
6592
|
-
optionItemFontWeight:
|
|
6593
|
-
optionItemColorHover:
|
|
6594
|
-
optionItemLineHeight:
|
|
6595
|
-
optionItemMarginBottom:
|
|
6596
|
-
optionItemBackgroudColor:
|
|
6597
|
-
optionItemBackgroudColorHover:
|
|
6598
|
-
iconRequired:
|
|
6599
|
-
useLabelTooltip:
|
|
6600
|
-
labelTooltipColor:
|
|
6601
|
-
labelTooltipPadding:
|
|
6602
|
-
labelTooltipFontSize:
|
|
6603
|
-
labelTooltipFontStyle:
|
|
6604
|
-
labelTooltipFontFamily:
|
|
6605
|
-
labelTooltipFontWeight:
|
|
6606
|
-
labelTooltipBorderRadius:
|
|
6607
|
-
labelTooltipBackgroundColor:
|
|
6608
|
-
boxShadow:
|
|
6609
|
-
boxShadowHover:
|
|
6610
|
-
insidePagination:
|
|
6611
|
-
placeholderColor:
|
|
6636
|
+
dots: PropTypes__default["default"].bool,
|
|
6637
|
+
lang: PropTypes__default["default"].bool,
|
|
6638
|
+
options: PropTypes__default["default"].array,
|
|
6639
|
+
multiple: PropTypes__default["default"].bool,
|
|
6640
|
+
onChange: PropTypes__default["default"].func,
|
|
6641
|
+
required: PropTypes__default["default"].bool,
|
|
6642
|
+
disabled: PropTypes__default["default"].bool,
|
|
6643
|
+
selected: PropTypes__default["default"].array,
|
|
6644
|
+
keyNames: PropTypes__default["default"].object,
|
|
6645
|
+
marginTop: PropTypes__default["default"].string,
|
|
6646
|
+
className: PropTypes__default["default"].string,
|
|
6647
|
+
arrowIcon: PropTypes__default["default"].element,
|
|
6648
|
+
closeIcon: PropTypes__default["default"].element,
|
|
6649
|
+
arrowNoRotate: PropTypes__default["default"].bool,
|
|
6650
|
+
showCloseIcon: PropTypes__default["default"].bool,
|
|
6651
|
+
errorZindex: PropTypes__default["default"].number,
|
|
6652
|
+
errorMessage: PropTypes__default["default"].string,
|
|
6653
|
+
defaultOption: PropTypes__default["default"].string,
|
|
6654
|
+
multipleCheckbox: PropTypes__default["default"].bool,
|
|
6655
|
+
label: PropTypes__default["default"].string,
|
|
6656
|
+
labelColor: PropTypes__default["default"].string,
|
|
6657
|
+
labelWeight: PropTypes__default["default"].string,
|
|
6658
|
+
labelDisplay: PropTypes__default["default"].string,
|
|
6659
|
+
labelFontSize: PropTypes__default["default"].string,
|
|
6660
|
+
labelFontStyle: PropTypes__default["default"].string,
|
|
6661
|
+
labelLineHeight: PropTypes__default["default"].string,
|
|
6662
|
+
labelFontFamily: PropTypes__default["default"].string,
|
|
6663
|
+
labelMarginBottom: PropTypes__default["default"].string,
|
|
6664
|
+
labelTextTransform: PropTypes__default["default"].string,
|
|
6665
|
+
cursor: PropTypes__default["default"].string,
|
|
6666
|
+
errorSize: PropTypes__default["default"].string,
|
|
6667
|
+
errorColor: PropTypes__default["default"].string,
|
|
6668
|
+
errorIcon: PropTypes__default["default"].element,
|
|
6669
|
+
showErrorIcon: PropTypes__default["default"].bool,
|
|
6670
|
+
selectedColor: PropTypes__default["default"].string,
|
|
6671
|
+
selectedRadius: PropTypes__default["default"].string,
|
|
6672
|
+
selectedMinHeight: PropTypes__default["default"].string,
|
|
6673
|
+
selectedPadding: PropTypes__default["default"].string,
|
|
6674
|
+
selectedFontSize: PropTypes__default["default"].string,
|
|
6675
|
+
selectedFontStyle: PropTypes__default["default"].string,
|
|
6676
|
+
selectedBoxSizing: PropTypes__default["default"].string,
|
|
6677
|
+
selectedFontFamily: PropTypes__default["default"].string,
|
|
6678
|
+
selectedHoverColor: PropTypes__default["default"].string,
|
|
6679
|
+
selectedFontWeight: PropTypes__default["default"].string,
|
|
6680
|
+
selectedLineHeight: PropTypes__default["default"].string,
|
|
6681
|
+
selectedTransition: PropTypes__default["default"].string,
|
|
6682
|
+
selectedBackgroundColor: PropTypes__default["default"].string,
|
|
6683
|
+
selectedDisableBackgroundColor: PropTypes__default["default"].string,
|
|
6684
|
+
optionsBoxShadow: PropTypes__default["default"].string,
|
|
6685
|
+
optionsBorderRadius: PropTypes__default["default"].string,
|
|
6686
|
+
optionsBackgroundColor: PropTypes__default["default"].string,
|
|
6687
|
+
optionItemColor: PropTypes__default["default"].string,
|
|
6688
|
+
optionItemCursor: PropTypes__default["default"].string,
|
|
6689
|
+
optionItemPadding: PropTypes__default["default"].string,
|
|
6690
|
+
optionItemFontSize: PropTypes__default["default"].string,
|
|
6691
|
+
optionItemFontStyle: PropTypes__default["default"].string,
|
|
6692
|
+
optionItemFontFamily: PropTypes__default["default"].string,
|
|
6693
|
+
optionItemMinHeight: PropTypes__default["default"].string,
|
|
6694
|
+
optionItemBoxSizing: PropTypes__default["default"].string,
|
|
6695
|
+
optionItemFontWeight: PropTypes__default["default"].string,
|
|
6696
|
+
optionItemColorHover: PropTypes__default["default"].string,
|
|
6697
|
+
optionItemLineHeight: PropTypes__default["default"].string,
|
|
6698
|
+
optionItemMarginBottom: PropTypes__default["default"].string,
|
|
6699
|
+
optionItemBackgroudColor: PropTypes__default["default"].string,
|
|
6700
|
+
optionItemBackgroudColorHover: PropTypes__default["default"].string,
|
|
6701
|
+
iconRequired: PropTypes__default["default"].element,
|
|
6702
|
+
useLabelTooltip: PropTypes__default["default"].bool,
|
|
6703
|
+
labelTooltipColor: PropTypes__default["default"].string,
|
|
6704
|
+
labelTooltipPadding: PropTypes__default["default"].string,
|
|
6705
|
+
labelTooltipFontSize: PropTypes__default["default"].string,
|
|
6706
|
+
labelTooltipFontStyle: PropTypes__default["default"].string,
|
|
6707
|
+
labelTooltipFontFamily: PropTypes__default["default"].string,
|
|
6708
|
+
labelTooltipFontWeight: PropTypes__default["default"].string,
|
|
6709
|
+
labelTooltipBorderRadius: PropTypes__default["default"].string,
|
|
6710
|
+
labelTooltipBackgroundColor: PropTypes__default["default"].string,
|
|
6711
|
+
boxShadow: PropTypes__default["default"].string,
|
|
6712
|
+
boxShadowHover: PropTypes__default["default"].string,
|
|
6713
|
+
insidePagination: PropTypes__default["default"].bool,
|
|
6714
|
+
placeholderColor: PropTypes__default["default"].string
|
|
6612
6715
|
};
|
|
6613
6716
|
|
|
6614
6717
|
const SvgToasterInfo = ({
|
|
@@ -6787,7 +6890,7 @@ const Toast = ({
|
|
|
6787
6890
|
clearTimeout(timeoutClick);
|
|
6788
6891
|
};
|
|
6789
6892
|
}, []);
|
|
6790
|
-
return /*#__PURE__*/
|
|
6893
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6791
6894
|
ref: ref,
|
|
6792
6895
|
onClick: handleToasterClick,
|
|
6793
6896
|
style: {
|
|
@@ -6802,7 +6905,7 @@ const Toast = ({
|
|
|
6802
6905
|
${styles$6['notify-block']}
|
|
6803
6906
|
${position === 'top-left' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'top-right' ? showToaster ? styles$6['bounce-in-right'] : styles$6['bounce-out-right'] : position === 'top-center' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'bottom-left' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'bottom-right' ? showToaster ? styles$6['bounce-in-right'] : styles$6['bounce-out-right'] : position === 'bottom-center' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : ''}
|
|
6804
6907
|
`
|
|
6805
|
-
}, /*#__PURE__*/
|
|
6908
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6806
6909
|
style: {
|
|
6807
6910
|
display: 'flex',
|
|
6808
6911
|
height: `calc(${propStyles.height} - 28px)`,
|
|
@@ -6813,7 +6916,7 @@ const Toast = ({
|
|
|
6813
6916
|
alignItems: 'center',
|
|
6814
6917
|
justifyContent: 'center'
|
|
6815
6918
|
}
|
|
6816
|
-
}, type === 'info' ? icons.info ? /*#__PURE__*/
|
|
6919
|
+
}, type === 'info' ? icons.info ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6817
6920
|
src: icons.info,
|
|
6818
6921
|
alt: "icons",
|
|
6819
6922
|
style: {
|
|
@@ -6822,7 +6925,7 @@ const Toast = ({
|
|
|
6822
6925
|
objectFit: 'cover',
|
|
6823
6926
|
objectPosition: 'center'
|
|
6824
6927
|
}
|
|
6825
|
-
}) : /*#__PURE__*/
|
|
6928
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterInfo, null) : type === 'warn' ? icons.warn ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6826
6929
|
src: icons.warn,
|
|
6827
6930
|
alt: "icons",
|
|
6828
6931
|
style: {
|
|
@@ -6831,7 +6934,7 @@ const Toast = ({
|
|
|
6831
6934
|
objectFit: 'cover',
|
|
6832
6935
|
objectPosition: 'center'
|
|
6833
6936
|
}
|
|
6834
|
-
}) : /*#__PURE__*/
|
|
6937
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterWarning, null) : type === 'error' ? icons.error ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6835
6938
|
src: icons.error,
|
|
6836
6939
|
alt: "icons",
|
|
6837
6940
|
style: {
|
|
@@ -6840,7 +6943,7 @@ const Toast = ({
|
|
|
6840
6943
|
objectFit: 'cover',
|
|
6841
6944
|
objectPosition: 'center'
|
|
6842
6945
|
}
|
|
6843
|
-
}) : /*#__PURE__*/
|
|
6946
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterError, null) : type === 'success' ? icons.success ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6844
6947
|
src: icons.success,
|
|
6845
6948
|
alt: "icons",
|
|
6846
6949
|
style: {
|
|
@@ -6849,14 +6952,14 @@ const Toast = ({
|
|
|
6849
6952
|
objectFit: 'cover',
|
|
6850
6953
|
objectPosition: 'center'
|
|
6851
6954
|
}
|
|
6852
|
-
}) : /*#__PURE__*/
|
|
6955
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterSuccess, null) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6853
6956
|
style: {
|
|
6854
6957
|
height: '100%',
|
|
6855
6958
|
width: `calc(100% - ${finalCheck})`,
|
|
6856
6959
|
minWidth: '50%',
|
|
6857
6960
|
maxWidth: 'calc(100% - 90px)'
|
|
6858
6961
|
}
|
|
6859
|
-
}, title && /*#__PURE__*/
|
|
6962
|
+
}, title && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
6860
6963
|
style: {
|
|
6861
6964
|
margin: '0px',
|
|
6862
6965
|
color: titleStyles.color,
|
|
@@ -6868,7 +6971,7 @@ const Toast = ({
|
|
|
6868
6971
|
...titleStyles.props
|
|
6869
6972
|
},
|
|
6870
6973
|
className: styles$6['notify-title']
|
|
6871
|
-
}, title), description && /*#__PURE__*/
|
|
6974
|
+
}, title), description && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6872
6975
|
style: {
|
|
6873
6976
|
color: descriptionStyles.color,
|
|
6874
6977
|
fontSize: descriptionStyles.font.size,
|
|
@@ -6879,7 +6982,7 @@ const Toast = ({
|
|
|
6879
6982
|
...descriptionStyles.props
|
|
6880
6983
|
},
|
|
6881
6984
|
className: styles$6['notify-desc']
|
|
6882
|
-
}, description)), /*#__PURE__*/
|
|
6985
|
+
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6883
6986
|
onClick: () => handleCloseToaster(ref),
|
|
6884
6987
|
style: {
|
|
6885
6988
|
width: `calc(${propStyles.height} - 65px)`,
|
|
@@ -6888,7 +6991,7 @@ const Toast = ({
|
|
|
6888
6991
|
minHeight: '18px',
|
|
6889
6992
|
cursor: 'pointer'
|
|
6890
6993
|
}
|
|
6891
|
-
}, icons.close ? /*#__PURE__*/
|
|
6994
|
+
}, icons.close ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6892
6995
|
src: icons.close,
|
|
6893
6996
|
alt: "icons",
|
|
6894
6997
|
style: {
|
|
@@ -6897,15 +7000,15 @@ const Toast = ({
|
|
|
6897
7000
|
objectFit: 'cover',
|
|
6898
7001
|
objectPosition: 'center'
|
|
6899
7002
|
}
|
|
6900
|
-
}) : /*#__PURE__*/
|
|
7003
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterClose, null)));
|
|
6901
7004
|
};
|
|
6902
7005
|
Toast.propTypes = {
|
|
6903
|
-
timer:
|
|
6904
|
-
title:
|
|
6905
|
-
description:
|
|
6906
|
-
removeToast:
|
|
6907
|
-
position:
|
|
6908
|
-
type:
|
|
7006
|
+
timer: PropTypes__default["default"].number,
|
|
7007
|
+
title: PropTypes__default["default"].string,
|
|
7008
|
+
description: PropTypes__default["default"].string,
|
|
7009
|
+
removeToast: PropTypes__default["default"].func.isRequired,
|
|
7010
|
+
position: PropTypes__default["default"].oneOf(Object.values(ToasterPosition)),
|
|
7011
|
+
type: PropTypes__default["default"].oneOf(Object.values(ToasterType)).isRequired
|
|
6909
7012
|
};
|
|
6910
7013
|
|
|
6911
7014
|
let toastify = document.getElementById('toastify');
|
|
@@ -6928,21 +7031,21 @@ const removeToast = ref => {
|
|
|
6928
7031
|
const createElem$1 = (type, timer, title, position, styleProps, toastBlock, description, innerConfigStyles) => {
|
|
6929
7032
|
const projectTitleStyle = styleProps?.title;
|
|
6930
7033
|
const packageTitleStyle = innerConfigStyles?.TOASTER?.title;
|
|
6931
|
-
const compareTitleStyles =
|
|
7034
|
+
const compareTitleStyles = ___default["default"].merge({
|
|
6932
7035
|
...packageTitleStyle
|
|
6933
7036
|
}, {
|
|
6934
7037
|
...projectTitleStyle
|
|
6935
7038
|
});
|
|
6936
7039
|
const projectDescStyle = styleProps?.description;
|
|
6937
7040
|
const packageDescStyle = innerConfigStyles?.TOASTER?.description;
|
|
6938
|
-
const compareDescStyles =
|
|
7041
|
+
const compareDescStyles = ___default["default"].merge({
|
|
6939
7042
|
...packageDescStyle
|
|
6940
7043
|
}, {
|
|
6941
7044
|
...projectDescStyle
|
|
6942
7045
|
});
|
|
6943
7046
|
const projectIcons = styleProps?.icons;
|
|
6944
7047
|
const packageIcons = innerConfigStyles?.TOASTER?.icons;
|
|
6945
|
-
const icons =
|
|
7048
|
+
const icons = ___default["default"].merge({
|
|
6946
7049
|
...packageIcons
|
|
6947
7050
|
}, {
|
|
6948
7051
|
...projectIcons
|
|
@@ -6952,7 +7055,7 @@ const createElem$1 = (type, timer, title, position, styleProps, toastBlock, desc
|
|
|
6952
7055
|
toastBlock.style.width = styleProps?.width ?? innerConfigStyles?.TOASTER?.width;
|
|
6953
7056
|
toastBlock.style.height = styleProps?.height ?? innerConfigStyles?.TOASTER?.height;
|
|
6954
7057
|
toastBlock.style.marginBottom = styleProps?.marginBottom ?? innerConfigStyles?.TOASTER?.marginBottom;
|
|
6955
|
-
const newElem = /*#__PURE__*/
|
|
7058
|
+
const newElem = /*#__PURE__*/React__default["default"].createElement(Toast, {
|
|
6956
7059
|
type,
|
|
6957
7060
|
icons,
|
|
6958
7061
|
timer,
|
|
@@ -6973,7 +7076,7 @@ const createElem$1 = (type, timer, title, position, styleProps, toastBlock, desc
|
|
|
6973
7076
|
titleStyles: compareTitleStyles,
|
|
6974
7077
|
descriptionStyles: compareDescStyles
|
|
6975
7078
|
});
|
|
6976
|
-
const root =
|
|
7079
|
+
const root = ReactDOM__default["default"].createRoot(toastBlock);
|
|
6977
7080
|
root.render(newElem);
|
|
6978
7081
|
};
|
|
6979
7082
|
const createToast = ({
|
|
@@ -7107,7 +7210,7 @@ const Toaster = () => {
|
|
|
7107
7210
|
console.error(error);
|
|
7108
7211
|
});
|
|
7109
7212
|
}, []);
|
|
7110
|
-
return configStyles.TOASTER && /*#__PURE__*/
|
|
7213
|
+
return configStyles.TOASTER && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7111
7214
|
onClick: handleToasterClick,
|
|
7112
7215
|
id: "toastify"
|
|
7113
7216
|
});
|
|
@@ -7206,7 +7309,7 @@ const Tooltip = ({
|
|
|
7206
7309
|
iconBlockRef.current && iconBlockRef.current.clientHeight && iconBlockRef.current.clientHeight > 0 && setTooltipIconBlockHeight(iconBlockRef.current.clientHeight);
|
|
7207
7310
|
}, [iconBlockRef, tooltipIconParentWidth, tooltipIconParentHeight]);
|
|
7208
7311
|
React.useEffect(() => {
|
|
7209
|
-
className && setClassProps(() =>
|
|
7312
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TOOLTIP.className));
|
|
7210
7313
|
}, [className]);
|
|
7211
7314
|
React.useEffect(() => {
|
|
7212
7315
|
document.addEventListener('click', () => {
|
|
@@ -7222,7 +7325,7 @@ const Tooltip = ({
|
|
|
7222
7325
|
}, [showTooltip]);
|
|
7223
7326
|
React.useEffect(() => {
|
|
7224
7327
|
configStylesPromise.then(data => {
|
|
7225
|
-
setClassProps(() =>
|
|
7328
|
+
setClassProps(() => classnames__default["default"](styles$5['tooltip-block'], className ?? data.TOOLTIP.className));
|
|
7226
7329
|
setConfigStyles(() => {
|
|
7227
7330
|
return {
|
|
7228
7331
|
...data
|
|
@@ -7232,7 +7335,7 @@ const Tooltip = ({
|
|
|
7232
7335
|
console.error(error);
|
|
7233
7336
|
});
|
|
7234
7337
|
}, []);
|
|
7235
|
-
return configStyles.TOOLTIP && /*#__PURE__*/
|
|
7338
|
+
return configStyles.TOOLTIP && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7236
7339
|
ref: tooltipIconParentRef,
|
|
7237
7340
|
className: classProps,
|
|
7238
7341
|
style: {
|
|
@@ -7242,7 +7345,7 @@ const Tooltip = ({
|
|
|
7242
7345
|
backgroundColor: backgroundColor ?? configStyles.TOOLTIP.parent.colors.background
|
|
7243
7346
|
},
|
|
7244
7347
|
onClick: e => e.stopPropagation()
|
|
7245
|
-
}, showTooltip ? /*#__PURE__*/
|
|
7348
|
+
}, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7246
7349
|
ref: tooltipRef,
|
|
7247
7350
|
className: `${styles$5['tooltip']}`,
|
|
7248
7351
|
style: {
|
|
@@ -7252,16 +7355,16 @@ const Tooltip = ({
|
|
|
7252
7355
|
top: direction === 'top' || direction === 'top-left' || direction === 'top-right' ? `calc(-${checkTooltipHeight + 7}px)` : direction === 'bottom' || direction === 'bottom-left' || direction === 'bottom-right' ? 'calc(100% + 7px)' : direction === 'left' || direction === 'right' ? `calc(50% - ${checkTooltipHeight / 2}px)` : direction === 'left-top' || direction === 'right-top' ? '0px' : direction === 'left-bottom' || direction === 'right-bottom' ? `calc(-${checkTooltipHeight - tooltipIconParentHeight}px)` : '0px',
|
|
7253
7356
|
left: direction === 'top' || direction === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : direction === 'left' || direction === 'left-top' || direction === 'left-bottom' ? `-${checkTooltipWidth + 7}px` : direction === 'top-left' || direction === 'bottom-left' ? `0px` : direction === 'top-right' || direction === 'bottom-right' ? `-${checkTooltipWidth - tooltipIconParentWidth}px` : direction === 'right' || direction === 'right-top' || direction === 'right-bottom' ? 'calc(100% + 7px)' : '0px'
|
|
7254
7357
|
}
|
|
7255
|
-
}, /*#__PURE__*/
|
|
7358
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7256
7359
|
className: `${styles$5['tooltip-rel']}`
|
|
7257
|
-
}, /*#__PURE__*/
|
|
7360
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7258
7361
|
className: `${styles$5['tooltip-decor']}`,
|
|
7259
7362
|
style: {
|
|
7260
7363
|
backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
|
|
7261
7364
|
left: direction === 'top' || direction === 'bottom' ? 'calc(50% - 5px)' : direction === 'right' || direction === 'right-top' || direction === 'right-bottom' ? '-15px' : direction === 'left' || direction === 'left-top' || direction === 'left-bottom' ? 'calc(100% + 5px)' : direction === 'top-left' || direction === 'bottom-left' ? `${tooltipIconParentWidth / 2 - tooltipIconBlockWidth}px` : direction === 'top-right' || direction === 'bottom-right' ? `calc(100% - ${tooltipIconParentWidth / 2 - tooltipIconBlockWidth / 2}px` : '0px',
|
|
7262
7365
|
top: direction === 'top' || direction === 'top-left' || direction === 'top-right' ? 'calc(100% + 5px)' : direction === 'bottom' || direction === 'bottom-left' || direction === 'bottom-right' ? '-15px' : direction === 'right' || direction === 'left' ? 'calc(50% - 5px)' : direction === 'left-top' || direction === 'right-top' ? `${tooltipIconParentHeight / 2 - tooltipIconBlockHeight}px` : direction === 'left-bottom' || direction === 'right-bottom' ? `calc(100% - ${tooltipIconParentHeight / 2 - tooltipIconBlockHeight / 2}px` : '0px'
|
|
7263
7366
|
}
|
|
7264
|
-
}), /*#__PURE__*/
|
|
7367
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7265
7368
|
style: {
|
|
7266
7369
|
color: color ?? configStyles.TOOLTIP.color,
|
|
7267
7370
|
fontSize: fontSize ?? configStyles.TOOLTIP.font.size,
|
|
@@ -7269,7 +7372,7 @@ const Tooltip = ({
|
|
|
7269
7372
|
fontFamily: fontFamily ?? configStyles.TOOLTIP.font.family,
|
|
7270
7373
|
fontWeight: fontWeight ?? configStyles.TOOLTIP.font.weight
|
|
7271
7374
|
}
|
|
7272
|
-
}, text))) : '', /*#__PURE__*/
|
|
7375
|
+
}, text))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7273
7376
|
ref: iconBlockRef,
|
|
7274
7377
|
onClick: hoverOpen ? _ => _ : handleShow,
|
|
7275
7378
|
style: {
|
|
@@ -7278,26 +7381,26 @@ const Tooltip = ({
|
|
|
7278
7381
|
},
|
|
7279
7382
|
onMouseEnter: hoverOpen ? handleMouseEnter : _ => _,
|
|
7280
7383
|
onMouseLeave: hoverOpen ? handleMouseLeave : _ => _
|
|
7281
|
-
}, tooltipIcon ? tooltipIcon : configStyles.TOOLTIP.icon ? configStyles.TOOLTIP.icon : /*#__PURE__*/
|
|
7384
|
+
}, tooltipIcon ? tooltipIcon : configStyles.TOOLTIP.icon ? configStyles.TOOLTIP.icon : /*#__PURE__*/React__default["default"].createElement(SvgTooltip, null)));
|
|
7282
7385
|
};
|
|
7283
7386
|
Tooltip.propTypes = {
|
|
7284
|
-
width:
|
|
7285
|
-
color:
|
|
7286
|
-
height:
|
|
7287
|
-
radius:
|
|
7288
|
-
hoverOpen:
|
|
7289
|
-
fontSize:
|
|
7290
|
-
fontStyle:
|
|
7291
|
-
className:
|
|
7292
|
-
fontFamily:
|
|
7293
|
-
fontWeight:
|
|
7294
|
-
tooltipWidth:
|
|
7295
|
-
tooltipIcon:
|
|
7296
|
-
tooltipRadius:
|
|
7297
|
-
text:
|
|
7298
|
-
backgroundColor:
|
|
7299
|
-
tooltipBackgroundColor:
|
|
7300
|
-
direction:
|
|
7387
|
+
width: PropTypes__default["default"].string,
|
|
7388
|
+
color: PropTypes__default["default"].string,
|
|
7389
|
+
height: PropTypes__default["default"].string,
|
|
7390
|
+
radius: PropTypes__default["default"].string,
|
|
7391
|
+
hoverOpen: PropTypes__default["default"].bool,
|
|
7392
|
+
fontSize: PropTypes__default["default"].string,
|
|
7393
|
+
fontStyle: PropTypes__default["default"].string,
|
|
7394
|
+
className: PropTypes__default["default"].string,
|
|
7395
|
+
fontFamily: PropTypes__default["default"].string,
|
|
7396
|
+
fontWeight: PropTypes__default["default"].string,
|
|
7397
|
+
tooltipWidth: PropTypes__default["default"].string,
|
|
7398
|
+
tooltipIcon: PropTypes__default["default"].element,
|
|
7399
|
+
tooltipRadius: PropTypes__default["default"].string,
|
|
7400
|
+
text: PropTypes__default["default"].string.isRequired,
|
|
7401
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
7402
|
+
tooltipBackgroundColor: PropTypes__default["default"].string,
|
|
7403
|
+
direction: PropTypes__default["default"].oneOf(Object.values(TooltipDirections))
|
|
7301
7404
|
};
|
|
7302
7405
|
|
|
7303
7406
|
const SvgCaptchaArrowUp = ({
|
|
@@ -7379,11 +7482,11 @@ const Captcha = ({
|
|
|
7379
7482
|
}
|
|
7380
7483
|
}, [range, getRange]);
|
|
7381
7484
|
React.useEffect(() => {
|
|
7382
|
-
className && setClassProps(() =>
|
|
7485
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.CAPTCHA.className));
|
|
7383
7486
|
}, [className]);
|
|
7384
7487
|
React.useEffect(() => {
|
|
7385
7488
|
configStylesPromise.then(data => {
|
|
7386
|
-
setClassProps(() =>
|
|
7489
|
+
setClassProps(() => classnames__default["default"](className ?? data.CAPTCHA.className));
|
|
7387
7490
|
setConfigStyles(() => {
|
|
7388
7491
|
return {
|
|
7389
7492
|
...data
|
|
@@ -7393,9 +7496,9 @@ const Captcha = ({
|
|
|
7393
7496
|
console.error(error);
|
|
7394
7497
|
});
|
|
7395
7498
|
}, []);
|
|
7396
|
-
return configStyles.CAPTCHA && /*#__PURE__*/
|
|
7499
|
+
return configStyles.CAPTCHA && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7397
7500
|
className: classProps
|
|
7398
|
-
}, label && /*#__PURE__*/
|
|
7501
|
+
}, label && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
7399
7502
|
style: {
|
|
7400
7503
|
color: color ?? configStyles.CAPTCHA.label.color,
|
|
7401
7504
|
fontSize: fontSize ?? configStyles.CAPTCHA.label.font.size,
|
|
@@ -7403,21 +7506,21 @@ const Captcha = ({
|
|
|
7403
7506
|
fontFamily: fontFamily ?? configStyles.CAPTCHA.label.font.family,
|
|
7404
7507
|
fontWeight: fontWeight ?? configStyles.CAPTCHA.label.font.weight
|
|
7405
7508
|
}
|
|
7406
|
-
}, label), /*#__PURE__*/
|
|
7509
|
+
}, label), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7407
7510
|
style: {
|
|
7408
7511
|
width: '100%',
|
|
7409
7512
|
height: '76px',
|
|
7410
7513
|
maxWidth: '400px',
|
|
7411
7514
|
position: 'relative'
|
|
7412
7515
|
}
|
|
7413
|
-
}, /*#__PURE__*/
|
|
7516
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7414
7517
|
style: {
|
|
7415
7518
|
position: 'absolute',
|
|
7416
7519
|
top: '0px',
|
|
7417
7520
|
height: '15px',
|
|
7418
7521
|
left: `calc(${rangeNumber}% - 6px)`
|
|
7419
7522
|
}
|
|
7420
|
-
}, /*#__PURE__*/
|
|
7523
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgCaptchaArrowDown, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7421
7524
|
style: {
|
|
7422
7525
|
position: 'absolute',
|
|
7423
7526
|
display: 'flex',
|
|
@@ -7429,7 +7532,7 @@ const Captcha = ({
|
|
|
7429
7532
|
zIndex: 1
|
|
7430
7533
|
},
|
|
7431
7534
|
className: styles$4['start-point']
|
|
7432
|
-
}, /*#__PURE__*/
|
|
7535
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7433
7536
|
style: {
|
|
7434
7537
|
position: 'absolute',
|
|
7435
7538
|
top: '13px',
|
|
@@ -7440,7 +7543,7 @@ const Captcha = ({
|
|
|
7440
7543
|
borderRadius: '10px',
|
|
7441
7544
|
zIndex: -2
|
|
7442
7545
|
}
|
|
7443
|
-
}), /*#__PURE__*/
|
|
7546
|
+
}), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
7444
7547
|
min: 0,
|
|
7445
7548
|
step: 5,
|
|
7446
7549
|
max: 100,
|
|
@@ -7458,7 +7561,7 @@ const Captcha = ({
|
|
|
7458
7561
|
${+rangeProgress === rangeNumber ? styles$4['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$4['range-error'] : styles$4['range-default']}
|
|
7459
7562
|
`,
|
|
7460
7563
|
onInput: handleRange
|
|
7461
|
-
}), /*#__PURE__*/
|
|
7564
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7462
7565
|
style: {
|
|
7463
7566
|
position: 'absolute',
|
|
7464
7567
|
top: '13px',
|
|
@@ -7469,7 +7572,7 @@ const Captcha = ({
|
|
|
7469
7572
|
backgroundColor: +rangeProgress === rangeNumber ? '#0DA574' : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? '#EE0000' : 'transparent',
|
|
7470
7573
|
zIndex: -1
|
|
7471
7574
|
}
|
|
7472
|
-
})), /*#__PURE__*/
|
|
7575
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7473
7576
|
style: {
|
|
7474
7577
|
position: 'absolute',
|
|
7475
7578
|
bottom: '0px',
|
|
@@ -7477,12 +7580,12 @@ const Captcha = ({
|
|
|
7477
7580
|
left: `calc(${rangeNumber}% - 6px)`,
|
|
7478
7581
|
transform: 'translate(-50% -50%)'
|
|
7479
7582
|
}
|
|
7480
|
-
}, /*#__PURE__*/
|
|
7583
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgCaptchaArrowUp, null))));
|
|
7481
7584
|
};
|
|
7482
7585
|
Captcha.propTypes = {
|
|
7483
|
-
label:
|
|
7484
|
-
range:
|
|
7485
|
-
getRange:
|
|
7586
|
+
label: PropTypes__default["default"].string,
|
|
7587
|
+
range: PropTypes__default["default"].number.isRequired,
|
|
7588
|
+
getRange: PropTypes__default["default"].func.isRequired
|
|
7486
7589
|
};
|
|
7487
7590
|
|
|
7488
7591
|
var css_248z$4 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
|
|
@@ -7497,11 +7600,11 @@ const Stepper = ({
|
|
|
7497
7600
|
const [classProps, setClassProps] = React.useState({});
|
|
7498
7601
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
7499
7602
|
React.useEffect(() => {
|
|
7500
|
-
className && setClassProps(() =>
|
|
7603
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`));
|
|
7501
7604
|
}, [className]);
|
|
7502
7605
|
React.useEffect(() => {
|
|
7503
7606
|
configStylesPromise.then(data => {
|
|
7504
|
-
setClassProps(() =>
|
|
7607
|
+
setClassProps(() => classnames__default["default"](className ?? data.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`));
|
|
7505
7608
|
setConfigStyles(() => {
|
|
7506
7609
|
return {
|
|
7507
7610
|
...data
|
|
@@ -7511,26 +7614,26 @@ const Stepper = ({
|
|
|
7511
7614
|
console.error(error);
|
|
7512
7615
|
});
|
|
7513
7616
|
}, []);
|
|
7514
|
-
return configStyles.STEPPER && /*#__PURE__*/
|
|
7617
|
+
return configStyles.STEPPER && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7515
7618
|
className: classProps
|
|
7516
7619
|
}, (() => {
|
|
7517
7620
|
let steppers = [];
|
|
7518
7621
|
for (let step = 1; step <= stepLength; step++) {
|
|
7519
|
-
steppers.push(/*#__PURE__*/
|
|
7520
|
-
className:
|
|
7622
|
+
steppers.push(/*#__PURE__*/React__default["default"].createElement("div", {
|
|
7623
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
|
|
7521
7624
|
key: step
|
|
7522
|
-
}, /*#__PURE__*/
|
|
7523
|
-
className:
|
|
7625
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7626
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
|
|
7524
7627
|
}, step <= activeSteps ? step : '')));
|
|
7525
7628
|
}
|
|
7526
7629
|
return steppers;
|
|
7527
7630
|
})());
|
|
7528
7631
|
};
|
|
7529
7632
|
Stepper.propTypes = {
|
|
7530
|
-
className:
|
|
7531
|
-
onChange:
|
|
7532
|
-
stepLength:
|
|
7533
|
-
activeSteps:
|
|
7633
|
+
className: PropTypes__default["default"].string,
|
|
7634
|
+
onChange: PropTypes__default["default"].func,
|
|
7635
|
+
stepLength: PropTypes__default["default"].number,
|
|
7636
|
+
activeSteps: PropTypes__default["default"].number
|
|
7534
7637
|
};
|
|
7535
7638
|
|
|
7536
7639
|
const DirectionMode = {
|
|
@@ -7593,11 +7696,11 @@ const Checkbox = ({
|
|
|
7593
7696
|
}
|
|
7594
7697
|
}, [keyNames]);
|
|
7595
7698
|
React.useEffect(() => {
|
|
7596
|
-
className && setClassProps(() =>
|
|
7699
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.CHECKBOX.className));
|
|
7597
7700
|
}, [className]);
|
|
7598
7701
|
React.useEffect(() => {
|
|
7599
7702
|
configStylesPromise.then(data => {
|
|
7600
|
-
setClassProps(() =>
|
|
7703
|
+
setClassProps(() => classnames__default["default"](className ?? data.CHECKBOX.className));
|
|
7601
7704
|
setConfigStyles(() => {
|
|
7602
7705
|
return {
|
|
7603
7706
|
...data
|
|
@@ -7607,7 +7710,7 @@ const Checkbox = ({
|
|
|
7607
7710
|
console.error(error);
|
|
7608
7711
|
});
|
|
7609
7712
|
}, []);
|
|
7610
|
-
return configStyles.CHECKBOX && /*#__PURE__*/
|
|
7713
|
+
return configStyles.CHECKBOX && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7611
7714
|
style: {
|
|
7612
7715
|
width: '100%',
|
|
7613
7716
|
display: 'flex',
|
|
@@ -7615,13 +7718,13 @@ const Checkbox = ({
|
|
|
7615
7718
|
},
|
|
7616
7719
|
className: classProps
|
|
7617
7720
|
}, innerData && innerData.length > 0 && innerData.map((item, index) => {
|
|
7618
|
-
return /*#__PURE__*/
|
|
7721
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7619
7722
|
key: `TUI_${index}_checkbox`,
|
|
7620
7723
|
style: {
|
|
7621
7724
|
width: 'fit-content',
|
|
7622
7725
|
marginBottom: direction === 'vertical' ? checkBoxMarginBottom ?? configStyles.CHECKBOX.marginBottom : '0px'
|
|
7623
7726
|
}
|
|
7624
|
-
}, /*#__PURE__*/
|
|
7727
|
+
}, /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
7625
7728
|
data: item,
|
|
7626
7729
|
index: index,
|
|
7627
7730
|
handleChecked: handleSendData,
|
|
@@ -7638,16 +7741,16 @@ const Checkbox = ({
|
|
|
7638
7741
|
}));
|
|
7639
7742
|
};
|
|
7640
7743
|
Checkbox.propTypes = {
|
|
7641
|
-
getData:
|
|
7642
|
-
keyNames:
|
|
7643
|
-
checkedIcon:
|
|
7644
|
-
unCheckedIcon:
|
|
7645
|
-
labelMarginLeft:
|
|
7646
|
-
checkedColor:
|
|
7647
|
-
unCheckedColor:
|
|
7648
|
-
checkBoxMarginBottom:
|
|
7649
|
-
direction:
|
|
7650
|
-
data:
|
|
7744
|
+
getData: PropTypes__default["default"].func,
|
|
7745
|
+
keyNames: PropTypes__default["default"].object,
|
|
7746
|
+
checkedIcon: PropTypes__default["default"].element,
|
|
7747
|
+
unCheckedIcon: PropTypes__default["default"].element,
|
|
7748
|
+
labelMarginLeft: PropTypes__default["default"].string,
|
|
7749
|
+
checkedColor: PropTypes__default["default"].string,
|
|
7750
|
+
unCheckedColor: PropTypes__default["default"].string,
|
|
7751
|
+
checkBoxMarginBottom: PropTypes__default["default"].string,
|
|
7752
|
+
direction: PropTypes__default["default"].oneOf(Object.values(DirectionMode)),
|
|
7753
|
+
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].arrayOf(PropTypes__default["default"].object), PropTypes__default["default"].object])
|
|
7651
7754
|
};
|
|
7652
7755
|
|
|
7653
7756
|
const PositionSide = {
|
|
@@ -7837,11 +7940,11 @@ const Textarea = ({
|
|
|
7837
7940
|
setInnerValue(() => value);
|
|
7838
7941
|
}, [value, errorMessage]);
|
|
7839
7942
|
React.useEffect(() => {
|
|
7840
|
-
className && setClassProps(() =>
|
|
7943
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TEXTAREA.className));
|
|
7841
7944
|
}, [className]);
|
|
7842
7945
|
React.useEffect(() => {
|
|
7843
7946
|
configStylesPromise.then(data => {
|
|
7844
|
-
setClassProps(() =>
|
|
7947
|
+
setClassProps(() => classnames__default["default"](className ?? data.TEXTAREA.className));
|
|
7845
7948
|
setConfigStyles(() => {
|
|
7846
7949
|
return {
|
|
7847
7950
|
...data
|
|
@@ -7851,13 +7954,13 @@ const Textarea = ({
|
|
|
7851
7954
|
console.error(error);
|
|
7852
7955
|
});
|
|
7853
7956
|
}, []);
|
|
7854
|
-
return configStyles.TEXTAREA && /*#__PURE__*/
|
|
7957
|
+
return configStyles.TEXTAREA && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7855
7958
|
ref: parentRef,
|
|
7856
7959
|
style: {
|
|
7857
7960
|
width: width ?? configStyles.TEXTAREA.width
|
|
7858
7961
|
},
|
|
7859
7962
|
className: classProps
|
|
7860
|
-
}, /*#__PURE__*/
|
|
7963
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7861
7964
|
style: {
|
|
7862
7965
|
display: 'flex',
|
|
7863
7966
|
alignItems: 'center',
|
|
@@ -7868,7 +7971,7 @@ const Textarea = ({
|
|
|
7868
7971
|
fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
|
|
7869
7972
|
marginBottom: labelMarginBottom ?? configStyles.TEXTAREA.label.marginBottom
|
|
7870
7973
|
}
|
|
7871
|
-
}, label && /*#__PURE__*/
|
|
7974
|
+
}, label && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7872
7975
|
style: {
|
|
7873
7976
|
display: 'flex',
|
|
7874
7977
|
maxWidth: '100%',
|
|
@@ -7876,7 +7979,7 @@ const Textarea = ({
|
|
|
7876
7979
|
justifyContent: 'flex-start',
|
|
7877
7980
|
width: showCharacterCount && maxLength && characterCountPosition === 'top' ? 'calc(100% - 80px)' : '100%'
|
|
7878
7981
|
}
|
|
7879
|
-
}, /*#__PURE__*/
|
|
7982
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
7880
7983
|
ref: labelRef,
|
|
7881
7984
|
style: {
|
|
7882
7985
|
display: labelDisplay ?? configStyles.TEXTAREA.label.display,
|
|
@@ -7886,12 +7989,12 @@ const Textarea = ({
|
|
|
7886
7989
|
},
|
|
7887
7990
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
7888
7991
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.TEXTAREA.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
7889
|
-
}, label), required && /*#__PURE__*/
|
|
7992
|
+
}, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.TEXTAREA.icon.required ? configStyles.TEXTAREA.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7890
7993
|
style: {
|
|
7891
7994
|
width: 'fit-content',
|
|
7892
7995
|
flexShrink: 0
|
|
7893
7996
|
}
|
|
7894
|
-
}, maxLength - innerValue.length, " \u0576\u056B\u0577")), /*#__PURE__*/
|
|
7997
|
+
}, maxLength - innerValue.length, " \u0576\u056B\u0577")), /*#__PURE__*/React__default["default"].createElement("textarea", {
|
|
7895
7998
|
style: {
|
|
7896
7999
|
width: '100%',
|
|
7897
8000
|
border: 'none',
|
|
@@ -7923,24 +8026,24 @@ const Textarea = ({
|
|
|
7923
8026
|
placeholder: placeholder,
|
|
7924
8027
|
onMouseEnter: handleMouseEnter,
|
|
7925
8028
|
onMouseLeave: handleMouseLeave
|
|
7926
|
-
}), showCharacterCount && maxLength && characterCountPosition === 'bottom' && /*#__PURE__*/
|
|
8029
|
+
}), showCharacterCount && maxLength && characterCountPosition === 'bottom' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7927
8030
|
style: {
|
|
7928
8031
|
float: 'right'
|
|
7929
8032
|
}
|
|
7930
|
-
}, /*#__PURE__*/
|
|
8033
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7931
8034
|
style: {
|
|
7932
8035
|
color: labelColor ?? configStyles.TEXTAREA.label.color,
|
|
7933
8036
|
fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
|
|
7934
8037
|
fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
|
|
7935
8038
|
fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family
|
|
7936
8039
|
}
|
|
7937
|
-
}, maxLength - value.length, " \u0576\u056B\u0577")), error ? /*#__PURE__*/
|
|
8040
|
+
}, maxLength - value.length, " \u0576\u056B\u0577")), error ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7938
8041
|
style: {
|
|
7939
8042
|
clear: 'both',
|
|
7940
8043
|
wordBreak: 'break-all',
|
|
7941
8044
|
maxWidth: width ?? configStyles.TEXTAREA.width
|
|
7942
8045
|
}
|
|
7943
|
-
}, /*#__PURE__*/
|
|
8046
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7944
8047
|
style: {
|
|
7945
8048
|
display: 'inline-block',
|
|
7946
8049
|
color: errorColor ?? configStyles.TEXTAREA.error.color,
|
|
@@ -7953,58 +8056,58 @@ const Textarea = ({
|
|
|
7953
8056
|
}, error)) : '');
|
|
7954
8057
|
};
|
|
7955
8058
|
Textarea.propTypes = {
|
|
7956
|
-
size:
|
|
7957
|
-
name:
|
|
7958
|
-
style:
|
|
7959
|
-
family:
|
|
7960
|
-
weight:
|
|
7961
|
-
width:
|
|
7962
|
-
height:
|
|
7963
|
-
resize:
|
|
7964
|
-
radius:
|
|
7965
|
-
required:
|
|
7966
|
-
disabled:
|
|
7967
|
-
onChange:
|
|
7968
|
-
padding:
|
|
7969
|
-
minWidth:
|
|
7970
|
-
maxWidth:
|
|
7971
|
-
boxShadow:
|
|
7972
|
-
marginTop:
|
|
7973
|
-
boxSizing:
|
|
7974
|
-
minHeight:
|
|
7975
|
-
maxHeight:
|
|
7976
|
-
maxLength:
|
|
7977
|
-
errorSize:
|
|
7978
|
-
errorStyle:
|
|
7979
|
-
errorWeight:
|
|
7980
|
-
errorFamily:
|
|
7981
|
-
className:
|
|
7982
|
-
errorColor:
|
|
7983
|
-
placeholder:
|
|
7984
|
-
errorMessage:
|
|
7985
|
-
backgroundColor:
|
|
7986
|
-
showCharacterCount:
|
|
7987
|
-
value:
|
|
7988
|
-
borderFocusColor:
|
|
7989
|
-
borderHoverColor:
|
|
7990
|
-
label:
|
|
7991
|
-
labelSize:
|
|
7992
|
-
labelColor:
|
|
7993
|
-
labelWeight:
|
|
7994
|
-
labelDisplay:
|
|
7995
|
-
labelFontFamily:
|
|
7996
|
-
labelMarginBottom:
|
|
7997
|
-
iconRequired:
|
|
7998
|
-
useLabelTooltip:
|
|
7999
|
-
labelTooltipColor:
|
|
8000
|
-
labelTooltipPadding:
|
|
8001
|
-
labelTooltipFontSize:
|
|
8002
|
-
labelTooltipFontStyle:
|
|
8003
|
-
labelTooltipFontFamily:
|
|
8004
|
-
labelTooltipFontWeight:
|
|
8005
|
-
labelTooltipBorderRadius:
|
|
8006
|
-
labelTooltipBackgroundColor:
|
|
8007
|
-
characterCountPosition:
|
|
8059
|
+
size: PropTypes__default["default"].string,
|
|
8060
|
+
name: PropTypes__default["default"].string,
|
|
8061
|
+
style: PropTypes__default["default"].string,
|
|
8062
|
+
family: PropTypes__default["default"].string,
|
|
8063
|
+
weight: PropTypes__default["default"].string,
|
|
8064
|
+
width: PropTypes__default["default"].string,
|
|
8065
|
+
height: PropTypes__default["default"].string,
|
|
8066
|
+
resize: PropTypes__default["default"].string,
|
|
8067
|
+
radius: PropTypes__default["default"].string,
|
|
8068
|
+
required: PropTypes__default["default"].bool,
|
|
8069
|
+
disabled: PropTypes__default["default"].bool,
|
|
8070
|
+
onChange: PropTypes__default["default"].func,
|
|
8071
|
+
padding: PropTypes__default["default"].string,
|
|
8072
|
+
minWidth: PropTypes__default["default"].string,
|
|
8073
|
+
maxWidth: PropTypes__default["default"].string,
|
|
8074
|
+
boxShadow: PropTypes__default["default"].string,
|
|
8075
|
+
marginTop: PropTypes__default["default"].string,
|
|
8076
|
+
boxSizing: PropTypes__default["default"].string,
|
|
8077
|
+
minHeight: PropTypes__default["default"].string,
|
|
8078
|
+
maxHeight: PropTypes__default["default"].string,
|
|
8079
|
+
maxLength: PropTypes__default["default"].number,
|
|
8080
|
+
errorSize: PropTypes__default["default"].string,
|
|
8081
|
+
errorStyle: PropTypes__default["default"].string,
|
|
8082
|
+
errorWeight: PropTypes__default["default"].string,
|
|
8083
|
+
errorFamily: PropTypes__default["default"].string,
|
|
8084
|
+
className: PropTypes__default["default"].string,
|
|
8085
|
+
errorColor: PropTypes__default["default"].string,
|
|
8086
|
+
placeholder: PropTypes__default["default"].string,
|
|
8087
|
+
errorMessage: PropTypes__default["default"].string,
|
|
8088
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
8089
|
+
showCharacterCount: PropTypes__default["default"].bool,
|
|
8090
|
+
value: PropTypes__default["default"].string.isRequired,
|
|
8091
|
+
borderFocusColor: PropTypes__default["default"].string,
|
|
8092
|
+
borderHoverColor: PropTypes__default["default"].string,
|
|
8093
|
+
label: PropTypes__default["default"].string,
|
|
8094
|
+
labelSize: PropTypes__default["default"].string,
|
|
8095
|
+
labelColor: PropTypes__default["default"].string,
|
|
8096
|
+
labelWeight: PropTypes__default["default"].string,
|
|
8097
|
+
labelDisplay: PropTypes__default["default"].string,
|
|
8098
|
+
labelFontFamily: PropTypes__default["default"].string,
|
|
8099
|
+
labelMarginBottom: PropTypes__default["default"].string,
|
|
8100
|
+
iconRequired: PropTypes__default["default"].element,
|
|
8101
|
+
useLabelTooltip: PropTypes__default["default"].bool,
|
|
8102
|
+
labelTooltipColor: PropTypes__default["default"].string,
|
|
8103
|
+
labelTooltipPadding: PropTypes__default["default"].string,
|
|
8104
|
+
labelTooltipFontSize: PropTypes__default["default"].string,
|
|
8105
|
+
labelTooltipFontStyle: PropTypes__default["default"].string,
|
|
8106
|
+
labelTooltipFontFamily: PropTypes__default["default"].string,
|
|
8107
|
+
labelTooltipFontWeight: PropTypes__default["default"].string,
|
|
8108
|
+
labelTooltipBorderRadius: PropTypes__default["default"].string,
|
|
8109
|
+
labelTooltipBackgroundColor: PropTypes__default["default"].string,
|
|
8110
|
+
characterCountPosition: PropTypes__default["default"].oneOf(Object.values(PositionSide))
|
|
8008
8111
|
};
|
|
8009
8112
|
|
|
8010
8113
|
const AccordionItem = ({
|
|
@@ -8054,12 +8157,12 @@ const AccordionItem = ({
|
|
|
8054
8157
|
React.useEffect(() => {
|
|
8055
8158
|
setIsOpen(() => open);
|
|
8056
8159
|
}, [open]);
|
|
8057
|
-
return /*#__PURE__*/
|
|
8160
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8058
8161
|
className: className,
|
|
8059
8162
|
style: {
|
|
8060
8163
|
marginBottom: marginBottom ? marginBottom : '0px'
|
|
8061
8164
|
}
|
|
8062
|
-
}, /*#__PURE__*/
|
|
8165
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8063
8166
|
onClick: handleClick,
|
|
8064
8167
|
onMouseEnter: handleMouseEnter,
|
|
8065
8168
|
onMouseLeave: handleMouseLeave,
|
|
@@ -8076,7 +8179,7 @@ const AccordionItem = ({
|
|
|
8076
8179
|
justifyContent: showIcons ? 'space-between' : 'flex-start',
|
|
8077
8180
|
backgroundColor: isHover ? backgroundHoverColor : backgroundColor
|
|
8078
8181
|
}
|
|
8079
|
-
}, item.title && /*#__PURE__*/
|
|
8182
|
+
}, item.title && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8080
8183
|
style: {
|
|
8081
8184
|
width: '90%',
|
|
8082
8185
|
margin: '0px',
|
|
@@ -8090,7 +8193,7 @@ const AccordionItem = ({
|
|
|
8090
8193
|
textAlign: titleAlign ? titleAlign : 'left',
|
|
8091
8194
|
color: isOpen ? hoverColor : isHover ? hoverColor : color
|
|
8092
8195
|
}
|
|
8093
|
-
}, item.title), showIcons && /*#__PURE__*/
|
|
8196
|
+
}, item.title), showIcons && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8094
8197
|
style: {
|
|
8095
8198
|
display: 'flex',
|
|
8096
8199
|
width: 'fit-content',
|
|
@@ -8100,7 +8203,7 @@ const AccordionItem = ({
|
|
|
8100
8203
|
alignItems: 'center',
|
|
8101
8204
|
justifyContent: 'center'
|
|
8102
8205
|
}
|
|
8103
|
-
}, isOpen ? isHover ? closeHoverIcon : closeIcon : isHover ? openHoverIcon : openIcon)), /*#__PURE__*/
|
|
8206
|
+
}, isOpen ? isHover ? closeHoverIcon : closeIcon : isHover ? openHoverIcon : openIcon)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8104
8207
|
style: {
|
|
8105
8208
|
overflow: 'hidden',
|
|
8106
8209
|
height: isOpen ? 'auto' : '0px'
|
|
@@ -8108,7 +8211,7 @@ const AccordionItem = ({
|
|
|
8108
8211
|
}, item.content ? item.content : ''));
|
|
8109
8212
|
};
|
|
8110
8213
|
AccordionItem.propTypes = {
|
|
8111
|
-
open:
|
|
8214
|
+
open: PropTypes__default["default"].bool
|
|
8112
8215
|
};
|
|
8113
8216
|
|
|
8114
8217
|
const SvgGreenplus = ({
|
|
@@ -8198,11 +8301,11 @@ const Accordion = ({
|
|
|
8198
8301
|
}
|
|
8199
8302
|
};
|
|
8200
8303
|
React.useEffect(() => {
|
|
8201
|
-
className && setClassProps(() =>
|
|
8304
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.BUTTON.className));
|
|
8202
8305
|
}, [className]);
|
|
8203
8306
|
React.useEffect(() => {
|
|
8204
8307
|
configStylesPromise.then(data => {
|
|
8205
|
-
setClassProps(() =>
|
|
8308
|
+
setClassProps(() => classnames__default["default"](className ?? data.BUTTON.className));
|
|
8206
8309
|
setConfigStyles(() => {
|
|
8207
8310
|
return {
|
|
8208
8311
|
...data
|
|
@@ -8212,12 +8315,12 @@ const Accordion = ({
|
|
|
8212
8315
|
console.error(error);
|
|
8213
8316
|
});
|
|
8214
8317
|
}, []);
|
|
8215
|
-
return configStyles.ACCORDION && /*#__PURE__*/
|
|
8318
|
+
return configStyles.ACCORDION && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8216
8319
|
style: {
|
|
8217
8320
|
width: '100%'
|
|
8218
8321
|
}
|
|
8219
8322
|
}, data && data.length ? data.map((item, index) => {
|
|
8220
|
-
return /*#__PURE__*/
|
|
8323
|
+
return /*#__PURE__*/React__default["default"].createElement(AccordionItem, {
|
|
8221
8324
|
item: item,
|
|
8222
8325
|
index: index,
|
|
8223
8326
|
onClick: handleClick,
|
|
@@ -8226,34 +8329,34 @@ const Accordion = ({
|
|
|
8226
8329
|
key: `${item.title}__TUI__${index}`,
|
|
8227
8330
|
open: openIndex === index ? true : false,
|
|
8228
8331
|
showIcons: showIcons ?? configStyles.ACCORDION.showIcons,
|
|
8229
|
-
openIcon: openIcon ? /*#__PURE__*/
|
|
8332
|
+
openIcon: openIcon ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8230
8333
|
src: openIcon,
|
|
8231
8334
|
alt: "open icon"
|
|
8232
|
-
}) : configStyles.ACCORDION.icon.open ? /*#__PURE__*/
|
|
8335
|
+
}) : configStyles.ACCORDION.icon.open ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8233
8336
|
src: configStyles.ACCORDION.icon.open,
|
|
8234
8337
|
alt: "open icon"
|
|
8235
|
-
}) : /*#__PURE__*/
|
|
8236
|
-
openHoverIcon: openHoverIcon ? /*#__PURE__*/
|
|
8338
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgGreenplus, null),
|
|
8339
|
+
openHoverIcon: openHoverIcon ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8237
8340
|
src: openHoverIcon,
|
|
8238
8341
|
alt: "open icon"
|
|
8239
|
-
}) : configStyles.ACCORDION.icon.openHover ? /*#__PURE__*/
|
|
8342
|
+
}) : configStyles.ACCORDION.icon.openHover ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8240
8343
|
src: configStyles.ACCORDION.icon.openHover,
|
|
8241
8344
|
alt: "open icon"
|
|
8242
|
-
}) : /*#__PURE__*/
|
|
8243
|
-
closeIcon: closeIcon ? /*#__PURE__*/
|
|
8345
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgGreenplus, null),
|
|
8346
|
+
closeIcon: closeIcon ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8244
8347
|
src: closeIcon,
|
|
8245
8348
|
alt: "close icon"
|
|
8246
|
-
}) : configStyles.ACCORDION.icon.close ? /*#__PURE__*/
|
|
8349
|
+
}) : configStyles.ACCORDION.icon.close ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8247
8350
|
src: configStyles.ACCORDION.icon.close,
|
|
8248
8351
|
alt: "close icon"
|
|
8249
|
-
}) : /*#__PURE__*/
|
|
8250
|
-
closeHoverIcon: closeHoverIcon ? /*#__PURE__*/
|
|
8352
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgGreenminus, null),
|
|
8353
|
+
closeHoverIcon: closeHoverIcon ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8251
8354
|
src: closeHoverIcon,
|
|
8252
8355
|
alt: "close icon"
|
|
8253
|
-
}) : configStyles.ACCORDION.icon.closeHover ? /*#__PURE__*/
|
|
8356
|
+
}) : configStyles.ACCORDION.icon.closeHover ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8254
8357
|
src: configStyles.ACCORDION.icon.closeHover,
|
|
8255
8358
|
alt: "close icon"
|
|
8256
|
-
}) : /*#__PURE__*/
|
|
8359
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgGreenminus, null),
|
|
8257
8360
|
className: classProps,
|
|
8258
8361
|
color: color ?? configStyles.ACCORDION.color,
|
|
8259
8362
|
padding: padding ?? configStyles.ACCORDION.padding,
|
|
@@ -8279,41 +8382,40 @@ const Accordion = ({
|
|
|
8279
8382
|
}) : '');
|
|
8280
8383
|
};
|
|
8281
8384
|
Accordion.propTypes = {
|
|
8282
|
-
data:
|
|
8283
|
-
title:
|
|
8284
|
-
content:
|
|
8385
|
+
data: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
8386
|
+
title: PropTypes__default["default"].string,
|
|
8387
|
+
content: PropTypes__default["default"].element
|
|
8285
8388
|
})),
|
|
8286
|
-
click:
|
|
8287
|
-
showIcons:
|
|
8288
|
-
multipleOpen:
|
|
8289
|
-
color:
|
|
8290
|
-
hoverColor:
|
|
8291
|
-
backgroundColor:
|
|
8292
|
-
backgroundHoverColor:
|
|
8293
|
-
titleAlign:
|
|
8294
|
-
padding:
|
|
8295
|
-
openIcon:
|
|
8296
|
-
className:
|
|
8297
|
-
closeIcon:
|
|
8298
|
-
marginBottom:
|
|
8299
|
-
openHoverIcon:
|
|
8300
|
-
closeHoverIcon:
|
|
8301
|
-
borderTop:
|
|
8302
|
-
borderLeft:
|
|
8303
|
-
borderRight:
|
|
8304
|
-
borderBottom:
|
|
8305
|
-
borderColor:
|
|
8306
|
-
borderWidth:
|
|
8307
|
-
borderStyle:
|
|
8308
|
-
borderRadius:
|
|
8309
|
-
fontSize:
|
|
8310
|
-
fontStyle:
|
|
8311
|
-
fontWeight:
|
|
8312
|
-
fontFamily:
|
|
8389
|
+
click: PropTypes__default["default"].func,
|
|
8390
|
+
showIcons: PropTypes__default["default"].bool,
|
|
8391
|
+
multipleOpen: PropTypes__default["default"].bool,
|
|
8392
|
+
color: PropTypes__default["default"].string,
|
|
8393
|
+
hoverColor: PropTypes__default["default"].string,
|
|
8394
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
8395
|
+
backgroundHoverColor: PropTypes__default["default"].string,
|
|
8396
|
+
titleAlign: PropTypes__default["default"].oneOf(['left', 'center', 'right']),
|
|
8397
|
+
padding: PropTypes__default["default"].string,
|
|
8398
|
+
openIcon: PropTypes__default["default"].string,
|
|
8399
|
+
className: PropTypes__default["default"].string,
|
|
8400
|
+
closeIcon: PropTypes__default["default"].string,
|
|
8401
|
+
marginBottom: PropTypes__default["default"].string,
|
|
8402
|
+
openHoverIcon: PropTypes__default["default"].string,
|
|
8403
|
+
closeHoverIcon: PropTypes__default["default"].string,
|
|
8404
|
+
borderTop: PropTypes__default["default"].bool,
|
|
8405
|
+
borderLeft: PropTypes__default["default"].bool,
|
|
8406
|
+
borderRight: PropTypes__default["default"].bool,
|
|
8407
|
+
borderBottom: PropTypes__default["default"].bool,
|
|
8408
|
+
borderColor: PropTypes__default["default"].string,
|
|
8409
|
+
borderWidth: PropTypes__default["default"].string,
|
|
8410
|
+
borderStyle: PropTypes__default["default"].string,
|
|
8411
|
+
borderRadius: PropTypes__default["default"].string,
|
|
8412
|
+
fontSize: PropTypes__default["default"].string,
|
|
8413
|
+
fontStyle: PropTypes__default["default"].string,
|
|
8414
|
+
fontWeight: PropTypes__default["default"].number,
|
|
8415
|
+
fontFamily: PropTypes__default["default"].string
|
|
8313
8416
|
};
|
|
8314
8417
|
|
|
8315
8418
|
// import React from 'react';
|
|
8316
|
-
|
|
8317
8419
|
const Swipe = ({
|
|
8318
8420
|
id,
|
|
8319
8421
|
title,
|
|
@@ -8333,12 +8435,12 @@ const Swipe = ({
|
|
|
8333
8435
|
callClose,
|
|
8334
8436
|
showCloseIcon
|
|
8335
8437
|
} = props || {};
|
|
8336
|
-
return /*#__PURE__*/
|
|
8438
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8337
8439
|
style: {
|
|
8338
8440
|
width: position === 'left' || position === 'right' ? width ?? SWIPEMODAL.width : '100%',
|
|
8339
8441
|
height: position === 'top' || position === 'bottom' ? height ?? SWIPEMODAL.height : '100vh'
|
|
8340
8442
|
}
|
|
8341
|
-
}, (title || showCloseIcon) && /*#__PURE__*/
|
|
8443
|
+
}, (title || showCloseIcon) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8342
8444
|
style: {
|
|
8343
8445
|
width: '100%',
|
|
8344
8446
|
display: 'flex',
|
|
@@ -8349,7 +8451,7 @@ const Swipe = ({
|
|
|
8349
8451
|
padding: titleStyle?.padding ?? SWIPEMODAL.titleStyle.padding,
|
|
8350
8452
|
maxHeight: titleStyle?.maxHeight ?? SWIPEMODAL.titleStyle.maxHeight
|
|
8351
8453
|
}
|
|
8352
|
-
}, title && /*#__PURE__*/
|
|
8454
|
+
}, title && /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
8353
8455
|
style: {
|
|
8354
8456
|
color: titleStyle?.color ?? SWIPEMODAL.titleStyle.color,
|
|
8355
8457
|
fontSize: titleStyle?.fontSize ?? SWIPEMODAL.titleStyle.font.size,
|
|
@@ -8358,7 +8460,7 @@ const Swipe = ({
|
|
|
8358
8460
|
fontWeight: titleStyle?.fontWeight ?? SWIPEMODAL.titleStyle.font.weight,
|
|
8359
8461
|
fontFamily: titleStyle?.fontFamily ?? SWIPEMODAL.titleStyle.font.family
|
|
8360
8462
|
}
|
|
8361
|
-
}, title), showCloseIcon && /*#__PURE__*/
|
|
8463
|
+
}, title), showCloseIcon && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8362
8464
|
style: {
|
|
8363
8465
|
width: '24px',
|
|
8364
8466
|
height: '24px',
|
|
@@ -8367,7 +8469,7 @@ const Swipe = ({
|
|
|
8367
8469
|
cursor: 'pointer'
|
|
8368
8470
|
},
|
|
8369
8471
|
onClick: hasOwnerProperty(props, 'callClose') && {}.toString.call(callClose) === '[object Function]' ? () => callClose(id) : _ => _
|
|
8370
|
-
}, /*#__PURE__*/
|
|
8472
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
8371
8473
|
alt: "close",
|
|
8372
8474
|
src: hasOwnerProperty(props, 'closeIcon') && typeof props.closeIcon === 'string' ? props.closeIcon : SWIPEMODAL.closeIcon,
|
|
8373
8475
|
style: {
|
|
@@ -8376,7 +8478,7 @@ const Swipe = ({
|
|
|
8376
8478
|
objectFit: 'contain',
|
|
8377
8479
|
objectPosition: 'center'
|
|
8378
8480
|
}
|
|
8379
|
-
}))), child && /*#__PURE__*/
|
|
8481
|
+
}))), child && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8380
8482
|
style: {
|
|
8381
8483
|
width: '100%',
|
|
8382
8484
|
height: '100%',
|
|
@@ -8391,14 +8493,11 @@ const Swipe = ({
|
|
|
8391
8493
|
}, child));
|
|
8392
8494
|
};
|
|
8393
8495
|
|
|
8394
|
-
var css_248z$2 = ".swipe-module_to-top__lrHfG{bottom:0}.swipe-module_to-left__kgLsE{right:0}.swipe-module_to-right__Xu3Ul{left:0}.swipe-module_to-bottom__94M7H{top:0}.swipe-module_visible__---aC{visibility:visible!important}.swipe-module_swipe-block__Yv1B3{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.swipe-module_move-top__m6t2O{-webkit-animation-name:swipe-module_slideTop__-Bbap;animation-name:swipe-module_slideTop__-Bbap}.swipe-module_move-left__4TDLs{-webkit-animation-name:swipe-module_slideLeft__i24cS;animation-name:swipe-module_slideLeft__i24cS}.swipe-module_move-right__FrYo0{-webkit-animation-name:swipe-module_slideRight__swgSY;animation-name:swipe-module_slideRight__swgSY}.swipe-module_move-bottom__eYDx6{-webkit-animation-name:swipe-module_slideBottom__TBoZo;animation-name:swipe-module_slideBottom__TBoZo}.swipe-module_back-top__gJZv0{-webkit-animation-name:swipe-module_backTop__32loc;animation-name:swipe-module_backTop__32loc}.swipe-module_back-left__Wd3aY{-webkit-animation-name:swipe-module_backLeft__q89ub;animation-name:swipe-module_backLeft__q89ub}.swipe-module_back-right__Lgwz7{-webkit-animation-name:swipe-module_backRight__8t5Dm;animation-name:swipe-module_backRight__8t5Dm}.swipe-module_back-bottom__JRN-7{-webkit-animation-name:swipe-module_backBottom__lwR8B;animation-name:swipe-module_backBottom__lwR8B}@keyframes swipe-module_slideTop__-Bbap{0%{bottom:-100%}to{bottom:0}}@keyframes swipe-module_slideLeft__i24cS{0%{right:-100%}to{right:0}}@keyframes swipe-module_slideRight__swgSY{0%{left:-100%}to{left:0}}@keyframes swipe-module_slideBottom__TBoZo{0%{top:-100%}to{top:0}}@keyframes swipe-module_backTop__32loc{0%{bottom:0}to{bottom:-100%}}@keyframes swipe-module_backLeft__q89ub{0%{right:0}to{right:-100%}}@keyframes swipe-module_backRight__8t5Dm{0%{left:0}to{left:-100%}}@keyframes swipe-module_backBottom__lwR8B{0%{top:0}to{top:-100%}}";
|
|
8395
|
-
var styles$2 = {"to-top":"swipe-module_to-top__lrHfG","to-left":"swipe-module_to-left__kgLsE","to-right":"swipe-module_to-right__Xu3Ul","to-bottom":"swipe-module_to-bottom__94M7H","visible":"swipe-module_visible__---aC","swipe-block":"swipe-module_swipe-block__Yv1B3","move-top":"swipe-module_move-top__m6t2O","move-left":"swipe-module_move-left__4TDLs","move-right":"swipe-module_move-right__FrYo0","move-bottom":"swipe-module_move-bottom__eYDx6","back-top":"swipe-module_back-top__gJZv0","back-left":"swipe-module_back-left__Wd3aY","back-right":"swipe-module_back-right__Lgwz7","back-bottom":"swipe-module_back-bottom__JRN-7"};
|
|
8496
|
+
var css_248z$2 = "body.swipe-module_tui-no-srcoll-class__YS9cI,html.swipe-module_tui-no-srcoll-class__YS9cI{height:100%;overflow:hidden!important}.swipe-module_to-top__lrHfG{bottom:0}.swipe-module_to-left__kgLsE{right:0}.swipe-module_to-right__Xu3Ul{left:0}.swipe-module_to-bottom__94M7H{top:0}.swipe-module_visible__---aC{visibility:visible!important}.swipe-module_swipe-block__Yv1B3{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.swipe-module_move-top__m6t2O{-webkit-animation-name:swipe-module_slideTop__-Bbap;animation-name:swipe-module_slideTop__-Bbap}.swipe-module_move-left__4TDLs{-webkit-animation-name:swipe-module_slideLeft__i24cS;animation-name:swipe-module_slideLeft__i24cS}.swipe-module_move-right__FrYo0{-webkit-animation-name:swipe-module_slideRight__swgSY;animation-name:swipe-module_slideRight__swgSY}.swipe-module_move-bottom__eYDx6{-webkit-animation-name:swipe-module_slideBottom__TBoZo;animation-name:swipe-module_slideBottom__TBoZo}.swipe-module_back-top__gJZv0{-webkit-animation-name:swipe-module_backTop__32loc;animation-name:swipe-module_backTop__32loc}.swipe-module_back-left__Wd3aY{-webkit-animation-name:swipe-module_backLeft__q89ub;animation-name:swipe-module_backLeft__q89ub}.swipe-module_back-right__Lgwz7{-webkit-animation-name:swipe-module_backRight__8t5Dm;animation-name:swipe-module_backRight__8t5Dm}.swipe-module_back-bottom__JRN-7{-webkit-animation-name:swipe-module_backBottom__lwR8B;animation-name:swipe-module_backBottom__lwR8B}@keyframes swipe-module_slideTop__-Bbap{0%{bottom:-100%}to{bottom:0}}@keyframes swipe-module_slideLeft__i24cS{0%{right:-100%}to{right:0}}@keyframes swipe-module_slideRight__swgSY{0%{left:-100%}to{left:0}}@keyframes swipe-module_slideBottom__TBoZo{0%{top:-100%}to{top:0}}@keyframes swipe-module_backTop__32loc{0%{bottom:0}to{bottom:-100%}}@keyframes swipe-module_backLeft__q89ub{0%{right:0}to{right:-100%}}@keyframes swipe-module_backRight__8t5Dm{0%{left:0}to{left:-100%}}@keyframes swipe-module_backBottom__lwR8B{0%{top:0}to{top:-100%}}";
|
|
8497
|
+
var styles$2 = {"tui-no-srcoll-class":"swipe-module_tui-no-srcoll-class__YS9cI","to-top":"swipe-module_to-top__lrHfG","to-left":"swipe-module_to-left__kgLsE","to-right":"swipe-module_to-right__Xu3Ul","to-bottom":"swipe-module_to-bottom__94M7H","visible":"swipe-module_visible__---aC","swipe-block":"swipe-module_swipe-block__Yv1B3","move-top":"swipe-module_move-top__m6t2O","slideTop":"swipe-module_slideTop__-Bbap","move-left":"swipe-module_move-left__4TDLs","slideLeft":"swipe-module_slideLeft__i24cS","move-right":"swipe-module_move-right__FrYo0","slideRight":"swipe-module_slideRight__swgSY","move-bottom":"swipe-module_move-bottom__eYDx6","slideBottom":"swipe-module_slideBottom__TBoZo","back-top":"swipe-module_back-top__gJZv0","backTop":"swipe-module_backTop__32loc","back-left":"swipe-module_back-left__Wd3aY","backLeft":"swipe-module_backLeft__q89ub","back-right":"swipe-module_back-right__Lgwz7","backRight":"swipe-module_backRight__8t5Dm","back-bottom":"swipe-module_back-bottom__JRN-7","backBottom":"swipe-module_backBottom__lwR8B"};
|
|
8396
8498
|
styleInject(css_248z$2);
|
|
8397
8499
|
|
|
8398
8500
|
// import React, { useEffect, useRef } from 'react';
|
|
8399
|
-
// import ReactDOM from 'react-dom/client';
|
|
8400
|
-
// import PropTypes from 'prop-types';
|
|
8401
|
-
|
|
8402
8501
|
let swipeCount = 0;
|
|
8403
8502
|
const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
|
|
8404
8503
|
const {
|
|
@@ -8425,14 +8524,14 @@ const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
|
|
|
8425
8524
|
swipeBlock.setAttribute('anime', animation);
|
|
8426
8525
|
swipeBlock.classList.add(position === 'top' ? `${hasOwnerProperty(props, 'animation') && animation === true ? styles$2['move-top'] : ''}` : position === 'bottom' ? `${hasOwnerProperty(props, 'animation') && animation === true ? styles$2['move-bottom'] : ''}` : position === 'left' ? `${hasOwnerProperty(props, 'animation') && animation === true ? styles$2['move-left'] : ''}` : `${hasOwnerProperty(props, 'animation') && props.animation === true ? styles$2['move-right'] : ''}`);
|
|
8427
8526
|
}
|
|
8428
|
-
const newElem = /*#__PURE__*/
|
|
8527
|
+
const newElem = /*#__PURE__*/React__default["default"].createElement(Swipe, {
|
|
8429
8528
|
id,
|
|
8430
8529
|
title,
|
|
8431
8530
|
child,
|
|
8432
8531
|
props,
|
|
8433
8532
|
innerConfigStyles
|
|
8434
8533
|
});
|
|
8435
|
-
const root =
|
|
8534
|
+
const root = ReactDOM__default["default"].createRoot(swipeBlock);
|
|
8436
8535
|
root.render(newElem);
|
|
8437
8536
|
};
|
|
8438
8537
|
const createSwipe = (id, title, child, props, swipable) => {
|
|
@@ -8497,22 +8596,45 @@ const handleNavigationChange = () => {
|
|
|
8497
8596
|
return result;
|
|
8498
8597
|
};
|
|
8499
8598
|
})(window.history);
|
|
8599
|
+
const style = document.createElement('style');
|
|
8500
8600
|
const swipe = {
|
|
8501
8601
|
open: (title = '', id, child, props) => {
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8602
|
+
let newConfigStyles = {};
|
|
8603
|
+
configStylesPromise.then(data => {
|
|
8604
|
+
newConfigStyles = {
|
|
8605
|
+
...data
|
|
8606
|
+
};
|
|
8607
|
+
if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
|
|
8608
|
+
alert('Please pass valid id prop (string / number) when call swipe.open function');
|
|
8609
|
+
return;
|
|
8610
|
+
}
|
|
8611
|
+
if (swipeCount === 0) {
|
|
8612
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8613
|
+
style.textContent = `.tui-no-srcoll-class{overflow:hidden!important;}`;
|
|
8614
|
+
document.head.appendChild(style);
|
|
8615
|
+
document.body.classList.add('tui-no-srcoll-class');
|
|
8616
|
+
document.documentElement.classList.add('tui-no-srcoll-class');
|
|
8617
|
+
}
|
|
8618
|
+
window.addEventListener('popstate', handleNavigationChange);
|
|
8619
|
+
window.addEventListener('navigationchange', handleNavigationChange);
|
|
8620
|
+
}
|
|
8621
|
+
let swipable = document.getElementById('swipable');
|
|
8622
|
+
swipeCount += 1;
|
|
8623
|
+
createSwipe(id, title, child, props, swipable);
|
|
8624
|
+
return Promise.resolve(id);
|
|
8625
|
+
}, error => {
|
|
8626
|
+
console.error(error);
|
|
8627
|
+
});
|
|
8514
8628
|
},
|
|
8515
8629
|
close: id => {
|
|
8630
|
+
let newConfigStyles = {};
|
|
8631
|
+
configStylesPromise.then(data => {
|
|
8632
|
+
newConfigStyles = {
|
|
8633
|
+
...data
|
|
8634
|
+
};
|
|
8635
|
+
}, error => {
|
|
8636
|
+
console.error(error);
|
|
8637
|
+
});
|
|
8516
8638
|
if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
|
|
8517
8639
|
alert('Please pass valid id prop (string / number) when call swipe.close function');
|
|
8518
8640
|
return;
|
|
@@ -8531,6 +8653,14 @@ const swipe = {
|
|
|
8531
8653
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
8532
8654
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
8533
8655
|
document.body.removeChild(swipable);
|
|
8656
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8657
|
+
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
8658
|
+
if (noScrllable) {
|
|
8659
|
+
style.remove();
|
|
8660
|
+
document.body.classList.remove('tui-no-srcoll-class');
|
|
8661
|
+
document.documentElement.classList.remove('tui-no-srcoll-class');
|
|
8662
|
+
}
|
|
8663
|
+
}
|
|
8534
8664
|
}
|
|
8535
8665
|
}, 200);
|
|
8536
8666
|
} else {
|
|
@@ -8539,13 +8669,32 @@ const swipe = {
|
|
|
8539
8669
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
8540
8670
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
8541
8671
|
document.body.removeChild(swipable);
|
|
8672
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8673
|
+
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
8674
|
+
if (noScrllable) {
|
|
8675
|
+
style.remove();
|
|
8676
|
+
document.body.classList.remove('tui-no-srcoll-class');
|
|
8677
|
+
document.documentElement.classList.remove('tui-no-srcoll-class');
|
|
8678
|
+
}
|
|
8679
|
+
}
|
|
8680
|
+
}
|
|
8681
|
+
}
|
|
8682
|
+
}
|
|
8683
|
+
},
|
|
8684
|
+
updateTitle: (title, id) => {
|
|
8685
|
+
const elem = document.getElementById(id);
|
|
8686
|
+
const titleElem = elem.querySelector('h1');
|
|
8687
|
+
if (elem) {
|
|
8688
|
+
if (titleElem) {
|
|
8689
|
+
if (title) {
|
|
8690
|
+
titleElem.innerText = title;
|
|
8542
8691
|
}
|
|
8543
8692
|
}
|
|
8544
8693
|
}
|
|
8545
8694
|
}
|
|
8546
8695
|
};
|
|
8547
8696
|
const SwipeModal = () => {
|
|
8548
|
-
return /*#__PURE__*/
|
|
8697
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
8549
8698
|
};
|
|
8550
8699
|
|
|
8551
8700
|
const TypographyType = {
|
|
@@ -8590,7 +8739,7 @@ const Typography = ({
|
|
|
8590
8739
|
const handleMouseLeave = () => {
|
|
8591
8740
|
setIsHover(false);
|
|
8592
8741
|
};
|
|
8593
|
-
const tagT = configStyles.TYPOGRAPHY && /*#__PURE__*/
|
|
8742
|
+
const tagT = configStyles.TYPOGRAPHY && /*#__PURE__*/React__default["default"].createElement(variant, {
|
|
8594
8743
|
style: {
|
|
8595
8744
|
border: border ?? configStyles.TYPOGRAPHY.border,
|
|
8596
8745
|
cursor: cursor ?? configStyles.TYPOGRAPHY.cursor,
|
|
@@ -8619,11 +8768,11 @@ const Typography = ({
|
|
|
8619
8768
|
}
|
|
8620
8769
|
}, [variant]);
|
|
8621
8770
|
React.useEffect(() => {
|
|
8622
|
-
className && setClassProps(() =>
|
|
8771
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TYPOGRAPHY.className));
|
|
8623
8772
|
}, [className]);
|
|
8624
8773
|
React.useEffect(() => {
|
|
8625
8774
|
configStylesPromise.then(data => {
|
|
8626
|
-
setClassProps(() =>
|
|
8775
|
+
setClassProps(() => classnames__default["default"](className ?? data.TYPOGRAPHY.className));
|
|
8627
8776
|
setConfigStyles(() => {
|
|
8628
8777
|
return {
|
|
8629
8778
|
...data
|
|
@@ -8636,24 +8785,24 @@ const Typography = ({
|
|
|
8636
8785
|
return validVariant ? 'Please set Typography valid variant' : tagT;
|
|
8637
8786
|
};
|
|
8638
8787
|
Typography.propTypes = {
|
|
8639
|
-
color:
|
|
8640
|
-
onClick:
|
|
8641
|
-
weight:
|
|
8642
|
-
border:
|
|
8643
|
-
cursor:
|
|
8644
|
-
radius:
|
|
8645
|
-
textAlign:
|
|
8646
|
-
className:
|
|
8647
|
-
fontStyle:
|
|
8648
|
-
lineHeight:
|
|
8649
|
-
textShadow:
|
|
8650
|
-
fontFamily:
|
|
8651
|
-
colorHover:
|
|
8652
|
-
textTransform:
|
|
8653
|
-
textDecoration:
|
|
8654
|
-
backgroundColor:
|
|
8655
|
-
variant:
|
|
8656
|
-
size:
|
|
8788
|
+
color: PropTypes__default["default"].string,
|
|
8789
|
+
onClick: PropTypes__default["default"].func,
|
|
8790
|
+
weight: PropTypes__default["default"].string,
|
|
8791
|
+
border: PropTypes__default["default"].string,
|
|
8792
|
+
cursor: PropTypes__default["default"].string,
|
|
8793
|
+
radius: PropTypes__default["default"].string,
|
|
8794
|
+
textAlign: PropTypes__default["default"].string,
|
|
8795
|
+
className: PropTypes__default["default"].string,
|
|
8796
|
+
fontStyle: PropTypes__default["default"].string,
|
|
8797
|
+
lineHeight: PropTypes__default["default"].string,
|
|
8798
|
+
textShadow: PropTypes__default["default"].string,
|
|
8799
|
+
fontFamily: PropTypes__default["default"].string,
|
|
8800
|
+
colorHover: PropTypes__default["default"].string,
|
|
8801
|
+
textTransform: PropTypes__default["default"].string,
|
|
8802
|
+
textDecoration: PropTypes__default["default"].string,
|
|
8803
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
8804
|
+
variant: PropTypes__default["default"].oneOf(Object.values(TypographyType)),
|
|
8805
|
+
size: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
|
|
8657
8806
|
};
|
|
8658
8807
|
|
|
8659
8808
|
const Dots = '...';
|
|
@@ -8736,7 +8885,7 @@ const SvgNextarrow = ({
|
|
|
8736
8885
|
}));
|
|
8737
8886
|
|
|
8738
8887
|
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}";
|
|
8739
|
-
var styles$1 = {"pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
|
|
8888
|
+
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"};
|
|
8740
8889
|
styleInject(css_248z$1);
|
|
8741
8890
|
|
|
8742
8891
|
const Pagination = ({
|
|
@@ -8852,7 +9001,7 @@ const Pagination = ({
|
|
|
8852
9001
|
let lastPage = paginationRange[paginationRange.length - 1];
|
|
8853
9002
|
React.useEffect(() => {
|
|
8854
9003
|
configStylesPromise.then(data => {
|
|
8855
|
-
setClassProps(() =>
|
|
9004
|
+
setClassProps(() => classnames__default["default"](
|
|
8856
9005
|
// TODO: check and remove pagination-bar-rem class
|
|
8857
9006
|
styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
|
|
8858
9007
|
setConfigStyles(() => {
|
|
@@ -8889,7 +9038,7 @@ const Pagination = ({
|
|
|
8889
9038
|
}
|
|
8890
9039
|
}, [offsetCounts, showOffset]);
|
|
8891
9040
|
React.useEffect(() => {
|
|
8892
|
-
className && setClassProps(() =>
|
|
9041
|
+
className && setClassProps(() => classnames__default["default"](
|
|
8893
9042
|
// TODO: check and remove pagination-bar-rem class
|
|
8894
9043
|
styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
|
|
8895
9044
|
}, [className]);
|
|
@@ -8903,7 +9052,7 @@ const Pagination = ({
|
|
|
8903
9052
|
React.useEffect(() => {
|
|
8904
9053
|
onChange(currentPageNumber);
|
|
8905
9054
|
}, [currentPageNumber]);
|
|
8906
|
-
return configStyles.PAGINATION && /*#__PURE__*/
|
|
9055
|
+
return configStyles.PAGINATION && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8907
9056
|
style: {
|
|
8908
9057
|
display: 'flex',
|
|
8909
9058
|
margin: '0 auto',
|
|
@@ -8911,7 +9060,7 @@ const Pagination = ({
|
|
|
8911
9060
|
justifyContent: 'center'
|
|
8912
9061
|
},
|
|
8913
9062
|
className: classProps
|
|
8914
|
-
}, /*#__PURE__*/
|
|
9063
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", null, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8915
9064
|
style: {
|
|
8916
9065
|
width: width ?? configStyles.PAGINATION.width,
|
|
8917
9066
|
height: height ?? configStyles.PAGINATION.height,
|
|
@@ -8932,12 +9081,12 @@ const Pagination = ({
|
|
|
8932
9081
|
onClick: onPrevious,
|
|
8933
9082
|
disabled: currentPageNumber === 1 ? true : false,
|
|
8934
9083
|
className: `${styles$1['pagination-btn']} pagination-btn-rem`
|
|
8935
|
-
}, /*#__PURE__*/
|
|
9084
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgNextarrow, null)), paginationRange.map((pageNumber, id) => {
|
|
8936
9085
|
if (pageNumber === Dots) {
|
|
8937
9086
|
let currentPageIndex = paginationRange.indexOf(currentPageNumber);
|
|
8938
|
-
return /*#__PURE__*/
|
|
9087
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
8939
9088
|
key: id,
|
|
8940
|
-
className:
|
|
9089
|
+
className: classnames__default["default"](`${styles$1['pagination-jump-next']} pagination-jump-next-rem`),
|
|
8941
9090
|
style: {
|
|
8942
9091
|
width: width ?? configStyles.PAGINATION.width,
|
|
8943
9092
|
height: height ?? configStyles.PAGINATION.height,
|
|
@@ -8950,23 +9099,23 @@ const Pagination = ({
|
|
|
8950
9099
|
},
|
|
8951
9100
|
onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
|
|
8952
9101
|
disabled: currentPageIndex === 0 ? true : false
|
|
8953
|
-
}, id < currentPageIndex ? /*#__PURE__*/
|
|
9102
|
+
}, id < currentPageIndex ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8954
9103
|
className: `${styles$1['pagination-jump-next-txt']} pagination-jump-next-txt-rem`
|
|
8955
|
-
}, /*#__PURE__*/
|
|
9104
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgDots, null)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8956
9105
|
className: `${styles$1['pagination-jump-next-arrow']} pagination-jump-next-arrow-rem`,
|
|
8957
9106
|
style: {
|
|
8958
9107
|
transform: 'rotate(180deg)'
|
|
8959
9108
|
}
|
|
8960
|
-
}, /*#__PURE__*/
|
|
9109
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgNextarrow, null))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8961
9110
|
className: `${styles$1['pagination-jump-next-txt']} pagination-jump-next-txt-rem`
|
|
8962
|
-
}, /*#__PURE__*/
|
|
9111
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgDots, null)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8963
9112
|
className: `${styles$1['pagination-jump-next-arrow']} pagination-jump-next-arrow-rem`
|
|
8964
|
-
}, /*#__PURE__*/
|
|
9113
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgNextarrow, null))));
|
|
8965
9114
|
}
|
|
8966
|
-
return /*#__PURE__*/
|
|
9115
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
8967
9116
|
onClick: () => onPageChange(pageNumber),
|
|
8968
9117
|
key: id,
|
|
8969
|
-
className:
|
|
9118
|
+
className: classnames__default["default"](`${styles$1['pagination-item']} pagination-item-rem`),
|
|
8970
9119
|
onMouseEnter: () => handleMouseEnter(id),
|
|
8971
9120
|
onMouseLeave: () => handleMouseLeave(),
|
|
8972
9121
|
style: {
|
|
@@ -8991,7 +9140,7 @@ const Pagination = ({
|
|
|
8991
9140
|
borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
|
|
8992
9141
|
}
|
|
8993
9142
|
}, pageNumber);
|
|
8994
|
-
}), /*#__PURE__*/
|
|
9143
|
+
}), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8995
9144
|
onClick: onNext,
|
|
8996
9145
|
disabled: currentPageNumber === lastPage ? true : false,
|
|
8997
9146
|
className: `${styles$1['pagination-btn']} pagination-btn-rem`,
|
|
@@ -9011,7 +9160,7 @@ const Pagination = ({
|
|
|
9011
9160
|
`,
|
|
9012
9161
|
borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
|
|
9013
9162
|
}
|
|
9014
|
-
}, /*#__PURE__*/
|
|
9163
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgNextarrow, null))), innerShowOffset && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9015
9164
|
className: "show-offset-block",
|
|
9016
9165
|
style: {
|
|
9017
9166
|
width: '91px',
|
|
@@ -9019,7 +9168,7 @@ const Pagination = ({
|
|
|
9019
9168
|
marginLeft: '10px',
|
|
9020
9169
|
marginRight: '3px'
|
|
9021
9170
|
}
|
|
9022
|
-
}, /*#__PURE__*/
|
|
9171
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select, _extends({
|
|
9023
9172
|
insidePagination: true,
|
|
9024
9173
|
selectedMinHeight: "34px",
|
|
9025
9174
|
boxShadow: `
|
|
@@ -9042,7 +9191,7 @@ const Pagination = ({
|
|
|
9042
9191
|
optionItemLineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
|
|
9043
9192
|
optionItemFontFamily: fontWeight ?? configStyles.PAGINATION.font.weight,
|
|
9044
9193
|
optionItemFontWeight: fontFamily ?? configStyles.PAGINATION.font.family
|
|
9045
|
-
}, offsetArgs))), goTo && /*#__PURE__*/
|
|
9194
|
+
}, offsetArgs))), goTo && /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
9046
9195
|
onKeyDown: handleKeyDown,
|
|
9047
9196
|
onInput: handleChangeInput,
|
|
9048
9197
|
type: "number",
|
|
@@ -9068,7 +9217,7 @@ const Pagination = ({
|
|
|
9068
9217
|
borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
|
|
9069
9218
|
},
|
|
9070
9219
|
value: inpVal
|
|
9071
|
-
}), /*#__PURE__*/
|
|
9220
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
9072
9221
|
style: {
|
|
9073
9222
|
color: color ?? configStyles.PAGINATION.color,
|
|
9074
9223
|
fontSize: fontSize ?? configStyles.PAGINATION.font.size,
|
|
@@ -9080,30 +9229,30 @@ const Pagination = ({
|
|
|
9080
9229
|
}, "\u0537\u057B")));
|
|
9081
9230
|
};
|
|
9082
9231
|
Pagination.propTypes = {
|
|
9083
|
-
goTo:
|
|
9084
|
-
offset:
|
|
9085
|
-
getOffset:
|
|
9086
|
-
showOffset:
|
|
9087
|
-
className:
|
|
9088
|
-
totalCount:
|
|
9089
|
-
currentPage:
|
|
9090
|
-
offsetCounts:
|
|
9091
|
-
color:
|
|
9092
|
-
width:
|
|
9093
|
-
height:
|
|
9094
|
-
fontSize:
|
|
9095
|
-
fontWeight:
|
|
9096
|
-
fontFamily:
|
|
9097
|
-
fontStyle:
|
|
9098
|
-
lineHeight:
|
|
9099
|
-
activeColor:
|
|
9100
|
-
hoverColor:
|
|
9101
|
-
backgroundColor:
|
|
9102
|
-
hoverBackgroundColor:
|
|
9103
|
-
activeBackgroundColor:
|
|
9104
|
-
borderColor:
|
|
9105
|
-
borderWidth:
|
|
9106
|
-
borderRadius:
|
|
9232
|
+
goTo: PropTypes__default["default"].bool,
|
|
9233
|
+
offset: PropTypes__default["default"].number,
|
|
9234
|
+
getOffset: PropTypes__default["default"].func,
|
|
9235
|
+
showOffset: PropTypes__default["default"].bool,
|
|
9236
|
+
className: PropTypes__default["default"].string,
|
|
9237
|
+
totalCount: PropTypes__default["default"].number,
|
|
9238
|
+
currentPage: PropTypes__default["default"].number,
|
|
9239
|
+
offsetCounts: PropTypes__default["default"].arrayOf(PropTypes__default["default"].number),
|
|
9240
|
+
color: PropTypes__default["default"].string,
|
|
9241
|
+
width: PropTypes__default["default"].string,
|
|
9242
|
+
height: PropTypes__default["default"].string,
|
|
9243
|
+
fontSize: PropTypes__default["default"].string,
|
|
9244
|
+
fontWeight: PropTypes__default["default"].string,
|
|
9245
|
+
fontFamily: PropTypes__default["default"].string,
|
|
9246
|
+
fontStyle: PropTypes__default["default"].string,
|
|
9247
|
+
lineHeight: PropTypes__default["default"].string,
|
|
9248
|
+
activeColor: PropTypes__default["default"].string,
|
|
9249
|
+
hoverColor: PropTypes__default["default"].string,
|
|
9250
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
9251
|
+
hoverBackgroundColor: PropTypes__default["default"].string,
|
|
9252
|
+
activeBackgroundColor: PropTypes__default["default"].string,
|
|
9253
|
+
borderColor: PropTypes__default["default"].string,
|
|
9254
|
+
borderWidth: PropTypes__default["default"].string,
|
|
9255
|
+
borderRadius: PropTypes__default["default"].string
|
|
9107
9256
|
};
|
|
9108
9257
|
|
|
9109
9258
|
var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}";
|
|
@@ -9271,7 +9420,7 @@ const Autocomplete = ({
|
|
|
9271
9420
|
setInnerValue(selectedValue[keyNames.name]);
|
|
9272
9421
|
getItem(selectedValue);
|
|
9273
9422
|
};
|
|
9274
|
-
const optionList = /*#__PURE__*/
|
|
9423
|
+
const optionList = /*#__PURE__*/React__default["default"].createElement("div", null, show && innerOptions && !disabled ? innerOptions.length > 0 && innerValue.length >= searchCount ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9275
9424
|
style: {
|
|
9276
9425
|
left: contentBottomLeft ?? configStyles.AUTOCOMPLETE.contentBottom.left,
|
|
9277
9426
|
width: contentBottomWidth ?? configStyles.AUTOCOMPLETE.contentBottom.width,
|
|
@@ -9286,7 +9435,7 @@ const Autocomplete = ({
|
|
|
9286
9435
|
top: contentTopHeight ? contentTopHeight.includes('rem') ? parseFloat(contentTopHeight.substr(0, contentTopHeight.length - 3)) + 0.6 + 'rem' : parseFloat(contentTopHeight.substr(0, contentTopHeight.length - 2)) + 6 + 'px' : configStyles.AUTOCOMPLETE.height.includes('rem') ? parseFloat(configStyles.AUTOCOMPLETE.height.substr(0, configStyles.AUTOCOMPLETE.height.length - 3)) + 0.6 + 'rem' : parseFloat(configStyles.AUTOCOMPLETE.height.substr(0, configStyles.AUTOCOMPLETE.height.length - 2)) + 6 + 'px',
|
|
9287
9436
|
animation
|
|
9288
9437
|
}
|
|
9289
|
-
}, /*#__PURE__*/
|
|
9438
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9290
9439
|
style: {
|
|
9291
9440
|
display: contentBottomInnerDisplay ? contentBottomInnerDisplay : configStyles.AUTOCOMPLETE.contentBottom.inner.display,
|
|
9292
9441
|
overflowY: contentBottomInnerOverflowY ? contentBottomInnerOverflowY : configStyles.AUTOCOMPLETE.contentBottom.inner.overflowY,
|
|
@@ -9295,7 +9444,7 @@ const Autocomplete = ({
|
|
|
9295
9444
|
flexDirection: contentBottomInnerDirection ? contentBottomInnerDirection : configStyles.AUTOCOMPLETE.contentBottom.inner.direction
|
|
9296
9445
|
}
|
|
9297
9446
|
}, innerOptions.map(item => {
|
|
9298
|
-
return /*#__PURE__*/
|
|
9447
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9299
9448
|
key: item.id,
|
|
9300
9449
|
onMouseEnter: handleRowMouseEnter,
|
|
9301
9450
|
onMouseLeave: handleRowMouseLeave,
|
|
@@ -9317,7 +9466,7 @@ const Autocomplete = ({
|
|
|
9317
9466
|
backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background
|
|
9318
9467
|
}
|
|
9319
9468
|
}, item[keyNames.name]);
|
|
9320
|
-
}))) : innerError ? '' : innerValue.length <= 0 ? '' : /*#__PURE__*/
|
|
9469
|
+
}))) : innerError ? '' : innerValue.length <= 0 ? '' : /*#__PURE__*/React__default["default"].createElement("span", {
|
|
9321
9470
|
style: {
|
|
9322
9471
|
position: 'absolute',
|
|
9323
9472
|
zIndex: '1',
|
|
@@ -9438,11 +9587,11 @@ const Autocomplete = ({
|
|
|
9438
9587
|
setInnerError(errorMessage);
|
|
9439
9588
|
}, [errorMessage]);
|
|
9440
9589
|
React.useEffect(() => {
|
|
9441
|
-
className && setClassProps(() =>
|
|
9590
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.AUTOCOMPLETE.className, styles['auto-complete']));
|
|
9442
9591
|
}, [className]);
|
|
9443
9592
|
React.useEffect(() => {
|
|
9444
9593
|
configStylesPromise.then(data => {
|
|
9445
|
-
setClassProps(() =>
|
|
9594
|
+
setClassProps(() => classnames__default["default"](className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
|
|
9446
9595
|
setConfigStyles(() => {
|
|
9447
9596
|
return {
|
|
9448
9597
|
...data
|
|
@@ -9452,13 +9601,13 @@ const Autocomplete = ({
|
|
|
9452
9601
|
console.error(error);
|
|
9453
9602
|
});
|
|
9454
9603
|
}, []);
|
|
9455
|
-
return configStyles.AUTOCOMPLETE && /*#__PURE__*/
|
|
9604
|
+
return configStyles.AUTOCOMPLETE && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9456
9605
|
ref: parentRef,
|
|
9457
9606
|
className: classProps,
|
|
9458
9607
|
style: {
|
|
9459
9608
|
width: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth
|
|
9460
9609
|
}
|
|
9461
|
-
}, label && /*#__PURE__*/
|
|
9610
|
+
}, label && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9462
9611
|
style: {
|
|
9463
9612
|
display: 'flex',
|
|
9464
9613
|
maxWidth: '100%',
|
|
@@ -9466,7 +9615,7 @@ const Autocomplete = ({
|
|
|
9466
9615
|
columnGap: '4px',
|
|
9467
9616
|
justifyContent: 'flex-start'
|
|
9468
9617
|
}
|
|
9469
|
-
}, /*#__PURE__*/
|
|
9618
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
9470
9619
|
ref: labelRef,
|
|
9471
9620
|
style: {
|
|
9472
9621
|
color: labelColor ?? configStyles.AUTOCOMPLETE.label.color,
|
|
@@ -9484,14 +9633,14 @@ const Autocomplete = ({
|
|
|
9484
9633
|
},
|
|
9485
9634
|
onMouseEnter: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseEnter : _ => _,
|
|
9486
9635
|
onMouseLeave: (useLabelTooltip ? useLabelTooltip : (useLabelTooltip === null || useLabelTooltip === undefined) && configStyles.AUTOCOMPLETE.label.useTooltip) ? handleLabelMouseLeave : _ => _
|
|
9487
|
-
}, label), required && /*#__PURE__*/
|
|
9636
|
+
}, label), required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9488
9637
|
style: {
|
|
9489
9638
|
display: contentDisplay ?? configStyles.AUTOCOMPLETE.parent.display,
|
|
9490
9639
|
position: contentPosition ?? configStyles.AUTOCOMPLETE.parent.position,
|
|
9491
9640
|
width: '100%',
|
|
9492
9641
|
flexDirection: contentDirection ?? configStyles.AUTOCOMPLETE.parent.direction
|
|
9493
9642
|
}
|
|
9494
|
-
}, /*#__PURE__*/
|
|
9643
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
9495
9644
|
id: id,
|
|
9496
9645
|
type: "text",
|
|
9497
9646
|
value: innerValue,
|
|
@@ -9524,7 +9673,7 @@ const Autocomplete = ({
|
|
|
9524
9673
|
flexDirection: contentTopDirection ?? configStyles.AUTOCOMPLETE.direction,
|
|
9525
9674
|
boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : configStyles.AUTOCOMPLETE.error.box.shadow : isFocus ? contentTopBorderActive ? contentTopBorderActive : configStyles.AUTOCOMPLETE.box.shadowActive : isHover ? contentTopBorderHover ? contentTopBorderHover : configStyles.AUTOCOMPLETE.box.shadowHover : contentTopBorder ? contentTopBorder : configStyles.AUTOCOMPLETE.box.shadow
|
|
9526
9675
|
}
|
|
9527
|
-
}, props)), innerError ? /*#__PURE__*/
|
|
9676
|
+
}, props)), innerError ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
9528
9677
|
style: {
|
|
9529
9678
|
left: '0px',
|
|
9530
9679
|
position: 'absolute',
|
|
@@ -9539,97 +9688,97 @@ const Autocomplete = ({
|
|
|
9539
9688
|
}, innerError) : '', optionList));
|
|
9540
9689
|
};
|
|
9541
9690
|
Autocomplete.propTypes = {
|
|
9542
|
-
label:
|
|
9543
|
-
required:
|
|
9544
|
-
disabled:
|
|
9545
|
-
keyNames:
|
|
9546
|
-
selected:
|
|
9547
|
-
className:
|
|
9548
|
-
errorSize:
|
|
9549
|
-
errorStyle:
|
|
9550
|
-
errorWeight:
|
|
9551
|
-
errorFamily:
|
|
9552
|
-
marginTop:
|
|
9553
|
-
labelSize:
|
|
9554
|
-
labelStyle:
|
|
9555
|
-
errorColor:
|
|
9556
|
-
labelColor:
|
|
9557
|
-
searchCount:
|
|
9558
|
-
placeHolder:
|
|
9559
|
-
labelWeight:
|
|
9560
|
-
errorMessage:
|
|
9561
|
-
labelDisplay:
|
|
9562
|
-
autoComplete:
|
|
9563
|
-
iconRequired:
|
|
9564
|
-
contentDisplay:
|
|
9565
|
-
contentTopSize:
|
|
9566
|
-
contentTopStyle:
|
|
9567
|
-
contentTopFamily:
|
|
9568
|
-
contentPosition:
|
|
9569
|
-
labelLineHeight:
|
|
9570
|
-
contentTopColor:
|
|
9571
|
-
change:
|
|
9572
|
-
labelFontFamily:
|
|
9573
|
-
contentDirection:
|
|
9574
|
-
contentTopWeight:
|
|
9575
|
-
contentTopRadius:
|
|
9576
|
-
contentTopHeight:
|
|
9577
|
-
contentTopBorder:
|
|
9578
|
-
getItem:
|
|
9579
|
-
contentTopDisplay:
|
|
9580
|
-
contentTopPadding:
|
|
9581
|
-
contentBottomLeft:
|
|
9582
|
-
options:
|
|
9583
|
-
labelMarginBottom:
|
|
9584
|
-
innerErrorPadding:
|
|
9585
|
-
labelTextTransform:
|
|
9586
|
-
showOptionDuration:
|
|
9587
|
-
contentTopMaxWidth:
|
|
9588
|
-
contentBottomWidth:
|
|
9589
|
-
contentTopDirection:
|
|
9590
|
-
contentTopBoxSizing:
|
|
9591
|
-
contentBottomZindex:
|
|
9592
|
-
contentBottomRadius:
|
|
9593
|
-
contentTopLineHeight:
|
|
9594
|
-
contentTopBorderHover:
|
|
9595
|
-
contentBottomRowColor:
|
|
9596
|
-
contentBottomMaxWidth:
|
|
9597
|
-
contentBottomOverflow:
|
|
9598
|
-
contentBottomPosition:
|
|
9599
|
-
contentBottomMinHeight:
|
|
9600
|
-
contentBottomBoxShadow:
|
|
9601
|
-
contentBottomRowHeight:
|
|
9602
|
-
contentBottomRowCursor:
|
|
9603
|
-
contentTopBorderActive:
|
|
9604
|
-
contentBottomRowDisplay:
|
|
9605
|
-
contentBottomRowPadding:
|
|
9606
|
-
contentBottomRowFontSize:
|
|
9607
|
-
contentBottomRowBoxSizing:
|
|
9608
|
-
innerErrorBackgroundColor:
|
|
9609
|
-
contentBottomInnerDisplay:
|
|
9610
|
-
contentBottomRowFontWeight:
|
|
9611
|
-
contentBottomRowLineHeight:
|
|
9612
|
-
contentBottomRowAlignItems:
|
|
9613
|
-
contentBottomRowTransition:
|
|
9614
|
-
contentBottomRowHoverColor:
|
|
9615
|
-
contentBottomInnerOverflowY:
|
|
9616
|
-
contentBottomInnerOverflowX:
|
|
9617
|
-
contentBottomInnerMaxHeight:
|
|
9618
|
-
contentBottomInnerDirection:
|
|
9619
|
-
contentBottomRowMarginBottom:
|
|
9620
|
-
contentBottomBackgroundColor:
|
|
9621
|
-
contentBottomRowBackgroundColor:
|
|
9622
|
-
contentBottomRowHoverBackgroundColor:
|
|
9623
|
-
useLabelTooltip:
|
|
9624
|
-
labelTooltipColor:
|
|
9625
|
-
labelTooltipPadding:
|
|
9626
|
-
labelTooltipFontSize:
|
|
9627
|
-
labelTooltipFontStyle:
|
|
9628
|
-
labelTooltipFontFamily:
|
|
9629
|
-
labelTooltipFontWeight:
|
|
9630
|
-
labelTooltipBorderRadius:
|
|
9631
|
-
labelTooltipBackgroundColor:
|
|
9632
|
-
backgroundDisableColor:
|
|
9691
|
+
label: PropTypes__default["default"].string,
|
|
9692
|
+
required: PropTypes__default["default"].bool,
|
|
9693
|
+
disabled: PropTypes__default["default"].bool,
|
|
9694
|
+
keyNames: PropTypes__default["default"].object,
|
|
9695
|
+
selected: PropTypes__default["default"].object,
|
|
9696
|
+
className: PropTypes__default["default"].string,
|
|
9697
|
+
errorSize: PropTypes__default["default"].string,
|
|
9698
|
+
errorStyle: PropTypes__default["default"].string,
|
|
9699
|
+
errorWeight: PropTypes__default["default"].string,
|
|
9700
|
+
errorFamily: PropTypes__default["default"].string,
|
|
9701
|
+
marginTop: PropTypes__default["default"].string,
|
|
9702
|
+
labelSize: PropTypes__default["default"].string,
|
|
9703
|
+
labelStyle: PropTypes__default["default"].string,
|
|
9704
|
+
errorColor: PropTypes__default["default"].string,
|
|
9705
|
+
labelColor: PropTypes__default["default"].string,
|
|
9706
|
+
searchCount: PropTypes__default["default"].number,
|
|
9707
|
+
placeHolder: PropTypes__default["default"].string,
|
|
9708
|
+
labelWeight: PropTypes__default["default"].number,
|
|
9709
|
+
errorMessage: PropTypes__default["default"].string,
|
|
9710
|
+
labelDisplay: PropTypes__default["default"].string,
|
|
9711
|
+
autoComplete: PropTypes__default["default"].string,
|
|
9712
|
+
iconRequired: PropTypes__default["default"].element,
|
|
9713
|
+
contentDisplay: PropTypes__default["default"].string,
|
|
9714
|
+
contentTopSize: PropTypes__default["default"].string,
|
|
9715
|
+
contentTopStyle: PropTypes__default["default"].string,
|
|
9716
|
+
contentTopFamily: PropTypes__default["default"].string,
|
|
9717
|
+
contentPosition: PropTypes__default["default"].string,
|
|
9718
|
+
labelLineHeight: PropTypes__default["default"].string,
|
|
9719
|
+
contentTopColor: PropTypes__default["default"].string,
|
|
9720
|
+
change: PropTypes__default["default"].func.isRequired,
|
|
9721
|
+
labelFontFamily: PropTypes__default["default"].string,
|
|
9722
|
+
contentDirection: PropTypes__default["default"].string,
|
|
9723
|
+
contentTopWeight: PropTypes__default["default"].number,
|
|
9724
|
+
contentTopRadius: PropTypes__default["default"].string,
|
|
9725
|
+
contentTopHeight: PropTypes__default["default"].string,
|
|
9726
|
+
contentTopBorder: PropTypes__default["default"].string,
|
|
9727
|
+
getItem: PropTypes__default["default"].func.isRequired,
|
|
9728
|
+
contentTopDisplay: PropTypes__default["default"].string,
|
|
9729
|
+
contentTopPadding: PropTypes__default["default"].string,
|
|
9730
|
+
contentBottomLeft: PropTypes__default["default"].string,
|
|
9731
|
+
options: PropTypes__default["default"].array.isRequired,
|
|
9732
|
+
labelMarginBottom: PropTypes__default["default"].string,
|
|
9733
|
+
innerErrorPadding: PropTypes__default["default"].string,
|
|
9734
|
+
labelTextTransform: PropTypes__default["default"].string,
|
|
9735
|
+
showOptionDuration: PropTypes__default["default"].string,
|
|
9736
|
+
contentTopMaxWidth: PropTypes__default["default"].string,
|
|
9737
|
+
contentBottomWidth: PropTypes__default["default"].string,
|
|
9738
|
+
contentTopDirection: PropTypes__default["default"].string,
|
|
9739
|
+
contentTopBoxSizing: PropTypes__default["default"].string,
|
|
9740
|
+
contentBottomZindex: PropTypes__default["default"].number,
|
|
9741
|
+
contentBottomRadius: PropTypes__default["default"].string,
|
|
9742
|
+
contentTopLineHeight: PropTypes__default["default"].string,
|
|
9743
|
+
contentTopBorderHover: PropTypes__default["default"].string,
|
|
9744
|
+
contentBottomRowColor: PropTypes__default["default"].string,
|
|
9745
|
+
contentBottomMaxWidth: PropTypes__default["default"].string,
|
|
9746
|
+
contentBottomOverflow: PropTypes__default["default"].string,
|
|
9747
|
+
contentBottomPosition: PropTypes__default["default"].string,
|
|
9748
|
+
contentBottomMinHeight: PropTypes__default["default"].string,
|
|
9749
|
+
contentBottomBoxShadow: PropTypes__default["default"].string,
|
|
9750
|
+
contentBottomRowHeight: PropTypes__default["default"].string,
|
|
9751
|
+
contentBottomRowCursor: PropTypes__default["default"].string,
|
|
9752
|
+
contentTopBorderActive: PropTypes__default["default"].string,
|
|
9753
|
+
contentBottomRowDisplay: PropTypes__default["default"].string,
|
|
9754
|
+
contentBottomRowPadding: PropTypes__default["default"].string,
|
|
9755
|
+
contentBottomRowFontSize: PropTypes__default["default"].string,
|
|
9756
|
+
contentBottomRowBoxSizing: PropTypes__default["default"].string,
|
|
9757
|
+
innerErrorBackgroundColor: PropTypes__default["default"].string,
|
|
9758
|
+
contentBottomInnerDisplay: PropTypes__default["default"].string,
|
|
9759
|
+
contentBottomRowFontWeight: PropTypes__default["default"].number,
|
|
9760
|
+
contentBottomRowLineHeight: PropTypes__default["default"].string,
|
|
9761
|
+
contentBottomRowAlignItems: PropTypes__default["default"].string,
|
|
9762
|
+
contentBottomRowTransition: PropTypes__default["default"].string,
|
|
9763
|
+
contentBottomRowHoverColor: PropTypes__default["default"].string,
|
|
9764
|
+
contentBottomInnerOverflowY: PropTypes__default["default"].string,
|
|
9765
|
+
contentBottomInnerOverflowX: PropTypes__default["default"].string,
|
|
9766
|
+
contentBottomInnerMaxHeight: PropTypes__default["default"].string,
|
|
9767
|
+
contentBottomInnerDirection: PropTypes__default["default"].string,
|
|
9768
|
+
contentBottomRowMarginBottom: PropTypes__default["default"].string,
|
|
9769
|
+
contentBottomBackgroundColor: PropTypes__default["default"].string,
|
|
9770
|
+
contentBottomRowBackgroundColor: PropTypes__default["default"].string,
|
|
9771
|
+
contentBottomRowHoverBackgroundColor: PropTypes__default["default"].string,
|
|
9772
|
+
useLabelTooltip: PropTypes__default["default"].bool,
|
|
9773
|
+
labelTooltipColor: PropTypes__default["default"].string,
|
|
9774
|
+
labelTooltipPadding: PropTypes__default["default"].string,
|
|
9775
|
+
labelTooltipFontSize: PropTypes__default["default"].string,
|
|
9776
|
+
labelTooltipFontStyle: PropTypes__default["default"].string,
|
|
9777
|
+
labelTooltipFontFamily: PropTypes__default["default"].string,
|
|
9778
|
+
labelTooltipFontWeight: PropTypes__default["default"].string,
|
|
9779
|
+
labelTooltipBorderRadius: PropTypes__default["default"].string,
|
|
9780
|
+
labelTooltipBackgroundColor: PropTypes__default["default"].string,
|
|
9781
|
+
backgroundDisableColor: PropTypes__default["default"].string
|
|
9633
9782
|
};
|
|
9634
9783
|
|
|
9635
9784
|
exports.Accordion = Accordion;
|