cdslibrary 1.2.96 → 1.2.97
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/components/CDSModal.jsx
CHANGED
|
@@ -44,7 +44,7 @@ export const CDSModal = ({
|
|
|
44
44
|
}
|
|
45
45
|
]}>
|
|
46
46
|
{/* Header */}
|
|
47
|
-
<View style={[styles.modalHeader, { borderBottomColor: theme.outline.neutral.primary, paddingVertical: theme.space.md, paddingHorizontal: theme.space.
|
|
47
|
+
<View style={[styles.modalHeader, { borderBottomColor: theme.outline.neutral.primary, paddingVertical: theme.space.md, paddingHorizontal: theme.space.md }]}>
|
|
48
48
|
<Text style={[theme.typography.semiBold.md, { color: theme.text.neutral.primary, flex: 1 }]}>
|
|
49
49
|
{title}
|
|
50
50
|
</Text>
|
|
@@ -54,7 +54,7 @@ export const CDSModal = ({
|
|
|
54
54
|
</View>
|
|
55
55
|
|
|
56
56
|
{/* Body */}
|
|
57
|
-
<ScrollView style={[styles.body, {padding: theme.space.
|
|
57
|
+
<ScrollView style={[styles.body, {padding: theme.space.md}]} bounces={false}>
|
|
58
58
|
{message && (
|
|
59
59
|
<Text style={[
|
|
60
60
|
theme.typography.regular.md,
|
package/components/CDSSelect.jsx
CHANGED
|
@@ -33,7 +33,7 @@ export const CDSSelect = ({ label, options = [], onSelect, selectedValue = null,
|
|
|
33
33
|
return (
|
|
34
34
|
<View style={styles.mainContainer}>
|
|
35
35
|
{label && (
|
|
36
|
-
<Text style={[theme.typography.label, { color: theme.text.neutral.primary, marginBottom: theme.space.
|
|
36
|
+
<Text style={[theme.typography.label, { color: theme.text.neutral.primary, marginBottom: theme.space.md }]}>
|
|
37
37
|
{label}
|
|
38
38
|
</Text>
|
|
39
39
|
)}
|
|
@@ -47,7 +47,7 @@ export const CDSSelect = ({ label, options = [], onSelect, selectedValue = null,
|
|
|
47
47
|
backgroundColor: theme.surface.neutral.primary,
|
|
48
48
|
borderColor: theme.outline.neutral.primary,
|
|
49
49
|
borderRadius: theme.radius.sm,
|
|
50
|
-
paddingHorizontal: theme.space.
|
|
50
|
+
paddingHorizontal: theme.space.md
|
|
51
51
|
}
|
|
52
52
|
]}
|
|
53
53
|
onPress={() => setModalVisible(true)}
|
|
@@ -80,7 +80,7 @@ export const CDSSelect = ({ label, options = [], onSelect, selectedValue = null,
|
|
|
80
80
|
}
|
|
81
81
|
]}>
|
|
82
82
|
{/* Header del Modal */}
|
|
83
|
-
<View style={[styles.modalHeader, { borderBottomColor: theme.outline.neutral.primary, padding: theme.space.
|
|
83
|
+
<View style={[styles.modalHeader, { borderBottomColor: theme.outline.neutral.primary, padding: theme.space.md }]}>
|
|
84
84
|
<Text style={theme.typography.semiBold.md}>{'Selecciona una opción'}</Text>
|
|
85
85
|
<TouchableOpacity onPress={() => setModalVisible(false)} hitSlop={{top: 10, bottom: 10, left: 10, right: 10}}>
|
|
86
86
|
<MaterialIcons name="close" size={24} color={theme.text.neutral.primary} />
|
|
@@ -102,7 +102,7 @@ export const CDSSelect = ({ label, options = [], onSelect, selectedValue = null,
|
|
|
102
102
|
{
|
|
103
103
|
height: ITEM_HEIGHT,
|
|
104
104
|
backgroundColor: selectedItem?.value === item.value ? theme.surface.neutral.secondary : 'transparent',
|
|
105
|
-
paddingHorizontal: theme.space.
|
|
105
|
+
paddingHorizontal: theme.space.md
|
|
106
106
|
|
|
107
107
|
}
|
|
108
108
|
]}
|