@tamagui/config-base 1.13.2 → 1.13.4
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-css.js +1 -35
- package/dist/cjs/animations-css.js.map +2 -2
- package/dist/cjs/animations.js +1 -57
- package/dist/cjs/animations.js.map +2 -2
- package/dist/cjs/animations.reanimated.js +1 -58
- package/dist/cjs/animations.reanimated.js.map +2 -2
- package/dist/cjs/createGenericFont.js +1 -61
- package/dist/cjs/createGenericFont.js.map +2 -2
- package/dist/cjs/index.js +1 -25
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/media.js +1 -59
- package/dist/cjs/media.js.map +2 -2
- package/dist/cjs/tamagui.config.js +1 -137
- package/dist/cjs/tamagui.config.js.map +2 -2
- package/dist/esm/animations-css.js +1 -11
- package/dist/esm/animations-css.js.map +2 -2
- package/dist/esm/animations-css.mjs +1 -11
- package/dist/esm/animations-css.mjs.map +2 -2
- package/dist/esm/animations.js +1 -33
- package/dist/esm/animations.js.map +2 -2
- package/dist/esm/animations.mjs +1 -33
- package/dist/esm/animations.mjs.map +2 -2
- package/dist/esm/animations.reanimated.js +1 -34
- package/dist/esm/animations.reanimated.js.map +2 -2
- package/dist/esm/animations.reanimated.mjs +1 -34
- package/dist/esm/animations.reanimated.mjs.map +2 -2
- package/dist/esm/createGenericFont.js +1 -37
- package/dist/esm/createGenericFont.js.map +2 -2
- package/dist/esm/createGenericFont.mjs +1 -37
- package/dist/esm/createGenericFont.mjs.map +2 -2
- package/dist/esm/index.js +1 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -8
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/media.js +1 -32
- package/dist/esm/media.js.map +2 -2
- package/dist/esm/media.mjs +1 -32
- package/dist/esm/media.mjs.map +2 -2
- package/dist/esm/tamagui.config.js +1 -112
- package/dist/esm/tamagui.config.js.map +2 -2
- package/dist/esm/tamagui.config.mjs +1 -112
- package/dist/esm/tamagui.config.mjs.map +2 -2
- package/package.json +11 -11
|
@@ -1,113 +1,2 @@
|
|
|
1
|
-
import {
|
|
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, mediaQueryDefaultActive } from "./media";
|
|
8
|
-
export * from "./animations";
|
|
9
|
-
const systemFamily = process.env.TAMAGUI_TARGET === "native" ? "Inter" : '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';
|
|
10
|
-
const silkscreenFont = createSilkscreenFont();
|
|
11
|
-
const headingFont = createInterFont(
|
|
12
|
-
{
|
|
13
|
-
size: {
|
|
14
|
-
5: 13,
|
|
15
|
-
6: 15,
|
|
16
|
-
9: 32,
|
|
17
|
-
10: 44
|
|
18
|
-
},
|
|
19
|
-
transform: {
|
|
20
|
-
6: "uppercase",
|
|
21
|
-
7: "none"
|
|
22
|
-
},
|
|
23
|
-
weight: {
|
|
24
|
-
6: "400",
|
|
25
|
-
7: "700"
|
|
26
|
-
},
|
|
27
|
-
color: {
|
|
28
|
-
6: "$colorFocus",
|
|
29
|
-
7: "$color"
|
|
30
|
-
},
|
|
31
|
-
letterSpacing: {
|
|
32
|
-
5: 2,
|
|
33
|
-
6: 1,
|
|
34
|
-
7: 0,
|
|
35
|
-
8: 0,
|
|
36
|
-
9: -1,
|
|
37
|
-
10: -1.5,
|
|
38
|
-
12: -2,
|
|
39
|
-
14: -3,
|
|
40
|
-
15: -4
|
|
41
|
-
},
|
|
42
|
-
// for native
|
|
43
|
-
face: {
|
|
44
|
-
700: { normal: "InterBold" },
|
|
45
|
-
800: { normal: "InterBold" },
|
|
46
|
-
900: { normal: "InterBold" }
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
{ sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 5)) }
|
|
50
|
-
);
|
|
51
|
-
const bodyFont = createInterFont(
|
|
52
|
-
{
|
|
53
|
-
family: systemFamily,
|
|
54
|
-
weight: {
|
|
55
|
-
1: "500",
|
|
56
|
-
7: "600"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
sizeSize: (size) => Math.round(size),
|
|
61
|
-
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 8 : 4))
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
const monoFont = createGenericFont(
|
|
65
|
-
`"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`,
|
|
66
|
-
{
|
|
67
|
-
weight: {
|
|
68
|
-
1: "500"
|
|
69
|
-
},
|
|
70
|
-
size: {
|
|
71
|
-
1: 11,
|
|
72
|
-
2: 12,
|
|
73
|
-
3: 13,
|
|
74
|
-
4: 14,
|
|
75
|
-
5: 16,
|
|
76
|
-
6: 18,
|
|
77
|
-
7: 20,
|
|
78
|
-
8: 22,
|
|
79
|
-
9: 30,
|
|
80
|
-
10: 42,
|
|
81
|
-
11: 52,
|
|
82
|
-
12: 62,
|
|
83
|
-
13: 72,
|
|
84
|
-
14: 92,
|
|
85
|
-
15: 114,
|
|
86
|
-
16: 124
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
sizeLineHeight: (x) => x * 1.5
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
const config = {
|
|
94
|
-
shouldAddPrefersColorThemes: true,
|
|
95
|
-
themeClassNameOnRoot: true,
|
|
96
|
-
animations,
|
|
97
|
-
media,
|
|
98
|
-
shorthands,
|
|
99
|
-
themes,
|
|
100
|
-
tokens,
|
|
101
|
-
fonts: {
|
|
102
|
-
// noto: notoFont as any,
|
|
103
|
-
heading: headingFont,
|
|
104
|
-
body: bodyFont,
|
|
105
|
-
mono: monoFont,
|
|
106
|
-
silkscreen: silkscreenFont
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
config.mediaQueryDefaultActive = mediaQueryDefaultActive;
|
|
110
|
-
export {
|
|
111
|
-
config
|
|
112
|
-
};
|
|
1
|
+
import{createInterFont as e}from"@tamagui/font-inter";import{createSilkscreenFont as t}from"@tamagui/font-silkscreen";import{shorthands as n}from"@tamagui/shorthands";import{themes as r,tokens as i}from"@tamagui/theme-base";import{animations as s}from"./animations";import{createGenericFont as m}from"./createGenericFont";import{media as a,mediaQueryDefaultActive as l}from"./media";export*from"./animations";const c=process.env.TAMAGUI_TARGET==="native"?"Inter":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',p=t(),d=e({size:{5:13,6:15,9:32,10:44},transform:{6:"uppercase",7:"none"},weight:{6:"400",7:"700"},color:{6:"$colorFocus",7:"$color"},letterSpacing:{5:2,6:1,7:0,8:0,9:-1,10:-1.5,12:-2,14:-3,15:-4},face:{700:{normal:"InterBold"},800:{normal:"InterBold"},900:{normal:"InterBold"}}},{sizeLineHeight:o=>Math.round(o*1.1+(o<30?10:5))}),f=e({family:c,weight:{1:"500",7:"600"}},{sizeSize:o=>Math.round(o),sizeLineHeight:o=>Math.round(o*1.1+(o>=12?8:4))}),h=m('"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',{weight:{1:"500"},size:{1:11,2:12,3:13,4:14,5:16,6:18,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124}},{sizeLineHeight:o=>o*1.5}),g={shouldAddPrefersColorThemes:!0,themeClassNameOnRoot:!0,animations:s,media:a,shorthands:n,themes:r,tokens:i,fonts:{heading:d,body:f,mono:h,silkscreen:p}};g.mediaQueryDefaultActive=l;export{g as config};
|
|
113
2
|
//# sourceMappingURL=tamagui.config.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tamagui.config.ts"],
|
|
4
4
|
"sourcesContent": ["import { 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, mediaQueryDefaultActive } from './media'\n\nexport * from './animations'\n\nconst systemFamily =\n process.env.TAMAGUI_TARGET === 'native'\n ? 'Inter'\n : '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"'\n\nconst silkscreenFont = createSilkscreenFont()\nconst headingFont = createInterFont(\n {\n size: {\n 5: 13,\n 6: 15,\n 9: 32,\n 10: 44,\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: 0,\n 9: -1,\n 10: -1.5,\n 12: -2,\n 14: -3,\n 15: -4,\n },\n // for native\n face: {\n 700: { normal: 'InterBold' },\n 800: { normal: 'InterBold' },\n 900: { normal: 'InterBold' },\n },\n },\n { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 5)) }\n)\n\nconst bodyFont = createInterFont(\n {\n family: systemFamily,\n weight: {\n 1: '500',\n 7: '600',\n },\n },\n {\n sizeSize: (size) => Math.round(size),\n sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 8 : 4)),\n }\n)\n\nconst monoFont = createGenericFont(\n `\"ui-monospace\", \"SFMono-Regular\", \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace`,\n {\n weight: {\n 1: '500',\n },\n size: {\n 1: 11,\n 2: 12,\n 3: 13,\n 4: 14,\n 5: 16,\n 6: 18,\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 },\n },\n {\n sizeLineHeight: (x) => x * 1.5,\n }\n)\n\nexport const config = {\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// @ts-ignore bad types\nconfig.mediaQueryDefaultActive = mediaQueryDefaultActive\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,mBAAAA,MAAuB,sBAChC,OAAS,wBAAAC,MAA4B,2BACrC,OAAS,cAAAC,MAAkB,sBAC3B,OAAS,UAAAC,EAAQ,UAAAC,MAAc,sBAE/B,OAAS,cAAAC,MAAkB,eAC3B,OAAS,qBAAAC,MAAyB,sBAClC,OAAS,SAAAC,EAAO,2BAAAC,MAA+B,UAE/C,WAAc,eAEd,MAAMC,EACJ,QAAQ,IAAI,iBAAmB,SAC3B,QACA,gJAEAC,EAAiBT,EAAqB,EACtCU,EAAcX,EAClB,CACE,KAAM,CACJ,EAAG,GACH,EAAG,GACH,EAAG,GACH,GAAI,EACN,EACA,UAAW,CACT,EAAG,YACH,EAAG,MACL,EACA,OAAQ,CACN,EAAG,MACH,EAAG,KACL,EACA,MAAO,CACL,EAAG,cACH,EAAG,QACL,EACA,cAAe,CACb,EAAG,EACH,EAAG,EACH,EAAG,EACH,EAAG,EACH,EAAG,GACH,GAAI,KACJ,GAAI,GACJ,GAAI,GACJ,GAAI,EACN,EAEA,KAAM,CACJ,IAAK,CAAE,OAAQ,WAAY,EAC3B,IAAK,CAAE,OAAQ,WAAY,EAC3B,IAAK,CAAE,OAAQ,WAAY,CAC7B,CACF,EACA,CAAE,eAAiBY,GAAS,KAAK,MAAMA,EAAO,KAAOA,EAAO,GAAK,GAAK,EAAE,CAAE,CAC5E,EAEMC,EAAWb,EACf,CACE,OAAQS,EACR,OAAQ,CACN,EAAG,MACH,EAAG,KACL,CACF,EACA,CACE,SAAWG,GAAS,KAAK,MAAMA,CAAI,EACnC,eAAiBA,GAAS,KAAK,MAAMA,EAAO,KAAOA,GAAQ,GAAK,EAAI,EAAE,CACxE,CACF,EAEME,EAAWR,EACf,6FACA,CACE,OAAQ,CACN,EAAG,KACL,EACA,KAAM,CACJ,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,IACJ,GAAI,GACN,CACF,EACA,CACE,eAAiBS,GAAMA,EAAI,GAC7B,CACF,EAEaC,EAAS,CACpB,4BAA6B,GAC7B,qBAAsB,GACtB,WAAAX,EACA,MAAAE,EACA,WAAAL,EACA,OAAAC,EACA,OAAAC,EACA,MAAO,CAEL,QAASO,EACT,KAAME,EACN,KAAMC,EACN,WAAYJ,CACd,CACF,EAGAM,EAAO,wBAA0BR",
|
|
6
|
+
"names": ["createInterFont", "createSilkscreenFont", "shorthands", "themes", "tokens", "animations", "createGenericFont", "media", "mediaQueryDefaultActive", "systemFamily", "silkscreenFont", "headingFont", "size", "bodyFont", "monoFont", "x", "config"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/config-base",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.4",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/animations-css": "1.13.
|
|
31
|
-
"@tamagui/animations-react-native": "1.13.
|
|
32
|
-
"@tamagui/colors": "1.13.
|
|
33
|
-
"@tamagui/core": "1.13.
|
|
34
|
-
"@tamagui/font-inter": "1.13.
|
|
35
|
-
"@tamagui/font-silkscreen": "1.13.
|
|
36
|
-
"@tamagui/react-native-media-driver": "1.13.
|
|
37
|
-
"@tamagui/shorthands": "1.13.
|
|
38
|
-
"@tamagui/theme-base": "1.13.
|
|
30
|
+
"@tamagui/animations-css": "1.13.4",
|
|
31
|
+
"@tamagui/animations-react-native": "1.13.4",
|
|
32
|
+
"@tamagui/colors": "1.13.4",
|
|
33
|
+
"@tamagui/core": "1.13.4",
|
|
34
|
+
"@tamagui/font-inter": "1.13.4",
|
|
35
|
+
"@tamagui/font-silkscreen": "1.13.4",
|
|
36
|
+
"@tamagui/react-native-media-driver": "1.13.4",
|
|
37
|
+
"@tamagui/shorthands": "1.13.4",
|
|
38
|
+
"@tamagui/theme-base": "1.13.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@tamagui/build": "1.13.
|
|
41
|
+
"@tamagui/build": "1.13.4"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|