@xaypay/tui 0.2.1 → 0.2.3

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 CHANGED
@@ -72,18 +72,13 @@ function v4(options, buf, offset) {
72
72
  }
73
73
 
74
74
  function _extends() {
75
- _extends = Object.assign ? Object.assign.bind() : function (target) {
76
- for (var i = 1; i < arguments.length; i++) {
77
- var source = arguments[i];
78
- for (var key in source) {
79
- if (Object.prototype.hasOwnProperty.call(source, key)) {
80
- target[key] = source[key];
81
- }
82
- }
75
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
76
+ for (var e = 1; e < arguments.length; e++) {
77
+ var t = arguments[e];
78
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
83
79
  }
84
- return target;
85
- };
86
- return _extends.apply(this, arguments);
80
+ return n;
81
+ }, _extends.apply(null, arguments);
87
82
  }
88
83
 
89
84
  const SvgHeic = ({
@@ -437,35 +432,799 @@ const FileItem = /*#__PURE__*/React__default.memo(({
437
432
  }, iconDelItem ? iconDelItem : /*#__PURE__*/React__default.createElement(SvgListItemDelete, null))));
438
433
  });
439
434
 
440
- async function getPProps(type) {
441
- let packageResult;
442
- let projectResult;
443
- const packageImportConfig = await import.meta.glob('../../tui.config.js');
444
- const projectImportConfig = await import.meta.glob('../../../../tui.config.js');
445
- if (packageImportConfig['../../tui.config.js']) {
446
- packageResult = packageImportConfig['../../tui.config.js']().then(module => module.default);
435
+ const boxSizing = 'border-box';
436
+ const fontStyle = 'normal';
437
+ const fontFamily = 'Arial';
438
+ const fontWeight = 500;
439
+ const transparent = 'transparent';
440
+ const presetColors = {
441
+ info: '#F24C4C',
442
+ dark: '#3C393E',
443
+ light: '#EEEEEE',
444
+ extraLight: '#FBFBFB',
445
+ danger: '#EE0000',
446
+ success: '#0DA574',
447
+ warning: '#FECD29',
448
+ secondary: '#D1D1D1',
449
+ primary: '#051942',
450
+ primarySecond: '#00236A'
451
+ };
452
+ const fontObject = {
453
+ size: '16px',
454
+ style: fontStyle,
455
+ weight: fontWeight,
456
+ family: fontFamily
457
+ };
458
+ var packageResult = {
459
+ // default properties for <Button /> component
460
+ BUTTON: {
461
+ type: 'button',
462
+ width: '100%',
463
+ height: '46px',
464
+ color: 'white',
465
+ contentWidth: false,
466
+ border: 'none',
467
+ radius: '6px',
468
+ cursor: 'pointer',
469
+ padding: '12px 20px',
470
+ disabled: false,
471
+ className: '',
472
+ transition: 'background-color 240ms, color 240ms',
473
+ box: {
474
+ sizing: boxSizing
475
+ },
476
+ colors: {
477
+ background: 'rgba(0, 35, 106, 1)',
478
+ backgroundHover: '#CB3A3A',
479
+ disabled: 'rgba(60, 57, 62, 1)',
480
+ disabledLine: 'rgba(60, 57, 62, 1)',
481
+ disabledBackground: 'rgba(238, 238, 238, 1)'
482
+ },
483
+ font: {
484
+ ...fontObject
485
+ },
486
+ text: {
487
+ transform: 'none',
488
+ colors: {
489
+ hover: '#001745'
490
+ }
491
+ },
492
+ icon: {
493
+ marginRight: '10px'
494
+ }
495
+ },
496
+ // default properties for <Input /> component
497
+ INPUT: {
498
+ type: 'text',
499
+ width: '100%',
500
+ color: 'rgb(60, 57, 62)',
501
+ height: '46px',
502
+ radius: '0px',
503
+ padding: '12px 15px',
504
+ disabled: false,
505
+ required: false,
506
+ className: '',
507
+ maxLength: 255,
508
+ iconWidth: '64px',
509
+ autoComplete: 'off',
510
+ box: {
511
+ sizing: boxSizing,
512
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
513
+ // like border
514
+ shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
515
+ },
516
+ colors: {
517
+ background: 'white',
518
+ backgroundDisable: presetColors.secondary
519
+ },
520
+ font: {
521
+ ...fontObject
522
+ },
523
+ label: {
524
+ color: presetColors.dark,
525
+ display: 'block',
526
+ lineHeight: '22px',
527
+ marginBottom: '6px',
528
+ font: {
529
+ ...fontObject
530
+ }
531
+ },
532
+ error: {
533
+ left: '0px',
534
+ color: presetColors.danger,
535
+ zIndex: '1',
536
+ className: '',
537
+ marginTop: '10px',
538
+ lineHeight: '19px',
539
+ font: {
540
+ ...fontObject
541
+ }
542
+ },
543
+ tel: {
544
+ display: 'flex',
545
+ alignItems: 'center',
546
+ justifyContent: 'center',
547
+ borderRight: {
548
+ width: '1px',
549
+ style: 'solid',
550
+ color: presetColors.secondary,
551
+ colors: {
552
+ hover: presetColors.dark
553
+ }
554
+ }
555
+ }
556
+ },
557
+ // default properties for <Tooltip /> component
558
+ TOOLTIP: {
559
+ type: 'top',
560
+ color: 'white',
561
+ width: '100px',
562
+ radius: '3px',
563
+ className: '',
564
+ // icon: React.createElement(SvgChecked, { fill: 'red' }),
565
+
566
+ parent: {
567
+ width: '46px',
568
+ height: '46px',
569
+ radius: '0px',
570
+ colors: {
571
+ background: transparent
572
+ }
573
+ },
574
+ colors: {
575
+ background: '#03a9f4'
576
+ },
577
+ font: {
578
+ ...fontObject
579
+ }
580
+ },
581
+ // default properties for <Typography /> component
582
+ TYPOGRAPHY: {
583
+ radius: '0px',
584
+ border: 'none',
585
+ cursor: 'default',
586
+ className: '',
587
+ colors: {
588
+ p: presetColors.dark,
589
+ h1: presetColors.dark,
590
+ h2: presetColors.dark,
591
+ h3: presetColors.dark,
592
+ h4: presetColors.dark,
593
+ h5: presetColors.dark,
594
+ h6: presetColors.dark,
595
+ span: presetColors.dark,
596
+ backgroundp: transparent,
597
+ backgroundh1: transparent,
598
+ backgroundh2: transparent,
599
+ backgroundh3: transparent,
600
+ backgroundh4: transparent,
601
+ backgroundh5: transparent,
602
+ backgroundh6: transparent,
603
+ backgroundspan: transparent
604
+ },
605
+ font: {
606
+ sizep: '13px',
607
+ sizeh1: '70px',
608
+ sizeh2: '50px',
609
+ sizeh3: '38px',
610
+ sizeh4: '24px',
611
+ sizeh5: '20px',
612
+ sizeh6: '14px',
613
+ sizespan: '12px',
614
+ stylep: fontStyle,
615
+ styleh1: fontStyle,
616
+ styleh2: fontStyle,
617
+ styleh3: fontStyle,
618
+ styleh4: fontStyle,
619
+ styleh5: fontStyle,
620
+ styleh6: fontStyle,
621
+ stylespan: fontStyle,
622
+ weightp: fontWeight,
623
+ weighth1: fontWeight,
624
+ weighth2: fontWeight,
625
+ weighth3: fontWeight,
626
+ weighth4: fontWeight,
627
+ weighth5: fontWeight,
628
+ weighth6: fontWeight,
629
+ weightspan: fontWeight,
630
+ familyp: fontFamily,
631
+ familyh1: fontFamily,
632
+ familyh2: fontFamily,
633
+ familyh3: fontFamily,
634
+ familyh4: fontFamily,
635
+ familyh5: fontFamily,
636
+ familyh6: fontFamily,
637
+ familyspan: fontFamily
638
+ },
639
+ text: {
640
+ alignp: 'left',
641
+ alignh1: 'left',
642
+ alignh2: 'left',
643
+ alignh3: 'left',
644
+ alignh4: 'left',
645
+ alignh5: 'left',
646
+ alignh6: 'left',
647
+ alignspan: 'left',
648
+ shadowp: 'none',
649
+ shadowh1: 'none',
650
+ shadowh2: 'none',
651
+ shadowh3: 'none',
652
+ shadowh4: 'none',
653
+ shadowh5: 'none',
654
+ shadowh6: 'none',
655
+ shadowspan: 'none',
656
+ transformp: 'none',
657
+ transformh1: 'none',
658
+ transformh2: 'none',
659
+ transformh3: 'none',
660
+ transformh4: 'none',
661
+ transformh5: 'none',
662
+ transformh6: 'none',
663
+ transformspan: 'none',
664
+ decorationp: 'none',
665
+ decorationh1: 'none',
666
+ decorationh2: 'none',
667
+ decorationh3: 'none',
668
+ decorationh4: 'none',
669
+ decorationh5: 'none',
670
+ decorationh6: 'none',
671
+ decorationspan: 'none',
672
+ lineHeightp: 'normal',
673
+ lineHeighth1: 'normal',
674
+ lineHeighth2: 'normal',
675
+ lineHeighth3: 'normal',
676
+ lineHeighth4: 'normal',
677
+ lineHeighth5: 'normal',
678
+ lineHeighth6: 'normal',
679
+ lineHeightspan: 'normal'
680
+ }
681
+ },
682
+ // default properties for <Select /> component
683
+ SELECT: {
684
+ dots: false,
685
+ className: '',
686
+ showCloseIcon: true,
687
+ // arrowIcon: React.createElement(SvgChecked, { fill: 'green' }),
688
+ // closeIcon: React.createElement(SvgChecked, { fill: 'green' }),
689
+
690
+ box: {
691
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
692
+ // like border
693
+ shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
694
+ },
695
+ label: {
696
+ color: presetColors.dark,
697
+ display: 'block',
698
+ lineHeight: '22px',
699
+ marginBottom: '6px',
700
+ textTransform: 'none',
701
+ font: {
702
+ ...fontObject
703
+ }
704
+ },
705
+ selected: {
706
+ color: presetColors.dark,
707
+ cursor: 'pointer',
708
+ radius: '6px',
709
+ padding: '0px 15px',
710
+ minHeight: '46px',
711
+ lineHeight: '22px',
712
+ transition: 'border-color 240ms',
713
+ box: {
714
+ sizing: boxSizing
715
+ },
716
+ colors: {
717
+ hover: '#373538',
718
+ background: presetColors.extraLight,
719
+ backgroundDisable: presetColors.secondary
720
+ },
721
+ font: {
722
+ ...fontObject
723
+ }
724
+ },
725
+ options: {
726
+ radius: '6px',
727
+ colors: {
728
+ background: presetColors.extraLight
729
+ },
730
+ box: {
731
+ shadow: '0 0 10px rgba(60, 57, 62, 0.08)'
732
+ },
733
+ item: {
734
+ color: presetColors.dark,
735
+ cursor: 'pointer',
736
+ padding: '0px 15px',
737
+ minHeight: '46px',
738
+ lineHeight: '25px',
739
+ marginBottom: '2px',
740
+ box: {
741
+ sizing: boxSizing
742
+ },
743
+ colors: {
744
+ hover: presetColors.primarySecond,
745
+ backgroud: '#ffffff',
746
+ backgroudHover: 'unset'
747
+ },
748
+ font: {
749
+ ...fontObject
750
+ }
751
+ }
752
+ },
753
+ error: {
754
+ color: 'rgb(238, 0, 0)',
755
+ marginTop: '10px',
756
+ zIndex: 10,
757
+ box: {
758
+ shadow: `0 0 0 2px ${presetColors.danger}`
759
+ },
760
+ font: {
761
+ ...fontObject
762
+ }
763
+ }
764
+ },
765
+ // default properties for <Textarea /> component
766
+ TEXTAREA: {
767
+ color: presetColors.dark,
768
+ width: '400px',
769
+ height: '134px',
770
+ radius: '6px',
771
+ resize: 'none',
772
+ padding: '12px 15px',
773
+ minWidth: '200px',
774
+ maxWidth: '500px',
775
+ minHeight: '100px',
776
+ maxHeight: '300px',
777
+ maxLength: 1500,
778
+ className: '',
779
+ box: {
780
+ sizing: boxSizing,
781
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
782
+ // like border
783
+
784
+ colors: {
785
+ hover: `0 0 0 2px ${presetColors.dark}`,
786
+ // like border color
787
+ focus: `0 0 0 2px ${presetColors.primarySecond}` // like border color
788
+ }
789
+ },
790
+ colors: {
791
+ background: 'white'
792
+ },
793
+ label: {
794
+ color: presetColors.dark,
795
+ display: 'block',
796
+ marginBottom: '10px',
797
+ font: {
798
+ ...fontObject
799
+ }
800
+ },
801
+ font: {
802
+ ...fontObject
803
+ },
804
+ error: {
805
+ color: '#E40E00',
806
+ marginTop: '10px',
807
+ box: {
808
+ shadow: `0 0 0 2px ${presetColors.danger}` // like border
809
+ },
810
+ font: {
811
+ ...fontObject
812
+ }
813
+ }
814
+ },
815
+ // default properties for <NewAutocomplete /> component
816
+ AUTOCOMPLETE: {
817
+ className: '',
818
+ searchCount: 3,
819
+ autoComplete: 'off',
820
+ showOptionDuration: '640ms',
821
+ color: presetColors.dark,
822
+ radius: '6px',
823
+ height: '46px',
824
+ padding: '0px 15px',
825
+ display: 'flex',
826
+ maxWidth: '400px',
827
+ direction: 'row',
828
+ lineHeight: '22px',
829
+ box: {
830
+ sizing: boxSizing,
831
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
832
+ // like border
833
+ shadowHover: `0 0 0 2px ${presetColors.dark}`,
834
+ // like border
835
+ shadowActive: `0 0 0 2px ${presetColors.primarySecond}` // like border
836
+ },
837
+ font: {
838
+ ...fontObject
839
+ },
840
+ parent: {
841
+ display: 'flex',
842
+ direction: 'column',
843
+ position: 'relative'
844
+ },
845
+ colors: {
846
+ backgroundDisable: presetColors.secondary
847
+ },
848
+ label: {
849
+ color: presetColors.dark,
850
+ display: 'block',
851
+ lineHeight: '22px',
852
+ marginBottom: '6px',
853
+ textTransform: 'none',
854
+ font: {
855
+ ...fontObject
856
+ }
857
+ },
858
+ contentBottom: {
859
+ left: '0px',
860
+ width: '100%',
861
+ zIndex: 1,
862
+ radius: '6px',
863
+ maxWidth: '400px',
864
+ overflow: 'hidden',
865
+ position: 'absolute',
866
+ minHeight: '0px',
867
+ inner: {
868
+ display: 'flex',
869
+ overflowY: 'auto',
870
+ maxHeight: '234px',
871
+ overflowX: 'hidden',
872
+ direction: 'column'
873
+ },
874
+ row: {
875
+ color: presetColors.dark,
876
+ height: '46px',
877
+ cursor: 'pointer',
878
+ display: 'flex',
879
+ padding: '0px 15px',
880
+ lineHeight: '22px',
881
+ alignItems: 'center',
882
+ transition: 'all 240ms',
883
+ marginBottom: '2px',
884
+ colors: {
885
+ hover: presetColors.primarySecond,
886
+ background: '#ffffff',
887
+ backgroundHover: 'initial'
888
+ },
889
+ font: {
890
+ ...fontObject
891
+ }
892
+ },
893
+ colors: {
894
+ background: presetColors.extraLight
895
+ },
896
+ box: {
897
+ shadow: '0 0 10px rgba(60, 57, 62, 0.08)',
898
+ sizing: boxSizing
899
+ }
900
+ },
901
+ error: {
902
+ color: presetColors.danger,
903
+ marginTop: '10px',
904
+ font: {
905
+ ...fontObject
906
+ },
907
+ box: {
908
+ shadow: `0 0 0 2px ${presetColors.danger}` // like border
909
+ }
910
+ },
911
+ innerError: {
912
+ padding: '0px 15px',
913
+ colors: {
914
+ background: 'gray'
915
+ }
916
+ }
917
+ },
918
+ // default properties for <Captcha /> component
919
+ CAPTCHA: {
920
+ className: '',
921
+ label: {
922
+ color: presetColors.dark,
923
+ font: {
924
+ ...fontObject
925
+ }
926
+ }
927
+ },
928
+ // default properties for <File /> component
929
+ FILE: {
930
+ color: presetColors.dark,
931
+ radius: '6px',
932
+ height: '200px',
933
+ maxWidth: '440px',
934
+ className: '',
935
+ areaImage: {
936
+ width: '27.8rem',
937
+ height: 'auto'
938
+ },
939
+ or: 'կամ',
940
+ upload: 'Բեռնել',
941
+ uploadColor: presetColors.success,
942
+ putFileHere: 'Տեղադրել ֆայլը այստեղ',
943
+ sizeText: 'Առավելագույնը',
944
+ timeForRemoveError: 4000,
945
+ extentionsRowMarginTop: '40px',
946
+ border: {
947
+ width: '2px',
948
+ style: 'dashed',
949
+ color: presetColors.secondary,
950
+ colors: {
951
+ hover: presetColors.primarySecond
952
+ }
953
+ },
954
+ colors: {
955
+ background: '#F8F8F8',
956
+ backgroundHidden: 'rgba(60, 57, 62, 0.4)'
957
+ },
958
+ label: {
959
+ color: '#4A4A4D',
960
+ font: {
961
+ ...fontObject
962
+ }
963
+ },
964
+ font: {
965
+ ...fontObject
966
+ },
967
+ error: {
968
+ color: presetColors.danger,
969
+ font: {
970
+ ...fontObject
971
+ },
972
+ format: 'ֆայլի սխալ ֆորմատ',
973
+ maxSize: 'Առավելագույն ծավալ',
974
+ noChoosenFile: 'Ֆայլը ընտրված չէ'
975
+ },
976
+ progress: {
977
+ color: '#4A4A4D',
978
+ colors: {
979
+ track: '#E5E8E8',
980
+ failed: '#E40E00',
981
+ success: '#069768',
982
+ loading: presetColors.primary
983
+ },
984
+ font: {
985
+ ...fontObject
986
+ }
987
+ },
988
+ uploadBtn: {
989
+ label: 'Բեռնել',
990
+ color: '#fff',
991
+ height: '30px',
992
+ colors: {
993
+ hover: '#fff',
994
+ background: 'rgba(0, 35, 106, 1)',
995
+ backgroundHover: 'rgba(0, 35, 106, 1)'
996
+ },
997
+ font: {
998
+ ...fontObject
999
+ }
1000
+ },
1001
+ listItem: {
1002
+ color: '#4a4a4d',
1003
+ height: '70px',
1004
+ padding: '14px 20px',
1005
+ colors: {
1006
+ background: '#F6F8F8',
1007
+ backgroundError: '#F6F8F8'
1008
+ },
1009
+ font: {
1010
+ ...fontObject
1011
+ },
1012
+ error: {
1013
+ color: '#E40E00',
1014
+ font: {
1015
+ ...fontObject
1016
+ }
1017
+ }
1018
+ },
1019
+ icon: {
1020
+ // comment here for example,
1021
+
1022
+ // pdf: React.createElement(SvgChecked, { fill: 'green' }),
1023
+ // png: React.createElement(SvgChecked, { fill: 'green' }),
1024
+ // jpg: React.createElement(SvgChecked, { fill: 'green' }),
1025
+ // jpeg: React.createElement(SvgChecked, { fill: 'green' }),
1026
+ // heic: React.createElement(SvgChecked, { fill: 'green' }),
1027
+ // wrong: React.createElement(SvgChecked, { fill: 'green' }),
1028
+ // upload: React.createElement(SvgChecked, { fill: 'green' }),
1029
+ // required: React.createElement(SvgChecked, { fill: 'green' }),
1030
+ // removeFile: React.createElement(SvgChecked, { fill: 'green' }),
1031
+ // deleteComponent: React.createElement(SvgChecked, { fill: 'green' }),
1032
+ // deleteItem: React.createElement(SvgUnchecked, { fill: 'green' }),
1033
+ }
1034
+ },
1035
+ // default properties for <Modal /> component
1036
+ MODAL: {
1037
+ width: '',
1038
+ height: '',
1039
+ maxWidth: '95%',
1040
+ minWidth: '320px',
1041
+ maxHeight: '95vh',
1042
+ minHeight: '200px',
1043
+ radius: '14px',
1044
+ padding: '20px 20px 20px',
1045
+ className: '',
1046
+ alignItems: 'center',
1047
+ outsideClose: true,
1048
+ justifyContent: 'center',
1049
+ grayDecorHeight: '80px',
1050
+ border: {
1051
+ width: '20px',
1052
+ style: 'solid',
1053
+ color: transparent
1054
+ },
1055
+ colors: {
1056
+ background: 'white',
1057
+ backgroundLayer: 'rgba(0,0,0,0.4)'
1058
+ },
1059
+ header: {
1060
+ color: presetColors.primarySecond,
1061
+ height: '30px',
1062
+ font: {
1063
+ ...fontObject
1064
+ }
1065
+ },
1066
+ image: {
1067
+ width: '',
1068
+ margin: '0px',
1069
+ height: '100%',
1070
+ maxWidth: '100%',
1071
+ wrapWidth: '100%',
1072
+ wrapHeight: '100%'
1073
+ },
1074
+ icon: {
1075
+ // zoom: React.createElement(SvgChecked, { fill: 'green' }),
1076
+ // prev: React.createElement(SvgChecked, { fill: 'green' }),
1077
+ // next: React.createElement(SvgChecked, { fill: 'green' }),
1078
+ // close: React.createElement(SvgChecked, { fill: 'green' }),
1079
+ // closeSlide: React.createElement(SvgChecked, { fill: 'green' }),
1080
+ },
1081
+ closeAreaBackgroundColor: 'linear-gradient(to bottom, rgb(60, 57, 62), rgba(60, 57, 62, 0))' // for close div background color
1082
+ },
1083
+ // default properties for <Checkbox /> component
1084
+ CHECKBOX: {
1085
+ className: '',
1086
+ marginBottom: '10px',
1087
+ colors: {
1088
+ checked: presetColors.primarySecond,
1089
+ unChecked: presetColors.secondary
1090
+ },
1091
+ label: {
1092
+ marginLeft: '10px'
1093
+ }
1094
+
1095
+ // checkedIcon: React.createElement(SvgChecked, { fill: 'green' }),
1096
+ // unCheckedIcon: React.createElement(<SvgUnchecked fill="#E00" />),
1097
+ },
1098
+ // default properties for <Table /> component
1099
+ TABLE: {
1100
+ className: '',
1101
+ textAlign: 'center',
1102
+ column: {
1103
+ maxWidth: '',
1104
+ minWidth: ''
1105
+ },
1106
+ head: {
1107
+ color: presetColors.extraLight,
1108
+ radius: '14px',
1109
+ padding: '11px 20px',
1110
+ colors: {
1111
+ background: presetColors.primarySecond
1112
+ },
1113
+ font: {
1114
+ ...fontObject
1115
+ }
1116
+ },
1117
+ body: {
1118
+ color: presetColors.dark,
1119
+ padding: '11px 20px',
1120
+ box: {
1121
+ shadow: ''
1122
+ },
1123
+ row: {
1124
+ asItem: false,
1125
+ radius: '6px',
1126
+ marginTop: '10px',
1127
+ colors: {
1128
+ backgroud: transparent
1129
+ },
1130
+ box: {
1131
+ shadow: ''
1132
+ },
1133
+ border: '1px solid',
1134
+ borderColor: presetColors.light
1135
+ },
1136
+ font: {
1137
+ ...fontObject
1138
+ }
1139
+ },
1140
+ openList: {
1141
+ color: '#A3A5A9',
1142
+ font: {
1143
+ ...fontObject
1144
+ }
1145
+ }
1146
+ },
1147
+ // default properties for <Pagination /> component
1148
+ PAGINATION: {
1149
+ className: '' // for pagination class
1150
+ },
1151
+ // default properties for <Toaster /> component
1152
+ TOASTER: {
1153
+ className: '',
1154
+ icon: {
1155
+ // info: React.createElement(SvgChecked, { just: 'must' }),
1156
+ // warn: React.createElement(SvgUnchecked, { just: 'must' }),
1157
+ // close: React.createElement(SvgChecked, { fill: 'green' }),
1158
+ // error: React.createElement(SvgChecked, { fill: 'green' }),
1159
+ // success: React.createElement(SvgChecked, { fill: 'green' }),
1160
+ }
1161
+ },
1162
+ // default properties for <Stepper /> component
1163
+ STEPPER: {
1164
+ className: '' // for stepper class
1165
+ },
1166
+ // default properties for <Radio /> component
1167
+ RADIO: {
1168
+ size: '20px',
1169
+ className: '',
1170
+ marginRight: '10px',
1171
+ item: {
1172
+ marginRight: '10px',
1173
+ marginBottom: '10px'
1174
+ },
1175
+ border: {
1176
+ width: '2px',
1177
+ style: 'solid',
1178
+ color: '#E7E7E7',
1179
+ activeColor: '#3C3D46'
1180
+ },
1181
+ label: {
1182
+ color: '#3C3D46',
1183
+ lineHeight: '21px',
1184
+ font: {
1185
+ ...fontObject
1186
+ }
1187
+ }
1188
+ },
1189
+ // default properties for <Form /> component
1190
+ FORM: {
1191
+ className: ''
447
1192
  }
448
- if (projectImportConfig['../../../../tui.config.js']) {
449
- projectResult = projectImportConfig['../../../../tui.config.js']().then(module => module.default);
1193
+ };
1194
+
1195
+ async function getPProps() {
1196
+ let projectResult = {};
1197
+ const projectPath = `../../../../tui.config.js`;
1198
+ async function loadComponent(componentName) {
1199
+ try {
1200
+ const Component = await import( /* @vite-ignore */componentName);
1201
+ return Component.default;
1202
+ } catch (err) {
1203
+ console.error(`Error loading component: ${componentName}`);
1204
+ return null;
1205
+ }
450
1206
  }
451
- return type === true ? packageResult : projectResult;
1207
+ const projectImportConfig = await loadComponent(projectPath);
1208
+ if (projectImportConfig) {
1209
+ projectResult = projectImportConfig;
1210
+ }
1211
+ return {
1212
+ packageResult,
1213
+ projectResult
1214
+ };
452
1215
  }
453
-
454
- let projectConfig = {};
455
- let packageConfig = {};
456
- async function getProps(type) {
1216
+ async function getProps() {
457
1217
  let props;
458
1218
  try {
459
- const newProps = await getPProps(type);
460
- props = _.merge(type === true ? packageConfig : projectConfig, newProps);
1219
+ const newProps = await getPProps();
1220
+ props = _.merge(newProps.packageResult, newProps.projectResult);
461
1221
  } catch (error) {
462
1222
  console.error('Error in getProps:', error);
463
1223
  }
464
1224
  return props;
465
1225
  }
466
- packageConfig = getProps(true);
467
- packageConfig = getProps();
468
- const merge = _.merge(packageConfig, projectConfig);
1226
+
1227
+ var configStylesPromise = getProps();
469
1228
  const hasOwnerProperty = (object, property) => {
470
1229
  return Object.prototype.hasOwnProperty.call(object, property);
471
1230
  };
@@ -503,8 +1262,9 @@ const Button = ({
503
1262
  disabledBackgroundColor,
504
1263
  ...props
505
1264
  }) => {
1265
+ const [classProps, setClassProps] = useState({});
1266
+ const [configStyles, setConfigStyles] = useState({});
506
1267
  const [isHover, setIsHover] = useState(false);
507
- const classProps = classnames(className ?? merge.BUTTON.className);
508
1268
  const handleMouseEnter = () => {
509
1269
  setIsHover(true);
510
1270
  };
@@ -515,41 +1275,51 @@ const Button = ({
515
1275
  if (!label && !icon) {
516
1276
  alert('Add icon or label props on Button component');
517
1277
  }
1278
+ configStylesPromise.then(data => {
1279
+ setClassProps(() => classnames(className ?? data.BUTTON.className));
1280
+ setConfigStyles(() => {
1281
+ return {
1282
+ ...data
1283
+ };
1284
+ });
1285
+ }, error => {
1286
+ console.error(error);
1287
+ });
518
1288
  }, []);
519
- return /*#__PURE__*/React__default.createElement("button", _extends({
1289
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, configStyles.BUTTON && /*#__PURE__*/React__default.createElement("button", _extends({
520
1290
  style: {
521
1291
  display: 'flex',
522
1292
  outline: 'none',
523
1293
  alignItems: 'center',
524
1294
  justifyContent: 'center',
525
- fontSize: size ?? merge.BUTTON.font.size,
526
- fontStyle: style ?? merge.BUTTON.font.style,
527
- fontFamily: font ?? merge.BUTTON.font.family,
528
- height: height ?? merge.BUTTON.height,
529
- fontWeight: weight ?? merge.BUTTON.font.weight,
530
- padding: padding ?? merge.BUTTON.padding,
531
- borderRadius: radius ?? merge.BUTTON.radius,
532
- boxSizing: boxSizing ?? merge.BUTTON.box.sizing,
533
- transition: transition ?? merge.BUTTON.transition,
534
- border: outline ? 'none' : border ?? merge.BUTTON.border,
535
- width: contentWidth ? 'auto' : width ?? merge.BUTTON.width,
536
- cursor: disabled ? 'not-allowed' : cursor ?? merge.BUTTON.cursor,
537
- textTransform: textTransform ?? merge.BUTTON.text.transform,
538
- 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,
539
- 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',
540
- 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
1295
+ fontSize: size ?? configStyles.BUTTON.font.size,
1296
+ fontStyle: style ?? configStyles.BUTTON.font.style,
1297
+ fontFamily: font ?? configStyles.BUTTON.font.family,
1298
+ height: height ?? configStyles.BUTTON.height,
1299
+ fontWeight: weight ?? configStyles.BUTTON.font.weight,
1300
+ padding: padding ?? configStyles.BUTTON.padding,
1301
+ borderRadius: radius ?? configStyles.BUTTON.radius,
1302
+ boxSizing: boxSizing ?? configStyles.BUTTON.box.sizing,
1303
+ transition: transition ?? configStyles.BUTTON.transition,
1304
+ border: outline ? 'none' : border ?? configStyles.BUTTON.border,
1305
+ width: contentWidth ? 'auto' : width ?? configStyles.BUTTON.width,
1306
+ cursor: disabled ? 'not-allowed' : cursor ?? configStyles.BUTTON.cursor,
1307
+ textTransform: textTransform ?? configStyles.BUTTON.text.transform,
1308
+ backgroundColor: (outline || !outline) && disabled ? disabledBackgroundColor ? disabledBackgroundColor : configStyles.BUTTON.colors.disabledBackground : outline && !disabled ? isHover ? backgroundColor ? backgroundColor : configStyles.BUTTON.colors.background : '#ffffff' : !outline && !disabled && isHover ? backgroundHoverColor ? backgroundHoverColor : configStyles.BUTTON.colors.backgroundHover : backgroundColor ? backgroundColor : configStyles.BUTTON.colors.background,
1309
+ boxShadow: outline ? disabled ? `inset 0 0 0 2px ${disabledLineColor ? disabledLineColor : configStyles.BUTTON.colors.disabledLine}` : `inset 0 0 0 2px ${backgroundColor ? backgroundColor : configStyles.BUTTON.colors.background}` : 'none',
1310
+ color: (outline || !outline) && disabled ? disabledColor ? disabledColor : configStyles.BUTTON.colors.disabled : outline && !disabled ? isHover ? color ? color : configStyles.BUTTON.color : backgroundColor ? backgroundColor : configStyles.BUTTON.colors.background : !outline && !disabled && isHover ? hoverColor ? hoverColor : configStyles.BUTTON.text.colors.hover : color ? color : configStyles.BUTTON.color
541
1311
  },
542
- type: type ?? merge.BUTTON.type,
543
- disabled: disabled ?? merge.BUTTON.disabled,
1312
+ type: type ?? configStyles.BUTTON.type,
1313
+ disabled: disabled ?? configStyles.BUTTON.disabled,
544
1314
  onClick: disabled ? _ => _ : type !== 'submit' ? onClick ? onClick : () => alert('Add click event handler on Button component') : _ => _,
545
1315
  onMouseEnter: handleMouseEnter,
546
1316
  onMouseLeave: handleMouseLeave,
547
1317
  className: classProps
548
1318
  }, props), isHover && hoverIcon ? hoverIcon : icon ?? null, ' ', label && /*#__PURE__*/React__default.createElement("span", {
549
1319
  style: {
550
- marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : merge.BUTTON.icon.marginRight : '0px'
1320
+ marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : configStyles.BUTTON.icon.marginRight : '0px'
551
1321
  }
552
- }, label), ' ', !icon && !label && 'Add icon or label prop on Button component');
1322
+ }, label), ' ', !icon && !label && 'Add icon or label prop on Button component'));
553
1323
  };
554
1324
  Button.propTypes = {
555
1325
  type: PropTypes.string,
@@ -795,10 +1565,11 @@ const File = /*#__PURE__*/forwardRef(({
795
1565
  }, ref) => {
796
1566
  const inpRef = useRef(null);
797
1567
  const memoizedItems = useMemo(() => filesArray, [filesArray]);
798
- const classProps = classnames(className ?? merge.FILE.className);
799
1568
  const [error, setError] = useState('');
800
1569
  const [isHover, setIsHover] = useState(false);
1570
+ const [classProps, setClassProps] = useState({});
801
1571
  const [singleFile, setSingleFile] = useState(null);
1572
+ const [configStyles, setConfigStyles] = useState({});
802
1573
  const [choosenFileCount, setChoosenFileCount] = useState(0);
803
1574
  const [image, setImage] = useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url : 'pdf' : null : null);
804
1575
  const handleRemoveComponent = () => {
@@ -841,14 +1612,14 @@ const File = /*#__PURE__*/forwardRef(({
841
1612
  change({
842
1613
  file: file[ix],
843
1614
  uuid: v4(),
844
- check: formatError ?? merge.FILE.error.format
1615
+ check: formatError ?? configStyles.FILE.error.format
845
1616
  });
846
1617
  }
847
1618
  } else {
848
1619
  change({
849
1620
  file: file[ix],
850
1621
  uuid: v4(),
851
- check: maxSizeError ?? merge.FILE.error.maxSize
1622
+ check: maxSizeError ?? configStyles.FILE.error.maxSize
852
1623
  });
853
1624
  }
854
1625
  }
@@ -870,14 +1641,14 @@ const File = /*#__PURE__*/forwardRef(({
870
1641
  change({
871
1642
  file: file[ix],
872
1643
  uuid: v4(),
873
- check: formatError ?? merge.FILE.error.format
1644
+ check: formatError ?? configStyles.FILE.error.format
874
1645
  });
875
1646
  }
876
1647
  } else {
877
1648
  change({
878
1649
  file: file[ix],
879
1650
  uuid: v4(),
880
- check: maxSizeError ?? merge.FILE.error.maxSize
1651
+ check: maxSizeError ?? configStyles.FILE.error.maxSize
881
1652
  });
882
1653
  }
883
1654
  }
@@ -891,7 +1662,7 @@ const File = /*#__PURE__*/forwardRef(({
891
1662
  setImage(null);
892
1663
  handleUploadFiles(file);
893
1664
  if (file.length === 0 && memoizedItems.length === 0) {
894
- setError(noChoosenFile ?? merge.FILE.error.noChoosen);
1665
+ setError(noChoosenFile ?? configStyles.FILE.error.noChoosen);
895
1666
  }
896
1667
  } else {
897
1668
  if (file[0]) {
@@ -909,16 +1680,16 @@ const File = /*#__PURE__*/forwardRef(({
909
1680
  }
910
1681
  } else {
911
1682
  setImage(null);
912
- setError(formatError ?? merge.FILE.error.format);
1683
+ setError(formatError ?? configStyles.FILE.error.format);
913
1684
  }
914
1685
  } else {
915
1686
  setImage(null);
916
- setError(maxSizeError ?? merge.FILE.error.maxSize);
1687
+ setError(maxSizeError ?? configStyles.FILE.error.maxSize);
917
1688
  }
918
1689
  }
919
1690
  if (file.length === 0) {
920
1691
  setImage(null);
921
- setError(noChoosenFile ?? merge.FILE.error.noChoosen);
1692
+ setError(noChoosenFile ?? configStyles.FILE.error.noChoosen);
922
1693
  }
923
1694
  }
924
1695
  };
@@ -1005,10 +1776,22 @@ const File = /*#__PURE__*/forwardRef(({
1005
1776
  alert('Please add change prop on File component');
1006
1777
  }
1007
1778
  }, [change]);
1008
- return /*#__PURE__*/React__default.createElement("div", {
1779
+ useEffect(() => {
1780
+ configStylesPromise.then(data => {
1781
+ setClassProps(() => classnames(className ?? data.FILE.className));
1782
+ setConfigStyles(() => {
1783
+ return {
1784
+ ...data
1785
+ };
1786
+ });
1787
+ }, error => {
1788
+ console.error(error);
1789
+ });
1790
+ }, []);
1791
+ return configStyles.FILE && /*#__PURE__*/React__default.createElement("div", {
1009
1792
  style: {
1010
1793
  width: '100%',
1011
- maxWidth: maxWidth ?? merge.FILE.maxWidth
1794
+ maxWidth: maxWidth ?? configStyles.FILE.maxWidth
1012
1795
  },
1013
1796
  className: classProps
1014
1797
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -1020,18 +1803,18 @@ const File = /*#__PURE__*/forwardRef(({
1020
1803
  }
1021
1804
  }, label && /*#__PURE__*/React__default.createElement("label", {
1022
1805
  style: {
1023
- color: labelColor ?? merge.FILE.label.color,
1024
- fontSize: labelSize ?? merge.FILE.label.font.size,
1025
- fontStyle: labelStyle ?? merge.FILE.label.font.style,
1026
- fontWeight: labelWeight ?? merge.FILE.label.font.weight,
1027
- fontFamily: labelFamily ?? merge.FILE.label.font.family
1806
+ color: labelColor ?? configStyles.FILE.label.color,
1807
+ fontSize: labelSize ?? configStyles.FILE.label.font.size,
1808
+ fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
1809
+ fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
1810
+ fontFamily: labelFamily ?? configStyles.FILE.label.font.family
1028
1811
  }
1029
- }, label, required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : merge.FILE.icon.required ? merge.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
1812
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
1030
1813
  style: {
1031
1814
  cursor: 'pointer'
1032
1815
  },
1033
1816
  onClick: handleRemoveComponent
1034
- }, iconDeleteComponent ? iconDeleteComponent : merge.FILE.icon.deleteComponent ? merge.FILE.icon.deleteComponent : /*#__PURE__*/React__default.createElement(SvgDeleteComponent, null))), /*#__PURE__*/React__default.createElement("div", {
1817
+ }, iconDeleteComponent ? iconDeleteComponent : configStyles.FILE.icon.deleteComponent ? configStyles.FILE.icon.deleteComponent : /*#__PURE__*/React__default.createElement(SvgDeleteComponent, null))), /*#__PURE__*/React__default.createElement("div", {
1035
1818
  style: {
1036
1819
  width: '100%',
1037
1820
  display: 'flex',
@@ -1040,12 +1823,12 @@ const File = /*#__PURE__*/forwardRef(({
1040
1823
  boxSizing: 'border-box',
1041
1824
  justifyContent: 'center',
1042
1825
  cursor: !disabled ? 'pointer' : 'not-allowed',
1043
- height: height ?? merge.FILE.height,
1044
- borderWidth: borderWidth ?? merge.FILE.border.width,
1045
- borderStyle: borderStyle ?? merge.FILE.border.style,
1046
- borderRadius: radius ?? merge.FILE.radius,
1047
- backgroundColor: backgroundColor ?? merge.FILE.colors.background,
1048
- borderColor: error ? errorColor ? errorColor : merge.FILE.error.color : disabled ? borderColor ? borderColor : merge.FILE.border.color : isHover ? borderHoverColor ? borderHoverColor : merge.FILE.border.colors.hover : borderColor ? borderColor : merge.FILE.border.color
1826
+ height: height ?? configStyles.FILE.height,
1827
+ borderWidth: borderWidth ?? configStyles.FILE.border.width,
1828
+ borderStyle: borderStyle ?? configStyles.FILE.border.style,
1829
+ borderRadius: radius ?? configStyles.FILE.radius,
1830
+ backgroundColor: backgroundColor ?? configStyles.FILE.colors.background,
1831
+ borderColor: error ? errorColor ? errorColor : configStyles.FILE.error.color : disabled ? borderColor ? borderColor : configStyles.FILE.border.color : isHover ? borderHoverColor ? borderHoverColor : configStyles.FILE.border.colors.hover : borderColor ? borderColor : configStyles.FILE.border.color
1049
1832
  },
1050
1833
  onDrop: handleDrop,
1051
1834
  onClick: handleClick,
@@ -1069,40 +1852,40 @@ const File = /*#__PURE__*/forwardRef(({
1069
1852
  alignItems: 'center',
1070
1853
  flexDirection: 'column',
1071
1854
  justifyContent: 'center',
1072
- color: color ?? merge.FILE.color,
1073
- fontSize: size ?? merge.FILE.font.size,
1074
- fontStyle: style ?? merge.FILE.font.style,
1075
- fontFamily: family ?? merge.FILE.font.family,
1076
- fontWeight: weight ?? merge.FILE.font.weight
1855
+ color: color ?? configStyles.FILE.color,
1856
+ fontSize: size ?? configStyles.FILE.font.size,
1857
+ fontStyle: style ?? configStyles.FILE.font.style,
1858
+ fontFamily: family ?? configStyles.FILE.font.family,
1859
+ fontWeight: weight ?? configStyles.FILE.font.weight
1077
1860
  }
1078
- }, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : merge.FILE.icon.pdf ? merge.FILE.icon.pdf : /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : merge.FILE.icon.heic ? merge.FILE.icon.heic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : /*#__PURE__*/React__default.createElement("img", {
1861
+ }, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : /*#__PURE__*/React__default.createElement("img", {
1079
1862
  src: image,
1080
1863
  style: {
1081
1864
  display: 'block',
1082
1865
  maxWidth: '100%',
1083
1866
  maxHeight: '95%',
1084
1867
  objectFit: 'contain',
1085
- width: fileAreaImageWidth ?? merge.FILE.fileAreaImageWidth,
1086
- height: fileAreaImageHeight ?? merge.FILE.fileAreaImageHeight
1868
+ width: fileAreaImageWidth ?? configStyles.FILE.fileAreaImageWidth,
1869
+ height: fileAreaImageHeight ?? configStyles.FILE.fileAreaImageHeight
1087
1870
  },
1088
1871
  alt: "file preview"
1089
- }) : preview ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, iconUpload ? iconUpload : merge.FILE.icon.upload ? merge.FILE.icon.upload : /*#__PURE__*/React__default.createElement(SvgUpload, null)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
1872
+ }) : preview ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, iconUpload ? iconUpload : configStyles.FILE.icon.upload ? configStyles.FILE.icon.upload : /*#__PURE__*/React__default.createElement(SvgUpload, null)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
1090
1873
  style: {
1091
1874
  margin: '0px'
1092
1875
  }
1093
- }, putFileHere ?? merge.FILE.putFileHere, /*#__PURE__*/React__default.createElement("br", null), or ? or : merge.FILE.or, ' ', /*#__PURE__*/React__default.createElement("span", {
1876
+ }, putFileHere ?? configStyles.FILE.putFileHere, /*#__PURE__*/React__default.createElement("br", null), or ? or : configStyles.FILE.or, ' ', /*#__PURE__*/React__default.createElement("span", {
1094
1877
  style: {
1095
- color: uploadColor ?? merge.FILE.uploadColor
1878
+ color: uploadColor ?? configStyles.FILE.uploadColor
1096
1879
  }
1097
- }, upload ?? merge.FILE.upload))), /*#__PURE__*/React__default.createElement("div", {
1880
+ }, upload ?? configStyles.FILE.upload))), /*#__PURE__*/React__default.createElement("div", {
1098
1881
  style: {
1099
- marginTop: extentionsRowMarginTop ?? merge.FILE.extentionsRowMarginTop
1882
+ marginTop: extentionsRowMarginTop ?? configStyles.FILE.extentionsRowMarginTop
1100
1883
  }
1101
1884
  }, /*#__PURE__*/React__default.createElement("p", {
1102
1885
  style: {
1103
1886
  margin: '0px'
1104
1887
  }
1105
- }, fileSizeText ?? merge.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
1888
+ }, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
1106
1889
  style: {
1107
1890
  width: '100%',
1108
1891
  padding: '5px',
@@ -1114,16 +1897,16 @@ const File = /*#__PURE__*/forwardRef(({
1114
1897
  }, /*#__PURE__*/React__default.createElement(Button, {
1115
1898
  contentWidth: true,
1116
1899
  onClick: _ => _,
1117
- font: uploadBtnFont ?? merge.FILE.uploadBtn.font.family,
1118
- size: uploadBtnSize ?? merge.FILE.uploadBtn.font.size,
1119
- style: uploadBtnStyle ?? merge.FILE.uploadBtn.font.style,
1120
- weight: uploadBtnWeight ?? merge.FILE.uploadBtn.font.weight,
1121
- label: uploadBtnLabel ?? merge.FILE.uploadBtn.label,
1122
- color: uploadBtnColor ?? merge.FILE.uploadBtn.color,
1123
- height: uploadBtnHeight ?? merge.FILE.uploadBtn.height,
1124
- hoverColor: uploadBtnHoverColor ?? merge.FILE.uploadBtn.colors.hover,
1125
- backgroundColor: uploadBtnBackgroundColor ?? merge.FILE.uploadBtn.colors.background,
1126
- backgroundHoverColor: uploadBtnBackgroundColorHover ?? merge.FILE.uploadBtn.colors.backgroundHover
1900
+ font: uploadBtnFont ?? configStyles.FILE.uploadBtn.font.family,
1901
+ size: uploadBtnSize ?? configStyles.FILE.uploadBtn.font.size,
1902
+ style: uploadBtnStyle ?? configStyles.FILE.uploadBtn.font.style,
1903
+ weight: uploadBtnWeight ?? configStyles.FILE.uploadBtn.font.weight,
1904
+ label: uploadBtnLabel ?? configStyles.FILE.uploadBtn.label,
1905
+ color: uploadBtnColor ?? configStyles.FILE.uploadBtn.color,
1906
+ height: uploadBtnHeight ?? configStyles.FILE.uploadBtn.height,
1907
+ hoverColor: uploadBtnHoverColor ?? configStyles.FILE.uploadBtn.colors.hover,
1908
+ backgroundColor: uploadBtnBackgroundColor ?? configStyles.FILE.uploadBtn.colors.background,
1909
+ backgroundHoverColor: uploadBtnBackgroundColorHover ?? configStyles.FILE.uploadBtn.colors.backgroundHover
1127
1910
  }), /*#__PURE__*/React__default.createElement("p", {
1128
1911
  style: {
1129
1912
  margin: '0px',
@@ -1132,7 +1915,7 @@ const File = /*#__PURE__*/forwardRef(({
1132
1915
  whiteSpace: 'nowrap',
1133
1916
  textOverflow: 'ellipsis'
1134
1917
  }
1135
- }, singleFile ? singleFile[0].name : /*#__PURE__*/React__default.createElement("span", null, fileSizeText ?? merge.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default.createElement("div", {
1918
+ }, singleFile ? singleFile[0].name : /*#__PURE__*/React__default.createElement("span", null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default.createElement("div", {
1136
1919
  style: {
1137
1920
  position: 'absolute',
1138
1921
  top: '0px',
@@ -1145,9 +1928,9 @@ const File = /*#__PURE__*/forwardRef(({
1145
1928
  boxSizing: 'border-box',
1146
1929
  alignItems: 'flex-start',
1147
1930
  justifyContent: 'flex-end',
1148
- borderRadius: radius ?? merge.FILE.radius,
1931
+ borderRadius: radius ?? configStyles.FILE.radius,
1149
1932
  display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
1150
- backgroundColor: hiddenBackgroundColor ?? merge.FILE.colors.backgroundHidden
1933
+ backgroundColor: hiddenBackgroundColor ?? configStyles.FILE.colors.backgroundHidden
1151
1934
  },
1152
1935
  onClick: handleStopPropagation
1153
1936
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -1155,15 +1938,15 @@ const File = /*#__PURE__*/forwardRef(({
1155
1938
  cursor: 'pointer'
1156
1939
  },
1157
1940
  onClick: handleRemoveFile
1158
- }, iconRemoveFile ? iconRemoveFile : merge.FILE.icon.removeFile ? merge.FILE.icon.removeFile : /*#__PURE__*/React__default.createElement(SvgRemoveFile, null)))), error ? /*#__PURE__*/React__default.createElement("span", {
1941
+ }, iconRemoveFile ? iconRemoveFile : configStyles.FILE.icon.removeFile ? configStyles.FILE.icon.removeFile : /*#__PURE__*/React__default.createElement(SvgRemoveFile, null)))), error ? /*#__PURE__*/React__default.createElement("span", {
1159
1942
  style: {
1160
1943
  marginTop: '6px',
1161
1944
  display: 'inline-block',
1162
- color: errorColor ?? merge.FILE.error.color,
1163
- fontSize: errorSize ?? merge.FILE.error.font.size,
1164
- fontStyle: errorStyle ?? merge.FILE.error.font.style,
1165
- fontWeight: errorWeight ?? merge.FILE.error.font.weight,
1166
- fontFamily: errorFamily ?? merge.FILE.error.font.family
1945
+ color: errorColor ?? configStyles.FILE.error.color,
1946
+ fontSize: errorSize ?? configStyles.FILE.error.font.size,
1947
+ fontStyle: errorStyle ?? configStyles.FILE.error.font.style,
1948
+ fontWeight: errorWeight ?? configStyles.FILE.error.font.weight,
1949
+ fontFamily: errorFamily ?? configStyles.FILE.error.font.family
1167
1950
  }
1168
1951
  }, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
1169
1952
  return /*#__PURE__*/React__default.createElement(FileItem, {
@@ -1173,35 +1956,35 @@ const File = /*#__PURE__*/forwardRef(({
1173
1956
  status: item.status,
1174
1957
  size: item.file.size,
1175
1958
  name: item.file.name,
1176
- iconPdf: iconPdf ?? merge.FILE.icon.pdf,
1177
- iconPng: iconPng ?? merge.FILE.icon.png,
1178
- iconJpg: iconJpg ?? merge.FILE.icon.jpg,
1179
- iconJpeg: iconJpeg ?? merge.FILE.icon.jpeg,
1180
- iconHeic: iconHeic ?? merge.FILE.icon.heic,
1181
- iconWrong: iconWrong ?? merge.FILE.icon.wrong,
1182
- iconDelItem: iconDeleteItem ?? merge.FILE.icon.deleteItem,
1959
+ iconPdf: iconPdf ?? configStyles.FILE.icon.pdf,
1960
+ iconPng: iconPng ?? configStyles.FILE.icon.png,
1961
+ iconJpg: iconJpg ?? configStyles.FILE.icon.jpg,
1962
+ iconJpeg: iconJpeg ?? configStyles.FILE.icon.jpeg,
1963
+ iconHeic: iconHeic ?? configStyles.FILE.icon.heic,
1964
+ iconWrong: iconWrong ?? configStyles.FILE.icon.wrong,
1965
+ iconDelItem: iconDeleteItem ?? configStyles.FILE.icon.deleteItem,
1183
1966
  timeForRemoveError: timeForRemoveError,
1184
1967
  removeFile: removeFile ? removeFile : _ => _,
1185
- radius: radius ?? merge.FILE.radius,
1968
+ radius: radius ?? configStyles.FILE.radius,
1186
1969
  fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
1187
- progressColor: progressColor ?? merge.FILE.progress.color,
1188
- listItemHeight: listItemHeight ?? merge.FILE.listItem.height,
1189
- listItemPadding: listItemPadding ?? merge.FILE.listItem.padding,
1190
- progressFontSize: progressFontSize ?? merge.FILE.progress.font.size,
1191
- progressFontStyle: progressFontStyle ?? merge.FILE.progress.font.style,
1192
- progressFontWeight: progressFontWeight ?? merge.FILE.progress.font.weight,
1193
- progressFontFamily: progressFontFamily ?? merge.FILE.progress.font.family,
1194
- listItemErrorSize: listItemErrorSize ?? merge.FILE.listItem.error.font.size,
1195
- listItemErrorStyle: listItemErrorStyle ?? merge.FILE.listItem.error.style,
1196
- listItemErrorWeight: listItemErrorWeight ?? merge.FILE.listItem.error.weight,
1197
- listItemErrorFamily: listItemErrorFamily ?? merge.FILE.listItem.error.family,
1198
- listItemErrorColor: listItemErrorColor ?? merge.FILE.listItem.error.color,
1199
- progressTrackColor: progressTrackColor ?? merge.FILE.progress.colors.track,
1200
- progressFailedColor: progressFailedColor ?? merge.FILE.progress.colors.failed,
1201
- progressSuccessColor: progressSuccessColor ?? merge.FILE.progress.colors.success,
1202
- progressLoadingColor: progressLoadingColor ?? merge.FILE.progress.colors.loading,
1203
- listItemBackgroundColor: listItemBackgroundColor ?? merge.FILE.listItem.colors.background,
1204
- listItemBackgroundErrorColor: listItemBackgroundErrorColor ?? merge.FILE.listItem.colors.backgroundError
1970
+ progressColor: progressColor ?? configStyles.FILE.progress.color,
1971
+ listItemHeight: listItemHeight ?? configStyles.FILE.listItem.height,
1972
+ listItemPadding: listItemPadding ?? configStyles.FILE.listItem.padding,
1973
+ progressFontSize: progressFontSize ?? configStyles.FILE.progress.font.size,
1974
+ progressFontStyle: progressFontStyle ?? configStyles.FILE.progress.font.style,
1975
+ progressFontWeight: progressFontWeight ?? configStyles.FILE.progress.font.weight,
1976
+ progressFontFamily: progressFontFamily ?? configStyles.FILE.progress.font.family,
1977
+ listItemErrorSize: listItemErrorSize ?? configStyles.FILE.listItem.error.font.size,
1978
+ listItemErrorStyle: listItemErrorStyle ?? configStyles.FILE.listItem.error.style,
1979
+ listItemErrorWeight: listItemErrorWeight ?? configStyles.FILE.listItem.error.weight,
1980
+ listItemErrorFamily: listItemErrorFamily ?? configStyles.FILE.listItem.error.family,
1981
+ listItemErrorColor: listItemErrorColor ?? configStyles.FILE.listItem.error.color,
1982
+ progressTrackColor: progressTrackColor ?? configStyles.FILE.progress.colors.track,
1983
+ progressFailedColor: progressFailedColor ?? configStyles.FILE.progress.colors.failed,
1984
+ progressSuccessColor: progressSuccessColor ?? configStyles.FILE.progress.colors.success,
1985
+ progressLoadingColor: progressLoadingColor ?? configStyles.FILE.progress.colors.loading,
1986
+ listItemBackgroundColor: listItemBackgroundColor ?? configStyles.FILE.listItem.colors.background,
1987
+ listItemBackgroundErrorColor: listItemBackgroundErrorColor ?? configStyles.FILE.listItem.colors.backgroundError
1205
1988
  });
1206
1989
  }));
1207
1990
  });
@@ -1390,9 +2173,9 @@ const Checkbox$1 = ({
1390
2173
  },
1391
2174
  onClick: !innerDisabled && handleChecked ? handleClick : _ => _
1392
2175
  }, innerChecked && (ignoreDisabledForChecked ?? !innerDisabled) ? checkedIcon ? checkedIcon : /*#__PURE__*/React__default.createElement(SvgCheckboxChecked, {
1393
- fillColor: checkedColor ?? merge.CHECKBOX.checkedColor
2176
+ fillColor: checkedColor
1394
2177
  }) : unCheckedIcon ? unCheckedIcon : /*#__PURE__*/React__default.createElement(SvgCheckboxUnchecked, {
1395
- fillColor: unCheckedColor ?? merge.CHECKBOX.unCheckedColor
2178
+ fillColor: unCheckedColor
1396
2179
  }), label && /*#__PURE__*/React__default.createElement("span", {
1397
2180
  style: {
1398
2181
  marginLeft: labelMarginLeft
@@ -1417,10 +2200,22 @@ const SingleCheckbox = ({
1417
2200
  ignoreDisabledForChecked
1418
2201
  }) => {
1419
2202
  const [innerData, setInnerData] = useState(null);
2203
+ const [configStyles, setConfigStyles] = useState({});
1420
2204
  useEffect(() => {
1421
2205
  setInnerData(data);
1422
2206
  }, [data]);
1423
- return /*#__PURE__*/React__default.createElement(Checkbox$1, {
2207
+ useEffect(() => {
2208
+ configStylesPromise.then(data => {
2209
+ setConfigStyles(() => {
2210
+ return {
2211
+ ...data
2212
+ };
2213
+ });
2214
+ }, error => {
2215
+ console.error(error);
2216
+ });
2217
+ }, []);
2218
+ return configStyles.CHECKBOX && /*#__PURE__*/React__default.createElement(Checkbox$1, {
1424
2219
  index: index,
1425
2220
  label: label,
1426
2221
  styles: styles,
@@ -1429,12 +2224,12 @@ const SingleCheckbox = ({
1429
2224
  disabled: disabled,
1430
2225
  innerIndex: innerIndex,
1431
2226
  checkedIcon: checkedIcon,
1432
- checkedColor: checkedColor,
1433
2227
  unCheckedIcon: unCheckedIcon,
1434
2228
  handleChecked: handleChecked,
1435
- unCheckedColor: unCheckedColor,
1436
2229
  ignoreDisabledForChecked: ignoreDisabledForChecked,
1437
- labelMarginLeft: labelMarginLeft ?? merge.CHECKBOX.labelMarginLeft
2230
+ checkedColor: checkedColor ?? configStyles.CHECKBOX.colors.checked,
2231
+ unCheckedColor: unCheckedColor ?? configStyles.CHECKBOX.colors.unChecked,
2232
+ labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.label.marginLeft
1438
2233
  });
1439
2234
  };
1440
2235
  SingleCheckbox.propTypes = {
@@ -1918,7 +2713,9 @@ const Table = ({
1918
2713
  const [body, setBody] = useState([]);
1919
2714
  const [header, setHeader] = useState([]);
1920
2715
  const [disableArr, setDisableArr] = useState([]);
2716
+ const [classProps, setClassProps] = useState({});
1921
2717
  const [checkedArray, setCheckedArray] = useState([]);
2718
+ const [configStyles, setConfigStyles] = useState({});
1922
2719
  const handleCheckIfArrow = (bodyData, data) => {
1923
2720
  let removeItemIndex;
1924
2721
  let headerWithoutArrow = [];
@@ -2385,18 +3182,30 @@ const Table = ({
2385
3182
  setHeader(() => dataHeader);
2386
3183
  }
2387
3184
  }, [dataHeader, arrowColumn, arrowShow, disableArr]);
2388
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("table", {
3185
+ useEffect(() => {
3186
+ configStylesPromise.then(data => {
3187
+ setClassProps(() => classnames(className ?? data.TABLE.className));
3188
+ setConfigStyles(() => {
3189
+ return {
3190
+ ...data
3191
+ };
3192
+ });
3193
+ }, error => {
3194
+ console.error(error);
3195
+ });
3196
+ }, []);
3197
+ return configStyles.TABLE && /*#__PURE__*/React__default.createElement("table", {
2389
3198
  style: {
2390
3199
  width: '100%',
2391
- borderCollapse: tableRowItem ?? merge.TABLE.body.row.asItem ? 'separate' : 'collapse',
2392
- borderSpacing: `0 ${tBodyRowMarginTop ?? merge.TABLE.body.row.marginTop}`
3200
+ borderCollapse: tableRowItem ?? configStyles.TABLE.body.row.asItem ? 'separate' : 'collapse',
3201
+ borderSpacing: `0 ${tBodyRowMarginTop ?? configStyles.TABLE.body.row.marginTop}`
2393
3202
  },
2394
3203
  onClick: handleTableClick,
2395
- className: className ?? merge.TABLE.className
3204
+ className: classProps
2396
3205
  }, header && header.length > 0 && /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", {
2397
3206
  style: {
2398
- color: tHeadColor ?? merge.TABLE.head.color,
2399
- backgroundColor: tHeadBackgroundColor ?? merge.TABLE.head.colors.background,
3207
+ color: tHeadColor ?? configStyles.TABLE.head.color,
3208
+ backgroundColor: tHeadBackgroundColor ?? configStyles.TABLE.head.colors.background,
2400
3209
  borderColor: hideBorder ? 'transparent' : '#eeeeee'
2401
3210
  }
2402
3211
  }, header.map((item, index) => {
@@ -2407,29 +3216,29 @@ const Table = ({
2407
3216
  handleCheckedHeader: handleCheckedHeader,
2408
3217
  handleHeaderItemClick: handleHeaderItemClick,
2409
3218
  handleCheckArrowActionHeader: handleCheckArrowActionHeader,
2410
- tHeadFamily: tHeadFamily ?? merge.TABLE.head.font.family,
2411
- tHeadPadding: tHeadPadding ?? merge.TABLE.head.padding,
2412
- tHeadFontSize: tHeadFontSize ?? merge.TABLE.head.font.size,
2413
- tHeadFontStyle: tHeadFontStyle ?? merge.TABLE.head.font.style,
2414
- tHeadTextAlign: tHeadTextAlign ?? merge.TABLE.textAlign,
2415
- tHeadFontWeight: tHeadFontWeight ?? merge.TABLE.head.font.weight,
2416
- borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : merge.TABLE.head.radius : '0px',
2417
- borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : merge.TABLE.head.radius : '0px',
2418
- tableColumnMinWidth: tableColumnMinWidth ?? merge.TABLE.column.minWidth,
2419
- tableColumnMaxWidth: tableColumnMaxWidth ?? merge.TABLE.column.maxWidth
3219
+ tHeadFamily: tHeadFamily ?? configStyles.TABLE.head.font.family,
3220
+ tHeadPadding: tHeadPadding ?? configStyles.TABLE.head.padding,
3221
+ tHeadFontSize: tHeadFontSize ?? configStyles.TABLE.head.font.size,
3222
+ tHeadFontStyle: tHeadFontStyle ?? configStyles.TABLE.head.font.style,
3223
+ tHeadTextAlign: tHeadTextAlign ?? configStyles.TABLE.textAlign,
3224
+ tHeadFontWeight: tHeadFontWeight ?? configStyles.TABLE.head.font.weight,
3225
+ borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.head.radius : '0px',
3226
+ borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.head.radius : '0px',
3227
+ tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
3228
+ tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth
2420
3229
  });
2421
3230
  }))), body && body.length > 0 && /*#__PURE__*/React__default.createElement("tbody", {
2422
3231
  style: {
2423
- boxShadow: tBodyBoxShadow ?? merge.TABLE.body.box.shadow
3232
+ boxShadow: tBodyBoxShadow ?? configStyles.TABLE.body.box.shadow
2424
3233
  }
2425
3234
  }, body.map((item, index) => {
2426
3235
  return /*#__PURE__*/React__default.createElement("tr", {
2427
3236
  key: `${item}_${index}`,
2428
3237
  style: {
2429
- backgroundColor: tableRowBGColor ?? merge.TABLE.body.row.colors.background,
2430
- borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : merge.TABLE.body.row.border,
2431
- borderColor: hideBorder ? 'transparent' : merge.TABLE.body.row.borderColor,
2432
- boxShadow: (tableRowItem ? tableRowItem : merge.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : merge.TABLE.body.row.box.shadow : 'none'
3238
+ backgroundColor: tableRowBGColor ?? configStyles.TABLE.body.row.colors.background,
3239
+ borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.body.row.border,
3240
+ borderColor: hideBorder ? 'transparent' : configStyles.TABLE.body.row.borderColor,
3241
+ boxShadow: (tableRowItem ? tableRowItem : configStyles.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : configStyles.TABLE.body.row.box.shadow : 'none'
2433
3242
  }
2434
3243
  }, Object.values(item).map((innerItem, innerIndex) => {
2435
3244
  return /*#__PURE__*/React__default.createElement(TD, {
@@ -2441,32 +3250,32 @@ const Table = ({
2441
3250
  id: item.id ? item.id : '',
2442
3251
  handleCheckDots: handleCheckDots,
2443
3252
  key: `${innerItem}_${index}_${innerIndex}`,
2444
- openListColor: openListColor ?? merge.TABLE.openList.color,
2445
- tableColumnMinWidth: tableColumnMinWidth ?? merge.TABLE.column.minWidth,
2446
- tableColumnMaxWidth: tableColumnMaxWidth ?? merge.TABLE.column.maxWidth,
2447
- openListFontSize: openListFontSize ?? merge.TABLE.openList.font.size,
2448
- openListFontStyle: openListFontStyle ?? merge.TABLE.openList.font.style,
2449
- openListFontWeight: openListFontWeight ?? merge.TABLE.openList.font.weight,
2450
- openListFontFamily: openListFontFamily ?? merge.TABLE.openList.font.family,
3253
+ openListColor: openListColor ?? configStyles.TABLE.openList.color,
3254
+ tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
3255
+ tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth,
3256
+ openListFontSize: openListFontSize ?? configStyles.TABLE.openList.font.size,
3257
+ openListFontStyle: openListFontStyle ?? configStyles.TABLE.openList.font.style,
3258
+ openListFontWeight: openListFontWeight ?? configStyles.TABLE.openList.font.weight,
3259
+ openListFontFamily: openListFontFamily ?? configStyles.TABLE.openList.font.family,
2451
3260
  handleCheckedBody: handleCheckedBody,
2452
3261
  handleBodyActionClick: handleBodyActionClick,
2453
3262
  handleMoreOptionsClick: handleMoreOptionsClick,
2454
3263
  handleContentListClick: handleContentListClick,
2455
- tBodyColor: tBodyColor ?? merge.TABLE.body.color,
2456
- rowItem: tableRowItem ?? merge.TABLE.body.row.isItem,
2457
- rowRadius: tableRowRadius ?? merge.TABLE.body.row.radius,
2458
- tBodyPadding: tBodyPadding ?? merge.TABLE.body.padding,
2459
- tBodyFontSize: tBodyFontSize ?? merge.TABLE.body.font.size,
2460
- tBodyTextAlign: tBodyTextAlign ?? merge.TABLE.textAlign,
2461
- tBodyFontFamily: tBodyFontFamily ?? merge.TABLE.body.font.family,
2462
- tBodyFontWeight: tBodyFontWeight ?? merge.TABLE.body.font.weight,
2463
- borderRight: innerIndex === Object.values(item).length - 1 ? 'none' : merge.TABLE.body.row.border,
2464
- borderRightColor: innerIndex === Object.values(item).length - 1 ? 'transparent' : merge.TABLE.body.row.borderColor,
3264
+ tBodyColor: tBodyColor ?? configStyles.TABLE.body.color,
3265
+ rowItem: tableRowItem ?? configStyles.TABLE.body.row.isItem,
3266
+ rowRadius: tableRowRadius ?? configStyles.TABLE.body.row.radius,
3267
+ tBodyPadding: tBodyPadding ?? configStyles.TABLE.body.padding,
3268
+ tBodyFontSize: tBodyFontSize ?? configStyles.TABLE.body.font.size,
3269
+ tBodyTextAlign: tBodyTextAlign ?? configStyles.TABLE.textAlign,
3270
+ tBodyFontFamily: tBodyFontFamily ?? configStyles.TABLE.body.font.family,
3271
+ tBodyFontWeight: tBodyFontWeight ?? configStyles.TABLE.body.font.weight,
3272
+ borderRight: innerIndex === Object.values(item).length - 1 ? 'none' : configStyles.TABLE.body.row.border,
3273
+ borderRightColor: innerIndex === Object.values(item).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor,
2465
3274
  handleCheckArrowAction: handleCheckArrowAction,
2466
3275
  handleOpenCloseRowSingleArrow: handleOpenCloseRowSingleArrow
2467
3276
  });
2468
3277
  }));
2469
- }))));
3278
+ })));
2470
3279
  };
2471
3280
  Table.propTypes = {
2472
3281
  getData: PropTypes.func,
@@ -2661,7 +3470,8 @@ const Modal = ({
2661
3470
  const [select, setSelect] = useState(0);
2662
3471
  const [isHover, setIsHover] = useState(false);
2663
3472
  const [innerData, setInnerData] = useState([]);
2664
- const classProps = classnames(className ?? merge.MODAL.className);
3473
+ const [classProps, setClassProps] = useState({});
3474
+ const [configStyles, setConfigStyles] = useState({});
2665
3475
  const handleCloseModal = () => {
2666
3476
  setShow(false);
2667
3477
  };
@@ -2725,15 +3535,25 @@ const Modal = ({
2725
3535
  }, [selected]);
2726
3536
  useEffect(() => {
2727
3537
  document.addEventListener('keydown', handleESC, false);
3538
+ configStylesPromise.then(data => {
3539
+ setClassProps(() => classnames(className ?? data.MODAL.className));
3540
+ setConfigStyles(() => {
3541
+ return {
3542
+ ...data
3543
+ };
3544
+ });
3545
+ }, error => {
3546
+ console.error(error);
3547
+ });
2728
3548
  return () => {
2729
3549
  setSelect(0);
2730
3550
  setInnerData([]);
2731
3551
  document.removeEventListener('keydown', handleESC, false);
2732
3552
  };
2733
3553
  }, []);
2734
- return /*#__PURE__*/React__default.createElement("div", {
3554
+ return configStyles.MODAL && /*#__PURE__*/React__default.createElement("div", {
2735
3555
  className: classProps,
2736
- onClick: outsideClose || merge.MODAL.outsideClose ? handleCloseModal : _ => _,
3556
+ onClick: outsideClose || configStyles.MODAL.outsideClose ? handleCloseModal : _ => _,
2737
3557
  style: {
2738
3558
  top: '0px',
2739
3559
  left: '0px',
@@ -2741,7 +3561,7 @@ const Modal = ({
2741
3561
  width: '100%',
2742
3562
  height: '100vh',
2743
3563
  position: 'fixed',
2744
- backgroundColor: layerBackgroundColor ?? merge.MODAL.colors.backgroundLayer
3564
+ backgroundColor: layerBackgroundColor ?? configStyles.MODAL.colors.backgroundLayer
2745
3565
  }
2746
3566
  }, /*#__PURE__*/React__default.createElement("div", {
2747
3567
  style: {
@@ -2749,8 +3569,8 @@ const Modal = ({
2749
3569
  display: 'flex',
2750
3570
  width: '100%',
2751
3571
  height: '100vh',
2752
- alignItems: alignItems ?? merge.MODAL.alignItems,
2753
- justifyContent: justifyContent ?? merge.MODAL.justifyContent
3572
+ alignItems: alignItems ?? configStyles.MODAL.alignItems,
3573
+ justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
2754
3574
  }
2755
3575
  }, /*#__PURE__*/React__default.createElement("div", {
2756
3576
  className: `${styles$8['animation__modal']}`,
@@ -2759,16 +3579,16 @@ const Modal = ({
2759
3579
  position: 'relative',
2760
3580
  boxSizing: 'border-box',
2761
3581
  display: type === 'content' ? 'grid' : 'block',
2762
- width: width ?? merge.MODAL.width,
3582
+ width: width ?? configStyles.MODAL.width,
2763
3583
  overflow: type === 'content' ? 'auto' : 'hidden',
2764
- height: height ?? merge.MODAL.height,
3584
+ height: height ?? configStyles.MODAL.height,
2765
3585
  gridTemplateRows: type === 'content' ? 'auto 10fr' : '',
2766
- borderRadius: radius ?? merge.MODAL.radius,
2767
- maxWidth: mMaxWidth ?? merge.MODAL.maxWidth,
2768
- maxHeight: mMaxHeight ?? merge.MODAL.maxHeight,
2769
- minWidth: type === 'content' ? minWidth ?? merge.MODAL.minWidth : '',
2770
- backgroundColor: backgroundColor ?? merge.MODAL.colors.background,
2771
- minHeight: type === 'content' ? minHeight ?? merge.MODAL.minHeight : ''
3586
+ borderRadius: radius ?? configStyles.MODAL.radius,
3587
+ maxWidth: mMaxWidth ?? configStyles.MODAL.maxWidth,
3588
+ maxHeight: mMaxHeight ?? configStyles.MODAL.maxHeight,
3589
+ minWidth: type === 'content' ? minWidth ?? configStyles.MODAL.minWidth : '',
3590
+ backgroundColor: backgroundColor ?? configStyles.MODAL.colors.background,
3591
+ minHeight: type === 'content' ? minHeight ?? configStyles.MODAL.minHeight : ''
2772
3592
  }
2773
3593
  }, type === 'content' && /*#__PURE__*/React__default.createElement("div", {
2774
3594
  style: {
@@ -2777,10 +3597,10 @@ const Modal = ({
2777
3597
  display: 'flex',
2778
3598
  alignItems: 'center',
2779
3599
  boxSizing: 'border-box',
2780
- padding: padding ?? merge.MODAL.padding,
2781
- height: headerHeight ?? merge.MODAL.header.height,
3600
+ padding: padding ?? configStyles.MODAL.padding,
3601
+ height: headerHeight ?? configStyles.MODAL.header.height,
2782
3602
  justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
2783
- backgroundColor: closeAreaBackgroundColor ?? merge.MODAL.closeAreaBackgroundColor
3603
+ backgroundColor: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
2784
3604
  }
2785
3605
  }, headerText && type === 'content' && /*#__PURE__*/React__default.createElement("p", {
2786
3606
  style: {
@@ -2789,11 +3609,11 @@ const Modal = ({
2789
3609
  whiteSpace: 'nowrap',
2790
3610
  textOverflow: 'ellipsis',
2791
3611
  margin: '0px 16px 0px 0px',
2792
- color: headerColor ?? merge.MODAL.header.color,
2793
- fontSize: headerSize ?? merge.MODAL.header.font.size,
2794
- fontStyle: headerStyle ?? merge.MODAL.header.font.style,
2795
- fontFamily: headerFamily ?? merge.MODAL.header.font.family,
2796
- fontWeight: headerWeight ?? merge.MODAL.header.font.weight
3612
+ color: headerColor ?? configStyles.MODAL.header.color,
3613
+ fontSize: headerSize ?? configStyles.MODAL.header.font.size,
3614
+ fontStyle: headerStyle ?? configStyles.MODAL.header.font.style,
3615
+ fontFamily: headerFamily ?? configStyles.MODAL.header.font.family,
3616
+ fontWeight: headerWeight ?? configStyles.MODAL.header.font.weight
2797
3617
  }
2798
3618
  }, headerText), /*#__PURE__*/React__default.createElement("div", {
2799
3619
  onClick: handleCloseModal,
@@ -2802,7 +3622,7 @@ const Modal = ({
2802
3622
  height: '14px',
2803
3623
  cursor: 'pointer'
2804
3624
  }
2805
- }, closeIcon ? closeIcon : merge.MODAL.icon.close ? merge.MODAL.icon.close : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default.createElement("div", {
3625
+ }, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default.createElement("div", {
2806
3626
  style: {
2807
3627
  display: 'flex',
2808
3628
  width: '100%',
@@ -2812,9 +3632,9 @@ const Modal = ({
2812
3632
  boxSizing: 'border-box',
2813
3633
  justifyContent: 'center',
2814
3634
  overflow: type === 'content' ? 'auto' : 'hidden',
2815
- borderWidth: borderWidth ?? merge.MODAL.border.width,
2816
- borderStyle: borderStyle ?? merge.MODAL.border.style,
2817
- borderColor: borderColor ?? merge.MODAL.border.color
3635
+ borderWidth: borderWidth ?? configStyles.MODAL.border.width,
3636
+ borderStyle: borderStyle ?? configStyles.MODAL.border.style,
3637
+ borderColor: borderColor ?? configStyles.MODAL.border.color
2818
3638
  },
2819
3639
  onMouseEnter: handleMouseEnter,
2820
3640
  onMouseLeave: handleMouseLeave
@@ -2826,8 +3646,8 @@ const Modal = ({
2826
3646
  width: '100%',
2827
3647
  borderTopLeftRadius: '6px',
2828
3648
  borderTopRightRadius: '6px',
2829
- height: grayDecorHeight ?? merge.MODAL.grayDecorHeight,
2830
- background: closeAreaBackgroundColor ?? merge.MODAL.closeAreaBackgroundColor
3649
+ height: grayDecorHeight ?? configStyles.MODAL.grayDecorHeight,
3650
+ background: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
2831
3651
  }
2832
3652
  }, /*#__PURE__*/React__default.createElement("button", {
2833
3653
  onClick: handleCloseModal,
@@ -2844,9 +3664,9 @@ const Modal = ({
2844
3664
  cursor: 'pointer',
2845
3665
  backgroundColor: 'transparent'
2846
3666
  }
2847
- }, closeSlideIcon ? closeSlideIcon : merge.MODAL.icon.closeSlide ? merge.MODAL.icon.closeSlide : /*#__PURE__*/React__default.createElement(SvgCloseSlide, null))), /*#__PURE__*/React__default.createElement("div", {
3667
+ }, closeSlideIcon ? closeSlideIcon : configStyles.MODAL.icon.closeSlide ? configStyles.MODAL.icon.closeSlide : /*#__PURE__*/React__default.createElement(SvgCloseSlide, null))), /*#__PURE__*/React__default.createElement("div", {
2848
3668
  style: {
2849
- height: imageWrapHeight ?? merge.MODAL.image.wrapHeight
3669
+ height: imageWrapHeight ?? configStyles.MODAL.image.wrapHeight
2850
3670
  }
2851
3671
  }, innerData && innerData.length > 0 && innerData.map((item, index) => {
2852
3672
  if (select === index) {
@@ -2859,10 +3679,10 @@ const Modal = ({
2859
3679
  style: {
2860
3680
  display: 'block',
2861
3681
  objectFit: 'contain',
2862
- margin: imageMargin ?? merge.MODAL.image.margin,
2863
- borderRadius: radius ?? merge.MODAL.radius,
2864
- width: imageWidth ?? merge.MODAL.image.width,
2865
- height: imageHeight ?? merge.MODAL.image.height
3682
+ margin: imageMargin ?? configStyles.MODAL.image.margin,
3683
+ borderRadius: radius ?? configStyles.MODAL.radius,
3684
+ width: imageWidth ?? configStyles.MODAL.image.width,
3685
+ height: imageHeight ?? configStyles.MODAL.image.height
2866
3686
  },
2867
3687
  src: item.url
2868
3688
  }), isHover && showZoomIcon ? /*#__PURE__*/React__default.createElement("div", {
@@ -2883,7 +3703,7 @@ const Modal = ({
2883
3703
  justifyContent: 'center'
2884
3704
  },
2885
3705
  onClick: () => handleOpenInNewTab(item.url)
2886
- }, zoomIcon ? zoomIcon : merge.MODAL.icon.zoom ? merge.MODAL.icon.zoom : /*#__PURE__*/React__default.createElement(SvgZoom, null)) : '');
3706
+ }, zoomIcon ? zoomIcon : configStyles.MODAL.icon.zoom ? configStyles.MODAL.icon.zoom : /*#__PURE__*/React__default.createElement(SvgZoom, null)) : '');
2887
3707
  }
2888
3708
  }
2889
3709
  }), innerData && innerData.length > 1 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("button", {
@@ -2900,7 +3720,7 @@ const Modal = ({
2900
3720
  top: 'calc(50% - 12px)',
2901
3721
  backgroundColor: 'transparent'
2902
3722
  }
2903
- }, prevIcon ? prevIcon : merge.MODAL.icon.prev ? merge.MODAL.icon.prev : /*#__PURE__*/React__default.createElement(SvgPrev, null)), /*#__PURE__*/React__default.createElement("button", {
3723
+ }, prevIcon ? prevIcon : configStyles.MODAL.icon.prev ? configStyles.MODAL.icon.prev : /*#__PURE__*/React__default.createElement(SvgPrev, null)), /*#__PURE__*/React__default.createElement("button", {
2904
3724
  onClick: () => handleGoTo('next'),
2905
3725
  style: {
2906
3726
  position: 'absolute',
@@ -2914,7 +3734,7 @@ const Modal = ({
2914
3734
  top: 'calc(50% - 12px)',
2915
3735
  backgroundColor: 'transparent'
2916
3736
  }
2917
- }, nextIcon ? nextIcon : merge.MODAL.icon.next ? merge.MODAL.icon.next : /*#__PURE__*/React__default.createElement(SvgNext, null)))))))));
3737
+ }, nextIcon ? nextIcon : configStyles.MODAL.icon.next ? configStyles.MODAL.icon.next : /*#__PURE__*/React__default.createElement(SvgNext, null)))))))));
2918
3738
  };
2919
3739
  Modal.propTypes = {
2920
3740
  data: PropTypes.array,
@@ -3323,27 +4143,29 @@ const Input = ({
3323
4143
  }) => {
3324
4144
  const [show, setShow] = useState(false);
3325
4145
  const [isHover, setIsHover] = useState(false);
4146
+ const [classProps, setClassProps] = useState({});
4147
+ const [innerValue, setInnerValue] = useState('');
4148
+ const [configStyles, setConfigStyles] = useState({});
3326
4149
  const [innerErrorMessage, setInnerErrorMessage] = useState('');
3327
- const inpStyles = {
3328
- width: width ?? merge.INPUT.width,
4150
+ const inpStyles = configStyles.INPUT && {
4151
+ width: width ?? configStyles.INPUT.width,
3329
4152
  cursor: disabled ? 'not-allowed' : 'auto',
3330
- height: height ?? merge.INPUT.height,
3331
- padding: padding ?? merge.INPUT.padding,
3332
- fontSize: size ?? merge.INPUT.font.size,
3333
- fontStyle: style ?? merge.INPUT.font.style,
3334
- fontWeight: weight ?? merge.INPUT.font.weight,
3335
- fontFamily: family ?? merge.INPUT.font.family,
3336
- boxSizing: boxSizing ?? merge.INPUT.box.sizing,
3337
- color: innerErrorMessage && errorColor ? errorColor : color ? color : merge.INPUT.color,
3338
- backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : merge.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : merge.INPUT.colors.background
4153
+ height: height ?? configStyles.INPUT.height,
4154
+ padding: padding ?? configStyles.INPUT.padding,
4155
+ fontSize: size ?? configStyles.INPUT.font.size,
4156
+ fontStyle: style ?? configStyles.INPUT.font.style,
4157
+ fontWeight: weight ?? configStyles.INPUT.font.weight,
4158
+ fontFamily: family ?? configStyles.INPUT.font.family,
4159
+ boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
4160
+ color: innerErrorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color,
4161
+ backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
3339
4162
  };
3340
4163
  const uuid = v4();
3341
- const inpAttributes = {
4164
+ const inpAttributes = configStyles.INPUT && {
3342
4165
  placeholder: placeholder ?? '',
3343
4166
  iName: name ? name : `tui_${uuid}_tui`,
3344
- autoComplete: autoComplete ?? merge.INPUT.autoComplete
4167
+ autoComplete: autoComplete ?? configStyles.INPUT.autoComplete
3345
4168
  };
3346
- const classProps = classnames(className ?? merge.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']);
3347
4169
  const errorShow = keyframes`
3348
4170
  100% {
3349
4171
  bottom: '-20px';
@@ -3376,25 +4198,41 @@ const Input = ({
3376
4198
  !regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
3377
4199
  }
3378
4200
  }, [type, regexp, errorMessage, regexpErrorMessage]);
3379
- return /*#__PURE__*/React__default.createElement("div", {
4201
+ useEffect(() => {
4202
+ const val = typeof value === 'number' ? value.toString() : value;
4203
+ setInnerValue(() => val);
4204
+ }, [value]);
4205
+ useEffect(() => {
4206
+ configStylesPromise.then(data => {
4207
+ setClassProps(() => classnames(className ?? data.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']));
4208
+ setConfigStyles(() => {
4209
+ return {
4210
+ ...data
4211
+ };
4212
+ });
4213
+ }, error => {
4214
+ console.error(error);
4215
+ });
4216
+ }, []);
4217
+ return configStyles.INPUT && /*#__PURE__*/React__default.createElement("div", {
3380
4218
  className: classProps
3381
4219
  }, label ? /*#__PURE__*/React__default.createElement("label", {
3382
4220
  style: {
3383
- color: labelColor ?? merge.INPUT.label.color,
3384
- fontSize: labelSize ?? merge.INPUT.label.font.size,
3385
- fontStyle: labelStyle ?? merge.INPUT.label.font.style,
3386
- display: labelDisplay ?? merge.INPUT.label.display,
3387
- fontWeight: labelWeight ?? merge.INPUT.label.font.weight,
3388
- lineHeight: labelLineHeight ?? merge.INPUT.label.lineHeight,
3389
- marginBottom: labelMarginBottom ?? merge.INPUT.label.marginBottom,
3390
- fontFamily: labelFontFamily ?? merge.INPUT.label.font.family
4221
+ color: labelColor ?? configStyles.INPUT.label.color,
4222
+ fontSize: labelSize ?? configStyles.INPUT.label.font.size,
4223
+ fontStyle: labelStyle ?? configStyles.INPUT.label.font.style,
4224
+ display: labelDisplay ?? configStyles.INPUT.label.display,
4225
+ fontWeight: labelWeight ?? configStyles.INPUT.label.font.weight,
4226
+ lineHeight: labelLineHeight ?? configStyles.INPUT.label.lineHeight,
4227
+ marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom,
4228
+ fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family
3391
4229
  }
3392
4230
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
3393
4231
  className: `${styles$7['input-content']}`,
3394
4232
  style: {
3395
- width: width ?? merge.INPUT.width,
3396
- borderRadius: radius ?? merge.INPUT.radius,
3397
- boxShadow: innerErrorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${merge.INPUT.error.color}` : isHover && !disabled ? boxShadowHover ? boxShadowHover : merge.INPUT.box.shadowHover : boxShadow ? boxShadow : merge.INPUT.box.shadow
4233
+ width: width ?? configStyles.INPUT.width,
4234
+ borderRadius: radius ?? configStyles.INPUT.radius,
4235
+ boxShadow: innerErrorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${configStyles.INPUT.error.color}` : isHover && !disabled ? boxShadowHover ? boxShadowHover : configStyles.INPUT.box.shadowHover : boxShadow ? boxShadow : configStyles.INPUT.box.shadow
3398
4236
  },
3399
4237
  onMouseEnter: handleMouseEnter,
3400
4238
  onMouseLeave: handleMouseLeave
@@ -3405,33 +4243,33 @@ const Input = ({
3405
4243
  alignItems: 'center',
3406
4244
  justifyContent: 'center',
3407
4245
  cursor: type === 'password' ? 'pointer' : 'default',
3408
- height: height ?? merge.INPUT.height,
3409
- padding: padding ?? merge.INPUT.padding,
3410
- width: iconWidth ?? merge.INPUT.iconWidth,
3411
- boxSizing: boxSizing ?? merge.INPUT.box.sizing,
3412
- borderTopLeftRadius: radius ?? merge.INPUT.radius,
3413
- borderBottomLeftRadius: radius ?? merge.INPUT.radius,
3414
- backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : merge.INPUT.colors.background
4246
+ height: height ?? configStyles.INPUT.height,
4247
+ padding: padding ?? configStyles.INPUT.padding,
4248
+ width: iconWidth ?? configStyles.INPUT.iconWidth,
4249
+ boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
4250
+ borderTopLeftRadius: radius ?? configStyles.INPUT.radius,
4251
+ borderBottomLeftRadius: radius ?? configStyles.INPUT.radius,
4252
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
3415
4253
  }
3416
4254
  }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/React__default.createElement(TelInput, {
3417
4255
  type: type,
3418
- value: value,
4256
+ value: innerValue,
3419
4257
  inputChange: change,
3420
4258
  isHover: isHover,
3421
4259
  disabled: disabled,
3422
4260
  inpStyles: inpStyles,
3423
4261
  inpAttributes: inpAttributes,
3424
- radius: radius ?? merge.INPUT.radius,
3425
- phoneDisplay: phoneDisplay ?? merge.INPUT.tel.display,
3426
- phoneAlignItems: phoneAlignItems ?? merge.INPUT.tel.alignItems,
3427
- phoneJustifyContent: phoneJustifyContent ?? merge.INPUT.tel.justifyContent,
3428
- telBorderRightWidth: telBorderRightWidth ?? merge.INPUT.tel.borderRight.width,
3429
- telBorderRightStyle: telBorderRightStyle ?? merge.INPUT.tel.borderRight.style,
3430
- telBorderRightColor: telBorderRightColor ?? merge.INPUT.tel.borderRight.color,
3431
- telBorderRightColorHover: telBorderRightColorHover ?? merge.INPUT.tel.borderRight.colors.hover
4262
+ radius: radius ?? configStyles.INPUT.radius,
4263
+ phoneDisplay: phoneDisplay ?? configStyles.INPUT.tel.display,
4264
+ phoneAlignItems: phoneAlignItems ?? configStyles.INPUT.tel.alignItems,
4265
+ phoneJustifyContent: phoneJustifyContent ?? configStyles.INPUT.tel.justifyContent,
4266
+ telBorderRightWidth: telBorderRightWidth ?? configStyles.INPUT.tel.borderRight.width,
4267
+ telBorderRightStyle: telBorderRightStyle ?? configStyles.INPUT.tel.borderRight.style,
4268
+ telBorderRightColor: telBorderRightColor ?? configStyles.INPUT.tel.borderRight.color,
4269
+ telBorderRightColorHover: telBorderRightColorHover ?? configStyles.INPUT.tel.borderRight.colors.hover
3432
4270
  }) : type === 'number' ? /*#__PURE__*/React__default.createElement(NumberInput, {
3433
- value: value,
3434
4271
  dots: withoutDot,
4272
+ value: innerValue,
3435
4273
  float: floatToFix,
3436
4274
  disabled: disabled,
3437
4275
  inputChange: change,
@@ -3440,25 +4278,25 @@ const Input = ({
3440
4278
  inpAttributes: inpAttributes,
3441
4279
  minNumSize: minNumSize ? minNumSize : '',
3442
4280
  maxNumSize: maxNumSize ? maxNumSize : '',
3443
- radius: radius ?? merge.INPUT.radius
4281
+ radius: radius ?? configStyles.INPUT.radius
3444
4282
  }) : type === 'password' ? /*#__PURE__*/React__default.createElement(PassInput, {
3445
4283
  show: show,
3446
4284
  type: type,
3447
- value: value,
4285
+ value: innerValue,
3448
4286
  disabled: disabled,
3449
4287
  inputChange: change,
3450
4288
  maxLength: maxLength,
3451
4289
  inpStyles: inpStyles,
3452
4290
  inpAttributes: inpAttributes,
3453
- radius: radius ?? merge.INPUT.radius
4291
+ radius: radius ?? configStyles.INPUT.radius
3454
4292
  }) : /*#__PURE__*/React__default.createElement(TextInput, {
3455
- value: value,
4293
+ value: innerValue,
3456
4294
  disabled: disabled,
3457
4295
  inputChange: change,
3458
4296
  inpStyles: inpStyles,
3459
4297
  maxLength: maxLength,
3460
4298
  inpAttributes: inpAttributes,
3461
- radius: radius ?? merge.INPUT.radius
4299
+ radius: radius ?? configStyles.INPUT.radius
3462
4300
  }), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
3463
4301
  onClick: type === 'password' ? handleShowPass : _ => _,
3464
4302
  style: {
@@ -3466,32 +4304,32 @@ const Input = ({
3466
4304
  alignItems: 'center',
3467
4305
  justifyContent: 'center',
3468
4306
  cursor: type === 'password' ? 'pointer' : 'default',
3469
- height: height ?? merge.INPUT.height,
3470
- padding: padding ?? merge.INPUT.padding,
3471
- width: iconWidth ?? merge.INPUT.iconWidth,
3472
- boxSizing: boxSizing ?? merge.INPUT.box.sizing,
3473
- borderTopRightRadius: radius ?? merge.INPUT.radius,
3474
- borderBottomRightRadius: radius ?? merge.INPUT.radius,
3475
- backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : merge.INPUT.colors.background
4307
+ height: height ?? configStyles.INPUT.height,
4308
+ padding: padding ?? configStyles.INPUT.padding,
4309
+ width: iconWidth ?? configStyles.INPUT.iconWidth,
4310
+ boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
4311
+ borderTopRightRadius: radius ?? configStyles.INPUT.radius,
4312
+ borderBottomRightRadius: radius ?? configStyles.INPUT.radius,
4313
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
3476
4314
  }
3477
4315
  }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', innerErrorMessage ? /*#__PURE__*/React__default.createElement(P, {
3478
4316
  animation: animation,
3479
4317
  style: {
3480
4318
  margin: '0px',
3481
4319
  position: 'absolute',
3482
- width: width ?? merge.INPUT.width,
3483
- left: errorLeft ?? merge.INPUT.error.left,
3484
- color: errorColor ?? merge.INPUT.error.color,
3485
- fontSize: errorSize ?? merge.INPUT.error.font.size,
3486
- fontStyle: errorStyle ?? merge.INPUT.error.font.style,
3487
- fontFamily: errorFamily ?? merge.INPUT.error.font.family,
3488
- fontWeight: errorWeight ?? merge.INPUT.error.font.weight,
3489
- zIndex: errorZindex ?? merge.INPUT.error.zIndex,
3490
- lineHeight: errorLineHeight ?? merge.INPUT.error.lineHeight,
3491
- top: errorMarginTop ? `calc(100% + ${errorMarginTop})` : `calc(100% + ${merge.INPUT.error.marginTop})`,
4320
+ width: width ?? configStyles.INPUT.width,
4321
+ left: errorLeft ?? configStyles.INPUT.error.left,
4322
+ color: errorColor ?? configStyles.INPUT.error.color,
4323
+ fontSize: errorSize ?? configStyles.INPUT.error.font.size,
4324
+ fontStyle: errorStyle ?? configStyles.INPUT.error.font.style,
4325
+ fontFamily: errorFamily ?? configStyles.INPUT.error.font.family,
4326
+ fontWeight: errorWeight ?? configStyles.INPUT.error.font.weight,
4327
+ zIndex: errorZindex ?? configStyles.INPUT.error.zIndex,
4328
+ lineHeight: errorLineHeight ?? configStyles.INPUT.error.lineHeight,
4329
+ top: errorMarginTop ? `calc(100% + ${errorMarginTop})` : `calc(100% + ${configStyles.INPUT.error.marginTop})`,
3492
4330
  transform: 'scale3d(1,1,1)'
3493
4331
  },
3494
- className: errorClassName ?? merge.INPUT.error.className
4332
+ className: errorClassName ?? configStyles.INPUT.error.className
3495
4333
  }, innerErrorMessage) : '');
3496
4334
  };
3497
4335
  Input.propTypes = {
@@ -3557,7 +4395,7 @@ Input.propTypes = {
3557
4395
  leftIcon: PropTypes.arrayOf(PropTypes.element),
3558
4396
  rightIcon: PropTypes.arrayOf(PropTypes.element),
3559
4397
  type: PropTypes.oneOf(Object.values(InputTypes)),
3560
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.object])
4398
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object])
3561
4399
  };
3562
4400
 
3563
4401
  const RadioDirectionMode = {
@@ -3586,8 +4424,9 @@ const Radio = ({
3586
4424
  radioItemMarginBottom,
3587
4425
  diraction = 'vertical'
3588
4426
  }) => {
3589
- const classProps = classnames(className ?? merge.RADIO.className);
3590
4427
  const [innerData, setInnerData] = useState([]);
4428
+ const [classProps, setClassProps] = useState({});
4429
+ const [configStyles, setConfigStyles] = useState({});
3591
4430
  const [radioInnerSize, setRadioInnerSize] = useState('');
3592
4431
  const [radioInnerFormat, setRadioInnerFormat] = useState('');
3593
4432
  const [innerSelectedData, setInnerSelectedData] = useState({});
@@ -3598,11 +4437,11 @@ const Radio = ({
3598
4437
  });
3599
4438
  const handleMouseEnter = (id, elemID) => {
3600
4439
  const elem = document.querySelector(`#${elemID}`);
3601
- elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : merge.RADIO.border.activeColor : borderColor ? borderColor : merge.RADIO.border.color;
4440
+ elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
3602
4441
  };
3603
4442
  const handleMouseLeave = (id, elemID) => {
3604
4443
  const elem = document.querySelector(`#${elemID}`);
3605
- elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : merge.RADIO.border.activeColor : 'transparent';
4444
+ elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : 'transparent';
3606
4445
  };
3607
4446
  const handleChecked = selItem => {
3608
4447
  setInnerSelectedData(selItem);
@@ -3618,7 +4457,7 @@ const Radio = ({
3618
4457
  useEffect(() => {
3619
4458
  let radioSize = '';
3620
4459
  let radioSizeFormat = '';
3621
- const checkSize = size || merge.RADIO.size;
4460
+ const checkSize = configStyles.RADIO && (size || configStyles.RADIO.size);
3622
4461
  if (checkSize && typeof checkSize === 'string') {
3623
4462
  if (checkSize.length > 0) {
3624
4463
  checkSize.split('').map(item => {
@@ -3635,7 +4474,7 @@ const Radio = ({
3635
4474
  }
3636
4475
  setRadioInnerFormat(radioSizeFormat);
3637
4476
  setRadioInnerSize(`${parseInt(radioSize) / 2}`);
3638
- }, [size, merge.RADIO.size]);
4477
+ }, [size, configStyles.RADIO]);
3639
4478
  useEffect(() => {
3640
4479
  if (typeof selected === 'object' && selected !== null && !Array.isArray(selected)) {
3641
4480
  setInnerSelectedData(selected);
@@ -3650,7 +4489,19 @@ const Radio = ({
3650
4489
  });
3651
4490
  }
3652
4491
  }, [keyNames]);
3653
- return /*#__PURE__*/React__default.createElement("div", {
4492
+ useEffect(() => {
4493
+ configStylesPromise.then(data => {
4494
+ setClassProps(() => classnames(className ?? data.RADIO.className));
4495
+ setConfigStyles(() => {
4496
+ return {
4497
+ ...data
4498
+ };
4499
+ });
4500
+ }, error => {
4501
+ console.error(error);
4502
+ });
4503
+ }, []);
4504
+ return configStyles.RADIO && /*#__PURE__*/React__default.createElement("div", {
3654
4505
  className: classProps,
3655
4506
  style: {
3656
4507
  display: 'flex',
@@ -3665,8 +4516,8 @@ const Radio = ({
3665
4516
  cursor: item[innerKeyNames.disabled] ? 'not-allowed' : 'pointer',
3666
4517
  width: 'fit-content',
3667
4518
  alignItems: 'center',
3668
- marginRight: diraction === 'horizontal' ? radioItemMarginRight ? radioItemMarginRight : merge.RADIO.item.marginRight : '0px',
3669
- marginBottom: diraction === 'vertical' ? radioItemMarginBottom ? radioItemMarginBottom : merge.RADIO.item.marginBottom : '0px'
4519
+ marginRight: diraction === 'horizontal' ? radioItemMarginRight ? radioItemMarginRight : configStyles.RADIO.item.marginRight : '0px',
4520
+ marginBottom: diraction === 'vertical' ? radioItemMarginBottom ? radioItemMarginBottom : configStyles.RADIO.item.marginBottom : '0px'
3670
4521
  },
3671
4522
  onClick: item[innerKeyNames.disabled] ? _ => _ : () => handleChecked(item),
3672
4523
  onMouseEnter: () => handleMouseEnter(item[innerKeyNames.id], elemId),
@@ -3677,11 +4528,11 @@ const Radio = ({
3677
4528
  alignItems: 'center',
3678
4529
  borderRadius: '100%',
3679
4530
  justifyContent: 'center',
3680
- width: size ? size : merge.RADIO.size,
3681
- height: size ? size : merge.RADIO.size,
3682
- marginRight: item[innerKeyNames.label] ? radioMarginRight ? radioMarginRight : merge.RADIO.marginRight : '0px',
3683
- border: `${borderSize ?? merge.RADIO.border.width} ${borderStyle ? borderStyle : merge.RADIO.border.style}`,
3684
- borderColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : merge.RADIO.border.activeColor : borderColor ? borderColor : merge.RADIO.border.color
4531
+ width: size ? size : configStyles.RADIO.size,
4532
+ height: size ? size : configStyles.RADIO.size,
4533
+ marginRight: item[innerKeyNames.label] ? radioMarginRight ? radioMarginRight : configStyles.RADIO.marginRight : '0px',
4534
+ border: `${borderSize ?? configStyles.RADIO.border.width} ${borderStyle ? borderStyle : configStyles.RADIO.border.style}`,
4535
+ borderColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color
3685
4536
  }
3686
4537
  }, /*#__PURE__*/React__default.createElement("div", {
3687
4538
  id: elemId,
@@ -3689,16 +4540,16 @@ const Radio = ({
3689
4540
  borderRadius: '100%',
3690
4541
  width: radioInnerSize + radioInnerFormat,
3691
4542
  height: radioInnerSize + radioInnerFormat,
3692
- backgroundColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : merge.RADIO.border.activeColor : 'transparent'
4543
+ backgroundColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : 'transparent'
3693
4544
  }
3694
4545
  })), item[innerKeyNames.label] ? /*#__PURE__*/React__default.createElement("span", {
3695
4546
  style: {
3696
- color: labelColor ?? merge.RADIO.label.color,
3697
- fontSize: labelFontSize ?? merge.RADIO.label.font.size,
3698
- fontStyle: labelFontStyle ?? merge.RADIO.label.font.style,
3699
- fontFamily: labelFontFamily ?? merge.RADIO.label.font.family,
3700
- fontWeight: labelFontWeight ?? merge.RADIO.label.font.weight,
3701
- lineHeight: labelLineHeight ?? merge.RADIO.label.lineHeight
4547
+ color: labelColor ?? configStyles.RADIO.label.color,
4548
+ fontSize: labelFontSize ?? configStyles.RADIO.label.font.size,
4549
+ fontStyle: labelFontStyle ?? configStyles.RADIO.label.font.style,
4550
+ fontFamily: labelFontFamily ?? configStyles.RADIO.label.font.family,
4551
+ fontWeight: labelFontWeight ?? configStyles.RADIO.label.font.weight,
4552
+ lineHeight: labelLineHeight ?? configStyles.RADIO.label.lineHeight
3702
4553
  },
3703
4554
  onMouseEnter: () => handleMouseEnter(item[innerKeyNames.id], elemId),
3704
4555
  onMouseLeave: () => handleMouseLeave(item[innerKeyNames.id], elemId)
@@ -3818,11 +4669,12 @@ const Select = ({
3818
4669
  boxShadowHover
3819
4670
  }) => {
3820
4671
  const ref = useRef();
3821
- const classProps = classnames(className ? className : merge.SELECT.className);
3822
4672
  const [opened, setOpened] = useState(false);
3823
4673
  const [isHover, setIsHover] = useState(false);
4674
+ const [classProps, setClassProps] = useState({});
3824
4675
  const [newSelected, setNewSelected] = useState([]);
3825
4676
  const [existOptions, setExistOptions] = useState([]);
4677
+ const [configStyles, setConfigStyles] = useState({});
3826
4678
  const handleOpenClose = () => {
3827
4679
  setOpened(!opened);
3828
4680
  };
@@ -3871,12 +4723,12 @@ const Select = ({
3871
4723
  setIsHover(false);
3872
4724
  };
3873
4725
  const handleMouseEnterOption = e => {
3874
- e.target.style.color = optionItemColorHover ? optionItemColorHover : merge.SELECT.options.item.colors.hover;
3875
- e.target.style.backgroundColor = optionItemBackgroudColorHover ? optionItemBackgroudColorHover : merge.SELECT.options.item.colors.backgroudHover;
4726
+ e.target.style.color = optionItemColorHover ? optionItemColorHover : configStyles.SELECT.options.item.colors.hover;
4727
+ e.target.style.backgroundColor = optionItemBackgroudColorHover ? optionItemBackgroudColorHover : configStyles.SELECT.options.item.colors.backgroudHover;
3876
4728
  };
3877
4729
  const handleMouseLeaveOption = e => {
3878
- e.target.style.color = optionItemColor ? optionItemColor : merge.SELECT.options.item.color;
3879
- e.target.style.backgroundColor = optionItemBackgroudColor ? optionItemBackgroudColor : merge.SELECT.options.item.colors.backgroud;
4730
+ e.target.style.color = optionItemColor ? optionItemColor : configStyles.SELECT.options.item.color;
4731
+ e.target.style.backgroundColor = optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.options.item.colors.backgroud;
3880
4732
  };
3881
4733
  const isObjectEmpty = obj => {
3882
4734
  for (var key in obj) {
@@ -3924,7 +4776,19 @@ const Select = ({
3924
4776
  setExistOptions(modifiedOptions);
3925
4777
  }
3926
4778
  }, [options, multiple, selected, selected?.length]);
3927
- return /*#__PURE__*/React__default.createElement("div", {
4779
+ useEffect(() => {
4780
+ configStylesPromise.then(data => {
4781
+ setClassProps(() => classnames(className ?? data.SELECT.className));
4782
+ setConfigStyles(() => {
4783
+ return {
4784
+ ...data
4785
+ };
4786
+ });
4787
+ }, error => {
4788
+ console.error(error);
4789
+ });
4790
+ }, []);
4791
+ return configStyles.SELECT && /*#__PURE__*/React__default.createElement("div", {
3928
4792
  className: classProps,
3929
4793
  style: {
3930
4794
  position: 'relative',
@@ -3932,15 +4796,15 @@ const Select = ({
3932
4796
  }
3933
4797
  }, label ? /*#__PURE__*/React__default.createElement("label", {
3934
4798
  style: {
3935
- color: labelColor ?? merge.SELECT.label.color,
3936
- fontWeight: labelWeight ?? merge.SELECT.label.font.weight,
3937
- display: labelDisplay ?? merge.SELECT.label.display,
3938
- fontSize: labelFontSize ?? merge.SELECT.label.font.size,
3939
- fontStyle: labelFontStyle ?? merge.SELECT.label.font.style,
3940
- fontFamily: labelFontFamily ?? merge.SELECT.label.font.family,
3941
- lineHeight: labelLineHeight ?? merge.SELECT.label.lineHeight,
3942
- marginBottom: labelMarginBottom ?? merge.SELECT.label.marginBottom,
3943
- textTransform: labelTextTransform ?? merge.SELECT.label.textTransform
4799
+ color: labelColor ?? configStyles.SELECT.label.color,
4800
+ fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
4801
+ display: labelDisplay ?? configStyles.SELECT.label.display,
4802
+ fontSize: labelFontSize ?? configStyles.SELECT.label.font.size,
4803
+ fontStyle: labelFontStyle ?? configStyles.SELECT.label.font.style,
4804
+ fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
4805
+ lineHeight: labelLineHeight ?? configStyles.SELECT.label.lineHeight,
4806
+ marginBottom: labelMarginBottom ?? configStyles.SELECT.label.marginBottom,
4807
+ textTransform: labelTextTransform ?? configStyles.SELECT.label.textTransform
3944
4808
  }
3945
4809
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
3946
4810
  ref: ref
@@ -3948,19 +4812,19 @@ const Select = ({
3948
4812
  className: styles$6['select-content']
3949
4813
  }, /*#__PURE__*/React__default.createElement("div", {
3950
4814
  style: {
3951
- cursor: disabled ? 'not-allowed' : cursor ? cursor : merge.SELECT.selected.cursor,
3952
- minHeight: selectedMinHeight ?? merge.SELECT.selected.minHeight,
3953
- padding: selectedPadding ?? merge.SELECT.selected.padding,
3954
- borderRadius: selectedRadius ?? merge.SELECT.selected.radius,
3955
- fontSize: selectedFontSize ?? merge.SELECT.selected.font.size,
3956
- fontStyle: selectedFontStyle ?? merge.SELECT.selected.font.style,
3957
- fontFamily: selectedFontFamily ?? merge.SELECT.selected.font.family,
3958
- boxSizing: selectedBoxSizing ?? merge.SELECT.selected.box.sizing,
3959
- fontWeight: selectedFontWeight ?? merge.SELECT.selected.font.weight,
3960
- lineHeight: selectedLineHeight ?? merge.SELECT.selected.lineHeight,
3961
- transition: selectedTransition ?? merge.SELECT.selected.transition,
3962
- backgroundColor: disabled ? selectedDisableBackgroundColor ? selectedDisableBackgroundColor : merge.SELECT.selected.colors.backgroundDisable : selectedBackgroundColor ? selectedBackgroundColor : merge.SELECT.selected.colors.background,
3963
- boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : merge.SELECT.error.box.shadow : isHover ? boxShadowHover ? boxShadowHover : merge.SELECT.box.shadowHover : boxShadow ? boxShadow : merge.SELECT.box.shadow
4815
+ cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
4816
+ minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
4817
+ padding: selectedPadding ?? configStyles.SELECT.selected.padding,
4818
+ borderRadius: selectedRadius ?? configStyles.SELECT.selected.radius,
4819
+ fontSize: selectedFontSize ?? configStyles.SELECT.selected.font.size,
4820
+ fontStyle: selectedFontStyle ?? configStyles.SELECT.selected.font.style,
4821
+ fontFamily: selectedFontFamily ?? configStyles.SELECT.selected.font.family,
4822
+ boxSizing: selectedBoxSizing ?? configStyles.SELECT.selected.box.sizing,
4823
+ fontWeight: selectedFontWeight ?? configStyles.SELECT.selected.font.weight,
4824
+ lineHeight: selectedLineHeight ?? configStyles.SELECT.selected.lineHeight,
4825
+ transition: selectedTransition ?? configStyles.SELECT.selected.transition,
4826
+ backgroundColor: disabled ? selectedDisableBackgroundColor ? selectedDisableBackgroundColor : configStyles.SELECT.selected.colors.backgroundDisable : selectedBackgroundColor ? selectedBackgroundColor : configStyles.SELECT.selected.colors.background,
4827
+ boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : configStyles.SELECT.error.box.shadow : isHover ? boxShadowHover ? boxShadowHover : configStyles.SELECT.box.shadowHover : boxShadow ? boxShadow : configStyles.SELECT.box.shadow
3964
4828
  },
3965
4829
  onClick: disabled ? _ => _ : () => handleOpenClose(),
3966
4830
  onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
@@ -3972,7 +4836,7 @@ const Select = ({
3972
4836
  whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
3973
4837
  overflow: 'hidden',
3974
4838
  textOverflow: 'ellipsis',
3975
- color: errorMessage ? errorColor ? errorColor : merge.SELECT.error.color : isHover ? selectedHoverColor ? selectedHoverColor : merge.SELECT.selected.colors.hover : selectedColor ? selectedColor : merge.SELECT.selected.color
4839
+ color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.error.color : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selected.colors.hover : selectedColor ? selectedColor : configStyles.SELECT.selected.color
3976
4840
  }
3977
4841
  }, !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] : newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
3978
4842
  if (newSelected[index][keyNames.name]) {
@@ -3984,23 +4848,23 @@ const Select = ({
3984
4848
  }
3985
4849
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
3986
4850
  className: `${styles$6['select-content-top-icon']}`
3987
- }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default.createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : merge.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default.createElement("div", {
4851
+ }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default.createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : configStyles.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default.createElement("div", {
3988
4852
  className: `${styles$6['close-icon']}`,
3989
4853
  onClick: disabled ? _ => _ : handleClearSelect,
3990
4854
  style: {
3991
4855
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
3992
4856
  }
3993
- }, closeIcon ? closeIcon : merge.SELECT.closeIcon ? merge.SELECT.closeIcon : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default.createElement("div", {
4857
+ }, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default.createElement("div", {
3994
4858
  style: {
3995
4859
  transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
3996
4860
  },
3997
4861
  className: `${styles$6['arrow-icon']}`
3998
- }, arrowIcon ? arrowIcon : merge.SELECT.arrowIcon ? merge.SELECT.arrowIcon : /*#__PURE__*/React__default.createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default.createElement("div", {
4862
+ }, arrowIcon ? arrowIcon : configStyles.SELECT.arrowIcon ? configStyles.SELECT.arrowIcon : /*#__PURE__*/React__default.createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default.createElement("div", {
3999
4863
  style: {
4000
- boxShadow: optionsBoxShadow ?? merge.SELECT.options.box.shadow,
4001
- borderRadius: optionsBorderRadius ?? merge.SELECT.options.radius,
4002
- backgroundColor: optionsBackgroundColor ?? merge.SELECT.options.colors.background,
4003
- top: selectedMinHeight ? selectedMinHeight.includes('rem') ? parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 3)) + 0.6 + 'rem' : parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 2)) + 6 + 'px' : merge.SELECT.selected.minHeight.includes('rem') ? parseFloat(merge.SELECT.selected.minHeight.substr(0, merge.SELECT.selected.minHeight.length - 3)) + 0.6 + 'rem' : parseFloat(merge.SELECT.selected.minHeight.substr(0, merge.SELECT.selected.minHeight.length - 2)) + 6 + 'px'
4864
+ boxShadow: optionsBoxShadow ?? configStyles.SELECT.options.box.shadow,
4865
+ borderRadius: optionsBorderRadius ?? configStyles.SELECT.options.radius,
4866
+ backgroundColor: optionsBackgroundColor ?? configStyles.SELECT.options.colors.background,
4867
+ top: selectedMinHeight ? selectedMinHeight.includes('rem') ? parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 3)) + 0.6 + 'rem' : parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 2)) + 6 + 'px' : configStyles.SELECT.selected.minHeight.includes('rem') ? parseFloat(configStyles.SELECT.selected.minHeight.substr(0, configStyles.SELECT.selected.minHeight.length - 3)) + 0.6 + 'rem' : parseFloat(configStyles.SELECT.selected.minHeight.substr(0, configStyles.SELECT.selected.minHeight.length - 2)) + 6 + 'px'
4004
4868
  },
4005
4869
  className: `${styles$6['select-content-bottom']}`
4006
4870
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -4013,19 +4877,19 @@ const Select = ({
4013
4877
  onClick: disabled ? _ => _ : () => handleSelectItem(option),
4014
4878
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
4015
4879
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
4016
- className: `${styles$6['select-content-bottom-row']} ${dots || merge.SELECT.dots ? styles$6['ellipsis'] : ''}`,
4880
+ className: `${styles$6['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$6['ellipsis'] : ''}`,
4017
4881
  style: {
4018
- overflowWrap: !dots && !merge.SELECT.dots ? 'anywhere' : 'break-word',
4019
- color: optionItemColor ?? merge.SELECT.options.item.color,
4020
- cursor: optionItemCursor ?? merge.SELECT.options.item.cursor,
4021
- padding: optionItemPadding ?? merge.SELECT.options.item.padding,
4022
- fontSize: optionItemFontSize ?? merge.SELECT.options.item.font.size,
4023
- boxSizing: optionItemBoxSizing ?? merge.SELECT.options.item.box.sizing,
4024
- minHeight: optionItemMinHeight ?? merge.SELECT.options.item.minHeight,
4025
- fontWeight: optionItemFontWeight ?? merge.SELECT.options.item.font.weight,
4026
- lineHeight: dots || merge.SELECT.dots ? '46px' : optionItemLineHeight ? optionItemLineHeight : merge.SELECT.options.item.lineHeight,
4027
- marginBottom: optionItemMarginBottom ?? merge.SELECT.options.item.marginBottom,
4028
- backgroundColor: optionItemBackgroudColor ?? merge.SELECT.options.item.colors.backgroud
4882
+ overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
4883
+ color: optionItemColor ?? configStyles.SELECT.options.item.color,
4884
+ cursor: optionItemCursor ?? configStyles.SELECT.options.item.cursor,
4885
+ padding: optionItemPadding ?? configStyles.SELECT.options.item.padding,
4886
+ fontSize: optionItemFontSize ?? configStyles.SELECT.options.item.font.size,
4887
+ boxSizing: optionItemBoxSizing ?? configStyles.SELECT.options.item.box.sizing,
4888
+ minHeight: optionItemMinHeight ?? configStyles.SELECT.options.item.minHeight,
4889
+ fontWeight: optionItemFontWeight ?? configStyles.SELECT.options.item.font.weight,
4890
+ lineHeight: dots || configStyles.SELECT.dots ? '46px' : optionItemLineHeight ? optionItemLineHeight : configStyles.SELECT.options.item.lineHeight,
4891
+ marginBottom: optionItemMarginBottom ?? configStyles.SELECT.options.item.marginBottom,
4892
+ backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud
4029
4893
  }
4030
4894
  }, multiple && multipleCheckbox ? /*#__PURE__*/React__default.createElement(SingleCheckbox, {
4031
4895
  checked: option.checked
@@ -4033,13 +4897,13 @@ const Select = ({
4033
4897
  }))) : null)), errorMessage ? /*#__PURE__*/React__default.createElement("span", {
4034
4898
  style: {
4035
4899
  position: 'absolute',
4036
- color: errorColor ?? merge.SELECT.error.color,
4037
- fontSize: errorSize ?? merge.SELECT.error.font.size,
4038
- fontStyle: errorStyle ?? merge.SELECT.error.font.style,
4039
- fontFamily: errorFamily ?? merge.SELECT.error.font.family,
4040
- fontWeight: errorWeight ?? merge.SELECT.error.font.weight,
4041
- zIndex: errorZindex ?? merge.SELECT.error.zIndex,
4042
- top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${merge.SELECT.error.marginTop})`
4900
+ color: errorColor ?? configStyles.SELECT.error.color,
4901
+ fontSize: errorSize ?? configStyles.SELECT.error.font.size,
4902
+ fontStyle: errorStyle ?? configStyles.SELECT.error.font.style,
4903
+ fontFamily: errorFamily ?? configStyles.SELECT.error.font.family,
4904
+ fontWeight: errorWeight ?? configStyles.SELECT.error.font.weight,
4905
+ zIndex: errorZindex ?? configStyles.SELECT.error.zIndex,
4906
+ top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${configStyles.SELECT.error.marginTop})`
4043
4907
  }
4044
4908
  }, errorMessage) : '');
4045
4909
  };
@@ -4411,11 +5275,10 @@ const createToast = ({
4411
5275
  };
4412
5276
  const toast = {
4413
5277
  success: (title, props) => {
5278
+ // const { icon, timer, position, iconClose, description } = props || {}
4414
5279
  const {
4415
- icon,
4416
5280
  timer,
4417
5281
  position,
4418
- iconClose,
4419
5282
  description
4420
5283
  } = props || {};
4421
5284
  createToast({
@@ -4423,17 +5286,16 @@ const toast = {
4423
5286
  type: 'success',
4424
5287
  timer: timer ?? 5000,
4425
5288
  position: position ?? 'top-right',
4426
- description: description ?? '',
4427
- icon: icon ?? merge.TOASTER.icon.success,
4428
- iconClose: iconClose ?? merge.TOASTER.icon.close
5289
+ description: description ?? ''
5290
+ // icon: icon ?? configStyles.TOASTER.icon.success,
5291
+ // iconClose: iconClose ?? configStyles.TOASTER.icon.close,
4429
5292
  });
4430
5293
  },
4431
5294
  info: (title, props) => {
5295
+ // const { icon, timer, position, iconClose, description } = props || {}
4432
5296
  const {
4433
- icon,
4434
5297
  timer,
4435
5298
  position,
4436
- iconClose,
4437
5299
  description
4438
5300
  } = props || {};
4439
5301
  createToast({
@@ -4441,17 +5303,16 @@ const toast = {
4441
5303
  type: 'info',
4442
5304
  timer: timer ?? 5000,
4443
5305
  position: position ?? 'top-right',
4444
- description: description ?? '',
4445
- icon: icon ?? merge.TOASTER.icon.info,
4446
- iconClose: iconClose ?? merge.TOASTER.icon.close
5306
+ description: description ?? ''
5307
+ // icon: icon ?? configStyles.TOASTER.icon.info,
5308
+ // iconClose: iconClose ?? configStyles.TOASTER.icon.close,
4447
5309
  });
4448
5310
  },
4449
5311
  warn: (title, props) => {
5312
+ // const { icon, timer, position, iconClose, description } = props || {}
4450
5313
  const {
4451
- icon,
4452
5314
  timer,
4453
5315
  position,
4454
- iconClose,
4455
5316
  description
4456
5317
  } = props || {};
4457
5318
  createToast({
@@ -4459,17 +5320,16 @@ const toast = {
4459
5320
  type: 'warn',
4460
5321
  timer: timer ?? 5000,
4461
5322
  position: position ?? 'top-right',
4462
- description: description ?? '',
4463
- icon: icon ?? merge.TOASTER.icon.warn,
4464
- iconClose: iconClose ?? merge.TOASTER.icon.close
5323
+ description: description ?? ''
5324
+ // icon: icon ?? configStyles.TOASTER.icon.warn,
5325
+ // iconClose: iconClose ?? configStyles.TOASTER.icon.close,
4465
5326
  });
4466
5327
  },
4467
5328
  error: (title, props) => {
5329
+ // const { icon, timer, position, iconClose, description } = props || {}
4468
5330
  const {
4469
- icon,
4470
5331
  timer,
4471
5332
  position,
4472
- iconClose,
4473
5333
  description
4474
5334
  } = props || {};
4475
5335
  createToast({
@@ -4477,16 +5337,17 @@ const toast = {
4477
5337
  type: 'error',
4478
5338
  timer: timer ?? 5000,
4479
5339
  position: position ?? 'top-right',
4480
- description: description ?? '',
4481
- icon: icon ?? merge.TOASTER.icon.error,
4482
- iconClose: iconClose ?? merge.TOASTER.icon.close
5340
+ description: description ?? ''
5341
+ // icon: icon ?? configStyles.TOASTER.icon.error,
5342
+ // iconClose: iconClose ?? configStyles.TOASTER.icon.close,
4483
5343
  });
4484
5344
  }
4485
5345
  };
4486
5346
  const Toaster = ({
4487
5347
  className
4488
5348
  }) => {
4489
- const classProps = classnames(className ?? merge.TOASTER.className);
5349
+ const [classProps, setClassProps] = useState('');
5350
+ const [configStyles, setConfigStyles] = useState({});
4490
5351
  window.addEventListener('popstate', () => {
4491
5352
  if (path !== window.location.href) {
4492
5353
  if (!toastify) {
@@ -4501,7 +5362,19 @@ const Toaster = ({
4501
5362
  const handleToasterClick = e => {
4502
5363
  e.stopPropagation();
4503
5364
  };
4504
- return /*#__PURE__*/React__default.createElement("div", {
5365
+ useEffect(() => {
5366
+ configStylesPromise.then(data => {
5367
+ setClassProps(() => classnames(className ?? data.TOASTER.className));
5368
+ setConfigStyles(() => {
5369
+ return {
5370
+ ...data
5371
+ };
5372
+ });
5373
+ }, error => {
5374
+ console.error(error);
5375
+ });
5376
+ }, []);
5377
+ return configStyles.TOASTER && /*#__PURE__*/React__default.createElement("div", {
4505
5378
  onClick: handleToasterClick,
4506
5379
  className: classProps,
4507
5380
  id: "toastify"
@@ -4550,10 +5423,11 @@ const Tooltip = ({
4550
5423
  type = 'top'
4551
5424
  }) => {
4552
5425
  const tooltipRef = /*#__PURE__*/createRef(null);
4553
- const classProps = classnames(styles$4['tooltip-block'], className ?? merge.TOOLTIP.className);
5426
+ const [classProps, setClassProps] = useState({});
5427
+ const [configStyles, setConfigStyles] = useState({});
5428
+ const [showTooltip, setShowTooltip] = useState(false);
4554
5429
  const [checkTooltipWidth, setCheckTooltipWidth] = useState(0);
4555
5430
  const [checkTooltipHeight, setCheckTooltipHeight] = useState(0);
4556
- const [showTooltip, setShowTooltip] = useState(false);
4557
5431
  const handleShow = () => {
4558
5432
  setShowTooltip(!showTooltip);
4559
5433
  };
@@ -4564,21 +5438,33 @@ const Tooltip = ({
4564
5438
  tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setCheckTooltipWidth(tooltipRef.current.clientWidth);
4565
5439
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
4566
5440
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
4567
- return /*#__PURE__*/React__default.createElement("div", {
5441
+ useEffect(() => {
5442
+ configStylesPromise.then(data => {
5443
+ setClassProps(() => classnames(styles$4['tooltip-block'], className ?? data.TOOLTIP.className));
5444
+ setConfigStyles(() => {
5445
+ return {
5446
+ ...data
5447
+ };
5448
+ });
5449
+ }, error => {
5450
+ console.error(error);
5451
+ });
5452
+ }, []);
5453
+ return configStyles.TOOLTIP && /*#__PURE__*/React__default.createElement("div", {
4568
5454
  className: classProps,
4569
5455
  style: {
4570
- width: width ?? merge.TOOLTIP.parent.width,
4571
- height: height ?? merge.TOOLTIP.parent.height,
4572
- borderRadius: radius ?? merge.TOOLTIP.parent.radius,
4573
- backgroundColor: backgroundColor ?? merge.TOOLTIP.parent.colors.background
5456
+ width: width ?? configStyles.TOOLTIP.parent.width,
5457
+ height: height ?? configStyles.TOOLTIP.parent.height,
5458
+ borderRadius: radius ?? configStyles.TOOLTIP.parent.radius,
5459
+ backgroundColor: backgroundColor ?? configStyles.TOOLTIP.parent.colors.background
4574
5460
  }
4575
5461
  }, showTooltip ? /*#__PURE__*/React__default.createElement("div", {
4576
5462
  ref: tooltipRef,
4577
5463
  className: `${styles$4['tooltip']}`,
4578
5464
  style: {
4579
- width: tooltipWidth ?? merge.TOOLTIP.width,
4580
- borderRadius: tooltipRadius ?? merge.TOOLTIP.radius,
4581
- backgroundColor: tooltipBackgroundColor ?? merge.TOOLTIP.colors.background,
5465
+ width: tooltipWidth ?? configStyles.TOOLTIP.width,
5466
+ borderRadius: tooltipRadius ?? configStyles.TOOLTIP.radius,
5467
+ backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
4582
5468
  top: type === 'top' ? `calc(-${checkTooltipHeight + 7}px)` : type === 'bottom' ? 'calc(100% + 7px)' : type === 'left' || type === 'right' ? `calc(50% - ${checkTooltipHeight / 2}px)` : '0px',
4583
5469
  left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
4584
5470
  }
@@ -4587,24 +5473,24 @@ const Tooltip = ({
4587
5473
  }, /*#__PURE__*/React__default.createElement("div", {
4588
5474
  className: `${styles$4['tooltip-decor']}`,
4589
5475
  style: {
4590
- backgroundColor: tooltipBackgroundColor ?? merge.TOOLTIP.colors.background,
5476
+ backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
4591
5477
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
4592
5478
  top: type === 'top' ? 'calc(100% + 5px)' : type === 'bottom' ? '-15px' : type === 'right' || type === 'left' ? 'calc(50% - 5px)' : '0px'
4593
5479
  }
4594
5480
  }), /*#__PURE__*/React__default.createElement("p", {
4595
5481
  style: {
4596
- color: color ?? merge.TOOLTIP.color,
4597
- fontSize: fontSize ?? merge.TOOLTIP.font.size,
4598
- fontStyle: fontStyle ?? merge.TOOLTIP.font.style,
4599
- fontFamily: fontFamily ?? merge.TOOLTIP.font.family,
4600
- fontWeight: fontWeight ?? merge.TOOLTIP.font.weight
5482
+ color: color ?? configStyles.TOOLTIP.color,
5483
+ fontSize: fontSize ?? configStyles.TOOLTIP.font.size,
5484
+ fontStyle: fontStyle ?? configStyles.TOOLTIP.font.style,
5485
+ fontFamily: fontFamily ?? configStyles.TOOLTIP.font.family,
5486
+ fontWeight: fontWeight ?? configStyles.TOOLTIP.font.weight
4601
5487
  }
4602
5488
  }, text))) : '', /*#__PURE__*/React__default.createElement("div", {
4603
5489
  style: {
4604
5490
  cursor: 'pointer'
4605
5491
  },
4606
5492
  onClick: handleShow
4607
- }, tooltipIcon ? tooltipIcon : merge.TOOLTIP.icon ? merge.TOOLTIP.icon : /*#__PURE__*/React__default.createElement(SvgTooltip, null)));
5493
+ }, tooltipIcon ? tooltipIcon : configStyles.TOOLTIP.icon ? configStyles.TOOLTIP.icon : /*#__PURE__*/React__default.createElement(SvgTooltip, null)));
4608
5494
  };
4609
5495
  Tooltip.propTypes = {
4610
5496
  type: PropTypes.string,
@@ -4680,7 +5566,8 @@ const Captcha = ({
4680
5566
  }) => {
4681
5567
  const [rangeNumber, setRangeNumber] = useState(0);
4682
5568
  const [rangeProgress, setRangeProgress] = useState(0);
4683
- const classProps = classnames(className ?? merge.CAPTCHA.className);
5569
+ const [classProps, setClassProps] = useState({});
5570
+ const [configStyles, setConfigStyles] = useState({});
4684
5571
  const handleRange = e => {
4685
5572
  const value = e.target.value;
4686
5573
  getRange(value);
@@ -4702,15 +5589,27 @@ const Captcha = ({
4702
5589
  setRangeNumber(Math.min(roundedRange, 100));
4703
5590
  }
4704
5591
  }, [range, getRange]);
4705
- return /*#__PURE__*/React__default.createElement("div", {
5592
+ useEffect(() => {
5593
+ configStylesPromise.then(data => {
5594
+ setClassProps(() => classnames(className ?? data.CAPTCHA.className));
5595
+ setConfigStyles(() => {
5596
+ return {
5597
+ ...data
5598
+ };
5599
+ });
5600
+ }, error => {
5601
+ console.error(error);
5602
+ });
5603
+ }, []);
5604
+ return configStyles.CAPTCHA && /*#__PURE__*/React__default.createElement("div", {
4706
5605
  className: classProps
4707
5606
  }, label && /*#__PURE__*/React__default.createElement("p", {
4708
5607
  style: {
4709
- color: color ?? merge.CAPTCHA.label.color,
4710
- fontSize: fontSize ?? merge.CAPTCHA.label.font.size,
4711
- fontStyle: fontStyle ?? merge.CAPTCHA.label.font.style,
4712
- fontFamily: fontFamily ?? merge.CAPTCHA.label.font.family,
4713
- fontWeight: fontWeight ?? merge.CAPTCHA.label.font.weight
5608
+ color: color ?? configStyles.CAPTCHA.label.color,
5609
+ fontSize: fontSize ?? configStyles.CAPTCHA.label.font.size,
5610
+ fontStyle: fontStyle ?? configStyles.CAPTCHA.label.font.style,
5611
+ fontFamily: fontFamily ?? configStyles.CAPTCHA.label.font.family,
5612
+ fontWeight: fontWeight ?? configStyles.CAPTCHA.label.font.weight
4714
5613
  }
4715
5614
  }, label), /*#__PURE__*/React__default.createElement("div", {
4716
5615
  style: {
@@ -4803,8 +5702,22 @@ const Stepper = ({
4803
5702
  activeSteps,
4804
5703
  className
4805
5704
  }) => {
4806
- return /*#__PURE__*/React__default.createElement("div", {
4807
- className: classnames(className ?? merge.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`)
5705
+ const [classProps, setClassProps] = useState({});
5706
+ const [configStyles, setConfigStyles] = useState({});
5707
+ useEffect(() => {
5708
+ configStylesPromise.then(data => {
5709
+ setClassProps(() => classnames(className ?? data.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`));
5710
+ setConfigStyles(() => {
5711
+ return {
5712
+ ...data
5713
+ };
5714
+ });
5715
+ }, error => {
5716
+ console.error(error);
5717
+ });
5718
+ }, []);
5719
+ return configStyles.STEPPER && /*#__PURE__*/React__default.createElement("div", {
5720
+ className: classProps
4808
5721
  }, (() => {
4809
5722
  let steppers = [];
4810
5723
  for (let step = 1; step <= stepLength; step++) {
@@ -4842,7 +5755,8 @@ const Checkbox = ({
4842
5755
  checkBoxMarginBottom,
4843
5756
  direction = 'vertical'
4844
5757
  }) => {
4845
- const classProps = classnames(className ?? merge.CHECKBOX.className);
5758
+ const [classProps, setClassProps] = useState({});
5759
+ const [configStyles, setConfigStyles] = useState({});
4846
5760
  const [innerData, setInnerData] = useState([]);
4847
5761
  const [innerKeyNames, setInnerKeyNames] = useState({
4848
5762
  id: 'id',
@@ -4883,7 +5797,19 @@ const Checkbox = ({
4883
5797
  });
4884
5798
  }
4885
5799
  }, [keyNames]);
4886
- return /*#__PURE__*/React__default.createElement("div", {
5800
+ useEffect(() => {
5801
+ configStylesPromise.then(data => {
5802
+ setClassProps(() => classnames(className ?? data.CHECKBOX.className));
5803
+ setConfigStyles(() => {
5804
+ return {
5805
+ ...data
5806
+ };
5807
+ });
5808
+ }, error => {
5809
+ console.error(error);
5810
+ });
5811
+ }, []);
5812
+ return configStyles.CHECKBOX && /*#__PURE__*/React__default.createElement("div", {
4887
5813
  style: {
4888
5814
  width: '100%',
4889
5815
  display: 'flex',
@@ -4895,7 +5821,7 @@ const Checkbox = ({
4895
5821
  key: `TUI_${index}_checkbox`,
4896
5822
  style: {
4897
5823
  width: 'fit-content',
4898
- marginBottom: direction === 'vertical' ? checkBoxMarginBottom ?? merge.CHECKBOX.marginBottom : '0px'
5824
+ marginBottom: direction === 'vertical' ? checkBoxMarginBottom ?? configStyles.CHECKBOX.marginBottom : '0px'
4899
5825
  }
4900
5826
  }, /*#__PURE__*/React__default.createElement(SingleCheckbox, {
4901
5827
  data: item,
@@ -4904,12 +5830,12 @@ const Checkbox = ({
4904
5830
  label: item[innerKeyNames.label],
4905
5831
  checked: item[innerKeyNames.checked],
4906
5832
  disabled: item[innerKeyNames.disabled],
5833
+ checkedIcon: checkedIcon ?? configStyles.CHECKBOX.checkedIcon,
5834
+ checkedColor: checkedColor ?? configStyles.CHECKBOX.colors.checked,
5835
+ unCheckedIcon: unCheckedIcon ?? configStyles.CHECKBOX.unCheckedIcon,
4907
5836
  ignoreDisabledForChecked: item[innerKeyNames.ignoreDisabledForChecked],
4908
- labelMarginLeft: labelMarginLeft ?? merge.CHECKBOX.label.marginLeft,
4909
- checkedColor: checkedColor ?? merge.CHECKBOX.colors.checked,
4910
- unCheckedColor: unCheckedColor ?? merge.CHECKBOX.colors.unChecked,
4911
- checkedIcon: checkedIcon ?? merge.CHECKBOX.checkedIcon,
4912
- unCheckedIcon: unCheckedIcon ?? merge.CHECKBOX.unCheckedIcon
5837
+ unCheckedColor: unCheckedColor ?? configStyles.CHECKBOX.colors.unChecked,
5838
+ labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.label.marginLeft
4913
5839
  }));
4914
5840
  }));
4915
5841
  };
@@ -4976,11 +5902,12 @@ const Textarea = ({
4976
5902
  showCharacterCount,
4977
5903
  characterCountPosition = 'top'
4978
5904
  }) => {
4979
- const classProps = classnames(className ?? merge.TEXTAREA.className);
4980
5905
  const [error, setError] = useState('');
4981
5906
  const [isHover, setIsHover] = useState(false);
4982
5907
  const [isFocus, setIsFocus] = useState(false);
4983
5908
  const [innerValue, setInnerValue] = useState('');
5909
+ const [classProps, setClassProps] = useState({});
5910
+ const [configStyles, setConfigStyles] = useState({});
4984
5911
  const handleMouseEnter = () => {
4985
5912
  setIsHover(true);
4986
5913
  };
@@ -5002,8 +5929,8 @@ const Textarea = ({
5002
5929
  onChange(value.substr(0, maxLength));
5003
5930
  }
5004
5931
  } else {
5005
- if (value.length > merge.TEXTAREA.maxLength) {
5006
- onChange(value.substr(0, merge.TEXTAREA.maxLength));
5932
+ if (value.length > configStyles.TEXTAREA.maxLength) {
5933
+ onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
5007
5934
  }
5008
5935
  }
5009
5936
  };
@@ -5023,9 +5950,21 @@ const Textarea = ({
5023
5950
  }
5024
5951
  setInnerValue(() => value);
5025
5952
  }, [value, errorMessage]);
5026
- return /*#__PURE__*/React__default.createElement("div", {
5953
+ useEffect(() => {
5954
+ configStylesPromise.then(data => {
5955
+ setClassProps(() => classnames(className ?? data.TEXTAREA.className));
5956
+ setConfigStyles(() => {
5957
+ return {
5958
+ ...data
5959
+ };
5960
+ });
5961
+ }, error => {
5962
+ console.error(error);
5963
+ });
5964
+ }, []);
5965
+ return configStyles.TEXTAREA && /*#__PURE__*/React__default.createElement("div", {
5027
5966
  style: {
5028
- width: width ?? merge.TEXTAREA.width
5967
+ width: width ?? configStyles.TEXTAREA.width
5029
5968
  },
5030
5969
  className: classProps
5031
5970
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -5033,15 +5972,15 @@ const Textarea = ({
5033
5972
  display: 'flex',
5034
5973
  alignItems: 'center',
5035
5974
  justifyContent: label ? 'space-between' : 'flex-end',
5036
- color: labelColor ?? merge.TEXTAREA.label.color,
5037
- fontSize: labelSize ?? merge.TEXTAREA.label.font.size,
5038
- fontFamily: labelFontFamily ?? merge.TEXTAREA.label.font.family,
5039
- fontWeight: labelWeight ?? merge.TEXTAREA.label.font.weight,
5040
- marginBottom: labelMarginBottom ?? merge.TEXTAREA.label.marginBottom
5975
+ color: labelColor ?? configStyles.TEXTAREA.label.color,
5976
+ fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
5977
+ fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family,
5978
+ fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
5979
+ marginBottom: labelMarginBottom ?? configStyles.TEXTAREA.label.marginBottom
5041
5980
  }
5042
5981
  }, label ? /*#__PURE__*/React__default.createElement("label", {
5043
5982
  style: {
5044
- display: labelDisplay ?? merge.TEXTAREA.label.display
5983
+ display: labelDisplay ?? configStyles.TEXTAREA.label.display
5045
5984
  }
5046
5985
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default.createElement("span", null, maxLength - value.length, " \u0576\u056B\u0577")), /*#__PURE__*/React__default.createElement("textarea", {
5047
5986
  style: {
@@ -5050,21 +5989,21 @@ const Textarea = ({
5050
5989
  outline: 'none',
5051
5990
  overflow: 'auto',
5052
5991
  cursor: disabled ? 'not-allowed' : 'auto',
5053
- fontSize: size ?? merge.TEXTAREA.font.size,
5054
- fontStyle: style ?? merge.TEXTAREA.font.style,
5055
- fontFamily: family ?? merge.TEXTAREA.font.family,
5056
- fontWeight: weight ?? merge.TEXTAREA.font.weight,
5057
- height: height ?? merge.TEXTAREA.height,
5058
- padding: padding ?? merge.TEXTAREA.padding,
5059
- borderRadius: radius ?? merge.TEXTAREA.radius,
5060
- minWidth: minWidth ?? merge.TEXTAREA.minWidth,
5061
- maxWidth: maxWidth ?? merge.TEXTAREA.maxWidth,
5062
- minHeight: minHeight ?? merge.TEXTAREA.minHeight,
5063
- maxHeight: maxHeight ?? merge.TEXTAREA.maxHeight,
5064
- boxSizing: boxSizing ?? merge.TEXTAREA.box.sizing,
5065
- backgroundColor: backgroundColor ?? merge.TEXTAREA.colors.background,
5066
- boxShadow: error ? errorColor ? `0 0 0 2px ${errorColor}` : merge.TEXTAREA.error.box.shadow : isFocus ? borderFocusColor ? `0 0 0 2px ${borderFocusColor}` : merge.TEXTAREA.box.colors.focus : isHover ? borderHoverColor ? `0 0 0 2px ${borderHoverColor}` : merge.TEXTAREA.box.colors.hover : boxShadow ? boxShadow : merge.INPUT.box.shadow,
5067
- resize: resize ? resize : merge.TEXTAREA.resize
5992
+ fontSize: size ?? configStyles.TEXTAREA.font.size,
5993
+ fontStyle: style ?? configStyles.TEXTAREA.font.style,
5994
+ fontFamily: family ?? configStyles.TEXTAREA.font.family,
5995
+ fontWeight: weight ?? configStyles.TEXTAREA.font.weight,
5996
+ height: height ?? configStyles.TEXTAREA.height,
5997
+ padding: padding ?? configStyles.TEXTAREA.padding,
5998
+ borderRadius: radius ?? configStyles.TEXTAREA.radius,
5999
+ minWidth: minWidth ?? configStyles.TEXTAREA.minWidth,
6000
+ maxWidth: maxWidth ?? configStyles.TEXTAREA.maxWidth,
6001
+ minHeight: minHeight ?? configStyles.TEXTAREA.minHeight,
6002
+ maxHeight: maxHeight ?? configStyles.TEXTAREA.maxHeight,
6003
+ boxSizing: boxSizing ?? configStyles.TEXTAREA.box.sizing,
6004
+ backgroundColor: backgroundColor ?? configStyles.TEXTAREA.colors.background,
6005
+ boxShadow: error ? errorColor ? `0 0 0 2px ${errorColor}` : configStyles.TEXTAREA.error.box.shadow : isFocus ? borderFocusColor ? `0 0 0 2px ${borderFocusColor}` : configStyles.TEXTAREA.box.colors.focus : isHover ? borderHoverColor ? `0 0 0 2px ${borderHoverColor}` : configStyles.TEXTAREA.box.colors.hover : boxShadow ? boxShadow : configStyles.INPUT.box.shadow,
6006
+ resize: resize ? resize : configStyles.TEXTAREA.resize
5068
6007
  },
5069
6008
  value: innerValue,
5070
6009
  disabled: disabled,
@@ -5080,26 +6019,26 @@ const Textarea = ({
5080
6019
  }
5081
6020
  }, /*#__PURE__*/React__default.createElement("span", {
5082
6021
  style: {
5083
- color: labelColor ?? merge.TEXTAREA.label.color,
5084
- fontSize: labelSize ?? merge.TEXTAREA.label.font.size,
5085
- fontWeight: labelWeight ?? merge.TEXTAREA.label.font.weight,
5086
- fontFamily: labelFontFamily ?? merge.TEXTAREA.label.font.family
6022
+ color: labelColor ?? configStyles.TEXTAREA.label.color,
6023
+ fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
6024
+ fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
6025
+ fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family
5087
6026
  }
5088
6027
  }, maxLength - value.length, " \u0576\u056B\u0577")), error ? /*#__PURE__*/React__default.createElement("div", {
5089
6028
  style: {
5090
6029
  clear: 'both',
5091
6030
  wordBreak: 'break-all',
5092
- maxWidth: width ?? merge.TEXTAREA.width
6031
+ maxWidth: width ?? configStyles.TEXTAREA.width
5093
6032
  }
5094
6033
  }, /*#__PURE__*/React__default.createElement("span", {
5095
6034
  style: {
5096
6035
  display: 'inline-block',
5097
- color: errorColor ?? merge.TEXTAREA.error.color,
5098
- fontSize: errorSize ?? merge.TEXTAREA.error.font.size,
5099
- fontStyle: errorStyle ?? merge.TEXTAREA.error.font.style,
5100
- fontWeight: errorWeight ?? merge.TEXTAREA.error.font.weight,
5101
- fontFamily: errorFamily ?? merge.TEXTAREA.error.font.family,
5102
- marginTop: marginTop ?? merge.TEXTAREA.error.marginTop
6036
+ color: errorColor ?? configStyles.TEXTAREA.error.color,
6037
+ fontSize: errorSize ?? configStyles.TEXTAREA.error.font.size,
6038
+ fontStyle: errorStyle ?? configStyles.TEXTAREA.error.font.style,
6039
+ fontWeight: errorWeight ?? configStyles.TEXTAREA.error.font.weight,
6040
+ fontFamily: errorFamily ?? configStyles.TEXTAREA.error.font.family,
6041
+ marginTop: marginTop ?? configStyles.TEXTAREA.error.marginTop
5103
6042
  }
5104
6043
  }, error)) : '');
5105
6044
  };
@@ -5179,8 +6118,9 @@ const Typography = ({
5179
6118
  variant = 'p',
5180
6119
  ...props
5181
6120
  }) => {
5182
- const classProps = classnames(className ?? merge.TYPOGRAPHY.className);
5183
6121
  const [isHover, setIsHover] = useState(false);
6122
+ const [classProps, setClassProps] = useState({});
6123
+ const [configStyles, setConfigStyles] = useState({});
5184
6124
  const [validVariant, setValidVariant] = useState(false);
5185
6125
  const handleMouseEnter = () => {
5186
6126
  setIsHover(true);
@@ -5188,22 +6128,22 @@ const Typography = ({
5188
6128
  const handleMouseLeave = () => {
5189
6129
  setIsHover(false);
5190
6130
  };
5191
- const tagT = /*#__PURE__*/React__default.createElement(variant, {
6131
+ const tagT = configStyles.TYPOGRAPHY && /*#__PURE__*/React__default.createElement(variant, {
5192
6132
  style: {
5193
- border: border ?? merge.TYPOGRAPHY.border,
5194
- cursor: cursor ?? merge.TYPOGRAPHY.cursor,
5195
- borderRadius: radius ?? merge.TYPOGRAPHY.radius,
5196
- fontSize: size ?? merge.TYPOGRAPHY.font['size' + variant],
5197
- fontWeight: weight ?? merge.TYPOGRAPHY.font['weight' + variant],
5198
- textShadow: textShadow ?? merge.TYPOGRAPHY.text['shadow' + variant],
5199
- textAlign: textAlign ?? merge.TYPOGRAPHY.text['align' + variant],
5200
- fontStyle: fontStyle ?? merge.TYPOGRAPHY.font['style' + variant],
5201
- lineHeight: lineHeight ?? merge.TYPOGRAPHY.text['lineHeight' + variant],
5202
- fontFamily: fontFamily ?? merge.TYPOGRAPHY.font['family' + variant],
5203
- textTransform: textTransform ?? merge.TYPOGRAPHY.text['transform' + variant],
5204
- textDecoration: textDecoration ?? merge.TYPOGRAPHY.text['decoration' + variant],
5205
- backgroundColor: backgroundColor ?? merge.TYPOGRAPHY.colors['background' + variant],
5206
- color: isHover ? colorHover ? colorHover : color ? color : merge.TYPOGRAPHY.colors[variant] : color ? color : merge.TYPOGRAPHY.colors[variant]
6133
+ border: border ?? configStyles.TYPOGRAPHY.border,
6134
+ cursor: cursor ?? configStyles.TYPOGRAPHY.cursor,
6135
+ borderRadius: radius ?? configStyles.TYPOGRAPHY.radius,
6136
+ fontSize: size ?? configStyles.TYPOGRAPHY.font['size' + variant],
6137
+ fontWeight: weight ?? configStyles.TYPOGRAPHY.font['weight' + variant],
6138
+ textShadow: textShadow ?? configStyles.TYPOGRAPHY.text['shadow' + variant],
6139
+ textAlign: textAlign ?? configStyles.TYPOGRAPHY.text['align' + variant],
6140
+ fontStyle: fontStyle ?? configStyles.TYPOGRAPHY.font['style' + variant],
6141
+ lineHeight: lineHeight ?? configStyles.TYPOGRAPHY.text['lineHeight' + variant],
6142
+ fontFamily: fontFamily ?? configStyles.TYPOGRAPHY.font['family' + variant],
6143
+ textTransform: textTransform ?? configStyles.TYPOGRAPHY.text['transform' + variant],
6144
+ textDecoration: textDecoration ?? configStyles.TYPOGRAPHY.text['decoration' + variant],
6145
+ backgroundColor: backgroundColor ?? configStyles.TYPOGRAPHY.colors['background' + variant],
6146
+ color: isHover ? colorHover ? colorHover : color ? color : configStyles.TYPOGRAPHY.colors[variant] : color ? color : configStyles.TYPOGRAPHY.colors[variant]
5207
6147
  },
5208
6148
  ...props,
5209
6149
  className: classProps,
@@ -5216,6 +6156,18 @@ const Typography = ({
5216
6156
  setValidVariant(true);
5217
6157
  }
5218
6158
  }, [variant]);
6159
+ useEffect(() => {
6160
+ configStylesPromise.then(data => {
6161
+ setClassProps(() => classnames(className ?? data.TYPOGRAPHY.className));
6162
+ setConfigStyles(() => {
6163
+ return {
6164
+ ...data
6165
+ };
6166
+ });
6167
+ }, error => {
6168
+ console.error(error);
6169
+ });
6170
+ }, []);
5219
6171
  return validVariant ? 'Please set Typography valid variant' : tagT;
5220
6172
  };
5221
6173
  Typography.propTypes = {
@@ -5239,10 +6191,6 @@ Typography.propTypes = {
5239
6191
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
5240
6192
  };
5241
6193
 
5242
- var css_248z$1 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT>ul{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:13px;line-height:16px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}";
5243
- var styles$1 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
5244
- styleInject(css_248z$1);
5245
-
5246
6194
  const Dots = '...';
5247
6195
  const range = (start, end) => {
5248
6196
  const length = end - start + 1;
@@ -5284,6 +6232,10 @@ const PaginationRange = ({
5284
6232
  return paginationRange;
5285
6233
  };
5286
6234
 
6235
+ var css_248z$1 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT>ul{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:13px;line-height:16px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}";
6236
+ var styles$1 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
6237
+ styleInject(css_248z$1);
6238
+
5287
6239
  const SvgDots = ({
5288
6240
  title,
5289
6241
  titleId,
@@ -5332,8 +6284,24 @@ const Pagination = ({
5332
6284
  }) => {
5333
6285
  const [inpVal, setInpVal] = useState('');
5334
6286
  const [error, setError] = useState(false);
6287
+ const [classProps, setClassProps] = useState({});
6288
+ const [configStyles, setConfigStyles] = useState({});
5335
6289
  const [currentPageNumber, setCurrentPage] = useState(currentPage);
5336
6290
  const [currentTotalCount, setcurrentTotalCount] = useState(totalCount);
6291
+ useEffect(() => {
6292
+ configStylesPromise.then(data => {
6293
+ setClassProps(() => classnames(
6294
+ // TODO: check and remove pagination-bar-rem class
6295
+ styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
6296
+ setConfigStyles(() => {
6297
+ return {
6298
+ ...data
6299
+ };
6300
+ });
6301
+ }, error => {
6302
+ console.error(error);
6303
+ });
6304
+ }, []);
5337
6305
  useEffect(() => {
5338
6306
  setcurrentTotalCount(totalCount);
5339
6307
  }, [totalCount]);
@@ -5356,9 +6324,6 @@ const Pagination = ({
5356
6324
  if (currentPageNumber === 0 || paginationRange?.length < 2) {
5357
6325
  return null;
5358
6326
  }
5359
- const classProps = classnames(
5360
- // TODO: check and remove pagination-bar-rem class
5361
- styles$1.list, className ?? merge.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`);
5362
6327
  const onNext = () => {
5363
6328
  onPageChange(currentPageNumber + 1);
5364
6329
  };
@@ -5406,7 +6371,7 @@ const Pagination = ({
5406
6371
  }
5407
6372
  };
5408
6373
  let lastPage = paginationRange[paginationRange.length - 1];
5409
- return /*#__PURE__*/React__default.createElement("div", {
6374
+ return configStyles.PAGINATION && /*#__PURE__*/React__default.createElement("div", {
5410
6375
  style: {
5411
6376
  display: 'flex',
5412
6377
  margin: '0 auto',
@@ -5582,14 +6547,15 @@ const Autocomplete = ({
5582
6547
  const [innerError, setInnerError] = useState('');
5583
6548
  const [innerValue, setInnerValue] = useState('');
5584
6549
  const [innerOptions, setInnerOptions] = useState([]);
5585
- const classProps = classnames(className ?? merge.AUTOCOMPLETE.className, styles['auto-complete']);
6550
+ const [classProps, setClassProps] = useState({});
6551
+ const [configStyles, setConfigStyles] = useState({});
5586
6552
  const showOption = keyframes`
5587
6553
  100% {
5588
6554
  max-height: 400px;
5589
6555
  }
5590
6556
  `;
5591
6557
  const animation = () => css`
5592
- ${showOption} ${showOptionDuration ?? merge.AUTOCOMPLETE.showOptionDuration} linear forwards
6558
+ ${showOption} ${showOptionDuration ?? configStyles.AUTOCOMPLETE.showOptionDuration} linear forwards
5593
6559
  `;
5594
6560
  const handleMouseEnter = () => {
5595
6561
  setIsHover(true);
@@ -5598,12 +6564,12 @@ const Autocomplete = ({
5598
6564
  setIsHover(false);
5599
6565
  };
5600
6566
  const handleRowMouseEnter = e => {
5601
- e.target.style.color = contentBottomRowHoverColor ? contentBottomRowHoverColor : merge.AUTOCOMPLETE.contentBottom.row.colors.hover;
5602
- e.target.style.backgroundColor = contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : merge.AUTOCOMPLETE.contentBottom.row.colors.backgroundHover;
6567
+ e.target.style.color = contentBottomRowHoverColor ? contentBottomRowHoverColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.hover;
6568
+ e.target.style.backgroundColor = contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.backgroundHover;
5603
6569
  };
5604
6570
  const handleRowMouseLeave = e => {
5605
- e.target.style.color = contentBottomRowColor ? contentBottomRowColor : merge.AUTOCOMPLETE.contentBottom.row.color;
5606
- e.target.style.backgroundColor = contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : merge.AUTOCOMPLETE.contentBottom.row.colors.background;
6571
+ e.target.style.color = contentBottomRowColor ? contentBottomRowColor : configStyles.AUTOCOMPLETE.contentBottom.row.color;
6572
+ e.target.style.backgroundColor = contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background;
5607
6573
  };
5608
6574
  const handleFocus = () => {
5609
6575
  setIsFocus(true);
@@ -5630,26 +6596,26 @@ const Autocomplete = ({
5630
6596
  };
5631
6597
  const optionList = /*#__PURE__*/React__default.createElement("div", null, show && innerOptions && !disabled ? innerOptions.length > 0 && innerValue.length >= searchCount ? /*#__PURE__*/React__default.createElement("div", {
5632
6598
  style: {
5633
- left: contentBottomLeft ?? merge.AUTOCOMPLETE.contentBottom.left,
5634
- width: contentBottomWidth ?? merge.AUTOCOMPLETE.contentBottom.width,
5635
- zIndex: contentBottomZindex ?? merge.AUTOCOMPLETE.contentBottom.zIndex,
5636
- borderRadius: contentBottomRadius ?? merge.AUTOCOMPLETE.contentBottom.radius,
5637
- maxWidth: contentBottomMaxWidth ?? merge.AUTOCOMPLETE.contentBottom.maxWidth,
5638
- overflow: contentBottomOverflow ?? merge.AUTOCOMPLETE.contentBottom.overflow,
5639
- position: contentBottomPosition ?? merge.AUTOCOMPLETE.contentBottom.position,
5640
- minHeight: contentBottomMinHeight ?? merge.AUTOCOMPLETE.contentBottom.minHeight,
5641
- boxShadow: contentBottomBoxShadow ?? merge.AUTOCOMPLETE.contentBottom.box.shadow,
5642
- backgroundColor: contentBottomBackgroundColor ?? merge.AUTOCOMPLETE.contentBottom.colors.background,
5643
- top: contentTopHeight ? contentTopHeight.includes('rem') ? parseFloat(contentTopHeight.substr(0, contentTopHeight.length - 3)) + 0.6 + 'rem' : parseFloat(contentTopHeight.substr(0, contentTopHeight.length - 2)) + 6 + 'px' : merge.AUTOCOMPLETE.height.includes('rem') ? parseFloat(merge.AUTOCOMPLETE.height.substr(0, merge.AUTOCOMPLETE.height.length - 3)) + 0.6 + 'rem' : parseFloat(merge.AUTOCOMPLETE.height.substr(0, merge.AUTOCOMPLETE.height.length - 2)) + 6 + 'px',
6599
+ left: contentBottomLeft ?? configStyles.AUTOCOMPLETE.contentBottom.left,
6600
+ width: contentBottomWidth ?? configStyles.AUTOCOMPLETE.contentBottom.width,
6601
+ zIndex: contentBottomZindex ?? configStyles.AUTOCOMPLETE.contentBottom.zIndex,
6602
+ borderRadius: contentBottomRadius ?? configStyles.AUTOCOMPLETE.contentBottom.radius,
6603
+ maxWidth: contentBottomMaxWidth ?? configStyles.AUTOCOMPLETE.contentBottom.maxWidth,
6604
+ overflow: contentBottomOverflow ?? configStyles.AUTOCOMPLETE.contentBottom.overflow,
6605
+ position: contentBottomPosition ?? configStyles.AUTOCOMPLETE.contentBottom.position,
6606
+ minHeight: contentBottomMinHeight ?? configStyles.AUTOCOMPLETE.contentBottom.minHeight,
6607
+ boxShadow: contentBottomBoxShadow ?? configStyles.AUTOCOMPLETE.contentBottom.box.shadow,
6608
+ backgroundColor: contentBottomBackgroundColor ?? configStyles.AUTOCOMPLETE.contentBottom.colors.background,
6609
+ top: contentTopHeight ? contentTopHeight.includes('rem') ? parseFloat(contentTopHeight.substr(0, contentTopHeight.length - 3)) + 0.6 + 'rem' : parseFloat(contentTopHeight.substr(0, contentTopHeight.length - 2)) + 6 + 'px' : configStyles.AUTOCOMPLETE.height.includes('rem') ? parseFloat(configStyles.AUTOCOMPLETE.height.substr(0, configStyles.AUTOCOMPLETE.height.length - 3)) + 0.6 + 'rem' : parseFloat(configStyles.AUTOCOMPLETE.height.substr(0, configStyles.AUTOCOMPLETE.height.length - 2)) + 6 + 'px',
5644
6610
  animation
5645
6611
  }
5646
6612
  }, /*#__PURE__*/React__default.createElement("div", {
5647
6613
  style: {
5648
- display: contentBottomInnerDisplay ? contentBottomInnerDisplay : merge.AUTOCOMPLETE.contentBottom.inner.display,
5649
- overflowY: contentBottomInnerOverflowY ? contentBottomInnerOverflowY : merge.AUTOCOMPLETE.contentBottom.inner.overflowY,
5650
- overflowX: contentBottomInnerOverflowX ? contentBottomInnerOverflowX : merge.AUTOCOMPLETE.contentBottom.inner.overflowX,
5651
- maxHeight: contentBottomInnerMaxHeight ? contentBottomInnerMaxHeight : merge.AUTOCOMPLETE.contentBottom.inner.maxHeight,
5652
- flexDirection: contentBottomInnerDirection ? contentBottomInnerDirection : merge.AUTOCOMPLETE.contentBottom.inner.direction
6614
+ display: contentBottomInnerDisplay ? contentBottomInnerDisplay : configStyles.AUTOCOMPLETE.contentBottom.inner.display,
6615
+ overflowY: contentBottomInnerOverflowY ? contentBottomInnerOverflowY : configStyles.AUTOCOMPLETE.contentBottom.inner.overflowY,
6616
+ overflowX: contentBottomInnerOverflowX ? contentBottomInnerOverflowX : configStyles.AUTOCOMPLETE.contentBottom.inner.overflowX,
6617
+ maxHeight: contentBottomInnerMaxHeight ? contentBottomInnerMaxHeight : configStyles.AUTOCOMPLETE.contentBottom.inner.maxHeight,
6618
+ flexDirection: contentBottomInnerDirection ? contentBottomInnerDirection : configStyles.AUTOCOMPLETE.contentBottom.inner.direction
5653
6619
  }
5654
6620
  }, innerOptions.map(item => {
5655
6621
  return /*#__PURE__*/React__default.createElement("p", {
@@ -5659,35 +6625,35 @@ const Autocomplete = ({
5659
6625
  onClick: () => handleClick(item),
5660
6626
  style: {
5661
6627
  flexShrink: 0,
5662
- color: contentBottomRowColor ? contentBottomRowColor : merge.AUTOCOMPLETE.contentBottom.row.color,
5663
- height: contentBottomRowHeight ? contentBottomRowHeight : merge.AUTOCOMPLETE.contentBottom.row.height,
5664
- cursor: contentBottomRowCursor ? contentBottomRowCursor : merge.AUTOCOMPLETE.contentBottom.row.cursor,
5665
- display: contentBottomRowDisplay ? contentBottomRowDisplay : merge.AUTOCOMPLETE.contentBottom.row.display,
5666
- padding: contentBottomRowPadding ? contentBottomRowPadding : merge.AUTOCOMPLETE.contentBottom.row.padding,
5667
- fontSize: contentBottomRowFontSize ? contentBottomRowFontSize : merge.AUTOCOMPLETE.contentBottom.row.font.size,
5668
- boxSizing: contentBottomRowBoxSizing ? contentBottomRowBoxSizing : merge.AUTOCOMPLETE.contentBottom.box.sizing,
5669
- fontWeight: contentBottomRowFontWeight ? contentBottomRowFontWeight : merge.AUTOCOMPLETE.contentBottom.row.font.weight,
5670
- lineHeight: contentBottomRowLineHeight ? contentBottomRowLineHeight : merge.AUTOCOMPLETE.contentBottom.row.lineHeight,
5671
- alignItems: contentBottomRowAlignItems ? contentBottomRowAlignItems : merge.AUTOCOMPLETE.contentBottom.row.alignItems,
5672
- transition: contentBottomRowTransition ? contentBottomRowTransition : merge.AUTOCOMPLETE.contentBottom.row.transition,
5673
- marginBottom: contentBottomRowMarginBottom ? contentBottomRowMarginBottom : merge.AUTOCOMPLETE.contentBottom.row.marginBottom,
5674
- backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : merge.AUTOCOMPLETE.contentBottom.row.colors.background
6628
+ color: contentBottomRowColor ? contentBottomRowColor : configStyles.AUTOCOMPLETE.contentBottom.row.color,
6629
+ height: contentBottomRowHeight ? contentBottomRowHeight : configStyles.AUTOCOMPLETE.contentBottom.row.height,
6630
+ cursor: contentBottomRowCursor ? contentBottomRowCursor : configStyles.AUTOCOMPLETE.contentBottom.row.cursor,
6631
+ display: contentBottomRowDisplay ? contentBottomRowDisplay : configStyles.AUTOCOMPLETE.contentBottom.row.display,
6632
+ padding: contentBottomRowPadding ? contentBottomRowPadding : configStyles.AUTOCOMPLETE.contentBottom.row.padding,
6633
+ fontSize: contentBottomRowFontSize ? contentBottomRowFontSize : configStyles.AUTOCOMPLETE.contentBottom.row.font.size,
6634
+ boxSizing: contentBottomRowBoxSizing ? contentBottomRowBoxSizing : configStyles.AUTOCOMPLETE.contentBottom.box.sizing,
6635
+ fontWeight: contentBottomRowFontWeight ? contentBottomRowFontWeight : configStyles.AUTOCOMPLETE.contentBottom.row.font.weight,
6636
+ lineHeight: contentBottomRowLineHeight ? contentBottomRowLineHeight : configStyles.AUTOCOMPLETE.contentBottom.row.lineHeight,
6637
+ alignItems: contentBottomRowAlignItems ? contentBottomRowAlignItems : configStyles.AUTOCOMPLETE.contentBottom.row.alignItems,
6638
+ transition: contentBottomRowTransition ? contentBottomRowTransition : configStyles.AUTOCOMPLETE.contentBottom.row.transition,
6639
+ marginBottom: contentBottomRowMarginBottom ? contentBottomRowMarginBottom : configStyles.AUTOCOMPLETE.contentBottom.row.marginBottom,
6640
+ backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background
5675
6641
  }
5676
6642
  }, item[keyNames.name]);
5677
6643
  }))) : innerError ? '' : innerValue.length <= 0 ? '' : /*#__PURE__*/React__default.createElement("span", {
5678
6644
  style: {
5679
6645
  position: 'absolute',
5680
6646
  zIndex: '1',
5681
- color: errorColor ?? merge.AUTOCOMPLETE.error.color,
5682
- fontSize: errorSize ?? merge.AUTOCOMPLETE.error.font.size,
5683
- fontStyle: errorStyle ?? merge.AUTOCOMPLETE.error.font.style,
5684
- fontWeight: errorWeight ?? merge.AUTOCOMPLETE.error.font.weight,
5685
- fontFamily: errorFamily ?? merge.AUTOCOMPLETE.error.font.family,
5686
- top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${merge.AUTOCOMPLETE.error.marginTop})`,
5687
- padding: innerErrorPadding ?? merge.AUTOCOMPLETE.innerError.padding,
5688
- height: contentBottomRowHeight ?? merge.AUTOCOMPLETE.contentBottom.row.height,
5689
- lineHeight: contentBottomRowLineHeight ?? merge.AUTOCOMPLETE.contentBottom.row.lineHeight,
5690
- backgroundColor: innerErrorBackgroundColor ?? merge.AUTOCOMPLETE.innerError.colors.background
6647
+ color: errorColor ?? configStyles.AUTOCOMPLETE.error.color,
6648
+ fontSize: errorSize ?? configStyles.AUTOCOMPLETE.error.font.size,
6649
+ fontStyle: errorStyle ?? configStyles.AUTOCOMPLETE.error.font.style,
6650
+ fontWeight: errorWeight ?? configStyles.AUTOCOMPLETE.error.font.weight,
6651
+ fontFamily: errorFamily ?? configStyles.AUTOCOMPLETE.error.font.family,
6652
+ top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${configStyles.AUTOCOMPLETE.error.marginTop})`,
6653
+ padding: innerErrorPadding ?? configStyles.AUTOCOMPLETE.innerError.padding,
6654
+ height: contentBottomRowHeight ?? configStyles.AUTOCOMPLETE.contentBottom.row.height,
6655
+ lineHeight: contentBottomRowLineHeight ?? configStyles.AUTOCOMPLETE.contentBottom.row.lineHeight,
6656
+ backgroundColor: innerErrorBackgroundColor ?? configStyles.AUTOCOMPLETE.innerError.colors.background
5691
6657
  }
5692
6658
  }, innerValue.length >= searchCount ? 'Նման տվյալ առկա չէ' : `Լրացնել առնվազն ${searchCount} նիշ`) : '');
5693
6659
  useEffect(() => {
@@ -5721,30 +6687,42 @@ const Autocomplete = ({
5721
6687
  useEffect(() => {
5722
6688
  setInnerError(errorMessage);
5723
6689
  }, [errorMessage]);
5724
- return /*#__PURE__*/React__default.createElement("div", {
6690
+ useEffect(() => {
6691
+ configStylesPromise.then(data => {
6692
+ setClassProps(() => classnames(className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
6693
+ setConfigStyles(() => {
6694
+ return {
6695
+ ...data
6696
+ };
6697
+ });
6698
+ }).catch(error => {
6699
+ console.error(error);
6700
+ });
6701
+ }, []);
6702
+ return configStyles.AUTOCOMPLETE && /*#__PURE__*/React__default.createElement("div", {
5725
6703
  className: classProps,
5726
6704
  style: {
5727
- width: contentTopMaxWidth ?? merge.AUTOCOMPLETE.maxWidth
6705
+ width: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth
5728
6706
  }
5729
6707
  }, label ? /*#__PURE__*/React__default.createElement("label", {
5730
6708
  style: {
5731
- color: labelColor ?? merge.AUTOCOMPLETE.label.color,
5732
- display: labelDisplay ?? merge.AUTOCOMPLETE.label.display,
5733
- maxWidth: contentTopMaxWidth ?? merge.AUTOCOMPLETE.maxWidth,
5734
- fontSize: labelSize ?? merge.AUTOCOMPLETE.label.font.size,
5735
- fontStyle: labelStyle ?? merge.AUTOCOMPLETE.label.font.style,
5736
- fontWeight: labelWeight ?? merge.AUTOCOMPLETE.label.font.weight,
5737
- fontFamily: labelFontFamily ?? merge.AUTOCOMPLETE.label.font.family,
5738
- lineHeight: labelLineHeight ?? merge.AUTOCOMPLETE.label.lineHeight,
5739
- marginBottom: labelMarginBottom ?? merge.AUTOCOMPLETE.label.marginBottom,
5740
- textTransform: labelTextTransform ?? merge.AUTOCOMPLETE.label.textTransform
6709
+ color: labelColor ?? configStyles.AUTOCOMPLETE.label.color,
6710
+ display: labelDisplay ?? configStyles.AUTOCOMPLETE.label.display,
6711
+ maxWidth: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth,
6712
+ fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
6713
+ fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
6714
+ fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
6715
+ fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
6716
+ lineHeight: labelLineHeight ?? configStyles.AUTOCOMPLETE.label.lineHeight,
6717
+ marginBottom: labelMarginBottom ?? configStyles.AUTOCOMPLETE.label.marginBottom,
6718
+ textTransform: labelTextTransform ?? configStyles.AUTOCOMPLETE.label.textTransform
5741
6719
  }
5742
6720
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
5743
6721
  style: {
5744
- display: contentDisplay ?? merge.AUTOCOMPLETE.parent.display,
5745
- position: contentPosition ?? merge.AUTOCOMPLETE.parent.position,
6722
+ display: contentDisplay ?? configStyles.AUTOCOMPLETE.parent.display,
6723
+ position: contentPosition ?? configStyles.AUTOCOMPLETE.parent.position,
5746
6724
  width: '100%',
5747
- flexDirection: contentDirection ?? merge.AUTOCOMPLETE.parent.direction
6725
+ flexDirection: contentDirection ?? configStyles.AUTOCOMPLETE.parent.direction
5748
6726
  }
5749
6727
  }, /*#__PURE__*/React__default.createElement("input", _extends({
5750
6728
  id: id,
@@ -5757,39 +6735,39 @@ const Autocomplete = ({
5757
6735
  onMouseEnter: handleMouseEnter,
5758
6736
  onMouseLeave: handleMouseLeave,
5759
6737
  placeholder: placeHolder ?? '',
5760
- autoComplete: autoComplete ?? merge.AUTOCOMPLETE.autoComplete,
6738
+ autoComplete: autoComplete ?? configStyles.AUTOCOMPLETE.autoComplete,
5761
6739
  style: {
5762
6740
  border: 'none',
5763
6741
  outline: 'none',
5764
6742
  maxWidth: '100%',
5765
6743
  transition: 'all 240ms',
5766
6744
  cursor: disabled ? 'not-allowed' : 'auto',
5767
- color: contentTopColor ?? merge.AUTOCOMPLETE.color,
5768
- fontSize: contentTopSize ?? merge.AUTOCOMPLETE.font.size,
5769
- fontStyle: contentTopStyle ?? merge.AUTOCOMPLETE.font.style,
5770
- fontFamily: contentTopFamily ?? merge.AUTOCOMPLETE.font.family,
5771
- fontWeight: contentTopWeight ?? merge.AUTOCOMPLETE.font.weight,
5772
- backgroundColor: disabled && (backgroundDisableColor ?? merge.AUTOCOMPLETE.colors.backgroundDisable),
5773
- height: contentTopHeight ?? merge.AUTOCOMPLETE.height,
5774
- padding: contentTopPadding ?? merge.AUTOCOMPLETE.padding,
5775
- display: contentTopDisplay ?? merge.AUTOCOMPLETE.display,
5776
- borderRadius: contentTopRadius ?? merge.AUTOCOMPLETE.radius,
5777
- boxSizing: contentTopBoxSizing ?? merge.AUTOCOMPLETE.box.sizing,
5778
- lineHeight: contentTopLineHeight ?? merge.AUTOCOMPLETE.lineHeight,
5779
- flexDirection: contentTopDirection ?? merge.AUTOCOMPLETE.direction,
5780
- boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : merge.AUTOCOMPLETE.error.box.shadow : isFocus ? contentTopBorderActive ? contentTopBorderActive : merge.AUTOCOMPLETE.box.shadowActive : isHover ? contentTopBorderHover ? contentTopBorderHover : merge.AUTOCOMPLETE.box.shadowHover : contentTopBorder ? contentTopBorder : merge.AUTOCOMPLETE.box.shadow
6745
+ color: contentTopColor ?? configStyles.AUTOCOMPLETE.color,
6746
+ fontSize: contentTopSize ?? configStyles.AUTOCOMPLETE.font.size,
6747
+ fontStyle: contentTopStyle ?? configStyles.AUTOCOMPLETE.font.style,
6748
+ fontFamily: contentTopFamily ?? configStyles.AUTOCOMPLETE.font.family,
6749
+ fontWeight: contentTopWeight ?? configStyles.AUTOCOMPLETE.font.weight,
6750
+ backgroundColor: disabled && (backgroundDisableColor ?? configStyles.AUTOCOMPLETE.colors.backgroundDisable),
6751
+ height: contentTopHeight ?? configStyles.AUTOCOMPLETE.height,
6752
+ padding: contentTopPadding ?? configStyles.AUTOCOMPLETE.padding,
6753
+ display: contentTopDisplay ?? configStyles.AUTOCOMPLETE.display,
6754
+ borderRadius: contentTopRadius ?? configStyles.AUTOCOMPLETE.radius,
6755
+ boxSizing: contentTopBoxSizing ?? configStyles.AUTOCOMPLETE.box.sizing,
6756
+ lineHeight: contentTopLineHeight ?? configStyles.AUTOCOMPLETE.lineHeight,
6757
+ flexDirection: contentTopDirection ?? configStyles.AUTOCOMPLETE.direction,
6758
+ boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : configStyles.AUTOCOMPLETE.error.box.shadow : isFocus ? contentTopBorderActive ? contentTopBorderActive : configStyles.AUTOCOMPLETE.box.shadowActive : isHover ? contentTopBorderHover ? contentTopBorderHover : configStyles.AUTOCOMPLETE.box.shadowHover : contentTopBorder ? contentTopBorder : configStyles.AUTOCOMPLETE.box.shadow
5781
6759
  }
5782
6760
  }, props)), innerError ? /*#__PURE__*/React__default.createElement("span", {
5783
6761
  style: {
5784
6762
  left: '0px',
5785
6763
  position: 'absolute',
5786
- color: errorColor ?? merge.AUTOCOMPLETE.error.color,
5787
- fontSize: errorSize ?? merge.AUTOCOMPLETE.error.font.size,
5788
- fontStyle: errorStyle ?? merge.AUTOCOMPLETE.error.font.style,
5789
- fontWeight: errorWeight ?? merge.AUTOCOMPLETE.error.font.weight,
5790
- fontFamily: errorFamily ?? merge.AUTOCOMPLETE.error.font.family,
5791
- top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${merge.AUTOCOMPLETE.error.marginTop})`,
5792
- maxWidth: contentTopMaxWidth ?? merge.AUTOCOMPLETE.maxWidth
6764
+ color: errorColor ?? configStyles.AUTOCOMPLETE.error.color,
6765
+ fontSize: errorSize ?? configStyles.AUTOCOMPLETE.error.font.size,
6766
+ fontStyle: errorStyle ?? configStyles.AUTOCOMPLETE.error.font.style,
6767
+ fontWeight: errorWeight ?? configStyles.AUTOCOMPLETE.error.font.weight,
6768
+ fontFamily: errorFamily ?? configStyles.AUTOCOMPLETE.error.font.family,
6769
+ top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${configStyles.AUTOCOMPLETE.error.marginTop})`,
6770
+ maxWidth: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth
5793
6771
  }
5794
6772
  }, innerError) : '', optionList));
5795
6773
  };