react-crud-mobile 1.0.806 → 1.0.808

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,6 +367,12 @@ function UIIcon(_ref) {
367
367
  });
368
368
  }
369
369
 
370
+ var buttonsSize = {
371
+ small: {
372
+ minWidth: 30,
373
+ height: 30
374
+ }
375
+ };
370
376
  function UIButton(props) {
371
377
  var scope = props.scope;
372
378
  var element = scope.original;
@@ -420,6 +426,7 @@ function UIButton(props) {
420
426
  }
421
427
  var buttonStyle = reactCrudUtils.Utils.call(function () {
422
428
  var css = style('button', extra.button);
429
+ var size = element.size;
423
430
  if (!css.width) {
424
431
  var h = css.height;
425
432
  if (typeof h === 'number') {
@@ -430,12 +437,16 @@ function UIButton(props) {
430
437
  css.backgroundColor = 'transparent';
431
438
  css.color = 'text';
432
439
  }
440
+ if (size) {
441
+ css = _extends({}, css, buttonsSize[size]);
442
+ }
433
443
  return css;
434
444
  });
435
445
  var iconStyle = reactCrudUtils.Utils.call(function () {
436
446
  var css = style('buttonIcon', extra.icon);
437
- if (element.variant === 'text') {
438
- css.color = 'text';
447
+ var size = element.size;
448
+ if (size) {
449
+ css = _extends({}, css, iconStyle[size]);
439
450
  }
440
451
  });
441
452
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {