@tamagui/portal 1.125.2 → 1.125.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/portal",
3
- "version": "1.125.2",
3
+ "version": "1.125.4",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -32,16 +32,16 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@tamagui/constants": "1.125.2",
36
- "@tamagui/core": "1.125.2",
37
- "@tamagui/stacks": "1.125.2",
38
- "@tamagui/start-transition": "1.125.2",
39
- "@tamagui/use-did-finish-ssr": "1.125.2",
40
- "@tamagui/use-event": "1.125.2",
41
- "@tamagui/z-index-stack": "1.125.2"
35
+ "@tamagui/constants": "1.125.4",
36
+ "@tamagui/core": "1.125.4",
37
+ "@tamagui/stacks": "1.125.4",
38
+ "@tamagui/start-transition": "1.125.4",
39
+ "@tamagui/use-did-finish-ssr": "1.125.4",
40
+ "@tamagui/use-event": "1.125.4",
41
+ "@tamagui/z-index-stack": "1.125.4"
42
42
  },
43
43
  "devDependencies": {
44
- "@tamagui/build": "1.125.2",
44
+ "@tamagui/build": "1.125.4",
45
45
  "@types/react-dom": "^19.0.3",
46
46
  "react-native": "^0.76.5"
47
47
  },
@@ -1,46 +0,0 @@
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
- const CurrentPortalZIndices = {},
28
- useStackedZIndex = props => {
29
- const {
30
- stackZIndex,
31
- zIndex: zIndexProp = 1e3
32
- } = props,
33
- id = (0, import_react.useId)(),
34
- zIndex = (0, import_react.useMemo)(() => {
35
- if (stackZIndex) {
36
- const highest = Object.values(CurrentPortalZIndices).reduce((acc, cur) => Math.max(acc, cur), 0);
37
- return Math.max(stackZIndex, highest + 1);
38
- }
39
- if (zIndexProp) return zIndexProp;
40
- }, [stackZIndex]);
41
- return (0, import_react.useEffect)(() => {
42
- if (typeof stackZIndex == "number") return CurrentPortalZIndices[id] = stackZIndex, () => {
43
- delete CurrentPortalZIndices[id];
44
- };
45
- }, [stackZIndex]), zIndex;
46
- };
@@ -1,40 +0,0 @@
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");
21
- const CurrentPortalZIndices = {}, useStackedZIndex = (props) => {
22
- const { stackZIndex, zIndex: zIndexProp = 1e3 } = props, id = (0, import_react.useId)(), zIndex = (0, import_react.useMemo)(() => {
23
- if (stackZIndex) {
24
- const highest = Object.values(CurrentPortalZIndices).reduce(
25
- (acc, cur) => Math.max(acc, cur),
26
- 0
27
- );
28
- return Math.max(stackZIndex, highest + 1);
29
- }
30
- if (zIndexProp)
31
- return zIndexProp;
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
- };
40
- //# sourceMappingURL=useStackedZIndex.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useStackedZIndex.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0C;AAG1C,MAAM,wBAAgD,CAAC,GAE1C,mBAAmB,CAAC,UAAuD;AACtF,QAAM,EAAE,aAAa,QAAQ,aAAa,IAAK,IAAI,OAC7C,SAAK,oBAAM,GAEX,aAAS,sBAAQ,MAAM;AAC3B,QAAI,aAAa;AACf,YAAM,UAAU,OAAO,OAAO,qBAAqB,EAAE;AAAA,QACnD,CAAC,KAAK,QAAQ,KAAK,IAAI,KAAK,GAAG;AAAA,QAC/B;AAAA,MACF;AACA,aAAO,KAAK,IAAI,aAAa,UAAU,CAAC;AAAA,IAC1C;AACA,QAAI;AACF,aAAO;AAAA,EAEX,GAAG,CAAC,WAAW,CAAC;AAEhB,qCAAU,MAAM;AACd,QAAI,OAAO,eAAgB;AACzB,mCAAsB,EAAE,IAAI,aACrB,MAAM;AACX,eAAO,sBAAsB,EAAE;AAAA,MACjC;AAAA,EAEJ,GAAG,CAAC,WAAW,CAAC,GAET;AACT;",
5
- "names": []
6
- }
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
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);
16
- var useStackedZIndex_exports = {};
17
- __export(useStackedZIndex_exports, {
18
- useStackedZIndex: () => useStackedZIndex
19
- });
20
- module.exports = __toCommonJS(useStackedZIndex_exports);
21
- var import_react = require("react"), CurrentPortalZIndices = {}, useStackedZIndex = function(props) {
22
- var { stackZIndex, zIndex: zIndexProp = 1e3 } = props, id = (0, import_react.useId)(), zIndex = (0, import_react.useMemo)(function() {
23
- if (stackZIndex) {
24
- var highest = Object.values(CurrentPortalZIndices).reduce(function(acc, cur) {
25
- return Math.max(acc, cur);
26
- }, 0);
27
- return Math.max(stackZIndex, highest + 1);
28
- }
29
- if (zIndexProp)
30
- return zIndexProp;
31
- }, [
32
- stackZIndex
33
- ]);
34
- return (0, import_react.useEffect)(function() {
35
- if (typeof stackZIndex == "number")
36
- return CurrentPortalZIndices[id] = stackZIndex, function() {
37
- delete CurrentPortalZIndices[id];
38
- };
39
- }, [
40
- stackZIndex
41
- ]), zIndex;
42
- };
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- useStackedZIndex
46
- });
47
- //# sourceMappingURL=useStackedZIndex.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/ui/portal/src/useStackedZIndex.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;mBAA0C,kBAGpCA,wBAAgD,CAAC,GAE1CC,mBAAmB,SAACC,OAAAA;AAC/B,MAAM,EAAEC,aAAaC,QAAQC,aAAa,IAAI,IAAKH,OAC7CI,SAAKC,oBAAAA,GAELH,aAASI,sBAAQ,WAAA;AACrB,QAAIL,aAAa;AACf,UAAMM,UAAUC,OAAOC,OAAOX,qBAAAA,EAAuBY,OACnD,SAACC,KAAKC,KAAAA;eAAQC,KAAKC,IAAIH,KAAKC,GAAAA;SAC5B,CAAA;AAEF,aAAOC,KAAKC,IAAIb,aAAaM,UAAU,CAAA;IACzC;AACA,QAAIJ;AACF,aAAOA;EAEX,GAAG;IAACF;GAAY;AAEhBc,qCAAU,WAAA;AACR,QAAI,OAAOd,eAAgB;AACzBH,mCAAsBM,EAAAA,IAAMH,aACrB,WAAA;AACL,eAAOH,sBAAsBM,EAAAA;MAC/B;EAEJ,GAAG;IAACH;GAAY,GAETC;AACT;",
5
- "names": ["CurrentPortalZIndices", "useStackedZIndex", "props", "stackZIndex", "zIndex", "zIndexProp", "id", "useId", "useMemo", "highest", "Object", "values", "reduce", "acc", "cur", "Math", "max", "useEffect"]
6
- }
@@ -1,24 +0,0 @@
1
- import { useEffect, useId, useMemo } from "react";
2
- const CurrentPortalZIndices = {}, useStackedZIndex = (props) => {
3
- const { stackZIndex, zIndex: zIndexProp = 1e3 } = props, id = useId(), zIndex = useMemo(() => {
4
- if (stackZIndex) {
5
- const highest = Object.values(CurrentPortalZIndices).reduce(
6
- (acc, cur) => Math.max(acc, cur),
7
- 0
8
- );
9
- return Math.max(stackZIndex, highest + 1);
10
- }
11
- if (zIndexProp)
12
- return zIndexProp;
13
- }, [stackZIndex]);
14
- return useEffect(() => {
15
- if (typeof stackZIndex == "number")
16
- return CurrentPortalZIndices[id] = stackZIndex, () => {
17
- delete CurrentPortalZIndices[id];
18
- };
19
- }, [stackZIndex]), zIndex;
20
- };
21
- export {
22
- useStackedZIndex
23
- };
24
- //# sourceMappingURL=useStackedZIndex.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useStackedZIndex.tsx"],
4
- "mappings": "AAAA,SAAS,WAAW,OAAO,eAAe;AAG1C,MAAM,wBAAgD,CAAC,GAE1C,mBAAmB,CAAC,UAAuD;AACtF,QAAM,EAAE,aAAa,QAAQ,aAAa,IAAK,IAAI,OAC7C,KAAK,MAAM,GAEX,SAAS,QAAQ,MAAM;AAC3B,QAAI,aAAa;AACf,YAAM,UAAU,OAAO,OAAO,qBAAqB,EAAE;AAAA,QACnD,CAAC,KAAK,QAAQ,KAAK,IAAI,KAAK,GAAG;AAAA,QAC/B;AAAA,MACF;AACA,aAAO,KAAK,IAAI,aAAa,UAAU,CAAC;AAAA,IAC1C;AACA,QAAI;AACF,aAAO;AAAA,EAEX,GAAG,CAAC,WAAW,CAAC;AAEhB,mBAAU,MAAM;AACd,QAAI,OAAO,eAAgB;AACzB,mCAAsB,EAAE,IAAI,aACrB,MAAM;AACX,eAAO,sBAAsB,EAAE;AAAA,MACjC;AAAA,EAEJ,GAAG,CAAC,WAAW,CAAC,GAET;AACT;",
5
- "names": []
6
- }
@@ -1,23 +0,0 @@
1
- import { useEffect, useId, useMemo } from "react";
2
- const CurrentPortalZIndices = {},
3
- useStackedZIndex = props => {
4
- const {
5
- stackZIndex,
6
- zIndex: zIndexProp = 1e3
7
- } = props,
8
- id = useId(),
9
- zIndex = useMemo(() => {
10
- if (stackZIndex) {
11
- const highest = Object.values(CurrentPortalZIndices).reduce((acc, cur) => Math.max(acc, cur), 0);
12
- return Math.max(stackZIndex, highest + 1);
13
- }
14
- if (zIndexProp) return zIndexProp;
15
- }, [stackZIndex]);
16
- return useEffect(() => {
17
- if (typeof stackZIndex == "number") return CurrentPortalZIndices[id] = stackZIndex, () => {
18
- delete CurrentPortalZIndices[id];
19
- };
20
- }, [stackZIndex]), zIndex;
21
- };
22
- export { useStackedZIndex };
23
- //# sourceMappingURL=useStackedZIndex.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useEffect","useId","useMemo","CurrentPortalZIndices","useStackedZIndex","props","stackZIndex","zIndex","zIndexProp","id","highest","Object","values","reduce","acc","cur","Math","max"],"sources":["../../src/useStackedZIndex.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,EAAWC,KAAA,EAAOC,OAAA,QAAe;AAG1C,MAAMC,qBAAA,GAAgD,CAAC;EAE1CC,gBAAA,GAAoBC,KAAA,IAAuD;IACtF,MAAM;QAAEC,WAAA;QAAaC,MAAA,EAAQC,UAAA,GAAa;MAAK,IAAIH,KAAA;MAC7CI,EAAA,GAAKR,KAAA,CAAM;MAEXM,MAAA,GAASL,OAAA,CAAQ,MAAM;QAC3B,IAAII,WAAA,EAAa;UACf,MAAMI,OAAA,GAAUC,MAAA,CAAOC,MAAA,CAAOT,qBAAqB,EAAEU,MAAA,CACnD,CAACC,GAAA,EAAKC,GAAA,KAAQC,IAAA,CAAKC,GAAA,CAAIH,GAAA,EAAKC,GAAG,GAC/B,CACF;UACA,OAAOC,IAAA,CAAKC,GAAA,CAAIX,WAAA,EAAaI,OAAA,GAAU,CAAC;QAC1C;QACA,IAAIF,UAAA,EACF,OAAOA,UAAA;MAEX,GAAG,CAACF,WAAW,CAAC;IAEhB,OAAAN,SAAA,CAAU,MAAM;MACd,IAAI,OAAOM,WAAA,IAAgB,UACzB,OAAAH,qBAAA,CAAsBM,EAAE,IAAIH,WAAA,EACrB,MAAM;QACX,OAAOH,qBAAA,CAAsBM,EAAE;MACjC;IAEJ,GAAG,CAACH,WAAW,CAAC,GAETC,MAAA;EACT","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- import { useEffect, useId, useMemo } from "react";
2
- var CurrentPortalZIndices = {}, useStackedZIndex = function(props) {
3
- var { stackZIndex, zIndex: zIndexProp = 1e3 } = props, id = useId(), zIndex = useMemo(function() {
4
- if (stackZIndex) {
5
- var highest = Object.values(CurrentPortalZIndices).reduce(function(acc, cur) {
6
- return Math.max(acc, cur);
7
- }, 0);
8
- return Math.max(stackZIndex, highest + 1);
9
- }
10
- if (zIndexProp)
11
- return zIndexProp;
12
- }, [
13
- stackZIndex
14
- ]);
15
- return useEffect(function() {
16
- if (typeof stackZIndex == "number")
17
- return CurrentPortalZIndices[id] = stackZIndex, function() {
18
- delete CurrentPortalZIndices[id];
19
- };
20
- }, [
21
- stackZIndex
22
- ]), zIndex;
23
- };
24
- export {
25
- useStackedZIndex
26
- };
27
- //# sourceMappingURL=useStackedZIndex.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/ui/portal/src/useStackedZIndex.tsx"],
4
- "mappings": "AAAA,SAASA,WAAWC,OAAOC,eAAe;AAG1C,IAAMC,wBAAgD,CAAC,GAE1CC,mBAAmB,SAACC,OAAAA;AAC/B,MAAM,EAAEC,aAAaC,QAAQC,aAAa,IAAI,IAAKH,OAC7CI,KAAKR,MAAAA,GAELM,SAASL,QAAQ,WAAA;AACrB,QAAII,aAAa;AACf,UAAMI,UAAUC,OAAOC,OAAOT,qBAAAA,EAAuBU,OACnD,SAACC,KAAKC,KAAAA;eAAQC,KAAKC,IAAIH,KAAKC,GAAAA;SAC5B,CAAA;AAEF,aAAOC,KAAKC,IAAIX,aAAaI,UAAU,CAAA;IACzC;AACA,QAAIF;AACF,aAAOA;EAEX,GAAG;IAACF;GAAY;AAEhBN,mBAAU,WAAA;AACR,QAAI,OAAOM,eAAgB;AACzBH,mCAAsBM,EAAAA,IAAMH,aACrB,WAAA;AACL,eAAOH,sBAAsBM,EAAAA;MAC/B;EAEJ,GAAG;IAACH;GAAY,GAETC;AACT;",
5
- "names": ["useEffect", "useId", "useMemo", "CurrentPortalZIndices", "useStackedZIndex", "props", "stackZIndex", "zIndex", "zIndexProp", "id", "highest", "Object", "values", "reduce", "acc", "cur", "Math", "max"]
6
- }