@tamagui/config 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 -20
- 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 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -3
- 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,36 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var animations_css_exports = {};
|
|
20
|
-
__export(animations_css_exports, {
|
|
21
|
-
animations: () => animations
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(animations_css_exports);
|
|
24
|
-
var import_animations_css = require("@tamagui/animations-css");
|
|
25
|
-
const animations = (0, import_animations_css.createAnimations)({
|
|
26
|
-
bouncy: "ease-in 200ms",
|
|
27
|
-
lazy: "ease-in 600ms",
|
|
28
|
-
slow: "ease-in 500ms",
|
|
29
|
-
quick: "ease-in 100ms",
|
|
30
|
-
tooltip: "ease-in 400ms"
|
|
31
|
-
});
|
|
32
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
-
0 && (module.exports = {
|
|
34
|
-
animations
|
|
35
|
-
});
|
|
1
|
+
"use strict";var a=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var l=(e,s)=>{for(var n in s)a(e,n,{get:s[n],enumerable:!0})},p=(e,s,n,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of c(s))!r.call(e,i)&&i!==n&&a(e,i,{get:()=>s[i],enumerable:!(o=t(s,i))||o.enumerable});return e};var u=e=>p(a({},"__esModule",{value:!0}),e);var b={};l(b,{animations:()=>y});module.exports=u(b);var m=require("@tamagui/animations-css");const y=(0,m.createAnimations)({bouncy:"ease-in 200ms",lazy:"ease-in 600ms",slow:"ease-in 500ms",quick:"ease-in 100ms",tooltip:"ease-in 400ms"});0&&(module.exports={animations});
|
|
36
2
|
//# sourceMappingURL=animations.css.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.css.ts"],
|
|
4
4
|
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-css'\n\nexport const animations = createAnimations({\n bouncy: 'ease-in 200ms',\n lazy: 'ease-in 600ms',\n slow: 'ease-in 500ms',\n quick: 'ease-in 100ms',\n tooltip: 'ease-in 400ms',\n})\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAiC,mCAE1B,MAAMF,KAAa,oBAAiB,CACzC,OAAQ,gBACR,KAAM,gBACN,KAAM,gBACN,MAAO,gBACP,QAAS,eACX,CAAC",
|
|
6
|
+
"names": ["animations_css_exports", "__export", "animations", "__toCommonJS", "import_animations_css"]
|
|
7
7
|
}
|
package/dist/cjs/animations.js
CHANGED
|
@@ -1,58 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var animations_exports = {};
|
|
20
|
-
__export(animations_exports, {
|
|
21
|
-
animations: () => animations
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(animations_exports);
|
|
24
|
-
var import_animations_react_native = require("@tamagui/animations-react-native");
|
|
25
|
-
const animations = (0, import_animations_react_native.createAnimations)({
|
|
26
|
-
"100ms": {
|
|
27
|
-
type: "timing",
|
|
28
|
-
duration: 100
|
|
29
|
-
},
|
|
30
|
-
bouncy: {
|
|
31
|
-
damping: 9,
|
|
32
|
-
mass: 0.9,
|
|
33
|
-
stiffness: 150
|
|
34
|
-
},
|
|
35
|
-
lazy: {
|
|
36
|
-
damping: 18,
|
|
37
|
-
stiffness: 50
|
|
38
|
-
},
|
|
39
|
-
slow: {
|
|
40
|
-
damping: 15,
|
|
41
|
-
stiffness: 40
|
|
42
|
-
},
|
|
43
|
-
quick: {
|
|
44
|
-
damping: 20,
|
|
45
|
-
mass: 1.2,
|
|
46
|
-
stiffness: 250
|
|
47
|
-
},
|
|
48
|
-
tooltip: {
|
|
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
|
-
});
|
|
1
|
+
"use strict";var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var e=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var d=(i,s)=>{for(var t in s)a(i,t,{get:s[t],enumerable:!0})},g=(i,s,t,m)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of e(s))!p.call(i,n)&&n!==t&&a(i,n,{get:()=>s[n],enumerable:!(m=o(s,n))||m.enumerable});return i};var r=i=>g(a({},"__esModule",{value:!0}),i);var l={};d(l,{animations:()=>c});module.exports=r(l);var f=require("@tamagui/animations-react-native");const c=(0,f.createAnimations)({"100ms":{type:"timing",duration:100},bouncy:{damping:9,mass:.9,stiffness:150},lazy:{damping:18,stiffness:50},slow:{damping:15,stiffness:40},quick:{damping:20,mass:1.2,stiffness:250},tooltip:{damping:10,mass:.9,stiffness:100}});0&&(module.exports={animations});
|
|
58
2
|
//# sourceMappingURL=animations.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.ts"],
|
|
4
4
|
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-react-native'\n\nexport const animations = createAnimations({\n '100ms': {\n type: 'timing',\n duration: 100,\n },\n bouncy: {\n damping: 9,\n mass: 0.9,\n stiffness: 150,\n },\n lazy: {\n damping: 18,\n stiffness: 50,\n },\n slow: {\n damping: 15,\n stiffness: 40,\n },\n quick: {\n damping: 20,\n mass: 1.2,\n stiffness: 250,\n },\n tooltip: {\n damping: 10,\n mass: 0.9,\n stiffness: 100,\n },\n})\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAiC,4CAE1B,MAAMF,KAAa,oBAAiB,CACzC,QAAS,CACP,KAAM,SACN,SAAU,GACZ,EACA,OAAQ,CACN,QAAS,EACT,KAAM,GACN,UAAW,GACb,EACA,KAAM,CACJ,QAAS,GACT,UAAW,EACb,EACA,KAAM,CACJ,QAAS,GACT,UAAW,EACb,EACA,MAAO,CACL,QAAS,GACT,KAAM,IACN,UAAW,GACb,EACA,QAAS,CACP,QAAS,GACT,KAAM,GACN,UAAW,GACb,CACF,CAAC",
|
|
6
|
+
"names": ["animations_exports", "__export", "animations", "__toCommonJS", "import_animations_react_native"]
|
|
7
7
|
}
|
|
@@ -1,59 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var animations_reanimated_exports = {};
|
|
20
|
-
__export(animations_reanimated_exports, {
|
|
21
|
-
animations: () => animations
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(animations_reanimated_exports);
|
|
24
|
-
var import_animations_reanimated = require("@tamagui/animations-reanimated");
|
|
25
|
-
const animations = (0, import_animations_reanimated.createAnimations)({
|
|
26
|
-
bouncy: {
|
|
27
|
-
type: "spring",
|
|
28
|
-
damping: 9,
|
|
29
|
-
mass: 0.9,
|
|
30
|
-
stiffness: 150
|
|
31
|
-
},
|
|
32
|
-
lazy: {
|
|
33
|
-
type: "spring",
|
|
34
|
-
damping: 18,
|
|
35
|
-
stiffness: 50
|
|
36
|
-
},
|
|
37
|
-
slow: {
|
|
38
|
-
type: "spring",
|
|
39
|
-
damping: 15,
|
|
40
|
-
stiffness: 40
|
|
41
|
-
},
|
|
42
|
-
quick: {
|
|
43
|
-
type: "spring",
|
|
44
|
-
damping: 20,
|
|
45
|
-
mass: 1.2,
|
|
46
|
-
stiffness: 250
|
|
47
|
-
},
|
|
48
|
-
tooltip: {
|
|
49
|
-
type: "spring",
|
|
50
|
-
damping: 10,
|
|
51
|
-
mass: 0.9,
|
|
52
|
-
stiffness: 100
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
-
0 && (module.exports = {
|
|
57
|
-
animations
|
|
58
|
-
});
|
|
1
|
+
"use strict";var t=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var o=(i,s)=>{for(var p in s)t(i,p,{get:s[p],enumerable:!0})},r=(i,s,p,a)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of f(s))!g.call(i,n)&&n!==p&&t(i,n,{get:()=>s[n],enumerable:!(a=m(s,n))||a.enumerable});return i};var y=i=>r(t({},"__esModule",{value:!0}),i);var c={};o(c,{animations:()=>d});module.exports=y(c);var e=require("@tamagui/animations-reanimated");const d=(0,e.createAnimations)({bouncy:{type:"spring",damping:9,mass:.9,stiffness:150},lazy:{type:"spring",damping:18,stiffness:50},slow:{type:"spring",damping:15,stiffness:40},quick:{type:"spring",damping:20,mass:1.2,stiffness:250},tooltip:{type:"spring",damping:10,mass:.9,stiffness:100}});0&&(module.exports={animations});
|
|
59
2
|
//# sourceMappingURL=animations.reanimated.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.reanimated.ts"],
|
|
4
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": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAiC,0CAE1B,MAAMF,KAAa,oBAAiB,CACzC,OAAQ,CACN,KAAM,SACN,QAAS,EACT,KAAM,GACN,UAAW,GACb,EACA,KAAM,CACJ,KAAM,SACN,QAAS,GACT,UAAW,EACb,EACA,KAAM,CACJ,KAAM,SACN,QAAS,GACT,UAAW,EACb,EACA,MAAO,CACL,KAAM,SACN,QAAS,GACT,KAAM,IACN,UAAW,GACb,EACA,QAAS,CACP,KAAM,SACN,QAAS,GACT,KAAM,GACN,UAAW,GACb,CACF,CAAC",
|
|
6
|
+
"names": ["animations_reanimated_exports", "__export", "animations", "__toCommonJS", "import_animations_reanimated"]
|
|
7
7
|
}
|
|
@@ -1,62 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var createGenericFont_exports = {};
|
|
20
|
-
__export(createGenericFont_exports, {
|
|
21
|
-
createGenericFont: () => createGenericFont
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(createGenericFont_exports);
|
|
24
|
-
var import_web = require("@tamagui/web");
|
|
25
|
-
const genericFontSizes = {
|
|
26
|
-
1: 10,
|
|
27
|
-
2: 11,
|
|
28
|
-
3: 12,
|
|
29
|
-
4: 14,
|
|
30
|
-
5: 15,
|
|
31
|
-
6: 16,
|
|
32
|
-
7: 20,
|
|
33
|
-
8: 22,
|
|
34
|
-
9: 30,
|
|
35
|
-
10: 42,
|
|
36
|
-
11: 52,
|
|
37
|
-
12: 62,
|
|
38
|
-
13: 72,
|
|
39
|
-
14: 92,
|
|
40
|
-
15: 114,
|
|
41
|
-
16: 124
|
|
42
|
-
};
|
|
43
|
-
function createGenericFont(family, font = {}, {
|
|
44
|
-
sizeLineHeight = (val) => val * 1.35
|
|
45
|
-
} = {}) {
|
|
46
|
-
const size = font.size || genericFontSizes;
|
|
47
|
-
return (0, import_web.createFont)({
|
|
48
|
-
family,
|
|
49
|
-
size,
|
|
50
|
-
lineHeight: Object.fromEntries(
|
|
51
|
-
Object.entries(size).map(([k, v]) => [k, sizeLineHeight(+v)])
|
|
52
|
-
),
|
|
53
|
-
weight: { 0: "300" },
|
|
54
|
-
letterSpacing: { 4: 0 },
|
|
55
|
-
...font
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
-
0 && (module.exports = {
|
|
60
|
-
createGenericFont
|
|
61
|
-
});
|
|
1
|
+
"use strict";var o=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},z=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of g(e))!m.call(t,i)&&i!==r&&o(t,i,{get:()=>e[i],enumerable:!(n=a(e,i))||n.enumerable});return t};var F=t=>z(o({},"__esModule",{value:!0}),t);var l={};p(l,{createGenericFont:()=>b});module.exports=F(l);var s=require("@tamagui/web");const f={1:10,2:11,3:12,4:14,5:15,6:16,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124};function b(t,e={},{sizeLineHeight:r=n=>n*1.35}={}){const n=e.size||f;return(0,s.createFont)({family:t,size:n,lineHeight:Object.fromEntries(Object.entries(n).map(([i,c])=>[i,r(+c)])),weight:{0:"300"},letterSpacing:{4:0},...e})}0&&(module.exports={createGenericFont});
|
|
62
2
|
//# sourceMappingURL=createGenericFont.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createGenericFont.ts"],
|
|
4
4
|
"sourcesContent": ["import { GenericFont, createFont } from '@tamagui/web'\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 {\n sizeLineHeight = (val) => val * 1.35,\n }: {\n sizeLineHeight?: (val: number) => number\n } = {}\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, sizeLineHeight(+v)])\n ) as typeof size,\n weight: { 0: '300' },\n letterSpacing: { 4: 0 },\n ...(font as any),\n })\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,uBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAwC,wBAExC,MAAMC,EAAmB,CACvB,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,EAEO,SAASH,EACdI,EACAC,EAAmB,CAAC,EACpB,CACE,eAAAC,EAAkBC,GAAQA,EAAM,IAClC,EAEI,CAAC,EACF,CACH,MAAMC,EAAOH,EAAK,MAAQF,EAC1B,SAAO,cAAW,CAChB,OAAAC,EACA,KAAAI,EACA,WAAY,OAAO,YACjB,OAAO,QAAQA,CAAI,EAAE,IAAI,CAAC,CAACC,EAAGC,CAAC,IAAM,CAACD,EAAGH,EAAe,CAACI,CAAC,CAAC,CAAC,CAC9D,EACA,OAAQ,CAAE,EAAG,KAAM,EACnB,cAAe,CAAE,EAAG,CAAE,EACtB,GAAIL,CACN,CAAC,CACH",
|
|
6
|
+
"names": ["createGenericFont_exports", "__export", "createGenericFont", "__toCommonJS", "import_web", "genericFontSizes", "family", "font", "sizeLineHeight", "val", "size", "k", "v"]
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(src_exports);
|
|
18
|
-
__reExport(src_exports, require("./tamagui.config"), module.exports);
|
|
19
|
-
__reExport(src_exports, require("./media"), module.exports);
|
|
20
|
-
__reExport(src_exports, require("./createGenericFont"), module.exports);
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,r,p,x)=>{if(r&&typeof r=="object"||typeof r=="function")for(let m of c(r))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>r[m],enumerable:!(x=b(r,m))||x.enumerable});return f},e=(f,r,p)=>(t(f,r,"default"),p&&t(p,r,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);e(o,require("./tamagui.config"),module.exports);e(o,require("./media"),module.exports);e(o,require("./createGenericFont"),module.exports);
|
|
21
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
4
|
"sourcesContent": ["export * from './tamagui.config'\nexport * from './media'\nexport * from './createGenericFont'\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,4BAAd,gBACAE,EAAAF,EAAc,mBADd,gBAEAE,EAAAF,EAAc,+BAFd",
|
|
6
|
+
"names": ["src_exports", "__toCommonJS", "__reExport"]
|
|
7
7
|
}
|
package/dist/cjs/media.js
CHANGED
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var media_exports = {};
|
|
20
|
-
__export(media_exports, {
|
|
21
|
-
demoMedia: () => demoMedia,
|
|
22
|
-
media: () => media,
|
|
23
|
-
mediaQueryDefaultActive: () => mediaQueryDefaultActive,
|
|
24
|
-
widths: () => widths
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(media_exports);
|
|
27
|
-
var import_react_native_media_driver = require("@tamagui/react-native-media-driver");
|
|
28
|
-
const demoMedia = [500, 620, 780, 900];
|
|
29
|
-
const widths = [660, 800, 1020, 1280];
|
|
30
|
-
const media = (0, import_react_native_media_driver.createMedia)({
|
|
31
|
-
// for site
|
|
32
|
-
xl: { maxWidth: 1650 },
|
|
33
|
-
lg: { maxWidth: 1280 },
|
|
34
|
-
md: { maxWidth: 1020 },
|
|
35
|
-
sm: { maxWidth: 800 },
|
|
36
|
-
xs: { maxWidth: 660 },
|
|
37
|
-
xxs: { maxWidth: 390 },
|
|
38
|
-
gtXs: { minWidth: 660 + 1 },
|
|
39
|
-
gtSm: { minWidth: 800 + 1 },
|
|
40
|
-
gtMd: { minWidth: 1020 + 1 },
|
|
41
|
-
gtLg: { minWidth: 1280 + 1 },
|
|
42
|
-
gtXl: { minWidth: 1650 + 1 }
|
|
43
|
-
});
|
|
44
|
-
const mediaQueryDefaultActive = {
|
|
45
|
-
xl: true,
|
|
46
|
-
lg: true,
|
|
47
|
-
md: true,
|
|
48
|
-
sm: true,
|
|
49
|
-
xs: true,
|
|
50
|
-
// false
|
|
51
|
-
xxs: false
|
|
52
|
-
};
|
|
53
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
-
0 && (module.exports = {
|
|
55
|
-
demoMedia,
|
|
56
|
-
media,
|
|
57
|
-
mediaQueryDefaultActive,
|
|
58
|
-
widths
|
|
59
|
-
});
|
|
1
|
+
"use strict";var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var o=(i,t)=>{for(var d in t)e(i,d,{get:t[d],enumerable:!0})},W=(i,t,d,x)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of s(t))!h.call(i,m)&&m!==d&&e(i,m,{get:()=>t[m],enumerable:!(x=r(t,m))||x.enumerable});return i};var n=i=>W(e({},"__esModule",{value:!0}),i);var p={};o(p,{demoMedia:()=>g,media:()=>u,mediaQueryDefaultActive:()=>c,widths:()=>l});module.exports=n(p);var a=require("@tamagui/react-native-media-driver");const g=[500,620,780,900],l=[660,800,1020,1280],u=(0,a.createMedia)({xl:{maxWidth:1650},lg:{maxWidth:1280},md:{maxWidth:1020},sm:{maxWidth:800},xs:{maxWidth:660},xxs:{maxWidth:390},gtXs:{minWidth:660+1},gtSm:{minWidth:800+1},gtMd:{minWidth:1020+1},gtLg:{minWidth:1280+1},gtXl:{minWidth:1650+1}}),c={xl:!0,lg:!0,md:!0,sm:!0,xs:!0,xxs:!1};0&&(module.exports={demoMedia,media,mediaQueryDefaultActive,widths});
|
|
60
2
|
//# sourceMappingURL=media.js.map
|
package/dist/cjs/media.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/media.ts"],
|
|
4
4
|
"sourcesContent": ["import { createMedia } from '@tamagui/react-native-media-driver'\n\nexport const demoMedia = [500, 620, 780, 900]\nexport const widths = [660, 800, 1020, 1280]\n\n// note order is important!\n// earlier defined = less important\n\nexport const media = createMedia({\n // for site\n xl: { maxWidth: 1650 },\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 gtXl: { minWidth: 1650 + 1 },\n})\n\n// note all the non \"gt\" ones should be true to start to match mobile-first\n// were aiming for \"xs\" to be the default to \"gtXs\" true too\nexport const mediaQueryDefaultActive = {\n xl: true,\n lg: true,\n md: true,\n sm: true,\n xs: true,\n // false\n xxs: false,\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,EAAA,UAAAC,EAAA,4BAAAC,EAAA,WAAAC,IAAA,eAAAC,EAAAN,GAAA,IAAAO,EAA4B,8CAErB,MAAML,EAAY,CAAC,IAAK,IAAK,IAAK,GAAG,EAC/BG,EAAS,CAAC,IAAK,IAAK,KAAM,IAAI,EAK9BF,KAAQ,eAAY,CAE/B,GAAI,CAAE,SAAU,IAAK,EACrB,GAAI,CAAE,SAAU,IAAK,EACrB,GAAI,CAAE,SAAU,IAAK,EACrB,GAAI,CAAE,SAAU,GAAI,EACpB,GAAI,CAAE,SAAU,GAAI,EACpB,IAAK,CAAE,SAAU,GAAI,EACrB,KAAM,CAAE,SAAU,IAAM,CAAE,EAC1B,KAAM,CAAE,SAAU,IAAM,CAAE,EAC1B,KAAM,CAAE,SAAU,KAAO,CAAE,EAC3B,KAAM,CAAE,SAAU,KAAO,CAAE,EAC3B,KAAM,CAAE,SAAU,KAAO,CAAE,CAC7B,CAAC,EAIYC,EAA0B,CACrC,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GAEJ,IAAK,EACP",
|
|
6
|
+
"names": ["media_exports", "__export", "demoMedia", "media", "mediaQueryDefaultActive", "widths", "__toCommonJS", "import_react_native_media_driver"]
|
|
7
7
|
}
|
|
@@ -1,138 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var tamagui_config_exports = {};
|
|
21
|
-
__export(tamagui_config_exports, {
|
|
22
|
-
config: () => config
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(tamagui_config_exports);
|
|
25
|
-
var import_font_inter = require("@tamagui/font-inter");
|
|
26
|
-
var import_font_silkscreen = require("@tamagui/font-silkscreen");
|
|
27
|
-
var import_shorthands = require("@tamagui/shorthands");
|
|
28
|
-
var import_themes = require("@tamagui/themes");
|
|
29
|
-
var import_animations = require("./animations");
|
|
30
|
-
var import_createGenericFont = require("./createGenericFont");
|
|
31
|
-
var import_media = require("./media");
|
|
32
|
-
__reExport(tamagui_config_exports, require("./animations"), module.exports);
|
|
33
|
-
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"';
|
|
34
|
-
const silkscreenFont = (0, import_font_silkscreen.createSilkscreenFont)();
|
|
35
|
-
const headingFont = (0, import_font_inter.createInterFont)(
|
|
36
|
-
{
|
|
37
|
-
size: {
|
|
38
|
-
5: 13,
|
|
39
|
-
6: 15,
|
|
40
|
-
9: 32,
|
|
41
|
-
10: 44
|
|
42
|
-
},
|
|
43
|
-
transform: {
|
|
44
|
-
6: "uppercase",
|
|
45
|
-
7: "none"
|
|
46
|
-
},
|
|
47
|
-
weight: {
|
|
48
|
-
6: "400",
|
|
49
|
-
7: "700"
|
|
50
|
-
},
|
|
51
|
-
color: {
|
|
52
|
-
6: "$colorFocus",
|
|
53
|
-
7: "$color"
|
|
54
|
-
},
|
|
55
|
-
letterSpacing: {
|
|
56
|
-
5: 2,
|
|
57
|
-
6: 1,
|
|
58
|
-
7: 0,
|
|
59
|
-
8: 0,
|
|
60
|
-
9: -1,
|
|
61
|
-
10: -1.5,
|
|
62
|
-
12: -2,
|
|
63
|
-
14: -3,
|
|
64
|
-
15: -4
|
|
65
|
-
},
|
|
66
|
-
// for native
|
|
67
|
-
face: {
|
|
68
|
-
700: { normal: "InterBold" },
|
|
69
|
-
800: { normal: "InterBold" },
|
|
70
|
-
900: { normal: "InterBold" }
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{ sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 5)) }
|
|
74
|
-
);
|
|
75
|
-
const bodyFont = (0, import_font_inter.createInterFont)(
|
|
76
|
-
{
|
|
77
|
-
family: systemFamily,
|
|
78
|
-
weight: {
|
|
79
|
-
1: "500",
|
|
80
|
-
7: "600"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
sizeSize: (size) => Math.round(size),
|
|
85
|
-
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 8 : 4))
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
const monoFont = (0, import_createGenericFont.createGenericFont)(
|
|
89
|
-
`"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`,
|
|
90
|
-
{
|
|
91
|
-
weight: {
|
|
92
|
-
1: "500"
|
|
93
|
-
},
|
|
94
|
-
size: {
|
|
95
|
-
1: 11,
|
|
96
|
-
2: 12,
|
|
97
|
-
3: 13,
|
|
98
|
-
4: 14,
|
|
99
|
-
5: 16,
|
|
100
|
-
6: 18,
|
|
101
|
-
7: 20,
|
|
102
|
-
8: 22,
|
|
103
|
-
9: 30,
|
|
104
|
-
10: 42,
|
|
105
|
-
11: 52,
|
|
106
|
-
12: 62,
|
|
107
|
-
13: 72,
|
|
108
|
-
14: 92,
|
|
109
|
-
15: 114,
|
|
110
|
-
16: 124
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
sizeLineHeight: (x) => x * 1.5
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
const config = {
|
|
118
|
-
shouldAddPrefersColorThemes: true,
|
|
119
|
-
themeClassNameOnRoot: true,
|
|
120
|
-
animations: import_animations.animations,
|
|
121
|
-
themes: import_themes.themes,
|
|
122
|
-
media: import_media.media,
|
|
123
|
-
shorthands: import_shorthands.shorthands,
|
|
124
|
-
tokens: import_themes.tokens,
|
|
125
|
-
fonts: {
|
|
126
|
-
// noto: notoFont as any,
|
|
127
|
-
heading: headingFont,
|
|
128
|
-
body: bodyFont,
|
|
129
|
-
mono: monoFont,
|
|
130
|
-
silkscreen: silkscreenFont
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
config.mediaQueryDefaultActive = import_media.mediaQueryDefaultActive;
|
|
134
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
135
|
-
0 && (module.exports = {
|
|
136
|
-
config
|
|
137
|
-
});
|
|
1
|
+
"use strict";var a=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var I=(o,e)=>{for(var t in e)a(o,t,{get:e[t],enumerable:!0})},m=(o,e,t,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of y(e))!S.call(o,n)&&n!==t&&a(o,n,{get:()=>e[n],enumerable:!(p=F(e,n))||p.enumerable});return o},l=(o,e,t)=>(m(o,e,"default"),t&&m(t,e,"default"));var M=o=>m(a({},"__esModule",{value:!0}),o);var s={};I(s,{config:()=>u});module.exports=M(s);var c=require("@tamagui/font-inter"),d=require("@tamagui/font-silkscreen"),f=require("@tamagui/shorthands"),r=require("@tamagui/themes"),h=require("./animations"),g=require("./createGenericFont"),i=require("./media");l(s,require("./animations"),module.exports);const A=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"',b=(0,d.createSilkscreenFont)(),k=(0,c.createInterFont)({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))}),v=(0,c.createInterFont)({family:A,weight:{1:"500",7:"600"}},{sizeSize:o=>Math.round(o),sizeLineHeight:o=>Math.round(o*1.1+(o>=12?8:4))}),z=(0,g.createGenericFont)('"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}),u={shouldAddPrefersColorThemes:!0,themeClassNameOnRoot:!0,animations:h.animations,themes:r.themes,media:i.media,shorthands:f.shorthands,tokens:r.tokens,fonts:{heading:k,body:v,mono:z,silkscreen:b}};u.mediaQueryDefaultActive=i.mediaQueryDefaultActive;0&&(module.exports={config});
|
|
138
2
|
//# sourceMappingURL=tamagui.config.js.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/themes'\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 themes,\n media,\n shorthands,\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": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "2dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAgC,+BAChCC,EAAqC,oCACrCC,EAA2B,+BAC3BC,EAA+B,2BAE/BC,EAA2B,wBAC3BC,EAAkC,+BAClCC,EAA+C,mBAE/CC,EAAAX,EAAc,wBATd,gBAWA,MAAMY,EACJ,QAAQ,IAAI,iBAAmB,SAC3B,QACA,gJAEAC,KAAiB,wBAAqB,EACtCC,KAAc,mBAClB,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,eAAiBC,GAAS,KAAK,MAAMA,EAAO,KAAOA,EAAO,GAAK,GAAK,EAAE,CAAE,CAC5E,EAEMC,KAAW,mBACf,CACE,OAAQJ,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,KAAW,qBACf,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,eAAiBC,GAAMA,EAAI,GAC7B,CACF,EAEahB,EAAS,CACpB,4BAA6B,GAC7B,qBAAsB,GACtB,wBACA,gBACA,cACA,wBACA,gBACA,MAAO,CAEL,QAASY,EACT,KAAME,EACN,KAAMC,EACN,WAAYJ,CACd,CACF,EAGAX,EAAO,wBAA0B",
|
|
6
|
+
"names": ["tamagui_config_exports", "__export", "config", "__toCommonJS", "import_font_inter", "import_font_silkscreen", "import_shorthands", "import_themes", "import_animations", "import_createGenericFont", "import_media", "__reExport", "systemFamily", "silkscreenFont", "headingFont", "size", "bodyFont", "monoFont", "x"]
|
|
7
7
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const animations = createAnimations({
|
|
3
|
-
bouncy: "ease-in 200ms",
|
|
4
|
-
lazy: "ease-in 600ms",
|
|
5
|
-
slow: "ease-in 500ms",
|
|
6
|
-
quick: "ease-in 100ms",
|
|
7
|
-
tooltip: "ease-in 400ms"
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
animations
|
|
11
|
-
};
|
|
1
|
+
import{createAnimations as s}from"@tamagui/animations-css";const i=s({bouncy:"ease-in 200ms",lazy:"ease-in 600ms",slow:"ease-in 500ms",quick:"ease-in 100ms",tooltip:"ease-in 400ms"});export{i as animations};
|
|
12
2
|
//# sourceMappingURL=animations.css.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.css.ts"],
|
|
4
4
|
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-css'\n\nexport const animations = createAnimations({\n bouncy: 'ease-in 200ms',\n lazy: 'ease-in 600ms',\n slow: 'ease-in 500ms',\n quick: 'ease-in 100ms',\n tooltip: 'ease-in 400ms',\n})\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,oBAAAA,MAAwB,0BAE1B,MAAMC,EAAaD,EAAiB,CACzC,OAAQ,gBACR,KAAM,gBACN,KAAM,gBACN,MAAO,gBACP,QAAS,eACX,CAAC",
|
|
6
|
+
"names": ["createAnimations", "animations"]
|
|
7
7
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const animations = createAnimations({
|
|
3
|
-
bouncy: "ease-in 200ms",
|
|
4
|
-
lazy: "ease-in 600ms",
|
|
5
|
-
slow: "ease-in 500ms",
|
|
6
|
-
quick: "ease-in 100ms",
|
|
7
|
-
tooltip: "ease-in 400ms"
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
animations
|
|
11
|
-
};
|
|
1
|
+
import{createAnimations as s}from"@tamagui/animations-css";const i=s({bouncy:"ease-in 200ms",lazy:"ease-in 600ms",slow:"ease-in 500ms",quick:"ease-in 100ms",tooltip:"ease-in 400ms"});export{i as animations};
|
|
12
2
|
//# sourceMappingURL=animations.css.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/animations.css.ts"],
|
|
4
4
|
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-css'\n\nexport const animations = createAnimations({\n bouncy: 'ease-in 200ms',\n lazy: 'ease-in 600ms',\n slow: 'ease-in 500ms',\n quick: 'ease-in 100ms',\n tooltip: 'ease-in 400ms',\n})\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,oBAAAA,MAAwB,0BAE1B,MAAMC,EAAaD,EAAiB,CACzC,OAAQ,gBACR,KAAM,gBACN,KAAM,gBACN,MAAO,gBACP,QAAS,eACX,CAAC",
|
|
6
|
+
"names": ["createAnimations", "animations"]
|
|
7
7
|
}
|