@tamagui/config-base 1.0.1-beta.53
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/animations.js +58 -0
- package/dist/cjs/animations.js.map +7 -0
- package/dist/cjs/createGenericFont.js +72 -0
- package/dist/cjs/createGenericFont.js.map +7 -0
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/media.js +52 -0
- package/dist/cjs/media.js.map +7 -0
- package/dist/cjs/tamagui.config.js +84 -0
- package/dist/cjs/tamagui.config.js.map +7 -0
- package/dist/esm/animations.js +35 -0
- package/dist/esm/animations.js.map +7 -0
- package/dist/esm/createGenericFont.js +37 -0
- package/dist/esm/createGenericFont.js.map +7 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/media.js +27 -0
- package/dist/esm/media.js.map +7 -0
- package/dist/esm/tamagui.config.js +61 -0
- package/dist/esm/tamagui.config.js.map +7 -0
- package/dist/jsx/animations.js +34 -0
- package/dist/jsx/createGenericFont.js +36 -0
- package/dist/jsx/index.js +4 -0
- package/dist/jsx/media.js +26 -0
- package/dist/jsx/tamagui.config.js +60 -0
- package/package.json +34 -0
- package/types/animations.d.ts +31 -0
- package/types/animations.d.ts.map +1 -0
- package/types/createGenericFont.d.ts +22 -0
- package/types/createGenericFont.d.ts.map +1 -0
- package/types/index.d.ts +5 -0
- package/types/index.d.ts.map +1 -0
- package/types/media.d.ts +56 -0
- package/types/media.d.ts.map +1 -0
- package/types/tamagui.config.d.ts +15434 -0
- package/types/tamagui.config.d.ts.map +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
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: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var animations_exports = {};
|
|
19
|
+
__export(animations_exports, {
|
|
20
|
+
animations: () => animations
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(animations_exports);
|
|
23
|
+
var import_animations_reanimated = require("@tamagui/animations-reanimated");
|
|
24
|
+
const animations = (0, import_animations_reanimated.createAnimations)({
|
|
25
|
+
bouncy: {
|
|
26
|
+
type: "spring",
|
|
27
|
+
damping: 9,
|
|
28
|
+
mass: 0.9,
|
|
29
|
+
stiffness: 150
|
|
30
|
+
},
|
|
31
|
+
lazy: {
|
|
32
|
+
type: "spring",
|
|
33
|
+
damping: 18,
|
|
34
|
+
stiffness: 50
|
|
35
|
+
},
|
|
36
|
+
slow: {
|
|
37
|
+
type: "spring",
|
|
38
|
+
damping: 15,
|
|
39
|
+
stiffness: 40
|
|
40
|
+
},
|
|
41
|
+
quick: {
|
|
42
|
+
type: "spring",
|
|
43
|
+
damping: 20,
|
|
44
|
+
mass: 1.2,
|
|
45
|
+
stiffness: 250
|
|
46
|
+
},
|
|
47
|
+
tooltip: {
|
|
48
|
+
type: "spring",
|
|
49
|
+
damping: 10,
|
|
50
|
+
mass: 0.9,
|
|
51
|
+
stiffness: 100
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
animations
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=animations.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.ts"],
|
|
4
|
+
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-reanimated'\n\nexport const animations = createAnimations({\n bouncy: {\n type: 'spring',\n damping: 9,\n mass: 0.9,\n stiffness: 150,\n },\n lazy: {\n type: 'spring',\n damping: 18,\n stiffness: 50,\n },\n slow: {\n type: 'spring',\n damping: 15,\n stiffness: 40,\n },\n quick: {\n type: 'spring',\n damping: 20,\n mass: 1.2,\n stiffness: 250,\n },\n tooltip: {\n type: 'spring',\n damping: 10,\n mass: 0.9,\n stiffness: 100,\n },\n})\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAiC;AAE1B,MAAM,aAAa,mDAAiB;AAAA,EACzC,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
var createGenericFont_exports = {};
|
|
34
|
+
__export(createGenericFont_exports, {
|
|
35
|
+
createGenericFont: () => createGenericFont
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(createGenericFont_exports);
|
|
38
|
+
var import_core = require("@tamagui/core");
|
|
39
|
+
const genericFontSizes = {
|
|
40
|
+
1: 10,
|
|
41
|
+
2: 11,
|
|
42
|
+
3: 12,
|
|
43
|
+
4: 14,
|
|
44
|
+
5: 15,
|
|
45
|
+
6: 16,
|
|
46
|
+
7: 20,
|
|
47
|
+
8: 22,
|
|
48
|
+
9: 30,
|
|
49
|
+
10: 42,
|
|
50
|
+
11: 52,
|
|
51
|
+
12: 62,
|
|
52
|
+
13: 72,
|
|
53
|
+
14: 92,
|
|
54
|
+
15: 114,
|
|
55
|
+
16: 124
|
|
56
|
+
};
|
|
57
|
+
function createGenericFont(family, font = {}) {
|
|
58
|
+
const size = font.size || genericFontSizes;
|
|
59
|
+
return (0, import_core.createFont)(__spreadValues({
|
|
60
|
+
family,
|
|
61
|
+
size,
|
|
62
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, +v * 1.3])),
|
|
63
|
+
weight: { 0: "300" },
|
|
64
|
+
letterSpacing: { 4: 0 }
|
|
65
|
+
}, font));
|
|
66
|
+
}
|
|
67
|
+
__name(createGenericFont, "createGenericFont");
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
createGenericFont
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=createGenericFont.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/createGenericFont.ts"],
|
|
4
|
+
"sourcesContent": ["import { GenericFont, createFont } from '@tamagui/core'\n\nconst genericFontSizes = {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 14,\n 5: 15,\n 6: 16,\n 7: 20,\n 8: 22,\n 9: 30,\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\nexport function createGenericFont<A extends GenericFont<keyof typeof genericFontSizes>>(\n family: string,\n font: Partial<A> = {}\n): A {\n const size = font.size || genericFontSizes\n return createFont({\n family,\n size,\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, +v * 1.3])\n ) as typeof size,\n weight: { 0: '300' },\n letterSpacing: { 4: 0 },\n ...(font as any),\n })\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwC;AAExC,MAAM,mBAAmB;AAAA,EACvB,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;AAEO,2BACL,QACA,OAAmB,CAAC,GACjB;AACH,QAAM,OAAO,KAAK,QAAQ;AAC1B,SAAO,4BAAW;AAAA,IAChB;AAAA,IACA;AAAA,IACA,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CACpD;AAAA,IACA,QAAQ,EAAE,GAAG,MAAM;AAAA,IACnB,eAAe,EAAE,GAAG,EAAE;AAAA,KAClB,KACL;AACH;AAfgB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var src_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(src_exports);
|
|
17
|
+
__reExport(src_exports, require("./tamagui.config"), module.exports);
|
|
18
|
+
__reExport(src_exports, require("./animations"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./media"), module.exports);
|
|
20
|
+
__reExport(src_exports, require("./createGenericFont"), module.exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.tsx"],
|
|
4
|
+
"sourcesContent": ["export * from './tamagui.config'\nexport * from './animations'\nexport * from './media'\nexport * from './createGenericFont'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,6BAAd;AACA,wBAAc,yBADd;AAEA,wBAAc,oBAFd;AAGA,wBAAc,gCAHd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var media_exports = {};
|
|
19
|
+
__export(media_exports, {
|
|
20
|
+
demoMedia: () => demoMedia,
|
|
21
|
+
media: () => media,
|
|
22
|
+
widths: () => widths
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(media_exports);
|
|
25
|
+
const demoMedia = [500, 620, 780, 900];
|
|
26
|
+
const widths = [660, 800, 1020, 1280];
|
|
27
|
+
const media = {
|
|
28
|
+
lg: { maxWidth: 1280 },
|
|
29
|
+
md: { maxWidth: 1020 },
|
|
30
|
+
sm: { maxWidth: 800 },
|
|
31
|
+
xs: { maxWidth: 660 },
|
|
32
|
+
xxs: { maxWidth: 390 },
|
|
33
|
+
gtXs: { minWidth: 660 + 1 },
|
|
34
|
+
gtSm: { minWidth: 800 + 1 },
|
|
35
|
+
gtMd: { minWidth: 1020 + 1 },
|
|
36
|
+
gtLg: { minWidth: 1280 + 1 },
|
|
37
|
+
tiny: { maxWidth: 500 },
|
|
38
|
+
gtTiny: { minWidth: 500 + 1 },
|
|
39
|
+
small: { maxWidth: 620 },
|
|
40
|
+
gtSmall: { minWidth: 620 + 1 },
|
|
41
|
+
medium: { maxWidth: 780 },
|
|
42
|
+
gtMedium: { minWidth: 780 + 1 },
|
|
43
|
+
large: { maxWidth: 900 },
|
|
44
|
+
gtLarge: { minWidth: 900 + 1 }
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
demoMedia,
|
|
49
|
+
media,
|
|
50
|
+
widths
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/media.ts"],
|
|
4
|
+
"sourcesContent": ["export const demoMedia = [500, 620, 780, 900]\nexport const widths = [660, 800, 1020, 1280]\n\nexport const media = {\n // for site\n lg: { maxWidth: 1280 },\n md: { maxWidth: 1020 },\n sm: { maxWidth: 800 },\n xs: { maxWidth: 660 },\n xxs: { maxWidth: 390 },\n gtXs: { minWidth: 660 + 1 },\n gtSm: { minWidth: 800 + 1 },\n gtMd: { minWidth: 1020 + 1 },\n gtLg: { minWidth: 1280 + 1 },\n\n // for responsive demo only\n tiny: { maxWidth: 500 },\n gtTiny: { minWidth: 500 + 1 },\n small: { maxWidth: 620 },\n gtSmall: { minWidth: 620 + 1 },\n medium: { maxWidth: 780 },\n gtMedium: { minWidth: 780 + 1 },\n large: { maxWidth: 900 },\n gtLarge: { minWidth: 900 + 1 },\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAAY,CAAC,KAAK,KAAK,KAAK,GAAG;AACrC,MAAM,SAAS,CAAC,KAAK,KAAK,MAAM,IAAI;AAEpC,MAAM,QAAQ;AAAA,EAEnB,IAAI,EAAE,UAAU,KAAK;AAAA,EACrB,IAAI,EAAE,UAAU,KAAK;AAAA,EACrB,IAAI,EAAE,UAAU,IAAI;AAAA,EACpB,IAAI,EAAE,UAAU,IAAI;AAAA,EACpB,KAAK,EAAE,UAAU,IAAI;AAAA,EACrB,MAAM,EAAE,UAAU,MAAM,EAAE;AAAA,EAC1B,MAAM,EAAE,UAAU,MAAM,EAAE;AAAA,EAC1B,MAAM,EAAE,UAAU,OAAO,EAAE;AAAA,EAC3B,MAAM,EAAE,UAAU,OAAO,EAAE;AAAA,EAG3B,MAAM,EAAE,UAAU,IAAI;AAAA,EACtB,QAAQ,EAAE,UAAU,MAAM,EAAE;AAAA,EAC5B,OAAO,EAAE,UAAU,IAAI;AAAA,EACvB,SAAS,EAAE,UAAU,MAAM,EAAE;AAAA,EAC7B,QAAQ,EAAE,UAAU,IAAI;AAAA,EACxB,UAAU,EAAE,UAAU,MAAM,EAAE;AAAA,EAC9B,OAAO,EAAE,UAAU,IAAI;AAAA,EACvB,SAAS,EAAE,UAAU,MAAM,EAAE;AAC/B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var tamagui_config_exports = {};
|
|
19
|
+
__export(tamagui_config_exports, {
|
|
20
|
+
config: () => config
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(tamagui_config_exports);
|
|
23
|
+
var import_font_inter = require("@tamagui/font-inter");
|
|
24
|
+
var import_font_silkscreen = require("@tamagui/font-silkscreen");
|
|
25
|
+
var import_shorthands = require("@tamagui/shorthands");
|
|
26
|
+
var import_theme_base = require("@tamagui/theme-base");
|
|
27
|
+
var import_animations = require("./animations");
|
|
28
|
+
var import_createGenericFont = require("./createGenericFont");
|
|
29
|
+
var import_media = require("./media");
|
|
30
|
+
const silkscreenFont = (0, import_font_silkscreen.createSilkscreenFont)();
|
|
31
|
+
const headingFont = (0, import_font_inter.createInterFont)({
|
|
32
|
+
size: {
|
|
33
|
+
6: 15
|
|
34
|
+
},
|
|
35
|
+
transform: {
|
|
36
|
+
6: "uppercase",
|
|
37
|
+
7: "none"
|
|
38
|
+
},
|
|
39
|
+
weight: {
|
|
40
|
+
6: "400",
|
|
41
|
+
7: "700"
|
|
42
|
+
},
|
|
43
|
+
color: {
|
|
44
|
+
6: "$colorFocus",
|
|
45
|
+
7: "$color"
|
|
46
|
+
},
|
|
47
|
+
letterSpacing: {
|
|
48
|
+
5: 2,
|
|
49
|
+
6: 1,
|
|
50
|
+
7: 0,
|
|
51
|
+
8: -1,
|
|
52
|
+
9: -2,
|
|
53
|
+
10: -2,
|
|
54
|
+
12: -3,
|
|
55
|
+
14: -4,
|
|
56
|
+
15: -5
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const bodyFont = (0, import_font_inter.createInterFont)({}, {
|
|
60
|
+
sizeSize: (size) => Math.round(size * 1.1),
|
|
61
|
+
sizeLineHeight: (size) => Math.round(size * 1.1 + (size > 20 ? 10 : 10))
|
|
62
|
+
});
|
|
63
|
+
const monoFont = (0, import_createGenericFont.createGenericFont)(`"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`);
|
|
64
|
+
const config = {
|
|
65
|
+
defaultTheme: "light",
|
|
66
|
+
shouldAddPrefersColorThemes: true,
|
|
67
|
+
themeClassNameOnRoot: true,
|
|
68
|
+
animations: import_animations.animations,
|
|
69
|
+
media: import_media.media,
|
|
70
|
+
shorthands: import_shorthands.shorthands,
|
|
71
|
+
themes: import_theme_base.themes,
|
|
72
|
+
tokens: import_theme_base.tokens,
|
|
73
|
+
fonts: {
|
|
74
|
+
heading: headingFont,
|
|
75
|
+
body: bodyFont,
|
|
76
|
+
mono: monoFont,
|
|
77
|
+
silkscreen: silkscreenFont
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
81
|
+
0 && (module.exports = {
|
|
82
|
+
config
|
|
83
|
+
});
|
|
84
|
+
//# sourceMappingURL=tamagui.config.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/tamagui.config.ts"],
|
|
4
|
+
"sourcesContent": ["// import { createNotoFont } from '@takeout/font-noto-emoji'\nimport { createInterFont } from '@tamagui/font-inter'\nimport { createSilkscreenFont } from '@tamagui/font-silkscreen'\nimport { shorthands } from '@tamagui/shorthands'\nimport { themes, tokens } from '@tamagui/theme-base'\n\nimport { animations } from './animations'\nimport { createGenericFont } from './createGenericFont'\nimport { media } from './media'\n\n// import { createTamagui } from 'tamagui'\n\n// const notoFont = createNotoFont()\nconst silkscreenFont = createSilkscreenFont()\nconst headingFont = createInterFont({\n size: {\n 6: 15,\n },\n transform: {\n 6: 'uppercase',\n 7: 'none',\n },\n weight: {\n 6: '400',\n 7: '700',\n },\n color: {\n 6: '$colorFocus',\n 7: '$color',\n },\n letterSpacing: {\n 5: 2,\n 6: 1,\n 7: 0,\n 8: -1,\n 9: -2,\n 10: -2,\n 12: -3,\n 14: -4,\n 15: -5,\n },\n})\nconst bodyFont = createInterFont(\n {},\n {\n sizeSize: (size) => Math.round(size * 1.1),\n sizeLineHeight: (size) => Math.round(size * 1.1 + (size > 20 ? 10 : 10)),\n }\n)\nconst monoFont = createGenericFont(\n `\"ui-monospace\", \"SFMono-Regular\", \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace`\n)\n\nexport const config = {\n defaultTheme: 'light',\n shouldAddPrefersColorThemes: true,\n themeClassNameOnRoot: true,\n animations,\n media,\n shorthands,\n themes,\n tokens,\n fonts: {\n // noto: notoFont as any,\n heading: headingFont,\n body: bodyFont,\n mono: monoFont,\n silkscreen: silkscreenFont,\n },\n}\n\n// export type Conf = typeof config\n\n// declare module 'tamagui' {\n// interface TamaguiCustomConfig extends Conf {}\n// }\n\n// export default config\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,wBAAgC;AAChC,6BAAqC;AACrC,wBAA2B;AAC3B,wBAA+B;AAE/B,wBAA2B;AAC3B,+BAAkC;AAClC,mBAAsB;AAKtB,MAAM,iBAAiB,iDAAqB;AAC5C,MAAM,cAAc,uCAAgB;AAAA,EAClC,MAAM;AAAA,IACJ,GAAG;AAAA,EACL;AAAA,EACA,WAAW;AAAA,IACT,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AACF,CAAC;AACD,MAAM,WAAW,uCACf,CAAC,GACD;AAAA,EACE,UAAU,CAAC,SAAS,KAAK,MAAM,OAAO,GAAG;AAAA,EACzC,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,QAAO,KAAK,KAAK,GAAG;AACzE,CACF;AACA,MAAM,WAAW,gDACf,4FACF;AAEO,MAAM,SAAS;AAAA,EACpB,cAAc;AAAA,EACd,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,IAEL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY;AAAA,EACd;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createAnimations } from "@tamagui/animations-reanimated";
|
|
2
|
+
const animations = createAnimations({
|
|
3
|
+
bouncy: {
|
|
4
|
+
type: "spring",
|
|
5
|
+
damping: 9,
|
|
6
|
+
mass: 0.9,
|
|
7
|
+
stiffness: 150
|
|
8
|
+
},
|
|
9
|
+
lazy: {
|
|
10
|
+
type: "spring",
|
|
11
|
+
damping: 18,
|
|
12
|
+
stiffness: 50
|
|
13
|
+
},
|
|
14
|
+
slow: {
|
|
15
|
+
type: "spring",
|
|
16
|
+
damping: 15,
|
|
17
|
+
stiffness: 40
|
|
18
|
+
},
|
|
19
|
+
quick: {
|
|
20
|
+
type: "spring",
|
|
21
|
+
damping: 20,
|
|
22
|
+
mass: 1.2,
|
|
23
|
+
stiffness: 250
|
|
24
|
+
},
|
|
25
|
+
tooltip: {
|
|
26
|
+
type: "spring",
|
|
27
|
+
damping: 10,
|
|
28
|
+
mass: 0.9,
|
|
29
|
+
stiffness: 100
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
animations
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=animations.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.ts"],
|
|
4
|
+
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-reanimated'\n\nexport const animations = createAnimations({\n bouncy: {\n type: 'spring',\n damping: 9,\n mass: 0.9,\n stiffness: 150,\n },\n lazy: {\n type: 'spring',\n damping: 18,\n stiffness: 50,\n },\n slow: {\n type: 'spring',\n damping: 15,\n stiffness: 40,\n },\n quick: {\n type: 'spring',\n damping: 20,\n mass: 1.2,\n stiffness: 250,\n },\n tooltip: {\n type: 'spring',\n damping: 10,\n mass: 0.9,\n stiffness: 100,\n },\n})\n"],
|
|
5
|
+
"mappings": "AAAA;AAEO,MAAM,aAAa,iBAAiB;AAAA,EACzC,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { createFont } from "@tamagui/core";
|
|
4
|
+
const genericFontSizes = {
|
|
5
|
+
1: 10,
|
|
6
|
+
2: 11,
|
|
7
|
+
3: 12,
|
|
8
|
+
4: 14,
|
|
9
|
+
5: 15,
|
|
10
|
+
6: 16,
|
|
11
|
+
7: 20,
|
|
12
|
+
8: 22,
|
|
13
|
+
9: 30,
|
|
14
|
+
10: 42,
|
|
15
|
+
11: 52,
|
|
16
|
+
12: 62,
|
|
17
|
+
13: 72,
|
|
18
|
+
14: 92,
|
|
19
|
+
15: 114,
|
|
20
|
+
16: 124
|
|
21
|
+
};
|
|
22
|
+
function createGenericFont(family, font = {}) {
|
|
23
|
+
const size = font.size || genericFontSizes;
|
|
24
|
+
return createFont({
|
|
25
|
+
family,
|
|
26
|
+
size,
|
|
27
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, +v * 1.3])),
|
|
28
|
+
weight: { 0: "300" },
|
|
29
|
+
letterSpacing: { 4: 0 },
|
|
30
|
+
...font
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
__name(createGenericFont, "createGenericFont");
|
|
34
|
+
export {
|
|
35
|
+
createGenericFont
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=createGenericFont.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/createGenericFont.ts"],
|
|
4
|
+
"sourcesContent": ["import { GenericFont, createFont } from '@tamagui/core'\n\nconst genericFontSizes = {\n 1: 10,\n 2: 11,\n 3: 12,\n 4: 14,\n 5: 15,\n 6: 16,\n 7: 20,\n 8: 22,\n 9: 30,\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\nexport function createGenericFont<A extends GenericFont<keyof typeof genericFontSizes>>(\n family: string,\n font: Partial<A> = {}\n): A {\n const size = font.size || genericFontSizes\n return createFont({\n family,\n size,\n lineHeight: Object.fromEntries(\n Object.entries(size).map(([k, v]) => [k, +v * 1.3])\n ) as typeof size,\n weight: { 0: '300' },\n letterSpacing: { 4: 0 },\n ...(font as any),\n })\n}\n"],
|
|
5
|
+
"mappings": ";;AAAA;AAEA,MAAM,mBAAmB;AAAA,EACvB,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;AAEO,2BACL,QACA,OAAmB,CAAC,GACjB;AACH,QAAM,OAAO,KAAK,QAAQ;AAC1B,SAAO,WAAW;AAAA,IAChB;AAAA,IACA;AAAA,IACA,YAAY,OAAO,YACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CACpD;AAAA,IACA,QAAQ,EAAE,GAAG,MAAM;AAAA,IACnB,eAAe,EAAE,GAAG,EAAE;AAAA,IACtB,GAAI;AAAA,EACN,CAAC;AACH;AAfgB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const demoMedia = [500, 620, 780, 900];
|
|
2
|
+
const widths = [660, 800, 1020, 1280];
|
|
3
|
+
const media = {
|
|
4
|
+
lg: { maxWidth: 1280 },
|
|
5
|
+
md: { maxWidth: 1020 },
|
|
6
|
+
sm: { maxWidth: 800 },
|
|
7
|
+
xs: { maxWidth: 660 },
|
|
8
|
+
xxs: { maxWidth: 390 },
|
|
9
|
+
gtXs: { minWidth: 660 + 1 },
|
|
10
|
+
gtSm: { minWidth: 800 + 1 },
|
|
11
|
+
gtMd: { minWidth: 1020 + 1 },
|
|
12
|
+
gtLg: { minWidth: 1280 + 1 },
|
|
13
|
+
tiny: { maxWidth: 500 },
|
|
14
|
+
gtTiny: { minWidth: 500 + 1 },
|
|
15
|
+
small: { maxWidth: 620 },
|
|
16
|
+
gtSmall: { minWidth: 620 + 1 },
|
|
17
|
+
medium: { maxWidth: 780 },
|
|
18
|
+
gtMedium: { minWidth: 780 + 1 },
|
|
19
|
+
large: { maxWidth: 900 },
|
|
20
|
+
gtLarge: { minWidth: 900 + 1 }
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
demoMedia,
|
|
24
|
+
media,
|
|
25
|
+
widths
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/media.ts"],
|
|
4
|
+
"sourcesContent": ["export const demoMedia = [500, 620, 780, 900]\nexport const widths = [660, 800, 1020, 1280]\n\nexport const media = {\n // for site\n lg: { maxWidth: 1280 },\n md: { maxWidth: 1020 },\n sm: { maxWidth: 800 },\n xs: { maxWidth: 660 },\n xxs: { maxWidth: 390 },\n gtXs: { minWidth: 660 + 1 },\n gtSm: { minWidth: 800 + 1 },\n gtMd: { minWidth: 1020 + 1 },\n gtLg: { minWidth: 1280 + 1 },\n\n // for responsive demo only\n tiny: { maxWidth: 500 },\n gtTiny: { minWidth: 500 + 1 },\n small: { maxWidth: 620 },\n gtSmall: { minWidth: 620 + 1 },\n medium: { maxWidth: 780 },\n gtMedium: { minWidth: 780 + 1 },\n large: { maxWidth: 900 },\n gtLarge: { minWidth: 900 + 1 },\n}\n"],
|
|
5
|
+
"mappings": "AAAO,MAAM,YAAY,CAAC,KAAK,KAAK,KAAK,GAAG;AACrC,MAAM,SAAS,CAAC,KAAK,KAAK,MAAM,IAAI;AAEpC,MAAM,QAAQ;AAAA,EAEnB,IAAI,EAAE,UAAU,KAAK;AAAA,EACrB,IAAI,EAAE,UAAU,KAAK;AAAA,EACrB,IAAI,EAAE,UAAU,IAAI;AAAA,EACpB,IAAI,EAAE,UAAU,IAAI;AAAA,EACpB,KAAK,EAAE,UAAU,IAAI;AAAA,EACrB,MAAM,EAAE,UAAU,MAAM,EAAE;AAAA,EAC1B,MAAM,EAAE,UAAU,MAAM,EAAE;AAAA,EAC1B,MAAM,EAAE,UAAU,OAAO,EAAE;AAAA,EAC3B,MAAM,EAAE,UAAU,OAAO,EAAE;AAAA,EAG3B,MAAM,EAAE,UAAU,IAAI;AAAA,EACtB,QAAQ,EAAE,UAAU,MAAM,EAAE;AAAA,EAC5B,OAAO,EAAE,UAAU,IAAI;AAAA,EACvB,SAAS,EAAE,UAAU,MAAM,EAAE;AAAA,EAC7B,QAAQ,EAAE,UAAU,IAAI;AAAA,EACxB,UAAU,EAAE,UAAU,MAAM,EAAE;AAAA,EAC9B,OAAO,EAAE,UAAU,IAAI;AAAA,EACvB,SAAS,EAAE,UAAU,MAAM,EAAE;AAC/B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { createInterFont } from "@tamagui/font-inter";
|
|
2
|
+
import { createSilkscreenFont } from "@tamagui/font-silkscreen";
|
|
3
|
+
import { shorthands } from "@tamagui/shorthands";
|
|
4
|
+
import { themes, tokens } from "@tamagui/theme-base";
|
|
5
|
+
import { animations } from "./animations";
|
|
6
|
+
import { createGenericFont } from "./createGenericFont";
|
|
7
|
+
import { media } from "./media";
|
|
8
|
+
const silkscreenFont = createSilkscreenFont();
|
|
9
|
+
const headingFont = createInterFont({
|
|
10
|
+
size: {
|
|
11
|
+
6: 15
|
|
12
|
+
},
|
|
13
|
+
transform: {
|
|
14
|
+
6: "uppercase",
|
|
15
|
+
7: "none"
|
|
16
|
+
},
|
|
17
|
+
weight: {
|
|
18
|
+
6: "400",
|
|
19
|
+
7: "700"
|
|
20
|
+
},
|
|
21
|
+
color: {
|
|
22
|
+
6: "$colorFocus",
|
|
23
|
+
7: "$color"
|
|
24
|
+
},
|
|
25
|
+
letterSpacing: {
|
|
26
|
+
5: 2,
|
|
27
|
+
6: 1,
|
|
28
|
+
7: 0,
|
|
29
|
+
8: -1,
|
|
30
|
+
9: -2,
|
|
31
|
+
10: -2,
|
|
32
|
+
12: -3,
|
|
33
|
+
14: -4,
|
|
34
|
+
15: -5
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const bodyFont = createInterFont({}, {
|
|
38
|
+
sizeSize: (size) => Math.round(size * 1.1),
|
|
39
|
+
sizeLineHeight: (size) => Math.round(size * 1.1 + (size > 20 ? 10 : 10))
|
|
40
|
+
});
|
|
41
|
+
const monoFont = createGenericFont(`"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`);
|
|
42
|
+
const config = {
|
|
43
|
+
defaultTheme: "light",
|
|
44
|
+
shouldAddPrefersColorThemes: true,
|
|
45
|
+
themeClassNameOnRoot: true,
|
|
46
|
+
animations,
|
|
47
|
+
media,
|
|
48
|
+
shorthands,
|
|
49
|
+
themes,
|
|
50
|
+
tokens,
|
|
51
|
+
fonts: {
|
|
52
|
+
heading: headingFont,
|
|
53
|
+
body: bodyFont,
|
|
54
|
+
mono: monoFont,
|
|
55
|
+
silkscreen: silkscreenFont
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
config
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=tamagui.config.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/tamagui.config.ts"],
|
|
4
|
+
"sourcesContent": ["// import { createNotoFont } from '@takeout/font-noto-emoji'\nimport { createInterFont } from '@tamagui/font-inter'\nimport { createSilkscreenFont } from '@tamagui/font-silkscreen'\nimport { shorthands } from '@tamagui/shorthands'\nimport { themes, tokens } from '@tamagui/theme-base'\n\nimport { animations } from './animations'\nimport { createGenericFont } from './createGenericFont'\nimport { media } from './media'\n\n// import { createTamagui } from 'tamagui'\n\n// const notoFont = createNotoFont()\nconst silkscreenFont = createSilkscreenFont()\nconst headingFont = createInterFont({\n size: {\n 6: 15,\n },\n transform: {\n 6: 'uppercase',\n 7: 'none',\n },\n weight: {\n 6: '400',\n 7: '700',\n },\n color: {\n 6: '$colorFocus',\n 7: '$color',\n },\n letterSpacing: {\n 5: 2,\n 6: 1,\n 7: 0,\n 8: -1,\n 9: -2,\n 10: -2,\n 12: -3,\n 14: -4,\n 15: -5,\n },\n})\nconst bodyFont = createInterFont(\n {},\n {\n sizeSize: (size) => Math.round(size * 1.1),\n sizeLineHeight: (size) => Math.round(size * 1.1 + (size > 20 ? 10 : 10)),\n }\n)\nconst monoFont = createGenericFont(\n `\"ui-monospace\", \"SFMono-Regular\", \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace`\n)\n\nexport const config = {\n defaultTheme: 'light',\n shouldAddPrefersColorThemes: true,\n themeClassNameOnRoot: true,\n animations,\n media,\n shorthands,\n themes,\n tokens,\n fonts: {\n // noto: notoFont as any,\n heading: headingFont,\n body: bodyFont,\n mono: monoFont,\n silkscreen: silkscreenFont,\n },\n}\n\n// export type Conf = typeof config\n\n// declare module 'tamagui' {\n// interface TamaguiCustomConfig extends Conf {}\n// }\n\n// export default config\n"],
|
|
5
|
+
"mappings": "AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAKA,MAAM,iBAAiB,qBAAqB;AAC5C,MAAM,cAAc,gBAAgB;AAAA,EAClC,MAAM;AAAA,IACJ,GAAG;AAAA,EACL;AAAA,EACA,WAAW;AAAA,IACT,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,OAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,eAAe;AAAA,IACb,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AACF,CAAC;AACD,MAAM,WAAW,gBACf,CAAC,GACD;AAAA,EACE,UAAU,CAAC,SAAS,KAAK,MAAM,OAAO,GAAG;AAAA,EACzC,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,QAAO,KAAK,KAAK,GAAG;AACzE,CACF;AACA,MAAM,WAAW,kBACf,4FACF;AAEO,MAAM,SAAS;AAAA,EACpB,cAAc;AAAA,EACd,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,IAEL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY;AAAA,EACd;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createAnimations } from "@tamagui/animations-reanimated";
|
|
2
|
+
const animations = createAnimations({
|
|
3
|
+
bouncy: {
|
|
4
|
+
type: "spring",
|
|
5
|
+
damping: 9,
|
|
6
|
+
mass: 0.9,
|
|
7
|
+
stiffness: 150
|
|
8
|
+
},
|
|
9
|
+
lazy: {
|
|
10
|
+
type: "spring",
|
|
11
|
+
damping: 18,
|
|
12
|
+
stiffness: 50
|
|
13
|
+
},
|
|
14
|
+
slow: {
|
|
15
|
+
type: "spring",
|
|
16
|
+
damping: 15,
|
|
17
|
+
stiffness: 40
|
|
18
|
+
},
|
|
19
|
+
quick: {
|
|
20
|
+
type: "spring",
|
|
21
|
+
damping: 20,
|
|
22
|
+
mass: 1.2,
|
|
23
|
+
stiffness: 250
|
|
24
|
+
},
|
|
25
|
+
tooltip: {
|
|
26
|
+
type: "spring",
|
|
27
|
+
damping: 10,
|
|
28
|
+
mass: 0.9,
|
|
29
|
+
stiffness: 100
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
animations
|
|
34
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { createFont } from "@tamagui/core";
|
|
4
|
+
const genericFontSizes = {
|
|
5
|
+
1: 10,
|
|
6
|
+
2: 11,
|
|
7
|
+
3: 12,
|
|
8
|
+
4: 14,
|
|
9
|
+
5: 15,
|
|
10
|
+
6: 16,
|
|
11
|
+
7: 20,
|
|
12
|
+
8: 22,
|
|
13
|
+
9: 30,
|
|
14
|
+
10: 42,
|
|
15
|
+
11: 52,
|
|
16
|
+
12: 62,
|
|
17
|
+
13: 72,
|
|
18
|
+
14: 92,
|
|
19
|
+
15: 114,
|
|
20
|
+
16: 124
|
|
21
|
+
};
|
|
22
|
+
function createGenericFont(family, font = {}) {
|
|
23
|
+
const size = font.size || genericFontSizes;
|
|
24
|
+
return createFont({
|
|
25
|
+
family,
|
|
26
|
+
size,
|
|
27
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, +v * 1.3])),
|
|
28
|
+
weight: { 0: "300" },
|
|
29
|
+
letterSpacing: { 4: 0 },
|
|
30
|
+
...font
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
__name(createGenericFont, "createGenericFont");
|
|
34
|
+
export {
|
|
35
|
+
createGenericFont
|
|
36
|
+
};
|