@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.
- package/dist/cjs/index.cjs +46 -51
- package/dist/cjs/index.native.cjs +66 -0
- package/dist/cjs/index.native.js +51 -55
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +33 -33
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +33 -33
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +38 -38
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
+
};
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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,"
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { createFont, isWeb } from "@tamagui/core";
|
|
2
|
+
|
|
2
3
|
const createSilkscreenFont = (font = {}) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { createFont, isWeb } from "@tamagui/core";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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,"
|
|
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": "
|
|
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": "
|
|
41
|
+
"@tamagui/core": "3.0.0-beta.643.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@tamagui/build": "
|
|
44
|
+
"@tamagui/build": "3.0.0-beta.643.1"
|
|
45
45
|
},
|
|
46
46
|
"skipPublishIfUnchanged": false,
|
|
47
47
|
"repository": {
|