@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.
@@ -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
- 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
- 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
- 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(([k, v]) => [k, typeof v === "number" ? Math.round(v * 1.2 + 6) : v])),
34
- weight: {
35
- 4: "400"
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
- 1: 11,
42
- 2: 12,
43
- 3: 13,
44
- 4: 14,
45
- 5: 15,
46
- 6: 16,
47
- 7: 18,
48
- 8: 21,
49
- 9: 28,
50
- 10: 42,
51
- 11: 52,
52
- 12: 62,
53
- 13: 72,
54
- 14: 92,
55
- 15: 114,
56
- 16: 124
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
+ };
@@ -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
- 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
- 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
- var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
33
- return (0, import_core.createFont)({
34
- family: import_core.isWeb ? 'Munro, Munro-fallback, "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace' : "Munro",
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: "400"
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
- 1: 11,
48
- 2: 12,
49
- 3: 13,
50
- 4: 14,
51
- 5: 15,
52
- 6: 16,
53
- 7: 18,
54
- 8: 21,
55
- 9: 28,
56
- 10: 42,
57
- 11: 52,
58
- 12: 62,
59
- 13: 72,
60
- 14: 92,
61
- 15: 114,
62
- 16: 124
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,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","createMunroFont","module","exports","import_core","require","font","arguments","length","createFont","family","isWeb","size","lineHeight","Object","fromEntries","entries","map","param","k","v","Math","round","weight"],"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,eAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,aAAA;AAE3B,IAAAK,WAAM,GAAAC,OAA0C,gBAA6B;AAClF,IAAAJ,eAAO,YAAAA,CAAA;EAAW,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,MAAI;MACL;IACH;IAEA,GAAMjB;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 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
- return createFont({
4
- family: isWeb ? 'Munro, Munro-fallback, "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace' : "Munro",
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: "400"
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
- 1: 11,
15
- 2: 12,
16
- 3: 13,
17
- 4: 14,
18
- 5: 15,
19
- 6: 16,
20
- 7: 18,
21
- 8: 21,
22
- 9: 28,
23
- 10: 42,
24
- 11: 52,
25
- 12: 62,
26
- 13: 72,
27
- 14: 92,
28
- 15: 114,
29
- 16: 124
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
@@ -1 +1 @@
1
- {"version":3,"names":["createFont","isWeb","createMunroFont","font","family","size","lineHeight","Object","fromEntries","entries","map","k","v","Math","round","weight"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,UAAA,EAAYC,KAAA,QAAa;AAE3B,MAAMC,eAAA,GAAkBA,CAAwBC,IAAA,GAAmB,CAAC,MAAS;EAClF,OAAOH,UAAA,CAAW;IAChBI,MAAA,EAAQH,KAAA,GACJ,mFACA;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;IACA,GAAIZ;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 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"}
@@ -1,32 +1,32 @@
1
1
  import { createFont, isWeb } from "@tamagui/core";
2
+
2
3
  const createMunroFont = (font = {}) => {
3
- return createFont({
4
- family: isWeb ? 'Munro, Munro-fallback, "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace' : "Munro",
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: "400"
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
- 1: 11,
15
- 2: 12,
16
- 3: 13,
17
- 4: 14,
18
- 5: 15,
19
- 6: 16,
20
- 7: 18,
21
- 8: 21,
22
- 9: 28,
23
- 10: 42,
24
- 11: 52,
25
- 12: 62,
26
- 13: 72,
27
- 14: 92,
28
- 15: 114,
29
- 16: 124
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
@@ -1 +1 @@
1
- {"version":3,"names":["createFont","isWeb","createMunroFont","font","family","size","lineHeight","Object","fromEntries","entries","map","k","v","Math","round","weight"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,UAAA,EAAYC,KAAA,QAAa;AAE3B,MAAMC,eAAA,GAAkBA,CAAwBC,IAAA,GAAmB,CAAC,MAAS;EAClF,OAAOH,UAAA,CAAW;IAChBI,MAAA,EAAQH,KAAA,GACJ,mFACA;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;IACA,GAAIZ;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 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"}
@@ -1,36 +1,36 @@
1
1
  import { createFont, isWeb } from "@tamagui/core";
2
- var createMunroFont = function () {
3
- var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
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(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: "400"
13
- },
14
- ...font
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
- 1: 11,
19
- 2: 12,
20
- 3: 13,
21
- 4: 14,
22
- 5: 15,
23
- 6: 16,
24
- 7: 18,
25
- 8: 21,
26
- 9: 28,
27
- 10: 42,
28
- 11: 52,
29
- 12: 62,
30
- 13: 72,
31
- 14: 92,
32
- 15: 114,
33
- 16: 124
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,"names":["createFont","isWeb","createMunroFont","font","arguments","length","family","size","lineHeight","Object","fromEntries","entries","map","param","k","v","Math","round","weight"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,UAAA,EAAYC,KAAA,QAAa;AAE3B,IAAAC,eAAM,YAAAA,CAAA,EAA8D;EACzE,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,CAAI;IACL;IACH,GAAAf;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 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": "2.7.7",
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": "2.7.7"
40
+ "@tamagui/core": "3.0.0-beta.643.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "2.7.7"
43
+ "@tamagui/build": "3.0.0-beta.643.1"
44
44
  },
45
45
  "skipPublishIfUnchanged": false,
46
46
  "repository": {