cdslibrary 1.2.80 → 1.2.81

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.
@@ -1,15 +1,16 @@
1
1
  import React, { useState, useRef } from "react";
2
- import { View, Text, StyleSheet, TouchableOpacity, Platform, Animated } from "react-native";
2
+ import { View, Text, StyleSheet, TouchableOpacity, Animated } from "react-native";
3
3
  import { MaterialIcons } from "@expo/vector-icons";
4
4
  import { useTheme } from "../context/CDSThemeContext";
5
5
 
6
6
  export const CDSCardFeedback = ({
7
7
  style,
8
8
  title,
9
- description,
9
+ message,
10
10
  secondAction,
11
11
  onPressSecondAction,
12
- onClose
12
+ onClose,
13
+ onCloseLabel = 'Cerrar'
13
14
  }) => {
14
15
  const { theme } = useTheme();
15
16
  const [isVisible, setIsVisible] = useState(true);
@@ -85,9 +86,9 @@ export const CDSCardFeedback = ({
85
86
  </View>
86
87
  )}
87
88
 
88
- {description && (
89
- <Text style={[styles.description, theme.typography.regular.md, { color: currentStyle.text }]}>
90
- {description}
89
+ {message && (
90
+ <Text style={[styles.message, theme.typography.regular.md, { color: currentStyle.text }]}>
91
+ {message}
91
92
  </Text>
92
93
  )}
93
94
 
@@ -101,7 +102,7 @@ export const CDSCardFeedback = ({
101
102
  )}
102
103
  <TouchableOpacity onPress={handleClose}>
103
104
  <Text style={[theme.typography.bold.sm, { color: currentStyle.text }]}>
104
- {'Cerrar'}
105
+ {onCloseLabel}
105
106
  </Text>
106
107
  </TouchableOpacity>
107
108
  </View>
@@ -118,7 +119,7 @@ const styles = StyleSheet.create({
118
119
  flexDirection: 'row',
119
120
  alignItems: 'center',
120
121
  },
121
- description: {},
122
+ message: {},
122
123
  actionsContainer: {
123
124
  flexDirection: 'row',
124
125
  width: '100%',
@@ -6,7 +6,7 @@ export const CDSSwitch = ({ label, onValueChange, value }) => {
6
6
  const { theme } = useTheme();
7
7
 
8
8
  return (
9
- <View style={[styles.container, { marginVertical: theme.space.sm }]}>
9
+ <View style={[styles.container, { }]}>
10
10
  {label && (
11
11
  <Text style={[
12
12
  theme.typography.label,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.2.80",
4
+ "version": "1.2.81",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",