@tamagui/font-silkscreen 1.2.9 → 1.2.10

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,44 @@
1
+ import { createFont, isWeb } from "@tamagui/core";
2
+ const createSilkscreenFont = (font = {}) => {
3
+ return createFont({
4
+ family: isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
5
+ size,
6
+ lineHeight: Object.fromEntries(
7
+ Object.entries(size).map(([k, v]) => [k, v * 1.2 + 6])
8
+ ),
9
+ weight: {
10
+ 4: "300"
11
+ },
12
+ letterSpacing: {
13
+ 4: 1,
14
+ 5: 3,
15
+ 6: 3,
16
+ 9: -2,
17
+ 10: -3,
18
+ 12: -4
19
+ },
20
+ ...font
21
+ });
22
+ };
23
+ const size = {
24
+ 1: 11,
25
+ 2: 12,
26
+ 3: 13,
27
+ 4: 14,
28
+ 5: 15,
29
+ 6: 16,
30
+ 7: 18,
31
+ 8: 21,
32
+ 9: 28,
33
+ 10: 42,
34
+ 11: 52,
35
+ 12: 62,
36
+ 13: 72,
37
+ 14: 92,
38
+ 15: 114,
39
+ 16: 124
40
+ };
41
+ export {
42
+ createSilkscreenFont
43
+ };
44
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["import { GenericFont, createFont, isWeb } from '@tamagui/core'\n\nexport const createSilkscreenFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {},\n): A => {\n return createFont({\n family: isWeb\n ? 'Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace'\n : 'Silkscreen',\n size,\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, v * 1.2 + 6]),\n ) as typeof size,\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 1,\n 5: 3,\n 6: 3,\n 9: -2,\n 10: -3,\n 12: -4,\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"],
5
+ "mappings": "AAAA,SAAsB,YAAY,aAAa;AAExC,MAAM,uBAAuB,CAClC,OAAmB,CAAC,MACd;AACN,SAAO,WAAW;AAAA,IAChB,QAAQ,QACJ,oEACA;AAAA,IACJ;AAAA,IACA,YAAY,OAAO;AAAA,MACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,CAAC;AAAA,IACvD;AAAA,IACA,QAAQ;AAAA,MACN,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,IACN;AAAA,IACA,GAAI;AAAA,EACN,CAAC;AACH;AAEA,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,44 @@
1
+ import { createFont, isWeb } from "@tamagui/core";
2
+ const createSilkscreenFont = (font = {}) => {
3
+ return createFont({
4
+ family: isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
5
+ size,
6
+ lineHeight: Object.fromEntries(
7
+ Object.entries(size).map(([k, v]) => [k, v * 1.2 + 6])
8
+ ),
9
+ weight: {
10
+ 4: "300"
11
+ },
12
+ letterSpacing: {
13
+ 4: 1,
14
+ 5: 3,
15
+ 6: 3,
16
+ 9: -2,
17
+ 10: -3,
18
+ 12: -4
19
+ },
20
+ ...font
21
+ });
22
+ };
23
+ const size = {
24
+ 1: 11,
25
+ 2: 12,
26
+ 3: 13,
27
+ 4: 14,
28
+ 5: 15,
29
+ 6: 16,
30
+ 7: 18,
31
+ 8: 21,
32
+ 9: 28,
33
+ 10: 42,
34
+ 11: 52,
35
+ 12: 62,
36
+ 13: 72,
37
+ 14: 92,
38
+ 15: 114,
39
+ 16: 124
40
+ };
41
+ export {
42
+ createSilkscreenFont
43
+ };
44
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["import { GenericFont, createFont, isWeb } from '@tamagui/core'\n\nexport const createSilkscreenFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {},\n): A => {\n return createFont({\n family: isWeb\n ? 'Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace'\n : 'Silkscreen',\n size,\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, v * 1.2 + 6]),\n ) as typeof size,\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 1,\n 5: 3,\n 6: 3,\n 9: -2,\n 10: -3,\n 12: -4,\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"],
5
+ "mappings": "AAAA,SAAsB,YAAY,aAAa;AAExC,MAAM,uBAAuB,CAClC,OAAmB,CAAC,MACd;AACN,SAAO,WAAW;AAAA,IAChB,QAAQ,QACJ,oEACA;AAAA,IACJ;AAAA,IACA,YAAY,OAAO;AAAA,MACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,CAAC;AAAA,IACvD;AAAA,IACA,QAAQ;AAAA,MACN,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,IACN;AAAA,IACA,GAAI;AAAA,EACN,CAAC;AACH;AAEA,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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/font-silkscreen",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -20,10 +20,10 @@
20
20
  "clean:build": "tamagui-build clean:build"
21
21
  },
22
22
  "dependencies": {
23
- "@tamagui/core": "^1.2.9"
23
+ "@tamagui/core": "^1.2.10"
24
24
  },
25
25
  "devDependencies": {
26
- "@tamagui/build": "^1.2.9"
26
+ "@tamagui/build": "^1.2.10"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"