@tamagui/font-munro 1.124.17 → 1.124.18

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": "@tamagui/font-munro",
3
- "version": "1.124.17",
3
+ "version": "1.124.18",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -19,10 +19,10 @@
19
19
  "clean:build": "tamagui-build clean:build"
20
20
  },
21
21
  "dependencies": {
22
- "@tamagui/core": "1.124.17"
22
+ "@tamagui/core": "1.124.18"
23
23
  },
24
24
  "devDependencies": {
25
- "@tamagui/build": "1.124.17"
25
+ "@tamagui/build": "1.124.18"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import type { GenericFont } from '@tamagui/core';
1
+ import type { GenericFont } from "@tamagui/core";
2
2
  export declare const createMunroFont: <A extends GenericFont>(font?: Partial<A>) => A;
3
+
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1,13 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAGhD,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,SAAQ,OAAO,CAAC,CAAC,CAAC,KAAQ,CAiB9E,CAAA"}
1
+ {
2
+ "mappings": "AAAA,cAAc,mBAAmB,eAAe;AAGhD,OAAO,cAAM,kBAAmB,UAAU,aAAaA,OAAM,QAAQ,OAAU",
3
+ "names": [
4
+ "font: Partial<A>"
5
+ ],
6
+ "sources": [
7
+ "src/index.ts"
8
+ ],
9
+ "sourcesContent": [
10
+ "import type { GenericFont } from '@tamagui/core'\nimport { createFont, isWeb } from '@tamagui/core'\n\nexport const createMunroFont = <A extends GenericFont>(font: Partial<A> = {}): A => {\n return createFont({\n family: isWeb\n ? 'Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace'\n : 'Munro',\n size,\n lineHeight: Object.fromEntries(\n Object.entries(font.size || size).map(([k, v]) => [\n k,\n typeof v === 'number' ? Math.round(v * 1.2 + 6) : v,\n ])\n ) as typeof size,\n weight: {\n 4: '400',\n },\n ...(font as any),\n })\n}\n\nconst size = {\n 1: 11,\n 2: 12,\n 3: 13,\n 4: 14,\n 5: 15,\n 6: 16,\n 7: 18,\n 8: 21,\n 9: 28,\n 10: 42,\n 11: 52,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 124,\n} as const\n"
11
+ ],
12
+ "version": 3
13
+ }