react-crud-mobile 1.0.807 → 1.0.809
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 +7 -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 +7 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIButton.tsx +9 -2
|
@@ -367,7 +367,7 @@ function UIIcon(_ref) {
|
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
var
|
|
370
|
+
var buttonsSize = {
|
|
371
371
|
small: {
|
|
372
372
|
minWidth: 30,
|
|
373
373
|
height: 30
|
|
@@ -438,15 +438,20 @@ function UIButton(props) {
|
|
|
438
438
|
css.color = 'text';
|
|
439
439
|
}
|
|
440
440
|
if (size) {
|
|
441
|
-
css = _extends({}, css,
|
|
441
|
+
css = _extends({}, css, buttonsSize[size]);
|
|
442
442
|
}
|
|
443
443
|
return css;
|
|
444
444
|
});
|
|
445
445
|
var iconStyle = reactCrudUtils.Utils.call(function () {
|
|
446
446
|
var css = style('buttonIcon', extra.icon);
|
|
447
|
+
var size = element.size;
|
|
447
448
|
if (element.variant === 'text') {
|
|
448
449
|
css.color = 'text';
|
|
449
450
|
}
|
|
451
|
+
if (size) {
|
|
452
|
+
css = _extends({}, css, iconStyle[size]);
|
|
453
|
+
}
|
|
454
|
+
return css;
|
|
450
455
|
});
|
|
451
456
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
|
|
452
457
|
underlayColor: 'transparent',
|