react-crud-mobile 1.3.545 → 1.3.548
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 +16 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +14 -0
- package/src/elements/core/UIButton.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -456,7 +456,7 @@ function UIButton(props) {
|
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
458
|
const onClick = () => {
|
|
459
|
-
if (children) {
|
|
459
|
+
if (!import_react_crud_utils5.Utils.isEmpty(children)) {
|
|
460
460
|
setOpen(true);
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
@@ -2198,7 +2198,21 @@ function UIElement(props) {
|
|
|
2198
2198
|
scope.isType("view") && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UIView, { ...props, scope, crud }),
|
|
2199
2199
|
scope.is("type", "icon") && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UIIcon, { ...defaultsUI, onClick, variant: scope.attr("variant", "outlined"), children: scope.getDisplayValue() }),
|
|
2200
2200
|
isShowChild() && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UIChildren, { ...props, scope, crud, style: getStyle("inner") }),
|
|
2201
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UIModal, { ...props, scope, crud })
|
|
2201
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UIModal, { ...props, scope, crud }),
|
|
2202
|
+
original.help && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2203
|
+
import_react_native21.View,
|
|
2204
|
+
{
|
|
2205
|
+
style: getStyle("help", {
|
|
2206
|
+
alignSelf: "flex-start",
|
|
2207
|
+
flexDirection: "row",
|
|
2208
|
+
display: "flex",
|
|
2209
|
+
justifyContent: "space-between",
|
|
2210
|
+
alignItems: "center",
|
|
2211
|
+
width: "100%"
|
|
2212
|
+
}),
|
|
2213
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_native21.Text, { style: getStyle("helpText"), children: scope.getHelp() })
|
|
2214
|
+
}
|
|
2215
|
+
)
|
|
2202
2216
|
] });
|
|
2203
2217
|
};
|
|
2204
2218
|
let Card = (props2) => {
|