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.
- package/dist/react-crud-mobile.cjs.development.js +14 -10
- 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 +14 -10
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIInput.tsx +5 -2
- package/src/elements/core/UIToggle.tsx +8 -5
@@ -828,12 +828,13 @@ function UIInput(props) {
|
|
828
828
|
//v4
|
829
829
|
var defs = _extends({}, reactCrudUtils.Utils.nvl(decode[type], {}), element.inputProps);
|
830
830
|
var inputStyle = reactCrudUtils.Utils.call(function () {
|
831
|
-
var css = _extends({}, style('input'), style(type));
|
832
831
|
var size = element.size;
|
832
|
+
var css = {};
|
833
833
|
if (size === 'small') {
|
834
|
-
css.height =
|
834
|
+
css.height = 33;
|
835
835
|
css.fontSize = 12;
|
836
836
|
}
|
837
|
+
css = _extends({}, style(type), css, style('input'));
|
837
838
|
return css;
|
838
839
|
});
|
839
840
|
if (defs.autoHeight) {
|
@@ -1241,15 +1242,18 @@ function UIToggle(props) {
|
|
1241
1242
|
if (!style.color) {
|
1242
1243
|
style.color = '#ffffff';
|
1243
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';
|
1244
1256
|
}
|
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
1257
|
style.width = width;
|
1254
1258
|
return style;
|
1255
1259
|
};
|