@yahoo/uds-mobile 2.20.2 → 2.21.1
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/CONTRIBUTING.md +8 -4
- package/README.md +2 -0
- package/dist/bin/_virtual/_rolldown/runtime.mjs +14 -0
- package/dist/bin/automated-config/dist/generated/generatedConfigs.mjs +47982 -0
- package/dist/bin/mobile/scripts/utils/configToRNMappings.mjs +20 -1
- package/dist/components/Icon.d.cts +2 -2
- package/dist/components/Icon.d.ts +2 -2
- package/dist/components/Input.cjs +13 -5
- package/dist/components/Input.js +13 -5
- package/dist/components/Input.js.map +1 -1
- package/dist/components/InputHelpText.cjs +1 -2
- package/dist/components/InputHelpText.js +1 -2
- package/dist/components/InputHelpText.js.map +1 -1
- package/fonts/index.cjs +220 -211
- package/fonts/index.mjs +220 -211
- package/fonts/uds-icons.ttf +0 -0
- package/generated/styles.cjs +85 -146
- package/generated/styles.d.ts +5 -15
- package/generated/styles.mjs +85 -146
- package/generated/unistyles.d.ts +64 -186
- package/package.json +1 -1
package/CONTRIBUTING.md
CHANGED
|
@@ -563,7 +563,7 @@ The generation pipeline runs via `bun scripts/generate.ts` (or `bun run generate
|
|
|
563
563
|
│ generate.ts │
|
|
564
564
|
│ 1. generateTypes() → generated/unistyles.d.ts │
|
|
565
565
|
│ 2. generateStyles() → generated/styles.ts │
|
|
566
|
-
│ 3. generateFonts() → fonts/index.{cjs,mjs}
|
|
566
|
+
│ 3. generateFonts() → fonts/index.{cjs,mjs} + fonts/uds-icons.ttf│
|
|
567
567
|
└─────────────────────────────────────────────────────────────────────┘
|
|
568
568
|
```
|
|
569
569
|
|
|
@@ -603,9 +603,13 @@ The most complex generation step:
|
|
|
603
603
|
|
|
604
604
|
### Step 3: generateFonts.ts
|
|
605
605
|
|
|
606
|
-
1.
|
|
607
|
-
2.
|
|
608
|
-
3.
|
|
606
|
+
1. Syncs `fonts/uds-icons.ttf` from `packages/icons/generated/font/uds-icons.ttf`
|
|
607
|
+
2. Scans `fonts/` directory for `.otf` and `.ttf` files, skipping the vendored icon font
|
|
608
|
+
3. Uses `fontkit` to extract PostScript names from font files
|
|
609
|
+
4. Generates CommonJS and ESM manifests for Expo compatibility
|
|
610
|
+
5. Resolves the icon font from `@yahoo/uds-icons/generated/font/uds-icons.ttf`, matching the package that provides `glyphMap`
|
|
611
|
+
|
|
612
|
+
The synced `fonts/uds-icons.ttf` is a build artifact and is gitignored — it is regenerated from `@yahoo/uds-icons` on every build and before publish (`ci:publish`), so it can never drift from the glyph map. Use `bun run sync:icon-font` to refresh it manually.
|
|
609
613
|
|
|
610
614
|
## Theme Generation
|
|
611
615
|
|
package/README.md
CHANGED
|
@@ -68,6 +68,8 @@ expo install react-native-unistyles react-native-reanimated react-native-svg rea
|
|
|
68
68
|
expo install expo-font
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
If your app uses `Icon` or UDS icon font loading, install `@yahoo/uds-icons` with your package manager.
|
|
72
|
+
|
|
71
73
|
Using `expo install` ensures you get versions compatible with your Expo SDK. If you encounter version conflicts, check the `peerDependencies` in the package's `package.json` for the exact version ranges required.
|
|
72
74
|
|
|
73
75
|
### Expo Configuration
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __exportAll = (all, no_symbols) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { __exportAll };
|