@tamagui/font-munro 1.114.4 → 1.115.0

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.
@@ -0,0 +1,53 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ createMunroFont: () => createMunroFont
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+ var import_core = require("@tamagui/core");
27
+ const createMunroFont = (font = {}) => (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: {
32
+ 4: "400"
33
+ },
34
+ ...font
35
+ }),
36
+ size = {
37
+ 1: 11,
38
+ 2: 12,
39
+ 3: 13,
40
+ 4: 14,
41
+ 5: 15,
42
+ 6: 16,
43
+ 7: 18,
44
+ 8: 21,
45
+ 9: 28,
46
+ 10: 42,
47
+ 11: 52,
48
+ 12: 62,
49
+ 13: 72,
50
+ 14: 92,
51
+ 15: 114,
52
+ 16: 124
53
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/font-munro",
3
- "version": "1.114.4",
3
+ "version": "1.115.0",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -20,10 +20,10 @@
20
20
  "clean:build": "tamagui-build clean:build"
21
21
  },
22
22
  "dependencies": {
23
- "@tamagui/core": "1.114.4"
23
+ "@tamagui/core": "1.115.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@tamagui/build": "1.114.4"
26
+ "@tamagui/build": "1.115.0"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
package/dist/cjs/index.js DELETED
@@ -1,52 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var src_exports = {};
16
- __export(src_exports, {
17
- createMunroFont: () => createMunroFont
18
- });
19
- module.exports = __toCommonJS(src_exports);
20
- var import_core = require("@tamagui/core");
21
- const createMunroFont = (font = {}) => (0, import_core.createFont)({
22
- family: import_core.isWeb ? 'Munro, Munro-fallback, "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace' : "Munro",
23
- size,
24
- lineHeight: Object.fromEntries(
25
- Object.entries(font.size || size).map(([k, v]) => [
26
- k,
27
- typeof v == "number" ? Math.round(v * 1.2 + 6) : v
28
- ])
29
- ),
30
- weight: {
31
- 4: "400"
32
- },
33
- ...font
34
- }), size = {
35
- 1: 11,
36
- 2: 12,
37
- 3: 13,
38
- 4: 14,
39
- 5: 15,
40
- 6: 16,
41
- 7: 18,
42
- 8: 21,
43
- 9: 28,
44
- 10: 42,
45
- 11: 52,
46
- 12: 62,
47
- 13: 72,
48
- 14: 92,
49
- 15: 114,
50
- 16: 124
51
- };
52
- //# sourceMappingURL=index.js.map
File without changes