react-crud-mobile 1.0.925 → 1.0.927
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 -2
- 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 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIButton.tsx +10 -2
|
@@ -412,7 +412,7 @@ function UIButton(props) {
|
|
|
412
412
|
};
|
|
413
413
|
var style = function style(part, extra) {
|
|
414
414
|
var css = _extends({}, styles[part], extra);
|
|
415
|
-
if (variant === 'text') {
|
|
415
|
+
if (variant === 'text' || variant === 'outlined') {
|
|
416
416
|
css.backgroundColor = 'transparent';
|
|
417
417
|
css.color = reactCrudUtils.Utils.nvl(color, 'text');
|
|
418
418
|
}
|
|
@@ -441,7 +441,12 @@ function UIButton(props) {
|
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
443
|
var buttonStyle = reactCrudUtils.Utils.call(function () {
|
|
444
|
-
var
|
|
444
|
+
var def = _extends({}, extra == null ? void 0 : extra.button);
|
|
445
|
+
if (variant === 'outlined') {
|
|
446
|
+
def.borderWidth = 1;
|
|
447
|
+
def.borderColor = reactCrudUtils.Utils.nvl(color, 'text');
|
|
448
|
+
}
|
|
449
|
+
var css = style('button', def);
|
|
445
450
|
if (!css.width) {
|
|
446
451
|
var h = css.height;
|
|
447
452
|
if (typeof h === 'number') {
|