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
@@ -1195,7 +1195,7 @@ function UIToggle(props) {
|
|
1195
1195
|
var item = _ref.item,
|
1196
1196
|
index = _ref.index;
|
1197
1197
|
var selected = isSelected(item);
|
1198
|
-
var style = _extends({}, styles$7.text);
|
1198
|
+
var style = _extends({}, styles$7.text, scope.getStyle('text'));
|
1199
1199
|
if (selected) style.color = '#ffffff';
|
1200
1200
|
if (Utils.isEmpty(props.children)) {
|
1201
1201
|
return /*#__PURE__*/jsx(Text, {
|
@@ -1225,6 +1225,14 @@ function UIToggle(props) {
|
|
1225
1225
|
style.color = '#ffffff';
|
1226
1226
|
}
|
1227
1227
|
}
|
1228
|
+
var backgroundColor = item.backgroundColor;
|
1229
|
+
var color = item.color;
|
1230
|
+
if (item.backgroundColor) style = _extends({}, style, {
|
1231
|
+
backgroundColor: backgroundColor
|
1232
|
+
});
|
1233
|
+
if (item.color) style = _extends({}, style, {
|
1234
|
+
color: color
|
1235
|
+
});
|
1228
1236
|
style.width = width;
|
1229
1237
|
return style;
|
1230
1238
|
};
|
@@ -1250,7 +1258,8 @@ var styles$7 = /*#__PURE__*/StyleSheet.create({
|
|
1250
1258
|
width: '100%',
|
1251
1259
|
justifyContent: 'center',
|
1252
1260
|
flexDirection: 'row',
|
1253
|
-
alignItems: 'center'
|
1261
|
+
alignItems: 'center',
|
1262
|
+
margin: 3
|
1254
1263
|
},
|
1255
1264
|
item: {
|
1256
1265
|
backgroundColor: 'background',
|
@@ -1263,7 +1272,7 @@ var styles$7 = /*#__PURE__*/StyleSheet.create({
|
|
1263
1272
|
borderRadius: 2
|
1264
1273
|
},
|
1265
1274
|
text: {
|
1266
|
-
fontSize:
|
1275
|
+
fontSize: 13,
|
1267
1276
|
fontWeight: '400'
|
1268
1277
|
}
|
1269
1278
|
});
|