react-crud-mobile 1.0.697 → 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 +12 -2
- 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 +12 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIButton.tsx +15 -3
|
@@ -394,9 +394,9 @@ function UIButton(props) {
|
|
|
394
394
|
},
|
|
395
395
|
button: {
|
|
396
396
|
height: 50,
|
|
397
|
-
paddingHorizontal: 16,
|
|
398
397
|
backgroundColor: color,
|
|
399
398
|
borderRadius: 24,
|
|
399
|
+
gap: 10,
|
|
400
400
|
justifyContent: 'center',
|
|
401
401
|
alignItems: 'center',
|
|
402
402
|
flexDirection: 'row'
|
|
@@ -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, {
|