react-crud-mobile 1.0.919 → 1.0.921
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 +7 -1
- 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 +7 -1
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIButton.tsx +11 -1
|
@@ -432,6 +432,10 @@ function UIButton(props) {
|
|
|
432
432
|
css.fontSize = 12;
|
|
433
433
|
css.fontWeight = 500;
|
|
434
434
|
}
|
|
435
|
+
if (size === 'medium') {
|
|
436
|
+
css.fontSize = 14;
|
|
437
|
+
css.fontWeight = 500;
|
|
438
|
+
}
|
|
435
439
|
if (align === 'left') {
|
|
436
440
|
css.justifyContent = 'flex-start';
|
|
437
441
|
}
|
|
@@ -468,6 +472,7 @@ function UIButton(props) {
|
|
|
468
472
|
}
|
|
469
473
|
return css;
|
|
470
474
|
});
|
|
475
|
+
var buttonLabel = style('buttonLabel');
|
|
471
476
|
var iconStyle = reactCrudUtils.Utils.call(function () {
|
|
472
477
|
var css = style('buttonIcon', extra.icon);
|
|
473
478
|
if (variant === 'text') {
|
|
@@ -476,6 +481,7 @@ function UIButton(props) {
|
|
|
476
481
|
if (size) {
|
|
477
482
|
css = _extends({}, css, ICONS_SIZE[size]);
|
|
478
483
|
}
|
|
484
|
+
css.fontSize = reactCrudUtils.Utils.nvl(buttonLabel.fontSize, css.fontSize);
|
|
479
485
|
return css;
|
|
480
486
|
});
|
|
481
487
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
|
|
@@ -490,7 +496,7 @@ function UIButton(props) {
|
|
|
490
496
|
name: icon
|
|
491
497
|
})
|
|
492
498
|
}), label && /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
493
|
-
style:
|
|
499
|
+
style: buttonLabel,
|
|
494
500
|
children: label
|
|
495
501
|
})]
|
|
496
502
|
})
|