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.
- package/dist/react-crud-mobile.cjs.development.js +4 -4
- 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 +4 -4
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIButton.tsx +4 -4
|
@@ -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 (
|
|
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
|
-
|
|
453
|
-
if (element.variant === 'text') {
|
|
453
|
+
if (variant === 'text') {
|
|
454
454
|
css.color = 'text';
|
|
455
455
|
}
|
|
456
456
|
if (size) {
|