@tamagui/config-default 3.0.0-beta.669.1 → 3.0.0-beta.728.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.
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -22,9 +21,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
21
  var animations_exports = {};
23
22
  __export(animations_exports, { animations: () => animations });
24
23
  module.exports = __toCommonJS(animations_exports);
25
- var import_animations_css = require("@tamagui/animations-css");
24
+ var import_extras = require("@tamagui/animations-css/extras");
26
25
  const smoothBezier = "cubic-bezier(0.215, 0.610, 0.355, 1.000)";
27
- const animations = (0, import_animations_css.createAnimations)({
26
+ const animations = (0, import_extras.createAnimations)({
28
27
  "75ms": "ease-in 75ms",
29
28
  "100ms": "ease-in 100ms",
30
29
  "200ms": "ease-in 200ms",
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"animations.native.js","names":[],"sources":["animations.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar animations_native_exports = {};\n__export(animations_native_exports, {\n animations: () => animations\n});\nmodule.exports = __toCommonJS(animations_native_exports);\nvar import_animations_react_native = require(\"@tamagui/animations-react-native\");\nvar animations = (0, import_animations_react_native.createAnimations)({\n \"100ms\": {\n type: \"timing\",\n duration: 100\n },\n bouncy: {\n damping: 9,\n mass: 0.9,\n stiffness: 150\n },\n lazy: {\n damping: 18,\n stiffness: 50\n },\n medium: {\n damping: 15,\n stiffness: 120,\n mass: 1\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 select: {\n damping: 45,\n mass: 0.5,\n stiffness: 1e3\n }\n});\n//# sourceMappingURL=animations.native.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,iCAAiC,QAAQ,kCAAkC;AAC/E,IAAI,cAAc,GAAG,+BAA+B,kBAAkB;CACpE,SAAS;EACP,MAAM;EACN,UAAU;CACZ;CACA,QAAQ;EACN,SAAS;EACT,MAAM;EACN,WAAW;CACb;CACA,MAAM;EACJ,SAAS;EACT,WAAW;CACb;CACA,QAAQ;EACN,SAAS;EACT,WAAW;EACX,MAAM;CACR;CACA,MAAM;EACJ,SAAS;EACT,WAAW;CACb;CACA,OAAO;EACL,SAAS;EACT,MAAM;EACN,WAAW;CACb;CACA,SAAS;EACP,SAAS;EACT,MAAM;EACN,WAAW;CACb;CACA,QAAQ;EACN,SAAS;EACT,MAAM;EACN,WAAW;CACb;AACF,CAAC"}
1
+ {"version":3,"file":"animations.native.js","names":[],"sources":["animations.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar animations_native_exports = {};\n__export(animations_native_exports, {\n animations: () => animations\n});\nmodule.exports = __toCommonJS(animations_native_exports);\nvar import_animations_react_native = require(\"@tamagui/animations-react-native\");\nvar animations = (0, import_animations_react_native.createAnimations)({\n \"100ms\": {\n type: \"timing\",\n duration: 100\n },\n bouncy: {\n damping: 9,\n mass: 0.9,\n stiffness: 150\n },\n lazy: {\n damping: 18,\n stiffness: 50\n },\n medium: {\n damping: 15,\n stiffness: 120,\n mass: 1\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 select: {\n damping: 45,\n mass: 0.5,\n stiffness: 1e3\n }\n});\n//# sourceMappingURL=animations.native.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,iCAAiC,QAAQ,kCAAkC;AAC/E,IAAI,cAAc,GAAG,+BAA+B,iBAAgB,CAAE;CACpE,SAAS;EACP,MAAM;EACN,UAAU;CACZ;CACA,QAAQ;EACN,SAAS;EACT,MAAM;EACN,WAAW;CACb;CACA,MAAM;EACJ,SAAS;EACT,WAAW;CACb;CACA,QAAQ;EACN,SAAS;EACT,WAAW;EACX,MAAM;CACR;CACA,MAAM;EACJ,SAAS;EACT,WAAW;CACb;CACA,OAAO;EACL,SAAS;EACT,MAAM;EACN,WAAW;CACb;CACA,SAAS;EACP,SAAS;EACT,MAAM;EACN,WAAW;CACb;CACA,QAAQ;EACN,SAAS;EACT,MAAM;EACN,WAAW;CACb;AACF,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n getDefaultTamaguiConfig: () => getDefaultTamaguiConfig\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_shorthands = require(\"@tamagui/shorthands\");\nvar import_web = require(\"@tamagui/web\");\nvar import_animations = require(\"./animations\");\nvar import_animations2 = require(\"./animations.native\");\nfunction getDefaultTamaguiConfig() {\n var platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"web\";\n var headingFont = (0, import_web.createFont)({\n family: \"Heading\",\n size: {\n 1: 15,\n 4: 15\n },\n lineHeight: {\n 1: 15,\n 4: 15\n },\n transform: {},\n weight: {\n 1: \"400\"\n },\n color: {\n 1: \"color\"\n },\n letterSpacing: {\n 1: 0\n }\n });\n var font = (0, import_web.createFont)({\n family: \"System\",\n size: {\n 1: 15,\n 4: 15\n },\n lineHeight: {\n 1: 15,\n 4: 15\n },\n transform: {},\n weight: {\n 1: \"400\"\n },\n color: {\n 1: \"color\"\n },\n letterSpacing: {\n 1: 0\n }\n });\n var size = {\n 0: 0,\n 0.25: 2,\n 0.5: 4,\n 0.75: 8,\n 1: 20,\n 1.5: 24,\n 2: 28,\n 2.5: 32,\n 3: 36,\n 3.5: 40,\n 4: 44,\n 4.5: 48,\n 5: 52,\n 5.5: 59,\n 6: 64,\n 6.5: 69,\n 7: 74,\n 7.6: 79,\n 8: 84,\n 8.5: 89,\n 9: 94,\n 9.5: 99,\n 10: 104,\n 11: 124,\n 12: 144,\n 13: 164,\n 14: 184,\n 15: 204,\n 16: 224,\n 17: 224,\n 18: 244,\n 19: 264,\n 20: 284\n };\n var spaces = Object.entries(size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n Math.max(0, v <= 16 ? Math.round(v * 0.333) : Math.floor(v * 0.7 - 12))\n ];\n });\n var spacesNegative = spaces.slice(1).map(function(param) {\n var [k, v] = param;\n return [\n `-${k}`,\n -v\n ];\n });\n var space = {\n ...Object.fromEntries(spaces),\n ...Object.fromEntries(spacesNegative)\n };\n var zIndex = {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500\n };\n var radius = {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 16,\n 7: 19,\n 8: 22,\n 9: 26,\n 10: 34,\n 11: 42,\n 12: 50\n };\n var tokens = (0, import_web.createTokens)({\n color: {\n white: \"#fff\",\n black: \"#000\"\n },\n radius,\n zIndex,\n space,\n size\n });\n var themes = {\n light: {\n background: tokens.color.white,\n color: tokens.color.black\n },\n dark: {\n background: tokens.color.black,\n color: tokens.color.white\n },\n // most of these used for testing:\n dark_blue: {\n background: \"blue\",\n color: \"white\"\n },\n dark_Card: {\n background: \"dark\",\n color: \"card\"\n },\n dark_Button: {\n background: \"dark\",\n color: \"button\"\n },\n dark_blue_Button: {\n background: \"blue\",\n color: \"white\"\n },\n dark_red: {\n background: \"darkred\",\n color: \"white\"\n },\n dark_red_alt1: {\n background: \"darkred\",\n color: \"white\"\n },\n dark_red_Button: {\n background: \"darkred\",\n color: \"#ccc\"\n },\n dark_yellow_Button: {\n background: \"brown\",\n color: \"#ccc\"\n },\n dark_red_active_ListItem: {\n background: \"darkred\",\n color: \"red\"\n },\n dark_red_alt2: {\n background: \"darkred\",\n color: \"#555\"\n },\n dark_red_alt2_Button: {\n background: \"darkred\",\n color: \"#444\"\n },\n red: {\n background: \"red\",\n color: \"red\"\n }\n };\n var fonts = {\n heading: headingFont,\n body: font\n };\n var media = {\n xs: {\n maxWidth: 660\n },\n sm: {\n maxWidth: 800\n },\n md: {\n maxWidth: 1020\n },\n lg: {\n maxWidth: 1280\n },\n xl: {\n maxWidth: 1420\n },\n xxl: {\n maxWidth: 1600\n },\n gtXs: {\n minWidth: 660 + 1\n },\n gtSm: {\n minWidth: 800 + 1\n },\n gtMd: {\n minWidth: 1020 + 1\n },\n gtLg: {\n minWidth: 1280 + 1\n },\n short: {\n maxHeight: 820\n },\n tall: {\n minHeight: 820\n },\n hoverNone: {\n hover: \"none\"\n },\n pointerCoarse: {\n pointer: \"coarse\"\n }\n };\n return {\n animations: platform === \"web\" ? import_animations.animations : import_animations2.animations,\n shorthands: import_shorthands.shorthands,\n fonts,\n themes,\n tokens,\n media,\n settings: {\n shouldAddPrefersColorThemes: true,\n defaultFont: \"body\"\n }\n };\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe,EACtB,+BAA+B,wBACjC,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI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AAO;EACT;EACA,KAAK;GACH,YAAY;GACZ,OAAO;EACT;CACF;CACA,IAAI,QAAQ;EACV,SAAS;EACT,MAAM;CACR;CACA,IAAI,QAAQ;EACV,IAAI,EACF,UAAU,IACZ;EACA,IAAI,EACF,UAAU,IACZ;EACA,IAAI,EACF,UAAU,KACZ;EACA,IAAI,EACF,UAAU,KACZ;EACA,IAAI,EACF,UAAU,KACZ;EACA,KAAK,EACH,UAAU,KACZ;EACA,MAAM,EACJ,UAAU,MAAM,EAClB;EACA,MAAM,EACJ,UAAU,MAAM,EAClB;EACA,MAAM,EACJ,UAAU,OAAO,EACnB;EACA,MAAM,EACJ,UAAU,OAAO,EACnB;EACA,OAAO,EACL,WAAW,IACb;EACA,MAAM,EACJ,WAAW,IACb;EACA,WAAW,EACT,OAAO,OACT;EACA,eAAe,EACb,SAAS,SACX;CACF;CACA,OAAO;EACL,YAAY,aAAa,QAAQ,kBAAkB,aAAa,mBAAmB;EACnF,YAAY,kBAAkB;EAC9B;EACA;EACA;EACA;EACA,UAAU;GACR,6BAA6B;GAC7B,aAAa;EACf;CACF;AACF"}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n getDefaultTamaguiConfig: () => getDefaultTamaguiConfig\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_shorthands = require(\"@tamagui/shorthands\");\nvar import_web = require(\"@tamagui/web\");\nvar import_animations = require(\"./animations\");\nvar import_animations2 = require(\"./animations.native\");\nfunction getDefaultTamaguiConfig() {\n var platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"web\";\n var headingFont = (0, import_web.createFont)({\n family: \"Heading\",\n size: {\n 1: 15,\n 4: 15\n },\n lineHeight: {\n 1: 15,\n 4: 15\n },\n transform: {},\n weight: {\n 1: \"400\"\n },\n color: {\n 1: \"color\"\n },\n letterSpacing: {\n 1: 0\n }\n });\n var font = (0, import_web.createFont)({\n family: \"System\",\n size: {\n 1: 15,\n 4: 15\n },\n lineHeight: {\n 1: 15,\n 4: 15\n },\n transform: {},\n weight: {\n 1: \"400\"\n },\n color: {\n 1: \"color\"\n },\n letterSpacing: {\n 1: 0\n }\n });\n var size = {\n 0: 0,\n 0.25: 2,\n 0.5: 4,\n 0.75: 8,\n 1: 20,\n 1.5: 24,\n 2: 28,\n 2.5: 32,\n 3: 36,\n 3.5: 40,\n 4: 44,\n 4.5: 48,\n 5: 52,\n 5.5: 59,\n 6: 64,\n 6.5: 69,\n 7: 74,\n 7.6: 79,\n 8: 84,\n 8.5: 89,\n 9: 94,\n 9.5: 99,\n 10: 104,\n 11: 124,\n 12: 144,\n 13: 164,\n 14: 184,\n 15: 204,\n 16: 224,\n 17: 224,\n 18: 244,\n 19: 264,\n 20: 284\n };\n var spaces = Object.entries(size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n Math.max(0, v <= 16 ? Math.round(v * 0.333) : Math.floor(v * 0.7 - 12))\n ];\n });\n var spacesNegative = spaces.slice(1).map(function(param) {\n var [k, v] = param;\n return [\n `-${k}`,\n -v\n ];\n });\n var space = {\n ...Object.fromEntries(spaces),\n ...Object.fromEntries(spacesNegative)\n };\n var zIndex = {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500\n };\n var radius = {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 16,\n 7: 19,\n 8: 22,\n 9: 26,\n 10: 34,\n 11: 42,\n 12: 50\n };\n var tokens = (0, import_web.createTokens)({\n color: {\n white: \"#fff\",\n black: \"#000\"\n },\n radius,\n zIndex,\n space,\n size\n });\n var themes = {\n light: {\n background: tokens.color.white,\n color: tokens.color.black\n },\n dark: {\n background: tokens.color.black,\n color: tokens.color.white\n },\n // most of these used for testing:\n dark_blue: {\n background: \"blue\",\n color: \"white\"\n },\n dark_Card: {\n background: \"dark\",\n color: \"card\"\n },\n dark_Button: {\n background: \"dark\",\n color: \"button\"\n },\n dark_blue_Button: {\n background: \"blue\",\n color: \"white\"\n },\n dark_red: {\n background: \"darkred\",\n color: \"white\"\n },\n dark_red_alt1: {\n background: \"darkred\",\n color: \"white\"\n },\n dark_red_Button: {\n background: \"darkred\",\n color: \"#ccc\"\n },\n dark_yellow_Button: {\n background: \"brown\",\n color: \"#ccc\"\n },\n dark_red_active_ListItem: {\n background: \"darkred\",\n color: \"red\"\n },\n dark_red_alt2: {\n background: \"darkred\",\n color: \"#555\"\n },\n dark_red_alt2_Button: {\n background: \"darkred\",\n color: \"#444\"\n },\n red: {\n background: \"red\",\n color: \"red\"\n }\n };\n var fonts = {\n heading: headingFont,\n body: font\n };\n var media = {\n xs: {\n maxWidth: 660\n },\n sm: {\n maxWidth: 800\n },\n md: {\n maxWidth: 1020\n },\n lg: {\n maxWidth: 1280\n },\n xl: {\n maxWidth: 1420\n },\n xxl: {\n maxWidth: 1600\n },\n gtXs: {\n minWidth: 660 + 1\n },\n gtSm: {\n minWidth: 800 + 1\n },\n gtMd: {\n minWidth: 1020 + 1\n },\n gtLg: {\n minWidth: 1280 + 1\n },\n short: {\n maxHeight: 820\n },\n tall: {\n minHeight: 820\n },\n hoverNone: {\n hover: \"none\"\n },\n pointerCoarse: {\n pointer: \"coarse\"\n }\n };\n return {\n animations: platform === \"web\" ? import_animations.animations : import_animations2.animations,\n shorthands: import_shorthands.shorthands,\n fonts,\n themes,\n tokens,\n media,\n settings: {\n shouldAddPrefersColorThemes: true,\n defaultFont: \"body\"\n }\n };\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe,EACtB,+BAA+B,wBACjC,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,oBAAoB,QAAQ,qBAAqB;AACrD,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,oBAAoB,QAAQ,wBAAc;AAC9C,IAAI,qBAAqB,QAAQ,wBAAqB;AACtD,SAAS,0BAA0B;CACjC,IAAI,WAAW,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAChF,IAAI,eAAe,GAAG,WAAW,WAAU,CAAE;EAC3C,QA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AAU,KACZ;EACA,KAAK,EACH,UAAU,KACZ;EACA,MAAM,EACJ,UAAU,MAAM,EAClB;EACA,MAAM,EACJ,UAAU,MAAM,EAClB;EACA,MAAM,EACJ,UAAU,OAAO,EACnB;EACA,MAAM,EACJ,UAAU,OAAO,EACnB;EACA,OAAO,EACL,WAAW,IACb;EACA,MAAM,EACJ,WAAW,IACb;EACA,WAAW,EACT,OAAO,OACT;EACA,eAAe,EACb,SAAS,SACX;CACF;CACA,OAAO;EACL,YAAY,aAAa,QAAQ,kBAAkB,aAAa,mBAAmB;EACnF,YAAY,kBAAkB;EAC9B;EACA;EACA;EACA;EACA,UAAU;GACR,6BAA6B;GAC7B,aAAa;EACf;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/config-default",
3
- "version": "3.0.0-beta.669.1",
3
+ "version": "3.0.0-beta.728.1",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "types",
@@ -19,14 +19,14 @@
19
19
  "clean:build": "tamagui-build clean:build"
20
20
  },
21
21
  "dependencies": {
22
- "@tamagui/animations-css": "3.0.0-beta.669.1",
23
- "@tamagui/animations-react-native": "3.0.0-beta.669.1",
24
- "@tamagui/core": "3.0.0-beta.669.1",
25
- "@tamagui/shorthands": "3.0.0-beta.669.1",
26
- "@tamagui/web": "3.0.0-beta.669.1"
22
+ "@tamagui/animations-css": "3.0.0-beta.728.1",
23
+ "@tamagui/animations-react-native": "3.0.0-beta.728.1",
24
+ "@tamagui/core": "3.0.0-beta.728.1",
25
+ "@tamagui/shorthands": "3.0.0-beta.728.1",
26
+ "@tamagui/web": "3.0.0-beta.728.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@tamagui/build": "3.0.0-beta.669.1"
29
+ "@tamagui/build": "3.0.0-beta.728.1"
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",
@@ -1,4 +1,4 @@
1
- export declare const animations: import("@tamagui/web").AnimationDriver<{
1
+ export declare const animations: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
2
2
  '75ms': string;
3
3
  '100ms': string;
4
4
  '200ms': string;
@@ -1,4 +1,4 @@
1
- export declare const animations: import("@tamagui/web").AnimationDriver<{
1
+ export declare const animations: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
2
2
  '100ms': {
3
3
  type: "timing";
4
4
  duration: number;
package/types/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export declare function getDefaultTamaguiConfig(platform?: 'native' | 'web'): {
2
- animations: import("@tamagui/web").AnimationDriver<{
2
+ animations: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
3
3
  '100ms': {
4
4
  type: "timing";
5
5
  duration: number;
@@ -37,7 +37,7 @@ export declare function getDefaultTamaguiConfig(platform?: 'native' | 'web'): {
37
37
  mass: number;
38
38
  stiffness: number;
39
39
  };
40
- }> | import("@tamagui/web").AnimationDriver<{
40
+ }> | import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
41
41
  '75ms': string;
42
42
  '100ms': string;
43
43
  '200ms': string;