@xaypay/tui 0.2.14 → 0.2.15
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 +832 -275
- package/dist/index.js +835 -274
- package/package.json +1 -1
- package/tui.config.js +91 -13
package/dist/index.js
CHANGED
|
@@ -463,6 +463,8 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
|
|
|
463
463
|
}, iconDelItem ? iconDelItem : /*#__PURE__*/React__default["default"].createElement(SvgListItemDelete, null))));
|
|
464
464
|
});
|
|
465
465
|
|
|
466
|
+
var img$2 = "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";
|
|
467
|
+
|
|
466
468
|
const boxSizing = 'border-box';
|
|
467
469
|
const fontStyle = 'normal';
|
|
468
470
|
const fontFamily = 'Arial';
|
|
@@ -489,17 +491,18 @@ const fontObject = {
|
|
|
489
491
|
var packageResult = {
|
|
490
492
|
// default properties for <Button /> component
|
|
491
493
|
BUTTON: {
|
|
492
|
-
|
|
494
|
+
opacity: 1,
|
|
493
495
|
width: '100%',
|
|
496
|
+
radius: '6px',
|
|
497
|
+
className: '',
|
|
498
|
+
type: 'button',
|
|
494
499
|
height: '46px',
|
|
495
500
|
color: 'white',
|
|
496
|
-
contentWidth: false,
|
|
497
501
|
border: 'none',
|
|
498
|
-
|
|
502
|
+
disabled: false,
|
|
499
503
|
cursor: 'pointer',
|
|
504
|
+
contentWidth: false,
|
|
500
505
|
padding: '12px 20px',
|
|
501
|
-
disabled: false,
|
|
502
|
-
className: '',
|
|
503
506
|
transition: 'background-color 240ms, color 240ms',
|
|
504
507
|
box: {
|
|
505
508
|
sizing: boxSizing
|
|
@@ -509,7 +512,11 @@ var packageResult = {
|
|
|
509
512
|
backgroundHover: '#CB3A3A',
|
|
510
513
|
disabled: 'rgba(60, 57, 62, 1)',
|
|
511
514
|
disabledLine: 'rgba(60, 57, 62, 1)',
|
|
512
|
-
disabledBackground: 'rgba(238, 238, 238, 1)'
|
|
515
|
+
disabledBackground: 'rgba(238, 238, 238, 1)',
|
|
516
|
+
withoutStyling: {
|
|
517
|
+
color: '#000000',
|
|
518
|
+
hoverColor: '#121212'
|
|
519
|
+
}
|
|
513
520
|
},
|
|
514
521
|
font: {
|
|
515
522
|
...fontObject
|
|
@@ -521,8 +528,10 @@ var packageResult = {
|
|
|
521
528
|
}
|
|
522
529
|
},
|
|
523
530
|
icon: {
|
|
531
|
+
marginLeft: '10px',
|
|
524
532
|
marginRight: '10px'
|
|
525
|
-
}
|
|
533
|
+
},
|
|
534
|
+
withoutStyling: false
|
|
526
535
|
},
|
|
527
536
|
// default properties for <Input /> component
|
|
528
537
|
INPUT: {
|
|
@@ -556,6 +565,7 @@ var packageResult = {
|
|
|
556
565
|
color: presetColors.dark,
|
|
557
566
|
display: 'block',
|
|
558
567
|
lineHeight: '22px',
|
|
568
|
+
iconMargin: '10px',
|
|
559
569
|
marginBottom: '6px',
|
|
560
570
|
font: {
|
|
561
571
|
...fontObject
|
|
@@ -567,6 +577,7 @@ var packageResult = {
|
|
|
567
577
|
zIndex: '1',
|
|
568
578
|
className: '',
|
|
569
579
|
marginTop: '10px',
|
|
580
|
+
iconMargin: '10px',
|
|
570
581
|
lineHeight: '19px',
|
|
571
582
|
font: {
|
|
572
583
|
...fontObject
|
|
@@ -1112,6 +1123,36 @@ var packageResult = {
|
|
|
1112
1123
|
},
|
|
1113
1124
|
closeAreaBackgroundColor: 'linear-gradient(to bottom, rgb(60, 57, 62), rgba(60, 57, 62, 0))' // for close div background color
|
|
1114
1125
|
},
|
|
1126
|
+
// default properties for <SwipeModal /> component
|
|
1127
|
+
SWIPEMODAL: {
|
|
1128
|
+
width: '300px',
|
|
1129
|
+
height: '100vh',
|
|
1130
|
+
titleStyle: {
|
|
1131
|
+
color: '#1C212D',
|
|
1132
|
+
textAlign: 'left',
|
|
1133
|
+
maxHeight: '66px',
|
|
1134
|
+
padding: '0px 20px',
|
|
1135
|
+
font: {
|
|
1136
|
+
...fontObject
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
parent: {
|
|
1140
|
+
width: '100%',
|
|
1141
|
+
height: '100vh',
|
|
1142
|
+
colors: {
|
|
1143
|
+
background: 'rgba(60, 61, 70, 0.2)'
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
colors: {
|
|
1147
|
+
background: 'white'
|
|
1148
|
+
},
|
|
1149
|
+
border: {
|
|
1150
|
+
radius: '10px'
|
|
1151
|
+
},
|
|
1152
|
+
withParent: true,
|
|
1153
|
+
outSideClose: false,
|
|
1154
|
+
closeIcon: img$2
|
|
1155
|
+
},
|
|
1115
1156
|
// default properties for <Checkbox /> component
|
|
1116
1157
|
CHECKBOX: {
|
|
1117
1158
|
className: '',
|
|
@@ -1194,13 +1235,48 @@ var packageResult = {
|
|
|
1194
1235
|
},
|
|
1195
1236
|
// default properties for <Toaster /> component
|
|
1196
1237
|
TOASTER: {
|
|
1238
|
+
width: '440px',
|
|
1239
|
+
height: '83px',
|
|
1197
1240
|
className: '',
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1241
|
+
marginBottom: '20px',
|
|
1242
|
+
backgroundColor: '#FFFFFF',
|
|
1243
|
+
padding: '14px 29px 14px 12px',
|
|
1244
|
+
border: {
|
|
1245
|
+
width: '2px',
|
|
1246
|
+
style: 'solid',
|
|
1247
|
+
radius: '40px',
|
|
1248
|
+
color: '#EEEEEE'
|
|
1249
|
+
},
|
|
1250
|
+
title: {
|
|
1251
|
+
color: '#3C393E',
|
|
1252
|
+
lineHeight: '22px',
|
|
1253
|
+
font: {
|
|
1254
|
+
size: '16px',
|
|
1255
|
+
style: 'normal',
|
|
1256
|
+
weight: 600,
|
|
1257
|
+
family: ''
|
|
1258
|
+
},
|
|
1259
|
+
props: {}
|
|
1260
|
+
},
|
|
1261
|
+
description: {
|
|
1262
|
+
color: '#3C393E',
|
|
1263
|
+
lineHeight: '16px',
|
|
1264
|
+
font: {
|
|
1265
|
+
size: '12px',
|
|
1266
|
+
style: 'normal',
|
|
1267
|
+
weight: 500,
|
|
1268
|
+
family: ''
|
|
1269
|
+
},
|
|
1270
|
+
props: {
|
|
1271
|
+
opacity: 0.8
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
icons: {
|
|
1275
|
+
info: '',
|
|
1276
|
+
warn: '',
|
|
1277
|
+
error: '',
|
|
1278
|
+
close: '',
|
|
1279
|
+
success: ''
|
|
1204
1280
|
}
|
|
1205
1281
|
},
|
|
1206
1282
|
// default properties for <Stepper /> component
|
|
@@ -1286,6 +1362,7 @@ const Button = ({
|
|
|
1286
1362
|
radius,
|
|
1287
1363
|
outline,
|
|
1288
1364
|
padding,
|
|
1365
|
+
opacity,
|
|
1289
1366
|
onClick,
|
|
1290
1367
|
disabled,
|
|
1291
1368
|
className,
|
|
@@ -1294,13 +1371,18 @@ const Button = ({
|
|
|
1294
1371
|
hoverColor,
|
|
1295
1372
|
transition,
|
|
1296
1373
|
contentWidth,
|
|
1374
|
+
iconRightSide,
|
|
1297
1375
|
disabledColor,
|
|
1298
1376
|
textTransform,
|
|
1377
|
+
withoutStyling,
|
|
1299
1378
|
backgroundColor,
|
|
1300
1379
|
disabledLineColor,
|
|
1380
|
+
btnIconMarginLeft,
|
|
1301
1381
|
btnIconMarginRight,
|
|
1382
|
+
withoutStylingColor,
|
|
1302
1383
|
backgroundHoverColor,
|
|
1303
1384
|
disabledBackgroundColor,
|
|
1385
|
+
withoutStylingHoverColor,
|
|
1304
1386
|
...props
|
|
1305
1387
|
}) => {
|
|
1306
1388
|
const [classProps, setClassProps] = React.useState({});
|
|
@@ -1336,22 +1418,23 @@ const Button = ({
|
|
|
1336
1418
|
outline: 'none',
|
|
1337
1419
|
alignItems: 'center',
|
|
1338
1420
|
justifyContent: 'center',
|
|
1421
|
+
height: height ?? configStyles.BUTTON.height,
|
|
1422
|
+
padding: padding ?? configStyles.BUTTON.padding,
|
|
1339
1423
|
fontSize: size ?? configStyles.BUTTON.font.size,
|
|
1424
|
+
borderRadius: radius ?? configStyles.BUTTON.radius,
|
|
1340
1425
|
fontStyle: style ?? configStyles.BUTTON.font.style,
|
|
1341
1426
|
fontFamily: font ?? configStyles.BUTTON.font.family,
|
|
1342
|
-
height: height ?? configStyles.BUTTON.height,
|
|
1343
1427
|
fontWeight: weight ?? configStyles.BUTTON.font.weight,
|
|
1344
|
-
padding: padding ?? configStyles.BUTTON.padding,
|
|
1345
|
-
borderRadius: radius ?? configStyles.BUTTON.radius,
|
|
1346
1428
|
boxSizing: boxSizing ?? configStyles.BUTTON.box.sizing,
|
|
1347
1429
|
transition: transition ?? configStyles.BUTTON.transition,
|
|
1348
1430
|
border: outline ? 'none' : border ?? configStyles.BUTTON.border,
|
|
1349
1431
|
width: contentWidth ? 'auto' : width ?? configStyles.BUTTON.width,
|
|
1350
|
-
cursor: disabled ? 'not-allowed' : cursor ?? configStyles.BUTTON.cursor,
|
|
1351
1432
|
textTransform: textTransform ?? configStyles.BUTTON.text.transform,
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1433
|
+
cursor: disabled ? 'not-allowed' : cursor ?? configStyles.BUTTON.cursor,
|
|
1434
|
+
opacity: opacity ?? configStyles.BUTTON.opacity,
|
|
1435
|
+
backgroundColor: withoutStyling ?? configStyles.BUTTON.withoutStyling ? 'transparent' : (outline || !outline) && disabled ? disabledBackgroundColor ? disabledBackgroundColor : configStyles.BUTTON.colors.disabledBackground : outline && !disabled ? isHover ? backgroundColor ? backgroundColor : configStyles.BUTTON.colors.background : '#ffffff' : !outline && !disabled && isHover ? backgroundHoverColor ? backgroundHoverColor : configStyles.BUTTON.colors.backgroundHover : backgroundColor ? backgroundColor : configStyles.BUTTON.colors.background,
|
|
1436
|
+
boxShadow: outline && !withoutStyling && !configStyles.BUTTON.withoutStyling ? disabled ? `inset 0 0 0 2px ${disabledLineColor ? disabledLineColor : configStyles.BUTTON.colors.disabledLine}` : `inset 0 0 0 2px ${backgroundColor ? backgroundColor : configStyles.BUTTON.colors.background}` : 'none',
|
|
1437
|
+
color: withoutStyling ?? configStyles.BUTTON.withoutStyling ? isHover ? withoutStylingHoverColor ?? configStyles.BUTTON.colors.withoutStyling.hoverColor : withoutStylingColor ?? configStyles.BUTTON.colors.withoutStyling.color : (outline || !outline) && disabled ? disabledColor ? disabledColor : configStyles.BUTTON.colors.disabled : outline && !disabled ? isHover ? color ? color : configStyles.BUTTON.color : backgroundColor ? backgroundColor : configStyles.BUTTON.colors.background : !outline && !disabled && isHover ? hoverColor ? hoverColor : configStyles.BUTTON.text.colors.hover : color ? color : configStyles.BUTTON.color
|
|
1355
1438
|
},
|
|
1356
1439
|
type: type ?? configStyles.BUTTON.type,
|
|
1357
1440
|
disabled: disabled ?? configStyles.BUTTON.disabled,
|
|
@@ -1359,43 +1442,50 @@ const Button = ({
|
|
|
1359
1442
|
onMouseEnter: handleMouseEnter,
|
|
1360
1443
|
onMouseLeave: handleMouseLeave,
|
|
1361
1444
|
className: classProps
|
|
1362
|
-
}, props), isHover && hoverIcon ? hoverIcon : icon ?? null, ' ', label && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1445
|
+
}, props), !iconRightSide ? isHover && hoverIcon ? hoverIcon : icon ?? null : ' ', ' ', label && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1363
1446
|
style: {
|
|
1364
|
-
marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : configStyles.BUTTON.icon.marginRight : '0px'
|
|
1447
|
+
marginLeft: icon && !iconRightSide ? btnIconMarginRight ? btnIconMarginRight : configStyles.BUTTON.icon.marginRight : '0px',
|
|
1448
|
+
marginRight: icon && iconRightSide ? btnIconMarginLeft ? btnIconMarginLeft : configStyles.BUTTON.icon.marginLeft : '0px'
|
|
1365
1449
|
}
|
|
1366
|
-
}, label), ' ', !icon && !label && 'Add icon or label prop on Button component'));
|
|
1450
|
+
}, label), ' ', iconRightSide ? isHover && hoverIcon ? hoverIcon : icon ?? null : ' ', !icon && !label && 'Add icon or label prop on Button component'));
|
|
1367
1451
|
};
|
|
1368
1452
|
Button.propTypes = {
|
|
1369
1453
|
type: PropTypes__default["default"].string,
|
|
1370
1454
|
size: PropTypes__default["default"].string,
|
|
1371
1455
|
style: PropTypes__default["default"].string,
|
|
1372
|
-
weight: PropTypes__default["default"].string,
|
|
1373
1456
|
font: PropTypes__default["default"].string,
|
|
1374
1457
|
icon: PropTypes__default["default"].element,
|
|
1375
|
-
hoverIcon: PropTypes__default["default"].element,
|
|
1376
1458
|
color: PropTypes__default["default"].string,
|
|
1377
1459
|
width: PropTypes__default["default"].string,
|
|
1378
1460
|
outline: PropTypes__default["default"].bool,
|
|
1379
1461
|
onClick: PropTypes__default["default"].func,
|
|
1380
1462
|
label: PropTypes__default["default"].string,
|
|
1463
|
+
weight: PropTypes__default["default"].string,
|
|
1381
1464
|
height: PropTypes__default["default"].string,
|
|
1382
1465
|
cursor: PropTypes__default["default"].string,
|
|
1383
1466
|
border: PropTypes__default["default"].string,
|
|
1384
1467
|
disabled: PropTypes__default["default"].bool,
|
|
1385
1468
|
radius: PropTypes__default["default"].string,
|
|
1386
1469
|
padding: PropTypes__default["default"].string,
|
|
1470
|
+
opacity: PropTypes__default["default"].number,
|
|
1387
1471
|
boxSizing: PropTypes__default["default"].string,
|
|
1388
1472
|
className: PropTypes__default["default"].string,
|
|
1473
|
+
hoverIcon: PropTypes__default["default"].element,
|
|
1389
1474
|
hoverColor: PropTypes__default["default"].string,
|
|
1390
1475
|
transition: PropTypes__default["default"].string,
|
|
1391
1476
|
contentWidth: PropTypes__default["default"].bool,
|
|
1477
|
+
iconRightSide: PropTypes__default["default"].bool,
|
|
1478
|
+
withoutStyling: PropTypes__default["default"].bool,
|
|
1392
1479
|
textTransform: PropTypes__default["default"].string,
|
|
1393
1480
|
disabledColor: PropTypes__default["default"].string,
|
|
1394
1481
|
backgroundColor: PropTypes__default["default"].string,
|
|
1395
1482
|
disabledLineColor: PropTypes__default["default"].string,
|
|
1483
|
+
btnIconMarginLeft: PropTypes__default["default"].string,
|
|
1396
1484
|
btnIconMarginRight: PropTypes__default["default"].string,
|
|
1485
|
+
withoutStylingColor: PropTypes__default["default"].string,
|
|
1397
1486
|
backgroundHoverColor: PropTypes__default["default"].string,
|
|
1398
|
-
disabledBackgroundColor: PropTypes__default["default"].string
|
|
1487
|
+
disabledBackgroundColor: PropTypes__default["default"].string,
|
|
1488
|
+
withoutStylingHoverColor: PropTypes__default["default"].string
|
|
1399
1489
|
};
|
|
1400
1490
|
|
|
1401
1491
|
const SvgPdf = ({
|
|
@@ -2473,9 +2563,9 @@ function styleInject(css, ref) {
|
|
|
2473
2563
|
}
|
|
2474
2564
|
}
|
|
2475
2565
|
|
|
2476
|
-
var css_248z$
|
|
2477
|
-
var styles$
|
|
2478
|
-
styleInject(css_248z$
|
|
2566
|
+
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}";
|
|
2567
|
+
var styles$a = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO"};
|
|
2568
|
+
styleInject(css_248z$b);
|
|
2479
2569
|
|
|
2480
2570
|
/* eslint-disable no-prototype-builtins */
|
|
2481
2571
|
const TH = ({
|
|
@@ -2517,7 +2607,7 @@ const TH = ({
|
|
|
2517
2607
|
borderColor: hideBorder ? 'transparent' : '#eeeeee'
|
|
2518
2608
|
},
|
|
2519
2609
|
onClick: handleHeaderItemClick,
|
|
2520
|
-
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$
|
|
2610
|
+
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$a['sorting-arrows'] : '' : ''}`
|
|
2521
2611
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2522
2612
|
style: {
|
|
2523
2613
|
display: 'flex',
|
|
@@ -2651,7 +2741,7 @@ const TD = ({
|
|
|
2651
2741
|
},
|
|
2652
2742
|
id: newItem.id,
|
|
2653
2743
|
type: newItem.type,
|
|
2654
|
-
className: styles$
|
|
2744
|
+
className: styles$a['td-span'],
|
|
2655
2745
|
key: `${newItem.id}_${newIndex}`,
|
|
2656
2746
|
onClick: e => handleCheckActions(e, newItem, 'type', newIndex)
|
|
2657
2747
|
}, newItem.content === 0 ? newItem.content.toString() : newItem.content ? newItem.content : '');
|
|
@@ -2673,7 +2763,7 @@ const TD = ({
|
|
|
2673
2763
|
},
|
|
2674
2764
|
id: iT.id ? iT.id : '',
|
|
2675
2765
|
type: iT.type ? iT.type : '',
|
|
2676
|
-
className: styles$
|
|
2766
|
+
className: styles$a['td-span'],
|
|
2677
2767
|
onClick: e => handleCheckActions(e, iT, 'type', iN),
|
|
2678
2768
|
key: `${iT.id || iT.content}_${iN}`
|
|
2679
2769
|
}, iT.content === 0 ? iT.content.toString() : iT.content ? iT.content : '');
|
|
@@ -2697,7 +2787,7 @@ const TD = ({
|
|
|
2697
2787
|
cursor: 'pointer'
|
|
2698
2788
|
},
|
|
2699
2789
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
2700
|
-
className: styles$
|
|
2790
|
+
className: styles$a['td-span']
|
|
2701
2791
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'draggableIcon') && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2702
2792
|
draggable: true,
|
|
2703
2793
|
style: {
|
|
@@ -2766,7 +2856,7 @@ const TD = ({
|
|
|
2766
2856
|
}, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
2767
2857
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2768
2858
|
key: `${optionItem.content}_${optionIndex}`,
|
|
2769
|
-
className: styles$
|
|
2859
|
+
className: styles$a['dots-option-item'],
|
|
2770
2860
|
style: {
|
|
2771
2861
|
color: '#3C393E',
|
|
2772
2862
|
fontSize: '14px',
|
|
@@ -2808,7 +2898,7 @@ const TD = ({
|
|
|
2808
2898
|
}, innerItem.content.map((contInnerItem, contInnerIndex) => {
|
|
2809
2899
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2810
2900
|
key: `${contInnerItem}_${contInnerIndex}`,
|
|
2811
|
-
className: styles$
|
|
2901
|
+
className: styles$a['list-text'],
|
|
2812
2902
|
style: {
|
|
2813
2903
|
maxWidth: '100%',
|
|
2814
2904
|
color: openListColor,
|
|
@@ -2825,7 +2915,7 @@ const TD = ({
|
|
|
2825
2915
|
} else {
|
|
2826
2916
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2827
2917
|
key: `${innerItem}_${innerItemIndex}`,
|
|
2828
|
-
className: styles$
|
|
2918
|
+
className: styles$a['list-text'],
|
|
2829
2919
|
style: {
|
|
2830
2920
|
maxWidth: '100%',
|
|
2831
2921
|
color: openListColor,
|
|
@@ -2846,7 +2936,7 @@ const TD = ({
|
|
|
2846
2936
|
cursor: 'pointer'
|
|
2847
2937
|
},
|
|
2848
2938
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
2849
|
-
className: styles$
|
|
2939
|
+
className: styles$a['td-span']
|
|
2850
2940
|
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
2851
2941
|
};
|
|
2852
2942
|
|
|
@@ -3103,7 +3193,6 @@ const Table = ({
|
|
|
3103
3193
|
}
|
|
3104
3194
|
};
|
|
3105
3195
|
const handleCheckedHeader = (data, e) => {
|
|
3106
|
-
console.log('ok - - - - - - - ');
|
|
3107
3196
|
e.stopPropagation();
|
|
3108
3197
|
let removeItemIndex;
|
|
3109
3198
|
let checkableItemBool;
|
|
@@ -3214,9 +3303,18 @@ const Table = ({
|
|
|
3214
3303
|
tempCheckedArray.push(innerItem.checked);
|
|
3215
3304
|
});
|
|
3216
3305
|
if (tempCheckedArray.every(i => i)) {
|
|
3217
|
-
item
|
|
3306
|
+
if (hasOwnerProperty(item, 'checkBox')) {
|
|
3307
|
+
if (hasOwnerProperty(item.checkBox, 'checked')) {
|
|
3308
|
+
item.checkBox.checked = true;
|
|
3309
|
+
return item;
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3218
3312
|
} else {
|
|
3219
|
-
item
|
|
3313
|
+
if (hasOwnerProperty(item, 'checkBox')) {
|
|
3314
|
+
if (hasOwnerProperty(item.checkBox, 'checked')) {
|
|
3315
|
+
item.checkBox.checked = false;
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3220
3318
|
}
|
|
3221
3319
|
}
|
|
3222
3320
|
return item;
|
|
@@ -3281,7 +3379,7 @@ const Table = ({
|
|
|
3281
3379
|
const handleCheckArrowActionHeader = (e, item) => {
|
|
3282
3380
|
e.stopPropagation();
|
|
3283
3381
|
const checkedOpenableAllRows = header.map((innerItem, innerIndex) => {
|
|
3284
|
-
if (item.checkIndex === innerIndex) {
|
|
3382
|
+
if (item.checkIndex === (draggable && !showOrder ? innerIndex - 1 : draggable && showOrder ? innerIndex - 2 : innerIndex)) {
|
|
3285
3383
|
if (item.status === 'close') {
|
|
3286
3384
|
innerItem.status = 'open';
|
|
3287
3385
|
} else {
|
|
@@ -3391,7 +3489,12 @@ const Table = ({
|
|
|
3391
3489
|
const newRows = body;
|
|
3392
3490
|
const [draggedRow] = newRows.splice(draggedRowIndex.current, 1);
|
|
3393
3491
|
newRows.splice(index, 0, draggedRow);
|
|
3394
|
-
newRows.map(item => {
|
|
3492
|
+
newRows.map((item, newIndex) => {
|
|
3493
|
+
item.map(innerItem => {
|
|
3494
|
+
if (hasOwnerProperty(innerItem, 'checkIndex')) {
|
|
3495
|
+
innerItem.checkIndex = newIndex;
|
|
3496
|
+
}
|
|
3497
|
+
});
|
|
3395
3498
|
correctData.push([...item]);
|
|
3396
3499
|
});
|
|
3397
3500
|
setBody(correctData);
|
|
@@ -3413,6 +3516,16 @@ const Table = ({
|
|
|
3413
3516
|
itemRefs.current[index] = element;
|
|
3414
3517
|
}
|
|
3415
3518
|
};
|
|
3519
|
+
const handleSafeStringify = obj => {
|
|
3520
|
+
const seen = new WeakSet();
|
|
3521
|
+
return JSON.stringify(obj, (key, value) => {
|
|
3522
|
+
if (typeof value === "object" && value !== null) {
|
|
3523
|
+
if (seen.has(value)) return; // Ignore circular reference
|
|
3524
|
+
seen.add(value);
|
|
3525
|
+
}
|
|
3526
|
+
return value;
|
|
3527
|
+
});
|
|
3528
|
+
};
|
|
3416
3529
|
React.useEffect(() => {
|
|
3417
3530
|
const draggableArray = body && body.length && body.map((item, index) => {
|
|
3418
3531
|
if (showOrder) {
|
|
@@ -3429,7 +3542,7 @@ const Table = ({
|
|
|
3429
3542
|
setBody(() => draggableArray);
|
|
3430
3543
|
}, [checkDrag]);
|
|
3431
3544
|
React.useEffect(() => {
|
|
3432
|
-
const isEqual =
|
|
3545
|
+
const isEqual = handleSafeStringify(body) === handleSafeStringify(dataBody);
|
|
3433
3546
|
if (!isEqual) {
|
|
3434
3547
|
let insert = [];
|
|
3435
3548
|
let newArray = [];
|
|
@@ -3437,7 +3550,11 @@ const Table = ({
|
|
|
3437
3550
|
const disabledArray = [];
|
|
3438
3551
|
const checkBodyForChackedItems = dataBody.slice().map(item => Object.values(item));
|
|
3439
3552
|
if (arrowShow) {
|
|
3440
|
-
|
|
3553
|
+
let column = arrowColumn;
|
|
3554
|
+
if (draggable) {
|
|
3555
|
+
column -= 1;
|
|
3556
|
+
}
|
|
3557
|
+
const arrowColumnCount = handleSetInsertIndex(checkBodyForChackedItems[0], column);
|
|
3441
3558
|
const checkForInsertArrow = handleTransformDataForInsertArrow(checkBodyForChackedItems, arrowColumnCount, 'body');
|
|
3442
3559
|
insert = checkForInsertArrow.map((item, index) => {
|
|
3443
3560
|
item.map((innerItem, innerIndex) => {
|
|
@@ -3456,27 +3573,8 @@ const Table = ({
|
|
|
3456
3573
|
});
|
|
3457
3574
|
return item;
|
|
3458
3575
|
});
|
|
3576
|
+
newArray = insert;
|
|
3459
3577
|
checkedItems = handleSetCheckboxArray(insert);
|
|
3460
|
-
if (draggable) {
|
|
3461
|
-
newArray = insert && insert.length && insert.map((item, index) => {
|
|
3462
|
-
item.map(innerItem => {
|
|
3463
|
-
if (hasOwnerProperty(innerItem, 'colorStatus')) {
|
|
3464
|
-
innerItem.colorStatus = null;
|
|
3465
|
-
}
|
|
3466
|
-
});
|
|
3467
|
-
if (showOrder) {
|
|
3468
|
-
item.unshift({
|
|
3469
|
-
content: index + 1,
|
|
3470
|
-
draggable: true
|
|
3471
|
-
});
|
|
3472
|
-
}
|
|
3473
|
-
item.unshift({
|
|
3474
|
-
draggableIcon: '',
|
|
3475
|
-
colorStatus: draggableColor
|
|
3476
|
-
});
|
|
3477
|
-
return item;
|
|
3478
|
-
});
|
|
3479
|
-
}
|
|
3480
3578
|
} else {
|
|
3481
3579
|
insert = checkBodyForChackedItems.map((item, index) => {
|
|
3482
3580
|
item.map((innerItem, innerIndex) => {
|
|
@@ -3495,69 +3593,62 @@ const Table = ({
|
|
|
3495
3593
|
});
|
|
3496
3594
|
return item;
|
|
3497
3595
|
});
|
|
3596
|
+
newArray = insert;
|
|
3498
3597
|
checkedItems = handleSetCheckboxArray(insert);
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
});
|
|
3506
|
-
if (showOrder) {
|
|
3507
|
-
item.unshift({
|
|
3508
|
-
content: index + 1,
|
|
3509
|
-
draggable: true
|
|
3510
|
-
});
|
|
3598
|
+
}
|
|
3599
|
+
if (draggable) {
|
|
3600
|
+
newArray = insert && insert.length && insert.map((item, index) => {
|
|
3601
|
+
item.map(innerItem => {
|
|
3602
|
+
if (hasOwnerProperty(innerItem, 'colorStatus')) {
|
|
3603
|
+
innerItem.colorStatus = null;
|
|
3511
3604
|
}
|
|
3605
|
+
});
|
|
3606
|
+
if (showOrder) {
|
|
3512
3607
|
item.unshift({
|
|
3513
|
-
|
|
3514
|
-
|
|
3608
|
+
content: index + 1,
|
|
3609
|
+
draggable: true
|
|
3515
3610
|
});
|
|
3516
|
-
|
|
3611
|
+
}
|
|
3612
|
+
item.unshift({
|
|
3613
|
+
draggableIcon: '',
|
|
3614
|
+
colorStatus: draggableColor
|
|
3517
3615
|
});
|
|
3518
|
-
|
|
3616
|
+
return item;
|
|
3617
|
+
});
|
|
3519
3618
|
}
|
|
3520
|
-
|
|
3521
|
-
setBody(() => newArray && newArray.length ? newArray : insert);
|
|
3619
|
+
setBody(() => [...newArray]);
|
|
3522
3620
|
setDisableArr(disabledArray);
|
|
3523
3621
|
setCheckedArray(() => checkedItems);
|
|
3622
|
+
getDraggableData && getDraggableData(newArray);
|
|
3524
3623
|
}
|
|
3525
3624
|
}, [dataBody, arrowColumn, arrowShow, draggable]);
|
|
3526
3625
|
React.useEffect(() => {
|
|
3527
|
-
const isEqual =
|
|
3626
|
+
const isEqual = handleSafeStringify(header) === handleSafeStringify(dataHeader);
|
|
3528
3627
|
if (!isEqual) {
|
|
3529
|
-
let insert = [];
|
|
3530
3628
|
let newArray = [];
|
|
3531
3629
|
if (arrowShow) {
|
|
3532
|
-
|
|
3533
|
-
const arrowColumnCount = handleSetInsertIndex(header, arrowColumn);
|
|
3534
|
-
const checkForInsertArrow = handleTransformDataForInsertArrow(header, arrowColumnCount, 'header');
|
|
3535
|
-
insert = checkForInsertArrow;
|
|
3630
|
+
let column = arrowColumn;
|
|
3536
3631
|
if (draggable) {
|
|
3537
|
-
|
|
3538
|
-
newArray && newArray.length && newArray.unshift({
|
|
3539
|
-
content: ''
|
|
3540
|
-
});
|
|
3541
|
-
if (showOrder) {
|
|
3542
|
-
newArray.unshift({
|
|
3543
|
-
content: ''
|
|
3544
|
-
});
|
|
3545
|
-
}
|
|
3632
|
+
column -= 1;
|
|
3546
3633
|
}
|
|
3634
|
+
const header = dataHeader.slice();
|
|
3635
|
+
const arrowColumnCount = handleSetInsertIndex(header, column);
|
|
3636
|
+
const checkForInsertArrow = handleTransformDataForInsertArrow(header, arrowColumnCount, 'header');
|
|
3637
|
+
newArray = checkForInsertArrow;
|
|
3547
3638
|
} else {
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3639
|
+
newArray = dataHeader.slice();
|
|
3640
|
+
}
|
|
3641
|
+
if (draggable) {
|
|
3642
|
+
newArray && newArray.length && newArray.unshift({
|
|
3643
|
+
content: ''
|
|
3644
|
+
});
|
|
3645
|
+
if (showOrder) {
|
|
3646
|
+
newArray.unshift({
|
|
3551
3647
|
content: ''
|
|
3552
3648
|
});
|
|
3553
|
-
if (showOrder) {
|
|
3554
|
-
newArray.unshift({
|
|
3555
|
-
content: ''
|
|
3556
|
-
});
|
|
3557
|
-
}
|
|
3558
3649
|
}
|
|
3559
3650
|
}
|
|
3560
|
-
setHeader(() => newArray
|
|
3651
|
+
setHeader(() => [...newArray]);
|
|
3561
3652
|
}
|
|
3562
3653
|
}, [dataHeader, arrowColumn, arrowShow, disableArr, draggable]);
|
|
3563
3654
|
React.useEffect(() => {
|
|
@@ -3719,6 +3810,9 @@ const Table = ({
|
|
|
3719
3810
|
};
|
|
3720
3811
|
Table.propTypes = {
|
|
3721
3812
|
getData: PropTypes__default["default"].func,
|
|
3813
|
+
getDraggableData: PropTypes__default["default"].func,
|
|
3814
|
+
draggable: PropTypes__default["default"].bool,
|
|
3815
|
+
showOrder: PropTypes__default["default"].bool,
|
|
3722
3816
|
dataBody: PropTypes__default["default"].array,
|
|
3723
3817
|
arrowShow: PropTypes__default["default"].bool,
|
|
3724
3818
|
dataHeader: PropTypes__default["default"].array,
|
|
@@ -3756,9 +3850,9 @@ Table.propTypes = {
|
|
|
3756
3850
|
hideBorder: PropTypes__default["default"].bool
|
|
3757
3851
|
};
|
|
3758
3852
|
|
|
3759
|
-
var css_248z$
|
|
3760
|
-
var styles$
|
|
3761
|
-
styleInject(css_248z$
|
|
3853
|
+
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)}}";
|
|
3854
|
+
var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
|
|
3855
|
+
styleInject(css_248z$a);
|
|
3762
3856
|
|
|
3763
3857
|
const SvgNext = ({
|
|
3764
3858
|
title,
|
|
@@ -4033,7 +4127,7 @@ const Modal = ({
|
|
|
4033
4127
|
justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
|
|
4034
4128
|
}
|
|
4035
4129
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4036
|
-
className: `${styles$
|
|
4130
|
+
className: `${styles$9['animation__modal']}`,
|
|
4037
4131
|
onClick: handleStopClosing,
|
|
4038
4132
|
style: {
|
|
4039
4133
|
position: 'relative',
|
|
@@ -4520,9 +4614,9 @@ const NumberInput = ({
|
|
|
4520
4614
|
});
|
|
4521
4615
|
};
|
|
4522
4616
|
|
|
4523
|
-
var css_248z$
|
|
4524
|
-
var styles$
|
|
4525
|
-
styleInject(css_248z$
|
|
4617
|
+
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)}}";
|
|
4618
|
+
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k","inp-num":"input-module_inp-num__vH7HL"};
|
|
4619
|
+
styleInject(css_248z$9);
|
|
4526
4620
|
|
|
4527
4621
|
const InputTypes = {
|
|
4528
4622
|
TEL: 'tel',
|
|
@@ -4530,6 +4624,10 @@ const InputTypes = {
|
|
|
4530
4624
|
NUMBER: 'number',
|
|
4531
4625
|
PASSWORD: 'password'
|
|
4532
4626
|
};
|
|
4627
|
+
const IconSides = {
|
|
4628
|
+
LEFT: 'left',
|
|
4629
|
+
RIGHT: 'right'
|
|
4630
|
+
};
|
|
4533
4631
|
const P = styled__default["default"].span`
|
|
4534
4632
|
animation: ${true};
|
|
4535
4633
|
`;
|
|
@@ -4552,6 +4650,8 @@ const Input = ({
|
|
|
4552
4650
|
leftIcon,
|
|
4553
4651
|
required,
|
|
4554
4652
|
disabled,
|
|
4653
|
+
errorDots,
|
|
4654
|
+
errorIcon,
|
|
4555
4655
|
labelDots,
|
|
4556
4656
|
iconWidth,
|
|
4557
4657
|
rightIcon,
|
|
@@ -4562,6 +4662,7 @@ const Input = ({
|
|
|
4562
4662
|
errorSize,
|
|
4563
4663
|
labelSize,
|
|
4564
4664
|
maxLength,
|
|
4665
|
+
labelIcon,
|
|
4565
4666
|
labelStyle,
|
|
4566
4667
|
floatToFix,
|
|
4567
4668
|
minNumSize,
|
|
@@ -4570,6 +4671,8 @@ const Input = ({
|
|
|
4570
4671
|
errorColor,
|
|
4571
4672
|
withoutDot,
|
|
4572
4673
|
errorStyle,
|
|
4674
|
+
labelAction,
|
|
4675
|
+
errorAction,
|
|
4573
4676
|
placeholder,
|
|
4574
4677
|
errorZindex,
|
|
4575
4678
|
labelWeight,
|
|
@@ -4579,15 +4682,21 @@ const Input = ({
|
|
|
4579
4682
|
errorMessage,
|
|
4580
4683
|
autoComplete,
|
|
4581
4684
|
labelDisplay,
|
|
4685
|
+
labelIconSide,
|
|
4686
|
+
showLabelIcon,
|
|
4687
|
+
errorIconSide,
|
|
4688
|
+
showErrorIcon,
|
|
4582
4689
|
errorMarginTop,
|
|
4583
4690
|
boxShadowHover,
|
|
4584
4691
|
errorClassName,
|
|
4692
|
+
labelIconMargin,
|
|
4585
4693
|
labelFontFamily,
|
|
4586
4694
|
phoneAlignItems,
|
|
4587
4695
|
errorLineHeight,
|
|
4588
4696
|
labelLineHeight,
|
|
4589
4697
|
numberMaxLength,
|
|
4590
4698
|
backgroundColor,
|
|
4699
|
+
errorIconMargin,
|
|
4591
4700
|
withZero = false,
|
|
4592
4701
|
labelMarginBottom,
|
|
4593
4702
|
regexpErrorMessage,
|
|
@@ -4605,7 +4714,11 @@ const Input = ({
|
|
|
4605
4714
|
const [classProps, setClassProps] = React.useState({});
|
|
4606
4715
|
const [innerValue, setInnerValue] = React.useState('');
|
|
4607
4716
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
4717
|
+
const [innerErrorIcon, setInnerErrorIcon] = React.useState('');
|
|
4718
|
+
const [innerLabelIcon, setInnerLabelIcon] = React.useState('');
|
|
4608
4719
|
const [innerErrorMessage, setInnerErrorMessage] = React.useState('');
|
|
4720
|
+
const [innerErrorIconSide, setInnerErrorIconSide] = React.useState('left');
|
|
4721
|
+
const [innerLabelIconSide, setInnerLabelIconSide] = React.useState('left');
|
|
4609
4722
|
const inpStyles = configStyles.INPUT && {
|
|
4610
4723
|
width: width ?? configStyles.INPUT.width,
|
|
4611
4724
|
cursor: disabled ? 'not-allowed' : 'auto',
|
|
@@ -4662,11 +4775,27 @@ const Input = ({
|
|
|
4662
4775
|
setInnerValue(() => val);
|
|
4663
4776
|
}, [value]);
|
|
4664
4777
|
React.useEffect(() => {
|
|
4665
|
-
className && setClassProps(() => classnames__default["default"](className ?? configStyles.INPUT.className, type === 'number' ? styles$
|
|
4778
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.INPUT.className, type === 'number' ? styles$8['inp-num'] : '', styles$8['input-wrap']));
|
|
4666
4779
|
}, [className]);
|
|
4780
|
+
React.useEffect(() => {
|
|
4781
|
+
setInnerErrorIcon(() => errorIcon);
|
|
4782
|
+
}, [errorIcon]);
|
|
4783
|
+
React.useEffect(() => {
|
|
4784
|
+
if (errorIconSide) {
|
|
4785
|
+
setInnerErrorIconSide(() => errorIconSide);
|
|
4786
|
+
}
|
|
4787
|
+
}, [errorIconSide]);
|
|
4788
|
+
React.useEffect(() => {
|
|
4789
|
+
setInnerLabelIcon(() => labelIcon);
|
|
4790
|
+
}, [labelIcon]);
|
|
4791
|
+
React.useEffect(() => {
|
|
4792
|
+
if (labelIconSide) {
|
|
4793
|
+
setInnerLabelIconSide(() => labelIconSide);
|
|
4794
|
+
}
|
|
4795
|
+
}, [labelIconSide]);
|
|
4667
4796
|
React.useEffect(() => {
|
|
4668
4797
|
configStylesPromise.then(data => {
|
|
4669
|
-
setClassProps(() => classnames__default["default"](className ?? data.INPUT.className, type === 'number' ? styles$
|
|
4798
|
+
setClassProps(() => classnames__default["default"](className ?? data.INPUT.className, type === 'number' ? styles$8['inp-num'] : '', styles$8['input-wrap']));
|
|
4670
4799
|
setConfigStyles(() => {
|
|
4671
4800
|
return {
|
|
4672
4801
|
...data
|
|
@@ -4694,8 +4823,28 @@ const Input = ({
|
|
|
4694
4823
|
textOverflow: (labelDots ? labelDots : configStyles.INPUT.label.dots) ? 'ellipsis' : ''
|
|
4695
4824
|
},
|
|
4696
4825
|
title: label
|
|
4697
|
-
},
|
|
4698
|
-
|
|
4826
|
+
}, showLabelIcon && innerLabelIcon && innerLabelIconSide === 'left' ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4827
|
+
alt: "label icon",
|
|
4828
|
+
src: innerLabelIcon,
|
|
4829
|
+
style: {
|
|
4830
|
+
width: '14px',
|
|
4831
|
+
height: '14px',
|
|
4832
|
+
cursor: labelAction ? 'pointer' : 'normal',
|
|
4833
|
+
marginRight: labelIconMargin ?? configStyles.INPUT.label.iconMargin
|
|
4834
|
+
},
|
|
4835
|
+
onClick: labelAction ? () => labelAction() : _ => _
|
|
4836
|
+
}) : '', label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null)), showLabelIcon && innerLabelIcon && innerLabelIconSide === 'right' ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4837
|
+
alt: "label icon",
|
|
4838
|
+
src: innerLabelIcon,
|
|
4839
|
+
style: {
|
|
4840
|
+
width: '14px',
|
|
4841
|
+
height: '14px',
|
|
4842
|
+
cursor: labelAction ? 'pointer' : 'normal',
|
|
4843
|
+
marginLeft: labelIconMargin ?? configStyles.INPUT.label.iconMargin
|
|
4844
|
+
},
|
|
4845
|
+
onClick: labelAction ? () => labelAction() : _ => _
|
|
4846
|
+
}) : '') : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4847
|
+
className: `${styles$8['input-content']}`,
|
|
4699
4848
|
style: {
|
|
4700
4849
|
width: width ?? configStyles.INPUT.width,
|
|
4701
4850
|
borderRadius: radius ?? configStyles.INPUT.radius,
|
|
@@ -4786,21 +4935,51 @@ const Input = ({
|
|
|
4786
4935
|
animation: animation,
|
|
4787
4936
|
style: {
|
|
4788
4937
|
margin: '0px',
|
|
4938
|
+
display: 'flex',
|
|
4939
|
+
alignItems: 'center',
|
|
4789
4940
|
position: 'absolute',
|
|
4790
4941
|
width: width ?? configStyles.INPUT.width,
|
|
4791
4942
|
left: errorLeft ?? configStyles.INPUT.error.left,
|
|
4792
4943
|
color: errorColor ?? configStyles.INPUT.error.color,
|
|
4944
|
+
zIndex: errorZindex ?? configStyles.INPUT.error.zIndex,
|
|
4793
4945
|
fontSize: errorSize ?? configStyles.INPUT.error.font.size,
|
|
4794
4946
|
fontStyle: errorStyle ?? configStyles.INPUT.error.font.style,
|
|
4795
4947
|
fontFamily: errorFamily ?? configStyles.INPUT.error.font.family,
|
|
4796
4948
|
fontWeight: errorWeight ?? configStyles.INPUT.error.font.weight,
|
|
4797
|
-
zIndex: errorZindex ?? configStyles.INPUT.error.zIndex,
|
|
4798
4949
|
lineHeight: errorLineHeight ?? configStyles.INPUT.error.lineHeight,
|
|
4799
4950
|
top: errorMarginTop ? `calc(100% + ${errorMarginTop})` : `calc(100% + ${configStyles.INPUT.error.marginTop})`,
|
|
4800
4951
|
transform: 'scale3d(1,1,1)'
|
|
4801
4952
|
},
|
|
4802
4953
|
className: errorClassName ?? configStyles.INPUT.error.className
|
|
4803
|
-
},
|
|
4954
|
+
}, showErrorIcon && innerErrorIcon && innerErrorIconSide === 'left' ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4955
|
+
alt: "error icon",
|
|
4956
|
+
src: innerErrorIcon,
|
|
4957
|
+
style: {
|
|
4958
|
+
width: '14px',
|
|
4959
|
+
height: '14px',
|
|
4960
|
+
cursor: errorAction ? 'pointer' : 'normal',
|
|
4961
|
+
marginRight: errorIconMargin ?? configStyles.INPUT.error.iconMargin
|
|
4962
|
+
},
|
|
4963
|
+
onClick: errorAction ? () => errorAction() : _ => _
|
|
4964
|
+
}) : '', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4965
|
+
style: {
|
|
4966
|
+
display: 'inline-block',
|
|
4967
|
+
whiteSpace: (errorDots ? errorDots : configStyles.INPUT.error.dots) ? 'nowrap' : 'normal',
|
|
4968
|
+
overflow: (errorDots ? errorDots : configStyles.INPUT.error.dots) ? 'hidden' : 'visible',
|
|
4969
|
+
textOverflow: (errorDots ? errorDots : configStyles.INPUT.error.dots) ? 'ellipsis' : '',
|
|
4970
|
+
maxWidth: `calc(100% - ${(errorIconMargin ? Number(errorIconMargin.match(/\d+/)[0]) : Number(configStyles.INPUT.error.iconMargin.match(/\d+/)[0])) + 14}px)`
|
|
4971
|
+
}
|
|
4972
|
+
}, innerErrorMessage), showErrorIcon && innerErrorIcon && innerErrorIconSide === 'right' && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4973
|
+
alt: "error icon",
|
|
4974
|
+
src: innerErrorIcon,
|
|
4975
|
+
style: {
|
|
4976
|
+
width: '14px',
|
|
4977
|
+
height: '14px',
|
|
4978
|
+
cursor: errorAction ? 'pointer' : 'normal',
|
|
4979
|
+
marginLeft: errorIconMargin ?? configStyles.INPUT.error.iconMargin
|
|
4980
|
+
},
|
|
4981
|
+
onClick: errorAction ? () => errorAction() : _ => _
|
|
4982
|
+
})) : '');
|
|
4804
4983
|
};
|
|
4805
4984
|
Input.propTypes = {
|
|
4806
4985
|
size: PropTypes__default["default"].string,
|
|
@@ -4809,7 +4988,6 @@ Input.propTypes = {
|
|
|
4809
4988
|
style: PropTypes__default["default"].string,
|
|
4810
4989
|
color: PropTypes__default["default"].string,
|
|
4811
4990
|
width: PropTypes__default["default"].string,
|
|
4812
|
-
label: PropTypes__default["default"].string,
|
|
4813
4991
|
withZero: PropTypes__default["default"].bool,
|
|
4814
4992
|
weight: PropTypes__default["default"].string,
|
|
4815
4993
|
family: PropTypes__default["default"].string,
|
|
@@ -4818,45 +4996,56 @@ Input.propTypes = {
|
|
|
4818
4996
|
height: PropTypes__default["default"].string,
|
|
4819
4997
|
radius: PropTypes__default["default"].string,
|
|
4820
4998
|
padding: PropTypes__default["default"].string,
|
|
4821
|
-
labelDots: PropTypes__default["default"].bool,
|
|
4822
4999
|
tooltip: PropTypes__default["default"].element,
|
|
4823
5000
|
withoutDot: PropTypes__default["default"].bool,
|
|
4824
5001
|
className: PropTypes__default["default"].string,
|
|
4825
5002
|
iconWidth: PropTypes__default["default"].string,
|
|
4826
|
-
boxSizing: PropTypes__default["default"].string,
|
|
4827
|
-
boxShadow: PropTypes__default["default"].string,
|
|
4828
|
-
errorSize: PropTypes__default["default"].string,
|
|
4829
|
-
errorLeft: PropTypes__default["default"].string,
|
|
4830
|
-
labelSize: PropTypes__default["default"].string,
|
|
4831
5003
|
maxLength: PropTypes__default["default"].number,
|
|
4832
5004
|
floatToFix: PropTypes__default["default"].number,
|
|
4833
5005
|
minNumSize: PropTypes__default["default"].number,
|
|
4834
5006
|
maxNumSize: PropTypes__default["default"].number,
|
|
4835
|
-
|
|
5007
|
+
label: PropTypes__default["default"].string,
|
|
5008
|
+
labelDots: PropTypes__default["default"].bool,
|
|
5009
|
+
labelAction: PropTypes__default["default"].func,
|
|
5010
|
+
labelIcon: PropTypes__default["default"].string,
|
|
5011
|
+
labelSize: PropTypes__default["default"].string,
|
|
4836
5012
|
labelColor: PropTypes__default["default"].string,
|
|
4837
5013
|
labelStyle: PropTypes__default["default"].string,
|
|
5014
|
+
showLabelIcon: PropTypes__default["default"].bool,
|
|
5015
|
+
labelWeight: PropTypes__default["default"].string,
|
|
5016
|
+
labelDisplay: PropTypes__default["default"].string,
|
|
5017
|
+
labelIconSide: PropTypes__default["default"].oneOf(Object.values(IconSides)),
|
|
5018
|
+
labelLineHeight: PropTypes__default["default"].string,
|
|
5019
|
+
labelFontFamily: PropTypes__default["default"].string,
|
|
5020
|
+
labelIconMargin: PropTypes__default["default"].string,
|
|
5021
|
+
labelMarginBottom: PropTypes__default["default"].string,
|
|
5022
|
+
borderRight: PropTypes__default["default"].string,
|
|
5023
|
+
placeholder: PropTypes__default["default"].string,
|
|
5024
|
+
phoneDisplay: PropTypes__default["default"].string,
|
|
5025
|
+
autoComplete: PropTypes__default["default"].string,
|
|
5026
|
+
errorDots: PropTypes__default["default"].bool,
|
|
5027
|
+
errorLeft: PropTypes__default["default"].string,
|
|
5028
|
+
errorSize: PropTypes__default["default"].string,
|
|
5029
|
+
errorIcon: PropTypes__default["default"].string,
|
|
5030
|
+
errorAction: PropTypes__default["default"].func,
|
|
5031
|
+
errorColor: PropTypes__default["default"].string,
|
|
4838
5032
|
errorStyle: PropTypes__default["default"].string,
|
|
5033
|
+
showErrorIcon: PropTypes__default["default"].bool,
|
|
4839
5034
|
errorWeight: PropTypes__default["default"].string,
|
|
4840
5035
|
errorFamily: PropTypes__default["default"].string,
|
|
4841
|
-
borderRight: PropTypes__default["default"].string,
|
|
4842
|
-
placeholder: PropTypes__default["default"].string,
|
|
4843
5036
|
errorZindex: PropTypes__default["default"].string,
|
|
4844
|
-
|
|
5037
|
+
errorIconSide: PropTypes__default["default"].oneOf(Object.values(IconSides)),
|
|
4845
5038
|
errorMessage: PropTypes__default["default"].string,
|
|
4846
|
-
phoneDisplay: PropTypes__default["default"].string,
|
|
4847
|
-
autoComplete: PropTypes__default["default"].string,
|
|
4848
|
-
labelDisplay: PropTypes__default["default"].string,
|
|
4849
5039
|
errorPosition: PropTypes__default["default"].string,
|
|
4850
5040
|
errorMarginTop: PropTypes__default["default"].string,
|
|
4851
|
-
boxShadowHover: PropTypes__default["default"].string,
|
|
4852
5041
|
errorClassName: PropTypes__default["default"].string,
|
|
4853
|
-
|
|
4854
|
-
backgroundColor: PropTypes__default["default"].string,
|
|
4855
|
-
phoneAlignItems: PropTypes__default["default"].string,
|
|
5042
|
+
errorIconMargin: PropTypes__default["default"].string,
|
|
4856
5043
|
errorLineHeight: PropTypes__default["default"].string,
|
|
4857
|
-
|
|
5044
|
+
boxSizing: PropTypes__default["default"].string,
|
|
5045
|
+
boxShadow: PropTypes__default["default"].string,
|
|
5046
|
+
boxShadowHover: PropTypes__default["default"].string,
|
|
5047
|
+
phoneAlignItems: PropTypes__default["default"].string,
|
|
4858
5048
|
numberMaxLength: PropTypes__default["default"].number,
|
|
4859
|
-
labelMarginBottom: PropTypes__default["default"].string,
|
|
4860
5049
|
regexpErrorMessage: PropTypes__default["default"].string,
|
|
4861
5050
|
regexp: PropTypes__default["default"].instanceOf(RegExp),
|
|
4862
5051
|
fireInputInsideError: PropTypes__default["default"].func,
|
|
@@ -4864,6 +5053,7 @@ Input.propTypes = {
|
|
|
4864
5053
|
telBorderRightStyle: PropTypes__default["default"].string,
|
|
4865
5054
|
telBorderRightColor: PropTypes__default["default"].string,
|
|
4866
5055
|
phoneJustifyContent: PropTypes__default["default"].string,
|
|
5056
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
4867
5057
|
backgroundDisableColor: PropTypes__default["default"].string,
|
|
4868
5058
|
telBorderRightColorHover: PropTypes__default["default"].string,
|
|
4869
5059
|
leftIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
|
|
@@ -5087,9 +5277,9 @@ const SvgArrow = ({
|
|
|
5087
5277
|
fill: fillColor ? fillColor : '#3C393E'
|
|
5088
5278
|
}));
|
|
5089
5279
|
|
|
5090
|
-
var css_248z$
|
|
5091
|
-
var styles$
|
|
5092
|
-
styleInject(css_248z$
|
|
5280
|
+
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;justify-content:space-between}.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;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
5281
|
+
var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L","ellipsis":"select-module_ellipsis__uNgol"};
|
|
5282
|
+
styleInject(css_248z$8);
|
|
5093
5283
|
|
|
5094
5284
|
const Select = ({
|
|
5095
5285
|
dots,
|
|
@@ -5301,7 +5491,7 @@ const Select = ({
|
|
|
5301
5491
|
}, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5302
5492
|
ref: ref
|
|
5303
5493
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5304
|
-
className: styles$
|
|
5494
|
+
className: styles$7['select-content']
|
|
5305
5495
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5306
5496
|
style: {
|
|
5307
5497
|
cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
|
|
@@ -5321,9 +5511,9 @@ const Select = ({
|
|
|
5321
5511
|
onClick: disabled ? _ => _ : () => handleOpenClose(),
|
|
5322
5512
|
onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
|
|
5323
5513
|
onMouseLeave: disabled ? _ => _ : () => handleMouseLeave(),
|
|
5324
|
-
className: `${styles$
|
|
5514
|
+
className: `${styles$7['select-content-top']}`
|
|
5325
5515
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5326
|
-
className: `${styles$
|
|
5516
|
+
className: `${styles$7['select-content-top-text']}`,
|
|
5327
5517
|
style: {
|
|
5328
5518
|
whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
|
|
5329
5519
|
overflow: 'hidden',
|
|
@@ -5339,9 +5529,9 @@ const Select = ({
|
|
|
5339
5529
|
}
|
|
5340
5530
|
}
|
|
5341
5531
|
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5342
|
-
className: `${styles$
|
|
5532
|
+
className: `${styles$7['select-content-top-icon']}`
|
|
5343
5533
|
}, !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", {
|
|
5344
|
-
className: `${styles$
|
|
5534
|
+
className: `${styles$7['close-icon']}`,
|
|
5345
5535
|
onClick: disabled ? _ => _ : handleClearSelect,
|
|
5346
5536
|
style: {
|
|
5347
5537
|
marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
|
|
@@ -5350,7 +5540,7 @@ const Select = ({
|
|
|
5350
5540
|
style: {
|
|
5351
5541
|
transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
5352
5542
|
},
|
|
5353
|
-
className: `${styles$
|
|
5543
|
+
className: `${styles$7['arrow-icon']}`
|
|
5354
5544
|
}, 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", {
|
|
5355
5545
|
style: {
|
|
5356
5546
|
boxShadow: optionsBoxShadow ?? configStyles.SELECT.options.box.shadow,
|
|
@@ -5358,9 +5548,9 @@ const Select = ({
|
|
|
5358
5548
|
backgroundColor: optionsBackgroundColor ?? configStyles.SELECT.options.colors.background,
|
|
5359
5549
|
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'
|
|
5360
5550
|
},
|
|
5361
|
-
className: `${styles$
|
|
5551
|
+
className: `${styles$7['select-content-bottom']}`
|
|
5362
5552
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5363
|
-
className: `${styles$
|
|
5553
|
+
className: `${styles$7['select-content-bottom-inner']}`
|
|
5364
5554
|
}, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
|
|
5365
5555
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5366
5556
|
key: i,
|
|
@@ -5369,7 +5559,7 @@ const Select = ({
|
|
|
5369
5559
|
onClick: disabled ? _ => _ : () => handleSelectItem(option),
|
|
5370
5560
|
onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
|
|
5371
5561
|
onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
|
|
5372
|
-
className: `${styles$
|
|
5562
|
+
className: `${styles$7['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$7['ellipsis'] : ''}`,
|
|
5373
5563
|
style: {
|
|
5374
5564
|
overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
|
|
5375
5565
|
color: optionItemColor ?? configStyles.SELECT.options.item.color,
|
|
@@ -5582,11 +5772,10 @@ const SvgToasterSuccess = ({
|
|
|
5582
5772
|
fill: fillColor ? fillColor : '#0DA574'
|
|
5583
5773
|
}));
|
|
5584
5774
|
|
|
5585
|
-
var css_248z$
|
|
5586
|
-
var styles$
|
|
5587
|
-
styleInject(css_248z$
|
|
5775
|
+
var css_248z$7 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceInLeftMobile__CA2dc{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:0}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}@media(max-width:480px){.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeftMobile__CA2dc;animation-name:toaster-module_bounceInLeftMobile__CA2dc}}";
|
|
5776
|
+
var styles$6 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","notify-title":"toaster-module_notify-title__8lFLy","notify-desc":"toaster-module_notify-desc__bcWe2","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO","bounceInLeftMobile":"toaster-module_bounceInLeftMobile__CA2dc"};
|
|
5777
|
+
styleInject(css_248z$7);
|
|
5588
5778
|
|
|
5589
|
-
let wWidth$1 = window.innerWidth;
|
|
5590
5779
|
const ToasterType = {
|
|
5591
5780
|
info: 'info',
|
|
5592
5781
|
warn: 'warn',
|
|
@@ -5603,16 +5792,21 @@ const ToasterPosition = {
|
|
|
5603
5792
|
};
|
|
5604
5793
|
const Toast = ({
|
|
5605
5794
|
type,
|
|
5606
|
-
|
|
5607
|
-
|
|
5795
|
+
icons,
|
|
5796
|
+
title,
|
|
5797
|
+
timer,
|
|
5798
|
+
propStyles,
|
|
5608
5799
|
removeToast,
|
|
5609
5800
|
description,
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5801
|
+
titleStyles,
|
|
5802
|
+
descriptionStyles,
|
|
5803
|
+
position = 'top-right'
|
|
5613
5804
|
}) => {
|
|
5614
5805
|
let timeoutCall;
|
|
5615
5806
|
let timeoutClick;
|
|
5807
|
+
const firstCheck = propStyles.height.replace(/\D/g, '') - 28 < 30 ? 30 : propStyles.height.replace(/\D/g, '') - 28;
|
|
5808
|
+
const secondCheck = propStyles.height.replace(/\D/g, '') - 65 < 18 ? 18 : propStyles.height.replace(/\D/g, '') - 65;
|
|
5809
|
+
const finalCheck = firstCheck + secondCheck + 'px';
|
|
5616
5810
|
const ref = React.useRef(null);
|
|
5617
5811
|
const [showToaster, setShowToaster] = React.useState(true);
|
|
5618
5812
|
const handleToasterClick = e => {
|
|
@@ -5641,63 +5835,111 @@ const Toast = ({
|
|
|
5641
5835
|
style: {
|
|
5642
5836
|
position: 'absolute',
|
|
5643
5837
|
display: 'flex',
|
|
5644
|
-
width: wWidth$1 > 480 ? '440px' : '300px',
|
|
5645
|
-
height: '83px',
|
|
5646
|
-
borderRadius: '40px',
|
|
5647
5838
|
alignItems: 'center',
|
|
5648
5839
|
boxSizing: 'border-box',
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
padding: '14px 29px 14px 12px',
|
|
5652
|
-
justifyContent: 'space-between'
|
|
5840
|
+
justifyContent: 'space-between',
|
|
5841
|
+
...propStyles
|
|
5653
5842
|
},
|
|
5654
5843
|
className: `
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5844
|
+
${styles$6['notify-block']}
|
|
5845
|
+
${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'] : ''}
|
|
5846
|
+
`
|
|
5658
5847
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5659
5848
|
style: {
|
|
5660
5849
|
display: 'flex',
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5850
|
+
height: `calc(${propStyles.height} - 28px)`,
|
|
5851
|
+
width: `calc(${propStyles.height} - 28px)`,
|
|
5852
|
+
minWidth: '30px',
|
|
5853
|
+
minHeight: '30px',
|
|
5854
|
+
borderRadius: '50%',
|
|
5664
5855
|
alignItems: 'center',
|
|
5665
5856
|
justifyContent: 'center'
|
|
5666
5857
|
}
|
|
5667
|
-
}, type === 'info' ?
|
|
5858
|
+
}, type === 'info' ? icons.info ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5859
|
+
src: icons.info,
|
|
5860
|
+
alt: "icons",
|
|
5668
5861
|
style: {
|
|
5862
|
+
width: '100%',
|
|
5669
5863
|
height: '100%',
|
|
5670
|
-
|
|
5864
|
+
objectFit: 'cover',
|
|
5865
|
+
objectPosition: 'center'
|
|
5671
5866
|
}
|
|
5672
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
5867
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterInfo, null) : type === 'warn' ? icons.warn ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5868
|
+
src: icons.warn,
|
|
5869
|
+
alt: "icons",
|
|
5870
|
+
style: {
|
|
5871
|
+
width: '100%',
|
|
5872
|
+
height: '100%',
|
|
5873
|
+
objectFit: 'cover',
|
|
5874
|
+
objectPosition: 'center'
|
|
5875
|
+
}
|
|
5876
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterWarning, null) : type === 'error' ? icons.error ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5877
|
+
src: icons.error,
|
|
5878
|
+
alt: "icons",
|
|
5879
|
+
style: {
|
|
5880
|
+
width: '100%',
|
|
5881
|
+
height: '100%',
|
|
5882
|
+
objectFit: 'cover',
|
|
5883
|
+
objectPosition: 'center'
|
|
5884
|
+
}
|
|
5885
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterError, null) : type === 'success' ? icons.success ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5886
|
+
src: icons.success,
|
|
5887
|
+
alt: "icons",
|
|
5888
|
+
style: {
|
|
5889
|
+
width: '100%',
|
|
5890
|
+
height: '100%',
|
|
5891
|
+
objectFit: 'cover',
|
|
5892
|
+
objectPosition: 'center'
|
|
5893
|
+
}
|
|
5894
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterSuccess, null) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5895
|
+
style: {
|
|
5896
|
+
height: '100%',
|
|
5897
|
+
width: `calc(100% - ${finalCheck})`,
|
|
5898
|
+
minWidth: '50%',
|
|
5899
|
+
maxWidth: 'calc(100% - 90px)'
|
|
5900
|
+
}
|
|
5901
|
+
}, title && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5673
5902
|
style: {
|
|
5674
5903
|
margin: '0px',
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
lineHeight:
|
|
5679
|
-
|
|
5904
|
+
color: titleStyles.color,
|
|
5905
|
+
fontSize: titleStyles.font.size,
|
|
5906
|
+
fontStyle: titleStyles.font.style,
|
|
5907
|
+
lineHeight: titleStyles.lineHeight,
|
|
5908
|
+
fontWeight: titleStyles.font.weight,
|
|
5909
|
+
fontFamily: titleStyles.font.family,
|
|
5910
|
+
...titleStyles.props
|
|
5680
5911
|
},
|
|
5681
|
-
className: styles$
|
|
5682
|
-
}, title
|
|
5912
|
+
className: styles$6['notify-title']
|
|
5913
|
+
}, title), description && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5683
5914
|
style: {
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
lineHeight:
|
|
5688
|
-
|
|
5689
|
-
fontFamily:
|
|
5690
|
-
|
|
5915
|
+
color: descriptionStyles.color,
|
|
5916
|
+
fontSize: descriptionStyles.font.size,
|
|
5917
|
+
fontStyle: descriptionStyles.font.style,
|
|
5918
|
+
lineHeight: descriptionStyles.lineHeight,
|
|
5919
|
+
fontWeight: descriptionStyles.font.weight,
|
|
5920
|
+
fontFamily: descriptionStyles.font.family,
|
|
5921
|
+
...descriptionStyles.props
|
|
5691
5922
|
},
|
|
5692
|
-
className: styles$
|
|
5693
|
-
}, description
|
|
5923
|
+
className: styles$6['notify-desc']
|
|
5924
|
+
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5694
5925
|
onClick: () => handleCloseToaster(ref),
|
|
5695
5926
|
style: {
|
|
5696
|
-
width:
|
|
5697
|
-
height:
|
|
5927
|
+
width: `calc(${propStyles.height} - 65px)`,
|
|
5928
|
+
height: `calc(${propStyles.height} - 65px)`,
|
|
5929
|
+
minWidth: '18px',
|
|
5930
|
+
minHeight: '18px',
|
|
5698
5931
|
cursor: 'pointer'
|
|
5699
5932
|
}
|
|
5700
|
-
},
|
|
5933
|
+
}, icons.close ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
5934
|
+
src: icons.close,
|
|
5935
|
+
alt: "icons",
|
|
5936
|
+
style: {
|
|
5937
|
+
width: '100%',
|
|
5938
|
+
height: '100%',
|
|
5939
|
+
objectFit: 'cover',
|
|
5940
|
+
objectPosition: 'center'
|
|
5941
|
+
}
|
|
5942
|
+
}) : /*#__PURE__*/React__default["default"].createElement(SvgToasterClose, null)));
|
|
5701
5943
|
};
|
|
5702
5944
|
Toast.propTypes = {
|
|
5703
5945
|
timer: PropTypes__default["default"].number,
|
|
@@ -5710,7 +5952,6 @@ Toast.propTypes = {
|
|
|
5710
5952
|
|
|
5711
5953
|
let toastify = document.getElementById('toastify');
|
|
5712
5954
|
let path = window.location.href;
|
|
5713
|
-
let wWidth = window.innerWidth;
|
|
5714
5955
|
const removeToast = ref => {
|
|
5715
5956
|
if (ref.current) {
|
|
5716
5957
|
const node = ref.current;
|
|
@@ -5726,15 +5967,66 @@ const removeToast = ref => {
|
|
|
5726
5967
|
}
|
|
5727
5968
|
}
|
|
5728
5969
|
};
|
|
5970
|
+
const createElem$1 = (type, timer, title, position, styleProps, toastBlock, description, innerConfigStyles) => {
|
|
5971
|
+
const projectTitleStyle = styleProps?.title;
|
|
5972
|
+
const packageTitleStyle = innerConfigStyles?.TOASTER?.title;
|
|
5973
|
+
const compareTitleStyles = ___default["default"].merge({
|
|
5974
|
+
...packageTitleStyle
|
|
5975
|
+
}, {
|
|
5976
|
+
...projectTitleStyle
|
|
5977
|
+
});
|
|
5978
|
+
const projectDescStyle = styleProps?.description;
|
|
5979
|
+
const packageDescStyle = innerConfigStyles?.TOASTER?.description;
|
|
5980
|
+
const compareDescStyles = ___default["default"].merge({
|
|
5981
|
+
...packageDescStyle
|
|
5982
|
+
}, {
|
|
5983
|
+
...projectDescStyle
|
|
5984
|
+
});
|
|
5985
|
+
const projectIcons = styleProps?.icons;
|
|
5986
|
+
const packageIcons = innerConfigStyles?.TOASTER?.icons;
|
|
5987
|
+
const icons = ___default["default"].merge({
|
|
5988
|
+
...packageIcons
|
|
5989
|
+
}, {
|
|
5990
|
+
...projectIcons
|
|
5991
|
+
});
|
|
5992
|
+
toastBlock.style.position = 'relative';
|
|
5993
|
+
toastBlock.style.flexShrink = 0;
|
|
5994
|
+
toastBlock.style.width = styleProps?.width ?? innerConfigStyles?.TOASTER?.width;
|
|
5995
|
+
toastBlock.style.height = styleProps?.height ?? innerConfigStyles?.TOASTER?.height;
|
|
5996
|
+
toastBlock.style.marginBottom = styleProps?.marginBottom ?? innerConfigStyles?.TOASTER?.marginBottom;
|
|
5997
|
+
const newElem = /*#__PURE__*/React__default["default"].createElement(Toast, {
|
|
5998
|
+
type,
|
|
5999
|
+
icons,
|
|
6000
|
+
timer,
|
|
6001
|
+
title,
|
|
6002
|
+
position,
|
|
6003
|
+
description,
|
|
6004
|
+
removeToast,
|
|
6005
|
+
propStyles: {
|
|
6006
|
+
width: styleProps?.width ?? innerConfigStyles?.TOASTER?.width,
|
|
6007
|
+
height: styleProps?.height ?? innerConfigStyles?.TOASTER?.height,
|
|
6008
|
+
padding: styleProps?.padding ?? innerConfigStyles?.TOASTER?.padding,
|
|
6009
|
+
borderWidth: styleProps?.borderWidth ?? innerConfigStyles?.TOASTER?.border.width,
|
|
6010
|
+
borderColor: styleProps?.borderColor ?? innerConfigStyles?.TOASTER?.border.color,
|
|
6011
|
+
borderStyle: styleProps?.borderStyle ?? innerConfigStyles?.TOASTER?.border.style,
|
|
6012
|
+
borderRadius: styleProps?.borderRadius ?? innerConfigStyles?.TOASTER?.border.radius,
|
|
6013
|
+
backgroundColor: styleProps?.backgroundColor ?? innerConfigStyles?.TOASTER?.backgroundColor
|
|
6014
|
+
},
|
|
6015
|
+
titleStyles: compareTitleStyles,
|
|
6016
|
+
descriptionStyles: compareDescStyles
|
|
6017
|
+
});
|
|
6018
|
+
const root = ReactDOM__default["default"].createRoot(toastBlock);
|
|
6019
|
+
root.render(newElem);
|
|
6020
|
+
};
|
|
5729
6021
|
const createToast = ({
|
|
5730
6022
|
type,
|
|
5731
|
-
icon,
|
|
5732
6023
|
timer,
|
|
5733
6024
|
title,
|
|
5734
6025
|
position,
|
|
5735
|
-
|
|
6026
|
+
styleProps,
|
|
5736
6027
|
description
|
|
5737
6028
|
}) => {
|
|
6029
|
+
let innerConfigStyles = {};
|
|
5738
6030
|
let toastParentBlock;
|
|
5739
6031
|
if (!toastify) {
|
|
5740
6032
|
toastify = document.createElement('div');
|
|
@@ -5742,42 +6034,33 @@ const createToast = ({
|
|
|
5742
6034
|
document.body.appendChild(toastify);
|
|
5743
6035
|
}
|
|
5744
6036
|
const toastBlock = document.createElement('div');
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
icon,
|
|
5753
|
-
timer,
|
|
5754
|
-
title,
|
|
5755
|
-
position,
|
|
5756
|
-
iconClose,
|
|
5757
|
-
description,
|
|
5758
|
-
removeToast
|
|
6037
|
+
configStylesPromise.then(data => {
|
|
6038
|
+
innerConfigStyles = {
|
|
6039
|
+
...data
|
|
6040
|
+
};
|
|
6041
|
+
createElem$1(type, timer, title, position, styleProps, toastBlock, description, innerConfigStyles);
|
|
6042
|
+
}, error => {
|
|
6043
|
+
console.error(error);
|
|
5759
6044
|
});
|
|
5760
|
-
|
|
5761
|
-
root.render(newElem);
|
|
5762
|
-
if (!document.getElementById(styles$5[position]) || document.getElementById(styles$5[position]) == null) {
|
|
6045
|
+
if (!document.getElementById(styles$6[position]) || document.getElementById(styles$6[position]) == null) {
|
|
5763
6046
|
toastParentBlock = document.createElement('div');
|
|
5764
6047
|
toastParentBlock.style.position = 'fixed';
|
|
5765
6048
|
toastParentBlock.style.display = 'flex';
|
|
5766
6049
|
toastParentBlock.style.zIndex = 999999999999;
|
|
5767
6050
|
toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
|
|
5768
|
-
toastParentBlock.setAttribute('id', styles$
|
|
6051
|
+
toastParentBlock.setAttribute('id', styles$6[position]);
|
|
5769
6052
|
toastParentBlock.appendChild(toastBlock);
|
|
5770
6053
|
toastify.appendChild(toastParentBlock);
|
|
5771
6054
|
} else {
|
|
5772
|
-
document.getElementById(styles$
|
|
6055
|
+
document.getElementById(styles$6[position]).appendChild(toastBlock);
|
|
5773
6056
|
}
|
|
5774
6057
|
};
|
|
5775
6058
|
const toast = {
|
|
5776
6059
|
success: (title, props) => {
|
|
5777
|
-
// const { icon, timer, position, iconClose, description } = props || {}
|
|
5778
6060
|
const {
|
|
5779
6061
|
timer,
|
|
5780
6062
|
position,
|
|
6063
|
+
styleProps,
|
|
5781
6064
|
description
|
|
5782
6065
|
} = props || {};
|
|
5783
6066
|
createToast({
|
|
@@ -5785,16 +6068,15 @@ const toast = {
|
|
|
5785
6068
|
type: 'success',
|
|
5786
6069
|
timer: timer ?? 5000,
|
|
5787
6070
|
position: position ?? 'top-right',
|
|
5788
|
-
description: description ?? ''
|
|
5789
|
-
|
|
5790
|
-
// iconClose: iconClose ?? configStyles.TOASTER.icon.close,
|
|
6071
|
+
description: description ?? '',
|
|
6072
|
+
styleProps: styleProps
|
|
5791
6073
|
});
|
|
5792
6074
|
},
|
|
5793
6075
|
info: (title, props) => {
|
|
5794
|
-
// const { icon, timer, position, iconClose, description } = props || {}
|
|
5795
6076
|
const {
|
|
5796
6077
|
timer,
|
|
5797
6078
|
position,
|
|
6079
|
+
styleProps,
|
|
5798
6080
|
description
|
|
5799
6081
|
} = props || {};
|
|
5800
6082
|
createToast({
|
|
@@ -5802,16 +6084,15 @@ const toast = {
|
|
|
5802
6084
|
type: 'info',
|
|
5803
6085
|
timer: timer ?? 5000,
|
|
5804
6086
|
position: position ?? 'top-right',
|
|
5805
|
-
description: description ?? ''
|
|
5806
|
-
|
|
5807
|
-
// iconClose: iconClose ?? configStyles.TOASTER.icon.close,
|
|
6087
|
+
description: description ?? '',
|
|
6088
|
+
styleProps: styleProps
|
|
5808
6089
|
});
|
|
5809
6090
|
},
|
|
5810
6091
|
warn: (title, props) => {
|
|
5811
|
-
// const { icon, timer, position, iconClose, description } = props || {}
|
|
5812
6092
|
const {
|
|
5813
6093
|
timer,
|
|
5814
6094
|
position,
|
|
6095
|
+
styleProps,
|
|
5815
6096
|
description
|
|
5816
6097
|
} = props || {};
|
|
5817
6098
|
createToast({
|
|
@@ -5819,16 +6100,15 @@ const toast = {
|
|
|
5819
6100
|
type: 'warn',
|
|
5820
6101
|
timer: timer ?? 5000,
|
|
5821
6102
|
position: position ?? 'top-right',
|
|
5822
|
-
description: description ?? ''
|
|
5823
|
-
|
|
5824
|
-
// iconClose: iconClose ?? configStyles.TOASTER.icon.close,
|
|
6103
|
+
description: description ?? '',
|
|
6104
|
+
styleProps: styleProps
|
|
5825
6105
|
});
|
|
5826
6106
|
},
|
|
5827
6107
|
error: (title, props) => {
|
|
5828
|
-
// const { icon, timer, position, iconClose, description } = props || {}
|
|
5829
6108
|
const {
|
|
5830
6109
|
timer,
|
|
5831
6110
|
position,
|
|
6111
|
+
styleProps,
|
|
5832
6112
|
description
|
|
5833
6113
|
} = props || {};
|
|
5834
6114
|
createToast({
|
|
@@ -5836,16 +6116,12 @@ const toast = {
|
|
|
5836
6116
|
type: 'error',
|
|
5837
6117
|
timer: timer ?? 5000,
|
|
5838
6118
|
position: position ?? 'top-right',
|
|
5839
|
-
description: description ?? ''
|
|
5840
|
-
|
|
5841
|
-
// iconClose: iconClose ?? configStyles.TOASTER.icon.close,
|
|
6119
|
+
description: description ?? '',
|
|
6120
|
+
styleProps: styleProps
|
|
5842
6121
|
});
|
|
5843
6122
|
}
|
|
5844
6123
|
};
|
|
5845
|
-
const Toaster = ({
|
|
5846
|
-
className
|
|
5847
|
-
}) => {
|
|
5848
|
-
const [classProps, setClassProps] = React.useState('');
|
|
6124
|
+
const Toaster = () => {
|
|
5849
6125
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
5850
6126
|
window.addEventListener('popstate', () => {
|
|
5851
6127
|
if (path !== window.location.href) {
|
|
@@ -5862,12 +6138,8 @@ const Toaster = ({
|
|
|
5862
6138
|
const handleToasterClick = e => {
|
|
5863
6139
|
e.stopPropagation();
|
|
5864
6140
|
};
|
|
5865
|
-
React.useEffect(() => {
|
|
5866
|
-
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TOASTER.className));
|
|
5867
|
-
}, [className]);
|
|
5868
6141
|
React.useEffect(() => {
|
|
5869
6142
|
configStylesPromise.then(data => {
|
|
5870
|
-
setClassProps(() => classnames__default["default"](className ?? data.TOASTER.className));
|
|
5871
6143
|
setConfigStyles(() => {
|
|
5872
6144
|
return {
|
|
5873
6145
|
...data
|
|
@@ -5879,7 +6151,6 @@ const Toaster = ({
|
|
|
5879
6151
|
}, []);
|
|
5880
6152
|
return configStyles.TOASTER && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5881
6153
|
onClick: handleToasterClick,
|
|
5882
|
-
className: classProps,
|
|
5883
6154
|
id: "toastify"
|
|
5884
6155
|
});
|
|
5885
6156
|
};
|
|
@@ -5903,10 +6174,24 @@ const SvgTooltip = ({
|
|
|
5903
6174
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
5904
6175
|
}));
|
|
5905
6176
|
|
|
5906
|
-
var css_248z$
|
|
5907
|
-
var styles$
|
|
5908
|
-
styleInject(css_248z$
|
|
6177
|
+
var css_248z$6 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{box-sizing:border-box;padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
|
|
6178
|
+
var styles$5 = {"tooltip-block":"tooltip-module_tooltip-block__v8U9u","tooltip":"tooltip-module_tooltip__emM6A","tooltip-rel":"tooltip-module_tooltip-rel__to9gq","tooltip-decor":"tooltip-module_tooltip-decor__qvt7t"};
|
|
6179
|
+
styleInject(css_248z$6);
|
|
5909
6180
|
|
|
6181
|
+
const TooltipDirections = {
|
|
6182
|
+
TOP: 'top',
|
|
6183
|
+
TOP_LEFT: 'top-left',
|
|
6184
|
+
TOP_RIGHT: 'top-right',
|
|
6185
|
+
LEFT: 'left',
|
|
6186
|
+
LEFT_TOP: 'left-top',
|
|
6187
|
+
LEFT_BOTTOM: 'left-bottom',
|
|
6188
|
+
RIGHT: 'right',
|
|
6189
|
+
RIGHT_TOP: 'right-top',
|
|
6190
|
+
RIGHT_BOTTOM: 'right-bottom',
|
|
6191
|
+
BOTTOM: 'bottom',
|
|
6192
|
+
BOTTOM_TOP: 'bottom-left',
|
|
6193
|
+
BOTTOM_BOTTOM: 'bottom-right'
|
|
6194
|
+
};
|
|
5910
6195
|
const Tooltip = ({
|
|
5911
6196
|
text,
|
|
5912
6197
|
width,
|
|
@@ -5914,6 +6199,7 @@ const Tooltip = ({
|
|
|
5914
6199
|
height,
|
|
5915
6200
|
radius,
|
|
5916
6201
|
fontSize,
|
|
6202
|
+
hoverOpen,
|
|
5917
6203
|
className,
|
|
5918
6204
|
fontStyle,
|
|
5919
6205
|
fontFamily,
|
|
@@ -5923,16 +6209,28 @@ const Tooltip = ({
|
|
|
5923
6209
|
tooltipRadius,
|
|
5924
6210
|
backgroundColor,
|
|
5925
6211
|
tooltipBackgroundColor,
|
|
5926
|
-
|
|
6212
|
+
direction = 'top'
|
|
5927
6213
|
}) => {
|
|
5928
6214
|
const tooltipRef = /*#__PURE__*/React.createRef(null);
|
|
6215
|
+
const iconBlockRef = /*#__PURE__*/React.createRef(null);
|
|
6216
|
+
const tooltipIconParentRef = /*#__PURE__*/React.createRef(null);
|
|
5929
6217
|
const [classProps, setClassProps] = React.useState({});
|
|
5930
6218
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
5931
6219
|
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
5932
6220
|
const [checkTooltipWidth, setCheckTooltipWidth] = React.useState(0);
|
|
5933
6221
|
const [checkTooltipHeight, setCheckTooltipHeight] = React.useState(0);
|
|
6222
|
+
const [tooltipIconBlockWidth, setTooltipIconBlockWidth] = React.useState(0);
|
|
6223
|
+
const [tooltipIconParentWidth, setTooltipIconParentWidth] = React.useState(0);
|
|
6224
|
+
const [tooltipIconBlockHeight, setTooltipIconBlockHeight] = React.useState(0);
|
|
6225
|
+
const [tooltipIconParentHeight, setTooltipIconParentHeight] = React.useState(0);
|
|
5934
6226
|
const handleShow = () => {
|
|
5935
|
-
setShowTooltip(!showTooltip);
|
|
6227
|
+
setShowTooltip(() => !showTooltip);
|
|
6228
|
+
};
|
|
6229
|
+
const handleMouseEnter = () => {
|
|
6230
|
+
setShowTooltip(() => true);
|
|
6231
|
+
};
|
|
6232
|
+
const handleMouseLeave = () => {
|
|
6233
|
+
setShowTooltip(() => false);
|
|
5936
6234
|
};
|
|
5937
6235
|
React.useEffect(() => {
|
|
5938
6236
|
if (!text) {
|
|
@@ -5941,12 +6239,32 @@ const Tooltip = ({
|
|
|
5941
6239
|
tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setCheckTooltipWidth(tooltipRef.current.clientWidth);
|
|
5942
6240
|
tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
|
|
5943
6241
|
}, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
|
|
6242
|
+
React.useEffect(() => {
|
|
6243
|
+
tooltipIconParentRef.current && tooltipIconParentRef.current.clientWidth && tooltipIconParentRef.current.clientWidth > 0 && setTooltipIconParentWidth(tooltipIconParentRef.current.clientWidth);
|
|
6244
|
+
tooltipIconParentRef.current && tooltipIconParentRef.current.clientHeight && tooltipIconParentRef.current.clientHeight > 0 && setTooltipIconParentHeight(tooltipIconParentRef.current.clientHeight);
|
|
6245
|
+
}, [tooltipIconParentRef, tooltipIconParentWidth, tooltipIconParentHeight]);
|
|
6246
|
+
React.useEffect(() => {
|
|
6247
|
+
iconBlockRef.current && iconBlockRef.current.clientWidth && iconBlockRef.current.clientWidth > 0 && setTooltipIconBlockWidth(iconBlockRef.current.clientWidth);
|
|
6248
|
+
iconBlockRef.current && iconBlockRef.current.clientHeight && iconBlockRef.current.clientHeight > 0 && setTooltipIconBlockHeight(iconBlockRef.current.clientHeight);
|
|
6249
|
+
}, [iconBlockRef, tooltipIconParentWidth, tooltipIconParentHeight]);
|
|
5944
6250
|
React.useEffect(() => {
|
|
5945
6251
|
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TOOLTIP.className));
|
|
5946
6252
|
}, [className]);
|
|
6253
|
+
React.useEffect(() => {
|
|
6254
|
+
document.addEventListener('click', () => {
|
|
6255
|
+
if (showTooltip) {
|
|
6256
|
+
handleShow();
|
|
6257
|
+
}
|
|
6258
|
+
}, false);
|
|
6259
|
+
return () => {
|
|
6260
|
+
document.removeEventListener('click', () => {
|
|
6261
|
+
handleShow();
|
|
6262
|
+
}, false);
|
|
6263
|
+
};
|
|
6264
|
+
}, [showTooltip]);
|
|
5947
6265
|
React.useEffect(() => {
|
|
5948
6266
|
configStylesPromise.then(data => {
|
|
5949
|
-
setClassProps(() => classnames__default["default"](styles$
|
|
6267
|
+
setClassProps(() => classnames__default["default"](styles$5['tooltip-block'], className ?? data.TOOLTIP.className));
|
|
5950
6268
|
setConfigStyles(() => {
|
|
5951
6269
|
return {
|
|
5952
6270
|
...data
|
|
@@ -5957,31 +6275,33 @@ const Tooltip = ({
|
|
|
5957
6275
|
});
|
|
5958
6276
|
}, []);
|
|
5959
6277
|
return configStyles.TOOLTIP && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6278
|
+
ref: tooltipIconParentRef,
|
|
5960
6279
|
className: classProps,
|
|
5961
6280
|
style: {
|
|
5962
6281
|
width: width ?? configStyles.TOOLTIP.parent.width,
|
|
5963
6282
|
height: height ?? configStyles.TOOLTIP.parent.height,
|
|
5964
6283
|
borderRadius: radius ?? configStyles.TOOLTIP.parent.radius,
|
|
5965
6284
|
backgroundColor: backgroundColor ?? configStyles.TOOLTIP.parent.colors.background
|
|
5966
|
-
}
|
|
6285
|
+
},
|
|
6286
|
+
onClick: e => e.stopPropagation()
|
|
5967
6287
|
}, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5968
6288
|
ref: tooltipRef,
|
|
5969
|
-
className: `${styles$
|
|
6289
|
+
className: `${styles$5['tooltip']}`,
|
|
5970
6290
|
style: {
|
|
5971
6291
|
width: tooltipWidth ?? configStyles.TOOLTIP.width,
|
|
5972
6292
|
borderRadius: tooltipRadius ?? configStyles.TOOLTIP.radius,
|
|
5973
6293
|
backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
|
|
5974
|
-
top:
|
|
5975
|
-
left:
|
|
6294
|
+
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',
|
|
6295
|
+
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'
|
|
5976
6296
|
}
|
|
5977
6297
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5978
|
-
className: `${styles$
|
|
6298
|
+
className: `${styles$5['tooltip-rel']}`
|
|
5979
6299
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5980
|
-
className: `${styles$
|
|
6300
|
+
className: `${styles$5['tooltip-decor']}`,
|
|
5981
6301
|
style: {
|
|
5982
6302
|
backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
|
|
5983
|
-
left:
|
|
5984
|
-
top:
|
|
6303
|
+
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',
|
|
6304
|
+
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'
|
|
5985
6305
|
}
|
|
5986
6306
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5987
6307
|
style: {
|
|
@@ -5992,18 +6312,22 @@ const Tooltip = ({
|
|
|
5992
6312
|
fontWeight: fontWeight ?? configStyles.TOOLTIP.font.weight
|
|
5993
6313
|
}
|
|
5994
6314
|
}, text))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6315
|
+
ref: iconBlockRef,
|
|
6316
|
+
onClick: hoverOpen ? _ => _ : handleShow,
|
|
5995
6317
|
style: {
|
|
6318
|
+
display: 'flex',
|
|
5996
6319
|
cursor: 'pointer'
|
|
5997
6320
|
},
|
|
5998
|
-
|
|
6321
|
+
onMouseEnter: hoverOpen ? handleMouseEnter : _ => _,
|
|
6322
|
+
onMouseLeave: hoverOpen ? handleMouseLeave : _ => _
|
|
5999
6323
|
}, tooltipIcon ? tooltipIcon : configStyles.TOOLTIP.icon ? configStyles.TOOLTIP.icon : /*#__PURE__*/React__default["default"].createElement(SvgTooltip, null)));
|
|
6000
6324
|
};
|
|
6001
6325
|
Tooltip.propTypes = {
|
|
6002
|
-
type: PropTypes__default["default"].string,
|
|
6003
6326
|
width: PropTypes__default["default"].string,
|
|
6004
6327
|
color: PropTypes__default["default"].string,
|
|
6005
6328
|
height: PropTypes__default["default"].string,
|
|
6006
6329
|
radius: PropTypes__default["default"].string,
|
|
6330
|
+
hoverOpen: PropTypes__default["default"].bool,
|
|
6007
6331
|
fontSize: PropTypes__default["default"].string,
|
|
6008
6332
|
fontStyle: PropTypes__default["default"].string,
|
|
6009
6333
|
className: PropTypes__default["default"].string,
|
|
@@ -6014,7 +6338,8 @@ Tooltip.propTypes = {
|
|
|
6014
6338
|
tooltipRadius: PropTypes__default["default"].string,
|
|
6015
6339
|
text: PropTypes__default["default"].string.isRequired,
|
|
6016
6340
|
backgroundColor: PropTypes__default["default"].string,
|
|
6017
|
-
tooltipBackgroundColor: PropTypes__default["default"].string
|
|
6341
|
+
tooltipBackgroundColor: PropTypes__default["default"].string,
|
|
6342
|
+
direction: PropTypes__default["default"].oneOf(Object.values(TooltipDirections))
|
|
6018
6343
|
};
|
|
6019
6344
|
|
|
6020
6345
|
const SvgCaptchaArrowUp = ({
|
|
@@ -6055,9 +6380,9 @@ const SvgCaptchaArrowDown = ({
|
|
|
6055
6380
|
fill: fillColor ? fillColor : '#00236A'
|
|
6056
6381
|
}));
|
|
6057
6382
|
|
|
6058
|
-
var css_248z$
|
|
6059
|
-
var styles$
|
|
6060
|
-
styleInject(css_248z$
|
|
6383
|
+
var css_248z$5 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
|
|
6384
|
+
var styles$4 = {"start-point":"captcha-module_start-point__LkOqy","range":"captcha-module_range__k24I2","range-default":"captcha-module_range-default__-O0QD","range-error":"captcha-module_range-error__FKMfG","range-success":"captcha-module_range-success__VzLPq"};
|
|
6385
|
+
styleInject(css_248z$5);
|
|
6061
6386
|
|
|
6062
6387
|
const Captcha = ({
|
|
6063
6388
|
color,
|
|
@@ -6145,7 +6470,7 @@ const Captcha = ({
|
|
|
6145
6470
|
alignItems: 'center',
|
|
6146
6471
|
zIndex: 1
|
|
6147
6472
|
},
|
|
6148
|
-
className: styles$
|
|
6473
|
+
className: styles$4['start-point']
|
|
6149
6474
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6150
6475
|
style: {
|
|
6151
6476
|
position: 'absolute',
|
|
@@ -6171,8 +6496,8 @@ const Captcha = ({
|
|
|
6171
6496
|
backgroundColor: 'transparent'
|
|
6172
6497
|
},
|
|
6173
6498
|
className: `
|
|
6174
|
-
${styles$
|
|
6175
|
-
${+rangeProgress === rangeNumber ? styles$
|
|
6499
|
+
${styles$4['range']}
|
|
6500
|
+
${+rangeProgress === rangeNumber ? styles$4['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$4['range-error'] : styles$4['range-default']}
|
|
6176
6501
|
`,
|
|
6177
6502
|
onInput: handleRange
|
|
6178
6503
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6202,9 +6527,9 @@ Captcha.propTypes = {
|
|
|
6202
6527
|
getRange: PropTypes__default["default"].func.isRequired
|
|
6203
6528
|
};
|
|
6204
6529
|
|
|
6205
|
-
var css_248z$
|
|
6206
|
-
var styles$
|
|
6207
|
-
styleInject(css_248z$
|
|
6530
|
+
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}";
|
|
6531
|
+
var styles$3 = {"stepper-container":"stepper-module_stepper-container__-OVGy","bigRing":"stepper-module_bigRing__5GBm0","activeRing":"stepper-module_activeRing__Lzvh1","smallRing":"stepper-module_smallRing__u-5a8","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
|
|
6532
|
+
styleInject(css_248z$4);
|
|
6208
6533
|
|
|
6209
6534
|
const Stepper = ({
|
|
6210
6535
|
stepLength,
|
|
@@ -6214,11 +6539,11 @@ const Stepper = ({
|
|
|
6214
6539
|
const [classProps, setClassProps] = React.useState({});
|
|
6215
6540
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
6216
6541
|
React.useEffect(() => {
|
|
6217
|
-
className && setClassProps(() => classnames__default["default"](className ?? configStyles.STEPPER.className, `${styles$
|
|
6542
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`));
|
|
6218
6543
|
}, [className]);
|
|
6219
6544
|
React.useEffect(() => {
|
|
6220
6545
|
configStylesPromise.then(data => {
|
|
6221
|
-
setClassProps(() => classnames__default["default"](className ?? data.STEPPER.className, `${styles$
|
|
6546
|
+
setClassProps(() => classnames__default["default"](className ?? data.STEPPER.className, `${styles$3['stepper-container']} stepper-container-rem`));
|
|
6222
6547
|
setConfigStyles(() => {
|
|
6223
6548
|
return {
|
|
6224
6549
|
...data
|
|
@@ -6234,10 +6559,10 @@ const Stepper = ({
|
|
|
6234
6559
|
let steppers = [];
|
|
6235
6560
|
for (let step = 1; step <= stepLength; step++) {
|
|
6236
6561
|
steppers.push( /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6237
|
-
className: classnames__default["default"](`${step <= activeSteps ? styles$
|
|
6562
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
|
|
6238
6563
|
key: step
|
|
6239
6564
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6240
|
-
className: classnames__default["default"](`${step <= activeSteps ? styles$
|
|
6565
|
+
className: classnames__default["default"](`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
|
|
6241
6566
|
}, step <= activeSteps ? step : '')));
|
|
6242
6567
|
}
|
|
6243
6568
|
return steppers;
|
|
@@ -6367,8 +6692,8 @@ Checkbox.propTypes = {
|
|
|
6367
6692
|
data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].arrayOf(PropTypes__default["default"].object), PropTypes__default["default"].object])
|
|
6368
6693
|
};
|
|
6369
6694
|
|
|
6370
|
-
var css_248z$
|
|
6371
|
-
styleInject(css_248z$
|
|
6695
|
+
var css_248z$3 = "textarea{-webkit-appearance:none}textarea::-webkit-scrollbar{width:6px}textarea::-webkit-scrollbar-track{background:#eee}textarea::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-track{border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px}textarea::-webkit-scrollbar-thumb{background:#d1d1d1}";
|
|
6696
|
+
styleInject(css_248z$3);
|
|
6372
6697
|
|
|
6373
6698
|
const PositionSide = {
|
|
6374
6699
|
TOP: 'top',
|
|
@@ -6442,10 +6767,12 @@ const Textarea = ({
|
|
|
6442
6767
|
if (maxLength) {
|
|
6443
6768
|
if (value.length > maxLength) {
|
|
6444
6769
|
onChange(value.substr(0, maxLength));
|
|
6770
|
+
setInnerValue(() => value.substr(0, maxLength));
|
|
6445
6771
|
}
|
|
6446
6772
|
} else {
|
|
6447
6773
|
if (value.length > configStyles.TEXTAREA.maxLength) {
|
|
6448
6774
|
onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
|
|
6775
|
+
setInnerValue(() => value.substr(0, configStyles.TEXTAREA.maxLength));
|
|
6449
6776
|
}
|
|
6450
6777
|
}
|
|
6451
6778
|
};
|
|
@@ -6604,6 +6931,236 @@ Textarea.propTypes = {
|
|
|
6604
6931
|
characterCountPosition: PropTypes__default["default"].oneOf(Object.values(PositionSide))
|
|
6605
6932
|
};
|
|
6606
6933
|
|
|
6934
|
+
const Swipe = ({
|
|
6935
|
+
id,
|
|
6936
|
+
title,
|
|
6937
|
+
child,
|
|
6938
|
+
props,
|
|
6939
|
+
innerConfigStyles
|
|
6940
|
+
}) => {
|
|
6941
|
+
const {
|
|
6942
|
+
SWIPEMODAL
|
|
6943
|
+
} = innerConfigStyles || {};
|
|
6944
|
+
const {
|
|
6945
|
+
width,
|
|
6946
|
+
height,
|
|
6947
|
+
titleStyle,
|
|
6948
|
+
position,
|
|
6949
|
+
borderRadius,
|
|
6950
|
+
callClose,
|
|
6951
|
+
showCloseIcon
|
|
6952
|
+
} = props || {};
|
|
6953
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6954
|
+
style: {
|
|
6955
|
+
width: position === 'left' || position === 'right' ? width ?? SWIPEMODAL.width : '100%',
|
|
6956
|
+
height: position === 'top' || position === 'bottom' ? height ?? SWIPEMODAL.height : '100vh'
|
|
6957
|
+
}
|
|
6958
|
+
}, (title || showCloseIcon) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6959
|
+
style: {
|
|
6960
|
+
width: '100%',
|
|
6961
|
+
display: 'flex',
|
|
6962
|
+
minHeight: '40px',
|
|
6963
|
+
alignItems: 'center',
|
|
6964
|
+
boxSizing: 'border-box',
|
|
6965
|
+
justifyContent: title ? 'space-between' : 'flex-end',
|
|
6966
|
+
padding: titleStyle?.padding ?? SWIPEMODAL.titleStyle.padding,
|
|
6967
|
+
maxHeight: titleStyle?.maxHeight ?? SWIPEMODAL.titleStyle.maxHeight
|
|
6968
|
+
}
|
|
6969
|
+
}, title && /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
6970
|
+
style: {
|
|
6971
|
+
color: titleStyle?.color ?? SWIPEMODAL.titleStyle.color,
|
|
6972
|
+
fontSize: titleStyle?.fontSize ?? SWIPEMODAL.titleStyle.font.size,
|
|
6973
|
+
textAlign: titleStyle?.textAlign ?? SWIPEMODAL.titleStyle.textAlign,
|
|
6974
|
+
fontStyle: titleStyle?.fontStyle ?? SWIPEMODAL.titleStyle.font.style,
|
|
6975
|
+
fontWeight: titleStyle?.fontWeight ?? SWIPEMODAL.titleStyle.font.weight,
|
|
6976
|
+
fontFamily: titleStyle?.fontFamily ?? SWIPEMODAL.titleStyle.font.family
|
|
6977
|
+
}
|
|
6978
|
+
}, title), showCloseIcon && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6979
|
+
style: {
|
|
6980
|
+
width: '24px',
|
|
6981
|
+
height: '24px',
|
|
6982
|
+
maxWidth: '24px',
|
|
6983
|
+
maxHeight: '24px',
|
|
6984
|
+
cursor: 'pointer'
|
|
6985
|
+
},
|
|
6986
|
+
onClick: hasOwnerProperty(props, 'callClose') && {}.toString.call(callClose) === '[object Function]' ? () => callClose(id) : _ => _
|
|
6987
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6988
|
+
alt: "close",
|
|
6989
|
+
src: hasOwnerProperty(props, 'closeIcon') && typeof props.closeIcon === 'string' ? props.closeIcon : SWIPEMODAL.closeIcon,
|
|
6990
|
+
style: {
|
|
6991
|
+
width: '100%',
|
|
6992
|
+
height: '100%',
|
|
6993
|
+
objectFit: 'contain',
|
|
6994
|
+
objectPosition: 'center'
|
|
6995
|
+
}
|
|
6996
|
+
}))), child && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6997
|
+
style: {
|
|
6998
|
+
width: '100%',
|
|
6999
|
+
height: '100%',
|
|
7000
|
+
overflowY: 'auto',
|
|
7001
|
+
overflowX: 'hidden',
|
|
7002
|
+
maxHeight: `calc(100% - ${titleStyle?.maxHeight ?? SWIPEMODAL.titleStyle.maxHeight})`,
|
|
7003
|
+
borderTopLeftRadius: position === 'right' || position === 'bottom' ? '0px' : borderRadius ?? SWIPEMODAL.border.radius,
|
|
7004
|
+
borderTopRightRadius: position === 'left' || position === 'bottom' ? '0px' : borderRadius ?? SWIPEMODAL.border.radius,
|
|
7005
|
+
borderBottomLeftRadius: position === 'right' || position === 'top' ? '0px' : borderRadius ?? SWIPEMODAL.border.radius,
|
|
7006
|
+
borderBottomRightRadius: position === 'left' || position === 'top' ? '0px' : borderRadius ?? SWIPEMODAL.border.radius
|
|
7007
|
+
}
|
|
7008
|
+
}, child));
|
|
7009
|
+
};
|
|
7010
|
+
|
|
7011
|
+
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%}}";
|
|
7012
|
+
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","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"};
|
|
7013
|
+
styleInject(css_248z$2);
|
|
7014
|
+
|
|
7015
|
+
let swipeCount = 0;
|
|
7016
|
+
const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
|
|
7017
|
+
const {
|
|
7018
|
+
width,
|
|
7019
|
+
height,
|
|
7020
|
+
position = 'left',
|
|
7021
|
+
animation,
|
|
7022
|
+
borderRadius,
|
|
7023
|
+
backgroundColor
|
|
7024
|
+
} = props || {};
|
|
7025
|
+
swipeBlock.style.position = 'fixed';
|
|
7026
|
+
swipeBlock.style.zIndex = swipeCount;
|
|
7027
|
+
swipeBlock.style.backgroundColor = backgroundColor ?? innerConfigStyles.SWIPEMODAL.colors.background;
|
|
7028
|
+
swipeBlock.style.width = position === 'left' || position === 'right' ? width ?? innerConfigStyles.SWIPEMODAL.width : '100%';
|
|
7029
|
+
swipeBlock.style.height = position === 'top' || position === 'bottom' ? height ?? innerConfigStyles.SWIPEMODAL.height : '100vh';
|
|
7030
|
+
swipeBlock.style.borderTopLeftRadius = position === 'right' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
7031
|
+
swipeBlock.style.borderTopRightRadius = position === 'left' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
7032
|
+
swipeBlock.style.borderBottomLeftRadius = position === 'right' || position === 'top' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
7033
|
+
swipeBlock.style.borderBottomRightRadius = position === 'left' || position === 'top' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
|
|
7034
|
+
swipeBlock.setAttribute('id', id);
|
|
7035
|
+
swipeBlock.setAttribute('closePos', position);
|
|
7036
|
+
swipeBlock.classList.add(styles$2['swipe-block'], position === 'top' ? styles$2['to-top'] : position === 'bottom' ? styles$2['to-bottom'] : position === 'left' ? styles$2['to-left'] : styles$2['to-right']);
|
|
7037
|
+
if (hasOwnerProperty(props, 'animation') && animation === true) {
|
|
7038
|
+
swipeBlock.setAttribute('anime', animation);
|
|
7039
|
+
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'] : ''}`);
|
|
7040
|
+
}
|
|
7041
|
+
const newElem = /*#__PURE__*/React__default["default"].createElement(Swipe, {
|
|
7042
|
+
id,
|
|
7043
|
+
title,
|
|
7044
|
+
child,
|
|
7045
|
+
props,
|
|
7046
|
+
innerConfigStyles
|
|
7047
|
+
});
|
|
7048
|
+
const root = ReactDOM__default["default"].createRoot(swipeBlock);
|
|
7049
|
+
root.render(newElem);
|
|
7050
|
+
};
|
|
7051
|
+
const createSwipe = (id, title, child, props, swipable) => {
|
|
7052
|
+
let innerConfigStyles = {};
|
|
7053
|
+
const swipeBlock = document.createElement('div');
|
|
7054
|
+
swipeBlock.addEventListener('click', function (e) {
|
|
7055
|
+
e.stopPropagation();
|
|
7056
|
+
});
|
|
7057
|
+
configStylesPromise.then(data => {
|
|
7058
|
+
innerConfigStyles = {
|
|
7059
|
+
...data
|
|
7060
|
+
};
|
|
7061
|
+
createElem(id, title, child, props, swipeBlock, innerConfigStyles);
|
|
7062
|
+
if (!swipable) {
|
|
7063
|
+
const widthParent = hasOwnerProperty(props, 'withParent') ? props.withParent === true ? true : false : innerConfigStyles.SWIPEMODAL.withParent;
|
|
7064
|
+
swipable = document.createElement('div');
|
|
7065
|
+
swipable.setAttribute('id', 'swipable');
|
|
7066
|
+
swipable.style.position = 'fixed';
|
|
7067
|
+
swipable.style.top = '0px';
|
|
7068
|
+
swipable.style.left = '0px';
|
|
7069
|
+
swipable.style.zIndex = 99999;
|
|
7070
|
+
swipable.style.maxWidth = '100%';
|
|
7071
|
+
swipable.style.maxHeight = '100vh';
|
|
7072
|
+
swipable.style.visibility = 'hidden';
|
|
7073
|
+
swipable.style.width = widthParent ? '100%' : '0px';
|
|
7074
|
+
swipable.style.height = widthParent ? '100vh' : '0px';
|
|
7075
|
+
swipable.style.backgroundColor = props?.parent?.backgroundColor ?? innerConfigStyles.SWIPEMODAL.parent.colors.background;
|
|
7076
|
+
swipable.classList.add(styles$2['visible']);
|
|
7077
|
+
if (props.outSideClose || innerConfigStyles.SWIPEMODAL.outSideClose) {
|
|
7078
|
+
swipable.addEventListener('click', function () {
|
|
7079
|
+
hasOwnerProperty(props, 'callClose') && {}.toString.call(props.callClose) === '[object Function]' ? props.callClose() : '';
|
|
7080
|
+
});
|
|
7081
|
+
}
|
|
7082
|
+
document.body.appendChild(swipable);
|
|
7083
|
+
}
|
|
7084
|
+
swipable.appendChild(swipeBlock);
|
|
7085
|
+
}, error => {
|
|
7086
|
+
console.error(error);
|
|
7087
|
+
});
|
|
7088
|
+
};
|
|
7089
|
+
|
|
7090
|
+
// Function to handle removing the element on navigation change
|
|
7091
|
+
const handleNavigationChange = () => {
|
|
7092
|
+
let swipable = document.getElementById('swipable');
|
|
7093
|
+
if (swipable) {
|
|
7094
|
+
swipable.remove();
|
|
7095
|
+
}
|
|
7096
|
+
};
|
|
7097
|
+
|
|
7098
|
+
// Wrap history methods to detect all navigation changes
|
|
7099
|
+
(function (history) {
|
|
7100
|
+
const pushState = history.pushState;
|
|
7101
|
+
const replaceState = history.replaceState;
|
|
7102
|
+
history.pushState = function (state) {
|
|
7103
|
+
const result = pushState.apply(history, arguments);
|
|
7104
|
+
window.dispatchEvent(new Event('navigationchange'));
|
|
7105
|
+
return result;
|
|
7106
|
+
};
|
|
7107
|
+
history.replaceState = function (state) {
|
|
7108
|
+
const result = replaceState.apply(history, arguments);
|
|
7109
|
+
window.dispatchEvent(new Event('navigationchange'));
|
|
7110
|
+
return result;
|
|
7111
|
+
};
|
|
7112
|
+
})(window.history);
|
|
7113
|
+
const swipe = {
|
|
7114
|
+
open: (title = '', id, child, props) => {
|
|
7115
|
+
if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
|
|
7116
|
+
alert('Please pass valid id prop (string / number) when call swipe.open function');
|
|
7117
|
+
return;
|
|
7118
|
+
}
|
|
7119
|
+
if (swipeCount === 0) {
|
|
7120
|
+
window.addEventListener('popstate', handleNavigationChange);
|
|
7121
|
+
window.addEventListener('navigationchange', handleNavigationChange);
|
|
7122
|
+
}
|
|
7123
|
+
let swipable = document.getElementById('swipable');
|
|
7124
|
+
swipeCount += 1;
|
|
7125
|
+
createSwipe(id, title, child, props, swipable);
|
|
7126
|
+
return Promise.resolve(id);
|
|
7127
|
+
},
|
|
7128
|
+
close: id => {
|
|
7129
|
+
if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
|
|
7130
|
+
alert('Please pass valid id prop (string / number) when call swipe.close function');
|
|
7131
|
+
return;
|
|
7132
|
+
}
|
|
7133
|
+
let swipable = document.getElementById('swipable');
|
|
7134
|
+
swipeCount -= 1;
|
|
7135
|
+
const removable = document.getElementById(id);
|
|
7136
|
+
if (swipable && removable) {
|
|
7137
|
+
const animation = removable.getAttribute('anime');
|
|
7138
|
+
const position = removable.getAttribute('closePos');
|
|
7139
|
+
if (animation) {
|
|
7140
|
+
removable.classList.add(position === 'top' ? styles$2['back-top'] : position === 'left' ? styles$2['back-left'] : position === 'right' ? styles$2['back-right'] : styles$2['back-bottom']);
|
|
7141
|
+
setTimeout(() => {
|
|
7142
|
+
swipable.removeChild(removable);
|
|
7143
|
+
if (swipeCount === 0 && swipable) {
|
|
7144
|
+
window.removeEventListener('popstate', handleNavigationChange);
|
|
7145
|
+
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
7146
|
+
document.body.removeChild(swipable);
|
|
7147
|
+
}
|
|
7148
|
+
}, 200);
|
|
7149
|
+
} else {
|
|
7150
|
+
swipable.removeChild(removable);
|
|
7151
|
+
if (swipeCount === 0 && swipable) {
|
|
7152
|
+
window.removeEventListener('popstate', handleNavigationChange);
|
|
7153
|
+
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
7154
|
+
document.body.removeChild(swipable);
|
|
7155
|
+
}
|
|
7156
|
+
}
|
|
7157
|
+
}
|
|
7158
|
+
}
|
|
7159
|
+
};
|
|
7160
|
+
const SwipeModal = () => {
|
|
7161
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
7162
|
+
};
|
|
7163
|
+
|
|
6607
7164
|
const TypographyType = {
|
|
6608
7165
|
p: 'p',
|
|
6609
7166
|
h1: 'h1',
|
|
@@ -7396,6 +7953,7 @@ exports.Captcha = Captcha;
|
|
|
7396
7953
|
exports.Checkbox = Checkbox;
|
|
7397
7954
|
exports.DirectionMode = DirectionMode;
|
|
7398
7955
|
exports.File = File;
|
|
7956
|
+
exports.IconSides = IconSides;
|
|
7399
7957
|
exports.Input = Input;
|
|
7400
7958
|
exports.InputTypes = InputTypes;
|
|
7401
7959
|
exports.Modal = Modal;
|
|
@@ -7405,10 +7963,13 @@ exports.Radio = Radio;
|
|
|
7405
7963
|
exports.RadioDirectionMode = RadioDirectionMode;
|
|
7406
7964
|
exports.Select = Select;
|
|
7407
7965
|
exports.Stepper = Stepper;
|
|
7966
|
+
exports.SwipeModal = SwipeModal;
|
|
7408
7967
|
exports.Table = Table;
|
|
7409
7968
|
exports.Textarea = Textarea;
|
|
7410
7969
|
exports.Toaster = Toaster;
|
|
7411
7970
|
exports.Tooltip = Tooltip;
|
|
7971
|
+
exports.TooltipDirections = TooltipDirections;
|
|
7412
7972
|
exports.Typography = Typography;
|
|
7413
7973
|
exports.TypographyType = TypographyType;
|
|
7974
|
+
exports.swipe = swipe;
|
|
7414
7975
|
exports.toast = toast;
|