@byldpartners/ui 0.0.2 → 0.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/README.md CHANGED
@@ -81,6 +81,7 @@ npx byldpartners-ui init --platform native
81
81
  This generates:
82
82
  - `global.css` — Tailwind/uniwind imports, `@source` directive, and light/dark theme token variants
83
83
  - `metro.config.js` — Expo Metro config wrapped with `withUniwindConfig`
84
+ - `uniwind-types.d.ts` — Type augmentation that adds `className` to React Native components
84
85
 
85
86
  **2. Import CSS and wrap with `ThemeProvider` in your `App.tsx`:**
86
87
 
package/bin/init.cjs CHANGED
@@ -179,6 +179,7 @@ if (command === "init") {
179
179
  if (platform === "native") {
180
180
  const cssPath = path.join(cwd, "global.css");
181
181
  const metroPath = path.join(cwd, "metro.config.js");
182
+ const uniwindTypesPath = path.join(cwd, "uniwind-types.d.ts");
182
183
 
183
184
  fs.writeFileSync(
184
185
  cssPath,
@@ -196,6 +197,11 @@ if (command === "init") {
196
197
  console.log(`✓ Created ${path.relative(cwd, metroPath)}`);
197
198
  }
198
199
 
200
+ // Copy uniwind type augmentation so className is recognized on RN components
201
+ const uniwindDtsSource = path.join(__dirname, "..", "src", "uniwind.d.ts");
202
+ fs.copyFileSync(uniwindDtsSource, uniwindTypesPath);
203
+ console.log(`✓ Created ${path.relative(cwd, uniwindTypesPath)}`);
204
+
199
205
  console.log("");
200
206
  console.log("Next steps:");
201
207
  console.log(" 1. Add import './global.css' to your App.tsx");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byldpartners/ui",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Cross-platform UI component library for web and React Native",
5
5
  "license": "MIT",
6
6
  "publishConfig": {