@tamagui/font-inter 1.0.1-beta.151 → 1.0.1-beta.154
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.js +9 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/jsx/index.js +9 -5
- package/dist/jsx/index.js.map +1 -1
- package/otf/Inter-Black.otf +0 -0
- package/otf/Inter-BlackItalic.otf +0 -0
- package/otf/Inter-Bold.otf +0 -0
- package/otf/Inter-BoldItalic.otf +0 -0
- package/otf/Inter-ExtraBold.otf +0 -0
- package/otf/Inter-ExtraBoldItalic.otf +0 -0
- package/otf/Inter-ExtraLight.otf +0 -0
- package/otf/Inter-ExtraLightItalic.otf +0 -0
- package/otf/Inter-Italic.otf +0 -0
- package/otf/Inter-Light.otf +0 -0
- package/otf/Inter-LightItalic.otf +0 -0
- package/otf/Inter-Medium.otf +0 -0
- package/otf/Inter-MediumItalic.otf +0 -0
- package/otf/Inter-SemiBold.otf +0 -0
- package/otf/Inter-SemiBoldItalic.otf +0 -0
- package/otf/Inter-Thin.otf +0 -0
- package/otf/Inter-ThinItalic.otf +0 -0
- package/package.json +5 -4
- package/woff2/Inter-Black.woff2 +0 -0
- package/woff2/Inter-BlackItalic.woff2 +0 -0
- package/woff2/Inter-Bold.woff2 +0 -0
- package/woff2/Inter-BoldItalic.woff2 +0 -0
- package/woff2/Inter-ExtraBold.woff2 +0 -0
- package/woff2/Inter-ExtraBoldItalic.woff2 +0 -0
- package/woff2/Inter-ExtraLight.woff2 +0 -0
- package/woff2/Inter-ExtraLightItalic.woff2 +0 -0
- package/woff2/Inter-Light.woff2 +0 -0
- package/woff2/Inter-LightItalic.woff2 +0 -0
- package/woff2/Inter-Medium.woff2 +0 -0
- package/woff2/Inter-MediumItalic.woff2 +0 -0
- package/woff2/Inter-SemiBold.woff2 +0 -0
- package/woff2/Inter-SemiBoldItalic.woff2 +0 -0
- package/woff2/Inter-Thin.woff2 +0 -0
- package/woff2/Inter-ThinItalic.woff2 +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -27,13 +27,17 @@ const createInterFont = (font = {}, {
|
|
|
27
27
|
sizeLineHeight = (size) => size + 10,
|
|
28
28
|
sizeSize = (size) => size * 1
|
|
29
29
|
} = {}) => {
|
|
30
|
-
const size = Object.fromEntries(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
const size = Object.fromEntries(
|
|
31
|
+
Object.entries({
|
|
32
|
+
...defaultSizes,
|
|
33
|
+
...font.size
|
|
34
|
+
}).map(([k, v]) => [k, sizeSize(+v)])
|
|
35
|
+
);
|
|
34
36
|
return (0, import_core.createFont)({
|
|
35
37
|
family: import_react_native.Platform.OS == "web" ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' : "Inter",
|
|
36
|
-
lineHeight: Object.fromEntries(
|
|
38
|
+
lineHeight: Object.fromEntries(
|
|
39
|
+
Object.entries(size).map(([k, v]) => [k, sizeLineHeight((0, import_core.getVariableValue)(v))])
|
|
40
|
+
),
|
|
37
41
|
weight: {
|
|
38
42
|
4: "300"
|
|
39
43
|
},
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { GenericFont, createFont, getVariableValue } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createInterFont = <A extends GenericFont<keyof typeof defaultSizes>>(\n font: {\n [Key in keyof Partial<A>]?: Partial<A[Key]>\n } = {},\n {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1,\n }: {\n sizeLineHeight?: (fontSize: number) => number\n sizeSize?: (size: number) => number\n } = {}\n): GenericFont<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:\n Platform.OS == 'web'\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: '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: 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"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA0D;AAC1D,0BAAyB;AAElB,MAAM,kBAAkB,CAC7B,OAEI,CAAC,GACL;AAAA,EACE,iBAAiB,CAAC,SAAS,OAAO;AAAA,EAClC,WAAW,CAAC,SAAS,OAAO;
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA0D;AAC1D,0BAAyB;AAElB,MAAM,kBAAkB,CAC7B,OAEI,CAAC,GACL;AAAA,EACE,iBAAiB,CAAC,SAAS,OAAO;AAAA,EAClC,WAAW,CAAC,SAAS,OAAO;AAC9B,IAGI,CAAC,MACsC;AAE3C,QAAM,OAAO,OAAO;AAAA,IAClB,OAAO,QAAQ;AAAA,MACb,GAAG;AAAA,MACH,GAAG,KAAK;AAAA,IACV,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAAA,EACtC;AACA,aAAO,wBAAW;AAAA,IAChB,QACE,6BAAS,MAAM,QACX,0GACA;AAAA,IACN,YAAY,OAAO;AAAA,MACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,mBAAe,8BAAiB,CAAC,CAAC,CAAC,CAAC;AAAA,IAC/E;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,IACL;AAAA,IACA,GAAI;AAAA,IACJ;AAAA,EACF,CAAC;AACH;AAEA,MAAM,eAAe;AAAA,EACnB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -4,13 +4,17 @@ const createInterFont = (font = {}, {
|
|
|
4
4
|
sizeLineHeight = (size) => size + 10,
|
|
5
5
|
sizeSize = (size) => size * 1
|
|
6
6
|
} = {}) => {
|
|
7
|
-
const size = Object.fromEntries(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const size = Object.fromEntries(
|
|
8
|
+
Object.entries({
|
|
9
|
+
...defaultSizes,
|
|
10
|
+
...font.size
|
|
11
|
+
}).map(([k, v]) => [k, sizeSize(+v)])
|
|
12
|
+
);
|
|
11
13
|
return createFont({
|
|
12
14
|
family: Platform.OS == "web" ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' : "Inter",
|
|
13
|
-
lineHeight: Object.fromEntries(
|
|
15
|
+
lineHeight: Object.fromEntries(
|
|
16
|
+
Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])
|
|
17
|
+
),
|
|
14
18
|
weight: {
|
|
15
19
|
4: "300"
|
|
16
20
|
},
|
package/dist/esm/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { GenericFont, createFont, getVariableValue } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createInterFont = <A extends GenericFont<keyof typeof defaultSizes>>(\n font: {\n [Key in keyof Partial<A>]?: Partial<A[Key]>\n } = {},\n {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1,\n }: {\n sizeLineHeight?: (fontSize: number) => number\n sizeSize?: (size: number) => number\n } = {}\n): GenericFont<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:\n Platform.OS == 'web'\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: '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: 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"],
|
|
5
|
-
"mappings": "AAAA;
|
|
5
|
+
"mappings": "AAAA,SAAsB,YAAY,wBAAwB;AAC1D,SAAS,gBAAgB;AAElB,MAAM,kBAAkB,CAC7B,OAEI,CAAC,GACL;AAAA,EACE,iBAAiB,CAAC,SAAS,OAAO;AAAA,EAClC,WAAW,CAAC,SAAS,OAAO;AAC9B,IAGI,CAAC,MACsC;AAE3C,QAAM,OAAO,OAAO;AAAA,IAClB,OAAO,QAAQ;AAAA,MACb,GAAG;AAAA,MACH,GAAG,KAAK;AAAA,IACV,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAAA,EACtC;AACA,SAAO,WAAW;AAAA,IAChB,QACE,SAAS,MAAM,QACX,0GACA;AAAA,IACN,YAAY,OAAO;AAAA,MACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,eAAe,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAAA,IAC/E;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,IACL;AAAA,IACA,GAAI;AAAA,IACJ;AAAA,EACF,CAAC;AACH;AAEA,MAAM,eAAe;AAAA,EACnB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/index.js
CHANGED
|
@@ -4,13 +4,17 @@ const createInterFont = (font = {}, {
|
|
|
4
4
|
sizeLineHeight = (size) => size + 10,
|
|
5
5
|
sizeSize = (size) => size * 1
|
|
6
6
|
} = {}) => {
|
|
7
|
-
const size = Object.fromEntries(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const size = Object.fromEntries(
|
|
8
|
+
Object.entries({
|
|
9
|
+
...defaultSizes,
|
|
10
|
+
...font.size
|
|
11
|
+
}).map(([k, v]) => [k, sizeSize(+v)])
|
|
12
|
+
);
|
|
11
13
|
return createFont({
|
|
12
14
|
family: Platform.OS == "web" ? 'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' : "Inter",
|
|
13
|
-
lineHeight: Object.fromEntries(
|
|
15
|
+
lineHeight: Object.fromEntries(
|
|
16
|
+
Object.entries(size).map(([k, v]) => [k, sizeLineHeight(getVariableValue(v))])
|
|
17
|
+
),
|
|
14
18
|
weight: {
|
|
15
19
|
4: "300"
|
|
16
20
|
},
|
package/dist/jsx/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { GenericFont, createFont, getVariableValue } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createInterFont = <A extends GenericFont<keyof typeof defaultSizes>>(\n font: {\n [Key in keyof Partial<A>]?: Partial<A[Key]>\n } = {},\n {\n sizeLineHeight = (size) => size + 10,\n sizeSize = (size) => size * 1,\n }: {\n sizeLineHeight?: (fontSize: number) => number\n sizeSize?: (size: number) => number\n } = {}\n): GenericFont<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:\n Platform.OS == 'web'\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: '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: 16,\n 6: 18,\n 7: 20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}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/font-inter",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.154",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"types",
|
|
10
10
|
"dist",
|
|
11
11
|
"css",
|
|
12
|
-
"
|
|
12
|
+
"otf",
|
|
13
|
+
"woff2"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"build": "tamagui-build",
|
|
@@ -21,10 +22,10 @@
|
|
|
21
22
|
"clean:build": "tamagui-build clean:build"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@tamagui/core": "^1.0.1-beta.
|
|
25
|
+
"@tamagui/core": "^1.0.1-beta.154"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
28
|
+
"@tamagui/build": "^1.0.1-beta.154",
|
|
28
29
|
"subset-font": "^1.6.1"
|
|
29
30
|
},
|
|
30
31
|
"publishConfig": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|