@tamagui/z-index-stack 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/StackZIndex.cjs +42 -0
  3. package/dist/cjs/StackZIndex.js +29 -0
  4. package/dist/cjs/StackZIndex.js.map +6 -0
  5. package/dist/cjs/StackZIndex.native.js +46 -0
  6. package/dist/cjs/StackZIndex.native.js.map +1 -0
  7. package/dist/cjs/context.cjs +29 -0
  8. package/dist/cjs/context.js +23 -0
  9. package/dist/cjs/context.js.map +6 -0
  10. package/dist/cjs/context.native.js +32 -0
  11. package/dist/cjs/context.native.js.map +1 -0
  12. package/dist/cjs/index.cjs +20 -0
  13. package/dist/cjs/index.js +17 -0
  14. package/dist/cjs/index.js.map +6 -0
  15. package/dist/cjs/index.native.js +23 -0
  16. package/dist/cjs/index.native.js.map +1 -0
  17. package/dist/cjs/types.cjs +16 -0
  18. package/dist/cjs/types.js +14 -0
  19. package/dist/cjs/types.js.map +6 -0
  20. package/dist/cjs/types.native.js +19 -0
  21. package/dist/cjs/types.native.js.map +1 -0
  22. package/dist/cjs/useStackedZIndex.cjs +80 -0
  23. package/dist/cjs/useStackedZIndex.js +61 -0
  24. package/dist/cjs/useStackedZIndex.js.map +6 -0
  25. package/dist/cjs/useStackedZIndex.native.js +89 -0
  26. package/dist/cjs/useStackedZIndex.native.js.map +1 -0
  27. package/dist/esm/StackZIndex.js +15 -0
  28. package/dist/esm/StackZIndex.js.map +6 -0
  29. package/dist/esm/StackZIndex.mjs +19 -0
  30. package/dist/esm/StackZIndex.mjs.map +1 -0
  31. package/dist/esm/StackZIndex.native.js +20 -0
  32. package/dist/esm/StackZIndex.native.js.map +1 -0
  33. package/dist/esm/context.js +7 -0
  34. package/dist/esm/context.js.map +6 -0
  35. package/dist/esm/context.mjs +5 -0
  36. package/dist/esm/context.mjs.map +1 -0
  37. package/dist/esm/context.native.js +5 -0
  38. package/dist/esm/context.native.js.map +1 -0
  39. package/dist/esm/index.js +4 -0
  40. package/dist/esm/index.js.map +6 -0
  41. package/dist/esm/index.mjs +4 -0
  42. package/dist/esm/index.mjs.map +1 -0
  43. package/dist/esm/index.native.js +4 -0
  44. package/dist/esm/index.native.js.map +1 -0
  45. package/dist/esm/types.js +1 -0
  46. package/dist/esm/types.js.map +6 -0
  47. package/dist/esm/types.mjs +2 -0
  48. package/dist/esm/types.mjs.map +1 -0
  49. package/dist/esm/types.native.js +2 -0
  50. package/dist/esm/types.native.js.map +1 -0
  51. package/dist/esm/useStackedZIndex.js +46 -0
  52. package/dist/esm/useStackedZIndex.js.map +6 -0
  53. package/dist/esm/useStackedZIndex.mjs +57 -0
  54. package/dist/esm/useStackedZIndex.mjs.map +1 -0
  55. package/dist/esm/useStackedZIndex.native.js +63 -0
  56. package/dist/esm/useStackedZIndex.native.js.map +1 -0
  57. package/package.json +45 -0
  58. package/src/StackZIndex.tsx +28 -0
  59. package/src/context.ts +7 -0
  60. package/src/index.ts +4 -0
  61. package/src/types.ts +16 -0
  62. package/src/useStackedZIndex.tsx +91 -0
  63. package/types/StackZIndex.d.ts +5 -0
  64. package/types/StackZIndex.d.ts.map +1 -0
  65. package/types/context.d.ts +3 -0
  66. package/types/context.d.ts.map +1 -0
  67. package/types/index.d.ts +5 -0
  68. package/types/index.d.ts.map +1 -0
  69. package/types/types.d.ts +17 -0
  70. package/types/types.d.ts.map +1 -0
  71. package/types/useStackedZIndex.d.ts +6 -0
  72. package/types/useStackedZIndex.d.ts.map +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Nate Wienert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,42 @@
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: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var StackZIndex_exports = {};
22
+ __export(StackZIndex_exports, {
23
+ StackZIndexContext: () => StackZIndexContext
24
+ });
25
+ module.exports = __toCommonJS(StackZIndex_exports);
26
+ var import_react = require("react"),
27
+ import_context = require("./context.cjs"),
28
+ import_jsx_runtime = require("react/jsx-runtime");
29
+ const StackZIndexContext = ({
30
+ children,
31
+ zIndex
32
+ }) => {
33
+ const existing = (0, import_react.useContext)(import_context.ZIndexStackContext);
34
+ let content = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context.ZIndexStackContext.Provider, {
35
+ value: existing + 1,
36
+ children
37
+ });
38
+ return typeof zIndex < "u" && (content = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context.ZIndexHardcodedContext.Provider, {
39
+ value: zIndex,
40
+ children: content
41
+ })), content;
42
+ };
@@ -0,0 +1,29 @@
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)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var StackZIndex_exports = {};
16
+ __export(StackZIndex_exports, {
17
+ StackZIndexContext: () => StackZIndexContext
18
+ });
19
+ module.exports = __toCommonJS(StackZIndex_exports);
20
+ var import_react = require("react"), import_context = require("./context"), import_jsx_runtime = require("react/jsx-runtime");
21
+ const StackZIndexContext = ({
22
+ children,
23
+ zIndex
24
+ }) => {
25
+ const existing = (0, import_react.useContext)(import_context.ZIndexStackContext);
26
+ let content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_context.ZIndexStackContext.Provider, { value: existing + 1, children });
27
+ return typeof zIndex < "u" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_context.ZIndexHardcodedContext.Provider, { value: zIndex, children: content })), content;
28
+ };
29
+ //# sourceMappingURL=StackZIndex.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/StackZIndex.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B,kBAC3B,iBAA2D,sBAYvD;AAVG,MAAM,qBAAqB,CAAC;AAAA,EACjC;AAAA,EACA;AACF,MAGM;AACJ,QAAM,eAAW,yBAAW,iCAAkB;AAE9C,MAAI,UACF,4CAAC,kCAAmB,UAAnB,EAA4B,OAAO,WAAW,GAC5C,UACH;AAGF,SAAI,OAAO,SAAW,QACpB,UACE,4CAAC,sCAAuB,UAAvB,EAAgC,OAAO,QACrC,mBACH,IAIG;AACT;",
5
+ "names": []
6
+ }
@@ -0,0 +1,46 @@
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: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var StackZIndex_exports = {};
24
+ __export(StackZIndex_exports, {
25
+ StackZIndexContext: () => StackZIndexContext
26
+ });
27
+ module.exports = __toCommonJS(StackZIndex_exports);
28
+ var import_jsx_runtime = require("react/jsx-runtime"),
29
+ import_react = require("react"),
30
+ import_context = require("./context.native.js"),
31
+ StackZIndexContext = function (param) {
32
+ var {
33
+ children,
34
+ zIndex
35
+ } = param,
36
+ existing = (0, import_react.useContext)(import_context.ZIndexStackContext),
37
+ content = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context.ZIndexStackContext.Provider, {
38
+ value: existing + 1,
39
+ children
40
+ });
41
+ return typeof zIndex < "u" && (content = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context.ZIndexHardcodedContext.Provider, {
42
+ value: zIndex,
43
+ children: content
44
+ })), content;
45
+ };
46
+ //# sourceMappingURL=StackZIndex.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","StackZIndex_exports","__export","StackZIndexContext","module","exports","import_jsx_runtime","require","import_react","import_context","param","children","zIndex","existing","useContext","ZIndexStackContext","content","jsx","Provider","ZIndexHardcodedContext"],"sources":["../../src/StackZIndex.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA2B,CAAAK,mBAC3B;AAEO,IAAAK,kBAAM,GAAAC,OAAsB;EAAAC,YAAA,GAAAD,OAAA;EAAAE,cAAA,GAAAF,OAAA;EAAAJ,kBAAA,YAAAA,CAAAO,KAAA;IACjC;QAAAC,QAAA;QAAAC;MAAA,IAAAF,KAAA;MAAAG,QAAA,OAAAL,YAAA,CAAAM,UAAA,EAAAL,cAAA,CAAAM,kBAAA;MAAAC,OAAA,sBAAAV,kBAAA,CAAAW,GAAA,EAAAR,cAAA,CAAAM,kBAAA,CAAAG,QAAA;QACAlB,KAAA,EAAAa,QAAA;QACFF;MAIE;IAEA,OAAI,OACFC,MAAA,WAAAI,OAAA,mBAAC,GAAAV,kBAAA,CAAAW,GAAA,EAAAR,cAAmB,CAAAU,sBAA2B,CAAAD,QAC5C;MAILlB,KAAI,EAAAY,MAAO;MASbD,QAAA,EAAAK","ignoreList":[]}
@@ -0,0 +1,29 @@
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: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var context_exports = {};
22
+ __export(context_exports, {
23
+ ZIndexHardcodedContext: () => ZIndexHardcodedContext,
24
+ ZIndexStackContext: () => ZIndexStackContext
25
+ });
26
+ module.exports = __toCommonJS(context_exports);
27
+ var import_react = require("react");
28
+ const ZIndexStackContext = (0, import_react.createContext)(1),
29
+ ZIndexHardcodedContext = (0, import_react.createContext)(void 0);
@@ -0,0 +1,23 @@
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)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var context_exports = {};
16
+ __export(context_exports, {
17
+ ZIndexHardcodedContext: () => ZIndexHardcodedContext,
18
+ ZIndexStackContext: () => ZIndexStackContext
19
+ });
20
+ module.exports = __toCommonJS(context_exports);
21
+ var import_react = require("react");
22
+ const ZIndexStackContext = (0, import_react.createContext)(1), ZIndexHardcodedContext = (0, import_react.createContext)(void 0);
23
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/context.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA8B;AAGvB,MAAM,yBAAqB,4BAAc,CAAC,GAGpC,6BAAyB,4BAAkC,MAAS;",
5
+ "names": []
6
+ }
@@ -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: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var context_exports = {};
24
+ __export(context_exports, {
25
+ ZIndexHardcodedContext: () => ZIndexHardcodedContext,
26
+ ZIndexStackContext: () => ZIndexStackContext
27
+ });
28
+ module.exports = __toCommonJS(context_exports);
29
+ var import_react = require("react"),
30
+ ZIndexStackContext = (0, import_react.createContext)(1),
31
+ ZIndexHardcodedContext = (0, import_react.createContext)(void 0);
32
+ //# sourceMappingURL=context.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","context_exports","__export","ZIndexHardcodedContext","ZIndexStackContext","module","exports","import_react","require","createContext"],"sources":["../../src/context.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,sBAAA,EAAAA,CAAA,KAAAA,sBAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAA8B,CAAAK,eAAA;AAGvB,IAAAM,YAAM,GAAAC,OAAA,QAAqB;EAAAJ,kBAAA,IAAc,CAAC,EAAAG,YAGpC,CAAAE,aAAA,IAAyB;EAAAN,sBAAA,IAAkC,GAAAI,YAAS,CAAAE,aAAA","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
+ get: () => from[key],
8
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
+ });
10
+ return to;
11
+ },
12
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
+ value: !0
15
+ }), mod);
16
+ var index_exports = {};
17
+ module.exports = __toCommonJS(index_exports);
18
+ __reExport(index_exports, require("./useStackedZIndex.cjs"), module.exports);
19
+ __reExport(index_exports, require("./StackZIndex.cjs"), module.exports);
20
+ __reExport(index_exports, require("./context.cjs"), module.exports);
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function")
7
+ for (let key of __getOwnPropNames(from))
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
+ return to;
10
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
+ var index_exports = {};
13
+ module.exports = __toCommonJS(index_exports);
14
+ __reExport(index_exports, require("./useStackedZIndex"), module.exports);
15
+ __reExport(index_exports, require("./StackZIndex"), module.exports);
16
+ __reExport(index_exports, require("./context"), module.exports);
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,+BAAd;AACA,0BAAc,0BADd;AAEA,0BAAc,sBAFd;",
5
+ "names": []
6
+ }
@@ -0,0 +1,23 @@
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 __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("./useStackedZIndex.native.js"), module.exports);
21
+ __reExport(index_exports, require("./StackZIndex.native.js"), module.exports);
22
+ __reExport(index_exports, require("./context.native.js"), module.exports);
23
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,+BADd,GAAAH,MAAA,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,0BAFd,GAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
+ get: () => from[key],
8
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
+ });
10
+ return to;
11
+ };
12
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
13
+ value: !0
14
+ }), mod);
15
+ var types_exports = {};
16
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,14 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function")
7
+ for (let key of __getOwnPropNames(from))
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
+ return to;
10
+ };
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
+ var types_exports = {};
13
+ module.exports = __toCommonJS(types_exports);
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/types.ts"],
4
+ "mappings": ";;;;;;;;;;;AAAA;AAAA;",
5
+ "names": []
6
+ }
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ };
14
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
+ value: !0
16
+ }), mod);
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ //# sourceMappingURL=types.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
@@ -0,0 +1,80 @@
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: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var useStackedZIndex_exports = {};
22
+ __export(useStackedZIndex_exports, {
23
+ useStackedZIndex: () => useStackedZIndex
24
+ });
25
+ module.exports = __toCommonJS(useStackedZIndex_exports);
26
+ var import_react = require("react"),
27
+ import_context = require("./context.cjs");
28
+ const ZIndicesByContext = {},
29
+ CurrentPortalZIndices = {},
30
+ useStackedZIndex = props => {
31
+ if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
32
+ const {
33
+ stackZIndex,
34
+ zIndex: zIndexProp
35
+ } = props,
36
+ id = (0, import_react.useId)(),
37
+ zIndex = (0, import_react.useMemo)(() => {
38
+ if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
39
+ const highest = Object.values(CurrentPortalZIndices).reduce((acc, cur) => Math.max(acc, cur), 0);
40
+ return Math.max(stackZIndex === !0 ? 1 : stackZIndex, highest + 1);
41
+ }
42
+ return zIndexProp ?? 1e3;
43
+ }, [stackZIndex]);
44
+ return (0, import_react.useEffect)(() => {
45
+ if (typeof stackZIndex == "number") return CurrentPortalZIndices[id] = stackZIndex, () => {
46
+ delete CurrentPortalZIndices[id];
47
+ };
48
+ }, [stackZIndex]), zIndex;
49
+ } else {
50
+ const {
51
+ stackZIndex,
52
+ zIndex: zIndexProp
53
+ } = props,
54
+ id = (0, import_react.useId)(),
55
+ stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext),
56
+ stackLayer = stackZIndex === "global" ? 0 : stackingContextLevel,
57
+ hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
58
+ ZIndicesByContext[stackLayer] ||= {};
59
+ const stackContext = ZIndicesByContext[stackLayer],
60
+ zIndex = (0, import_react.useMemo)(() => {
61
+ if (typeof zIndexProp == "number") return zIndexProp;
62
+ if (stackZIndex) {
63
+ if (hardcoded) return hardcoded + 1;
64
+ const entries = Object.values(stackContext),
65
+ baseForLayer = stackLayer * 5e3,
66
+ nextLayerBase = (stackLayer + 1) * 5e3,
67
+ validEntries = entries.filter(z => z < nextLayerBase),
68
+ highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer,
69
+ nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;
70
+ return typeof stackZIndex == "number" ? stackZIndex + nextZIndex : nextZIndex;
71
+ }
72
+ return 1;
73
+ }, [stackLayer, zIndexProp, stackZIndex]);
74
+ return (0, import_react.useEffect)(() => {
75
+ if (stackZIndex) return stackContext[id] = zIndex, () => {
76
+ delete stackContext[id];
77
+ };
78
+ }, [zIndex]), zIndex;
79
+ }
80
+ };
@@ -0,0 +1,61 @@
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)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var useStackedZIndex_exports = {};
16
+ __export(useStackedZIndex_exports, {
17
+ useStackedZIndex: () => useStackedZIndex
18
+ });
19
+ module.exports = __toCommonJS(useStackedZIndex_exports);
20
+ var import_react = require("react"), import_context = require("./context");
21
+ const ZIndicesByContext = {}, CurrentPortalZIndices = {}, useStackedZIndex = (props) => {
22
+ if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
23
+ const { stackZIndex, zIndex: zIndexProp } = props, id = (0, import_react.useId)(), zIndex = (0, import_react.useMemo)(() => {
24
+ if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
25
+ const highest = Object.values(CurrentPortalZIndices).reduce(
26
+ (acc, cur) => Math.max(acc, cur),
27
+ 0
28
+ );
29
+ return Math.max(stackZIndex === !0 ? 1 : stackZIndex, highest + 1);
30
+ }
31
+ return zIndexProp ?? 1e3;
32
+ }, [stackZIndex]);
33
+ return (0, import_react.useEffect)(() => {
34
+ if (typeof stackZIndex == "number")
35
+ return CurrentPortalZIndices[id] = stackZIndex, () => {
36
+ delete CurrentPortalZIndices[id];
37
+ };
38
+ }, [stackZIndex]), zIndex;
39
+ } else {
40
+ const { stackZIndex, zIndex: zIndexProp } = props, id = (0, import_react.useId)(), stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext), stackLayer = stackZIndex === "global" ? 0 : stackingContextLevel, hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
41
+ ZIndicesByContext[stackLayer] ||= {};
42
+ const stackContext = ZIndicesByContext[stackLayer], zIndex = (0, import_react.useMemo)(() => {
43
+ if (typeof zIndexProp == "number")
44
+ return zIndexProp;
45
+ if (stackZIndex) {
46
+ if (hardcoded)
47
+ return hardcoded + 1;
48
+ const entries = Object.values(stackContext), baseForLayer = stackLayer * 5e3, nextLayerBase = (stackLayer + 1) * 5e3, validEntries = entries.filter((z) => z < nextLayerBase), highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer, nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;
49
+ return typeof stackZIndex == "number" ? stackZIndex + nextZIndex : nextZIndex;
50
+ }
51
+ return 1;
52
+ }, [stackLayer, zIndexProp, stackZIndex]);
53
+ return (0, import_react.useEffect)(() => {
54
+ if (stackZIndex)
55
+ return stackContext[id] = zIndex, () => {
56
+ delete stackContext[id];
57
+ };
58
+ }, [zIndex]), zIndex;
59
+ }
60
+ };
61
+ //# sourceMappingURL=useStackedZIndex.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/useStackedZIndex.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsD,kBACtD,iBAA2D;AAI3D,MAAM,oBAA4D,CAAC,GAG7D,wBAAgD,CAAC,GAE1C,mBAAmB,CAAC,UAG3B;AACJ,MAAI,QAAQ,IAAI,8BAA8B;AAC5C,UAAM,EAAE,aAAa,QAAQ,WAAW,IAAI,OACtC,SAAK,oBAAM,GAEX,aAAS,sBAAQ,MAAM;AAC3B,UAAI,eAAe,gBAAgB,YAAY,eAAe,QAAW;AACvE,cAAM,UAAU,OAAO,OAAO,qBAAq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EACT;AACF;",
5
+ "names": []
6
+ }
@@ -0,0 +1,89 @@
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: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var useStackedZIndex_exports = {};
24
+ __export(useStackedZIndex_exports, {
25
+ useStackedZIndex: () => useStackedZIndex
26
+ });
27
+ module.exports = __toCommonJS(useStackedZIndex_exports);
28
+ var import_react = require("react"),
29
+ import_context = require("./context.native.js"),
30
+ ZIndicesByContext = {},
31
+ CurrentPortalZIndices = {},
32
+ useStackedZIndex = function (props) {
33
+ if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
34
+ var {
35
+ stackZIndex,
36
+ zIndex: zIndexProp
37
+ } = props,
38
+ id = (0, import_react.useId)(),
39
+ zIndex = (0, import_react.useMemo)(function () {
40
+ if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
41
+ var highest = Object.values(CurrentPortalZIndices).reduce(function (acc, cur) {
42
+ return Math.max(acc, cur);
43
+ }, 0);
44
+ return Math.max(stackZIndex === !0 ? 1 : stackZIndex, highest + 1);
45
+ }
46
+ return zIndexProp ?? 1e3;
47
+ }, [stackZIndex]);
48
+ return (0, import_react.useEffect)(function () {
49
+ if (typeof stackZIndex == "number") return CurrentPortalZIndices[id] = stackZIndex, function () {
50
+ delete CurrentPortalZIndices[id];
51
+ };
52
+ }, [stackZIndex]), zIndex;
53
+ } else {
54
+ var _ZIndicesByContext,
55
+ _stackLayer,
56
+ {
57
+ stackZIndex: stackZIndex1,
58
+ zIndex: zIndexProp1
59
+ } = props,
60
+ id1 = (0, import_react.useId)(),
61
+ stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext),
62
+ stackLayer = stackZIndex1 === "global" ? 0 : stackingContextLevel,
63
+ hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
64
+ (_ZIndicesByContext = ZIndicesByContext)[_stackLayer = stackLayer] || (_ZIndicesByContext[_stackLayer] = {});
65
+ var stackContext = ZIndicesByContext[stackLayer],
66
+ zIndex1 = (0, import_react.useMemo)(function () {
67
+ if (typeof zIndexProp1 == "number") return zIndexProp1;
68
+ if (stackZIndex1) {
69
+ if (hardcoded) return hardcoded + 1;
70
+ var entries = Object.values(stackContext),
71
+ baseForLayer = stackLayer * 5e3,
72
+ nextLayerBase = (stackLayer + 1) * 5e3,
73
+ validEntries = entries.filter(function (z) {
74
+ return z < nextLayerBase;
75
+ }),
76
+ highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer,
77
+ nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;
78
+ return typeof stackZIndex1 == "number" ? stackZIndex1 + nextZIndex : nextZIndex;
79
+ }
80
+ return 1;
81
+ }, [stackLayer, zIndexProp1, stackZIndex1]);
82
+ return (0, import_react.useEffect)(function () {
83
+ if (stackZIndex1) return stackContext[id1] = zIndex1, function () {
84
+ delete stackContext[id1];
85
+ };
86
+ }, [zIndex1]), zIndex1;
87
+ }
88
+ };
89
+ //# sourceMappingURL=useStackedZIndex.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useStackedZIndex_exports","__export","useStackedZIndex","module","exports","import_react","require","import_context","ZIndicesByContext","CurrentPortalZIndices","props","process","env","TAMAGUI_STACK_Z_INDEX_GLOBAL","stackZIndex","zIndex","zIndexProp","id","useId","useMemo","highest","Object","values","reduce","acc","cur","Math","max","useEffect","_ZIndicesByContext","_stackLayer","stackZIndex1","zIndexProp1","id1","stackingContextLevel","useContext","ZIndexStackContext","stackLayer","hardcoded","ZIndexHardcodedContext","stackContext","zIndex1","entries","baseForLayer","nextLayerBase","validEntries","filter","z","length","nextZIndex"],"sources":["../../src/useStackedZIndex.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAsD,CAAAK,wBACK;AAI3D,IAAAK,YAAM,GAAAC,OAA4D,CAAC,OAG7D;EAAAC,cAAA,GAAgDD,OAEzC;EAAAE,iBAGP;EAAAC,qBAAA;EAAAP,gBAAA,YAAAA,CAAAQ,KAAA;IACJ,IAAIC,OAAA,CAAQC,GAAA,CAAIC,4BAAA,EAA8B;MAC5C;UAAMC,WAAE;UAAAC,MAAa,EAAAC;QAAQ,IAAWN,KAAI;QAAAO,EACtC,OAAAZ,YAAK,CAAAa,KAAA;QAAMH,MAEX,OAAAV,YAAS,CAAAc,OAAA,cAAc;UAC3B,IAAIL,WAAA,IAAeA,WAAA,KAAgB,YAAYE,UAAA,KAAe,QAAW;YACvE,IAAAI,OAAM,GAAAC,MAAU,CAAAC,MAAO,CAAAb,qBAAO,EAAqBc,MAAE,WAAAC,GAAA,EAAAC,GAAA;cACnD,OAAMC,IAAA,CAAAC,GAAQ,CAAAH,GAAK,EAAAC,GAAI;YAAQ,GAC/B;YACF,OAAAC,IAAA,CAAAC,GAAA,CAAAb,WAAA,cAAAA,WAAA,EAAAM,OAAA;UACA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