@xaypay/tui 0.1.7 → 0.1.9
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 +5688 -7626
- package/dist/index.js +134 -61
- package/package.json +1 -1
- package/tui.config.js +114 -106
package/dist/index.js
CHANGED
|
@@ -489,6 +489,14 @@ const hasOwnerProperty = (object, property) => {
|
|
|
489
489
|
return Object.prototype.hasOwnProperty.call(object, property);
|
|
490
490
|
};
|
|
491
491
|
|
|
492
|
+
const vertical = {
|
|
493
|
+
top: 'top',
|
|
494
|
+
bottom: 'bottom'
|
|
495
|
+
};
|
|
496
|
+
const horizontal = {
|
|
497
|
+
left: 'left',
|
|
498
|
+
right: 'right'
|
|
499
|
+
};
|
|
492
500
|
const Button = ({
|
|
493
501
|
icon,
|
|
494
502
|
size,
|
|
@@ -520,6 +528,20 @@ const Button = ({
|
|
|
520
528
|
btnIconMarginRight,
|
|
521
529
|
backgroundHoverColor,
|
|
522
530
|
disabledBackgroundColor,
|
|
531
|
+
title,
|
|
532
|
+
titleSize,
|
|
533
|
+
titleFont,
|
|
534
|
+
titleWidth,
|
|
535
|
+
titleStyle,
|
|
536
|
+
titleColor,
|
|
537
|
+
titleRadius,
|
|
538
|
+
titleWeight,
|
|
539
|
+
titlePadding,
|
|
540
|
+
titleBackgroundColor,
|
|
541
|
+
titleVerticalDistance,
|
|
542
|
+
titleVerticalPosition,
|
|
543
|
+
titleHorizontalDistance,
|
|
544
|
+
titleHorizontalPosition,
|
|
523
545
|
...props
|
|
524
546
|
}) => {
|
|
525
547
|
const [isHover, setIsHover] = React.useState(false);
|
|
@@ -530,45 +552,75 @@ const Button = ({
|
|
|
530
552
|
const handleMouseLeave = () => {
|
|
531
553
|
setIsHover(false);
|
|
532
554
|
};
|
|
555
|
+
const buttonTemplate = () => {
|
|
556
|
+
return /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
557
|
+
style: {
|
|
558
|
+
display: 'flex',
|
|
559
|
+
outline: 'none',
|
|
560
|
+
alignItems: 'center',
|
|
561
|
+
justifyContent: 'center',
|
|
562
|
+
fontSize: size ?? merge.BUTTON.font.size,
|
|
563
|
+
fontStyle: style ?? merge.BUTTON.font.style,
|
|
564
|
+
fontFamily: font ?? merge.BUTTON.font.family,
|
|
565
|
+
height: height ?? merge.BUTTON.height,
|
|
566
|
+
fontWeight: weight ?? merge.BUTTON.font.weight,
|
|
567
|
+
padding: padding ?? merge.BUTTON.padding,
|
|
568
|
+
borderRadius: radius ?? merge.BUTTON.radius,
|
|
569
|
+
boxSizing: boxSizing ?? merge.BUTTON.box.sizing,
|
|
570
|
+
transition: transition ?? merge.BUTTON.transition,
|
|
571
|
+
border: outline ? 'none' : border ?? merge.BUTTON.border,
|
|
572
|
+
width: contentWidth ? title ? '100%' : 'auto' : width ?? merge.BUTTON.width,
|
|
573
|
+
cursor: disabled ? 'not-allowed' : cursor ?? merge.BUTTON.cursor,
|
|
574
|
+
textTransform: textTransform ?? merge.BUTTON.text.transform,
|
|
575
|
+
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,
|
|
576
|
+
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',
|
|
577
|
+
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
|
|
578
|
+
},
|
|
579
|
+
type: type ?? merge.BUTTON.type,
|
|
580
|
+
disabled: disabled ?? merge.BUTTON.disabled,
|
|
581
|
+
onClick: disabled ? _ => _ : type !== 'submit' ? onClick ? onClick : () => alert('Add click event handler on Button component') : _ => _,
|
|
582
|
+
onMouseEnter: handleMouseEnter,
|
|
583
|
+
onMouseLeave: handleMouseLeave,
|
|
584
|
+
className: classProps
|
|
585
|
+
}, props), isHover && hoverIcon ? hoverIcon : icon ?? null, ' ', label && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
586
|
+
style: {
|
|
587
|
+
marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : merge.BUTTON.icon.marginRight : '0px'
|
|
588
|
+
}
|
|
589
|
+
}, label), ' ', !icon && !label && 'Add icon or label prop on Button component');
|
|
590
|
+
};
|
|
533
591
|
React.useEffect(() => {
|
|
534
592
|
if (!label && !icon) {
|
|
535
593
|
alert('Add icon or label props on Button component');
|
|
536
594
|
}
|
|
537
595
|
}, []);
|
|
538
|
-
return /*#__PURE__*/React__default["default"].createElement("
|
|
596
|
+
return title ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
539
597
|
style: {
|
|
540
|
-
|
|
541
|
-
outline: 'none',
|
|
542
|
-
alignItems: 'center',
|
|
543
|
-
justifyContent: 'center',
|
|
544
|
-
fontSize: size ?? merge.BUTTON.font.size,
|
|
545
|
-
fontStyle: style ?? merge.BUTTON.font.style,
|
|
546
|
-
fontFamily: font ?? merge.BUTTON.font.family,
|
|
598
|
+
position: 'relative',
|
|
547
599
|
height: height ?? merge.BUTTON.height,
|
|
548
|
-
|
|
549
|
-
padding: padding ?? merge.BUTTON.padding,
|
|
550
|
-
borderRadius: radius ?? merge.BUTTON.radius,
|
|
551
|
-
boxSizing: boxSizing ?? merge.BUTTON.box.sizing,
|
|
552
|
-
transition: transition ?? merge.BUTTON.transition,
|
|
553
|
-
border: outline ? 'none' : border ?? merge.BUTTON.border,
|
|
554
|
-
width: contentWidth ? 'auto' : width ?? merge.BUTTON.width,
|
|
555
|
-
cursor: disabled ? 'not-allowed' : cursor ?? merge.BUTTON.cursor,
|
|
556
|
-
textTransform: textTransform ?? merge.BUTTON.text.transform,
|
|
557
|
-
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,
|
|
558
|
-
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',
|
|
559
|
-
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
|
|
600
|
+
width: contentWidth ? '100%' : 'fit-content'
|
|
560
601
|
},
|
|
561
|
-
type: type ?? merge.BUTTON.type,
|
|
562
|
-
disabled: disabled ?? merge.BUTTON.disabled,
|
|
563
|
-
onClick: disabled ? _ => _ : type !== 'submit' ? onClick ? onClick : () => alert('Add click event handler on Button component') : _ => _,
|
|
564
|
-
onMouseEnter: handleMouseEnter,
|
|
565
|
-
onMouseLeave: handleMouseLeave,
|
|
566
602
|
className: classProps
|
|
567
|
-
},
|
|
603
|
+
}, buttonTemplate(), isHover ? /*#__PURE__*/React__default["default"].createElement("p", {
|
|
568
604
|
style: {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
605
|
+
position: 'absolute',
|
|
606
|
+
margin: '0px',
|
|
607
|
+
top: titleVerticalPosition === 'bottom' ? `calc(100% + ${titleVerticalDistance})` : '',
|
|
608
|
+
left: titleHorizontalPosition === 'right' ? `calc(100% + ${titleHorizontalDistance})` : '',
|
|
609
|
+
right: titleHorizontalPosition === 'left' ? `calc(100% + ${titleHorizontalDistance})` : '',
|
|
610
|
+
bottom: titleVerticalPosition === 'top' ? `calc(100% + ${titleVerticalDistance})` : '',
|
|
611
|
+
color: titleColor ?? merge.BUTTON.title.color,
|
|
612
|
+
fontSize: titleSize ?? merge.BUTTON.title.font.size,
|
|
613
|
+
fontStyle: titleStyle ?? merge.BUTTON.title.font.style,
|
|
614
|
+
fontFamily: titleFont ?? merge.BUTTON.title.font.family,
|
|
615
|
+
fontWeight: titleWeight ?? merge.BUTTON.title.font.weight,
|
|
616
|
+
width: titleWidth ?? merge.BUTTON.title.width,
|
|
617
|
+
padding: titlePadding ?? merge.BUTTON.title.padding,
|
|
618
|
+
backgroundColor: titleBackgroundColor ?? merge.BUTTON.title.colors.background,
|
|
619
|
+
borderRadius: titleRadius ?? merge.BUTTON.title.radius
|
|
620
|
+
},
|
|
621
|
+
onMouseEnter: handleMouseEnter,
|
|
622
|
+
onMouseLeave: handleMouseLeave
|
|
623
|
+
}, title) : '') : buttonTemplate();
|
|
572
624
|
};
|
|
573
625
|
Button.propTypes = {
|
|
574
626
|
type: PropTypes__default["default"].string,
|
|
@@ -577,7 +629,6 @@ Button.propTypes = {
|
|
|
577
629
|
weight: PropTypes__default["default"].string,
|
|
578
630
|
font: PropTypes__default["default"].string,
|
|
579
631
|
icon: PropTypes__default["default"].element,
|
|
580
|
-
hoverIcon: PropTypes__default["default"].element,
|
|
581
632
|
color: PropTypes__default["default"].string,
|
|
582
633
|
width: PropTypes__default["default"].string,
|
|
583
634
|
outline: PropTypes__default["default"].bool,
|
|
@@ -591,6 +642,7 @@ Button.propTypes = {
|
|
|
591
642
|
padding: PropTypes__default["default"].string,
|
|
592
643
|
boxSizing: PropTypes__default["default"].string,
|
|
593
644
|
className: PropTypes__default["default"].string,
|
|
645
|
+
hoverIcon: PropTypes__default["default"].element,
|
|
594
646
|
hoverColor: PropTypes__default["default"].string,
|
|
595
647
|
transition: PropTypes__default["default"].string,
|
|
596
648
|
contentWidth: PropTypes__default["default"].bool,
|
|
@@ -600,7 +652,27 @@ Button.propTypes = {
|
|
|
600
652
|
disabledLineColor: PropTypes__default["default"].string,
|
|
601
653
|
btnIconMarginRight: PropTypes__default["default"].string,
|
|
602
654
|
backgroundHoverColor: PropTypes__default["default"].string,
|
|
603
|
-
disabledBackgroundColor: PropTypes__default["default"].string
|
|
655
|
+
disabledBackgroundColor: PropTypes__default["default"].string,
|
|
656
|
+
title: PropTypes__default["default"].string,
|
|
657
|
+
titleFont: PropTypes__default["default"].string,
|
|
658
|
+
titleSize: PropTypes__default["default"].string,
|
|
659
|
+
titleColor: PropTypes__default["default"].string,
|
|
660
|
+
titleWidth: PropTypes__default["default"].string,
|
|
661
|
+
titleStyle: PropTypes__default["default"].string,
|
|
662
|
+
titleWeight: PropTypes__default["default"].string,
|
|
663
|
+
titleRadius: PropTypes__default["default"].string,
|
|
664
|
+
titlePadding: PropTypes__default["default"].string,
|
|
665
|
+
titleBackgroundColor: PropTypes__default["default"].string,
|
|
666
|
+
titleVerticalDistance: PropTypes__default["default"].string,
|
|
667
|
+
titleHorizontalDistance: PropTypes__default["default"].string,
|
|
668
|
+
titleVerticalPosition: PropTypes__default["default"].oneOf(Object.values(vertical)),
|
|
669
|
+
titleHorizontalPosition: PropTypes__default["default"].oneOf(Object.values(horizontal))
|
|
670
|
+
};
|
|
671
|
+
Button.defaultProps = {
|
|
672
|
+
titleVerticalDistance: '4px',
|
|
673
|
+
titleVerticalPosition: 'top',
|
|
674
|
+
titleHorizontalPosition: 'left',
|
|
675
|
+
titleHorizontalDistance: '10px'
|
|
604
676
|
};
|
|
605
677
|
|
|
606
678
|
const SvgPdf = ({
|
|
@@ -714,7 +786,8 @@ const SvgDeleteComponent = ({
|
|
|
714
786
|
fill: fillColor ? fillColor : '#E00'
|
|
715
787
|
}));
|
|
716
788
|
|
|
717
|
-
|
|
789
|
+
// eslint-disable-next-line react/display-name
|
|
790
|
+
const File = /*#__PURE__*/React.forwardRef(({
|
|
718
791
|
or,
|
|
719
792
|
size,
|
|
720
793
|
name,
|
|
@@ -810,8 +883,7 @@ const File = ({
|
|
|
810
883
|
listItemBackgroundColor,
|
|
811
884
|
listItemBackgroundErrorColor,
|
|
812
885
|
maxCHoosenLengthErrorHideTime
|
|
813
|
-
}) => {
|
|
814
|
-
const ref = React.useRef(null);
|
|
886
|
+
}, ref) => {
|
|
815
887
|
const inpRef = React.useRef(null);
|
|
816
888
|
const memoizedItems = React.useMemo(() => filesArray, [filesArray]);
|
|
817
889
|
const classProps = classnames__default["default"](className ?? merge.FILE.className);
|
|
@@ -972,6 +1044,11 @@ const File = ({
|
|
|
972
1044
|
const handleStopPropagation = e => {
|
|
973
1045
|
e.stopPropagation();
|
|
974
1046
|
};
|
|
1047
|
+
React.useImperativeHandle(ref, () => ({
|
|
1048
|
+
handleReset() {
|
|
1049
|
+
setError('');
|
|
1050
|
+
}
|
|
1051
|
+
}));
|
|
975
1052
|
React.useEffect(() => {
|
|
976
1053
|
if (!multiple && defaultData) {
|
|
977
1054
|
if (!defaultData.type) {
|
|
@@ -1020,7 +1097,6 @@ const File = ({
|
|
|
1020
1097
|
}
|
|
1021
1098
|
}, [change]);
|
|
1022
1099
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1023
|
-
ref: ref,
|
|
1024
1100
|
style: {
|
|
1025
1101
|
width: '100%',
|
|
1026
1102
|
maxWidth: maxWidth ?? merge.FILE.maxWidth
|
|
@@ -1219,7 +1295,7 @@ const File = ({
|
|
|
1219
1295
|
listItemBackgroundErrorColor: listItemBackgroundErrorColor ?? merge.FILE.listItem.colors.backgroundError
|
|
1220
1296
|
});
|
|
1221
1297
|
}));
|
|
1222
|
-
};
|
|
1298
|
+
});
|
|
1223
1299
|
File.propTypes = {
|
|
1224
1300
|
or: PropTypes__default["default"].string,
|
|
1225
1301
|
size: PropTypes__default["default"].string,
|
|
@@ -1501,9 +1577,9 @@ function styleInject(css, ref) {
|
|
|
1501
1577
|
}
|
|
1502
1578
|
}
|
|
1503
1579
|
|
|
1504
|
-
var css_248z$
|
|
1580
|
+
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}";
|
|
1505
1581
|
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"};
|
|
1506
|
-
styleInject(css_248z$
|
|
1582
|
+
styleInject(css_248z$a);
|
|
1507
1583
|
|
|
1508
1584
|
/* eslint-disable no-prototype-builtins */
|
|
1509
1585
|
const TH = ({
|
|
@@ -2448,8 +2524,8 @@ const Table = ({
|
|
|
2448
2524
|
key: `${item}_${index}`,
|
|
2449
2525
|
style: {
|
|
2450
2526
|
backgroundColor: tableRowBGColor ?? merge.TABLE.body.row.colors.background,
|
|
2451
|
-
borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : merge.TABLE.body.row.border,
|
|
2452
2527
|
borderColor: hideBorder ? 'transparent' : merge.TABLE.body.row.borderColor,
|
|
2528
|
+
borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : merge.TABLE.body.row.border,
|
|
2453
2529
|
boxShadow: (tableRowItem ? tableRowItem : merge.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : merge.TABLE.body.row.box.shadow : 'none'
|
|
2454
2530
|
}
|
|
2455
2531
|
}, Object.values(item).map((innerItem, innerIndex) => {
|
|
@@ -2528,9 +2604,9 @@ Table.propTypes = {
|
|
|
2528
2604
|
hideBorder: PropTypes__default["default"].bool
|
|
2529
2605
|
};
|
|
2530
2606
|
|
|
2531
|
-
var css_248z$
|
|
2607
|
+
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)}}";
|
|
2532
2608
|
var styles$8 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
|
|
2533
|
-
styleInject(css_248z$
|
|
2609
|
+
styleInject(css_248z$9);
|
|
2534
2610
|
|
|
2535
2611
|
const SvgNext = ({
|
|
2536
2612
|
title,
|
|
@@ -2829,7 +2905,7 @@ const Modal = ({
|
|
|
2829
2905
|
width: '100%',
|
|
2830
2906
|
height: '100%',
|
|
2831
2907
|
position: 'relative',
|
|
2832
|
-
alignItems: '
|
|
2908
|
+
alignItems: 'flex-start',
|
|
2833
2909
|
boxSizing: 'border-box',
|
|
2834
2910
|
justifyContent: 'center',
|
|
2835
2911
|
overflow: type === 'content' ? 'auto' : 'hidden',
|
|
@@ -3269,9 +3345,9 @@ const NumberInput = ({
|
|
|
3269
3345
|
});
|
|
3270
3346
|
};
|
|
3271
3347
|
|
|
3272
|
-
var css_248z$
|
|
3348
|
+
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)}}";
|
|
3273
3349
|
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"};
|
|
3274
|
-
styleInject(css_248z$
|
|
3350
|
+
styleInject(css_248z$8);
|
|
3275
3351
|
|
|
3276
3352
|
const InputTypes = {
|
|
3277
3353
|
TEL: 'tel',
|
|
@@ -3349,6 +3425,7 @@ const Input = ({
|
|
|
3349
3425
|
const [isHover, setIsHover] = React.useState(false);
|
|
3350
3426
|
const [innerErrorMessage, setInnerErrorMessage] = React.useState('');
|
|
3351
3427
|
const inpStyles = {
|
|
3428
|
+
color: color ?? merge.INPUT.color,
|
|
3352
3429
|
width: width ?? merge.INPUT.width,
|
|
3353
3430
|
cursor: disabled ? 'not-allowed' : 'auto',
|
|
3354
3431
|
height: height ?? merge.INPUT.height,
|
|
@@ -3358,7 +3435,6 @@ const Input = ({
|
|
|
3358
3435
|
fontWeight: weight ?? merge.INPUT.font.weight,
|
|
3359
3436
|
fontFamily: family ?? merge.INPUT.font.family,
|
|
3360
3437
|
boxSizing: boxSizing ?? merge.INPUT.box.sizing,
|
|
3361
|
-
color: innerErrorMessage && errorColor ? errorColor : color ? color : merge.INPUT.color,
|
|
3362
3438
|
backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : merge.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : merge.INPUT.colors.background
|
|
3363
3439
|
};
|
|
3364
3440
|
const uuid = v4();
|
|
@@ -3777,9 +3853,9 @@ const SvgArrow = ({
|
|
|
3777
3853
|
fill: fillColor ? fillColor : '#3C393E'
|
|
3778
3854
|
}));
|
|
3779
3855
|
|
|
3780
|
-
var css_248z$
|
|
3856
|
+
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}}";
|
|
3781
3857
|
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"};
|
|
3782
|
-
styleInject(css_248z$
|
|
3858
|
+
styleInject(css_248z$7);
|
|
3783
3859
|
|
|
3784
3860
|
const Select = ({
|
|
3785
3861
|
dots,
|
|
@@ -4002,7 +4078,7 @@ const Select = ({
|
|
|
4002
4078
|
whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
|
|
4003
4079
|
overflow: 'hidden',
|
|
4004
4080
|
textOverflow: 'ellipsis',
|
|
4005
|
-
color:
|
|
4081
|
+
color: isHover ? selectedHoverColor ? selectedHoverColor : merge.SELECT.selected.colors.hover : selectedColor ? selectedColor : merge.SELECT.selected.color
|
|
4006
4082
|
}
|
|
4007
4083
|
}, !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] : newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
|
|
4008
4084
|
if (newSelected[index][keyNames.name]) {
|
|
@@ -4256,9 +4332,9 @@ const SvgToasterSuccess = ({
|
|
|
4256
4332
|
fill: fillColor ? fillColor : '#0DA574'
|
|
4257
4333
|
}));
|
|
4258
4334
|
|
|
4259
|
-
var css_248z$
|
|
4335
|
+
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}}";
|
|
4260
4336
|
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"};
|
|
4261
|
-
styleInject(css_248z$
|
|
4337
|
+
styleInject(css_248z$6);
|
|
4262
4338
|
|
|
4263
4339
|
let wWidth$1 = window.innerWidth;
|
|
4264
4340
|
const ToasterType = {
|
|
@@ -4561,9 +4637,9 @@ const SvgTooltip = ({
|
|
|
4561
4637
|
fill: fillColor ? fillColor : '#D1D1D1'
|
|
4562
4638
|
}));
|
|
4563
4639
|
|
|
4564
|
-
var css_248z$
|
|
4640
|
+
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}";
|
|
4565
4641
|
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"};
|
|
4566
|
-
styleInject(css_248z$
|
|
4642
|
+
styleInject(css_248z$5);
|
|
4567
4643
|
|
|
4568
4644
|
const Tooltip = ({
|
|
4569
4645
|
type,
|
|
@@ -4700,9 +4776,9 @@ const SvgCaptchaArrowDown = ({
|
|
|
4700
4776
|
fill: fillColor ? fillColor : '#00236A'
|
|
4701
4777
|
}));
|
|
4702
4778
|
|
|
4703
|
-
var css_248z$
|
|
4779
|
+
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}";
|
|
4704
4780
|
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"};
|
|
4705
|
-
styleInject(css_248z$
|
|
4781
|
+
styleInject(css_248z$4);
|
|
4706
4782
|
|
|
4707
4783
|
const Captcha = ({
|
|
4708
4784
|
color,
|
|
@@ -4831,9 +4907,9 @@ Captcha.propTypes = {
|
|
|
4831
4907
|
getRange: PropTypes__default["default"].func.isRequired
|
|
4832
4908
|
};
|
|
4833
4909
|
|
|
4834
|
-
var css_248z$
|
|
4910
|
+
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}";
|
|
4835
4911
|
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"};
|
|
4836
|
-
styleInject(css_248z$
|
|
4912
|
+
styleInject(css_248z$3);
|
|
4837
4913
|
|
|
4838
4914
|
const Stepper = ({
|
|
4839
4915
|
stepLength,
|
|
@@ -4966,8 +5042,8 @@ Checkbox.defaultProps = {
|
|
|
4966
5042
|
direction: 'vertical'
|
|
4967
5043
|
};
|
|
4968
5044
|
|
|
4969
|
-
var css_248z$
|
|
4970
|
-
styleInject(css_248z$
|
|
5045
|
+
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}";
|
|
5046
|
+
styleInject(css_248z$2);
|
|
4971
5047
|
|
|
4972
5048
|
const PositionSide = {
|
|
4973
5049
|
TOP: 'top',
|
|
@@ -5190,9 +5266,6 @@ Textarea.defaultProps = {
|
|
|
5190
5266
|
characterCountPosition: 'top'
|
|
5191
5267
|
};
|
|
5192
5268
|
|
|
5193
|
-
var css_248z$2 = "";
|
|
5194
|
-
styleInject(css_248z$2);
|
|
5195
|
-
|
|
5196
5269
|
const TypographyType = {
|
|
5197
5270
|
p: 'p',
|
|
5198
5271
|
h1: 'h1',
|