@tamagui/config-base 1.0.11 → 1.0.12
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/package.json +11 -11
- package/types/tamagui.config.d.ts +29 -1
- package/dist/cjs/animations.css.js +0 -36
- package/dist/cjs/animations.css.js.map +0 -7
- package/dist/esm/animations.css.js +0 -12
- package/dist/esm/animations.css.js.map +0 -7
- package/dist/jsx/animations-css.js +0 -12
- package/dist/jsx/animations-css.js.map +0 -7
- package/dist/jsx/animations.js +0 -30
- package/dist/jsx/animations.js.map +0 -7
- package/dist/jsx/animations.reanimated.js +0 -35
- package/dist/jsx/animations.reanimated.js.map +0 -7
- package/dist/jsx/createGenericFont.js +0 -36
- package/dist/jsx/createGenericFont.js.map +0 -7
- package/dist/jsx/index.js +0 -5
- package/dist/jsx/index.js.map +0 -7
- package/dist/jsx/media.js +0 -29
- package/dist/jsx/media.js.map +0 -7
- package/dist/jsx/tamagui.config.js +0 -86
- package/dist/jsx/tamagui.config.js.map +0 -7
- package/types/animations.css.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/config-base",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@tamagui/animations-css": "^1.0.
|
|
30
|
-
"@tamagui/animations-react-native": "^1.0.
|
|
31
|
-
"@tamagui/colors": "^1.0.
|
|
32
|
-
"@tamagui/core": "^1.0.
|
|
33
|
-
"@tamagui/font-inter": "^1.0.
|
|
34
|
-
"@tamagui/font-silkscreen": "^1.0.
|
|
35
|
-
"@tamagui/react-native-media-driver": "^1.0.
|
|
36
|
-
"@tamagui/shorthands": "^1.0.
|
|
37
|
-
"@tamagui/theme-base": "^1.0.
|
|
29
|
+
"@tamagui/animations-css": "^1.0.12",
|
|
30
|
+
"@tamagui/animations-react-native": "^1.0.12",
|
|
31
|
+
"@tamagui/colors": "^1.0.12",
|
|
32
|
+
"@tamagui/core": "^1.0.12",
|
|
33
|
+
"@tamagui/font-inter": "^1.0.12",
|
|
34
|
+
"@tamagui/font-silkscreen": "^1.0.12",
|
|
35
|
+
"@tamagui/react-native-media-driver": "^1.0.12",
|
|
36
|
+
"@tamagui/shorthands": "^1.0.12",
|
|
37
|
+
"@tamagui/theme-base": "^1.0.12"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@tamagui/build": "^1.0.
|
|
40
|
+
"@tamagui/build": "^1.0.12"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -6485,7 +6485,35 @@ export declare const config: {
|
|
|
6485
6485
|
18: import("@tamagui/core").Variable<number>;
|
|
6486
6486
|
19: import("@tamagui/core").Variable<number>;
|
|
6487
6487
|
20: import("@tamagui/core").Variable<number>;
|
|
6488
|
-
"$-
|
|
6488
|
+
"$-0": import("@tamagui/core").Variable<number>;
|
|
6489
|
+
"$-0.25": import("@tamagui/core").Variable<number>;
|
|
6490
|
+
"$-0.5": import("@tamagui/core").Variable<number>;
|
|
6491
|
+
"$-0.75": import("@tamagui/core").Variable<number>;
|
|
6492
|
+
"$-1": import("@tamagui/core").Variable<number>;
|
|
6493
|
+
"$-1.5": import("@tamagui/core").Variable<number>;
|
|
6494
|
+
"$-2": import("@tamagui/core").Variable<number>;
|
|
6495
|
+
"$-2.5": import("@tamagui/core").Variable<number>;
|
|
6496
|
+
"$-3": import("@tamagui/core").Variable<number>;
|
|
6497
|
+
"$-3.5": import("@tamagui/core").Variable<number>;
|
|
6498
|
+
"$-4": import("@tamagui/core").Variable<number>;
|
|
6499
|
+
"$-true": import("@tamagui/core").Variable<number>;
|
|
6500
|
+
"$-4.5": import("@tamagui/core").Variable<number>;
|
|
6501
|
+
"$-5": import("@tamagui/core").Variable<number>;
|
|
6502
|
+
"$-6": import("@tamagui/core").Variable<number>;
|
|
6503
|
+
"$-7": import("@tamagui/core").Variable<number>;
|
|
6504
|
+
"$-8": import("@tamagui/core").Variable<number>;
|
|
6505
|
+
"$-9": import("@tamagui/core").Variable<number>;
|
|
6506
|
+
"$-10": import("@tamagui/core").Variable<number>;
|
|
6507
|
+
"$-11": import("@tamagui/core").Variable<number>;
|
|
6508
|
+
"$-12": import("@tamagui/core").Variable<number>;
|
|
6509
|
+
"$-13": import("@tamagui/core").Variable<number>;
|
|
6510
|
+
"$-14": import("@tamagui/core").Variable<number>;
|
|
6511
|
+
"$-15": import("@tamagui/core").Variable<number>;
|
|
6512
|
+
"$-16": import("@tamagui/core").Variable<number>;
|
|
6513
|
+
"$-17": import("@tamagui/core").Variable<number>;
|
|
6514
|
+
"$-18": import("@tamagui/core").Variable<number>;
|
|
6515
|
+
"$-19": import("@tamagui/core").Variable<number>;
|
|
6516
|
+
"$-20": import("@tamagui/core").Variable<number>;
|
|
6489
6517
|
};
|
|
6490
6518
|
size: {
|
|
6491
6519
|
0: import("@tamagui/core").Variable<number>;
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
});
|
|
36
|
-
//# sourceMappingURL=animations.css.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/animations.css.ts"],
|
|
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;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAiC;AAE1B,MAAM,iBAAa,wCAAiB;AAAA,EACzC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createAnimations } from "@tamagui/animations-css";
|
|
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
|
-
};
|
|
12
|
-
//# sourceMappingURL=animations.css.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/animations.css.ts"],
|
|
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,SAAS,wBAAwB;AAE1B,MAAM,aAAa,iBAAiB;AAAA,EACzC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createAnimations } from "@tamagui/animations-css";
|
|
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
|
-
};
|
|
12
|
-
//# sourceMappingURL=animations-css.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/animations-css.ts"],
|
|
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;AAEO,MAAM,aAAa,iBAAiB;AAAA,EACzC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AACX,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/jsx/animations.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { createAnimations } from "@tamagui/animations-react-native";
|
|
2
|
-
const animations = createAnimations({
|
|
3
|
-
bouncy: {
|
|
4
|
-
damping: 9,
|
|
5
|
-
mass: 0.9,
|
|
6
|
-
stiffness: 150
|
|
7
|
-
},
|
|
8
|
-
lazy: {
|
|
9
|
-
damping: 18,
|
|
10
|
-
stiffness: 50
|
|
11
|
-
},
|
|
12
|
-
slow: {
|
|
13
|
-
damping: 15,
|
|
14
|
-
stiffness: 40
|
|
15
|
-
},
|
|
16
|
-
quick: {
|
|
17
|
-
damping: 20,
|
|
18
|
-
mass: 1.2,
|
|
19
|
-
stiffness: 250
|
|
20
|
-
},
|
|
21
|
-
tooltip: {
|
|
22
|
-
damping: 10,
|
|
23
|
-
mass: 0.9,
|
|
24
|
-
stiffness: 100
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
animations
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=animations.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/animations.ts"],
|
|
4
|
-
"sourcesContent": ["import { createAnimations } from '@tamagui/animations-react-native'\n\nexport const animations = createAnimations({\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": "AAAA;AAEO,MAAM,aAAa,iBAAiB;AAAA,EACzC,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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.reanimated.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/animations.reanimated.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
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createFont } from "@tamagui/core";
|
|
2
|
-
const genericFontSizes = {
|
|
3
|
-
1: 10,
|
|
4
|
-
2: 11,
|
|
5
|
-
3: 12,
|
|
6
|
-
4: 14,
|
|
7
|
-
5: 15,
|
|
8
|
-
6: 16,
|
|
9
|
-
7: 20,
|
|
10
|
-
8: 22,
|
|
11
|
-
9: 30,
|
|
12
|
-
10: 42,
|
|
13
|
-
11: 52,
|
|
14
|
-
12: 62,
|
|
15
|
-
13: 72,
|
|
16
|
-
14: 92,
|
|
17
|
-
15: 114,
|
|
18
|
-
16: 124
|
|
19
|
-
};
|
|
20
|
-
function createGenericFont(family, font = {}, {
|
|
21
|
-
sizeLineHeight = (val) => val * 1.35
|
|
22
|
-
} = {}) {
|
|
23
|
-
const size = font.size || genericFontSizes;
|
|
24
|
-
return createFont({
|
|
25
|
-
family,
|
|
26
|
-
size,
|
|
27
|
-
lineHeight: Object.fromEntries(Object.entries(size).map(([k, v]) => [k, sizeLineHeight(+v)])),
|
|
28
|
-
weight: { 0: "300" },
|
|
29
|
-
letterSpacing: { 4: 0 },
|
|
30
|
-
...font
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
createGenericFont
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=createGenericFont.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
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 {\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": "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,GACpB;AAAA,EACE,iBAAiB,CAAC,QAAQ,MAAM;AAAA,IAG9B,CAAC,GACF;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,eAAe,CAAC,CAAC,CAAC,CAAC,CAC9D;AAAA,IACA,QAAQ,EAAE,GAAG,MAAM;AAAA,IACnB,eAAe,EAAE,GAAG,EAAE;AAAA,IACtB,GAAI;AAAA,EACN,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/jsx/index.js
DELETED
package/dist/jsx/index.js.map
DELETED
package/dist/jsx/media.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const demoMedia = [500, 620, 780, 900];
|
|
2
|
-
const widths = [660, 800, 1020, 1280];
|
|
3
|
-
const media = {
|
|
4
|
-
xl: { maxWidth: 1650 },
|
|
5
|
-
lg: { maxWidth: 1280 },
|
|
6
|
-
md: { maxWidth: 1020 },
|
|
7
|
-
sm: { maxWidth: 800 },
|
|
8
|
-
xs: { maxWidth: 660 },
|
|
9
|
-
xxs: { maxWidth: 390 },
|
|
10
|
-
gtXs: { minWidth: 660 + 1 },
|
|
11
|
-
gtSm: { minWidth: 800 + 1 },
|
|
12
|
-
gtMd: { minWidth: 1020 + 1 },
|
|
13
|
-
gtLg: { minWidth: 1280 + 1 },
|
|
14
|
-
gtXl: { minWidth: 1650 + 1 },
|
|
15
|
-
tiny: { maxWidth: 500 },
|
|
16
|
-
gtTiny: { minWidth: 500 + 1 },
|
|
17
|
-
small: { maxWidth: 620 },
|
|
18
|
-
gtSmall: { minWidth: 620 + 1 },
|
|
19
|
-
medium: { maxWidth: 780 },
|
|
20
|
-
gtMedium: { minWidth: 780 + 1 },
|
|
21
|
-
large: { maxWidth: 900 },
|
|
22
|
-
gtLarge: { minWidth: 900 + 1 }
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
demoMedia,
|
|
26
|
-
media,
|
|
27
|
-
widths
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=media.js.map
|
package/dist/jsx/media.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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 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 // 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,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,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
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
5: 13,
|
|
12
|
-
6: 15
|
|
13
|
-
},
|
|
14
|
-
transform: {
|
|
15
|
-
6: "uppercase",
|
|
16
|
-
7: "none"
|
|
17
|
-
},
|
|
18
|
-
weight: {
|
|
19
|
-
6: "400",
|
|
20
|
-
7: "700"
|
|
21
|
-
},
|
|
22
|
-
color: {
|
|
23
|
-
6: "$colorFocus",
|
|
24
|
-
7: "$color"
|
|
25
|
-
},
|
|
26
|
-
letterSpacing: {
|
|
27
|
-
5: 2,
|
|
28
|
-
6: 1,
|
|
29
|
-
7: 0,
|
|
30
|
-
8: 0,
|
|
31
|
-
9: -1,
|
|
32
|
-
10: -1,
|
|
33
|
-
12: -2,
|
|
34
|
-
14: -3,
|
|
35
|
-
15: -4
|
|
36
|
-
}
|
|
37
|
-
}, { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) });
|
|
38
|
-
const bodyFont = createInterFont({}, {
|
|
39
|
-
sizeSize: (size) => Math.round(size),
|
|
40
|
-
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 4))
|
|
41
|
-
});
|
|
42
|
-
const monoFont = createGenericFont(`"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`, {
|
|
43
|
-
weight: {
|
|
44
|
-
1: "500"
|
|
45
|
-
},
|
|
46
|
-
size: {
|
|
47
|
-
1: 10,
|
|
48
|
-
2: 11,
|
|
49
|
-
3: 12,
|
|
50
|
-
4: 14,
|
|
51
|
-
5: 16,
|
|
52
|
-
6: 18,
|
|
53
|
-
7: 20,
|
|
54
|
-
8: 22,
|
|
55
|
-
9: 30,
|
|
56
|
-
10: 42,
|
|
57
|
-
11: 52,
|
|
58
|
-
12: 62,
|
|
59
|
-
13: 72,
|
|
60
|
-
14: 92,
|
|
61
|
-
15: 114,
|
|
62
|
-
16: 124
|
|
63
|
-
}
|
|
64
|
-
}, {
|
|
65
|
-
sizeLineHeight: (x) => x * 1.5
|
|
66
|
-
});
|
|
67
|
-
const config = {
|
|
68
|
-
defaultTheme: "light",
|
|
69
|
-
shouldAddPrefersColorThemes: true,
|
|
70
|
-
themeClassNameOnRoot: true,
|
|
71
|
-
animations,
|
|
72
|
-
media,
|
|
73
|
-
shorthands,
|
|
74
|
-
themes,
|
|
75
|
-
tokens,
|
|
76
|
-
fonts: {
|
|
77
|
-
heading: headingFont,
|
|
78
|
-
body: bodyFont,
|
|
79
|
-
mono: monoFont,
|
|
80
|
-
silkscreen: silkscreenFont
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
export {
|
|
84
|
-
config
|
|
85
|
-
};
|
|
86
|
-
//# sourceMappingURL=tamagui.config.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/tamagui.config.ts"],
|
|
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 } from './media'\n\nconst silkscreenFont = createSilkscreenFont()\nconst headingFont = createInterFont(\n {\n size: {\n 5: 13,\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: 0,\n 9: -1,\n 10: -1,\n 12: -2,\n 14: -3,\n 15: -4,\n },\n },\n { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 0)) }\n)\nconst bodyFont = createInterFont(\n {},\n {\n sizeSize: (size) => Math.round(size),\n sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 10 : 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: 10,\n 2: 11,\n 3: 12,\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 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"],
|
|
5
|
-
"mappings": "AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA,MAAM,iBAAiB,qBAAqB;AAC5C,MAAM,cAAc,gBAClB;AAAA,EACE,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,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,GACA,EAAE,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,QAAO,KAAK,KAAK,EAAE,EAAE,CAC5E;AACA,MAAM,WAAW,gBACf,CAAC,GACD;AAAA,EACE,UAAU,CAAC,SAAS,KAAK,MAAM,IAAI;AAAA,EACnC,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,MAAO,SAAQ,KAAK,KAAK,EAAE;AACzE,CACF;AAEA,MAAM,WAAW,kBACf,8FACA;AAAA,EACE,QAAQ;AAAA,IACN,GAAG;AAAA,EACL;AAAA,EACA,MAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,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,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AACF,GACA;AAAA,EACE,gBAAgB,CAAC,MAAM,IAAI;AAC7B,CACF;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
|
-
}
|