cdslibrary 1.2.14 → 1.2.16

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.
@@ -206,7 +206,7 @@ const styles = StyleSheet.create({
206
206
  },
207
207
  actionsContainer: {
208
208
  typeBottomSheet: {
209
- flexDirection: "row",
209
+ flexDirection: "column",
210
210
  width: "100%",
211
211
  gap: 8,
212
212
  paddingBottom: 20,
@@ -18,6 +18,7 @@ export const CDSButton = ({
18
18
  }) => {
19
19
  const { theme } = useTheme();
20
20
 
21
+ console.log(isMobile)
21
22
 
22
23
  const backgroundColor =
23
24
  type === "disabled"
@@ -38,12 +39,9 @@ export const CDSButton = ({
38
39
  onPress={type !== "disabled" ? onPress : null}
39
40
  activeOpacity={0.7}
40
41
  style={[
41
- styles.container,
42
- { flexGrow: (variant === "fill" ? 1 : 0), paddingHorizontal: theme.space.sm, paddingVertical: theme.space.xs, backgroundColor, borderRadius: theme.radius.full, gap: theme.space.xs },
42
+ styles.container,
43
+ { width: (variant === "fill" || isMobile) ? '100%' : 'auto', alignSelf: (variant === "fill" || isMobile) ? "stretch" : "center", paddingHorizontal: type === "icon" ? theme.space.xs : theme.space.sm, paddingVertical: theme.space.xs, backgroundColor, borderRadius: theme.radius.full, gap: theme.space.xs, },
43
44
  flexend && { justifyContent: "flex-end", paddingHorizontal: 0 },
44
- {
45
- paddingHorizontal: type === "icon" ? theme.space.xs : theme.space.sm,
46
- },
47
45
  type === "secondary" && {
48
46
  borderColor: theme.outline.action.primary,
49
47
  borderWidth: 1,
@@ -82,7 +80,6 @@ export const CDSButton = ({
82
80
 
83
81
  const styles = StyleSheet.create({
84
82
  container: {
85
- alignSelf: "center",
86
83
  flexDirection: "row",
87
84
  alignItems: "center",
88
85
  justifyContent: "center",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.2.14",
4
+ "version": "1.2.16",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",
@@ -11,29 +11,31 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@expo-google-fonts/inter": "^0.2.3",
14
+ "@expo/metro-runtime": "^6.1.2",
14
15
  "@expo/vector-icons": "^15.0.3",
15
16
  "@lottiefiles/dotlottie-react": "^0.13.5",
17
+ "cli": "^1.0.1",
16
18
  "expo-linear-gradient": "~15.0.8",
17
19
  "lottie-react-native": "^7.3.5",
18
- "cli": "^1.0.1"
20
+ "react-native-web": "^0.21.2"
19
21
  },
20
22
  "peerDependencies": {
23
+ "@react-navigation/native": "*",
24
+ "expo": ">=54.0.0",
21
25
  "react": "*",
22
26
  "react-dom": "*",
23
27
  "react-native": "*",
24
- "expo": ">=54.0.0",
25
- "react-native-reanimated": ">=3.0.0",
26
28
  "react-native-gesture-handler": "*",
29
+ "react-native-reanimated": ">=3.0.0",
27
30
  "react-native-safe-area-context": "*",
28
- "react-native-screens": "*",
29
- "@react-navigation/native": "*"
31
+ "react-native-screens": "*"
30
32
  },
31
33
  "devDependencies": {
32
34
  "@babel/core": "^7.28.6",
35
+ "expo": "^54.0.31",
33
36
  "react": "19.1.0",
34
37
  "react-dom": "19.1.0",
35
38
  "react-native": "0.81.5",
36
- "expo": "^54.0.31",
37
39
  "react-native-reanimated": "~3.16.1"
38
40
  }
39
41
  }