@tamagui/font-munro 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 +38 -43
- package/dist/cjs/index.native.cjs +58 -0
- package/dist/cjs/index.native.js +43 -47
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +25 -25
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +25 -25
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +30 -30
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,57 +1,52 @@
|
|
|
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
|
-
createMunroFont: () => createMunroFont
|
|
26
|
-
});
|
|
23
|
+
__export(index_exports, { createMunroFont: () => createMunroFont });
|
|
27
24
|
module.exports = __toCommonJS(index_exports);
|
|
28
25
|
var import_core = require("@tamagui/core");
|
|
29
26
|
const createMunroFont = (font = {}) => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
...font
|
|
38
|
-
});
|
|
27
|
+
return (0, import_core.createFont)({
|
|
28
|
+
family: import_core.isWeb ? "Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace" : "Munro",
|
|
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: "400" },
|
|
32
|
+
...font
|
|
33
|
+
});
|
|
39
34
|
};
|
|
40
35
|
const size = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
36
|
+
1: 11,
|
|
37
|
+
2: 12,
|
|
38
|
+
3: 13,
|
|
39
|
+
4: 14,
|
|
40
|
+
5: 15,
|
|
41
|
+
6: 16,
|
|
42
|
+
7: 18,
|
|
43
|
+
8: 21,
|
|
44
|
+
9: 28,
|
|
45
|
+
10: 42,
|
|
46
|
+
11: 52,
|
|
47
|
+
12: 62,
|
|
48
|
+
13: 72,
|
|
49
|
+
14: 92,
|
|
50
|
+
15: 114,
|
|
51
|
+
16: 124
|
|
52
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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, { createMunroFont: () => createMunroFont });
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
var import_core = require("@tamagui/core");
|
|
28
|
+
var createMunroFont = function() {
|
|
29
|
+
var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30
|
+
return (0, import_core.createFont)({
|
|
31
|
+
family: import_core.isWeb ? "Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace" : "Munro",
|
|
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: "400" },
|
|
38
|
+
...font
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
var size = {
|
|
42
|
+
1: 11,
|
|
43
|
+
2: 12,
|
|
44
|
+
3: 13,
|
|
45
|
+
4: 14,
|
|
46
|
+
5: 15,
|
|
47
|
+
6: 16,
|
|
48
|
+
7: 18,
|
|
49
|
+
8: 21,
|
|
50
|
+
9: 28,
|
|
51
|
+
10: 42,
|
|
52
|
+
11: 52,
|
|
53
|
+
12: 62,
|
|
54
|
+
13: 72,
|
|
55
|
+
14: 92,
|
|
56
|
+
15: 114,
|
|
57
|
+
16: 124
|
|
58
|
+
};
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,64 +1,60 @@
|
|
|
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
|
-
createMunroFont: () => createMunroFont
|
|
28
|
-
});
|
|
25
|
+
__export(index_exports, { createMunroFont: () => createMunroFont });
|
|
29
26
|
module.exports = __toCommonJS(index_exports);
|
|
30
27
|
var import_core = require("@tamagui/core");
|
|
31
|
-
var createMunroFont = function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
...font
|
|
44
|
-
});
|
|
28
|
+
var createMunroFont = function() {
|
|
29
|
+
var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30
|
+
return (0, import_core.createFont)({
|
|
31
|
+
family: import_core.isWeb ? "Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace" : "Munro",
|
|
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: "400" },
|
|
38
|
+
...font
|
|
39
|
+
});
|
|
45
40
|
};
|
|
46
41
|
var size = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
42
|
+
1: 11,
|
|
43
|
+
2: 12,
|
|
44
|
+
3: 13,
|
|
45
|
+
4: 14,
|
|
46
|
+
5: 15,
|
|
47
|
+
6: 16,
|
|
48
|
+
7: 18,
|
|
49
|
+
8: 21,
|
|
50
|
+
9: 28,
|
|
51
|
+
10: 42,
|
|
52
|
+
11: 52,
|
|
53
|
+
12: 62,
|
|
54
|
+
13: 72,
|
|
55
|
+
14: 92,
|
|
56
|
+
15: 114,
|
|
57
|
+
16: 124
|
|
63
58
|
};
|
|
59
|
+
|
|
64
60
|
//# 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 createMunroFont: () => createMunroFont\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_core = require(\"@tamagui/core\");\nvar createMunroFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return (0, import_core.createFont)({\n family: import_core.isWeb ? 'Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace' : \"Munro\",\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: \"400\"\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,uBAAuB,gBACzB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,kBAAkB,WAAW;CAC/B,IAAI,OAAO,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAC7E,QAAQ,GAAG,YAAY,YAAY;EACjC,QAAQ,YAAY,QAAQ,uFAAmF;EAC/G;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,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,32 +1,32 @@
|
|
|
1
1
|
import { createFont, isWeb } from "@tamagui/core";
|
|
2
|
+
|
|
2
3
|
const createMunroFont = (font = {}) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
...font
|
|
11
|
-
});
|
|
4
|
+
return createFont({
|
|
5
|
+
family: isWeb ? "Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace" : "Munro",
|
|
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: "400" },
|
|
9
|
+
...font
|
|
10
|
+
});
|
|
12
11
|
};
|
|
13
12
|
const size = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
1: 11,
|
|
14
|
+
2: 12,
|
|
15
|
+
3: 13,
|
|
16
|
+
4: 14,
|
|
17
|
+
5: 15,
|
|
18
|
+
6: 16,
|
|
19
|
+
7: 18,
|
|
20
|
+
8: 21,
|
|
21
|
+
9: 28,
|
|
22
|
+
10: 42,
|
|
23
|
+
11: 52,
|
|
24
|
+
12: 62,
|
|
25
|
+
13: 72,
|
|
26
|
+
14: 92,
|
|
27
|
+
15: 114,
|
|
28
|
+
16: 124
|
|
30
29
|
};
|
|
30
|
+
|
|
31
31
|
export { createMunroFont };
|
|
32
32
|
//# 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 createMunroFont = (font = {}) => {\n return createFont({\n family: isWeb ? 'Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace' : \"Munro\",\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: \"400\"\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 createMunroFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,mBAAmB,OAAO,CAAC,MAAM;CACrC,OAAO,WAAW;EAChB,QAAQ,QAAQ,uFAAmF;EACnG;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,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,32 +1,32 @@
|
|
|
1
1
|
import { createFont, isWeb } from "@tamagui/core";
|
|
2
|
+
|
|
2
3
|
const createMunroFont = (font = {}) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
...font
|
|
11
|
-
});
|
|
4
|
+
return createFont({
|
|
5
|
+
family: isWeb ? "Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace" : "Munro",
|
|
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: "400" },
|
|
9
|
+
...font
|
|
10
|
+
});
|
|
12
11
|
};
|
|
13
12
|
const size = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
1: 11,
|
|
14
|
+
2: 12,
|
|
15
|
+
3: 13,
|
|
16
|
+
4: 14,
|
|
17
|
+
5: 15,
|
|
18
|
+
6: 16,
|
|
19
|
+
7: 18,
|
|
20
|
+
8: 21,
|
|
21
|
+
9: 28,
|
|
22
|
+
10: 42,
|
|
23
|
+
11: 52,
|
|
24
|
+
12: 62,
|
|
25
|
+
13: 72,
|
|
26
|
+
14: 92,
|
|
27
|
+
15: 114,
|
|
28
|
+
16: 124
|
|
30
29
|
};
|
|
30
|
+
|
|
31
31
|
export { createMunroFont };
|
|
32
32
|
//# 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 createMunroFont = (font = {}) => {\n return createFont({\n family: isWeb ? 'Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace' : \"Munro\",\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: \"400\"\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 createMunroFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,mBAAmB,OAAO,CAAC,MAAM;CACrC,OAAO,WAAW;EAChB,QAAQ,QAAQ,uFAAmF;EACnG;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,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,36 +1,36 @@
|
|
|
1
1
|
import { createFont, isWeb } from "@tamagui/core";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
2
|
+
|
|
3
|
+
var createMunroFont = function() {
|
|
4
|
+
var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5
|
+
return createFont({
|
|
6
|
+
family: isWeb ? "Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace" : "Munro",
|
|
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: "400" },
|
|
13
|
+
...font
|
|
14
|
+
});
|
|
16
15
|
};
|
|
17
16
|
var size = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
1: 11,
|
|
18
|
+
2: 12,
|
|
19
|
+
3: 13,
|
|
20
|
+
4: 14,
|
|
21
|
+
5: 15,
|
|
22
|
+
6: 16,
|
|
23
|
+
7: 18,
|
|
24
|
+
8: 21,
|
|
25
|
+
9: 28,
|
|
26
|
+
10: 42,
|
|
27
|
+
11: 52,
|
|
28
|
+
12: 62,
|
|
29
|
+
13: 72,
|
|
30
|
+
14: 92,
|
|
31
|
+
15: 114,
|
|
32
|
+
16: 124
|
|
34
33
|
};
|
|
34
|
+
|
|
35
35
|
export { createMunroFont };
|
|
36
36
|
//# 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 createMunroFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return createFont({\n family: isWeb ? 'Munro, Munro-fallback, \"Fira Code\", Monaco, Consolas, \"Ubuntu Mono\", monospace' : \"Munro\",\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: \"400\"\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 createMunroFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,kBAAkB,WAAW;CAC/B,IAAI,OAAO,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAC7E,OAAO,WAAW;EAChB,QAAQ,QAAQ,uFAAmF;EACnG;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,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-munro",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.643.1",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"files": [
|
|
6
6
|
"types",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"clean:build": "tamagui-build clean:build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@tamagui/core": "
|
|
40
|
+
"@tamagui/core": "3.0.0-beta.643.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tamagui/build": "
|
|
43
|
+
"@tamagui/build": "3.0.0-beta.643.1"
|
|
44
44
|
},
|
|
45
45
|
"skipPublishIfUnchanged": false,
|
|
46
46
|
"repository": {
|