@xaypay/tui 0.1.6 → 0.1.8
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 +136 -62
- package/dist/index.js +135 -61
- package/package.json +1 -1
- package/tui.config.js +114 -106
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { useState, useEffect, useRef, useMemo, createRef } from 'react';
|
|
2
|
+
import React__default, { useState, useEffect, forwardRef, useRef, useMemo, useImperativeHandle, createRef } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import styled, { keyframes, css } from 'styled-components';
|
|
@@ -459,6 +459,14 @@ const hasOwnerProperty = (object, property) => {
|
|
|
459
459
|
return Object.prototype.hasOwnProperty.call(object, property);
|
|
460
460
|
};
|
|
461
461
|
|
|
462
|
+
const vertical = {
|
|
463
|
+
top: 'top',
|
|
464
|
+
bottom: 'bottom'
|
|
465
|
+
};
|
|
466
|
+
const horizontal = {
|
|
467
|
+
left: 'left',
|
|
468
|
+
right: 'right'
|
|
469
|
+
};
|
|
462
470
|
const Button = ({
|
|
463
471
|
icon,
|
|
464
472
|
size,
|
|
@@ -490,6 +498,20 @@ const Button = ({
|
|
|
490
498
|
btnIconMarginRight,
|
|
491
499
|
backgroundHoverColor,
|
|
492
500
|
disabledBackgroundColor,
|
|
501
|
+
title,
|
|
502
|
+
titleSize,
|
|
503
|
+
titleFont,
|
|
504
|
+
titleWidth,
|
|
505
|
+
titleStyle,
|
|
506
|
+
titleColor,
|
|
507
|
+
titleRadius,
|
|
508
|
+
titleWeight,
|
|
509
|
+
titlePadding,
|
|
510
|
+
titleBackgroundColor,
|
|
511
|
+
titleVerticalDistance,
|
|
512
|
+
titleVerticalPosition,
|
|
513
|
+
titleHorizontalDistance,
|
|
514
|
+
titleHorizontalPosition,
|
|
493
515
|
...props
|
|
494
516
|
}) => {
|
|
495
517
|
const [isHover, setIsHover] = useState(false);
|
|
@@ -500,45 +522,75 @@ const Button = ({
|
|
|
500
522
|
const handleMouseLeave = () => {
|
|
501
523
|
setIsHover(false);
|
|
502
524
|
};
|
|
525
|
+
const buttonTemplate = () => {
|
|
526
|
+
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
527
|
+
style: {
|
|
528
|
+
display: 'flex',
|
|
529
|
+
outline: 'none',
|
|
530
|
+
alignItems: 'center',
|
|
531
|
+
justifyContent: 'center',
|
|
532
|
+
fontSize: size ?? merge.BUTTON.font.size,
|
|
533
|
+
fontStyle: style ?? merge.BUTTON.font.style,
|
|
534
|
+
fontFamily: font ?? merge.BUTTON.font.family,
|
|
535
|
+
height: height ?? merge.BUTTON.height,
|
|
536
|
+
fontWeight: weight ?? merge.BUTTON.font.weight,
|
|
537
|
+
padding: padding ?? merge.BUTTON.padding,
|
|
538
|
+
borderRadius: radius ?? merge.BUTTON.radius,
|
|
539
|
+
boxSizing: boxSizing ?? merge.BUTTON.box.sizing,
|
|
540
|
+
transition: transition ?? merge.BUTTON.transition,
|
|
541
|
+
border: outline ? 'none' : border ?? merge.BUTTON.border,
|
|
542
|
+
width: contentWidth ? title ? '100%' : 'auto' : width ?? merge.BUTTON.width,
|
|
543
|
+
cursor: disabled ? 'not-allowed' : cursor ?? merge.BUTTON.cursor,
|
|
544
|
+
textTransform: textTransform ?? merge.BUTTON.text.transform,
|
|
545
|
+
backgroundColor: (outline || !outline) && disabled ? disabledBackgroundColor ? disabledBackgroundColor : merge.BUTTON.colors.disabledBackground : outline && !disabled ? isHover ? backgroundColor ? backgroundColor : merge.BUTTON.colors.background : '#ffffff' : !outline && !disabled && isHover ? backgroundHoverColor ? backgroundHoverColor : merge.BUTTON.colors.backgroundHover : backgroundColor ? backgroundColor : merge.BUTTON.colors.background,
|
|
546
|
+
boxShadow: outline ? disabled ? `inset 0 0 0 2px ${disabledLineColor ? disabledLineColor : merge.BUTTON.colors.disabledLine}` : `inset 0 0 0 2px ${backgroundColor ? backgroundColor : merge.BUTTON.colors.background}` : 'none',
|
|
547
|
+
color: (outline || !outline) && disabled ? disabledColor ? disabledColor : merge.BUTTON.colors.disabled : outline && !disabled ? isHover ? color ? color : merge.BUTTON.color : backgroundColor ? backgroundColor : merge.BUTTON.colors.background : !outline && !disabled && isHover ? hoverColor ? hoverColor : merge.BUTTON.text.colors.hover : color ? color : merge.BUTTON.color
|
|
548
|
+
},
|
|
549
|
+
type: type ?? merge.BUTTON.type,
|
|
550
|
+
disabled: disabled ?? merge.BUTTON.disabled,
|
|
551
|
+
onClick: disabled ? _ => _ : type !== 'submit' ? onClick ? onClick : () => alert('Add click event handler on Button component') : _ => _,
|
|
552
|
+
onMouseEnter: handleMouseEnter,
|
|
553
|
+
onMouseLeave: handleMouseLeave,
|
|
554
|
+
className: classProps
|
|
555
|
+
}, props), isHover && hoverIcon ? hoverIcon : icon ?? null, ' ', label && /*#__PURE__*/React__default.createElement("span", {
|
|
556
|
+
style: {
|
|
557
|
+
marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : merge.BUTTON.icon.marginRight : '0px'
|
|
558
|
+
}
|
|
559
|
+
}, label), ' ', !icon && !label && 'Add icon or label prop on Button component');
|
|
560
|
+
};
|
|
503
561
|
useEffect(() => {
|
|
504
562
|
if (!label && !icon) {
|
|
505
563
|
alert('Add icon or label props on Button component');
|
|
506
564
|
}
|
|
507
565
|
}, []);
|
|
508
|
-
return /*#__PURE__*/React__default.createElement("
|
|
566
|
+
return title ? /*#__PURE__*/React__default.createElement("div", {
|
|
509
567
|
style: {
|
|
510
|
-
|
|
511
|
-
outline: 'none',
|
|
512
|
-
alignItems: 'center',
|
|
513
|
-
justifyContent: 'center',
|
|
514
|
-
fontSize: size ?? merge.BUTTON.font.size,
|
|
515
|
-
fontStyle: style ?? merge.BUTTON.font.style,
|
|
516
|
-
fontFamily: font ?? merge.BUTTON.font.family,
|
|
568
|
+
position: 'relative',
|
|
517
569
|
height: height ?? merge.BUTTON.height,
|
|
518
|
-
|
|
519
|
-
padding: padding ?? merge.BUTTON.padding,
|
|
520
|
-
borderRadius: radius ?? merge.BUTTON.radius,
|
|
521
|
-
boxSizing: boxSizing ?? merge.BUTTON.box.sizing,
|
|
522
|
-
transition: transition ?? merge.BUTTON.transition,
|
|
523
|
-
border: outline ? 'none' : border ?? merge.BUTTON.border,
|
|
524
|
-
width: contentWidth ? 'auto' : width ?? merge.BUTTON.width,
|
|
525
|
-
cursor: disabled ? 'not-allowed' : cursor ?? merge.BUTTON.cursor,
|
|
526
|
-
textTransform: textTransform ?? merge.BUTTON.text.transform,
|
|
527
|
-
backgroundColor: (outline || !outline) && disabled ? disabledBackgroundColor ? disabledBackgroundColor : merge.BUTTON.colors.disabledBackground : outline && !disabled ? isHover ? backgroundColor ? backgroundColor : merge.BUTTON.colors.background : '#ffffff' : !outline && !disabled && isHover ? backgroundHoverColor ? backgroundHoverColor : merge.BUTTON.colors.backgroundHover : backgroundColor ? backgroundColor : merge.BUTTON.colors.background,
|
|
528
|
-
boxShadow: outline ? disabled ? `inset 0 0 0 2px ${disabledLineColor ? disabledLineColor : merge.BUTTON.colors.disabledLine}` : `inset 0 0 0 2px ${backgroundColor ? backgroundColor : merge.BUTTON.colors.background}` : 'none',
|
|
529
|
-
color: (outline || !outline) && disabled ? disabledColor ? disabledColor : merge.BUTTON.colors.disabled : outline && !disabled ? isHover ? color ? color : merge.BUTTON.color : backgroundColor ? backgroundColor : merge.BUTTON.colors.background : !outline && !disabled && isHover ? hoverColor ? hoverColor : merge.BUTTON.text.colors.hover : color ? color : merge.BUTTON.color
|
|
570
|
+
width: contentWidth ? '100%' : 'fit-content'
|
|
530
571
|
},
|
|
531
|
-
type: type ?? merge.BUTTON.type,
|
|
532
|
-
disabled: disabled ?? merge.BUTTON.disabled,
|
|
533
|
-
onClick: disabled ? _ => _ : type !== 'submit' ? onClick ? onClick : () => alert('Add click event handler on Button component') : _ => _,
|
|
534
|
-
onMouseEnter: handleMouseEnter,
|
|
535
|
-
onMouseLeave: handleMouseLeave,
|
|
536
572
|
className: classProps
|
|
537
|
-
},
|
|
573
|
+
}, buttonTemplate(), isHover ? /*#__PURE__*/React__default.createElement("p", {
|
|
538
574
|
style: {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
575
|
+
position: 'absolute',
|
|
576
|
+
margin: '0px',
|
|
577
|
+
top: titleVerticalPosition === 'bottom' ? `calc(100% + ${titleVerticalDistance})` : '',
|
|
578
|
+
left: titleHorizontalPosition === 'right' ? `calc(100% + ${titleHorizontalDistance})` : '',
|
|
579
|
+
right: titleHorizontalPosition === 'left' ? `calc(100% + ${titleHorizontalDistance})` : '',
|
|
580
|
+
bottom: titleVerticalPosition === 'top' ? `calc(100% + ${titleVerticalDistance})` : '',
|
|
581
|
+
color: titleColor ?? merge.BUTTON.title.color,
|
|
582
|
+
fontSize: titleSize ?? merge.BUTTON.title.font.size,
|
|
583
|
+
fontStyle: titleStyle ?? merge.BUTTON.title.font.style,
|
|
584
|
+
fontFamily: titleFont ?? merge.BUTTON.title.font.family,
|
|
585
|
+
fontWeight: titleWeight ?? merge.BUTTON.title.font.weight,
|
|
586
|
+
width: titleWidth ?? merge.BUTTON.title.width,
|
|
587
|
+
padding: titlePadding ?? merge.BUTTON.title.padding,
|
|
588
|
+
backgroundColor: titleBackgroundColor ?? merge.BUTTON.title.colors.background,
|
|
589
|
+
borderRadius: titleRadius ?? merge.BUTTON.title.radius
|
|
590
|
+
},
|
|
591
|
+
onMouseEnter: handleMouseEnter,
|
|
592
|
+
onMouseLeave: handleMouseLeave
|
|
593
|
+
}, title) : '') : buttonTemplate();
|
|
542
594
|
};
|
|
543
595
|
Button.propTypes = {
|
|
544
596
|
type: PropTypes.string,
|
|
@@ -547,7 +599,6 @@ Button.propTypes = {
|
|
|
547
599
|
weight: PropTypes.string,
|
|
548
600
|
font: PropTypes.string,
|
|
549
601
|
icon: PropTypes.element,
|
|
550
|
-
hoverIcon: PropTypes.element,
|
|
551
602
|
color: PropTypes.string,
|
|
552
603
|
width: PropTypes.string,
|
|
553
604
|
outline: PropTypes.bool,
|
|
@@ -561,6 +612,7 @@ Button.propTypes = {
|
|
|
561
612
|
padding: PropTypes.string,
|
|
562
613
|
boxSizing: PropTypes.string,
|
|
563
614
|
className: PropTypes.string,
|
|
615
|
+
hoverIcon: PropTypes.element,
|
|
564
616
|
hoverColor: PropTypes.string,
|
|
565
617
|
transition: PropTypes.string,
|
|
566
618
|
contentWidth: PropTypes.bool,
|
|
@@ -570,7 +622,27 @@ Button.propTypes = {
|
|
|
570
622
|
disabledLineColor: PropTypes.string,
|
|
571
623
|
btnIconMarginRight: PropTypes.string,
|
|
572
624
|
backgroundHoverColor: PropTypes.string,
|
|
573
|
-
disabledBackgroundColor: PropTypes.string
|
|
625
|
+
disabledBackgroundColor: PropTypes.string,
|
|
626
|
+
title: PropTypes.string,
|
|
627
|
+
titleFont: PropTypes.string,
|
|
628
|
+
titleSize: PropTypes.string,
|
|
629
|
+
titleColor: PropTypes.string,
|
|
630
|
+
titleWidth: PropTypes.string,
|
|
631
|
+
titleStyle: PropTypes.string,
|
|
632
|
+
titleWeight: PropTypes.string,
|
|
633
|
+
titleRadius: PropTypes.string,
|
|
634
|
+
titlePadding: PropTypes.string,
|
|
635
|
+
titleBackgroundColor: PropTypes.string,
|
|
636
|
+
titleVerticalDistance: PropTypes.string,
|
|
637
|
+
titleHorizontalDistance: PropTypes.string,
|
|
638
|
+
titleVerticalPosition: PropTypes.oneOf(Object.values(vertical)),
|
|
639
|
+
titleHorizontalPosition: PropTypes.oneOf(Object.values(horizontal))
|
|
640
|
+
};
|
|
641
|
+
Button.defaultProps = {
|
|
642
|
+
titleVerticalDistance: '4px',
|
|
643
|
+
titleVerticalPosition: 'top',
|
|
644
|
+
titleHorizontalPosition: 'left',
|
|
645
|
+
titleHorizontalDistance: '10px'
|
|
574
646
|
};
|
|
575
647
|
|
|
576
648
|
const SvgPdf = ({
|
|
@@ -684,7 +756,8 @@ const SvgDeleteComponent = ({
|
|
|
684
756
|
fill: fillColor ? fillColor : '#E00'
|
|
685
757
|
}));
|
|
686
758
|
|
|
687
|
-
|
|
759
|
+
// eslint-disable-next-line react/display-name
|
|
760
|
+
const File = /*#__PURE__*/forwardRef(({
|
|
688
761
|
or,
|
|
689
762
|
size,
|
|
690
763
|
name,
|
|
@@ -780,8 +853,7 @@ const File = ({
|
|
|
780
853
|
listItemBackgroundColor,
|
|
781
854
|
listItemBackgroundErrorColor,
|
|
782
855
|
maxCHoosenLengthErrorHideTime
|
|
783
|
-
}) => {
|
|
784
|
-
const ref = useRef(null);
|
|
856
|
+
}, ref) => {
|
|
785
857
|
const inpRef = useRef(null);
|
|
786
858
|
const memoizedItems = useMemo(() => filesArray, [filesArray]);
|
|
787
859
|
const classProps = classnames(className ?? merge.FILE.className);
|
|
@@ -942,6 +1014,11 @@ const File = ({
|
|
|
942
1014
|
const handleStopPropagation = e => {
|
|
943
1015
|
e.stopPropagation();
|
|
944
1016
|
};
|
|
1017
|
+
useImperativeHandle(ref, () => ({
|
|
1018
|
+
handleReset() {
|
|
1019
|
+
setError('');
|
|
1020
|
+
}
|
|
1021
|
+
}));
|
|
945
1022
|
useEffect(() => {
|
|
946
1023
|
if (!multiple && defaultData) {
|
|
947
1024
|
if (!defaultData.type) {
|
|
@@ -990,7 +1067,6 @@ const File = ({
|
|
|
990
1067
|
}
|
|
991
1068
|
}, [change]);
|
|
992
1069
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
993
|
-
ref: ref,
|
|
994
1070
|
style: {
|
|
995
1071
|
width: '100%',
|
|
996
1072
|
maxWidth: maxWidth ?? merge.FILE.maxWidth
|
|
@@ -1189,7 +1265,7 @@ const File = ({
|
|
|
1189
1265
|
listItemBackgroundErrorColor: listItemBackgroundErrorColor ?? merge.FILE.listItem.colors.backgroundError
|
|
1190
1266
|
});
|
|
1191
1267
|
}));
|
|
1192
|
-
};
|
|
1268
|
+
});
|
|
1193
1269
|
File.propTypes = {
|
|
1194
1270
|
or: PropTypes.string,
|
|
1195
1271
|
size: PropTypes.string,
|
|
@@ -1471,9 +1547,9 @@ function styleInject(css, ref) {
|
|
|
1471
1547
|
}
|
|
1472
1548
|
}
|
|
1473
1549
|
|
|
1474
|
-
var css_248z$
|
|
1550
|
+
var css_248z$a = ".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{cursor:pointer;margin:0 0 8px;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}";
|
|
1475
1551
|
var styles$9 = {"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"};
|
|
1476
|
-
styleInject(css_248z$
|
|
1552
|
+
styleInject(css_248z$a);
|
|
1477
1553
|
|
|
1478
1554
|
/* eslint-disable no-prototype-builtins */
|
|
1479
1555
|
const TH = ({
|
|
@@ -2498,9 +2574,9 @@ Table.propTypes = {
|
|
|
2498
2574
|
hideBorder: PropTypes.bool
|
|
2499
2575
|
};
|
|
2500
2576
|
|
|
2501
|
-
var css_248z$
|
|
2577
|
+
var css_248z$9 = ".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)}}";
|
|
2502
2578
|
var styles$8 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
|
|
2503
|
-
styleInject(css_248z$
|
|
2579
|
+
styleInject(css_248z$9);
|
|
2504
2580
|
|
|
2505
2581
|
const SvgNext = ({
|
|
2506
2582
|
title,
|
|
@@ -2799,7 +2875,7 @@ const Modal = ({
|
|
|
2799
2875
|
width: '100%',
|
|
2800
2876
|
height: '100%',
|
|
2801
2877
|
position: 'relative',
|
|
2802
|
-
alignItems: '
|
|
2878
|
+
alignItems: 'flex-start',
|
|
2803
2879
|
boxSizing: 'border-box',
|
|
2804
2880
|
justifyContent: 'center',
|
|
2805
2881
|
overflow: type === 'content' ? 'auto' : 'hidden',
|
|
@@ -3239,9 +3315,9 @@ const NumberInput = ({
|
|
|
3239
3315
|
});
|
|
3240
3316
|
};
|
|
3241
3317
|
|
|
3242
|
-
var css_248z$
|
|
3318
|
+
var css_248z$8 = ".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)}}";
|
|
3243
3319
|
var styles$7 = {"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"};
|
|
3244
|
-
styleInject(css_248z$
|
|
3320
|
+
styleInject(css_248z$8);
|
|
3245
3321
|
|
|
3246
3322
|
const InputTypes = {
|
|
3247
3323
|
TEL: 'tel',
|
|
@@ -3319,6 +3395,7 @@ const Input = ({
|
|
|
3319
3395
|
const [isHover, setIsHover] = useState(false);
|
|
3320
3396
|
const [innerErrorMessage, setInnerErrorMessage] = useState('');
|
|
3321
3397
|
const inpStyles = {
|
|
3398
|
+
color: color ?? merge.INPUT.color,
|
|
3322
3399
|
width: width ?? merge.INPUT.width,
|
|
3323
3400
|
cursor: disabled ? 'not-allowed' : 'auto',
|
|
3324
3401
|
height: height ?? merge.INPUT.height,
|
|
@@ -3328,7 +3405,6 @@ const Input = ({
|
|
|
3328
3405
|
fontWeight: weight ?? merge.INPUT.font.weight,
|
|
3329
3406
|
fontFamily: family ?? merge.INPUT.font.family,
|
|
3330
3407
|
boxSizing: boxSizing ?? merge.INPUT.box.sizing,
|
|
3331
|
-
color: innerErrorMessage && errorColor ? errorColor : color ? color : merge.INPUT.color,
|
|
3332
3408
|
backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : merge.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : merge.INPUT.colors.background
|
|
3333
3409
|
};
|
|
3334
3410
|
const uuid = v4();
|
|
@@ -3747,9 +3823,9 @@ const SvgArrow = ({
|
|
|
3747
3823
|
fill: fillColor ? fillColor : '#3C393E'
|
|
3748
3824
|
}));
|
|
3749
3825
|
|
|
3750
|
-
var css_248z$
|
|
3826
|
+
var css_248z$7 = ".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}}";
|
|
3751
3827
|
var styles$6 = {"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"};
|
|
3752
|
-
styleInject(css_248z$
|
|
3828
|
+
styleInject(css_248z$7);
|
|
3753
3829
|
|
|
3754
3830
|
const Select = ({
|
|
3755
3831
|
dots,
|
|
@@ -3972,7 +4048,7 @@ const Select = ({
|
|
|
3972
4048
|
whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
|
|
3973
4049
|
overflow: 'hidden',
|
|
3974
4050
|
textOverflow: 'ellipsis',
|
|
3975
|
-
color:
|
|
4051
|
+
color: isHover ? selectedHoverColor ? selectedHoverColor : merge.SELECT.selected.colors.hover : selectedColor ? selectedColor : merge.SELECT.selected.color
|
|
3976
4052
|
}
|
|
3977
4053
|
}, !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] : newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
|
|
3978
4054
|
if (newSelected[index][keyNames.name]) {
|
|
@@ -4226,9 +4302,9 @@ const SvgToasterSuccess = ({
|
|
|
4226
4302
|
fill: fillColor ? fillColor : '#0DA574'
|
|
4227
4303
|
}));
|
|
4228
4304
|
|
|
4229
|
-
var css_248z$
|
|
4305
|
+
var css_248z$6 = "#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_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}";
|
|
4230
4306
|
var styles$5 = {"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"};
|
|
4231
|
-
styleInject(css_248z$
|
|
4307
|
+
styleInject(css_248z$6);
|
|
4232
4308
|
|
|
4233
4309
|
let wWidth$1 = window.innerWidth;
|
|
4234
4310
|
const ToasterType = {
|
|
@@ -4531,9 +4607,9 @@ const SvgTooltip = ({
|
|
|
4531
4607
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
4532
4608
|
}));
|
|
4533
4609
|
|
|
4534
|
-
var css_248z$
|
|
4610
|
+
var css_248z$5 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{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}";
|
|
4535
4611
|
var styles$4 = {"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"};
|
|
4536
|
-
styleInject(css_248z$
|
|
4612
|
+
styleInject(css_248z$5);
|
|
4537
4613
|
|
|
4538
4614
|
const Tooltip = ({
|
|
4539
4615
|
type,
|
|
@@ -4670,9 +4746,9 @@ const SvgCaptchaArrowDown = ({
|
|
|
4670
4746
|
fill: fillColor ? fillColor : '#00236A'
|
|
4671
4747
|
}));
|
|
4672
4748
|
|
|
4673
|
-
var css_248z$
|
|
4749
|
+
var css_248z$4 = ".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}";
|
|
4674
4750
|
var styles$3 = {"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"};
|
|
4675
|
-
styleInject(css_248z$
|
|
4751
|
+
styleInject(css_248z$4);
|
|
4676
4752
|
|
|
4677
4753
|
const Captcha = ({
|
|
4678
4754
|
color,
|
|
@@ -4801,9 +4877,9 @@ Captcha.propTypes = {
|
|
|
4801
4877
|
getRange: PropTypes.func.isRequired
|
|
4802
4878
|
};
|
|
4803
4879
|
|
|
4804
|
-
var css_248z$
|
|
4880
|
+
var css_248z$3 = ".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}";
|
|
4805
4881
|
var styles$2 = {"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"};
|
|
4806
|
-
styleInject(css_248z$
|
|
4882
|
+
styleInject(css_248z$3);
|
|
4807
4883
|
|
|
4808
4884
|
const Stepper = ({
|
|
4809
4885
|
stepLength,
|
|
@@ -4936,8 +5012,8 @@ Checkbox.defaultProps = {
|
|
|
4936
5012
|
direction: 'vertical'
|
|
4937
5013
|
};
|
|
4938
5014
|
|
|
4939
|
-
var css_248z$
|
|
4940
|
-
styleInject(css_248z$
|
|
5015
|
+
var css_248z$2 = "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}";
|
|
5016
|
+
styleInject(css_248z$2);
|
|
4941
5017
|
|
|
4942
5018
|
const PositionSide = {
|
|
4943
5019
|
TOP: 'top',
|
|
@@ -5006,6 +5082,7 @@ const Textarea = ({
|
|
|
5006
5082
|
const handleChange = e => {
|
|
5007
5083
|
const value = e.target.value;
|
|
5008
5084
|
onChange(value);
|
|
5085
|
+
setInnerValue(() => value);
|
|
5009
5086
|
if (maxLength) {
|
|
5010
5087
|
if (value.length > maxLength) {
|
|
5011
5088
|
onChange(value.substr(0, maxLength));
|
|
@@ -5030,7 +5107,7 @@ const Textarea = ({
|
|
|
5030
5107
|
} else {
|
|
5031
5108
|
setError('');
|
|
5032
5109
|
}
|
|
5033
|
-
setInnerValue(value);
|
|
5110
|
+
setInnerValue(() => value);
|
|
5034
5111
|
}, [value, errorMessage]);
|
|
5035
5112
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5036
5113
|
style: {
|
|
@@ -5159,9 +5236,6 @@ Textarea.defaultProps = {
|
|
|
5159
5236
|
characterCountPosition: 'top'
|
|
5160
5237
|
};
|
|
5161
5238
|
|
|
5162
|
-
var css_248z$2 = "";
|
|
5163
|
-
styleInject(css_248z$2);
|
|
5164
|
-
|
|
5165
5239
|
const TypographyType = {
|
|
5166
5240
|
p: 'p',
|
|
5167
5241
|
h1: 'h1',
|