cdslibrary 1.2.4 → 1.2.6

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.
@@ -43,7 +43,6 @@ export const CDSButton = ({
43
43
  flexend && { justifyContent: "flex-end", paddingHorizontal: 0 },
44
44
  {
45
45
  paddingHorizontal: type === "icon" ? theme.space.xs : theme.space.sm,
46
- ...(isMobile && { width: "100%" })
47
46
  },
48
47
  type === "secondary" && {
49
48
  borderColor: theme.outline.action.primary,
@@ -1,5 +1,5 @@
1
1
 
2
- import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
2
+ import { View, Text, StyleSheet,} from "react-native";
3
3
  import { useTheme } from "../context/CDSThemeContext";
4
4
  import { CDSButton } from "./CDSButton";
5
5
 
@@ -20,7 +20,7 @@ export const CDSButtonGroup = ({ options, onSelect, label='Label' }) => {
20
20
  <Text style={[theme.typography.label]}>{label}</Text>
21
21
  <View style={[styles.actionsContainer, { gap: theme.space.xs }]}>
22
22
  {options.map((option, index) => (
23
- <CDSButton key={index} variant={option.variant}
23
+ <CDSButton key={index} variant={'fill'}
24
24
  label={option.label}
25
25
  // Si está seleccionado es 'primary', si no 'secondary'
26
26
  type={selectedIndex === index ? "primary" : "secondary"}
@@ -40,9 +40,8 @@ const styles = StyleSheet.create({
40
40
  },
41
41
 
42
42
  actionsContainer: {
43
- flex: 1,
44
43
  flexDirection: 'row',
45
- width: '100%',
44
+ backgroundColor: 'blue',
46
45
  alignItems: 'center',
47
46
  justifyContent: 'center',
48
47
  },
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
- import { registerRootComponent } from 'expo';
2
+ // import { registerRootComponent } from 'expo';
3
3
 
4
- import App from './App';
5
- registerRootComponent(App);
4
+ // import App from './App';
5
+ // registerRootComponent(App);
6
6
 
7
7
  export {CDSBottomSheet} from './components/CDSBottomSheet';
8
8
  export {CDSButton} from './components/CDSButton';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.2.4",
4
+ "version": "1.2.6",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",