@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.
Files changed (51) hide show
  1. package/dist/cjs/{animations.js → animations.cjs} +16 -11
  2. package/dist/cjs/{animations.css.js → animations.css.cjs} +16 -11
  3. package/dist/cjs/{animations.reanimated.js → animations.reanimated.cjs} +16 -11
  4. package/dist/cjs/animationsCSS.cjs +41 -0
  5. package/dist/cjs/{animationsReactNative.js → animationsReactNative.cjs} +16 -11
  6. package/dist/cjs/{animationsReanimated.js → animationsReanimated.cjs} +16 -11
  7. package/dist/cjs/{config.js → config.cjs} +21 -13
  8. package/dist/cjs/{createGenericFont.js → createGenericFont.cjs} +24 -17
  9. package/dist/cjs/fonts.cjs +115 -0
  10. package/dist/cjs/index.cjs +40 -0
  11. package/dist/cjs/index.reanimated.cjs +35 -0
  12. package/dist/cjs/media.cjs +76 -0
  13. package/dist/cjs/v2-base.cjs +47 -0
  14. package/dist/cjs/v2-native.cjs +31 -0
  15. package/dist/cjs/v2-native.cjs.map +6 -0
  16. package/dist/cjs/v2-reanimated.cjs +31 -0
  17. package/dist/cjs/v2.cjs +31 -0
  18. package/dist/cjs/v2.native.cjs +31 -0
  19. package/dist/cjs/v2.native.cjs.map +6 -0
  20. package/dist/cjs/v3-animations.cjs +26 -0
  21. package/dist/cjs/v3-animations.native.cjs +26 -0
  22. package/dist/cjs/v3-animations.native.cjs.map +6 -0
  23. package/dist/cjs/v3.cjs +65 -0
  24. package/package.json +19 -18
  25. package/dist/cjs/animationsCSS.js +0 -35
  26. package/dist/cjs/fonts.js +0 -106
  27. package/dist/cjs/index.js +0 -31
  28. package/dist/cjs/index.reanimated.js +0 -28
  29. package/dist/cjs/media.js +0 -46
  30. package/dist/cjs/v2-base.js +0 -38
  31. package/dist/cjs/v2-reanimated.js +0 -25
  32. package/dist/cjs/v2.js +0 -25
  33. package/dist/cjs/v3-animations.js +0 -21
  34. package/dist/cjs/v3.js +0 -49
  35. /package/dist/cjs/{animations.js.map → animations.cjs.map} +0 -0
  36. /package/dist/cjs/{animations.css.js.map → animations.css.cjs.map} +0 -0
  37. /package/dist/cjs/{animations.reanimated.js.map → animations.reanimated.cjs.map} +0 -0
  38. /package/dist/cjs/{animationsCSS.js.map → animationsCSS.cjs.map} +0 -0
  39. /package/dist/cjs/{animationsReactNative.js.map → animationsReactNative.cjs.map} +0 -0
  40. /package/dist/cjs/{animationsReanimated.js.map → animationsReanimated.cjs.map} +0 -0
  41. /package/dist/cjs/{config.js.map → config.cjs.map} +0 -0
  42. /package/dist/cjs/{createGenericFont.js.map → createGenericFont.cjs.map} +0 -0
  43. /package/dist/cjs/{fonts.js.map → fonts.cjs.map} +0 -0
  44. /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
  45. /package/dist/cjs/{index.reanimated.js.map → index.reanimated.cjs.map} +0 -0
  46. /package/dist/cjs/{media.js.map → media.cjs.map} +0 -0
  47. /package/dist/cjs/{v2-base.js.map → v2-base.cjs.map} +0 -0
  48. /package/dist/cjs/{v2-reanimated.js.map → v2-reanimated.cjs.map} +0 -0
  49. /package/dist/cjs/{v2.js.map → v2.cjs.map} +0 -0
  50. /package/dist/cjs/{v3-animations.js.map → v3-animations.cjs.map} +0 -0
  51. /package/dist/cjs/{v3.js.map → v3.cjs.map} +0 -0
@@ -0,0 +1,31 @@
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_native_exports = {};
22
+ __export(v2_native_exports, {
23
+ config: () => config
24
+ });
25
+ module.exports = __toCommonJS(v2_native_exports);
26
+ var import_animations = require("./animations.cjs"),
27
+ import_v2_base = require("./v2-base.cjs");
28
+ const config = {
29
+ ...import_v2_base.config,
30
+ animations: import_animations.animations
31
+ };
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2-native.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,wBAA2B,yBAC3B,iBAAqC;AAE9B,MAAM,SAAS;AAAA,EACpB,GAAG,eAAAA;AAAA,EACH;AACF;",
5
+ "names": ["configBase"]
6
+ }
@@ -0,0 +1,31 @@
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_reanimated_exports = {};
22
+ __export(v2_reanimated_exports, {
23
+ config: () => config
24
+ });
25
+ module.exports = __toCommonJS(v2_reanimated_exports);
26
+ var import_animations = require("./animations.reanimated"),
27
+ import_v2_base = require("./v2-base.cjs");
28
+ const config = {
29
+ ...import_v2_base.config,
30
+ animations: import_animations.animations
31
+ };
@@ -0,0 +1,31 @@
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_exports = {};
22
+ __export(v2_exports, {
23
+ config: () => config
24
+ });
25
+ module.exports = __toCommonJS(v2_exports);
26
+ var import_animations = require("./animations.css"),
27
+ import_v2_base = require("./v2-base.cjs");
28
+ const config = {
29
+ ...import_v2_base.config,
30
+ animations: import_animations.animations
31
+ };
@@ -0,0 +1,31 @@
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_native_exports = {};
22
+ __export(v2_native_exports, {
23
+ config: () => config
24
+ });
25
+ module.exports = __toCommonJS(v2_native_exports);
26
+ var import_animations = require("./animations.cjs"),
27
+ import_v2_base = require("./v2-base.cjs");
28
+ const config = {
29
+ ...import_v2_base.config,
30
+ animations: import_animations.animations
31
+ };
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2.native.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,wBAA2B,yBAC3B,iBAAqC;AAE9B,MAAM,SAAS;AAAA,EACpB,GAAG,eAAAA;AAAA,EACH;AACF;",
5
+ "names": ["configBase"]
6
+ }
@@ -0,0 +1,26 @@
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 v3_animations_exports = {};
22
+ __export(v3_animations_exports, {
23
+ animations: () => import_animationsCSS.animationsCSS
24
+ });
25
+ module.exports = __toCommonJS(v3_animations_exports);
26
+ var import_animationsCSS = require("./animationsCSS.cjs");
@@ -0,0 +1,26 @@
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 v3_animations_native_exports = {};
22
+ __export(v3_animations_native_exports, {
23
+ animations: () => import_animationsReactNative.animationsReactNative
24
+ });
25
+ module.exports = __toCommonJS(v3_animations_native_exports);
26
+ var import_animationsReactNative = require("./animationsReactNative.cjs");
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v3-animations.native.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAoD;",
5
+ "names": []
6
+ }
@@ -0,0 +1,65 @@
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 v3_exports = {};
22
+ __export(v3_exports, {
23
+ animations: () => import_v3_animations2.animations,
24
+ config: () => config,
25
+ fonts: () => import_fonts2.fonts,
26
+ media: () => import_media2.media,
27
+ mediaQueryDefaultActive: () => import_media2.mediaQueryDefaultActive,
28
+ selectionStyles: () => selectionStyles,
29
+ shorthands: () => import_v22.shorthands,
30
+ themes: () => import_v3_themes2.themes,
31
+ tokens: () => import_v3_themes2.tokens
32
+ });
33
+ module.exports = __toCommonJS(v3_exports);
34
+ var import_v2 = require("@tamagui/shorthands/v2"),
35
+ import_v3_themes = require("@tamagui/themes/v3-themes"),
36
+ import_v3_animations = require("./v3-animations.cjs"),
37
+ import_fonts = require("./fonts.cjs"),
38
+ import_media = require("./media.cjs"),
39
+ import_v3_animations2 = require("./v3-animations.cjs"),
40
+ import_v3_themes2 = require("@tamagui/themes/v3-themes"),
41
+ import_v22 = require("@tamagui/shorthands/v2"),
42
+ import_fonts2 = require("./fonts.cjs"),
43
+ import_media2 = require("./media.cjs");
44
+ globalThis.global ||= globalThis;
45
+ const selectionStyles = theme => theme.color5 ? {
46
+ backgroundColor: theme.color5,
47
+ color: theme.color11
48
+ } : null,
49
+ themes2 = process.env.TAMAGUI_OPTIMIZE_THEMES === "true" ? {} : import_v3_themes.themes,
50
+ config = {
51
+ animations: import_v3_animations.animations,
52
+ themes: themes2,
53
+ media: import_media.media,
54
+ shorthands: import_v2.shorthands,
55
+ tokens: import_v3_themes.tokens,
56
+ fonts: import_fonts.fonts,
57
+ selectionStyles,
58
+ settings: {
59
+ mediaQueryDefaultActive: import_media.mediaQueryDefaultActive,
60
+ defaultFont: "body",
61
+ fastSchemeChange: !0,
62
+ shouldAddPrefersColorThemes: !0,
63
+ themeClassNameOnRoot: !0
64
+ }
65
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/config",
3
- "version": "1.114.3",
3
+ "version": "1.115.0",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -20,58 +20,59 @@
20
20
  "react-native": "./dist/cjs/index.native.js",
21
21
  "types": "./types/index.d.ts",
22
22
  "import": "./dist/esm/index.mjs",
23
- "require": "./dist/cjs/index.js"
23
+ "require": "./dist/cjs/index.cjs",
24
+ "default": "./dist/cjs/index.native.js"
24
25
  },
25
26
  "./v2": {
26
27
  "react-native-import": "./dist/esm/v2.native.js",
27
28
  "react-native": "./dist/cjs/v2.native.js",
28
29
  "types": "./types/v2.d.ts",
29
30
  "import": "./dist/esm/v2.mjs",
30
- "require": "./dist/cjs/v2.js"
31
+ "require": "./dist/cjs/v2.cjs"
31
32
  },
32
33
  "./v2-reanimated": {
33
34
  "react-native-import": "./dist/esm/v2-reanimated.native.js",
34
35
  "react-native": "./dist/cjs/v2-reanimated.native.js",
35
36
  "types": "./types/v2-reanimated.d.ts",
36
37
  "import": "./dist/esm/v2-reanimated.mjs",
37
- "require": "./dist/cjs/v2-reanimated.js"
38
+ "require": "./dist/cjs/v2-reanimated.cjs"
38
39
  },
39
40
  "./v2-native": {
40
41
  "react-native-import": "./dist/esm/v2-native.native.js",
41
42
  "react-native": "./dist/cjs/v2-native.native.js",
42
43
  "types": "./types/v2-native.d.ts",
43
44
  "import": "./dist/esm/v2-native.mjs",
44
- "require": "./dist/cjs/v2-native.js"
45
+ "require": "./dist/cjs/v2-native.cjs"
45
46
  },
46
47
  "./reanimated": {
47
48
  "react-native-import": "./dist/esm/index.reanimated.native.js",
48
49
  "react-native": "./dist/cjs/index.reanimated.native.js",
49
50
  "types": "./types/index.reanimated.d.ts",
50
51
  "import": "./dist/esm/index.reanimated.mjs",
51
- "require": "./dist/cjs/index.reanimated.js"
52
+ "require": "./dist/cjs/index.reanimated.cjs"
52
53
  },
53
54
  "./v3": {
54
55
  "react-native-import": "./dist/esm/v3.native.js",
55
56
  "react-native": "./dist/cjs/v3.native.js",
56
57
  "types": "./types/v3.d.ts",
57
58
  "import": "./dist/esm/v3.mjs",
58
- "require": "./dist/cjs/v3.js"
59
+ "require": "./dist/cjs/v3.cjs"
59
60
  }
60
61
  },
61
62
  "dependencies": {
62
- "@tamagui/animations-css": "1.114.3",
63
- "@tamagui/animations-moti": "1.114.3",
64
- "@tamagui/animations-react-native": "1.114.3",
65
- "@tamagui/colors": "1.114.3",
66
- "@tamagui/font-inter": "1.114.3",
67
- "@tamagui/font-silkscreen": "1.114.3",
68
- "@tamagui/react-native-media-driver": "1.114.3",
69
- "@tamagui/shorthands": "1.114.3",
70
- "@tamagui/themes": "1.114.3",
71
- "@tamagui/web": "1.114.3"
63
+ "@tamagui/animations-css": "1.115.0",
64
+ "@tamagui/animations-moti": "1.115.0",
65
+ "@tamagui/animations-react-native": "1.115.0",
66
+ "@tamagui/colors": "1.115.0",
67
+ "@tamagui/font-inter": "1.115.0",
68
+ "@tamagui/font-silkscreen": "1.115.0",
69
+ "@tamagui/react-native-media-driver": "1.115.0",
70
+ "@tamagui/shorthands": "1.115.0",
71
+ "@tamagui/themes": "1.115.0",
72
+ "@tamagui/web": "1.115.0"
72
73
  },
73
74
  "devDependencies": {
74
- "@tamagui/build": "1.114.3"
75
+ "@tamagui/build": "1.115.0"
75
76
  },
76
77
  "publishConfig": {
77
78
  "access": "public"
@@ -1,35 +0,0 @@
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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var animationsCSS_exports = {};
16
- __export(animationsCSS_exports, {
17
- animationsCSS: () => animationsCSS
18
- });
19
- module.exports = __toCommonJS(animationsCSS_exports);
20
- var import_animations_css = require("@tamagui/animations-css");
21
- const smoothBezier = "cubic-bezier(0.215, 0.610, 0.355, 1.000)", animationsCSS = (0, import_animations_css.createAnimations)({
22
- "75ms": "ease-in 75ms",
23
- "100ms": "ease-in 100ms",
24
- "200ms": "ease-in 200ms",
25
- bouncy: "ease-in 200ms",
26
- superBouncy: "ease-in 500ms",
27
- lazy: "ease-in 1000ms",
28
- medium: "ease-in 300ms",
29
- slow: "ease-in 500ms",
30
- quick: `${smoothBezier} 400ms`,
31
- quicker: `${smoothBezier} 300ms`,
32
- quickest: `${smoothBezier} 200ms`,
33
- tooltip: "ease-in 400ms"
34
- });
35
- //# sourceMappingURL=animationsCSS.js.map
package/dist/cjs/fonts.js DELETED
@@ -1,106 +0,0 @@
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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var fonts_exports = {};
16
- __export(fonts_exports, {
17
- fonts: () => fonts
18
- });
19
- module.exports = __toCommonJS(fonts_exports);
20
- var import_font_inter = require("@tamagui/font-inter"), import_font_silkscreen = require("@tamagui/font-silkscreen"), import_createGenericFont = require("./createGenericFont");
21
- const silkscreenFont = (0, import_font_silkscreen.createSilkscreenFont)(), headingFont = (0, import_font_inter.createInterFont)(
22
- {
23
- size: {
24
- 5: 13,
25
- 6: 15,
26
- 9: 32,
27
- 10: 44
28
- },
29
- transform: {
30
- 6: "uppercase",
31
- 7: "none"
32
- },
33
- weight: {
34
- 6: "400",
35
- 7: "700"
36
- },
37
- color: {
38
- 6: "$colorFocus",
39
- 7: "$color"
40
- },
41
- letterSpacing: {
42
- 5: 2,
43
- 6: 1,
44
- 7: 0,
45
- 8: 0,
46
- 9: -1,
47
- 10: -1.5,
48
- 12: -2,
49
- 14: -3,
50
- 15: -4
51
- },
52
- // for native
53
- face: {
54
- 700: { normal: "InterBold" },
55
- 800: { normal: "InterBold" },
56
- 900: { normal: "InterBold" }
57
- }
58
- },
59
- { sizeLineHeight: (size) => Math.round(size * 1.1 + (size < 30 ? 10 : 5)) }
60
- ), bodyFont = (0, import_font_inter.createInterFont)(
61
- {
62
- weight: {
63
- 1: "400",
64
- 7: "600"
65
- }
66
- },
67
- {
68
- sizeSize: (size) => Math.round(size),
69
- sizeLineHeight: (size) => Math.round(size * 1.1 + (size >= 12 ? 8 : 4))
70
- }
71
- ), monoFont = (0, import_createGenericFont.createGenericFont)(
72
- '"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',
73
- {
74
- weight: {
75
- 1: "500"
76
- },
77
- size: {
78
- 1: 11,
79
- 2: 12,
80
- 3: 13,
81
- 4: 14,
82
- 5: 16,
83
- 6: 18,
84
- 7: 20,
85
- 8: 22,
86
- 9: 30,
87
- 10: 42,
88
- 11: 52,
89
- 12: 62,
90
- 13: 72,
91
- 14: 92,
92
- 15: 114,
93
- 16: 124
94
- }
95
- },
96
- {
97
- sizeLineHeight: (x) => x * 1.5
98
- }
99
- ), fonts = {
100
- // noto: notoFont as any,
101
- heading: headingFont,
102
- body: bodyFont,
103
- mono: monoFont,
104
- silkscreen: silkscreenFont
105
- };
106
- //# sourceMappingURL=fonts.js.map
package/dist/cjs/index.js DELETED
@@ -1,31 +0,0 @@
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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var src_exports = {};
16
- __export(src_exports, {
17
- config: () => config,
18
- configWithoutAnimations: () => import_config2.configWithoutAnimations
19
- });
20
- module.exports = __toCommonJS(src_exports);
21
- var import_themes = require("@tamagui/themes"), import_animations = require("./animations"), import_config = require("./config"), import_config2 = require("./config");
22
- __reExport(src_exports, require("./media"), module.exports);
23
- __reExport(src_exports, require("./createGenericFont"), module.exports);
24
- __reExport(src_exports, require("./animations"), module.exports);
25
- const config = {
26
- ...import_config.configWithoutAnimations,
27
- // fixes typescript exporting this using internal /types/ path
28
- themes: import_themes.themes,
29
- animations: import_animations.animations
30
- };
31
- //# sourceMappingURL=index.js.map
@@ -1,28 +0,0 @@
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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var index_reanimated_exports = {};
16
- __export(index_reanimated_exports, {
17
- config: () => config
18
- });
19
- module.exports = __toCommonJS(index_reanimated_exports);
20
- var import_animations = require("./animations.reanimated"), import_config = require("./config");
21
- __reExport(index_reanimated_exports, require("./media"), module.exports);
22
- __reExport(index_reanimated_exports, require("./createGenericFont"), module.exports);
23
- __reExport(index_reanimated_exports, require("./animations.reanimated"), module.exports);
24
- const config = {
25
- ...import_config.configWithoutAnimations,
26
- animations: import_animations.animations
27
- };
28
- //# sourceMappingURL=index.reanimated.js.map
package/dist/cjs/media.js DELETED
@@ -1,46 +0,0 @@
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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var media_exports = {};
16
- __export(media_exports, {
17
- demoMedia: () => demoMedia,
18
- media: () => media,
19
- mediaQueryDefaultActive: () => mediaQueryDefaultActive,
20
- widths: () => widths
21
- });
22
- module.exports = __toCommonJS(media_exports);
23
- var import_react_native_media_driver = require("@tamagui/react-native-media-driver");
24
- const demoMedia = [500, 620, 780, 900], widths = [660, 800, 1020, 1280], media = (0, import_react_native_media_driver.createMedia)({
25
- // for site
26
- xl: { maxWidth: 1650 },
27
- lg: { maxWidth: 1280 },
28
- md: { maxWidth: 1020 },
29
- sm: { maxWidth: 800 },
30
- xs: { maxWidth: 660 },
31
- xxs: { maxWidth: 390 },
32
- gtXs: { minWidth: 661 },
33
- gtSm: { minWidth: 801 },
34
- gtMd: { minWidth: 1021 },
35
- gtLg: { minWidth: 1281 },
36
- gtXl: { minWidth: 1651 }
37
- }), mediaQueryDefaultActive = {
38
- xl: !0,
39
- lg: !0,
40
- md: !0,
41
- sm: !0,
42
- xs: !0,
43
- // false
44
- xxs: !1
45
- };
46
- //# sourceMappingURL=media.js.map
@@ -1,38 +0,0 @@
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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var v2_base_exports = {};
16
- __export(v2_base_exports, {
17
- config: () => config
18
- });
19
- module.exports = __toCommonJS(v2_base_exports);
20
- var import_shorthands = require("@tamagui/shorthands"), import_v2 = require("@tamagui/themes/v2"), import_v2_themes = require("@tamagui/themes/v2-themes"), import_fonts = require("./fonts"), import_media = require("./media");
21
- const config = {
22
- themes: import_v2_themes.themes,
23
- media: import_media.media,
24
- shorthands: import_shorthands.shorthands,
25
- tokens: import_v2.tokens,
26
- fonts: import_fonts.fonts,
27
- selectionStyles: (theme) => theme.color5 ? {
28
- backgroundColor: theme.color5,
29
- color: theme.color11
30
- } : null,
31
- settings: {
32
- defaultFont: "body",
33
- shouldAddPrefersColorThemes: !0,
34
- themeClassNameOnRoot: !0,
35
- mediaQueryDefaultActive: import_media.mediaQueryDefaultActive
36
- }
37
- };
38
- //# sourceMappingURL=v2-base.js.map