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.
Files changed (2) hide show
  1. package/blocks.js +30 -61
  2. 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
- {props.useNumericKeyboardOnPassword &&
267
- <Controller
268
- control={control}
269
- rules={{ maxLength: 50 }}
270
- render={({ field: { onChange, value } }) => (
271
- <Input
272
- size="lg"
273
- variant="outline"
274
- px="$3"
275
- rounded="$md"
276
- bg="$white"
277
- borderColor="$gray300"
278
- >
279
- <InputField
280
- placeholder={mgFunctionsLib.i18nString('password', props.language)}
281
- placeholderTextColor="$gray300"
282
- value={value}
283
- onChangeText={onChange}
284
- secureTextEntry
285
- maxLength={12}
286
- keyboardType={isKeyboardNumericForPassword ? "numeric" : "default"}
287
- autoCapitalize="none"
288
- autoCorrect={false}
289
- returnKeyType="done"
290
- />
291
- </Input>
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={{ alignContent: 'center' }}>
294
+ <View style={{ flex: 1, alignItems: 'center' }}>
326
295
  <Button
327
296
  action="primary"
328
297
  variant="outline"
329
- w={100}
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.755",
3
+ "version": "1.0.757",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "react-native": "index.js",