@tamagui/core 2.7.7 → 3.0.0-beta.643.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/cjs/createOptimizedView.cjs +15 -18
  2. package/dist/cjs/createOptimizedView.native.cjs +179 -0
  3. package/dist/cjs/createOptimizedView.native.js +159 -258
  4. package/dist/cjs/createOptimizedView.native.js.map +1 -1
  5. package/dist/cjs/dom.cjs +19 -0
  6. package/dist/cjs/dom.native.cjs +21 -0
  7. package/dist/cjs/dom.native.js +23 -0
  8. package/dist/cjs/dom.native.js.map +1 -0
  9. package/dist/cjs/getBaseViews.cjs +16 -19
  10. package/dist/cjs/getBaseViews.native.cjs +44 -0
  11. package/dist/cjs/getBaseViews.native.js +31 -26
  12. package/dist/cjs/getBaseViews.native.js.map +1 -1
  13. package/dist/cjs/index.cjs +32 -98
  14. package/dist/cjs/index.native.cjs +51 -0
  15. package/dist/cjs/index.native.js +32 -70
  16. package/dist/cjs/index.native.js.map +1 -1
  17. package/dist/cjs/inject-styles.cjs +25 -31
  18. package/dist/cjs/inject-styles.native.cjs +39 -0
  19. package/dist/cjs/inject-styles.native.js +26 -31
  20. package/dist/cjs/inject-styles.native.js.map +1 -1
  21. package/dist/cjs/internal-runtime.cjs +34 -0
  22. package/dist/cjs/internal-runtime.native.cjs +36 -0
  23. package/dist/cjs/internal-runtime.native.js +38 -0
  24. package/dist/cjs/internal-runtime.native.js.map +1 -0
  25. package/dist/cjs/reactNativeTypes.cjs +10 -11
  26. package/dist/cjs/reactNativeTypes.native.cjs +19 -0
  27. package/dist/cjs/reactNativeTypes.native.js +10 -10
  28. package/dist/cjs/reactNativeTypes.native.js.map +1 -1
  29. package/dist/cjs/runtime.cjs +72 -0
  30. package/dist/cjs/runtime.native.cjs +77 -0
  31. package/dist/cjs/runtime.native.js +79 -0
  32. package/dist/cjs/runtime.native.js.map +1 -0
  33. package/dist/cjs/setupMedia.cjs +27 -0
  34. package/dist/cjs/setupMedia.native.cjs +32 -0
  35. package/dist/cjs/setupMedia.native.js +34 -0
  36. package/dist/cjs/setupMedia.native.js.map +1 -0
  37. package/dist/esm/createOptimizedView.mjs +2 -1
  38. package/dist/esm/createOptimizedView.mjs.map +1 -1
  39. package/dist/esm/createOptimizedView.native.js +142 -234
  40. package/dist/esm/createOptimizedView.native.js.map +1 -1
  41. package/dist/esm/dom.mjs +1 -0
  42. package/dist/esm/dom.native.js +1 -0
  43. package/dist/esm/getBaseViews.mjs +2 -1
  44. package/dist/esm/getBaseViews.mjs.map +1 -1
  45. package/dist/esm/getBaseViews.native.js +12 -9
  46. package/dist/esm/getBaseViews.native.js.map +1 -1
  47. package/dist/esm/index.js +12 -78
  48. package/dist/esm/index.js.map +1 -1
  49. package/dist/esm/index.mjs +12 -78
  50. package/dist/esm/index.mjs.map +1 -1
  51. package/dist/esm/index.native.js +12 -52
  52. package/dist/esm/index.native.js.map +1 -1
  53. package/dist/esm/inject-styles.mjs +11 -13
  54. package/dist/esm/inject-styles.mjs.map +1 -1
  55. package/dist/esm/inject-styles.native.js +12 -14
  56. package/dist/esm/inject-styles.native.js.map +1 -1
  57. package/dist/esm/internal-runtime.mjs +4 -0
  58. package/dist/esm/internal-runtime.native.js +4 -0
  59. package/dist/esm/reactNativeTypes.mjs +0 -2
  60. package/dist/esm/reactNativeTypes.native.js +0 -2
  61. package/dist/esm/runtime.mjs +47 -0
  62. package/dist/esm/runtime.mjs.map +1 -0
  63. package/dist/esm/runtime.native.js +52 -0
  64. package/dist/esm/runtime.native.js.map +1 -0
  65. package/dist/esm/setupMedia.mjs +6 -0
  66. package/dist/esm/setupMedia.mjs.map +1 -0
  67. package/dist/esm/setupMedia.native.js +10 -0
  68. package/dist/esm/setupMedia.native.js.map +1 -0
  69. package/dist/native.cjs +18641 -15870
  70. package/dist/test.native.cjs +9286 -4476
  71. package/internal-runtime/index.cjs +2 -0
  72. package/internal-runtime/index.js +4 -0
  73. package/internal-runtime/index.native.js +2 -0
  74. package/package.json +55 -13
  75. package/reset.css +1 -9
  76. package/src/createOptimizedView.native.tsx +8 -6
  77. package/src/createOptimizedView.tsx +2 -1
  78. package/src/dom.native.ts +2 -0
  79. package/src/dom.ts +9 -0
  80. package/src/getBaseViews.native.ts +13 -6
  81. package/src/index.tsx +16 -260
  82. package/src/internal-runtime.tsx +32 -0
  83. package/src/runtime.tsx +197 -0
  84. package/src/setupMedia.native.ts +7 -0
  85. package/src/setupMedia.ts +3 -0
  86. package/types/createOptimizedView.d.ts +1 -1
  87. package/types/createOptimizedView.d.ts.map +1 -1
  88. package/types/createOptimizedView.native.d.ts +2 -2
  89. package/types/createOptimizedView.native.d.ts.map +1 -1
  90. package/types/dom.d.ts +9 -0
  91. package/types/dom.d.ts.map +1 -0
  92. package/types/dom.native.d.ts +3 -0
  93. package/types/dom.native.d.ts.map +1 -0
  94. package/types/getBaseViews.native.d.ts.map +1 -1
  95. package/types/index.d.ts +5 -4
  96. package/types/index.d.ts.map +1 -1
  97. package/types/inject-styles.d.ts.map +1 -1
  98. package/types/internal-runtime.d.ts +4 -0
  99. package/types/internal-runtime.d.ts.map +1 -0
  100. package/types/runtime.d.ts +4 -0
  101. package/types/runtime.d.ts.map +1 -0
  102. package/types/setupMedia.d.ts +2 -0
  103. package/types/setupMedia.d.ts.map +1 -0
  104. package/types/setupMedia.native.d.ts +2 -0
  105. package/types/setupMedia.native.d.ts.map +1 -0
  106. package/.turbo/turbo-build.log +0 -4
  107. package/bundle-native.mjs +0 -22
  108. package/dist/esm/reactNativeTypes.mjs.map +0 -1
  109. package/dist/esm/reactNativeTypes.native.js.map +0 -1
  110. package/tsconfig.json +0 -30
@@ -1,46 +1,41 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  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;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
24
  var inject_styles_exports = {};
26
- __export(inject_styles_exports, {
27
- injectStyles: () => injectStyles
28
- });
25
+ __export(inject_styles_exports, { injectStyles: () => injectStyles });
29
26
  module.exports = __toCommonJS(inject_styles_exports);
30
27
  var stylesheets = {};
31
- var injectStyles = function (param) {
32
- var {
33
- filePath,
34
- css
35
- } = param;
36
- var stylesheet = stylesheets[filePath];
37
- if (!stylesheet) {
38
- var styleEl = document.createElement("style");
39
- styleEl.setAttribute("data-file", filePath);
40
- styleEl.setAttribute("type", "text/css");
41
- stylesheet = stylesheets[filePath] = styleEl;
42
- document.head.appendChild(styleEl);
43
- }
44
- stylesheet.innerHTML = css;
28
+ var injectStyles = function(param) {
29
+ var { filePath, css } = param;
30
+ var stylesheet = stylesheets[filePath];
31
+ if (!stylesheet) {
32
+ var styleEl = document.createElement("style");
33
+ styleEl.setAttribute("data-file", filePath);
34
+ styleEl.setAttribute("type", "text/css");
35
+ stylesheet = stylesheets[filePath] = styleEl;
36
+ document.head.appendChild(styleEl);
37
+ }
38
+ stylesheet.innerHTML = css;
45
39
  };
40
+
46
41
  //# sourceMappingURL=inject-styles.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","inject_styles_exports","__export","injectStyles","module","exports","stylesheets","param","filePath","css","stylesheet","styleEl","document","createElement","setAttribute","head","appendChild"],"sources":["../../src/inject-styles.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAM,CAAAC,OAAA,GAAAT,YAA4C,CAAAK,qBAAA;AAO3C,IAAAK,WAAM;AACX,IAAAH,YAAI,GAAa,SAAAA,CAAAI,KAAY;EAC7B,IAAI;IAACC,QAAA;IAAAC;EAAY,IAAAF,KAAA;EACf,IAAAG,UAAM,GAAAJ,WAAmB,CAAAE,QAAA;EACzB,KAAAE,UAAQ;IACR,IAAAC,OAAQ,GAAAC,QAAa,CAAAC,aAAQ,QAAU;IACvCF,OAAA,CAAAG,YAAa,YAAY,EAAQN,QAAI;IACrCG,OAAA,CAAAG,YAAc,OAAY,YAAO;IACnCJ,UAAA,GAAAJ,WAAA,CAAAE,QAAA,IAAAG,OAAA;IACAC,QAAA,CAAWG,IAAA,CAAAC,WAAY,CAAAL,OAAA;EACzB","ignoreList":[]}
1
+ {"version":3,"file":"inject-styles.native.js","names":[],"sources":["cjs/inject-styles.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 inject_styles_exports = {};\n__export(inject_styles_exports, {\n injectStyles: () => injectStyles\n});\nmodule.exports = __toCommonJS(inject_styles_exports);\nvar stylesheets = {};\nvar injectStyles = function(param) {\n var { filePath, css } = param;\n var stylesheet = stylesheets[filePath];\n if (!stylesheet) {\n var styleEl = document.createElement(\"style\");\n styleEl.setAttribute(\"data-file\", filePath);\n styleEl.setAttribute(\"type\", \"text/css\");\n stylesheet = stylesheets[filePath] = styleEl;\n document.head.appendChild(styleEl);\n }\n stylesheet.innerHTML = css;\n};\n//# sourceMappingURL=inject-styles.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,wBAAwB,CAAC;AAC7B,SAAS,uBAAuB,EAC9B,oBAAoB,aACtB,CAAC;AACD,OAAO,UAAU,aAAa,qBAAqB;AACnD,IAAI,cAAc,CAAC;AACnB,IAAI,eAAe,SAAS,OAAO;CACjC,IAAI,EAAE,UAAU,QAAQ;CACxB,IAAI,aAAa,YAAY;CAC7B,IAAI,CAAC,YAAY;EACf,IAAI,UAAU,SAAS,cAAc,OAAO;EAC5C,QAAQ,aAAa,aAAa,QAAQ;EAC1C,QAAQ,aAAa,QAAQ,UAAU;EACvC,aAAa,YAAY,YAAY;EACrC,SAAS,KAAK,YAAY,OAAO;CACnC;CACA,WAAW,YAAY;AACzB"}
@@ -0,0 +1,34 @@
1
+
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
20
+ };
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
+ var internal_runtime_exports = {};
23
+ __export(internal_runtime_exports, {
24
+ STYLE_FRONTEND_PASSTHROUGH_PREFIX: () => import_internal_runtime.STYLE_FRONTEND_PASSTHROUGH_PREFIX,
25
+ STYLE_FRONTEND_PREPROCESSED: () => import_internal_runtime.STYLE_FRONTEND_PREPROCESSED,
26
+ createFrontendProgram: () => import_internal_runtime.createFrontendProgram,
27
+ createFrontendStyled: () => import_internal_runtime.createFrontendStyled,
28
+ createFrontendViews: () => import_internal_runtime.createFrontendViews,
29
+ plainValueToPayload: () => import_internal_runtime.plainValueToPayload,
30
+ regularStyleFrontend: () => import_internal_runtime.regularStyleFrontend
31
+ });
32
+ module.exports = __toCommonJS(internal_runtime_exports);
33
+ var import_runtime = require("./runtime.cjs");
34
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var internal_runtime_exports = {};
25
+ __export(internal_runtime_exports, {
26
+ STYLE_FRONTEND_PASSTHROUGH_PREFIX: () => import_internal_runtime.STYLE_FRONTEND_PASSTHROUGH_PREFIX,
27
+ STYLE_FRONTEND_PREPROCESSED: () => import_internal_runtime.STYLE_FRONTEND_PREPROCESSED,
28
+ createFrontendProgram: () => import_internal_runtime.createFrontendProgram,
29
+ createFrontendStyled: () => import_internal_runtime.createFrontendStyled,
30
+ createFrontendViews: () => import_internal_runtime.createFrontendViews,
31
+ plainValueToPayload: () => import_internal_runtime.plainValueToPayload,
32
+ regularStyleFrontend: () => import_internal_runtime.regularStyleFrontend
33
+ });
34
+ module.exports = __toCommonJS(internal_runtime_exports);
35
+ var import_runtime = require("./runtime.native.js");
36
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var internal_runtime_exports = {};
25
+ __export(internal_runtime_exports, {
26
+ STYLE_FRONTEND_PASSTHROUGH_PREFIX: () => import_internal_runtime.STYLE_FRONTEND_PASSTHROUGH_PREFIX,
27
+ STYLE_FRONTEND_PREPROCESSED: () => import_internal_runtime.STYLE_FRONTEND_PREPROCESSED,
28
+ createFrontendProgram: () => import_internal_runtime.createFrontendProgram,
29
+ createFrontendStyled: () => import_internal_runtime.createFrontendStyled,
30
+ createFrontendViews: () => import_internal_runtime.createFrontendViews,
31
+ plainValueToPayload: () => import_internal_runtime.plainValueToPayload,
32
+ regularStyleFrontend: () => import_internal_runtime.regularStyleFrontend
33
+ });
34
+ module.exports = __toCommonJS(internal_runtime_exports);
35
+ var import_runtime = require("./runtime.native.js");
36
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
37
+
38
+ //# sourceMappingURL=internal-runtime.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-runtime.native.js","names":[],"sources":["cjs/internal-runtime.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 internal_runtime_exports = {};\n__export(internal_runtime_exports, {\n STYLE_FRONTEND_PASSTHROUGH_PREFIX: () => import_internal_runtime.STYLE_FRONTEND_PASSTHROUGH_PREFIX,\n STYLE_FRONTEND_PREPROCESSED: () => import_internal_runtime.STYLE_FRONTEND_PREPROCESSED,\n createFrontendProgram: () => import_internal_runtime.createFrontendProgram,\n createFrontendStyled: () => import_internal_runtime.createFrontendStyled,\n createFrontendViews: () => import_internal_runtime.createFrontendViews,\n plainValueToPayload: () => import_internal_runtime.plainValueToPayload,\n regularStyleFrontend: () => import_internal_runtime.regularStyleFrontend\n});\nmodule.exports = __toCommonJS(internal_runtime_exports);\nvar import_runtime = require(\"./runtime\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\n//# sourceMappingURL=internal-runtime.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,2BAA2B,CAAC;AAChC,SAAS,0BAA0B;CACjC,yCAAyC,wBAAwB;CACjE,mCAAmC,wBAAwB;CAC3D,6BAA6B,wBAAwB;CACrD,4BAA4B,wBAAwB;CACpD,2BAA2B,wBAAwB;CACnD,2BAA2B,wBAAwB;CACnD,4BAA4B,wBAAwB;AACtD,CAAC;AACD,OAAO,UAAU,aAAa,wBAAwB;AACtD,IAAI,iBAAiB,QAAQ,qBAAW;AACxC,IAAI,0BAA0B,QAAQ,+BAA+B"}
@@ -1,18 +1,17 @@
1
+
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ }
13
+ return to;
13
14
  };
14
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
- value: true
16
- }), mod);
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
16
  var reactNativeTypes_exports = {};
18
- module.exports = __toCommonJS(reactNativeTypes_exports);
17
+ module.exports = __toCommonJS(reactNativeTypes_exports);
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var reactNativeTypes_exports = {};
19
+ module.exports = __toCommonJS(reactNativeTypes_exports);
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
15
16
  };
16
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
17
- value: true
18
- }), mod);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
18
  var reactNativeTypes_exports = {};
20
19
  module.exports = __toCommonJS(reactNativeTypes_exports);
20
+
21
21
  //# sourceMappingURL=reactNativeTypes.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","reactNativeTypes_exports"],"sources":["../../src/reactNativeTypes.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA","ignoreList":[]}
1
+ {"version":3,"file":"reactNativeTypes.native.js","names":[],"sources":["cjs/reactNativeTypes.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\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 reactNativeTypes_exports = {};\nmodule.exports = __toCommonJS(reactNativeTypes_exports);\n//# sourceMappingURL=reactNativeTypes.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,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,2BAA2B,CAAC;AAChC,OAAO,UAAU,aAAa,wBAAwB"}
@@ -0,0 +1,72 @@
1
+
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
20
+ };
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
+ var runtime_exports = {};
23
+ __export(runtime_exports, {
24
+ TamaguiProvider: () => TamaguiProvider,
25
+ createTamagui: () => createTamagui
26
+ });
27
+ module.exports = __toCommonJS(runtime_exports);
28
+ var import_constants = require("@tamagui/constants");
29
+ require("react");
30
+ var import_use_element_layout = require("@tamagui/use-element-layout");
31
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
32
+ require("./createOptimizedView.cjs");
33
+ var import_getBaseViews = require("./getBaseViews.cjs");
34
+ var import_setupMedia = require("./setupMedia.cjs");
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ const TamaguiProvider = (props) => {
37
+ (0, import_constants.useIsomorphicLayoutEffect)(() => {
38
+ (0, import_use_element_layout.enable)();
39
+ }, []);
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_runtime.TamaguiProvider, { ...props });
41
+ };
42
+ const createTamagui = (conf) => {
43
+ if (conf.media) conf.media = (0, import_setupMedia.setupMedia)(conf.media);
44
+ return (0, import_internal_runtime.createTamagui)(conf);
45
+ };
46
+ (0, import_getBaseViews.getBaseViews)();
47
+ (0, import_internal_runtime.setupHooks)({
48
+ getBaseViews: import_getBaseViews.getBaseViews,
49
+ setElementProps: (node) => {
50
+ if (node && !node["measure"]) {
51
+ node.measure ||= (0, import_use_element_layout.createMeasure)(node);
52
+ node.measureInWindow ||= (0, import_use_element_layout.createMeasureInWindow)(node);
53
+ node.measureLayout ||= (0, import_use_element_layout.createMeasureLayout)(node);
54
+ }
55
+ },
56
+ usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
57
+ {
58
+ const isDOM = typeof elementType === "string";
59
+ const { onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderEnd, onResponderGrant, onResponderMove, onResponderReject, onResponderRelease, onResponderStart, onResponderTerminate, onResponderTerminationRequest, onScrollShouldSetResponder, onScrollShouldSetResponderCapture, onSelectionChangeShouldSetResponder, onSelectionChangeShouldSetResponderCapture, onStartShouldSetResponder, onStartShouldSetResponderCapture, collapsable, focusable, accessible, accessibilityDisabled, onLayout, hrefAttrs, ...plainDOMProps } = propsIn;
60
+ if (willHydrate || isDOM) (0, import_use_element_layout.useElementLayout)(stateRef, !isDOM ? void 0 : onLayout);
61
+ if (isDOM) {
62
+ if (plainDOMProps.href && hrefAttrs) {
63
+ const { download, rel, target } = hrefAttrs;
64
+ if (download != null) plainDOMProps.download = download;
65
+ if (rel) plainDOMProps.rel = rel;
66
+ if (typeof target === "string") plainDOMProps.target = target.charAt(0) !== "_" ? `_${target}` : target;
67
+ }
68
+ return plainDOMProps;
69
+ }
70
+ }
71
+ }
72
+ });
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var runtime_exports = {};
25
+ __export(runtime_exports, {
26
+ TamaguiProvider: () => TamaguiProvider,
27
+ createTamagui: () => createTamagui
28
+ });
29
+ module.exports = __toCommonJS(runtime_exports);
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var import_constants = require("@tamagui/constants");
32
+ var import_react = require("react");
33
+ var import_use_element_layout = require("@tamagui/use-element-layout");
34
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
35
+ var import_createOptimizedView = require("./createOptimizedView.native.js");
36
+ var import_getBaseViews = require("./getBaseViews.native.js");
37
+ var import_setupMedia = require("./setupMedia.native.js");
38
+ var GESTURE_STATE_KEY = "__tamagui_gesture__";
39
+ var GESTURE_ENABLED_FREEZE_KEY = "__tamagui_gesture_enabled_freeze__";
40
+ function freezeGestureHandlerEnabledMode() {
41
+ var _g_GESTURE_STATE_KEY;
42
+ var _g, _GESTURE_ENABLED_FREEZE_KEY;
43
+ var g = globalThis;
44
+ var _;
45
+ var freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {
46
+ frozen: false,
47
+ enabled: false,
48
+ warned: false
49
+ };
50
+ if (freezeState.frozen) return;
51
+ freezeState.frozen = true;
52
+ freezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);
53
+ freezeState.warned = false;
54
+ }
55
+ var TamaguiProvider = function(props) {
56
+ freezeGestureHandlerEnabledMode();
57
+ (0, import_constants.useIsomorphicLayoutEffect)(function() {
58
+ (0, import_use_element_layout.enable)();
59
+ }, []);
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_runtime.TamaguiProvider, { ...props });
61
+ };
62
+ var createTamagui = function(conf) {
63
+ if (conf.media) conf.media = (0, import_setupMedia.setupMedia)(conf.media);
64
+ return (0, import_internal_runtime.createTamagui)(conf);
65
+ };
66
+ var baseViews = (0, import_getBaseViews.getBaseViews)();
67
+ (0, import_internal_runtime.setupHooks)({
68
+ getBaseViews: import_getBaseViews.getBaseViews,
69
+ setElementProps: function(node) {},
70
+ usePropsTransform(elementType, propsIn, stateRef, willHydrate) {},
71
+ useChildren(elementType, children, viewProps, isPassthrough) {
72
+ var isInText = baseViews.TextAncestor ? Boolean((0, import_react.useContext)(baseViews.TextAncestor)) : false;
73
+ if (process.env.NODE_ENV === "test") return;
74
+ if (isPassthrough) return;
75
+ if (elementType === baseViews.View && baseViews.TextAncestor) return (0, import_createOptimizedView.createOptimizedView)(children, viewProps, baseViews, isInText);
76
+ }
77
+ });
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var runtime_exports = {};
25
+ __export(runtime_exports, {
26
+ TamaguiProvider: () => TamaguiProvider,
27
+ createTamagui: () => createTamagui
28
+ });
29
+ module.exports = __toCommonJS(runtime_exports);
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var import_constants = require("@tamagui/constants");
32
+ var import_react = require("react");
33
+ var import_use_element_layout = require("@tamagui/use-element-layout");
34
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
35
+ var import_createOptimizedView = require("./createOptimizedView.native.js");
36
+ var import_getBaseViews = require("./getBaseViews.native.js");
37
+ var import_setupMedia = require("./setupMedia.native.js");
38
+ var GESTURE_STATE_KEY = "__tamagui_gesture__";
39
+ var GESTURE_ENABLED_FREEZE_KEY = "__tamagui_gesture_enabled_freeze__";
40
+ function freezeGestureHandlerEnabledMode() {
41
+ var _g_GESTURE_STATE_KEY;
42
+ var _g, _GESTURE_ENABLED_FREEZE_KEY;
43
+ var g = globalThis;
44
+ var _;
45
+ var freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {
46
+ frozen: false,
47
+ enabled: false,
48
+ warned: false
49
+ };
50
+ if (freezeState.frozen) return;
51
+ freezeState.frozen = true;
52
+ freezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);
53
+ freezeState.warned = false;
54
+ }
55
+ var TamaguiProvider = function(props) {
56
+ freezeGestureHandlerEnabledMode();
57
+ (0, import_constants.useIsomorphicLayoutEffect)(function() {
58
+ (0, import_use_element_layout.enable)();
59
+ }, []);
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_runtime.TamaguiProvider, { ...props });
61
+ };
62
+ var createTamagui = function(conf) {
63
+ if (conf.media) conf.media = (0, import_setupMedia.setupMedia)(conf.media);
64
+ return (0, import_internal_runtime.createTamagui)(conf);
65
+ };
66
+ var baseViews = (0, import_getBaseViews.getBaseViews)();
67
+ (0, import_internal_runtime.setupHooks)({
68
+ getBaseViews: import_getBaseViews.getBaseViews,
69
+ setElementProps: function(node) {},
70
+ usePropsTransform(elementType, propsIn, stateRef, willHydrate) {},
71
+ useChildren(elementType, children, viewProps, isPassthrough) {
72
+ var isInText = baseViews.TextAncestor ? Boolean((0, import_react.useContext)(baseViews.TextAncestor)) : false;
73
+ if (process.env.NODE_ENV === "test") return;
74
+ if (isPassthrough) return;
75
+ if (elementType === baseViews.View && baseViews.TextAncestor) return (0, import_createOptimizedView.createOptimizedView)(children, viewProps, baseViews, isInText);
76
+ }
77
+ });
78
+
79
+ //# sourceMappingURL=runtime.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.native.js","names":[],"sources":["cjs/runtime.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\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar runtime_exports = {};\n__export(runtime_exports, {\n\tTamaguiProvider: () => TamaguiProvider,\n\tcreateTamagui: () => createTamagui\n});\nmodule.exports = __toCommonJS(runtime_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = require(\"react\");\nvar import_use_element_layout = require(\"@tamagui/use-element-layout\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_createOptimizedView = require(\"./createOptimizedView\");\nvar import_getBaseViews = require(\"./getBaseViews\");\nvar import_setupMedia = require(\"./setupMedia\");\nvar GESTURE_STATE_KEY = \"__tamagui_gesture__\";\nvar GESTURE_ENABLED_FREEZE_KEY = \"__tamagui_gesture_enabled_freeze__\";\nfunction freezeGestureHandlerEnabledMode() {\n\tvar _g_GESTURE_STATE_KEY;\n\tvar _g, _GESTURE_ENABLED_FREEZE_KEY;\n\tvar g = globalThis;\n\tvar _;\n\tvar freezeState = (_ = (_g = g)[_GESTURE_ENABLED_FREEZE_KEY = GESTURE_ENABLED_FREEZE_KEY]) !== null && _ !== void 0 ? _ : _g[_GESTURE_ENABLED_FREEZE_KEY] = {\n\t\tfrozen: false,\n\t\tenabled: false,\n\t\twarned: false\n\t};\n\tif (freezeState.frozen) return;\n\tfreezeState.frozen = true;\n\tfreezeState.enabled = Boolean((_g_GESTURE_STATE_KEY = g[GESTURE_STATE_KEY]) === null || _g_GESTURE_STATE_KEY === void 0 ? void 0 : _g_GESTURE_STATE_KEY.enabled);\n\tfreezeState.warned = false;\n}\nvar TamaguiProvider = function(props) {\n\tfreezeGestureHandlerEnabledMode();\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t(0, import_use_element_layout.enable)();\n\t}, []);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_runtime.TamaguiProvider, { ...props });\n};\nvar createTamagui = function(conf) {\n\tif (conf.media) conf.media = (0, import_setupMedia.setupMedia)(conf.media);\n\treturn (0, import_internal_runtime.createTamagui)(conf);\n};\nvar baseViews = (0, import_getBaseViews.getBaseViews)();\n(0, import_internal_runtime.setupHooks)({\n\tgetBaseViews: import_getBaseViews.getBaseViews,\n\tsetElementProps: function(node) {},\n\tusePropsTransform(elementType, propsIn, stateRef, willHydrate) {},\n\tuseChildren(elementType, children, viewProps, isPassthrough) {\n\t\tvar isInText = baseViews.TextAncestor ? Boolean((0, import_react.useContext)(baseViews.TextAncestor)) : false;\n\t\tif (process.env.NODE_ENV === \"test\") return;\n\t\tif (isPassthrough) return;\n\t\tif (elementType === baseViews.View && baseViews.TextAncestor) return (0, import_createOptimizedView.createOptimizedView)(children, viewProps, baseViews, isInText);\n\t}\n});\n//# sourceMappingURL=runtime.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;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,kBAAkB,CAAC;AACvB,SAAS,iBAAiB;CACzB,uBAAuB;CACvB,qBAAqB;AACtB,CAAC;AACD,OAAO,UAAU,aAAa,eAAe;AAC7C,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,mBAAmB,QAAQ,oBAAoB;AACnD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,4BAA4B,QAAQ,6BAA6B;AACrE,IAAI,0BAA0B,QAAQ,+BAA+B;AACrE,IAAI,6BAA6B,QAAQ,iCAAuB;AAChE,IAAI,sBAAsB,QAAQ,0BAAgB;AAClD,IAAI,oBAAoB,QAAQ,wBAAc;AAC9C,IAAI,oBAAoB;AACxB,IAAI,6BAA6B;AACjC,SAAS,kCAAkC;CAC1C,IAAI;CACJ,IAAI,IAAI;CACR,IAAI,IAAI;CACR,IAAI;CACJ,IAAI,eAAe,KAAK,KAAK,GAAG,8BAA8B,iCAAiC,QAAQ,MAAM,KAAK,IAAI,IAAI,GAAG,+BAA+B;EAC3J,QAAQ;EACR,SAAS;EACT,QAAQ;CACT;CACA,IAAI,YAAY,QAAQ;CACxB,YAAY,SAAS;CACrB,YAAY,UAAU,SAAS,uBAAuB,EAAE,wBAAwB,QAAQ,yBAAyB,KAAK,IAAI,KAAK,IAAI,qBAAqB,OAAO;CAC/J,YAAY,SAAS;AACtB;AACA,IAAI,kBAAkB,SAAS,OAAO;CACrC,gCAAgC;CAChC,CAAC,GAAG,iBAAiB,2BAA2B,WAAW;EAC1D,CAAC,GAAG,0BAA0B,QAAQ;CACvC,GAAG,CAAC,CAAC;CACL,OAAuB,iBAAC,GAAG,mBAAmB,KAAK,wBAAwB,iBAAiB,EAAE,GAAG,MAAM,CAAC;AACzG;AACA,IAAI,gBAAgB,SAAS,MAAM;CAClC,IAAI,KAAK,OAAO,KAAK,SAAS,GAAG,kBAAkB,YAAY,KAAK,KAAK;CACzE,QAAQ,GAAG,wBAAwB,eAAe,IAAI;AACvD;AACA,IAAI,aAAa,GAAG,oBAAoB,cAAc;CACrD,GAAG,wBAAwB,YAAY;CACvC,cAAc,oBAAoB;CAClC,iBAAiB,SAAS,MAAM,CAAC;CACjC,kBAAkB,aAAa,SAAS,UAAU,aAAa,CAAC;CAChE,YAAY,aAAa,UAAU,WAAW,eAAe;EAC5D,IAAI,WAAW,UAAU,eAAe,SAAS,GAAG,aAAa,YAAY,UAAU,YAAY,CAAC,IAAI;EACxG,IAAI,QAAQ,IAAI,aAAa,QAAQ;EACrC,IAAI,eAAe;EACnB,IAAI,gBAAgB,UAAU,QAAQ,UAAU,cAAc,QAAQ,GAAG,2BAA2B,qBAAqB,UAAU,WAAW,WAAW,QAAQ;CAClK;AACD,CAAC"}
@@ -0,0 +1,27 @@
1
+
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
20
+ };
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
+ var setupMedia_exports = {};
23
+ __export(setupMedia_exports, { setupMedia: () => setupMedia });
24
+ module.exports = __toCommonJS(setupMedia_exports);
25
+ function setupMedia(media) {
26
+ return media;
27
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var setupMedia_native_exports = {};
25
+ __export(setupMedia_native_exports, { setupMedia: () => setupMedia });
26
+ module.exports = __toCommonJS(setupMedia_native_exports);
27
+ var import_react_native_media_driver = require("@tamagui/react-native-media-driver");
28
+ var import_web = require("@tamagui/web");
29
+ function setupMedia(media) {
30
+ (0, import_web.setupMatchMedia)(import_react_native_media_driver.matchMedia);
31
+ return media;
32
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var setupMedia_native_exports = {};
25
+ __export(setupMedia_native_exports, { setupMedia: () => setupMedia });
26
+ module.exports = __toCommonJS(setupMedia_native_exports);
27
+ var import_react_native_media_driver = require("@tamagui/react-native-media-driver");
28
+ var import_web = require("@tamagui/web");
29
+ function setupMedia(media) {
30
+ (0, import_web.setupMatchMedia)(import_react_native_media_driver.matchMedia);
31
+ return media;
32
+ }
33
+
34
+ //# sourceMappingURL=setupMedia.native.js.map