react-crud-mobile 1.3.337 → 1.3.339
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/dist/react-crud-mobile.cjs.development.js +18 -3
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +18 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UISelect.tsx +24 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-crud-mobile",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.339",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Uma biblioteca de componentes para React Native v1",
|
6
6
|
"main": "dist/index.js",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"@react-native-vector-icons/material-icons": "^0.0.1",
|
47
47
|
"expo-status-bar": "~3.0.8",
|
48
48
|
"react": "19.1.0",
|
49
|
-
"react-crud-utils": "^0.1.
|
49
|
+
"react-crud-utils": "^0.1.455",
|
50
50
|
"react-dom": "19.1.0",
|
51
51
|
"react-native": "0.81.4",
|
52
52
|
"react-native-draggable-flatlist": "^4.0.3",
|
@@ -52,6 +52,27 @@ export default function UISelect(props: ChildType) {
|
|
52
52
|
const isModalVisible = () => {
|
53
53
|
return modalVisible;
|
54
54
|
};
|
55
|
+
|
56
|
+
const getLabelStyle = () => {
|
57
|
+
const css: any = style('selectLabel');
|
58
|
+
let fs = parseInt(css.fontSize);
|
59
|
+
|
60
|
+
if (!fs) {
|
61
|
+
fs = 14;
|
62
|
+
}
|
63
|
+
|
64
|
+
let lh = Utils.nvl(css.lineHeight, fs + 2);
|
65
|
+
|
66
|
+
css.fontSize = fs;
|
67
|
+
css.lineHeight = lh;
|
68
|
+
|
69
|
+
return css;
|
70
|
+
};
|
71
|
+
|
72
|
+
const labelStyle = getLabelStyle();
|
73
|
+
const defIconSize = Utils.nvl(labelStyle.fontSize, 14) + 2;
|
74
|
+
const iconSize = scope.getPart('iconSize', null, defIconSize);
|
75
|
+
|
55
76
|
//v4
|
56
77
|
|
57
78
|
return (
|
@@ -60,12 +81,10 @@ export default function UISelect(props: ChildType) {
|
|
60
81
|
style={style('selectRoot')}
|
61
82
|
>
|
62
83
|
<TouchableOpacity onPress={handlePress} style={style('selectInput')}>
|
63
|
-
<Text style={
|
64
|
-
{Utils.nvl(value, placeholder)}
|
65
|
-
</Text>
|
84
|
+
<Text style={labelStyle}>{Utils.nvl(value, placeholder)}</Text>
|
66
85
|
<Ionicons
|
67
86
|
name="chevron-down-outline"
|
68
|
-
size={
|
87
|
+
size={iconSize}
|
69
88
|
color={scope.getPart('iconColor', null, iconColor)}
|
70
89
|
style={style('iconStyle', {})}
|
71
90
|
/>
|
@@ -146,7 +165,7 @@ const styles = StyleSheet.create({
|
|
146
165
|
borderColor: '#dedede',
|
147
166
|
paddingVertical: 10,
|
148
167
|
},
|
149
|
-
selectLabel: { flex: 1 },
|
168
|
+
selectLabel: { flex: 1, fontSize: 14 },
|
150
169
|
modalTop: {
|
151
170
|
backgroundColor: 'primary',
|
152
171
|
width: '100%',
|