cdslibrary 1.2.24 → 1.2.26

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.
@@ -116,7 +116,6 @@ export const CDSAccordion = ({ title, description, children, defaultExpanded = f
116
116
  const styles = StyleSheet.create({
117
117
  container: {
118
118
  width: "100%",
119
- marginBottom: 16,
120
119
  },
121
120
  header: {
122
121
  flexDirection: "row",
@@ -17,14 +17,14 @@ export const CDSOffer = ({ description, minValue, maxValue }) => {
17
17
  <Text style={theme.typography.semiBold.lg}>{description}</Text>
18
18
  <Text style={theme.typography.regular.md}>Hoy podrías obtener:</Text>
19
19
  <View style={[styles.minMaxContainer, { flexDirection: isMobile ? 'column' : 'row' }]}>
20
- <View style={[styles.containerMin, { backgroundColor: theme.surface.neutral.secondary, borderColor: theme.outline.neutral.tertiaryVariant, gap: theme.space.xs, padding: theme.space.sm }]}>
20
+ <View style={[styles.containerMin, { backgroundColor: theme.surface.neutral.secondary, borderColor: theme.outline.neutral.tertiaryVariant, gap: theme.space.xs, padding: theme.space.sm, borderRadius: theme.radius.lg }]}>
21
21
  <Text style={[theme.typography.regular.md, { color: theme.text.neutral.primary }]}>Desde</Text>
22
22
  <Text style={[theme.typography.h3, { textAlign: 'center', color: theme.text.neutral.primary }]}>{`$${parseFloat(minValue).toLocaleString('en-US', {
23
23
  minimumFractionDigits: 2,
24
24
  maximumFractionDigits: 2
25
25
  })}`}</Text>
26
26
  </View>
27
- <View style={[styles.containerMax, { marginTop: isMobile ? -theme.space.xs : 0, marginLeft: isMobile ? 0 : -theme.space.xl, backgroundColor: theme.surface.brand.primaryVariant, borderColor: theme.outline.brand.secondary, gap: theme.space.xs, padding: theme.space.sm }]}>
27
+ <View style={[styles.containerMax, { marginTop: isMobile ? -theme.space.xs : 0, marginLeft: isMobile ? 0 : -theme.space.xl, backgroundColor: theme.surface.brand.primaryVariant, borderColor: theme.outline.brand.secondary, gap: theme.space.xs, padding: theme.space.sm, borderRadius: theme.radius.lg }]}>
28
28
  <Text style={[theme.typography.regular.md, { color: theme.text.brand.primary }]}>Hasta</Text>
29
29
  <Text style={[theme.typography.h1, { textAlign: 'center', color: theme.text.brand.primary }]}>{`$${parseFloat(maxValue).toLocaleString('en-US', {
30
30
  minimumFractionDigits: 2,
@@ -54,7 +54,6 @@ const styles = StyleSheet.create({
54
54
  containerMin: {
55
55
  flexGrow: 1,
56
56
  justifyContent: 'space-around',
57
- borderRadius: 8,
58
57
  flexDirection: 'column',
59
58
  borderWidth: 1,
60
59
  },
@@ -62,7 +61,6 @@ const styles = StyleSheet.create({
62
61
  containerMax: {
63
62
  flexGrow: 1,
64
63
  justifyContent: 'space-around',
65
- borderRadius: 8,
66
64
  flexDirection: 'column',
67
65
  borderWidth: 1,
68
66
  },
package/index.js CHANGED
@@ -19,5 +19,6 @@ export {CDSSelect} from './components/CDSSelect';
19
19
  export {CDSLoader} from './components/CDSLoader';
20
20
  export {CDSOffer} from './components/CDSOffer';
21
21
  export {CDSTable} from './components/CDSTable';
22
+ export {CDSAccordion} from './components/CDSAccordion'
22
23
 
23
24
  export {CDSThemeProvider, useTheme} from './context/CDSThemeContext';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.2.24",
4
+ "version": "1.2.26",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",