react-crud-mobile 1.3.555 → 1.3.557
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 +1 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIButton.tsx +3 -12
package/dist/index.js
CHANGED
|
@@ -403,7 +403,6 @@ function LoadingIcon({ color }) {
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
// src/elements/core/UIButton.tsx
|
|
406
|
-
var import_react_native_reanimated = __toESM(require("react-native-reanimated"));
|
|
407
406
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
408
407
|
var BUTTONS_SIZE = { small: { minWidth: 30, height: 30 } };
|
|
409
408
|
function UIButton(props) {
|
|
@@ -418,10 +417,6 @@ function UIButton(props) {
|
|
|
418
417
|
let label = scope.getLabel();
|
|
419
418
|
let icon = scope.getPart("icon");
|
|
420
419
|
let children = import_react_crud_utils5.ComponentUtils.getChild(props, "button");
|
|
421
|
-
const scale = (0, import_react_native_reanimated.useSharedValue)(1);
|
|
422
|
-
const animatedStyle = (0, import_react_native_reanimated.useAnimatedStyle)(() => ({
|
|
423
|
-
transform: [{ scale: scale.value }]
|
|
424
|
-
}));
|
|
425
420
|
if (!color) color = "primaryLight";
|
|
426
421
|
const styles13 = {
|
|
427
422
|
buttonLabel: {
|
|
@@ -462,8 +457,6 @@ function UIButton(props) {
|
|
|
462
457
|
}
|
|
463
458
|
};
|
|
464
459
|
const onClick = () => {
|
|
465
|
-
scale.value = (0, import_react_native_reanimated.withSpring)(1.2);
|
|
466
|
-
setTimeout(() => scale.value = (0, import_react_native_reanimated.withSpring)(1), 150);
|
|
467
460
|
if (!import_react_crud_utils5.Utils.isEmpty(children)) {
|
|
468
461
|
setOpen(true);
|
|
469
462
|
return;
|
|
@@ -533,7 +526,7 @@ function UIButton(props) {
|
|
|
533
526
|
] }) });
|
|
534
527
|
}
|
|
535
528
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
536
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Pressable, { onPress: onClick, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
529
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Pressable, { onPress: onClick, style: ({ pressed }) => [buttonStyle, pressed && { opacity: 0.5 }], children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
537
530
|
icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(UI_default.Icon, { size: iconSize, style: iconStyle, value: icon }),
|
|
538
531
|
label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native5.Text, { style: buttonLabel, children: label })
|
|
539
532
|
] }) }),
|