@xaypay/tui 0.0.54 → 0.0.55

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.
@@ -1,4 +1,7 @@
1
1
  module.exports = {
2
+ core: {
3
+ builder: 'webpack5',
4
+ },
2
5
  "stories": [
3
6
  "../src/**/*.stories.mdx",
4
7
  "../src/**/*.stories.@(js|jsx|ts|tsx)"
@@ -7,6 +10,7 @@ module.exports = {
7
10
  "@storybook/addon-links",
8
11
  "@storybook/addon-essentials",
9
12
  "@storybook/addon-interactions",
13
+ "@storybook/preset-create-react-app",
10
14
  {
11
15
  name: '@storybook/preset-scss',
12
16
  options: {
@@ -18,27 +22,30 @@ module.exports = {
18
22
  }
19
23
  ],
20
24
  "framework": "@storybook/react",
21
- webpackFinal: async (config, { configType }) => {
22
- // get index of css rule
23
- const ruleCssIndex = config.module.rules.findIndex(
24
- (rule) => rule.test.toString() === "/\\.css$/"
25
- );
25
+ // webpackFinal: async (config, { configType }) => {
26
26
 
27
- // map over the 'use' array of the css rule and set the 'module' option to true
28
- config.module.rules[ruleCssIndex].use.map((item) => {
29
- if (item.loader && (item.loader.includes("/css-loader/") || item.loader.includes("\\css-loader\\"))) {
30
- item.options.modules = {
31
- mode: "local",
32
- localIdentName:
33
- configType === "PRODUCTION"
34
- ? "[local]__[hash:base64:5]"
35
- : "[name]__[local]__[hash:base64:5]",
36
- };
37
- }
27
+ // console.log(config.module.rules);
28
+ // console.log(configType);
29
+ // // get index of css rule
30
+ // const ruleCssIndex = config.module.rules.findIndex(
31
+ // (rule) => rule.test.toString() === "/\\.css$/"
32
+ // );
38
33
 
39
- return item;
40
- });
34
+ // // map over the 'use' array of the css rule and set the 'module' option to true
35
+ // config.module.rules[ruleCssIndex].use.map((item) => {
36
+ // if (item.loader && (item.loader.includes("/css-loader/") || item.loader.includes("\\css-loader\\"))) {
37
+ // item.options.modules = {
38
+ // mode: "local",
39
+ // localIdentName:
40
+ // configType === "PRODUCTION"
41
+ // ? "[local]__[hash:base64:5]"
42
+ // : "[name]__[local]__[hash:base64:5]",
43
+ // };
44
+ // }
41
45
 
42
- return config;
43
- },
46
+ // return item;
47
+ // });
48
+
49
+ // return config;
50
+ // },
44
51
  }
package/cli-command.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ console.log('Hello, world! This is your-cli-command.');
package/dist/index.es.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useEffect, useRef, createRef, useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classnames from 'classnames';
4
+ import styled, { keyframes, css } from 'styled-components';
4
5
 
5
6
  function styleInject(css, ref) {
6
7
  if ( ref === void 0 ) ref = {};
@@ -390,18 +391,47 @@ const Typography = ({
390
391
  size,
391
392
  color,
392
393
  weight,
393
- onClick,
394
+ radius,
395
+ border,
396
+ cursor,
397
+ margin,
398
+ padding,
394
399
  variant,
400
+ bgColor,
401
+ onClick,
395
402
  children,
403
+ textAlign,
404
+ fontStyle,
396
405
  className,
406
+ textShadow,
407
+ lineHeight,
408
+ colorHover,
409
+ fontFamily,
410
+ textTransform,
411
+ textDecoration,
397
412
  ...props
398
413
  }) => {
399
414
  const configStyles = compereConfigs();
400
415
  const classProps = classnames(className);
416
+ const [isHover, setIsHover] = useState(false);
401
417
  const [validVariant, setValidVariant] = useState(false);
402
418
  const [style, setStyle] = useState({
403
- fontSize: size ? size : configStyles.TYPOGRAPHY['fSize' + variant],
404
- fontWeight: weight ? weight : configStyles.TYPOGRAPHY['fWeight' + variant]
419
+ border: border ? border : configStyles.TYPOGRAPHY.border,
420
+ cursor: cursor ? cursor : configStyles.TYPOGRAPHY.cursor,
421
+ borderRadius: radius ? radius : configStyles.TYPOGRAPHY.radius,
422
+ fontSize: size ? size : configStyles.TYPOGRAPHY['size' + variant],
423
+ margin: margin ? margin : configStyles.TYPOGRAPHY['margin' + variant],
424
+ fontWeight: weight ? weight : configStyles.TYPOGRAPHY['weight' + variant],
425
+ padding: padding ? padding : configStyles.TYPOGRAPHY['padding' + variant],
426
+ textShadow: textShadow ? textShadow : configStyles.TYPOGRAPHY.textShadow,
427
+ textAlign: textAlign ? textAlign : configStyles.TYPOGRAPHY['textAlign' + variant],
428
+ backgroundColor: bgColor ? bgColor : configStyles.TYPOGRAPHY['bgColor' + variant],
429
+ fontStyle: fontStyle ? fontStyle : configStyles.TYPOGRAPHY['fontStyle' + variant],
430
+ lineHeight: lineHeight ? lineHeight : configStyles.TYPOGRAPHY['lineHeight' + variant],
431
+ fontFamily: fontFamily ? fontFamily : configStyles.TYPOGRAPHY['fontFamily' + variant],
432
+ textTransform: textTransform ? textTransform : configStyles.TYPOGRAPHY['textTransform' + variant],
433
+ textDecoration: textDecoration ? textDecoration : configStyles.TYPOGRAPHY['textDecoration' + variant],
434
+ color: isHover ? colorHover ? colorHover : configStyles.TYPOGRAPHY['colorHover' + variant] : color ? color : configStyles.TYPOGRAPHY['color' + variant]
405
435
  });
406
436
  useEffect(() => {
407
437
  if (!Object.values(TypographyType).includes(variant)) {
@@ -418,20 +448,42 @@ const Typography = ({
418
448
  });
419
449
  }
420
450
  }, [color]);
451
+ const handleMouseEnter = () => {
452
+ setIsHover(true);
453
+ };
454
+ const handleMouseLeave = () => {
455
+ setIsHover(false);
456
+ };
421
457
  const tagT = /*#__PURE__*/React.createElement(variant, {
422
458
  style,
423
459
  ...props,
424
460
  className: classProps,
425
- onClick: onClick ? onClick : _ => _
461
+ onClick: onClick ? onClick : _ => _,
462
+ onMouseEnter: handleMouseEnter,
463
+ onMouseLeave: handleMouseLeave
426
464
  }, [children]);
427
465
  return validVariant ? 'Please set Typography valid variant' : tagT;
428
466
  };
429
467
  Typography.propTypes = {
430
468
  size: PropTypes.string,
431
469
  color: PropTypes.string,
432
- weight: PropTypes.string,
433
470
  onClick: PropTypes.func,
471
+ weight: PropTypes.string,
472
+ border: PropTypes.string,
473
+ cursor: PropTypes.string,
474
+ margin: PropTypes.string,
475
+ radius: PropTypes.string,
476
+ bgColor: PropTypes.string,
477
+ padding: PropTypes.string,
478
+ textAlign: PropTypes.string,
434
479
  className: PropTypes.string,
480
+ fontStyle: PropTypes.string,
481
+ lineHeight: PropTypes.string,
482
+ textShadow: PropTypes.string,
483
+ fontFamily: PropTypes.string,
484
+ colorHover: PropTypes.string,
485
+ textTransform: PropTypes.string,
486
+ textDecoration: PropTypes.string,
435
487
  variant: PropTypes.oneOf(Object.values(TypographyType)).isRequired
436
488
  };
437
489
 
@@ -505,16 +557,18 @@ Modal.propTypes = {
505
557
  data: PropTypes.array
506
558
  };
507
559
 
508
- 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}";
509
- 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"};
560
+ 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)}}";
561
+ 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"};
510
562
  styleInject(css_248z$7);
511
563
 
512
564
  const InputTypes = {
565
+ TEL: 'tel',
513
566
  TEXT: "text",
514
567
  PASSWORD: "password"
515
568
  };
516
569
  const Input = ({
517
570
  type,
571
+ size,
518
572
  name,
519
573
  color,
520
574
  label,
@@ -522,25 +576,39 @@ const Input = ({
522
576
  width,
523
577
  height,
524
578
  radius,
525
- border,
526
579
  padding,
527
580
  tooltip,
528
- bgColor,
529
581
  leftIcon,
530
- fontSize,
531
582
  required,
532
583
  disabled,
533
584
  onChange,
585
+ transform,
534
586
  iconWidth,
535
587
  rightIcon,
536
588
  className,
537
589
  boxSizing,
538
590
  boxShadow,
539
- errorMesage,
540
- borderColor,
591
+ errorLeft,
592
+ errorSize,
593
+ labelSize,
594
+ labelColor,
595
+ errorColor,
541
596
  placeholder,
597
+ errorZindex,
598
+ errorBottom,
599
+ labelWeight,
600
+ errorMessage,
542
601
  autoComplete,
602
+ labelDisplay,
603
+ errorPosition,
543
604
  boxShadowHover,
605
+ errorClassName,
606
+ errorAnimation,
607
+ errorLineHeight,
608
+ labelLineHeight,
609
+ backgroundColor,
610
+ labelMarginBottom,
611
+ errorAnimationDuration,
544
612
  ...props
545
613
  }) => {
546
614
  const [show, setShow] = useState(false);
@@ -548,7 +616,7 @@ const Input = ({
548
616
  const [tooltipStatus, setTooltipStatus] = useState(false);
549
617
  const random = Math.floor(Math.random() * 1000 + 1);
550
618
  const configStyles = compereConfigs();
551
- const classProps = classnames(className);
619
+ const classProps = classnames(className ? className : configStyles.INPUT.className);
552
620
  const handleChange = event => {
553
621
  onChange ? onChange(event.target.value) : _ => _;
554
622
  };
@@ -558,10 +626,34 @@ const Input = ({
558
626
  const handleMouseLeave = () => {
559
627
  setIsHover(false);
560
628
  };
629
+ const errorShow = keyframes`
630
+ 100% {
631
+ bottom: '-20px';
632
+ transform: scale3d(1,1,1);
633
+ -webkit-transform: scale3d(1,1,1);
634
+ -moz-transform: scale3d(1,1,1);
635
+ -ms-transform: scale3d(1,1,1);
636
+ -o-transform: scale3d(1,1,1);
637
+ }
638
+ `;
639
+ const animation = _ => css`
640
+ ${errorShow} ${errorAnimationDuration ? errorAnimationDuration : configStyles.INPUT.errorAnimationDuration} forwards
641
+ `;
642
+ const P = styled.p`
643
+ animation: ${errorAnimation ? animation : 'none'};
644
+ `;
561
645
  return /*#__PURE__*/React.createElement("div", {
562
646
  className: `${styles$7["input-wrap"]}`
563
647
  }, label ? /*#__PURE__*/React.createElement("label", {
564
- className: `${styles$7["input-title"]}`
648
+ className: `${styles$7["input-title"]}`,
649
+ style: {
650
+ color: labelColor ? labelColor : configStyles.INPUT.labelColor,
651
+ fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
652
+ display: labelDisplay ? labelDisplay : configStyles.INPUT.labelDisplay,
653
+ fontWeight: labelWeight ? labelWeight : configStyles.INPUT.labelWeight,
654
+ lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
655
+ marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
656
+ }
565
657
  }, label, " ", required && /*#__PURE__*/React.createElement("sup", {
566
658
  style: {
567
659
  color: "#ee0000"
@@ -570,11 +662,11 @@ const Input = ({
570
662
  className: `${styles$7["input-content"]}`,
571
663
  style: {
572
664
  borderRadius: radius ? radius : configStyles.INPUT.radius,
573
- boxShadow: isHover ? boxShadowHover ? boxShadowHover : configStyles.INPUT.boxShadowHover : boxShadow ? boxShadow : configStyles.INPUT.boxShadow
665
+ 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
574
666
  },
575
667
  onMouseEnter: handleMouseEnter,
576
668
  onMouseLeave: handleMouseLeave
577
- }, leftIcon && leftIcon.length > 0 ? /*#__PURE__*/React.createElement("div", {
669
+ }, leftIcon && leftIcon.length > 0 && type != 'tel' ? /*#__PURE__*/React.createElement("div", {
578
670
  onMouseUp: type === 'password' ? _ => setShow(false) : _ => _,
579
671
  onMouseDown: type === 'password' ? _ => setShow(true) : _ => _,
580
672
  onMouseOut: type === 'password' ? _ => setShow(false) : _ => _,
@@ -586,9 +678,21 @@ const Input = ({
586
678
  boxSizing: boxSizing ? boxSizing : configStyles.INPUT.boxSizing,
587
679
  borderTopLeftRadius: radius ? radius : configStyles.INPUT.radius,
588
680
  borderBottomLeftRadius: radius ? radius : configStyles.INPUT.radius,
589
- backgroundColor: disabled ? '#FBFBFB' : bgColor ? bgColor : configStyles.INPUT.bgColor
681
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
682
+ }
683
+ }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/React.createElement("div", {
684
+ style: {
685
+ pointerEvents: disabled ? 'none' : 'auto',
686
+ fontSize: size ? size : configStyles.INPUT.size,
687
+ height: height ? height : configStyles.INPUT.height,
688
+ padding: padding ? padding : configStyles.INPUT.padding,
689
+ boxSizing: boxSizing ? boxSizing : configStyles.INPUT.boxSizing,
690
+ borderTopLeftRadius: radius ? radius : configStyles.INPUT.radius,
691
+ borderBottomLeftRadius: radius ? radius : configStyles.INPUT.radius,
692
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor,
693
+ color: errorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color
590
694
  }
591
- }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', /*#__PURE__*/React.createElement("input", _extends({}, props, {
695
+ }, "+374") : '', /*#__PURE__*/React.createElement("input", _extends({}, props, {
592
696
  value: value,
593
697
  className: classProps,
594
698
  onChange: handleChange,
@@ -602,13 +706,13 @@ const Input = ({
602
706
  outline: 'none',
603
707
  pointerEvents: disabled ? 'none' : 'auto',
604
708
  width: width ? width : configStyles.INPUT.width,
709
+ fontSize: size ? size : configStyles.INPUT.size,
605
710
  height: height ? height : configStyles.INPUT.height,
606
711
  padding: padding ? padding : configStyles.INPUT.padding,
607
712
  borderRadius: radius ? radius : configStyles.INPUT.radius,
608
- fontSize: fontSize ? fontSize : configStyles.INPUT.fontSize,
609
713
  boxSizing: boxSizing ? boxSizing : configStyles.INPUT.boxSizing,
610
- color: errorMesage ? 'rgba(238, 0, 0, 1)' : color ? color : configStyles.INPUT.color,
611
- backgroundColor: disabled ? '#FBFBFB' : bgColor ? bgColor : configStyles.INPUT.bgColor
714
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor,
715
+ color: errorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color
612
716
  }
613
717
  })), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React.createElement("div", {
614
718
  onMouseUp: type === 'password' ? _ => setShow(false) : _ => _,
@@ -616,21 +720,30 @@ const Input = ({
616
720
  onMouseOut: type === 'password' ? _ => setShow(false) : _ => _,
617
721
  style: {
618
722
  cursor: type === 'password' ? 'pointer' : 'default',
619
- border: border ? border : configStyles.INPUT.border,
620
723
  height: height ? height : configStyles.INPUT.height,
621
724
  padding: padding ? padding : configStyles.INPUT.padding,
622
725
  width: iconWidth ? iconWidth : configStyles.INPUT.iconWidth,
623
726
  boxSizing: boxSizing ? boxSizing : configStyles.INPUT.boxSizing,
624
727
  borderTopRightRadius: radius ? radius : configStyles.INPUT.radius,
625
728
  borderBottomRightRadius: radius ? radius : configStyles.INPUT.radius,
626
- backgroundColor: disabled ? '#FBFBFB' : bgColor ? bgColor : configStyles.INPUT.bgColor
729
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
627
730
  }
628
731
  }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? /*#__PURE__*/React.createElement(Typography, {
629
732
  variant: "p",
630
733
  onClick: () => setTooltipStatus(!tooltipStatus)
631
- }, "\u24D8") : null, tooltipStatus ? /*#__PURE__*/React.createElement("p", null, tooltip) : null, errorMesage ? /*#__PURE__*/React.createElement("span", {
632
- className: styles$7.inputErrorMessages
633
- }, errorMesage) : "");
734
+ }, "\u24D8") : null, tooltipStatus ? /*#__PURE__*/React.createElement("p", null, tooltip) : null, errorMessage ? /*#__PURE__*/React.createElement(P, {
735
+ style: {
736
+ left: errorLeft ? errorLeft : configStyles.INPUT.errorLeft,
737
+ color: errorColor ? errorColor : configStyles.INPUT.errorColor,
738
+ fontSize: errorSize ? errorSize : configStyles.INPUT.errorSize,
739
+ bottom: errorBottom ? errorBottom : configStyles.INPUT.errorBottom,
740
+ zIndex: errorZindex ? errorZindex : configStyles.INPUT.errorZindex,
741
+ position: errorPosition ? errorPosition : configStyles.INPUT.errorPosition,
742
+ lineHeight: errorLineHeight ? errorLineHeight : configStyles.INPUT.errorLineHeight,
743
+ transform: !errorAnimation ? 'scale3d(1,1,1)' : transform ? transform : configStyles.INPUT.transform
744
+ },
745
+ className: errorClassName ? errorClassName : configStyles.INPUT.errorClassName
746
+ }, errorMessage) : '');
634
747
  };
635
748
  Input.propTypes = {
636
749
  name: PropTypes.string,
@@ -643,17 +756,35 @@ Input.propTypes = {
643
756
  disabled: PropTypes.bool,
644
757
  height: PropTypes.string,
645
758
  radius: PropTypes.string,
646
- bgColor: PropTypes.string,
759
+ padding: PropTypes.string,
647
760
  fontSize: PropTypes.string,
648
761
  tooltip: PropTypes.element,
762
+ transform: PropTypes.string,
649
763
  className: PropTypes.string,
650
764
  iconWidth: PropTypes.string,
651
765
  boxSizing: PropTypes.string,
652
766
  boxShadow: PropTypes.string,
767
+ errorSize: PropTypes.string,
768
+ errorLeft: PropTypes.string,
769
+ labelSize: PropTypes.string,
770
+ errorColor: PropTypes.string,
771
+ labelColor: PropTypes.string,
653
772
  placeholder: PropTypes.string,
654
- errorMesage: PropTypes.string,
773
+ errorZindex: PropTypes.string,
774
+ errorBottom: PropTypes.string,
775
+ labelWeight: PropTypes.string,
776
+ errorMessage: PropTypes.string,
655
777
  autoComplete: PropTypes.string,
778
+ errorAnimation: PropTypes.bool,
779
+ labelDisplay: PropTypes.string,
780
+ errorPosition: PropTypes.string,
656
781
  boxShadowHover: PropTypes.string,
782
+ errorClassName: PropTypes.string,
783
+ backgroundColor: PropTypes.string,
784
+ errorLineHeight: PropTypes.string,
785
+ labelLineHeight: PropTypes.string,
786
+ labelMarginBottom: PropTypes.string,
787
+ errorAnimationDuration: PropTypes.string,
657
788
  leftIcon: PropTypes.arrayOf(PropTypes.element),
658
789
  rightIcon: PropTypes.arrayOf(PropTypes.element),
659
790
  type: PropTypes.oneOf(Object.values(InputTypes))
@@ -717,27 +848,30 @@ Radio.defaultProps = {
717
848
  };
718
849
 
719
850
  const Button = ({
851
+ size,
720
852
  type,
853
+ font,
721
854
  color,
722
855
  label,
723
856
  width,
724
857
  height,
725
858
  cursor,
859
+ weight,
726
860
  border,
861
+ radius,
727
862
  outline,
728
863
  padding,
864
+ bgColor,
729
865
  onClick,
730
- fontSize,
731
866
  disabled,
732
867
  className,
733
868
  boxSizing,
734
869
  transition,
735
870
  contentWidth,
736
- borderRadius,
737
- backgroundColor,
738
- disabledThemeColor,
739
- disabledThemeBgColor,
740
- disabledThemeLineColor,
871
+ disabledColor,
872
+ textTransform,
873
+ disabledBgColor,
874
+ disabledLineColor,
741
875
  ...props
742
876
  }) => {
743
877
  const [isHover, setIsHover] = useState(false);
@@ -756,18 +890,21 @@ const Button = ({
756
890
  };
757
891
  return /*#__PURE__*/React.createElement("button", _extends({
758
892
  style: {
893
+ fontSize: size ? size : configStyles.BUTTON.size,
894
+ fontFamily: font ? font : configStyles.BUTTON.font,
759
895
  height: height ? height : configStyles.BUTTON.height,
896
+ fontWeight: weight ? weight : configStyles.BUTTON.weight,
760
897
  padding: padding ? padding : configStyles.BUTTON.padding,
761
- fontSize: fontSize ? fontSize : configStyles.BUTTON.fontSize,
898
+ borderRadius: radius ? radius : configStyles.BUTTON.radius,
762
899
  boxSizing: boxSizing ? boxSizing : configStyles.BUTTON.boxSizing,
763
900
  transition: transition ? transition : configStyles.BUTTON.transition,
764
901
  border: outline ? 'none' : border ? border : configStyles.BUTTON.border,
765
902
  width: contentWidth ? 'auto' : width ? width : configStyles.BUTTON.width,
766
- borderRadius: borderRadius ? borderRadius : configStyles.BUTTON.borderRadius,
767
903
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.BUTTON.cursor,
768
- backgroundColor: (outline || !outline) && disabled ? disabledThemeBgColor ? disabledThemeBgColor : configStyles.BUTTON.disabledThemeBgColor : outline && !disabled ? isHover ? backgroundColor ? backgroundColor : configStyles.BUTTON.bgColor : '#ffffff' : backgroundColor ? backgroundColor : configStyles.BUTTON.bgColor,
769
- boxShadow: outline ? disabled ? `inset 0 0 0 2px ${disabledThemeLineColor ? disabledThemeLineColor : configStyles.BUTTON.disabledThemeLineColor}` : `inset 0 0 0 2px ${backgroundColor ? backgroundColor : configStyles.BUTTON.bgColor}` : 'none',
770
- 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
904
+ textTransform: textTransform ? textTransform : configStyles.BUTTON.textTransform,
905
+ backgroundColor: (outline || !outline) && disabled ? disabledBgColor ? disabledBgColor : configStyles.BUTTON.disabledBgColor : outline && !disabled ? isHover ? bgColor ? bgColor : configStyles.BUTTON.bgColor : '#ffffff' : bgColor ? bgColor : configStyles.BUTTON.bgColor,
906
+ boxShadow: outline ? disabled ? `inset 0 0 0 2px ${disabledLineColor ? disabledLineColor : configStyles.BUTTON.disabledLineColor}` : `inset 0 0 0 2px ${bgColor ? bgColor : configStyles.BUTTON.bgColor}` : 'none',
907
+ color: (outline || !outline) && disabled ? disabledColor ? disabledColor : configStyles.BUTTON.disabledColor : outline && !disabled ? isHover ? color ? color : configStyles.BUTTON.color : bgColor ? bgColor : configStyles.BUTTON.bgColor : color ? color : configStyles.BUTTON.color
771
908
  },
772
909
  type: type ? type : configStyles.BUTTON.type,
773
910
  disabled: disabled ? disabled : configStyles.BUTTON.disabled,
@@ -779,26 +916,29 @@ const Button = ({
779
916
  };
780
917
  Button.propTypes = {
781
918
  type: PropTypes.string,
919
+ size: PropTypes.string,
920
+ font: PropTypes.string,
782
921
  color: PropTypes.string,
783
922
  width: PropTypes.string,
784
923
  outline: PropTypes.bool,
785
924
  onClick: PropTypes.func,
925
+ weight: PropTypes.string,
786
926
  height: PropTypes.string,
787
927
  cursor: PropTypes.string,
788
928
  border: PropTypes.string,
789
929
  disabled: PropTypes.bool,
930
+ radius: PropTypes.string,
790
931
  padding: PropTypes.string,
791
- fontSize: PropTypes.string,
932
+ bgColor: PropTypes.string,
792
933
  boxSizing: PropTypes.string,
793
934
  className: PropTypes.string,
794
935
  transition: PropTypes.string,
795
936
  contentWidth: PropTypes.bool,
796
- borderRadius: PropTypes.string,
797
- backgroundColor: PropTypes.string,
937
+ textTransform: PropTypes.string,
938
+ disabledColor: PropTypes.string,
939
+ disabledBgColor: PropTypes.string,
798
940
  label: PropTypes.string.isRequired,
799
- disabledThemeColor: PropTypes.string,
800
- disabledThemeBgColor: PropTypes.string,
801
- disabledThemeLineColor: PropTypes.string
941
+ disabledLineColor: PropTypes.string
802
942
  };
803
943
 
804
944
  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}";