react-crud-mobile 1.0.757 → 1.0.759
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 -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 +9 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +11 -4
|
@@ -1487,7 +1487,7 @@ function UIElement(props) {
|
|
|
1487
1487
|
return !reactCrudUtils.Utils.isEmpty(props.children) || !reactCrudUtils.Utils.isEmpty(props.elements);
|
|
1488
1488
|
};
|
|
1489
1489
|
var isInput = scope.is('type', 'text', 'number', 'phone', 'postalCode', 'money', 'password', 'email');
|
|
1490
|
-
var getStyle = function getStyle(part) {
|
|
1490
|
+
var getStyle = function getStyle(part, extra) {
|
|
1491
1491
|
var _elementStyle$type;
|
|
1492
1492
|
var type = reactCrudUtils.Utils.nvl(original.type, 'none');
|
|
1493
1493
|
var key = reactCrudUtils.Utils.nvl(part, 'root');
|
|
@@ -1503,7 +1503,7 @@ function UIElement(props) {
|
|
|
1503
1503
|
if (hasChild && part) {
|
|
1504
1504
|
def = _extends({}, def, withChildStyles[part]);
|
|
1505
1505
|
}
|
|
1506
|
-
return _extends({}, def, scope.getStyle(part, def));
|
|
1506
|
+
return _extends({}, def, scope.getStyle(part, def), extra);
|
|
1507
1507
|
};
|
|
1508
1508
|
var elStyle = getStyle('element');
|
|
1509
1509
|
var defaultsUI = {
|
|
@@ -1666,7 +1666,13 @@ function UIElement(props) {
|
|
|
1666
1666
|
style: getStyle()
|
|
1667
1667
|
}, custom, {
|
|
1668
1668
|
children: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1669
|
-
children: [isShowLabel() && /*#__PURE__*/jsxRuntime.jsxs(
|
|
1669
|
+
children: [isShowLabel() && /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
|
1670
|
+
style: getStyle('outerLabel', {
|
|
1671
|
+
alignSelf: 'flex-start',
|
|
1672
|
+
flexDirection: 'row',
|
|
1673
|
+
display: 'flex',
|
|
1674
|
+
width: '100%'
|
|
1675
|
+
}),
|
|
1670
1676
|
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
1671
1677
|
style: getStyle('label'),
|
|
1672
1678
|
children: scope.getLabel()
|