react-crud-mobile 1.0.809 → 1.0.810
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 +8 -3
- 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 +8 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIButton.tsx +4 -4
|
@@ -367,12 +367,17 @@ function UIIcon(_ref) {
|
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
var
|
|
370
|
+
var BUTTONS_SIZE = {
|
|
371
371
|
small: {
|
|
372
372
|
minWidth: 30,
|
|
373
373
|
height: 30
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
|
+
var ICONS_SIZE = {
|
|
377
|
+
small: {
|
|
378
|
+
fontSize: 20
|
|
379
|
+
}
|
|
380
|
+
};
|
|
376
381
|
function UIButton(props) {
|
|
377
382
|
var scope = props.scope;
|
|
378
383
|
var element = scope.original;
|
|
@@ -438,7 +443,7 @@ function UIButton(props) {
|
|
|
438
443
|
css.color = 'text';
|
|
439
444
|
}
|
|
440
445
|
if (size) {
|
|
441
|
-
css = _extends({}, css,
|
|
446
|
+
css = _extends({}, css, BUTTONS_SIZE[size]);
|
|
442
447
|
}
|
|
443
448
|
return css;
|
|
444
449
|
});
|
|
@@ -449,7 +454,7 @@ function UIButton(props) {
|
|
|
449
454
|
css.color = 'text';
|
|
450
455
|
}
|
|
451
456
|
if (size) {
|
|
452
|
-
css = _extends({}, css,
|
|
457
|
+
css = _extends({}, css, ICONS_SIZE[size]);
|
|
453
458
|
}
|
|
454
459
|
return css;
|
|
455
460
|
});
|