react-crud-mobile 1.0.803 → 1.0.805
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 +11 -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 +11 -1
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIButton.tsx +16 -6
|
@@ -426,8 +426,18 @@ function UIButton(props) {
|
|
|
426
426
|
css.minWidth = h;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
+
if (element.variant === 'text') {
|
|
430
|
+
css.backgroundColor = 'transparent';
|
|
431
|
+
css.color = 'text';
|
|
432
|
+
}
|
|
429
433
|
return css;
|
|
430
434
|
});
|
|
435
|
+
var iconStyle = reactCrudUtils.Utils.call(function () {
|
|
436
|
+
var css = style('buttonIcon', extra.icon);
|
|
437
|
+
if (element.variant === 'text') {
|
|
438
|
+
css.color = 'text';
|
|
439
|
+
}
|
|
440
|
+
});
|
|
431
441
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
|
|
432
442
|
underlayColor: 'transparent',
|
|
433
443
|
onPress: onClick,
|
|
@@ -436,7 +446,7 @@ function UIButton(props) {
|
|
|
436
446
|
children: [icon && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
437
447
|
children: /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {
|
|
438
448
|
size: 30,
|
|
439
|
-
style:
|
|
449
|
+
style: iconStyle,
|
|
440
450
|
name: icon
|
|
441
451
|
})
|
|
442
452
|
}), label && /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|