react-crud-mobile 1.3.59 → 1.3.61

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.
@@ -1641,7 +1641,8 @@ function UIOrder(props) {
1641
1641
  setData = _useState[1];
1642
1642
  return /*#__PURE__*/jsxs(GestureHandlerRootView, {
1643
1643
  style: _extends({
1644
- flex: 1
1644
+ flex: 1,
1645
+ width: '100%'
1645
1646
  }, scope.getStyle('container')),
1646
1647
  children: [original.search !== false && /*#__PURE__*/jsx(UI.Text, {
1647
1648
  placeholder: "Pesquisar...",
@@ -2025,12 +2026,6 @@ function UIElement(props) {
2025
2026
  }), scope.isType('list', 'repeat') && /*#__PURE__*/jsx(UIList, _extends({}, props, {
2026
2027
  scope: scope,
2027
2028
  crud: crud
2028
- })), scope.isType('order') && /*#__PURE__*/jsx(UIOrder, _extends({}, props, {
2029
- scope: scope,
2030
- crud: crud
2031
- })), scope.isType('dialog') && /*#__PURE__*/jsx(UIModal, _extends({}, props, {
2032
- scope: scope,
2033
- crud: crud
2034
2029
  })), scope.isType('chart') && /*#__PURE__*/jsx(ElChart, _extends({}, props, {
2035
2030
  scope: scope,
2036
2031
  crud: crud
@@ -2077,19 +2072,41 @@ function UIElement(props) {
2077
2072
  children: props.children
2078
2073
  });
2079
2074
  };
2075
+ var Decorate = function Decorate(props) {
2076
+ if (scope.isType('order')) {
2077
+ return /*#__PURE__*/jsx(UIOrder, _extends({}, props, {
2078
+ scope: scope,
2079
+ crud: crud
2080
+ }));
2081
+ }
2082
+ if (scope.isType('dialog')) {
2083
+ return /*#__PURE__*/jsx(UIModal, _extends({}, props, {
2084
+ scope: scope,
2085
+ crud: crud
2086
+ }));
2087
+ }
2088
+ return /*#__PURE__*/jsx(Tag, _extends({
2089
+ ref: ref,
2090
+ style: getStyle()
2091
+ }, custom, {
2092
+ children: props.children
2093
+ }));
2094
+ };
2080
2095
  return /*#__PURE__*/jsx(CrudContext.Provider, {
2081
2096
  value: {
2082
2097
  crud: crud,
2083
2098
  theme: theme
2084
2099
  },
2085
- children: /*#__PURE__*/jsx(Tag, _extends({
2086
- ref: ref,
2087
- style: getStyle()
2088
- }, custom, {
2089
- children: /*#__PURE__*/jsx(Card, {
2090
- children: /*#__PURE__*/jsx(Container, {})
2091
- })
2092
- }))
2100
+ children: /*#__PURE__*/jsx(Decorate, {
2101
+ children: /*#__PURE__*/jsx(Tag, _extends({
2102
+ ref: ref,
2103
+ style: getStyle()
2104
+ }, custom, {
2105
+ children: /*#__PURE__*/jsx(Card, {
2106
+ children: /*#__PURE__*/jsx(Container, {})
2107
+ })
2108
+ }))
2109
+ })
2093
2110
  });
2094
2111
  }
2095
2112
  var boxStyle = /*#__PURE__*/StyleSheet.create({