react-crud-mobile 1.3.328 → 1.3.330
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 +13 -9
- 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 +13 -9
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIInput.tsx +2 -1
- package/src/elements/core/UIToggle.tsx +8 -5
@@ -831,10 +831,11 @@ function UIInput(props) {
|
|
831
831
|
var size = element.size;
|
832
832
|
var css = {};
|
833
833
|
if (size === 'small') {
|
834
|
-
css.height =
|
834
|
+
css.height = 30;
|
835
835
|
css.fontSize = 12;
|
836
836
|
}
|
837
837
|
css = _extends({}, style(type), css, style('input'));
|
838
|
+
css.lineHeight = parseInt(css.fontSize) + 3;
|
838
839
|
return css;
|
839
840
|
});
|
840
841
|
if (defs.autoHeight) {
|
@@ -1242,15 +1243,18 @@ function UIToggle(props) {
|
|
1242
1243
|
if (!style.color) {
|
1243
1244
|
style.color = '#ffffff';
|
1244
1245
|
}
|
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
|
+
} else {
|
1255
|
+
style.backgroundColor = '#fff';
|
1256
|
+
style.color = '#000';
|
1245
1257
|
}
|
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
1258
|
style.width = width;
|
1255
1259
|
return style;
|
1256
1260
|
};
|