@fto-consult/expo-ui 6.26.13 → 6.26.15
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": "6.26.
|
|
3
|
+
"version": "6.26.15",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"@expo/vector-icons": "^13.0.0",
|
|
70
70
|
"@faker-js/faker": "^8.0.2",
|
|
71
71
|
"@fto-consult/common": "^3.29.2",
|
|
72
|
+
"@fto-consult/expo-ui": "^6.26.13",
|
|
72
73
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
|
73
74
|
"@react-native-async-storage/async-storage": "1.18.2",
|
|
74
75
|
"@react-native-community/datetimepicker": "7.2.0",
|
|
@@ -205,7 +205,7 @@ const ButtonComponent = React.forwardRef((prs,ref) => {
|
|
|
205
205
|
return <Tooltip ref={ref} {...rest}>
|
|
206
206
|
{(tProps,tRef)=>{
|
|
207
207
|
return <View
|
|
208
|
-
testID = {testID+"_Container"}
|
|
208
|
+
testID = {testID+"_Container"} {...containerProps} ref={(el)=>{
|
|
209
209
|
if(el){
|
|
210
210
|
el.setIsLoading = setIsLoading;
|
|
211
211
|
el.setIsDisabled = setIsDisabled;
|
|
@@ -206,12 +206,14 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
|
|
|
206
206
|
const totalRef = React.useRef(0);
|
|
207
207
|
const loading = (isLoading || isValidating);
|
|
208
208
|
const {data,total} = React.useMemo(()=>{
|
|
209
|
-
if(loading){
|
|
209
|
+
if(loading || !isObjOrArray(result)){
|
|
210
210
|
return {data:dataRef.current,total:totalRef.current};
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
let {data,total} = (Array.isArray(result) ? {data:result,total:result.length} : isObj(result)? result : {data:[],total:0});
|
|
213
213
|
const dd = Object.size(data);
|
|
214
|
-
if(
|
|
214
|
+
if(typeof total !=='number'){
|
|
215
|
+
total = dd;
|
|
216
|
+
} else if(dd>total){
|
|
215
217
|
total = dd;
|
|
216
218
|
}
|
|
217
219
|
if(onFetchData && typeof onFetchData =='function'){
|
|
@@ -653,6 +653,7 @@ export default class DropdownAlert extends Component {
|
|
|
653
653
|
elevation: elevation,
|
|
654
654
|
};
|
|
655
655
|
const activeOpacity = !tapToCloseEnabled || showCancel ? 1 : 0.95;
|
|
656
|
+
console.log(contentContainerStyle," is content container style");
|
|
656
657
|
const onPress = !tapToCloseEnabled
|
|
657
658
|
? null
|
|
658
659
|
: () => this.closeAction(ACTION.tap);
|
|
@@ -47,22 +47,25 @@ const DrawerItem = ({icon,iconProps,borderRadius,color,minimized,contentContaine
|
|
|
47
47
|
|
|
48
48
|
borderRadius = typeof borderRadius =='number'? borderRadius : 18;
|
|
49
49
|
accessibilityLabel = defaultStr(accessibilityLabel);
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
const labelContent = React.useStableMemo(()=>{
|
|
51
|
+
const lProps = {
|
|
52
|
+
testID:testID+"_DrawerItemLabel",
|
|
53
|
+
selectable:false,
|
|
54
|
+
numberOfLines:1,
|
|
55
|
+
...labelProps,
|
|
56
|
+
style : [{
|
|
57
|
+
color: contentColor,
|
|
58
|
+
...font,
|
|
59
|
+
fontWeight,
|
|
60
|
+
},labelProps.style,rProps,
|
|
61
|
+
minimized && styles.hidden,
|
|
62
|
+
],
|
|
63
|
+
}
|
|
64
|
+
const labelContent = typeof label =='function'? label(lProps) : label;
|
|
65
|
+
return React.isValidElement(labelContent,true)? <Label testID={testID+"_Label"} {...lProps}>
|
|
66
|
+
{labelContent}
|
|
67
|
+
</Label> : null;
|
|
68
|
+
},[labelProps,typeof label =='function'?true:label,theme.name,theme.colors.primary,minimized]);
|
|
66
69
|
return (
|
|
67
70
|
<View {...rest} testID={testID} style={[rest.style,{paddingVertical:0,marginVertical:0},minimized?styles.containerMinimized:null]}>
|
|
68
71
|
<TouchableRipple
|
|
@@ -96,7 +99,7 @@ const DrawerItem = ({icon,iconProps,borderRadius,color,minimized,contentContaine
|
|
|
96
99
|
position={minimized?'top':"right"}
|
|
97
100
|
size={minimized ?MINIMIZED_ICON_SIZE : ICON_SIZE} onPress={minimized?onPress:undefined} color={contentColor} />
|
|
98
101
|
) : null}
|
|
99
|
-
{
|
|
102
|
+
{labelContent}
|
|
100
103
|
</View>
|
|
101
104
|
{right}
|
|
102
105
|
</View>
|
|
@@ -144,6 +147,10 @@ const styles = StyleSheet.create({
|
|
|
144
147
|
flexDirection: 'row',
|
|
145
148
|
alignItems: 'center',
|
|
146
149
|
},
|
|
150
|
+
hidden : {
|
|
151
|
+
opacity : 0,
|
|
152
|
+
display : "none",
|
|
153
|
+
}
|
|
147
154
|
});
|
|
148
155
|
|
|
149
156
|
export default DrawerItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = {"@fto-consult/expo-ui":{"name":"@fto-consult/expo-ui","version":"6.26.
|
|
1
|
+
module.exports = {"@fto-consult/expo-ui":{"name":"@fto-consult/expo-ui","version":"6.26.13","repository":{"type":"git","url":"git+https://github.com/borispipo/expo-ui.git"},"homepage":"https://github.com/borispipo/expo-ui#readme"},"@emotion/native":{"version":"11.11.0","url":"https://emotion.sh","license":"MIT"},"@emotion/react":{"version":"11.11.1","url":"https://github.com/emotion-js/emotion/tree/main/packages/react","license":"MIT"},"@expo/html-elements":{"version":"0.5.1","url":"https://github.com/expo/expo/tree/main/packages/html-elements","license":"MIT"},"@expo/metro-config":{"version":"0.10.7","url":"https://github.com/expo/expo.git","license":"MIT"},"@expo/vector-icons":{"version":"13.0.0","url":"https://expo.github.io/vector-icons","license":"MIT"},"@expo/webpack-config":{"version":"18.1.2","url":"https://github.com/expo/expo-cli.git","license":"MIT"},"@faker-js/faker":{"version":"8.0.2","url":"https://github.com/faker-js/faker.git","license":"MIT"},"@fto-consult/common":{"version":"3.29.2","url":"https://github.com/borispipo/common#readme","license":"ISC"},"@pchmn/expo-material3-theme":{"version":"1.3.1","url":"https://github.com/pchmn/expo-material3-theme#readme","license":"MIT"},"@react-native-async-storage/async-storage":{"version":"1.18.2","url":"https://github.com/react-native-async-storage/async-storage#readme","license":"MIT"},"@react-native-community/datetimepicker":{"version":"7.2.0","url":"https://github.com/react-native-community/datetimepicker#readme","license":"MIT"},"@react-native-community/netinfo":{"version":"9.3.10","url":"https://github.com/react-native-netinfo/react-native-netinfo#readme","license":"MIT"},"@react-native/assets-registry":{"version":"0.72.0","url":"git@github.com:facebook/react-native.git","license":"MIT"},"@react-navigation/native":{"version":"6.1.7","url":"https://reactnavigation.org","license":"MIT"},"@react-navigation/native-stack":{"version":"6.9.13","url":"https://github.com/software-mansion/react-native-screens#readme","license":"MIT"},"@shopify/flash-list":{"version":"1.4.3","url":"https://shopify.github.io/flash-list/","license":"MIT"},"apexcharts":{"version":"3.41.1","url":"https://apexcharts.com","license":"MIT"},"babel-plugin-inline-dotenv":{"version":"1.7.0","url":"https://github.com/brysgo/babel-plugin-inline-dotenv#readme","license":"ISC"},"babel-plugin-module-resolver":{"version":"5.0.0","url":"https://github.com/tleunen/babel-plugin-module-resolver.git","license":"MIT"},"expo":{"version":"49.0.8","url":"https://github.com/expo/expo/tree/main/packages/expo","license":"MIT"},"expo-camera":{"version":"13.4.2","url":"https://docs.expo.dev/versions/latest/sdk/camera/","license":"MIT"},"expo-clipboard":{"version":"4.3.1","url":"https://docs.expo.dev/versions/latest/sdk/clipboard","license":"MIT"},"expo-font":{"version":"11.4.0","url":"https://docs.expo.dev/versions/latest/sdk/font/","license":"MIT"},"expo-image-picker":{"version":"14.3.2","url":"https://docs.expo.dev/versions/latest/sdk/imagepicker/","license":"MIT"},"expo-linking":{"version":"5.0.2","url":"https://docs.expo.dev/versions/latest/sdk/linking","license":"MIT"},"expo-sqlite":{"version":"11.3.2","url":"https://docs.expo.dev/versions/latest/sdk/sqlite/","license":"MIT"},"expo-status-bar":{"version":"1.6.0","url":"https://docs.expo.dev/versions/latest/sdk/status-bar/","license":"MIT"},"expo-system-ui":{"version":"2.4.0","url":"https://docs.expo.dev/versions/latest/sdk/system-ui","license":"MIT"},"expo-web-browser":{"version":"12.3.2","url":"https://docs.expo.dev/versions/latest/sdk/webbrowser/","license":"MIT"},"file-saver":{"version":"2.0.5","url":"https://github.com/eligrey/FileSaver.js#readme","license":"MIT"},"fs-extra":{"version":"11.1.1","url":"https://github.com/jprichardson/node-fs-extra","license":"MIT"},"google-libphonenumber":{"version":"3.2.33","url":"https://ruimarinho.github.io/google-libphonenumber/","license":"(MIT AND Apache-2.0)"},"htmlparser2-without-node-native":{"version":"3.9.2","url":"git://github.com/fb55/htmlparser2.git","license":"MIT"},"pdfmake":{"version":"0.2.7","url":"http://pdfmake.org","license":"MIT"},"process":{"version":"0.11.10","url":"git://github.com/shtylman/node-process.git","license":"MIT"},"prop-types":{"version":"15.8.1","url":"https://facebook.github.io/react/","license":"MIT"},"react":{"version":"18.2.0","url":"https://reactjs.org/","license":"MIT"},"react-content-loader":{"version":"6.2.1","url":"https://github.com/danilowoz/react-content-loader","license":"MIT"},"react-dom":{"version":"18.2.0","url":"https://reactjs.org/","license":"MIT"},"react-native":{"version":"0.72.4","license":"MIT"},"react-native-big-list":{"version":"1.6.1","url":"https://marcocesarato.github.io/react-native-big-list-docs/","license":"GPL-3.0-or-later"},"react-native-blob-util":{"version":"0.18.6","url":"https://github.com/RonRadtke/react-native-blob-util","license":"MIT"},"react-native-gesture-handler":{"version":"2.12.1","url":"https://github.com/software-mansion/react-native-gesture-handler#readme","license":"MIT"},"react-native-iphone-x-helper":{"version":"1.3.1","url":"https://github.com/ptelad/react-native-iphone-x-helper#readme","license":"MIT"},"react-native-mime-types":{"version":"2.4.0","license":"MIT"},"react-native-paper":{"version":"5.10.3","url":"https://callstack.github.io/react-native-paper","license":"MIT"},"react-native-paper-dates":{"version":"0.18.14","url":"https://github.com/web-ridge/react-native-paper-dates#readme","license":"MIT"},"react-native-reanimated":{"version":"3.3.0","url":"https://github.com/software-mansion/react-native-reanimated#readme","license":"MIT"},"react-native-safe-area-context":{"version":"4.6.3","url":"https://github.com/th3rdwave/react-native-safe-area-context#readme","license":"MIT"},"react-native-screens":{"version":"3.22.1","url":"https://github.com/software-mansion/react-native-screens#readme","license":"MIT"},"react-native-svg":{"version":"13.9.0","url":"https://github.com/react-native-community/react-native-svg","license":"MIT"},"react-native-web":{"version":"0.19.7","url":"git://github.com/necolas/react-native-web.git","license":"MIT"},"react-native-webview":{"version":"13.2.2","url":"https://github.com/react-native-webview/react-native-webview#readme","license":"MIT"},"react-virtuoso":{"version":"4.5.0","url":"https://virtuoso.dev/","license":"MIT"},"sharp-cli":{"version":"4.1.1","url":"https://github.com/vseventer/sharp-cli","license":"MIT"},"tippy.js":{"version":"6.3.7","url":"https://atomiks.github.io/tippyjs/","license":"MIT"},"uninstall":{"version":"0.0.0","license":"MIT"},"websql":{"version":"2.0.3","url":"git://github.com/nolanlawson/node-websql.git","license":"Apache-2.0"},"xlsx":{"version":"0.18.5","url":"https://sheetjs.com/","license":"Apache-2.0"}};
|