@tamagui/portal 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 (90) hide show
  1. package/dist/cjs/GorhomPortal.cjs +132 -164
  2. package/dist/cjs/GorhomPortal.native.cjs +202 -0
  3. package/dist/cjs/GorhomPortal.native.js +166 -211
  4. package/dist/cjs/GorhomPortal.native.js.map +1 -1
  5. package/dist/cjs/GorhomPortalItem.cjs +58 -58
  6. package/dist/cjs/GorhomPortalItem.native.cjs +105 -0
  7. package/dist/cjs/GorhomPortalItem.native.js +85 -106
  8. package/dist/cjs/GorhomPortalItem.native.js.map +1 -1
  9. package/dist/cjs/Portal.cjs +52 -60
  10. package/dist/cjs/Portal.native.cjs +57 -0
  11. package/dist/cjs/Portal.native.js +39 -44
  12. package/dist/cjs/Portal.native.js.map +1 -1
  13. package/dist/cjs/PortalProps.cjs +10 -11
  14. package/dist/cjs/PortalProps.native.cjs +19 -0
  15. package/dist/cjs/PortalProps.native.js +10 -10
  16. package/dist/cjs/PortalProps.native.js.map +1 -1
  17. package/dist/cjs/constants.cjs +24 -25
  18. package/dist/cjs/constants.native.cjs +44 -0
  19. package/dist/cjs/constants.native.js +26 -26
  20. package/dist/cjs/constants.native.js.map +1 -1
  21. package/dist/cjs/helpers.cjs +23 -24
  22. package/dist/cjs/helpers.native.cjs +39 -0
  23. package/dist/cjs/helpers.native.js +23 -23
  24. package/dist/cjs/helpers.native.js.map +1 -1
  25. package/dist/cjs/index.cjs +16 -17
  26. package/dist/cjs/index.native.cjs +36 -0
  27. package/dist/cjs/index.native.js +16 -16
  28. package/dist/cjs/index.native.js.map +1 -1
  29. package/dist/cjs/native-portal.cjs +32 -35
  30. package/dist/cjs/native-portal.native.cjs +51 -0
  31. package/dist/cjs/native-portal.native.js +37 -39
  32. package/dist/cjs/native-portal.native.js.map +1 -1
  33. package/dist/cjs/types.cjs +10 -11
  34. package/dist/cjs/types.native.cjs +19 -0
  35. package/dist/cjs/types.native.js +10 -10
  36. package/dist/cjs/types.native.js.map +1 -1
  37. package/dist/esm/GorhomPortal.mjs +112 -136
  38. package/dist/esm/GorhomPortal.mjs.map +1 -1
  39. package/dist/esm/GorhomPortal.native.js +146 -184
  40. package/dist/esm/GorhomPortal.native.js.map +1 -1
  41. package/dist/esm/GorhomPortalItem.mjs +46 -41
  42. package/dist/esm/GorhomPortalItem.mjs.map +1 -1
  43. package/dist/esm/GorhomPortalItem.native.js +74 -91
  44. package/dist/esm/GorhomPortalItem.native.js.map +1 -1
  45. package/dist/esm/Portal.mjs +38 -36
  46. package/dist/esm/Portal.mjs.map +1 -1
  47. package/dist/esm/Portal.native.js +28 -29
  48. package/dist/esm/Portal.native.js.map +1 -1
  49. package/dist/esm/PortalProps.mjs +0 -2
  50. package/dist/esm/PortalProps.native.js +0 -2
  51. package/dist/esm/constants.mjs +8 -6
  52. package/dist/esm/constants.mjs.map +1 -1
  53. package/dist/esm/constants.native.js +10 -8
  54. package/dist/esm/constants.native.js.map +1 -1
  55. package/dist/esm/helpers.mjs +9 -7
  56. package/dist/esm/helpers.mjs.map +1 -1
  57. package/dist/esm/helpers.native.js +9 -7
  58. package/dist/esm/helpers.native.js.map +1 -1
  59. package/dist/esm/index.js +10 -6
  60. package/dist/esm/index.mjs +10 -6
  61. package/dist/esm/index.native.js +10 -6
  62. package/dist/esm/native-portal.mjs +23 -17
  63. package/dist/esm/native-portal.mjs.map +1 -1
  64. package/dist/esm/native-portal.native.js +28 -22
  65. package/dist/esm/native-portal.native.js.map +1 -1
  66. package/dist/esm/types.mjs +0 -2
  67. package/dist/esm/types.native.js +0 -2
  68. package/package.json +11 -10
  69. package/src/GorhomPortalItem.tsx +11 -2
  70. package/src/Portal.tsx +31 -7
  71. package/src/PortalProps.tsx +7 -0
  72. package/types/GorhomPortal.d.ts +3 -2
  73. package/types/GorhomPortal.d.ts.map +1 -1
  74. package/types/GorhomPortalItem.d.ts.map +1 -1
  75. package/types/GorhomPortalItem.native.d.ts +1 -1
  76. package/types/GorhomPortalItem.native.d.ts.map +1 -1
  77. package/types/Portal.d.ts.map +1 -1
  78. package/types/Portal.native.d.ts +1 -1
  79. package/types/Portal.native.d.ts.map +1 -1
  80. package/types/PortalProps.d.ts +7 -1
  81. package/types/PortalProps.d.ts.map +1 -1
  82. package/types/helpers.d.ts +1 -1
  83. package/types/helpers.d.ts.map +1 -1
  84. package/dist/esm/PortalProps.mjs.map +0 -1
  85. package/dist/esm/PortalProps.native.js.map +0 -1
  86. package/dist/esm/index.js.map +0 -1
  87. package/dist/esm/index.mjs.map +0 -1
  88. package/dist/esm/index.native.js.map +0 -1
  89. package/dist/esm/types.mjs.map +0 -1
  90. package/dist/esm/types.native.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["Portal_native_exports","__export","Portal","module","exports","__toCommonJS","import_jsx_runtime","require","import_core","import_native","import_z_index_stack","import_GorhomPortalItem","import_helpers","propsIn","zIndex","useStackedZIndex","getStackedZIndexProps","children","passThrough","contents","jsx","View","pointerEvents","position","inset","maxWidth","portalState","getPortal","state","type","NativePortal","hostName","GorhomPortalItem"],"sources":["../../src/Portal.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,qBAAA;AAAA,IAAAM,kBAAA,GAA4BC,OAAA;AAC5B,IAAAC,WAAA,GAAqBD,OAAA;AACrB,IAAAE,aAAA,GAAwCF,OAAA;AACxC,IAAAG,oBAAA,GAAiCH,OAAA;AACjC,IAAAI,uBAAA,GAAiCJ,OAAA;AACjC,IAAAK,cAAA,GAAsCL,OAAA;AAC/B,IAAIL,MAAA,GAAS,SAAAA,CAASW,OAAA,EAAS;EAClC,IAAIC,MAAA,OAASJ,oBAAA,CAAAK,gBAAA,MAAiBH,cAAA,CAAAI,qBAAA,EAAsBH,OAAO,CAAC;EAC5D,IAAI;IAAEI,QAAA;IAAUC;EAAY,IAAIL,OAAA;EAChC,IAAIM,QAAA,GAAyB,mBAAAb,kBAAA,CAAAc,GAAA,EAAKZ,WAAA,CAAAa,IAAA,EAAM;IACpCC,aAAA,EAAe;IACfC,QAAA,EAAU;IACVC,KAAA,EAAO;IACPC,QAAA,EAAU;IACVX,MAAA;IACAI,WAAA;IACAD;EACJ,CAAC;EACD,IAAIS,WAAA,OAAcjB,aAAA,CAAAkB,SAAA,EAAU,EAAEC,KAAA;EAE9B,IAAIF,WAAA,CAAYG,IAAA,KAAS,YAAY;IACjC,OAAqB,mBAAAvB,kBAAA,CAAAc,GAAA,EAAKX,aAAA,CAAAqB,YAAA,EAAc;MACpCC,QAAA,EAAU;MACVd,QAAA,EAAUE;IACd,CAAC;EACL;EAEA,OAAqB,mBAAAb,kBAAA,CAAAc,GAAA,EAAKT,uBAAA,CAAAqB,gBAAA,EAAkB;IACxCd,WAAA;IACAa,QAAA,EAAU;IACVd,QAAA,EAAUE;EACd,CAAC;AACL","ignoreList":[]}
1
+ {"version":3,"file":"Portal.native.js","names":[],"sources":["cjs/Portal.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 Portal_native_exports = {};\n__export(Portal_native_exports, {\n Portal: () => Portal\n});\nmodule.exports = __toCommonJS(Portal_native_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_native = require(\"@tamagui/native\");\nvar import_z_index_stack = require(\"@tamagui/z-index-stack\");\nvar import_GorhomPortalItem = require(\"./GorhomPortalItem\");\nvar import_helpers = require(\"./helpers\");\nvar Portal = function(propsIn) {\n var zIndex = (0, import_z_index_stack.useStackedZIndex)((0, import_helpers.getStackedZIndexProps)(propsIn));\n var { children, passThrough } = propsIn;\n var contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n pointerEvents: \"box-none\",\n position: \"absolute\",\n inset: 0,\n maxWidth: \"100%\",\n zIndex,\n passThrough,\n children\n });\n var portalState = (0, import_native.getPortal)().state;\n if (portalState.type === \"teleport\") {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_native.NativePortal, {\n hostName: \"root\",\n children: contents\n });\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GorhomPortalItem.GorhomPortalItem, {\n passThrough,\n hostName: \"root\",\n children: contents\n });\n};\n//# sourceMappingURL=Portal.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,wBAAwB,CAAC;AAC7B,SAAS,uBAAuB,EAC9B,cAAc,OAChB,CAAC;AACD,OAAO,UAAU,aAAa,qBAAqB;AACnD,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,gBAAgB,QAAQ,iBAAiB;AAC7C,IAAI,uBAAuB,QAAQ,wBAAwB;AAC3D,IAAI,0BAA0B,QAAQ,8BAAoB;AAC1D,IAAI,iBAAiB,QAAQ,qBAAW;AACxC,IAAI,SAAS,SAAS,SAAS;CAC7B,IAAI,UAAU,GAAG,qBAAqB,mBAAmB,GAAG,eAAe,uBAAuB,OAAO,CAAC;CAC1G,IAAI,EAAE,UAAU,gBAAgB;CAChC,IAAI,WAA2B,iBAAC,GAAG,mBAAmB,KAAK,YAAY,MAAM;EAC3E,eAAe;EACf,UAAU;EACV,OAAO;EACP,UAAU;EACV;EACA;EACA;CACF,CAAC;CACD,IAAI,eAAe,GAAG,cAAc,WAAW,EAAE;CACjD,IAAI,YAAY,SAAS,YAAY;EACnC,OAAuB,iBAAC,GAAG,mBAAmB,KAAK,cAAc,cAAc;GAC7E,UAAU;GACV,UAAU;EACZ,CAAC;CACH;CACA,OAAuB,iBAAC,GAAG,mBAAmB,KAAK,wBAAwB,kBAAkB;EAC3F;EACA,UAAU;EACV,UAAU;CACZ,CAAC;AACH"}
@@ -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 PortalProps_exports = {};
18
- module.exports = __toCommonJS(PortalProps_exports);
17
+ module.exports = __toCommonJS(PortalProps_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 PortalProps_exports = {};
19
+ module.exports = __toCommonJS(PortalProps_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 PortalProps_exports = {};
20
19
  module.exports = __toCommonJS(PortalProps_exports);
20
+
21
21
  //# sourceMappingURL=PortalProps.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","PortalProps_exports"],"sources":["../../src/PortalProps.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA","ignoreList":[]}
1
+ {"version":3,"file":"PortalProps.native.js","names":[],"sources":["cjs/PortalProps.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 PortalProps_exports = {};\nmodule.exports = __toCommonJS(PortalProps_exports);\n//# sourceMappingURL=PortalProps.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,sBAAsB,CAAC;AAC3B,OAAO,UAAU,aAAa,mBAAmB"}
@@ -1,43 +1,42 @@
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 __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
10
11
  };
11
12
  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;
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;
19
20
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
22
  var constants_exports = {};
24
23
  __export(constants_exports, {
25
- allPortalHosts: () => allPortalHosts,
26
- isTeleportEnabled: () => isTeleportEnabled,
27
- needsPortalRepropagation: () => needsPortalRepropagation,
28
- portalListeners: () => portalListeners
24
+ allPortalHosts: () => allPortalHosts,
25
+ isTeleportEnabled: () => isTeleportEnabled,
26
+ needsPortalRepropagation: () => needsPortalRepropagation,
27
+ portalListeners: () => portalListeners
29
28
  });
30
29
  module.exports = __toCommonJS(constants_exports);
31
30
  var import_constants = require("@tamagui/constants");
32
31
  var import_native = require("@tamagui/native");
33
32
  const isTeleportEnabled = () => {
34
- const state = (0, import_native.getPortal)().state;
35
- return state.enabled && state.type === "teleport";
33
+ const state = (0, import_native.getPortal)().state;
34
+ return state.enabled && state.type === "teleport";
36
35
  };
37
36
  const needsPortalRepropagation = () => {
38
- if (import_constants.isWeb) return false;
39
- if (isTeleportEnabled()) return false;
40
- return import_constants.isAndroid || import_constants.isIos;
37
+ if (import_constants.isWeb) return false;
38
+ if (isTeleportEnabled()) return false;
39
+ return import_constants.isAndroid || import_constants.isIos;
41
40
  };
42
- const allPortalHosts = /* @__PURE__ */new Map();
43
- const portalListeners = {};
41
+ const allPortalHosts = /* @__PURE__ */ new Map();
42
+ const portalListeners = {};
@@ -0,0 +1,44 @@
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 constants_exports = {};
25
+ __export(constants_exports, {
26
+ allPortalHosts: () => allPortalHosts,
27
+ isTeleportEnabled: () => isTeleportEnabled,
28
+ needsPortalRepropagation: () => needsPortalRepropagation,
29
+ portalListeners: () => portalListeners
30
+ });
31
+ module.exports = __toCommonJS(constants_exports);
32
+ var import_constants = require("@tamagui/constants");
33
+ var import_native = require("@tamagui/native");
34
+ var isTeleportEnabled = function() {
35
+ var state = (0, import_native.getPortal)().state;
36
+ return state.enabled && state.type === "teleport";
37
+ };
38
+ var needsPortalRepropagation = function() {
39
+ if (import_constants.isWeb) return false;
40
+ if (isTeleportEnabled()) return false;
41
+ return import_constants.isAndroid || import_constants.isIos;
42
+ };
43
+ var allPortalHosts = /* @__PURE__ */ new Map();
44
+ var portalListeners = {};
@@ -1,46 +1,46 @@
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 constants_exports = {};
26
25
  __export(constants_exports, {
27
- allPortalHosts: () => allPortalHosts,
28
- isTeleportEnabled: () => isTeleportEnabled,
29
- needsPortalRepropagation: () => needsPortalRepropagation,
30
- portalListeners: () => portalListeners
26
+ allPortalHosts: () => allPortalHosts,
27
+ isTeleportEnabled: () => isTeleportEnabled,
28
+ needsPortalRepropagation: () => needsPortalRepropagation,
29
+ portalListeners: () => portalListeners
31
30
  });
32
31
  module.exports = __toCommonJS(constants_exports);
33
32
  var import_constants = require("@tamagui/constants");
34
33
  var import_native = require("@tamagui/native");
35
- var isTeleportEnabled = function () {
36
- var state = (0, import_native.getPortal)().state;
37
- return state.enabled && state.type === "teleport";
34
+ var isTeleportEnabled = function() {
35
+ var state = (0, import_native.getPortal)().state;
36
+ return state.enabled && state.type === "teleport";
38
37
  };
39
- var needsPortalRepropagation = function () {
40
- if (import_constants.isWeb) return false;
41
- if (isTeleportEnabled()) return false;
42
- return import_constants.isAndroid || import_constants.isIos;
38
+ var needsPortalRepropagation = function() {
39
+ if (import_constants.isWeb) return false;
40
+ if (isTeleportEnabled()) return false;
41
+ return import_constants.isAndroid || import_constants.isIos;
43
42
  };
44
- var allPortalHosts = /* @__PURE__ */new Map();
43
+ var allPortalHosts = /* @__PURE__ */ new Map();
45
44
  var portalListeners = {};
45
+
46
46
  //# sourceMappingURL=constants.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","allPortalHosts","isTeleportEnabled","needsPortalRepropagation","portalListeners","module","exports","import_constants","require","import_native","state","getPortal","enabled","type","isWeb","isAndroid","isIos","Map"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,wBAAA,EAAAA,CAAA,KAAAA,wBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAZ,YAAwC,CAAAK,iBAAA;AACxC,IAAAQ,gBAA0B,GAAAC,OAAA;AAKnB,IAAAC,aAAM,GAAAD,OAAoB,kBAAM;AACrC,IAAAN,iBAAc,YAAAA,CAAA;EACd,IAAAQ,KAAO,IAAM,GAAAD,aAAW,CAAME,SAAS,IAAAD,KAAA;EACzC,OAAAA,KAAA,CAAAE,OAAA,IAAAF,KAAA,CAAAG,IAAA;AAOO;AACL,IAAAV,wBAAI,GAAO,SAAAA,CAAA,EAAO;EAClB,IAAII,gBAAA,CAAAO,KAAqB,SAAO;EAEhC,IAAAZ,iBAAO,gBAAa;EACtB,OAAAK,gBAAA,CAAAQ,SAAA,IAAAR,gBAAA,CAAAS,KAAA;AAGO;AACA,IAAAf,cAAM,kBAAkD,IAAAgB,GAAA","ignoreList":[]}
1
+ {"version":3,"file":"constants.native.js","names":[],"sources":["cjs/constants.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 constants_exports = {};\n__export(constants_exports, {\n allPortalHosts: () => allPortalHosts,\n isTeleportEnabled: () => isTeleportEnabled,\n needsPortalRepropagation: () => needsPortalRepropagation,\n portalListeners: () => portalListeners\n});\nmodule.exports = __toCommonJS(constants_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_native = require(\"@tamagui/native\");\nvar isTeleportEnabled = function() {\n var state = (0, import_native.getPortal)().state;\n return state.enabled && state.type === \"teleport\";\n};\nvar needsPortalRepropagation = function() {\n if (import_constants.isWeb) return false;\n if (isTeleportEnabled()) return false;\n return import_constants.isAndroid || import_constants.isIos;\n};\nvar allPortalHosts = /* @__PURE__ */ new Map();\nvar portalListeners = {};\n//# sourceMappingURL=constants.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,oBAAoB,CAAC;AACzB,SAAS,mBAAmB;CAC1B,sBAAsB;CACtB,yBAAyB;CACzB,gCAAgC;CAChC,uBAAuB;AACzB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,mBAAmB,QAAQ,oBAAoB;AACnD,IAAI,gBAAgB,QAAQ,iBAAiB;AAC7C,IAAI,oBAAoB,WAAW;CACjC,IAAI,SAAS,GAAG,cAAc,WAAW,EAAE;CAC3C,OAAO,MAAM,WAAW,MAAM,SAAS;AACzC;AACA,IAAI,2BAA2B,WAAW;CACxC,IAAI,iBAAiB,OAAO,OAAO;CACnC,IAAI,kBAAkB,GAAG,OAAO;CAChC,OAAO,iBAAiB,aAAa,iBAAiB;AACxD;AACA,IAAI,iCAAiC,IAAI,IAAI;AAC7C,IAAI,kBAAkB,CAAC"}
@@ -1,38 +1,37 @@
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 __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
10
11
  };
11
12
  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;
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;
19
20
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
22
  var helpers_exports = {};
24
23
  __export(helpers_exports, {
25
- getStackedZIndexProps: () => getStackedZIndexProps,
26
- resolveViewZIndex: () => resolveViewZIndex
24
+ getStackedZIndexProps: () => getStackedZIndexProps,
25
+ resolveViewZIndex: () => resolveViewZIndex
27
26
  });
28
27
  module.exports = __toCommonJS(helpers_exports);
29
28
  var import_web = require("@tamagui/web");
30
- const getStackedZIndexProps = propsIn => {
31
- return {
32
- stackZIndex: propsIn.stackZIndex,
33
- zIndex: resolveViewZIndex(propsIn.zIndex)
34
- };
29
+ const getStackedZIndexProps = (propsIn) => {
30
+ return {
31
+ stackZIndex: propsIn.stackZIndex,
32
+ zIndex: resolveViewZIndex(propsIn.zIndex)
33
+ };
34
+ };
35
+ const resolveViewZIndex = (zIndex) => {
36
+ return typeof zIndex === "undefined" ? void 0 : typeof zIndex === "number" ? zIndex : (0, import_web.getTokenValue)(zIndex, "zIndex");
35
37
  };
36
- const resolveViewZIndex = zIndex => {
37
- return typeof zIndex === "undefined" ? void 0 : typeof zIndex === "number" ? zIndex : (0, import_web.getTokenValue)(zIndex, "zIndex");
38
- };
@@ -0,0 +1,39 @@
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 helpers_exports = {};
25
+ __export(helpers_exports, {
26
+ getStackedZIndexProps: () => getStackedZIndexProps,
27
+ resolveViewZIndex: () => resolveViewZIndex
28
+ });
29
+ module.exports = __toCommonJS(helpers_exports);
30
+ var import_web = require("@tamagui/web");
31
+ var getStackedZIndexProps = function(propsIn) {
32
+ return {
33
+ stackZIndex: propsIn.stackZIndex,
34
+ zIndex: resolveViewZIndex(propsIn.zIndex)
35
+ };
36
+ };
37
+ var resolveViewZIndex = function(zIndex) {
38
+ return typeof zIndex === "undefined" ? void 0 : typeof zIndex === "number" ? zIndex : (0, import_web.getTokenValue)(zIndex, "zIndex");
39
+ };
@@ -1,41 +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 helpers_exports = {};
26
25
  __export(helpers_exports, {
27
- getStackedZIndexProps: () => getStackedZIndexProps,
28
- resolveViewZIndex: () => resolveViewZIndex
26
+ getStackedZIndexProps: () => getStackedZIndexProps,
27
+ resolveViewZIndex: () => resolveViewZIndex
29
28
  });
30
29
  module.exports = __toCommonJS(helpers_exports);
31
30
  var import_web = require("@tamagui/web");
32
- var getStackedZIndexProps = function (propsIn) {
33
- return {
34
- stackZIndex: propsIn.stackZIndex,
35
- zIndex: resolveViewZIndex(propsIn.zIndex)
36
- };
31
+ var getStackedZIndexProps = function(propsIn) {
32
+ return {
33
+ stackZIndex: propsIn.stackZIndex,
34
+ zIndex: resolveViewZIndex(propsIn.zIndex)
35
+ };
37
36
  };
38
- var resolveViewZIndex = function (zIndex) {
39
- return typeof zIndex === "undefined" ? void 0 : typeof zIndex === "number" ? zIndex : (0, import_web.getTokenValue)(zIndex, "zIndex");
37
+ var resolveViewZIndex = function(zIndex) {
38
+ return typeof zIndex === "undefined" ? void 0 : typeof zIndex === "number" ? zIndex : (0, import_web.getTokenValue)(zIndex, "zIndex");
40
39
  };
40
+
41
41
  //# sourceMappingURL=helpers.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","helpers_exports","__export","getStackedZIndexProps","resolveViewZIndex","module","exports","import_web","require","propsIn","stackZIndex","zIndex","getTokenValue"],"sources":["../../src/helpers.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,qBAAA,EAAAA,CAAA,KAAAA,qBAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAA8CV,YAAA,CAAAK,eAAA;AAGvC,IAAAM,UAAM,GAAAC,OAAA,eAAyB;AACpC,IAAAL,qBAAO,YAAAA,CAAAM,OAAA;EAAA,OACL;IACAC,WAAQ,EAAAD,OAAA,CAAAC,WAAkB;IAC5BC,MAAA,EAAAP,iBAAA,CAAAK,OAAA,CAAAE,MAAA;EACF;AAEO;AACL,IAAAP,iBAAc,YAAAA,CAAWO,MAAA,EACrB;EAIN,cAAAA,MAAA,mCAAAA,MAAA,gBAAAA,MAAA,OAAAJ,UAAA,CAAAK,aAAA,EAAAD,MAAA","ignoreList":[]}
1
+ {"version":3,"file":"helpers.native.js","names":[],"sources":["cjs/helpers.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 helpers_exports = {};\n__export(helpers_exports, {\n getStackedZIndexProps: () => getStackedZIndexProps,\n resolveViewZIndex: () => resolveViewZIndex\n});\nmodule.exports = __toCommonJS(helpers_exports);\nvar import_web = require(\"@tamagui/web\");\nvar getStackedZIndexProps = function(propsIn) {\n return {\n stackZIndex: propsIn.stackZIndex,\n zIndex: resolveViewZIndex(propsIn.zIndex)\n };\n};\nvar resolveViewZIndex = function(zIndex) {\n return typeof zIndex === \"undefined\" ? void 0 : typeof zIndex === \"number\" ? zIndex : (0, import_web.getTokenValue)(zIndex, \"zIndex\");\n};\n//# sourceMappingURL=helpers.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;CACxB,6BAA6B;CAC7B,yBAAyB;AAC3B,CAAC;AACD,OAAO,UAAU,aAAa,eAAe;AAC7C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,wBAAwB,SAAS,SAAS;CAC5C,OAAO;EACL,aAAa,QAAQ;EACrB,QAAQ,kBAAkB,QAAQ,MAAM;CAC1C;AACF;AACA,IAAI,oBAAoB,SAAS,QAAQ;CACvC,OAAO,OAAO,WAAW,cAAc,KAAK,IAAI,OAAO,WAAW,WAAW,UAAU,GAAG,WAAW,eAAe,QAAQ,QAAQ;AACtI"}
@@ -1,30 +1,29 @@
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 __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
10
11
  };
11
12
  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;
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;
19
20
  };
20
21
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
22
- value: true
23
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
23
  var index_exports = {};
25
24
  __export(index_exports, {
26
- PortalItem: () => import_GorhomPortalItem.GorhomPortalItem,
27
- resolveViewZIndex: () => import_helpers.resolveViewZIndex
25
+ PortalItem: () => import_GorhomPortalItem.GorhomPortalItem,
26
+ resolveViewZIndex: () => import_helpers.resolveViewZIndex
28
27
  });
29
28
  module.exports = __toCommonJS(index_exports);
30
29
  __reExport(index_exports, require("./Portal.cjs"), module.exports);
@@ -32,4 +31,4 @@ __reExport(index_exports, require("./PortalProps.cjs"), module.exports);
32
31
  __reExport(index_exports, require("./GorhomPortal.cjs"), module.exports);
33
32
  var import_GorhomPortalItem = require("./GorhomPortalItem.cjs");
34
33
  __reExport(index_exports, require("./constants.cjs"), module.exports);
35
- var import_helpers = require("./helpers.cjs");
34
+ var import_helpers = require("./helpers.cjs");
@@ -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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var index_exports = {};
26
+ __export(index_exports, {
27
+ PortalItem: () => import_GorhomPortalItem.GorhomPortalItem,
28
+ resolveViewZIndex: () => import_helpers.resolveViewZIndex
29
+ });
30
+ module.exports = __toCommonJS(index_exports);
31
+ __reExport(index_exports, require("./Portal.native.js"), module.exports);
32
+ __reExport(index_exports, require("./PortalProps.native.js"), module.exports);
33
+ __reExport(index_exports, require("./GorhomPortal.native.js"), module.exports);
34
+ var import_GorhomPortalItem = require("./GorhomPortalItem.native.js");
35
+ __reExport(index_exports, require("./constants.native.js"), module.exports);
36
+ var import_helpers = require("./helpers.native.js");