@fto-consult/expo-ui 1.0.22 → 1.0.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@emotion/native": "^11.10.0",
|
|
61
61
|
"@expo/metro-config": "^0.4.0",
|
|
62
62
|
"@expo/webpack-config": "^0.17.2",
|
|
63
|
-
"@fto-consult/common": "^1.0
|
|
63
|
+
"@fto-consult/common": "^1.1.0",
|
|
64
64
|
"@gorhom/portal": "^1.0.14",
|
|
65
65
|
"@react-native-async-storage/async-storage": "~1.17.3",
|
|
66
66
|
"@react-native-community/netinfo": "9.3.0",
|
|
@@ -1,64 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export const flatMode = 'flat';
|
|
5
|
-
export const outlinedMode = 'outlined';
|
|
6
|
-
export const normalMode = "normal";
|
|
7
|
-
export const shadowMode = "shadow";
|
|
8
|
-
|
|
9
|
-
export const defaultMode = outlinedMode;
|
|
10
|
-
|
|
11
|
-
export const modes = {flat:flatMode,shadow:shadowMode,outlined:outlinedMode,normal:normalMode};
|
|
12
|
-
|
|
13
|
-
export const modesObject = {
|
|
14
|
-
flat : {
|
|
15
|
-
code : flatMode,
|
|
16
|
-
label : 'Flottant',
|
|
17
|
-
},
|
|
18
|
-
shadow : {
|
|
19
|
-
code : shadowMode,
|
|
20
|
-
label : 'Ombre',
|
|
21
|
-
},
|
|
22
|
-
normal : {
|
|
23
|
-
code : normalMode,
|
|
24
|
-
label : 'Normal',
|
|
25
|
-
},
|
|
26
|
-
outlined : {
|
|
27
|
-
code : outlinedMode,
|
|
28
|
-
label : 'Décrit',
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export const HEIGHT = 56;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export const AutoCapitalizeTypes = {
|
|
37
|
-
characters : "characters", ///all characters.
|
|
38
|
-
words : "words", //first letter of each word.
|
|
39
|
-
sentences :"sentences", //first letter of each sentence (default).
|
|
40
|
-
none : "none", ///don't auto capitalize anything.
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const keyboardTypes = {
|
|
44
|
-
default : 'default',
|
|
45
|
-
number : "number-pad",
|
|
46
|
-
numberPad : "number-pad",
|
|
47
|
-
decimal : "decimal-pad",
|
|
48
|
-
numeric : "numeric",
|
|
49
|
-
email : "email-address",
|
|
50
|
-
tel : "phone-pad",
|
|
51
|
-
phone : "phone-pad",
|
|
52
|
-
}
|
|
53
|
-
export const FONT_SIZE = 16;
|
|
54
|
-
|
|
55
|
-
export const parseDecimal = (v,type,preserveDecimalLength)=>{
|
|
56
|
-
type = defaultStr(type).trim().toLowerCase();
|
|
57
|
-
if((type =='number' || type =='decimal') && !isDecimal(v)){
|
|
58
|
-
if(v == undefined || v == null){
|
|
59
|
-
v = '';
|
|
60
|
-
}
|
|
61
|
-
v = defaultDecimal(NParseDecimal(v,preserveDecimalLength),0);
|
|
62
|
-
}
|
|
63
|
-
return v;
|
|
64
|
-
}
|
|
1
|
+
export * from "$common/TextField";
|