@fto-consult/expo-ui 7.6.25 → 7.6.27
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": "7.6.
|
3
|
+
"version": "7.6.27",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"scripts": {
|
6
6
|
"clear-npx-cache": "npx clear-npx-cache",
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"@expo/html-elements": "^0.5.1",
|
72
72
|
"@expo/vector-icons": "^13.0.0",
|
73
73
|
"@faker-js/faker": "^8.0.2",
|
74
|
-
"@fto-consult/common": "^3.73.
|
74
|
+
"@fto-consult/common": "^3.73.13",
|
75
75
|
"@fto-consult/electron": "^1.0.26",
|
76
76
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
77
77
|
"@react-native-async-storage/async-storage": "1.18.2",
|
@@ -114,7 +114,7 @@
|
|
114
114
|
"react-native-iphone-x-helper": "^1.3.1",
|
115
115
|
"react-native-mime-types": "^2.4.0",
|
116
116
|
"react-native-paper": "^5.11.4",
|
117
|
-
"react-native-paper-dates": "^0.
|
117
|
+
"react-native-paper-dates": "^0.21.4",
|
118
118
|
"react-native-reanimated": "~3.3.0",
|
119
119
|
"react-native-safe-area-context": "4.6.3",
|
120
120
|
"react-native-screens": "~3.22.0",
|
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
} from 'react-native';
|
6
6
|
import View from "$ecomponents/View";
|
7
7
|
import Tooltip from "$ecomponents/Tooltip";
|
8
|
-
import theme,{DISABLED_OPACITY,Colors,cursorNotAllowed,StylePropsTypes} from "$theme";
|
8
|
+
import theme,{DISABLED_OPACITY,Colors,colorsAlias,cursorNotAllowed,StylePropsTypes} from "$theme";
|
9
9
|
import Icon from "$ecomponents/Icon";
|
10
10
|
import {TouchableRipple} from "react-native-paper";
|
11
11
|
import ActivityIndicator from "$ecomponents/ActivityIndicator";
|
@@ -173,7 +173,6 @@ const ButtonComponent = React.forwardRef((prs,ref) => {
|
|
173
173
|
|
174
174
|
const elevationRes = disabled || !hasElevation ? 0 : elevation?.__getValue();
|
175
175
|
contentStyle = Object.assign({},StyleSheet.flatten([hasElevation ? (icon?styles.elevation2icon:(isAlert?styles.elevationAlert:styles.elevationOnly)):null,contentProps.style,contentStyle]));
|
176
|
-
|
177
176
|
if(iconPosition == 'top'){
|
178
177
|
contentStyle.flexDirection = 'column';
|
179
178
|
} else if(iconPosition =='bottom'){
|
@@ -368,7 +367,12 @@ const styles = StyleSheet.create({
|
|
368
367
|
});
|
369
368
|
|
370
369
|
ButtonComponent.displayName = "ButtonComponent";
|
371
|
-
export default theme.withStyles(ButtonComponent
|
370
|
+
export default theme.withStyles(ButtonComponent,{
|
371
|
+
shouldForwardProp : (prop)=>{
|
372
|
+
if(prop && colorsAlias.includes(prop)) return true;
|
373
|
+
return undefined;
|
374
|
+
}
|
375
|
+
});
|
372
376
|
|
373
377
|
ButtonComponent.propTypes = {
|
374
378
|
left : PropTypes.oneOfType([
|
package/src/context/TableData.js
CHANGED
@@ -16,6 +16,7 @@ import notify from "$notify";
|
|
16
16
|
import appConfig from "$capp/config";
|
17
17
|
import Screen from "$eScreen";
|
18
18
|
import { getStateFromPath } from "@react-navigation/native";
|
19
|
+
import * as Linking from 'expo-linking';
|
19
20
|
|
20
21
|
|
21
22
|
export function TableDataListScreen({tableName,table,screenName,...props}){
|
@@ -70,8 +71,10 @@ export function prepareScreens ({tables,screens:screensProps,navigationContainer
|
|
70
71
|
const screens = [];
|
71
72
|
|
72
73
|
///linking inintialization for config
|
74
|
+
const prefix = Linking.createURL('/');
|
73
75
|
containerProps.linking = defaultObj(containerProps.linking);
|
74
76
|
containerProps.linking.prefixes = Array.isArray(containerProps.linking.prefixes)? containerProps.linking.prefixes : [];
|
77
|
+
containerProps.linking.prefixes.unshift(prefix);
|
75
78
|
containerProps.linking.config = defaultObj(containerProps.linking.config);
|
76
79
|
if(!containerProps.linking.prefixes.length){
|
77
80
|
const appName = sanitizeName(appConfig.name);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module.exports = {
|
2
2
|
"@fto-consult/expo-ui": {
|
3
3
|
"name": "@fto-consult/expo-ui",
|
4
|
-
"version": "7.6.
|
4
|
+
"version": "7.6.26",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "git+https://github.com/borispipo/expo-ui.git"
|
@@ -49,12 +49,12 @@ module.exports = {
|
|
49
49
|
"license": "MIT"
|
50
50
|
},
|
51
51
|
"@fto-consult/common": {
|
52
|
-
"version": "3.73.
|
52
|
+
"version": "3.73.11",
|
53
53
|
"url": "https://github.com/borispipo/common#readme",
|
54
54
|
"license": "ISC"
|
55
55
|
},
|
56
56
|
"@fto-consult/electron": {
|
57
|
-
"version": "1.0.
|
57
|
+
"version": "1.0.26",
|
58
58
|
"license": "ISC"
|
59
59
|
},
|
60
60
|
"@pchmn/expo-material3-theme": {
|
@@ -268,7 +268,7 @@ module.exports = {
|
|
268
268
|
"license": "MIT"
|
269
269
|
},
|
270
270
|
"react-native-paper-dates": {
|
271
|
-
"version": "0.
|
271
|
+
"version": "0.21.4",
|
272
272
|
"url": "https://github.com/web-ridge/react-native-paper-dates#readme",
|
273
273
|
"license": "MIT"
|
274
274
|
},
|