tamagui 1.123.0 → 1.123.2
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/dist/cjs/setup.cjs +1 -1
- package/dist/cjs/setup.js +1 -1
- package/dist/cjs/setup.js.map +1 -1
- package/dist/cjs/setup.native.js +1 -1
- package/dist/cjs/setup.native.js.map +2 -2
- package/dist/esm/setup.js +1 -1
- package/dist/esm/setup.js.map +1 -1
- package/dist/esm/setup.mjs +1 -1
- package/dist/esm/setup.mjs.map +1 -1
- package/dist/esm/setup.native.js +1 -1
- package/dist/esm/setup.native.js.map +2 -2
- package/dist/jsx/setup.js +1 -1
- package/dist/jsx/setup.js.map +1 -1
- package/dist/jsx/setup.mjs +1 -1
- package/dist/jsx/setup.mjs.map +1 -1
- package/dist/jsx/setup.native.js +1 -1
- package/dist/jsx/setup.native.js.map +2 -2
- package/dist/native.js +71 -67
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +71 -67
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
- package/src/setup.ts +2 -1
package/dist/cjs/setup.cjs
CHANGED
|
@@ -23,4 +23,4 @@ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
|
23
23
|
var import_polyfill_dev = require("@tamagui/polyfill-dev"),
|
|
24
24
|
React = __toESM(require("react"));
|
|
25
25
|
globalThis.React ||= React;
|
|
26
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
26
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
package/dist/cjs/setup.js
CHANGED
|
@@ -19,5 +19,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
19
19
|
));
|
|
20
20
|
var import_polyfill_dev = require("@tamagui/polyfill-dev"), React = __toESM(require("react"));
|
|
21
21
|
globalThis.React ||= React;
|
|
22
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
22
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
23
23
|
//# sourceMappingURL=setup.js.map
|
package/dist/cjs/setup.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/setup.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA,0BAAO,kCAEP,QAAuB;AAIvB,WAAW,UAAa;AAGpB,OAAO,wBAA0B,QACnC,WAAW,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA,0BAAO,kCAEP,QAAuB;AAIvB,WAAW,UAAa;AAGpB,OAAO,wBAA0B,QACnC,WAAW,wBACT,OAAO,eAAiB,MAAc,aAAa;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/setup.native.js
CHANGED
|
@@ -20,5 +20,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
20
|
));
|
|
21
21
|
var import_polyfill_dev = require("@tamagui/polyfill-dev"), React = __toESM(require("react")), _globalThis, _React;
|
|
22
22
|
(_globalThis = globalThis)[_React = "React"] || (_globalThis[_React] = React);
|
|
23
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
23
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
24
24
|
//# sourceMappingURL=setup.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/tamagui/src/setup.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,0BAAO,kCAEP,QAAuB,2BAIvBA,aAAW;CAAXA,cAAAA,YAAW,SAAA,OAAA,MAAXA,YAAW,MAAA,IAAaC;AAGpB,OAAOC,wBAA0B,QACnCF,WAAW,
|
|
5
|
-
"names": ["globalThis", "React", "requestAnimationFrame", "setImmediate"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,0BAAO,kCAEP,QAAuB,2BAIvBA,aAAW;CAAXA,cAAAA,YAAW,SAAA,OAAA,MAAXA,YAAW,MAAA,IAAaC;AAGpB,OAAOC,wBAA0B,QACnCF,WAAW,wBACT,OAAOG,eAAiB,MAAcC,aAAaD;",
|
|
5
|
+
"names": ["globalThis", "React", "requestAnimationFrame", "setImmediate", "setTimeout"]
|
|
6
6
|
}
|
package/dist/esm/setup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
globalThis.React ||= React;
|
|
4
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
4
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
5
5
|
//# sourceMappingURL=setup.js.map
|
package/dist/esm/setup.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/setup.ts"],
|
|
4
|
-
"mappings": "AAAA,OAAO;AAEP,YAAY,WAAW;AAIvB,WAAW,UAAa;AAGpB,OAAO,wBAA0B,QACnC,WAAW,
|
|
4
|
+
"mappings": "AAAA,OAAO;AAEP,YAAY,WAAW;AAIvB,WAAW,UAAa;AAGpB,OAAO,wBAA0B,QACnC,WAAW,wBACT,OAAO,eAAiB,MAAc,aAAa;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/setup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
globalThis.React ||= React;
|
|
3
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
3
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
4
4
|
//# sourceMappingURL=setup.mjs.map
|
package/dist/esm/setup.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","globalThis","requestAnimationFrame","setImmediate"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAIvBC,UAAA,CAAWD,KAAA,KAAaA,KAAA;AAGpB,OAAOE,qBAAA,GAA0B,QACnCD,UAAA,CAAWC,qBAAA,
|
|
1
|
+
{"version":3,"names":["React","globalThis","requestAnimationFrame","setImmediate","setTimeout"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAIvBC,UAAA,CAAWD,KAAA,KAAaA,KAAA;AAGpB,OAAOE,qBAAA,GAA0B,QACnCD,UAAA,CAAWC,qBAAA,GACT,OAAOC,YAAA,GAAiB,MAAcC,UAAA,GAAaD,YAAA","ignoreList":[]}
|
package/dist/esm/setup.native.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
var _globalThis, _React;
|
|
4
4
|
(_globalThis = globalThis)[_React = "React"] || (_globalThis[_React] = React);
|
|
5
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
5
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
6
6
|
//# sourceMappingURL=setup.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/tamagui/src/setup.ts"],
|
|
4
|
-
"mappings": "AAAA,OAAO;AAEP,YAAYA,WAAW;IAIvBC,aAAW;CAAXA,cAAAA,YAAW,SAAA,OAAA,MAAXA,YAAW,MAAA,IAAaD;AAGpB,OAAOE,wBAA0B,QACnCD,WAAW,
|
|
5
|
-
"names": ["React", "globalThis", "requestAnimationFrame", "setImmediate"]
|
|
4
|
+
"mappings": "AAAA,OAAO;AAEP,YAAYA,WAAW;IAIvBC,aAAW;CAAXA,cAAAA,YAAW,SAAA,OAAA,MAAXA,YAAW,MAAA,IAAaD;AAGpB,OAAOE,wBAA0B,QACnCD,WAAW,wBACT,OAAOE,eAAiB,MAAcC,aAAaD;",
|
|
5
|
+
"names": ["React", "globalThis", "requestAnimationFrame", "setImmediate", "setTimeout"]
|
|
6
6
|
}
|
package/dist/jsx/setup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
globalThis.React ||= React;
|
|
4
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
4
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
5
5
|
//# sourceMappingURL=setup.js.map
|
package/dist/jsx/setup.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/setup.ts"],
|
|
4
|
-
"mappings": "AAAA,OAAO;AAEP,YAAY,WAAW;AAIvB,WAAW,UAAa;AAGpB,OAAO,wBAA0B,QACnC,WAAW,
|
|
4
|
+
"mappings": "AAAA,OAAO;AAEP,YAAY,WAAW;AAIvB,WAAW,UAAa;AAGpB,OAAO,wBAA0B,QACnC,WAAW,wBACT,OAAO,eAAiB,MAAc,aAAa;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/jsx/setup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
globalThis.React ||= React;
|
|
3
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
3
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
4
4
|
//# sourceMappingURL=setup.mjs.map
|
package/dist/jsx/setup.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","globalThis","requestAnimationFrame","setImmediate"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAIvBC,UAAA,CAAWD,KAAA,KAAaA,KAAA;AAGpB,OAAOE,qBAAA,GAA0B,QACnCD,UAAA,CAAWC,qBAAA,
|
|
1
|
+
{"version":3,"names":["React","globalThis","requestAnimationFrame","setImmediate","setTimeout"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAIvBC,UAAA,CAAWD,KAAA,KAAaA,KAAA;AAGpB,OAAOE,qBAAA,GAA0B,QACnCD,UAAA,CAAWC,qBAAA,GACT,OAAOC,YAAA,GAAiB,MAAcC,UAAA,GAAaD,YAAA","ignoreList":[]}
|
package/dist/jsx/setup.native.js
CHANGED
|
@@ -2,5 +2,5 @@ import "@tamagui/polyfill-dev";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
var _globalThis, _React;
|
|
4
4
|
(_globalThis = globalThis)[_React = "React"] || (_globalThis[_React] = React);
|
|
5
|
-
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
5
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
|
|
6
6
|
//# sourceMappingURL=setup.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/tamagui/src/setup.ts"],
|
|
4
|
-
"mappings": "AAAA,OAAO;AAEP,YAAYA,WAAW;IAIvBC,aAAW;CAAXA,cAAAA,YAAW,SAAA,OAAA,MAAXA,YAAW,MAAA,IAAaD;AAGpB,OAAOE,wBAA0B,QACnCD,WAAW,
|
|
5
|
-
"names": ["React", "globalThis", "requestAnimationFrame", "setImmediate"]
|
|
4
|
+
"mappings": "AAAA,OAAO;AAEP,YAAYA,WAAW;IAIvBC,aAAW;CAAXA,cAAAA,YAAW,SAAA,OAAA,MAAXA,YAAW,MAAA,IAAaD;AAGpB,OAAOE,wBAA0B,QACnCD,WAAW,wBACT,OAAOE,eAAiB,MAAcC,aAAaD;",
|
|
5
|
+
"names": ["React", "globalThis", "requestAnimationFrame", "setImmediate", "setTimeout"]
|
|
6
6
|
}
|
package/dist/native.js
CHANGED
|
@@ -1184,7 +1184,10 @@ var require_constants_native = __commonJS({
|
|
|
1184
1184
|
}
|
|
1185
1185
|
});
|
|
1186
1186
|
module2.exports = __toCommonJS2(constants_native_exports);
|
|
1187
|
-
var import_react3 = require("react"), isWeb6 = !1, isWindowDefined = !1, isServer2 = !1, isClient2 = !1, useIsomorphicLayoutEffect2 = import_react3.useLayoutEffect, isChrome2 = !1, isWebTouchable2 = !1, isTouchable2 = !0, isAndroid =
|
|
1187
|
+
var import_react3 = require("react"), import_react_native4 = require("react-native"), isWeb6 = !1, isWindowDefined = !1, isServer2 = !1, isClient2 = !1, useIsomorphicLayoutEffect2 = import_react3.useLayoutEffect, isChrome2 = !1, isWebTouchable2 = !1, isTouchable2 = !0, isAndroid = import_react_native4.Platform.OS === "android" || process.env.TEST_NATIVE_PLATFORM === "android", isIos = import_react_native4.Platform.OS === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios", platforms = {
|
|
1188
|
+
ios: "ios",
|
|
1189
|
+
android: "android"
|
|
1190
|
+
}, currentPlatform = platforms[import_react_native4.Platform.OS] || "native";
|
|
1188
1191
|
}
|
|
1189
1192
|
});
|
|
1190
1193
|
|
|
@@ -3563,10 +3566,20 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3563
3566
|
}
|
|
3564
3567
|
}
|
|
3565
3568
|
]), ThemeManager2;
|
|
3566
|
-
}();
|
|
3569
|
+
}(), cache = {};
|
|
3567
3570
|
function getState(props, manager) {
|
|
3568
|
-
if (props.name && props.reset) throw new Error(process.env.NODE_ENV === "production" ? "\u274C004" : "Cannot reset and set a new name at the same time.");
|
|
3569
3571
|
if (!getHasThemeUpdatingProps(props)) return null;
|
|
3572
|
+
var [allManagers] = getManagers(manager), cacheKey = `${props.name || ""}${props.componentName || ""}${props.inverse || ""}${props.reset || ""}${allManagers.map(function(x) {
|
|
3573
|
+
return (x == null ? void 0 : x.state.name) || ".";
|
|
3574
|
+
}).join("")}`, cached = cache[cacheKey];
|
|
3575
|
+
if (!cached) {
|
|
3576
|
+
var res = getStateUncached(props, manager);
|
|
3577
|
+
return cache[cacheKey] = res, res;
|
|
3578
|
+
}
|
|
3579
|
+
return cached;
|
|
3580
|
+
}
|
|
3581
|
+
function getStateUncached(props, manager) {
|
|
3582
|
+
if (props.name && props.reset) throw new Error(process.env.NODE_ENV === "production" ? "\u274C004" : "Cannot reset and set a new name at the same time.");
|
|
3570
3583
|
var themes = (0, import_config.getThemes)(), [allManagers, componentManagers] = getManagers(manager), isDirectParentAComponentTheme = !!(manager != null && manager.state.isComponent), startIndex = props.reset && !isDirectParentAComponentTheme ? 1 : 0, baseManager = allManagers[startIndex], parentManager = allManagers[startIndex + 1];
|
|
3571
3584
|
if (!baseManager && props.reset) return process.env.NODE_ENV !== "production" && console.warn("Cannot reset, no parent theme exists"), null;
|
|
3572
3585
|
var { componentName } = props, result = null, baseName = (baseManager == null ? void 0 : baseManager.state.name) || "";
|
|
@@ -13942,7 +13955,7 @@ var require_Pressability_native = __commonJS({
|
|
|
13942
13955
|
var require_addNativeValidStyles_native = __commonJS({
|
|
13943
13956
|
"../../core/core/dist/cjs/addNativeValidStyles.native.js"(exports2, module2) {
|
|
13944
13957
|
"use strict";
|
|
13945
|
-
var
|
|
13958
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
13946
13959
|
for (var name in all) __defProp2(target, name, {
|
|
13947
13960
|
get: all[name],
|
|
13948
13961
|
enumerable: !0
|
|
@@ -13970,18 +13983,6 @@ var require_addNativeValidStyles_native = __commonJS({
|
|
|
13970
13983
|
}
|
|
13971
13984
|
}
|
|
13972
13985
|
return to;
|
|
13973
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
13974
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
13975
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
13976
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
13977
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
13978
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
13979
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
13980
|
-
value: mod,
|
|
13981
|
-
enumerable: !0
|
|
13982
|
-
}) : target,
|
|
13983
|
-
mod
|
|
13984
|
-
);
|
|
13985
13986
|
}, __toCommonJS2 = function(mod) {
|
|
13986
13987
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
13987
13988
|
value: !0
|
|
@@ -13993,21 +13994,38 @@ var require_addNativeValidStyles_native = __commonJS({
|
|
|
13993
13994
|
}
|
|
13994
13995
|
});
|
|
13995
13996
|
module2.exports = __toCommonJS2(addNativeValidStyles_native_exports);
|
|
13996
|
-
var import_helpers = require_index_native7()
|
|
13997
|
-
function
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
outlineWidth: !0,
|
|
14005
|
-
outlineStyle: !0,
|
|
14006
|
-
outlineSpread: !0,
|
|
14007
|
-
outlineColor: !0
|
|
14008
|
-
};
|
|
14009
|
-
Object.assign(import_helpers.validStyles, additional), Object.assign(import_helpers.stylePropsAll, additional);
|
|
13997
|
+
var import_helpers = require_index_native7();
|
|
13998
|
+
function getReactNativeVersion() {
|
|
13999
|
+
var version = process.env.REACT_NATIVE_VERSION || "";
|
|
14000
|
+
if (!process.env.REACT_NATIVE_VERSION) try {
|
|
14001
|
+
var ReactNativeOfficalVersion = require("react-native/Libraries/Core/ReactNativeVersion");
|
|
14002
|
+
if (ReactNativeOfficalVersion) {
|
|
14003
|
+
var { version: { major, minor, patch } } = ReactNativeOfficalVersion;
|
|
14004
|
+
version = `${major}.${minor}.${patch}`;
|
|
14010
14005
|
}
|
|
14006
|
+
} catch {
|
|
14007
|
+
} finally {
|
|
14008
|
+
version || (version = "0.77");
|
|
14009
|
+
}
|
|
14010
|
+
var [major1, minor1, patch1] = version.split(".");
|
|
14011
|
+
return [
|
|
14012
|
+
+major1,
|
|
14013
|
+
+minor1,
|
|
14014
|
+
+patch1
|
|
14015
|
+
];
|
|
14016
|
+
}
|
|
14017
|
+
function addNativeValidStyles() {
|
|
14018
|
+
var [major, minor] = getReactNativeVersion();
|
|
14019
|
+
if (major === 0 && minor >= 77) {
|
|
14020
|
+
var additional = {
|
|
14021
|
+
boxSizing: !0,
|
|
14022
|
+
mixBlendMode: !0,
|
|
14023
|
+
outlineWidth: !0,
|
|
14024
|
+
outlineStyle: !0,
|
|
14025
|
+
outlineSpread: !0,
|
|
14026
|
+
outlineColor: !0
|
|
14027
|
+
};
|
|
14028
|
+
Object.assign(import_helpers.validStyles, additional), Object.assign(import_helpers.stylePropsAll, additional);
|
|
14011
14029
|
}
|
|
14012
14030
|
}
|
|
14013
14031
|
}
|
|
@@ -16833,7 +16851,7 @@ var require_Adapt_native = __commonJS({
|
|
|
16833
16851
|
var Component = context == null ? void 0 : context.Contents;
|
|
16834
16852
|
output = children(Component ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Component, {}) : null);
|
|
16835
16853
|
} else output = children;
|
|
16836
|
-
return (0,
|
|
16854
|
+
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
16837
16855
|
typeof children == "function" && output !== void 0 && (context == null || context.setChildren(output));
|
|
16838
16856
|
}, [
|
|
16839
16857
|
output
|
|
@@ -18417,7 +18435,10 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18417
18435
|
var adaptContext = (0, import_adapt.useAdaptContext)();
|
|
18418
18436
|
contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.ProvideAdaptContext, {
|
|
18419
18437
|
...adaptContext,
|
|
18420
|
-
children:
|
|
18438
|
+
children: (
|
|
18439
|
+
/* @ts-ignore */
|
|
18440
|
+
contents
|
|
18441
|
+
)
|
|
18421
18442
|
});
|
|
18422
18443
|
}
|
|
18423
18444
|
var shouldMountChildren = unmountChildrenWhenHidden ? !!opacity : !0;
|
|
@@ -25216,7 +25237,7 @@ var require_Popper_native = __commonJS({
|
|
|
25216
25237
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25217
25238
|
}
|
|
25218
25239
|
}), PopperContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25219
|
-
var { __scopePopper, enableAnimationForPositionChange, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size4
|
|
25240
|
+
var { __scopePopper, enableAnimationForPositionChange, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size4 } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React4.useMemo(function() {
|
|
25220
25241
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperContentFrame, {
|
|
25221
25242
|
"data-placement": placement,
|
|
25222
25243
|
"data-strategy": strategy,
|
|
@@ -25632,16 +25653,20 @@ var require_Popover_native = __commonJS({
|
|
|
25632
25653
|
...props.popperContext,
|
|
25633
25654
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, {
|
|
25634
25655
|
...props.context,
|
|
25635
|
-
children:
|
|
25656
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.ProvideAdaptContext, {
|
|
25657
|
+
...props.adaptContext,
|
|
25658
|
+
children: props.children
|
|
25659
|
+
})
|
|
25636
25660
|
})
|
|
25637
25661
|
});
|
|
25638
25662
|
}
|
|
25639
25663
|
function PopoverContentPortal(props) {
|
|
25640
|
-
var { __scopePopover } = props, _props_zIndex, zIndex = (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core12.useThemeName)(), contents = props.children;
|
|
25664
|
+
var { __scopePopover } = props, _props_zIndex, zIndex = (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core12.useThemeName)(), adaptContext = (0, import_adapt.useAdaptContext)(), contents = props.children;
|
|
25641
25665
|
return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverRepropagateContext, {
|
|
25642
25666
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
25643
25667
|
popperContext,
|
|
25644
25668
|
context,
|
|
25669
|
+
adaptContext,
|
|
25645
25670
|
children: props.children
|
|
25646
25671
|
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
25647
25672
|
zIndex,
|
|
@@ -25667,19 +25692,19 @@ var require_Popover_native = __commonJS({
|
|
|
25667
25692
|
setIsFullyHidden == null || setIsFullyHidden(!0);
|
|
25668
25693
|
}, [
|
|
25669
25694
|
setIsFullyHidden
|
|
25670
|
-
])
|
|
25695
|
+
]), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.ResetPresence, {
|
|
25696
|
+
children
|
|
25697
|
+
});
|
|
25671
25698
|
if (context.breakpointActive) {
|
|
25672
25699
|
var childrenWithoutScrollView = React4.Children.toArray(children).map(function(child) {
|
|
25673
25700
|
return /* @__PURE__ */ React4.isValidElement(child) && child.type === import_react_native4.ScrollView ? child.props.children : child;
|
|
25674
|
-
}), content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.ResetPresence, {
|
|
25675
|
-
children: childrenWithoutScrollView
|
|
25676
25701
|
});
|
|
25677
|
-
return
|
|
25678
|
-
|
|
25679
|
-
|
|
25680
|
-
|
|
25681
|
-
|
|
25682
|
-
|
|
25702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
|
|
25703
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContext.Provider, {
|
|
25704
|
+
scope: __scopePopover || POPOVER_SCOPE,
|
|
25705
|
+
...popperContext,
|
|
25706
|
+
children: childrenWithoutScrollView
|
|
25707
|
+
})
|
|
25683
25708
|
});
|
|
25684
25709
|
}
|
|
25685
25710
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate.Animate, {
|
|
@@ -25693,31 +25718,10 @@ var require_Popover_native = __commonJS({
|
|
|
25693
25718
|
id: context.contentId,
|
|
25694
25719
|
ref: forwardedRef,
|
|
25695
25720
|
...contentProps,
|
|
25696
|
-
children:
|
|
25697
|
-
enabled: disableRemoveScroll ? !1 : open,
|
|
25698
|
-
allowPinchZoom: !0,
|
|
25699
|
-
// causes lots of bugs on touch web on site
|
|
25700
|
-
removeScrollBar: !1,
|
|
25701
|
-
style: dspContentsStyle,
|
|
25702
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.ResetPresence, {
|
|
25703
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_focus_scope.FocusScope, {
|
|
25704
|
-
loop: !0,
|
|
25705
|
-
enabled: disableFocusScope ? !1 : open,
|
|
25706
|
-
trapped: trapFocus,
|
|
25707
|
-
onMountAutoFocus: onOpenAutoFocus,
|
|
25708
|
-
onUnmountAutoFocus: onCloseAutoFocus,
|
|
25709
|
-
children: import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
|
|
25710
|
-
style: dspContentsStyle,
|
|
25711
|
-
children
|
|
25712
|
-
}) : children
|
|
25713
|
-
})
|
|
25714
|
-
})
|
|
25715
|
-
})
|
|
25721
|
+
children: contents
|
|
25716
25722
|
}, context.contentId)
|
|
25717
25723
|
});
|
|
25718
|
-
}),
|
|
25719
|
-
display: "contents"
|
|
25720
|
-
}, PopoverClose = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25724
|
+
}), PopoverClose = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25721
25725
|
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
25722
25726
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_stacks3.YStack, {
|
|
25723
25727
|
...rest,
|