react-crud-mobile 1.0.698 → 1.0.699
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 +11 -1
- 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 +11 -1
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIButton.tsx +14 -2
|
@@ -422,10 +422,20 @@ function UIButton(props) {
|
|
|
422
422
|
padding: 0
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
|
+
var buttonStyle = reactCrudUtils.Utils.call(function () {
|
|
426
|
+
var css = style('button', extra.button);
|
|
427
|
+
if (!css.width) {
|
|
428
|
+
var h = css.height;
|
|
429
|
+
if (typeof h === 'number') {
|
|
430
|
+
css.minWidth = h;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return css;
|
|
434
|
+
});
|
|
425
435
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
|
|
426
436
|
underlayColor: 'transparent',
|
|
427
437
|
onPress: onClick,
|
|
428
|
-
style:
|
|
438
|
+
style: buttonStyle,
|
|
429
439
|
children: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
430
440
|
children: [icon && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
431
441
|
children: /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {
|