cdslibrary 1.0.5 → 1.0.7

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.
@@ -3,7 +3,7 @@ import { Text, StyleSheet, TouchableOpacity } from "react-native";
3
3
  import { Dimensions, Platform } from "react-native";
4
4
  import { MaterialIcons } from "@expo/vector-icons";
5
5
  import { useTheme } from "../context/CDSThemeContext";
6
- import {getSemanticTextStyles} from "../tokens/CDSsemanticTextStyles";
6
+ import getSemanticTextStyles from "../tokens/CDSsemanticTextStyles";
7
7
 
8
8
  const { width } = Dimensions.get("window");
9
9
  const isMobile = width <= 878 && Platform.OS !== "web";
@@ -19,6 +19,8 @@ export const CDSButton = ({
19
19
  const { theme } = useTheme();
20
20
  const textStyles = getSemanticTextStyles(theme);
21
21
 
22
+ console.log(textStyles)
23
+
22
24
  const backgroundColor =
23
25
  type === "disabled"
24
26
  ? theme.surface.action.disabled
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.0.5",
4
+ "version": "1.0.7",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",
@@ -8,7 +8,7 @@ const isMobile = width <= 768;
8
8
 
9
9
 
10
10
 
11
- export function useTextStyles(theme) {
11
+ export function getSemanticTextStyles(theme) {
12
12
  const [fontsLoaded] = useFonts({
13
13
  Inter_400Regular,
14
14
  Inter_600SemiBold,