react-crud-mobile 1.3.327 → 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.
@@ -819,12 +819,13 @@ function UIInput(props) {
819
819
  //v4
820
820
  var defs = _extends({}, Utils.nvl(decode[type], {}), element.inputProps);
821
821
  var inputStyle = Utils.call(function () {
822
- var css = _extends({}, style('input'), style(type));
823
822
  var size = element.size;
823
+ var css = {};
824
824
  if (size === 'small') {
825
- css.height = 30;
825
+ css.height = 33;
826
826
  css.fontSize = 12;
827
827
  }
828
+ css = _extends({}, style(type), css, style('input'));
828
829
  return css;
829
830
  });
830
831
  if (defs.autoHeight) {
@@ -1232,15 +1233,18 @@ function UIToggle(props) {
1232
1233
  if (!style.color) {
1233
1234
  style.color = '#ffffff';
1234
1235
  }
1236
+ var backgroundColor = item.backgroundColor;
1237
+ var color = item.color;
1238
+ if (item.backgroundColor) style = _extends({}, style, {
1239
+ backgroundColor: backgroundColor
1240
+ });
1241
+ if (item.color) style = _extends({}, style, {
1242
+ color: color
1243
+ });
1244
+ } else {
1245
+ style.backgroundColor = '#fff';
1246
+ style.color = '#000';
1235
1247
  }
1236
- var backgroundColor = item.backgroundColor;
1237
- var color = item.color;
1238
- if (item.backgroundColor) style = _extends({}, style, {
1239
- backgroundColor: backgroundColor
1240
- });
1241
- if (item.color) style = _extends({}, style, {
1242
- color: color
1243
- });
1244
1248
  style.width = width;
1245
1249
  return style;
1246
1250
  };