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
@@ -822,10 +822,11 @@ function UIInput(props) {
|
|
822
822
|
var size = element.size;
|
823
823
|
var css = {};
|
824
824
|
if (size === 'small') {
|
825
|
-
css.height =
|
825
|
+
css.height = 30;
|
826
826
|
css.fontSize = 12;
|
827
827
|
}
|
828
828
|
css = _extends({}, style(type), css, style('input'));
|
829
|
+
css.lineHeight = parseInt(css.fontSize) + 3;
|
829
830
|
return css;
|
830
831
|
});
|
831
832
|
if (defs.autoHeight) {
|
@@ -1233,15 +1234,18 @@ function UIToggle(props) {
|
|
1233
1234
|
if (!style.color) {
|
1234
1235
|
style.color = '#ffffff';
|
1235
1236
|
}
|
1237
|
+
var backgroundColor = item.backgroundColor;
|
1238
|
+
var color = item.color;
|
1239
|
+
if (item.backgroundColor) style = _extends({}, style, {
|
1240
|
+
backgroundColor: backgroundColor
|
1241
|
+
});
|
1242
|
+
if (item.color) style = _extends({}, style, {
|
1243
|
+
color: color
|
1244
|
+
});
|
1245
|
+
} else {
|
1246
|
+
style.backgroundColor = '#fff';
|
1247
|
+
style.color = '#000';
|
1236
1248
|
}
|
1237
|
-
var backgroundColor = item.backgroundColor;
|
1238
|
-
var color = item.color;
|
1239
|
-
if (item.backgroundColor) style = _extends({}, style, {
|
1240
|
-
backgroundColor: backgroundColor
|
1241
|
-
});
|
1242
|
-
if (item.color) style = _extends({}, style, {
|
1243
|
-
color: color
|
1244
|
-
});
|
1245
1249
|
style.width = width;
|
1246
1250
|
return style;
|
1247
1251
|
};
|