react-crud-mobile 1.0.810 → 1.0.812

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.
@@ -381,6 +381,8 @@ var ICONS_SIZE = {
381
381
  function UIButton(props) {
382
382
  var scope = props.scope;
383
383
  var element = scope.original;
384
+ var size = scope.getPart('size', 'default');
385
+ var variant = scope.getPart('variant', 'default');
384
386
  var color = element.color;
385
387
  var label = element.label;
386
388
  var icon = element.icon;
@@ -431,14 +433,13 @@ function UIButton(props) {
431
433
  }
432
434
  var buttonStyle = reactCrudUtils.Utils.call(function () {
433
435
  var css = style('button', extra.button);
434
- var size = element.size;
435
436
  if (!css.width) {
436
437
  var h = css.height;
437
438
  if (typeof h === 'number') {
438
439
  css.minWidth = h;
439
440
  }
440
441
  }
441
- if (element.variant === 'text') {
442
+ if (variant === 'text') {
442
443
  css.backgroundColor = 'transparent';
443
444
  css.color = 'text';
444
445
  }
@@ -449,8 +450,7 @@ function UIButton(props) {
449
450
  });
450
451
  var iconStyle = reactCrudUtils.Utils.call(function () {
451
452
  var css = style('buttonIcon', extra.icon);
452
- var size = element.size;
453
- if (element.variant === 'text') {
453
+ if (variant === 'text') {
454
454
  css.color = 'text';
455
455
  }
456
456
  if (size) {