@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/.turbo/turbo-build.log +7 -19
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +24 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/fonts/index.ts +15 -16
- package/tsup.config.ts +3 -1
- /package/dist/{ibm-plex-sans-condensed-400-normal-HPNYNCMK.ttf → ibm-plex-sans-condensed-400-normal.ttf} +0 -0
- /package/dist/{ibm-plex-sans-condensed-500-normal-A67WOCOE.ttf → ibm-plex-sans-condensed-500-normal.ttf} +0 -0
- /package/dist/{ibm-plex-sans-condensed-600-normal-LVI6BHYG.ttf → ibm-plex-sans-condensed-600-normal.ttf} +0 -0
- /package/dist/{ibm-plex-sans-condensed-700-normal-M7CX52AP.ttf → ibm-plex-sans-condensed-700-normal.ttf} +0 -0
- /package/dist/{ida-narrow-500-normal-QUBTMKIO.ttf → ida-narrow-500-normal.ttf} +0 -0
- /package/dist/{ida-narrow-700-normal-6QL6J2BT.ttf → ida-narrow-700-normal.ttf} +0 -0
package/package.json
CHANGED
package/src/fonts/index.ts
CHANGED
|
@@ -14,29 +14,28 @@ export const BRAND_FONTS: Partial<
|
|
|
14
14
|
Record<BrandName, Record<string, FontSource>>
|
|
15
15
|
> = {
|
|
16
16
|
[Brand.Butternutbox]: {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
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 →
|
|
27
|
-
//
|
|
28
|
-
//
|
|
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 file — iOS 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": "
|
|
33
|
-
"500": "
|
|
34
|
-
"600": "
|
|
35
|
-
"700": "
|
|
31
|
+
"400": "IBMPlexSansCond-Regular",
|
|
32
|
+
"500": "IBMPlexSansCond-Medium",
|
|
33
|
+
"600": "IBMPlexSansCond-SemiBold",
|
|
34
|
+
"700": "IBMPlexSansCond-Bold"
|
|
36
35
|
},
|
|
37
36
|
"Ida Narrow": {
|
|
38
|
-
"500": "
|
|
39
|
-
"700": "
|
|
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 = {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|