mg-library 1.0.544 → 1.0.546

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 CHANGED
@@ -10,6 +10,7 @@ import { uploadFile } from '@uploadcare/upload-client';
10
10
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
11
11
 
12
12
  import './prototypes.js';
13
+ import MGText from './components.js';
13
14
  import * as mgFunctionsLib from './functions.js';
14
15
  import * as mgConstantsLib from './constants.js';
15
16
  import * as mgLoginLib from './login.js';
@@ -22,11 +23,11 @@ export function MGWelcome(props) {
22
23
  <Image source={{ uri: props.company.logoUrl }} style={{ width: 100, height: 100 }} />
23
24
  </View>
24
25
  <View style={{ flex: 1, flexDirection: 'column', alignSelf: 'center' }}>
25
- <Text style={{ textAlign: 'center' }} category='h6'>{props.company.legalName}</Text>
26
- <Text style={{ textAlign: 'center' }} category='c1'>{props.company.address}</Text>
27
- <Text style={{ textAlign: 'center' }} category='c1'>{props.company.city}, {props.company.province}</Text>
28
- <Text style={{ textAlign: 'center' }} category='c1'>{props.company.phone}</Text>
29
- <Text style={{ textAlign: 'center' }} category='c1'>{props.company.email}</Text>
26
+ <MGText style={{ textAlign: 'center' }} category='h6'>{props.company.legalName}</MGText>
27
+ <MGText style={{ textAlign: 'center' }} category='c1'>{props.company.address}</MGText>
28
+ <MGText style={{ textAlign: 'center' }} category='c1'>{props.company.city}, {props.company.province}</MGText>
29
+ <MGText style={{ textAlign: 'center' }} category='c1'>{props.company.phone}</MGText>
30
+ <MGText style={{ textAlign: 'center' }} category='c1'>{props.company.email}</MGText>
30
31
  </View>
31
32
  </View>
32
33
  )
@@ -57,8 +58,8 @@ export function MGWelcome(props) {
57
58
  {item.isImportant &&
58
59
  <MaterialCommunityIcons style={{ flex: 1 }} name='alert-circle-outline' color={props.theme['color-primary-500']} size={30} />
59
60
  }
60
- <Text style={{ flex: 1 }} category='h6'>{item.description}</Text>
61
- <Text style={{ flex: 1, marginBottom: 10 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</Text>
61
+ <MGText style={{ flex: 1 }} category='h6'>{item.description}</MGText>
62
+ <MGText style={{ flex: 1, marginBottom: 10 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</MGText>
62
63
  </View>
63
64
  </>
64
65
  );
@@ -86,9 +87,7 @@ export function MGWelcome(props) {
86
87
  <Image source={{ uri: item.imageUrl }} style={{ width: '70%', resizeMode: 'contain', height: undefined, aspectRatio: 1 }} />
87
88
  </View>
88
89
  }
89
- <Text>
90
- <Text style={{ marginBottom: 10 }}>{item.content}</Text>
91
- </Text>
90
+ <MGText style={{ marginBottom: 10 }}>{item.content}</MGText>
92
91
  </Card>
93
92
  )}
94
93
  ListHeaderComponent={listHeaderComponent}
package/functions.js CHANGED
@@ -8,6 +8,7 @@ import 'moment/locale/es';
8
8
  import 'moment/locale/en-gb';
9
9
  import { Camera } from 'expo-camera';
10
10
 
11
+ import MGText from './components.js';
11
12
  import * as mgConstants from './constants.js';
12
13
 
13
14
  // Navigator
@@ -67,9 +68,9 @@ export function getCardHeader(title, subTitle) {
67
68
  <>
68
69
  <View style={{ flexDirection: 'row', marginTop: 10, marginBottom: 10, marginLeft: 10 }}>
69
70
  <View style={{ flexGrow: 0.95 }}>
70
- <Text category='h6'>{title}</Text>
71
+ <MGText category='h6'>{title}</MGText>
71
72
  {subTitle != undefined &&
72
- <Text category='p1' style={{ fontStyle: 'italic' }}>{subTitle}</Text>
73
+ <MGText category='p1' style={{ fontStyle: 'italic' }}>{subTitle}</MGText>
73
74
  }
74
75
  </View>
75
76
  </View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.544",
3
+ "version": "1.0.546",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {