react-crud-mobile 1.3.516 → 1.3.518
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 +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +10 -1
- package/src/elements/core/LoadingIcon.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -374,7 +374,7 @@ var import_react3 = __toESM(require("react"));
|
|
|
374
374
|
var import_react_native4 = require("react-native");
|
|
375
375
|
var import_vector_icons2 = require("@expo/vector-icons");
|
|
376
376
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
377
|
-
function LoadingIcon() {
|
|
377
|
+
function LoadingIcon({ color }) {
|
|
378
378
|
const spinValue = new import_react_native4.Animated.Value(0);
|
|
379
379
|
import_react3.default.useEffect(() => {
|
|
380
380
|
import_react_native4.Animated.loop(
|
|
@@ -390,7 +390,7 @@ function LoadingIcon() {
|
|
|
390
390
|
inputRange: [0, 1],
|
|
391
391
|
outputRange: ["0deg", "360deg"]
|
|
392
392
|
});
|
|
393
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native4.View, { style: { justifyContent: "center", alignItems: "center", flex: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native4.Animated.View, { style: { transform: [{ rotate: spin }] }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_vector_icons2.Ionicons, { name: "refresh", size:
|
|
393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native4.View, { style: { justifyContent: "center", alignItems: "center", flex: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native4.Animated.View, { style: { transform: [{ rotate: spin }] }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_vector_icons2.Ionicons, { name: "refresh", size: 25, color }) }) });
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
// src/elements/core/UIButton.tsx
|
|
@@ -2203,8 +2203,9 @@ function UIElement(props) {
|
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
2205
|
if (isCard) {
|
|
2206
|
+
let shadow = original.shadow ? boxStyle.box : boxStyle.card;
|
|
2206
2207
|
let box2 = {
|
|
2207
|
-
...getStyle("
|
|
2208
|
+
...getStyle("card", { ...shadow, alignSelf: "stretch" })
|
|
2208
2209
|
};
|
|
2209
2210
|
let borderWidth = original.boxBorder;
|
|
2210
2211
|
if (borderWidth || borderWidth === 0) {
|
|
@@ -2330,6 +2331,14 @@ function UIElement(props) {
|
|
|
2330
2331
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CrudContext.Provider, { value: { crud, theme }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Tag, { ref, style: getStyle(), ...custom, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Container, {}) }) }) });
|
|
2331
2332
|
}
|
|
2332
2333
|
var boxStyle = import_react_native21.StyleSheet.create({
|
|
2334
|
+
card: {
|
|
2335
|
+
borderWidth: 1,
|
|
2336
|
+
borderColor: "#dedede",
|
|
2337
|
+
borderStyle: "solid",
|
|
2338
|
+
backgroundColor: "white",
|
|
2339
|
+
borderRadius: 10,
|
|
2340
|
+
width: "100%"
|
|
2341
|
+
},
|
|
2333
2342
|
box: {
|
|
2334
2343
|
borderWidth: 1,
|
|
2335
2344
|
borderColor: "#dedede",
|