@xaypay/tui 0.2.14 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1860 -511
- package/dist/index.js +1864 -510
- package/package.json +1 -1
- package/tui.config.js +174 -15
package/package.json
CHANGED
package/tui.config.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
// import React from 'react'
|
|
2
|
+
// import info from './src/assetsTMP/info.png';
|
|
3
|
+
// import error from './src/assetsTMP/error.png';
|
|
4
|
+
// import close from './src/assetsTMP/close.svg';
|
|
5
|
+
// import warn from './src/assetsTMP/warning.png';
|
|
6
|
+
// import success from './src/assetsTMP/success.png';
|
|
7
|
+
import closeCall from './src/assetsTMP/closeCall.svg';
|
|
8
|
+
import greenPlus from './src/assetsTMP/greenplus.svg';
|
|
9
|
+
import greenMinus from './src/assetsTMP/greenminus.svg';
|
|
3
10
|
|
|
4
11
|
const boxSizing = 'border-box';
|
|
5
12
|
const fontStyle = 'normal';
|
|
@@ -31,17 +38,18 @@ const fontObject = {
|
|
|
31
38
|
export default {
|
|
32
39
|
// default properties for <Button /> component
|
|
33
40
|
BUTTON: {
|
|
34
|
-
|
|
41
|
+
opacity: 1,
|
|
35
42
|
width: '100%',
|
|
43
|
+
radius: '6px',
|
|
44
|
+
className: '',
|
|
45
|
+
type: 'button',
|
|
36
46
|
height: '46px',
|
|
37
47
|
color: 'white',
|
|
38
|
-
contentWidth: false,
|
|
39
48
|
border: 'none',
|
|
40
|
-
|
|
49
|
+
disabled: false,
|
|
41
50
|
cursor: 'pointer',
|
|
51
|
+
contentWidth: false,
|
|
42
52
|
padding: '12px 20px',
|
|
43
|
-
disabled: false,
|
|
44
|
-
className: '',
|
|
45
53
|
transition: 'background-color 240ms, color 240ms',
|
|
46
54
|
|
|
47
55
|
box: {
|
|
@@ -54,6 +62,10 @@ export default {
|
|
|
54
62
|
disabled: 'rgba(60, 57, 62, 1)',
|
|
55
63
|
disabledLine: 'rgba(60, 57, 62, 1)',
|
|
56
64
|
disabledBackground: 'rgba(238, 238, 238, 1)',
|
|
65
|
+
withoutStyling: {
|
|
66
|
+
color: '#000000',
|
|
67
|
+
hoverColor: '#121212'
|
|
68
|
+
}
|
|
57
69
|
},
|
|
58
70
|
|
|
59
71
|
font: {...fontObject},
|
|
@@ -66,8 +78,11 @@ export default {
|
|
|
66
78
|
},
|
|
67
79
|
|
|
68
80
|
icon: {
|
|
81
|
+
marginLeft: '10px',
|
|
69
82
|
marginRight: '10px'
|
|
70
|
-
}
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
withoutStyling: false
|
|
71
86
|
},
|
|
72
87
|
// default properties for <Input /> component
|
|
73
88
|
INPUT: {
|
|
@@ -82,6 +97,7 @@ export default {
|
|
|
82
97
|
className: '',
|
|
83
98
|
maxLength: 255,
|
|
84
99
|
iconWidth: '64px',
|
|
100
|
+
iconPadding: '10px',
|
|
85
101
|
autoComplete: 'off',
|
|
86
102
|
|
|
87
103
|
box: {
|
|
@@ -102,6 +118,7 @@ export default {
|
|
|
102
118
|
color: presetColors.dark,
|
|
103
119
|
display: 'block',
|
|
104
120
|
lineHeight: '22px',
|
|
121
|
+
iconMargin: '10px',
|
|
105
122
|
marginBottom: '6px',
|
|
106
123
|
|
|
107
124
|
font: {...fontObject}
|
|
@@ -113,8 +130,13 @@ export default {
|
|
|
113
130
|
zIndex: '1',
|
|
114
131
|
className: '',
|
|
115
132
|
marginTop: '10px',
|
|
133
|
+
iconMargin: '10px',
|
|
116
134
|
lineHeight: '19px',
|
|
117
135
|
|
|
136
|
+
box: {
|
|
137
|
+
shadow: '0 0 0 1px #F20918'
|
|
138
|
+
},
|
|
139
|
+
|
|
118
140
|
font: {...fontObject}
|
|
119
141
|
},
|
|
120
142
|
|
|
@@ -275,6 +297,7 @@ export default {
|
|
|
275
297
|
SELECT: {
|
|
276
298
|
dots: false,
|
|
277
299
|
className: '',
|
|
300
|
+
arrowNoRotate: false,
|
|
278
301
|
showCloseIcon: true,
|
|
279
302
|
// arrowIcon: React.createElement(SvgChecked, { fill: 'green' }),
|
|
280
303
|
// closeIcon: React.createElement(SvgChecked, { fill: 'green' }),
|
|
@@ -678,7 +701,13 @@ export default {
|
|
|
678
701
|
header: {
|
|
679
702
|
color: presetColors.primarySecond,
|
|
680
703
|
height: '30px',
|
|
681
|
-
|
|
704
|
+
align: 'left',
|
|
705
|
+
font: {...fontObject},
|
|
706
|
+
icon: {
|
|
707
|
+
maxWidth: '60px',
|
|
708
|
+
maxHeight: '60px',
|
|
709
|
+
marginRight: '20px'
|
|
710
|
+
}
|
|
682
711
|
},
|
|
683
712
|
|
|
684
713
|
image: {
|
|
@@ -699,6 +728,34 @@ export default {
|
|
|
699
728
|
},
|
|
700
729
|
closeAreaBackgroundColor: 'linear-gradient(to bottom, rgb(60, 57, 62), rgba(60, 57, 62, 0))' // for close div background color
|
|
701
730
|
},
|
|
731
|
+
// default properties for <SwipeModal /> component
|
|
732
|
+
SWIPEMODAL: {
|
|
733
|
+
width: '300px',
|
|
734
|
+
height: '100vh',
|
|
735
|
+
titleStyle: {
|
|
736
|
+
color: '#1C212D',
|
|
737
|
+
textAlign: 'left',
|
|
738
|
+
maxHeight: '66px',
|
|
739
|
+
padding: '0px 20px',
|
|
740
|
+
font: {...fontObject},
|
|
741
|
+
},
|
|
742
|
+
parent: {
|
|
743
|
+
width: '100%',
|
|
744
|
+
height: '100vh',
|
|
745
|
+
colors: {
|
|
746
|
+
background: 'rgba(60, 61, 70, 0.2)'
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
colors: {
|
|
750
|
+
background: 'white',
|
|
751
|
+
},
|
|
752
|
+
border: {
|
|
753
|
+
radius: '10px'
|
|
754
|
+
},
|
|
755
|
+
// withParent: true,
|
|
756
|
+
outSideClose: false,
|
|
757
|
+
closeIcon: closeCall,
|
|
758
|
+
},
|
|
702
759
|
// default properties for <Checkbox /> component
|
|
703
760
|
CHECKBOX: {
|
|
704
761
|
className: '',
|
|
@@ -785,17 +842,78 @@ export default {
|
|
|
785
842
|
},
|
|
786
843
|
// default properties for <Pagination /> component
|
|
787
844
|
PAGINATION: {
|
|
845
|
+
width: '34px',
|
|
846
|
+
height: '34px',
|
|
847
|
+
lineHeight: '16px',
|
|
788
848
|
className: '', // for pagination class
|
|
849
|
+
color: '#000000',
|
|
850
|
+
|
|
851
|
+
font: {
|
|
852
|
+
size: '13px',
|
|
853
|
+
style: '',
|
|
854
|
+
weight: '',
|
|
855
|
+
family: ''
|
|
856
|
+
},
|
|
857
|
+
|
|
858
|
+
colors: {
|
|
859
|
+
hover: '#000000',
|
|
860
|
+
active: '#ffffff',
|
|
861
|
+
background: '#ffffff',
|
|
862
|
+
activeHover: '#ffffff',
|
|
863
|
+
hoverBackground: '#dddddd',
|
|
864
|
+
activeBackground: '#00236a'
|
|
865
|
+
},
|
|
866
|
+
|
|
867
|
+
border: {
|
|
868
|
+
width: '1px',
|
|
869
|
+
color: 'rgba(238,238,238, 1)',
|
|
870
|
+
radius: '6px',
|
|
871
|
+
}
|
|
789
872
|
},
|
|
790
873
|
// default properties for <Toaster /> component
|
|
791
874
|
TOASTER: {
|
|
875
|
+
width: '440px',
|
|
876
|
+
height: '83px',
|
|
792
877
|
className: '',
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
878
|
+
marginBottom: '20px',
|
|
879
|
+
backgroundColor: '#FFFFFF',
|
|
880
|
+
padding: '14px 29px 14px 12px',
|
|
881
|
+
border: {
|
|
882
|
+
width: '2px',
|
|
883
|
+
style: 'solid',
|
|
884
|
+
radius: '40px',
|
|
885
|
+
color: '#EEEEEE'
|
|
886
|
+
},
|
|
887
|
+
title: {
|
|
888
|
+
color: '#3C393E',
|
|
889
|
+
lineHeight: '22px',
|
|
890
|
+
font: {
|
|
891
|
+
size: '16px',
|
|
892
|
+
style: 'normal',
|
|
893
|
+
weight: 600,
|
|
894
|
+
family: '',
|
|
895
|
+
},
|
|
896
|
+
props: {}
|
|
897
|
+
},
|
|
898
|
+
description: {
|
|
899
|
+
color: '#3C393E',
|
|
900
|
+
lineHeight: '16px',
|
|
901
|
+
font: {
|
|
902
|
+
size: '12px',
|
|
903
|
+
style: 'normal',
|
|
904
|
+
weight: 500,
|
|
905
|
+
family: '',
|
|
906
|
+
},
|
|
907
|
+
props: {
|
|
908
|
+
opacity: 0.8
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
icons: {
|
|
912
|
+
info: '',
|
|
913
|
+
warn: '',
|
|
914
|
+
error: '',
|
|
915
|
+
close: '',
|
|
916
|
+
success: ''
|
|
799
917
|
}
|
|
800
918
|
},
|
|
801
919
|
// default properties for <Stepper /> component
|
|
@@ -817,11 +935,13 @@ export default {
|
|
|
817
935
|
width: '2px',
|
|
818
936
|
style: 'solid',
|
|
819
937
|
color: '#E7E7E7',
|
|
938
|
+
hoverColor: '#E7E7E7',
|
|
820
939
|
activeColor: '#3C3D46',
|
|
821
940
|
},
|
|
822
941
|
|
|
823
942
|
label: {
|
|
824
943
|
color: '#3C3D46',
|
|
944
|
+
activeColor: '#3C3D46',
|
|
825
945
|
lineHeight: '21px',
|
|
826
946
|
|
|
827
947
|
font: {...fontObject}
|
|
@@ -830,5 +950,44 @@ export default {
|
|
|
830
950
|
// default properties for <Form /> component
|
|
831
951
|
FORM: {
|
|
832
952
|
className: ''
|
|
953
|
+
},
|
|
954
|
+
// default properties for <Accordion /> component
|
|
955
|
+
ACCORDION: {
|
|
956
|
+
className: '',
|
|
957
|
+
padding: '15px',
|
|
958
|
+
color: '#121212',
|
|
959
|
+
marginBottom: '0px',
|
|
960
|
+
|
|
961
|
+
colors: {
|
|
962
|
+
hover: '#009B8B',
|
|
963
|
+
background: '#E5E7EA',
|
|
964
|
+
backgroundHover: '#CBCED5'
|
|
965
|
+
},
|
|
966
|
+
|
|
967
|
+
border: {
|
|
968
|
+
color: '#A8ADB9',
|
|
969
|
+
width: '1px',
|
|
970
|
+
style: 'solid',
|
|
971
|
+
|
|
972
|
+
radius: '0px',
|
|
973
|
+
|
|
974
|
+
top: false,
|
|
975
|
+
left: false,
|
|
976
|
+
right: false,
|
|
977
|
+
bottom: true
|
|
978
|
+
},
|
|
979
|
+
|
|
980
|
+
font: {
|
|
981
|
+
size: '14px',
|
|
982
|
+
style: 'normal',
|
|
983
|
+
weight: 700,
|
|
984
|
+
family: 'Noto Sans Armenian'
|
|
985
|
+
},
|
|
986
|
+
|
|
987
|
+
icon: {
|
|
988
|
+
open: greenPlus,
|
|
989
|
+
close: greenMinus,
|
|
990
|
+
openHover: greenPlus,
|
|
991
|
+
}
|
|
833
992
|
}
|
|
834
993
|
}
|