@tamagui/font-silkscreen 1.0.1-beta.21 → 1.0.1-beta.210

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/dist/cjs/index.js CHANGED
@@ -1,22 +1,8 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
20
6
  var __export = (target, all) => {
21
7
  for (var name in all)
22
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -37,21 +23,27 @@ __export(src_exports, {
37
23
  module.exports = __toCommonJS(src_exports);
38
24
  var import_core = require("@tamagui/core");
39
25
  var import_react_native = require("react-native");
40
- const createSilkscreenFont = /* @__PURE__ */ __name((font = {}) => {
41
- return (0, import_core.createFont)(__spreadValues({
26
+ const createSilkscreenFont = (font = {}) => {
27
+ return (0, import_core.createFont)({
42
28
  family: import_react_native.Platform.OS == "web" ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
43
29
  size,
44
- lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1 + 12])),
30
+ lineHeight: Object.fromEntries(
31
+ Object.entries(size).map(([k, v]) => [k, v * 1.2 + 6])
32
+ ),
45
33
  weight: {
46
34
  4: "300"
47
35
  },
48
36
  letterSpacing: {
49
- 4: 0,
50
- 5: 1,
51
- 6: 2
52
- }
53
- }, font));
54
- }, "createSilkscreenFont");
37
+ 4: 1,
38
+ 5: 3,
39
+ 6: 3,
40
+ 9: -2,
41
+ 10: -3,
42
+ 12: -4
43
+ },
44
+ ...font
45
+ });
46
+ };
55
47
  const size = {
56
48
  1: 11,
57
49
  2: 12,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["import { GenericFont, createFont } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createSilkscreenFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {}\n): A => {\n return createFont({\n family:\n Platform.OS == 'web'\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 + 12])\n ) as typeof size,\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 0,\n 5: 1,\n 6: 2,\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;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwC;AACxC,0BAAyB;AAElB,MAAM,uBAAuB,wBAClC,OAAmB,CAAC,MACd;AACN,SAAO,4BAAW;AAAA,IAChB,QACE,6BAAS,MAAM,QACX,oEACA;AAAA,IACN;AAAA,IACA,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC,CACtD;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,KACI,KACL;AACH,GAtBoC;AAwBpC,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;",
4
+ "sourcesContent": ["import { GenericFont, createFont } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createSilkscreenFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {}\n): A => {\n return createFont({\n family:\n Platform.OS == 'web'\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;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwC;AACxC,0BAAyB;AAElB,MAAM,uBAAuB,CAClC,OAAmB,CAAC,MACd;AACN,aAAO,wBAAW;AAAA,IAChB,QACE,6BAAS,MAAM,QACX,oEACA;AAAA,IACN;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
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,23 +1,26 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
1
  import { createFont } from "@tamagui/core";
4
2
  import { Platform } from "react-native";
5
- const createSilkscreenFont = /* @__PURE__ */ __name((font = {}) => {
3
+ const createSilkscreenFont = (font = {}) => {
6
4
  return createFont({
7
5
  family: Platform.OS == "web" ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
8
6
  size,
9
- lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1 + 12])),
7
+ lineHeight: Object.fromEntries(
8
+ Object.entries(size).map(([k, v]) => [k, v * 1.2 + 6])
9
+ ),
10
10
  weight: {
11
11
  4: "300"
12
12
  },
13
13
  letterSpacing: {
14
- 4: 0,
15
- 5: 1,
16
- 6: 2
14
+ 4: 1,
15
+ 5: 3,
16
+ 6: 3,
17
+ 9: -2,
18
+ 10: -3,
19
+ 12: -4
17
20
  },
18
21
  ...font
19
22
  });
20
- }, "createSilkscreenFont");
23
+ };
21
24
  const size = {
22
25
  1: 11,
23
26
  2: 12,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["import { GenericFont, createFont } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createSilkscreenFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {}\n): A => {\n return createFont({\n family:\n Platform.OS == 'web'\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 + 12])\n ) as typeof size,\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 0,\n 5: 1,\n 6: 2,\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;AACA;AAEO,MAAM,uBAAuB,wBAClC,OAAmB,CAAC,MACd;AACN,SAAO,WAAW;AAAA,IAChB,QACE,SAAS,MAAM,QACX,oEACA;AAAA,IACN;AAAA,IACA,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC,CACtD;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,OACI;AAAA,EACN,CAAC;AACH,GAtBoC;AAwBpC,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;",
4
+ "sourcesContent": ["import { GenericFont, createFont } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createSilkscreenFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {}\n): A => {\n return createFont({\n family:\n Platform.OS == 'web'\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,kBAAkB;AACxC,SAAS,gBAAgB;AAElB,MAAM,uBAAuB,CAClC,OAAmB,CAAC,MACd;AACN,SAAO,WAAW;AAAA,IAChB,QACE,SAAS,MAAM,QACX,oEACA;AAAA,IACN;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
6
  "names": []
7
7
  }
package/dist/jsx/index.js CHANGED
@@ -1,23 +1,26 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
1
  import { createFont } from "@tamagui/core";
4
2
  import { Platform } from "react-native";
5
- const createSilkscreenFont = /* @__PURE__ */ __name((font = {}) => {
3
+ const createSilkscreenFont = (font = {}) => {
6
4
  return createFont({
7
5
  family: Platform.OS == "web" ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
8
6
  size,
9
- lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1 + 12])),
7
+ lineHeight: Object.fromEntries(
8
+ Object.entries(size).map(([k, v]) => [k, v * 1.2 + 6])
9
+ ),
10
10
  weight: {
11
11
  4: "300"
12
12
  },
13
13
  letterSpacing: {
14
- 4: 0,
15
- 5: 1,
16
- 6: 2
14
+ 4: 1,
15
+ 5: 3,
16
+ 6: 3,
17
+ 9: -2,
18
+ 10: -3,
19
+ 12: -4
17
20
  },
18
21
  ...font
19
22
  });
20
- }, "createSilkscreenFont");
23
+ };
21
24
  const size = {
22
25
  1: 11,
23
26
  2: 12,
@@ -39,3 +42,4 @@ const size = {
39
42
  export {
40
43
  createSilkscreenFont
41
44
  };
45
+ //# 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 createSilkscreenFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {}\n): A => {\n return createFont({\n family:\n Platform.OS == 'web'\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,kBAAkB;AACxC,SAAS,gBAAgB;AAElB,MAAM,uBAAuB,CAClC,OAAmB,CAAC,MACd;AACN,SAAO,WAAW;AAAA,IAChB,QACE,SAAS,MAAM,QACX,oEACA;AAAA,IACN;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
+ }
File without changes
Binary file
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/font-silkscreen",
3
- "version": "1.0.1-beta.21",
4
- "typings": "types",
3
+ "version": "1.0.1-beta.210",
4
+ "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
7
7
  "module:jsx": "dist/jsx",
@@ -9,16 +9,21 @@
9
9
  "types",
10
10
  "dist",
11
11
  "css",
12
- "ttf"
12
+ "files"
13
13
  ],
14
14
  "scripts": {
15
15
  "build": "tamagui-build",
16
16
  "watch": "tamagui-build --watch",
17
+ "lint": "eslint",
18
+ "lint:fix": "yarn lint --fix",
17
19
  "clean": "tamagui-build clean",
18
20
  "clean:build": "tamagui-build clean:build"
19
21
  },
22
+ "dependencies": {
23
+ "@tamagui/core": "^1.0.1-beta.210"
24
+ },
20
25
  "devDependencies": {
21
- "@tamagui/build": "^1.0.1-beta.21"
26
+ "@tamagui/build": "^1.0.1-beta.210"
22
27
  },
23
28
  "publishConfig": {
24
29
  "access": "public"
@@ -1 +0,0 @@
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,oBAAoB,uHAsBhC,CAAA"}