cdslibrary 1.2.71 → 1.2.73
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.
|
@@ -5,11 +5,9 @@ import { MaterialIcons } from "@expo/vector-icons";
|
|
|
5
5
|
import { useTheme } from "../context/CDSThemeContext";
|
|
6
6
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
7
7
|
|
|
8
|
-
// --- NUEVO: Imports de Reanimated y Gesture Handler ---
|
|
9
8
|
import Animated, {
|
|
10
9
|
useSharedValue,
|
|
11
10
|
useAnimatedStyle,
|
|
12
|
-
withSpring,
|
|
13
11
|
withTiming,
|
|
14
12
|
runOnJS,
|
|
15
13
|
interpolate,
|
package/components/CDSInput.jsx
CHANGED
|
@@ -58,7 +58,7 @@ export const CDSInput = ({ label, type, keyboard, placeholder, value, onChangeTe
|
|
|
58
58
|
borderWidth: 1 + flashValue.value * 1,
|
|
59
59
|
};
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
return (
|
|
63
63
|
<View style={[styles.container, { gap: theme.space.sm }]}>
|
|
64
64
|
{label && (
|
package/components/CDSLoader.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
|
-
import { View, StyleSheet, Modal } from "react-native";
|
|
2
|
+
import { View, StyleSheet, Modal, Text } from "react-native";
|
|
3
3
|
import LottieView from "lottie-react-native";
|
|
4
4
|
import Animated, {
|
|
5
5
|
useSharedValue,
|
|
@@ -10,7 +10,7 @@ import Animated, {
|
|
|
10
10
|
} from "react-native-reanimated";
|
|
11
11
|
import { useTheme } from "../context/CDSThemeContext";
|
|
12
12
|
|
|
13
|
-
export const CDSLoader = ({ visible = false }) => {
|
|
13
|
+
export const CDSLoader = ({ visible = false, message }) => {
|
|
14
14
|
const { theme } = useTheme();
|
|
15
15
|
const [shouldRender, setShouldRender] = useState(visible);
|
|
16
16
|
const opacity = useSharedValue(0);
|
|
@@ -39,7 +39,6 @@ export const CDSLoader = ({ visible = false }) => {
|
|
|
39
39
|
}));
|
|
40
40
|
|
|
41
41
|
if (!shouldRender && !visible) return null;
|
|
42
|
-
|
|
43
42
|
return (
|
|
44
43
|
<Modal transparent visible={shouldRender} animationType="none">
|
|
45
44
|
<Animated.View style={[styles.overlay, animatedStyle,
|
|
@@ -55,6 +54,9 @@ export const CDSLoader = ({ visible = false }) => {
|
|
|
55
54
|
source={require("../assets/animations/animationLoaderWhite.json")}
|
|
56
55
|
resizeMode="contain"
|
|
57
56
|
/>
|
|
57
|
+
{message && <Text style={[theme.typography.semiBold.md, {color: theme.text.neutral.contrast}]}>
|
|
58
|
+
{message}
|
|
59
|
+
</Text>}
|
|
58
60
|
</View>
|
|
59
61
|
</Animated.View>
|
|
60
62
|
</Modal>
|