@tamagui/config 1.73.2 → 1.74.1

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/config.js +2 -1
  2. package/dist/cjs/config.js.map +1 -1
  3. package/dist/cjs/config.native.js +2 -1
  4. package/dist/cjs/config.native.js.map +1 -1
  5. package/dist/cjs/v2-base.js +40 -0
  6. package/dist/cjs/v2-base.js.map +6 -0
  7. package/dist/cjs/v2-base.native.js +41 -0
  8. package/dist/cjs/v2-base.native.js.map +6 -0
  9. package/dist/cjs/v2-native.js +30 -0
  10. package/dist/cjs/v2-native.js.map +6 -0
  11. package/dist/cjs/v2-reanimated.js +29 -0
  12. package/dist/cjs/v2-reanimated.js.map +6 -0
  13. package/dist/cjs/v2-reanimated.native.js +30 -0
  14. package/dist/cjs/v2-reanimated.native.js.map +6 -0
  15. package/dist/cjs/v2.js +29 -0
  16. package/dist/cjs/v2.js.map +6 -0
  17. package/dist/cjs/v2.native.js +30 -0
  18. package/dist/cjs/v2.native.js.map +6 -0
  19. package/dist/esm/config.js +2 -0
  20. package/dist/esm/config.js.map +1 -1
  21. package/dist/esm/v2-base.js +24 -0
  22. package/dist/esm/v2-base.js.map +6 -0
  23. package/dist/esm/v2-reanimated.js +10 -0
  24. package/dist/esm/v2-reanimated.js.map +6 -0
  25. package/dist/esm/v2.js +10 -0
  26. package/dist/esm/v2.js.map +6 -0
  27. package/package.json +32 -11
  28. package/src/config.ts +2 -0
  29. package/src/v2-base.ts +26 -0
  30. package/src/v2-native.ts +9 -0
  31. package/src/v2-reanimated.ts +9 -0
  32. package/src/v2.native.ts +9 -0
  33. package/src/v2.ts +9 -0
  34. package/types/config.d.ts +39 -0
  35. package/types/config.d.ts.map +1 -1
  36. package/types/v2-base.d.ts +43327 -0
  37. package/types/v2-base.d.ts.map +1 -0
  38. package/types/v2-native.d.ts +43361 -0
  39. package/types/v2-native.d.ts.map +1 -0
  40. package/types/v2-reanimated.d.ts +43366 -0
  41. package/types/v2-reanimated.d.ts.map +1 -0
  42. package/types/v2.d.ts +43336 -0
  43. package/types/v2.d.ts.map +1 -0
  44. package/types/v2.native.d.ts +43361 -0
  45. package/types/v2.native.d.ts.map +1 -0
  46. package/v2-native.d.ts +1 -0
  47. package/v2-native.js +1 -0
  48. package/v2-reanimated.d.ts +1 -0
  49. package/v2-reanimated.js +1 -0
  50. package/v2.d.ts +1 -0
  51. package/v2.js +1 -0
@@ -17,9 +17,10 @@ __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"), import_fonts = require("./fonts"), import_media = require("./media");
20
+ var import_shorthands = require("@tamagui/shorthands"), import_themes = require("@tamagui/themes"), import_animations = require("./animations.reanimated"), import_fonts = require("./fonts"), import_media = require("./media");
21
21
  __reExport(config_exports, require("./animations"), module.exports);
22
22
  const configWithoutAnimations = {
23
+ animations: import_animations.animations,
23
24
  defaultFont: "body",
24
25
  shouldAddPrefersColorThemes: !0,
25
26
  themeClassNameOnRoot: !0,
@@ -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,eAAsB,oBACtB,eAA+C;AAE/C,2BAAc,yBAPd;AASO,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;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,gBAA+B,4BAG/B,oBAA2B,oCAC3B,eAAsB,oBACtB,eAA+C;AAE/C,2BAAc,yBARd;AAUO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,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
  }
@@ -18,9 +18,10 @@ __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"), import_fonts = require("./fonts"), import_media = require("./media");
21
+ var import_shorthands = require("@tamagui/shorthands"), import_themes = require("@tamagui/themes"), import_animations = require("./animations.reanimated"), import_fonts = require("./fonts"), import_media = require("./media");
22
22
  __reExport(config_exports, require("./animations"), module.exports);
23
23
  const configWithoutAnimations = {
24
+ animations: import_animations.animations,
24
25
  defaultFont: "body",
25
26
  shouldAddPrefersColorThemes: !0,
26
27
  themeClassNameOnRoot: !0,
@@ -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,eAAsB,oBACtB,eAA+C;AAE/C,2BAAc,yBAPd;AASO,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;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,gBAA+B,4BAG/B,oBAA2B,oCAC3B,eAAsB,oBACtB,eAA+C;AAE/C,2BAAc,yBARd;AAUO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,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,40 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
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
+ defaultFont: "body",
23
+ shouldAddPrefersColorThemes: !0,
24
+ themeClassNameOnRoot: !0,
25
+ themes: import_v2_themes.themes,
26
+ media: import_media.media,
27
+ shorthands: import_shorthands.shorthands,
28
+ tokens: import_v2.tokens,
29
+ fonts: import_fonts.fonts,
30
+ mediaQueryDefaultActive: import_media.mediaQueryDefaultActive,
31
+ selectionStyles: (theme) => theme.color5 ? {
32
+ backgroundColor: theme.color5,
33
+ color: theme.color11
34
+ } : null
35
+ };
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ config
39
+ });
40
+ //# sourceMappingURL=v2-base.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2-base.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,YAAuB,+BACvB,mBAAuB,sCAGvB,eAAsB,oBACtB,eAA+C;AAExC,MAAM,SAAS;AAAA,EACpB,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
+ "names": []
6
+ }
@@ -0,0 +1,41 @@
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: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var v2_base_exports = {};
17
+ __export(v2_base_exports, {
18
+ config: () => config
19
+ });
20
+ module.exports = __toCommonJS(v2_base_exports);
21
+ 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");
22
+ const config = {
23
+ defaultFont: "body",
24
+ shouldAddPrefersColorThemes: !0,
25
+ themeClassNameOnRoot: !0,
26
+ themes: import_v2_themes.themes,
27
+ media: import_media.media,
28
+ shorthands: import_shorthands.shorthands,
29
+ tokens: import_v2.tokens,
30
+ fonts: import_fonts.fonts,
31
+ mediaQueryDefaultActive: import_media.mediaQueryDefaultActive,
32
+ selectionStyles: (theme) => theme.color5 ? {
33
+ backgroundColor: theme.color5,
34
+ color: theme.color11
35
+ } : null
36
+ };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ config
40
+ });
41
+ //# sourceMappingURL=v2-base.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2-base.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B,gCAC3B,YAAuB,+BACvB,mBAAuB,sCAGvB,eAAsB,oBACtB,eAA+C;AAExC,MAAM,SAAS;AAAA,EACpB,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
+ "names": []
6
+ }
@@ -0,0 +1,30 @@
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: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var v2_native_exports = {};
17
+ __export(v2_native_exports, {
18
+ config: () => config
19
+ });
20
+ module.exports = __toCommonJS(v2_native_exports);
21
+ var import_animations = require("./animations"), import_v2_base = require("./v2-base");
22
+ const config = {
23
+ ...import_v2_base.config,
24
+ animations: import_animations.animations
25
+ };
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ config
29
+ });
30
+ //# sourceMappingURL=v2-native.js.map
@@ -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,29 @@
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_reanimated_exports = {};
16
+ __export(v2_reanimated_exports, {
17
+ config: () => config
18
+ });
19
+ module.exports = __toCommonJS(v2_reanimated_exports);
20
+ var import_animations = require("./animations.reanimated"), import_v2_base = require("./v2-base");
21
+ const config = {
22
+ ...import_v2_base.config,
23
+ animations: import_animations.animations
24
+ };
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ config
28
+ });
29
+ //# sourceMappingURL=v2-reanimated.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2-reanimated.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,wBAA2B,oCAC3B,iBAAqC;AAE9B,MAAM,SAAS;AAAA,EACpB,GAAG,eAAAA;AAAA,EACH;AACF;",
5
+ "names": ["configBase"]
6
+ }
@@ -0,0 +1,30 @@
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: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var v2_reanimated_exports = {};
17
+ __export(v2_reanimated_exports, {
18
+ config: () => config
19
+ });
20
+ module.exports = __toCommonJS(v2_reanimated_exports);
21
+ var import_animations = require("./animations.reanimated"), import_v2_base = require("./v2-base");
22
+ const config = {
23
+ ...import_v2_base.config,
24
+ animations: import_animations.animations
25
+ };
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ config
29
+ });
30
+ //# sourceMappingURL=v2-reanimated.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2-reanimated.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,wBAA2B,oCAC3B,iBAAqC;AAE9B,MAAM,SAAS;AAAA,EACpB,GAAG,eAAAA;AAAA,EACH;AACF;",
5
+ "names": ["configBase"]
6
+ }
package/dist/cjs/v2.js ADDED
@@ -0,0 +1,29 @@
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_exports = {};
16
+ __export(v2_exports, {
17
+ config: () => config
18
+ });
19
+ module.exports = __toCommonJS(v2_exports);
20
+ var import_animations = require("./animations.css"), import_v2_base = require("./v2-base");
21
+ const config = {
22
+ ...import_v2_base.config,
23
+ animations: import_animations.animations
24
+ };
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ config
28
+ });
29
+ //# sourceMappingURL=v2.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,wBAA2B,6BAC3B,iBAAqC;AAE9B,MAAM,SAAS;AAAA,EACpB,GAAG,eAAAA;AAAA,EACH;AACF;",
5
+ "names": ["configBase"]
6
+ }
@@ -0,0 +1,30 @@
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: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var v2_native_exports = {};
17
+ __export(v2_native_exports, {
18
+ config: () => config
19
+ });
20
+ module.exports = __toCommonJS(v2_native_exports);
21
+ var import_animations = require("./animations"), import_v2_base = require("./v2-base");
22
+ const config = {
23
+ ...import_v2_base.config,
24
+ animations: import_animations.animations
25
+ };
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ config
29
+ });
30
+ //# sourceMappingURL=v2.native.js.map
@@ -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
+ }
@@ -1,9 +1,11 @@
1
1
  import { shorthands } from "@tamagui/shorthands";
2
2
  import { themes, tokens } from "@tamagui/themes";
3
+ import { animations } from "./animations.reanimated";
3
4
  import { fonts } from "./fonts";
4
5
  import { media, mediaQueryDefaultActive } from "./media";
5
6
  export * from "./animations";
6
7
  const configWithoutAnimations = {
8
+ animations,
7
9
  defaultFont: "body",
8
10
  shouldAddPrefersColorThemes: !0,
9
11
  themeClassNameOnRoot: !0,
@@ -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,aAAa;AACtB,SAAS,OAAO,+BAA+B;AAE/C,cAAc;AAEP,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;",
4
+ "mappings": "AAAA,SAAS,kBAAkB;AAC3B,SAAS,QAAQ,cAAc;AAG/B,SAAS,kBAAkB;AAC3B,SAAS,aAAa;AACtB,SAAS,OAAO,+BAA+B;AAE/C,cAAc;AAEP,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,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,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
+ }
@@ -0,0 +1,10 @@
1
+ import { animations } from "./animations.reanimated";
2
+ import { config as configBase } from "./v2-base";
3
+ const config = {
4
+ ...configBase,
5
+ animations
6
+ };
7
+ export {
8
+ config
9
+ };
10
+ //# sourceMappingURL=v2-reanimated.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2-reanimated.ts"],
4
+ "mappings": "AAEA,SAAS,kBAAkB;AAC3B,SAAS,UAAU,kBAAkB;AAE9B,MAAM,SAAS;AAAA,EACpB,GAAG;AAAA,EACH;AACF;",
5
+ "names": []
6
+ }
package/dist/esm/v2.js ADDED
@@ -0,0 +1,10 @@
1
+ import { animations } from "./animations.css";
2
+ import { config as configBase } from "./v2-base";
3
+ const config = {
4
+ ...configBase,
5
+ animations
6
+ };
7
+ export {
8
+ config
9
+ };
10
+ //# sourceMappingURL=v2.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/v2.ts"],
4
+ "mappings": "AAEA,SAAS,kBAAkB;AAC3B,SAAS,UAAU,kBAAkB;AAE9B,MAAM,SAAS;AAAA,EACpB,GAAG;AAAA,EACH;AACF;",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "@tamagui/config",
3
- "version": "1.73.2",
3
+ "version": "1.74.1",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
7
7
  "sideEffects": false,
8
8
  "files": [
9
+ "v2.js",
10
+ "v2.d.ts",
11
+ "v2-reanimated.js",
12
+ "v2-reanimated.d.ts",
13
+ "v2-native.js",
14
+ "v2-native.d.ts",
9
15
  "src",
10
16
  "types",
11
17
  "dist"
@@ -25,6 +31,21 @@
25
31
  "import": "./dist/esm/index.js",
26
32
  "require": "./dist/cjs/index.js"
27
33
  },
34
+ "./v2": {
35
+ "types": "./types/v2.d.ts",
36
+ "import": "./dist/esm/v2.js",
37
+ "require": "./dist/cjs/v2.js"
38
+ },
39
+ "./v2-reanimated": {
40
+ "types": "./types/v2-reanimated.d.ts",
41
+ "import": "./dist/esm/v2-reanimated.js",
42
+ "require": "./dist/cjs/v2-reanimated.js"
43
+ },
44
+ "./v2-native": {
45
+ "types": "./types/v2-native.d.ts",
46
+ "import": "./dist/esm/v2-native.js",
47
+ "require": "./dist/cjs/v2-native.js"
48
+ },
28
49
  "./reanimated": {
29
50
  "types": "./types/index.reanimated.d.ts",
30
51
  "import": "./dist/esm/index.reanimated.js",
@@ -32,18 +53,18 @@
32
53
  }
33
54
  },
34
55
  "dependencies": {
35
- "@tamagui/animations-css": "1.73.2",
36
- "@tamagui/animations-react-native": "1.73.2",
37
- "@tamagui/colors": "1.73.2",
38
- "@tamagui/font-inter": "1.73.2",
39
- "@tamagui/font-silkscreen": "1.73.2",
40
- "@tamagui/react-native-media-driver": "1.73.2",
41
- "@tamagui/shorthands": "1.73.2",
42
- "@tamagui/themes": "1.73.2",
43
- "@tamagui/web": "1.73.2"
56
+ "@tamagui/animations-css": "1.74.1",
57
+ "@tamagui/animations-react-native": "1.74.1",
58
+ "@tamagui/colors": "1.74.1",
59
+ "@tamagui/font-inter": "1.74.1",
60
+ "@tamagui/font-silkscreen": "1.74.1",
61
+ "@tamagui/react-native-media-driver": "1.74.1",
62
+ "@tamagui/shorthands": "1.74.1",
63
+ "@tamagui/themes": "1.74.1",
64
+ "@tamagui/web": "1.74.1"
44
65
  },
45
66
  "devDependencies": {
46
- "@tamagui/build": "1.73.2"
67
+ "@tamagui/build": "1.74.1"
47
68
  },
48
69
  "publishConfig": {
49
70
  "access": "public"
package/src/config.ts CHANGED
@@ -2,12 +2,14 @@ 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'
5
6
  import { fonts } from './fonts'
6
7
  import { media, mediaQueryDefaultActive } from './media'
7
8
 
8
9
  export * from './animations'
9
10
 
10
11
  export const configWithoutAnimations = {
12
+ animations,
11
13
  defaultFont: 'body',
12
14
  shouldAddPrefersColorThemes: true,
13
15
  themeClassNameOnRoot: true,
package/src/v2-base.ts ADDED
@@ -0,0 +1,26 @@
1
+ import { shorthands } from '@tamagui/shorthands'
2
+ import { tokens } from '@tamagui/themes/v2'
3
+ import { themes } from '@tamagui/themes/v2-themes'
4
+ import { CreateTamaguiProps } from '@tamagui/web'
5
+
6
+ import { fonts } from './fonts'
7
+ import { media, mediaQueryDefaultActive } from './media'
8
+
9
+ export const config = {
10
+ defaultFont: 'body',
11
+ shouldAddPrefersColorThemes: true,
12
+ themeClassNameOnRoot: true,
13
+ themes,
14
+ media,
15
+ shorthands,
16
+ tokens,
17
+ fonts,
18
+ mediaQueryDefaultActive: mediaQueryDefaultActive,
19
+ selectionStyles: (theme) =>
20
+ theme.color5
21
+ ? {
22
+ backgroundColor: theme.color5,
23
+ color: theme.color11,
24
+ }
25
+ : null,
26
+ } satisfies CreateTamaguiProps
@@ -0,0 +1,9 @@
1
+ import { CreateTamaguiProps } from '@tamagui/web'
2
+
3
+ import { animations } from './animations'
4
+ import { config as configBase } from './v2-base'
5
+
6
+ export const config = {
7
+ ...configBase,
8
+ animations,
9
+ } satisfies CreateTamaguiProps
@@ -0,0 +1,9 @@
1
+ import { CreateTamaguiProps } from '@tamagui/web'
2
+
3
+ import { animations } from './animations.reanimated'
4
+ import { config as configBase } from './v2-base'
5
+
6
+ export const config = {
7
+ ...configBase,
8
+ animations,
9
+ } satisfies CreateTamaguiProps
@@ -0,0 +1,9 @@
1
+ import { CreateTamaguiProps } from '@tamagui/web'
2
+
3
+ import { animations } from './animations'
4
+ import { config as configBase } from './v2-base'
5
+
6
+ export const config = {
7
+ ...configBase,
8
+ animations,
9
+ } satisfies CreateTamaguiProps
package/src/v2.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { CreateTamaguiProps } from '@tamagui/web'
2
+
3
+ import { animations } from './animations.css'
4
+ import { config as configBase } from './v2-base'
5
+
6
+ export const config = {
7
+ ...configBase,
8
+ animations,
9
+ } satisfies CreateTamaguiProps
package/types/config.d.ts CHANGED
@@ -1,6 +1,45 @@
1
1
  import { themes } from '@tamagui/themes';
2
2
  export * from './animations';
3
3
  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
+ }>;
4
43
  defaultFont: string;
5
44
  shouldAddPrefersColorThemes: true;
6
45
  themeClassNameOnRoot: true;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAU,MAAM,iBAAiB,CAAA;AAMhD,cAAc,cAAc,CAAA;AAE5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBN,CAAA"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAU,MAAM,iBAAiB,CAAA;AAOhD,cAAc,cAAc,CAAA;AAE5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBN,CAAA"}