react-crud-mobile 1.0.698 → 1.0.700
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 -12
- 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 -12
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIButton.tsx +16 -8
|
@@ -377,9 +377,7 @@ function UIButton(props) {
|
|
|
377
377
|
buttonLabel: {
|
|
378
378
|
color: '#ffffff',
|
|
379
379
|
fontWeight: '500',
|
|
380
|
-
fontSize: 16
|
|
381
|
-
paddingRight: 10,
|
|
382
|
-
paddingLeft: 10
|
|
380
|
+
fontSize: 16
|
|
383
381
|
},
|
|
384
382
|
buttonInner: {
|
|
385
383
|
flexDirection: 'row',
|
|
@@ -410,22 +408,25 @@ function UIButton(props) {
|
|
|
410
408
|
return scope.getStyle(part, s);
|
|
411
409
|
};
|
|
412
410
|
var extra = {};
|
|
413
|
-
if (
|
|
414
|
-
extra.button = {
|
|
415
|
-
width: 'auto'
|
|
416
|
-
};
|
|
417
|
-
extra.icon = {
|
|
418
|
-
padding: 5
|
|
419
|
-
};
|
|
420
|
-
} else if (icon) {
|
|
411
|
+
if (icon) {
|
|
421
412
|
extra.button = {
|
|
422
413
|
padding: 0
|
|
423
414
|
};
|
|
424
415
|
}
|
|
416
|
+
var buttonStyle = reactCrudUtils.Utils.call(function () {
|
|
417
|
+
var css = style('button', extra.button);
|
|
418
|
+
if (!css.width) {
|
|
419
|
+
var h = css.height;
|
|
420
|
+
if (typeof h === 'number') {
|
|
421
|
+
css.minWidth = h;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
return css;
|
|
425
|
+
});
|
|
425
426
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
|
|
426
427
|
underlayColor: 'transparent',
|
|
427
428
|
onPress: onClick,
|
|
428
|
-
style:
|
|
429
|
+
style: buttonStyle,
|
|
429
430
|
children: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
430
431
|
children: [icon && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
431
432
|
children: /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {
|