@tamagui/font-silkscreen 1.0.1-beta.74 → 1.0.1-beta.77
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 +0 -0
- package/dist/cjs/index.js.map +0 -0
- package/dist/esm/index.js +19 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/jsx/index.js +0 -0
- package/package.json +3 -3
- package/types/index.d.ts +0 -0
- package/types/index.d.ts.map +0 -0
package/dist/cjs/index.js
CHANGED
|
File without changes
|
package/dist/cjs/index.js.map
CHANGED
|
File without changes
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
1
17
|
import { createFont } from "@tamagui/core";
|
|
2
18
|
import { Platform } from "react-native";
|
|
3
19
|
const createSilkscreenFont = (font = {}) => {
|
|
4
|
-
return createFont({
|
|
20
|
+
return createFont(__spreadValues({
|
|
5
21
|
family: Platform.OS == "web" ? "Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace" : "Silkscreen",
|
|
6
22
|
size,
|
|
7
23
|
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, v * 1 + 12])),
|
|
@@ -12,9 +28,8 @@ const createSilkscreenFont = (font = {}) => {
|
|
|
12
28
|
4: 0,
|
|
13
29
|
5: 1,
|
|
14
30
|
6: 2
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
});
|
|
31
|
+
}
|
|
32
|
+
}, font));
|
|
18
33
|
};
|
|
19
34
|
const size = {
|
|
20
35
|
1: 11,
|
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 } from '@tamagui/core'\nimport { Platform } from 'react-native'\n\nexport const createSilkscreenFont = <A extends GenericFont<keyof typeof size>>(\n font: Partial<A> = {}\n): A => {\n return createFont({\n family:\n Platform.OS == 'web'\n ? 'Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace'\n : 'Silkscreen',\n size,\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, v * 1 + 12])\n ) as typeof size,\n weight: {\n 4: '300',\n },\n letterSpacing: {\n 4: 0,\n 5: 1,\n 6: 2,\n },\n ...(font as any),\n })\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} as const\n"],
|
|
5
|
-
"mappings": "AAAA;AACA;AAEO,MAAM,uBAAuB,CAClC,OAAmB,CAAC,MACd;AACN,SAAO,WAAW;AAAA,IAChB,QACE,SAAS,MAAM,QACX,oEACA;AAAA,IACN;AAAA,IACA,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC,CACtD;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AACA;AAEO,MAAM,uBAAuB,CAClC,OAAmB,CAAC,MACd;AACN,SAAO,WAAW;AAAA,IAChB,QACE,SAAS,MAAM,QACX,oEACA;AAAA,IACN;AAAA,IACA,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC,CACtD;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,KACI,KACL;AACH;AAEA,MAAM,OAAO;AAAA,EACX,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
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/font-silkscreen",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.77",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"clean:build": "tamagui-build clean:build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tamagui/core": "^1.0.1-beta.
|
|
21
|
+
"@tamagui/core": "^1.0.1-beta.77"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
24
|
+
"@tamagui/build": "^1.0.1-beta.77"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
package/types/index.d.ts
CHANGED
|
File without changes
|
package/types/index.d.ts.map
CHANGED
|
File without changes
|