@butternutbox/pawprint-native 0.10.2 → 0.10.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": "@butternutbox/pawprint-native",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "type": "module",
5
5
  "description": "ButternutBox Pawprint Design System - React Native Components",
6
6
  "main": "./dist/index.cjs",
@@ -14,29 +14,28 @@ export const BRAND_FONTS: Partial<
14
14
  Record<BrandName, Record<string, FontSource>>
15
15
  > = {
16
16
  [Brand.Butternutbox]: {
17
- "IdaNarrow-Medium": idaNarrow500 as FontSource,
18
- "IdaNarrow-Bold": idaNarrow700 as FontSource,
19
- "IBMPlexSansCondensed-Regular": ibmPlexSansCondensed400 as FontSource,
20
- "IBMPlexSansCondensed-Medium": ibmPlexSansCondensed500 as FontSource,
21
- "IBMPlexSansCondensed-SemiBold": ibmPlexSansCondensed600 as FontSource,
22
- "IBMPlexSansCondensed-Bold": ibmPlexSansCondensed700 as FontSource
17
+ "IdaWebNarrow-Medium": idaNarrow500 as FontSource,
18
+ "IdaWebNarrow-Bold": idaNarrow700 as FontSource,
19
+ "IBMPlexSansCond-Regular": ibmPlexSansCondensed400 as FontSource,
20
+ "IBMPlexSansCond-Medium": ibmPlexSansCondensed500 as FontSource,
21
+ "IBMPlexSansCond-SemiBold": ibmPlexSansCondensed600 as FontSource,
22
+ "IBMPlexSansCond-Bold": ibmPlexSansCondensed700 as FontSource
23
23
  }
24
24
  }
25
25
 
26
- // Maps token fontFamily + fontWeight → the expo-font registered key.
27
- // The key is used as fontFamily on both web and nativeuseFonts registers
28
- // it as the @font-face family name on web so it matches Text styles directly.
29
- // fontWeight is dropped because the weight is already encoded in the key name.
26
+ // Maps token fontFamily + fontWeight → PostScript font name.
27
+ // Keys must match the PostScript name embedded in the font fileiOS registers
28
+ // fonts under their PostScript name regardless of the useFonts key.
30
29
  const FONT_MAP: Record<string, Record<string, string>> = {
31
30
  "IBM Plex Sans Condensed": {
32
- "400": "IBMPlexSansCondensed-Regular",
33
- "500": "IBMPlexSansCondensed-Medium",
34
- "600": "IBMPlexSansCondensed-SemiBold",
35
- "700": "IBMPlexSansCondensed-Bold"
31
+ "400": "IBMPlexSansCond-Regular",
32
+ "500": "IBMPlexSansCond-Medium",
33
+ "600": "IBMPlexSansCond-SemiBold",
34
+ "700": "IBMPlexSansCond-Bold"
36
35
  },
37
36
  "Ida Narrow": {
38
- "500": "IdaNarrow-Medium",
39
- "700": "IdaNarrow-Bold"
37
+ "500": "IdaWebNarrow-Medium",
38
+ "700": "IdaWebNarrow-Bold"
40
39
  }
41
40
  }
42
41
 
package/tsup.config.ts CHANGED
@@ -13,9 +13,11 @@ export default defineConfig({
13
13
  "react-native-reanimated",
14
14
  "react-native-svg",
15
15
  "react-native-worklets",
16
- /^@rn-primitives\/.*/
16
+ /^@rn-primitives\/.*/,
17
+ /\.ttf$/
17
18
  ],
18
19
  treeshake: true,
20
+ onSuccess: "cp src/fonts/*.ttf dist/",
19
21
  esbuildOptions(options) {
20
22
  options.conditions = ["react-native", "import", "module", "default"]
21
23
  options.loader = {