@compsych/mobile-ui 1.0.3 → 1.0.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compsych/mobile-ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "ComPsych React Native Design System — 19 mobile UI components with self-contained design tokens",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -18,7 +18,6 @@
18
18
  ],
19
19
  "license": "UNLICENSED",
20
20
  "peerDependencies": {
21
- "@expo-google-fonts/google-sans": ">=0.4.0",
22
21
  "@expo/vector-icons": ">=15.0.0",
23
22
  "expo-font": ">=13.0.0",
24
23
  "react": ">=18.0.0",
package/src/BodyText.tsx CHANGED
@@ -1,11 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Text, type TextProps } from 'react-native';
3
3
  import { useFonts } from 'expo-font';
4
- import {
5
- GoogleSans_400Regular,
6
- GoogleSans_500Medium,
7
- GoogleSans_600SemiBold,
8
- } from '@expo-google-fonts/google-sans';
9
4
 
10
5
  import { sys } from './tokens';
11
6
 
@@ -48,9 +43,9 @@ export function BodyText({
48
43
  ...rest
49
44
  }: BodyTextProps) {
50
45
  const [fontsLoaded] = useFonts({
51
- GoogleSans_400Regular,
52
- GoogleSans_500Medium,
53
- GoogleSans_600SemiBold,
46
+ GoogleSans_400Regular: require('./fonts/GoogleSans_400Regular.ttf'),
47
+ GoogleSans_500Medium: require('./fonts/GoogleSans_500Medium.ttf'),
48
+ GoogleSans_600SemiBold: require('./fonts/GoogleSans_600SemiBold.ttf'),
54
49
  });
55
50
 
56
51
  const token = ts[VARIANT_TOKEN_KEY[variant]];
@@ -1,11 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Text, type TextProps } from 'react-native';
3
3
  import { useFonts } from 'expo-font';
4
- import {
5
- GoogleSans_400Regular,
6
- GoogleSans_500Medium,
7
- GoogleSans_600SemiBold,
8
- } from '@expo-google-fonts/google-sans';
9
4
 
10
5
  import { sys } from './tokens';
11
6
 
@@ -54,9 +49,9 @@ export function HeaderText({
54
49
  ...rest
55
50
  }: HeaderTextProps) {
56
51
  const [fontsLoaded] = useFonts({
57
- GoogleSans_400Regular,
58
- GoogleSans_500Medium,
59
- GoogleSans_600SemiBold,
52
+ GoogleSans_400Regular: require('./fonts/GoogleSans_400Regular.ttf'),
53
+ GoogleSans_500Medium: require('./fonts/GoogleSans_500Medium.ttf'),
54
+ GoogleSans_600SemiBold: require('./fonts/GoogleSans_600SemiBold.ttf'),
60
55
  });
61
56
 
62
57
  const token = ts[VARIANT_TOKEN_KEY[variant]];
Binary file