@tamagui/font-inter 1.0.0-beta.147

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.
@@ -0,0 +1,68 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { createFont } from "@tamagui/core";
4
+ import { Platform } from "react-native";
5
+ const createInterFont = /* @__PURE__ */ __name((font = {}) => {
6
+ return createFont({
7
+ family: Platform.OS == "web" ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' : "Inter",
8
+ size,
9
+ lineHeight: {
10
+ 1: 15,
11
+ 2: 20,
12
+ 3: 25,
13
+ 4: 27,
14
+ 5: 29,
15
+ 6: 31,
16
+ 7: 34,
17
+ 8: 38,
18
+ 9: 42,
19
+ 10: 54,
20
+ 11: 72,
21
+ 12: 80,
22
+ 13: 100,
23
+ 14: 120,
24
+ 15: 150,
25
+ 16: 170
26
+ },
27
+ weight: {
28
+ 4: "300",
29
+ 7: "600",
30
+ 8: "700"
31
+ },
32
+ letterSpacing: {
33
+ 4: 0,
34
+ 7: 0,
35
+ 8: -1,
36
+ 9: -2,
37
+ 10: -2,
38
+ 11: -3,
39
+ 12: -4,
40
+ 13: -5,
41
+ 14: -6,
42
+ 15: -7
43
+ },
44
+ ...font
45
+ });
46
+ }, "createInterFont");
47
+ const size = {
48
+ 1: 10,
49
+ 2: 12,
50
+ 3: 14,
51
+ 4: 15,
52
+ 5: 16,
53
+ 6: 17,
54
+ 7: 21,
55
+ 8: 25,
56
+ 9: 30,
57
+ 10: 45,
58
+ 11: 58,
59
+ 12: 68,
60
+ 13: 82,
61
+ 14: 102,
62
+ 15: 124,
63
+ 16: 144
64
+ };
65
+ export {
66
+ createInterFont
67
+ };
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["import { GenericFont, createFont } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createInterFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {}\n): A => {\n return createFont({\n family:\n Platform.OS == 'web'\n ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif'\n : 'Inter',\n size,\n lineHeight: {\n 1: 15,\n 2: 20,\n 3: 25,\n 4: 27,\n 5: 29,\n 6: 31,\n 7: 34,\n 8: 38,\n 9: 42,\n 10: 54,\n 11: 72,\n 12: 80,\n 13: 100,\n 14: 120,\n 15: 150,\n 16: 170,\n },\n weight: {\n 4: '300',\n 7: '600',\n 8: '700',\n },\n letterSpacing: {\n 4: 0,\n 7: 0,\n 8: -1,\n 9: -2,\n 10: -2,\n 11: -3,\n 12: -4,\n 13: -5,\n 14: -6,\n 15: -7,\n },\n ...(font as any),\n })\n}\n\nconst size = {\n 1: 10,\n 2: 12,\n 3: 14,\n 4: 15,\n 5: 16,\n 6: 17,\n 7: 21,\n 8: 25,\n 9: 30,\n 10: 45,\n 11: 58,\n 12: 68,\n 13: 82,\n 14: 102,\n 15: 124,\n 16: 144,\n} as const\n"],
5
+ "mappings": ";;AAAA;AACA;AAEO,MAAM,kBAAkB,wBAC7B,OAAmB,CAAC,MACd;AACN,SAAO,WAAW;AAAA,IAChB,QACE,SAAS,MAAM,QACX,0GACA;AAAA,IACN;AAAA,IACA,YAAY;AAAA,MACV,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,OACI;AAAA,EACN,CAAC;AACH,GA9C+B;AAgD/B,MAAM,OAAO;AAAA,EACX,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;",
6
+ "names": []
7
+ }
@@ -0,0 +1,67 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { createFont } from "@tamagui/core";
4
+ import { Platform } from "react-native";
5
+ const createInterFont = /* @__PURE__ */ __name((font = {}) => {
6
+ return createFont({
7
+ family: Platform.OS == "web" ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' : "Inter",
8
+ size,
9
+ lineHeight: {
10
+ 1: 15,
11
+ 2: 20,
12
+ 3: 25,
13
+ 4: 27,
14
+ 5: 29,
15
+ 6: 31,
16
+ 7: 34,
17
+ 8: 38,
18
+ 9: 42,
19
+ 10: 54,
20
+ 11: 72,
21
+ 12: 80,
22
+ 13: 100,
23
+ 14: 120,
24
+ 15: 150,
25
+ 16: 170
26
+ },
27
+ weight: {
28
+ 4: "300",
29
+ 7: "600",
30
+ 8: "700"
31
+ },
32
+ letterSpacing: {
33
+ 4: 0,
34
+ 7: 0,
35
+ 8: -1,
36
+ 9: -2,
37
+ 10: -2,
38
+ 11: -3,
39
+ 12: -4,
40
+ 13: -5,
41
+ 14: -6,
42
+ 15: -7
43
+ },
44
+ ...font
45
+ });
46
+ }, "createInterFont");
47
+ const size = {
48
+ 1: 10,
49
+ 2: 12,
50
+ 3: 14,
51
+ 4: 15,
52
+ 5: 16,
53
+ 6: 17,
54
+ 7: 21,
55
+ 8: 25,
56
+ 9: 30,
57
+ 10: 45,
58
+ 11: 58,
59
+ 12: 68,
60
+ 13: 82,
61
+ 14: 102,
62
+ 15: 124,
63
+ 16: 144
64
+ };
65
+ export {
66
+ createInterFont
67
+ };
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@tamagui/font-inter",
3
+ "version": "1.0.0-beta.147+6d63af55",
4
+ "typings": "types",
5
+ "main": "dist/cjs",
6
+ "module": "dist/esm",
7
+ "module:jsx": "dist/jsx",
8
+ "files": [
9
+ "types",
10
+ "dist",
11
+ "css",
12
+ "ttf"
13
+ ],
14
+ "scripts": {
15
+ "build": "tamagui-build",
16
+ "watch": "tamagui-build --watch",
17
+ "clean": "tamagui-build clean",
18
+ "clean:build": "tamagui-build clean:build"
19
+ },
20
+ "devDependencies": {
21
+ "@tamagui/build": "^1.0.0-beta.147+6d63af55",
22
+ "@tamagui/colors": "^1.0.0-beta.147+6d63af55"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "gitHead": "6d63af55317e3c878ea0b61995728fa480776ffc"
28
+ }
package/ttf/Inter.ttf ADDED
Binary file
@@ -0,0 +1,3 @@
1
+ import { GenericFont } from '@tamagui/core';
2
+ export declare const createInterFont: <A extends GenericFont<10 | 12 | 14 | 15 | 16 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 13>>(font?: Partial<A>) => A;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,eAAe,CAAA;AAGvD,eAAO,MAAM,eAAe,uHA8C3B,CAAA"}