react-native-umui 1.3.25

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.
Files changed (171) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +20 -0
  3. package/lib/commonjs/Badge.js +57 -0
  4. package/lib/commonjs/Badge.js.map +1 -0
  5. package/lib/commonjs/Button.js +122 -0
  6. package/lib/commonjs/Button.js.map +1 -0
  7. package/lib/commonjs/Checkbox.js +71 -0
  8. package/lib/commonjs/Checkbox.js.map +1 -0
  9. package/lib/commonjs/Divider.js +46 -0
  10. package/lib/commonjs/Divider.js.map +1 -0
  11. package/lib/commonjs/EasyIn.js +80 -0
  12. package/lib/commonjs/EasyIn.js.map +1 -0
  13. package/lib/commonjs/FlatList.js +27 -0
  14. package/lib/commonjs/FlatList.js.map +1 -0
  15. package/lib/commonjs/FlatPanel.js +63 -0
  16. package/lib/commonjs/FlatPanel.js.map +1 -0
  17. package/lib/commonjs/Grid.js +49 -0
  18. package/lib/commonjs/Grid.js.map +1 -0
  19. package/lib/commonjs/InputField.js +61 -0
  20. package/lib/commonjs/InputField.js.map +1 -0
  21. package/lib/commonjs/Line.js +33 -0
  22. package/lib/commonjs/Line.js.map +1 -0
  23. package/lib/commonjs/Load.js +84 -0
  24. package/lib/commonjs/Load.js.map +1 -0
  25. package/lib/commonjs/Numeral.js +206 -0
  26. package/lib/commonjs/Numeral.js.map +1 -0
  27. package/lib/commonjs/PanelRK.js +35 -0
  28. package/lib/commonjs/PanelRK.js.map +1 -0
  29. package/lib/commonjs/Phone.js +377 -0
  30. package/lib/commonjs/Phone.js.map +1 -0
  31. package/lib/commonjs/Press.js +18 -0
  32. package/lib/commonjs/Press.js.map +1 -0
  33. package/lib/commonjs/Radio.js +74 -0
  34. package/lib/commonjs/Radio.js.map +1 -0
  35. package/lib/commonjs/Scroll.js +43 -0
  36. package/lib/commonjs/Scroll.js.map +1 -0
  37. package/lib/commonjs/Tab.js +279 -0
  38. package/lib/commonjs/Tab.js.map +1 -0
  39. package/lib/commonjs/Text.js +29 -0
  40. package/lib/commonjs/Text.js.map +1 -0
  41. package/lib/commonjs/TextInput.js +69 -0
  42. package/lib/commonjs/TextInput.js.map +1 -0
  43. package/lib/commonjs/common.js +1917 -0
  44. package/lib/commonjs/common.js.map +1 -0
  45. package/lib/commonjs/index.js +248 -0
  46. package/lib/commonjs/index.js.map +1 -0
  47. package/lib/commonjs/regions.js +253 -0
  48. package/lib/commonjs/regions.js.map +1 -0
  49. package/lib/commonjs/shadows.js +231 -0
  50. package/lib/commonjs/shadows.js.map +1 -0
  51. package/lib/module/Badge.js +50 -0
  52. package/lib/module/Badge.js.map +1 -0
  53. package/lib/module/Button.js +115 -0
  54. package/lib/module/Button.js.map +1 -0
  55. package/lib/module/Checkbox.js +63 -0
  56. package/lib/module/Checkbox.js.map +1 -0
  57. package/lib/module/Divider.js +39 -0
  58. package/lib/module/Divider.js.map +1 -0
  59. package/lib/module/EasyIn.js +69 -0
  60. package/lib/module/EasyIn.js.map +1 -0
  61. package/lib/module/FlatList.js +20 -0
  62. package/lib/module/FlatList.js.map +1 -0
  63. package/lib/module/FlatPanel.js +56 -0
  64. package/lib/module/FlatPanel.js.map +1 -0
  65. package/lib/module/Grid.js +40 -0
  66. package/lib/module/Grid.js.map +1 -0
  67. package/lib/module/InputField.js +53 -0
  68. package/lib/module/InputField.js.map +1 -0
  69. package/lib/module/Line.js +26 -0
  70. package/lib/module/Line.js.map +1 -0
  71. package/lib/module/Load.js +76 -0
  72. package/lib/module/Load.js.map +1 -0
  73. package/lib/module/Numeral.js +196 -0
  74. package/lib/module/Numeral.js.map +1 -0
  75. package/lib/module/PanelRK.js +28 -0
  76. package/lib/module/PanelRK.js.map +1 -0
  77. package/lib/module/Phone.js +367 -0
  78. package/lib/module/Phone.js.map +1 -0
  79. package/lib/module/Press.js +11 -0
  80. package/lib/module/Press.js.map +1 -0
  81. package/lib/module/Radio.js +67 -0
  82. package/lib/module/Radio.js.map +1 -0
  83. package/lib/module/Scroll.js +33 -0
  84. package/lib/module/Scroll.js.map +1 -0
  85. package/lib/module/Tab.js +264 -0
  86. package/lib/module/Tab.js.map +1 -0
  87. package/lib/module/Text.js +20 -0
  88. package/lib/module/Text.js.map +1 -0
  89. package/lib/module/TextInput.js +60 -0
  90. package/lib/module/TextInput.js.map +1 -0
  91. package/lib/module/common.js +1908 -0
  92. package/lib/module/common.js.map +1 -0
  93. package/lib/module/index.js +23 -0
  94. package/lib/module/index.js.map +1 -0
  95. package/lib/module/regions.js +244 -0
  96. package/lib/module/regions.js.map +1 -0
  97. package/lib/module/shadows.js +223 -0
  98. package/lib/module/shadows.js.map +1 -0
  99. package/lib/typescript/src/Badge.d.ts +16 -0
  100. package/lib/typescript/src/Badge.d.ts.map +1 -0
  101. package/lib/typescript/src/Button.d.ts +21 -0
  102. package/lib/typescript/src/Button.d.ts.map +1 -0
  103. package/lib/typescript/src/Checkbox.d.ts +15 -0
  104. package/lib/typescript/src/Checkbox.d.ts.map +1 -0
  105. package/lib/typescript/src/Divider.d.ts +10 -0
  106. package/lib/typescript/src/Divider.d.ts.map +1 -0
  107. package/lib/typescript/src/EasyIn.d.ts +24 -0
  108. package/lib/typescript/src/EasyIn.d.ts.map +1 -0
  109. package/lib/typescript/src/FlatList.d.ts +7 -0
  110. package/lib/typescript/src/FlatList.d.ts.map +1 -0
  111. package/lib/typescript/src/FlatPanel.d.ts +10 -0
  112. package/lib/typescript/src/FlatPanel.d.ts.map +1 -0
  113. package/lib/typescript/src/Grid.d.ts +20 -0
  114. package/lib/typescript/src/Grid.d.ts.map +1 -0
  115. package/lib/typescript/src/InputField.d.ts +18 -0
  116. package/lib/typescript/src/InputField.d.ts.map +1 -0
  117. package/lib/typescript/src/Line.d.ts +10 -0
  118. package/lib/typescript/src/Line.d.ts.map +1 -0
  119. package/lib/typescript/src/Load.d.ts +13 -0
  120. package/lib/typescript/src/Load.d.ts.map +1 -0
  121. package/lib/typescript/src/Numeral.d.ts +76 -0
  122. package/lib/typescript/src/Numeral.d.ts.map +1 -0
  123. package/lib/typescript/src/PanelRK.d.ts +8 -0
  124. package/lib/typescript/src/PanelRK.d.ts.map +1 -0
  125. package/lib/typescript/src/Phone.d.ts +53 -0
  126. package/lib/typescript/src/Phone.d.ts.map +1 -0
  127. package/lib/typescript/src/Press.d.ts +8 -0
  128. package/lib/typescript/src/Press.d.ts.map +1 -0
  129. package/lib/typescript/src/Radio.d.ts +16 -0
  130. package/lib/typescript/src/Radio.d.ts.map +1 -0
  131. package/lib/typescript/src/Scroll.d.ts +13 -0
  132. package/lib/typescript/src/Scroll.d.ts.map +1 -0
  133. package/lib/typescript/src/Tab.d.ts +78 -0
  134. package/lib/typescript/src/Tab.d.ts.map +1 -0
  135. package/lib/typescript/src/Text.d.ts +8 -0
  136. package/lib/typescript/src/Text.d.ts.map +1 -0
  137. package/lib/typescript/src/TextInput.d.ts +8 -0
  138. package/lib/typescript/src/TextInput.d.ts.map +1 -0
  139. package/lib/typescript/src/common.d.ts +16 -0
  140. package/lib/typescript/src/common.d.ts.map +1 -0
  141. package/lib/typescript/src/index.d.ts +23 -0
  142. package/lib/typescript/src/index.d.ts.map +1 -0
  143. package/lib/typescript/src/regions.d.ts +244 -0
  144. package/lib/typescript/src/regions.d.ts.map +1 -0
  145. package/lib/typescript/src/shadows.d.ts +214 -0
  146. package/lib/typescript/src/shadows.d.ts.map +1 -0
  147. package/package.json +160 -0
  148. package/src/Badge.tsx +6 -0
  149. package/src/Button.tsx +7 -0
  150. package/src/Checkbox.tsx +3 -0
  151. package/src/Divider.tsx +3 -0
  152. package/src/EasyIn.tsx +4 -0
  153. package/src/FlatList.tsx +2 -0
  154. package/src/FlatPanel.tsx +2 -0
  155. package/src/Grid.tsx +3 -0
  156. package/src/InputField.tsx +3 -0
  157. package/src/Line.tsx +2 -0
  158. package/src/Load.tsx +3 -0
  159. package/src/Numeral.tsx +135 -0
  160. package/src/PanelRK.tsx +1 -0
  161. package/src/Phone.tsx +159 -0
  162. package/src/Press.tsx +2 -0
  163. package/src/Radio.tsx +2 -0
  164. package/src/Scroll.tsx +1 -0
  165. package/src/Tab.tsx +40 -0
  166. package/src/Text.tsx +1 -0
  167. package/src/TextInput.tsx +22 -0
  168. package/src/common.tsx +3438 -0
  169. package/src/index.tsx +22 -0
  170. package/src/regions.ts +227 -0
  171. package/src/shadows.ts +24 -0
@@ -0,0 +1,244 @@
1
+ export declare const codesMap: Readonly<{
2
+ US: "US";
3
+ AW: "AW";
4
+ AF: "AF";
5
+ AO: "AO";
6
+ AX: "AX";
7
+ AL: "AL";
8
+ AD: "AD";
9
+ AE: "AE";
10
+ AR: "AR";
11
+ AM: "AM";
12
+ AS: "AS";
13
+ AG: "AG";
14
+ AU: "AU";
15
+ AT: "AT";
16
+ AZ: "AZ";
17
+ BI: "BI";
18
+ BE: "BE";
19
+ BJ: "BJ";
20
+ BF: "BF";
21
+ BD: "BD";
22
+ BG: "BG";
23
+ BH: "BH";
24
+ BS: "BS";
25
+ BA: "BA";
26
+ BZ: "BZ";
27
+ BM: "BM";
28
+ BO: "BO";
29
+ BR: "BR";
30
+ BB: "BB";
31
+ BN: "BN";
32
+ BT: "BT";
33
+ BW: "BW";
34
+ CF: "CF";
35
+ CA: "CA";
36
+ CH: "CH";
37
+ CL: "CL";
38
+ CN: "CN";
39
+ CI: "CI";
40
+ CM: "CM";
41
+ CD: "CD";
42
+ CG: "CG";
43
+ CK: "CK";
44
+ CO: "CO";
45
+ KM: "KM";
46
+ CV: "CV";
47
+ CR: "CR";
48
+ CU: "CU";
49
+ KY: "KY";
50
+ CY: "CY";
51
+ CZ: "CZ";
52
+ DE: "DE";
53
+ DJ: "DJ";
54
+ DM: "DM";
55
+ DK: "DK";
56
+ DO: "DO";
57
+ DZ: "DZ";
58
+ EC: "EC";
59
+ EG: "EG";
60
+ ER: "ER";
61
+ ES: "ES";
62
+ EE: "EE";
63
+ ET: "ET";
64
+ FI: "FI";
65
+ FJ: "FJ";
66
+ FK: "FK";
67
+ FR: "FR";
68
+ FO: "FO";
69
+ FM: "FM";
70
+ GA: "GA";
71
+ GB: "GB";
72
+ GH: "GH";
73
+ GI: "GI";
74
+ GN: "GN";
75
+ GP: "GP";
76
+ GM: "GM";
77
+ GW: "GW";
78
+ GQ: "GQ";
79
+ GR: "GR";
80
+ GD: "GD";
81
+ GL: "GL";
82
+ GT: "GT";
83
+ GF: "GF";
84
+ GU: "GU";
85
+ GY: "GY";
86
+ HK: "HK";
87
+ HN: "HN";
88
+ HR: "HR";
89
+ HT: "HT";
90
+ HU: "HU";
91
+ ID: "ID";
92
+ IN: "IN";
93
+ IE: "IE";
94
+ IR: "IR";
95
+ IQ: "IQ";
96
+ IS: "IS";
97
+ IL: "IL";
98
+ IT: "IT";
99
+ JM: "JM";
100
+ JO: "JO";
101
+ JP: "JP";
102
+ KZ: "KZ";
103
+ KE: "KE";
104
+ KG: "KG";
105
+ KH: "KH";
106
+ KI: "KI";
107
+ KN: "KN";
108
+ KP: "KP";
109
+ KR: "KR";
110
+ KW: "KW";
111
+ LA: "LA";
112
+ LB: "LB";
113
+ LR: "LR";
114
+ LY: "LY";
115
+ LC: "LC";
116
+ LI: "LI";
117
+ LK: "LK";
118
+ LS: "LS";
119
+ LT: "LT";
120
+ LU: "LU";
121
+ LV: "LV";
122
+ MO: "MO";
123
+ MA: "MA";
124
+ MC: "MC";
125
+ MD: "MD";
126
+ MG: "MG";
127
+ MV: "MV";
128
+ MX: "MX";
129
+ MH: "MH";
130
+ MK: "MK";
131
+ ML: "ML";
132
+ MT: "MT";
133
+ MM: "MM";
134
+ ME: "ME";
135
+ MN: "MN";
136
+ MP: "MP";
137
+ MZ: "MZ";
138
+ MR: "MR";
139
+ MS: "MS";
140
+ MQ: "MQ";
141
+ MU: "MU";
142
+ MW: "MW";
143
+ MY: "MY";
144
+ YT: "YT";
145
+ NA: "NA";
146
+ NC: "NC";
147
+ NE: "NE";
148
+ NF: "NF";
149
+ NG: "NG";
150
+ NI: "NI";
151
+ NU: "NU";
152
+ NL: "NL";
153
+ NO: "NO";
154
+ NP: "NP";
155
+ NR: "NR";
156
+ NZ: "NZ";
157
+ OM: "OM";
158
+ PK: "PK";
159
+ PA: "PA";
160
+ PE: "PE";
161
+ PH: "PH";
162
+ PW: "PW";
163
+ PG: "PG";
164
+ PL: "PL";
165
+ PR: "PR";
166
+ PT: "PT";
167
+ PY: "PY";
168
+ PS: "PS";
169
+ PF: "PF";
170
+ QA: "QA";
171
+ RE: "RE";
172
+ RO: "RO";
173
+ RU: "RU";
174
+ RW: "RW";
175
+ SA: "SA";
176
+ SD: "SD";
177
+ SN: "SN";
178
+ SG: "SG";
179
+ SH: "SH";
180
+ SJ: "SJ";
181
+ SB: "SB";
182
+ SL: "SL";
183
+ SV: "SV";
184
+ SM: "SM";
185
+ SO: "SO";
186
+ SX: "SX";
187
+ RS: "RS";
188
+ ST: "ST";
189
+ SR: "SR";
190
+ SI: "SI";
191
+ SE: "SE";
192
+ SC: "SC";
193
+ SY: "SY";
194
+ TC: "TC";
195
+ TD: "TD";
196
+ TG: "TG";
197
+ TH: "TH";
198
+ TJ: "TJ";
199
+ TK: "TK";
200
+ TM: "TM";
201
+ TL: "TL";
202
+ TO: "TO";
203
+ TT: "TT";
204
+ TN: "TN";
205
+ TR: "TR";
206
+ TV: "TV";
207
+ TW: "TW";
208
+ TZ: "TZ";
209
+ UG: "UG";
210
+ UA: "UA";
211
+ UY: "UY";
212
+ UZ: "UZ";
213
+ VC: "VC";
214
+ VE: "VE";
215
+ VG: "VG";
216
+ VI: "VI";
217
+ VN: "VN";
218
+ VU: "VU";
219
+ WF: "WF";
220
+ WS: "WS";
221
+ YE: "YE";
222
+ ZA: "ZA";
223
+ ZM: "ZM";
224
+ ZW: "ZW";
225
+ }>;
226
+ export declare const codes: ("BB" | "RE" | "SR" | "NA" | "GN" | "VU" | "WS" | "FR" | "AD" | "AZ" | "MV" | "PF" | "LC" | "PA" | "TL" | "MK" | "DK" | "EG" | "EE" | "CZ" | "BS" | "UY" | "AX" | "KM" | "CK" | "CR" | "TG" | "ST" | "NL" | "HK" | "AU" | "MY" | "NP" | "CU" | "KP" | "GF" | "MD" | "ZM" | "DM" | "MH" | "TO" | "PE" | "CV" | "KI" | "FI" | "CI" | "MQ" | "PK" | "DJ" | "TC" | "FM" | "SI" | "KG" | "CH" | "KW" | "SC" | "GB" | "VI" | "FJ" | "YE" | "VG" | "CF" | "BE" | "AR" | "MG" | "ZA" | "LV" | "ZW" | "GA" | "RO" | "DE" | "BD" | "MS" | "JO" | "MT" | "MZ" | "IL" | "ER" | "ID" | "JP" | "ES" | "AF" | "AE" | "MW" | "TR" | "ME" | "LT" | "TM" | "ET" | "HU" | "AS" | "TD" | "GP" | "NG" | "SM" | "UA" | "HT" | "BW" | "PT" | "GY" | "IE" | "NC" | "MU" | "GI" | "KN" | "IS" | "SJ" | "CL" | "KZ" | "CN" | "MO" | "AM" | "BO" | "VN" | "WF" | "BI" | "CA" | "CO" | "LS" | "BM" | "GT" | "UZ" | "KY" | "SN" | "GM" | "LI" | "TV" | "GQ" | "BT" | "AW" | "PY" | "GD" | "PG" | "JM" | "CG" | "PL" | "RU" | "MR" | "BF" | "CD" | "BJ" | "UG" | "MN" | "LA" | "DZ" | "BN" | "KE" | "LK" | "DO" | "AT" | "LU" | "NO" | "TH" | "IN" | "MA" | "GL" | "NI" | "QA" | "TW" | "BR" | "NZ" | "SG" | "SY" | "BZ" | "FK" | "VE" | "BH" | "MP" | "CM" | "CY" | "US" | "AO" | "TN" | "MC" | "RW" | "TT" | "MX" | "YT" | "AG" | "TK" | "KR" | "NE" | "AL" | "SO" | "LR" | "MM" | "TZ" | "IQ" | "VC" | "LY" | "SL" | "SX" | "RS" | "GH" | "SE" | "GR" | "FO" | "PH" | "GW" | "SA" | "PW" | "BG" | "NR" | "KH" | "PS" | "IT" | "ML" | "IR" | "NU" | "TJ" | "SH" | "NF" | "OM" | "SV" | "LB" | "EC" | "GU" | "HR" | "SB" | "HN" | "PR" | "BA" | "SD")[];
227
+ export declare const MCOLORS: Readonly<{
228
+ primary: "#3b82f6";
229
+ success: "#22c55e";
230
+ warning: "#f97316";
231
+ secondary: "#14b8a6";
232
+ danger: "#ca251a";
233
+ light: "white";
234
+ smokelight: "#f7f7f7";
235
+ navy: "#3e4b67";
236
+ orange: "#ff4e02";
237
+ darksky: "#004d6c";
238
+ cyan: "#4bb790";
239
+ gray: "gray";
240
+ lightgray: "#dadce0";
241
+ green: "#85d89a";
242
+ lightgreen: "#85d89a";
243
+ }>;
244
+ //# sourceMappingURL=regions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../../../src/regions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgOnB,CAAC;AACH,eAAO,MAAM,KAAK,4hDAA0B,CAAC;AAC7C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;EAAsT,CAAC"}
@@ -0,0 +1,214 @@
1
+ export declare const MSHADOWS: {
2
+ _1: {
3
+ shadowColor: string;
4
+ shadowOffset: {
5
+ width: number;
6
+ height: number;
7
+ };
8
+ shadowOpacity: number;
9
+ shadowRadius: number;
10
+ elevation: number;
11
+ };
12
+ _2: {
13
+ shadowColor: string;
14
+ shadowOffset: {
15
+ width: number;
16
+ height: number;
17
+ };
18
+ shadowOpacity: number;
19
+ shadowRadius: number;
20
+ elevation: number;
21
+ };
22
+ _3: {
23
+ shadowColor: string;
24
+ shadowOffset: {
25
+ width: number;
26
+ height: number;
27
+ };
28
+ shadowOpacity: number;
29
+ shadowRadius: number;
30
+ elevation: number;
31
+ };
32
+ _4: {
33
+ shadowColor: string;
34
+ shadowOffset: {
35
+ width: number;
36
+ height: number;
37
+ };
38
+ shadowOpacity: number;
39
+ shadowRadius: number;
40
+ elevation: number;
41
+ };
42
+ _5: {
43
+ shadowColor: string;
44
+ shadowOffset: {
45
+ width: number;
46
+ height: number;
47
+ };
48
+ shadowOpacity: number;
49
+ shadowRadius: number;
50
+ elevation: number;
51
+ };
52
+ _6: {
53
+ shadowColor: string;
54
+ shadowOffset: {
55
+ width: number;
56
+ height: number;
57
+ };
58
+ shadowOpacity: number;
59
+ shadowRadius: number;
60
+ elevation: number;
61
+ };
62
+ _7: {
63
+ shadowColor: string;
64
+ shadowOffset: {
65
+ width: number;
66
+ height: number;
67
+ };
68
+ shadowOpacity: number;
69
+ shadowRadius: number;
70
+ elevation: number;
71
+ };
72
+ _8: {
73
+ shadowColor: string;
74
+ shadowOffset: {
75
+ width: number;
76
+ height: number;
77
+ };
78
+ shadowOpacity: number;
79
+ shadowRadius: number;
80
+ elevation: number;
81
+ };
82
+ _9: {
83
+ shadowColor: string;
84
+ shadowOffset: {
85
+ width: number;
86
+ height: number;
87
+ };
88
+ shadowOpacity: number;
89
+ shadowRadius: number;
90
+ elevation: number;
91
+ };
92
+ _10: {
93
+ shadowColor: string;
94
+ shadowOffset: {
95
+ width: number;
96
+ height: number;
97
+ };
98
+ shadowOpacity: number;
99
+ shadowRadius: number;
100
+ elevation: number;
101
+ };
102
+ _11: {
103
+ shadowColor: string;
104
+ shadowOffset: {
105
+ width: number;
106
+ height: number;
107
+ };
108
+ shadowOpacity: number;
109
+ shadowRadius: number;
110
+ elevation: number;
111
+ };
112
+ _12: {
113
+ shadowColor: string;
114
+ shadowOffset: {
115
+ width: number;
116
+ height: number;
117
+ };
118
+ shadowOpacity: number;
119
+ shadowRadius: number;
120
+ elevation: number;
121
+ };
122
+ _13: {
123
+ shadowColor: string;
124
+ shadowOffset: {
125
+ width: number;
126
+ height: number;
127
+ };
128
+ shadowOpacity: number;
129
+ shadowRadius: number;
130
+ elevation: number;
131
+ };
132
+ _14: {
133
+ shadowColor: string;
134
+ shadowOffset: {
135
+ width: number;
136
+ height: number;
137
+ };
138
+ shadowOpacity: number;
139
+ shadowRadius: number;
140
+ elevation: number;
141
+ };
142
+ _15: {
143
+ shadowColor: string;
144
+ shadowOffset: {
145
+ width: number;
146
+ height: number;
147
+ };
148
+ shadowOpacity: number;
149
+ shadowRadius: number;
150
+ elevation: number;
151
+ };
152
+ _16: {
153
+ shadowColor: string;
154
+ shadowOffset: {
155
+ width: number;
156
+ height: number;
157
+ };
158
+ shadowOpacity: number;
159
+ shadowRadius: number;
160
+ elevation: number;
161
+ };
162
+ _17: {
163
+ shadowColor: string;
164
+ shadowOffset: {
165
+ width: number;
166
+ height: number;
167
+ };
168
+ shadowOpacity: number;
169
+ shadowRadius: number;
170
+ elevation: number;
171
+ };
172
+ _18: {
173
+ shadowColor: string;
174
+ shadowOffset: {
175
+ width: number;
176
+ height: number;
177
+ };
178
+ shadowOpacity: number;
179
+ shadowRadius: number;
180
+ elevation: number;
181
+ };
182
+ _19: {
183
+ shadowColor: string;
184
+ shadowOffset: {
185
+ width: number;
186
+ height: number;
187
+ };
188
+ shadowOpacity: number;
189
+ shadowRadius: number;
190
+ elevation: number;
191
+ };
192
+ _20: {
193
+ shadowColor: string;
194
+ shadowOffset: {
195
+ width: number;
196
+ height: number;
197
+ };
198
+ shadowOpacity: number;
199
+ shadowRadius: number;
200
+ elevation: number;
201
+ };
202
+ _21: {
203
+ shadowColor: string;
204
+ shadowOffset: {
205
+ width: number;
206
+ height: number;
207
+ };
208
+ shadowOpacity: number;
209
+ shadowRadius: number;
210
+ elevation: number;
211
+ };
212
+ };
213
+ export declare const mshadow: (index: number, color: string, shadowOpacity?: number, shadowRadius?: number) => any;
214
+ //# sourceMappingURL=shadows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../../src/shadows.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBpB,CAAC;AACF,eAAO,MAAM,OAAO,UAAW,MAAM,SAAS,MAAM,kBAAkB,MAAM,iBAAiB,MAAM,QAA0M,CAAC"}
package/package.json ADDED
@@ -0,0 +1,160 @@
1
+ {
2
+ "name": "react-native-umui",
3
+ "version": "1.3.25",
4
+ "description": "test",
5
+ "main": "lib/commonjs/index.js",
6
+ "module": "lib/module/index.js",
7
+ "types": "lib/typescript/src/index.d.ts",
8
+ "react-native": "src/index.tsx",
9
+ "source": "src/index",
10
+ "files": [
11
+ "src",
12
+ "lib",
13
+ "!**/__tests__",
14
+ "!**/__fixtures__",
15
+ "!**/__mocks__",
16
+ "android",
17
+ "ios",
18
+ "cpp",
19
+ "*.podspec",
20
+ "!lib/typescript/example",
21
+ "!ios/build",
22
+ "!android/build",
23
+ "!android/gradle",
24
+ "!android/gradlew",
25
+ "!android/gradlew.bat",
26
+ "!android/local.properties",
27
+ "!**/.*"
28
+ ],
29
+ "scripts": {
30
+ "test": "jest",
31
+ "typecheck": "tsc --noEmit",
32
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
33
+ "prepack": "bob build",
34
+ "release": "release-it",
35
+ "example": "yarn --cwd example",
36
+ "bootstrap": "yarn example && yarn install"
37
+ },
38
+ "keywords": [
39
+ "react-native",
40
+ "ios",
41
+ "android"
42
+ ],
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/ademirtemur/react-native-umui.git"
46
+ },
47
+ "author": "ademdemir <adem@cloudnesil.com> (https://github.com/ademirtemur)",
48
+ "license": "MIT",
49
+ "bugs": {
50
+ "url": "https://github.com/ademirtemur/jsts/issues"
51
+ },
52
+ "homepage": "https://github.com/ademirtemur/react-native-umui#readme",
53
+ "publishConfig": {
54
+ "registry": "https://registry.npmjs.org/"
55
+ },
56
+ "devDependencies": {
57
+ "@commitlint/config-conventional": "^17.0.2",
58
+ "@evilmartians/lefthook": "^1.2.2",
59
+ "@react-native-community/eslint-config": "^3.0.2",
60
+ "@release-it/conventional-changelog": "^5.0.0",
61
+ "@types/jest": "^28.1.2",
62
+ "@types/react": "~17.0.21",
63
+ "@types/react-native": "0.70.0",
64
+ "commitlint": "^17.0.2",
65
+ "del-cli": "^5.0.0",
66
+ "eslint": "^8.4.1",
67
+ "eslint-config-prettier": "^8.5.0",
68
+ "eslint-plugin-prettier": "^4.0.0",
69
+ "jest": "^28.1.1",
70
+ "pod-install": "^0.1.0",
71
+ "prettier": "^2.0.5",
72
+ "react": "18.2.0",
73
+ "react-native": "0.72.3",
74
+ "react-native-builder-bob": "^0.20.4",
75
+ "release-it": "^15.0.0",
76
+ "typescript": "^4.5.2"
77
+ },
78
+ "resolutions": {
79
+ "@types/react": "17.0.21"
80
+ },
81
+ "peerDependencies": {
82
+ "react": "*",
83
+ "react-native": "*"
84
+ },
85
+ "engines": {
86
+ "node": ">= 16.0.0"
87
+ },
88
+ "packageManager": "^yarn@1.22.15",
89
+ "jest": {
90
+ "preset": "react-native",
91
+ "modulePathIgnorePatterns": [
92
+ "<rootDir>/example/node_modules",
93
+ "<rootDir>/lib/"
94
+ ]
95
+ },
96
+ "commitlint": {
97
+ "extends": [
98
+ "@commitlint/config-conventional"
99
+ ]
100
+ },
101
+ "release-it": {
102
+ "git": {
103
+ "commitMessage": "chore: release ${version}",
104
+ "tagName": "v${version}"
105
+ },
106
+ "npm": {
107
+ "publish": true
108
+ },
109
+ "github": {
110
+ "release": true
111
+ },
112
+ "plugins": {
113
+ "@release-it/conventional-changelog": {
114
+ "preset": "angular"
115
+ }
116
+ }
117
+ },
118
+ "eslintConfig": {
119
+ "root": true,
120
+ "extends": [
121
+ "@react-native-community",
122
+ "prettier"
123
+ ],
124
+ "rules": {
125
+ "prettier/prettier": [
126
+ "error",
127
+ {
128
+ "quoteProps": "consistent",
129
+ "singleQuote": true,
130
+ "tabWidth": 2,
131
+ "trailingComma": "es5",
132
+ "useTabs": false
133
+ }
134
+ ]
135
+ }
136
+ },
137
+ "eslintIgnore": [
138
+ "node_modules/",
139
+ "lib/"
140
+ ],
141
+ "prettier": {
142
+ "quoteProps": "consistent",
143
+ "singleQuote": true,
144
+ "tabWidth": 2,
145
+ "trailingComma": "es5",
146
+ "useTabs": false
147
+ },
148
+ "react-native-builder-bob": {
149
+ "source": "src",
150
+ "output": "lib",
151
+ "targets": [
152
+ "commonjs",
153
+ "module",
154
+ "typescript"
155
+ ]
156
+ },
157
+ "directories": {
158
+ "example": "example"
159
+ }
160
+ }
package/src/Badge.tsx ADDED
@@ -0,0 +1,6 @@
1
+ import React, { ReactNode } from "react"; import { StyleProp, TextStyle } from "react-native"; import { MText } from "./Text";
2
+ const nmcolors = { "success": "#3b82f6", "warning": "#ffffff", "danger": "#ffffff", "info": "#ffffff", "light": "gray", "dark": "white" };
3
+ const bgs = { "success": "#22c55e", "warning": "#f97316", "danger": "#ef4444", "info": "#14b8a6", "light": "black", "dark": "white" };
4
+ const otls = { "success": "#22c55e", "warning": "#f97316", "danger": "#ef4444", "info": "#14b8a6", "light": "#dadce0", "dark": "white" };
5
+ interface MBadgeProps { testID?: string; nativeID?: string; type: "success" | "warning" | "danger" | "info" | "light" | "dark"; align?: "auto" | "left" | "right" | "center" | "justify"; size?: "sm" | "md" | "nm"; outline?: boolean; style?: StyleProp<TextStyle>; label?: string; children?: ReactNode; };
6
+ export function MBadge({ size = "md", align = "center", ...props }: MBadgeProps) { return (<MText testID={props.testID} nativeID={props.nativeID} style={[{ fontSize: size === "sm" ? 12.5 : (size === "nm" ? 19 : 16), textAlign: align, paddingHorizontal: 4, paddingVertical: 3, borderWidth: 1, borderColor: otls[props.type], backgroundColor: props.outline ? "white" : bgs[props.type], color: props.outline ? bgs[props.type] : nmcolors[props.type], }, props.style]}>{props.children || props.label}</MText>); };
package/src/Button.tsx ADDED
@@ -0,0 +1,7 @@
1
+ import React, { ReactNode } from "react";import { ActivityIndicator, StyleProp, TouchableOpacity, ViewStyle } from "react-native";import { MText } from "./Text";
2
+ const colorsBg = {"primary": "#3b82f6","success": "#22c55e","warning": "#f97316","secondary": "#14b8a6","danger": "#ca251a","light": "white","smokelight": "#f7f7f7","navy": "#3e4b67","orange": "#ff4e02","darksky": "#004d6c"};
3
+ const colorsBr = {"primary": "#3b82f6","success": "#22c55e","warning": "#f97316","secondary": "#14b8a6","danger": "#ca251a","light": "#dadce0", "smokelight": "white","navy": "#3e4b67","orange": "#ff4e02","darksky": "#004d6c"};
4
+ const colorTxt = {"primary": "white","success": "white","warning": "white","secondary": "white","danger": "white","light": "black","smokelight": "black","navy": "white","orange": "white","darksky": "white"};
5
+ const colorTxtOutline = { "primary": "#3b82f6", "success": "#22c55e", "warning": "#f97316", "secondary": "#14b8a6", "danger": "#ca251a", "light": "black", "smokelight": "black", "navy": "#3e4b67", "orange": "#ff4e02", "darksky": "#004d6c"};
6
+ interface MButtonProps { testID?: string; size?: "xs" | "sm" | "md" | "nm"; noSizeLimit?: boolean; style?: StyleProp<ViewStyle>; label?: string; textAlign?: "center" | "left" | "right"; disabled?: boolean; outline?: boolean; noborder?: boolean; loading?: boolean; btnType: "primary" | "success" | "warning" | "secondary" | "danger" | "light" | "navy" | "smokelight" | "orange" | "darksky"; fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | undefined; onPress?: () => void; children?: ReactNode;};
7
+ export function MButton({ testID, size = "md", noSizeLimit = false, style, label, textAlign = "center", fontWeight = "normal", disabled, outline, noborder, loading, btnType, onPress, children}: MButtonProps) { return ( <TouchableOpacity testID={testID} style={[ disabled || loading ? { opacity: 0.55 } : {}, { flex: 1, height: noSizeLimit ? null : size === "nm" ? 49 : size === "md" ? 45 : size === "xs" ? 27 : 33, minHeight: noSizeLimit ? null : size === "nm" ? 49 : size === "md" ? 45 : size === "xs" ? 27 : 33, maxHeight: noSizeLimit ? null : size === "nm" ? 49 : size === "md" ? 45 : size === "xs" ? 27 : 33, backgroundColor: "purple", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center", borderRadius: 2 }, { backgroundColor: outline && btnType !== "smokelight" ? "white" : colorsBg[btnType] }, outline ? { borderWidth: 1, borderColor: colorsBr[btnType] } : {}, style, noborder ? { borderWidth: 0 } : {} ]} activeOpacity={0.85} disabled={disabled || loading}onPress={onPress}> {loading ? ( <ActivityIndicator size={21} color="purple" style={{ flex: 1, marginLeft: 9, marginRight: 9 }} /> ) : ( label ? ( <MText style={{ flex: 1, textAlign: textAlign, color: outline ? colorTxtOutline[btnType] : colorTxt[btnType], fontSize: size === "nm" ? 19 : size === "md" ? 17 : size === "xs" ? 11 : 14, paddingHorizontal: 11, fontWeight: fontWeight }}>{label} </MText> ) : ( children))} </TouchableOpacity>);}
@@ -0,0 +1,3 @@
1
+ import React, { TextStyle, TouchableHighlight, TouchableHighlightProps, View } from "react-native"; import { MText } from "./Text";
2
+ interface MCheckboxProps extends TouchableHighlightProps { name?: string; value: string | number | boolean; checked?: boolean; size?: number; color: string; label: string; labelStyle?: TextStyle; onChange?: (values: string | number | boolean, checked: boolean, name?: string) => void; };
3
+ export function MCheckbox({ name = "", value, checked, color, label, size = 26, labelStyle, style, onChange, ...props }: MCheckboxProps) { return (<TouchableHighlight activeOpacity={0.85}{...props} onPress={() => { if (onChange) { onChange(checked ? "" : value, !checked, name); } }} underlayColor="transparent" style={[{ flex: 1, maxHeight: size }, style]}><View style={{ flexDirection: "row", alignItems: "center" }}><View style={{ padding: 4, width: size, minHeight: size, height: size, borderWidth: 1, borderColor: color, backgroundColor: "white", display: "flex", justifyContent: "center", alignItems: "center" }}><View style={{ width: size - 8, minHeight: size - 8, height: size - 8, backgroundColor: checked ? color : "white" }} /></View><MText style={[{ fontSize: 16, paddingLeft: 11 }, labelStyle]}>{label}</MText></View></TouchableHighlight>) }
@@ -0,0 +1,3 @@
1
+ import React, { ReactNode } from "react"; import { View } from "react-native"; import { MText } from "./Text";
2
+ interface MDividerProps { testID?: string; label: string; description?: string; children?: ReactNode; };
3
+ export function MDivider(props: MDividerProps) { return (<View testID={props.testID} style={{ padding: 3, paddingVertical: 15, borderBottomWidth: 1, borderBottomColor: "#dadce0" }}><MText style={{ color: "grey", fontSize: 15 }}>{props.label}</MText><View style={{ marginTop: 5 }}>{props.description ? <MText style={{ width: "100%", color: "black", fontSize: 15, fontWeight: "500" }}>{props.description}</MText> : (props.children || <MText style={{ width: "100%", color: "black", fontSize: 15, fontWeight: "500" }}>-</MText>)}</View></View>) }
package/src/EasyIn.tsx ADDED
@@ -0,0 +1,4 @@
1
+ import React, { FC, useEffect } from "react"; import { Animated, StyleProp, Text, TextStyle, ViewProps } from "react-native";
2
+ type MEasyInProps = ViewProps & { direction?: "vr" | "hr"; from?: number; to?: number; duration?: number; children?: React.ReactNode; }; export const MEasyIn: FC<MEasyInProps> = ({ style, direction = "hr", from = 85, to = 0, duration = 500, children, ...props }) => { const popAnim = React.useRef(new Animated.Value(from)).current; useEffect(() => { Animated.timing(popAnim, { toValue: to, duration: duration, useNativeDriver: true, }).start(); }, []); return (<Animated.View {...props} style={[style, { transform: [direction === "hr" ? { translateX: popAnim } : { translateY: popAnim }] }]}>{children}</Animated.View>) }
3
+ type MOpacityProps = ViewProps & { from?: number; to?: number; duration?: number; children?: React.ReactNode }; export function MOpacity({ style, from = 0, to = 1, duration = 500, children, ...props }: MOpacityProps) { const popAnim = React.useRef(new Animated.Value(from)).current; useEffect(() => { Animated.timing(popAnim, { toValue: to, duration: duration, useNativeDriver: true, }).start(); }, []); return (<Animated.View {...props} style={[style, { opacity: popAnim }]}>{children}</Animated.View>) }
4
+ interface MEmptyProps { size?: number; style?: StyleProp<TextStyle>; }; export function MEmpty({ size = 35, style }: MEmptyProps) { return (<Text style={[{ fontSize: size, textAlign: "center", letterSpacing: 0.63 }, style]}>📥</Text>) }
@@ -0,0 +1,2 @@
1
+ import React from "react"; import { FlatList, FlatListProps } from "react-native";
2
+ interface MFlatListProps<T> extends FlatListProps<T> { }; export function MFlatList({ contentContainerStyle, ...props }: MFlatListProps<any>) { return (<FlatList initialNumToRender={5} scrollEnabled={true}{...props} contentContainerStyle={[{ flexGrow: 1, paddingBottom: 115 }, contentContainerStyle]} />) }
@@ -0,0 +1,2 @@
1
+ import React, { ReactNode } from "react"; import { Dimensions, StyleProp, View, ViewStyle } from "react-native";
2
+ interface IFlatPanelProps { position: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-center" | "right-center" | "top- center" | "bottom-center"; style?: StyleProp<ViewStyle>; children?: ReactNode; }; const positionconstains = { "top-left": { top: 9, left: 9 }, "top-right": { top: 9, right: 9 }, "top-center": { top: 0, left: 9, right: 9, display: "flex", flexDirection: "row", justifyContent: "center" }, "bottom-left": { bottom: 9, left: 9 }, "bottom-right": { bottom: 9, right: 9 }, "bottom-center": { bottom: 0, left: 9, right: 9, display: "flex", flexDirection: "row", justifyContent: "center" }, "left-center": { top: Dimensions.get("window").height / 2.0, left: 9 }, "right-center": { top: Dimensions.get("window").height / 2.0, right: 9 }, }; export function MFlatPanel(props: IFlatPanelProps) { return (<View style={[{ position: "absolute", zIndex: 99, backgroundColor: "transparent", alignItems: props.position.includes("right") ? "flex-end" : "flex-start", }, positionconstains[props.position] || positionconstains["top-center"], props.style]}>{props.children}</View>) }