react-crud-mobile 1.3.533 → 1.3.535

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/index.js CHANGED
@@ -496,7 +496,7 @@ function UIButton(props) {
496
496
  };
497
497
  let iconSize = import_react_crud_utils5.Utils.nvl(element.iconSize, buttonLabel.fontSize, 15);
498
498
  if (scope.loading) {
499
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.TouchableHighlight, { underlayColor: "transparent", style: buttonStyle, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
499
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Pressable, { style: buttonStyle, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
500
500
  icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(LoadingIcon, {}),
501
501
  label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Text, { style: buttonLabel, children: scope.lng("loading", "Aguarde...") })
502
502
  ] }) });
@@ -1047,11 +1047,15 @@ function UIListRow(props) {
1047
1047
  if (!original.click) {
1048
1048
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_native12.View, { style: getRowStyle(), ref: targetRef, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Child, {}) }, key);
1049
1049
  }
1050
+ const rowStyle = getRowStyle();
1050
1051
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1051
- import_react_native12.TouchableHighlight,
1052
+ import_react_native12.Pressable,
1052
1053
  {
1053
- style: getRowStyle(),
1054
- underlayColor: "transparent",
1054
+ style: ({ pressed }) => [
1055
+ rowStyle,
1056
+ pressed && { opacity: 0.5 }
1057
+ // ⭐ Aqui entra o efeito!
1058
+ ],
1055
1059
  ref: targetRef,
1056
1060
  onPress: (e) => {
1057
1061
  e.stopPropagation();