mg-library 1.0.755 → 1.0.757
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/blocks.js +30 -61
- package/package.json +1 -1
package/blocks.js
CHANGED
|
@@ -263,76 +263,45 @@ export function MGLogin(props) {
|
|
|
263
263
|
</Input>
|
|
264
264
|
)}
|
|
265
265
|
name="userName" />
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
name='password' />
|
|
294
|
-
}
|
|
295
|
-
{!props.useNumericKeyboardOnPassword &&
|
|
296
|
-
<Controller
|
|
297
|
-
control={control}
|
|
298
|
-
rules={{ maxLength: 50 }}
|
|
299
|
-
render={({ field: { onChange, value } }) => (
|
|
300
|
-
<Input
|
|
301
|
-
size="lg"
|
|
302
|
-
variant="outline"
|
|
303
|
-
px="$3"
|
|
304
|
-
rounded="$md"
|
|
305
|
-
bg="$white"
|
|
306
|
-
borderColor="$gray300"
|
|
307
|
-
>
|
|
308
|
-
<InputField
|
|
309
|
-
placeholder={mgFunctionsLib.i18nString('phone', props.language)}
|
|
310
|
-
placeholderTextColor="$gray300"
|
|
311
|
-
value={value}
|
|
312
|
-
onChangeText={onChange}
|
|
313
|
-
secureTextEntry
|
|
314
|
-
maxLength={12}
|
|
315
|
-
keyboardType={isKeyboardNumericForPassword ? "numeric" : "default"}
|
|
316
|
-
autoCapitalize="none"
|
|
317
|
-
autoCorrect={false}
|
|
318
|
-
returnKeyType="done"
|
|
319
|
-
/>
|
|
320
|
-
</Input>
|
|
321
|
-
)}
|
|
322
|
-
name="password" />
|
|
323
|
-
}
|
|
266
|
+
<Controller
|
|
267
|
+
control={control}
|
|
268
|
+
rules={{ maxLength: 50 }}
|
|
269
|
+
render={({ field: { onChange, value } }) => (
|
|
270
|
+
<Input
|
|
271
|
+
size="lg"
|
|
272
|
+
variant="outline"
|
|
273
|
+
px="$3"
|
|
274
|
+
rounded="$md"
|
|
275
|
+
bg="$white"
|
|
276
|
+
borderColor="$gray300"
|
|
277
|
+
>
|
|
278
|
+
<InputField
|
|
279
|
+
placeholder={mgFunctionsLib.i18nString('password', props.language)}
|
|
280
|
+
placeholderTextColor="$gray300"
|
|
281
|
+
value={value}
|
|
282
|
+
onChangeText={onChange}
|
|
283
|
+
secureTextEntry
|
|
284
|
+
maxLength={12}
|
|
285
|
+
keyboardType={isKeyboardNumericForPassword ? "numeric" : "default"}
|
|
286
|
+
autoCapitalize="none"
|
|
287
|
+
autoCorrect={false}
|
|
288
|
+
returnKeyType="done"
|
|
289
|
+
/>
|
|
290
|
+
</Input>
|
|
291
|
+
)}
|
|
292
|
+
name="password" />
|
|
324
293
|
</MGCard>
|
|
325
|
-
<View style={{
|
|
294
|
+
<View style={{ flex: 1, alignItems: 'center' }}>
|
|
326
295
|
<Button
|
|
327
296
|
action="primary"
|
|
328
297
|
variant="outline"
|
|
329
|
-
w={
|
|
298
|
+
w={80}
|
|
330
299
|
h={50}
|
|
331
300
|
onPress={() => {
|
|
332
301
|
setIsKeyboardNumericForPassword(!isKeyboardNumericForPassword)
|
|
333
302
|
}}
|
|
334
303
|
>
|
|
335
|
-
<Icon as={MaterialCommunityIcons} name="keyboard" mr="$2" color="$primary500" />
|
|
304
|
+
<Icon as={MaterialCommunityIcons} name="keyboard" mr="$2" color="$primary500" />
|
|
336
305
|
</Button>
|
|
337
306
|
</View>
|
|
338
307
|
</View>
|