@tamagui/config 1.114.3 → 1.115.0
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 → animations.cjs} +16 -11
- package/dist/cjs/{animations.css.js → animations.css.cjs} +16 -11
- package/dist/cjs/{animations.reanimated.js → animations.reanimated.cjs} +16 -11
- package/dist/cjs/animationsCSS.cjs +41 -0
- package/dist/cjs/{animationsReactNative.js → animationsReactNative.cjs} +16 -11
- package/dist/cjs/{animationsReanimated.js → animationsReanimated.cjs} +16 -11
- package/dist/cjs/{config.js → config.cjs} +21 -13
- package/dist/cjs/{createGenericFont.js → createGenericFont.cjs} +24 -17
- package/dist/cjs/fonts.cjs +115 -0
- package/dist/cjs/index.cjs +40 -0
- package/dist/cjs/index.reanimated.cjs +35 -0
- package/dist/cjs/media.cjs +76 -0
- package/dist/cjs/v2-base.cjs +47 -0
- package/dist/cjs/v2-native.cjs +31 -0
- package/dist/cjs/v2-native.cjs.map +6 -0
- package/dist/cjs/v2-reanimated.cjs +31 -0
- package/dist/cjs/v2.cjs +31 -0
- package/dist/cjs/v2.native.cjs +31 -0
- package/dist/cjs/v2.native.cjs.map +6 -0
- package/dist/cjs/v3-animations.cjs +26 -0
- package/dist/cjs/v3-animations.native.cjs +26 -0
- package/dist/cjs/v3-animations.native.cjs.map +6 -0
- package/dist/cjs/v3.cjs +65 -0
- package/package.json +19 -18
- package/dist/cjs/animationsCSS.js +0 -35
- package/dist/cjs/fonts.js +0 -106
- package/dist/cjs/index.js +0 -31
- package/dist/cjs/index.reanimated.js +0 -28
- package/dist/cjs/media.js +0 -46
- package/dist/cjs/v2-base.js +0 -38
- package/dist/cjs/v2-reanimated.js +0 -25
- package/dist/cjs/v2.js +0 -25
- package/dist/cjs/v3-animations.js +0 -21
- package/dist/cjs/v3.js +0 -49
- /package/dist/cjs/{animations.js.map → animations.cjs.map} +0 -0
- /package/dist/cjs/{animations.css.js.map → animations.css.cjs.map} +0 -0
- /package/dist/cjs/{animations.reanimated.js.map → animations.reanimated.cjs.map} +0 -0
- /package/dist/cjs/{animationsCSS.js.map → animationsCSS.cjs.map} +0 -0
- /package/dist/cjs/{animationsReactNative.js.map → animationsReactNative.cjs.map} +0 -0
- /package/dist/cjs/{animationsReanimated.js.map → animationsReanimated.cjs.map} +0 -0
- /package/dist/cjs/{config.js.map → config.cjs.map} +0 -0
- /package/dist/cjs/{createGenericFont.js.map → createGenericFont.cjs.map} +0 -0
- /package/dist/cjs/{fonts.js.map → fonts.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{index.reanimated.js.map → index.reanimated.cjs.map} +0 -0
- /package/dist/cjs/{media.js.map → media.cjs.map} +0 -0
- /package/dist/cjs/{v2-base.js.map → v2-base.cjs.map} +0 -0
- /package/dist/cjs/{v2-reanimated.js.map → v2-reanimated.cjs.map} +0 -0
- /package/dist/cjs/{v2.js.map → v2.cjs.map} +0 -0
- /package/dist/cjs/{v3-animations.js.map → v3-animations.cjs.map} +0 -0
- /package/dist/cjs/{v3.js.map → v3.cjs.map} +0 -0
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var animations_exports = {};
|
|
16
22
|
__export(animations_exports, {
|
|
17
23
|
animations: () => animations
|
|
@@ -51,5 +57,4 @@ const animations = (0, import_animations_react_native.createAnimations)({
|
|
|
51
57
|
mass: 0.9,
|
|
52
58
|
stiffness: 100
|
|
53
59
|
}
|
|
54
|
-
});
|
|
55
|
-
//# sourceMappingURL=animations.js.map
|
|
60
|
+
});
|
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var animations_css_exports = {};
|
|
16
22
|
__export(animations_css_exports, {
|
|
17
23
|
animations: () => animations
|
|
@@ -26,5 +32,4 @@ const animations = (0, import_animations_css.createAnimations)({
|
|
|
26
32
|
medium: "ease-in 300ms",
|
|
27
33
|
quick: "ease-in 100ms",
|
|
28
34
|
tooltip: "ease-in 400ms"
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=animations.css.js.map
|
|
35
|
+
});
|
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var animations_reanimated_exports = {};
|
|
16
22
|
__export(animations_reanimated_exports, {
|
|
17
23
|
animations: () => animations
|
|
@@ -56,5 +62,4 @@ const animations = (0, import_animations_moti.createAnimations)({
|
|
|
56
62
|
mass: 0.9,
|
|
57
63
|
stiffness: 100
|
|
58
64
|
}
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=animations.reanimated.js.map
|
|
65
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
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) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var animationsCSS_exports = {};
|
|
22
|
+
__export(animationsCSS_exports, {
|
|
23
|
+
animationsCSS: () => animationsCSS
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(animationsCSS_exports);
|
|
26
|
+
var import_animations_css = require("@tamagui/animations-css");
|
|
27
|
+
const smoothBezier = "cubic-bezier(0.215, 0.610, 0.355, 1.000)",
|
|
28
|
+
animationsCSS = (0, import_animations_css.createAnimations)({
|
|
29
|
+
"75ms": "ease-in 75ms",
|
|
30
|
+
"100ms": "ease-in 100ms",
|
|
31
|
+
"200ms": "ease-in 200ms",
|
|
32
|
+
bouncy: "ease-in 200ms",
|
|
33
|
+
superBouncy: "ease-in 500ms",
|
|
34
|
+
lazy: "ease-in 1000ms",
|
|
35
|
+
medium: "ease-in 300ms",
|
|
36
|
+
slow: "ease-in 500ms",
|
|
37
|
+
quick: `${smoothBezier} 400ms`,
|
|
38
|
+
quicker: `${smoothBezier} 300ms`,
|
|
39
|
+
quickest: `${smoothBezier} 200ms`,
|
|
40
|
+
tooltip: "ease-in 400ms"
|
|
41
|
+
});
|
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var animationsReactNative_exports = {};
|
|
16
22
|
__export(animationsReactNative_exports, {
|
|
17
23
|
animationsReactNative: () => animationsReactNative
|
|
@@ -86,5 +92,4 @@ const animationsReactNative = (0, import_animations_react_native.createAnimation
|
|
|
86
92
|
mass: 0.1,
|
|
87
93
|
stiffness: 380
|
|
88
94
|
}
|
|
89
|
-
});
|
|
90
|
-
//# sourceMappingURL=animationsReactNative.js.map
|
|
95
|
+
});
|
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var animationsReanimated_exports = {};
|
|
16
22
|
__export(animationsReanimated_exports, {
|
|
17
23
|
animationsReanimated: () => animationsReanimated
|
|
@@ -74,5 +80,4 @@ const animationsReanimated = (0, import_animations_moti.createAnimations)({
|
|
|
74
80
|
mass: 0.2,
|
|
75
81
|
stiffness: 300
|
|
76
82
|
}
|
|
77
|
-
});
|
|
78
|
-
//# sourceMappingURL=animationsReanimated.js.map
|
|
83
|
+
});
|
|
@@ -3,28 +3,37 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var config_exports = {};
|
|
16
22
|
__export(config_exports, {
|
|
17
23
|
configWithoutAnimations: () => configWithoutAnimations
|
|
18
24
|
});
|
|
19
25
|
module.exports = __toCommonJS(config_exports);
|
|
20
|
-
var import_shorthands = require("@tamagui/shorthands"),
|
|
26
|
+
var import_shorthands = require("@tamagui/shorthands"),
|
|
27
|
+
import_themes = require("@tamagui/themes"),
|
|
28
|
+
import_fonts = require("./fonts.cjs"),
|
|
29
|
+
import_media = require("./media.cjs");
|
|
21
30
|
const configWithoutAnimations = {
|
|
22
31
|
themes: import_themes.themes,
|
|
23
32
|
media: import_media.media,
|
|
24
33
|
shorthands: import_shorthands.shorthands,
|
|
25
34
|
tokens: import_themes.tokens,
|
|
26
35
|
fonts: import_fonts.fonts,
|
|
27
|
-
selectionStyles:
|
|
36
|
+
selectionStyles: theme => theme.color5 ? {
|
|
28
37
|
backgroundColor: theme.color5,
|
|
29
38
|
color: theme.color11
|
|
30
39
|
} : null,
|
|
@@ -34,5 +43,4 @@ const configWithoutAnimations = {
|
|
|
34
43
|
themeClassNameOnRoot: !0,
|
|
35
44
|
mediaQueryDefaultActive: import_media.mediaQueryDefaultActive
|
|
36
45
|
}
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=config.js.map
|
|
46
|
+
};
|
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var createGenericFont_exports = {};
|
|
16
22
|
__export(createGenericFont_exports, {
|
|
17
23
|
createGenericFont: () => createGenericFont
|
|
@@ -37,18 +43,19 @@ const genericFontSizes = {
|
|
|
37
43
|
16: 124
|
|
38
44
|
};
|
|
39
45
|
function createGenericFont(family, font = {}, {
|
|
40
|
-
sizeLineHeight =
|
|
46
|
+
sizeLineHeight = val => val * 1.35
|
|
41
47
|
} = {}) {
|
|
42
48
|
const size = font.size || genericFontSizes;
|
|
43
49
|
return (0, import_web.createFont)({
|
|
44
50
|
family,
|
|
45
51
|
size,
|
|
46
|
-
lineHeight: Object.fromEntries(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
letterSpacing: {
|
|
52
|
+
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, sizeLineHeight(+v)])),
|
|
53
|
+
weight: {
|
|
54
|
+
0: "300"
|
|
55
|
+
},
|
|
56
|
+
letterSpacing: {
|
|
57
|
+
4: 0
|
|
58
|
+
},
|
|
51
59
|
...font
|
|
52
60
|
});
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=createGenericFont.js.map
|
|
61
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var fonts_exports = {};
|
|
22
|
+
__export(fonts_exports, {
|
|
23
|
+
fonts: () => fonts
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(fonts_exports);
|
|
26
|
+
var import_font_inter = require("@tamagui/font-inter"),
|
|
27
|
+
import_font_silkscreen = require("@tamagui/font-silkscreen"),
|
|
28
|
+
import_createGenericFont = require("./createGenericFont.cjs");
|
|
29
|
+
const silkscreenFont = (0, import_font_silkscreen.createSilkscreenFont)(),
|
|
30
|
+
headingFont = (0, import_font_inter.createInterFont)({
|
|
31
|
+
size: {
|
|
32
|
+
5: 13,
|
|
33
|
+
6: 15,
|
|
34
|
+
9: 32,
|
|
35
|
+
10: 44
|
|
36
|
+
},
|
|
37
|
+
transform: {
|
|
38
|
+
6: "uppercase",
|
|
39
|
+
7: "none"
|
|
40
|
+
},
|
|
41
|
+
weight: {
|
|
42
|
+
6: "400",
|
|
43
|
+
7: "700"
|
|
44
|
+
},
|
|
45
|
+
color: {
|
|
46
|
+
6: "$colorFocus",
|
|
47
|
+
7: "$color"
|
|
48
|
+
},
|
|
49
|
+
letterSpacing: {
|
|
50
|
+
5: 2,
|
|
51
|
+
6: 1,
|
|
52
|
+
7: 0,
|
|
53
|
+
8: 0,
|
|
54
|
+
9: -1,
|
|
55
|
+
10: -1.5,
|
|
56
|
+
12: -2,
|
|
57
|
+
14: -3,
|
|
58
|
+
15: -4
|
|
59
|
+
},
|
|
60
|
+
// for native
|
|
61
|
+
face: {
|
|
62
|
+
700: {
|
|
63
|
+
normal: "InterBold"
|
|
64
|
+
},
|
|
65
|
+
800: {
|
|
66
|
+
normal: "InterBold"
|
|
67
|
+
},
|
|
68
|
+
900: {
|
|
69
|
+
normal: "InterBold"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
sizeLineHeight: size => Math.round(size * 1.1 + (size < 30 ? 10 : 5))
|
|
74
|
+
}),
|
|
75
|
+
bodyFont = (0, import_font_inter.createInterFont)({
|
|
76
|
+
weight: {
|
|
77
|
+
1: "400",
|
|
78
|
+
7: "600"
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
sizeSize: size => Math.round(size),
|
|
82
|
+
sizeLineHeight: size => Math.round(size * 1.1 + (size >= 12 ? 8 : 4))
|
|
83
|
+
}),
|
|
84
|
+
monoFont = (0, import_createGenericFont.createGenericFont)('"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace', {
|
|
85
|
+
weight: {
|
|
86
|
+
1: "500"
|
|
87
|
+
},
|
|
88
|
+
size: {
|
|
89
|
+
1: 11,
|
|
90
|
+
2: 12,
|
|
91
|
+
3: 13,
|
|
92
|
+
4: 14,
|
|
93
|
+
5: 16,
|
|
94
|
+
6: 18,
|
|
95
|
+
7: 20,
|
|
96
|
+
8: 22,
|
|
97
|
+
9: 30,
|
|
98
|
+
10: 42,
|
|
99
|
+
11: 52,
|
|
100
|
+
12: 62,
|
|
101
|
+
13: 72,
|
|
102
|
+
14: 92,
|
|
103
|
+
15: 114,
|
|
104
|
+
16: 124
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
sizeLineHeight: x => x * 1.5
|
|
108
|
+
}),
|
|
109
|
+
fonts = {
|
|
110
|
+
// noto: notoFont as any,
|
|
111
|
+
heading: headingFont,
|
|
112
|
+
body: bodyFont,
|
|
113
|
+
mono: monoFont,
|
|
114
|
+
silkscreen: silkscreenFont
|
|
115
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
},
|
|
18
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
|
+
value: !0
|
|
21
|
+
}), mod);
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
config: () => config,
|
|
25
|
+
configWithoutAnimations: () => import_config2.configWithoutAnimations
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(src_exports);
|
|
28
|
+
var import_themes = require("@tamagui/themes"),
|
|
29
|
+
import_animations = require("./animations.cjs"),
|
|
30
|
+
import_config = require("./config.cjs"),
|
|
31
|
+
import_config2 = require("./config.cjs");
|
|
32
|
+
__reExport(src_exports, require("./media.cjs"), module.exports);
|
|
33
|
+
__reExport(src_exports, require("./createGenericFont.cjs"), module.exports);
|
|
34
|
+
__reExport(src_exports, require("./animations.cjs"), module.exports);
|
|
35
|
+
const config = {
|
|
36
|
+
...import_config.configWithoutAnimations,
|
|
37
|
+
// fixes typescript exporting this using internal /types/ path
|
|
38
|
+
themes: import_themes.themes,
|
|
39
|
+
animations: import_animations.animations
|
|
40
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
},
|
|
18
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
|
+
value: !0
|
|
21
|
+
}), mod);
|
|
22
|
+
var index_reanimated_exports = {};
|
|
23
|
+
__export(index_reanimated_exports, {
|
|
24
|
+
config: () => config
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(index_reanimated_exports);
|
|
27
|
+
var import_animations = require("./animations.reanimated"),
|
|
28
|
+
import_config = require("./config.cjs");
|
|
29
|
+
__reExport(index_reanimated_exports, require("./media.cjs"), module.exports);
|
|
30
|
+
__reExport(index_reanimated_exports, require("./createGenericFont.cjs"), module.exports);
|
|
31
|
+
__reExport(index_reanimated_exports, require("./animations.reanimated"), module.exports);
|
|
32
|
+
const config = {
|
|
33
|
+
...import_config.configWithoutAnimations,
|
|
34
|
+
animations: import_animations.animations
|
|
35
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
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) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var media_exports = {};
|
|
22
|
+
__export(media_exports, {
|
|
23
|
+
demoMedia: () => demoMedia,
|
|
24
|
+
media: () => media,
|
|
25
|
+
mediaQueryDefaultActive: () => mediaQueryDefaultActive,
|
|
26
|
+
widths: () => widths
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(media_exports);
|
|
29
|
+
var import_react_native_media_driver = require("@tamagui/react-native-media-driver");
|
|
30
|
+
const demoMedia = [500, 620, 780, 900],
|
|
31
|
+
widths = [660, 800, 1020, 1280],
|
|
32
|
+
media = (0, import_react_native_media_driver.createMedia)({
|
|
33
|
+
// for site
|
|
34
|
+
xl: {
|
|
35
|
+
maxWidth: 1650
|
|
36
|
+
},
|
|
37
|
+
lg: {
|
|
38
|
+
maxWidth: 1280
|
|
39
|
+
},
|
|
40
|
+
md: {
|
|
41
|
+
maxWidth: 1020
|
|
42
|
+
},
|
|
43
|
+
sm: {
|
|
44
|
+
maxWidth: 800
|
|
45
|
+
},
|
|
46
|
+
xs: {
|
|
47
|
+
maxWidth: 660
|
|
48
|
+
},
|
|
49
|
+
xxs: {
|
|
50
|
+
maxWidth: 390
|
|
51
|
+
},
|
|
52
|
+
gtXs: {
|
|
53
|
+
minWidth: 661
|
|
54
|
+
},
|
|
55
|
+
gtSm: {
|
|
56
|
+
minWidth: 801
|
|
57
|
+
},
|
|
58
|
+
gtMd: {
|
|
59
|
+
minWidth: 1021
|
|
60
|
+
},
|
|
61
|
+
gtLg: {
|
|
62
|
+
minWidth: 1281
|
|
63
|
+
},
|
|
64
|
+
gtXl: {
|
|
65
|
+
minWidth: 1651
|
|
66
|
+
}
|
|
67
|
+
}),
|
|
68
|
+
mediaQueryDefaultActive = {
|
|
69
|
+
xl: !0,
|
|
70
|
+
lg: !0,
|
|
71
|
+
md: !0,
|
|
72
|
+
sm: !0,
|
|
73
|
+
xs: !0,
|
|
74
|
+
// false
|
|
75
|
+
xxs: !1
|
|
76
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var v2_base_exports = {};
|
|
22
|
+
__export(v2_base_exports, {
|
|
23
|
+
config: () => config
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(v2_base_exports);
|
|
26
|
+
var import_shorthands = require("@tamagui/shorthands"),
|
|
27
|
+
import_v2 = require("@tamagui/themes/v2"),
|
|
28
|
+
import_v2_themes = require("@tamagui/themes/v2-themes"),
|
|
29
|
+
import_fonts = require("./fonts.cjs"),
|
|
30
|
+
import_media = require("./media.cjs");
|
|
31
|
+
const config = {
|
|
32
|
+
themes: import_v2_themes.themes,
|
|
33
|
+
media: import_media.media,
|
|
34
|
+
shorthands: import_shorthands.shorthands,
|
|
35
|
+
tokens: import_v2.tokens,
|
|
36
|
+
fonts: import_fonts.fonts,
|
|
37
|
+
selectionStyles: theme => theme.color5 ? {
|
|
38
|
+
backgroundColor: theme.color5,
|
|
39
|
+
color: theme.color11
|
|
40
|
+
} : null,
|
|
41
|
+
settings: {
|
|
42
|
+
defaultFont: "body",
|
|
43
|
+
shouldAddPrefersColorThemes: !0,
|
|
44
|
+
themeClassNameOnRoot: !0,
|
|
45
|
+
mediaQueryDefaultActive: import_media.mediaQueryDefaultActive
|
|
46
|
+
}
|
|
47
|
+
};
|