@xaypay/tui 0.2.0 → 0.2.2

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
@@ -468,35 +468,799 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
468
468
  }, iconDelItem ? iconDelItem : /*#__PURE__*/React__default["default"].createElement(SvgListItemDelete, null))));
469
469
  });
470
470
 
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);
471
+ const boxSizing = 'border-box';
472
+ const fontStyle = 'normal';
473
+ const fontFamily = 'Arial';
474
+ const fontWeight = 500;
475
+ const transparent = 'transparent';
476
+ const presetColors = {
477
+ info: '#F24C4C',
478
+ dark: '#3C393E',
479
+ light: '#EEEEEE',
480
+ extraLight: '#FBFBFB',
481
+ danger: '#EE0000',
482
+ success: '#0DA574',
483
+ warning: '#FECD29',
484
+ secondary: '#D1D1D1',
485
+ primary: '#051942',
486
+ primarySecond: '#00236A'
487
+ };
488
+ const fontObject = {
489
+ size: '16px',
490
+ style: fontStyle,
491
+ weight: fontWeight,
492
+ family: fontFamily
493
+ };
494
+ var packageResult = {
495
+ // default properties for <Button /> component
496
+ BUTTON: {
497
+ type: 'button',
498
+ width: '100%',
499
+ height: '46px',
500
+ color: 'white',
501
+ contentWidth: false,
502
+ border: 'none',
503
+ radius: '6px',
504
+ cursor: 'pointer',
505
+ padding: '12px 20px',
506
+ disabled: false,
507
+ className: '',
508
+ transition: 'background-color 240ms, color 240ms',
509
+ box: {
510
+ sizing: boxSizing
511
+ },
512
+ colors: {
513
+ background: 'rgba(0, 35, 106, 1)',
514
+ backgroundHover: '#CB3A3A',
515
+ disabled: 'rgba(60, 57, 62, 1)',
516
+ disabledLine: 'rgba(60, 57, 62, 1)',
517
+ disabledBackground: 'rgba(238, 238, 238, 1)'
518
+ },
519
+ font: {
520
+ ...fontObject
521
+ },
522
+ text: {
523
+ transform: 'none',
524
+ colors: {
525
+ hover: '#001745'
526
+ }
527
+ },
528
+ icon: {
529
+ marginRight: '10px'
530
+ }
531
+ },
532
+ // default properties for <Input /> component
533
+ INPUT: {
534
+ type: 'text',
535
+ width: '100%',
536
+ color: 'rgb(60, 57, 62)',
537
+ height: '46px',
538
+ radius: '0px',
539
+ padding: '12px 15px',
540
+ disabled: false,
541
+ required: false,
542
+ className: '',
543
+ maxLength: 255,
544
+ iconWidth: '64px',
545
+ autoComplete: 'off',
546
+ box: {
547
+ sizing: boxSizing,
548
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
549
+ // like border
550
+ shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
551
+ },
552
+ colors: {
553
+ background: 'white',
554
+ backgroundDisable: presetColors.secondary
555
+ },
556
+ font: {
557
+ ...fontObject
558
+ },
559
+ label: {
560
+ color: presetColors.dark,
561
+ display: 'block',
562
+ lineHeight: '22px',
563
+ marginBottom: '6px',
564
+ font: {
565
+ ...fontObject
566
+ }
567
+ },
568
+ error: {
569
+ left: '0px',
570
+ color: presetColors.danger,
571
+ zIndex: '1',
572
+ className: '',
573
+ marginTop: '10px',
574
+ lineHeight: '19px',
575
+ font: {
576
+ ...fontObject
577
+ }
578
+ },
579
+ tel: {
580
+ display: 'flex',
581
+ alignItems: 'center',
582
+ justifyContent: 'center',
583
+ borderRight: {
584
+ width: '1px',
585
+ style: 'solid',
586
+ color: presetColors.secondary,
587
+ colors: {
588
+ hover: presetColors.dark
589
+ }
590
+ }
591
+ }
592
+ },
593
+ // default properties for <Tooltip /> component
594
+ TOOLTIP: {
595
+ type: 'top',
596
+ color: 'white',
597
+ width: '100px',
598
+ radius: '3px',
599
+ className: '',
600
+ // icon: React.createElement(SvgChecked, { fill: 'red' }),
601
+
602
+ parent: {
603
+ width: '46px',
604
+ height: '46px',
605
+ radius: '0px',
606
+ colors: {
607
+ background: transparent
608
+ }
609
+ },
610
+ colors: {
611
+ background: '#03a9f4'
612
+ },
613
+ font: {
614
+ ...fontObject
615
+ }
616
+ },
617
+ // default properties for <Typography /> component
618
+ TYPOGRAPHY: {
619
+ radius: '0px',
620
+ border: 'none',
621
+ cursor: 'default',
622
+ className: '',
623
+ colors: {
624
+ p: presetColors.dark,
625
+ h1: presetColors.dark,
626
+ h2: presetColors.dark,
627
+ h3: presetColors.dark,
628
+ h4: presetColors.dark,
629
+ h5: presetColors.dark,
630
+ h6: presetColors.dark,
631
+ span: presetColors.dark,
632
+ backgroundp: transparent,
633
+ backgroundh1: transparent,
634
+ backgroundh2: transparent,
635
+ backgroundh3: transparent,
636
+ backgroundh4: transparent,
637
+ backgroundh5: transparent,
638
+ backgroundh6: transparent,
639
+ backgroundspan: transparent
640
+ },
641
+ font: {
642
+ sizep: '13px',
643
+ sizeh1: '70px',
644
+ sizeh2: '50px',
645
+ sizeh3: '38px',
646
+ sizeh4: '24px',
647
+ sizeh5: '20px',
648
+ sizeh6: '14px',
649
+ sizespan: '12px',
650
+ stylep: fontStyle,
651
+ styleh1: fontStyle,
652
+ styleh2: fontStyle,
653
+ styleh3: fontStyle,
654
+ styleh4: fontStyle,
655
+ styleh5: fontStyle,
656
+ styleh6: fontStyle,
657
+ stylespan: fontStyle,
658
+ weightp: fontWeight,
659
+ weighth1: fontWeight,
660
+ weighth2: fontWeight,
661
+ weighth3: fontWeight,
662
+ weighth4: fontWeight,
663
+ weighth5: fontWeight,
664
+ weighth6: fontWeight,
665
+ weightspan: fontWeight,
666
+ familyp: fontFamily,
667
+ familyh1: fontFamily,
668
+ familyh2: fontFamily,
669
+ familyh3: fontFamily,
670
+ familyh4: fontFamily,
671
+ familyh5: fontFamily,
672
+ familyh6: fontFamily,
673
+ familyspan: fontFamily
674
+ },
675
+ text: {
676
+ alignp: 'left',
677
+ alignh1: 'left',
678
+ alignh2: 'left',
679
+ alignh3: 'left',
680
+ alignh4: 'left',
681
+ alignh5: 'left',
682
+ alignh6: 'left',
683
+ alignspan: 'left',
684
+ shadowp: 'none',
685
+ shadowh1: 'none',
686
+ shadowh2: 'none',
687
+ shadowh3: 'none',
688
+ shadowh4: 'none',
689
+ shadowh5: 'none',
690
+ shadowh6: 'none',
691
+ shadowspan: 'none',
692
+ transformp: 'none',
693
+ transformh1: 'none',
694
+ transformh2: 'none',
695
+ transformh3: 'none',
696
+ transformh4: 'none',
697
+ transformh5: 'none',
698
+ transformh6: 'none',
699
+ transformspan: 'none',
700
+ decorationp: 'none',
701
+ decorationh1: 'none',
702
+ decorationh2: 'none',
703
+ decorationh3: 'none',
704
+ decorationh4: 'none',
705
+ decorationh5: 'none',
706
+ decorationh6: 'none',
707
+ decorationspan: 'none',
708
+ lineHeightp: 'normal',
709
+ lineHeighth1: 'normal',
710
+ lineHeighth2: 'normal',
711
+ lineHeighth3: 'normal',
712
+ lineHeighth4: 'normal',
713
+ lineHeighth5: 'normal',
714
+ lineHeighth6: 'normal',
715
+ lineHeightspan: 'normal'
716
+ }
717
+ },
718
+ // default properties for <Select /> component
719
+ SELECT: {
720
+ dots: false,
721
+ className: '',
722
+ showCloseIcon: true,
723
+ // arrowIcon: React.createElement(SvgChecked, { fill: 'green' }),
724
+ // closeIcon: React.createElement(SvgChecked, { fill: 'green' }),
725
+
726
+ box: {
727
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
728
+ // like border
729
+ shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
730
+ },
731
+ label: {
732
+ color: presetColors.dark,
733
+ display: 'block',
734
+ lineHeight: '22px',
735
+ marginBottom: '6px',
736
+ textTransform: 'none',
737
+ font: {
738
+ ...fontObject
739
+ }
740
+ },
741
+ selected: {
742
+ color: presetColors.dark,
743
+ cursor: 'pointer',
744
+ radius: '6px',
745
+ padding: '0px 15px',
746
+ minHeight: '46px',
747
+ lineHeight: '22px',
748
+ transition: 'border-color 240ms',
749
+ box: {
750
+ sizing: boxSizing
751
+ },
752
+ colors: {
753
+ hover: '#373538',
754
+ background: presetColors.extraLight,
755
+ backgroundDisable: presetColors.secondary
756
+ },
757
+ font: {
758
+ ...fontObject
759
+ }
760
+ },
761
+ options: {
762
+ radius: '6px',
763
+ colors: {
764
+ background: presetColors.extraLight
765
+ },
766
+ box: {
767
+ shadow: '0 0 10px rgba(60, 57, 62, 0.08)'
768
+ },
769
+ item: {
770
+ color: presetColors.dark,
771
+ cursor: 'pointer',
772
+ padding: '0px 15px',
773
+ minHeight: '46px',
774
+ lineHeight: '25px',
775
+ marginBottom: '2px',
776
+ box: {
777
+ sizing: boxSizing
778
+ },
779
+ colors: {
780
+ hover: presetColors.primarySecond,
781
+ backgroud: '#ffffff',
782
+ backgroudHover: 'unset'
783
+ },
784
+ font: {
785
+ ...fontObject
786
+ }
787
+ }
788
+ },
789
+ error: {
790
+ color: 'rgb(238, 0, 0)',
791
+ marginTop: '10px',
792
+ zIndex: 10,
793
+ box: {
794
+ shadow: `0 0 0 2px ${presetColors.danger}`
795
+ },
796
+ font: {
797
+ ...fontObject
798
+ }
799
+ }
800
+ },
801
+ // default properties for <Textarea /> component
802
+ TEXTAREA: {
803
+ color: presetColors.dark,
804
+ width: '400px',
805
+ height: '134px',
806
+ radius: '6px',
807
+ resize: 'none',
808
+ padding: '12px 15px',
809
+ minWidth: '200px',
810
+ maxWidth: '500px',
811
+ minHeight: '100px',
812
+ maxHeight: '300px',
813
+ maxLength: 1500,
814
+ className: '',
815
+ box: {
816
+ sizing: boxSizing,
817
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
818
+ // like border
819
+
820
+ colors: {
821
+ hover: `0 0 0 2px ${presetColors.dark}`,
822
+ // like border color
823
+ focus: `0 0 0 2px ${presetColors.primarySecond}` // like border color
824
+ }
825
+ },
826
+ colors: {
827
+ background: 'white'
828
+ },
829
+ label: {
830
+ color: presetColors.dark,
831
+ display: 'block',
832
+ marginBottom: '10px',
833
+ font: {
834
+ ...fontObject
835
+ }
836
+ },
837
+ font: {
838
+ ...fontObject
839
+ },
840
+ error: {
841
+ color: '#E40E00',
842
+ marginTop: '10px',
843
+ box: {
844
+ shadow: `0 0 0 2px ${presetColors.danger}` // like border
845
+ },
846
+ font: {
847
+ ...fontObject
848
+ }
849
+ }
850
+ },
851
+ // default properties for <NewAutocomplete /> component
852
+ AUTOCOMPLETE: {
853
+ className: '',
854
+ searchCount: 3,
855
+ autoComplete: 'off',
856
+ showOptionDuration: '640ms',
857
+ color: presetColors.dark,
858
+ radius: '6px',
859
+ height: '46px',
860
+ padding: '0px 15px',
861
+ display: 'flex',
862
+ maxWidth: '400px',
863
+ direction: 'row',
864
+ lineHeight: '22px',
865
+ box: {
866
+ sizing: boxSizing,
867
+ shadow: `0 0 0 2px ${presetColors.secondary}`,
868
+ // like border
869
+ shadowHover: `0 0 0 2px ${presetColors.dark}`,
870
+ // like border
871
+ shadowActive: `0 0 0 2px ${presetColors.primarySecond}` // like border
872
+ },
873
+ font: {
874
+ ...fontObject
875
+ },
876
+ parent: {
877
+ display: 'flex',
878
+ direction: 'column',
879
+ position: 'relative'
880
+ },
881
+ colors: {
882
+ backgroundDisable: presetColors.secondary
883
+ },
884
+ label: {
885
+ color: presetColors.dark,
886
+ display: 'block',
887
+ lineHeight: '22px',
888
+ marginBottom: '6px',
889
+ textTransform: 'none',
890
+ font: {
891
+ ...fontObject
892
+ }
893
+ },
894
+ contentBottom: {
895
+ left: '0px',
896
+ width: '100%',
897
+ zIndex: 1,
898
+ radius: '6px',
899
+ maxWidth: '400px',
900
+ overflow: 'hidden',
901
+ position: 'absolute',
902
+ minHeight: '0px',
903
+ inner: {
904
+ display: 'flex',
905
+ overflowY: 'auto',
906
+ maxHeight: '234px',
907
+ overflowX: 'hidden',
908
+ direction: 'column'
909
+ },
910
+ row: {
911
+ color: presetColors.dark,
912
+ height: '46px',
913
+ cursor: 'pointer',
914
+ display: 'flex',
915
+ padding: '0px 15px',
916
+ lineHeight: '22px',
917
+ alignItems: 'center',
918
+ transition: 'all 240ms',
919
+ marginBottom: '2px',
920
+ colors: {
921
+ hover: presetColors.primarySecond,
922
+ background: '#ffffff',
923
+ backgroundHover: 'initial'
924
+ },
925
+ font: {
926
+ ...fontObject
927
+ }
928
+ },
929
+ colors: {
930
+ background: presetColors.extraLight
931
+ },
932
+ box: {
933
+ shadow: '0 0 10px rgba(60, 57, 62, 0.08)',
934
+ sizing: boxSizing
935
+ }
936
+ },
937
+ error: {
938
+ color: presetColors.danger,
939
+ marginTop: '10px',
940
+ font: {
941
+ ...fontObject
942
+ },
943
+ box: {
944
+ shadow: `0 0 0 2px ${presetColors.danger}` // like border
945
+ }
946
+ },
947
+ innerError: {
948
+ padding: '0px 15px',
949
+ colors: {
950
+ background: 'gray'
951
+ }
952
+ }
953
+ },
954
+ // default properties for <Captcha /> component
955
+ CAPTCHA: {
956
+ className: '',
957
+ label: {
958
+ color: presetColors.dark,
959
+ font: {
960
+ ...fontObject
961
+ }
962
+ }
963
+ },
964
+ // default properties for <File /> component
965
+ FILE: {
966
+ color: presetColors.dark,
967
+ radius: '6px',
968
+ height: '200px',
969
+ maxWidth: '440px',
970
+ className: '',
971
+ areaImage: {
972
+ width: '27.8rem',
973
+ height: 'auto'
974
+ },
975
+ or: 'կամ',
976
+ upload: 'Բեռնել',
977
+ uploadColor: presetColors.success,
978
+ putFileHere: 'Տեղադրել ֆայլը այստեղ',
979
+ sizeText: 'Առավելագույնը',
980
+ timeForRemoveError: 4000,
981
+ extentionsRowMarginTop: '40px',
982
+ border: {
983
+ width: '2px',
984
+ style: 'dashed',
985
+ color: presetColors.secondary,
986
+ colors: {
987
+ hover: presetColors.primarySecond
988
+ }
989
+ },
990
+ colors: {
991
+ background: '#F8F8F8',
992
+ backgroundHidden: 'rgba(60, 57, 62, 0.4)'
993
+ },
994
+ label: {
995
+ color: '#4A4A4D',
996
+ font: {
997
+ ...fontObject
998
+ }
999
+ },
1000
+ font: {
1001
+ ...fontObject
1002
+ },
1003
+ error: {
1004
+ color: presetColors.danger,
1005
+ font: {
1006
+ ...fontObject
1007
+ },
1008
+ format: 'ֆայլի սխալ ֆորմատ',
1009
+ maxSize: 'Առավելագույն ծավալ',
1010
+ noChoosenFile: 'Ֆայլը ընտրված չէ'
1011
+ },
1012
+ progress: {
1013
+ color: '#4A4A4D',
1014
+ colors: {
1015
+ track: '#E5E8E8',
1016
+ failed: '#E40E00',
1017
+ success: '#069768',
1018
+ loading: presetColors.primary
1019
+ },
1020
+ font: {
1021
+ ...fontObject
1022
+ }
1023
+ },
1024
+ uploadBtn: {
1025
+ label: 'Բեռնել',
1026
+ color: '#fff',
1027
+ height: '30px',
1028
+ colors: {
1029
+ hover: '#fff',
1030
+ background: 'rgba(0, 35, 106, 1)',
1031
+ backgroundHover: 'rgba(0, 35, 106, 1)'
1032
+ },
1033
+ font: {
1034
+ ...fontObject
1035
+ }
1036
+ },
1037
+ listItem: {
1038
+ color: '#4a4a4d',
1039
+ height: '70px',
1040
+ padding: '14px 20px',
1041
+ colors: {
1042
+ background: '#F6F8F8',
1043
+ backgroundError: '#F6F8F8'
1044
+ },
1045
+ font: {
1046
+ ...fontObject
1047
+ },
1048
+ error: {
1049
+ color: '#E40E00',
1050
+ font: {
1051
+ ...fontObject
1052
+ }
1053
+ }
1054
+ },
1055
+ icon: {
1056
+ // comment here for example,
1057
+
1058
+ // pdf: React.createElement(SvgChecked, { fill: 'green' }),
1059
+ // png: React.createElement(SvgChecked, { fill: 'green' }),
1060
+ // jpg: React.createElement(SvgChecked, { fill: 'green' }),
1061
+ // jpeg: React.createElement(SvgChecked, { fill: 'green' }),
1062
+ // heic: React.createElement(SvgChecked, { fill: 'green' }),
1063
+ // wrong: React.createElement(SvgChecked, { fill: 'green' }),
1064
+ // upload: React.createElement(SvgChecked, { fill: 'green' }),
1065
+ // required: React.createElement(SvgChecked, { fill: 'green' }),
1066
+ // removeFile: React.createElement(SvgChecked, { fill: 'green' }),
1067
+ // deleteComponent: React.createElement(SvgChecked, { fill: 'green' }),
1068
+ // deleteItem: React.createElement(SvgUnchecked, { fill: 'green' }),
1069
+ }
1070
+ },
1071
+ // default properties for <Modal /> component
1072
+ MODAL: {
1073
+ width: '',
1074
+ height: '',
1075
+ maxWidth: '95%',
1076
+ minWidth: '320px',
1077
+ maxHeight: '95vh',
1078
+ minHeight: '200px',
1079
+ radius: '14px',
1080
+ padding: '20px 20px 20px',
1081
+ className: '',
1082
+ alignItems: 'center',
1083
+ outsideClose: true,
1084
+ justifyContent: 'center',
1085
+ grayDecorHeight: '80px',
1086
+ border: {
1087
+ width: '20px',
1088
+ style: 'solid',
1089
+ color: transparent
1090
+ },
1091
+ colors: {
1092
+ background: 'white',
1093
+ backgroundLayer: 'rgba(0,0,0,0.4)'
1094
+ },
1095
+ header: {
1096
+ color: presetColors.primarySecond,
1097
+ height: '30px',
1098
+ font: {
1099
+ ...fontObject
1100
+ }
1101
+ },
1102
+ image: {
1103
+ width: '',
1104
+ margin: '0px',
1105
+ height: '100%',
1106
+ maxWidth: '100%',
1107
+ wrapWidth: '100%',
1108
+ wrapHeight: '100%'
1109
+ },
1110
+ icon: {
1111
+ // zoom: React.createElement(SvgChecked, { fill: 'green' }),
1112
+ // prev: React.createElement(SvgChecked, { fill: 'green' }),
1113
+ // next: React.createElement(SvgChecked, { fill: 'green' }),
1114
+ // close: React.createElement(SvgChecked, { fill: 'green' }),
1115
+ // closeSlide: React.createElement(SvgChecked, { fill: 'green' }),
1116
+ },
1117
+ closeAreaBackgroundColor: 'linear-gradient(to bottom, rgb(60, 57, 62), rgba(60, 57, 62, 0))' // for close div background color
1118
+ },
1119
+ // default properties for <Checkbox /> component
1120
+ CHECKBOX: {
1121
+ className: '',
1122
+ marginBottom: '10px',
1123
+ colors: {
1124
+ checked: presetColors.primarySecond,
1125
+ unChecked: presetColors.secondary
1126
+ },
1127
+ label: {
1128
+ marginLeft: '10px'
1129
+ }
1130
+
1131
+ // checkedIcon: React.createElement(SvgChecked, { fill: 'green' }),
1132
+ // unCheckedIcon: React.createElement(<SvgUnchecked fill="#E00" />),
1133
+ },
1134
+ // default properties for <Table /> component
1135
+ TABLE: {
1136
+ className: '',
1137
+ textAlign: 'center',
1138
+ column: {
1139
+ maxWidth: '',
1140
+ minWidth: ''
1141
+ },
1142
+ head: {
1143
+ color: presetColors.extraLight,
1144
+ radius: '14px',
1145
+ padding: '11px 20px',
1146
+ colors: {
1147
+ background: presetColors.primarySecond
1148
+ },
1149
+ font: {
1150
+ ...fontObject
1151
+ }
1152
+ },
1153
+ body: {
1154
+ color: presetColors.dark,
1155
+ padding: '11px 20px',
1156
+ box: {
1157
+ shadow: ''
1158
+ },
1159
+ row: {
1160
+ asItem: false,
1161
+ radius: '6px',
1162
+ marginTop: '10px',
1163
+ colors: {
1164
+ backgroud: transparent
1165
+ },
1166
+ box: {
1167
+ shadow: ''
1168
+ },
1169
+ border: '1px solid',
1170
+ borderColor: presetColors.light
1171
+ },
1172
+ font: {
1173
+ ...fontObject
1174
+ }
1175
+ },
1176
+ openList: {
1177
+ color: '#A3A5A9',
1178
+ font: {
1179
+ ...fontObject
1180
+ }
1181
+ }
1182
+ },
1183
+ // default properties for <Pagination /> component
1184
+ PAGINATION: {
1185
+ className: '' // for pagination class
1186
+ },
1187
+ // default properties for <Toaster /> component
1188
+ TOASTER: {
1189
+ className: '',
1190
+ icon: {
1191
+ // info: React.createElement(SvgChecked, { just: 'must' }),
1192
+ // warn: React.createElement(SvgUnchecked, { just: 'must' }),
1193
+ // close: React.createElement(SvgChecked, { fill: 'green' }),
1194
+ // error: React.createElement(SvgChecked, { fill: 'green' }),
1195
+ // success: React.createElement(SvgChecked, { fill: 'green' }),
1196
+ }
1197
+ },
1198
+ // default properties for <Stepper /> component
1199
+ STEPPER: {
1200
+ className: '' // for stepper class
1201
+ },
1202
+ // default properties for <Radio /> component
1203
+ RADIO: {
1204
+ size: '20px',
1205
+ className: '',
1206
+ marginRight: '10px',
1207
+ item: {
1208
+ marginRight: '10px',
1209
+ marginBottom: '10px'
1210
+ },
1211
+ border: {
1212
+ width: '2px',
1213
+ style: 'solid',
1214
+ color: '#E7E7E7',
1215
+ activeColor: '#3C3D46'
1216
+ },
1217
+ label: {
1218
+ color: '#3C3D46',
1219
+ lineHeight: '21px',
1220
+ font: {
1221
+ ...fontObject
1222
+ }
1223
+ }
1224
+ },
1225
+ // default properties for <Form /> component
1226
+ FORM: {
1227
+ className: ''
478
1228
  }
479
- if (projectImportConfig['../../../../tui.config.js']) {
480
- projectResult = projectImportConfig['../../../../tui.config.js']().then(module => module.default);
1229
+ };
1230
+
1231
+ async function getPProps() {
1232
+ let projectResult = {};
1233
+ const projectPath = `../../../../tui.config.js`;
1234
+ async function loadComponent(componentName) {
1235
+ try {
1236
+ const Component = await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })( /* @vite-ignore */componentName);
1237
+ return Component.default;
1238
+ } catch (err) {
1239
+ console.error(`Error loading component: ${componentName}`);
1240
+ return null;
1241
+ }
1242
+ }
1243
+ const projectImportConfig = await loadComponent(projectPath);
1244
+ if (projectImportConfig) {
1245
+ projectResult = projectImportConfig;
481
1246
  }
482
- return type === true ? packageResult : projectResult;
1247
+ return {
1248
+ packageResult,
1249
+ projectResult
1250
+ };
483
1251
  }
484
-
485
- let projectConfig = {};
486
- let packageConfig = {};
487
- async function getProps(type) {
1252
+ async function getProps() {
488
1253
  let props;
489
1254
  try {
490
- const newProps = await getPProps(type);
491
- props = ___default["default"].merge(type === true ? packageConfig : projectConfig, newProps);
1255
+ const newProps = await getPProps();
1256
+ props = ___default["default"].merge(newProps.packageResult, newProps.projectResult);
492
1257
  } catch (error) {
493
1258
  console.error('Error in getProps:', error);
494
1259
  }
495
1260
  return props;
496
1261
  }
497
- packageConfig = getProps(true);
498
- packageConfig = getProps();
499
- const merge = ___default["default"].merge(packageConfig, projectConfig);
1262
+
1263
+ var configStylesPromise = getProps();
500
1264
  const hasOwnerProperty = (object, property) => {
501
1265
  return Object.prototype.hasOwnProperty.call(object, property);
502
1266
  };
@@ -534,8 +1298,9 @@ const Button = ({
534
1298
  disabledBackgroundColor,
535
1299
  ...props
536
1300
  }) => {
1301
+ const [classProps, setClassProps] = React.useState({});
1302
+ const [configStyles, setConfigStyles] = React.useState({});
537
1303
  const [isHover, setIsHover] = React.useState(false);
538
- const classProps = classnames__default["default"](className ?? merge.BUTTON.className);
539
1304
  const handleMouseEnter = () => {
540
1305
  setIsHover(true);
541
1306
  };
@@ -546,41 +1311,51 @@ const Button = ({
546
1311
  if (!label && !icon) {
547
1312
  alert('Add icon or label props on Button component');
548
1313
  }
1314
+ configStylesPromise.then(data => {
1315
+ setClassProps(() => classnames__default["default"](className ?? data.BUTTON.className));
1316
+ setConfigStyles(() => {
1317
+ return {
1318
+ ...data
1319
+ };
1320
+ });
1321
+ }, error => {
1322
+ console.error(error);
1323
+ });
549
1324
  }, []);
550
- return /*#__PURE__*/React__default["default"].createElement("button", _extends({
1325
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, configStyles.BUTTON && /*#__PURE__*/React__default["default"].createElement("button", _extends({
551
1326
  style: {
552
1327
  display: 'flex',
553
1328
  outline: 'none',
554
1329
  alignItems: 'center',
555
1330
  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
1331
+ fontSize: size ?? configStyles.BUTTON.font.size,
1332
+ fontStyle: style ?? configStyles.BUTTON.font.style,
1333
+ fontFamily: font ?? configStyles.BUTTON.font.family,
1334
+ height: height ?? configStyles.BUTTON.height,
1335
+ fontWeight: weight ?? configStyles.BUTTON.font.weight,
1336
+ padding: padding ?? configStyles.BUTTON.padding,
1337
+ borderRadius: radius ?? configStyles.BUTTON.radius,
1338
+ boxSizing: boxSizing ?? configStyles.BUTTON.box.sizing,
1339
+ transition: transition ?? configStyles.BUTTON.transition,
1340
+ border: outline ? 'none' : border ?? configStyles.BUTTON.border,
1341
+ width: contentWidth ? 'auto' : width ?? configStyles.BUTTON.width,
1342
+ cursor: disabled ? 'not-allowed' : cursor ?? configStyles.BUTTON.cursor,
1343
+ textTransform: textTransform ?? configStyles.BUTTON.text.transform,
1344
+ 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,
1345
+ 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',
1346
+ 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
1347
  },
573
- type: type ?? merge.BUTTON.type,
574
- disabled: disabled ?? merge.BUTTON.disabled,
1348
+ type: type ?? configStyles.BUTTON.type,
1349
+ disabled: disabled ?? configStyles.BUTTON.disabled,
575
1350
  onClick: disabled ? _ => _ : type !== 'submit' ? onClick ? onClick : () => alert('Add click event handler on Button component') : _ => _,
576
1351
  onMouseEnter: handleMouseEnter,
577
1352
  onMouseLeave: handleMouseLeave,
578
1353
  className: classProps
579
1354
  }, props), isHover && hoverIcon ? hoverIcon : icon ?? null, ' ', label && /*#__PURE__*/React__default["default"].createElement("span", {
580
1355
  style: {
581
- marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : merge.BUTTON.icon.marginRight : '0px'
1356
+ marginLeft: icon ? btnIconMarginRight ? btnIconMarginRight : configStyles.BUTTON.icon.marginRight : '0px'
582
1357
  }
583
- }, label), ' ', !icon && !label && 'Add icon or label prop on Button component');
1358
+ }, label), ' ', !icon && !label && 'Add icon or label prop on Button component'));
584
1359
  };
585
1360
  Button.propTypes = {
586
1361
  type: PropTypes__default["default"].string,
@@ -826,10 +1601,11 @@ const File = /*#__PURE__*/React.forwardRef(({
826
1601
  }, ref) => {
827
1602
  const inpRef = React.useRef(null);
828
1603
  const memoizedItems = React.useMemo(() => filesArray, [filesArray]);
829
- const classProps = classnames__default["default"](className ?? merge.FILE.className);
830
1604
  const [error, setError] = React.useState('');
831
1605
  const [isHover, setIsHover] = React.useState(false);
1606
+ const [classProps, setClassProps] = React.useState({});
832
1607
  const [singleFile, setSingleFile] = React.useState(null);
1608
+ const [configStyles, setConfigStyles] = React.useState({});
833
1609
  const [choosenFileCount, setChoosenFileCount] = React.useState(0);
834
1610
  const [image, setImage] = React.useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url : 'pdf' : null : null);
835
1611
  const handleRemoveComponent = () => {
@@ -872,14 +1648,14 @@ const File = /*#__PURE__*/React.forwardRef(({
872
1648
  change({
873
1649
  file: file[ix],
874
1650
  uuid: v4(),
875
- check: formatError ?? merge.FILE.error.format
1651
+ check: formatError ?? configStyles.FILE.error.format
876
1652
  });
877
1653
  }
878
1654
  } else {
879
1655
  change({
880
1656
  file: file[ix],
881
1657
  uuid: v4(),
882
- check: maxSizeError ?? merge.FILE.error.maxSize
1658
+ check: maxSizeError ?? configStyles.FILE.error.maxSize
883
1659
  });
884
1660
  }
885
1661
  }
@@ -901,14 +1677,14 @@ const File = /*#__PURE__*/React.forwardRef(({
901
1677
  change({
902
1678
  file: file[ix],
903
1679
  uuid: v4(),
904
- check: formatError ?? merge.FILE.error.format
1680
+ check: formatError ?? configStyles.FILE.error.format
905
1681
  });
906
1682
  }
907
1683
  } else {
908
1684
  change({
909
1685
  file: file[ix],
910
1686
  uuid: v4(),
911
- check: maxSizeError ?? merge.FILE.error.maxSize
1687
+ check: maxSizeError ?? configStyles.FILE.error.maxSize
912
1688
  });
913
1689
  }
914
1690
  }
@@ -922,7 +1698,7 @@ const File = /*#__PURE__*/React.forwardRef(({
922
1698
  setImage(null);
923
1699
  handleUploadFiles(file);
924
1700
  if (file.length === 0 && memoizedItems.length === 0) {
925
- setError(noChoosenFile ?? merge.FILE.error.noChoosen);
1701
+ setError(noChoosenFile ?? configStyles.FILE.error.noChoosen);
926
1702
  }
927
1703
  } else {
928
1704
  if (file[0]) {
@@ -940,16 +1716,16 @@ const File = /*#__PURE__*/React.forwardRef(({
940
1716
  }
941
1717
  } else {
942
1718
  setImage(null);
943
- setError(formatError ?? merge.FILE.error.format);
1719
+ setError(formatError ?? configStyles.FILE.error.format);
944
1720
  }
945
1721
  } else {
946
1722
  setImage(null);
947
- setError(maxSizeError ?? merge.FILE.error.maxSize);
1723
+ setError(maxSizeError ?? configStyles.FILE.error.maxSize);
948
1724
  }
949
1725
  }
950
1726
  if (file.length === 0) {
951
1727
  setImage(null);
952
- setError(noChoosenFile ?? merge.FILE.error.noChoosen);
1728
+ setError(noChoosenFile ?? configStyles.FILE.error.noChoosen);
953
1729
  }
954
1730
  }
955
1731
  };
@@ -1036,10 +1812,22 @@ const File = /*#__PURE__*/React.forwardRef(({
1036
1812
  alert('Please add change prop on File component');
1037
1813
  }
1038
1814
  }, [change]);
1039
- return /*#__PURE__*/React__default["default"].createElement("div", {
1815
+ React.useEffect(() => {
1816
+ configStylesPromise.then(data => {
1817
+ setClassProps(() => classnames__default["default"](className ?? data.FILE.className));
1818
+ setConfigStyles(() => {
1819
+ return {
1820
+ ...data
1821
+ };
1822
+ });
1823
+ }, error => {
1824
+ console.error(error);
1825
+ });
1826
+ }, []);
1827
+ return configStyles.FILE && /*#__PURE__*/React__default["default"].createElement("div", {
1040
1828
  style: {
1041
1829
  width: '100%',
1042
- maxWidth: maxWidth ?? merge.FILE.maxWidth
1830
+ maxWidth: maxWidth ?? configStyles.FILE.maxWidth
1043
1831
  },
1044
1832
  className: classProps
1045
1833
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1051,18 +1839,18 @@ const File = /*#__PURE__*/React.forwardRef(({
1051
1839
  }
1052
1840
  }, label && /*#__PURE__*/React__default["default"].createElement("label", {
1053
1841
  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
1842
+ color: labelColor ?? configStyles.FILE.label.color,
1843
+ fontSize: labelSize ?? configStyles.FILE.label.font.size,
1844
+ fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
1845
+ fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
1846
+ fontFamily: labelFamily ?? configStyles.FILE.label.font.family
1059
1847
  }
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", {
1848
+ }, 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
1849
  style: {
1062
1850
  cursor: 'pointer'
1063
1851
  },
1064
1852
  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", {
1853
+ }, iconDeleteComponent ? iconDeleteComponent : configStyles.FILE.icon.deleteComponent ? configStyles.FILE.icon.deleteComponent : /*#__PURE__*/React__default["default"].createElement(SvgDeleteComponent, null))), /*#__PURE__*/React__default["default"].createElement("div", {
1066
1854
  style: {
1067
1855
  width: '100%',
1068
1856
  display: 'flex',
@@ -1071,12 +1859,12 @@ const File = /*#__PURE__*/React.forwardRef(({
1071
1859
  boxSizing: 'border-box',
1072
1860
  justifyContent: 'center',
1073
1861
  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
1862
+ height: height ?? configStyles.FILE.height,
1863
+ borderWidth: borderWidth ?? configStyles.FILE.border.width,
1864
+ borderStyle: borderStyle ?? configStyles.FILE.border.style,
1865
+ borderRadius: radius ?? configStyles.FILE.radius,
1866
+ backgroundColor: backgroundColor ?? configStyles.FILE.colors.background,
1867
+ 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
1868
  },
1081
1869
  onDrop: handleDrop,
1082
1870
  onClick: handleClick,
@@ -1100,40 +1888,40 @@ const File = /*#__PURE__*/React.forwardRef(({
1100
1888
  alignItems: 'center',
1101
1889
  flexDirection: 'column',
1102
1890
  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
1891
+ color: color ?? configStyles.FILE.color,
1892
+ fontSize: size ?? configStyles.FILE.font.size,
1893
+ fontStyle: style ?? configStyles.FILE.font.style,
1894
+ fontFamily: family ?? configStyles.FILE.font.family,
1895
+ fontWeight: weight ?? configStyles.FILE.font.weight
1108
1896
  }
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", {
1897
+ }, !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
1898
  src: image,
1111
1899
  style: {
1112
1900
  display: 'block',
1113
1901
  maxWidth: '100%',
1114
1902
  maxHeight: '95%',
1115
1903
  objectFit: 'contain',
1116
- width: fileAreaImageWidth ?? merge.FILE.fileAreaImageWidth,
1117
- height: fileAreaImageHeight ?? merge.FILE.fileAreaImageHeight
1904
+ width: fileAreaImageWidth ?? configStyles.FILE.fileAreaImageWidth,
1905
+ height: fileAreaImageHeight ?? configStyles.FILE.fileAreaImageHeight
1118
1906
  },
1119
1907
  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", {
1908
+ }) : 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
1909
  style: {
1122
1910
  margin: '0px'
1123
1911
  }
1124
- }, putFileHere ?? merge.FILE.putFileHere, /*#__PURE__*/React__default["default"].createElement("br", null), or ? or : merge.FILE.or, ' ', /*#__PURE__*/React__default["default"].createElement("span", {
1912
+ }, putFileHere ?? configStyles.FILE.putFileHere, /*#__PURE__*/React__default["default"].createElement("br", null), or ? or : configStyles.FILE.or, ' ', /*#__PURE__*/React__default["default"].createElement("span", {
1125
1913
  style: {
1126
- color: uploadColor ?? merge.FILE.uploadColor
1914
+ color: uploadColor ?? configStyles.FILE.uploadColor
1127
1915
  }
1128
- }, upload ?? merge.FILE.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
1916
+ }, upload ?? configStyles.FILE.upload))), /*#__PURE__*/React__default["default"].createElement("div", {
1129
1917
  style: {
1130
- marginTop: extentionsRowMarginTop ?? merge.FILE.extentionsRowMarginTop
1918
+ marginTop: extentionsRowMarginTop ?? configStyles.FILE.extentionsRowMarginTop
1131
1919
  }
1132
1920
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1133
1921
  style: {
1134
1922
  margin: '0px'
1135
1923
  }
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", {
1924
+ }, 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
1925
  style: {
1138
1926
  width: '100%',
1139
1927
  padding: '5px',
@@ -1145,16 +1933,16 @@ const File = /*#__PURE__*/React.forwardRef(({
1145
1933
  }, /*#__PURE__*/React__default["default"].createElement(Button, {
1146
1934
  contentWidth: true,
1147
1935
  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
1936
+ font: uploadBtnFont ?? configStyles.FILE.uploadBtn.font.family,
1937
+ size: uploadBtnSize ?? configStyles.FILE.uploadBtn.font.size,
1938
+ style: uploadBtnStyle ?? configStyles.FILE.uploadBtn.font.style,
1939
+ weight: uploadBtnWeight ?? configStyles.FILE.uploadBtn.font.weight,
1940
+ label: uploadBtnLabel ?? configStyles.FILE.uploadBtn.label,
1941
+ color: uploadBtnColor ?? configStyles.FILE.uploadBtn.color,
1942
+ height: uploadBtnHeight ?? configStyles.FILE.uploadBtn.height,
1943
+ hoverColor: uploadBtnHoverColor ?? configStyles.FILE.uploadBtn.colors.hover,
1944
+ backgroundColor: uploadBtnBackgroundColor ?? configStyles.FILE.uploadBtn.colors.background,
1945
+ backgroundHoverColor: uploadBtnBackgroundColorHover ?? configStyles.FILE.uploadBtn.colors.backgroundHover
1158
1946
  }), /*#__PURE__*/React__default["default"].createElement("p", {
1159
1947
  style: {
1160
1948
  margin: '0px',
@@ -1163,7 +1951,7 @@ const File = /*#__PURE__*/React.forwardRef(({
1163
1951
  whiteSpace: 'nowrap',
1164
1952
  textOverflow: 'ellipsis'
1165
1953
  }
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", {
1954
+ }, 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
1955
  style: {
1168
1956
  position: 'absolute',
1169
1957
  top: '0px',
@@ -1176,9 +1964,9 @@ const File = /*#__PURE__*/React.forwardRef(({
1176
1964
  boxSizing: 'border-box',
1177
1965
  alignItems: 'flex-start',
1178
1966
  justifyContent: 'flex-end',
1179
- borderRadius: radius ?? merge.FILE.radius,
1967
+ borderRadius: radius ?? configStyles.FILE.radius,
1180
1968
  display: !multiple && !disabled && image && !error && isHover ? 'flex' : 'none',
1181
- backgroundColor: hiddenBackgroundColor ?? merge.FILE.colors.backgroundHidden
1969
+ backgroundColor: hiddenBackgroundColor ?? configStyles.FILE.colors.backgroundHidden
1182
1970
  },
1183
1971
  onClick: handleStopPropagation
1184
1972
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1186,15 +1974,15 @@ const File = /*#__PURE__*/React.forwardRef(({
1186
1974
  cursor: 'pointer'
1187
1975
  },
1188
1976
  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", {
1977
+ }, 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
1978
  style: {
1191
1979
  marginTop: '6px',
1192
1980
  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
1981
+ color: errorColor ?? configStyles.FILE.error.color,
1982
+ fontSize: errorSize ?? configStyles.FILE.error.font.size,
1983
+ fontStyle: errorStyle ?? configStyles.FILE.error.font.style,
1984
+ fontWeight: errorWeight ?? configStyles.FILE.error.font.weight,
1985
+ fontFamily: errorFamily ?? configStyles.FILE.error.font.family
1198
1986
  }
1199
1987
  }, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
1200
1988
  return /*#__PURE__*/React__default["default"].createElement(FileItem, {
@@ -1204,35 +1992,35 @@ const File = /*#__PURE__*/React.forwardRef(({
1204
1992
  status: item.status,
1205
1993
  size: item.file.size,
1206
1994
  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,
1995
+ iconPdf: iconPdf ?? configStyles.FILE.icon.pdf,
1996
+ iconPng: iconPng ?? configStyles.FILE.icon.png,
1997
+ iconJpg: iconJpg ?? configStyles.FILE.icon.jpg,
1998
+ iconJpeg: iconJpeg ?? configStyles.FILE.icon.jpeg,
1999
+ iconHeic: iconHeic ?? configStyles.FILE.icon.heic,
2000
+ iconWrong: iconWrong ?? configStyles.FILE.icon.wrong,
2001
+ iconDelItem: iconDeleteItem ?? configStyles.FILE.icon.deleteItem,
1214
2002
  timeForRemoveError: timeForRemoveError,
1215
2003
  removeFile: removeFile ? removeFile : _ => _,
1216
- radius: radius ?? merge.FILE.radius,
2004
+ radius: radius ?? configStyles.FILE.radius,
1217
2005
  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
2006
+ progressColor: progressColor ?? configStyles.FILE.progress.color,
2007
+ listItemHeight: listItemHeight ?? configStyles.FILE.listItem.height,
2008
+ listItemPadding: listItemPadding ?? configStyles.FILE.listItem.padding,
2009
+ progressFontSize: progressFontSize ?? configStyles.FILE.progress.font.size,
2010
+ progressFontStyle: progressFontStyle ?? configStyles.FILE.progress.font.style,
2011
+ progressFontWeight: progressFontWeight ?? configStyles.FILE.progress.font.weight,
2012
+ progressFontFamily: progressFontFamily ?? configStyles.FILE.progress.font.family,
2013
+ listItemErrorSize: listItemErrorSize ?? configStyles.FILE.listItem.error.font.size,
2014
+ listItemErrorStyle: listItemErrorStyle ?? configStyles.FILE.listItem.error.style,
2015
+ listItemErrorWeight: listItemErrorWeight ?? configStyles.FILE.listItem.error.weight,
2016
+ listItemErrorFamily: listItemErrorFamily ?? configStyles.FILE.listItem.error.family,
2017
+ listItemErrorColor: listItemErrorColor ?? configStyles.FILE.listItem.error.color,
2018
+ progressTrackColor: progressTrackColor ?? configStyles.FILE.progress.colors.track,
2019
+ progressFailedColor: progressFailedColor ?? configStyles.FILE.progress.colors.failed,
2020
+ progressSuccessColor: progressSuccessColor ?? configStyles.FILE.progress.colors.success,
2021
+ progressLoadingColor: progressLoadingColor ?? configStyles.FILE.progress.colors.loading,
2022
+ listItemBackgroundColor: listItemBackgroundColor ?? configStyles.FILE.listItem.colors.background,
2023
+ listItemBackgroundErrorColor: listItemBackgroundErrorColor ?? configStyles.FILE.listItem.colors.backgroundError
1236
2024
  });
1237
2025
  }));
1238
2026
  });
@@ -1421,9 +2209,9 @@ const Checkbox$1 = ({
1421
2209
  },
1422
2210
  onClick: !innerDisabled && handleChecked ? handleClick : _ => _
1423
2211
  }, innerChecked && (ignoreDisabledForChecked ?? !innerDisabled) ? checkedIcon ? checkedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxChecked, {
1424
- fillColor: checkedColor ?? merge.CHECKBOX.checkedColor
2212
+ fillColor: checkedColor ?? configStylesPromise.CHECKBOX.checkedColor
1425
2213
  }) : unCheckedIcon ? unCheckedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxUnchecked, {
1426
- fillColor: unCheckedColor ?? merge.CHECKBOX.unCheckedColor
2214
+ fillColor: unCheckedColor ?? configStylesPromise.CHECKBOX.unCheckedColor
1427
2215
  }), label && /*#__PURE__*/React__default["default"].createElement("span", {
1428
2216
  style: {
1429
2217
  marginLeft: labelMarginLeft
@@ -1448,10 +2236,22 @@ const SingleCheckbox = ({
1448
2236
  ignoreDisabledForChecked
1449
2237
  }) => {
1450
2238
  const [innerData, setInnerData] = React.useState(null);
2239
+ const [configStyles, setConfigStyles] = React.useState({});
1451
2240
  React.useEffect(() => {
1452
2241
  setInnerData(data);
1453
2242
  }, [data]);
1454
- return /*#__PURE__*/React__default["default"].createElement(Checkbox$1, {
2243
+ React.useEffect(() => {
2244
+ configStylesPromise.then(data => {
2245
+ setConfigStyles(() => {
2246
+ return {
2247
+ ...data
2248
+ };
2249
+ });
2250
+ }, error => {
2251
+ console.error(error);
2252
+ });
2253
+ }, []);
2254
+ return configStyles.CHECKBOX && /*#__PURE__*/React__default["default"].createElement(Checkbox$1, {
1455
2255
  index: index,
1456
2256
  label: label,
1457
2257
  styles: styles,
@@ -1465,7 +2265,7 @@ const SingleCheckbox = ({
1465
2265
  handleChecked: handleChecked,
1466
2266
  unCheckedColor: unCheckedColor,
1467
2267
  ignoreDisabledForChecked: ignoreDisabledForChecked,
1468
- labelMarginLeft: labelMarginLeft ?? merge.CHECKBOX.labelMarginLeft
2268
+ labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.labelMarginLeft
1469
2269
  });
1470
2270
  };
1471
2271
  SingleCheckbox.propTypes = {
@@ -1949,7 +2749,9 @@ const Table = ({
1949
2749
  const [body, setBody] = React.useState([]);
1950
2750
  const [header, setHeader] = React.useState([]);
1951
2751
  const [disableArr, setDisableArr] = React.useState([]);
2752
+ const [classProps, setClassProps] = React.useState({});
1952
2753
  const [checkedArray, setCheckedArray] = React.useState([]);
2754
+ const [configStyles, setConfigStyles] = React.useState({});
1953
2755
  const handleCheckIfArrow = (bodyData, data) => {
1954
2756
  let removeItemIndex;
1955
2757
  let headerWithoutArrow = [];
@@ -2416,18 +3218,30 @@ const Table = ({
2416
3218
  setHeader(() => dataHeader);
2417
3219
  }
2418
3220
  }, [dataHeader, arrowColumn, arrowShow, disableArr]);
2419
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("table", {
3221
+ React.useEffect(() => {
3222
+ configStylesPromise.then(data => {
3223
+ setClassProps(() => classnames__default["default"](className ?? data.TABLE.className));
3224
+ setConfigStyles(() => {
3225
+ return {
3226
+ ...data
3227
+ };
3228
+ });
3229
+ }, error => {
3230
+ console.error(error);
3231
+ });
3232
+ }, []);
3233
+ return configStyles.TABLE && /*#__PURE__*/React__default["default"].createElement("table", {
2420
3234
  style: {
2421
3235
  width: '100%',
2422
- borderCollapse: tableRowItem ?? merge.TABLE.body.row.asItem ? 'separate' : 'collapse',
2423
- borderSpacing: `0 ${tBodyRowMarginTop ?? merge.TABLE.body.row.marginTop}`
3236
+ borderCollapse: tableRowItem ?? configStyles.TABLE.body.row.asItem ? 'separate' : 'collapse',
3237
+ borderSpacing: `0 ${tBodyRowMarginTop ?? configStyles.TABLE.body.row.marginTop}`
2424
3238
  },
2425
3239
  onClick: handleTableClick,
2426
- className: className ?? merge.TABLE.className
3240
+ className: classProps
2427
3241
  }, header && header.length > 0 && /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", {
2428
3242
  style: {
2429
- color: tHeadColor ?? merge.TABLE.head.color,
2430
- backgroundColor: tHeadBackgroundColor ?? merge.TABLE.head.colors.background,
3243
+ color: tHeadColor ?? configStyles.TABLE.head.color,
3244
+ backgroundColor: tHeadBackgroundColor ?? configStyles.TABLE.head.colors.background,
2431
3245
  borderColor: hideBorder ? 'transparent' : '#eeeeee'
2432
3246
  }
2433
3247
  }, header.map((item, index) => {
@@ -2438,29 +3252,29 @@ const Table = ({
2438
3252
  handleCheckedHeader: handleCheckedHeader,
2439
3253
  handleHeaderItemClick: handleHeaderItemClick,
2440
3254
  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
3255
+ tHeadFamily: tHeadFamily ?? configStyles.TABLE.head.font.family,
3256
+ tHeadPadding: tHeadPadding ?? configStyles.TABLE.head.padding,
3257
+ tHeadFontSize: tHeadFontSize ?? configStyles.TABLE.head.font.size,
3258
+ tHeadFontStyle: tHeadFontStyle ?? configStyles.TABLE.head.font.style,
3259
+ tHeadTextAlign: tHeadTextAlign ?? configStyles.TABLE.textAlign,
3260
+ tHeadFontWeight: tHeadFontWeight ?? configStyles.TABLE.head.font.weight,
3261
+ borderTopLeftRadius: index === 0 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.head.radius : '0px',
3262
+ borderTopRightRadius: index === header.length - 1 ? tHeadBorderRadius ? tHeadBorderRadius : configStyles.TABLE.head.radius : '0px',
3263
+ tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
3264
+ tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth
2451
3265
  });
2452
3266
  }))), body && body.length > 0 && /*#__PURE__*/React__default["default"].createElement("tbody", {
2453
3267
  style: {
2454
- boxShadow: tBodyBoxShadow ?? merge.TABLE.body.box.shadow
3268
+ boxShadow: tBodyBoxShadow ?? configStyles.TABLE.body.box.shadow
2455
3269
  }
2456
3270
  }, body.map((item, index) => {
2457
3271
  return /*#__PURE__*/React__default["default"].createElement("tr", {
2458
3272
  key: `${item}_${index}`,
2459
3273
  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'
3274
+ backgroundColor: tableRowBGColor ?? configStyles.TABLE.body.row.colors.background,
3275
+ borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.body.row.border,
3276
+ borderColor: hideBorder ? 'transparent' : configStyles.TABLE.body.row.borderColor,
3277
+ boxShadow: (tableRowItem ? tableRowItem : configStyles.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : configStyles.TABLE.body.row.box.shadow : 'none'
2464
3278
  }
2465
3279
  }, Object.values(item).map((innerItem, innerIndex) => {
2466
3280
  return /*#__PURE__*/React__default["default"].createElement(TD, {
@@ -2472,32 +3286,32 @@ const Table = ({
2472
3286
  id: item.id ? item.id : '',
2473
3287
  handleCheckDots: handleCheckDots,
2474
3288
  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,
3289
+ openListColor: openListColor ?? configStyles.TABLE.openList.color,
3290
+ tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
3291
+ tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth,
3292
+ openListFontSize: openListFontSize ?? configStyles.TABLE.openList.font.size,
3293
+ openListFontStyle: openListFontStyle ?? configStyles.TABLE.openList.font.style,
3294
+ openListFontWeight: openListFontWeight ?? configStyles.TABLE.openList.font.weight,
3295
+ openListFontFamily: openListFontFamily ?? configStyles.TABLE.openList.font.family,
2482
3296
  handleCheckedBody: handleCheckedBody,
2483
3297
  handleBodyActionClick: handleBodyActionClick,
2484
3298
  handleMoreOptionsClick: handleMoreOptionsClick,
2485
3299
  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,
3300
+ tBodyColor: tBodyColor ?? configStyles.TABLE.body.color,
3301
+ rowItem: tableRowItem ?? configStyles.TABLE.body.row.isItem,
3302
+ rowRadius: tableRowRadius ?? configStyles.TABLE.body.row.radius,
3303
+ tBodyPadding: tBodyPadding ?? configStyles.TABLE.body.padding,
3304
+ tBodyFontSize: tBodyFontSize ?? configStyles.TABLE.body.font.size,
3305
+ tBodyTextAlign: tBodyTextAlign ?? configStyles.TABLE.textAlign,
3306
+ tBodyFontFamily: tBodyFontFamily ?? configStyles.TABLE.body.font.family,
3307
+ tBodyFontWeight: tBodyFontWeight ?? configStyles.TABLE.body.font.weight,
3308
+ borderRight: innerIndex === Object.values(item).length - 1 ? 'none' : configStyles.TABLE.body.row.border,
3309
+ borderRightColor: innerIndex === Object.values(item).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor,
2496
3310
  handleCheckArrowAction: handleCheckArrowAction,
2497
3311
  handleOpenCloseRowSingleArrow: handleOpenCloseRowSingleArrow
2498
3312
  });
2499
3313
  }));
2500
- }))));
3314
+ })));
2501
3315
  };
2502
3316
  Table.propTypes = {
2503
3317
  getData: PropTypes__default["default"].func,
@@ -2692,7 +3506,8 @@ const Modal = ({
2692
3506
  const [select, setSelect] = React.useState(0);
2693
3507
  const [isHover, setIsHover] = React.useState(false);
2694
3508
  const [innerData, setInnerData] = React.useState([]);
2695
- const classProps = classnames__default["default"](className ?? merge.MODAL.className);
3509
+ const [classProps, setClassProps] = React.useState({});
3510
+ const [configStyles, setConfigStyles] = React.useState({});
2696
3511
  const handleCloseModal = () => {
2697
3512
  setShow(false);
2698
3513
  };
@@ -2756,15 +3571,25 @@ const Modal = ({
2756
3571
  }, [selected]);
2757
3572
  React.useEffect(() => {
2758
3573
  document.addEventListener('keydown', handleESC, false);
3574
+ configStylesPromise.then(data => {
3575
+ setClassProps(() => classnames__default["default"](className ?? data.MODAL.className));
3576
+ setConfigStyles(() => {
3577
+ return {
3578
+ ...data
3579
+ };
3580
+ });
3581
+ }, error => {
3582
+ console.error(error);
3583
+ });
2759
3584
  return () => {
2760
3585
  setSelect(0);
2761
3586
  setInnerData([]);
2762
3587
  document.removeEventListener('keydown', handleESC, false);
2763
3588
  };
2764
3589
  }, []);
2765
- return /*#__PURE__*/React__default["default"].createElement("div", {
3590
+ return configStyles.MODAL && /*#__PURE__*/React__default["default"].createElement("div", {
2766
3591
  className: classProps,
2767
- onClick: outsideClose || merge.MODAL.outsideClose ? handleCloseModal : _ => _,
3592
+ onClick: outsideClose || configStyles.MODAL.outsideClose ? handleCloseModal : _ => _,
2768
3593
  style: {
2769
3594
  top: '0px',
2770
3595
  left: '0px',
@@ -2772,7 +3597,7 @@ const Modal = ({
2772
3597
  width: '100%',
2773
3598
  height: '100vh',
2774
3599
  position: 'fixed',
2775
- backgroundColor: layerBackgroundColor ?? merge.MODAL.colors.backgroundLayer
3600
+ backgroundColor: layerBackgroundColor ?? configStyles.MODAL.colors.backgroundLayer
2776
3601
  }
2777
3602
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2778
3603
  style: {
@@ -2780,8 +3605,8 @@ const Modal = ({
2780
3605
  display: 'flex',
2781
3606
  width: '100%',
2782
3607
  height: '100vh',
2783
- alignItems: alignItems ?? merge.MODAL.alignItems,
2784
- justifyContent: justifyContent ?? merge.MODAL.justifyContent
3608
+ alignItems: alignItems ?? configStyles.MODAL.alignItems,
3609
+ justifyContent: justifyContent ?? configStyles.MODAL.justifyContent
2785
3610
  }
2786
3611
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2787
3612
  className: `${styles$8['animation__modal']}`,
@@ -2790,16 +3615,16 @@ const Modal = ({
2790
3615
  position: 'relative',
2791
3616
  boxSizing: 'border-box',
2792
3617
  display: type === 'content' ? 'grid' : 'block',
2793
- width: width ?? merge.MODAL.width,
3618
+ width: width ?? configStyles.MODAL.width,
2794
3619
  overflow: type === 'content' ? 'auto' : 'hidden',
2795
- height: height ?? merge.MODAL.height,
3620
+ height: height ?? configStyles.MODAL.height,
2796
3621
  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 : ''
3622
+ borderRadius: radius ?? configStyles.MODAL.radius,
3623
+ maxWidth: mMaxWidth ?? configStyles.MODAL.maxWidth,
3624
+ maxHeight: mMaxHeight ?? configStyles.MODAL.maxHeight,
3625
+ minWidth: type === 'content' ? minWidth ?? configStyles.MODAL.minWidth : '',
3626
+ backgroundColor: backgroundColor ?? configStyles.MODAL.colors.background,
3627
+ minHeight: type === 'content' ? minHeight ?? configStyles.MODAL.minHeight : ''
2803
3628
  }
2804
3629
  }, type === 'content' && /*#__PURE__*/React__default["default"].createElement("div", {
2805
3630
  style: {
@@ -2808,10 +3633,10 @@ const Modal = ({
2808
3633
  display: 'flex',
2809
3634
  alignItems: 'center',
2810
3635
  boxSizing: 'border-box',
2811
- padding: padding ?? merge.MODAL.padding,
2812
- height: headerHeight ?? merge.MODAL.header.height,
3636
+ padding: padding ?? configStyles.MODAL.padding,
3637
+ height: headerHeight ?? configStyles.MODAL.header.height,
2813
3638
  justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
2814
- backgroundColor: closeAreaBackgroundColor ?? merge.MODAL.closeAreaBackgroundColor
3639
+ backgroundColor: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
2815
3640
  }
2816
3641
  }, headerText && type === 'content' && /*#__PURE__*/React__default["default"].createElement("p", {
2817
3642
  style: {
@@ -2820,11 +3645,11 @@ const Modal = ({
2820
3645
  whiteSpace: 'nowrap',
2821
3646
  textOverflow: 'ellipsis',
2822
3647
  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
3648
+ color: headerColor ?? configStyles.MODAL.header.color,
3649
+ fontSize: headerSize ?? configStyles.MODAL.header.font.size,
3650
+ fontStyle: headerStyle ?? configStyles.MODAL.header.font.style,
3651
+ fontFamily: headerFamily ?? configStyles.MODAL.header.font.family,
3652
+ fontWeight: headerWeight ?? configStyles.MODAL.header.font.weight
2828
3653
  }
2829
3654
  }, headerText), /*#__PURE__*/React__default["default"].createElement("div", {
2830
3655
  onClick: handleCloseModal,
@@ -2833,7 +3658,7 @@ const Modal = ({
2833
3658
  height: '14px',
2834
3659
  cursor: 'pointer'
2835
3660
  }
2836
- }, closeIcon ? closeIcon : merge.MODAL.icon.close ? merge.MODAL.icon.close : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default["default"].createElement("div", {
3661
+ }, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default["default"].createElement("div", {
2837
3662
  style: {
2838
3663
  display: 'flex',
2839
3664
  width: '100%',
@@ -2843,9 +3668,9 @@ const Modal = ({
2843
3668
  boxSizing: 'border-box',
2844
3669
  justifyContent: 'center',
2845
3670
  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
3671
+ borderWidth: borderWidth ?? configStyles.MODAL.border.width,
3672
+ borderStyle: borderStyle ?? configStyles.MODAL.border.style,
3673
+ borderColor: borderColor ?? configStyles.MODAL.border.color
2849
3674
  },
2850
3675
  onMouseEnter: handleMouseEnter,
2851
3676
  onMouseLeave: handleMouseLeave
@@ -2857,8 +3682,8 @@ const Modal = ({
2857
3682
  width: '100%',
2858
3683
  borderTopLeftRadius: '6px',
2859
3684
  borderTopRightRadius: '6px',
2860
- height: grayDecorHeight ?? merge.MODAL.grayDecorHeight,
2861
- background: closeAreaBackgroundColor ?? merge.MODAL.closeAreaBackgroundColor
3685
+ height: grayDecorHeight ?? configStyles.MODAL.grayDecorHeight,
3686
+ background: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
2862
3687
  }
2863
3688
  }, /*#__PURE__*/React__default["default"].createElement("button", {
2864
3689
  onClick: handleCloseModal,
@@ -2875,9 +3700,9 @@ const Modal = ({
2875
3700
  cursor: 'pointer',
2876
3701
  backgroundColor: 'transparent'
2877
3702
  }
2878
- }, closeSlideIcon ? closeSlideIcon : merge.MODAL.icon.closeSlide ? merge.MODAL.icon.closeSlide : /*#__PURE__*/React__default["default"].createElement(SvgCloseSlide, null))), /*#__PURE__*/React__default["default"].createElement("div", {
3703
+ }, closeSlideIcon ? closeSlideIcon : configStyles.MODAL.icon.closeSlide ? configStyles.MODAL.icon.closeSlide : /*#__PURE__*/React__default["default"].createElement(SvgCloseSlide, null))), /*#__PURE__*/React__default["default"].createElement("div", {
2879
3704
  style: {
2880
- height: imageWrapHeight ?? merge.MODAL.image.wrapHeight
3705
+ height: imageWrapHeight ?? configStyles.MODAL.image.wrapHeight
2881
3706
  }
2882
3707
  }, innerData && innerData.length > 0 && innerData.map((item, index) => {
2883
3708
  if (select === index) {
@@ -2890,10 +3715,10 @@ const Modal = ({
2890
3715
  style: {
2891
3716
  display: 'block',
2892
3717
  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
3718
+ margin: imageMargin ?? configStyles.MODAL.image.margin,
3719
+ borderRadius: radius ?? configStyles.MODAL.radius,
3720
+ width: imageWidth ?? configStyles.MODAL.image.width,
3721
+ height: imageHeight ?? configStyles.MODAL.image.height
2897
3722
  },
2898
3723
  src: item.url
2899
3724
  }), isHover && showZoomIcon ? /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2914,7 +3739,7 @@ const Modal = ({
2914
3739
  justifyContent: 'center'
2915
3740
  },
2916
3741
  onClick: () => handleOpenInNewTab(item.url)
2917
- }, zoomIcon ? zoomIcon : merge.MODAL.icon.zoom ? merge.MODAL.icon.zoom : /*#__PURE__*/React__default["default"].createElement(SvgZoom, null)) : '');
3742
+ }, zoomIcon ? zoomIcon : configStyles.MODAL.icon.zoom ? configStyles.MODAL.icon.zoom : /*#__PURE__*/React__default["default"].createElement(SvgZoom, null)) : '');
2918
3743
  }
2919
3744
  }
2920
3745
  }), innerData && innerData.length > 1 && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("button", {
@@ -2931,7 +3756,7 @@ const Modal = ({
2931
3756
  top: 'calc(50% - 12px)',
2932
3757
  backgroundColor: 'transparent'
2933
3758
  }
2934
- }, prevIcon ? prevIcon : merge.MODAL.icon.prev ? merge.MODAL.icon.prev : /*#__PURE__*/React__default["default"].createElement(SvgPrev, null)), /*#__PURE__*/React__default["default"].createElement("button", {
3759
+ }, prevIcon ? prevIcon : configStyles.MODAL.icon.prev ? configStyles.MODAL.icon.prev : /*#__PURE__*/React__default["default"].createElement(SvgPrev, null)), /*#__PURE__*/React__default["default"].createElement("button", {
2935
3760
  onClick: () => handleGoTo('next'),
2936
3761
  style: {
2937
3762
  position: 'absolute',
@@ -2945,7 +3770,7 @@ const Modal = ({
2945
3770
  top: 'calc(50% - 12px)',
2946
3771
  backgroundColor: 'transparent'
2947
3772
  }
2948
- }, nextIcon ? nextIcon : merge.MODAL.icon.next ? merge.MODAL.icon.next : /*#__PURE__*/React__default["default"].createElement(SvgNext, null)))))))));
3773
+ }, nextIcon ? nextIcon : configStyles.MODAL.icon.next ? configStyles.MODAL.icon.next : /*#__PURE__*/React__default["default"].createElement(SvgNext, null)))))))));
2949
3774
  };
2950
3775
  Modal.propTypes = {
2951
3776
  data: PropTypes__default["default"].array,
@@ -3354,27 +4179,28 @@ const Input = ({
3354
4179
  }) => {
3355
4180
  const [show, setShow] = React.useState(false);
3356
4181
  const [isHover, setIsHover] = React.useState(false);
4182
+ const [classProps, setClassProps] = React.useState({});
4183
+ const [configStyles, setConfigStyles] = React.useState({});
3357
4184
  const [innerErrorMessage, setInnerErrorMessage] = React.useState('');
3358
- const inpStyles = {
3359
- width: width ?? merge.INPUT.width,
4185
+ const inpStyles = configStyles.INPUT && {
4186
+ width: width ?? configStyles.INPUT.width,
3360
4187
  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
4188
+ height: height ?? configStyles.INPUT.height,
4189
+ padding: padding ?? configStyles.INPUT.padding,
4190
+ fontSize: size ?? configStyles.INPUT.font.size,
4191
+ fontStyle: style ?? configStyles.INPUT.font.style,
4192
+ fontWeight: weight ?? configStyles.INPUT.font.weight,
4193
+ fontFamily: family ?? configStyles.INPUT.font.family,
4194
+ boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
4195
+ color: innerErrorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color,
4196
+ backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
3370
4197
  };
3371
4198
  const uuid = v4();
3372
- const inpAttributes = {
4199
+ const inpAttributes = configStyles.INPUT && {
3373
4200
  placeholder: placeholder ?? '',
3374
4201
  iName: name ? name : `tui_${uuid}_tui`,
3375
- autoComplete: autoComplete ?? merge.INPUT.autoComplete
4202
+ autoComplete: autoComplete ?? configStyles.INPUT.autoComplete
3376
4203
  };
3377
- const classProps = classnames__default["default"](className ?? merge.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']);
3378
4204
  const errorShow = styled.keyframes`
3379
4205
  100% {
3380
4206
  bottom: '-20px';
@@ -3407,25 +4233,37 @@ const Input = ({
3407
4233
  !regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
3408
4234
  }
3409
4235
  }, [type, regexp, errorMessage, regexpErrorMessage]);
3410
- return /*#__PURE__*/React__default["default"].createElement("div", {
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,13 +4274,13 @@ 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,
@@ -3452,14 +4290,14 @@ const Input = ({
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
4302
  value: value,
3465
4303
  dots: withoutDot,
@@ -3471,7 +4309,7 @@ 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,
@@ -3481,7 +4319,7 @@ const Input = ({
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
4324
  value: value,
3487
4325
  disabled: disabled,
@@ -3489,7 +4327,7 @@ const Input = ({
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 = {
@@ -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,
@@ -4936,11 +5862,11 @@ const Checkbox = ({
4936
5862
  checked: item[innerKeyNames.checked],
4937
5863
  disabled: item[innerKeyNames.disabled],
4938
5864
  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
5865
+ labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.label.marginLeft,
5866
+ checkedColor: checkedColor ?? configStyles.CHECKBOX.colors.checked,
5867
+ unCheckedColor: unCheckedColor ?? configStyles.CHECKBOX.colors.unChecked,
5868
+ checkedIcon: checkedIcon ?? configStyles.CHECKBOX.checkedIcon,
5869
+ unCheckedIcon: unCheckedIcon ?? configStyles.CHECKBOX.unCheckedIcon
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,6 +6315,8 @@ 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);
5368
6322
  React.useEffect(() => {
@@ -5387,9 +6341,6 @@ const Pagination = ({
5387
6341
  if (currentPageNumber === 0 || paginationRange?.length < 2) {
5388
6342
  return null;
5389
6343
  }
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
6344
  const onNext = () => {
5394
6345
  onPageChange(currentPageNumber + 1);
5395
6346
  };
@@ -5437,7 +6388,21 @@ const Pagination = ({
5437
6388
  }
5438
6389
  };
5439
6390
  let lastPage = paginationRange[paginationRange.length - 1];
5440
- return /*#__PURE__*/React__default["default"].createElement("div", {
6391
+ React.useEffect(() => {
6392
+ configStylesPromise.then(data => {
6393
+ setClassProps(() => classnames__default["default"](
6394
+ // TODO: check and remove pagination-bar-rem class
6395
+ styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
6396
+ setConfigStyles(() => {
6397
+ return {
6398
+ ...data
6399
+ };
6400
+ });
6401
+ }, error => {
6402
+ console.error(error);
6403
+ });
6404
+ }, []);
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
  };