cdslibrary 1.2.96 → 1.2.98

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.
@@ -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.sm }]}>
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.sm}]} bounces={false}>
57
+ <ScrollView style={[styles.body, {padding: theme.space.md}]} bounces={false}>
58
58
  {message && (
59
59
  <Text style={[
60
60
  theme.typography.regular.md,
@@ -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.sm }]}>
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.sm
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.sm }]}>
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.sm
105
+ paddingHorizontal: theme.space.md
106
106
 
107
107
  }
108
108
  ]}
@@ -67,7 +67,7 @@ export const CDSTable = ({ columns, data, breakpoint = 500 }) => {
67
67
  key={`cell-${rowIndex}-${colIndex}`}
68
68
  style={[
69
69
  styles.cell,
70
- { padding: theme.space.sm },
70
+ { padding: theme.space.md },
71
71
  col.width ? { width: col.width } : { flex: 1 },
72
72
  col.align === 'right' ? { alignItems: 'flex-end' } : { alignItems: 'flex-start' }
73
73
  ]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.2.96",
4
+ "version": "1.2.98",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",