react-crud-mobile 1.0.927 → 1.0.929
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 +9 -0
- 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 +9 -0
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIButton.tsx +6 -0
|
@@ -370,6 +370,12 @@ function UIIcon(_ref) {
|
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
+
var BUTTONS_SIZE = {
|
|
374
|
+
small: {
|
|
375
|
+
minWidth: 30,
|
|
376
|
+
height: 30
|
|
377
|
+
}
|
|
378
|
+
};
|
|
373
379
|
function UIButton(props) {
|
|
374
380
|
var scope = props.scope;
|
|
375
381
|
var element = scope.original;
|
|
@@ -446,6 +452,9 @@ function UIButton(props) {
|
|
|
446
452
|
def.borderWidth = 1;
|
|
447
453
|
def.borderColor = reactCrudUtils.Utils.nvl(color, 'text');
|
|
448
454
|
}
|
|
455
|
+
if (size) {
|
|
456
|
+
def = _extends({}, def, BUTTONS_SIZE[size]);
|
|
457
|
+
}
|
|
449
458
|
var css = style('button', def);
|
|
450
459
|
if (!css.width) {
|
|
451
460
|
var h = css.height;
|