@tamagui/font-inter 3.0.0-beta.1215.1 → 3.0.0-beta.1309.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 +1 -1
- package/dist/cjs/index.native.cjs +1 -1
- package/dist/cjs/index.native.js +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +1 -1
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +3 -3
- package/types/index.d.ts.map +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -30,7 +30,7 @@ const createInterFont = (font = {}, { sizeLineHeight = (size) => size + 10, size
|
|
|
30
30
|
return (0, import_core.createFont)({
|
|
31
31
|
family: import_core.isWeb ? "Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "Inter",
|
|
32
32
|
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, sizeLineHeight((0, import_core.getVariableValue)(v))])),
|
|
33
|
-
weight: { 4: "
|
|
33
|
+
weight: { 4: "400" },
|
|
34
34
|
letterSpacing: { 4: 0 },
|
|
35
35
|
...font,
|
|
36
36
|
size
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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 createInterFont: () => createInterFont\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_core = require(\"@tamagui/core\");\nvar createInterFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {\n return size2 + 10;\n }, sizeSize = function(size2) {\n return size2 * 1;\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"Inter\",\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))\n ];\n })),\n weight: {\n 4: \"
|
|
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 createInterFont: () => createInterFont\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_core = require(\"@tamagui/core\");\nvar createInterFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {\n return size2 + 10;\n }, sizeSize = function(size2) {\n return size2 * 1;\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"Inter\",\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))\n ];\n })),\n // 400. this used to default to 300, so every app that took the preset\n // rendered its body copy a step lighter than it asked for\n weight: {\n 4: \"400\"\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: 16,\n 6: 18,\n 7: 20,\n 8: 23,\n 9: 30,\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,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,GAAG,EAAE,iBAAiB,SAAS,OAAO;EACjH,OAAO,QAAQ;CACjB,GAAG,WAAW,SAAS,OAAO;EAC5B,OAAO,QAAQ;CACjB,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,CAAC,CAAC,IAAI,SAAS,OAAO;EACrB,IAAI,CAAC,GAAG,KAAK;EACb,OAAO,CACL,GACA,SAAS,CAAC,CAAC,CACb;CACF,CAAC,CAAC;CACF,QAAQ,GAAG,YAAY,WAAU,CAAE;EACjC,QAAQ,YAAY,QAAQ,4GAA0G;EACtI,YAAY,OAAO,YAAY,OAAO,QAAQ,IAAI,CAAC,CAAC,IAAI,SAAS,OAAO;GACtE,IAAI,CAAC,GAAG,KAAK;GACb,OAAO,CACL,GACA,gBAAgB,GAAG,YAAY,iBAAgB,CAAE,CAAC,CAAC,CACrD;EACF,CAAC,CAAC;EAGF,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
|
@@ -8,7 +8,7 @@ const createInterFont = (font = {}, { sizeLineHeight = (size) => size + 10, size
|
|
|
8
8
|
return createFont({
|
|
9
9
|
family: isWeb ? "Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "Inter",
|
|
10
10
|
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])),
|
|
11
|
-
weight: { 4: "
|
|
11
|
+
weight: { 4: "400" },
|
|
12
12
|
letterSpacing: { 4: 0 },
|
|
13
13
|
...font,
|
|
14
14
|
size
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { createFont, getVariableValue, isWeb } from \"@tamagui/core\";\nconst createInterFont = (font = {}, {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"Inter\",\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])\n ),\n weight: {\n 4: \"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { createFont, getVariableValue, isWeb } from \"@tamagui/core\";\nconst createInterFont = (font = {}, {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"Inter\",\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])\n ),\n // 400. this used to default to 300, so every app that took the preset\n // rendered its body copy a step lighter than it asked for\n weight: {\n 4: \"400\"\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: 16,\n 6: 18,\n 7: 20,\n 8: 23,\n 9: 30,\n 10: 46,\n 11: 55,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 134\n};\nexport {\n createInterFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,mBAAmB,OAAO,CAAC,GAAG,EAClC,kBAAkB,SAAS,OAAO,IAClC,YAAY,SAAS,OAAO,MAC1B,CAAC,MAAM;CACT,MAAM,OAAO,OAAO,YAClB,OAAO,QAAQ;EACb,GAAG;EACH,GAAG,KAAK;CACV,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CACtC;CACA,OAAO,WAAW;EAChB,QAAQ,QAAQ,4GAA0G;EAC1H,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,eAAe,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAC/E;EAGA,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
|
@@ -8,7 +8,7 @@ const createInterFont = (font = {}, { sizeLineHeight = (size) => size + 10, size
|
|
|
8
8
|
return createFont({
|
|
9
9
|
family: isWeb ? "Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif" : "Inter",
|
|
10
10
|
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])),
|
|
11
|
-
weight: { 4: "
|
|
11
|
+
weight: { 4: "400" },
|
|
12
12
|
letterSpacing: { 4: 0 },
|
|
13
13
|
...font,
|
|
14
14
|
size
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { createFont, getVariableValue, isWeb } from \"@tamagui/core\";\nconst createInterFont = (font = {}, {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"Inter\",\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])\n ),\n weight: {\n 4: \"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { createFont, getVariableValue, isWeb } from \"@tamagui/core\";\nconst createInterFont = (font = {}, {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"Inter\",\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])\n ),\n // 400. this used to default to 300, so every app that took the preset\n // rendered its body copy a step lighter than it asked for\n weight: {\n 4: \"400\"\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: 16,\n 6: 18,\n 7: 20,\n 8: 23,\n 9: 30,\n 10: 46,\n 11: 55,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 134\n};\nexport {\n createInterFont\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,mBAAmB,OAAO,CAAC,GAAG,EAClC,kBAAkB,SAAS,OAAO,IAClC,YAAY,SAAS,OAAO,MAC1B,CAAC,MAAM;CACT,MAAM,OAAO,OAAO,YAClB,OAAO,QAAQ;EACb,GAAG;EACH,GAAG,KAAK;CACV,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CACtC;CACA,OAAO,WAAW;EAChB,QAAQ,QAAQ,4GAA0G;EAC1H,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,eAAe,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAC/E;EAGA,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["import { createFont, getVariableValue, isWeb } from \"@tamagui/core\";\nvar createInterFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {\n return size2 + 10;\n }, sizeSize = function(size2) {\n return size2 * 1;\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"Inter\",\n lineHeight: Object.fromEntries(Object.entries(size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n sizeLineHeight(getVariableValue(v))\n ];\n })),\n weight: {\n 4: \"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["import { createFont, getVariableValue, isWeb } from \"@tamagui/core\";\nvar createInterFont = function() {\n var font = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, { sizeLineHeight = function(size2) {\n return size2 + 10;\n }, sizeSize = function(size2) {\n return size2 * 1;\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif' : \"Inter\",\n lineHeight: Object.fromEntries(Object.entries(size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n sizeLineHeight(getVariableValue(v))\n ];\n })),\n // 400. this used to default to 300, so every app that took the preset\n // rendered its body copy a step lighter than it asked for\n weight: {\n 4: \"400\"\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: 16,\n 6: 18,\n 7: 20,\n 8: 23,\n 9: 30,\n 10: 46,\n 11: 55,\n 12: 62,\n 13: 72,\n 14: 92,\n 15: 114,\n 16: 134\n};\nexport {\n createInterFont\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,GAAG,EAAE,iBAAiB,SAAS,OAAO;EACjH,OAAO,QAAQ;CACjB,GAAG,WAAW,SAAS,OAAO;EAC5B,OAAO,QAAQ;CACjB,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,CAAC,CAAC,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,4GAA0G;EAC1H,YAAY,OAAO,YAAY,OAAO,QAAQ,IAAI,CAAC,CAAC,IAAI,SAAS,OAAO;GACtE,IAAI,CAAC,GAAG,KAAK;GACb,OAAO,CACL,GACA,eAAe,iBAAiB,CAAC,CAAC,CACpC;EACF,CAAC,CAAC;EAGF,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-inter",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1309.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
6
6
|
"files": [
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"clean:build": "tamagui-build clean:build"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@tamagui/core": "3.0.0-beta.
|
|
70
|
+
"@tamagui/core": "3.0.0-beta.1309.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@tamagui/build": "3.0.0-beta.
|
|
73
|
+
"@tamagui/build": "3.0.0-beta.1309.1",
|
|
74
74
|
"subset-font": "^2.1.0"
|
|
75
75
|
},
|
|
76
76
|
"skipPublishIfUnchanged": false,
|
package/types/index.d.ts.map
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAAA,cAAc,YAAY,mBAAmB;AAI7C,cAAc,aAAa,kBAAkB;AAE7C,OAAO,cAAM,kBAAmB,UAAU,aACxC,OAAM,QAAQ,IACd,EACE,gBACA,aACC;CACD,kBAAkB;CAClB,YAAY;MAEb,WAAW,gBAAgB;
|
|
2
|
+
"mappings": "AAAA,cAAc,YAAY,mBAAmB;AAI7C,cAAc,aAAa,kBAAkB;AAE7C,OAAO,cAAM,kBAAmB,UAAU,aACxC,OAAM,QAAQ,IACd,EACE,gBACA,aACC;CACD,kBAAkB;CAClB,YAAY;MAEb,WAAW,gBAAgB;AA4B9B,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\n// fix type portability issue?\nexport type { GenericFont, FillInFont } from '@tamagui/core'\n\nexport const createInterFont = <A extends GenericFont>(\n font: Partial<A> = {},\n {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1,\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif'\n : 'Inter',\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])\n ),\n weight: {\n 4: '
|
|
9
|
+
"import type { FillInFont, GenericFont } from '@tamagui/core'\nimport { createFont, getVariableValue, isWeb } from '@tamagui/core'\n\n// fix type portability issue?\nexport type { GenericFont, FillInFont } from '@tamagui/core'\n\nexport const createInterFont = <A extends GenericFont>(\n font: Partial<A> = {},\n {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1,\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 ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif'\n : 'Inter',\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])\n ),\n // 400. this used to default to 300, so every app that took the preset\n // rendered its body copy a step lighter than it asked for\n weight: {\n 4: '400',\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: 16,\n 6: 18,\n 7: 20,\n 8: 23,\n 9: 30,\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
|
}
|