react-crud-mobile 1.3.328 → 1.3.329
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 +11 -8
- 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 +11 -8
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIToggle.tsx +8 -5
@@ -1242,15 +1242,18 @@ function UIToggle(props) {
|
|
1242
1242
|
if (!style.color) {
|
1243
1243
|
style.color = '#ffffff';
|
1244
1244
|
}
|
1245
|
+
var backgroundColor = item.backgroundColor;
|
1246
|
+
var color = item.color;
|
1247
|
+
if (item.backgroundColor) style = _extends({}, style, {
|
1248
|
+
backgroundColor: backgroundColor
|
1249
|
+
});
|
1250
|
+
if (item.color) style = _extends({}, style, {
|
1251
|
+
color: color
|
1252
|
+
});
|
1253
|
+
} else {
|
1254
|
+
style.backgroundColor = '#fff';
|
1255
|
+
style.color = '#000';
|
1245
1256
|
}
|
1246
|
-
var backgroundColor = item.backgroundColor;
|
1247
|
-
var color = item.color;
|
1248
|
-
if (item.backgroundColor) style = _extends({}, style, {
|
1249
|
-
backgroundColor: backgroundColor
|
1250
|
-
});
|
1251
|
-
if (item.color) style = _extends({}, style, {
|
1252
|
-
color: color
|
1253
|
-
});
|
1254
1257
|
style.width = width;
|
1255
1258
|
return style;
|
1256
1259
|
};
|