@tamagui/config 1.74.3 → 1.74.5
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/config.js +3 -6
- package/dist/cjs/config.js.map +1 -1
- package/dist/cjs/config.native.js +3 -6
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/esm/animations.css.native.js +14 -0
- package/dist/esm/animations.css.native.js.map +6 -0
- package/dist/esm/animations.native.js +39 -0
- package/dist/esm/animations.native.js.map +6 -0
- package/dist/esm/animations.reanimated.native.js +44 -0
- package/dist/esm/animations.reanimated.native.js.map +6 -0
- package/dist/esm/config.js +0 -3
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/config.native.js +23 -0
- package/dist/esm/config.native.js.map +6 -0
- package/dist/esm/createGenericFont.native.js +38 -0
- package/dist/esm/createGenericFont.native.js.map +6 -0
- package/dist/esm/fonts.native.js +93 -0
- package/dist/esm/fonts.native.js.map +6 -0
- package/dist/esm/index.native.js +16 -0
- package/dist/esm/index.native.js.map +6 -0
- package/dist/esm/index.reanimated.native.js +13 -0
- package/dist/esm/index.reanimated.native.js.map +6 -0
- package/dist/esm/media.native.js +30 -0
- package/dist/esm/media.native.js.map +6 -0
- package/dist/esm/v2-base.native.js +24 -0
- package/dist/esm/v2-base.native.js.map +6 -0
- package/dist/esm/v2-native.js +10 -0
- package/dist/esm/v2-native.js.map +6 -0
- package/dist/esm/v2-reanimated.native.js +10 -0
- package/dist/esm/v2-reanimated.native.js.map +6 -0
- package/dist/esm/v2.native.js +10 -0
- package/dist/esm/v2.native.js.map +6 -0
- package/package.json +12 -11
- package/src/config.ts +0 -4
- package/types/config.d.ts +0 -40
- package/types/config.d.ts.map +1 -1
package/dist/cjs/config.js
CHANGED
|
@@ -10,17 +10,15 @@ var __export = (target, all) => {
|
|
|
10
10
|
for (let key of __getOwnPropNames(from))
|
|
11
11
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
12
|
return to;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
15
|
var config_exports = {};
|
|
16
16
|
__export(config_exports, {
|
|
17
17
|
configWithoutAnimations: () => configWithoutAnimations
|
|
18
18
|
});
|
|
19
19
|
module.exports = __toCommonJS(config_exports);
|
|
20
|
-
var import_shorthands = require("@tamagui/shorthands"), import_themes = require("@tamagui/themes"),
|
|
21
|
-
__reExport(config_exports, require("./animations"), module.exports);
|
|
20
|
+
var import_shorthands = require("@tamagui/shorthands"), import_themes = require("@tamagui/themes"), import_fonts = require("./fonts"), import_media = require("./media");
|
|
22
21
|
const configWithoutAnimations = {
|
|
23
|
-
animations: import_animations.animations,
|
|
24
22
|
defaultFont: "body",
|
|
25
23
|
shouldAddPrefersColorThemes: !0,
|
|
26
24
|
themeClassNameOnRoot: !0,
|
|
@@ -37,7 +35,6 @@ const configWithoutAnimations = {
|
|
|
37
35
|
};
|
|
38
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
37
|
0 && (module.exports = {
|
|
40
|
-
configWithoutAnimations
|
|
41
|
-
...require("./animations")
|
|
38
|
+
configWithoutAnimations
|
|
42
39
|
});
|
|
43
40
|
//# sourceMappingURL=config.js.map
|
package/dist/cjs/config.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/config.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,gBAA+B,4BAG/B,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,gBAA+B,4BAG/B,eAAsB,oBACtB,eAA+C;AAExC,MAAM,0BAA0B;AAAA,EACrC,aAAa;AAAA,EACb,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,yBAAyB;AAAA,EACzB,iBAAiB,CAAC,UAChB,MAAM,SACF;AAAA,IACE,iBAAiB,MAAM;AAAA,IACvB,OAAO,MAAM;AAAA,EACf,IACA;AACR;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -11,17 +11,15 @@ var __export = (target, all) => {
|
|
|
11
11
|
for (let key of __getOwnPropNames(from))
|
|
12
12
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
13
|
return to;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
16
|
var config_exports = {};
|
|
17
17
|
__export(config_exports, {
|
|
18
18
|
configWithoutAnimations: () => configWithoutAnimations
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(config_exports);
|
|
21
|
-
var import_shorthands = require("@tamagui/shorthands"), import_themes = require("@tamagui/themes"),
|
|
22
|
-
__reExport(config_exports, require("./animations"), module.exports);
|
|
21
|
+
var import_shorthands = require("@tamagui/shorthands"), import_themes = require("@tamagui/themes"), import_fonts = require("./fonts"), import_media = require("./media");
|
|
23
22
|
const configWithoutAnimations = {
|
|
24
|
-
animations: import_animations.animations,
|
|
25
23
|
defaultFont: "body",
|
|
26
24
|
shouldAddPrefersColorThemes: !0,
|
|
27
25
|
themeClassNameOnRoot: !0,
|
|
@@ -38,7 +36,6 @@ const configWithoutAnimations = {
|
|
|
38
36
|
};
|
|
39
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
40
38
|
0 && (module.exports = {
|
|
41
|
-
configWithoutAnimations
|
|
42
|
-
...require("./animations")
|
|
39
|
+
configWithoutAnimations
|
|
43
40
|
});
|
|
44
41
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/config.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,gBAA+B,4BAG/B,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,gBAA+B,4BAG/B,eAAsB,oBACtB,eAA+C;AAExC,MAAM,0BAA0B;AAAA,EACrC,aAAa;AAAA,EACb,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,yBAAyB;AAAA,EACzB,iBAAiB,CAAC,UAChB,MAAM,SACF;AAAA,IACE,iBAAiB,MAAM;AAAA,IACvB,OAAO,MAAM;AAAA,EACf,IACA;AACR;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createAnimations } from "@tamagui/animations-css";
|
|
2
|
+
const animations = createAnimations({
|
|
3
|
+
"100ms": "ease-in 100ms",
|
|
4
|
+
bouncy: "ease-in 200ms",
|
|
5
|
+
lazy: "ease-in 600ms",
|
|
6
|
+
slow: "ease-in 500ms",
|
|
7
|
+
medium: "ease-in 300ms",
|
|
8
|
+
quick: "ease-in 100ms",
|
|
9
|
+
tooltip: "ease-in 400ms"
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
animations
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=animations.css.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createAnimations } from "@tamagui/animations-react-native";
|
|
2
|
+
const animations = createAnimations({
|
|
3
|
+
"100ms": {
|
|
4
|
+
type: "timing",
|
|
5
|
+
duration: 100
|
|
6
|
+
},
|
|
7
|
+
bouncy: {
|
|
8
|
+
damping: 9,
|
|
9
|
+
mass: 0.9,
|
|
10
|
+
stiffness: 150
|
|
11
|
+
},
|
|
12
|
+
lazy: {
|
|
13
|
+
damping: 18,
|
|
14
|
+
stiffness: 50
|
|
15
|
+
},
|
|
16
|
+
medium: {
|
|
17
|
+
damping: 15,
|
|
18
|
+
stiffness: 120,
|
|
19
|
+
mass: 1
|
|
20
|
+
},
|
|
21
|
+
slow: {
|
|
22
|
+
damping: 15,
|
|
23
|
+
stiffness: 40
|
|
24
|
+
},
|
|
25
|
+
quick: {
|
|
26
|
+
damping: 20,
|
|
27
|
+
mass: 1.2,
|
|
28
|
+
stiffness: 250
|
|
29
|
+
},
|
|
30
|
+
tooltip: {
|
|
31
|
+
damping: 10,
|
|
32
|
+
mass: 0.9,
|
|
33
|
+
stiffness: 100
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
animations
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=animations.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.ts"],
|
|
4
|
+
"mappings": "AAAA,SAAS,wBAAwB;AAE1B,MAAM,aAAa,iBAAiB;AAAA,EACzC,SAAS;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA,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,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,MAAM;AAAA,EACR;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;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createAnimations } from "@tamagui/animations-moti";
|
|
2
|
+
const animations = createAnimations({
|
|
3
|
+
"100ms": {
|
|
4
|
+
type: "timing",
|
|
5
|
+
duration: 100
|
|
6
|
+
},
|
|
7
|
+
bouncy: {
|
|
8
|
+
type: "spring",
|
|
9
|
+
damping: 9,
|
|
10
|
+
mass: 0.9,
|
|
11
|
+
stiffness: 150
|
|
12
|
+
},
|
|
13
|
+
lazy: {
|
|
14
|
+
type: "spring",
|
|
15
|
+
damping: 18,
|
|
16
|
+
stiffness: 50
|
|
17
|
+
},
|
|
18
|
+
medium: {
|
|
19
|
+
damping: 15,
|
|
20
|
+
stiffness: 120,
|
|
21
|
+
mass: 1
|
|
22
|
+
},
|
|
23
|
+
slow: {
|
|
24
|
+
type: "spring",
|
|
25
|
+
damping: 15,
|
|
26
|
+
stiffness: 40
|
|
27
|
+
},
|
|
28
|
+
quick: {
|
|
29
|
+
type: "spring",
|
|
30
|
+
damping: 20,
|
|
31
|
+
mass: 1.2,
|
|
32
|
+
stiffness: 250
|
|
33
|
+
},
|
|
34
|
+
tooltip: {
|
|
35
|
+
type: "spring",
|
|
36
|
+
damping: 10,
|
|
37
|
+
mass: 0.9,
|
|
38
|
+
stiffness: 100
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
animations
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=animations.reanimated.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/animations.reanimated.ts"],
|
|
4
|
+
"mappings": "AAAA,SAAS,wBAAwB;AAE1B,MAAM,aAAa,iBAAiB;AAAA,EACzC,SAAS;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA,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,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,MAAM;AAAA,EACR;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;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/esm/config.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { shorthands } from "@tamagui/shorthands";
|
|
2
2
|
import { themes, tokens } from "@tamagui/themes";
|
|
3
|
-
import { animations } from "./animations.reanimated";
|
|
4
3
|
import { fonts } from "./fonts";
|
|
5
4
|
import { media, mediaQueryDefaultActive } from "./media";
|
|
6
|
-
export * from "./animations";
|
|
7
5
|
const configWithoutAnimations = {
|
|
8
|
-
animations,
|
|
9
6
|
defaultFont: "body",
|
|
10
7
|
shouldAddPrefersColorThemes: !0,
|
|
11
8
|
themeClassNameOnRoot: !0,
|
package/dist/esm/config.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/config.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,kBAAkB;AAC3B,SAAS,QAAQ,cAAc;AAG/B,SAAS,
|
|
4
|
+
"mappings": "AAAA,SAAS,kBAAkB;AAC3B,SAAS,QAAQ,cAAc;AAG/B,SAAS,aAAa;AACtB,SAAS,OAAO,+BAA+B;AAExC,MAAM,0BAA0B;AAAA,EACrC,aAAa;AAAA,EACb,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAiB,CAAC,UAChB,MAAM,SACF;AAAA,IACE,iBAAiB,MAAM;AAAA,IACvB,OAAO,MAAM;AAAA,EACf,IACA;AACR;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { shorthands } from "@tamagui/shorthands";
|
|
2
|
+
import { themes, tokens } from "@tamagui/themes";
|
|
3
|
+
import { fonts } from "./fonts";
|
|
4
|
+
import { media, mediaQueryDefaultActive } from "./media";
|
|
5
|
+
const configWithoutAnimations = {
|
|
6
|
+
defaultFont: "body",
|
|
7
|
+
shouldAddPrefersColorThemes: !0,
|
|
8
|
+
themeClassNameOnRoot: !0,
|
|
9
|
+
themes,
|
|
10
|
+
media,
|
|
11
|
+
shorthands,
|
|
12
|
+
tokens,
|
|
13
|
+
fonts,
|
|
14
|
+
mediaQueryDefaultActive,
|
|
15
|
+
selectionStyles: (theme) => theme.color5 ? {
|
|
16
|
+
backgroundColor: theme.color5,
|
|
17
|
+
color: theme.color11
|
|
18
|
+
} : null
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
configWithoutAnimations
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/config.ts"],
|
|
4
|
+
"mappings": "AAAA,SAAS,kBAAkB;AAC3B,SAAS,QAAQ,cAAc;AAG/B,SAAS,aAAa;AACtB,SAAS,OAAO,+BAA+B;AAExC,MAAM,0BAA0B;AAAA,EACrC,aAAa;AAAA,EACb,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAiB,CAAC,UAChB,MAAM,SACF;AAAA,IACE,iBAAiB,MAAM;AAAA,IACvB,OAAO,MAAM;AAAA,EACf,IACA;AACR;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createFont } from "@tamagui/web";
|
|
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(
|
|
28
|
+
Object.entries(size).map(([k, v]) => [k, sizeLineHeight(+v)])
|
|
29
|
+
),
|
|
30
|
+
weight: { 0: "300" },
|
|
31
|
+
letterSpacing: { 4: 0 },
|
|
32
|
+
...font
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
createGenericFont
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=createGenericFont.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/createGenericFont.ts"],
|
|
4
|
+
"mappings": "AAAA,SAAsB,kBAAkB;AAExC,MAAM,mBAAmB;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,SAAS,kBACd,QACA,OAAmB,CAAC,GACpB;AAAA,EACE,iBAAiB,CAAC,QAAQ,MAAM;AAClC,IAEI,CAAC,GACF;AACH,QAAM,OAAO,KAAK,QAAQ;AAC1B,SAAO,WAAW;AAAA,IAChB;AAAA,IACA;AAAA,IACA,YAAY,OAAO;AAAA,MACjB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA,IAC9D;AAAA,IACA,QAAQ,EAAE,GAAG,MAAM;AAAA,IACnB,eAAe,EAAE,GAAG,EAAE;AAAA,IACtB,GAAI;AAAA,EACN,CAAC;AACH;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { createInterFont } from "@tamagui/font-inter";
|
|
2
|
+
import { createSilkscreenFont } from "@tamagui/font-silkscreen";
|
|
3
|
+
import { createGenericFont } from "./createGenericFont";
|
|
4
|
+
export * from "./animations";
|
|
5
|
+
const silkscreenFont = createSilkscreenFont(), headingFont = createInterFont(
|
|
6
|
+
{
|
|
7
|
+
size: {
|
|
8
|
+
5: 13,
|
|
9
|
+
6: 15,
|
|
10
|
+
9: 32,
|
|
11
|
+
10: 44
|
|
12
|
+
},
|
|
13
|
+
transform: {
|
|
14
|
+
6: "uppercase",
|
|
15
|
+
7: "none"
|
|
16
|
+
},
|
|
17
|
+
weight: {
|
|
18
|
+
6: "400",
|
|
19
|
+
7: "700"
|
|
20
|
+
},
|
|
21
|
+
color: {
|
|
22
|
+
6: "$colorFocus",
|
|
23
|
+
7: "$color"
|
|
24
|
+
},
|
|
25
|
+
letterSpacing: {
|
|
26
|
+
5: 2,
|
|
27
|
+
6: 1,
|
|
28
|
+
7: 0,
|
|
29
|
+
8: 0,
|
|
30
|
+
9: -1,
|
|
31
|
+
10: -1.5,
|
|
32
|
+
12: -2,
|
|
33
|
+
14: -3,
|
|
34
|
+
15: -4
|
|
35
|
+
},
|
|
36
|
+
// for native
|
|
37
|
+
face: {
|
|
38
|
+
700: { normal: "InterBold" },
|
|
39
|
+
800: { normal: "InterBold" },
|
|
40
|
+
900: { normal: "InterBold" }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{ sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 5)) }
|
|
44
|
+
), bodyFont = createInterFont(
|
|
45
|
+
{
|
|
46
|
+
weight: {
|
|
47
|
+
1: "400",
|
|
48
|
+
7: "600"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
sizeSize: (size) => Math.round(size),
|
|
53
|
+
sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 8 : 4))
|
|
54
|
+
}
|
|
55
|
+
), monoFont = createGenericFont(
|
|
56
|
+
'"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',
|
|
57
|
+
{
|
|
58
|
+
weight: {
|
|
59
|
+
1: "500"
|
|
60
|
+
},
|
|
61
|
+
size: {
|
|
62
|
+
1: 11,
|
|
63
|
+
2: 12,
|
|
64
|
+
3: 13,
|
|
65
|
+
4: 14,
|
|
66
|
+
5: 16,
|
|
67
|
+
6: 18,
|
|
68
|
+
7: 20,
|
|
69
|
+
8: 22,
|
|
70
|
+
9: 30,
|
|
71
|
+
10: 42,
|
|
72
|
+
11: 52,
|
|
73
|
+
12: 62,
|
|
74
|
+
13: 72,
|
|
75
|
+
14: 92,
|
|
76
|
+
15: 114,
|
|
77
|
+
16: 124
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
sizeLineHeight: (x) => x * 1.5
|
|
82
|
+
}
|
|
83
|
+
), fonts = {
|
|
84
|
+
// noto: notoFont as any,
|
|
85
|
+
heading: headingFont,
|
|
86
|
+
body: bodyFont,
|
|
87
|
+
mono: monoFont,
|
|
88
|
+
silkscreen: silkscreenFont
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
fonts
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=fonts.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/fonts.ts"],
|
|
4
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AAErC,SAAS,yBAAyB;AAElC,cAAc;AAEd,MAAM,iBAAiB,qBAAqB,GAEtC,cAAc;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,MACJ,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,IACN;AAAA,IACA,WAAW;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,MACN,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,eAAe;AAAA,MACb,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA;AAAA,IAEA,MAAM;AAAA,MACJ,KAAK,EAAE,QAAQ,YAAY;AAAA,MAC3B,KAAK,EAAE,QAAQ,YAAY;AAAA,MAC3B,KAAK,EAAE,QAAQ,YAAY;AAAA,IAC7B;AAAA,EACF;AAAA,EACA,EAAE,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,OAAO,OAAO,KAAK,KAAK,EAAE,EAAE;AAC5E,GAEM,WAAW;AAAA,EACf;AAAA,IACE,QAAQ;AAAA,MACN,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,EACF;AAAA,EACA;AAAA,IACE,UAAU,CAAC,SAAS,KAAK,MAAM,IAAI;AAAA,IACnC,gBAAgB,CAAC,SAAS,KAAK,MAAM,OAAO,OAAO,QAAQ,KAAK,IAAI,EAAE;AAAA,EACxE;AACF,GAEM,WAAW;AAAA,EACf;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,GAAG;AAAA,IACL;AAAA,IACA,MAAM;AAAA,MACJ,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,EACF;AAAA,EACA;AAAA,IACE,gBAAgB,CAAC,MAAM,IAAI;AAAA,EAC7B;AACF,GAEa,QAAQ;AAAA;AAAA,EAEnB,SAAS;AAAA,EACT,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AACd;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { themes } from "@tamagui/themes";
|
|
2
|
+
import { animations } from "./animations";
|
|
3
|
+
import { configWithoutAnimations } from "./config";
|
|
4
|
+
export * from "./media";
|
|
5
|
+
export * from "./createGenericFont";
|
|
6
|
+
export * from "./animations";
|
|
7
|
+
const config = {
|
|
8
|
+
...configWithoutAnimations,
|
|
9
|
+
// fixes typescript exporting this using internal /types/ path
|
|
10
|
+
themes,
|
|
11
|
+
animations
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
config
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { animations } from "./animations.reanimated";
|
|
2
|
+
import { configWithoutAnimations } from "./config";
|
|
3
|
+
export * from "./media";
|
|
4
|
+
export * from "./createGenericFont";
|
|
5
|
+
export * from "./animations.reanimated";
|
|
6
|
+
const config = {
|
|
7
|
+
...configWithoutAnimations,
|
|
8
|
+
animations
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
config
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.reanimated.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createMedia } from "@tamagui/react-native-media-driver";
|
|
2
|
+
const demoMedia = [500, 620, 780, 900], widths = [660, 800, 1020, 1280], media = createMedia({
|
|
3
|
+
// for site
|
|
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
|
+
}), mediaQueryDefaultActive = {
|
|
16
|
+
xl: !0,
|
|
17
|
+
lg: !0,
|
|
18
|
+
md: !0,
|
|
19
|
+
sm: !0,
|
|
20
|
+
xs: !0,
|
|
21
|
+
// false
|
|
22
|
+
xxs: !1
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
demoMedia,
|
|
26
|
+
media,
|
|
27
|
+
mediaQueryDefaultActive,
|
|
28
|
+
widths
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/media.ts"],
|
|
4
|
+
"mappings": "AAAA,SAAS,mBAAmB;AAErB,MAAM,YAAY,CAAC,KAAK,KAAK,KAAK,GAAG,GAC/B,SAAS,CAAC,KAAK,KAAK,MAAM,IAAI,GAK9B,QAAQ,YAAY;AAAA;AAAA,EAE/B,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;AAC7B,CAAC,GAIY,0BAA0B;AAAA,EACrC,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA;AAAA,EAEJ,KAAK;AACP;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { shorthands } from "@tamagui/shorthands";
|
|
2
|
+
import { tokens } from "@tamagui/themes/v2";
|
|
3
|
+
import { themes } from "@tamagui/themes/v2-themes";
|
|
4
|
+
import { fonts } from "./fonts";
|
|
5
|
+
import { media, mediaQueryDefaultActive } from "./media";
|
|
6
|
+
const config = {
|
|
7
|
+
defaultFont: "body",
|
|
8
|
+
shouldAddPrefersColorThemes: !0,
|
|
9
|
+
themeClassNameOnRoot: !0,
|
|
10
|
+
themes,
|
|
11
|
+
media,
|
|
12
|
+
shorthands,
|
|
13
|
+
tokens,
|
|
14
|
+
fonts,
|
|
15
|
+
mediaQueryDefaultActive,
|
|
16
|
+
selectionStyles: (theme) => theme.color5 ? {
|
|
17
|
+
backgroundColor: theme.color5,
|
|
18
|
+
color: theme.color11
|
|
19
|
+
} : null
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
config
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=v2-base.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/v2-base.ts"],
|
|
4
|
+
"mappings": "AAAA,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AACvB,SAAS,cAAc;AAGvB,SAAS,aAAa;AACtB,SAAS,OAAO,+BAA+B;AAExC,MAAM,SAAS;AAAA,EACpB,aAAa;AAAA,EACb,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAiB,CAAC,UAChB,MAAM,SACF;AAAA,IACE,iBAAiB,MAAM;AAAA,IACvB,OAAO,MAAM;AAAA,EACf,IACA;AACR;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/config",
|
|
3
|
-
"version": "1.74.
|
|
3
|
+
"version": "1.74.5",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -53,18 +53,19 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@tamagui/animations-css": "1.74.
|
|
57
|
-
"@tamagui/animations-
|
|
58
|
-
"@tamagui/
|
|
59
|
-
"@tamagui/
|
|
60
|
-
"@tamagui/font-
|
|
61
|
-
"@tamagui/
|
|
62
|
-
"@tamagui/
|
|
63
|
-
"@tamagui/
|
|
64
|
-
"@tamagui/
|
|
56
|
+
"@tamagui/animations-css": "1.74.5",
|
|
57
|
+
"@tamagui/animations-moti": "1.74.5",
|
|
58
|
+
"@tamagui/animations-react-native": "1.74.5",
|
|
59
|
+
"@tamagui/colors": "1.74.5",
|
|
60
|
+
"@tamagui/font-inter": "1.74.5",
|
|
61
|
+
"@tamagui/font-silkscreen": "1.74.5",
|
|
62
|
+
"@tamagui/react-native-media-driver": "1.74.5",
|
|
63
|
+
"@tamagui/shorthands": "1.74.5",
|
|
64
|
+
"@tamagui/themes": "1.74.5",
|
|
65
|
+
"@tamagui/web": "1.74.5"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
|
-
"@tamagui/build": "1.74.
|
|
68
|
+
"@tamagui/build": "1.74.5"
|
|
68
69
|
},
|
|
69
70
|
"publishConfig": {
|
|
70
71
|
"access": "public"
|
package/src/config.ts
CHANGED
|
@@ -2,14 +2,10 @@ import { shorthands } from '@tamagui/shorthands'
|
|
|
2
2
|
import { themes, tokens } from '@tamagui/themes'
|
|
3
3
|
import { CreateTamaguiProps } from '@tamagui/web'
|
|
4
4
|
|
|
5
|
-
import { animations } from './animations.reanimated'
|
|
6
5
|
import { fonts } from './fonts'
|
|
7
6
|
import { media, mediaQueryDefaultActive } from './media'
|
|
8
7
|
|
|
9
|
-
export * from './animations'
|
|
10
|
-
|
|
11
8
|
export const configWithoutAnimations = {
|
|
12
|
-
animations,
|
|
13
9
|
defaultFont: 'body',
|
|
14
10
|
shouldAddPrefersColorThemes: true,
|
|
15
11
|
themeClassNameOnRoot: true,
|
package/types/config.d.ts
CHANGED
|
@@ -1,45 +1,5 @@
|
|
|
1
1
|
import { themes } from '@tamagui/themes';
|
|
2
|
-
export * from './animations';
|
|
3
2
|
export declare const configWithoutAnimations: {
|
|
4
|
-
animations: import("@tamagui/web").AnimationDriver<{
|
|
5
|
-
'100ms': {
|
|
6
|
-
type: string;
|
|
7
|
-
duration: number;
|
|
8
|
-
};
|
|
9
|
-
bouncy: {
|
|
10
|
-
type: string;
|
|
11
|
-
damping: number;
|
|
12
|
-
mass: number;
|
|
13
|
-
stiffness: number;
|
|
14
|
-
};
|
|
15
|
-
lazy: {
|
|
16
|
-
type: string;
|
|
17
|
-
damping: number;
|
|
18
|
-
stiffness: number;
|
|
19
|
-
};
|
|
20
|
-
medium: {
|
|
21
|
-
damping: number;
|
|
22
|
-
stiffness: number;
|
|
23
|
-
mass: number;
|
|
24
|
-
};
|
|
25
|
-
slow: {
|
|
26
|
-
type: string;
|
|
27
|
-
damping: number;
|
|
28
|
-
stiffness: number;
|
|
29
|
-
};
|
|
30
|
-
quick: {
|
|
31
|
-
type: string;
|
|
32
|
-
damping: number;
|
|
33
|
-
mass: number;
|
|
34
|
-
stiffness: number;
|
|
35
|
-
};
|
|
36
|
-
tooltip: {
|
|
37
|
-
type: string;
|
|
38
|
-
damping: number;
|
|
39
|
-
mass: number;
|
|
40
|
-
stiffness: number;
|
|
41
|
-
};
|
|
42
|
-
}>;
|
|
43
3
|
defaultFont: string;
|
|
44
4
|
shouldAddPrefersColorThemes: true;
|
|
45
5
|
themeClassNameOnRoot: true;
|
package/types/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAU,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAU,MAAM,iBAAiB,CAAA;AAMhD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBN,CAAA"}
|