react-crud-mobile 1.0.807 → 1.0.809
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 +7 -2
- 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 +7 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIButton.tsx +9 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.809",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"description": "Uma biblioteca de componentes para React Native",
|
|
5
5
|
"main": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@react-native-vector-icons/ionicons": "^7.4.0",
|
|
45
45
|
"@react-native-vector-icons/material-icons": "^0.0.1",
|
|
46
46
|
"react": "19.0.0",
|
|
47
|
-
"react-crud-utils": "^0.1.
|
|
47
|
+
"react-crud-utils": "^0.1.306",
|
|
48
48
|
"react-dom": "19.0.0",
|
|
49
49
|
"react-native": "0.79.2",
|
|
50
50
|
"react-native-gesture-handler": "~2.24.0",
|
|
@@ -2,7 +2,8 @@ import { Ionicons } from '@expo/vector-icons';
|
|
|
2
2
|
import { ChildType, Utils } from 'react-crud-utils';
|
|
3
3
|
import { Text, TouchableHighlight, View } from 'react-native';
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const buttonsSize: any = { small: { minWidth: 30, height: 30 } };
|
|
6
|
+
const iconsSize: any = { small: { fontSize: 20 } };
|
|
6
7
|
|
|
7
8
|
export default function UIButton(props: ChildType) {
|
|
8
9
|
let scope = props.scope;
|
|
@@ -76,17 +77,23 @@ export default function UIButton(props: ChildType) {
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
if (size) {
|
|
79
|
-
css = { ...css, ...
|
|
80
|
+
css = { ...css, ...buttonsSize[size] };
|
|
80
81
|
}
|
|
81
82
|
return css;
|
|
82
83
|
});
|
|
83
84
|
|
|
84
85
|
const iconStyle = Utils.call(() => {
|
|
85
86
|
let css: any = style('buttonIcon', extra.icon);
|
|
87
|
+
let size = element.size;
|
|
86
88
|
|
|
87
89
|
if (element.variant === 'text') {
|
|
88
90
|
css.color = 'text';
|
|
89
91
|
}
|
|
92
|
+
|
|
93
|
+
if (size) {
|
|
94
|
+
css = { ...css, ...iconStyle[size] };
|
|
95
|
+
}
|
|
96
|
+
return css;
|
|
90
97
|
});
|
|
91
98
|
|
|
92
99
|
return (
|