@tamagui/font-silkscreen 2.7.7 → 3.0.0-beta.643.1

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.
@@ -1,65 +1,60 @@
1
+
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
10
11
  };
11
12
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
19
20
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
22
  var index_exports = {};
24
- __export(index_exports, {
25
- createSilkscreenFont: () => createSilkscreenFont
26
- });
23
+ __export(index_exports, { createSilkscreenFont: () => createSilkscreenFont });
27
24
  module.exports = __toCommonJS(index_exports);
28
25
  var import_core = require("@tamagui/core");
29
26
  const createSilkscreenFont = (font = {}) => {
30
- return (0, import_core.createFont)({
31
- family: import_core.isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
32
- size,
33
- lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v])),
34
- weight: {
35
- 4: "300"
36
- },
37
- letterSpacing: {
38
- 4: 1,
39
- 5: 3,
40
- 6: 3,
41
- 9: -2,
42
- 10: -3,
43
- 12: -4
44
- },
45
- ...font
46
- });
27
+ return (0, import_core.createFont)({
28
+ family: import_core.isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
29
+ size,
30
+ lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v])),
31
+ weight: { 4: "300" },
32
+ letterSpacing: {
33
+ 4: 1,
34
+ 5: 3,
35
+ 6: 3,
36
+ 9: -2,
37
+ 10: -3,
38
+ 12: -4
39
+ },
40
+ ...font
41
+ });
47
42
  };
48
43
  const size = {
49
- 1: 11,
50
- 2: 12,
51
- 3: 13,
52
- 4: 14,
53
- 5: 15,
54
- 6: 16,
55
- 7: 18,
56
- 8: 21,
57
- 9: 28,
58
- 10: 42,
59
- 11: 52,
60
- 12: 62,
61
- 13: 72,
62
- 14: 92,
63
- 15: 114,
64
- 16: 124
65
- };
44
+ 1: 11,
45
+ 2: 12,
46
+ 3: 13,
47
+ 4: 14,
48
+ 5: 15,
49
+ 6: 16,
50
+ 7: 18,
51
+ 8: 21,
52
+ 9: 28,
53
+ 10: 42,
54
+ 11: 52,
55
+ 12: 62,
56
+ 13: 72,
57
+ 14: 92,
58
+ 15: 114,
59
+ 16: 124
60
+ };
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var index_exports = {};
25
+ __export(index_exports, { createSilkscreenFont: () => createSilkscreenFont });
26
+ module.exports = __toCommonJS(index_exports);
27
+ var import_core = require("@tamagui/core");
28
+ var createSilkscreenFont = function() {
29
+ var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
30
+ return (0, import_core.createFont)({
31
+ family: import_core.isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
32
+ size,
33
+ lineHeight: Object.fromEntries(Object.entries(font.size || size).map(function(param) {
34
+ var [k, v] = param;
35
+ return [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v];
36
+ })),
37
+ weight: { 4: "300" },
38
+ letterSpacing: {
39
+ 4: 1,
40
+ 5: 3,
41
+ 6: 3,
42
+ 9: -2,
43
+ 10: -3,
44
+ 12: -4
45
+ },
46
+ ...font
47
+ });
48
+ };
49
+ var size = {
50
+ 1: 11,
51
+ 2: 12,
52
+ 3: 13,
53
+ 4: 14,
54
+ 5: 15,
55
+ 6: 16,
56
+ 7: 18,
57
+ 8: 21,
58
+ 9: 28,
59
+ 10: 42,
60
+ 11: 52,
61
+ 12: 62,
62
+ 13: 72,
63
+ 14: 92,
64
+ 15: 114,
65
+ 16: 124
66
+ };
@@ -1,72 +1,68 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
24
  var index_exports = {};
26
- __export(index_exports, {
27
- createSilkscreenFont: () => createSilkscreenFont
28
- });
25
+ __export(index_exports, { createSilkscreenFont: () => createSilkscreenFont });
29
26
  module.exports = __toCommonJS(index_exports);
30
27
  var import_core = require("@tamagui/core");
31
- var createSilkscreenFont = function () {
32
- var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
33
- return (0, import_core.createFont)({
34
- family: import_core.isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
35
- size,
36
- lineHeight: Object.fromEntries(Object.entries(font.size || size).map(function (param) {
37
- var [k, v] = param;
38
- return [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v];
39
- })),
40
- weight: {
41
- 4: "300"
42
- },
43
- letterSpacing: {
44
- 4: 1,
45
- 5: 3,
46
- 6: 3,
47
- 9: -2,
48
- 10: -3,
49
- 12: -4
50
- },
51
- ...font
52
- });
28
+ var createSilkscreenFont = function() {
29
+ var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
30
+ return (0, import_core.createFont)({
31
+ family: import_core.isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
32
+ size,
33
+ lineHeight: Object.fromEntries(Object.entries(font.size || size).map(function(param) {
34
+ var [k, v] = param;
35
+ return [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v];
36
+ })),
37
+ weight: { 4: "300" },
38
+ letterSpacing: {
39
+ 4: 1,
40
+ 5: 3,
41
+ 6: 3,
42
+ 9: -2,
43
+ 10: -3,
44
+ 12: -4
45
+ },
46
+ ...font
47
+ });
53
48
  };
54
49
  var size = {
55
- 1: 11,
56
- 2: 12,
57
- 3: 13,
58
- 4: 14,
59
- 5: 15,
60
- 6: 16,
61
- 7: 18,
62
- 8: 21,
63
- 9: 28,
64
- 10: 42,
65
- 11: 52,
66
- 12: 62,
67
- 13: 72,
68
- 14: 92,
69
- 15: 114,
70
- 16: 124
50
+ 1: 11,
51
+ 2: 12,
52
+ 3: 13,
53
+ 4: 14,
54
+ 5: 15,
55
+ 6: 16,
56
+ 7: 18,
57
+ 8: 21,
58
+ 9: 28,
59
+ 10: 42,
60
+ 11: 52,
61
+ 12: 62,
62
+ 13: 72,
63
+ 14: 92,
64
+ 15: 114,
65
+ 16: 124
71
66
  };
67
+
72
68
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","createSilkscreenFont","module","exports","import_core","require","font","arguments","length","createFont","family","isWeb","size","lineHeight","Object","fromEntries","entries","map","param","k","v","Math","round","weight","letterSpacing"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,aAAA;AAE3B,IAAAK,WAAM,GAAAC,OAAA,gBACS;AAEpB,IAAAJ,oBAAO,YAAAA,CAAA,EAAW;EAAA,IAChBK,IAAA,GAAQC,SAAA,CAAAC,MAAA,GACJ,KAAAD,SAAA,iBAAAA,SAAA;EACA,OACJ,IAAAH,WAAA,CAAAK,UAAA;IACAC,MAAA,EAAAN,WAAmB,CAAAO,KAAA;IAAAC,IACjB;IAAkDC,UAChD,EAAAC,MAAA,CAAAC,WAAA,CAAAD,MAAA,CAAAE,OAAA,CAAAV,IAAA,CAAAM,IAAA,IAAAA,IAAA,EAAAK,GAAA,WAAAC,KAAA;MAAA,IACA,CAAAC,CAAA,EAAAC,CAAO,IAAAF,KAAM;MACf,OAAC,CACHC,CAAA,EACA,OAAQC,CAAA,gBAAAC,IAAA,CAAAC,KAAA,CAAAF,CAAA,cAAAA,CAAA,CACN;IACF;IACAG,MAAA;MACE,GAAG;IAAA;IACAC,aACA;MACH,GAAG;MACH,IAAI;MACJ,IAAI;MACN;MACA,EAAI;MACL;IACH;IAEA,GAAMlB;EACJ;AAAG;AACA,IACHM,IAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,KAAI;EACJ,KAAI;EACJ,KAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACN","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n createSilkscreenFont: () => createSilkscreenFont\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_core = require(\"@tamagui/core\");\nvar createSilkscreenFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return (0, import_core.createFont)({\n family: import_core.isWeb ? \"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace\" : \"Silkscreen\",\n size,\n lineHeight: Object.fromEntries(Object.entries(font.size || size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n typeof v === \"number\" ? Math.round(v * 1.2 + 6) : v\n ];\n })),\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\n });\n};\nvar 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};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe,EACtB,4BAA4B,qBAC9B,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,uBAAuB,WAAW;CACpC,IAAI,OAAO,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAC7E,QAAQ,GAAG,YAAY,YAAY;EACjC,QAAQ,YAAY,QAAQ,oEAAoE;EAChG;EACA,YAAY,OAAO,YAAY,OAAO,QAAQ,KAAK,QAAQ,IAAI,EAAE,IAAI,SAAS,OAAO;GACnF,IAAI,CAAC,GAAG,KAAK;GACb,OAAO,CACL,GACA,OAAO,MAAM,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,CACpD;EACF,CAAC,CAAC;EACF,QAAQ,EACN,GAAG,MACL;EACA,eAAe;GACb,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG,CAAC;GACJ,IAAI,CAAC;GACL,IAAI,CAAC;EACP;EACA,GAAG;CACL,CAAC;AACH;AACA,IAAI,OAAO;CACT,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN"}
package/dist/esm/index.js CHANGED
@@ -1,40 +1,40 @@
1
1
  import { createFont, isWeb } from "@tamagui/core";
2
+
2
3
  const createSilkscreenFont = (font = {}) => {
3
- return createFont({
4
- family: isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
5
- size,
6
- lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v])),
7
- weight: {
8
- 4: "300"
9
- },
10
- letterSpacing: {
11
- 4: 1,
12
- 5: 3,
13
- 6: 3,
14
- 9: -2,
15
- 10: -3,
16
- 12: -4
17
- },
18
- ...font
19
- });
4
+ return createFont({
5
+ family: isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
6
+ size,
7
+ lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v])),
8
+ weight: { 4: "300" },
9
+ letterSpacing: {
10
+ 4: 1,
11
+ 5: 3,
12
+ 6: 3,
13
+ 9: -2,
14
+ 10: -3,
15
+ 12: -4
16
+ },
17
+ ...font
18
+ });
20
19
  };
21
20
  const size = {
22
- 1: 11,
23
- 2: 12,
24
- 3: 13,
25
- 4: 14,
26
- 5: 15,
27
- 6: 16,
28
- 7: 18,
29
- 8: 21,
30
- 9: 28,
31
- 10: 42,
32
- 11: 52,
33
- 12: 62,
34
- 13: 72,
35
- 14: 92,
36
- 15: 114,
37
- 16: 124
21
+ 1: 11,
22
+ 2: 12,
23
+ 3: 13,
24
+ 4: 14,
25
+ 5: 15,
26
+ 6: 16,
27
+ 7: 18,
28
+ 8: 21,
29
+ 9: 28,
30
+ 10: 42,
31
+ 11: 52,
32
+ 12: 62,
33
+ 13: 72,
34
+ 14: 92,
35
+ 15: 114,
36
+ 16: 124
38
37
  };
38
+
39
39
  export { createSilkscreenFont };
40
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createFont","isWeb","createSilkscreenFont","font","family","size","lineHeight","Object","fromEntries","entries","map","k","v","Math","round","weight","letterSpacing"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,UAAA,EAAYC,KAAA,QAAa;AAE3B,MAAMC,oBAAA,GAAuBA,CAClCC,IAAA,GAAmB,CAAC,MACiB;EACrC,OAAOH,UAAA,CAAW;IAChBI,MAAA,EAAQH,KAAA,GACJ,oEACA;IACJI,IAAA;IACAC,UAAA,EAAYC,MAAA,CAAOC,WAAA,CACjBD,MAAA,CAAOE,OAAA,CAAQN,IAAA,CAAKE,IAAA,IAAQA,IAAI,EAAEK,GAAA,CAAI,CAAC,CAACC,CAAA,EAAGC,CAAC,MAAM,CAChDD,CAAA,EACA,OAAOC,CAAA,KAAM,WAAWC,IAAA,CAAKC,KAAA,CAAMF,CAAA,GAAI,MAAM,CAAC,IAAIA,CAAA,CACnD,CACH;IACAG,MAAA,EAAQ;MACN,GAAG;IACL;IACAC,aAAA,EAAe;MACb,GAAG;MACH,GAAG;MACH,GAAG;MACH,GAAG;MACH,IAAI;MACJ,IAAI;IACN;IACA,GAAIb;EACN,CAAC;AACH;AAEA,MAAME,IAAA,GAAO;EACX,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;AACN","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { createFont, isWeb } from \"@tamagui/core\";\nconst createSilkscreenFont = (font = {}) => {\n return createFont({\n family: isWeb ? \"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace\" : \"Silkscreen\",\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 ),\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\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};\nexport {\n createSilkscreenFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,wBAAwB,OAAO,CAAC,MAAM;CAC1C,OAAO,WAAW;EAChB,QAAQ,QAAQ,oEAAoE;EACpF;EACA,YAAY,OAAO,YACjB,OAAO,QAAQ,KAAK,QAAQ,IAAI,EAAE,KAAK,CAAC,GAAG,OAAO,CAChD,GACA,OAAO,MAAM,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,CACpD,CAAC,CACH;EACA,QAAQ,EACN,GAAG,MACL;EACA,eAAe;GACb,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG,CAAC;GACJ,IAAI,CAAC;GACL,IAAI,CAAC;EACP;EACA,GAAG;CACL,CAAC;AACH;AACA,MAAM,OAAO;CACX,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN"}
@@ -1,40 +1,40 @@
1
1
  import { createFont, isWeb } from "@tamagui/core";
2
+
2
3
  const createSilkscreenFont = (font = {}) => {
3
- return createFont({
4
- family: isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
5
- size,
6
- lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v])),
7
- weight: {
8
- 4: "300"
9
- },
10
- letterSpacing: {
11
- 4: 1,
12
- 5: 3,
13
- 6: 3,
14
- 9: -2,
15
- 10: -3,
16
- 12: -4
17
- },
18
- ...font
19
- });
4
+ return createFont({
5
+ family: isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
6
+ size,
7
+ lineHeight: Object.fromEntries(Object.entries(font.size || size).map(([k, v]) => [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v])),
8
+ weight: { 4: "300" },
9
+ letterSpacing: {
10
+ 4: 1,
11
+ 5: 3,
12
+ 6: 3,
13
+ 9: -2,
14
+ 10: -3,
15
+ 12: -4
16
+ },
17
+ ...font
18
+ });
20
19
  };
21
20
  const size = {
22
- 1: 11,
23
- 2: 12,
24
- 3: 13,
25
- 4: 14,
26
- 5: 15,
27
- 6: 16,
28
- 7: 18,
29
- 8: 21,
30
- 9: 28,
31
- 10: 42,
32
- 11: 52,
33
- 12: 62,
34
- 13: 72,
35
- 14: 92,
36
- 15: 114,
37
- 16: 124
21
+ 1: 11,
22
+ 2: 12,
23
+ 3: 13,
24
+ 4: 14,
25
+ 5: 15,
26
+ 6: 16,
27
+ 7: 18,
28
+ 8: 21,
29
+ 9: 28,
30
+ 10: 42,
31
+ 11: 52,
32
+ 12: 62,
33
+ 13: 72,
34
+ 14: 92,
35
+ 15: 114,
36
+ 16: 124
38
37
  };
38
+
39
39
  export { createSilkscreenFont };
40
40
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["createFont","isWeb","createSilkscreenFont","font","family","size","lineHeight","Object","fromEntries","entries","map","k","v","Math","round","weight","letterSpacing"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,UAAA,EAAYC,KAAA,QAAa;AAE3B,MAAMC,oBAAA,GAAuBA,CAClCC,IAAA,GAAmB,CAAC,MACiB;EACrC,OAAOH,UAAA,CAAW;IAChBI,MAAA,EAAQH,KAAA,GACJ,oEACA;IACJI,IAAA;IACAC,UAAA,EAAYC,MAAA,CAAOC,WAAA,CACjBD,MAAA,CAAOE,OAAA,CAAQN,IAAA,CAAKE,IAAA,IAAQA,IAAI,EAAEK,GAAA,CAAI,CAAC,CAACC,CAAA,EAAGC,CAAC,MAAM,CAChDD,CAAA,EACA,OAAOC,CAAA,KAAM,WAAWC,IAAA,CAAKC,KAAA,CAAMF,CAAA,GAAI,MAAM,CAAC,IAAIA,CAAA,CACnD,CACH;IACAG,MAAA,EAAQ;MACN,GAAG;IACL;IACAC,aAAA,EAAe;MACb,GAAG;MACH,GAAG;MACH,GAAG;MACH,GAAG;MACH,IAAI;MACJ,IAAI;IACN;IACA,GAAIb;EACN,CAAC;AACH;AAEA,MAAME,IAAA,GAAO;EACX,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;AACN","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { createFont, isWeb } from \"@tamagui/core\";\nconst createSilkscreenFont = (font = {}) => {\n return createFont({\n family: isWeb ? \"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace\" : \"Silkscreen\",\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 ),\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\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};\nexport {\n createSilkscreenFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,wBAAwB,OAAO,CAAC,MAAM;CAC1C,OAAO,WAAW;EAChB,QAAQ,QAAQ,oEAAoE;EACpF;EACA,YAAY,OAAO,YACjB,OAAO,QAAQ,KAAK,QAAQ,IAAI,EAAE,KAAK,CAAC,GAAG,OAAO,CAChD,GACA,OAAO,MAAM,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,CACpD,CAAC,CACH;EACA,QAAQ,EACN,GAAG,MACL;EACA,eAAe;GACb,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG,CAAC;GACJ,IAAI,CAAC;GACL,IAAI,CAAC;EACP;EACA,GAAG;CACL,CAAC;AACH;AACA,MAAM,OAAO;CACX,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN"}
@@ -1,44 +1,44 @@
1
1
  import { createFont, isWeb } from "@tamagui/core";
2
- var createSilkscreenFont = function () {
3
- var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4
- return createFont({
5
- family: isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
6
- size,
7
- lineHeight: Object.fromEntries(Object.entries(font.size || size).map(function (param) {
8
- var [k, v] = param;
9
- return [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v];
10
- })),
11
- weight: {
12
- 4: "300"
13
- },
14
- letterSpacing: {
15
- 4: 1,
16
- 5: 3,
17
- 6: 3,
18
- 9: -2,
19
- 10: -3,
20
- 12: -4
21
- },
22
- ...font
23
- });
2
+
3
+ var createSilkscreenFont = function() {
4
+ var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5
+ return createFont({
6
+ family: isWeb ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
7
+ size,
8
+ lineHeight: Object.fromEntries(Object.entries(font.size || size).map(function(param) {
9
+ var [k, v] = param;
10
+ return [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v];
11
+ })),
12
+ weight: { 4: "300" },
13
+ letterSpacing: {
14
+ 4: 1,
15
+ 5: 3,
16
+ 6: 3,
17
+ 9: -2,
18
+ 10: -3,
19
+ 12: -4
20
+ },
21
+ ...font
22
+ });
24
23
  };
25
24
  var size = {
26
- 1: 11,
27
- 2: 12,
28
- 3: 13,
29
- 4: 14,
30
- 5: 15,
31
- 6: 16,
32
- 7: 18,
33
- 8: 21,
34
- 9: 28,
35
- 10: 42,
36
- 11: 52,
37
- 12: 62,
38
- 13: 72,
39
- 14: 92,
40
- 15: 114,
41
- 16: 124
25
+ 1: 11,
26
+ 2: 12,
27
+ 3: 13,
28
+ 4: 14,
29
+ 5: 15,
30
+ 6: 16,
31
+ 7: 18,
32
+ 8: 21,
33
+ 9: 28,
34
+ 10: 42,
35
+ 11: 52,
36
+ 12: 62,
37
+ 13: 72,
38
+ 14: 92,
39
+ 15: 114,
40
+ 16: 124
42
41
  };
42
+
43
43
  export { createSilkscreenFont };
44
44
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createFont","isWeb","createSilkscreenFont","font","arguments","length","family","size","lineHeight","Object","fromEntries","entries","map","param","k","v","Math","round","weight","letterSpacing"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,UAAA,EAAYC,KAAA,QAAa;AAE3B,IAAAC,oBAAM,YAAAA,CAAA,EACS;EAEpB,IAAAC,IAAO,GAAAC,SAAW,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EAAA,OAChBJ,UAAQ,CACJ;IAEJM,MAAA,EAAAL,KAAA;IACAM,IAAA;IAAmBC,UACV,EAAAC,MAAQ,CAAAC,WAAa,CAAAD,MAAM,CAAAE,OAAS,CAACR,IAAA,CAAAI,IAAM,IAAAA,IAAA,EAAAK,GAAA,WAAAC,KAAA;MAAA,IAChD,CAAAC,CAAA,EAAAC,CAAA,IAAAF,KAAA;MAAA,OACA,CACDC,CAAA,EACH,OAAAC,CAAA,gBAAAC,IAAA,CAAAC,KAAA,CAAAF,CAAA,cAAAA,CAAA,CACA;IAAQ,EACN;IACFG,MAAA;MACA;IAAe;IACVC,aACA;MACH,GAAG;MACH,GAAG;MACH,IAAI;MACJ,IAAI;MACN;MACA,EAAI;IACL;IACH,GAAAhB;EAEA;AAAa;AACR,IACHI,IAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,KAAI;EACJ,KAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACN","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["import { createFont, isWeb } from \"@tamagui/core\";\nvar createSilkscreenFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return createFont({\n family: isWeb ? \"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace\" : \"Silkscreen\",\n size,\n lineHeight: Object.fromEntries(Object.entries(font.size || size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n typeof v === \"number\" ? Math.round(v * 1.2 + 6) : v\n ];\n })),\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\n });\n};\nvar 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};\nexport {\n createSilkscreenFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,uBAAuB,WAAW;CACpC,IAAI,OAAO,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAC7E,OAAO,WAAW;EAChB,QAAQ,QAAQ,oEAAoE;EACpF;EACA,YAAY,OAAO,YAAY,OAAO,QAAQ,KAAK,QAAQ,IAAI,EAAE,IAAI,SAAS,OAAO;GACnF,IAAI,CAAC,GAAG,KAAK;GACb,OAAO,CACL,GACA,OAAO,MAAM,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,CACpD;EACF,CAAC,CAAC;EACF,QAAQ,EACN,GAAG,MACL;EACA,eAAe;GACb,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG,CAAC;GACJ,IAAI,CAAC;GACL,IAAI,CAAC;EACP;EACA,GAAG;CACL,CAAC;AACH;AACA,IAAI,OAAO;CACT,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/font-silkscreen",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.643.1",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "files": [
6
6
  "types",
@@ -38,10 +38,10 @@
38
38
  "clean:build": "tamagui-build clean:build"
39
39
  },
40
40
  "dependencies": {
41
- "@tamagui/core": "2.7.7"
41
+ "@tamagui/core": "3.0.0-beta.643.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@tamagui/build": "2.7.7"
44
+ "@tamagui/build": "3.0.0-beta.643.1"
45
45
  },
46
46
  "skipPublishIfUnchanged": false,
47
47
  "repository": {