@fto-consult/expo-ui 6.32.1 → 6.32.2
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.32.
|
|
3
|
+
"version": "6.32.2",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@expo/html-elements": "^0.5.1",
|
|
69
69
|
"@expo/vector-icons": "^13.0.0",
|
|
70
70
|
"@faker-js/faker": "^8.0.2",
|
|
71
|
-
"@fto-consult/common": "^3.
|
|
71
|
+
"@fto-consult/common": "^3.33.0",
|
|
72
72
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
|
73
73
|
"@react-native-async-storage/async-storage": "1.18.2",
|
|
74
74
|
"@react-native-community/datetimepicker": "7.2.0",
|
|
@@ -50,7 +50,7 @@ const FontIcon = React.forwardRef(({icon,name,testID,color,iconColor,iconStyle,b
|
|
|
50
50
|
console.warn("Icone non définie pour le composant FontIcon, icon [{0}], merci de spécifier une icone supportée par la liste du module https://github.com/expo/vector-icons/MaterialCommunityIcons".sprintf(icon),props);
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
|
-
const iconName = icon.trim().ltrim(iconSetName).trim();
|
|
53
|
+
const iconName = icon.trim().ltrim(iconSetName+"-").ltrim("-").trim();
|
|
54
54
|
return <Icon {...props}
|
|
55
55
|
ref = {ref}
|
|
56
56
|
testID = {testID}
|
|
@@ -7,6 +7,8 @@ import {View} from "react-native";
|
|
|
7
7
|
import Icon from "./Icon";
|
|
8
8
|
import Label from "$ecomponents/Label";
|
|
9
9
|
import theme from "$theme";
|
|
10
|
+
import {copyTextToClipboard} from "$clipboard/utils";
|
|
11
|
+
import { StyleSheet } from "react-native";
|
|
10
12
|
|
|
11
13
|
const SelectFontIconComponent = React.forwardRef((props,ref)=>{
|
|
12
14
|
const items = React.useMemo(()=>{
|
|
@@ -37,12 +39,18 @@ const SelectFontIconComponent = React.forwardRef((props,ref)=>{
|
|
|
37
39
|
getItemValue ={({item})=>item.icon}
|
|
38
40
|
renderText = {({item})=>item.icon}
|
|
39
41
|
renderItem = {({item})=>{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<View>
|
|
43
|
-
<
|
|
44
|
-
<
|
|
42
|
+
const {icon,iconSetName} = item;
|
|
43
|
+
return <View testID="RN_SELECTFontIconContainer" style={[theme.styles.row,styles.content,theme.styles.justifyContentSpaceBetween,theme.styles.alignItemsCenter]}>
|
|
44
|
+
<View style={[theme.styles.row,theme.styles.justifyContentFlexStart,theme.styles.alignItemsCenter]}>
|
|
45
|
+
<Icon size={35} primary name={icon}/>
|
|
46
|
+
<View>
|
|
47
|
+
<Label textBold>{icon}</Label>
|
|
48
|
+
<Label>{iconSetName}</Label>
|
|
49
|
+
</View>
|
|
45
50
|
</View>
|
|
51
|
+
<Icon size={25} name="content-copy" title={`Copier la valeur [${icon}] dans le presse papier`} onPress={(e)=>{
|
|
52
|
+
copyTextToClipboard(icon);
|
|
53
|
+
}}/>
|
|
46
54
|
</View>
|
|
47
55
|
}}
|
|
48
56
|
/>
|
|
@@ -57,6 +65,10 @@ SelectFontIconComponent.propTypes = {
|
|
|
57
65
|
imageProps : PropTypes.object, ///les props à appliquer aux images affichées
|
|
58
66
|
}
|
|
59
67
|
|
|
60
|
-
|
|
68
|
+
const styles = StyleSheet.create({
|
|
69
|
+
content : {
|
|
70
|
+
flexGrow : 1,
|
|
71
|
+
}
|
|
72
|
+
})
|
|
61
73
|
|
|
62
74
|
|