@xaypay/tui 0.0.54 → 0.0.56

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.js CHANGED
@@ -5,12 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var PropTypes = require('prop-types');
7
7
  var classnames = require('classnames');
8
+ var styled = require('styled-components');
8
9
 
9
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
11
 
11
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
13
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
13
14
  var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
15
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
14
16
 
15
17
  function styleInject(css, ref) {
16
18
  if ( ref === void 0 ) ref = {};
@@ -374,8 +376,10 @@ const compereConfigs = () => {
374
376
  try {
375
377
  packageConfig = require('../tui.config.js');
376
378
  } catch (error) {
379
+ packageConfig = require('../../tui.config.js');
377
380
  // console.log(error, 'Package: tui.config.js file is not define');
378
381
  }
382
+
379
383
  try {
380
384
  projectConfig = require('../../../../tui.config.js');
381
385
  } catch (error) {
@@ -400,18 +404,47 @@ const Typography = ({
400
404
  size,
401
405
  color,
402
406
  weight,
403
- onClick,
407
+ radius,
408
+ border,
409
+ cursor,
410
+ margin,
411
+ padding,
404
412
  variant,
413
+ bgColor,
414
+ onClick,
405
415
  children,
416
+ textAlign,
417
+ fontStyle,
406
418
  className,
419
+ textShadow,
420
+ lineHeight,
421
+ colorHover,
422
+ fontFamily,
423
+ textTransform,
424
+ textDecoration,
407
425
  ...props
408
426
  }) => {
409
427
  const configStyles = compereConfigs();
410
428
  const classProps = classnames__default["default"](className);
429
+ const [isHover, setIsHover] = React.useState(false);
411
430
  const [validVariant, setValidVariant] = React.useState(false);
412
431
  const [style, setStyle] = React.useState({
413
- fontSize: size ? size : configStyles.TYPOGRAPHY['fSize' + variant],
414
- fontWeight: weight ? weight : configStyles.TYPOGRAPHY['fWeight' + variant]
432
+ border: border ? border : configStyles.TYPOGRAPHY.border,
433
+ cursor: cursor ? cursor : configStyles.TYPOGRAPHY.cursor,
434
+ borderRadius: radius ? radius : configStyles.TYPOGRAPHY.radius,
435
+ fontSize: size ? size : configStyles.TYPOGRAPHY['size' + variant],
436
+ margin: margin ? margin : configStyles.TYPOGRAPHY['margin' + variant],
437
+ fontWeight: weight ? weight : configStyles.TYPOGRAPHY['weight' + variant],
438
+ padding: padding ? padding : configStyles.TYPOGRAPHY['padding' + variant],
439
+ textShadow: textShadow ? textShadow : configStyles.TYPOGRAPHY.textShadow,
440
+ textAlign: textAlign ? textAlign : configStyles.TYPOGRAPHY['textAlign' + variant],
441
+ backgroundColor: bgColor ? bgColor : configStyles.TYPOGRAPHY['bgColor' + variant],
442
+ fontStyle: fontStyle ? fontStyle : configStyles.TYPOGRAPHY['fontStyle' + variant],
443
+ lineHeight: lineHeight ? lineHeight : configStyles.TYPOGRAPHY['lineHeight' + variant],
444
+ fontFamily: fontFamily ? fontFamily : configStyles.TYPOGRAPHY['fontFamily' + variant],
445
+ textTransform: textTransform ? textTransform : configStyles.TYPOGRAPHY['textTransform' + variant],
446
+ textDecoration: textDecoration ? textDecoration : configStyles.TYPOGRAPHY['textDecoration' + variant],
447
+ color: isHover ? colorHover ? colorHover : configStyles.TYPOGRAPHY['colorHover' + variant] : color ? color : configStyles.TYPOGRAPHY['color' + variant]
415
448
  });
416
449
  React.useEffect(() => {
417
450
  if (!Object.values(TypographyType).includes(variant)) {
@@ -428,21 +461,46 @@ const Typography = ({
428
461
  });
429
462
  }
430
463
  }, [color]);
464
+ const handleMouseEnter = () => {
465
+ setIsHover(true);
466
+ };
467
+ const handleMouseLeave = () => {
468
+ setIsHover(false);
469
+ };
431
470
  const tagT = /*#__PURE__*/React__default["default"].createElement(variant, {
432
471
  style,
433
472
  ...props,
434
473
  className: classProps,
435
- onClick: onClick ? onClick : _ => _
474
+ onClick: onClick ? onClick : _ => _,
475
+ onMouseEnter: handleMouseEnter,
476
+ onMouseLeave: handleMouseLeave
436
477
  }, [children]);
437
478
  return validVariant ? 'Please set Typography valid variant' : tagT;
438
479
  };
439
480
  Typography.propTypes = {
440
481
  size: PropTypes__default["default"].string,
441
482
  color: PropTypes__default["default"].string,
442
- weight: PropTypes__default["default"].string,
443
483
  onClick: PropTypes__default["default"].func,
484
+ weight: PropTypes__default["default"].string,
485
+ border: PropTypes__default["default"].string,
486
+ cursor: PropTypes__default["default"].string,
487
+ margin: PropTypes__default["default"].string,
488
+ radius: PropTypes__default["default"].string,
489
+ bgColor: PropTypes__default["default"].string,
490
+ padding: PropTypes__default["default"].string,
491
+ textAlign: PropTypes__default["default"].string,
444
492
  className: PropTypes__default["default"].string,
445
- variant: PropTypes__default["default"].oneOf(Object.values(TypographyType)).isRequired
493
+ fontStyle: PropTypes__default["default"].string,
494
+ lineHeight: PropTypes__default["default"].string,
495
+ textShadow: PropTypes__default["default"].string,
496
+ fontFamily: PropTypes__default["default"].string,
497
+ colorHover: PropTypes__default["default"].string,
498
+ textTransform: PropTypes__default["default"].string,
499
+ textDecoration: PropTypes__default["default"].string,
500
+ variant: PropTypes__default["default"].oneOf(Object.values(TypographyType))
501
+ };
502
+ Typography.defaultProps = {
503
+ variant: 'p'
446
504
  };
447
505
 
448
506
  const Modal = ({
@@ -515,16 +573,18 @@ Modal.propTypes = {
515
573
  data: PropTypes__default["default"].array
516
574
  };
517
575
 
518
- var css_248z$7 = ".input-module_input-wrap__NunrE{width:100%}.input-module_input-content__kP7lZ{display:flex;width:100%}.input-module_input-title__giCsY{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px}.input-module_inputErrorMessages__hx490{color:#e00;font-size:14px;line-height:19px}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}";
519
- var styles$7 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","input-title":"input-module_input-title__giCsY","inputErrorMessages":"input-module_inputErrorMessages__hx490"};
576
+ var css_248z$7 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}@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)}}";
577
+ 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"};
520
578
  styleInject(css_248z$7);
521
579
 
522
580
  const InputTypes = {
581
+ TEL: 'tel',
523
582
  TEXT: "text",
524
583
  PASSWORD: "password"
525
584
  };
526
585
  const Input = ({
527
586
  type,
587
+ size,
528
588
  name,
529
589
  color,
530
590
  label,
@@ -532,33 +592,62 @@ const Input = ({
532
592
  width,
533
593
  height,
534
594
  radius,
535
- border,
536
595
  padding,
537
596
  tooltip,
538
- bgColor,
539
597
  leftIcon,
540
- fontSize,
541
598
  required,
542
599
  disabled,
543
600
  onChange,
601
+ transform,
544
602
  iconWidth,
545
603
  rightIcon,
546
604
  className,
547
605
  boxSizing,
548
606
  boxShadow,
549
- errorMesage,
550
- borderColor,
607
+ errorLeft,
608
+ errorSize,
609
+ labelSize,
610
+ labelColor,
611
+ errorColor,
551
612
  placeholder,
613
+ errorZindex,
614
+ errorBottom,
615
+ labelWeight,
616
+ errorMessage,
552
617
  autoComplete,
618
+ labelDisplay,
619
+ errorPosition,
553
620
  boxShadowHover,
621
+ errorClassName,
622
+ errorAnimation,
623
+ errorLineHeight,
624
+ labelLineHeight,
625
+ backgroundColor,
626
+ labelMarginBottom,
627
+ errorAnimationDuration,
554
628
  ...props
555
629
  }) => {
556
630
  const [show, setShow] = React.useState(false);
557
631
  const [isHover, setIsHover] = React.useState(false);
558
- const [tooltipStatus, setTooltipStatus] = React.useState(false);
559
632
  const random = Math.floor(Math.random() * 1000 + 1);
560
633
  const configStyles = compereConfigs();
561
- const classProps = classnames__default["default"](className);
634
+ const classProps = classnames__default["default"](className ? className : configStyles.INPUT.className);
635
+ const errorShow = styled.keyframes`
636
+ 100% {
637
+ bottom: '-20px';
638
+ transform: scale3d(1,1,1);
639
+ -webkit-transform: scale3d(1,1,1);
640
+ -moz-transform: scale3d(1,1,1);
641
+ -ms-transform: scale3d(1,1,1);
642
+ -o-transform: scale3d(1,1,1);
643
+ }
644
+ `;
645
+ const animation = _ => styled.css`
646
+ ${errorShow} ${errorAnimationDuration ? errorAnimationDuration : configStyles.INPUT.errorAnimationDuration} forwards
647
+ `;
648
+ const P = styled__default["default"].p`
649
+ animation: ${errorAnimation ? animation : 'none'};
650
+ `;
562
651
  const handleChange = event => {
563
652
  onChange ? onChange(event.target.value) : _ => _;
564
653
  };
@@ -571,7 +660,15 @@ const Input = ({
571
660
  return /*#__PURE__*/React__default["default"].createElement("div", {
572
661
  className: `${styles$7["input-wrap"]}`
573
662
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
574
- className: `${styles$7["input-title"]}`
663
+ className: `${styles$7["input-title"]}`,
664
+ style: {
665
+ color: labelColor ? labelColor : configStyles.INPUT.labelColor,
666
+ fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
667
+ display: labelDisplay ? labelDisplay : configStyles.INPUT.labelDisplay,
668
+ fontWeight: labelWeight ? labelWeight : configStyles.INPUT.labelWeight,
669
+ lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
670
+ marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
671
+ }
575
672
  }, label, " ", required && /*#__PURE__*/React__default["default"].createElement("sup", {
576
673
  style: {
577
674
  color: "#ee0000"
@@ -580,11 +677,11 @@ const Input = ({
580
677
  className: `${styles$7["input-content"]}`,
581
678
  style: {
582
679
  borderRadius: radius ? radius : configStyles.INPUT.radius,
583
- boxShadow: isHover ? boxShadowHover ? boxShadowHover : configStyles.INPUT.boxShadowHover : boxShadow ? boxShadow : configStyles.INPUT.boxShadow
680
+ boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${configStyles.INPUT.errorColor}` : isHover ? boxShadowHover ? boxShadowHover : configStyles.INPUT.boxShadowHover : boxShadow ? boxShadow : configStyles.INPUT.boxShadow
584
681
  },
585
682
  onMouseEnter: handleMouseEnter,
586
683
  onMouseLeave: handleMouseLeave
587
- }, leftIcon && leftIcon.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
684
+ }, leftIcon && leftIcon.length > 0 && type != 'tel' ? /*#__PURE__*/React__default["default"].createElement("div", {
588
685
  onMouseUp: type === 'password' ? _ => setShow(false) : _ => _,
589
686
  onMouseDown: type === 'password' ? _ => setShow(true) : _ => _,
590
687
  onMouseOut: type === 'password' ? _ => setShow(false) : _ => _,
@@ -596,9 +693,21 @@ const Input = ({
596
693
  boxSizing: boxSizing ? boxSizing : configStyles.INPUT.boxSizing,
597
694
  borderTopLeftRadius: radius ? radius : configStyles.INPUT.radius,
598
695
  borderBottomLeftRadius: radius ? radius : configStyles.INPUT.radius,
599
- backgroundColor: disabled ? '#FBFBFB' : bgColor ? bgColor : configStyles.INPUT.bgColor
696
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
600
697
  }
601
- }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
698
+ }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/React__default["default"].createElement("div", {
699
+ style: {
700
+ pointerEvents: disabled ? 'none' : 'auto',
701
+ fontSize: size ? size : configStyles.INPUT.size,
702
+ height: height ? height : configStyles.INPUT.height,
703
+ padding: padding ? padding : configStyles.INPUT.padding,
704
+ boxSizing: boxSizing ? boxSizing : configStyles.INPUT.boxSizing,
705
+ borderTopLeftRadius: radius ? radius : configStyles.INPUT.radius,
706
+ borderBottomLeftRadius: radius ? radius : configStyles.INPUT.radius,
707
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor,
708
+ color: errorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color
709
+ }
710
+ }, "+374") : '', /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
602
711
  value: value,
603
712
  className: classProps,
604
713
  onChange: handleChange,
@@ -612,13 +721,13 @@ const Input = ({
612
721
  outline: 'none',
613
722
  pointerEvents: disabled ? 'none' : 'auto',
614
723
  width: width ? width : configStyles.INPUT.width,
724
+ fontSize: size ? size : configStyles.INPUT.size,
615
725
  height: height ? height : configStyles.INPUT.height,
616
726
  padding: padding ? padding : configStyles.INPUT.padding,
617
727
  borderRadius: radius ? radius : configStyles.INPUT.radius,
618
- fontSize: fontSize ? fontSize : configStyles.INPUT.fontSize,
619
728
  boxSizing: boxSizing ? boxSizing : configStyles.INPUT.boxSizing,
620
- color: errorMesage ? 'rgba(238, 0, 0, 1)' : color ? color : configStyles.INPUT.color,
621
- backgroundColor: disabled ? '#FBFBFB' : bgColor ? bgColor : configStyles.INPUT.bgColor
729
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor,
730
+ color: errorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color
622
731
  }
623
732
  })), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
624
733
  onMouseUp: type === 'password' ? _ => setShow(false) : _ => _,
@@ -626,21 +735,27 @@ const Input = ({
626
735
  onMouseOut: type === 'password' ? _ => setShow(false) : _ => _,
627
736
  style: {
628
737
  cursor: type === 'password' ? 'pointer' : 'default',
629
- border: border ? border : configStyles.INPUT.border,
630
738
  height: height ? height : configStyles.INPUT.height,
631
739
  padding: padding ? padding : configStyles.INPUT.padding,
632
740
  width: iconWidth ? iconWidth : configStyles.INPUT.iconWidth,
633
741
  boxSizing: boxSizing ? boxSizing : configStyles.INPUT.boxSizing,
634
742
  borderTopRightRadius: radius ? radius : configStyles.INPUT.radius,
635
743
  borderBottomRightRadius: radius ? radius : configStyles.INPUT.radius,
636
- backgroundColor: disabled ? '#FBFBFB' : bgColor ? bgColor : configStyles.INPUT.bgColor
744
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
637
745
  }
638
- }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? /*#__PURE__*/React__default["default"].createElement(Typography, {
639
- variant: "p",
640
- onClick: () => setTooltipStatus(!tooltipStatus)
641
- }, "\u24D8") : null, tooltipStatus ? /*#__PURE__*/React__default["default"].createElement("p", null, tooltip) : null, errorMesage ? /*#__PURE__*/React__default["default"].createElement("span", {
642
- className: styles$7.inputErrorMessages
643
- }, errorMesage) : "");
746
+ }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip && tooltip.length > 0 ? tooltip[0] : '', errorMessage ? /*#__PURE__*/React__default["default"].createElement(P, {
747
+ style: {
748
+ left: errorLeft ? errorLeft : configStyles.INPUT.errorLeft,
749
+ color: errorColor ? errorColor : configStyles.INPUT.errorColor,
750
+ fontSize: errorSize ? errorSize : configStyles.INPUT.errorSize,
751
+ bottom: errorBottom ? errorBottom : configStyles.INPUT.errorBottom,
752
+ zIndex: errorZindex ? errorZindex : configStyles.INPUT.errorZindex,
753
+ position: errorPosition ? errorPosition : configStyles.INPUT.errorPosition,
754
+ lineHeight: errorLineHeight ? errorLineHeight : configStyles.INPUT.errorLineHeight,
755
+ transform: !errorAnimation ? 'scale3d(1,1,1)' : transform ? transform : configStyles.INPUT.transform
756
+ },
757
+ className: errorClassName ? errorClassName : configStyles.INPUT.errorClassName
758
+ }, errorMessage) : '');
644
759
  };
645
760
  Input.propTypes = {
646
761
  name: PropTypes__default["default"].string,
@@ -653,17 +768,35 @@ Input.propTypes = {
653
768
  disabled: PropTypes__default["default"].bool,
654
769
  height: PropTypes__default["default"].string,
655
770
  radius: PropTypes__default["default"].string,
656
- bgColor: PropTypes__default["default"].string,
771
+ padding: PropTypes__default["default"].string,
657
772
  fontSize: PropTypes__default["default"].string,
658
- tooltip: PropTypes__default["default"].element,
773
+ transform: PropTypes__default["default"].string,
659
774
  className: PropTypes__default["default"].string,
660
775
  iconWidth: PropTypes__default["default"].string,
661
776
  boxSizing: PropTypes__default["default"].string,
662
777
  boxShadow: PropTypes__default["default"].string,
778
+ errorSize: PropTypes__default["default"].string,
779
+ errorLeft: PropTypes__default["default"].string,
780
+ labelSize: PropTypes__default["default"].string,
781
+ errorColor: PropTypes__default["default"].string,
782
+ labelColor: PropTypes__default["default"].string,
663
783
  placeholder: PropTypes__default["default"].string,
664
- errorMesage: PropTypes__default["default"].string,
784
+ errorZindex: PropTypes__default["default"].string,
785
+ errorBottom: PropTypes__default["default"].string,
786
+ labelWeight: PropTypes__default["default"].string,
787
+ errorMessage: PropTypes__default["default"].string,
665
788
  autoComplete: PropTypes__default["default"].string,
789
+ errorAnimation: PropTypes__default["default"].bool,
790
+ labelDisplay: PropTypes__default["default"].string,
791
+ errorPosition: PropTypes__default["default"].string,
666
792
  boxShadowHover: PropTypes__default["default"].string,
793
+ errorClassName: PropTypes__default["default"].string,
794
+ backgroundColor: PropTypes__default["default"].string,
795
+ errorLineHeight: PropTypes__default["default"].string,
796
+ labelLineHeight: PropTypes__default["default"].string,
797
+ labelMarginBottom: PropTypes__default["default"].string,
798
+ errorAnimationDuration: PropTypes__default["default"].string,
799
+ tooltip: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
667
800
  leftIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
668
801
  rightIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
669
802
  type: PropTypes__default["default"].oneOf(Object.values(InputTypes))
@@ -727,27 +860,30 @@ Radio.defaultProps = {
727
860
  };
728
861
 
729
862
  const Button = ({
863
+ size,
730
864
  type,
865
+ font,
731
866
  color,
732
867
  label,
733
868
  width,
734
869
  height,
735
870
  cursor,
871
+ weight,
736
872
  border,
873
+ radius,
737
874
  outline,
738
875
  padding,
739
876
  onClick,
740
- fontSize,
741
877
  disabled,
742
878
  className,
743
879
  boxSizing,
744
880
  transition,
745
881
  contentWidth,
746
- borderRadius,
882
+ disabledColor,
883
+ textTransform,
747
884
  backgroundColor,
748
- disabledThemeColor,
749
- disabledThemeBgColor,
750
- disabledThemeLineColor,
885
+ disabledLineColor,
886
+ disabledBackgroundColor,
751
887
  ...props
752
888
  }) => {
753
889
  const [isHover, setIsHover] = React.useState(false);
@@ -766,18 +902,21 @@ const Button = ({
766
902
  };
767
903
  return /*#__PURE__*/React__default["default"].createElement("button", _extends({
768
904
  style: {
905
+ fontSize: size ? size : configStyles.BUTTON.size,
906
+ fontFamily: font ? font : configStyles.BUTTON.font,
769
907
  height: height ? height : configStyles.BUTTON.height,
908
+ fontWeight: weight ? weight : configStyles.BUTTON.weight,
770
909
  padding: padding ? padding : configStyles.BUTTON.padding,
771
- fontSize: fontSize ? fontSize : configStyles.BUTTON.fontSize,
910
+ borderRadius: radius ? radius : configStyles.BUTTON.radius,
772
911
  boxSizing: boxSizing ? boxSizing : configStyles.BUTTON.boxSizing,
773
912
  transition: transition ? transition : configStyles.BUTTON.transition,
774
913
  border: outline ? 'none' : border ? border : configStyles.BUTTON.border,
775
914
  width: contentWidth ? 'auto' : width ? width : configStyles.BUTTON.width,
776
- borderRadius: borderRadius ? borderRadius : configStyles.BUTTON.borderRadius,
777
915
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.BUTTON.cursor,
778
- backgroundColor: (outline || !outline) && disabled ? disabledThemeBgColor ? disabledThemeBgColor : configStyles.BUTTON.disabledThemeBgColor : outline && !disabled ? isHover ? backgroundColor ? backgroundColor : configStyles.BUTTON.bgColor : '#ffffff' : backgroundColor ? backgroundColor : configStyles.BUTTON.bgColor,
779
- boxShadow: outline ? disabled ? `inset 0 0 0 2px ${disabledThemeLineColor ? disabledThemeLineColor : configStyles.BUTTON.disabledThemeLineColor}` : `inset 0 0 0 2px ${backgroundColor ? backgroundColor : configStyles.BUTTON.bgColor}` : 'none',
780
- color: (outline || !outline) && disabled ? disabledThemeColor ? disabledThemeColor : configStyles.BUTTON.disabledThemeColor : outline && !disabled ? isHover ? color ? color : configStyles.BUTTON.color : backgroundColor ? backgroundColor : configStyles.BUTTON.bgColor : color ? color : configStyles.BUTTON.color
916
+ textTransform: textTransform ? textTransform : configStyles.BUTTON.textTransform,
917
+ backgroundColor: (outline || !outline) && disabled ? disabledBackgroundColor ? disabledBackgroundColor : configStyles.BUTTON.disabledBackgroundColor : outline && !disabled ? isHover ? backgroundColor ? backgroundColor : configStyles.BUTTON.backgroundColor : '#ffffff' : backgroundColor ? backgroundColor : configStyles.BUTTON.backgroundColor,
918
+ boxShadow: outline ? disabled ? `inset 0 0 0 2px ${disabledLineColor ? disabledLineColor : configStyles.BUTTON.disabledLineColor}` : `inset 0 0 0 2px ${backgroundColor ? backgroundColor : configStyles.BUTTON.backgroundColor}` : 'none',
919
+ color: (outline || !outline) && disabled ? disabledColor ? disabledColor : configStyles.BUTTON.disabledColor : outline && !disabled ? isHover ? color ? color : configStyles.BUTTON.color : backgroundColor ? backgroundColor : configStyles.BUTTON.backgroundColor : color ? color : configStyles.BUTTON.color
781
920
  },
782
921
  type: type ? type : configStyles.BUTTON.type,
783
922
  disabled: disabled ? disabled : configStyles.BUTTON.disabled,
@@ -789,26 +928,29 @@ const Button = ({
789
928
  };
790
929
  Button.propTypes = {
791
930
  type: PropTypes__default["default"].string,
931
+ size: PropTypes__default["default"].string,
932
+ font: PropTypes__default["default"].string,
792
933
  color: PropTypes__default["default"].string,
793
934
  width: PropTypes__default["default"].string,
794
935
  outline: PropTypes__default["default"].bool,
795
936
  onClick: PropTypes__default["default"].func,
937
+ weight: PropTypes__default["default"].string,
796
938
  height: PropTypes__default["default"].string,
797
939
  cursor: PropTypes__default["default"].string,
798
940
  border: PropTypes__default["default"].string,
799
941
  disabled: PropTypes__default["default"].bool,
942
+ radius: PropTypes__default["default"].string,
800
943
  padding: PropTypes__default["default"].string,
801
- fontSize: PropTypes__default["default"].string,
802
944
  boxSizing: PropTypes__default["default"].string,
803
945
  className: PropTypes__default["default"].string,
804
946
  transition: PropTypes__default["default"].string,
805
947
  contentWidth: PropTypes__default["default"].bool,
806
- borderRadius: PropTypes__default["default"].string,
948
+ textTransform: PropTypes__default["default"].string,
949
+ disabledColor: PropTypes__default["default"].string,
807
950
  backgroundColor: PropTypes__default["default"].string,
808
951
  label: PropTypes__default["default"].string.isRequired,
809
- disabledThemeColor: PropTypes__default["default"].string,
810
- disabledThemeBgColor: PropTypes__default["default"].string,
811
- disabledThemeLineColor: PropTypes__default["default"].string
952
+ disabledLineColor: PropTypes__default["default"].string,
953
+ disabledBackgroundColor: PropTypes__default["default"].string
812
954
  };
813
955
 
814
956
  var css_248z$5 = ".select-module_select-title__c8bR7{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:none}.select-module_select-content__GCMDX{display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.select-module_select-content-top__Aw-fB.select-module_active__v2Dce{border-color:#00236a}.select-module_select-content-top__Aw-fB:hover{border-color:#3c393e}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);left:0;max-height:0;max-width:400px;overflow:hidden;position:absolute;top:52px;width:100%;z-index:1}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes select-module_select-show__391hQ{to{max-height:400px}}.select-module_select-content-top-text__euajq{align-items:center;display:flex;flex:1;flex-direction:row;flex-wrap:nowrap}.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>i{color:#3c393e;font-size:12px!important}.select-module_select-content-top-icon__MBrGK>i:not(:last-child){align-items:center;border-right:1px solid #eee;display:flex;height:22px;margin-right:8px;padding:0 8px}.select-module_select-content-bottom-row__eKq5L{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;line-height:22px;margin-bottom:2px;min-height:46px;padding:0 15px;transition:background .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_select-content-bottom-row__eKq5L:hover{background:unset;color:#00236a}.select-module_error-message__-ac6X{border:2px solid #e00!important}.select-module_eMessage__Mm-F7{color:#e00}";
@@ -937,7 +1079,9 @@ Select.defaultProps = {
937
1079
  required: false
938
1080
  };
939
1081
 
940
- var css_248z$4 = ".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:20px;min-width:50px;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}";
1082
+ var ReactInfoIcon = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8 0C3.58214 0 0 3.58214 0 8C0 12.4179 3.58214 16 8 16C12.4179 16 16 12.4179 16 8C16 3.58214 12.4179 0 8 0ZM8.57143 11.8571C8.57143 11.9357 8.50714 12 8.42857 12H7.57143C7.49286 12 7.42857 11.9357 7.42857 11.8571V7C7.42857 6.92143 7.49286 6.85714 7.57143 6.85714H8.42857C8.50714 6.85714 8.57143 6.92143 8.57143 7V11.8571ZM8 5.71429C7.7757 5.70971 7.56213 5.61739 7.40513 5.45714C7.24812 5.2969 7.16018 5.08149 7.16018 4.85714C7.16018 4.6328 7.24812 4.41739 7.40513 4.25714C7.56213 4.0969 7.7757 4.00458 8 4C8.2243 4.00458 8.43787 4.0969 8.59488 4.25714C8.75189 4.41739 8.83982 4.6328 8.83982 4.85714C8.83982 5.08149 8.75189 5.2969 8.59488 5.45714C8.43787 5.61739 8.2243 5.70971 8 5.71429Z\" fill=\"#D1D1D1\"/>\n</svg>";
1083
+
1084
+ var css_248z$4 = ".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}";
941
1085
  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"};
942
1086
  styleInject(css_248z$4);
943
1087
 
@@ -946,58 +1090,57 @@ const Tooltip = ({
946
1090
  text,
947
1091
  width,
948
1092
  color,
949
- tIcon,
950
1093
  height,
951
- bgColor,
1094
+ radius,
952
1095
  fontSize,
953
- tBgColor,
954
1096
  className,
955
1097
  fontFamily,
956
- borderRadius,
957
- tBorderRadius
1098
+ tooltipIcon,
1099
+ tooltipWidth,
1100
+ tooltipRadius,
1101
+ backgroundColor,
1102
+ tooltipBackgroundColor
958
1103
  }) => {
959
1104
  const tooltipRef = /*#__PURE__*/React.createRef(null);
960
- const [tooltipWidth, setTooltipWidth] = React.useState(0);
961
- const [tooltipHeight, setTooltipHeight] = React.useState(0);
1105
+ const [checkTooltipWidth, setCheckTooltipWidth] = React.useState(0);
1106
+ const [checkTooltipHeight, setCheckTooltipHeight] = React.useState(0);
962
1107
  const [showTooltip, setShowTooltip] = React.useState(false);
963
1108
  const configStyles = compereConfigs();
964
1109
  const classProps = classnames__default["default"](styles$4['tooltip'], className);
965
- React.useEffect(_ => {
966
- if (!type && !text) {
967
- alert('Add type and text on tooltip');
968
- } else if (!type) {
969
- alert('Add type on tooltip');
970
- } else if (!text) {
971
- alert('Add text on tooltip');
972
- }
973
- tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setTooltipWidth(tooltipRef.current.clientWidth);
974
- tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setTooltipHeight(tooltipRef.current.clientHeight);
975
- }, [type, text, tooltipWidth, tooltipRef]);
976
1110
  const handleShow = () => {
977
1111
  setShowTooltip(!showTooltip);
978
1112
  };
1113
+ React.useEffect(_ => {
1114
+ if (!text) {
1115
+ alert('Add text on tooltip');
1116
+ }
1117
+ tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setCheckTooltipWidth(tooltipRef.current.clientWidth);
1118
+ tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
1119
+ }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
979
1120
  return /*#__PURE__*/React__default["default"].createElement("div", {
980
1121
  className: `${styles$4['tooltip-block']}`,
981
1122
  style: {
982
1123
  width: width ? width : configStyles.TOOLTIP.width,
983
1124
  height: height ? height : configStyles.TOOLTIP.height,
984
- backgroundColor: bgColor ? bgColor : configStyles.TOOLTIP.bgColor
1125
+ borderRadius: radius ? radius : configStyles.TOOLTIP.radius,
1126
+ backgroundColor: backgroundColor ? backgroundColor : configStyles.TOOLTIP.backgroundColor
985
1127
  }
986
1128
  }, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
987
1129
  ref: tooltipRef,
988
1130
  className: classProps,
989
1131
  style: {
990
- backgroundColor: tBgColor ? tBgColor : configStyles.TOOLTIP.tBgColor,
991
- borderRadius: tBorderRadius ? tBorderRadius : configStyles.TOOLTIP.tBorderRadius,
992
- top: type === 'top' ? `calc(-${tooltipHeight + 7}px)` : type === 'bottom' ? 'calc(100% + 7px)' : type === 'left' || type === 'right' ? `calc(50% - ${tooltipHeight / 2}px)` : '0px',
993
- left: type === 'top' || type === 'bottom' ? `calc(50% - ${tooltipWidth / 2}px)` : type === 'left' ? `-${tooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
1132
+ width: tooltipWidth ? tooltipWidth : configStyles.TOOLTIP.tooltipWidth,
1133
+ borderRadius: tooltipRadius ? tooltipRadius : configStyles.TOOLTIP.tooltipRadius,
1134
+ backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
1135
+ top: type === 'top' ? `calc(-${checkTooltipHeight + 7}px)` : type === 'bottom' ? 'calc(100% + 7px)' : type === 'left' || type === 'right' ? `calc(50% - ${checkTooltipHeight / 2}px)` : '0px',
1136
+ left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
994
1137
  }
995
1138
  }, /*#__PURE__*/React__default["default"].createElement("div", {
996
1139
  className: `${styles$4['tooltip-rel']}`
997
1140
  }, /*#__PURE__*/React__default["default"].createElement("div", {
998
1141
  className: `${styles$4['tooltip-decor']}`,
999
1142
  style: {
1000
- backgroundColor: tBgColor ? tBgColor : configStyles.TOOLTIP.bgColor,
1143
+ backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
1001
1144
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
1002
1145
  top: type === 'top' ? 'calc(100% + 5px)' : type === 'bottom' ? '-15px' : type === 'right' || type === 'left' ? 'calc(50% - 5px)' : '0px'
1003
1146
  }
@@ -1005,7 +1148,6 @@ const Tooltip = ({
1005
1148
  style: {
1006
1149
  color: color ? color : configStyles.TOOLTIP.color,
1007
1150
  fontSize: fontSize ? fontSize : configStyles.TOOLTIP.fontSize,
1008
- lineHeight: fontSize ? fontSize : configStyles.TOOLTIP.fontSize,
1009
1151
  fontFamily: fontFamily ? fontFamily : configStyles.TOOLTIP.fontFamily
1010
1152
  }
1011
1153
  }, text))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1013,22 +1155,28 @@ const Tooltip = ({
1013
1155
  cursor: 'pointer'
1014
1156
  },
1015
1157
  onClick: handleShow
1016
- }));
1158
+ }, tooltipIcon && tooltipIcon[0] ? tooltipIcon[0] : /*#__PURE__*/React__default["default"].createElement("img", {
1159
+ src: ReactInfoIcon
1160
+ })));
1017
1161
  };
1018
1162
  Tooltip.propTypes = {
1163
+ type: PropTypes__default["default"].string,
1019
1164
  width: PropTypes__default["default"].string,
1020
1165
  color: PropTypes__default["default"].string,
1021
- tIcon: PropTypes__default["default"].element,
1022
1166
  height: PropTypes__default["default"].string,
1023
- bgColor: PropTypes__default["default"].string,
1024
- tBgColor: PropTypes__default["default"].string,
1167
+ radius: PropTypes__default["default"].string,
1025
1168
  fontSize: PropTypes__default["default"].string,
1026
1169
  className: PropTypes__default["default"].string,
1027
1170
  fontFamily: PropTypes__default["default"].string,
1028
- borderRadius: PropTypes__default["default"].string,
1029
- tBorderRadius: PropTypes__default["default"].string,
1030
- type: PropTypes__default["default"].string.isRequired,
1031
- text: PropTypes__default["default"].string.isRequired
1171
+ tooltipWidth: PropTypes__default["default"].string,
1172
+ tooltipRadius: PropTypes__default["default"].string,
1173
+ text: PropTypes__default["default"].string.isRequired,
1174
+ backgroundColor: PropTypes__default["default"].string,
1175
+ tooltipBackgroundColor: PropTypes__default["default"].string,
1176
+ tooltipIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element)
1177
+ };
1178
+ Tooltip.defaultProps = {
1179
+ type: 'top'
1032
1180
  };
1033
1181
 
1034
1182
  var css_248z$3 = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{height:74px;max-width:400px;position:relative;width:100%}.captcha-module_slider__KLYny{-webkit-appearance:none;background:#eee;border-radius:2px;bottom:0;height:4px;left:0;margin:auto 0;outline:none;position:absolute;top:0;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:30px;position:relative;width:30px;z-index:3}.captcha-module_selector__JFhb4{left:0;z-index:2}.captcha-module_selectBtn__GP1iH,.captcha-module_selector__JFhb4{bottom:0;height:30px;margin:auto 0;position:absolute;top:0;width:30px}.captcha-module_selectBtn__GP1iH{background:#00236a;border:2px solid #fff;border-radius:50%;box-shadow:1px 0 6px rgba(60,57,62,.15);cursor:pointer}.captcha-module_progressBar__mhdtM{background:red;bottom:0;height:4px;left:0;margin:auto 0;position:absolute;top:0;width:auto}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
@@ -1298,20 +1446,22 @@ var styles = {"autocomplate-content":"autocomplate-module_autocomplate-content__
1298
1446
  styleInject(css_248z);
1299
1447
 
1300
1448
  const Autocomplate = ({
1301
- className,
1302
1449
  label,
1450
+ value,
1303
1451
  required,
1304
1452
  disabled,
1305
- jsonOptionsData,
1306
- jsonSelectedOptionsData,
1453
+ keyNames,
1307
1454
  onChange,
1308
- value,
1455
+ className,
1309
1456
  searchCount,
1310
1457
  placeHolder,
1311
- keyNames,
1312
1458
  errorMesage,
1459
+ autoComplete,
1460
+ jsonOptionsData,
1461
+ jsonSelectedOptionsData,
1313
1462
  ...props
1314
1463
  }) => {
1464
+ const configStyles = compereConfigs();
1315
1465
  classnames__default["default"](styles.searchBox, className);
1316
1466
  const parseSelectedOptionsData = jsonSelectedOptionsData ? JSON.parse(jsonSelectedOptionsData) : {
1317
1467
  name: '',
@@ -1322,10 +1472,6 @@ const Autocomplate = ({
1322
1472
  const [activeOption, setActiveOption] = React.useState(0);
1323
1473
  const [showOptions, setShowOptions] = React.useState(false);
1324
1474
  const parseOptionsData = jsonOptionsData ? JSON.parse(jsonOptionsData) : [];
1325
- React.useEffect(() => {
1326
- setInputValue(JSON.parse(jsonSelectedOptionsData)[keyNames.name]);
1327
- setInputId(JSON.parse(jsonSelectedOptionsData)[keyNames.id]);
1328
- }, [JSON.parse(jsonSelectedOptionsData)[keyNames.id]]);
1329
1475
  const handleChange = e => {
1330
1476
  const currentInputValue = e.currentTarget.value;
1331
1477
  setInputId(null);
@@ -1381,6 +1527,10 @@ const Autocomplate = ({
1381
1527
  }, inputValue.length < searchCount ? `Լրացնել առնվազն ${searchCount} նիշ` : 'Նման տվյալ առկա չէ'))));
1382
1528
  }
1383
1529
  }
1530
+ React.useEffect(() => {
1531
+ setInputValue(JSON.parse(jsonSelectedOptionsData)[keyNames.name]);
1532
+ setInputId(JSON.parse(jsonSelectedOptionsData)[keyNames.id]);
1533
+ }, [JSON.parse(jsonSelectedOptionsData)[keyNames.id]]);
1384
1534
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
1385
1535
  className: `${styles['autocomplate-title']} autocomplate-title-rem`
1386
1536
  }, label, " ", required && /*#__PURE__*/React__default["default"].createElement("sup", {
@@ -1392,6 +1542,7 @@ const Autocomplate = ({
1392
1542
  }, /*#__PURE__*/React__default["default"].createElement("input", _extends({
1393
1543
  id: inputId,
1394
1544
  type: "text",
1545
+ autoComplete: autoComplete ? autoComplete : configStyles.INPUT.autoComplete,
1395
1546
  className: `${styles['autocomplate-content-top']} autocomplate-content-top-rem ${errorMesage ? styles.errorBorder : ''}`,
1396
1547
  disabled: disabled,
1397
1548
  onChange: handleChange,
@@ -1405,18 +1556,19 @@ const Autocomplate = ({
1405
1556
  }, errorMesage) : null, optionList));
1406
1557
  };
1407
1558
  Autocomplate.propTypes = {
1408
- className: PropTypes__default["default"].string,
1409
1559
  label: PropTypes__default["default"].string,
1410
- placeHolder: PropTypes__default["default"].string,
1411
- required: PropTypes__default["default"].bool,
1412
1560
  disabled: PropTypes__default["default"].bool,
1413
- jsonOptionsData: PropTypes__default["default"].string,
1414
- jsonSelectedOptionsData: PropTypes__default["default"].string,
1561
+ required: PropTypes__default["default"].bool,
1415
1562
  onChange: PropTypes__default["default"].func,
1416
1563
  value: PropTypes__default["default"].string,
1417
- searchCount: PropTypes__default["default"].number,
1418
1564
  keyNames: PropTypes__default["default"].object,
1419
- errorMesage: PropTypes__default["default"].string
1565
+ className: PropTypes__default["default"].string,
1566
+ searchCount: PropTypes__default["default"].number,
1567
+ errorMesage: PropTypes__default["default"].string,
1568
+ placeHolder: PropTypes__default["default"].string,
1569
+ autoComplete: PropTypes__default["default"].string,
1570
+ jsonOptionsData: PropTypes__default["default"].string,
1571
+ jsonSelectedOptionsData: PropTypes__default["default"].string
1420
1572
  };
1421
1573
  Autocomplate.defaultProps = {
1422
1574
  required: false