@tamagui/z-index-stack 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 (46) hide show
  1. package/dist/cjs/StackZIndex.cjs +28 -34
  2. package/dist/cjs/StackZIndex.native.cjs +44 -0
  3. package/dist/cjs/StackZIndex.native.js +29 -34
  4. package/dist/cjs/StackZIndex.native.js.map +1 -1
  5. package/dist/cjs/context.cjs +16 -17
  6. package/dist/cjs/context.native.cjs +32 -0
  7. package/dist/cjs/context.native.js +16 -16
  8. package/dist/cjs/context.native.js.map +1 -1
  9. package/dist/cjs/index.cjs +10 -11
  10. package/dist/cjs/index.native.cjs +23 -0
  11. package/dist/cjs/index.native.js +10 -10
  12. package/dist/cjs/index.native.js.map +1 -1
  13. package/dist/cjs/types.cjs +10 -11
  14. package/dist/cjs/types.native.cjs +19 -0
  15. package/dist/cjs/types.native.js +10 -10
  16. package/dist/cjs/types.native.js.map +1 -1
  17. package/dist/cjs/useStackedZIndex.cjs +75 -80
  18. package/dist/cjs/useStackedZIndex.native.cjs +96 -0
  19. package/dist/cjs/useStackedZIndex.native.js +80 -84
  20. package/dist/cjs/useStackedZIndex.native.js.map +1 -1
  21. package/dist/esm/StackZIndex.mjs +15 -16
  22. package/dist/esm/StackZIndex.mjs.map +1 -1
  23. package/dist/esm/StackZIndex.native.js +17 -18
  24. package/dist/esm/StackZIndex.native.js.map +1 -1
  25. package/dist/esm/context.mjs +2 -0
  26. package/dist/esm/context.mjs.map +1 -1
  27. package/dist/esm/context.native.js +2 -0
  28. package/dist/esm/context.native.js.map +1 -1
  29. package/dist/esm/index.js +5 -4
  30. package/dist/esm/index.mjs +5 -4
  31. package/dist/esm/index.native.js +5 -4
  32. package/dist/esm/types.mjs +0 -2
  33. package/dist/esm/types.native.js +0 -2
  34. package/dist/esm/useStackedZIndex.mjs +62 -62
  35. package/dist/esm/useStackedZIndex.mjs.map +1 -1
  36. package/dist/esm/useStackedZIndex.native.js +67 -67
  37. package/dist/esm/useStackedZIndex.native.js.map +1 -1
  38. package/package.json +2 -2
  39. package/types/StackZIndex.d.ts +1 -1
  40. package/types/StackZIndex.d.ts.map +1 -1
  41. package/types/useStackedZIndex.d.ts.map +1 -1
  42. package/dist/esm/index.js.map +0 -1
  43. package/dist/esm/index.mjs.map +0 -1
  44. package/dist/esm/index.native.js.map +0 -1
  45. package/dist/esm/types.mjs.map +0 -1
  46. package/dist/esm/types.native.js.map +0 -1
@@ -1,94 +1,89 @@
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 useStackedZIndex_exports = {};
24
- __export(useStackedZIndex_exports, {
25
- useStackedZIndex: () => useStackedZIndex
26
- });
23
+ __export(useStackedZIndex_exports, { useStackedZIndex: () => useStackedZIndex });
27
24
  module.exports = __toCommonJS(useStackedZIndex_exports);
28
25
  var import_react = require("react");
29
26
  var import_context = require("./context.cjs");
30
27
  const ZIndicesByContext = {};
31
28
  const CurrentPortalZIndices = {};
32
- const useStackedZIndex = props => {
33
- if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
34
- const {
35
- stackZIndex,
36
- zIndex: zIndexProp
37
- } = props;
38
- const id = (0, import_react.useId)();
39
- const zIndex = (0, import_react.useMemo)(() => {
40
- if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
41
- const highest = Object.values(CurrentPortalZIndices).reduce((acc, cur) => Math.max(acc, cur), 0);
42
- return Math.max(stackZIndex === true ? 1 : stackZIndex, highest + 1);
43
- }
44
- return zIndexProp ?? 1e3;
45
- }, [stackZIndex]);
46
- (0, import_react.useEffect)(() => {
47
- if (typeof stackZIndex === "number") {
48
- CurrentPortalZIndices[id] = stackZIndex;
49
- return () => {
50
- delete CurrentPortalZIndices[id];
51
- };
52
- }
53
- }, [stackZIndex]);
54
- return zIndex;
55
- } else {
56
- const {
57
- stackZIndex,
58
- zIndex: zIndexProp
59
- } = props;
60
- const id = (0, import_react.useId)();
61
- const stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext);
62
- const stackLayer = stackZIndex === "global" ? 0 : stackingContextLevel;
63
- const hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
64
- ZIndicesByContext[stackLayer] ||= {};
65
- const stackContext = ZIndicesByContext[stackLayer];
66
- const zIndex = (0, import_react.useMemo)(() => {
67
- if (typeof zIndexProp === "number") {
68
- return zIndexProp;
69
- }
70
- if (stackZIndex) {
71
- if (hardcoded) {
72
- return hardcoded + 1;
73
- }
74
- const entries = Object.values(stackContext);
75
- const baseForLayer = stackLayer * 5e3;
76
- const nextLayerBase = (stackLayer + 1) * 5e3;
77
- const validEntries = entries.filter(z => z < nextLayerBase);
78
- const highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer;
79
- const nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;
80
- return typeof stackZIndex === "number" ? stackZIndex + nextZIndex : nextZIndex;
81
- }
82
- return 1;
83
- }, [stackLayer, zIndexProp, stackZIndex]);
84
- (0, import_react.useEffect)(() => {
85
- if (stackZIndex) {
86
- stackContext[id] = zIndex;
87
- return () => {
88
- delete stackContext[id];
89
- };
90
- }
91
- }, [zIndex]);
92
- return zIndex;
93
- }
94
- };
29
+ const useStackedZIndex = (props) => {
30
+ if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
31
+ const { stackZIndex, zIndex: zIndexProp } = props;
32
+ const id = (0, import_react.useId)();
33
+ const zIndex = (0, import_react.useMemo)(() => {
34
+ if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
35
+ const highest = Object.values(CurrentPortalZIndices).reduce((acc, cur) => Math.max(acc, cur), 0);
36
+ return Math.max(stackZIndex === true ? 1 : stackZIndex, highest + 1);
37
+ }
38
+ return zIndexProp ?? 1e3;
39
+ }, [stackZIndex]);
40
+ (0, import_react.useEffect)(() => {
41
+ if (typeof stackZIndex === "number") {
42
+ CurrentPortalZIndices[id] = stackZIndex;
43
+ return () => {
44
+ delete CurrentPortalZIndices[id];
45
+ };
46
+ }
47
+ }, [stackZIndex]);
48
+ return zIndex;
49
+ } else {
50
+ const { stackZIndex, zIndex: zIndexProp } = props;
51
+ const id = (0, import_react.useId)();
52
+ const stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext);
53
+ const stackLayer = stackZIndex === "global" ? 0 : stackingContextLevel;
54
+ const hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
55
+ ZIndicesByContext[stackLayer] ||= {};
56
+ const stackContext = ZIndicesByContext[stackLayer];
57
+ const zIndex = (0, import_react.useMemo)(() => {
58
+ if (typeof zIndexProp === "number") {
59
+ return zIndexProp;
60
+ }
61
+ if (stackZIndex) {
62
+ if (hardcoded) {
63
+ return hardcoded + 1;
64
+ }
65
+ const entries = Object.values(stackContext);
66
+ const baseForLayer = stackLayer * 5e3;
67
+ const nextLayerBase = (stackLayer + 1) * 5e3;
68
+ const validEntries = entries.filter((z) => z < nextLayerBase);
69
+ const highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer;
70
+ const nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;
71
+ return typeof stackZIndex === "number" ? stackZIndex + nextZIndex : nextZIndex;
72
+ }
73
+ return 1;
74
+ }, [
75
+ stackLayer,
76
+ zIndexProp,
77
+ stackZIndex
78
+ ]);
79
+ (0, import_react.useEffect)(() => {
80
+ if (stackZIndex) {
81
+ stackContext[id] = zIndex;
82
+ return () => {
83
+ delete stackContext[id];
84
+ };
85
+ }
86
+ }, [zIndex]);
87
+ return zIndex;
88
+ }
89
+ };
@@ -0,0 +1,96 @@
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 useStackedZIndex_exports = {};
25
+ __export(useStackedZIndex_exports, { useStackedZIndex: () => useStackedZIndex });
26
+ module.exports = __toCommonJS(useStackedZIndex_exports);
27
+ var import_react = require("react");
28
+ var import_context = require("./context.native.js");
29
+ var ZIndicesByContext = {};
30
+ var CurrentPortalZIndices = {};
31
+ var useStackedZIndex = function(props) {
32
+ if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
33
+ var { stackZIndex, zIndex: zIndexProp } = props;
34
+ var id = (0, import_react.useId)();
35
+ var zIndex = (0, import_react.useMemo)(function() {
36
+ if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
37
+ var highest = Object.values(CurrentPortalZIndices).reduce(function(acc, cur) {
38
+ return Math.max(acc, cur);
39
+ }, 0);
40
+ return Math.max(stackZIndex === true ? 1 : stackZIndex, highest + 1);
41
+ }
42
+ return zIndexProp !== null && zIndexProp !== void 0 ? zIndexProp : 1e3;
43
+ }, [stackZIndex]);
44
+ (0, import_react.useEffect)(function() {
45
+ if (typeof stackZIndex === "number") {
46
+ CurrentPortalZIndices[id] = stackZIndex;
47
+ return function() {
48
+ delete CurrentPortalZIndices[id];
49
+ };
50
+ }
51
+ }, [stackZIndex]);
52
+ return zIndex;
53
+ } else {
54
+ var _ZIndicesByContext, _stackLayer;
55
+ var { stackZIndex: stackZIndex1, zIndex: zIndexProp1 } = props;
56
+ var id1 = (0, import_react.useId)();
57
+ var stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext);
58
+ var stackLayer = stackZIndex1 === "global" ? 0 : stackingContextLevel;
59
+ var hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
60
+ (_ZIndicesByContext = ZIndicesByContext)[_stackLayer = stackLayer] || (_ZIndicesByContext[_stackLayer] = {});
61
+ var stackContext = ZIndicesByContext[stackLayer];
62
+ var zIndex1 = (0, import_react.useMemo)(function() {
63
+ if (typeof zIndexProp1 === "number") {
64
+ return zIndexProp1;
65
+ }
66
+ if (stackZIndex1) {
67
+ if (hardcoded) {
68
+ return hardcoded + 1;
69
+ }
70
+ var entries = Object.values(stackContext);
71
+ var baseForLayer = stackLayer * 5e3;
72
+ var nextLayerBase = (stackLayer + 1) * 5e3;
73
+ var validEntries = entries.filter(function(z) {
74
+ return z < nextLayerBase;
75
+ });
76
+ var highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer;
77
+ var nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;
78
+ return typeof stackZIndex1 === "number" ? stackZIndex1 + nextZIndex : nextZIndex;
79
+ }
80
+ return 1;
81
+ }, [
82
+ stackLayer,
83
+ zIndexProp1,
84
+ stackZIndex1
85
+ ]);
86
+ (0, import_react.useEffect)(function() {
87
+ if (stackZIndex1) {
88
+ stackContext[id1] = zIndex1;
89
+ return function() {
90
+ delete stackContext[id1];
91
+ };
92
+ }
93
+ }, [zIndex1]);
94
+ return zIndex1;
95
+ }
96
+ };
@@ -1,102 +1,98 @@
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 useStackedZIndex_exports = {};
26
- __export(useStackedZIndex_exports, {
27
- useStackedZIndex: () => useStackedZIndex
28
- });
25
+ __export(useStackedZIndex_exports, { useStackedZIndex: () => useStackedZIndex });
29
26
  module.exports = __toCommonJS(useStackedZIndex_exports);
30
27
  var import_react = require("react");
31
28
  var import_context = require("./context.native.js");
32
29
  var ZIndicesByContext = {};
33
30
  var CurrentPortalZIndices = {};
34
- var useStackedZIndex = function (props) {
35
- if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
36
- var {
37
- stackZIndex,
38
- zIndex: zIndexProp
39
- } = props;
40
- var id = (0, import_react.useId)();
41
- var zIndex = (0, import_react.useMemo)(function () {
42
- if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
43
- var highest = Object.values(CurrentPortalZIndices).reduce(function (acc, cur) {
44
- return Math.max(acc, cur);
45
- }, 0);
46
- return Math.max(stackZIndex === true ? 1 : stackZIndex, highest + 1);
47
- }
48
- return zIndexProp !== null && zIndexProp !== void 0 ? zIndexProp : 1e3;
49
- }, [stackZIndex]);
50
- (0, import_react.useEffect)(function () {
51
- if (typeof stackZIndex === "number") {
52
- CurrentPortalZIndices[id] = stackZIndex;
53
- return function () {
54
- delete CurrentPortalZIndices[id];
55
- };
56
- }
57
- }, [stackZIndex]);
58
- return zIndex;
59
- } else {
60
- var _ZIndicesByContext, _stackLayer;
61
- var {
62
- stackZIndex: stackZIndex1,
63
- zIndex: zIndexProp1
64
- } = props;
65
- var id1 = (0, import_react.useId)();
66
- var stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext);
67
- var stackLayer = stackZIndex1 === "global" ? 0 : stackingContextLevel;
68
- var hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
69
- (_ZIndicesByContext = ZIndicesByContext)[_stackLayer = stackLayer] || (_ZIndicesByContext[_stackLayer] = {});
70
- var stackContext = ZIndicesByContext[stackLayer];
71
- var zIndex1 = (0, import_react.useMemo)(function () {
72
- if (typeof zIndexProp1 === "number") {
73
- return zIndexProp1;
74
- }
75
- if (stackZIndex1) {
76
- if (hardcoded) {
77
- return hardcoded + 1;
78
- }
79
- var entries = Object.values(stackContext);
80
- var baseForLayer = stackLayer * 5e3;
81
- var nextLayerBase = (stackLayer + 1) * 5e3;
82
- var validEntries = entries.filter(function (z) {
83
- return z < nextLayerBase;
84
- });
85
- var highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer;
86
- var nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;
87
- return typeof stackZIndex1 === "number" ? stackZIndex1 + nextZIndex : nextZIndex;
88
- }
89
- return 1;
90
- }, [stackLayer, zIndexProp1, stackZIndex1]);
91
- (0, import_react.useEffect)(function () {
92
- if (stackZIndex1) {
93
- stackContext[id1] = zIndex1;
94
- return function () {
95
- delete stackContext[id1];
96
- };
97
- }
98
- }, [zIndex1]);
99
- return zIndex1;
100
- }
31
+ var useStackedZIndex = function(props) {
32
+ if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
33
+ var { stackZIndex, zIndex: zIndexProp } = props;
34
+ var id = (0, import_react.useId)();
35
+ var zIndex = (0, import_react.useMemo)(function() {
36
+ if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
37
+ var highest = Object.values(CurrentPortalZIndices).reduce(function(acc, cur) {
38
+ return Math.max(acc, cur);
39
+ }, 0);
40
+ return Math.max(stackZIndex === true ? 1 : stackZIndex, highest + 1);
41
+ }
42
+ return zIndexProp !== null && zIndexProp !== void 0 ? zIndexProp : 1e3;
43
+ }, [stackZIndex]);
44
+ (0, import_react.useEffect)(function() {
45
+ if (typeof stackZIndex === "number") {
46
+ CurrentPortalZIndices[id] = stackZIndex;
47
+ return function() {
48
+ delete CurrentPortalZIndices[id];
49
+ };
50
+ }
51
+ }, [stackZIndex]);
52
+ return zIndex;
53
+ } else {
54
+ var _ZIndicesByContext, _stackLayer;
55
+ var { stackZIndex: stackZIndex1, zIndex: zIndexProp1 } = props;
56
+ var id1 = (0, import_react.useId)();
57
+ var stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext);
58
+ var stackLayer = stackZIndex1 === "global" ? 0 : stackingContextLevel;
59
+ var hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
60
+ (_ZIndicesByContext = ZIndicesByContext)[_stackLayer = stackLayer] || (_ZIndicesByContext[_stackLayer] = {});
61
+ var stackContext = ZIndicesByContext[stackLayer];
62
+ var zIndex1 = (0, import_react.useMemo)(function() {
63
+ if (typeof zIndexProp1 === "number") {
64
+ return zIndexProp1;
65
+ }
66
+ if (stackZIndex1) {
67
+ if (hardcoded) {
68
+ return hardcoded + 1;
69
+ }
70
+ var entries = Object.values(stackContext);
71
+ var baseForLayer = stackLayer * 5e3;
72
+ var nextLayerBase = (stackLayer + 1) * 5e3;
73
+ var validEntries = entries.filter(function(z) {
74
+ return z < nextLayerBase;
75
+ });
76
+ var highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer;
77
+ var nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;
78
+ return typeof stackZIndex1 === "number" ? stackZIndex1 + nextZIndex : nextZIndex;
79
+ }
80
+ return 1;
81
+ }, [
82
+ stackLayer,
83
+ zIndexProp1,
84
+ stackZIndex1
85
+ ]);
86
+ (0, import_react.useEffect)(function() {
87
+ if (stackZIndex1) {
88
+ stackContext[id1] = zIndex1;
89
+ return function() {
90
+ delete stackContext[id1];
91
+ };
92
+ }
93
+ }, [zIndex1]);
94
+ return zIndex1;
95
+ }
101
96
  };
97
+
102
98
  //# sourceMappingURL=useStackedZIndex.native.js.map
@@ -1 +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,wBAAA;AACtD,IAAAK,YAAA,GAAAC,OAA2D;AAI3D,IAAAC,cAAM,GAAAD,OAA6D;AAGnE,IAAAE,iBAAM;AAEC,IAAAC,qBAAyB,GAAC;AAI/B,IAAAP,gBAAgB,YAAAA,CAAAQ,KAAA;EACd,IAAAC,OAAQ,CAAAC,GAAA,CAAAC,4BAAgC,EAAI;IAC5C;MAAMC,WAAK;MAAAC,MAAA,EAAAC;IAAM,IAAAN,KAAA;IAEjB,IAAAO,EAAM,OAAAZ,YAAS,CAAAa,KAAA;IACb,IAAAH,MAAI,OAAAV,YAAe,CAAAc,OAAgB,cAAY;MAC7C,IAAAL,WAAM,IAAUA,WAAO,KAAO,YAAAE,UAAuB;QAAA,IAClDI,OAAK,GAAAC,MAAQ,CAAKC,MAAI,CAAAb,qBAAQ,EAAAc,MAAA,WAAAC,GAAA,EAAAC,GAAA;UAC/B,OAAAC,IAAA,CAAAC,GAAA,CAAAH,GAAA,EAAAC,GAAA;QACF;QACA,OAAOC,IAAA,CAAKC,GAAA,CAAIb,WAAA,KAAgB,OAAO,IAAIA,WAAA,EAAaM,OAAA,GAAU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B,YAAa,CAAAG,MAAA,OAAAtB,IAAA,CAAAC,GAAA,IAAAkB,YAAA,IAAAF,YAAA;QACf,IAAAM,UAAa,GAAE7B,OAAI,KAAAuB,YAAA,GAAAA,YAAA,OAAAvB,OAAA;QACnB,OAAO,OAAMW,YAAA,gBAAAA,YAAA,GAAAkB,UAAA,GAAAA,UAAA;MACX;MAAsB,OACxB;IAAA,GACF,CACFZ,UAAW,EAEXL,WAAO,EACTD,YAAA,CACF","ignoreList":[]}
1
+ {"version":3,"file":"useStackedZIndex.native.js","names":[],"sources":["cjs/useStackedZIndex.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 useStackedZIndex_exports = {};\n__export(useStackedZIndex_exports, {\n useStackedZIndex: () => useStackedZIndex\n});\nmodule.exports = __toCommonJS(useStackedZIndex_exports);\nvar import_react = require(\"react\");\nvar import_context = require(\"./context\");\nvar ZIndicesByContext = {};\nvar CurrentPortalZIndices = {};\nvar useStackedZIndex = function(props) {\n if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {\n var { stackZIndex, zIndex: zIndexProp } = props;\n var id = (0, import_react.useId)();\n var zIndex = (0, import_react.useMemo)(function() {\n if (stackZIndex && stackZIndex !== \"global\" && zIndexProp === void 0) {\n var highest = Object.values(CurrentPortalZIndices).reduce(function(acc, cur) {\n return Math.max(acc, cur);\n }, 0);\n return Math.max(stackZIndex === true ? 1 : stackZIndex, highest + 1);\n }\n return zIndexProp !== null && zIndexProp !== void 0 ? zIndexProp : 1e3;\n }, [\n stackZIndex\n ]);\n (0, import_react.useEffect)(function() {\n if (typeof stackZIndex === \"number\") {\n CurrentPortalZIndices[id] = stackZIndex;\n return function() {\n delete CurrentPortalZIndices[id];\n };\n }\n }, [\n stackZIndex\n ]);\n return zIndex;\n } else {\n var _ZIndicesByContext, _stackLayer;\n var { stackZIndex: stackZIndex1, zIndex: zIndexProp1 } = props;\n var id1 = (0, import_react.useId)();\n var stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext);\n var stackLayer = stackZIndex1 === \"global\" ? 0 : stackingContextLevel;\n var hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);\n (_ZIndicesByContext = ZIndicesByContext)[_stackLayer = stackLayer] || (_ZIndicesByContext[_stackLayer] = {});\n var stackContext = ZIndicesByContext[stackLayer];\n var zIndex1 = (0, import_react.useMemo)(function() {\n if (typeof zIndexProp1 === \"number\") {\n return zIndexProp1;\n }\n if (stackZIndex1) {\n if (hardcoded) {\n return hardcoded + 1;\n }\n var entries = Object.values(stackContext);\n var baseForLayer = stackLayer * 5e3;\n var nextLayerBase = (stackLayer + 1) * 5e3;\n var validEntries = entries.filter(function(z) {\n return z < nextLayerBase;\n });\n var highest = validEntries.length > 0 ? Math.max(...validEntries) : baseForLayer;\n var nextZIndex = highest === baseForLayer ? baseForLayer + 1 : highest + 1;\n return typeof stackZIndex1 === \"number\" ? stackZIndex1 + nextZIndex : nextZIndex;\n }\n return 1;\n }, [\n stackLayer,\n zIndexProp1,\n stackZIndex1\n ]);\n (0, import_react.useEffect)(function() {\n if (stackZIndex1) {\n stackContext[id1] = zIndex1;\n return function() {\n delete stackContext[id1];\n };\n }\n }, [\n zIndex1\n ]);\n return zIndex1;\n }\n};\n//# sourceMappingURL=useStackedZIndex.js.map\n"],"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Aa,WAAW,WAAW;GACrC,IAAI,cAAc;IAChB,aAAa,OAAO;IACpB,OAAO,WAAW;KAChB,OAAO,aAAa;IACtB;GACF;EACF,GAAG,CACD,OACF,CAAC;EACD,OAAO;CACT;AACF"}
@@ -1,22 +1,21 @@
1
1
  import { useContext } from "react";
2
2
  import { ZIndexHardcodedContext, ZIndexStackContext } from "./context.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
- const StackZIndexContext = ({
5
- children,
6
- zIndex
7
- }) => {
8
- const existing = useContext(ZIndexStackContext);
9
- let content = /* @__PURE__ */jsx(ZIndexStackContext.Provider, {
10
- value: existing + 1,
11
- children
12
- });
13
- if (typeof zIndex !== "undefined") {
14
- content = /* @__PURE__ */jsx(ZIndexHardcodedContext.Provider, {
15
- value: zIndex,
16
- children: content
17
- });
18
- }
19
- return content;
4
+
5
+ const StackZIndexContext = ({ children, zIndex }) => {
6
+ const existing = useContext(ZIndexStackContext);
7
+ let content = /* @__PURE__ */ jsx(ZIndexStackContext.Provider, {
8
+ value: existing + 1,
9
+ children
10
+ });
11
+ if (typeof zIndex !== "undefined") {
12
+ content = /* @__PURE__ */ jsx(ZIndexHardcodedContext.Provider, {
13
+ value: zIndex,
14
+ children: content
15
+ });
16
+ }
17
+ return content;
20
18
  };
19
+
21
20
  export { StackZIndexContext };
22
21
  //# sourceMappingURL=StackZIndex.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["useContext","ZIndexHardcodedContext","ZIndexStackContext","jsx","StackZIndexContext","children","zIndex","existing","content","Provider","value"],"sources":["../../src/StackZIndex.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAA,QAAkB;AAC3B,SAASC,sBAAA,EAAwBC,kBAAA,QAA0B;AAYvD,SAAAC,GAAA;AAVG,MAAMC,kBAAA,GAAqBA,CAAC;EACjCC,QAAA;EACAC;AACF,MAGM;EACJ,MAAMC,QAAA,GAAWP,UAAA,CAAWE,kBAAkB;EAE9C,IAAIM,OAAA,GACF,eAAAL,GAAA,CAACD,kBAAA,CAAmBO,QAAA,EAAnB;IAA4BC,KAAA,EAAOH,QAAA,GAAW;IAC5CF;EAAA,CACH;EAGF,IAAI,OAAOC,MAAA,KAAW,aAAa;IACjCE,OAAA,GACE,eAAAL,GAAA,CAACF,sBAAA,CAAuBQ,QAAA,EAAvB;MAAgCC,KAAA,EAAOJ,MAAA;MACrCD,QAAA,EAAAG;IAAA,CACH;EAEJ;EAEA,OAAOA,OAAA;AACT","ignoreList":[]}
1
+ {"version":3,"file":"StackZIndex.js","names":[],"sources":["esm/StackZIndex.js"],"sourcesContent":["import { useContext } from \"react\";\nimport { ZIndexHardcodedContext, ZIndexStackContext } from \"./context\";\nimport { jsx } from \"react/jsx-runtime\";\nconst StackZIndexContext = ({\n children,\n zIndex\n}) => {\n const existing = useContext(ZIndexStackContext);\n let content = /* @__PURE__ */ jsx(ZIndexStackContext.Provider, { value: existing + 1, children });\n if (typeof zIndex !== \"undefined\") {\n content = /* @__PURE__ */ jsx(ZIndexHardcodedContext.Provider, { value: zIndex, children: content });\n }\n return content;\n};\nexport {\n StackZIndexContext\n};\n//# sourceMappingURL=StackZIndex.js.map\n"],"mappings":";;;;;AAGA,MAAM,sBAAsB,EAC1B,UACA,aACI;CACJ,MAAM,WAAW,WAAW,kBAAkB;CAC9C,IAAI,UAA0B,oBAAI,mBAAmB,UAAU;EAAE,OAAO,WAAW;EAAG;CAAS,CAAC;CAChG,IAAI,OAAO,WAAW,aAAa;EACjC,UAA0B,oBAAI,uBAAuB,UAAU;GAAE,OAAO;GAAQ,UAAU;EAAQ,CAAC;CACrG;CACA,OAAO;AACT"}
@@ -1,23 +1,22 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useContext } from "react";
3
3
  import { ZIndexHardcodedContext, ZIndexStackContext } from "./context.native.js";
4
- var StackZIndexContext = function (param) {
5
- var {
6
- children,
7
- zIndex
8
- } = param;
9
- var existing = useContext(ZIndexStackContext);
10
- var content = /* @__PURE__ */_jsx(ZIndexStackContext.Provider, {
11
- value: existing + 1,
12
- children
13
- });
14
- if (typeof zIndex !== "undefined") {
15
- content = /* @__PURE__ */_jsx(ZIndexHardcodedContext.Provider, {
16
- value: zIndex,
17
- children: content
18
- });
19
- }
20
- return content;
4
+
5
+ var StackZIndexContext = function(param) {
6
+ var { children, zIndex } = param;
7
+ var existing = useContext(ZIndexStackContext);
8
+ var content = /* @__PURE__ */ jsx(ZIndexStackContext.Provider, {
9
+ value: existing + 1,
10
+ children
11
+ });
12
+ if (typeof zIndex !== "undefined") {
13
+ content = /* @__PURE__ */ jsx(ZIndexHardcodedContext.Provider, {
14
+ value: zIndex,
15
+ children: content
16
+ });
17
+ }
18
+ return content;
21
19
  };
20
+
22
21
  export { StackZIndexContext };
23
22
  //# sourceMappingURL=StackZIndex.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["jsx","_jsx","useContext","ZIndexHardcodedContext","ZIndexStackContext","StackZIndexContext","param","children","zIndex","existing","content","Provider","value"],"sources":["../../src/StackZIndex.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAAC,IAAA,QAAkB;AAC3B,SAASC,UAAA,eAAwB;AAY7B,SAAAC,sBAAA,EAAAC,kBAAA;AAVG,IAAAC,kBAAM,YAAAA,CAAsBC,KAAA;EACjC;IAAAC,QAAA;IAAAC;EAAA,IAAAF,KAAA;EACA,IAAAG,QAAA,GAAAP,UAAA,CAAAE,kBAAA;EACF,IAGMM,OAAA,kBAAAT,IAAA,CAAAG,kBAAA,CAAAO,QAAA;IACJC,KAAM,EAAAH,QAAW;IAEjBF;EAMA;EACE,WAAAC,MACE,gBAAC;IAILE,OAAA,kBAAAT,IAAA,CAAAE,sBAAA,CAAAQ,QAAA;MAEAC,KAAO,EAAAJ,MAAA;MACTD,QAAA,EAAAG","ignoreList":[]}
1
+ {"version":3,"file":"StackZIndex.native.js","names":[],"sources":["esm/StackZIndex.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useContext } from \"react\";\nimport { ZIndexHardcodedContext, ZIndexStackContext } from \"./context\";\nvar StackZIndexContext = function(param) {\n var { children, zIndex } = param;\n var existing = useContext(ZIndexStackContext);\n var content = /* @__PURE__ */ _jsx(ZIndexStackContext.Provider, {\n value: existing + 1,\n children\n });\n if (typeof zIndex !== \"undefined\") {\n content = /* @__PURE__ */ _jsx(ZIndexHardcodedContext.Provider, {\n value: zIndex,\n children: content\n });\n }\n return content;\n};\nexport {\n StackZIndexContext\n};\n//# sourceMappingURL=StackZIndex.js.map\n"],"mappings":";;;;;AAGA,IAAI,qBAAqB,SAAS,OAAO;CACvC,IAAI,EAAE,UAAU,WAAW;CAC3B,IAAI,WAAW,WAAW,kBAAkB;CAC5C,IAAI,UAA0B,oBAAK,mBAAmB,UAAU;EAC9D,OAAO,WAAW;EAClB;CACF,CAAC;CACD,IAAI,OAAO,WAAW,aAAa;EACjC,UAA0B,oBAAK,uBAAuB,UAAU;GAC9D,OAAO;GACP,UAAU;EACZ,CAAC;CACH;CACA,OAAO;AACT"}
@@ -1,5 +1,7 @@
1
1
  import { createContext } from "react";
2
+
2
3
  const ZIndexStackContext = createContext(1);
3
4
  const ZIndexHardcodedContext = createContext(void 0);
5
+
4
6
  export { ZIndexHardcodedContext, ZIndexStackContext };
5
7
  //# sourceMappingURL=context.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["createContext","ZIndexStackContext","ZIndexHardcodedContext"],"sources":["../../src/context.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAGvB,MAAMC,kBAAA,GAAqBD,aAAA,CAAc,CAAC;AAG1C,MAAME,sBAAA,GAAyBF,aAAA,CAAkC,MAAS","ignoreList":[]}
1
+ {"version":3,"file":"context.js","names":[],"sources":["esm/context.js"],"sourcesContent":["import { createContext } from \"react\";\nconst ZIndexStackContext = createContext(1);\nconst ZIndexHardcodedContext = createContext(void 0);\nexport {\n ZIndexHardcodedContext,\n ZIndexStackContext\n};\n//# sourceMappingURL=context.js.map\n"],"mappings":";;;AACA,MAAM,qBAAqB,cAAc,CAAC;AAC1C,MAAM,yBAAyB,cAAc,KAAK,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { createContext } from "react";
2
+
2
3
  var ZIndexStackContext = createContext(1);
3
4
  var ZIndexHardcodedContext = createContext(void 0);
5
+
4
6
  export { ZIndexHardcodedContext, ZIndexStackContext };
5
7
  //# sourceMappingURL=context.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createContext","ZIndexStackContext","ZIndexHardcodedContext"],"sources":["../../src/context.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAGvB,IAAAC,kBAAM,GAAAD,aAAqB,GAAc;AAGzC,IAAAE,sBAAM,GAAAF,aAAyB,MAAkC","ignoreList":[]}
1
+ {"version":3,"file":"context.native.js","names":[],"sources":["esm/context.native.js"],"sourcesContent":["import { createContext } from \"react\";\nvar ZIndexStackContext = createContext(1);\nvar ZIndexHardcodedContext = createContext(void 0);\nexport {\n ZIndexHardcodedContext,\n ZIndexStackContext\n};\n//# sourceMappingURL=context.js.map\n"],"mappings":";;;AACA,IAAI,qBAAqB,cAAc,CAAC;AACxC,IAAI,yBAAyB,cAAc,KAAK,CAAC"}