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.
@@ -367,7 +367,7 @@ function UIIcon(_ref) {
367
367
  });
368
368
  }
369
369
 
370
- var sizes = {
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, sizes[size]);
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',