@agimon-ai/po-native-components 0.0.0-alpha.27 → 0.0.0-alpha.29

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.
@@ -3,7 +3,9 @@ import { NativeFontStack } from "@agimon-ai/po-web-components/nativeTheme";
3
3
  /**
4
4
  * The font family a native style names for a stack: the platform font on iOS
5
5
  * and Android until the brand families are bundled, and the brand family with
6
- * a CSS generic fallback on web, where story renders run.
6
+ * a CSS generic fallback on web, where story renders run. On web the variable
7
+ * face comes first, as in theme.css: fontsource registers it as "<family>
8
+ * Variable", so the plain name alone matches nothing and falls back.
7
9
  *
8
10
  * ponytail: load IBM Plex Sans and JetBrains Mono through expo-font and return
9
11
  * `stack.family` everywhere once the native visual review starts.
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.d.mts","names":[],"sources":["../../src/lib/fonts.ts"],"mappings":";;;;;;;;;;wBAWgB,OAAO,OAAO"}
1
+ {"version":3,"file":"fonts.d.mts","names":[],"sources":["../../src/lib/fonts.ts"],"mappings":";;;;;;;;;;;;wBAagB,OAAO,OAAO"}
@@ -4,7 +4,9 @@ import { Platform } from "react-native";
4
4
  /**
5
5
  * The font family a native style names for a stack: the platform font on iOS
6
6
  * and Android until the brand families are bundled, and the brand family with
7
- * a CSS generic fallback on web, where story renders run.
7
+ * a CSS generic fallback on web, where story renders run. On web the variable
8
+ * face comes first, as in theme.css: fontsource registers it as "<family>
9
+ * Variable", so the plain name alone matches nothing and falls back.
8
10
  *
9
11
  * ponytail: load IBM Plex Sans and JetBrains Mono through expo-font and return
10
12
  * `stack.family` everywhere once the native visual review starts.
@@ -13,7 +15,7 @@ function fontOf(stack) {
13
15
  return Platform.select({
14
16
  ios: stack.ios,
15
17
  android: stack.android,
16
- default: `${stack.family}, ${stack.android}`
18
+ default: `${stack.family} Variable, ${stack.family}, ${stack.android}`
17
19
  });
18
20
  }
19
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.mjs","names":["NativeFontStack","Platform","fontOf","stack","select","ios","android","default","family"],"sources":["../../src/lib/fonts.ts"],"sourcesContent":["import type { NativeFontStack } from '@agimon-ai/po-web-components/nativeTheme';\nimport { Platform } from 'react-native';\n\n/**\n * The font family a native style names for a stack: the platform font on iOS\n * and Android until the brand families are bundled, and the brand family with\n * a CSS generic fallback on web, where story renders run.\n *\n * ponytail: load IBM Plex Sans and JetBrains Mono through expo-font and return\n * `stack.family` everywhere once the native visual review starts.\n */\nexport function fontOf(stack: NativeFontStack): string {\n return Platform.select({\n ios: stack.ios,\n android: stack.android,\n default: `${stack.family}, ${stack.android}`,\n });\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgBE,OAAOC,OAAgC;CACrD,OAAOF,SAASG,OAAO;EACrBC,KAAKF,MAAME;EACXC,SAASH,MAAMG;EACfC,SAAS,GAAGJ,MAAMK,OAAM,IAAKL,MAAMG;CACrC,CAAC;AACH"}
1
+ {"version":3,"file":"fonts.mjs","names":["NativeFontStack","Platform","fontOf","stack","select","ios","android","default","family"],"sources":["../../src/lib/fonts.ts"],"sourcesContent":["import type { NativeFontStack } from '@agimon-ai/po-web-components/nativeTheme';\nimport { Platform } from 'react-native';\n\n/**\n * The font family a native style names for a stack: the platform font on iOS\n * and Android until the brand families are bundled, and the brand family with\n * a CSS generic fallback on web, where story renders run. On web the variable\n * face comes first, as in theme.css: fontsource registers it as \"<family>\n * Variable\", so the plain name alone matches nothing and falls back.\n *\n * ponytail: load IBM Plex Sans and JetBrains Mono through expo-font and return\n * `stack.family` everywhere once the native visual review starts.\n */\nexport function fontOf(stack: NativeFontStack): string {\n return Platform.select({\n ios: stack.ios,\n android: stack.android,\n default: `${stack.family} Variable, ${stack.family}, ${stack.android}`,\n });\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,SAAgBE,OAAOC,OAAgC;CACrD,OAAOF,SAASG,OAAO;EACrBC,KAAKF,MAAME;EACXC,SAASH,MAAMG;EACfC,SAAS,GAAGJ,MAAMK,OAAM,aAAcL,MAAMK,OAAM,IAAKL,MAAMG;CAC/D,CAAC;AACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-native-components",
3
- "version": "0.0.0-alpha.27",
3
+ "version": "0.0.0-alpha.29",
4
4
  "description": "Shared React Native components for Po and its native plugins: the web component library's look and API on native parts, tuned to the Po palette.",
5
5
  "keywords": [
6
6
  "ai",
@@ -45,13 +45,15 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "@agimon-ai/po-web-components": "0.0.0-alpha.27"
48
+ "@agimon-ai/po-web-components": "0.0.0-alpha.29"
49
49
  },
50
50
  "devDependencies": {
51
- "@agimon-ai/po-build": "0.0.0-alpha.27",
52
- "@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.27",
51
+ "@agimon-ai/po-build": "0.0.0-alpha.29",
52
+ "@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.29",
53
53
  "@babel/core": "7.29.7",
54
54
  "@expo/vector-icons": "15.1.1",
55
+ "@fontsource-variable/ibm-plex-sans": "5.3.0",
56
+ "@fontsource-variable/jetbrains-mono": "5.3.0",
55
57
  "@gorhom/bottom-sheet": "5.2.14",
56
58
  "@react-native-segmented-control/segmented-control": "2.5.7",
57
59
  "@shopify/flash-list": "2.0.2",
@@ -70,6 +72,7 @@
70
72
  "react-native-reanimated": "4.5.1",
71
73
  "react-native-safe-area-context": "~5.7.0",
72
74
  "react-native-unistyles": "3.5.3",
75
+ "react-native-web": "0.21.4",
73
76
  "react-native-worklets": "0.10.1",
74
77
  "tsdown": "0.23.1",
75
78
  "typescript": "~6.0.3",