@tamagui/font-dm-serif-display 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 +44 -55
- package/dist/cjs/index.native.cjs +71 -0
- package/dist/cjs/index.native.js +55 -66
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +31 -37
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +31 -37
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +42 -49
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +3 -3
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,69 +1,58 @@
|
|
|
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
|
-
createDmSerifDisplayFont: () => createDmSerifDisplayFont
|
|
26
|
-
});
|
|
23
|
+
__export(index_exports, { createDmSerifDisplayFont: () => createDmSerifDisplayFont });
|
|
27
24
|
module.exports = __toCommonJS(index_exports);
|
|
28
25
|
var import_core = require("@tamagui/core");
|
|
29
26
|
const LINE_HEIGHT = 1.2;
|
|
30
|
-
const createDmSerifDisplayFont = (font = {}, {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
letterSpacing: {
|
|
45
|
-
4: 0
|
|
46
|
-
},
|
|
47
|
-
...font,
|
|
48
|
-
size
|
|
49
|
-
});
|
|
27
|
+
const createDmSerifDisplayFont = (font = {}, { sizeLineHeight = (size) => size, sizeSize = (size) => size } = {}) => {
|
|
28
|
+
const size = Object.fromEntries(Object.entries({
|
|
29
|
+
...defaultSizes,
|
|
30
|
+
...font.size
|
|
31
|
+
}).map(([k, v]) => [k, sizeSize(+v)]));
|
|
32
|
+
return (0, import_core.createFont)({
|
|
33
|
+
family: import_core.isWeb ? "\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "DM Serif Display",
|
|
34
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, sizeLineHeight((0, import_core.getVariableValue)(v) * LINE_HEIGHT)])),
|
|
35
|
+
weight: { 4: "300" },
|
|
36
|
+
letterSpacing: { 4: 0 },
|
|
37
|
+
...font,
|
|
38
|
+
size
|
|
39
|
+
});
|
|
50
40
|
};
|
|
51
41
|
const defaultSizes = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
};
|
|
42
|
+
1: 11,
|
|
43
|
+
2: 12,
|
|
44
|
+
3: 13,
|
|
45
|
+
4: 14,
|
|
46
|
+
5: 18,
|
|
47
|
+
6: 22,
|
|
48
|
+
7: 26,
|
|
49
|
+
8: 30,
|
|
50
|
+
9: 38,
|
|
51
|
+
10: 46,
|
|
52
|
+
11: 55,
|
|
53
|
+
12: 62,
|
|
54
|
+
13: 72,
|
|
55
|
+
14: 92,
|
|
56
|
+
15: 114,
|
|
57
|
+
16: 134
|
|
58
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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, { createDmSerifDisplayFont: () => createDmSerifDisplayFont });
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
var import_core = require("@tamagui/core");
|
|
28
|
+
var LINE_HEIGHT = 1.2;
|
|
29
|
+
var createDmSerifDisplayFont = function() {
|
|
30
|
+
var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {
|
|
31
|
+
return size2;
|
|
32
|
+
}, sizeSize = function(size2) {
|
|
33
|
+
return size2;
|
|
34
|
+
} } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
35
|
+
var size = Object.fromEntries(Object.entries({
|
|
36
|
+
...defaultSizes,
|
|
37
|
+
...font.size
|
|
38
|
+
}).map(function(param) {
|
|
39
|
+
var [k, v] = param;
|
|
40
|
+
return [k, sizeSize(+v)];
|
|
41
|
+
}));
|
|
42
|
+
return (0, import_core.createFont)({
|
|
43
|
+
family: import_core.isWeb ? "\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "DM Serif Display",
|
|
44
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(function(param) {
|
|
45
|
+
var [k, v] = param;
|
|
46
|
+
return [k, sizeLineHeight((0, import_core.getVariableValue)(v) * LINE_HEIGHT)];
|
|
47
|
+
})),
|
|
48
|
+
weight: { 4: "300" },
|
|
49
|
+
letterSpacing: { 4: 0 },
|
|
50
|
+
...font,
|
|
51
|
+
size
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
var defaultSizes = {
|
|
55
|
+
1: 11,
|
|
56
|
+
2: 12,
|
|
57
|
+
3: 13,
|
|
58
|
+
4: 14,
|
|
59
|
+
5: 18,
|
|
60
|
+
6: 22,
|
|
61
|
+
7: 26,
|
|
62
|
+
8: 30,
|
|
63
|
+
9: 38,
|
|
64
|
+
10: 46,
|
|
65
|
+
11: 55,
|
|
66
|
+
12: 62,
|
|
67
|
+
13: 72,
|
|
68
|
+
14: 92,
|
|
69
|
+
15: 114,
|
|
70
|
+
16: 134
|
|
71
|
+
};
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,84 +1,73 @@
|
|
|
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
|
-
createDmSerifDisplayFont: () => createDmSerifDisplayFont
|
|
28
|
-
});
|
|
25
|
+
__export(index_exports, { createDmSerifDisplayFont: () => createDmSerifDisplayFont });
|
|
29
26
|
module.exports = __toCommonJS(index_exports);
|
|
30
27
|
var import_core = require("@tamagui/core");
|
|
31
28
|
var LINE_HEIGHT = 1.2;
|
|
32
|
-
var createDmSerifDisplayFont = function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
4: "300"
|
|
57
|
-
},
|
|
58
|
-
letterSpacing: {
|
|
59
|
-
4: 0
|
|
60
|
-
},
|
|
61
|
-
...font,
|
|
62
|
-
size
|
|
63
|
-
});
|
|
29
|
+
var createDmSerifDisplayFont = function() {
|
|
30
|
+
var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {
|
|
31
|
+
return size2;
|
|
32
|
+
}, sizeSize = function(size2) {
|
|
33
|
+
return size2;
|
|
34
|
+
} } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
35
|
+
var size = Object.fromEntries(Object.entries({
|
|
36
|
+
...defaultSizes,
|
|
37
|
+
...font.size
|
|
38
|
+
}).map(function(param) {
|
|
39
|
+
var [k, v] = param;
|
|
40
|
+
return [k, sizeSize(+v)];
|
|
41
|
+
}));
|
|
42
|
+
return (0, import_core.createFont)({
|
|
43
|
+
family: import_core.isWeb ? "\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "DM Serif Display",
|
|
44
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(function(param) {
|
|
45
|
+
var [k, v] = param;
|
|
46
|
+
return [k, sizeLineHeight((0, import_core.getVariableValue)(v) * LINE_HEIGHT)];
|
|
47
|
+
})),
|
|
48
|
+
weight: { 4: "300" },
|
|
49
|
+
letterSpacing: { 4: 0 },
|
|
50
|
+
...font,
|
|
51
|
+
size
|
|
52
|
+
});
|
|
64
53
|
};
|
|
65
54
|
var defaultSizes = {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
16: 134
|
|
55
|
+
1: 11,
|
|
56
|
+
2: 12,
|
|
57
|
+
3: 13,
|
|
58
|
+
4: 14,
|
|
59
|
+
5: 18,
|
|
60
|
+
6: 22,
|
|
61
|
+
7: 26,
|
|
62
|
+
8: 30,
|
|
63
|
+
9: 38,
|
|
64
|
+
10: 46,
|
|
65
|
+
11: 55,
|
|
66
|
+
12: 62,
|
|
67
|
+
13: 72,
|
|
68
|
+
14: 92,
|
|
69
|
+
15: 114,
|
|
70
|
+
16: 134
|
|
83
71
|
};
|
|
72
|
+
|
|
84
73
|
//# 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 createDmSerifDisplayFont: () => createDmSerifDisplayFont\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_core = require(\"@tamagui/core\");\nvar LINE_HEIGHT = 1.2;\nvar createDmSerifDisplayFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {\n return size2;\n }, sizeSize = function(size2) {\n return size2;\n } } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var size = Object.fromEntries(Object.entries({\n ...defaultSizes,\n ...font.size\n }).map(function(param) {\n var [k, v] = param;\n return [\n k,\n sizeSize(+v)\n ];\n }));\n return (0, import_core.createFont)({\n family: import_core.isWeb ? '\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"DM Serif Display\",\n lineHeight: Object.fromEntries(Object.entries(size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n sizeLineHeight((0, import_core.getVariableValue)(v) * LINE_HEIGHT)\n ];\n })),\n weight: {\n 4: \"300\"\n },\n letterSpacing: {\n 4: 0\n },\n ...font,\n size\n });\n};\nvar defaultSizes = {\n 1: 11,\n 2: 12,\n 3: 13,\n 4: 14,\n 5: 18,\n 6: 22,\n 7: 26,\n 8: 30,\n 9: 38,\n 10: 46,\n 11: 55,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 134\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,gCAAgC,yBAClC,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,cAAc;AAClB,IAAI,2BAA2B,WAAW;CACxC,IAAI,OAAO,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC,GAAG,EAAE,iBAAiB,SAAS,OAAO;EACjH,OAAO;CACT,GAAG,WAAW,SAAS,OAAO;EAC5B,OAAO;CACT,MAAM,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CACxE,IAAI,OAAO,OAAO,YAAY,OAAO,QAAQ;EAC3C,GAAG;EACH,GAAG,KAAK;CACV,CAAC,EAAE,IAAI,SAAS,OAAO;EACrB,IAAI,CAAC,GAAG,KAAK;EACb,OAAO,CACL,GACA,SAAS,CAAC,CAAC,CACb;CACF,CAAC,CAAC;CACF,QAAQ,GAAG,YAAY,YAAY;EACjC,QAAQ,YAAY,QAAQ,2HAAuH;EACnJ,YAAY,OAAO,YAAY,OAAO,QAAQ,IAAI,EAAE,IAAI,SAAS,OAAO;GACtE,IAAI,CAAC,GAAG,KAAK;GACb,OAAO,CACL,GACA,gBAAgB,GAAG,YAAY,kBAAkB,CAAC,IAAI,WAAW,CACnE;EACF,CAAC,CAAC;EACF,QAAQ,EACN,GAAG,MACL;EACA,eAAe,EACb,GAAG,EACL;EACA,GAAG;EACH;CACF,CAAC;AACH;AACA,IAAI,eAAe;CACjB,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,44 +1,38 @@
|
|
|
1
1
|
import { createFont, getVariableValue, isWeb } from "@tamagui/core";
|
|
2
|
+
|
|
2
3
|
const LINE_HEIGHT = 1.2;
|
|
3
|
-
const createDmSerifDisplayFont = (font = {}, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
letterSpacing: {
|
|
18
|
-
4: 0
|
|
19
|
-
},
|
|
20
|
-
...font,
|
|
21
|
-
size
|
|
22
|
-
});
|
|
4
|
+
const createDmSerifDisplayFont = (font = {}, { sizeLineHeight = (size) => size, sizeSize = (size) => size } = {}) => {
|
|
5
|
+
const size = Object.fromEntries(Object.entries({
|
|
6
|
+
...defaultSizes,
|
|
7
|
+
...font.size
|
|
8
|
+
}).map(([k, v]) => [k, sizeSize(+v)]));
|
|
9
|
+
return createFont({
|
|
10
|
+
family: isWeb ? "\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "DM Serif Display",
|
|
11
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v) * LINE_HEIGHT)])),
|
|
12
|
+
weight: { 4: "300" },
|
|
13
|
+
letterSpacing: { 4: 0 },
|
|
14
|
+
...font,
|
|
15
|
+
size
|
|
16
|
+
});
|
|
23
17
|
};
|
|
24
18
|
const defaultSizes = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
16: 134
|
|
19
|
+
1: 11,
|
|
20
|
+
2: 12,
|
|
21
|
+
3: 13,
|
|
22
|
+
4: 14,
|
|
23
|
+
5: 18,
|
|
24
|
+
6: 22,
|
|
25
|
+
7: 26,
|
|
26
|
+
8: 30,
|
|
27
|
+
9: 38,
|
|
28
|
+
10: 46,
|
|
29
|
+
11: 55,
|
|
30
|
+
12: 62,
|
|
31
|
+
13: 72,
|
|
32
|
+
14: 92,
|
|
33
|
+
15: 114,
|
|
34
|
+
16: 134
|
|
42
35
|
};
|
|
36
|
+
|
|
43
37
|
export { createDmSerifDisplayFont };
|
|
44
38
|
//# 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, getVariableValue, isWeb } from \"@tamagui/core\";\nconst LINE_HEIGHT = 1.2;\nconst createDmSerifDisplayFont = (font = {}, {\n sizeLineHeight = (size) => size,\n sizeSize = (size) => size\n} = {}) => {\n const size = Object.fromEntries(\n Object.entries({\n ...defaultSizes,\n ...font.size\n }).map(([k, v]) => [k, sizeSize(+v)])\n );\n return createFont({\n family: isWeb ? '\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"DM Serif Display\",\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [\n k,\n sizeLineHeight(getVariableValue(v) * LINE_HEIGHT)\n ])\n ),\n weight: {\n 4: \"300\"\n },\n letterSpacing: {\n 4: 0\n },\n ...font,\n size\n });\n};\nconst defaultSizes = {\n 1: 11,\n 2: 12,\n 3: 13,\n 4: 14,\n 5: 18,\n 6: 22,\n 7: 26,\n 8: 30,\n 9: 38,\n 10: 46,\n 11: 55,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 134\n};\nexport {\n createDmSerifDisplayFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,cAAc;AACpB,MAAM,4BAA4B,OAAO,CAAC,GAAG,EAC3C,kBAAkB,SAAS,MAC3B,YAAY,SAAS,SACnB,CAAC,MAAM;CACT,MAAM,OAAO,OAAO,YAClB,OAAO,QAAQ;EACb,GAAG;EACH,GAAG,KAAK;CACV,CAAC,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CACtC;CACA,OAAO,WAAW;EAChB,QAAQ,QAAQ,2HAAuH;EACvI,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,KAAK,CAAC,GAAG,OAAO,CACnC,GACA,eAAe,iBAAiB,CAAC,IAAI,WAAW,CAClD,CAAC,CACH;EACA,QAAQ,EACN,GAAG,MACL;EACA,eAAe,EACb,GAAG,EACL;EACA,GAAG;EACH;CACF,CAAC;AACH;AACA,MAAM,eAAe;CACnB,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,44 +1,38 @@
|
|
|
1
1
|
import { createFont, getVariableValue, isWeb } from "@tamagui/core";
|
|
2
|
+
|
|
2
3
|
const LINE_HEIGHT = 1.2;
|
|
3
|
-
const createDmSerifDisplayFont = (font = {}, {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
letterSpacing: {
|
|
18
|
-
4: 0
|
|
19
|
-
},
|
|
20
|
-
...font,
|
|
21
|
-
size
|
|
22
|
-
});
|
|
4
|
+
const createDmSerifDisplayFont = (font = {}, { sizeLineHeight = (size) => size, sizeSize = (size) => size } = {}) => {
|
|
5
|
+
const size = Object.fromEntries(Object.entries({
|
|
6
|
+
...defaultSizes,
|
|
7
|
+
...font.size
|
|
8
|
+
}).map(([k, v]) => [k, sizeSize(+v)]));
|
|
9
|
+
return createFont({
|
|
10
|
+
family: isWeb ? "\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "DM Serif Display",
|
|
11
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v) * LINE_HEIGHT)])),
|
|
12
|
+
weight: { 4: "300" },
|
|
13
|
+
letterSpacing: { 4: 0 },
|
|
14
|
+
...font,
|
|
15
|
+
size
|
|
16
|
+
});
|
|
23
17
|
};
|
|
24
18
|
const defaultSizes = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
16: 134
|
|
19
|
+
1: 11,
|
|
20
|
+
2: 12,
|
|
21
|
+
3: 13,
|
|
22
|
+
4: 14,
|
|
23
|
+
5: 18,
|
|
24
|
+
6: 22,
|
|
25
|
+
7: 26,
|
|
26
|
+
8: 30,
|
|
27
|
+
9: 38,
|
|
28
|
+
10: 46,
|
|
29
|
+
11: 55,
|
|
30
|
+
12: 62,
|
|
31
|
+
13: 72,
|
|
32
|
+
14: 92,
|
|
33
|
+
15: 114,
|
|
34
|
+
16: 134
|
|
42
35
|
};
|
|
36
|
+
|
|
43
37
|
export { createDmSerifDisplayFont };
|
|
44
38
|
//# 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, getVariableValue, isWeb } from \"@tamagui/core\";\nconst LINE_HEIGHT = 1.2;\nconst createDmSerifDisplayFont = (font = {}, {\n sizeLineHeight = (size) => size,\n sizeSize = (size) => size\n} = {}) => {\n const size = Object.fromEntries(\n Object.entries({\n ...defaultSizes,\n ...font.size\n }).map(([k, v]) => [k, sizeSize(+v)])\n );\n return createFont({\n family: isWeb ? '\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"DM Serif Display\",\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [\n k,\n sizeLineHeight(getVariableValue(v) * LINE_HEIGHT)\n ])\n ),\n weight: {\n 4: \"300\"\n },\n letterSpacing: {\n 4: 0\n },\n ...font,\n size\n });\n};\nconst defaultSizes = {\n 1: 11,\n 2: 12,\n 3: 13,\n 4: 14,\n 5: 18,\n 6: 22,\n 7: 26,\n 8: 30,\n 9: 38,\n 10: 46,\n 11: 55,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 134\n};\nexport {\n createDmSerifDisplayFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,cAAc;AACpB,MAAM,4BAA4B,OAAO,CAAC,GAAG,EAC3C,kBAAkB,SAAS,MAC3B,YAAY,SAAS,SACnB,CAAC,MAAM;CACT,MAAM,OAAO,OAAO,YAClB,OAAO,QAAQ;EACb,GAAG;EACH,GAAG,KAAK;CACV,CAAC,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CACtC;CACA,OAAO,WAAW;EAChB,QAAQ,QAAQ,2HAAuH;EACvI,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,KAAK,CAAC,GAAG,OAAO,CACnC,GACA,eAAe,iBAAiB,CAAC,IAAI,WAAW,CAClD,CAAC,CACH;EACA,QAAQ,EACN,GAAG,MACL;EACA,eAAe,EACb,GAAG,EACL;EACA,GAAG;EACH;CACF,CAAC;AACH;AACA,MAAM,eAAe;CACnB,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,56 +1,49 @@
|
|
|
1
1
|
import { createFont, getVariableValue, isWeb } from "@tamagui/core";
|
|
2
|
+
|
|
2
3
|
var LINE_HEIGHT = 1.2;
|
|
3
|
-
var createDmSerifDisplayFont = function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
4: "300"
|
|
28
|
-
},
|
|
29
|
-
letterSpacing: {
|
|
30
|
-
4: 0
|
|
31
|
-
},
|
|
32
|
-
...font,
|
|
33
|
-
size
|
|
34
|
-
});
|
|
4
|
+
var createDmSerifDisplayFont = function() {
|
|
5
|
+
var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {
|
|
6
|
+
return size2;
|
|
7
|
+
}, sizeSize = function(size2) {
|
|
8
|
+
return size2;
|
|
9
|
+
} } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
10
|
+
var size = Object.fromEntries(Object.entries({
|
|
11
|
+
...defaultSizes,
|
|
12
|
+
...font.size
|
|
13
|
+
}).map(function(param) {
|
|
14
|
+
var [k, v] = param;
|
|
15
|
+
return [k, sizeSize(+v)];
|
|
16
|
+
}));
|
|
17
|
+
return createFont({
|
|
18
|
+
family: isWeb ? "\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "DM Serif Display",
|
|
19
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(function(param) {
|
|
20
|
+
var [k, v] = param;
|
|
21
|
+
return [k, sizeLineHeight(getVariableValue(v) * LINE_HEIGHT)];
|
|
22
|
+
})),
|
|
23
|
+
weight: { 4: "300" },
|
|
24
|
+
letterSpacing: { 4: 0 },
|
|
25
|
+
...font,
|
|
26
|
+
size
|
|
27
|
+
});
|
|
35
28
|
};
|
|
36
29
|
var defaultSizes = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
16: 134
|
|
30
|
+
1: 11,
|
|
31
|
+
2: 12,
|
|
32
|
+
3: 13,
|
|
33
|
+
4: 14,
|
|
34
|
+
5: 18,
|
|
35
|
+
6: 22,
|
|
36
|
+
7: 26,
|
|
37
|
+
8: 30,
|
|
38
|
+
9: 38,
|
|
39
|
+
10: 46,
|
|
40
|
+
11: 55,
|
|
41
|
+
12: 62,
|
|
42
|
+
13: 72,
|
|
43
|
+
14: 92,
|
|
44
|
+
15: 114,
|
|
45
|
+
16: 134
|
|
54
46
|
};
|
|
47
|
+
|
|
55
48
|
export { createDmSerifDisplayFont };
|
|
56
49
|
//# 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, getVariableValue, isWeb } from \"@tamagui/core\";\nvar LINE_HEIGHT = 1.2;\nvar createDmSerifDisplayFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {\n return size2;\n }, sizeSize = function(size2) {\n return size2;\n } } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var size = Object.fromEntries(Object.entries({\n ...defaultSizes,\n ...font.size\n }).map(function(param) {\n var [k, v] = param;\n return [\n k,\n sizeSize(+v)\n ];\n }));\n return createFont({\n family: isWeb ? '\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"DM Serif Display\",\n lineHeight: Object.fromEntries(Object.entries(size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n sizeLineHeight(getVariableValue(v) * LINE_HEIGHT)\n ];\n })),\n weight: {\n 4: \"300\"\n },\n letterSpacing: {\n 4: 0\n },\n ...font,\n size\n });\n};\nvar defaultSizes = {\n 1: 11,\n 2: 12,\n 3: 13,\n 4: 14,\n 5: 18,\n 6: 22,\n 7: 26,\n 8: 30,\n 9: 38,\n 10: 46,\n 11: 55,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 134\n};\nexport {\n createDmSerifDisplayFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,cAAc;AAClB,IAAI,2BAA2B,WAAW;CACxC,IAAI,OAAO,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC,GAAG,EAAE,iBAAiB,SAAS,OAAO;EACjH,OAAO;CACT,GAAG,WAAW,SAAS,OAAO;EAC5B,OAAO;CACT,MAAM,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CACxE,IAAI,OAAO,OAAO,YAAY,OAAO,QAAQ;EAC3C,GAAG;EACH,GAAG,KAAK;CACV,CAAC,EAAE,IAAI,SAAS,OAAO;EACrB,IAAI,CAAC,GAAG,KAAK;EACb,OAAO,CACL,GACA,SAAS,CAAC,CAAC,CACb;CACF,CAAC,CAAC;CACF,OAAO,WAAW;EAChB,QAAQ,QAAQ,2HAAuH;EACvI,YAAY,OAAO,YAAY,OAAO,QAAQ,IAAI,EAAE,IAAI,SAAS,OAAO;GACtE,IAAI,CAAC,GAAG,KAAK;GACb,OAAO,CACL,GACA,eAAe,iBAAiB,CAAC,IAAI,WAAW,CAClD;EACF,CAAC,CAAC;EACF,QAAQ,EACN,GAAG,MACL;EACA,eAAe,EACb,GAAG,EACL;EACA,GAAG;EACH;CACF,CAAC;AACH;AACA,IAAI,eAAe;CACjB,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-dm-serif-display",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.643.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"types",
|
|
6
6
|
"dist",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"clean:build": "tamagui-build clean:build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/core": "
|
|
34
|
+
"@tamagui/core": "3.0.0-beta.643.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@tamagui/build": "
|
|
37
|
+
"@tamagui/build": "3.0.0-beta.643.1",
|
|
38
38
|
"subset-font": "^2.1.0"
|
|
39
39
|
},
|
|
40
40
|
"skipPublishIfUnchanged": false,
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAAA,cAAc,YAAY,mBAAmB;AAK7C,OAAO,cAAM,2BAA4B,UAAU,aACjD,OAAM,QAAQ,IACd,EACE,gBACA,aACC;CACD,kBAAkB;CAClB,YAAY;MAEb,WAAW,gBAAgB;AA6B9B,cAAM;UACJ,GAAG;UACH,GAAG;UACH,GAAG;UACH,GAAG;UACH,
|
|
2
|
+
"mappings": "AAAA,cAAc,YAAY,mBAAmB;AAK7C,OAAO,cAAM,2BAA4B,UAAU,aACjD,OAAM,QAAQ,IACd,EACE,gBACA,aACC;CACD,kBAAkB;CAClB,YAAY;MAEb,WAAW,gBAAgB;AA6B9B,cAAM;UACJ,GAAG;UACH,GAAG;UACH,GAAG;UACH,GAAG;UACH,GAAG;UACH,GAAG;UACH,GAAG;UACH,GAAG;UACH,GAAG;UACH,IAAI;UACJ,IAAI;UACJ,IAAI;UACJ,IAAI;UACJ,IAAI;UACJ,IAAI;UACJ,IAAI",
|
|
3
3
|
"names": [],
|
|
4
4
|
"sources": [
|
|
5
5
|
"src/index.ts"
|
|
6
6
|
],
|
|
7
7
|
"version": 3,
|
|
8
8
|
"sourcesContent": [
|
|
9
|
-
"import type { FillInFont, GenericFont } from '@tamagui/core'\nimport { createFont, getVariableValue, isWeb } from '@tamagui/core'\n\nconst LINE_HEIGHT = 1.2\n\nexport const createDmSerifDisplayFont = <A extends GenericFont>(\n font: Partial<A> = {},\n {\n sizeLineHeight = (size) => size,\n sizeSize = (size) => size,\n }: {\n sizeLineHeight?: (fontSize: number) => number\n sizeSize?: (size: number) => number\n } = {}\n): FillInFont<A, keyof typeof defaultSizes> => {\n // merge to allow individual overrides\n const size = Object.fromEntries(\n Object.entries({\n ...defaultSizes,\n ...font.size,\n }).map(([k, v]) => [k, sizeSize(+v)])\n )\n return createFont({\n family: isWeb\n ? '\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif'\n : 'DM Serif Display',\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [\n k,\n sizeLineHeight(getVariableValue(v) * LINE_HEIGHT),\n ])\n ),\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 0,\n },\n ...(font as any),\n size,\n })\n}\n\nconst defaultSizes = {\n 1: 11,\n 2: 12,\n 3: 13,\n 4: 14,\n
|
|
9
|
+
"import type { FillInFont, GenericFont } from '@tamagui/core'\nimport { createFont, getVariableValue, isWeb } from '@tamagui/core'\n\nconst LINE_HEIGHT = 1.2\n\nexport const createDmSerifDisplayFont = <A extends GenericFont>(\n font: Partial<A> = {},\n {\n sizeLineHeight = (size) => size,\n sizeSize = (size) => size,\n }: {\n sizeLineHeight?: (fontSize: number) => number\n sizeSize?: (size: number) => number\n } = {}\n): FillInFont<A, keyof typeof defaultSizes> => {\n // merge to allow individual overrides\n const size = Object.fromEntries(\n Object.entries({\n ...defaultSizes,\n ...font.size,\n }).map(([k, v]) => [k, sizeSize(+v)])\n )\n return createFont({\n family: isWeb\n ? '\"DM Serif Display\", -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif'\n : 'DM Serif Display',\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [\n k,\n sizeLineHeight(getVariableValue(v) * LINE_HEIGHT),\n ])\n ),\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 0,\n },\n ...(font as any),\n size,\n })\n}\n\nconst defaultSizes = {\n 1: 11,\n 2: 12,\n 3: 13,\n 4: 14,\n 5: 18,\n 6: 22,\n 7: 26,\n 8: 30,\n 9: 38,\n 10: 46,\n 11: 55,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 134,\n} as const\n"
|
|
10
10
|
]
|
|
11
11
|
}
|