@tamagui/z-index-stack 1.135.2 → 1.135.4-1761748186554

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.
@@ -1,35 +1,46 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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);
16
23
  var StackZIndex_exports = {};
17
24
  __export(StackZIndex_exports, {
18
25
  StackZIndexContext: () => StackZIndexContext
19
26
  });
20
27
  module.exports = __toCommonJS(StackZIndex_exports);
21
- var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), import_context = require("./context"), StackZIndexContext = function(param) {
22
- var { children, zIndex } = param, existing = (0, import_react.useContext)(import_context.ZIndexStackContext), content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_context.ZIndexStackContext.Provider, {
23
- value: existing + 1,
24
- children
25
- });
26
- return typeof zIndex < "u" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_context.ZIndexHardcodedContext.Provider, {
27
- value: zIndex,
28
- children: content
29
- })), content;
30
- };
31
- // Annotate the CommonJS export names for ESM import in node:
32
- 0 && (module.exports = {
33
- StackZIndexContext
34
- });
35
- //# sourceMappingURL=StackZIndex.js.map
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
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/StackZIndex.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B,8BAC5B,eAA2B,kBAC3B,iBAA2D,sBAChD,qBAAqB,SAAS,OAAO;AAC5C,MAAI,EAAE,UAAU,OAAO,IAAI,OACvB,eAAW,yBAAW,iCAAkB,GACxC,UAAwB,uCAAAA,KAAK,kCAAmB,UAAU;AAAA,IAC1D,OAAO,WAAW;AAAA,IAClB;AAAA,EACJ,CAAC;AACD,SAAI,OAAO,SAAW,QAClB,UAAwB,uCAAAA,KAAK,sCAAuB,UAAU;AAAA,IAC1D,OAAO;AAAA,IACP,UAAU;AAAA,EACd,CAAC,IAEE;AACX;",
5
- "names": ["_jsx"]
6
- }
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;MACE;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":[]}
@@ -1,28 +1,32 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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);
16
23
  var context_exports = {};
17
24
  __export(context_exports, {
18
25
  ZIndexHardcodedContext: () => ZIndexHardcodedContext,
19
26
  ZIndexStackContext: () => ZIndexStackContext
20
27
  });
21
28
  module.exports = __toCommonJS(context_exports);
22
- var import_react = require("react"), ZIndexStackContext = (0, import_react.createContext)(1), ZIndexHardcodedContext = (0, import_react.createContext)(void 0);
23
- // Annotate the CommonJS export names for ESM import in node:
24
- 0 && (module.exports = {
25
- ZIndexHardcodedContext,
26
- ZIndexStackContext
27
- });
28
- //# sourceMappingURL=context.js.map
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
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/context.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA8B,kBAEnB,yBAAqB,4BAAc,CAAC,GAEpC,6BAAyB,4BAAc,MAAS;",
5
- "names": []
6
- }
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":[]}
@@ -1,24 +1,23 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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);
13
18
  var index_exports = {};
14
19
  module.exports = __toCommonJS(index_exports);
15
- __reExport(index_exports, require("./useStackedZIndex"), module.exports);
16
- __reExport(index_exports, require("./StackZIndex"), module.exports);
17
- __reExport(index_exports, require("./context"), module.exports);
18
- // Annotate the CommonJS export names for ESM import in node:
19
- 0 && (module.exports = {
20
- ...require("./useStackedZIndex"),
21
- ...require("./StackZIndex"),
22
- ...require("./context")
23
- });
24
- //# sourceMappingURL=index.js.map
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
@@ -1,6 +1 @@
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
- }
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":[]}
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
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
+ });
10
12
  return to;
11
13
  };
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
14
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
+ value: !0
16
+ }), mod);
13
17
  var types_exports = {};
14
18
  module.exports = __toCommonJS(types_exports);
15
- //# sourceMappingURL=types.js.map
19
+ //# sourceMappingURL=types.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/types.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;",
5
- "names": []
6
- }
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":[]}
@@ -1,76 +1,85 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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);
16
23
  var useStackedZIndex_exports = {};
17
24
  __export(useStackedZIndex_exports, {
18
25
  useStackedZIndex: () => useStackedZIndex
19
26
  });
20
27
  module.exports = __toCommonJS(useStackedZIndex_exports);
21
- var import_react = require("react"), import_context = require("./context"), ZIndicesByContext = {}, CurrentPortalZIndices = {}, useStackedZIndex = function(props) {
22
- if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
23
- var { stackZIndex, zIndex: zIndexProp } = props, id = (0, import_react.useId)(), zIndex = (0, import_react.useMemo)(function() {
24
- if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
25
- var highest = Object.values(CurrentPortalZIndices).reduce(function(acc, cur) {
26
- return Math.max(acc, cur);
27
- }, 0);
28
- return Math.max(stackZIndex === !0 ? 1 : stackZIndex, highest + 1);
29
- }
30
- return zIndexProp ?? 1e3;
31
- }, [
32
- stackZIndex
33
- ]);
34
- return (0, import_react.useEffect)(function() {
35
- if (typeof stackZIndex == "number")
36
- return CurrentPortalZIndices[id] = stackZIndex, function() {
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 () {
37
50
  delete CurrentPortalZIndices[id];
38
51
  };
39
- }, [
40
- stackZIndex
41
- ]), zIndex;
42
- } else {
43
- var _ZIndicesByContext, _stackLayer, { stackZIndex: stackZIndex1, zIndex: zIndexProp1 } = props, id1 = (0, import_react.useId)(), stackingContextLevel = (0, import_react.useContext)(import_context.ZIndexStackContext), stackLayer = stackZIndex1 === "global" ? 0 : stackingContextLevel, hardcoded = (0, import_react.useContext)(import_context.ZIndexHardcodedContext);
44
- (_ZIndicesByContext = ZIndicesByContext)[_stackLayer = stackLayer] || (_ZIndicesByContext[_stackLayer] = {});
45
- var stackContext = ZIndicesByContext[stackLayer], zIndex1 = (0, import_react.useMemo)(function() {
46
- if (typeof zIndexProp1 == "number")
47
- return zIndexProp1;
48
- if (stackZIndex1) {
49
- if (hardcoded)
50
- return hardcoded + 1;
51
- var highest = Object.values(stackContext).reduce(function(acc, cur) {
52
- return Math.max(acc, cur);
53
- }, 0), found = stackLayer * 5e3 + highest + 1;
54
- return typeof stackZIndex1 == "number" ? stackZIndex1 + found : found;
55
- }
56
- return 1;
57
- }, [
58
- stackLayer,
59
- zIndexProp1,
60
- stackZIndex1
61
- ]);
62
- return (0, import_react.useEffect)(function() {
63
- if (stackZIndex1)
64
- return stackContext[id1] = zIndex1, function() {
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 highest = Object.values(stackContext).reduce(function (acc, cur) {
71
+ return Math.max(acc, cur);
72
+ }, 0),
73
+ found = stackLayer * 5e3 + highest + 1;
74
+ return typeof stackZIndex1 == "number" ? stackZIndex1 + found : found;
75
+ }
76
+ return 1;
77
+ }, [stackLayer, zIndexProp1, stackZIndex1]);
78
+ return (0, import_react.useEffect)(function () {
79
+ if (stackZIndex1) return stackContext[id1] = zIndex1, function () {
65
80
  delete stackContext[id1];
66
81
  };
67
- }, [
68
- zIndex1
69
- ]), zIndex1;
70
- }
71
- };
72
- // Annotate the CommonJS export names for ESM import in node:
73
- 0 && (module.exports = {
74
- useStackedZIndex
75
- });
76
- //# sourceMappingURL=useStackedZIndex.js.map
82
+ }, [zIndex1]), zIndex1;
83
+ }
84
+ };
85
+ //# sourceMappingURL=useStackedZIndex.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useStackedZIndex.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsD,kBACtD,iBAA2D,sBAEvD,oBAAoB,CAAC,GAErB,wBAAwB,CAAC,GAClB,mBAAmB,SAAS,OAAO;AAC1C,MAAI,QAAQ,IAAI,8BAA8B;AAC1C,QAAI,EAAE,aAAa,QAAQ,WAAW,IAAI,OACtC,SAAK,oBAAM,GACX,aAAS,sBAAQ,WAAW;AAC5B,UAAI,eAAe,gBAAgB,YAAY,eAAe,QAAW;AACrE,YAAI,UAAU,OAAO,OAAO,qBAAqB,EAAE,OAAO,SAAS,KAAK,KAAK;AACzE,iBAAO,KAAK,IAAI,KAAK,GAAG;AAAA,QAC5B,GAAG,CAAC;AACJ,eAAO,KAAK,IAAI,gBAAgB,KAAO,IAAI,aAAa,UAAU,CAAC;AAAA,MACvE;AACA,aAAO,cAA4D;AAAA,IACvE,GAAG;AAAA,MACC;AAAA,IACJ,CAAC;AACD,uCAAU,WAAW;AACjB,UAAI,OAAO,eAAgB;AACvB,qCAAsB,EAAE,IAAI,aACrB,WAAW;AACd,iBAAO,sBAAsB,EAAE;AAAA,QACnC;AAAA,IAER,GAAG;AAAA,MACC;AAAA,IACJ,CAAC,GACM;AAAA,EACX,OAAO;AACH,QAAI,oBAAoB,aACpB,EAAE,aAAa,cAAc,QAAQ,YAAY,IAAI,OACrD,UAAM,oBAAM,GACZ,2BAAuB,yBAAW,iCAAkB,GACpD,aAAa,iBAAiB,WAAW,IAAI,sBAC7C,gBAAY,yBAAW,qCAAsB;AACjD,KAAC,qBAAqB,mBAAmB,cAAc,UAAU,MAAM,mBAAmB,WAAW,IAAI,CAAC;AAC1G,QAAI,eAAe,kBAAkB,UAAU,GAC3C,cAAU,sBAAQ,WAAW;AAC7B,UAAI,OAAO,eAAgB;AACvB,eAAO;AAEX,UAAI,cAAc;AACd,YAAI;AACA,iBAAO,YAAY;AAEvB,YAAI,UAAU,OAAO,OAAO,YAAY,EAAE,OAAO,SAAS,KAAK,KAAK;AAChE,iBAAO,KAAK,IAAI,KAAK,GAAG;AAAA,QAC5B,GAAG,CAAC,GAEA,QAAQ,aAAa,MAAO,UAAU;AAE1C,eAAO,OAAO,gBAAiB,WAAW,eAAe,QAAQ;AAAA,MACrE;AACA,aAAO;AAAA,IACX,GAAG;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,IACJ,CAAC;AACD,uCAAU,WAAW;AACjB,UAAI;AACA,4BAAa,GAAG,IAAI,SACb,WAAW;AACd,iBAAO,aAAa,GAAG;AAAA,QAC3B;AAAA,IAER,GAAG;AAAA,MACC;AAAA,IACJ,CAAC,GACM;AAAA,EACX;AACJ;",
5
- "names": []
6
- }
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","found"],"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;UACF,OAAAJ,UAAA;QACA,IACFF,WAAI,CAEJ;MACE,OAAI,IAAAT,YAAO,CAAAuB,SAAgB;QACzB,WAAAd,WAAA,YAAwB,EAEtB,OAAAL,qBAAO,CAAAQ,EAAsB,IAAEH,WAAA;UACjC,OAAAL,qBAAA,CAAAQ,EAAA;QAEA;MAGN,IACEH,WAAQ,CAMR,GAAAC,MAAA;IACA;MAGE,IAAAc,kBAAW;QAAAC,WAAe;QAAA;UAAAhB,WAAA,EAAAiB,YAAA;UAAAhB,MAAA,EAAAiB;QAAA,IAAAtB,KAAA;QAAAuB,GAAA,OAAA5B,YAAA,CAAAa,KAAA;QAAAgB,oBAAA,OAAA7B,YAAA,CAAA8B,UAAA,EAAA5B,cAAA,CAAA6B,kBAAA;QAAAC,UAAA,GAAAN,YAAA,oBAAAG,oBAAA;QAAAI,SAAA,OAAAjC,YAAA,CAAA8B,UAAA,EAAA5B,cAAA,CAAAgC,sBAAA;MACxB,CAAAV,kBAAO,GAAArB,iBAAA,EAAAsB,WAAA,GAAAO,UAAA,MAAAR,kBAAA,CAAAC,WAAA;MAGT,IAAAU,YAAI,GAAahC,iBAAA,CAAA6B,UAAA;QAAAI,OAAA,OAAApC,YAAA,CAAAc,OAAA;UACf,WAAIa,WAAA,cACF,OAAAA,WAAO;UAGT,IAAAD,YAAM,EAAU;YAA4B,IACzCO,SAAK,EACN,OAAAA,SAAA;YACF,IAGMlB,OAAQ,GAAAC,MAAA,CAAAC,MAAa,CAAAkB,YAAiB,EAAAjB,MAAA,WAAAC,GAAA,EAAAC,GAAA;gBAG5C,OAAOC,IAAA,CAAOC,GAAA,CAAAH,GAAA,EAAAC,GAAA;cAChB;cAAAiB,KAAA,GAAAL,UAAA,SAAAjB,OAAA;YAEA,OAAO,OAAAW,YAAA,eAAAA,YAAA,GAAAW,KAAA,GAAAA,KAAA;UACT;UAEA;QACE,IACEL,UAAA,EAEEL,WAAO,EAAeD,YACxB,CAEJ;MAGF,WAAA1B,YAAA,CAAAuB,SAAA;QACF,IAAAG,YAAA,E","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/z-index-stack",
3
- "version": "1.135.2",
3
+ "version": "1.135.4-1761748186554",
4
+ "type": "module",
4
5
  "source": "src/index.ts",
5
6
  "types": "./types/index.d.ts",
6
7
  "main": "dist/cjs",
@@ -32,7 +33,7 @@
32
33
  }
33
34
  },
34
35
  "devDependencies": {
35
- "@tamagui/build": "1.135.2",
36
+ "@tamagui/build": "1.135.4-1761748186554",
36
37
  "react": "*"
37
38
  },
38
39
  "peerDependencies": {