@multiplatform.one/theme 10.27.2 → 10.27.4

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 (29) hide show
  1. package/dist/cjs/nativeTwins.cjs +2 -0
  2. package/dist/cjs/nativeTwins.native.cjs +2 -0
  3. package/dist/cjs/nativeTwins.native.js +2 -0
  4. package/dist/cjs/nativeTwins.native.js.map +1 -1
  5. package/dist/cjs/theme/animations/index.native.cjs +2 -3
  6. package/dist/cjs/theme/animations/index.native.js +2 -3
  7. package/dist/cjs/theme/animations/index.native.js.map +1 -1
  8. package/dist/cjs/theme/animations/nativeDriver.cjs +28 -0
  9. package/dist/cjs/theme/animations/nativeDriver.native.cjs +30 -0
  10. package/dist/cjs/theme/animations/nativeDriver.native.js +32 -0
  11. package/dist/cjs/theme/animations/nativeDriver.native.js.map +1 -0
  12. package/dist/esm/nativeTwins.mjs +2 -1
  13. package/dist/esm/nativeTwins.native.js +2 -1
  14. package/dist/esm/theme/animations/index.native.js +2 -3
  15. package/dist/esm/theme/animations/index.native.js.map +1 -1
  16. package/dist/esm/theme/animations/nativeDriver.mjs +9 -0
  17. package/dist/esm/theme/animations/nativeDriver.mjs.map +1 -0
  18. package/dist/esm/theme/animations/nativeDriver.native.js +9 -0
  19. package/dist/esm/theme/animations/nativeDriver.native.js.map +1 -0
  20. package/package.json +5 -5
  21. package/src/nativeTwins.ts +1 -0
  22. package/src/theme/animations/index.ts +4 -2
  23. package/src/theme/animations/nativeDriver.ts +18 -0
  24. package/types/nativeTwins.d.ts +1 -0
  25. package/types/nativeTwins.d.ts.map +1 -1
  26. package/types/theme/animations/index.d.ts +3 -126
  27. package/types/theme/animations/index.d.ts.map +1 -1
  28. package/types/theme/animations/nativeDriver.d.ts +13 -0
  29. package/types/theme/animations/nativeDriver.d.ts.map +1 -0
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var nativeTwins_exports = {};
22
22
  __export(nativeTwins_exports, {
23
23
  ThemeProvider: () => import_nativeTheme.ThemeProvider,
24
+ createNativeAnimations: () => import_nativeDriver.createNativeAnimations,
24
25
  transitionProps: () => import_nativeTransitionProps.transitionProps,
25
26
  usePresetSwitch: () => import_nativePresetSwitch.usePresetSwitch,
26
27
  useSchemePreference: () => import_nativeSchemePreference.useSchemePreference
@@ -30,3 +31,4 @@ var import_nativeTheme = require("./theme/nativeTheme.cjs");
30
31
  var import_nativePresetSwitch = require("./theme/nativePresetSwitch.cjs");
31
32
  var import_nativeSchemePreference = require("./theme/nativeSchemePreference.cjs");
32
33
  var import_nativeTransitionProps = require("./theme/nativeTransitionProps.cjs");
34
+ var import_nativeDriver = require("./theme/animations/nativeDriver.cjs");
@@ -23,6 +23,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
23
23
  var nativeTwins_exports = {};
24
24
  __export(nativeTwins_exports, {
25
25
  ThemeProvider: () => import_nativeTheme.ThemeProvider,
26
+ createNativeAnimations: () => import_nativeDriver.createNativeAnimations,
26
27
  transitionProps: () => import_nativeTransitionProps.transitionProps,
27
28
  usePresetSwitch: () => import_nativePresetSwitch.usePresetSwitch,
28
29
  useSchemePreference: () => import_nativeSchemePreference.useSchemePreference
@@ -32,3 +33,4 @@ var import_nativeTheme = require("./theme/nativeTheme.native.js");
32
33
  var import_nativePresetSwitch = require("./theme/nativePresetSwitch.native.js");
33
34
  var import_nativeSchemePreference = require("./theme/nativeSchemePreference.native.js");
34
35
  var import_nativeTransitionProps = require("./theme/nativeTransitionProps.native.js");
36
+ var import_nativeDriver = require("./theme/animations/nativeDriver.native.js");
@@ -23,6 +23,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
23
23
  var nativeTwins_exports = {};
24
24
  __export(nativeTwins_exports, {
25
25
  ThemeProvider: () => import_nativeTheme.ThemeProvider,
26
+ createNativeAnimations: () => import_nativeDriver.createNativeAnimations,
26
27
  transitionProps: () => import_nativeTransitionProps.transitionProps,
27
28
  usePresetSwitch: () => import_nativePresetSwitch.usePresetSwitch,
28
29
  useSchemePreference: () => import_nativeSchemePreference.useSchemePreference
@@ -32,5 +33,6 @@ var import_nativeTheme = require("./theme/nativeTheme.native.js");
32
33
  var import_nativePresetSwitch = require("./theme/nativePresetSwitch.native.js");
33
34
  var import_nativeSchemePreference = require("./theme/nativeSchemePreference.native.js");
34
35
  var import_nativeTransitionProps = require("./theme/nativeTransitionProps.native.js");
36
+ var import_nativeDriver = require("./theme/animations/nativeDriver.native.js");
35
37
 
36
38
  //# sourceMappingURL=nativeTwins.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nativeTwins.native.js","names":[],"sources":["cjs/nativeTwins.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 nativeTwins_exports = {};\n__export(nativeTwins_exports, {\n ThemeProvider: () => import_nativeTheme.ThemeProvider,\n transitionProps: () => import_nativeTransitionProps.transitionProps,\n usePresetSwitch: () => import_nativePresetSwitch.usePresetSwitch,\n useSchemePreference: () => import_nativeSchemePreference.useSchemePreference\n});\nmodule.exports = __toCommonJS(nativeTwins_exports);\nvar import_nativeTheme = require(\"./theme/nativeTheme\");\nvar import_nativePresetSwitch = require(\"./theme/nativePresetSwitch\");\nvar import_nativeSchemePreference = require(\"./theme/nativeSchemePreference\");\nvar import_nativeTransitionProps = require(\"./theme/nativeTransitionProps\");\n//# sourceMappingURL=nativeTwins.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,sBAAsB,CAAC;AAC3B,SAAS,qBAAqB;CAC5B,qBAAqB,mBAAmB;CACxC,uBAAuB,6BAA6B;CACpD,uBAAuB,0BAA0B;CACjD,2BAA2B,8BAA8B;AAC3D,CAAC;AACD,OAAO,UAAU,aAAa,mBAAmB;AACjD,IAAI,qBAAqB,QAAQ,+BAAqB;AACtD,IAAI,4BAA4B,QAAQ,sCAA4B;AACpE,IAAI,gCAAgC,QAAQ,0CAAgC;AAC5E,IAAI,+BAA+B,QAAQ,yCAA+B"}
1
+ {"version":3,"file":"nativeTwins.native.js","names":[],"sources":["cjs/nativeTwins.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 nativeTwins_exports = {};\n__export(nativeTwins_exports, {\n ThemeProvider: () => import_nativeTheme.ThemeProvider,\n createNativeAnimations: () => import_nativeDriver.createNativeAnimations,\n transitionProps: () => import_nativeTransitionProps.transitionProps,\n usePresetSwitch: () => import_nativePresetSwitch.usePresetSwitch,\n useSchemePreference: () => import_nativeSchemePreference.useSchemePreference\n});\nmodule.exports = __toCommonJS(nativeTwins_exports);\nvar import_nativeTheme = require(\"./theme/nativeTheme\");\nvar import_nativePresetSwitch = require(\"./theme/nativePresetSwitch\");\nvar import_nativeSchemePreference = require(\"./theme/nativeSchemePreference\");\nvar import_nativeTransitionProps = require(\"./theme/nativeTransitionProps\");\nvar import_nativeDriver = require(\"./theme/animations/nativeDriver\");\n//# sourceMappingURL=nativeTwins.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,sBAAsB,CAAC;AAC3B,SAAS,qBAAqB;CAC5B,qBAAqB,mBAAmB;CACxC,8BAA8B,oBAAoB;CAClD,uBAAuB,6BAA6B;CACpD,uBAAuB,0BAA0B;CACjD,2BAA2B,8BAA8B;AAC3D,CAAC;AACD,OAAO,UAAU,aAAa,mBAAmB;AACjD,IAAI,qBAAqB,QAAQ,+BAAqB;AACtD,IAAI,4BAA4B,QAAQ,sCAA4B;AACpE,IAAI,gCAAgC,QAAQ,0CAAgC;AAC5E,IAAI,+BAA+B,QAAQ,yCAA+B;AAC1E,IAAI,sBAAsB,QAAQ,2CAAiC"}
@@ -24,7 +24,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
24
24
  var animations_exports = {};
25
25
  __export(animations_exports, { animations: () => animations });
26
26
  module.exports = __toCommonJS(animations_exports);
27
- var import_animations_react_native = require("@tamagui/animations-react-native");
28
- var import_reactNative = require("./reactNative.native.js");
27
+ var import_nativeDriver = require("./nativeDriver.native.js");
29
28
  __reExport(animations_exports, require("./reactNative.native.js"), module.exports);
30
- var animations = (0, import_animations_react_native.createAnimations)(import_reactNative.animationConfig);
29
+ var animations = (0, import_nativeDriver.createNativeAnimations)();
@@ -24,9 +24,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
24
24
  var animations_exports = {};
25
25
  __export(animations_exports, { animations: () => animations });
26
26
  module.exports = __toCommonJS(animations_exports);
27
- var import_animations_react_native = require("@tamagui/animations-react-native");
28
- var import_reactNative = require("./reactNative.native.js");
27
+ var import_nativeDriver = require("./nativeDriver.native.js");
29
28
  __reExport(animations_exports, require("./reactNative.native.js"), module.exports);
30
- var animations = (0, import_animations_react_native.createAnimations)(import_reactNative.animationConfig);
29
+ var animations = (0, import_nativeDriver.createNativeAnimations)();
31
30
 
32
31
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["cjs/theme/animations/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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar animations_exports = {};\n__export(animations_exports, {\n animations: () => animations\n});\nmodule.exports = __toCommonJS(animations_exports);\nvar import_animations_react_native = require(\"@tamagui/animations-react-native\");\nvar import_reactNative = require(\"./reactNative\");\n__reExport(animations_exports, require(\"./reactNative\"), module.exports);\nvar animations = (0, import_animations_react_native.createAnimations)(import_reactNative.animationConfig);\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,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB,EAC3B,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,IAAI,iCAAiC,QAAQ,kCAAkC;AAC/E,IAAI,qBAAqB,QAAQ,yBAAe;AAChD,WAAW,oBAAoB,QAAQ,yBAAe,GAAG,OAAO,OAAO;AACvE,IAAI,cAAc,GAAG,+BAA+B,iBAAgB,CAAE,mBAAmB,eAAe"}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/theme/animations/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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar animations_exports = {};\n__export(animations_exports, {\n animations: () => animations\n});\nmodule.exports = __toCommonJS(animations_exports);\nvar import_nativeDriver = require(\"./nativeDriver\");\n__reExport(animations_exports, require(\"./reactNative\"), module.exports);\nvar animations = (0, import_nativeDriver.createNativeAnimations)();\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,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB,EAC3B,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,IAAI,sBAAsB,QAAQ,0BAAgB;AAClD,WAAW,oBAAoB,QAAQ,yBAAe,GAAG,OAAO,OAAO;AACvE,IAAI,cAAc,GAAG,oBAAoB,uBAAsB,CAAE"}
@@ -0,0 +1,28 @@
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 nativeDriver_exports = {};
22
+ __export(nativeDriver_exports, { createNativeAnimations: () => createNativeAnimations });
23
+ module.exports = __toCommonJS(nativeDriver_exports);
24
+ var import_animations_react_native = require("@tamagui/animations-react-native");
25
+ var import_reactNative = require("./reactNative.cjs");
26
+ function createNativeAnimations() {
27
+ return Object.assign((0, import_animations_react_native.createAnimations)(import_reactNative.animationConfig), { avoidReRenders: false });
28
+ }
@@ -0,0 +1,30 @@
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 nativeDriver_exports = {};
24
+ __export(nativeDriver_exports, { createNativeAnimations: () => createNativeAnimations });
25
+ module.exports = __toCommonJS(nativeDriver_exports);
26
+ var import_animations_react_native = require("@tamagui/animations-react-native");
27
+ var import_reactNative = require("./reactNative.native.js");
28
+ function createNativeAnimations() {
29
+ return Object.assign((0, import_animations_react_native.createAnimations)(import_reactNative.animationConfig), { avoidReRenders: false });
30
+ }
@@ -0,0 +1,32 @@
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 nativeDriver_exports = {};
24
+ __export(nativeDriver_exports, { createNativeAnimations: () => createNativeAnimations });
25
+ module.exports = __toCommonJS(nativeDriver_exports);
26
+ var import_animations_react_native = require("@tamagui/animations-react-native");
27
+ var import_reactNative = require("./reactNative.native.js");
28
+ function createNativeAnimations() {
29
+ return Object.assign((0, import_animations_react_native.createAnimations)(import_reactNative.animationConfig), { avoidReRenders: false });
30
+ }
31
+
32
+ //# sourceMappingURL=nativeDriver.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeDriver.native.js","names":[],"sources":["cjs/theme/animations/nativeDriver.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 nativeDriver_exports = {};\n__export(nativeDriver_exports, {\n createNativeAnimations: () => createNativeAnimations\n});\nmodule.exports = __toCommonJS(nativeDriver_exports);\nvar import_animations_react_native = require(\"@tamagui/animations-react-native\");\nvar import_reactNative = require(\"./reactNative\");\nfunction createNativeAnimations() {\n return Object.assign((0, import_animations_react_native.createAnimations)(import_reactNative.animationConfig), {\n avoidReRenders: false\n });\n}\n//# sourceMappingURL=nativeDriver.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,uBAAuB,CAAC;AAC5B,SAAS,sBAAsB,EAC7B,8BAA8B,uBAChC,CAAC;AACD,OAAO,UAAU,aAAa,oBAAoB;AAClD,IAAI,iCAAiC,QAAQ,kCAAkC;AAC/E,IAAI,qBAAqB,QAAQ,yBAAe;AAChD,SAAS,yBAAyB;CAChC,OAAO,OAAO,QAAQ,GAAG,+BAA+B,iBAAgB,CAAE,mBAAmB,eAAe,GAAG,EAC7G,gBAAgB,MAClB,CAAC;AACH"}
@@ -2,5 +2,6 @@ import { ThemeProvider } from "./theme/nativeTheme.mjs";
2
2
  import { usePresetSwitch } from "./theme/nativePresetSwitch.mjs";
3
3
  import { useSchemePreference } from "./theme/nativeSchemePreference.mjs";
4
4
  import { transitionProps } from "./theme/nativeTransitionProps.mjs";
5
+ import { createNativeAnimations } from "./theme/animations/nativeDriver.mjs";
5
6
 
6
- export { ThemeProvider, transitionProps, usePresetSwitch, useSchemePreference };
7
+ export { ThemeProvider, createNativeAnimations, transitionProps, usePresetSwitch, useSchemePreference };
@@ -2,5 +2,6 @@ import { ThemeProvider } from "./theme/nativeTheme.native.js";
2
2
  import { usePresetSwitch } from "./theme/nativePresetSwitch.native.js";
3
3
  import { useSchemePreference } from "./theme/nativeSchemePreference.native.js";
4
4
  import { transitionProps } from "./theme/nativeTransitionProps.native.js";
5
+ import { createNativeAnimations } from "./theme/animations/nativeDriver.native.js";
5
6
 
6
- export { ThemeProvider, transitionProps, usePresetSwitch, useSchemePreference };
7
+ export { ThemeProvider, createNativeAnimations, transitionProps, usePresetSwitch, useSchemePreference };
@@ -1,9 +1,8 @@
1
- import { createAnimations } from "@tamagui/animations-react-native";
2
- import { animationConfig } from "./reactNative.native.js";
1
+ import { createNativeAnimations } from "./nativeDriver.native.js";
3
2
 
4
3
  export * from "./reactNative.native.js"
5
4
 
6
- var animations = createAnimations(animationConfig);
5
+ var animations = createNativeAnimations();
7
6
 
8
7
  export { animations };
9
8
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["esm/theme/animations/index.native.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-react-native\";\nimport { animationConfig } from \"./reactNative\";\nexport * from \"./reactNative\";\nvar animations = createAnimations(animationConfig);\nexport {\n animations\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;AAGA,IAAI,aAAa,iBAAiB,eAAe"}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["esm/theme/animations/index.native.js"],"sourcesContent":["import { createNativeAnimations } from \"./nativeDriver\";\nexport * from \"./reactNative\";\nvar animations = createNativeAnimations();\nexport {\n animations\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;AAEA,IAAI,aAAa,uBAAuB"}
@@ -0,0 +1,9 @@
1
+ import { createAnimations } from "@tamagui/animations-react-native";
2
+ import { animationConfig } from "./reactNative.mjs";
3
+
4
+ function createNativeAnimations() {
5
+ return Object.assign(createAnimations(animationConfig), { avoidReRenders: false });
6
+ }
7
+
8
+ export { createNativeAnimations };
9
+ //# sourceMappingURL=nativeDriver.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeDriver.js","names":[],"sources":["esm/theme/animations/nativeDriver.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-react-native\";\nimport { animationConfig } from \"./reactNative\";\nfunction createNativeAnimations() {\n return Object.assign(createAnimations(animationConfig), { avoidReRenders: false });\n}\nexport {\n createNativeAnimations\n};\n//# sourceMappingURL=nativeDriver.js.map\n"],"mappings":";;;;AAEA,SAAS,yBAAyB;CAChC,OAAO,OAAO,OAAO,iBAAiB,eAAe,GAAG,EAAE,gBAAgB,MAAM,CAAC;AACnF"}
@@ -0,0 +1,9 @@
1
+ import { createAnimations } from "@tamagui/animations-react-native";
2
+ import { animationConfig } from "./reactNative.native.js";
3
+
4
+ function createNativeAnimations() {
5
+ return Object.assign(createAnimations(animationConfig), { avoidReRenders: false });
6
+ }
7
+
8
+ export { createNativeAnimations };
9
+ //# sourceMappingURL=nativeDriver.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeDriver.native.js","names":[],"sources":["esm/theme/animations/nativeDriver.native.js"],"sourcesContent":["import { createAnimations } from \"@tamagui/animations-react-native\";\nimport { animationConfig } from \"./reactNative\";\nfunction createNativeAnimations() {\n return Object.assign(createAnimations(animationConfig), {\n avoidReRenders: false\n });\n}\nexport {\n createNativeAnimations\n};\n//# sourceMappingURL=nativeDriver.js.map\n"],"mappings":";;;;AAEA,SAAS,yBAAyB;CAChC,OAAO,OAAO,OAAO,iBAAiB,eAAe,GAAG,EACtD,gBAAgB,MAClB,CAAC;AACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/theme",
3
- "version": "10.27.2",
3
+ "version": "10.27.4",
4
4
  "description": "Tamagui theme system for multiplatform.one",
5
5
  "keywords": [
6
6
  "multiplatform",
@@ -163,8 +163,8 @@
163
163
  "access": "public"
164
164
  },
165
165
  "dependencies": {
166
- "@multiplatform.one/platform": "^10.27.2",
167
- "@multiplatform.one/store": "^10.27.2",
166
+ "@multiplatform.one/platform": "^10.27.4",
167
+ "@multiplatform.one/store": "^10.27.4",
168
168
  "@tamagui/animations-react-native": "3.2.3",
169
169
  "@tamagui/colors": "3.2.3",
170
170
  "@tamagui/config": "3.2.3",
@@ -178,8 +178,8 @@
178
178
  },
179
179
  "devDependencies": {
180
180
  "@expo/prebuild-config": "58.0.19",
181
- "@multiplatform.one/config": "10.27.2",
182
- "@multiplatform.one/test-utils": "10.27.2",
181
+ "@multiplatform.one/config": "10.27.4",
182
+ "@multiplatform.one/test-utils": "10.27.4",
183
183
  "@tamagui/animations-css": "3.2.3",
184
184
  "@tamagui/animations-reanimated": "3.2.3",
185
185
  "@tamagui/build": "3.2.3",
@@ -9,3 +9,4 @@ export { ThemeProvider, type ThemeProviderProps } from "./theme/nativeTheme";
9
9
  export { usePresetSwitch, type PresetSwitch } from "./theme/nativePresetSwitch";
10
10
  export { useSchemePreference, type SchemePreference } from "./theme/nativeSchemePreference";
11
11
  export { transitionProps } from "./theme/nativeTransitionProps";
12
+ export { createNativeAnimations } from "./theme/animations/nativeDriver";
@@ -1,5 +1,7 @@
1
- import { createAnimations } from "@tamagui/animations-react-native";
1
+ import type { AnimationDriverWithAnimatedNumbers } from "@tamagui/web";
2
2
  import { animationConfig } from "./reactNative";
3
+ import { createNativeAnimations } from "./nativeDriver";
3
4
 
4
5
  export * from "./reactNative";
5
- export const animations = createAnimations(animationConfig);
6
+ export const animations: AnimationDriverWithAnimatedNumbers<typeof animationConfig> =
7
+ createNativeAnimations();
@@ -0,0 +1,18 @@
1
+ import { createAnimations } from "@tamagui/animations-react-native";
2
+ import type { AnimationDriverWithAnimatedNumbers } from "@tamagui/web";
3
+ import { animationConfig } from "./reactNative";
4
+
5
+ /**
6
+ * MPO's React Native animation driver. Tamagui 3's driver paints press, hover
7
+ * and focus without a re-render (`avoidReRenders`), and on that path a colour
8
+ * moves through a new interpolation the view never binds: with a 0ms
9
+ * transition (Reduce Motion), a released list row stayed in its press fill
10
+ * (FZ-12947). Pseudo states re-render instead, which rebinds it.
11
+ *
12
+ * A factory, so importing it on web (where the driver throws) costs nothing.
13
+ */
14
+ export function createNativeAnimations(): AnimationDriverWithAnimatedNumbers<
15
+ typeof animationConfig
16
+ > {
17
+ return Object.assign(createAnimations(animationConfig), { avoidReRenders: false });
18
+ }
@@ -8,4 +8,5 @@ export { ThemeProvider, type ThemeProviderProps } from "./theme/nativeTheme";
8
8
  export { usePresetSwitch, type PresetSwitch } from "./theme/nativePresetSwitch";
9
9
  export { useSchemePreference, type SchemePreference } from "./theme/nativeSchemePreference";
10
10
  export { transitionProps } from "./theme/nativeTransitionProps";
11
+ export { createNativeAnimations } from "./theme/animations/nativeDriver";
11
12
  //# sourceMappingURL=nativeTwins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nativeTwins.d.ts","sourceRoot":"","sources":["../src/nativeTwins.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"nativeTwins.d.ts","sourceRoot":"","sources":["../src/nativeTwins.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC"}
@@ -1,128 +1,5 @@
1
+ import type { AnimationDriverWithAnimatedNumbers } from "@tamagui/web";
2
+ import { animationConfig } from "./reactNative";
1
3
  export * from "./reactNative";
2
- export declare const animations: import("@tamagui/web").AnimationDriverWithAnimatedNumbers<{
3
- readonly "0ms": {
4
- readonly type: "timing";
5
- readonly duration: 0;
6
- };
7
- readonly "50ms": {
8
- readonly type: "timing";
9
- readonly duration: 50;
10
- };
11
- readonly "75ms": {
12
- readonly type: "timing";
13
- readonly duration: 75;
14
- };
15
- readonly "100ms": {
16
- readonly type: "timing";
17
- readonly duration: 100;
18
- };
19
- readonly "200ms": {
20
- readonly type: "timing";
21
- readonly duration: 200;
22
- };
23
- readonly "250ms": {
24
- readonly type: "timing";
25
- readonly duration: 250;
26
- };
27
- readonly "300ms": {
28
- readonly type: "timing";
29
- readonly duration: 300;
30
- };
31
- readonly "400ms": {
32
- readonly type: "timing";
33
- readonly duration: 400;
34
- };
35
- readonly "500ms": {
36
- readonly type: "timing";
37
- readonly duration: 500;
38
- };
39
- readonly superBouncy: {
40
- readonly type: "spring";
41
- readonly damping: 5;
42
- readonly mass: 0.7;
43
- readonly stiffness: 180;
44
- };
45
- readonly bouncy: {
46
- readonly type: "spring";
47
- readonly damping: 9;
48
- readonly mass: 0.9;
49
- readonly stiffness: 120;
50
- };
51
- readonly superLazy: {
52
- readonly type: "spring";
53
- readonly damping: 25;
54
- readonly mass: 2;
55
- readonly stiffness: 25;
56
- };
57
- readonly lazy: {
58
- readonly type: "spring";
59
- readonly damping: 18;
60
- readonly mass: 0.2;
61
- readonly stiffness: 10;
62
- };
63
- readonly medium: {
64
- readonly damping: 16;
65
- readonly stiffness: 90;
66
- readonly mass: 0.8;
67
- };
68
- readonly slowest: {
69
- readonly type: "spring";
70
- readonly damping: 15;
71
- readonly stiffness: 10;
72
- };
73
- readonly slow: {
74
- readonly type: "spring";
75
- readonly damping: 45;
76
- readonly stiffness: 60;
77
- };
78
- readonly quick: {
79
- readonly type: "spring";
80
- readonly damping: 25;
81
- readonly mass: 1;
82
- readonly stiffness: 550;
83
- };
84
- readonly quickLessBouncy: {
85
- readonly type: "spring";
86
- readonly damping: 40;
87
- readonly mass: 2;
88
- readonly stiffness: 400;
89
- };
90
- readonly quicker: {
91
- readonly type: "spring";
92
- readonly damping: 16;
93
- readonly mass: 0.6;
94
- readonly stiffness: 700;
95
- };
96
- readonly quickerLessBouncy: {
97
- readonly type: "spring";
98
- readonly damping: 27;
99
- readonly mass: 0.45;
100
- readonly stiffness: 750;
101
- };
102
- readonly quickest: {
103
- readonly damping: 15;
104
- readonly mass: 0.6;
105
- readonly stiffness: 400;
106
- };
107
- readonly quickestLessBouncy: {
108
- readonly damping: 24;
109
- readonly mass: 0.35;
110
- readonly stiffness: 750;
111
- };
112
- readonly tooltip: {
113
- readonly type: "spring";
114
- readonly damping: 45;
115
- readonly stiffness: 60;
116
- };
117
- readonly snappy: {
118
- readonly damping: 15;
119
- readonly mass: 0.6;
120
- readonly stiffness: 400;
121
- };
122
- readonly gentle: {
123
- readonly type: "spring";
124
- readonly damping: 45;
125
- readonly stiffness: 60;
126
- };
127
- }>;
4
+ export declare const animations: AnimationDriverWithAnimatedNumbers<typeof animationConfig>;
128
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/animations/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/animations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,cAAc,eAAe,CAAC;AAC9B,eAAO,MAAM,UAAU,EAAE,kCAAkC,CAAC,OAAO,eAAe,CACxD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { AnimationDriverWithAnimatedNumbers } from "@tamagui/web";
2
+ import { animationConfig } from "./reactNative";
3
+ /**
4
+ * MPO's React Native animation driver. Tamagui 3's driver paints press, hover
5
+ * and focus without a re-render (`avoidReRenders`), and on that path a colour
6
+ * moves through a new interpolation the view never binds: with a 0ms
7
+ * transition (Reduce Motion), a released list row stayed in its press fill
8
+ * (FZ-12947). Pseudo states re-render instead, which rebinds it.
9
+ *
10
+ * A factory, so importing it on web (where the driver throws) costs nothing.
11
+ */
12
+ export declare function createNativeAnimations(): AnimationDriverWithAnimatedNumbers<typeof animationConfig>;
13
+ //# sourceMappingURL=nativeDriver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeDriver.d.ts","sourceRoot":"","sources":["../../../src/theme/animations/nativeDriver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,IAAI,kCAAkC,CAC1E,OAAO,eAAe,CACvB,CAEA"}