react-crud-mobile 1.3.323 → 1.3.325
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 +12 -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 +12 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIToggle.tsx +9 -2
package/package.json
CHANGED
@@ -21,7 +21,7 @@ export default function UIToggle(props: ChildType) {
|
|
21
21
|
|
22
22
|
const Item = ({ item, index }) => {
|
23
23
|
let selected = isSelected(item);
|
24
|
-
let style: any = { ...styles.text };
|
24
|
+
let style: any = { ...styles.text, ...scope.getStyle('text') };
|
25
25
|
|
26
26
|
if (selected) style.color = '#ffffff';
|
27
27
|
|
@@ -56,6 +56,12 @@ export default function UIToggle(props: ChildType) {
|
|
56
56
|
}
|
57
57
|
}
|
58
58
|
|
59
|
+
const backgroundColor = item.backgroundColor;
|
60
|
+
const color = item.color;
|
61
|
+
|
62
|
+
if (item.backgroundColor) style = { ...style, backgroundColor };
|
63
|
+
if (item.color) style = { ...style, color };
|
64
|
+
|
59
65
|
style.width = width;
|
60
66
|
|
61
67
|
return style;
|
@@ -85,6 +91,7 @@ const styles = StyleSheet.create({
|
|
85
91
|
justifyContent: 'center',
|
86
92
|
flexDirection: 'row',
|
87
93
|
alignItems: 'center',
|
94
|
+
margin: 3,
|
88
95
|
},
|
89
96
|
item: {
|
90
97
|
backgroundColor: 'background',
|
@@ -97,7 +104,7 @@ const styles = StyleSheet.create({
|
|
97
104
|
borderRadius: 2,
|
98
105
|
},
|
99
106
|
text: {
|
100
|
-
fontSize:
|
107
|
+
fontSize: 13,
|
101
108
|
fontWeight: '400',
|
102
109
|
},
|
103
110
|
});
|