@a-little-world/little-world-design-system-native 0.7.2 → 0.8.0

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/README.md CHANGED
@@ -5,13 +5,16 @@ React Native components for the Little World Design System.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @a-little-world/little-world-design-system-native
8
+ pnpm add @a-little-world/little-world-design-system-native
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```tsx
14
- import { Button, Text } from '@a-little-world/little-world-design-system-native';
14
+ import {
15
+ Button,
16
+ Text,
17
+ } from '@a-little-world/little-world-design-system-native';
15
18
 
16
19
  export default function App() {
17
20
  return (
@@ -31,16 +34,18 @@ The native package includes a test app for local development and testing of comp
31
34
  **Always build and publish from the root of the monorepo, never from individual package directories.**
32
35
 
33
36
  ✅ **Correct (from root):**
37
+
34
38
  ```bash
35
39
  pnpm build:native
36
40
  pnpm --filter=@a-little-world/little-world-design-system-native publish
37
41
  ```
38
42
 
39
43
  ❌ **Incorrect (from package directory):**
44
+
40
45
  ```bash
41
46
  cd packages/native
42
- npm run build
43
- npm publish # This will break workspace dependencies!
47
+ pnpm run build
48
+ pnpm publish # This will break workspace dependencies!
44
49
  ```
45
50
 
46
51
  ### Prerequisites
@@ -67,7 +72,7 @@ pnpm storybook:native
67
72
  ### What the setup script does:
68
73
 
69
74
  1. **Builds core package** - Compiles design tokens and utilities
70
- 2. **Builds native package** - Compiles React Native components
75
+ 2. **Builds native package** - Compiles React Native components
71
76
  3. **Creates tarballs** - Packages both libraries for local installation
72
77
  4. **Installs in testApp** - Installs the local packages in the Expo test app
73
78
 
@@ -85,14 +90,14 @@ If you prefer to work directly in the testApp directory:
85
90
 
86
91
  ```bash
87
92
  cd packages/native/testApp
88
- npm install
89
- npm start # Start Expo app
90
- npm run storybook # Start Storybook
93
+ pnpm install
94
+ pnpm run start # Start Expo app
95
+ pnpm run storybook # Start Storybook
91
96
  ```
92
97
 
93
98
  ### Troubleshooting
94
99
 
95
- - **Clear cache**: Use `npx expo start -c` to clear Expo cache
100
+ - **Clear cache**: Use `pnpm exec expo start -c` to clear Expo cache
96
101
  - **Reset testApp**: Delete `packages/native/testApp/node_modules` and run setup again
97
102
  - **Version conflicts**: The setup script uses wildcards to automatically find the latest tarball versions
98
103
 
@@ -106,7 +111,7 @@ pnpm storybook:native
106
111
 
107
112
  # Or from testApp directory
108
113
  cd packages/native/testApp
109
- npm run storybook
114
+ pnpm run storybook
110
115
  ```
111
116
 
112
117
  ## Building
@@ -117,18 +122,19 @@ pnpm build:native
117
122
 
118
123
  # Or from the native package directory
119
124
  cd packages/native
120
- npm run build
125
+ pnpm run build
121
126
  ```
122
127
 
123
128
  ## Publishing
124
129
 
125
130
  ### Automated Releases (Recommended)
126
131
 
127
- **Releases should ideally be automated and handled via merging into the main branch of the repo.**
132
+ **Releases should ideally be automated and handled via merging into the main branch of the repo.**
128
133
 
129
134
  See the [Versioning and Releases section in the root README](../../README.md#versioning-and-releases) for detailed information about the automated release process using Changesets.
130
135
 
131
136
  The automated workflow will:
137
+
132
138
  - Detect version changes in package.json
133
139
  - Publish to GitHub Packages registry
134
140
  - Create GitHub releases with changelog information
@@ -140,14 +146,14 @@ If you need to publish manually (not recommended):
140
146
 
141
147
  ```bash
142
148
  # Ensure you're authenticated to GitHub Packages
143
- npm login --registry=https://npm.pkg.github.com
149
+ pnpm login --registry=https://npm.pkg.github.com
144
150
 
145
151
  # Build the package
146
152
  pnpm build:native
147
153
 
148
154
  # Publish from the native package directory
149
155
  cd packages/native
150
- npm publish --access restricted
156
+ pnpm publish --access restricted
151
157
  ```
152
158
 
153
159
  **Note**: Manual publishing bypasses the automated changelog generation and release management. Use the automated process whenever possible.
@@ -155,6 +161,7 @@ npm publish --access restricted
155
161
  ## Dependencies
156
162
 
157
163
  This package depends on:
164
+
158
165
  - `@a-little-world/little-world-design-system-core` - Core design tokens and utilities
159
166
  - `react-native` - React Native framework
160
167
  - `styled-components` - Styling library
package/dist/index.esm.js CHANGED
@@ -658,7 +658,7 @@ const getStyles = ({
658
658
  fontSize: typeStyles.fontSize * 16,
659
659
  fontWeight: typeStyles.fontWeight === 'bold' || bold ? 'bold' : 'normal',
660
660
  lineHeight: typeStyles.lineHeight ? typeStyles.lineHeight * typeStyles.fontSize * 16 : typeStyles.fontSize * 16 * 1.5,
661
- fontFamily: typeStyles.styleType === 'body' ? bold ? fontFamilies.SignikaNegativeBold : fontFamilies.SignikaNegative : fontFamilies.WorkSans
661
+ fontFamily: typeStyles.styleType === 'body' ? bold ? fontFamilies.DMSans : fontFamilies.DMSans : fontFamilies.SignikaNegative
662
662
  }, italic && {
663
663
  fontStyle: 'italic',
664
664
  transform: [{