@tamagui/font-glusp 1.124.17 → 1.125.0

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-glusp",
3
- "version": "1.124.17",
3
+ "version": "1.125.0",
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/web": "1.124.17"
22
+ "@tamagui/web": "1.125.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@tamagui/build": "1.124.17"
25
+ "@tamagui/build": "1.125.0"
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/web';
1
+ import type { GenericFont } from "@tamagui/web";
2
2
  export declare const createGluspFont: <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,cAAc,CAAA;AAG/C,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,SAAQ,OAAO,CAAC,CAAC,CAAC,KAAQ,CAe9E,CAAA"}
1
+ {
2
+ "mappings": "AAAA,cAAc,mBAAmB,cAAc;AAG/C,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/web'\nimport { createFont } from '@tamagui/web'\n\nexport const createGluspFont = <A extends GenericFont>(font: Partial<A> = {}): A => {\n return createFont({\n family: 'Glusp',\n size,\n lineHeight: Object.fromEntries(\n Object.entries(font.size || size).map(([k, v]) => [\n k,\n typeof v === 'number' ? 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: 3 * 11,\n 2: 3 * 12,\n 3: 3 * 13,\n 4: 3 * 14,\n 5: 3 * 15,\n 6: 3 * 16,\n 7: 3 * 18,\n 8: 3 * 21,\n 9: 3 * 28,\n 10: 3 * 42,\n 11: 3 * 52,\n 12: 3 * 62,\n 13: 3 * 72,\n 14: 3 * 92,\n 15: 3 * 114,\n 16: 3 * 124,\n} as const\n"
11
+ ],
12
+ "version": 3
13
+ }