@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.js CHANGED
@@ -103,18 +103,13 @@ function v4(options, buf, offset) {
103
103
  }
104
104
 
105
105
  function _extends() {
106
- _extends = Object.assign ? Object.assign.bind() : function (target) {
107
- for (var i = 1; i < arguments.length; i++) {
108
- var source = arguments[i];
109
- for (var key in source) {
110
- if (Object.prototype.hasOwnProperty.call(source, key)) {
111
- target[key] = source[key];
112
- }
113
- }
106
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
107
+ for (var e = 1; e < arguments.length; e++) {
108
+ var t = arguments[e];
109
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
114
110
  }
115
- return target;
116
- };
117
- return _extends.apply(this, arguments);
111
+ return n;
112
+ }, _extends.apply(null, arguments);
118
113
  }
119
114
 
120
115
  const SvgHeic = ({
@@ -468,35 +463,799 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
468
463
  }, iconDelItem ? iconDelItem : /*#__PURE__*/React__default["default"].createElement(SvgListItemDelete, null))));
469
464
  });
470
465
 
471
- async function getPProps(type) {
472
- let packageResult;
473
- let projectResult;
474
- const packageImportConfig = await undefined('../../tui.config.js');
475
- const projectImportConfig = await undefined('../../../../tui.config.js');
476
- if (packageImportConfig['../../tui.config.js']) {
477
- packageResult = packageImportConfig['../../tui.config.js']().then(module => module.default);
466
+ const boxSizing = 'border-box';
467
+ const fontStyle = 'normal';
468
+ const fontFamily = 'Arial';
469
+ const fontWeight = 500;
470
+ const transparent = 'transparent';
471
+ const presetColors = {
472
+ info: '#F24C4C',
473
+ dark: '#3C393E',
474
+ light: '#EEEEEE',
475
+ extraLight: '#FBFBFB',
476
+ danger: '#EE0000',
477
+ success: '#0DA574',
478
+ warning: '#FECD29',
479
+ secondary: '#D1D1D1',
480
+ primary: '#051942',
481
+ primarySecond: '#00236A'
482
+ };
483
+ const fontObject = {
484
+ size: '16px',
485
+ style: fontStyle,
486
+ weight: fontWeight,
487
+ family: fontFamily
488
+ };
489
+ var packageResult = {
490
+ // default properties for <Button /> component
491
+ BUTTON: {
492
+ type: 'button',
493
+ width: '100%',
494
+ height: '46px',
495
+ color: 'white',
496
+ contentWidth: false,
497
+ border: 'none',
498
+ radius: '6px',
499
+ cursor: 'pointer',
500
+ padding: '12px 20px',
501
+ disabled: false,
502
+ className: '',
503
+ transition: 'background-color 240ms, color 240ms',
504
+ box: {
505
+ sizing: boxSizing
506
+ },
507
+ colors: {
508
+ background: 'rgba(0, 35, 106, 1)',
509
+ backgroundHover: '#CB3A3A',
510
+ disabled: 'rgba(60, 57, 62, 1)',
511
+ disabledLine: 'rgba(60, 57, 62, 1)',
512
+ disabledBackground: 'rgba(238, 238, 238, 1)'
513
+ },
514
+ font: {
515
+ ...fontObject
516
+ },
517
+ text: {
518
+ transform: 'none',
519
+ colors: {
520
+ hover: '#001745'
521
+ }
522
+ },
523
+ icon: {
524
+ marginRight: '10px'
525
+ }
526
+ },
527
+ // default properties for <Input /> component
528
+ INPUT: {
529
+ type: 'text',
530
+ width: '100%',
531
+ color: 'rgb(60, 57, 62)',
532
+ height: '46px',
533
+ radius: '0px',
534
+ padding: '12px 15px',
535
+ disabled: false,
536
+ required: false,
537
+ className: '',
538
+ maxLength: 255,
539
+ iconWidth: '64px',
540
+ autoComplete: 'off',
541
+ box: {
542
+ sizing: boxSizing,
543
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
544
+ // like border
545
+ shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
546
+ },
547
+ colors: {
548
+ background: 'white',
549
+ backgroundDisable: presetColors.secondary
550
+ },
551
+ font: {
552
+ ...fontObject
553
+ },
554
+ label: {
555
+ color: presetColors.dark,
556
+ display: 'block',
557
+ lineHeight: '22px',
558
+ marginBottom: '6px',
559
+ font: {
560
+ ...fontObject
561
+ }
562
+ },
563
+ error: {
564
+ left: '0px',
565
+ color: presetColors.danger,
566
+ zIndex: '1',
567
+ className: '',
568
+ marginTop: '10px',
569
+ lineHeight: '19px',
570
+ font: {
571
+ ...fontObject
572
+ }
573
+ },
574
+ tel: {
575
+ display: 'flex',
576
+ alignItems: 'center',
577
+ justifyContent: 'center',
578
+ borderRight: {
579
+ width: '1px',
580
+ style: 'solid',
581
+ color: presetColors.secondary,
582
+ colors: {
583
+ hover: presetColors.dark
584
+ }
585
+ }
586
+ }
587
+ },
588
+ // default properties for <Tooltip /> component
589
+ TOOLTIP: {
590
+ type: 'top',
591
+ color: 'white',
592
+ width: '100px',
593
+ radius: '3px',
594
+ className: '',
595
+ // icon: React.createElement(SvgChecked, { fill: 'red' }),
596
+
597
+ parent: {
598
+ width: '46px',
599
+ height: '46px',
600
+ radius: '0px',
601
+ colors: {
602
+ background: transparent
603
+ }
604
+ },
605
+ colors: {
606
+ background: '#03a9f4'
607
+ },
608
+ font: {
609
+ ...fontObject
610
+ }
611
+ },
612
+ // default properties for <Typography /> component
613
+ TYPOGRAPHY: {
614
+ radius: '0px',
615
+ border: 'none',
616
+ cursor: 'default',
617
+ className: '',
618
+ colors: {
619
+ p: presetColors.dark,
620
+ h1: presetColors.dark,
621
+ h2: presetColors.dark,
622
+ h3: presetColors.dark,
623
+ h4: presetColors.dark,
624
+ h5: presetColors.dark,
625
+ h6: presetColors.dark,
626
+ span: presetColors.dark,
627
+ backgroundp: transparent,
628
+ backgroundh1: transparent,
629
+ backgroundh2: transparent,
630
+ backgroundh3: transparent,
631
+ backgroundh4: transparent,
632
+ backgroundh5: transparent,
633
+ backgroundh6: transparent,
634
+ backgroundspan: transparent
635
+ },
636
+ font: {
637
+ sizep: '13px',
638
+ sizeh1: '70px',
639
+ sizeh2: '50px',
640
+ sizeh3: '38px',
641
+ sizeh4: '24px',
642
+ sizeh5: '20px',
643
+ sizeh6: '14px',
644
+ sizespan: '12px',
645
+ stylep: fontStyle,
646
+ styleh1: fontStyle,
647
+ styleh2: fontStyle,
648
+ styleh3: fontStyle,
649
+ styleh4: fontStyle,
650
+ styleh5: fontStyle,
651
+ styleh6: fontStyle,
652
+ stylespan: fontStyle,
653
+ weightp: fontWeight,
654
+ weighth1: fontWeight,
655
+ weighth2: fontWeight,
656
+ weighth3: fontWeight,
657
+ weighth4: fontWeight,
658
+ weighth5: fontWeight,
659
+ weighth6: fontWeight,
660
+ weightspan: fontWeight,
661
+ familyp: fontFamily,
662
+ familyh1: fontFamily,
663
+ familyh2: fontFamily,
664
+ familyh3: fontFamily,
665
+ familyh4: fontFamily,
666
+ familyh5: fontFamily,
667
+ familyh6: fontFamily,
668
+ familyspan: fontFamily
669
+ },
670
+ text: {
671
+ alignp: 'left',
672
+ alignh1: 'left',
673
+ alignh2: 'left',
674
+ alignh3: 'left',
675
+ alignh4: 'left',
676
+ alignh5: 'left',
677
+ alignh6: 'left',
678
+ alignspan: 'left',
679
+ shadowp: 'none',
680
+ shadowh1: 'none',
681
+ shadowh2: 'none',
682
+ shadowh3: 'none',
683
+ shadowh4: 'none',
684
+ shadowh5: 'none',
685
+ shadowh6: 'none',
686
+ shadowspan: 'none',
687
+ transformp: 'none',
688
+ transformh1: 'none',
689
+ transformh2: 'none',
690
+ transformh3: 'none',
691
+ transformh4: 'none',
692
+ transformh5: 'none',
693
+ transformh6: 'none',
694
+ transformspan: 'none',
695
+ decorationp: 'none',
696
+ decorationh1: 'none',
697
+ decorationh2: 'none',
698
+ decorationh3: 'none',
699
+ decorationh4: 'none',
700
+ decorationh5: 'none',
701
+ decorationh6: 'none',
702
+ decorationspan: 'none',
703
+ lineHeightp: 'normal',
704
+ lineHeighth1: 'normal',
705
+ lineHeighth2: 'normal',
706
+ lineHeighth3: 'normal',
707
+ lineHeighth4: 'normal',
708
+ lineHeighth5: 'normal',
709
+ lineHeighth6: 'normal',
710
+ lineHeightspan: 'normal'
711
+ }
712
+ },
713
+ // default properties for <Select /> component
714
+ SELECT: {
715
+ dots: false,
716
+ className: '',
717
+ showCloseIcon: true,
718
+ // arrowIcon: React.createElement(SvgChecked, { fill: 'green' }),
719
+ // closeIcon: React.createElement(SvgChecked, { fill: 'green' }),
720
+
721
+ box: {
722
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
723
+ // like border
724
+ shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
725
+ },
726
+ label: {
727
+ color: presetColors.dark,
728
+ display: 'block',
729
+ lineHeight: '22px',
730
+ marginBottom: '6px',
731
+ textTransform: 'none',
732
+ font: {
733
+ ...fontObject
734
+ }
735
+ },
736
+ selected: {
737
+ color: presetColors.dark,
738
+ cursor: 'pointer',
739
+ radius: '6px',
740
+ padding: '0px 15px',
741
+ minHeight: '46px',
742
+ lineHeight: '22px',
743
+ transition: 'border-color 240ms',
744
+ box: {
745
+ sizing: boxSizing
746
+ },
747
+ colors: {
748
+ hover: '#373538',
749
+ background: presetColors.extraLight,
750
+ backgroundDisable: presetColors.secondary
751
+ },
752
+ font: {
753
+ ...fontObject
754
+ }
755
+ },
756
+ options: {
757
+ radius: '6px',
758
+ colors: {
759
+ background: presetColors.extraLight
760
+ },
761
+ box: {
762
+ shadow: '0 0 10px rgba(60, 57, 62, 0.08)'
763
+ },
764
+ item: {
765
+ color: presetColors.dark,
766
+ cursor: 'pointer',
767
+ padding: '0px 15px',
768
+ minHeight: '46px',
769
+ lineHeight: '25px',
770
+ marginBottom: '2px',
771
+ box: {
772
+ sizing: boxSizing
773
+ },
774
+ colors: {
775
+ hover: presetColors.primarySecond,
776
+ backgroud: '#ffffff',
777
+ backgroudHover: 'unset'
778
+ },
779
+ font: {
780
+ ...fontObject
781
+ }
782
+ }
783
+ },
784
+ error: {
785
+ color: 'rgb(238, 0, 0)',
786
+ marginTop: '10px',
787
+ zIndex: 10,
788
+ box: {
789
+ shadow: `0 0 0 2px ${presetColors.danger}`
790
+ },
791
+ font: {
792
+ ...fontObject
793
+ }
794
+ }
795
+ },
796
+ // default properties for <Textarea /> component
797
+ TEXTAREA: {
798
+ color: presetColors.dark,
799
+ width: '400px',
800
+ height: '134px',
801
+ radius: '6px',
802
+ resize: 'none',
803
+ padding: '12px 15px',
804
+ minWidth: '200px',
805
+ maxWidth: '500px',
806
+ minHeight: '100px',
807
+ maxHeight: '300px',
808
+ maxLength: 1500,
809
+ className: '',
810
+ box: {
811
+ sizing: boxSizing,
812
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
813
+ // like border
814
+
815
+ colors: {
816
+ hover: `0 0 0 2px ${presetColors.dark}`,
817
+ // like border color
818
+ focus: `0 0 0 2px ${presetColors.primarySecond}` // like border color
819
+ }
820
+ },
821
+ colors: {
822
+ background: 'white'
823
+ },
824
+ label: {
825
+ color: presetColors.dark,
826
+ display: 'block',
827
+ marginBottom: '10px',
828
+ font: {
829
+ ...fontObject
830
+ }
831
+ },
832
+ font: {
833
+ ...fontObject
834
+ },
835
+ error: {
836
+ color: '#E40E00',
837
+ marginTop: '10px',
838
+ box: {
839
+ shadow: `0 0 0 2px ${presetColors.danger}` // like border
840
+ },
841
+ font: {
842
+ ...fontObject
843
+ }
844
+ }
845
+ },
846
+ // default properties for <NewAutocomplete /> component
847
+ AUTOCOMPLETE: {
848
+ className: '',
849
+ searchCount: 3,
850
+ autoComplete: 'off',
851
+ showOptionDuration: '640ms',
852
+ color: presetColors.dark,
853
+ radius: '6px',
854
+ height: '46px',
855
+ padding: '0px 15px',
856
+ display: 'flex',
857
+ maxWidth: '400px',
858
+ direction: 'row',
859
+ lineHeight: '22px',
860
+ box: {
861
+ sizing: boxSizing,
862
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
863
+ // like border
864
+ shadowHover: `0 0 0 2px ${presetColors.dark}`,
865
+ // like border
866
+ shadowActive: `0 0 0 2px ${presetColors.primarySecond}` // like border
867
+ },
868
+ font: {
869
+ ...fontObject
870
+ },
871
+ parent: {
872
+ display: 'flex',
873
+ direction: 'column',
874
+ position: 'relative'
875
+ },
876
+ colors: {
877
+ backgroundDisable: presetColors.secondary
878
+ },
879
+ label: {
880
+ color: presetColors.dark,
881
+ display: 'block',
882
+ lineHeight: '22px',
883
+ marginBottom: '6px',
884
+ textTransform: 'none',
885
+ font: {
886
+ ...fontObject
887
+ }
888
+ },
889
+ contentBottom: {
890
+ left: '0px',
891
+ width: '100%',
892
+ zIndex: 1,
893
+ radius: '6px',
894
+ maxWidth: '400px',
895
+ overflow: 'hidden',
896
+ position: 'absolute',
897
+ minHeight: '0px',
898
+ inner: {
899
+ display: 'flex',
900
+ overflowY: 'auto',
901
+ maxHeight: '234px',
902
+ overflowX: 'hidden',
903
+ direction: 'column'
904
+ },
905
+ row: {
906
+ color: presetColors.dark,
907
+ height: '46px',
908
+ cursor: 'pointer',
909
+ display: 'flex',
910
+ padding: '0px 15px',
911
+ lineHeight: '22px',
912
+ alignItems: 'center',
913
+ transition: 'all 240ms',
914
+ marginBottom: '2px',
915
+ colors: {
916
+ hover: presetColors.primarySecond,
917
+ background: '#ffffff',
918
+ backgroundHover: 'initial'
919
+ },
920
+ font: {
921
+ ...fontObject
922
+ }
923
+ },
924
+ colors: {
925
+ background: presetColors.extraLight
926
+ },
927
+ box: {
928
+ shadow: '0 0 10px rgba(60, 57, 62, 0.08)',
929
+ sizing: boxSizing
930
+ }
931
+ },
932
+ error: {
933
+ color: presetColors.danger,
934
+ marginTop: '10px',
935
+ font: {
936
+ ...fontObject
937
+ },
938
+ box: {
939
+ shadow: `0 0 0 2px ${presetColors.danger}` // like border
940
+ }
941
+ },
942
+ innerError: {
943
+ padding: '0px 15px',
944
+ colors: {
945
+ background: 'gray'
946
+ }
947
+ }
948
+ },
949
+ // default properties for <Captcha /> component
950
+ CAPTCHA: {
951
+ className: '',
952
+ label: {
953
+ color: presetColors.dark,
954
+ font: {
955
+ ...fontObject
956
+ }
957
+ }
958
+ },
959
+ // default properties for <File /> component
960
+ FILE: {
961
+ color: presetColors.dark,
962
+ radius: '6px',
963
+ height: '200px',
964
+ maxWidth: '440px',
965
+ className: '',
966
+ areaImage: {
967
+ width: '27.8rem',
968
+ height: 'auto'
969
+ },
970
+ or: 'կամ',
971
+ upload: 'Բեռնել',
972
+ uploadColor: presetColors.success,
973
+ putFileHere: 'Տեղադրել ֆայլը այստեղ',
974
+ sizeText: 'Առավելագույնը',
975
+ timeForRemoveError: 4000,
976
+ extentionsRowMarginTop: '40px',
977
+ border: {
978
+ width: '2px',
979
+ style: 'dashed',
980
+ color: presetColors.secondary,
981
+ colors: {
982
+ hover: presetColors.primarySecond
983
+ }
984
+ },
985
+ colors: {
986
+ background: '#F8F8F8',
987
+ backgroundHidden: 'rgba(60, 57, 62, 0.4)'
988
+ },
989
+ label: {
990
+ color: '#4A4A4D',
991
+ font: {
992
+ ...fontObject
993
+ }
994
+ },
995
+ font: {
996
+ ...fontObject
997
+ },
998
+ error: {
999
+ color: presetColors.danger,
1000
+ font: {
1001
+ ...fontObject
1002
+ },
1003
+ format: 'ֆայլի սխալ ֆորմատ',
1004
+ maxSize: 'Առավելագույն ծավալ',
1005
+ noChoosenFile: 'Ֆայլը ընտրված չէ'
1006
+ },
1007
+ progress: {
1008
+ color: '#4A4A4D',
1009
+ colors: {
1010
+ track: '#E5E8E8',
1011
+ failed: '#E40E00',
1012
+ success: '#069768',
1013
+ loading: presetColors.primary
1014
+ },
1015
+ font: {
1016
+ ...fontObject
1017
+ }
1018
+ },
1019
+ uploadBtn: {
1020
+ label: 'Բեռնել',
1021
+ color: '#fff',
1022
+ height: '30px',
1023
+ colors: {
1024
+ hover: '#fff',
1025
+ background: 'rgba(0, 35, 106, 1)',
1026
+ backgroundHover: 'rgba(0, 35, 106, 1)'
1027
+ },
1028
+ font: {
1029
+ ...fontObject
1030
+ }
1031
+ },
1032
+ listItem: {
1033
+ color: '#4a4a4d',
1034
+ height: '70px',
1035
+ padding: '14px 20px',
1036
+ colors: {
1037
+ background: '#F6F8F8',
1038
+ backgroundError: '#F6F8F8'
1039
+ },
1040
+ font: {
1041
+ ...fontObject
1042
+ },
1043
+ error: {
1044
+ color: '#E40E00',
1045
+ font: {
1046
+ ...fontObject
1047
+ }
1048
+ }
1049
+ },
1050
+ icon: {
1051
+ // comment here for example,
1052
+
1053
+ // pdf: React.createElement(SvgChecked, { fill: 'green' }),
1054
+ // png: React.createElement(SvgChecked, { fill: 'green' }),
1055
+ // jpg: React.createElement(SvgChecked, { fill: 'green' }),
1056
+ // jpeg: React.createElement(SvgChecked, { fill: 'green' }),
1057
+ // heic: React.createElement(SvgChecked, { fill: 'green' }),
1058
+ // wrong: React.createElement(SvgChecked, { fill: 'green' }),
1059
+ // upload: React.createElement(SvgChecked, { fill: 'green' }),
1060
+ // required: React.createElement(SvgChecked, { fill: 'green' }),
1061
+ // removeFile: React.createElement(SvgChecked, { fill: 'green' }),
1062
+ // deleteComponent: React.createElement(SvgChecked, { fill: 'green' }),
1063
+ // deleteItem: React.createElement(SvgUnchecked, { fill: 'green' }),
1064
+ }
1065
+ },
1066
+ // default properties for <Modal /> component
1067
+ MODAL: {
1068
+ width: '',
1069
+ height: '',
1070
+ maxWidth: '95%',
1071
+ minWidth: '320px',
1072
+ maxHeight: '95vh',
1073
+ minHeight: '200px',
1074
+ radius: '14px',
1075
+ padding: '20px 20px 20px',
1076
+ className: '',
1077
+ alignItems: 'center',
1078
+ outsideClose: true,
1079
+ justifyContent: 'center',
1080
+ grayDecorHeight: '80px',
1081
+ border: {
1082
+ width: '20px',
1083
+ style: 'solid',
1084
+ color: transparent
1085
+ },
1086
+ colors: {
1087
+ background: 'white',
1088
+ backgroundLayer: 'rgba(0,0,0,0.4)'
1089
+ },
1090
+ header: {
1091
+ color: presetColors.primarySecond,
1092
+ height: '30px',
1093
+ font: {
1094
+ ...fontObject
1095
+ }
1096
+ },
1097
+ image: {
1098
+ width: '',
1099
+ margin: '0px',
1100
+ height: '100%',
1101
+ maxWidth: '100%',
1102
+ wrapWidth: '100%',
1103
+ wrapHeight: '100%'
1104
+ },
1105
+ icon: {
1106
+ // zoom: React.createElement(SvgChecked, { fill: 'green' }),
1107
+ // prev: React.createElement(SvgChecked, { fill: 'green' }),
1108
+ // next: React.createElement(SvgChecked, { fill: 'green' }),
1109
+ // close: React.createElement(SvgChecked, { fill: 'green' }),
1110
+ // closeSlide: React.createElement(SvgChecked, { fill: 'green' }),
1111
+ },
1112
+ closeAreaBackgroundColor: 'linear-gradient(to bottom, rgb(60, 57, 62), rgba(60, 57, 62, 0))' // for close div background color
1113
+ },
1114
+ // default properties for <Checkbox /> component
1115
+ CHECKBOX: {
1116
+ className: '',
1117
+ marginBottom: '10px',
1118
+ colors: {
1119
+ checked: presetColors.primarySecond,
1120
+ unChecked: presetColors.secondary
1121
+ },
1122
+ label: {
1123
+ marginLeft: '10px'
1124
+ }
1125
+
1126
+ // checkedIcon: React.createElement(SvgChecked, { fill: 'green' }),
1127
+ // unCheckedIcon: React.createElement(<SvgUnchecked fill="#E00" />),
1128
+ },
1129
+ // default properties for <Table /> component
1130
+ TABLE: {
1131
+ className: '',
1132
+ textAlign: 'center',
1133
+ column: {
1134
+ maxWidth: '',
1135
+ minWidth: ''
1136
+ },
1137
+ head: {
1138
+ color: presetColors.extraLight,
1139
+ radius: '14px',
1140
+ padding: '11px 20px',
1141
+ colors: {
1142
+ background: presetColors.primarySecond
1143
+ },
1144
+ font: {
1145
+ ...fontObject
1146
+ }
1147
+ },
1148
+ body: {
1149
+ color: presetColors.dark,
1150
+ padding: '11px 20px',
1151
+ box: {
1152
+ shadow: ''
1153
+ },
1154
+ row: {
1155
+ asItem: false,
1156
+ radius: '6px',
1157
+ marginTop: '10px',
1158
+ colors: {
1159
+ backgroud: transparent
1160
+ },
1161
+ box: {
1162
+ shadow: ''
1163
+ },
1164
+ border: '1px solid',
1165
+ borderColor: presetColors.light
1166
+ },
1167
+ font: {
1168
+ ...fontObject
1169
+ }
1170
+ },
1171
+ openList: {
1172
+ color: '#A3A5A9',
1173
+ font: {
1174
+ ...fontObject
1175
+ }
1176
+ }
1177
+ },
1178
+ // default properties for <Pagination /> component
1179
+ PAGINATION: {
1180
+ className: '' // for pagination class
1181
+ },
1182
+ // default properties for <Toaster /> component
1183
+ TOASTER: {
1184
+ className: '',
1185
+ icon: {
1186
+ // info: React.createElement(SvgChecked, { just: 'must' }),
1187
+ // warn: React.createElement(SvgUnchecked, { just: 'must' }),
1188
+ // close: React.createElement(SvgChecked, { fill: 'green' }),
1189
+ // error: React.createElement(SvgChecked, { fill: 'green' }),
1190
+ // success: React.createElement(SvgChecked, { fill: 'green' }),
1191
+ }
1192
+ },
1193
+ // default properties for <Stepper /> component
1194
+ STEPPER: {
1195
+ className: '' // for stepper class
1196
+ },
1197
+ // default properties for <Radio /> component
1198
+ RADIO: {
1199
+ size: '20px',
1200
+ className: '',
1201
+ marginRight: '10px',
1202
+ item: {
1203
+ marginRight: '10px',
1204
+ marginBottom: '10px'
1205
+ },
1206
+ border: {
1207
+ width: '2px',
1208
+ style: 'solid',
1209
+ color: '#E7E7E7',
1210
+ activeColor: '#3C3D46'
1211
+ },
1212
+ label: {
1213
+ color: '#3C3D46',
1214
+ lineHeight: '21px',
1215
+ font: {
1216
+ ...fontObject
1217
+ }
1218
+ }
1219
+ },
1220
+ // default properties for <Form /> component
1221
+ FORM: {
1222
+ className: ''
478
1223
  }
479
- if (projectImportConfig['../../../../tui.config.js']) {
480
- projectResult = projectImportConfig['../../../../tui.config.js']().then(module => module.default);
1224
+ };
1225
+
1226
+ async function getPProps() {
1227
+ let projectResult = {};
1228
+ const projectPath = `../../../../tui.config.js`;
1229
+ async function loadComponent(componentName) {
1230
+ try {
1231
+ const Component = await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })( /* @vite-ignore */componentName);
1232
+ return Component.default;
1233
+ } catch (err) {
1234
+ console.error(`Error loading component: ${componentName}`);
1235
+ return null;
1236
+ }
481
1237
  }
482
- return type === true ? packageResult : projectResult;
1238
+ const projectImportConfig = await loadComponent(projectPath);
1239
+ if (projectImportConfig) {
1240
+ projectResult = projectImportConfig;
1241
+ }
1242
+ return {
1243
+ packageResult,
1244
+ projectResult
1245
+ };
483
1246
  }
484
-
485
- let projectConfig = {};
486
- let packageConfig = {};
487
- async function getProps(type) {
1247
+ async function getProps() {
488
1248
  let props;
489
1249
  try {
490
- const newProps = await getPProps(type);
491
- props = ___default["default"].merge(type === true ? packageConfig : projectConfig, newProps);
1250
+ const newProps = await getPProps();
1251
+ props = ___default["default"].merge(newProps.packageResult, newProps.projectResult);
492
1252
  } catch (error) {
493
1253
  console.error('Error in getProps:', error);
494
1254
  }
495
1255
  return props;
496
1256
  }
497
- packageConfig = getProps(true);
498
- packageConfig = getProps();
499
- const merge = ___default["default"].merge(packageConfig, projectConfig);
1257
+
1258
+ var configStylesPromise = getProps();
500
1259
  const hasOwnerProperty = (object, property) => {
501
1260
  return Object.prototype.hasOwnProperty.call(object, property);
502
1261
  };
@@ -534,8 +1293,9 @@ const Button = ({
534
1293
  disabledBackgroundColor,
535
1294
  ...props
536
1295
  }) => {
1296
+ const [classProps, setClassProps] = React.useState({});
1297
+ const [configStyles, setConfigStyles] = React.useState({});
537
1298
  const [isHover, setIsHover] = React.useState(false);
538
- const classProps = classnames__default["default"](className ?? merge.BUTTON.className);
539
1299
  const handleMouseEnter = () => {
540
1300
  setIsHover(true);
541
1301
  };
@@ -546,41 +1306,51 @@ const Button = ({
546
1306
  if (!label && !icon) {
547
1307
  alert('Add icon or label props on Button component');
548
1308
  }
1309
+ configStylesPromise.then(data => {
1310
+ setClassProps(() => classnames__default["default"](className ?? data.BUTTON.className));
1311
+ setConfigStyles(() => {
1312
+ return {
1313
+ ...data
1314
+ };
1315
+ });
1316
+ }, error => {
1317
+ console.error(error);
1318
+ });
549
1319
  }, []);
550
- return /*#__PURE__*/React__default["default"].createElement("button", _extends({
1320
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, configStyles.BUTTON && /*#__PURE__*/React__default["default"].createElement("button", _extends({
551
1321
  style: {
552
1322
  display: 'flex',
553
1323
  outline: 'none',
554
1324
  alignItems: 'center',
555
1325
  justifyContent: 'center',
556
- fontSize: size ?? merge.BUTTON.font.size,
557
- fontStyle: style ?? merge.BUTTON.font.style,
558
- fontFamily: font ?? merge.BUTTON.font.family,
559
- height: height ?? merge.BUTTON.height,
560
- fontWeight: weight ?? merge.BUTTON.font.weight,
561
- padding: padding ?? merge.BUTTON.padding,
562
- borderRadius: radius ?? merge.BUTTON.radius,
563
- boxSizing: boxSizing ?? merge.BUTTON.box.sizing,
564
- transition: transition ?? merge.BUTTON.transition,
565
- border: outline ? 'none' : border ?? merge.BUTTON.border,
566
- width: contentWidth ? 'auto' : width ?? merge.BUTTON.width,
567
- cursor: disabled ? 'not-allowed' : cursor ?? merge.BUTTON.cursor,
568
- textTransform: textTransform ?? merge.BUTTON.text.transform,
569
- 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,
570
- 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',
571
- 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
1326
+ fontSize: size ?? configStyles.BUTTON.font.size,
1327
+ fontStyle: style ?? configStyles.BUTTON.font.style,
1328
+ fontFamily: font ?? configStyles.BUTTON.font.family,
1329
+ height: height ?? configStyles.BUTTON.height,
1330
+ fontWeight: weight ?? configStyles.BUTTON.font.weight,
1331
+ padding: padding ?? configStyles.BUTTON.padding,
1332
+ borderRadius: radius ?? configStyles.BUTTON.radius,
1333
+ boxSizing: boxSizing ?? configStyles.BUTTON.box.sizing,
1334
+ transition: transition ?? configStyles.BUTTON.transition,
1335
+ border: outline ? 'none' : border ?? configStyles.BUTTON.border,
1336
+ width: contentWidth ? 'auto' : width ?? configStyles.BUTTON.width,
1337
+ cursor: disabled ? 'not-allowed' : cursor ?? configStyles.BUTTON.cursor,
1338
+ textTransform: textTransform ?? configStyles.BUTTON.text.transform,
1339
+ 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,
1340
+ 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',
1341
+ 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
572
1342
  },
573
- type: type ?? merge.BUTTON.type,
574
- disabled: disabled ?? merge.BUTTON.disabled,
1343
+ type: type ?? configStyles.BUTTON.type,
1344
+ disabled: disabled ?? configStyles.BUTTON.disabled,
575
1345
  onClick: disabled ? _ => _ : type !== 'submit' ? onClick ? onClick : () => alert('Add click event handler on Button component') : _ => _,
576
1346
  onMouseEnter: handleMouseEnter,
577
1347
  onMouseLeave: handleMouseLeave,
578
1348
  className: classProps
579
1349
  }, props), isHover && hoverIcon ? hoverIcon : icon ?? null, ' ', label && /*#__PURE__*/React__default["default"].createElement("span", {
580
1350
  style: {
581
- marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : merge.BUTTON.icon.marginRight : '0px'
1351
+ marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : configStyles.BUTTON.icon.marginRight : '0px'
582
1352
  }
583
- }, label), ' ', !icon && !label && 'Add icon or label prop on Button component');
1353
+ }, label), ' ', !icon && !label && 'Add icon or label prop on Button component'));
584
1354
  };
585
1355
  Button.propTypes = {
586
1356
  type: PropTypes__default["default"].string,
@@ -826,10 +1596,11 @@ const File = /*#__PURE__*/React.forwardRef(({
826
1596
  }, ref) => {
827
1597
  const inpRef = React.useRef(null);
828
1598
  const memoizedItems = React.useMemo(() => filesArray, [filesArray]);
829
- const classProps = classnames__default["default"](className ?? merge.FILE.className);
830
1599
  const [error, setError] = React.useState('');
831
1600
  const [isHover, setIsHover] = React.useState(false);
1601
+ const [classProps, setClassProps] = React.useState({});
832
1602
  const [singleFile, setSingleFile] = React.useState(null);
1603
+ const [configStyles, setConfigStyles] = React.useState({});
833
1604
  const [choosenFileCount, setChoosenFileCount] = React.useState(0);
834
1605
  const [image, setImage] = React.useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url : 'pdf' : null : null);
835
1606
  const handleRemoveComponent = () => {
@@ -872,14 +1643,14 @@ const File = /*#__PURE__*/React.forwardRef(({
872
1643
  change({
873
1644
  file: file[ix],
874
1645
  uuid: v4(),
875
- check: formatError ?? merge.FILE.error.format
1646
+ check: formatError ?? configStyles.FILE.error.format
876
1647
  });
877
1648
  }
878
1649
  } else {
879
1650
  change({
880
1651
  file: file[ix],
881
1652
  uuid: v4(),
882
- check: maxSizeError ?? merge.FILE.error.maxSize
1653
+ check: maxSizeError ?? configStyles.FILE.error.maxSize
883
1654
  });
884
1655
  }
885
1656
  }
@@ -901,14 +1672,14 @@ const File = /*#__PURE__*/React.forwardRef(({
901
1672
  change({
902
1673
  file: file[ix],
903
1674
  uuid: v4(),
904
- check: formatError ?? merge.FILE.error.format
1675
+ check: formatError ?? configStyles.FILE.error.format
905
1676
  });
906
1677
  }
907
1678
  } else {
908
1679
  change({
909
1680
  file: file[ix],
910
1681
  uuid: v4(),
911
- check: maxSizeError ?? merge.FILE.error.maxSize
1682
+ check: maxSizeError ?? configStyles.FILE.error.maxSize
912
1683
  });
913
1684
  }
914
1685
  }
@@ -922,7 +1693,7 @@ const File = /*#__PURE__*/React.forwardRef(({
922
1693
  setImage(null);
923
1694
  handleUploadFiles(file);
924
1695
  if (file.length === 0 && memoizedItems.length === 0) {
925
- setError(noChoosenFile ?? merge.FILE.error.noChoosen);
1696
+ setError(noChoosenFile ?? configStyles.FILE.error.noChoosen);
926
1697
  }
927
1698
  } else {
928
1699
  if (file[0]) {
@@ -940,16 +1711,16 @@ const File = /*#__PURE__*/React.forwardRef(({
940
1711
  }
941
1712
  } else {
942
1713
  setImage(null);
943
- setError(formatError ?? merge.FILE.error.format);
1714
+ setError(formatError ?? configStyles.FILE.error.format);
944
1715
  }
945
1716
  } else {
946
1717
  setImage(null);
947
- setError(maxSizeError ?? merge.FILE.error.maxSize);
1718
+ setError(maxSizeError ?? configStyles.FILE.error.maxSize);
948
1719
  }
949
1720
  }
950
1721
  if (file.length === 0) {
951
1722
  setImage(null);
952
- setError(noChoosenFile ?? merge.FILE.error.noChoosen);
1723
+ setError(noChoosenFile ?? configStyles.FILE.error.noChoosen);
953
1724
  }
954
1725
  }
955
1726
  };
@@ -1036,10 +1807,22 @@ const File = /*#__PURE__*/React.forwardRef(({
1036
1807
  alert('Please add change prop on File component');
1037
1808
  }
1038
1809
  }, [change]);
1039
- return /*#__PURE__*/React__default["default"].createElement("div", {
1810
+ React.useEffect(() => {
1811
+ configStylesPromise.then(data => {
1812
+ setClassProps(() => classnames__default["default"](className ?? data.FILE.className));
1813
+ setConfigStyles(() => {
1814
+ return {
1815
+ ...data
1816
+ };
1817
+ });
1818
+ }, error => {
1819
+ console.error(error);
1820
+ });
1821
+ }, []);
1822
+ return configStyles.FILE && /*#__PURE__*/React__default["default"].createElement("div", {
1040
1823
  style: {
1041
1824
  width: '100%',
1042
- maxWidth: maxWidth ?? merge.FILE.maxWidth
1825
+ maxWidth: maxWidth ?? configStyles.FILE.maxWidth
1043
1826
  },
1044
1827
  className: classProps
1045
1828
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1051,18 +1834,18 @@ const File = /*#__PURE__*/React.forwardRef(({
1051
1834
  }
1052
1835
  }, label && /*#__PURE__*/React__default["default"].createElement("label", {
1053
1836
  style: {
1054
- color: labelColor ?? merge.FILE.label.color,
1055
- fontSize: labelSize ?? merge.FILE.label.font.size,
1056
- fontStyle: labelStyle ?? merge.FILE.label.font.style,
1057
- fontWeight: labelWeight ?? merge.FILE.label.font.weight,
1058
- fontFamily: labelFamily ?? merge.FILE.label.font.family
1837
+ color: labelColor ?? configStyles.FILE.label.color,
1838
+ fontSize: labelSize ?? configStyles.FILE.label.font.size,
1839
+ fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
1840
+ fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
1841
+ fontFamily: labelFamily ?? configStyles.FILE.label.font.family
1059
1842
  }
1060
- }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : merge.FILE.icon.required ? merge.FILE.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
1843
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
1061
1844
  style: {
1062
1845
  cursor: 'pointer'
1063
1846
  },
1064
1847
  onClick: handleRemoveComponent
1065
- }, iconDeleteComponent ? iconDeleteComponent : merge.FILE.icon.deleteComponent ? merge.FILE.icon.deleteComponent : /*#__PURE__*/React__default["default"].createElement(SvgDeleteComponent, null))), /*#__PURE__*/React__default["default"].createElement("div", {
1848
+ }, iconDeleteComponent ? iconDeleteComponent : configStyles.FILE.icon.deleteComponent ? configStyles.FILE.icon.deleteComponent : /*#__PURE__*/React__default["default"].createElement(SvgDeleteComponent, null))), /*#__PURE__*/React__default["default"].createElement("div", {
1066
1849
  style: {
1067
1850
  width: '100%',
1068
1851
  display: 'flex',
@@ -1071,12 +1854,12 @@ const File = /*#__PURE__*/React.forwardRef(({
1071
1854
  boxSizing: 'border-box',
1072
1855
  justifyContent: 'center',
1073
1856
  cursor: !disabled ? 'pointer' : 'not-allowed',
1074
- height: height ?? merge.FILE.height,
1075
- borderWidth: borderWidth ?? merge.FILE.border.width,
1076
- borderStyle: borderStyle ?? merge.FILE.border.style,
1077
- borderRadius: radius ?? merge.FILE.radius,
1078
- backgroundColor: backgroundColor ?? merge.FILE.colors.background,
1079
- 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
1857
+ height: height ?? configStyles.FILE.height,
1858
+ borderWidth: borderWidth ?? configStyles.FILE.border.width,
1859
+ borderStyle: borderStyle ?? configStyles.FILE.border.style,
1860
+ borderRadius: radius ?? configStyles.FILE.radius,
1861
+ backgroundColor: backgroundColor ?? configStyles.FILE.colors.background,
1862
+ 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
1080
1863
  },
1081
1864
  onDrop: handleDrop,
1082
1865
  onClick: handleClick,
@@ -1100,40 +1883,40 @@ const File = /*#__PURE__*/React.forwardRef(({
1100
1883
  alignItems: 'center',
1101
1884
  flexDirection: 'column',
1102
1885
  justifyContent: 'center',
1103
- color: color ?? merge.FILE.color,
1104
- fontSize: size ?? merge.FILE.font.size,
1105
- fontStyle: style ?? merge.FILE.font.style,
1106
- fontFamily: family ?? merge.FILE.font.family,
1107
- fontWeight: weight ?? merge.FILE.font.weight
1886
+ color: color ?? configStyles.FILE.color,
1887
+ fontSize: size ?? configStyles.FILE.font.size,
1888
+ fontStyle: style ?? configStyles.FILE.font.style,
1889
+ fontFamily: family ?? configStyles.FILE.font.family,
1890
+ fontWeight: weight ?? configStyles.FILE.font.weight
1108
1891
  }
1109
- }, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : merge.FILE.icon.pdf ? merge.FILE.icon.pdf : /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : merge.FILE.icon.heic ? merge.FILE.icon.heic : /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : /*#__PURE__*/React__default["default"].createElement("img", {
1892
+ }, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : /*#__PURE__*/React__default["default"].createElement("img", {
1110
1893
  src: image,
1111
1894
  style: {
1112
1895
  display: 'block',
1113
1896
  maxWidth: '100%',
1114
1897
  maxHeight: '95%',
1115
1898
  objectFit: 'contain',
1116
- width: fileAreaImageWidth ?? merge.FILE.fileAreaImageWidth,
1117
- height: fileAreaImageHeight ?? merge.FILE.fileAreaImageHeight
1899
+ width: fileAreaImageWidth ?? configStyles.FILE.fileAreaImageWidth,
1900
+ height: fileAreaImageHeight ?? configStyles.FILE.fileAreaImageHeight
1118
1901
  },
1119
1902
  alt: "file preview"
1120
- }) : preview ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", null, iconUpload ? iconUpload : merge.FILE.icon.upload ? merge.FILE.icon.upload : /*#__PURE__*/React__default["default"].createElement(SvgUpload, null)), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", {
1903
+ }) : preview ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", null, iconUpload ? iconUpload : configStyles.FILE.icon.upload ? configStyles.FILE.icon.upload : /*#__PURE__*/React__default["default"].createElement(SvgUpload, null)), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", {
1121
1904
  style: {
1122
1905
  margin: '0px'
1123
1906
  }
1124
- }, putFileHere ?? merge.FILE.putFileHere, /*#__PURE__*/React__default["default"].createElement("br", null), or ? or : merge.FILE.or, ' ', /*#__PURE__*/React__default["default"].createElement("span", {
1907
+ }, putFileHere ?? configStyles.FILE.putFileHere, /*#__PURE__*/React__default["default"].createElement("br", null), or ? or : configStyles.FILE.or, ' ', /*#__PURE__*/React__default["default"].createElement("span", {
1125
1908
  style: {
1126
- color: uploadColor ?? merge.FILE.uploadColor
1909
+ color: uploadColor ?? configStyles.FILE.uploadColor
1127
1910
  }
1128
- }, upload ?? merge.FILE.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
1911
+ }, upload ?? configStyles.FILE.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
1129
1912
  style: {
1130
- marginTop: extentionsRowMarginTop ?? merge.FILE.extentionsRowMarginTop
1913
+ marginTop: extentionsRowMarginTop ?? configStyles.FILE.extentionsRowMarginTop
1131
1914
  }
1132
1915
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1133
1916
  style: {
1134
1917
  margin: '0px'
1135
1918
  }
1136
- }, fileSizeText ?? merge.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
1919
+ }, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
1137
1920
  style: {
1138
1921
  width: '100%',
1139
1922
  padding: '5px',
@@ -1145,16 +1928,16 @@ const File = /*#__PURE__*/React.forwardRef(({
1145
1928
  }, /*#__PURE__*/React__default["default"].createElement(Button, {
1146
1929
  contentWidth: true,
1147
1930
  onClick: _ => _,
1148
- font: uploadBtnFont ?? merge.FILE.uploadBtn.font.family,
1149
- size: uploadBtnSize ?? merge.FILE.uploadBtn.font.size,
1150
- style: uploadBtnStyle ?? merge.FILE.uploadBtn.font.style,
1151
- weight: uploadBtnWeight ?? merge.FILE.uploadBtn.font.weight,
1152
- label: uploadBtnLabel ?? merge.FILE.uploadBtn.label,
1153
- color: uploadBtnColor ?? merge.FILE.uploadBtn.color,
1154
- height: uploadBtnHeight ?? merge.FILE.uploadBtn.height,
1155
- hoverColor: uploadBtnHoverColor ?? merge.FILE.uploadBtn.colors.hover,
1156
- backgroundColor: uploadBtnBackgroundColor ?? merge.FILE.uploadBtn.colors.background,
1157
- backgroundHoverColor: uploadBtnBackgroundColorHover ?? merge.FILE.uploadBtn.colors.backgroundHover
1931
+ font: uploadBtnFont ?? configStyles.FILE.uploadBtn.font.family,
1932
+ size: uploadBtnSize ?? configStyles.FILE.uploadBtn.font.size,
1933
+ style: uploadBtnStyle ?? configStyles.FILE.uploadBtn.font.style,
1934
+ weight: uploadBtnWeight ?? configStyles.FILE.uploadBtn.font.weight,
1935
+ label: uploadBtnLabel ?? configStyles.FILE.uploadBtn.label,
1936
+ color: uploadBtnColor ?? configStyles.FILE.uploadBtn.color,
1937
+ height: uploadBtnHeight ?? configStyles.FILE.uploadBtn.height,
1938
+ hoverColor: uploadBtnHoverColor ?? configStyles.FILE.uploadBtn.colors.hover,
1939
+ backgroundColor: uploadBtnBackgroundColor ?? configStyles.FILE.uploadBtn.colors.background,
1940
+ backgroundHoverColor: uploadBtnBackgroundColorHover ?? configStyles.FILE.uploadBtn.colors.backgroundHover
1158
1941
  }), /*#__PURE__*/React__default["default"].createElement("p", {
1159
1942
  style: {
1160
1943
  margin: '0px',
@@ -1163,7 +1946,7 @@ const File = /*#__PURE__*/React.forwardRef(({
1163
1946
  whiteSpace: 'nowrap',
1164
1947
  textOverflow: 'ellipsis'
1165
1948
  }
1166
- }, singleFile ? singleFile[0].name : /*#__PURE__*/React__default["default"].createElement("span", null, fileSizeText ?? merge.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default["default"].createElement("div", {
1949
+ }, singleFile ? singleFile[0].name : /*#__PURE__*/React__default["default"].createElement("span", null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default["default"].createElement("div", {
1167
1950
  style: {
1168
1951
  position: 'absolute',
1169
1952
  top: '0px',
@@ -1176,9 +1959,9 @@ const File = /*#__PURE__*/React.forwardRef(({
1176
1959
  boxSizing: 'border-box',
1177
1960
  alignItems: 'flex-start',
1178
1961
  justifyContent: 'flex-end',
1179
- borderRadius: radius ?? merge.FILE.radius,
1962
+ borderRadius: radius ?? configStyles.FILE.radius,
1180
1963
  display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
1181
- backgroundColor: hiddenBackgroundColor ?? merge.FILE.colors.backgroundHidden
1964
+ backgroundColor: hiddenBackgroundColor ?? configStyles.FILE.colors.backgroundHidden
1182
1965
  },
1183
1966
  onClick: handleStopPropagation
1184
1967
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1186,15 +1969,15 @@ const File = /*#__PURE__*/React.forwardRef(({
1186
1969
  cursor: 'pointer'
1187
1970
  },
1188
1971
  onClick: handleRemoveFile
1189
- }, iconRemoveFile ? iconRemoveFile : merge.FILE.icon.removeFile ? merge.FILE.icon.removeFile : /*#__PURE__*/React__default["default"].createElement(SvgRemoveFile, null)))), error ? /*#__PURE__*/React__default["default"].createElement("span", {
1972
+ }, iconRemoveFile ? iconRemoveFile : configStyles.FILE.icon.removeFile ? configStyles.FILE.icon.removeFile : /*#__PURE__*/React__default["default"].createElement(SvgRemoveFile, null)))), error ? /*#__PURE__*/React__default["default"].createElement("span", {
1190
1973
  style: {
1191
1974
  marginTop: '6px',
1192
1975
  display: 'inline-block',
1193
- color: errorColor ?? merge.FILE.error.color,
1194
- fontSize: errorSize ?? merge.FILE.error.font.size,
1195
- fontStyle: errorStyle ?? merge.FILE.error.font.style,
1196
- fontWeight: errorWeight ?? merge.FILE.error.font.weight,
1197
- fontFamily: errorFamily ?? merge.FILE.error.font.family
1976
+ color: errorColor ?? configStyles.FILE.error.color,
1977
+ fontSize: errorSize ?? configStyles.FILE.error.font.size,
1978
+ fontStyle: errorStyle ?? configStyles.FILE.error.font.style,
1979
+ fontWeight: errorWeight ?? configStyles.FILE.error.font.weight,
1980
+ fontFamily: errorFamily ?? configStyles.FILE.error.font.family
1198
1981
  }
1199
1982
  }, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
1200
1983
  return /*#__PURE__*/React__default["default"].createElement(FileItem, {
@@ -1204,35 +1987,35 @@ const File = /*#__PURE__*/React.forwardRef(({
1204
1987
  status: item.status,
1205
1988
  size: item.file.size,
1206
1989
  name: item.file.name,
1207
- iconPdf: iconPdf ?? merge.FILE.icon.pdf,
1208
- iconPng: iconPng ?? merge.FILE.icon.png,
1209
- iconJpg: iconJpg ?? merge.FILE.icon.jpg,
1210
- iconJpeg: iconJpeg ?? merge.FILE.icon.jpeg,
1211
- iconHeic: iconHeic ?? merge.FILE.icon.heic,
1212
- iconWrong: iconWrong ?? merge.FILE.icon.wrong,
1213
- iconDelItem: iconDeleteItem ?? merge.FILE.icon.deleteItem,
1990
+ iconPdf: iconPdf ?? configStyles.FILE.icon.pdf,
1991
+ iconPng: iconPng ?? configStyles.FILE.icon.png,
1992
+ iconJpg: iconJpg ?? configStyles.FILE.icon.jpg,
1993
+ iconJpeg: iconJpeg ?? configStyles.FILE.icon.jpeg,
1994
+ iconHeic: iconHeic ?? configStyles.FILE.icon.heic,
1995
+ iconWrong: iconWrong ?? configStyles.FILE.icon.wrong,
1996
+ iconDelItem: iconDeleteItem ?? configStyles.FILE.icon.deleteItem,
1214
1997
  timeForRemoveError: timeForRemoveError,
1215
1998
  removeFile: removeFile ? removeFile : _ => _,
1216
- radius: radius ?? merge.FILE.radius,
1999
+ radius: radius ?? configStyles.FILE.radius,
1217
2000
  fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
1218
- progressColor: progressColor ?? merge.FILE.progress.color,
1219
- listItemHeight: listItemHeight ?? merge.FILE.listItem.height,
1220
- listItemPadding: listItemPadding ?? merge.FILE.listItem.padding,
1221
- progressFontSize: progressFontSize ?? merge.FILE.progress.font.size,
1222
- progressFontStyle: progressFontStyle ?? merge.FILE.progress.font.style,
1223
- progressFontWeight: progressFontWeight ?? merge.FILE.progress.font.weight,
1224
- progressFontFamily: progressFontFamily ?? merge.FILE.progress.font.family,
1225
- listItemErrorSize: listItemErrorSize ?? merge.FILE.listItem.error.font.size,
1226
- listItemErrorStyle: listItemErrorStyle ?? merge.FILE.listItem.error.style,
1227
- listItemErrorWeight: listItemErrorWeight ?? merge.FILE.listItem.error.weight,
1228
- listItemErrorFamily: listItemErrorFamily ?? merge.FILE.listItem.error.family,
1229
- listItemErrorColor: listItemErrorColor ?? merge.FILE.listItem.error.color,
1230
- progressTrackColor: progressTrackColor ?? merge.FILE.progress.colors.track,
1231
- progressFailedColor: progressFailedColor ?? merge.FILE.progress.colors.failed,
1232
- progressSuccessColor: progressSuccessColor ?? merge.FILE.progress.colors.success,
1233
- progressLoadingColor: progressLoadingColor ?? merge.FILE.progress.colors.loading,
1234
- listItemBackgroundColor: listItemBackgroundColor ?? merge.FILE.listItem.colors.background,
1235
- listItemBackgroundErrorColor: listItemBackgroundErrorColor ?? merge.FILE.listItem.colors.backgroundError
2001
+ progressColor: progressColor ?? configStyles.FILE.progress.color,
2002
+ listItemHeight: listItemHeight ?? configStyles.FILE.listItem.height,
2003
+ listItemPadding: listItemPadding ?? configStyles.FILE.listItem.padding,
2004
+ progressFontSize: progressFontSize ?? configStyles.FILE.progress.font.size,
2005
+ progressFontStyle: progressFontStyle ?? configStyles.FILE.progress.font.style,
2006
+ progressFontWeight: progressFontWeight ?? configStyles.FILE.progress.font.weight,
2007
+ progressFontFamily: progressFontFamily ?? configStyles.FILE.progress.font.family,
2008
+ listItemErrorSize: listItemErrorSize ?? configStyles.FILE.listItem.error.font.size,
2009
+ listItemErrorStyle: listItemErrorStyle ?? configStyles.FILE.listItem.error.style,
2010
+ listItemErrorWeight: listItemErrorWeight ?? configStyles.FILE.listItem.error.weight,
2011
+ listItemErrorFamily: listItemErrorFamily ?? configStyles.FILE.listItem.error.family,
2012
+ listItemErrorColor: listItemErrorColor ?? configStyles.FILE.listItem.error.color,
2013
+ progressTrackColor: progressTrackColor ?? configStyles.FILE.progress.colors.track,
2014
+ progressFailedColor: progressFailedColor ?? configStyles.FILE.progress.colors.failed,
2015
+ progressSuccessColor: progressSuccessColor ?? configStyles.FILE.progress.colors.success,
2016
+ progressLoadingColor: progressLoadingColor ?? configStyles.FILE.progress.colors.loading,
2017
+ listItemBackgroundColor: listItemBackgroundColor ?? configStyles.FILE.listItem.colors.background,
2018
+ listItemBackgroundErrorColor: listItemBackgroundErrorColor ?? configStyles.FILE.listItem.colors.backgroundError
1236
2019
  });
1237
2020
  }));
1238
2021
  });
@@ -1421,9 +2204,9 @@ const Checkbox$1 = ({
1421
2204
  },
1422
2205
  onClick: !innerDisabled && handleChecked ? handleClick : _ => _
1423
2206
  }, innerChecked && (ignoreDisabledForChecked ?? !innerDisabled) ? checkedIcon ? checkedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxChecked, {
1424
- fillColor: checkedColor ?? merge.CHECKBOX.checkedColor
2207
+ fillColor: checkedColor
1425
2208
  }) : unCheckedIcon ? unCheckedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxUnchecked, {
1426
- fillColor: unCheckedColor ?? merge.CHECKBOX.unCheckedColor
2209
+ fillColor: unCheckedColor
1427
2210
  }), label && /*#__PURE__*/React__default["default"].createElement("span", {
1428
2211
  style: {
1429
2212
  marginLeft: labelMarginLeft
@@ -1448,10 +2231,22 @@ const SingleCheckbox = ({
1448
2231
  ignoreDisabledForChecked
1449
2232
  }) => {
1450
2233
  const [innerData, setInnerData] = React.useState(null);
2234
+ const [configStyles, setConfigStyles] = React.useState({});
1451
2235
  React.useEffect(() => {
1452
2236
  setInnerData(data);
1453
2237
  }, [data]);
1454
- return /*#__PURE__*/React__default["default"].createElement(Checkbox$1, {
2238
+ React.useEffect(() => {
2239
+ configStylesPromise.then(data => {
2240
+ setConfigStyles(() => {
2241
+ return {
2242
+ ...data
2243
+ };
2244
+ });
2245
+ }, error => {
2246
+ console.error(error);
2247
+ });
2248
+ }, []);
2249
+ return configStyles.CHECKBOX && /*#__PURE__*/React__default["default"].createElement(Checkbox$1, {
1455
2250
  index: index,
1456
2251
  label: label,
1457
2252
  styles: styles,
@@ -1460,12 +2255,12 @@ const SingleCheckbox = ({
1460
2255
  disabled: disabled,
1461
2256
  innerIndex: innerIndex,
1462
2257
  checkedIcon: checkedIcon,
1463
- checkedColor: checkedColor,
1464
2258
  unCheckedIcon: unCheckedIcon,
1465
2259
  handleChecked: handleChecked,
1466
- unCheckedColor: unCheckedColor,
1467
2260
  ignoreDisabledForChecked: ignoreDisabledForChecked,
1468
- labelMarginLeft: labelMarginLeft ?? merge.CHECKBOX.labelMarginLeft
2261
+ checkedColor: checkedColor ?? configStyles.CHECKBOX.colors.checked,
2262
+ unCheckedColor: unCheckedColor ?? configStyles.CHECKBOX.colors.unChecked,
2263
+ labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.label.marginLeft
1469
2264
  });
1470
2265
  };
1471
2266
  SingleCheckbox.propTypes = {
@@ -1949,7 +2744,9 @@ const Table = ({
1949
2744
  const [body, setBody] = React.useState([]);
1950
2745
  const [header, setHeader] = React.useState([]);
1951
2746
  const [disableArr, setDisableArr] = React.useState([]);
2747
+ const [classProps, setClassProps] = React.useState({});
1952
2748
  const [checkedArray, setCheckedArray] = React.useState([]);
2749
+ const [configStyles, setConfigStyles] = React.useState({});
1953
2750
  const handleCheckIfArrow = (bodyData, data) => {
1954
2751
  let removeItemIndex;
1955
2752
  let headerWithoutArrow = [];
@@ -2416,18 +3213,30 @@ const Table = ({
2416
3213
  setHeader(() => dataHeader);
2417
3214
  }
2418
3215
  }, [dataHeader, arrowColumn, arrowShow, disableArr]);
2419
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("table", {
3216
+ React.useEffect(() => {
3217
+ configStylesPromise.then(data => {
3218
+ setClassProps(() => classnames__default["default"](className ?? data.TABLE.className));
3219
+ setConfigStyles(() => {
3220
+ return {
3221
+ ...data
3222
+ };
3223
+ });
3224
+ }, error => {
3225
+ console.error(error);
3226
+ });
3227
+ }, []);
3228
+ return configStyles.TABLE && /*#__PURE__*/React__default["default"].createElement("table", {
2420
3229
  style: {
2421
3230
  width: '100%',
2422
- borderCollapse: tableRowItem ?? merge.TABLE.body.row.asItem ? 'separate' : 'collapse',
2423
- borderSpacing: `0 ${tBodyRowMarginTop ?? merge.TABLE.body.row.marginTop}`
3231
+ borderCollapse: tableRowItem ?? configStyles.TABLE.body.row.asItem ? 'separate' : 'collapse',
3232
+ borderSpacing: `0 ${tBodyRowMarginTop ?? configStyles.TABLE.body.row.marginTop}`
2424
3233
  },
2425
3234
  onClick: handleTableClick,
2426
- className: className ?? merge.TABLE.className
3235
+ className: classProps
2427
3236
  }, header && header.length > 0 && /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", {
2428
3237
  style: {
2429
- color: tHeadColor ?? merge.TABLE.head.color,
2430
- backgroundColor: tHeadBackgroundColor ?? merge.TABLE.head.colors.background,
3238
+ color: tHeadColor ?? configStyles.TABLE.head.color,
3239
+ backgroundColor: tHeadBackgroundColor ?? configStyles.TABLE.head.colors.background,
2431
3240
  borderColor: hideBorder ? 'transparent' : '#eeeeee'
2432
3241
  }
2433
3242
  }, header.map((item, index) => {
@@ -2438,29 +3247,29 @@ const Table = ({
2438
3247
  handleCheckedHeader: handleCheckedHeader,
2439
3248
  handleHeaderItemClick: handleHeaderItemClick,
2440
3249
  handleCheckArrowActionHeader: handleCheckArrowActionHeader,
2441
- tHeadFamily: tHeadFamily ?? merge.TABLE.head.font.family,
2442
- tHeadPadding: tHeadPadding ?? merge.TABLE.head.padding,
2443
- tHeadFontSize: tHeadFontSize ?? merge.TABLE.head.font.size,
2444
- tHeadFontStyle: tHeadFontStyle ?? merge.TABLE.head.font.style,
2445
- tHeadTextAlign: tHeadTextAlign ?? merge.TABLE.textAlign,
2446
- tHeadFontWeight: tHeadFontWeight ?? merge.TABLE.head.font.weight,
2447
- borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : merge.TABLE.head.radius : '0px',
2448
- borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : merge.TABLE.head.radius : '0px',
2449
- tableColumnMinWidth: tableColumnMinWidth ?? merge.TABLE.column.minWidth,
2450
- tableColumnMaxWidth: tableColumnMaxWidth ?? merge.TABLE.column.maxWidth
3250
+ tHeadFamily: tHeadFamily ?? configStyles.TABLE.head.font.family,
3251
+ tHeadPadding: tHeadPadding ?? configStyles.TABLE.head.padding,
3252
+ tHeadFontSize: tHeadFontSize ?? configStyles.TABLE.head.font.size,
3253
+ tHeadFontStyle: tHeadFontStyle ?? configStyles.TABLE.head.font.style,
3254
+ tHeadTextAlign: tHeadTextAlign ?? configStyles.TABLE.textAlign,
3255
+ tHeadFontWeight: tHeadFontWeight ?? configStyles.TABLE.head.font.weight,
3256
+ borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.head.radius : '0px',
3257
+ borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.head.radius : '0px',
3258
+ tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
3259
+ tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth
2451
3260
  });
2452
3261
  }))), body && body.length > 0 && /*#__PURE__*/React__default["default"].createElement("tbody", {
2453
3262
  style: {
2454
- boxShadow: tBodyBoxShadow ?? merge.TABLE.body.box.shadow
3263
+ boxShadow: tBodyBoxShadow ?? configStyles.TABLE.body.box.shadow
2455
3264
  }
2456
3265
  }, body.map((item, index) => {
2457
3266
  return /*#__PURE__*/React__default["default"].createElement("tr", {
2458
3267
  key: `${item}_${index}`,
2459
3268
  style: {
2460
- backgroundColor: tableRowBGColor ?? merge.TABLE.body.row.colors.background,
2461
- borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : merge.TABLE.body.row.border,
2462
- borderColor: hideBorder ? 'transparent' : merge.TABLE.body.row.borderColor,
2463
- boxShadow: (tableRowItem ? tableRowItem : merge.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : merge.TABLE.body.row.box.shadow : 'none'
3269
+ backgroundColor: tableRowBGColor ?? configStyles.TABLE.body.row.colors.background,
3270
+ borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.body.row.border,
3271
+ borderColor: hideBorder ? 'transparent' : configStyles.TABLE.body.row.borderColor,
3272
+ boxShadow: (tableRowItem ? tableRowItem : configStyles.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : configStyles.TABLE.body.row.box.shadow : 'none'
2464
3273
  }
2465
3274
  }, Object.values(item).map((innerItem, innerIndex) => {
2466
3275
  return /*#__PURE__*/React__default["default"].createElement(TD, {
@@ -2472,32 +3281,32 @@ const Table = ({
2472
3281
  id: item.id ? item.id : '',
2473
3282
  handleCheckDots: handleCheckDots,
2474
3283
  key: `${innerItem}_${index}_${innerIndex}`,
2475
- openListColor: openListColor ?? merge.TABLE.openList.color,
2476
- tableColumnMinWidth: tableColumnMinWidth ?? merge.TABLE.column.minWidth,
2477
- tableColumnMaxWidth: tableColumnMaxWidth ?? merge.TABLE.column.maxWidth,
2478
- openListFontSize: openListFontSize ?? merge.TABLE.openList.font.size,
2479
- openListFontStyle: openListFontStyle ?? merge.TABLE.openList.font.style,
2480
- openListFontWeight: openListFontWeight ?? merge.TABLE.openList.font.weight,
2481
- openListFontFamily: openListFontFamily ?? merge.TABLE.openList.font.family,
3284
+ openListColor: openListColor ?? configStyles.TABLE.openList.color,
3285
+ tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
3286
+ tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth,
3287
+ openListFontSize: openListFontSize ?? configStyles.TABLE.openList.font.size,
3288
+ openListFontStyle: openListFontStyle ?? configStyles.TABLE.openList.font.style,
3289
+ openListFontWeight: openListFontWeight ?? configStyles.TABLE.openList.font.weight,
3290
+ openListFontFamily: openListFontFamily ?? configStyles.TABLE.openList.font.family,
2482
3291
  handleCheckedBody: handleCheckedBody,
2483
3292
  handleBodyActionClick: handleBodyActionClick,
2484
3293
  handleMoreOptionsClick: handleMoreOptionsClick,
2485
3294
  handleContentListClick: handleContentListClick,
2486
- tBodyColor: tBodyColor ?? merge.TABLE.body.color,
2487
- rowItem: tableRowItem ?? merge.TABLE.body.row.isItem,
2488
- rowRadius: tableRowRadius ?? merge.TABLE.body.row.radius,
2489
- tBodyPadding: tBodyPadding ?? merge.TABLE.body.padding,
2490
- tBodyFontSize: tBodyFontSize ?? merge.TABLE.body.font.size,
2491
- tBodyTextAlign: tBodyTextAlign ?? merge.TABLE.textAlign,
2492
- tBodyFontFamily: tBodyFontFamily ?? merge.TABLE.body.font.family,
2493
- tBodyFontWeight: tBodyFontWeight ?? merge.TABLE.body.font.weight,
2494
- borderRight: innerIndex === Object.values(item).length - 1 ? 'none' : merge.TABLE.body.row.border,
2495
- borderRightColor: innerIndex === Object.values(item).length - 1 ? 'transparent' : merge.TABLE.body.row.borderColor,
3295
+ tBodyColor: tBodyColor ?? configStyles.TABLE.body.color,
3296
+ rowItem: tableRowItem ?? configStyles.TABLE.body.row.isItem,
3297
+ rowRadius: tableRowRadius ?? configStyles.TABLE.body.row.radius,
3298
+ tBodyPadding: tBodyPadding ?? configStyles.TABLE.body.padding,
3299
+ tBodyFontSize: tBodyFontSize ?? configStyles.TABLE.body.font.size,
3300
+ tBodyTextAlign: tBodyTextAlign ?? configStyles.TABLE.textAlign,
3301
+ tBodyFontFamily: tBodyFontFamily ?? configStyles.TABLE.body.font.family,
3302
+ tBodyFontWeight: tBodyFontWeight ?? configStyles.TABLE.body.font.weight,
3303
+ borderRight: innerIndex === Object.values(item).length - 1 ? 'none' : configStyles.TABLE.body.row.border,
3304
+ borderRightColor: innerIndex === Object.values(item).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor,
2496
3305
  handleCheckArrowAction: handleCheckArrowAction,
2497
3306
  handleOpenCloseRowSingleArrow: handleOpenCloseRowSingleArrow
2498
3307
  });
2499
3308
  }));
2500
- }))));
3309
+ })));
2501
3310
  };
2502
3311
  Table.propTypes = {
2503
3312
  getData: PropTypes__default["default"].func,
@@ -2692,7 +3501,8 @@ const Modal = ({
2692
3501
  const [select, setSelect] = React.useState(0);
2693
3502
  const [isHover, setIsHover] = React.useState(false);
2694
3503
  const [innerData, setInnerData] = React.useState([]);
2695
- const classProps = classnames__default["default"](className ?? merge.MODAL.className);
3504
+ const [classProps, setClassProps] = React.useState({});
3505
+ const [configStyles, setConfigStyles] = React.useState({});
2696
3506
  const handleCloseModal = () => {
2697
3507
  setShow(false);
2698
3508
  };
@@ -2756,15 +3566,25 @@ const Modal = ({
2756
3566
  }, [selected]);
2757
3567
  React.useEffect(() => {
2758
3568
  document.addEventListener('keydown', handleESC, false);
3569
+ configStylesPromise.then(data => {
3570
+ setClassProps(() => classnames__default["default"](className ?? data.MODAL.className));
3571
+ setConfigStyles(() => {
3572
+ return {
3573
+ ...data
3574
+ };
3575
+ });
3576
+ }, error => {
3577
+ console.error(error);
3578
+ });
2759
3579
  return () => {
2760
3580
  setSelect(0);
2761
3581
  setInnerData([]);
2762
3582
  document.removeEventListener('keydown', handleESC, false);
2763
3583
  };
2764
3584
  }, []);
2765
- return /*#__PURE__*/React__default["default"].createElement("div", {
3585
+ return configStyles.MODAL && /*#__PURE__*/React__default["default"].createElement("div", {
2766
3586
  className: classProps,
2767
- onClick: outsideClose || merge.MODAL.outsideClose ? handleCloseModal : _ => _,
3587
+ onClick: outsideClose || configStyles.MODAL.outsideClose ? handleCloseModal : _ => _,
2768
3588
  style: {
2769
3589
  top: '0px',
2770
3590
  left: '0px',
@@ -2772,7 +3592,7 @@ const Modal = ({
2772
3592
  width: '100%',
2773
3593
  height: '100vh',
2774
3594
  position: 'fixed',
2775
- backgroundColor: layerBackgroundColor ?? merge.MODAL.colors.backgroundLayer
3595
+ backgroundColor: layerBackgroundColor ?? configStyles.MODAL.colors.backgroundLayer
2776
3596
  }
2777
3597
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2778
3598
  style: {
@@ -2780,8 +3600,8 @@ const Modal = ({
2780
3600
  display: 'flex',
2781
3601
  width: '100%',
2782
3602
  height: '100vh',
2783
- alignItems: alignItems ?? merge.MODAL.alignItems,
2784
- justifyContent: justifyContent ?? merge.MODAL.justifyContent
3603
+ alignItems: alignItems ?? configStyles.MODAL.alignItems,
3604
+ justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
2785
3605
  }
2786
3606
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2787
3607
  className: `${styles$8['animation__modal']}`,
@@ -2790,16 +3610,16 @@ const Modal = ({
2790
3610
  position: 'relative',
2791
3611
  boxSizing: 'border-box',
2792
3612
  display: type === 'content' ? 'grid' : 'block',
2793
- width: width ?? merge.MODAL.width,
3613
+ width: width ?? configStyles.MODAL.width,
2794
3614
  overflow: type === 'content' ? 'auto' : 'hidden',
2795
- height: height ?? merge.MODAL.height,
3615
+ height: height ?? configStyles.MODAL.height,
2796
3616
  gridTemplateRows: type === 'content' ? 'auto 10fr' : '',
2797
- borderRadius: radius ?? merge.MODAL.radius,
2798
- maxWidth: mMaxWidth ?? merge.MODAL.maxWidth,
2799
- maxHeight: mMaxHeight ?? merge.MODAL.maxHeight,
2800
- minWidth: type === 'content' ? minWidth ?? merge.MODAL.minWidth : '',
2801
- backgroundColor: backgroundColor ?? merge.MODAL.colors.background,
2802
- minHeight: type === 'content' ? minHeight ?? merge.MODAL.minHeight : ''
3617
+ borderRadius: radius ?? configStyles.MODAL.radius,
3618
+ maxWidth: mMaxWidth ?? configStyles.MODAL.maxWidth,
3619
+ maxHeight: mMaxHeight ?? configStyles.MODAL.maxHeight,
3620
+ minWidth: type === 'content' ? minWidth ?? configStyles.MODAL.minWidth : '',
3621
+ backgroundColor: backgroundColor ?? configStyles.MODAL.colors.background,
3622
+ minHeight: type === 'content' ? minHeight ?? configStyles.MODAL.minHeight : ''
2803
3623
  }
2804
3624
  }, type === 'content' && /*#__PURE__*/React__default["default"].createElement("div", {
2805
3625
  style: {
@@ -2808,10 +3628,10 @@ const Modal = ({
2808
3628
  display: 'flex',
2809
3629
  alignItems: 'center',
2810
3630
  boxSizing: 'border-box',
2811
- padding: padding ?? merge.MODAL.padding,
2812
- height: headerHeight ?? merge.MODAL.header.height,
3631
+ padding: padding ?? configStyles.MODAL.padding,
3632
+ height: headerHeight ?? configStyles.MODAL.header.height,
2813
3633
  justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
2814
- backgroundColor: closeAreaBackgroundColor ?? merge.MODAL.closeAreaBackgroundColor
3634
+ backgroundColor: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
2815
3635
  }
2816
3636
  }, headerText && type === 'content' && /*#__PURE__*/React__default["default"].createElement("p", {
2817
3637
  style: {
@@ -2820,11 +3640,11 @@ const Modal = ({
2820
3640
  whiteSpace: 'nowrap',
2821
3641
  textOverflow: 'ellipsis',
2822
3642
  margin: '0px 16px 0px 0px',
2823
- color: headerColor ?? merge.MODAL.header.color,
2824
- fontSize: headerSize ?? merge.MODAL.header.font.size,
2825
- fontStyle: headerStyle ?? merge.MODAL.header.font.style,
2826
- fontFamily: headerFamily ?? merge.MODAL.header.font.family,
2827
- fontWeight: headerWeight ?? merge.MODAL.header.font.weight
3643
+ color: headerColor ?? configStyles.MODAL.header.color,
3644
+ fontSize: headerSize ?? configStyles.MODAL.header.font.size,
3645
+ fontStyle: headerStyle ?? configStyles.MODAL.header.font.style,
3646
+ fontFamily: headerFamily ?? configStyles.MODAL.header.font.family,
3647
+ fontWeight: headerWeight ?? configStyles.MODAL.header.font.weight
2828
3648
  }
2829
3649
  }, headerText), /*#__PURE__*/React__default["default"].createElement("div", {
2830
3650
  onClick: handleCloseModal,
@@ -2833,7 +3653,7 @@ const Modal = ({
2833
3653
  height: '14px',
2834
3654
  cursor: 'pointer'
2835
3655
  }
2836
- }, closeIcon ? closeIcon : merge.MODAL.icon.close ? merge.MODAL.icon.close : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default["default"].createElement("div", {
3656
+ }, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default["default"].createElement("div", {
2837
3657
  style: {
2838
3658
  display: 'flex',
2839
3659
  width: '100%',
@@ -2843,9 +3663,9 @@ const Modal = ({
2843
3663
  boxSizing: 'border-box',
2844
3664
  justifyContent: 'center',
2845
3665
  overflow: type === 'content' ? 'auto' : 'hidden',
2846
- borderWidth: borderWidth ?? merge.MODAL.border.width,
2847
- borderStyle: borderStyle ?? merge.MODAL.border.style,
2848
- borderColor: borderColor ?? merge.MODAL.border.color
3666
+ borderWidth: borderWidth ?? configStyles.MODAL.border.width,
3667
+ borderStyle: borderStyle ?? configStyles.MODAL.border.style,
3668
+ borderColor: borderColor ?? configStyles.MODAL.border.color
2849
3669
  },
2850
3670
  onMouseEnter: handleMouseEnter,
2851
3671
  onMouseLeave: handleMouseLeave
@@ -2857,8 +3677,8 @@ const Modal = ({
2857
3677
  width: '100%',
2858
3678
  borderTopLeftRadius: '6px',
2859
3679
  borderTopRightRadius: '6px',
2860
- height: grayDecorHeight ?? merge.MODAL.grayDecorHeight,
2861
- background: closeAreaBackgroundColor ?? merge.MODAL.closeAreaBackgroundColor
3680
+ height: grayDecorHeight ?? configStyles.MODAL.grayDecorHeight,
3681
+ background: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
2862
3682
  }
2863
3683
  }, /*#__PURE__*/React__default["default"].createElement("button", {
2864
3684
  onClick: handleCloseModal,
@@ -2875,9 +3695,9 @@ const Modal = ({
2875
3695
  cursor: 'pointer',
2876
3696
  backgroundColor: 'transparent'
2877
3697
  }
2878
- }, closeSlideIcon ? closeSlideIcon : merge.MODAL.icon.closeSlide ? merge.MODAL.icon.closeSlide : /*#__PURE__*/React__default["default"].createElement(SvgCloseSlide, null))), /*#__PURE__*/React__default["default"].createElement("div", {
3698
+ }, closeSlideIcon ? closeSlideIcon : configStyles.MODAL.icon.closeSlide ? configStyles.MODAL.icon.closeSlide : /*#__PURE__*/React__default["default"].createElement(SvgCloseSlide, null))), /*#__PURE__*/React__default["default"].createElement("div", {
2879
3699
  style: {
2880
- height: imageWrapHeight ?? merge.MODAL.image.wrapHeight
3700
+ height: imageWrapHeight ?? configStyles.MODAL.image.wrapHeight
2881
3701
  }
2882
3702
  }, innerData && innerData.length > 0 && innerData.map((item, index) => {
2883
3703
  if (select === index) {
@@ -2890,10 +3710,10 @@ const Modal = ({
2890
3710
  style: {
2891
3711
  display: 'block',
2892
3712
  objectFit: 'contain',
2893
- margin: imageMargin ?? merge.MODAL.image.margin,
2894
- borderRadius: radius ?? merge.MODAL.radius,
2895
- width: imageWidth ?? merge.MODAL.image.width,
2896
- height: imageHeight ?? merge.MODAL.image.height
3713
+ margin: imageMargin ?? configStyles.MODAL.image.margin,
3714
+ borderRadius: radius ?? configStyles.MODAL.radius,
3715
+ width: imageWidth ?? configStyles.MODAL.image.width,
3716
+ height: imageHeight ?? configStyles.MODAL.image.height
2897
3717
  },
2898
3718
  src: item.url
2899
3719
  }), isHover && showZoomIcon ? /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2914,7 +3734,7 @@ const Modal = ({
2914
3734
  justifyContent: 'center'
2915
3735
  },
2916
3736
  onClick: () => handleOpenInNewTab(item.url)
2917
- }, zoomIcon ? zoomIcon : merge.MODAL.icon.zoom ? merge.MODAL.icon.zoom : /*#__PURE__*/React__default["default"].createElement(SvgZoom, null)) : '');
3737
+ }, zoomIcon ? zoomIcon : configStyles.MODAL.icon.zoom ? configStyles.MODAL.icon.zoom : /*#__PURE__*/React__default["default"].createElement(SvgZoom, null)) : '');
2918
3738
  }
2919
3739
  }
2920
3740
  }), innerData && innerData.length > 1 && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("button", {
@@ -2931,7 +3751,7 @@ const Modal = ({
2931
3751
  top: 'calc(50% - 12px)',
2932
3752
  backgroundColor: 'transparent'
2933
3753
  }
2934
- }, prevIcon ? prevIcon : merge.MODAL.icon.prev ? merge.MODAL.icon.prev : /*#__PURE__*/React__default["default"].createElement(SvgPrev, null)), /*#__PURE__*/React__default["default"].createElement("button", {
3754
+ }, prevIcon ? prevIcon : configStyles.MODAL.icon.prev ? configStyles.MODAL.icon.prev : /*#__PURE__*/React__default["default"].createElement(SvgPrev, null)), /*#__PURE__*/React__default["default"].createElement("button", {
2935
3755
  onClick: () => handleGoTo('next'),
2936
3756
  style: {
2937
3757
  position: 'absolute',
@@ -2945,7 +3765,7 @@ const Modal = ({
2945
3765
  top: 'calc(50% - 12px)',
2946
3766
  backgroundColor: 'transparent'
2947
3767
  }
2948
- }, nextIcon ? nextIcon : merge.MODAL.icon.next ? merge.MODAL.icon.next : /*#__PURE__*/React__default["default"].createElement(SvgNext, null)))))))));
3768
+ }, nextIcon ? nextIcon : configStyles.MODAL.icon.next ? configStyles.MODAL.icon.next : /*#__PURE__*/React__default["default"].createElement(SvgNext, null)))))))));
2949
3769
  };
2950
3770
  Modal.propTypes = {
2951
3771
  data: PropTypes__default["default"].array,
@@ -3354,27 +4174,29 @@ const Input = ({
3354
4174
  }) => {
3355
4175
  const [show, setShow] = React.useState(false);
3356
4176
  const [isHover, setIsHover] = React.useState(false);
4177
+ const [classProps, setClassProps] = React.useState({});
4178
+ const [innerValue, setInnerValue] = React.useState('');
4179
+ const [configStyles, setConfigStyles] = React.useState({});
3357
4180
  const [innerErrorMessage, setInnerErrorMessage] = React.useState('');
3358
- const inpStyles = {
3359
- width: width ?? merge.INPUT.width,
4181
+ const inpStyles = configStyles.INPUT && {
4182
+ width: width ?? configStyles.INPUT.width,
3360
4183
  cursor: disabled ? 'not-allowed' : 'auto',
3361
- height: height ?? merge.INPUT.height,
3362
- padding: padding ?? merge.INPUT.padding,
3363
- fontSize: size ?? merge.INPUT.font.size,
3364
- fontStyle: style ?? merge.INPUT.font.style,
3365
- fontWeight: weight ?? merge.INPUT.font.weight,
3366
- fontFamily: family ?? merge.INPUT.font.family,
3367
- boxSizing: boxSizing ?? merge.INPUT.box.sizing,
3368
- color: innerErrorMessage && errorColor ? errorColor : color ? color : merge.INPUT.color,
3369
- backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : merge.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : merge.INPUT.colors.background
4184
+ height: height ?? configStyles.INPUT.height,
4185
+ padding: padding ?? configStyles.INPUT.padding,
4186
+ fontSize: size ?? configStyles.INPUT.font.size,
4187
+ fontStyle: style ?? configStyles.INPUT.font.style,
4188
+ fontWeight: weight ?? configStyles.INPUT.font.weight,
4189
+ fontFamily: family ?? configStyles.INPUT.font.family,
4190
+ boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
4191
+ color: innerErrorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color,
4192
+ backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
3370
4193
  };
3371
4194
  const uuid = v4();
3372
- const inpAttributes = {
4195
+ const inpAttributes = configStyles.INPUT && {
3373
4196
  placeholder: placeholder ?? '',
3374
4197
  iName: name ? name : `tui_${uuid}_tui`,
3375
- autoComplete: autoComplete ?? merge.INPUT.autoComplete
4198
+ autoComplete: autoComplete ?? configStyles.INPUT.autoComplete
3376
4199
  };
3377
- const classProps = classnames__default["default"](className ?? merge.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']);
3378
4200
  const errorShow = styled.keyframes`
3379
4201
  100% {
3380
4202
  bottom: '-20px';
@@ -3407,25 +4229,41 @@ const Input = ({
3407
4229
  !regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
3408
4230
  }
3409
4231
  }, [type, regexp, errorMessage, regexpErrorMessage]);
3410
- return /*#__PURE__*/React__default["default"].createElement("div", {
4232
+ React.useEffect(() => {
4233
+ const val = typeof value === 'number' ? value.toString() : value;
4234
+ setInnerValue(() => val);
4235
+ }, [value]);
4236
+ React.useEffect(() => {
4237
+ configStylesPromise.then(data => {
4238
+ setClassProps(() => classnames__default["default"](className ?? data.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']));
4239
+ setConfigStyles(() => {
4240
+ return {
4241
+ ...data
4242
+ };
4243
+ });
4244
+ }, error => {
4245
+ console.error(error);
4246
+ });
4247
+ }, []);
4248
+ return configStyles.INPUT && /*#__PURE__*/React__default["default"].createElement("div", {
3411
4249
  className: classProps
3412
4250
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
3413
4251
  style: {
3414
- color: labelColor ?? merge.INPUT.label.color,
3415
- fontSize: labelSize ?? merge.INPUT.label.font.size,
3416
- fontStyle: labelStyle ?? merge.INPUT.label.font.style,
3417
- display: labelDisplay ?? merge.INPUT.label.display,
3418
- fontWeight: labelWeight ?? merge.INPUT.label.font.weight,
3419
- lineHeight: labelLineHeight ?? merge.INPUT.label.lineHeight,
3420
- marginBottom: labelMarginBottom ?? merge.INPUT.label.marginBottom,
3421
- fontFamily: labelFontFamily ?? merge.INPUT.label.font.family
4252
+ color: labelColor ?? configStyles.INPUT.label.color,
4253
+ fontSize: labelSize ?? configStyles.INPUT.label.font.size,
4254
+ fontStyle: labelStyle ?? configStyles.INPUT.label.font.style,
4255
+ display: labelDisplay ?? configStyles.INPUT.label.display,
4256
+ fontWeight: labelWeight ?? configStyles.INPUT.label.font.weight,
4257
+ lineHeight: labelLineHeight ?? configStyles.INPUT.label.lineHeight,
4258
+ marginBottom: labelMarginBottom ?? configStyles.INPUT.label.marginBottom,
4259
+ fontFamily: labelFontFamily ?? configStyles.INPUT.label.font.family
3422
4260
  }
3423
4261
  }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
3424
4262
  className: `${styles$7['input-content']}`,
3425
4263
  style: {
3426
- width: width ?? merge.INPUT.width,
3427
- borderRadius: radius ?? merge.INPUT.radius,
3428
- 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
4264
+ width: width ?? configStyles.INPUT.width,
4265
+ borderRadius: radius ?? configStyles.INPUT.radius,
4266
+ 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
3429
4267
  },
3430
4268
  onMouseEnter: handleMouseEnter,
3431
4269
  onMouseLeave: handleMouseLeave
@@ -3436,33 +4274,33 @@ const Input = ({
3436
4274
  alignItems: 'center',
3437
4275
  justifyContent: 'center',
3438
4276
  cursor: type === 'password' ? 'pointer' : 'default',
3439
- height: height ?? merge.INPUT.height,
3440
- padding: padding ?? merge.INPUT.padding,
3441
- width: iconWidth ?? merge.INPUT.iconWidth,
3442
- boxSizing: boxSizing ?? merge.INPUT.box.sizing,
3443
- borderTopLeftRadius: radius ?? merge.INPUT.radius,
3444
- borderBottomLeftRadius: radius ?? merge.INPUT.radius,
3445
- backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : merge.INPUT.colors.background
4277
+ height: height ?? configStyles.INPUT.height,
4278
+ padding: padding ?? configStyles.INPUT.padding,
4279
+ width: iconWidth ?? configStyles.INPUT.iconWidth,
4280
+ boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
4281
+ borderTopLeftRadius: radius ?? configStyles.INPUT.radius,
4282
+ borderBottomLeftRadius: radius ?? configStyles.INPUT.radius,
4283
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
3446
4284
  }
3447
4285
  }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/React__default["default"].createElement(TelInput, {
3448
4286
  type: type,
3449
- value: value,
4287
+ value: innerValue,
3450
4288
  inputChange: change,
3451
4289
  isHover: isHover,
3452
4290
  disabled: disabled,
3453
4291
  inpStyles: inpStyles,
3454
4292
  inpAttributes: inpAttributes,
3455
- radius: radius ?? merge.INPUT.radius,
3456
- phoneDisplay: phoneDisplay ?? merge.INPUT.tel.display,
3457
- phoneAlignItems: phoneAlignItems ?? merge.INPUT.tel.alignItems,
3458
- phoneJustifyContent: phoneJustifyContent ?? merge.INPUT.tel.justifyContent,
3459
- telBorderRightWidth: telBorderRightWidth ?? merge.INPUT.tel.borderRight.width,
3460
- telBorderRightStyle: telBorderRightStyle ?? merge.INPUT.tel.borderRight.style,
3461
- telBorderRightColor: telBorderRightColor ?? merge.INPUT.tel.borderRight.color,
3462
- telBorderRightColorHover: telBorderRightColorHover ?? merge.INPUT.tel.borderRight.colors.hover
4293
+ radius: radius ?? configStyles.INPUT.radius,
4294
+ phoneDisplay: phoneDisplay ?? configStyles.INPUT.tel.display,
4295
+ phoneAlignItems: phoneAlignItems ?? configStyles.INPUT.tel.alignItems,
4296
+ phoneJustifyContent: phoneJustifyContent ?? configStyles.INPUT.tel.justifyContent,
4297
+ telBorderRightWidth: telBorderRightWidth ?? configStyles.INPUT.tel.borderRight.width,
4298
+ telBorderRightStyle: telBorderRightStyle ?? configStyles.INPUT.tel.borderRight.style,
4299
+ telBorderRightColor: telBorderRightColor ?? configStyles.INPUT.tel.borderRight.color,
4300
+ telBorderRightColorHover: telBorderRightColorHover ?? configStyles.INPUT.tel.borderRight.colors.hover
3463
4301
  }) : type === 'number' ? /*#__PURE__*/React__default["default"].createElement(NumberInput, {
3464
- value: value,
3465
4302
  dots: withoutDot,
4303
+ value: innerValue,
3466
4304
  float: floatToFix,
3467
4305
  disabled: disabled,
3468
4306
  inputChange: change,
@@ -3471,25 +4309,25 @@ const Input = ({
3471
4309
  inpAttributes: inpAttributes,
3472
4310
  minNumSize: minNumSize ? minNumSize : '',
3473
4311
  maxNumSize: maxNumSize ? maxNumSize : '',
3474
- radius: radius ?? merge.INPUT.radius
4312
+ radius: radius ?? configStyles.INPUT.radius
3475
4313
  }) : type === 'password' ? /*#__PURE__*/React__default["default"].createElement(PassInput, {
3476
4314
  show: show,
3477
4315
  type: type,
3478
- value: value,
4316
+ value: innerValue,
3479
4317
  disabled: disabled,
3480
4318
  inputChange: change,
3481
4319
  maxLength: maxLength,
3482
4320
  inpStyles: inpStyles,
3483
4321
  inpAttributes: inpAttributes,
3484
- radius: radius ?? merge.INPUT.radius
4322
+ radius: radius ?? configStyles.INPUT.radius
3485
4323
  }) : /*#__PURE__*/React__default["default"].createElement(TextInput, {
3486
- value: value,
4324
+ value: innerValue,
3487
4325
  disabled: disabled,
3488
4326
  inputChange: change,
3489
4327
  inpStyles: inpStyles,
3490
4328
  maxLength: maxLength,
3491
4329
  inpAttributes: inpAttributes,
3492
- radius: radius ?? merge.INPUT.radius
4330
+ radius: radius ?? configStyles.INPUT.radius
3493
4331
  }), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
3494
4332
  onClick: type === 'password' ? handleShowPass : _ => _,
3495
4333
  style: {
@@ -3497,32 +4335,32 @@ const Input = ({
3497
4335
  alignItems: 'center',
3498
4336
  justifyContent: 'center',
3499
4337
  cursor: type === 'password' ? 'pointer' : 'default',
3500
- height: height ?? merge.INPUT.height,
3501
- padding: padding ?? merge.INPUT.padding,
3502
- width: iconWidth ?? merge.INPUT.iconWidth,
3503
- boxSizing: boxSizing ?? merge.INPUT.box.sizing,
3504
- borderTopRightRadius: radius ?? merge.INPUT.radius,
3505
- borderBottomRightRadius: radius ?? merge.INPUT.radius,
3506
- backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : merge.INPUT.colors.background
4338
+ height: height ?? configStyles.INPUT.height,
4339
+ padding: padding ?? configStyles.INPUT.padding,
4340
+ width: iconWidth ?? configStyles.INPUT.iconWidth,
4341
+ boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
4342
+ borderTopRightRadius: radius ?? configStyles.INPUT.radius,
4343
+ borderBottomRightRadius: radius ?? configStyles.INPUT.radius,
4344
+ backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
3507
4345
  }
3508
4346
  }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', innerErrorMessage ? /*#__PURE__*/React__default["default"].createElement(P, {
3509
4347
  animation: animation,
3510
4348
  style: {
3511
4349
  margin: '0px',
3512
4350
  position: 'absolute',
3513
- width: width ?? merge.INPUT.width,
3514
- left: errorLeft ?? merge.INPUT.error.left,
3515
- color: errorColor ?? merge.INPUT.error.color,
3516
- fontSize: errorSize ?? merge.INPUT.error.font.size,
3517
- fontStyle: errorStyle ?? merge.INPUT.error.font.style,
3518
- fontFamily: errorFamily ?? merge.INPUT.error.font.family,
3519
- fontWeight: errorWeight ?? merge.INPUT.error.font.weight,
3520
- zIndex: errorZindex ?? merge.INPUT.error.zIndex,
3521
- lineHeight: errorLineHeight ?? merge.INPUT.error.lineHeight,
3522
- top: errorMarginTop ? `calc(100% + ${errorMarginTop})` : `calc(100% + ${merge.INPUT.error.marginTop})`,
4351
+ width: width ?? configStyles.INPUT.width,
4352
+ left: errorLeft ?? configStyles.INPUT.error.left,
4353
+ color: errorColor ?? configStyles.INPUT.error.color,
4354
+ fontSize: errorSize ?? configStyles.INPUT.error.font.size,
4355
+ fontStyle: errorStyle ?? configStyles.INPUT.error.font.style,
4356
+ fontFamily: errorFamily ?? configStyles.INPUT.error.font.family,
4357
+ fontWeight: errorWeight ?? configStyles.INPUT.error.font.weight,
4358
+ zIndex: errorZindex ?? configStyles.INPUT.error.zIndex,
4359
+ lineHeight: errorLineHeight ?? configStyles.INPUT.error.lineHeight,
4360
+ top: errorMarginTop ? `calc(100% + ${errorMarginTop})` : `calc(100% + ${configStyles.INPUT.error.marginTop})`,
3523
4361
  transform: 'scale3d(1,1,1)'
3524
4362
  },
3525
- className: errorClassName ?? merge.INPUT.error.className
4363
+ className: errorClassName ?? configStyles.INPUT.error.className
3526
4364
  }, innerErrorMessage) : '');
3527
4365
  };
3528
4366
  Input.propTypes = {
@@ -3588,7 +4426,7 @@ Input.propTypes = {
3588
4426
  leftIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
3589
4427
  rightIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
3590
4428
  type: PropTypes__default["default"].oneOf(Object.values(InputTypes)),
3591
- value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].object])
4429
+ value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number, PropTypes__default["default"].object])
3592
4430
  };
3593
4431
 
3594
4432
  const RadioDirectionMode = {
@@ -3617,8 +4455,9 @@ const Radio = ({
3617
4455
  radioItemMarginBottom,
3618
4456
  diraction = 'vertical'
3619
4457
  }) => {
3620
- const classProps = classnames__default["default"](className ?? merge.RADIO.className);
3621
4458
  const [innerData, setInnerData] = React.useState([]);
4459
+ const [classProps, setClassProps] = React.useState({});
4460
+ const [configStyles, setConfigStyles] = React.useState({});
3622
4461
  const [radioInnerSize, setRadioInnerSize] = React.useState('');
3623
4462
  const [radioInnerFormat, setRadioInnerFormat] = React.useState('');
3624
4463
  const [innerSelectedData, setInnerSelectedData] = React.useState({});
@@ -3629,11 +4468,11 @@ const Radio = ({
3629
4468
  });
3630
4469
  const handleMouseEnter = (id, elemID) => {
3631
4470
  const elem = document.querySelector(`#${elemID}`);
3632
- elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : merge.RADIO.border.activeColor : borderColor ? borderColor : merge.RADIO.border.color;
4471
+ elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
3633
4472
  };
3634
4473
  const handleMouseLeave = (id, elemID) => {
3635
4474
  const elem = document.querySelector(`#${elemID}`);
3636
- elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : merge.RADIO.border.activeColor : 'transparent';
4475
+ elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : 'transparent';
3637
4476
  };
3638
4477
  const handleChecked = selItem => {
3639
4478
  setInnerSelectedData(selItem);
@@ -3649,7 +4488,7 @@ const Radio = ({
3649
4488
  React.useEffect(() => {
3650
4489
  let radioSize = '';
3651
4490
  let radioSizeFormat = '';
3652
- const checkSize = size || merge.RADIO.size;
4491
+ const checkSize = configStyles.RADIO && (size || configStyles.RADIO.size);
3653
4492
  if (checkSize && typeof checkSize === 'string') {
3654
4493
  if (checkSize.length > 0) {
3655
4494
  checkSize.split('').map(item => {
@@ -3666,7 +4505,7 @@ const Radio = ({
3666
4505
  }
3667
4506
  setRadioInnerFormat(radioSizeFormat);
3668
4507
  setRadioInnerSize(`${parseInt(radioSize) / 2}`);
3669
- }, [size, merge.RADIO.size]);
4508
+ }, [size, configStyles.RADIO]);
3670
4509
  React.useEffect(() => {
3671
4510
  if (typeof selected === 'object' && selected !== null && !Array.isArray(selected)) {
3672
4511
  setInnerSelectedData(selected);
@@ -3681,7 +4520,19 @@ const Radio = ({
3681
4520
  });
3682
4521
  }
3683
4522
  }, [keyNames]);
3684
- return /*#__PURE__*/React__default["default"].createElement("div", {
4523
+ React.useEffect(() => {
4524
+ configStylesPromise.then(data => {
4525
+ setClassProps(() => classnames__default["default"](className ?? data.RADIO.className));
4526
+ setConfigStyles(() => {
4527
+ return {
4528
+ ...data
4529
+ };
4530
+ });
4531
+ }, error => {
4532
+ console.error(error);
4533
+ });
4534
+ }, []);
4535
+ return configStyles.RADIO && /*#__PURE__*/React__default["default"].createElement("div", {
3685
4536
  className: classProps,
3686
4537
  style: {
3687
4538
  display: 'flex',
@@ -3696,8 +4547,8 @@ const Radio = ({
3696
4547
  cursor: item[innerKeyNames.disabled] ? 'not-allowed' : 'pointer',
3697
4548
  width: 'fit-content',
3698
4549
  alignItems: 'center',
3699
- marginRight: diraction === 'horizontal' ? radioItemMarginRight ? radioItemMarginRight : merge.RADIO.item.marginRight : '0px',
3700
- marginBottom: diraction === 'vertical' ? radioItemMarginBottom ? radioItemMarginBottom : merge.RADIO.item.marginBottom : '0px'
4550
+ marginRight: diraction === 'horizontal' ? radioItemMarginRight ? radioItemMarginRight : configStyles.RADIO.item.marginRight : '0px',
4551
+ marginBottom: diraction === 'vertical' ? radioItemMarginBottom ? radioItemMarginBottom : configStyles.RADIO.item.marginBottom : '0px'
3701
4552
  },
3702
4553
  onClick: item[innerKeyNames.disabled] ? _ => _ : () => handleChecked(item),
3703
4554
  onMouseEnter: () => handleMouseEnter(item[innerKeyNames.id], elemId),
@@ -3708,11 +4559,11 @@ const Radio = ({
3708
4559
  alignItems: 'center',
3709
4560
  borderRadius: '100%',
3710
4561
  justifyContent: 'center',
3711
- width: size ? size : merge.RADIO.size,
3712
- height: size ? size : merge.RADIO.size,
3713
- marginRight: item[innerKeyNames.label] ? radioMarginRight ? radioMarginRight : merge.RADIO.marginRight : '0px',
3714
- border: `${borderSize ?? merge.RADIO.border.width} ${borderStyle ? borderStyle : merge.RADIO.border.style}`,
3715
- borderColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : merge.RADIO.border.activeColor : borderColor ? borderColor : merge.RADIO.border.color
4562
+ width: size ? size : configStyles.RADIO.size,
4563
+ height: size ? size : configStyles.RADIO.size,
4564
+ marginRight: item[innerKeyNames.label] ? radioMarginRight ? radioMarginRight : configStyles.RADIO.marginRight : '0px',
4565
+ border: `${borderSize ?? configStyles.RADIO.border.width} ${borderStyle ? borderStyle : configStyles.RADIO.border.style}`,
4566
+ borderColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color
3716
4567
  }
3717
4568
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3718
4569
  id: elemId,
@@ -3720,16 +4571,16 @@ const Radio = ({
3720
4571
  borderRadius: '100%',
3721
4572
  width: radioInnerSize + radioInnerFormat,
3722
4573
  height: radioInnerSize + radioInnerFormat,
3723
- backgroundColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : merge.RADIO.border.activeColor : 'transparent'
4574
+ backgroundColor: item[innerKeyNames.id] === innerSelectedData.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : 'transparent'
3724
4575
  }
3725
4576
  })), item[innerKeyNames.label] ? /*#__PURE__*/React__default["default"].createElement("span", {
3726
4577
  style: {
3727
- color: labelColor ?? merge.RADIO.label.color,
3728
- fontSize: labelFontSize ?? merge.RADIO.label.font.size,
3729
- fontStyle: labelFontStyle ?? merge.RADIO.label.font.style,
3730
- fontFamily: labelFontFamily ?? merge.RADIO.label.font.family,
3731
- fontWeight: labelFontWeight ?? merge.RADIO.label.font.weight,
3732
- lineHeight: labelLineHeight ?? merge.RADIO.label.lineHeight
4578
+ color: labelColor ?? configStyles.RADIO.label.color,
4579
+ fontSize: labelFontSize ?? configStyles.RADIO.label.font.size,
4580
+ fontStyle: labelFontStyle ?? configStyles.RADIO.label.font.style,
4581
+ fontFamily: labelFontFamily ?? configStyles.RADIO.label.font.family,
4582
+ fontWeight: labelFontWeight ?? configStyles.RADIO.label.font.weight,
4583
+ lineHeight: labelLineHeight ?? configStyles.RADIO.label.lineHeight
3733
4584
  },
3734
4585
  onMouseEnter: () => handleMouseEnter(item[innerKeyNames.id], elemId),
3735
4586
  onMouseLeave: () => handleMouseLeave(item[innerKeyNames.id], elemId)
@@ -3849,11 +4700,12 @@ const Select = ({
3849
4700
  boxShadowHover
3850
4701
  }) => {
3851
4702
  const ref = React.useRef();
3852
- const classProps = classnames__default["default"](className ? className : merge.SELECT.className);
3853
4703
  const [opened, setOpened] = React.useState(false);
3854
4704
  const [isHover, setIsHover] = React.useState(false);
4705
+ const [classProps, setClassProps] = React.useState({});
3855
4706
  const [newSelected, setNewSelected] = React.useState([]);
3856
4707
  const [existOptions, setExistOptions] = React.useState([]);
4708
+ const [configStyles, setConfigStyles] = React.useState({});
3857
4709
  const handleOpenClose = () => {
3858
4710
  setOpened(!opened);
3859
4711
  };
@@ -3902,12 +4754,12 @@ const Select = ({
3902
4754
  setIsHover(false);
3903
4755
  };
3904
4756
  const handleMouseEnterOption = e => {
3905
- e.target.style.color = optionItemColorHover ? optionItemColorHover : merge.SELECT.options.item.colors.hover;
3906
- e.target.style.backgroundColor = optionItemBackgroudColorHover ? optionItemBackgroudColorHover : merge.SELECT.options.item.colors.backgroudHover;
4757
+ e.target.style.color = optionItemColorHover ? optionItemColorHover : configStyles.SELECT.options.item.colors.hover;
4758
+ e.target.style.backgroundColor = optionItemBackgroudColorHover ? optionItemBackgroudColorHover : configStyles.SELECT.options.item.colors.backgroudHover;
3907
4759
  };
3908
4760
  const handleMouseLeaveOption = e => {
3909
- e.target.style.color = optionItemColor ? optionItemColor : merge.SELECT.options.item.color;
3910
- e.target.style.backgroundColor = optionItemBackgroudColor ? optionItemBackgroudColor : merge.SELECT.options.item.colors.backgroud;
4761
+ e.target.style.color = optionItemColor ? optionItemColor : configStyles.SELECT.options.item.color;
4762
+ e.target.style.backgroundColor = optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.options.item.colors.backgroud;
3911
4763
  };
3912
4764
  const isObjectEmpty = obj => {
3913
4765
  for (var key in obj) {
@@ -3955,7 +4807,19 @@ const Select = ({
3955
4807
  setExistOptions(modifiedOptions);
3956
4808
  }
3957
4809
  }, [options, multiple, selected, selected?.length]);
3958
- return /*#__PURE__*/React__default["default"].createElement("div", {
4810
+ React.useEffect(() => {
4811
+ configStylesPromise.then(data => {
4812
+ setClassProps(() => classnames__default["default"](className ?? data.SELECT.className));
4813
+ setConfigStyles(() => {
4814
+ return {
4815
+ ...data
4816
+ };
4817
+ });
4818
+ }, error => {
4819
+ console.error(error);
4820
+ });
4821
+ }, []);
4822
+ return configStyles.SELECT && /*#__PURE__*/React__default["default"].createElement("div", {
3959
4823
  className: classProps,
3960
4824
  style: {
3961
4825
  position: 'relative',
@@ -3963,15 +4827,15 @@ const Select = ({
3963
4827
  }
3964
4828
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
3965
4829
  style: {
3966
- color: labelColor ?? merge.SELECT.label.color,
3967
- fontWeight: labelWeight ?? merge.SELECT.label.font.weight,
3968
- display: labelDisplay ?? merge.SELECT.label.display,
3969
- fontSize: labelFontSize ?? merge.SELECT.label.font.size,
3970
- fontStyle: labelFontStyle ?? merge.SELECT.label.font.style,
3971
- fontFamily: labelFontFamily ?? merge.SELECT.label.font.family,
3972
- lineHeight: labelLineHeight ?? merge.SELECT.label.lineHeight,
3973
- marginBottom: labelMarginBottom ?? merge.SELECT.label.marginBottom,
3974
- textTransform: labelTextTransform ?? merge.SELECT.label.textTransform
4830
+ color: labelColor ?? configStyles.SELECT.label.color,
4831
+ fontWeight: labelWeight ?? configStyles.SELECT.label.font.weight,
4832
+ display: labelDisplay ?? configStyles.SELECT.label.display,
4833
+ fontSize: labelFontSize ?? configStyles.SELECT.label.font.size,
4834
+ fontStyle: labelFontStyle ?? configStyles.SELECT.label.font.style,
4835
+ fontFamily: labelFontFamily ?? configStyles.SELECT.label.font.family,
4836
+ lineHeight: labelLineHeight ?? configStyles.SELECT.label.lineHeight,
4837
+ marginBottom: labelMarginBottom ?? configStyles.SELECT.label.marginBottom,
4838
+ textTransform: labelTextTransform ?? configStyles.SELECT.label.textTransform
3975
4839
  }
3976
4840
  }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
3977
4841
  ref: ref
@@ -3979,19 +4843,19 @@ const Select = ({
3979
4843
  className: styles$6['select-content']
3980
4844
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3981
4845
  style: {
3982
- cursor: disabled ? 'not-allowed' : cursor ? cursor : merge.SELECT.selected.cursor,
3983
- minHeight: selectedMinHeight ?? merge.SELECT.selected.minHeight,
3984
- padding: selectedPadding ?? merge.SELECT.selected.padding,
3985
- borderRadius: selectedRadius ?? merge.SELECT.selected.radius,
3986
- fontSize: selectedFontSize ?? merge.SELECT.selected.font.size,
3987
- fontStyle: selectedFontStyle ?? merge.SELECT.selected.font.style,
3988
- fontFamily: selectedFontFamily ?? merge.SELECT.selected.font.family,
3989
- boxSizing: selectedBoxSizing ?? merge.SELECT.selected.box.sizing,
3990
- fontWeight: selectedFontWeight ?? merge.SELECT.selected.font.weight,
3991
- lineHeight: selectedLineHeight ?? merge.SELECT.selected.lineHeight,
3992
- transition: selectedTransition ?? merge.SELECT.selected.transition,
3993
- backgroundColor: disabled ? selectedDisableBackgroundColor ? selectedDisableBackgroundColor : merge.SELECT.selected.colors.backgroundDisable : selectedBackgroundColor ? selectedBackgroundColor : merge.SELECT.selected.colors.background,
3994
- 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
4846
+ cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
4847
+ minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
4848
+ padding: selectedPadding ?? configStyles.SELECT.selected.padding,
4849
+ borderRadius: selectedRadius ?? configStyles.SELECT.selected.radius,
4850
+ fontSize: selectedFontSize ?? configStyles.SELECT.selected.font.size,
4851
+ fontStyle: selectedFontStyle ?? configStyles.SELECT.selected.font.style,
4852
+ fontFamily: selectedFontFamily ?? configStyles.SELECT.selected.font.family,
4853
+ boxSizing: selectedBoxSizing ?? configStyles.SELECT.selected.box.sizing,
4854
+ fontWeight: selectedFontWeight ?? configStyles.SELECT.selected.font.weight,
4855
+ lineHeight: selectedLineHeight ?? configStyles.SELECT.selected.lineHeight,
4856
+ transition: selectedTransition ?? configStyles.SELECT.selected.transition,
4857
+ backgroundColor: disabled ? selectedDisableBackgroundColor ? selectedDisableBackgroundColor : configStyles.SELECT.selected.colors.backgroundDisable : selectedBackgroundColor ? selectedBackgroundColor : configStyles.SELECT.selected.colors.background,
4858
+ 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
3995
4859
  },
3996
4860
  onClick: disabled ? _ => _ : () => handleOpenClose(),
3997
4861
  onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
@@ -4003,7 +4867,7 @@ const Select = ({
4003
4867
  whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
4004
4868
  overflow: 'hidden',
4005
4869
  textOverflow: 'ellipsis',
4006
- color: errorMessage ? errorColor ? errorColor : merge.SELECT.error.color : isHover ? selectedHoverColor ? selectedHoverColor : merge.SELECT.selected.colors.hover : selectedColor ? selectedColor : merge.SELECT.selected.color
4870
+ color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.error.color : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selected.colors.hover : selectedColor ? selectedColor : configStyles.SELECT.selected.color
4007
4871
  }
4008
4872
  }, !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] : newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
4009
4873
  if (newSelected[index][keyNames.name]) {
@@ -4015,23 +4879,23 @@ const Select = ({
4015
4879
  }
4016
4880
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
4017
4881
  className: `${styles$6['select-content-top-icon']}`
4018
- }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default["default"].createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : merge.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
4882
+ }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default["default"].createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : configStyles.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
4019
4883
  className: `${styles$6['close-icon']}`,
4020
4884
  onClick: disabled ? _ => _ : handleClearSelect,
4021
4885
  style: {
4022
4886
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
4023
4887
  }
4024
- }, closeIcon ? closeIcon : merge.SELECT.closeIcon ? merge.SELECT.closeIcon : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
4888
+ }, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
4025
4889
  style: {
4026
4890
  transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
4027
4891
  },
4028
4892
  className: `${styles$6['arrow-icon']}`
4029
- }, arrowIcon ? arrowIcon : merge.SELECT.arrowIcon ? merge.SELECT.arrowIcon : /*#__PURE__*/React__default["default"].createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
4893
+ }, arrowIcon ? arrowIcon : configStyles.SELECT.arrowIcon ? configStyles.SELECT.arrowIcon : /*#__PURE__*/React__default["default"].createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
4030
4894
  style: {
4031
- boxShadow: optionsBoxShadow ?? merge.SELECT.options.box.shadow,
4032
- borderRadius: optionsBorderRadius ?? merge.SELECT.options.radius,
4033
- backgroundColor: optionsBackgroundColor ?? merge.SELECT.options.colors.background,
4034
- 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'
4895
+ boxShadow: optionsBoxShadow ?? configStyles.SELECT.options.box.shadow,
4896
+ borderRadius: optionsBorderRadius ?? configStyles.SELECT.options.radius,
4897
+ backgroundColor: optionsBackgroundColor ?? configStyles.SELECT.options.colors.background,
4898
+ 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'
4035
4899
  },
4036
4900
  className: `${styles$6['select-content-bottom']}`
4037
4901
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -4044,19 +4908,19 @@ const Select = ({
4044
4908
  onClick: disabled ? _ => _ : () => handleSelectItem(option),
4045
4909
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
4046
4910
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
4047
- className: `${styles$6['select-content-bottom-row']} ${dots || merge.SELECT.dots ? styles$6['ellipsis'] : ''}`,
4911
+ className: `${styles$6['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$6['ellipsis'] : ''}`,
4048
4912
  style: {
4049
- overflowWrap: !dots && !merge.SELECT.dots ? 'anywhere' : 'break-word',
4050
- color: optionItemColor ?? merge.SELECT.options.item.color,
4051
- cursor: optionItemCursor ?? merge.SELECT.options.item.cursor,
4052
- padding: optionItemPadding ?? merge.SELECT.options.item.padding,
4053
- fontSize: optionItemFontSize ?? merge.SELECT.options.item.font.size,
4054
- boxSizing: optionItemBoxSizing ?? merge.SELECT.options.item.box.sizing,
4055
- minHeight: optionItemMinHeight ?? merge.SELECT.options.item.minHeight,
4056
- fontWeight: optionItemFontWeight ?? merge.SELECT.options.item.font.weight,
4057
- lineHeight: dots || merge.SELECT.dots ? '46px' : optionItemLineHeight ? optionItemLineHeight : merge.SELECT.options.item.lineHeight,
4058
- marginBottom: optionItemMarginBottom ?? merge.SELECT.options.item.marginBottom,
4059
- backgroundColor: optionItemBackgroudColor ?? merge.SELECT.options.item.colors.backgroud
4913
+ overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
4914
+ color: optionItemColor ?? configStyles.SELECT.options.item.color,
4915
+ cursor: optionItemCursor ?? configStyles.SELECT.options.item.cursor,
4916
+ padding: optionItemPadding ?? configStyles.SELECT.options.item.padding,
4917
+ fontSize: optionItemFontSize ?? configStyles.SELECT.options.item.font.size,
4918
+ boxSizing: optionItemBoxSizing ?? configStyles.SELECT.options.item.box.sizing,
4919
+ minHeight: optionItemMinHeight ?? configStyles.SELECT.options.item.minHeight,
4920
+ fontWeight: optionItemFontWeight ?? configStyles.SELECT.options.item.font.weight,
4921
+ lineHeight: dots || configStyles.SELECT.dots ? '46px' : optionItemLineHeight ? optionItemLineHeight : configStyles.SELECT.options.item.lineHeight,
4922
+ marginBottom: optionItemMarginBottom ?? configStyles.SELECT.options.item.marginBottom,
4923
+ backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud
4060
4924
  }
4061
4925
  }, multiple && multipleCheckbox ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
4062
4926
  checked: option.checked
@@ -4064,13 +4928,13 @@ const Select = ({
4064
4928
  }))) : null)), errorMessage ? /*#__PURE__*/React__default["default"].createElement("span", {
4065
4929
  style: {
4066
4930
  position: 'absolute',
4067
- color: errorColor ?? merge.SELECT.error.color,
4068
- fontSize: errorSize ?? merge.SELECT.error.font.size,
4069
- fontStyle: errorStyle ?? merge.SELECT.error.font.style,
4070
- fontFamily: errorFamily ?? merge.SELECT.error.font.family,
4071
- fontWeight: errorWeight ?? merge.SELECT.error.font.weight,
4072
- zIndex: errorZindex ?? merge.SELECT.error.zIndex,
4073
- top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${merge.SELECT.error.marginTop})`
4931
+ color: errorColor ?? configStyles.SELECT.error.color,
4932
+ fontSize: errorSize ?? configStyles.SELECT.error.font.size,
4933
+ fontStyle: errorStyle ?? configStyles.SELECT.error.font.style,
4934
+ fontFamily: errorFamily ?? configStyles.SELECT.error.font.family,
4935
+ fontWeight: errorWeight ?? configStyles.SELECT.error.font.weight,
4936
+ zIndex: errorZindex ?? configStyles.SELECT.error.zIndex,
4937
+ top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${configStyles.SELECT.error.marginTop})`
4074
4938
  }
4075
4939
  }, errorMessage) : '');
4076
4940
  };
@@ -4442,11 +5306,10 @@ const createToast = ({
4442
5306
  };
4443
5307
  const toast = {
4444
5308
  success: (title, props) => {
5309
+ // const { icon, timer, position, iconClose, description } = props || {}
4445
5310
  const {
4446
- icon,
4447
5311
  timer,
4448
5312
  position,
4449
- iconClose,
4450
5313
  description
4451
5314
  } = props || {};
4452
5315
  createToast({
@@ -4454,17 +5317,16 @@ const toast = {
4454
5317
  type: 'success',
4455
5318
  timer: timer ?? 5000,
4456
5319
  position: position ?? 'top-right',
4457
- description: description ?? '',
4458
- icon: icon ?? merge.TOASTER.icon.success,
4459
- iconClose: iconClose ?? merge.TOASTER.icon.close
5320
+ description: description ?? ''
5321
+ // icon: icon ?? configStyles.TOASTER.icon.success,
5322
+ // iconClose: iconClose ?? configStyles.TOASTER.icon.close,
4460
5323
  });
4461
5324
  },
4462
5325
  info: (title, props) => {
5326
+ // const { icon, timer, position, iconClose, description } = props || {}
4463
5327
  const {
4464
- icon,
4465
5328
  timer,
4466
5329
  position,
4467
- iconClose,
4468
5330
  description
4469
5331
  } = props || {};
4470
5332
  createToast({
@@ -4472,17 +5334,16 @@ const toast = {
4472
5334
  type: 'info',
4473
5335
  timer: timer ?? 5000,
4474
5336
  position: position ?? 'top-right',
4475
- description: description ?? '',
4476
- icon: icon ?? merge.TOASTER.icon.info,
4477
- iconClose: iconClose ?? merge.TOASTER.icon.close
5337
+ description: description ?? ''
5338
+ // icon: icon ?? configStyles.TOASTER.icon.info,
5339
+ // iconClose: iconClose ?? configStyles.TOASTER.icon.close,
4478
5340
  });
4479
5341
  },
4480
5342
  warn: (title, props) => {
5343
+ // const { icon, timer, position, iconClose, description } = props || {}
4481
5344
  const {
4482
- icon,
4483
5345
  timer,
4484
5346
  position,
4485
- iconClose,
4486
5347
  description
4487
5348
  } = props || {};
4488
5349
  createToast({
@@ -4490,17 +5351,16 @@ const toast = {
4490
5351
  type: 'warn',
4491
5352
  timer: timer ?? 5000,
4492
5353
  position: position ?? 'top-right',
4493
- description: description ?? '',
4494
- icon: icon ?? merge.TOASTER.icon.warn,
4495
- iconClose: iconClose ?? merge.TOASTER.icon.close
5354
+ description: description ?? ''
5355
+ // icon: icon ?? configStyles.TOASTER.icon.warn,
5356
+ // iconClose: iconClose ?? configStyles.TOASTER.icon.close,
4496
5357
  });
4497
5358
  },
4498
5359
  error: (title, props) => {
5360
+ // const { icon, timer, position, iconClose, description } = props || {}
4499
5361
  const {
4500
- icon,
4501
5362
  timer,
4502
5363
  position,
4503
- iconClose,
4504
5364
  description
4505
5365
  } = props || {};
4506
5366
  createToast({
@@ -4508,16 +5368,17 @@ const toast = {
4508
5368
  type: 'error',
4509
5369
  timer: timer ?? 5000,
4510
5370
  position: position ?? 'top-right',
4511
- description: description ?? '',
4512
- icon: icon ?? merge.TOASTER.icon.error,
4513
- iconClose: iconClose ?? merge.TOASTER.icon.close
5371
+ description: description ?? ''
5372
+ // icon: icon ?? configStyles.TOASTER.icon.error,
5373
+ // iconClose: iconClose ?? configStyles.TOASTER.icon.close,
4514
5374
  });
4515
5375
  }
4516
5376
  };
4517
5377
  const Toaster = ({
4518
5378
  className
4519
5379
  }) => {
4520
- const classProps = classnames__default["default"](className ?? merge.TOASTER.className);
5380
+ const [classProps, setClassProps] = React.useState('');
5381
+ const [configStyles, setConfigStyles] = React.useState({});
4521
5382
  window.addEventListener('popstate', () => {
4522
5383
  if (path !== window.location.href) {
4523
5384
  if (!toastify) {
@@ -4532,7 +5393,19 @@ const Toaster = ({
4532
5393
  const handleToasterClick = e => {
4533
5394
  e.stopPropagation();
4534
5395
  };
4535
- return /*#__PURE__*/React__default["default"].createElement("div", {
5396
+ React.useEffect(() => {
5397
+ configStylesPromise.then(data => {
5398
+ setClassProps(() => classnames__default["default"](className ?? data.TOASTER.className));
5399
+ setConfigStyles(() => {
5400
+ return {
5401
+ ...data
5402
+ };
5403
+ });
5404
+ }, error => {
5405
+ console.error(error);
5406
+ });
5407
+ }, []);
5408
+ return configStyles.TOASTER && /*#__PURE__*/React__default["default"].createElement("div", {
4536
5409
  onClick: handleToasterClick,
4537
5410
  className: classProps,
4538
5411
  id: "toastify"
@@ -4581,10 +5454,11 @@ const Tooltip = ({
4581
5454
  type = 'top'
4582
5455
  }) => {
4583
5456
  const tooltipRef = /*#__PURE__*/React.createRef(null);
4584
- const classProps = classnames__default["default"](styles$4['tooltip-block'], className ?? merge.TOOLTIP.className);
5457
+ const [classProps, setClassProps] = React.useState({});
5458
+ const [configStyles, setConfigStyles] = React.useState({});
5459
+ const [showTooltip, setShowTooltip] = React.useState(false);
4585
5460
  const [checkTooltipWidth, setCheckTooltipWidth] = React.useState(0);
4586
5461
  const [checkTooltipHeight, setCheckTooltipHeight] = React.useState(0);
4587
- const [showTooltip, setShowTooltip] = React.useState(false);
4588
5462
  const handleShow = () => {
4589
5463
  setShowTooltip(!showTooltip);
4590
5464
  };
@@ -4595,21 +5469,33 @@ const Tooltip = ({
4595
5469
  tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setCheckTooltipWidth(tooltipRef.current.clientWidth);
4596
5470
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
4597
5471
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
4598
- return /*#__PURE__*/React__default["default"].createElement("div", {
5472
+ React.useEffect(() => {
5473
+ configStylesPromise.then(data => {
5474
+ setClassProps(() => classnames__default["default"](styles$4['tooltip-block'], className ?? data.TOOLTIP.className));
5475
+ setConfigStyles(() => {
5476
+ return {
5477
+ ...data
5478
+ };
5479
+ });
5480
+ }, error => {
5481
+ console.error(error);
5482
+ });
5483
+ }, []);
5484
+ return configStyles.TOOLTIP && /*#__PURE__*/React__default["default"].createElement("div", {
4599
5485
  className: classProps,
4600
5486
  style: {
4601
- width: width ?? merge.TOOLTIP.parent.width,
4602
- height: height ?? merge.TOOLTIP.parent.height,
4603
- borderRadius: radius ?? merge.TOOLTIP.parent.radius,
4604
- backgroundColor: backgroundColor ?? merge.TOOLTIP.parent.colors.background
5487
+ width: width ?? configStyles.TOOLTIP.parent.width,
5488
+ height: height ?? configStyles.TOOLTIP.parent.height,
5489
+ borderRadius: radius ?? configStyles.TOOLTIP.parent.radius,
5490
+ backgroundColor: backgroundColor ?? configStyles.TOOLTIP.parent.colors.background
4605
5491
  }
4606
5492
  }, showTooltip ? /*#__PURE__*/React__default["default"].createElement("div", {
4607
5493
  ref: tooltipRef,
4608
5494
  className: `${styles$4['tooltip']}`,
4609
5495
  style: {
4610
- width: tooltipWidth ?? merge.TOOLTIP.width,
4611
- borderRadius: tooltipRadius ?? merge.TOOLTIP.radius,
4612
- backgroundColor: tooltipBackgroundColor ?? merge.TOOLTIP.colors.background,
5496
+ width: tooltipWidth ?? configStyles.TOOLTIP.width,
5497
+ borderRadius: tooltipRadius ?? configStyles.TOOLTIP.radius,
5498
+ backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
4613
5499
  top: type === 'top' ? `calc(-${checkTooltipHeight + 7}px)` : type === 'bottom' ? 'calc(100% + 7px)' : type === 'left' || type === 'right' ? `calc(50% - ${checkTooltipHeight / 2}px)` : '0px',
4614
5500
  left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
4615
5501
  }
@@ -4618,24 +5504,24 @@ const Tooltip = ({
4618
5504
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4619
5505
  className: `${styles$4['tooltip-decor']}`,
4620
5506
  style: {
4621
- backgroundColor: tooltipBackgroundColor ?? merge.TOOLTIP.colors.background,
5507
+ backgroundColor: tooltipBackgroundColor ?? configStyles.TOOLTIP.colors.background,
4622
5508
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
4623
5509
  top: type === 'top' ? 'calc(100% + 5px)' : type === 'bottom' ? '-15px' : type === 'right' || type === 'left' ? 'calc(50% - 5px)' : '0px'
4624
5510
  }
4625
5511
  }), /*#__PURE__*/React__default["default"].createElement("p", {
4626
5512
  style: {
4627
- color: color ?? merge.TOOLTIP.color,
4628
- fontSize: fontSize ?? merge.TOOLTIP.font.size,
4629
- fontStyle: fontStyle ?? merge.TOOLTIP.font.style,
4630
- fontFamily: fontFamily ?? merge.TOOLTIP.font.family,
4631
- fontWeight: fontWeight ?? merge.TOOLTIP.font.weight
5513
+ color: color ?? configStyles.TOOLTIP.color,
5514
+ fontSize: fontSize ?? configStyles.TOOLTIP.font.size,
5515
+ fontStyle: fontStyle ?? configStyles.TOOLTIP.font.style,
5516
+ fontFamily: fontFamily ?? configStyles.TOOLTIP.font.family,
5517
+ fontWeight: fontWeight ?? configStyles.TOOLTIP.font.weight
4632
5518
  }
4633
5519
  }, text))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
4634
5520
  style: {
4635
5521
  cursor: 'pointer'
4636
5522
  },
4637
5523
  onClick: handleShow
4638
- }, tooltipIcon ? tooltipIcon : merge.TOOLTIP.icon ? merge.TOOLTIP.icon : /*#__PURE__*/React__default["default"].createElement(SvgTooltip, null)));
5524
+ }, tooltipIcon ? tooltipIcon : configStyles.TOOLTIP.icon ? configStyles.TOOLTIP.icon : /*#__PURE__*/React__default["default"].createElement(SvgTooltip, null)));
4639
5525
  };
4640
5526
  Tooltip.propTypes = {
4641
5527
  type: PropTypes__default["default"].string,
@@ -4711,7 +5597,8 @@ const Captcha = ({
4711
5597
  }) => {
4712
5598
  const [rangeNumber, setRangeNumber] = React.useState(0);
4713
5599
  const [rangeProgress, setRangeProgress] = React.useState(0);
4714
- const classProps = classnames__default["default"](className ?? merge.CAPTCHA.className);
5600
+ const [classProps, setClassProps] = React.useState({});
5601
+ const [configStyles, setConfigStyles] = React.useState({});
4715
5602
  const handleRange = e => {
4716
5603
  const value = e.target.value;
4717
5604
  getRange(value);
@@ -4733,15 +5620,27 @@ const Captcha = ({
4733
5620
  setRangeNumber(Math.min(roundedRange, 100));
4734
5621
  }
4735
5622
  }, [range, getRange]);
4736
- return /*#__PURE__*/React__default["default"].createElement("div", {
5623
+ React.useEffect(() => {
5624
+ configStylesPromise.then(data => {
5625
+ setClassProps(() => classnames__default["default"](className ?? data.CAPTCHA.className));
5626
+ setConfigStyles(() => {
5627
+ return {
5628
+ ...data
5629
+ };
5630
+ });
5631
+ }, error => {
5632
+ console.error(error);
5633
+ });
5634
+ }, []);
5635
+ return configStyles.CAPTCHA && /*#__PURE__*/React__default["default"].createElement("div", {
4737
5636
  className: classProps
4738
5637
  }, label && /*#__PURE__*/React__default["default"].createElement("p", {
4739
5638
  style: {
4740
- color: color ?? merge.CAPTCHA.label.color,
4741
- fontSize: fontSize ?? merge.CAPTCHA.label.font.size,
4742
- fontStyle: fontStyle ?? merge.CAPTCHA.label.font.style,
4743
- fontFamily: fontFamily ?? merge.CAPTCHA.label.font.family,
4744
- fontWeight: fontWeight ?? merge.CAPTCHA.label.font.weight
5639
+ color: color ?? configStyles.CAPTCHA.label.color,
5640
+ fontSize: fontSize ?? configStyles.CAPTCHA.label.font.size,
5641
+ fontStyle: fontStyle ?? configStyles.CAPTCHA.label.font.style,
5642
+ fontFamily: fontFamily ?? configStyles.CAPTCHA.label.font.family,
5643
+ fontWeight: fontWeight ?? configStyles.CAPTCHA.label.font.weight
4745
5644
  }
4746
5645
  }, label), /*#__PURE__*/React__default["default"].createElement("div", {
4747
5646
  style: {
@@ -4834,8 +5733,22 @@ const Stepper = ({
4834
5733
  activeSteps,
4835
5734
  className
4836
5735
  }) => {
4837
- return /*#__PURE__*/React__default["default"].createElement("div", {
4838
- className: classnames__default["default"](className ?? merge.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`)
5736
+ const [classProps, setClassProps] = React.useState({});
5737
+ const [configStyles, setConfigStyles] = React.useState({});
5738
+ React.useEffect(() => {
5739
+ configStylesPromise.then(data => {
5740
+ setClassProps(() => classnames__default["default"](className ?? data.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`));
5741
+ setConfigStyles(() => {
5742
+ return {
5743
+ ...data
5744
+ };
5745
+ });
5746
+ }, error => {
5747
+ console.error(error);
5748
+ });
5749
+ }, []);
5750
+ return configStyles.STEPPER && /*#__PURE__*/React__default["default"].createElement("div", {
5751
+ className: classProps
4839
5752
  }, (() => {
4840
5753
  let steppers = [];
4841
5754
  for (let step = 1; step <= stepLength; step++) {
@@ -4873,7 +5786,8 @@ const Checkbox = ({
4873
5786
  checkBoxMarginBottom,
4874
5787
  direction = 'vertical'
4875
5788
  }) => {
4876
- const classProps = classnames__default["default"](className ?? merge.CHECKBOX.className);
5789
+ const [classProps, setClassProps] = React.useState({});
5790
+ const [configStyles, setConfigStyles] = React.useState({});
4877
5791
  const [innerData, setInnerData] = React.useState([]);
4878
5792
  const [innerKeyNames, setInnerKeyNames] = React.useState({
4879
5793
  id: 'id',
@@ -4914,7 +5828,19 @@ const Checkbox = ({
4914
5828
  });
4915
5829
  }
4916
5830
  }, [keyNames]);
4917
- return /*#__PURE__*/React__default["default"].createElement("div", {
5831
+ React.useEffect(() => {
5832
+ configStylesPromise.then(data => {
5833
+ setClassProps(() => classnames__default["default"](className ?? data.CHECKBOX.className));
5834
+ setConfigStyles(() => {
5835
+ return {
5836
+ ...data
5837
+ };
5838
+ });
5839
+ }, error => {
5840
+ console.error(error);
5841
+ });
5842
+ }, []);
5843
+ return configStyles.CHECKBOX && /*#__PURE__*/React__default["default"].createElement("div", {
4918
5844
  style: {
4919
5845
  width: '100%',
4920
5846
  display: 'flex',
@@ -4926,7 +5852,7 @@ const Checkbox = ({
4926
5852
  key: `TUI_${index}_checkbox`,
4927
5853
  style: {
4928
5854
  width: 'fit-content',
4929
- marginBottom: direction === 'vertical' ? checkBoxMarginBottom ?? merge.CHECKBOX.marginBottom : '0px'
5855
+ marginBottom: direction === 'vertical' ? checkBoxMarginBottom ?? configStyles.CHECKBOX.marginBottom : '0px'
4930
5856
  }
4931
5857
  }, /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
4932
5858
  data: item,
@@ -4935,12 +5861,12 @@ const Checkbox = ({
4935
5861
  label: item[innerKeyNames.label],
4936
5862
  checked: item[innerKeyNames.checked],
4937
5863
  disabled: item[innerKeyNames.disabled],
5864
+ checkedIcon: checkedIcon ?? configStyles.CHECKBOX.checkedIcon,
5865
+ checkedColor: checkedColor ?? configStyles.CHECKBOX.colors.checked,
5866
+ unCheckedIcon: unCheckedIcon ?? configStyles.CHECKBOX.unCheckedIcon,
4938
5867
  ignoreDisabledForChecked: item[innerKeyNames.ignoreDisabledForChecked],
4939
- labelMarginLeft: labelMarginLeft ?? merge.CHECKBOX.label.marginLeft,
4940
- checkedColor: checkedColor ?? merge.CHECKBOX.colors.checked,
4941
- unCheckedColor: unCheckedColor ?? merge.CHECKBOX.colors.unChecked,
4942
- checkedIcon: checkedIcon ?? merge.CHECKBOX.checkedIcon,
4943
- unCheckedIcon: unCheckedIcon ?? merge.CHECKBOX.unCheckedIcon
5868
+ unCheckedColor: unCheckedColor ?? configStyles.CHECKBOX.colors.unChecked,
5869
+ labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.label.marginLeft
4944
5870
  }));
4945
5871
  }));
4946
5872
  };
@@ -5007,11 +5933,12 @@ const Textarea = ({
5007
5933
  showCharacterCount,
5008
5934
  characterCountPosition = 'top'
5009
5935
  }) => {
5010
- const classProps = classnames__default["default"](className ?? merge.TEXTAREA.className);
5011
5936
  const [error, setError] = React.useState('');
5012
5937
  const [isHover, setIsHover] = React.useState(false);
5013
5938
  const [isFocus, setIsFocus] = React.useState(false);
5014
5939
  const [innerValue, setInnerValue] = React.useState('');
5940
+ const [classProps, setClassProps] = React.useState({});
5941
+ const [configStyles, setConfigStyles] = React.useState({});
5015
5942
  const handleMouseEnter = () => {
5016
5943
  setIsHover(true);
5017
5944
  };
@@ -5033,8 +5960,8 @@ const Textarea = ({
5033
5960
  onChange(value.substr(0, maxLength));
5034
5961
  }
5035
5962
  } else {
5036
- if (value.length > merge.TEXTAREA.maxLength) {
5037
- onChange(value.substr(0, merge.TEXTAREA.maxLength));
5963
+ if (value.length > configStyles.TEXTAREA.maxLength) {
5964
+ onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
5038
5965
  }
5039
5966
  }
5040
5967
  };
@@ -5054,9 +5981,21 @@ const Textarea = ({
5054
5981
  }
5055
5982
  setInnerValue(() => value);
5056
5983
  }, [value, errorMessage]);
5057
- return /*#__PURE__*/React__default["default"].createElement("div", {
5984
+ React.useEffect(() => {
5985
+ configStylesPromise.then(data => {
5986
+ setClassProps(() => classnames__default["default"](className ?? data.TEXTAREA.className));
5987
+ setConfigStyles(() => {
5988
+ return {
5989
+ ...data
5990
+ };
5991
+ });
5992
+ }, error => {
5993
+ console.error(error);
5994
+ });
5995
+ }, []);
5996
+ return configStyles.TEXTAREA && /*#__PURE__*/React__default["default"].createElement("div", {
5058
5997
  style: {
5059
- width: width ?? merge.TEXTAREA.width
5998
+ width: width ?? configStyles.TEXTAREA.width
5060
5999
  },
5061
6000
  className: classProps
5062
6001
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -5064,15 +6003,15 @@ const Textarea = ({
5064
6003
  display: 'flex',
5065
6004
  alignItems: 'center',
5066
6005
  justifyContent: label ? 'space-between' : 'flex-end',
5067
- color: labelColor ?? merge.TEXTAREA.label.color,
5068
- fontSize: labelSize ?? merge.TEXTAREA.label.font.size,
5069
- fontFamily: labelFontFamily ?? merge.TEXTAREA.label.font.family,
5070
- fontWeight: labelWeight ?? merge.TEXTAREA.label.font.weight,
5071
- marginBottom: labelMarginBottom ?? merge.TEXTAREA.label.marginBottom
6006
+ color: labelColor ?? configStyles.TEXTAREA.label.color,
6007
+ fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
6008
+ fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family,
6009
+ fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
6010
+ marginBottom: labelMarginBottom ?? configStyles.TEXTAREA.label.marginBottom
5072
6011
  }
5073
6012
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
5074
6013
  style: {
5075
- display: labelDisplay ?? merge.TEXTAREA.label.display
6014
+ display: labelDisplay ?? configStyles.TEXTAREA.label.display
5076
6015
  }
5077
6016
  }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default["default"].createElement("span", null, maxLength - value.length, " \u0576\u056B\u0577")), /*#__PURE__*/React__default["default"].createElement("textarea", {
5078
6017
  style: {
@@ -5081,21 +6020,21 @@ const Textarea = ({
5081
6020
  outline: 'none',
5082
6021
  overflow: 'auto',
5083
6022
  cursor: disabled ? 'not-allowed' : 'auto',
5084
- fontSize: size ?? merge.TEXTAREA.font.size,
5085
- fontStyle: style ?? merge.TEXTAREA.font.style,
5086
- fontFamily: family ?? merge.TEXTAREA.font.family,
5087
- fontWeight: weight ?? merge.TEXTAREA.font.weight,
5088
- height: height ?? merge.TEXTAREA.height,
5089
- padding: padding ?? merge.TEXTAREA.padding,
5090
- borderRadius: radius ?? merge.TEXTAREA.radius,
5091
- minWidth: minWidth ?? merge.TEXTAREA.minWidth,
5092
- maxWidth: maxWidth ?? merge.TEXTAREA.maxWidth,
5093
- minHeight: minHeight ?? merge.TEXTAREA.minHeight,
5094
- maxHeight: maxHeight ?? merge.TEXTAREA.maxHeight,
5095
- boxSizing: boxSizing ?? merge.TEXTAREA.box.sizing,
5096
- backgroundColor: backgroundColor ?? merge.TEXTAREA.colors.background,
5097
- 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,
5098
- resize: resize ? resize : merge.TEXTAREA.resize
6023
+ fontSize: size ?? configStyles.TEXTAREA.font.size,
6024
+ fontStyle: style ?? configStyles.TEXTAREA.font.style,
6025
+ fontFamily: family ?? configStyles.TEXTAREA.font.family,
6026
+ fontWeight: weight ?? configStyles.TEXTAREA.font.weight,
6027
+ height: height ?? configStyles.TEXTAREA.height,
6028
+ padding: padding ?? configStyles.TEXTAREA.padding,
6029
+ borderRadius: radius ?? configStyles.TEXTAREA.radius,
6030
+ minWidth: minWidth ?? configStyles.TEXTAREA.minWidth,
6031
+ maxWidth: maxWidth ?? configStyles.TEXTAREA.maxWidth,
6032
+ minHeight: minHeight ?? configStyles.TEXTAREA.minHeight,
6033
+ maxHeight: maxHeight ?? configStyles.TEXTAREA.maxHeight,
6034
+ boxSizing: boxSizing ?? configStyles.TEXTAREA.box.sizing,
6035
+ backgroundColor: backgroundColor ?? configStyles.TEXTAREA.colors.background,
6036
+ 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,
6037
+ resize: resize ? resize : configStyles.TEXTAREA.resize
5099
6038
  },
5100
6039
  value: innerValue,
5101
6040
  disabled: disabled,
@@ -5111,26 +6050,26 @@ const Textarea = ({
5111
6050
  }
5112
6051
  }, /*#__PURE__*/React__default["default"].createElement("span", {
5113
6052
  style: {
5114
- color: labelColor ?? merge.TEXTAREA.label.color,
5115
- fontSize: labelSize ?? merge.TEXTAREA.label.font.size,
5116
- fontWeight: labelWeight ?? merge.TEXTAREA.label.font.weight,
5117
- fontFamily: labelFontFamily ?? merge.TEXTAREA.label.font.family
6053
+ color: labelColor ?? configStyles.TEXTAREA.label.color,
6054
+ fontSize: labelSize ?? configStyles.TEXTAREA.label.font.size,
6055
+ fontWeight: labelWeight ?? configStyles.TEXTAREA.label.font.weight,
6056
+ fontFamily: labelFontFamily ?? configStyles.TEXTAREA.label.font.family
5118
6057
  }
5119
6058
  }, maxLength - value.length, " \u0576\u056B\u0577")), error ? /*#__PURE__*/React__default["default"].createElement("div", {
5120
6059
  style: {
5121
6060
  clear: 'both',
5122
6061
  wordBreak: 'break-all',
5123
- maxWidth: width ?? merge.TEXTAREA.width
6062
+ maxWidth: width ?? configStyles.TEXTAREA.width
5124
6063
  }
5125
6064
  }, /*#__PURE__*/React__default["default"].createElement("span", {
5126
6065
  style: {
5127
6066
  display: 'inline-block',
5128
- color: errorColor ?? merge.TEXTAREA.error.color,
5129
- fontSize: errorSize ?? merge.TEXTAREA.error.font.size,
5130
- fontStyle: errorStyle ?? merge.TEXTAREA.error.font.style,
5131
- fontWeight: errorWeight ?? merge.TEXTAREA.error.font.weight,
5132
- fontFamily: errorFamily ?? merge.TEXTAREA.error.font.family,
5133
- marginTop: marginTop ?? merge.TEXTAREA.error.marginTop
6067
+ color: errorColor ?? configStyles.TEXTAREA.error.color,
6068
+ fontSize: errorSize ?? configStyles.TEXTAREA.error.font.size,
6069
+ fontStyle: errorStyle ?? configStyles.TEXTAREA.error.font.style,
6070
+ fontWeight: errorWeight ?? configStyles.TEXTAREA.error.font.weight,
6071
+ fontFamily: errorFamily ?? configStyles.TEXTAREA.error.font.family,
6072
+ marginTop: marginTop ?? configStyles.TEXTAREA.error.marginTop
5134
6073
  }
5135
6074
  }, error)) : '');
5136
6075
  };
@@ -5210,8 +6149,9 @@ const Typography = ({
5210
6149
  variant = 'p',
5211
6150
  ...props
5212
6151
  }) => {
5213
- const classProps = classnames__default["default"](className ?? merge.TYPOGRAPHY.className);
5214
6152
  const [isHover, setIsHover] = React.useState(false);
6153
+ const [classProps, setClassProps] = React.useState({});
6154
+ const [configStyles, setConfigStyles] = React.useState({});
5215
6155
  const [validVariant, setValidVariant] = React.useState(false);
5216
6156
  const handleMouseEnter = () => {
5217
6157
  setIsHover(true);
@@ -5219,22 +6159,22 @@ const Typography = ({
5219
6159
  const handleMouseLeave = () => {
5220
6160
  setIsHover(false);
5221
6161
  };
5222
- const tagT = /*#__PURE__*/React__default["default"].createElement(variant, {
6162
+ const tagT = configStyles.TYPOGRAPHY && /*#__PURE__*/React__default["default"].createElement(variant, {
5223
6163
  style: {
5224
- border: border ?? merge.TYPOGRAPHY.border,
5225
- cursor: cursor ?? merge.TYPOGRAPHY.cursor,
5226
- borderRadius: radius ?? merge.TYPOGRAPHY.radius,
5227
- fontSize: size ?? merge.TYPOGRAPHY.font['size' + variant],
5228
- fontWeight: weight ?? merge.TYPOGRAPHY.font['weight' + variant],
5229
- textShadow: textShadow ?? merge.TYPOGRAPHY.text['shadow' + variant],
5230
- textAlign: textAlign ?? merge.TYPOGRAPHY.text['align' + variant],
5231
- fontStyle: fontStyle ?? merge.TYPOGRAPHY.font['style' + variant],
5232
- lineHeight: lineHeight ?? merge.TYPOGRAPHY.text['lineHeight' + variant],
5233
- fontFamily: fontFamily ?? merge.TYPOGRAPHY.font['family' + variant],
5234
- textTransform: textTransform ?? merge.TYPOGRAPHY.text['transform' + variant],
5235
- textDecoration: textDecoration ?? merge.TYPOGRAPHY.text['decoration' + variant],
5236
- backgroundColor: backgroundColor ?? merge.TYPOGRAPHY.colors['background' + variant],
5237
- color: isHover ? colorHover ? colorHover : color ? color : merge.TYPOGRAPHY.colors[variant] : color ? color : merge.TYPOGRAPHY.colors[variant]
6164
+ border: border ?? configStyles.TYPOGRAPHY.border,
6165
+ cursor: cursor ?? configStyles.TYPOGRAPHY.cursor,
6166
+ borderRadius: radius ?? configStyles.TYPOGRAPHY.radius,
6167
+ fontSize: size ?? configStyles.TYPOGRAPHY.font['size' + variant],
6168
+ fontWeight: weight ?? configStyles.TYPOGRAPHY.font['weight' + variant],
6169
+ textShadow: textShadow ?? configStyles.TYPOGRAPHY.text['shadow' + variant],
6170
+ textAlign: textAlign ?? configStyles.TYPOGRAPHY.text['align' + variant],
6171
+ fontStyle: fontStyle ?? configStyles.TYPOGRAPHY.font['style' + variant],
6172
+ lineHeight: lineHeight ?? configStyles.TYPOGRAPHY.text['lineHeight' + variant],
6173
+ fontFamily: fontFamily ?? configStyles.TYPOGRAPHY.font['family' + variant],
6174
+ textTransform: textTransform ?? configStyles.TYPOGRAPHY.text['transform' + variant],
6175
+ textDecoration: textDecoration ?? configStyles.TYPOGRAPHY.text['decoration' + variant],
6176
+ backgroundColor: backgroundColor ?? configStyles.TYPOGRAPHY.colors['background' + variant],
6177
+ color: isHover ? colorHover ? colorHover : color ? color : configStyles.TYPOGRAPHY.colors[variant] : color ? color : configStyles.TYPOGRAPHY.colors[variant]
5238
6178
  },
5239
6179
  ...props,
5240
6180
  className: classProps,
@@ -5247,6 +6187,18 @@ const Typography = ({
5247
6187
  setValidVariant(true);
5248
6188
  }
5249
6189
  }, [variant]);
6190
+ React.useEffect(() => {
6191
+ configStylesPromise.then(data => {
6192
+ setClassProps(() => classnames__default["default"](className ?? data.TYPOGRAPHY.className));
6193
+ setConfigStyles(() => {
6194
+ return {
6195
+ ...data
6196
+ };
6197
+ });
6198
+ }, error => {
6199
+ console.error(error);
6200
+ });
6201
+ }, []);
5250
6202
  return validVariant ? 'Please set Typography valid variant' : tagT;
5251
6203
  };
5252
6204
  Typography.propTypes = {
@@ -5270,10 +6222,6 @@ Typography.propTypes = {
5270
6222
  size: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
5271
6223
  };
5272
6224
 
5273
- 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}";
5274
- 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"};
5275
- styleInject(css_248z$1);
5276
-
5277
6225
  const Dots = '...';
5278
6226
  const range = (start, end) => {
5279
6227
  const length = end - start + 1;
@@ -5315,6 +6263,10 @@ const PaginationRange = ({
5315
6263
  return paginationRange;
5316
6264
  };
5317
6265
 
6266
+ 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}";
6267
+ 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"};
6268
+ styleInject(css_248z$1);
6269
+
5318
6270
  const SvgDots = ({
5319
6271
  title,
5320
6272
  titleId,
@@ -5363,8 +6315,24 @@ const Pagination = ({
5363
6315
  }) => {
5364
6316
  const [inpVal, setInpVal] = React.useState('');
5365
6317
  const [error, setError] = React.useState(false);
6318
+ const [classProps, setClassProps] = React.useState({});
6319
+ const [configStyles, setConfigStyles] = React.useState({});
5366
6320
  const [currentPageNumber, setCurrentPage] = React.useState(currentPage);
5367
6321
  const [currentTotalCount, setcurrentTotalCount] = React.useState(totalCount);
6322
+ React.useEffect(() => {
6323
+ configStylesPromise.then(data => {
6324
+ setClassProps(() => classnames__default["default"](
6325
+ // TODO: check and remove pagination-bar-rem class
6326
+ styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
6327
+ setConfigStyles(() => {
6328
+ return {
6329
+ ...data
6330
+ };
6331
+ });
6332
+ }, error => {
6333
+ console.error(error);
6334
+ });
6335
+ }, []);
5368
6336
  React.useEffect(() => {
5369
6337
  setcurrentTotalCount(totalCount);
5370
6338
  }, [totalCount]);
@@ -5387,9 +6355,6 @@ const Pagination = ({
5387
6355
  if (currentPageNumber === 0 || paginationRange?.length < 2) {
5388
6356
  return null;
5389
6357
  }
5390
- const classProps = classnames__default["default"](
5391
- // TODO: check and remove pagination-bar-rem class
5392
- styles$1.list, className ?? merge.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`);
5393
6358
  const onNext = () => {
5394
6359
  onPageChange(currentPageNumber + 1);
5395
6360
  };
@@ -5437,7 +6402,7 @@ const Pagination = ({
5437
6402
  }
5438
6403
  };
5439
6404
  let lastPage = paginationRange[paginationRange.length - 1];
5440
- return /*#__PURE__*/React__default["default"].createElement("div", {
6405
+ return configStyles.PAGINATION && /*#__PURE__*/React__default["default"].createElement("div", {
5441
6406
  style: {
5442
6407
  display: 'flex',
5443
6408
  margin: '0 auto',
@@ -5613,14 +6578,15 @@ const Autocomplete = ({
5613
6578
  const [innerError, setInnerError] = React.useState('');
5614
6579
  const [innerValue, setInnerValue] = React.useState('');
5615
6580
  const [innerOptions, setInnerOptions] = React.useState([]);
5616
- const classProps = classnames__default["default"](className ?? merge.AUTOCOMPLETE.className, styles['auto-complete']);
6581
+ const [classProps, setClassProps] = React.useState({});
6582
+ const [configStyles, setConfigStyles] = React.useState({});
5617
6583
  const showOption = styled.keyframes`
5618
6584
  100% {
5619
6585
  max-height: 400px;
5620
6586
  }
5621
6587
  `;
5622
6588
  const animation = () => styled.css`
5623
- ${showOption} ${showOptionDuration ?? merge.AUTOCOMPLETE.showOptionDuration} linear forwards
6589
+ ${showOption} ${showOptionDuration ?? configStyles.AUTOCOMPLETE.showOptionDuration} linear forwards
5624
6590
  `;
5625
6591
  const handleMouseEnter = () => {
5626
6592
  setIsHover(true);
@@ -5629,12 +6595,12 @@ const Autocomplete = ({
5629
6595
  setIsHover(false);
5630
6596
  };
5631
6597
  const handleRowMouseEnter = e => {
5632
- e.target.style.color = contentBottomRowHoverColor ? contentBottomRowHoverColor : merge.AUTOCOMPLETE.contentBottom.row.colors.hover;
5633
- e.target.style.backgroundColor = contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : merge.AUTOCOMPLETE.contentBottom.row.colors.backgroundHover;
6598
+ e.target.style.color = contentBottomRowHoverColor ? contentBottomRowHoverColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.hover;
6599
+ e.target.style.backgroundColor = contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.backgroundHover;
5634
6600
  };
5635
6601
  const handleRowMouseLeave = e => {
5636
- e.target.style.color = contentBottomRowColor ? contentBottomRowColor : merge.AUTOCOMPLETE.contentBottom.row.color;
5637
- e.target.style.backgroundColor = contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : merge.AUTOCOMPLETE.contentBottom.row.colors.background;
6602
+ e.target.style.color = contentBottomRowColor ? contentBottomRowColor : configStyles.AUTOCOMPLETE.contentBottom.row.color;
6603
+ e.target.style.backgroundColor = contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background;
5638
6604
  };
5639
6605
  const handleFocus = () => {
5640
6606
  setIsFocus(true);
@@ -5661,26 +6627,26 @@ const Autocomplete = ({
5661
6627
  };
5662
6628
  const optionList = /*#__PURE__*/React__default["default"].createElement("div", null, show && innerOptions && !disabled ? innerOptions.length > 0 && innerValue.length >= searchCount ? /*#__PURE__*/React__default["default"].createElement("div", {
5663
6629
  style: {
5664
- left: contentBottomLeft ?? merge.AUTOCOMPLETE.contentBottom.left,
5665
- width: contentBottomWidth ?? merge.AUTOCOMPLETE.contentBottom.width,
5666
- zIndex: contentBottomZindex ?? merge.AUTOCOMPLETE.contentBottom.zIndex,
5667
- borderRadius: contentBottomRadius ?? merge.AUTOCOMPLETE.contentBottom.radius,
5668
- maxWidth: contentBottomMaxWidth ?? merge.AUTOCOMPLETE.contentBottom.maxWidth,
5669
- overflow: contentBottomOverflow ?? merge.AUTOCOMPLETE.contentBottom.overflow,
5670
- position: contentBottomPosition ?? merge.AUTOCOMPLETE.contentBottom.position,
5671
- minHeight: contentBottomMinHeight ?? merge.AUTOCOMPLETE.contentBottom.minHeight,
5672
- boxShadow: contentBottomBoxShadow ?? merge.AUTOCOMPLETE.contentBottom.box.shadow,
5673
- backgroundColor: contentBottomBackgroundColor ?? merge.AUTOCOMPLETE.contentBottom.colors.background,
5674
- 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',
6630
+ left: contentBottomLeft ?? configStyles.AUTOCOMPLETE.contentBottom.left,
6631
+ width: contentBottomWidth ?? configStyles.AUTOCOMPLETE.contentBottom.width,
6632
+ zIndex: contentBottomZindex ?? configStyles.AUTOCOMPLETE.contentBottom.zIndex,
6633
+ borderRadius: contentBottomRadius ?? configStyles.AUTOCOMPLETE.contentBottom.radius,
6634
+ maxWidth: contentBottomMaxWidth ?? configStyles.AUTOCOMPLETE.contentBottom.maxWidth,
6635
+ overflow: contentBottomOverflow ?? configStyles.AUTOCOMPLETE.contentBottom.overflow,
6636
+ position: contentBottomPosition ?? configStyles.AUTOCOMPLETE.contentBottom.position,
6637
+ minHeight: contentBottomMinHeight ?? configStyles.AUTOCOMPLETE.contentBottom.minHeight,
6638
+ boxShadow: contentBottomBoxShadow ?? configStyles.AUTOCOMPLETE.contentBottom.box.shadow,
6639
+ backgroundColor: contentBottomBackgroundColor ?? configStyles.AUTOCOMPLETE.contentBottom.colors.background,
6640
+ 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',
5675
6641
  animation
5676
6642
  }
5677
6643
  }, /*#__PURE__*/React__default["default"].createElement("div", {
5678
6644
  style: {
5679
- display: contentBottomInnerDisplay ? contentBottomInnerDisplay : merge.AUTOCOMPLETE.contentBottom.inner.display,
5680
- overflowY: contentBottomInnerOverflowY ? contentBottomInnerOverflowY : merge.AUTOCOMPLETE.contentBottom.inner.overflowY,
5681
- overflowX: contentBottomInnerOverflowX ? contentBottomInnerOverflowX : merge.AUTOCOMPLETE.contentBottom.inner.overflowX,
5682
- maxHeight: contentBottomInnerMaxHeight ? contentBottomInnerMaxHeight : merge.AUTOCOMPLETE.contentBottom.inner.maxHeight,
5683
- flexDirection: contentBottomInnerDirection ? contentBottomInnerDirection : merge.AUTOCOMPLETE.contentBottom.inner.direction
6645
+ display: contentBottomInnerDisplay ? contentBottomInnerDisplay : configStyles.AUTOCOMPLETE.contentBottom.inner.display,
6646
+ overflowY: contentBottomInnerOverflowY ? contentBottomInnerOverflowY : configStyles.AUTOCOMPLETE.contentBottom.inner.overflowY,
6647
+ overflowX: contentBottomInnerOverflowX ? contentBottomInnerOverflowX : configStyles.AUTOCOMPLETE.contentBottom.inner.overflowX,
6648
+ maxHeight: contentBottomInnerMaxHeight ? contentBottomInnerMaxHeight : configStyles.AUTOCOMPLETE.contentBottom.inner.maxHeight,
6649
+ flexDirection: contentBottomInnerDirection ? contentBottomInnerDirection : configStyles.AUTOCOMPLETE.contentBottom.inner.direction
5684
6650
  }
5685
6651
  }, innerOptions.map(item => {
5686
6652
  return /*#__PURE__*/React__default["default"].createElement("p", {
@@ -5690,35 +6656,35 @@ const Autocomplete = ({
5690
6656
  onClick: () => handleClick(item),
5691
6657
  style: {
5692
6658
  flexShrink: 0,
5693
- color: contentBottomRowColor ? contentBottomRowColor : merge.AUTOCOMPLETE.contentBottom.row.color,
5694
- height: contentBottomRowHeight ? contentBottomRowHeight : merge.AUTOCOMPLETE.contentBottom.row.height,
5695
- cursor: contentBottomRowCursor ? contentBottomRowCursor : merge.AUTOCOMPLETE.contentBottom.row.cursor,
5696
- display: contentBottomRowDisplay ? contentBottomRowDisplay : merge.AUTOCOMPLETE.contentBottom.row.display,
5697
- padding: contentBottomRowPadding ? contentBottomRowPadding : merge.AUTOCOMPLETE.contentBottom.row.padding,
5698
- fontSize: contentBottomRowFontSize ? contentBottomRowFontSize : merge.AUTOCOMPLETE.contentBottom.row.font.size,
5699
- boxSizing: contentBottomRowBoxSizing ? contentBottomRowBoxSizing : merge.AUTOCOMPLETE.contentBottom.box.sizing,
5700
- fontWeight: contentBottomRowFontWeight ? contentBottomRowFontWeight : merge.AUTOCOMPLETE.contentBottom.row.font.weight,
5701
- lineHeight: contentBottomRowLineHeight ? contentBottomRowLineHeight : merge.AUTOCOMPLETE.contentBottom.row.lineHeight,
5702
- alignItems: contentBottomRowAlignItems ? contentBottomRowAlignItems : merge.AUTOCOMPLETE.contentBottom.row.alignItems,
5703
- transition: contentBottomRowTransition ? contentBottomRowTransition : merge.AUTOCOMPLETE.contentBottom.row.transition,
5704
- marginBottom: contentBottomRowMarginBottom ? contentBottomRowMarginBottom : merge.AUTOCOMPLETE.contentBottom.row.marginBottom,
5705
- backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : merge.AUTOCOMPLETE.contentBottom.row.colors.background
6659
+ color: contentBottomRowColor ? contentBottomRowColor : configStyles.AUTOCOMPLETE.contentBottom.row.color,
6660
+ height: contentBottomRowHeight ? contentBottomRowHeight : configStyles.AUTOCOMPLETE.contentBottom.row.height,
6661
+ cursor: contentBottomRowCursor ? contentBottomRowCursor : configStyles.AUTOCOMPLETE.contentBottom.row.cursor,
6662
+ display: contentBottomRowDisplay ? contentBottomRowDisplay : configStyles.AUTOCOMPLETE.contentBottom.row.display,
6663
+ padding: contentBottomRowPadding ? contentBottomRowPadding : configStyles.AUTOCOMPLETE.contentBottom.row.padding,
6664
+ fontSize: contentBottomRowFontSize ? contentBottomRowFontSize : configStyles.AUTOCOMPLETE.contentBottom.row.font.size,
6665
+ boxSizing: contentBottomRowBoxSizing ? contentBottomRowBoxSizing : configStyles.AUTOCOMPLETE.contentBottom.box.sizing,
6666
+ fontWeight: contentBottomRowFontWeight ? contentBottomRowFontWeight : configStyles.AUTOCOMPLETE.contentBottom.row.font.weight,
6667
+ lineHeight: contentBottomRowLineHeight ? contentBottomRowLineHeight : configStyles.AUTOCOMPLETE.contentBottom.row.lineHeight,
6668
+ alignItems: contentBottomRowAlignItems ? contentBottomRowAlignItems : configStyles.AUTOCOMPLETE.contentBottom.row.alignItems,
6669
+ transition: contentBottomRowTransition ? contentBottomRowTransition : configStyles.AUTOCOMPLETE.contentBottom.row.transition,
6670
+ marginBottom: contentBottomRowMarginBottom ? contentBottomRowMarginBottom : configStyles.AUTOCOMPLETE.contentBottom.row.marginBottom,
6671
+ backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background
5706
6672
  }
5707
6673
  }, item[keyNames.name]);
5708
6674
  }))) : innerError ? '' : innerValue.length <= 0 ? '' : /*#__PURE__*/React__default["default"].createElement("span", {
5709
6675
  style: {
5710
6676
  position: 'absolute',
5711
6677
  zIndex: '1',
5712
- color: errorColor ?? merge.AUTOCOMPLETE.error.color,
5713
- fontSize: errorSize ?? merge.AUTOCOMPLETE.error.font.size,
5714
- fontStyle: errorStyle ?? merge.AUTOCOMPLETE.error.font.style,
5715
- fontWeight: errorWeight ?? merge.AUTOCOMPLETE.error.font.weight,
5716
- fontFamily: errorFamily ?? merge.AUTOCOMPLETE.error.font.family,
5717
- top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${merge.AUTOCOMPLETE.error.marginTop})`,
5718
- padding: innerErrorPadding ?? merge.AUTOCOMPLETE.innerError.padding,
5719
- height: contentBottomRowHeight ?? merge.AUTOCOMPLETE.contentBottom.row.height,
5720
- lineHeight: contentBottomRowLineHeight ?? merge.AUTOCOMPLETE.contentBottom.row.lineHeight,
5721
- backgroundColor: innerErrorBackgroundColor ?? merge.AUTOCOMPLETE.innerError.colors.background
6678
+ color: errorColor ?? configStyles.AUTOCOMPLETE.error.color,
6679
+ fontSize: errorSize ?? configStyles.AUTOCOMPLETE.error.font.size,
6680
+ fontStyle: errorStyle ?? configStyles.AUTOCOMPLETE.error.font.style,
6681
+ fontWeight: errorWeight ?? configStyles.AUTOCOMPLETE.error.font.weight,
6682
+ fontFamily: errorFamily ?? configStyles.AUTOCOMPLETE.error.font.family,
6683
+ top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${configStyles.AUTOCOMPLETE.error.marginTop})`,
6684
+ padding: innerErrorPadding ?? configStyles.AUTOCOMPLETE.innerError.padding,
6685
+ height: contentBottomRowHeight ?? configStyles.AUTOCOMPLETE.contentBottom.row.height,
6686
+ lineHeight: contentBottomRowLineHeight ?? configStyles.AUTOCOMPLETE.contentBottom.row.lineHeight,
6687
+ backgroundColor: innerErrorBackgroundColor ?? configStyles.AUTOCOMPLETE.innerError.colors.background
5722
6688
  }
5723
6689
  }, innerValue.length >= searchCount ? 'Նման տվյալ առկա չէ' : `Լրացնել առնվազն ${searchCount} նիշ`) : '');
5724
6690
  React.useEffect(() => {
@@ -5752,30 +6718,42 @@ const Autocomplete = ({
5752
6718
  React.useEffect(() => {
5753
6719
  setInnerError(errorMessage);
5754
6720
  }, [errorMessage]);
5755
- return /*#__PURE__*/React__default["default"].createElement("div", {
6721
+ React.useEffect(() => {
6722
+ configStylesPromise.then(data => {
6723
+ setClassProps(() => classnames__default["default"](className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
6724
+ setConfigStyles(() => {
6725
+ return {
6726
+ ...data
6727
+ };
6728
+ });
6729
+ }).catch(error => {
6730
+ console.error(error);
6731
+ });
6732
+ }, []);
6733
+ return configStyles.AUTOCOMPLETE && /*#__PURE__*/React__default["default"].createElement("div", {
5756
6734
  className: classProps,
5757
6735
  style: {
5758
- width: contentTopMaxWidth ?? merge.AUTOCOMPLETE.maxWidth
6736
+ width: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth
5759
6737
  }
5760
6738
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
5761
6739
  style: {
5762
- color: labelColor ?? merge.AUTOCOMPLETE.label.color,
5763
- display: labelDisplay ?? merge.AUTOCOMPLETE.label.display,
5764
- maxWidth: contentTopMaxWidth ?? merge.AUTOCOMPLETE.maxWidth,
5765
- fontSize: labelSize ?? merge.AUTOCOMPLETE.label.font.size,
5766
- fontStyle: labelStyle ?? merge.AUTOCOMPLETE.label.font.style,
5767
- fontWeight: labelWeight ?? merge.AUTOCOMPLETE.label.font.weight,
5768
- fontFamily: labelFontFamily ?? merge.AUTOCOMPLETE.label.font.family,
5769
- lineHeight: labelLineHeight ?? merge.AUTOCOMPLETE.label.lineHeight,
5770
- marginBottom: labelMarginBottom ?? merge.AUTOCOMPLETE.label.marginBottom,
5771
- textTransform: labelTextTransform ?? merge.AUTOCOMPLETE.label.textTransform
6740
+ color: labelColor ?? configStyles.AUTOCOMPLETE.label.color,
6741
+ display: labelDisplay ?? configStyles.AUTOCOMPLETE.label.display,
6742
+ maxWidth: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth,
6743
+ fontSize: labelSize ?? configStyles.AUTOCOMPLETE.label.font.size,
6744
+ fontStyle: labelStyle ?? configStyles.AUTOCOMPLETE.label.font.style,
6745
+ fontWeight: labelWeight ?? configStyles.AUTOCOMPLETE.label.font.weight,
6746
+ fontFamily: labelFontFamily ?? configStyles.AUTOCOMPLETE.label.font.family,
6747
+ lineHeight: labelLineHeight ?? configStyles.AUTOCOMPLETE.label.lineHeight,
6748
+ marginBottom: labelMarginBottom ?? configStyles.AUTOCOMPLETE.label.marginBottom,
6749
+ textTransform: labelTextTransform ?? configStyles.AUTOCOMPLETE.label.textTransform
5772
6750
  }
5773
6751
  }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
5774
6752
  style: {
5775
- display: contentDisplay ?? merge.AUTOCOMPLETE.parent.display,
5776
- position: contentPosition ?? merge.AUTOCOMPLETE.parent.position,
6753
+ display: contentDisplay ?? configStyles.AUTOCOMPLETE.parent.display,
6754
+ position: contentPosition ?? configStyles.AUTOCOMPLETE.parent.position,
5777
6755
  width: '100%',
5778
- flexDirection: contentDirection ?? merge.AUTOCOMPLETE.parent.direction
6756
+ flexDirection: contentDirection ?? configStyles.AUTOCOMPLETE.parent.direction
5779
6757
  }
5780
6758
  }, /*#__PURE__*/React__default["default"].createElement("input", _extends({
5781
6759
  id: id,
@@ -5788,39 +6766,39 @@ const Autocomplete = ({
5788
6766
  onMouseEnter: handleMouseEnter,
5789
6767
  onMouseLeave: handleMouseLeave,
5790
6768
  placeholder: placeHolder ?? '',
5791
- autoComplete: autoComplete ?? merge.AUTOCOMPLETE.autoComplete,
6769
+ autoComplete: autoComplete ?? configStyles.AUTOCOMPLETE.autoComplete,
5792
6770
  style: {
5793
6771
  border: 'none',
5794
6772
  outline: 'none',
5795
6773
  maxWidth: '100%',
5796
6774
  transition: 'all 240ms',
5797
6775
  cursor: disabled ? 'not-allowed' : 'auto',
5798
- color: contentTopColor ?? merge.AUTOCOMPLETE.color,
5799
- fontSize: contentTopSize ?? merge.AUTOCOMPLETE.font.size,
5800
- fontStyle: contentTopStyle ?? merge.AUTOCOMPLETE.font.style,
5801
- fontFamily: contentTopFamily ?? merge.AUTOCOMPLETE.font.family,
5802
- fontWeight: contentTopWeight ?? merge.AUTOCOMPLETE.font.weight,
5803
- backgroundColor: disabled && (backgroundDisableColor ?? merge.AUTOCOMPLETE.colors.backgroundDisable),
5804
- height: contentTopHeight ?? merge.AUTOCOMPLETE.height,
5805
- padding: contentTopPadding ?? merge.AUTOCOMPLETE.padding,
5806
- display: contentTopDisplay ?? merge.AUTOCOMPLETE.display,
5807
- borderRadius: contentTopRadius ?? merge.AUTOCOMPLETE.radius,
5808
- boxSizing: contentTopBoxSizing ?? merge.AUTOCOMPLETE.box.sizing,
5809
- lineHeight: contentTopLineHeight ?? merge.AUTOCOMPLETE.lineHeight,
5810
- flexDirection: contentTopDirection ?? merge.AUTOCOMPLETE.direction,
5811
- 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
6776
+ color: contentTopColor ?? configStyles.AUTOCOMPLETE.color,
6777
+ fontSize: contentTopSize ?? configStyles.AUTOCOMPLETE.font.size,
6778
+ fontStyle: contentTopStyle ?? configStyles.AUTOCOMPLETE.font.style,
6779
+ fontFamily: contentTopFamily ?? configStyles.AUTOCOMPLETE.font.family,
6780
+ fontWeight: contentTopWeight ?? configStyles.AUTOCOMPLETE.font.weight,
6781
+ backgroundColor: disabled && (backgroundDisableColor ?? configStyles.AUTOCOMPLETE.colors.backgroundDisable),
6782
+ height: contentTopHeight ?? configStyles.AUTOCOMPLETE.height,
6783
+ padding: contentTopPadding ?? configStyles.AUTOCOMPLETE.padding,
6784
+ display: contentTopDisplay ?? configStyles.AUTOCOMPLETE.display,
6785
+ borderRadius: contentTopRadius ?? configStyles.AUTOCOMPLETE.radius,
6786
+ boxSizing: contentTopBoxSizing ?? configStyles.AUTOCOMPLETE.box.sizing,
6787
+ lineHeight: contentTopLineHeight ?? configStyles.AUTOCOMPLETE.lineHeight,
6788
+ flexDirection: contentTopDirection ?? configStyles.AUTOCOMPLETE.direction,
6789
+ 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
5812
6790
  }
5813
6791
  }, props)), innerError ? /*#__PURE__*/React__default["default"].createElement("span", {
5814
6792
  style: {
5815
6793
  left: '0px',
5816
6794
  position: 'absolute',
5817
- color: errorColor ?? merge.AUTOCOMPLETE.error.color,
5818
- fontSize: errorSize ?? merge.AUTOCOMPLETE.error.font.size,
5819
- fontStyle: errorStyle ?? merge.AUTOCOMPLETE.error.font.style,
5820
- fontWeight: errorWeight ?? merge.AUTOCOMPLETE.error.font.weight,
5821
- fontFamily: errorFamily ?? merge.AUTOCOMPLETE.error.font.family,
5822
- top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${merge.AUTOCOMPLETE.error.marginTop})`,
5823
- maxWidth: contentTopMaxWidth ?? merge.AUTOCOMPLETE.maxWidth
6795
+ color: errorColor ?? configStyles.AUTOCOMPLETE.error.color,
6796
+ fontSize: errorSize ?? configStyles.AUTOCOMPLETE.error.font.size,
6797
+ fontStyle: errorStyle ?? configStyles.AUTOCOMPLETE.error.font.style,
6798
+ fontWeight: errorWeight ?? configStyles.AUTOCOMPLETE.error.font.weight,
6799
+ fontFamily: errorFamily ?? configStyles.AUTOCOMPLETE.error.font.family,
6800
+ top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${configStyles.AUTOCOMPLETE.error.marginTop})`,
6801
+ maxWidth: contentTopMaxWidth ?? configStyles.AUTOCOMPLETE.maxWidth
5824
6802
  }
5825
6803
  }, innerError) : '', optionList));
5826
6804
  };