@tamagui/config-default 3.0.0-beta.924.1 → 3.0.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.
@@ -22,19 +22,5 @@ var animations_exports = {};
22
22
  __export(animations_exports, { animations: () => animations });
23
23
  module.exports = __toCommonJS(animations_exports);
24
24
  var import_extras = require("@tamagui/animations-css/extras");
25
- const smoothBezier = "cubic-bezier(0.215, 0.610, 0.355, 1.000)";
26
- const animations = (0, import_extras.createAnimations)({
27
- "75ms": "ease-in 75ms",
28
- "100ms": "ease-in 100ms",
29
- "200ms": "ease-in 200ms",
30
- bouncy: "ease-in 200ms",
31
- superBouncy: "ease-in 500ms",
32
- lazy: "ease-in 1000ms",
33
- medium: "ease-in 300ms",
34
- slow: "ease-in 500ms",
35
- quick: `${smoothBezier} 400ms`,
36
- quicker: `${smoothBezier} 300ms`,
37
- quickest: `${smoothBezier} 200ms`,
38
- tooltip: "ease-in 400ms",
39
- select: "ease-in 150ms"
40
- });
25
+ var import_presets = require("./presets.cjs");
26
+ const animations = (0, import_extras.createAnimations)(import_presets.presets);
@@ -24,42 +24,5 @@ var animations_native_exports = {};
24
24
  __export(animations_native_exports, { animations: () => animations });
25
25
  module.exports = __toCommonJS(animations_native_exports);
26
26
  var import_animations_react_native = require("@tamagui/animations-react-native");
27
- var animations = (0, import_animations_react_native.createAnimations)({
28
- "100ms": {
29
- type: "timing",
30
- duration: 100
31
- },
32
- bouncy: {
33
- damping: 9,
34
- mass: .9,
35
- stiffness: 150
36
- },
37
- lazy: {
38
- damping: 18,
39
- stiffness: 50
40
- },
41
- medium: {
42
- damping: 15,
43
- stiffness: 120,
44
- mass: 1
45
- },
46
- slow: {
47
- damping: 15,
48
- stiffness: 40
49
- },
50
- quick: {
51
- damping: 20,
52
- mass: 1.2,
53
- stiffness: 250
54
- },
55
- tooltip: {
56
- damping: 10,
57
- mass: .9,
58
- stiffness: 100
59
- },
60
- select: {
61
- damping: 45,
62
- mass: .5,
63
- stiffness: 1e3
64
- }
65
- });
27
+ var import_presets = require("./presets.native.js");
28
+ var animations = (0, import_animations_react_native.createAnimations)(import_presets.presets);
@@ -24,44 +24,7 @@ var animations_native_exports = {};
24
24
  __export(animations_native_exports, { animations: () => animations });
25
25
  module.exports = __toCommonJS(animations_native_exports);
26
26
  var import_animations_react_native = require("@tamagui/animations-react-native");
27
- var animations = (0, import_animations_react_native.createAnimations)({
28
- "100ms": {
29
- type: "timing",
30
- duration: 100
31
- },
32
- bouncy: {
33
- damping: 9,
34
- mass: .9,
35
- stiffness: 150
36
- },
37
- lazy: {
38
- damping: 18,
39
- stiffness: 50
40
- },
41
- medium: {
42
- damping: 15,
43
- stiffness: 120,
44
- mass: 1
45
- },
46
- slow: {
47
- damping: 15,
48
- stiffness: 40
49
- },
50
- quick: {
51
- damping: 20,
52
- mass: 1.2,
53
- stiffness: 250
54
- },
55
- tooltip: {
56
- damping: 10,
57
- mass: .9,
58
- stiffness: 100
59
- },
60
- select: {
61
- damping: 45,
62
- mass: .5,
63
- stiffness: 1e3
64
- }
65
- });
27
+ var import_presets = require("./presets.native.js");
28
+ var animations = (0, import_animations_react_native.createAnimations)(import_presets.presets);
66
29
 
67
30
  //# sourceMappingURL=animations.native.js.map
@@ -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,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"}
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 import_presets = require(\"./presets\");\nvar animations = (0, import_animations_react_native.createAnimations)(import_presets.presets);\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,iBAAiB,QAAQ,qBAAW;AACxC,IAAI,cAAc,GAAG,+BAA+B,iBAAgB,CAAE,eAAe,OAAO"}
package/dist/index.cjs CHANGED
@@ -25,15 +25,31 @@ var import_shorthands = require("@tamagui/shorthands");
25
25
  var import_web = require("@tamagui/web");
26
26
  var import_animations = require("./animations.cjs");
27
27
  function getDefaultTamaguiConfig(_platform = "web") {
28
+ const typeSize = {
29
+ xs: 12,
30
+ sm: 14,
31
+ base: 16,
32
+ lg: 18,
33
+ xl: 20
34
+ };
35
+ const typeLineHeight = {
36
+ xs: 16,
37
+ sm: 20,
38
+ base: 24,
39
+ lg: 28,
40
+ xl: 28
41
+ };
28
42
  const headingFont = (0, import_web.createFont)({
29
43
  family: "Heading",
30
44
  size: {
31
45
  1: 15,
32
- 4: 15
46
+ 4: 15,
47
+ ...typeSize
33
48
  },
34
49
  lineHeight: {
35
50
  1: 15,
36
- 4: 15
51
+ 4: 15,
52
+ ...typeLineHeight
37
53
  },
38
54
  transform: {},
39
55
  weight: { 1: "400" },
@@ -44,11 +60,13 @@ function getDefaultTamaguiConfig(_platform = "web") {
44
60
  family: "System",
45
61
  size: {
46
62
  1: 15,
47
- 4: 15
63
+ 4: 15,
64
+ ...typeSize
48
65
  },
49
66
  lineHeight: {
50
67
  1: 15,
51
- 4: 15
68
+ 4: 15,
69
+ ...typeLineHeight
52
70
  },
53
71
  transform: {},
54
72
  weight: { 1: "400" },
@@ -28,15 +28,31 @@ var import_web = require("@tamagui/web");
28
28
  var import_animations = require("./animations.native.js");
29
29
  function getDefaultTamaguiConfig() {
30
30
  var _platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "web";
31
+ var typeSize = {
32
+ xs: 12,
33
+ sm: 14,
34
+ base: 16,
35
+ lg: 18,
36
+ xl: 20
37
+ };
38
+ var typeLineHeight = {
39
+ xs: 16,
40
+ sm: 20,
41
+ base: 24,
42
+ lg: 28,
43
+ xl: 28
44
+ };
31
45
  var headingFont = (0, import_web.createFont)({
32
46
  family: "Heading",
33
47
  size: {
34
48
  1: 15,
35
- 4: 15
49
+ 4: 15,
50
+ ...typeSize
36
51
  },
37
52
  lineHeight: {
38
53
  1: 15,
39
- 4: 15
54
+ 4: 15,
55
+ ...typeLineHeight
40
56
  },
41
57
  transform: {},
42
58
  weight: { 1: "400" },
@@ -47,11 +63,13 @@ function getDefaultTamaguiConfig() {
47
63
  family: "System",
48
64
  size: {
49
65
  1: 15,
50
- 4: 15
66
+ 4: 15,
67
+ ...typeSize
51
68
  },
52
69
  lineHeight: {
53
70
  1: 15,
54
- 4: 15
71
+ 4: 15,
72
+ ...typeLineHeight
55
73
  },
56
74
  transform: {},
57
75
  weight: { 1: "400" },
@@ -28,15 +28,31 @@ var import_web = require("@tamagui/web");
28
28
  var import_animations = require("./animations.native.js");
29
29
  function getDefaultTamaguiConfig() {
30
30
  var _platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "web";
31
+ var typeSize = {
32
+ xs: 12,
33
+ sm: 14,
34
+ base: 16,
35
+ lg: 18,
36
+ xl: 20
37
+ };
38
+ var typeLineHeight = {
39
+ xs: 16,
40
+ sm: 20,
41
+ base: 24,
42
+ lg: 28,
43
+ xl: 28
44
+ };
31
45
  var headingFont = (0, import_web.createFont)({
32
46
  family: "Heading",
33
47
  size: {
34
48
  1: 15,
35
- 4: 15
49
+ 4: 15,
50
+ ...typeSize
36
51
  },
37
52
  lineHeight: {
38
53
  1: 15,
39
- 4: 15
54
+ 4: 15,
55
+ ...typeLineHeight
40
56
  },
41
57
  transform: {},
42
58
  weight: { 1: "400" },
@@ -47,11 +63,13 @@ function getDefaultTamaguiConfig() {
47
63
  family: "System",
48
64
  size: {
49
65
  1: 15,
50
- 4: 15
66
+ 4: 15,
67
+ ...typeSize
51
68
  },
52
69
  lineHeight: {
53
70
  1: 15,
54
- 4: 15
71
+ 4: 15,
72
+ ...typeLineHeight
55
73
  },
56
74
  transform: {},
57
75
  weight: { 1: "400" },
@@ -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\");\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: import_animations.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,SAAS,0BAA0B;CACjC,IAAI,YAAY,UAAU,SAAS,KAAK,UAAU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AAU,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,kBAAkB;EAC9B,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\");\nfunction getDefaultTamaguiConfig() {\n var _platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"web\";\n var typeSize = {\n xs: 12,\n sm: 14,\n base: 16,\n lg: 18,\n xl: 20\n };\n var typeLineHeight = {\n xs: 16,\n sm: 20,\n base: 24,\n lg: 28,\n xl: 28\n };\n var headingFont = (0, import_web.createFont)({\n family: \"Heading\",\n size: {\n 1: 15,\n 4: 15,\n ...typeSize\n },\n lineHeight: {\n 1: 15,\n 4: 15,\n ...typeLineHeight\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 ...typeSize\n },\n lineHeight: {\n 1: 15,\n 4: 15,\n ...typeLineHeight\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: import_animations.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,SAAS,0BAA0B;CACjC,IAAI,YAAY,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CACjF,IAAI,WAAW;EACb,IAAI;EACJ,IAAI;EACJ,MAAM;EACN,IAAI;EACJ,IAAI;CACN;CACA,IAAI,iBAAiB;EACnB,IAAI;EACJ,IAAI;EACJ,MAAM;EACN,IAAI;E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AU,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,kBAAkB;EAC9B,YAAY,kBAAkB;EAC9B;EACA;EACA;EACA;EACA,UAAU;GACR,6BAA6B;GAC7B,aAAa;EACf;CACF;AACF"}
@@ -0,0 +1,35 @@
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: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+ var presets_exports = {};
22
+ __export(presets_exports, { presets: () => presets });
23
+ module.exports = __toCommonJS(presets_exports);
24
+ var import_animation_helpers = require("@tamagui/animation-helpers");
25
+ const presets = {
26
+ ...import_animation_helpers.animationPresets,
27
+ tooltip: {
28
+ duration: 250,
29
+ bounce: .1
30
+ },
31
+ select: {
32
+ duration: 150,
33
+ bounce: 0
34
+ }
35
+ };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var presets_exports = {};
24
+ __export(presets_exports, { presets: () => presets });
25
+ module.exports = __toCommonJS(presets_exports);
26
+ var import_animation_helpers = require("@tamagui/animation-helpers");
27
+ var presets = {
28
+ ...import_animation_helpers.animationPresets,
29
+ tooltip: {
30
+ duration: 250,
31
+ bounce: .1
32
+ },
33
+ select: {
34
+ duration: 150,
35
+ bounce: 0
36
+ }
37
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var presets_exports = {};
24
+ __export(presets_exports, { presets: () => presets });
25
+ module.exports = __toCommonJS(presets_exports);
26
+ var import_animation_helpers = require("@tamagui/animation-helpers");
27
+ var presets = {
28
+ ...import_animation_helpers.animationPresets,
29
+ tooltip: {
30
+ duration: 250,
31
+ bounce: .1
32
+ },
33
+ select: {
34
+ duration: 150,
35
+ bounce: 0
36
+ }
37
+ };
38
+
39
+ //# sourceMappingURL=presets.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presets.native.js","names":[],"sources":["presets.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 presets_exports = {};\n__export(presets_exports, {\n presets: () => presets\n});\nmodule.exports = __toCommonJS(presets_exports);\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar presets = {\n ...import_animation_helpers.animationPresets,\n // named for where they are used, not for how they feel\n tooltip: {\n duration: 250,\n bounce: 0.1\n },\n select: {\n duration: 150,\n bounce: 0\n }\n};\n//# sourceMappingURL=presets.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,kBAAkB,CAAC;AACvB,SAAS,iBAAiB,EACxB,eAAe,QACjB,CAAC;AACD,OAAO,UAAU,aAAa,eAAe;AAC7C,IAAI,2BAA2B,QAAQ,4BAA4B;AACnE,IAAI,UAAU;CACZ,GAAG,yBAAyB;CAE5B,SAAS;EACP,UAAU;EACV,QAAQ;CACV;CACA,QAAQ;EACN,UAAU;EACV,QAAQ;CACV;AACF"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/config-default",
3
- "version": "3.0.0-beta.924.1",
3
+ "version": "3.0.1",
4
+ "license": "MIT",
4
5
  "source": "src/index.ts",
5
6
  "files": [
6
7
  "types",
@@ -19,18 +20,20 @@
19
20
  "clean:build": "tamagui-build clean:build"
20
21
  },
21
22
  "dependencies": {
22
- "@tamagui/animations-css": "3.0.0-beta.924.1",
23
- "@tamagui/animations-react-native": "3.0.0-beta.924.1",
24
- "@tamagui/core": "3.0.0-beta.924.1",
25
- "@tamagui/shorthands": "3.0.0-beta.924.1",
26
- "@tamagui/web": "3.0.0-beta.924.1"
23
+ "@tamagui/animation-helpers": "3.0.1",
24
+ "@tamagui/animations-css": "3.0.1",
25
+ "@tamagui/animations-react-native": "3.0.1",
26
+ "@tamagui/core": "3.0.1",
27
+ "@tamagui/shorthands": "3.0.1",
28
+ "@tamagui/web": "3.0.1"
27
29
  },
28
30
  "devDependencies": {
29
- "@tamagui/build": "3.0.0-beta.924.1"
31
+ "@tamagui/build": "3.0.1"
30
32
  },
31
33
  "repository": {
32
34
  "type": "git",
33
35
  "url": "git+https://github.com/tamagui/tamagui.git",
34
36
  "directory": "code/core/config-default"
35
- }
37
+ },
38
+ "releaseSourceCommit": "c156b7cc55e5a6cc5883ebc8189720850ac32dbd"
36
39
  }
@@ -1,16 +1,63 @@
1
1
  export declare const animations: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
2
- '75ms': string;
3
- '100ms': string;
4
- '200ms': string;
5
- bouncy: string;
6
- superBouncy: string;
7
- lazy: string;
8
- medium: string;
9
- slow: string;
10
- quick: string;
11
- quicker: string;
12
- quickest: string;
13
- tooltip: string;
14
- select: string;
2
+ quickest: {
3
+ readonly duration: 120;
4
+ readonly bounce: 0.2;
5
+ };
6
+ quickestLessBouncy: {
7
+ readonly duration: 120;
8
+ readonly bounce: 0;
9
+ };
10
+ quicker: {
11
+ readonly duration: 160;
12
+ readonly bounce: 0.25;
13
+ };
14
+ quickerLessBouncy: {
15
+ readonly duration: 160;
16
+ readonly bounce: 0;
17
+ };
18
+ quick: {
19
+ readonly duration: 220;
20
+ readonly bounce: 0.3;
21
+ };
22
+ quickLessBouncy: {
23
+ readonly duration: 220;
24
+ readonly bounce: 0;
25
+ };
26
+ medium: {
27
+ readonly duration: 300;
28
+ readonly bounce: 0.15;
29
+ };
30
+ slow: {
31
+ readonly duration: 450;
32
+ readonly bounce: 0.1;
33
+ };
34
+ slowest: {
35
+ readonly duration: 700;
36
+ readonly bounce: 0.1;
37
+ };
38
+ lazy: {
39
+ readonly duration: 500;
40
+ readonly bounce: -0.2;
41
+ };
42
+ superLazy: {
43
+ readonly duration: 800;
44
+ readonly bounce: -0.3;
45
+ };
46
+ bouncy: {
47
+ readonly duration: 400;
48
+ readonly bounce: 0.5;
49
+ };
50
+ superBouncy: {
51
+ readonly duration: 400;
52
+ readonly bounce: 0.75;
53
+ };
54
+ tooltip: {
55
+ duration: number;
56
+ bounce: number;
57
+ };
58
+ select: {
59
+ duration: number;
60
+ bounce: number;
61
+ };
15
62
  }>;
16
63
  //# sourceMappingURL=animations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../src/animations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;EAcrB,CAAA"}
1
+ {"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../src/animations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA"}
@@ -1,40 +1,63 @@
1
1
  export declare const animations: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
2
- '100ms': {
3
- type: "timing";
4
- duration: number;
2
+ quickest: {
3
+ readonly duration: 120;
4
+ readonly bounce: 0.2;
5
5
  };
6
- bouncy: {
7
- damping: number;
8
- mass: number;
9
- stiffness: number;
6
+ quickestLessBouncy: {
7
+ readonly duration: 120;
8
+ readonly bounce: 0;
10
9
  };
11
- lazy: {
12
- damping: number;
13
- stiffness: number;
10
+ quicker: {
11
+ readonly duration: 160;
12
+ readonly bounce: 0.25;
13
+ };
14
+ quickerLessBouncy: {
15
+ readonly duration: 160;
16
+ readonly bounce: 0;
17
+ };
18
+ quick: {
19
+ readonly duration: 220;
20
+ readonly bounce: 0.3;
21
+ };
22
+ quickLessBouncy: {
23
+ readonly duration: 220;
24
+ readonly bounce: 0;
14
25
  };
15
26
  medium: {
16
- damping: number;
17
- stiffness: number;
18
- mass: number;
27
+ readonly duration: 300;
28
+ readonly bounce: 0.15;
19
29
  };
20
30
  slow: {
21
- damping: number;
22
- stiffness: number;
31
+ readonly duration: 450;
32
+ readonly bounce: 0.1;
23
33
  };
24
- quick: {
25
- damping: number;
26
- mass: number;
27
- stiffness: number;
34
+ slowest: {
35
+ readonly duration: 700;
36
+ readonly bounce: 0.1;
37
+ };
38
+ lazy: {
39
+ readonly duration: 500;
40
+ readonly bounce: -0.2;
41
+ };
42
+ superLazy: {
43
+ readonly duration: 800;
44
+ readonly bounce: -0.3;
45
+ };
46
+ bouncy: {
47
+ readonly duration: 400;
48
+ readonly bounce: 0.5;
49
+ };
50
+ superBouncy: {
51
+ readonly duration: 400;
52
+ readonly bounce: 0.75;
28
53
  };
29
54
  tooltip: {
30
- damping: number;
31
- mass: number;
32
- stiffness: number;
55
+ duration: number;
56
+ bounce: number;
33
57
  };
34
58
  select: {
35
- damping: number;
36
- mass: number;
37
- stiffness: number;
59
+ duration: number;
60
+ bounce: number;
38
61
  };
39
62
  }>;
40
63
  //# sourceMappingURL=animations.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"animations.native.d.ts","sourceRoot":"","sources":["../src/animations.native.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;QAMnB,OAAO;QACP,IAAI;QACJ,SAAS;;;QAGT,OAAO;QACP,SAAS;;;QAGT,OAAO;QACP,SAAS;QACT,IAAI;;;QAGJ,OAAO;QACP,SAAS;;;QAGT,OAAO;QACP,IAAI;QACJ,SAAS;;;QAGT,OAAO;QACP,IAAI;QACJ,SAAS;;;QAGT,OAAO;QACP,IAAI;QACJ,SAAS;;EAEX,CAAA"}
1
+ {"version":3,"file":"animations.native.d.ts","sourceRoot":"","sources":["../src/animations.native.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA"}
package/types/index.d.ts CHANGED
@@ -1,18 +1,65 @@
1
1
  export declare function getDefaultTamaguiConfig(_platform?: 'native' | 'web'): {
2
2
  animations: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
3
- '75ms': string;
4
- '100ms': string;
5
- '200ms': string;
6
- bouncy: string;
7
- superBouncy: string;
8
- lazy: string;
9
- medium: string;
10
- slow: string;
11
- quick: string;
12
- quicker: string;
13
- quickest: string;
14
- tooltip: string;
15
- select: string;
3
+ quickest: {
4
+ readonly duration: 120;
5
+ readonly bounce: 0.2;
6
+ };
7
+ quickestLessBouncy: {
8
+ readonly duration: 120;
9
+ readonly bounce: 0;
10
+ };
11
+ quicker: {
12
+ readonly duration: 160;
13
+ readonly bounce: 0.25;
14
+ };
15
+ quickerLessBouncy: {
16
+ readonly duration: 160;
17
+ readonly bounce: 0;
18
+ };
19
+ quick: {
20
+ readonly duration: 220;
21
+ readonly bounce: 0.3;
22
+ };
23
+ quickLessBouncy: {
24
+ readonly duration: 220;
25
+ readonly bounce: 0;
26
+ };
27
+ medium: {
28
+ readonly duration: 300;
29
+ readonly bounce: 0.15;
30
+ };
31
+ slow: {
32
+ readonly duration: 450;
33
+ readonly bounce: 0.1;
34
+ };
35
+ slowest: {
36
+ readonly duration: 700;
37
+ readonly bounce: 0.1;
38
+ };
39
+ lazy: {
40
+ readonly duration: 500;
41
+ readonly bounce: -0.2;
42
+ };
43
+ superLazy: {
44
+ readonly duration: 800;
45
+ readonly bounce: -0.3;
46
+ };
47
+ bouncy: {
48
+ readonly duration: 400;
49
+ readonly bounce: 0.5;
50
+ };
51
+ superBouncy: {
52
+ readonly duration: 400;
53
+ readonly bounce: 0.75;
54
+ };
55
+ tooltip: {
56
+ duration: number;
57
+ bounce: number;
58
+ };
59
+ select: {
60
+ duration: number;
61
+ bounce: number;
62
+ };
16
63
  }>;
17
64
  shorthands: {
18
65
  readonly ussel: 'userSelect';
@@ -94,10 +141,20 @@ export declare function getDefaultTamaguiConfig(_platform?: 'native' | 'web'): {
94
141
  heading: {
95
142
  family: string;
96
143
  size: {
144
+ xs: number;
145
+ sm: number;
146
+ base: number;
147
+ lg: number;
148
+ xl: number;
97
149
  1: number;
98
150
  4: number;
99
151
  };
100
152
  lineHeight: {
153
+ xs: number;
154
+ sm: number;
155
+ base: number;
156
+ lg: number;
157
+ xl: number;
101
158
  1: number;
102
159
  4: number;
103
160
  };
@@ -115,10 +172,20 @@ export declare function getDefaultTamaguiConfig(_platform?: 'native' | 'web'): {
115
172
  body: {
116
173
  family: string;
117
174
  size: {
175
+ xs: number;
176
+ sm: number;
177
+ base: number;
178
+ lg: number;
179
+ xl: number;
118
180
  1: number;
119
181
  4: number;
120
182
  };
121
183
  lineHeight: {
184
+ xs: number;
185
+ sm: number;
186
+ base: number;
187
+ lg: number;
188
+ xl: number;
122
189
  1: number;
123
190
  4: number;
124
191
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,wBAAgB,uBAAuB,CAAC,SAAS,GAAE,QAAQ,GAAG,KAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAIrE,CAAC;gBACD,CAAC;;;gBAGD,CAAC;gBACD,CAAC;;;;gBAID,CAAC;;;gBAGD,CAAC;;;gBAGD,CAAC;;;;;;gBAOD,CAAC;gBACD,CAAC;;;gBAGD,CAAC;gBACD,CAAC;;;;gBAID,CAAC;;;gBAGD,CAAC;;;gBAGD,CAAC;;;;;;YA6FD,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;YAIL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,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AK;;;YAGL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;YAGL,UAAU;YACV,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUD,QAAQ;;;YACR,QAAQ;;;YACR,QAAQ;;;YACR,QAAQ;;;YACR,QAAQ;;;YACP,QAAQ;;;YACP,QAAQ;;;YACR,QAAQ;;;YACR,QAAQ;;;YACR,QAAQ;;;YACP,SAAS;;;YACV,SAAS;;;YACJ,KAAK;;;YACD,OAAO;;;;QAWtB,2BAA2B;QAC3B,WAAW;;EAGhB"}
@@ -0,0 +1,64 @@
1
+ /** the shared table plus the two this config adds, in one place for both drivers */
2
+ export declare const presets: {
3
+ quickest: {
4
+ readonly duration: 120;
5
+ readonly bounce: 0.2;
6
+ };
7
+ quickestLessBouncy: {
8
+ readonly duration: 120;
9
+ readonly bounce: 0;
10
+ };
11
+ quicker: {
12
+ readonly duration: 160;
13
+ readonly bounce: 0.25;
14
+ };
15
+ quickerLessBouncy: {
16
+ readonly duration: 160;
17
+ readonly bounce: 0;
18
+ };
19
+ quick: {
20
+ readonly duration: 220;
21
+ readonly bounce: 0.3;
22
+ };
23
+ quickLessBouncy: {
24
+ readonly duration: 220;
25
+ readonly bounce: 0;
26
+ };
27
+ medium: {
28
+ readonly duration: 300;
29
+ readonly bounce: 0.15;
30
+ };
31
+ slow: {
32
+ readonly duration: 450;
33
+ readonly bounce: 0.1;
34
+ };
35
+ slowest: {
36
+ readonly duration: 700;
37
+ readonly bounce: 0.1;
38
+ };
39
+ lazy: {
40
+ readonly duration: 500;
41
+ readonly bounce: -0.2;
42
+ };
43
+ superLazy: {
44
+ readonly duration: 800;
45
+ readonly bounce: -0.3;
46
+ };
47
+ bouncy: {
48
+ readonly duration: 400;
49
+ readonly bounce: 0.5;
50
+ };
51
+ superBouncy: {
52
+ readonly duration: 400;
53
+ readonly bounce: 0.75;
54
+ };
55
+ tooltip: {
56
+ duration: number;
57
+ bounce: number;
58
+ };
59
+ select: {
60
+ duration: number;
61
+ bounce: number;
62
+ };
63
+ };
64
+ //# sourceMappingURL=presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../src/presets.ts"],"names":[],"mappings":"AAEA,oFAAoF;AACpF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGP,QAAQ;QAAO,MAAM;;;QACtB,QAAQ;QAAO,MAAM;;CAChC,CAAA"}